diff --git a/color.less b/color.less index b7bfe482b3..4b2b38a13a 100644 --- a/color.less +++ b/color.less @@ -90,7 +90,7 @@ html {--antd-wave-shadow-color: @primary-color;} .ant-alert-info .ant-alert-icon {color: @primary-color;} .ant-alert-warning {background-color: color(~`colorPalette("@{warning-color}", 1)`);border: 1px solid color(~`colorPalette("@{warning-color}", 3)`);} .ant-alert-warning .ant-alert-icon {color: @warning-color;} -.ant-alert-error {background-color: color(~`colorPalette("@{error-color}", 1)`);border: 1px solid color(~`colorPalette("@{error-color}", 4)`);} +.ant-alert-error {background-color: color(~`colorPalette("@{error-color}", 1)`);border: 1px solid color(~`colorPalette("@{error-color}", 3)`);} .ant-alert-error .ant-alert-icon {color: @error-color;} .ant-alert-close-icon {background-color: transparent;border: none;} .ant-alert-close-icon .anticon-close {color: @text-color-secondary;} @@ -727,42 +727,42 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .ant-form-item-has-success.ant-form-item-has-feedback .ant-form-item-children-icon {color: @success-color;} .ant-form-item-has-warning .ant-form-item-explain, .ant-form-item-has-warning .ant-form-item-split {color: @warning-color;} .ant-form-item-has-warning .ant-input, .ant-form-item-has-warning .ant-input-affix-wrapper, .ant-form-item-has-warning .ant-input:hover, .ant-form-item-has-warning .ant-input-affix-wrapper:hover {border-color: @warning-color;} -.ant-form-item-has-warning .ant-input:focus, .ant-form-item-has-warning .ant-input-affix-wrapper:focus, .ant-form-item-has-warning .ant-input-focused, .ant-form-item-has-warning .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(128, 24, 211, 0.2);} +.ant-form-item-has-warning .ant-input:focus, .ant-form-item-has-warning .ant-input-affix-wrapper:focus, .ant-form-item-has-warning .ant-input-focused, .ant-form-item-has-warning .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 137, 242, 0.2);} .ant-form-item-has-warning .ant-input:not(.ant-form-item-has-warning .ant-input-disabled) {background-color: #fff;} .ant-form-item-has-warning .ant-input-affix-wrapper:not(.ant-form-item-has-warning .ant-input-affix-wrapper-disabled) {background-color: #fff;} .ant-form-item-has-warning .ant-input-affix-wrapper input:focus {box-shadow: none !important;} -.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(128, 24, 211, 0.2);} +.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 137, 242, 0.2);} .ant-form-item-has-warning .ant-input-prefix {color: @warning-color;} .ant-form-item-has-warning .ant-input-group-addon {color: @warning-color;border-color: @warning-color;} .ant-form-item-has-warning .has-feedback {color: @warning-color;} .ant-form-item-has-warning.ant-form-item-has-feedback .ant-form-item-children-icon {color: @warning-color;} .ant-form-item-has-warning .ant-select:not(.ant-select-borderless) .ant-select-selector {border-color: @warning-color !important;} -.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(128, 24, 211, 0.2);} +.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 137, 242, 0.2);} .ant-form-item-has-warning .ant-input-number, .ant-form-item-has-warning .ant-picker {border-color: @warning-color;} -.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(128, 24, 211, 0.2);} +.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 137, 242, 0.2);} .ant-form-item-has-warning .ant-input-number:not([disabled]):hover, .ant-form-item-has-warning .ant-picker:not([disabled]):hover {border-color: @warning-color;} -.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(128, 24, 211, 0.2);} +.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 137, 242, 0.2);} .ant-form-item-has-error .ant-form-item-explain, .ant-form-item-has-error .ant-form-item-split {color: @error-color;} .ant-form-item-has-error .ant-input, .ant-form-item-has-error .ant-input-affix-wrapper, .ant-form-item-has-error .ant-input:hover, .ant-form-item-has-error .ant-input-affix-wrapper:hover {border-color: @error-color;} -.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-input-affix-wrapper:focus, .ant-form-item-has-error .ant-input-focused, .ant-form-item-has-error .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(178, 244, 236, 0.2);} +.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-input-affix-wrapper:focus, .ant-form-item-has-error .ant-input-focused, .ant-form-item-has-error .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(46, 176, 3, 0.2);} .ant-form-item-has-error .ant-input:not(.ant-form-item-has-error .ant-input-disabled) {background-color: #fff;} .ant-form-item-has-error .ant-input-affix-wrapper:not(.ant-form-item-has-error .ant-input-affix-wrapper-disabled) {background-color: #fff;} .ant-form-item-has-error .ant-input-affix-wrapper input:focus {box-shadow: none !important;} -.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(178, 244, 236, 0.2);} +.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(46, 176, 3, 0.2);} .ant-form-item-has-error .ant-input-prefix {color: @error-color;} .ant-form-item-has-error .ant-input-group-addon {color: @error-color;border-color: @error-color;} .ant-form-item-has-error .has-feedback {color: @error-color;} .ant-form-item-has-error.ant-form-item-has-feedback .ant-form-item-children-icon {color: @error-color;} .ant-form-item-has-error .ant-select:not(.ant-select-borderless) .ant-select-selector {border-color: @error-color !important;} -.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(178, 244, 236, 0.2);} +.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(46, 176, 3, 0.2);} .ant-form-item-has-error .ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {border: 0;} .ant-form-item-has-error .ant-select.ant-select-auto-complete .ant-input:focus {border-color: @error-color;} .ant-form-item-has-error .ant-input-number, .ant-form-item-has-error .ant-picker {border-color: @error-color;} -.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(178, 244, 236, 0.2);} +.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(46, 176, 3, 0.2);} .ant-form-item-has-error .ant-input-number:not([disabled]):hover, .ant-form-item-has-error .ant-picker:not([disabled]):hover {border-color: @error-color;} .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover {border-color: @error-color;} -.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(178, 244, 236, 0.2);} -.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(178, 244, 236, 0.2);} +.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(46, 176, 3, 0.2);} +.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(46, 176, 3, 0.2);} .ant-form-item-has-error .ant-transfer-list {border-color: @error-color;} .ant-form-item-has-error .ant-transfer-list-search:not([disabled]) {border-color: @border-color-base;} .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} @@ -955,10 +955,10 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .ant-mentions-dropdown-menu-item-active {background-color: #f5f5f5;} .ant-menu-item-danger.ant-menu-item {color: @error-color;} .ant-menu-item-danger.ant-menu-item:hover, .ant-menu-item-danger.ant-menu-item-active {color: @error-color;} -.ant-menu-item-danger.ant-menu-item:active {background: color(~`colorPalette("@{modal-footer-border-color-split}", 1)`);} +.ant-menu-item-danger.ant-menu-item:active {background: #fff1f0;} .ant-menu-item-danger.ant-menu-item-selected {color: @error-color;} .ant-menu-item-danger.ant-menu-item-selected > a, .ant-menu-item-danger.ant-menu-item-selected > a:hover {color: @error-color;} -.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {background-color: color(~`colorPalette("@{modal-footer-border-color-split}", 1)`);} +.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {background-color: #fff1f0;} .ant-menu-inline .ant-menu-item-danger.ant-menu-item::after {border-right-color: @error-color;} .ant-menu-dark .ant-menu-item-danger.ant-menu-item, .ant-menu-dark .ant-menu-item-danger.ant-menu-item:hover, .ant-menu-dark .ant-menu-item-danger.ant-menu-item > a {color: @error-color;} .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {color: #fff;background-color: @error-color;} @@ -1461,7 +1461,7 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-pink-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} .ant-tag-magenta {color: #eb2f96;background: #fff0f6;border-color: #ffadd2;} .ant-tag-magenta-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} -.ant-tag-red {color: #f5222d;background: color(~`colorPalette("@{modal-footer-border-color-split}", 1)`);border-color: #ffa39e;} +.ant-tag-red {color: #f5222d;background: #fff1f0;border-color: #ffa39e;} .ant-tag-red-inverse {color: #fff;background: #f5222d;border-color: #f5222d;} .ant-tag-volcano {color: #fa541c;background: #fff2e8;border-color: #ffbb96;} .ant-tag-volcano-inverse {color: #fff;background: #fa541c;border-color: #fa541c;} @@ -1473,19 +1473,19 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-gold-inverse {color: #fff;background: #faad14;border-color: #faad14;} .ant-tag-cyan {color: #13c2c2;background: #e6fffb;border-color: #87e8de;} .ant-tag-cyan-inverse {color: #fff;background: #13c2c2;border-color: #13c2c2;} -.ant-tag-lime {color: #a0d911;background: color(~`colorPalette("@{heading-color}", 1)`);border-color: #eaff8f;} +.ant-tag-lime {color: #a0d911;background: #fcffe6;border-color: #eaff8f;} .ant-tag-lime-inverse {color: #fff;background: #a0d911;border-color: #a0d911;} .ant-tag-green {color: #52c41a;background: #f6ffed;border-color: #b7eb8f;} .ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;} -.ant-tag-blue {color: #1890ff;background: #e6f7ff;border-color: #91d5ff;} +.ant-tag-blue {color: #1890ff;background: color(~`colorPalette("@{warning-color}", 1)`);border-color: #91d5ff;} .ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;} .ant-tag-geekblue {color: #2f54eb;background: #f0f5ff;border-color: #adc6ff;} .ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;} -.ant-tag-purple {color: #722ed1;background: #f9f0ff;border-color: #d3adf7;} +.ant-tag-purple {color: #722ed1;background: color(~`colorPalette("@{link-color}", 2)`);border-color: #d3adf7;} .ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;} .ant-tag-success {color: #52c41a;background: #f6ffed;border-color: #b7eb8f;} -.ant-tag-processing {color: #1890ff;background: #e6f7ff;border-color: #91d5ff;} -.ant-tag-error {color: #f5222d;background: color(~`colorPalette("@{modal-footer-border-color-split}", 1)`);border-color: #ffa39e;} +.ant-tag-processing {color: #1890ff;background: color(~`colorPalette("@{warning-color}", 1)`);border-color: #91d5ff;} +.ant-tag-error {color: #f5222d;background: #fff1f0;border-color: #ffa39e;} .ant-tag-warning {color: #fa8c16;background: #fff7e6;border-color: #ffd591;} .ant-timeline {color: @text-color;} .ant-timeline-item-tail {border-left: 2px solid #f0f0f0;} @@ -1685,7 +1685,7 @@ a.ant-typography[disabled], .ant-typography a[disabled] {color: @disabled-color; .ant-upload-list-picture .ant-upload-list-item-error, .ant-upload-list-picture-card .ant-upload-list-item-error {border-color: @error-color;} .ant-upload-list-picture .ant-upload-list-item:hover .ant-upload-list-item-info, .ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info {background: transparent;} .ant-upload-list-picture .ant-upload-list-item-uploading, .ant-upload-list-picture-card .ant-upload-list-item-uploading {border-style: dashed;} -.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'], .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'] {fill: color(~`colorPalette("@{error-color}", 1)`);} +.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='color(~`colorPalette("@{warning-color}", 1)`)'], .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='color(~`colorPalette("@{warning-color}", 1)`)'] {fill: color(~`colorPalette("@{error-color}", 1)`);} .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'], .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'] {fill: @error-color;} .ant-upload-list-picture-card .ant-upload-list-item-info::before {background-color: rgba(0, 0, 0, 0.5);} .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download, .ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete {color: rgba(255, 255, 255, 0.85);} diff --git a/index.html b/index.html index 395dce852c..f4701f620c 100644 --- a/index.html +++ b/index.html @@ -130,6 +130,6 @@ - + diff --git a/p__Classrooms__Lists__Exercise__Detail__index.d37e2acd.async.js b/p__Classrooms__Lists__Exercise__Detail__index.5fae38bd.async.js similarity index 89% rename from p__Classrooms__Lists__Exercise__Detail__index.d37e2acd.async.js rename to p__Classrooms__Lists__Exercise__Detail__index.5fae38bd.async.js index 844570b540..303d27eab8 100644 --- a/p__Classrooms__Lists__Exercise__Detail__index.d37e2acd.async.js +++ b/p__Classrooms__Lists__Exercise__Detail__index.5fae38bd.async.js @@ -1,7 +1,7 @@ (window.webpackJsonp=window.webpackJsonp||[]).push([[65,3,5,6,7,8,9,13,198],{"+NIl":function(Ge,re,y){(function(Q){Q(y("VrN/"))})(function(Q){"use strict";Q.defineMode("stex",function(W,k){"use strict";function B(o,c){o.cmdState.push(c)}function O(o){return o.cmdState.length>0?o.cmdState[o.cmdState.length-1]:null}function R(o){var c=o.cmdState.pop();c&&c.closeBracket()}function M(o){for(var c=o.cmdState,f=c.length-1;f>=0;f--){var i=c[f];if(i.name=="DEFAULT")continue;return i}return{styleIdentifier:function(){return null}}}function p(o,c,f){return function(){this.name=o,this.bracketNo=0,this.style=c,this.styles=f,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var a={};a.importmodule=p("importmodule","tag",["string","builtin"]),a.documentclass=p("documentclass","tag",["","atom"]),a.usepackage=p("usepackage","tag",["atom"]),a.begin=p("begin","tag",["atom"]),a.end=p("end","tag",["atom"]),a.label=p("label","tag",["atom"]),a.ref=p("ref","tag",["atom"]),a.eqref=p("eqref","tag",["atom"]),a.cite=p("cite","tag",["atom"]),a.bibitem=p("bibitem","tag",["atom"]),a.Bibitem=p("Bibitem","tag",["atom"]),a.RBibitem=p("RBibitem","tag",["atom"]),a.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function b(o,c){o.f=c}function u(o,c){var f;if(o.match(/^\\[a-zA-Z@]+/)){var i=o.current().slice(1);return f=a.hasOwnProperty(i)?a[i]:a.DEFAULT,f=new f,B(c,f),b(c,m),f.style}if(o.match(/^\\[$&%#{}_]/))return"tag";if(o.match(/^\\[,;!\/\\]/))return"tag";if(o.match("\\["))return b(c,function(l,s){return d(l,s,"\\]")}),"keyword";if(o.match("\\("))return b(c,function(l,s){return d(l,s,"\\)")}),"keyword";if(o.match("$$"))return b(c,function(l,s){return d(l,s,"$$")}),"keyword";if(o.match("$"))return b(c,function(l,s){return d(l,s,"$")}),"keyword";var t=o.next();if(t=="%")return o.skipToEnd(),"comment";if(t=="}"||t=="]"){if(f=O(c),f)f.closeBracket(t),b(c,m);else return"error";return"bracket"}else return t=="{"||t=="["?(f=a.DEFAULT,f=new f,B(c,f),"bracket"):/\d/.test(t)?(o.eatWhile(/[\w.%]/),"atom"):(o.eatWhile(/[\w\-_]/),f=M(c),f.name=="begin"&&(f.argument=o.current()),f.styleIdentifier())}function d(o,c,f){if(o.eatSpace())return null;if(f&&o.match(f))return b(c,u),"keyword";if(o.match(/^\\[a-zA-Z@]+/))return"tag";if(o.match(/^[a-zA-Z]+/))return"variable-2";if(o.match(/^\\[$&%#{}_]/))return"tag";if(o.match(/^\\[,;!\/]/))return"tag";if(o.match(/^[\^_&]/))return"tag";if(o.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(o.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=o.next();return i=="{"||i=="}"||i=="["||i=="]"||i=="("||i==")"?"bracket":i=="%"?(o.skipToEnd(),"comment"):"error"}function m(o,c){var f=o.peek(),i;return f=="{"||f=="["?(i=O(c),i.openBracket(f),o.eat(f),b(c,u),"bracket"):/[ \t\r]/.test(f)?(o.eat(f),null):(b(c,u),R(c),u(o,c))}return{startState:function(){var o=k.inMathMode?function(c,f){return d(c,f)}:u;return{cmdState:[],f:o}},copyState:function(o){return{cmdState:o.cmdState.slice(),f:o.f}},token:function(o,c){return c.f(o,c)},blankLine:function(o){o.f=u,o.cmdState.length=0},lineComment:"%"}}),Q.defineMIME("text/x-stex","stex"),Q.defineMIME("text/x-latex","stex")})},"+ua5":function(Ge,re,y){},"+yhJ":function(Ge,re,y){Ge.exports=y.p+"static/xixi.d492fb65.svg"},"/GNS":function(Ge,re,y){Ge.exports=y.p+"static/search1.c4136dd4.png"},"/cxE":function(Ge,re,y){"use strict";y.d(re,"f",function(){return k}),y.d(re,"g",function(){return B}),y.d(re,"h",function(){return O}),y.d(re,"e",function(){return M}),y.d(re,"b",function(){return p}),y.d(re,"c",function(){return a}),y.d(re,"d",function(){return b}),y.d(re,"a",function(){return u});class Q{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(d){setTimeout(()=>{throw d.stack?new Error(d.message+` -`+d.stack):d},0)}}emit(d){this.listeners.forEach(m=>{m(d)})}onUnexpectedError(d){this.unexpectedErrorHandler(d),this.emit(d)}onUnexpectedExternalError(d){this.unexpectedErrorHandler(d)}}const W=new Q;function k(d){M(d)||W.onUnexpectedError(d);return}function B(d){M(d)||W.onUnexpectedExternalError(d);return}function O(d){if(d instanceof Error){let{name:m,message:o}=d;const c=d.stacktrace||d.stack;return{$isError:!0,name:m,message:o,stack:c}}return d}const R="Canceled";function M(d){return d instanceof Error&&d.name===R&&d.message===R}function p(){const d=new Error(R);return d.name=d.message,d}function a(d){return d?new Error(`Illegal argument: ${d}`):new Error("Illegal argument")}function b(d){return d?new Error(`Illegal state: ${d}`):new Error("Illegal state")}class u extends Error{constructor(d){super("NotSupported");d&&(this.message=d)}}},"06Qe":function(Ge,re,y){var Q=y("ItGF"),W="urn:schemas-microsoft-com:vml",k=typeof window=="undefined"?null:window,B=!1,O=k&&k.document;function R(a){return M(a)}var M;if(O&&!Q.canvasSupported)try{!O.namespaces.zrvml&&O.namespaces.add("zrvml",W),M=function(a){return O.createElement("')}}catch(a){M=function(b){return O.createElement("<"+b+' xmlns="'+W+'" class="zrvml">')}}function p(){if(B||!O)return;B=!0;var a=O.styleSheets;a.length<31?O.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}re.doc=O,re.createNode=R,re.initVML=p},"0eGx":function(Ge,re,y){Ge.exports=y.p+"static/zhong.c1924b73.svg"},"0r65":function(Ge,re){var y=arguments[3],Q=arguments[4],W=arguments[5],k=JSON.stringify;Ge.exports=function(B,O){for(var R,M=Object.keys(W),p=0,a=M.length;p=0;w--){var D;if(l[w]!==t&&!l[w].ignore&&(D=m(l[w],f,i))&&(!s.topTarget&&(s.topTarget=l[w]),D!==M)){s.target=l[w];break}}return s},processGesture:function(f,i){this._gestureMgr||(this._gestureMgr=new R);var t=this._gestureMgr;i==="start"&&t.clear();var l=t.recognize(f,this.findHover(f.zrX,f.zrY,null).target,this.proxy.dom);if(i==="end"&&t.clear(),l){var s=l.type;f.gestureEvent=s,this.dispatchToElement({target:l.target},s,l.event)}}},Q.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(f){d.prototype[f]=function(i){var t=i.zrX,l=i.zrY,s=o(this,t,l),w,D;if((f!=="mouseup"||!s)&&(w=this.findHover(t,l),D=w.target),f==="mousedown")this._downEl=D,this._downPoint=[i.zrX,i.zrY],this._upEl=D;else if(f==="mouseup")this._upEl=D;else if(f==="click"){if(this._downEl!==this._upEl||!this._downPoint||W.dist(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(w,f,i)}});function m(f,i,t){if(f[f.rectHover?"rectContain":"contain"](i,t)){for(var l=f,s;l;){if(l.clipPath&&!l.clipPath.contain(i,t))return!1;l.silent&&(s=!0),l=l.parent}return s?M:!0}return!1}function o(f,i,t){var l=f.painter;return i<0||i>l.getWidth()||t<0||t>l.getHeight()}Q.mixin(d,B),Q.mixin(d,k);var c=d;Ge.exports=c},"19Vz":function(Ge,re,y){(function(Q){Q(y("VrN/"))})(function(Q){Q.defineOption("placeholder","",function(p,a,b){var u=b&&b!=Q.Init;if(a&&!u)p.on("blur",O),p.on("change",R),p.on("swapDoc",R),Q.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){B(p)}),R(p);else if(!a&&u){p.off("blur",O),p.off("change",R),p.off("swapDoc",R),Q.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),W(p);var d=p.getWrapperElement();d.className=d.className.replace(" CodeMirror-empty","")}a&&!p.hasFocus()&&O(p)});function W(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function k(p){W(p);var a=p.state.placeholder=document.createElement("pre");a.style.cssText="height: 0; overflow: visible",a.style.direction=p.getOption("direction"),a.className="CodeMirror-placeholder CodeMirror-line-like";var b=p.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),a.appendChild(b),p.display.lineSpace.insertBefore(a,p.display.lineSpace.firstChild)}function B(p){setTimeout(function(){var a=!1,b=p.getInputField();b.nodeName=="TEXTAREA"?a=!b.value:p.lineCount()==1&&(a=!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)),a?k(p):W(p)},20)}function O(p){M(p)&&k(p)}function R(p){var a=p.getWrapperElement(),b=M(p);a.className=a.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?k(p):W(p)}function M(p){return p.lineCount()===1&&p.getLine(0)===""}})},"1Jh7":function(Ge,re,y){var Q=y("y+Vt"),W=y("T6xi"),k=Q.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(B,O){W.buildPath(B,O,!1)}});Ge.exports=k},"1MYJ":function(Ge,re,y){var Q=y("y+Vt"),W=Q.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var k=this.__dirtyPath,B=this.shape.paths,O=0;O=this._maxSize&&u>0){var m=p.head;p.remove(m),delete a[m.key],b=m.value,this._lastRemovedEntry=m}d?d.value=M:d=new W(M),d.key=R,p.insertEntry(d),a[R]=d}return b},B.get=function(R){var M=this._map[R],p=this._list;if(M!=null)return M!==p.tail&&(p.remove(M),p.insertEntry(M)),M.value},B.clear=function(){this._list.clear(),this._map={}};var O=k;Ge.exports=O},"1bdT":function(Ge,re,y){var Q=y("3gBT"),W=y("H6uX"),k=y("DN4a"),B=y("vWvF"),O=y("bYtY"),R=function(p){k.call(this,p),W.call(this,p),B.call(this,p),this.id=p.id||Q()};R.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(p,a){switch(this.draggable){case"horizontal":a=0;break;case"vertical":p=0;break}var b=this.transform;b||(b=this.transform=[1,0,0,1,0,0]),b[4]+=p,b[5]+=a,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(p,a){},attrKV:function(p,a){if(p==="position"||p==="scale"||p==="origin"){if(a){var b=this[p];b||(b=this[p]=[]),b[0]=a[0],b[1]=a[1]}}else this[p]=a},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(p,a){if(typeof p=="string")this.attrKV(p,a);else if(O.isObject(p))for(var b in p)p.hasOwnProperty(b)&&this.attrKV(b,p[b]);return this.dirty(!1),this},setClipPath:function(p){var a=this.__zr;a&&p.addSelfToZr(a),this.clipPath&&this.clipPath!==p&&this.removeClipPath(),this.clipPath=p,p.__zr=a,p.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var p=this.clipPath;p&&(p.__zr&&p.removeSelfFromZr(p.__zr),p.__zr=null,p.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(p){this.__zr=p;var a=this.animators;if(a)for(var b=0;b")):null:x.match("--")?S(c("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),S(f(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),T.tokenize=c("meta","?>"),"meta"):(b=x.eat("/")?"closeTag":"openTag",T.tokenize=m,"tag bracket");if(E=="&"){var U;return x.eat("#")?x.eat("x")?U=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):U=x.eatWhile(/[\d]/)&&x.eat(";"):U=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),U?"atom":"error"}else return x.eatWhile(/[^&<]/),null}d.isInText=!0;function m(x,T){var S=x.next();if(S==">"||S=="/"&&x.eat(">"))return T.tokenize=d,b=S==">"?"endTag":"selfcloseTag","tag bracket";if(S=="=")return b="equals",null;if(S=="<"){T.tokenize=d,T.state=s,T.tagName=T.tagStart=null;var E=T.tokenize(x,T);return E?E+" tag error":"tag error"}else return/[\'\"]/.test(S)?(T.tokenize=o(S),T.stringStartCol=x.column(),T.tokenize(x,T)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function o(x){var T=function(S,E){for(;!S.eol();)if(S.next()==x){E.tokenize=m;break}return"string"};return T.isInAttribute=!0,T}function c(x,T){return function(S,E){for(;!S.eol();){if(S.match(T)){E.tokenize=d;break}S.next()}return x}}function f(x){return function(T,S){for(var E;(E=T.next())!=null;){if(E=="<")return S.tokenize=f(x+1),S.tokenize(T,S);if(E==">")if(x==1){S.tokenize=d;break}else return S.tokenize=f(x-1),S.tokenize(T,S)}return"meta"}}function i(x,T,S){this.prev=x.context,this.tagName=T,this.indent=x.indented,this.startOfLine=S,(M.doNotIndent.hasOwnProperty(T)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function t(x){x.context&&(x.context=x.context.prev)}function l(x,T){for(var S;;){if(!x.context)return;if(S=x.context.tagName,!M.contextGrabbers.hasOwnProperty(S)||!M.contextGrabbers[S].hasOwnProperty(T))return;t(x)}}function s(x,T,S){return x=="openTag"?(S.tagStart=T.column(),w):x=="closeTag"?D:s}function w(x,T,S){return x=="word"?(S.tagName=T.current(),u="tag",n):M.allowMissingTagName&&x=="endTag"?(u="tag bracket",n(x,T,S)):(u="error",w)}function D(x,T,S){if(x=="word"){var E=T.current();return S.context&&S.context.tagName!=E&&M.implicitlyClosed.hasOwnProperty(S.context.tagName)&&t(S),S.context&&S.context.tagName==E||M.matchClosing===!1?(u="tag",C):(u="tag error",v)}else return M.allowMissingTagName&&x=="endTag"?(u="tag bracket",C(x,T,S)):(u="error",v)}function C(x,T,S){return x!="endTag"?(u="error",C):(t(S),s)}function v(x,T,S){return u="error",C(x,T,S)}function n(x,T,S){if(x=="word")return u="attribute",_;if(x=="endTag"||x=="selfcloseTag"){var E=S.tagName,U=S.tagStart;return S.tagName=S.tagStart=null,x=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(E)?l(S,E):(l(S,E),S.context=new i(S,E,U==S.indented)),s}return u="error",n}function _(x,T,S){return x=="equals"?h:(M.allowMissing||(u="error"),n(x,T,S))}function h(x,T,S){return x=="string"?g:x=="word"&&M.allowUnquoted?(u="string",n):(u="error",n(x,T,S))}function g(x,T,S){return x=="string"?g:n(x,T,S)}return{startState:function(x){var T={tokenize:d,state:s,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(T.baseIndent=x),T},token:function(x,T){if(!T.tagName&&x.sol()&&(T.indented=x.indentation()),x.eatSpace())return null;b=null;var S=T.tokenize(x,T);return(S||b)&&S!="comment"&&(u=null,T.state=T.state(b||S,x,T),u&&(S=u=="error"?S+" error":u)),S},indent:function(x,T,S){var E=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+R;if(E&&E.noIndent)return Q.Pass;if(x.tokenize!=m&&x.tokenize!=d)return S?S.match(/^(\s*)/)[0].length:0;if(x.tagName)return M.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+R*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/$/,blockCommentStart:"",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(x){x.state==h&&(x.state=n)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var T=[],S=x.context;S;S=S.prev)S.tagName&&T.push(S.tagName);return T.reverse()}}}),Q.defineMIME("text/xml","xml"),Q.defineMIME("application/xml","xml"),Q.mimeModes.hasOwnProperty("text/html")||Q.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Ge,re,y){"use strict";y.d(re,"d",function(){return gt}),y.d(re,"b",function(){return qe}),y.d(re,"c",function(){return nn}),y.d(re,"a",function(){return ta});var Q=y("VTBJ"),W=y("1OyB"),k=y("vuIU"),B=y("JX7q"),O=y("Ji7U"),R=y("LK+K"),M=y("q1tI"),p=y("I8Z2"),a=y("BGR+"),b=y("wx14"),u=y("rePB"),d=y("4IlW"),m=y("2GS6"),o=y("Gytx"),c=y.n(o),f=y("TSYQ"),i=y.n(f),t=y("U8pU"),l=y("ODXe"),s=/iPhone/i,w=/iPod/i,D=/iPad/i,C=/\bAndroid(?:.+)Mobile\b/i,v=/Android/i,n=/\bAndroid(?:.+)SD4930UR\b/i,_=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,g=/\bWindows(?:.+)ARM\b/i,x=/BlackBerry/i,T=/BB10/i,S=/Opera Mini/i,E=/\b(CriOS|Chrome)(?:.+)Mobile/i,U=/Mobile(?:.+)Firefox\b/i;function F(_n,Bt){return _n.test(Bt)}function P(_n){var Bt=_n||(typeof navigator!="undefined"?navigator.userAgent:""),mn=Bt.split("[FBAN");if(typeof mn[1]!="undefined"){var Gt=mn,ze=Object(l.a)(Gt,1);Bt=ze[0]}if(mn=Bt.split("Twitter"),typeof mn[1]!="undefined"){var ct=mn,Sn=Object(l.a)(ct,1);Bt=Sn[0]}var qt={apple:{phone:F(s,Bt)&&!F(h,Bt),ipod:F(w,Bt),tablet:!F(s,Bt)&&F(D,Bt)&&!F(h,Bt),device:(F(s,Bt)||F(w,Bt)||F(D,Bt))&&!F(h,Bt)},amazon:{phone:F(n,Bt),tablet:!F(n,Bt)&&F(_,Bt),device:F(n,Bt)||F(_,Bt)},android:{phone:!F(h,Bt)&&F(n,Bt)||!F(h,Bt)&&F(C,Bt),tablet:!F(h,Bt)&&!F(n,Bt)&&!F(C,Bt)&&(F(_,Bt)||F(v,Bt)),device:!F(h,Bt)&&(F(n,Bt)||F(_,Bt)||F(C,Bt)||F(v,Bt))||F(/\bokhttp\b/i,Bt)},windows:{phone:F(h,Bt),tablet:F(g,Bt),device:F(h,Bt)||F(g,Bt)},other:{blackberry:F(x,Bt),blackberry10:F(T,Bt),opera:F(S,Bt),firefox:F(U,Bt),chrome:F(E,Bt),device:F(x,Bt)||F(T,Bt)||F(S,Bt)||F(U,Bt)||F(E,Bt)},any:null,phone:null,tablet:null};return qt.any=qt.apple.device||qt.android.device||qt.windows.device||qt.other.device,qt.phone=qt.apple.phone||qt.android.phone||qt.windows.phone,qt.tablet=qt.apple.tablet||qt.android.tablet||qt.windows.tablet,qt}var H=Object(Q.a)(Object(Q.a)({},P()),{},{isMobile:P}),N=H;function A(){}function G(_n,Bt,mn){var Gt=Bt||"";return _n.key||"".concat(Gt,"item_").concat(mn)}function K(_n){return"".concat(_n,"-menu-")}function $(_n,Bt){var mn=-1;M.Children.forEach(_n,function(Gt){mn+=1,Gt&&Gt.type&&Gt.type.isMenuItemGroup?M.Children.forEach(Gt.props.children,function(ze){mn+=1,Bt(ze,mn)}):Bt(Gt,mn)})}function ie(_n,Bt,mn){if(!_n||mn.find)return;M.Children.forEach(_n,function(Gt){if(Gt){var ze=Gt.type;if(!ze||!(ze.isSubMenu||ze.isMenuItem||ze.isMenuItemGroup))return;Bt.indexOf(Gt.key)!==-1?mn.find=!0:Gt.props.children&&ie(Gt.props.children,Bt,mn)}})}var le=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],de=function(Bt){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gt=Bt&&typeof Bt.getBoundingClientRect=="function"&&Bt.getBoundingClientRect().width;if(Gt){if(mn){var ze=getComputedStyle(Bt),ct=ze.marginLeft,Sn=ze.marginRight;Gt+=+ct.replace("px","")+ +Sn.replace("px","")}Gt=+Gt.toFixed(6)}return Gt||0},Se=function(Bt,mn,Gt){Bt&&Object(t.a)(Bt.style)==="object"&&(Bt.style[mn]=Gt)},He=function(){return N.any},et=y("KQm4"),je=y("Ff2n"),me=y("i8i4"),fe=y("bdgK"),Ae=y("uciX"),he=y("8XRh"),Ue={adjustX:1,adjustY:1},st={topLeft:{points:["bl","tl"],overflow:Ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ue,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ue,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ue,offset:[4,0]}},Ve={topLeft:{points:["bl","tl"],overflow:Ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ue,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ue,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ue,offset:[4,0]}},dt=st,Qe=0,pe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},xe=function(Bt,mn,Gt){var ze=K(mn),ct=Bt.getState();Bt.setState({defaultActiveFirst:Object(Q.a)(Object(Q.a)({},ct.defaultActiveFirst),{},Object(u.a)({},ze,Gt))})},Le=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(Gt){var ze;Object(W.a)(this,mn),ze=Bt.call(this,Gt),ze.onDestroy=function(Mt){ze.props.onDestroy(Mt)},ze.onKeyDown=function(Mt){var Nn=Mt.keyCode,Bn=ze.menuInstance,na=ze.props,Ea=na.isOpen,Pe=na.store;if(Nn===d.a.ENTER)return ze.onTitleClick(Mt),xe(Pe,ze.props.eventKey,!0),!0;if(Nn===d.a.RIGHT)return Ea?Bn.onKeyDown(Mt):(ze.triggerOpenChange(!0),xe(Pe,ze.props.eventKey,!0)),!0;if(Nn===d.a.LEFT){var ye;if(Ea)ye=Bn.onKeyDown(Mt);else return;return ye||(ze.triggerOpenChange(!1),ye=!0),ye}return Ea&&(Nn===d.a.UP||Nn===d.a.DOWN)?Bn.onKeyDown(Mt):void 0},ze.onOpenChange=function(Mt){ze.props.onOpenChange(Mt)},ze.onPopupVisibleChange=function(Mt){ze.triggerOpenChange(Mt,Mt?"mouseenter":"mouseleave")},ze.onMouseEnter=function(Mt){var Nn=ze.props,Bn=Nn.eventKey,na=Nn.onMouseEnter,Ea=Nn.store;xe(Ea,ze.props.eventKey,!1),na({key:Bn,domEvent:Mt})},ze.onMouseLeave=function(Mt){var Nn=ze.props,Bn=Nn.parentMenu,na=Nn.eventKey,Ea=Nn.onMouseLeave;Bn.subMenuInstance=Object(B.a)(ze),Ea({key:na,domEvent:Mt})},ze.onTitleMouseEnter=function(Mt){var Nn=ze.props,Bn=Nn.eventKey,na=Nn.onItemHover,Ea=Nn.onTitleMouseEnter;na({key:Bn,hover:!0}),Ea({key:Bn,domEvent:Mt})},ze.onTitleMouseLeave=function(Mt){var Nn=ze.props,Bn=Nn.parentMenu,na=Nn.eventKey,Ea=Nn.onItemHover,Pe=Nn.onTitleMouseLeave;Bn.subMenuInstance=Object(B.a)(ze),Ea({key:na,hover:!1}),Pe({key:na,domEvent:Mt})},ze.onTitleClick=function(Mt){var Nn=Object(B.a)(ze),Bn=Nn.props;if(Bn.onTitleClick({key:Bn.eventKey,domEvent:Mt}),Bn.triggerSubMenuAction==="hover")return;ze.triggerOpenChange(!Bn.isOpen,"click"),xe(Bn.store,ze.props.eventKey,!1)},ze.onSubMenuClick=function(Mt){typeof ze.props.onClick=="function"&&ze.props.onClick(ze.addKeyPath(Mt))},ze.onSelect=function(Mt){ze.props.onSelect(Mt)},ze.onDeselect=function(Mt){ze.props.onDeselect(Mt)},ze.getPrefixCls=function(){return"".concat(ze.props.rootPrefixCls,"-submenu")},ze.getActiveClassName=function(){return"".concat(ze.getPrefixCls(),"-active")},ze.getDisabledClassName=function(){return"".concat(ze.getPrefixCls(),"-disabled")},ze.getSelectedClassName=function(){return"".concat(ze.getPrefixCls(),"-selected")},ze.getOpenClassName=function(){return"".concat(ze.props.rootPrefixCls,"-submenu-open")},ze.saveMenuInstance=function(Mt){ze.menuInstance=Mt},ze.addKeyPath=function(Mt){return Object(Q.a)(Object(Q.a)({},Mt),{},{keyPath:(Mt.keyPath||[]).concat(ze.props.eventKey)})},ze.triggerOpenChange=function(Mt,Nn){var Bn=ze.props.eventKey,na=function(){ze.onOpenChange({key:Bn,item:Object(B.a)(ze),trigger:Nn,open:Mt})};Nn==="mouseenter"?ze.mouseenterTimeout=setTimeout(function(){na()},0):na()},ze.isChildrenSelected=function(){var Mt={find:!1};return ie(ze.props.children,ze.props.selectedKeys,Mt),Mt.find},ze.isOpen=function(){return ze.props.openKeys.indexOf(ze.props.eventKey)!==-1},ze.adjustWidth=function(){if(!ze.subMenuTitle||!ze.menuInstance)return;var Mt=me.findDOMNode(ze.menuInstance);if(Mt.offsetWidth>=ze.subMenuTitle.offsetWidth)return;Mt.style.minWidth="".concat(ze.subMenuTitle.offsetWidth,"px")},ze.saveSubMenuTitle=function(Mt){ze.subMenuTitle=Mt},ze.getBaseProps=function(){var Mt=Object(B.a)(ze),Nn=Mt.props;return{mode:Nn.mode==="horizontal"?"vertical":Nn.mode,visible:ze.props.isOpen,level:Nn.level+1,inlineIndent:Nn.inlineIndent,focusable:!1,onClick:ze.onSubMenuClick,onSelect:ze.onSelect,onDeselect:ze.onDeselect,onDestroy:ze.onDestroy,selectedKeys:Nn.selectedKeys,eventKey:"".concat(Nn.eventKey,"-menu-"),openKeys:Nn.openKeys,motion:Nn.motion,onOpenChange:ze.onOpenChange,subMenuOpenDelay:Nn.subMenuOpenDelay,parentMenu:Object(B.a)(ze),subMenuCloseDelay:Nn.subMenuCloseDelay,forceSubMenuRender:Nn.forceSubMenuRender,triggerSubMenuAction:Nn.triggerSubMenuAction,builtinPlacements:Nn.builtinPlacements,defaultActiveFirst:Nn.store.getState().defaultActiveFirst[K(Nn.eventKey)],multiple:Nn.multiple,prefixCls:Nn.rootPrefixCls,id:ze.internalMenuId,manualRef:ze.saveMenuInstance,itemIcon:Nn.itemIcon,expandIcon:Nn.expandIcon,direction:Nn.direction}},ze.getMotion=function(Mt,Nn){var Bn=Object(B.a)(ze),na=Bn.haveRendered,Ea=ze.props,Pe=Ea.motion,ye=Ea.rootPrefixCls,J=Object(Q.a)(Object(Q.a)({},Pe),{},{leavedClassName:"".concat(ye,"-hidden"),removeOnLeave:!1,motionAppear:na||!Nn||Mt!=="inline"});return J};var ct=Gt.store,Sn=Gt.eventKey,qt=ct.getState(),Gn=qt.defaultActiveFirst;ze.isRootMenu=!1;var qn=!1;return Gn&&(qn=Gn[Sn]),xe(ct,Sn,qn),ze}return Object(k.a)(mn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ze=this,ct=this.props,Sn=ct.mode,qt=ct.parentMenu,Gn=ct.manualRef;if(Gn&&Gn(this),Sn!=="horizontal"||!qt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ze.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ze=this.props,ct=ze.onDestroy,Sn=ze.eventKey;ct&&ct(Sn),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ze){var ct=this,Sn=this.getBaseProps(),qt=this.getMotion(Sn.mode,Sn.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Sn.visible||Sn.forceSubMenuRender,!this.haveOpened)return M.createElement("div",null);var Gn=Sn.direction;return M.createElement(he.default,Object.assign({visible:Sn.visible},qt),function(qn){var Mt=qn.className,Nn=qn.style,Bn=i()("".concat(Sn.prefixCls,"-sub"),Mt,Object(u.a)({},"".concat(Sn.prefixCls,"-rtl"),Gn==="rtl"));return M.createElement(ht,Object.assign({},Sn,{id:ct.internalMenuId,className:Bn,style:Nn}),ze)})}},{key:"render",value:function(){var ze,ct=Object(Q.a)({},this.props),Sn=ct.isOpen,qt=this.getPrefixCls(),Gn=ct.mode==="inline",qn=i()(qt,"".concat(qt,"-").concat(ct.mode),(ze={},Object(u.a)(ze,ct.className,!!ct.className),Object(u.a)(ze,this.getOpenClassName(),Sn),Object(u.a)(ze,this.getActiveClassName(),ct.active||Sn&&!Gn),Object(u.a)(ze,this.getDisabledClassName(),ct.disabled),Object(u.a)(ze,this.getSelectedClassName(),this.isChildrenSelected()),ze));this.internalMenuId||(ct.eventKey?this.internalMenuId="".concat(ct.eventKey,"$Menu"):(Qe+=1,this.internalMenuId="$__$".concat(Qe,"$Menu")));var Mt={},Nn={},Bn={};ct.disabled||(Mt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Nn={onClick:this.onTitleClick},Bn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var na={},Ea=ct.direction;Gn&&(Ea==="rtl"?na.paddingRight=ct.inlineIndent*ct.level:na.paddingLeft=ct.inlineIndent*ct.level);var Pe={};this.props.isOpen&&(Pe={"aria-owns":this.internalMenuId});var ye=null;ct.mode!=="horizontal"&&(ye=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ye=M.createElement(this.props.expandIcon,Object(Q.a)({},this.props))));var J=M.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:na,className:"".concat(qt,"-title"),role:"button"},Bn,Nn,{"aria-expanded":Sn},Pe,{"aria-haspopup":"true",title:typeof ct.title=="string"?ct.title:void 0}),ct.title,ye||M.createElement("i",{className:"".concat(qt,"-arrow")})),q=this.renderChildren(ct.children),Z=ct.parentMenu.isRootMenu?ct.parentMenu.props.getPopupContainer:function(Fa){return Fa.parentNode},oe=pe[ct.mode],Oe=ct.popupOffset?{offset:ct.popupOffset}:{},Re=ct.mode==="inline"?"":ct.popupClassName;Re+=Ea==="rtl"?" ".concat(qt,"-rtl"):"";var ve=ct.disabled,bn=ct.triggerSubMenuAction,kt=ct.subMenuOpenDelay,at=ct.forceSubMenuRender,Ht=ct.subMenuCloseDelay,Fe=ct.builtinPlacements;le.forEach(function(Fa){return delete ct[Fa]}),delete ct.onClick;var Un=Ea==="rtl"?Object.assign({},Ve,Fe):Object.assign({},st,Fe);return delete ct.direction,M.createElement("li",Object.assign({},ct,Mt,{className:qn,role:"menuitem"}),Gn&&J,Gn&&q,!Gn&&M.createElement(Ae.a,{prefixCls:qt,popupClassName:i()("".concat(qt,"-popup"),Re),getPopupContainer:Z,builtinPlacements:Un,popupPlacement:oe,popupVisible:Sn,popupAlign:Oe,popup:q,action:ve?[]:[bn],mouseEnterDelay:kt,mouseLeaveDelay:Ht,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:at},J))}}]),mn}(M.Component);Le.defaultProps={onMouseEnter:A,onMouseLeave:A,onTitleMouseEnter:A,onTitleMouseLeave:A,onTitleClick:A,manualRef:A,mode:"vertical",title:""};var Ye=Object(p.b)(function(_n,Bt){var mn=_n.openKeys,Gt=_n.activeKey,ze=_n.selectedKeys,ct=Bt.eventKey,Sn=Bt.subMenuKey;return{isOpen:mn.indexOf(ct)>-1,active:Gt[Sn]===ct,selectedKeys:ze}})(Le);Ye.isSubMenu=!0;var gt=Ye,Ct="menuitem-overflowed",tn=.5,Zt=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(){var Gt;return Object(W.a)(this,mn),Gt=Bt.apply(this,arguments),Gt.resizeObserver=null,Gt.mutationObserver=null,Gt.originalTotalWidth=0,Gt.overflowedItems=[],Gt.menuItemSizes=[],Gt.cancelFrameId=null,Gt.state={lastVisibleIndex:void 0},Gt.getMenuItemNodes=function(){var ze=Gt.props.prefixCls,ct=me.findDOMNode(Object(B.a)(Gt));return ct?[].slice.call(ct.children).filter(function(Sn){return Sn.className.split(" ").indexOf("".concat(ze,"-overflowed-submenu"))<0}):[]},Gt.getOverflowedSubMenuItem=function(ze,ct,Sn){var qt=Gt.props,Gn=qt.overflowedIndicator,qn=qt.level,Mt=qt.mode,Nn=qt.prefixCls,Bn=qt.theme;if(qn!==1||Mt!=="horizontal")return null;var na=Gt.props.children[0],Ea=na.props,Pe=Ea.children,ye=Ea.title,J=Ea.style,q=Object(je.a)(Ea,["children","title","style"]),Z=Object(Q.a)({},J),oe="".concat(ze,"-overflowed-indicator"),Oe="".concat(ze,"-overflowed-indicator");ct.length===0&&Sn!==!0?Z=Object(Q.a)(Object(Q.a)({},Z),{},{display:"none"}):Sn&&(Z=Object(Q.a)(Object(Q.a)({},Z),{},{visibility:"hidden",position:"absolute"}),oe="".concat(oe,"-placeholder"),Oe="".concat(Oe,"-placeholder"));var Re=Bn?"".concat(Nn,"-").concat(Bn):"",ve={};return le.forEach(function(bn){q[bn]!==void 0&&(ve[bn]=q[bn])}),M.createElement(gt,Object.assign({title:Gn,className:"".concat(Nn,"-overflowed-submenu"),popupClassName:Re},ve,{key:oe,eventKey:Oe,disabled:!1,style:Z}),ct)},Gt.setChildrenWidthAndResize=function(){if(Gt.props.mode!=="horizontal")return;var ze=me.findDOMNode(Object(B.a)(Gt));if(!ze)return;var ct=ze.children;if(!ct||ct.length===0)return;var Sn=ze.children[ct.length-1];Se(Sn,"display","inline-block");var qt=Gt.getMenuItemNodes(),Gn=qt.filter(function(qn){return qn.className.split(" ").indexOf(Ct)>=0});Gn.forEach(function(qn){Se(qn,"display","inline-block")}),Gt.menuItemSizes=qt.map(function(qn){return de(qn,!0)}),Gn.forEach(function(qn){Se(qn,"display","none")}),Gt.overflowedIndicatorWidth=de(ze.children[ze.children.length-1],!0),Gt.originalTotalWidth=Gt.menuItemSizes.reduce(function(qn,Mt){return qn+Mt},0),Gt.handleResize(),Se(Sn,"display","none")},Gt.handleResize=function(){if(Gt.props.mode!=="horizontal")return;var ze=me.findDOMNode(Object(B.a)(Gt));if(!ze)return;var ct=de(ze);Gt.overflowedItems=[];var Sn=0,qt;Gt.originalTotalWidth>ct+tn&&(qt=-1,Gt.menuItemSizes.forEach(function(Gn){Sn+=Gn,Sn+Gt.overflowedIndicatorWidth<=ct&&(qt+=1)})),Gt.setState({lastVisibleIndex:qt})},Gt}return Object(k.a)(mn,[{key:"componentDidMount",value:function(){var ze=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ct=me.findDOMNode(this);if(!ct)return;this.resizeObserver=new fe.default(function(Sn){Sn.forEach(function(){var qt=ze.cancelFrameId;cancelAnimationFrame(qt),ze.cancelFrameId=requestAnimationFrame(ze.setChildrenWidthAndResize)})}),[].slice.call(ct.children).concat(ct).forEach(function(Sn){ze.resizeObserver.observe(Sn)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ze.resizeObserver.disconnect(),[].slice.call(ct.children).concat(ct).forEach(function(Sn){ze.resizeObserver.observe(Sn)}),ze.setChildrenWidthAndResize()}),this.mutationObserver.observe(ct,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ze){var ct=this,Sn=this.state.lastVisibleIndex;return(ze||[]).reduce(function(qt,Gn,qn){var Mt=Gn;if(ct.props.mode==="horizontal"){var Nn=ct.getOverflowedSubMenuItem(Gn.props.eventKey,[]);Sn!==void 0&&ct.props.className.indexOf("".concat(ct.props.prefixCls,"-root"))!==-1&&(qn>Sn&&(Mt=M.cloneElement(Gn,{style:{display:"none"},eventKey:"".concat(Gn.props.eventKey,"-hidden"),className:"".concat(Ct)})),qn===Sn+1&&(ct.overflowedItems=ze.slice(Sn+1).map(function(na){return M.cloneElement(na,{key:na.props.eventKey,mode:"vertical-left"})}),Nn=ct.getOverflowedSubMenuItem(Gn.props.eventKey,ct.overflowedItems)));var Bn=[].concat(Object(et.a)(qt),[Nn,Mt]);return qn===ze.length-1&&Bn.push(ct.getOverflowedSubMenuItem(Gn.props.eventKey,[],!0)),Bn}return[].concat(Object(et.a)(qt),[Mt])},[])}},{key:"render",value:function(){var ze=this.props,ct=ze.visible,Sn=ze.prefixCls,qt=ze.overflowedIndicator,Gn=ze.mode,qn=ze.level,Mt=ze.tag,Nn=ze.children,Bn=ze.theme,na=Object(je.a)(ze,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ea=Mt;return M.createElement(Ea,Object.assign({},na),this.renderChildren(Nn))}}]),mn}(M.Component);Zt.defaultProps={tag:"div",className:""};var Hn=Zt;function ia(_n){return _n.length?_n.every(function(Bt){return!!Bt.props.disabled}):!0}function mt(_n,Bt,mn){var Gt=_n.getState();_n.setState({activeKey:Object(Q.a)(Object(Q.a)({},Gt.activeKey),{},Object(u.a)({},Bt,mn))})}function pt(_n){return _n.eventKey||"0-menu-"}function on(_n,Bt){var mn=Bt,Gt=_n.children,ze=_n.eventKey;if(mn){var ct;if($(Gt,function(Sn,qt){Sn&&Sn.props&&!Sn.props.disabled&&mn===G(Sn,ze,qt)&&(ct=!0)}),ct)return mn}return mn=null,_n.defaultActiveFirst&&$(Gt,function(Sn,qt){!mn&&Sn&&!Sn.props.disabled&&(mn=G(Sn,ze,qt))}),mn}function hn(_n){if(_n){var Bt=this.instanceArray.indexOf(_n);Bt!==-1?this.instanceArray[Bt]=_n:this.instanceArray.push(_n)}}var Ot=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(Gt){var ze;return Object(W.a)(this,mn),ze=Bt.call(this,Gt),ze.onKeyDown=function(ct,Sn){var qt=ct.keyCode,Gn;if(ze.getFlatInstanceArray().forEach(function(Mt){Mt&&Mt.props.active&&Mt.onKeyDown&&(Gn=Mt.onKeyDown(ct))}),Gn)return 1;var qn=null;return(qt===d.a.UP||qt===d.a.DOWN)&&(qn=ze.step(qt===d.a.UP?-1:1)),qn?(ct.preventDefault(),mt(ze.props.store,pt(ze.props),qn.props.eventKey),typeof Sn=="function"&&Sn(qn),1):void 0},ze.onItemHover=function(ct){var Sn=ct.key,qt=ct.hover;mt(ze.props.store,pt(ze.props),qt?Sn:null)},ze.onDeselect=function(ct){ze.props.onDeselect(ct)},ze.onSelect=function(ct){ze.props.onSelect(ct)},ze.onClick=function(ct){ze.props.onClick(ct)},ze.onOpenChange=function(ct){ze.props.onOpenChange(ct)},ze.onDestroy=function(ct){ze.props.onDestroy(ct)},ze.getFlatInstanceArray=function(){return ze.instanceArray},ze.step=function(ct){var Sn=ze.getFlatInstanceArray(),qt=ze.props.store.getState().activeKey[pt(ze.props)],Gn=Sn.length;if(!Gn)return null;ct<0&&(Sn=Sn.concat().reverse());var qn=-1;if(Sn.every(function(na,Ea){return na&&na.props.eventKey===qt?(qn=Ea,!1):!0}),!ze.props.defaultActiveFirst&&qn!==-1&&ia(Sn.slice(qn,Gn-1)))return;var Mt=(qn+1)%Gn,Nn=Mt;do{var Bn=Sn[Nn];if(!Bn||Bn.props.disabled)Nn=(Nn+1)%Gn;else return Bn}while(Nn!==Mt);return null},ze.renderCommonMenuItem=function(ct,Sn,qt){var Gn=ze.props.store.getState(),qn=Object(B.a)(ze),Mt=qn.props,Nn=G(ct,Mt.eventKey,Sn),Bn=ct.props;if(!Bn||typeof ct.type=="string")return ct;var na=Nn===Gn.activeKey,Ea=Object(Q.a)(Object(Q.a)({mode:Bn.mode||Mt.mode,level:Mt.level,inlineIndent:Mt.inlineIndent,renderMenuItem:ze.renderMenuItem,rootPrefixCls:Mt.prefixCls,index:Sn,parentMenu:Mt.parentMenu,manualRef:Bn.disabled?void 0:Object(m.a)(ct.ref,hn.bind(Object(B.a)(ze))),eventKey:Nn,active:!Bn.disabled&&na,multiple:Mt.multiple,onClick:function(ye){(Bn.onClick||A)(ye),ze.onClick(ye)},onItemHover:ze.onItemHover,motion:Mt.motion,subMenuOpenDelay:Mt.subMenuOpenDelay,subMenuCloseDelay:Mt.subMenuCloseDelay,forceSubMenuRender:Mt.forceSubMenuRender,onOpenChange:ze.onOpenChange,onDeselect:ze.onDeselect,onSelect:ze.onSelect,builtinPlacements:Mt.builtinPlacements,itemIcon:Bn.itemIcon||ze.props.itemIcon,expandIcon:Bn.expandIcon||ze.props.expandIcon},qt),{},{direction:Mt.direction});return(Mt.mode==="inline"||He())&&(Ea.triggerSubMenuAction="click"),M.cloneElement(ct,Ea)},ze.renderMenuItem=function(ct,Sn,qt){if(!ct)return null;var Gn=ze.props.store.getState(),qn={openKeys:Gn.openKeys,selectedKeys:Gn.selectedKeys,triggerSubMenuAction:ze.props.triggerSubMenuAction,subMenuKey:qt};return ze.renderCommonMenuItem(ct,Sn,qn)},Gt.store.setState({activeKey:Object(Q.a)(Object(Q.a)({},Gt.store.getState().activeKey),{},Object(u.a)({},Gt.eventKey,on(Gt,Gt.activeKey)))}),ze.instanceArray=[],ze}return Object(k.a)(mn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ze){return this.props.visible||ze.visible||this.props.className!==ze.className||!c()(this.props.style,ze.style)}},{key:"componentDidUpdate",value:function(ze){var ct=this.props,Sn="activeKey"in ct?ct.activeKey:ct.store.getState().activeKey[pt(ct)],qt=on(ct,Sn);if(qt!==Sn)mt(ct.store,pt(ct),qt);else if("activeKey"in ze){var Gn=on(ze,ze.activeKey);qt!==Gn&&mt(ct.store,pt(ct),qt)}}},{key:"render",value:function(){var ze=this,ct=Object(b.a)({},this.props);this.instanceArray=[];var Sn=i()(ct.prefixCls,ct.className,"".concat(ct.prefixCls,"-").concat(ct.mode)),qt={className:Sn,role:ct.role||"menu"};ct.id&&(qt.id=ct.id),ct.focusable&&(qt.tabIndex=0,qt.onKeyDown=this.onKeyDown);var Gn=ct.prefixCls,qn=ct.eventKey,Mt=ct.visible,Nn=ct.level,Bn=ct.mode,na=ct.overflowedIndicator,Ea=ct.theme;return le.forEach(function(Pe){return delete ct[Pe]}),delete ct.onClick,M.createElement(Hn,Object.assign({},ct,{prefixCls:Gn,mode:Bn,tag:"ul",level:Nn,theme:Ea,visible:Mt,overflowedIndicator:na},qt),M.Children.map(ct.children,function(Pe,ye){return ze.renderMenuItem(Pe,ye,qn||"0-menu-")}))}}]),mn}(M.Component);Ot.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:A};var Xt=Object(p.b)()(Ot),ht=Xt,Je=y("Kwbf");function rt(_n,Bt,mn){var Gt=_n.prefixCls,ze=_n.motion,ct=_n.defaultMotions,Sn=ct===void 0?{}:ct,qt=_n.openAnimation,Gn=_n.openTransitionName,qn=Bt.switchingModeFromInline;if(ze)return ze;if(Object(t.a)(qt)==="object"&&qt)Object(Je.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof qt=="string")return{motionName:"".concat(Gt,"-open-").concat(qt)};if(Gn)return{motionName:Gn};var Mt=Sn[mn];return Mt||(qn?null:Sn.other)}var Te=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(Gt){var ze;Object(W.a)(this,mn),ze=Bt.call(this,Gt),ze.inlineOpenKeys=[],ze.onSelect=function(qt){var Gn=Object(B.a)(ze),qn=Gn.props;if(qn.selectable){var Mt=ze.store.getState(),Nn=Mt.selectedKeys,Bn=qt.key;qn.multiple?Nn=Nn.concat([Bn]):Nn=[Bn],"selectedKeys"in qn||ze.store.setState({selectedKeys:Nn}),qn.onSelect(Object(Q.a)(Object(Q.a)({},qt),{},{selectedKeys:Nn}))}},ze.onClick=function(qt){var Gn=ze.getRealMenuMode(),qn=Object(B.a)(ze),Mt=qn.store,Nn=qn.props.onOpenChange;Gn!=="inline"&&!("openKeys"in ze.props)&&(Mt.setState({openKeys:[]}),Nn([])),ze.props.onClick(qt)},ze.onKeyDown=function(qt,Gn){ze.innerMenu.getWrappedInstance().onKeyDown(qt,Gn)},ze.onOpenChange=function(qt){var Gn=Object(B.a)(ze),qn=Gn.props,Mt=ze.store.getState().openKeys.concat(),Nn=!1,Bn=function(Ea){var Pe=!1;if(Ea.open)Pe=Mt.indexOf(Ea.key)===-1,Pe&&Mt.push(Ea.key);else{var ye=Mt.indexOf(Ea.key);Pe=ye!==-1,Pe&&Mt.splice(ye,1)}Nn=Nn||Pe};Array.isArray(qt)?qt.forEach(Bn):Bn(qt),Nn&&("openKeys"in ze.props||ze.store.setState({openKeys:Mt}),qn.onOpenChange(Mt))},ze.onDeselect=function(qt){var Gn=Object(B.a)(ze),qn=Gn.props;if(qn.selectable){var Mt=ze.store.getState().selectedKeys.concat(),Nn=qt.key,Bn=Mt.indexOf(Nn);Bn!==-1&&Mt.splice(Bn,1),"selectedKeys"in qn||ze.store.setState({selectedKeys:Mt}),qn.onDeselect(Object(Q.a)(Object(Q.a)({},qt),{},{selectedKeys:Mt}))}},ze.onMouseEnter=function(qt){ze.restoreModeVerticalFromInline();var Gn=ze.props.onMouseEnter;Gn&&Gn(qt)},ze.onTransitionEnd=function(qt){var Gn=qt.propertyName==="width"&&qt.target===qt.currentTarget,qn=qt.target.className,Mt=Object.prototype.toString.call(qn)==="[object SVGAnimatedString]"?qn.animVal:qn,Nn=qt.propertyName==="font-size"&&Mt.indexOf("anticon")>=0;(Gn||Nn)&&ze.restoreModeVerticalFromInline()},ze.setInnerMenu=function(qt){ze.innerMenu=qt},ze.isRootMenu=!0;var ct=Gt.defaultSelectedKeys,Sn=Gt.defaultOpenKeys;return"selectedKeys"in Gt&&(ct=Gt.selectedKeys||[]),"openKeys"in Gt&&(Sn=Gt.openKeys||[]),ze.store=Object(p.c)({selectedKeys:ct,openKeys:Sn,activeKey:{"0-menu-":on(Gt,Gt.activeKey)}}),ze.state={switchingModeFromInline:!1},ze}return Object(k.a)(mn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ze){this.updateOpentKeysWhenSwitchMode(ze),this.updateMiniStore();var ct=this.props,Sn=ct.siderCollapsed,qt=ct.inlineCollapsed,Gn=ct.onOpenChange;(!ze.inlineCollapsed&&qt||!ze.siderCollapsed&&Sn)&&Gn([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ze){var ct=this.props,Sn=this.store,qt=this.inlineOpenKeys,Gn=Sn.getState(),qn={};ze.mode==="inline"&&ct.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in ct||((ct.inlineCollapsed&&!ze.inlineCollapsed||ct.siderCollapsed&&!ze.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Gn.openKeys.concat(),qn.openKeys=[]),(!ct.inlineCollapsed&&ze.inlineCollapsed||!ct.siderCollapsed&&ze.siderCollapsed)&&(qn.openKeys=qt,this.inlineOpenKeys=[])),Object.keys(qn).length&&Sn.setState(qn)}},{key:"updateMenuDisplay",value:function(){var ze=this.props.collapsedWidth,ct=this.store,Sn=this.prevOpenKeys,qt=this.getInlineCollapsed()&&(ze===0||ze==="0"||ze==="0px");qt?(this.prevOpenKeys=ct.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Sn&&(this.store.setState({openKeys:Sn}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ze=this.props.mode,ct=this.state.switchingModeFromInline,Sn=this.getInlineCollapsed();return ct&&Sn?"inline":Sn?"vertical":ze}},{key:"getInlineCollapsed",value:function(){var ze=this.props,ct=ze.inlineCollapsed,Sn=ze.siderCollapsed;return Sn!==void 0?Sn:ct}},{key:"restoreModeVerticalFromInline",value:function(){var ze=this.state.switchingModeFromInline;ze&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ze=Object(Q.a)({},Object(a.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ct=this.getRealMenuMode();return ze.className+=" ".concat(ze.prefixCls,"-root"),ze.direction==="rtl"&&(ze.className+=" ".concat(ze.prefixCls,"-rtl")),ze=Object(Q.a)(Object(Q.a)({},ze),{},{mode:ct,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:rt(this.props,this.state,ct)}),delete ze.openAnimation,delete ze.openTransitionName,M.createElement(p.a,{store:this.store},M.createElement(ht,Object.assign({},ze,{ref:this.setInnerMenu}),this.props.children))}}]),mn}(M.Component);Te.defaultProps={selectable:!0,onClick:A,onSelect:A,onOpenChange:A,onDeselect:A,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:M.createElement("span",null,"\xB7\xB7\xB7")};var Me=Te,Ie=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(){var Gt;return Object(W.a)(this,mn),Gt=Bt.apply(this,arguments),Gt.onKeyDown=function(ze){var ct=ze.keyCode;return ct===d.a.ENTER?(Gt.onClick(ze),!0):void 0},Gt.onMouseLeave=function(ze){var ct=Gt.props,Sn=ct.eventKey,qt=ct.onItemHover,Gn=ct.onMouseLeave;qt({key:Sn,hover:!1}),Gn({key:Sn,domEvent:ze})},Gt.onMouseEnter=function(ze){var ct=Gt.props,Sn=ct.eventKey,qt=ct.onItemHover,Gn=ct.onMouseEnter;qt({key:Sn,hover:!0}),Gn({key:Sn,domEvent:ze})},Gt.onClick=function(ze){var ct=Gt.props,Sn=ct.eventKey,qt=ct.multiple,Gn=ct.onClick,qn=ct.onSelect,Mt=ct.onDeselect,Nn=ct.isSelected,Bn={key:Sn,keyPath:[Sn],item:Object(B.a)(Gt),domEvent:ze};Gn(Bn),qt?Nn?Mt(Bn):qn(Bn):Nn||qn(Bn)},Gt.saveNode=function(ze){Gt.node=ze},Gt}return Object(k.a)(mn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ze=this.props;ze.onDestroy&&ze.onDestroy(ze.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ze,ct=Object(Q.a)({},this.props),Sn=i()(this.getPrefixCls(),ct.className,(ze={},Object(u.a)(ze,this.getActiveClassName(),!ct.disabled&&ct.active),Object(u.a)(ze,this.getSelectedClassName(),ct.isSelected),Object(u.a)(ze,this.getDisabledClassName(),ct.disabled),ze)),qt=Object(Q.a)(Object(Q.a)({},ct.attribute),{},{title:typeof ct.title=="string"?ct.title:void 0,className:Sn,role:ct.role||"menuitem","aria-disabled":ct.disabled});ct.role==="option"?qt=Object(Q.a)(Object(Q.a)({},qt),{},{role:"option","aria-selected":ct.isSelected}):(ct.role===null||ct.role==="none")&&(qt.role="none");var Gn={onClick:ct.disabled?null:this.onClick,onMouseLeave:ct.disabled?null:this.onMouseLeave,onMouseEnter:ct.disabled?null:this.onMouseEnter},qn=Object(Q.a)({},ct.style);ct.mode==="inline"&&(ct.direction==="rtl"?qn.paddingRight=ct.inlineIndent*ct.level:qn.paddingLeft=ct.inlineIndent*ct.level),le.forEach(function(Nn){return delete ct[Nn]}),delete ct.direction;var Mt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Mt=M.createElement(this.props.itemIcon,this.props)),M.createElement("li",Object.assign({},Object(a.default)(ct,["onClick","onMouseEnter","onMouseLeave","onSelect"]),qt,Gn,{style:qn,ref:this.saveNode}),ct.children,Mt)}}]),mn}(M.Component);Ie.isMenuItem=!0,Ie.defaultProps={onSelect:A,onMouseEnter:A,onMouseLeave:A,manualRef:A};var be=Object(p.b)(function(_n,Bt){var mn=_n.activeKey,Gt=_n.selectedKeys,ze=Bt.eventKey,ct=Bt.subMenuKey;return{active:mn[ct]===ze,isSelected:Gt.indexOf(ze)!==-1}})(Ie),qe=be,Lt=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(){var Gt;return Object(W.a)(this,mn),Gt=Bt.apply(this,arguments),Gt.renderInnerMenuItem=function(ze){var ct=Gt.props,Sn=ct.renderMenuItem,qt=ct.index;return Sn(ze,qt,Gt.props.subMenuKey)},Gt}return Object(k.a)(mn,[{key:"render",value:function(){var ze=Object(b.a)({},this.props),ct=ze.className,Sn=ct===void 0?"":ct,qt=ze.rootPrefixCls,Gn="".concat(qt,"-item-group-title"),qn="".concat(qt,"-item-group-list"),Mt=ze.title,Nn=ze.children;return le.forEach(function(Bn){return delete ze[Bn]}),delete ze.onClick,delete ze.direction,M.createElement("li",Object.assign({},ze,{className:"".concat(Sn," ").concat(qt,"-item-group")}),M.createElement("div",{className:Gn,title:typeof Mt=="string"?Mt:void 0},Mt),M.createElement("ul",{className:qn},M.Children.map(Nn,this.renderInnerMenuItem)))}}]),mn}(M.Component);Lt.isMenuItemGroup=!0,Lt.defaultProps={disabled:!0};var nn=Lt,$n=function(Bt){var mn=Bt.className,Gt=Bt.rootPrefixCls,ze=Bt.style;return M.createElement("li",{className:"".concat(mn," ").concat(Gt,"-item-divider"),style:ze})};$n.defaultProps={disabled:!0,className:"",style:{}};var ta=$n,Sa=re.e=Me},"24YM":function(Ge,re,y){"use strict";Object.defineProperty(re,"__esModule",{value:!0}),re.SensorTabIndex=re.SensorClassName=re.SizeSensorId=void 0;var Q="size-sensor-id";re.SizeSensorId=Q;var W="size-sensor-object";re.SensorClassName=W;var k="-1";re.SensorTabIndex=k},"24hK":function(Ge,re,y){"use strict";y.d(re,"a",function(){return W});class Q{constructor(k){this.element=k,this.next=Q.Undefined,this.prev=Q.Undefined}}Q.Undefined=new Q(void 0);class W{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let k=this._first;for(;k!==Q.Undefined;){const B=k.next;k.prev=Q.Undefined,k.next=Q.Undefined,k=B}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(k){return this._insert(k,!1)}push(k){return this._insert(k,!0)}_insert(k,B){const O=new Q(k);if(this._first===Q.Undefined)this._first=O,this._last=O;else if(B){const M=this._last;this._last=O,O.prev=M,M.next=O}else{const M=this._first;this._first=O,O.next=M,M.prev=O}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(O))}}shift(){if(this._first===Q.Undefined)return;{const k=this._first.element;return this._remove(this._first),k}}pop(){if(this._last===Q.Undefined)return;{const k=this._last.element;return this._remove(this._last),k}}_remove(k){if(k.prev!==Q.Undefined&&k.next!==Q.Undefined){const B=k.prev;B.next=k.next,k.next.prev=B}else k.prev===Q.Undefined&&k.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):k.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):k.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let k=this._first;for(;k!==Q.Undefined;)yield k.element,k=k.next}}},"2DNl":function(Ge,re,y){var Q=y("IMiH"),W=y("loD1"),k=y("59Ip"),B=y("aKvl"),O=y("n1HI"),R=y("hX1E"),M=R.normalizeRadian,p=y("Sj9i"),a=y("hyiK"),b=Q.CMD,u=Math.PI*2,d=1e-4;function m(C,v){return Math.abs(C-v)v&&E>_&&E>g&&E>T||E1&&f(),H=p.cubicAt(v,_,g,T,c[0]),P>1&&(N=p.cubicAt(v,_,g,T,c[1]))),P===2?Gv&&T>_&&T>g||T=0&&E<=1){for(var U=0,F=p.quadraticAt(v,_,g,E),P=0;Pn||T<-n)return 0;var S=Math.sqrt(n*n-T*T);o[0]=-S,o[1]=S;var E=Math.abs(_-h);if(E<1e-4)return 0;if(E%u<1e-4){_=0,h=u;var U=g?1:-1;return x>=o[0]+C&&x<=o[1]+C?U:0}if(g){var S=_;_=M(h),h=M(S)}else _=M(_),h=M(h);_>h&&(h+=u);for(var F=0,P=0;P<2;P++){var H=o[P];if(H+C>x){var N=Math.atan2(T,H),U=g?1:-1;N<0&&(N=u+N),(N>=_&&N<=h||N+u>=_&&N+u<=h)&&(N>Math.PI/2&&N1&&(n||(g+=a(x,T,S,E,_,h))),U===1&&(x=C[U],T=C[U+1],S=x,E=T);switch(F){case b.M:S=C[U++],E=C[U++],x=S,T=E;break;case b.L:if(n){if(W.containStroke(x,T,C[U],C[U+1],v,_,h))return!0}else g+=a(x,T,C[U],C[U+1],_,h)||0;x=C[U++],T=C[U++];break;case b.C:if(n){if(k.containStroke(x,T,C[U++],C[U++],C[U++],C[U++],C[U],C[U+1],v,_,h))return!0}else g+=i(x,T,C[U++],C[U++],C[U++],C[U++],C[U],C[U+1],_,h)||0;x=C[U++],T=C[U++];break;case b.Q:if(n){if(B.containStroke(x,T,C[U++],C[U++],C[U],C[U+1],v,_,h))return!0}else g+=t(x,T,C[U++],C[U++],C[U],C[U+1],_,h)||0;x=C[U++],T=C[U++];break;case b.A:var P=C[U++],H=C[U++],N=C[U++],A=C[U++],G=C[U++],K=C[U++];U+=1;var $=1-C[U++],ie=Math.cos(G)*N+P,le=Math.sin(G)*A+H;U>1?g+=a(x,T,ie,le,_,h):(S=ie,E=le);var de=(_-P)*A/N+P;if(n){if(O.containStroke(P,H,A,G,G+K,$,v,de,h))return!0}else g+=l(P,H,A,G,G+K,$,de,h);x=Math.cos(G+K)*N+P,T=Math.sin(G+K)*A+H;break;case b.R:S=x=C[U++],E=T=C[U++];var Se=C[U++],He=C[U++],ie=S+Se,le=E+He;if(n){if(W.containStroke(S,E,ie,E,v,_,h)||W.containStroke(ie,E,ie,le,v,_,h)||W.containStroke(ie,le,S,le,v,_,h)||W.containStroke(S,le,S,E,v,_,h))return!0}else g+=a(ie,E,ie,le,_,h),g+=a(S,le,S,E,_,h);break;case b.Z:if(n){if(W.containStroke(x,T,S,E,v,_,h))return!0}else g+=a(x,T,S,E,_,h);x=S,T=E;break}}return!n&&!m(T,E)&&(g+=a(x,T,S,E,_,h)||0),g!==0}function w(C,v,n){return s(C,0,!1,v,n)}function D(C,v,n,_){return s(C,v,!0,n,_)}re.contain=w,re.containStroke=D},"2JKx":function(Ge,re,y){Ge.exports={flex_box_center:"flex_box_center___21flX",flex_space_between:"flex_space_between___hkcwT",flex_box_vertical_center:"flex_box_vertical_center___1JAyR",flex_box_center_end:"flex_box_center_end___2trjo",flex_box_column:"flex_box_column___2q5e9",form:"form___1j7IG",efficiency:"efficiency___KDh-I",ipItem:"ipItem___2NlCp",ipWrp:"ipWrp___2kiZa"}},"2fw6":function(Ge,re,y){var Q=y("y+Vt"),W=Q.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(k,B,O){O&&k.moveTo(B.cx+B.r,B.cy),k.arc(B.cx,B.cy,B.r,0,Math.PI*2,!0)}});Ge.exports=W},"3/fG":function(Ge,re,y){"use strict";y.d(re,"a",function(){return W});function Q(k,B){let O;return B.length===0?O=k:O=k.replace(/\{(\d+)\}/g,function(R,M){const p=M[0];return typeof B[p]!="undefined"?B[p]:R}),O}function W(k,B,...O){return Q(B,O)}},"3C/r":function(Ge,re){var y=function(W,k){this.image=W,this.repeat=k,this.type="pattern"};y.prototype.getCanvasPattern=function(W){return W.createPattern(this.image,this.repeat||"repeat")};var Q=y;Ge.exports=Q},"3CBa":function(Ge,re,y){var Q=y("hydK"),W=Q.createElement,k=y("bYtY"),B=y("SUKs"),O=y("y+Vt"),R=y("Dagg"),M=y("dqUG"),p=y("DBLp"),a=y("sW+o"),b=y("n6Mw"),u=y("vKoX"),d=y("P47w"),m=d.path,o=d.image,c=d.text;function f(h){return parseInt(h,10)}function i(h){return h instanceof O?m:h instanceof R?o:h instanceof M?c:m}function t(h,g){return g&&h&&g.parentNode!==h}function l(h,g,x){if(t(h,g)&&x){var T=x.nextSibling;T?h.insertBefore(g,T):h.appendChild(g)}}function s(h,g){if(t(h,g)){var x=h.firstChild;x?h.insertBefore(g,x):h.appendChild(g)}}function w(h,g){g&&h&&g.parentNode===h&&h.removeChild(g)}function D(h){return h.__textSvgEl}function C(h){return h.__svgEl}var v=function(h,g,x,T){this.root=h,this.storage=g,this._opts=x=k.extend({},x||{});var S=W("svg");S.setAttribute("xmlns","http://www.w3.org/2000/svg"),S.setAttribute("version","1.1"),S.setAttribute("baseProfile","full"),S.style.cssText="user-select:none;position:absolute;left:0;top:0;";var E=W("g");S.appendChild(E);var U=W("g");S.appendChild(U),this.gradientManager=new a(T,U),this.clipPathManager=new b(T,U),this.shadowManager=new u(T,U);var F=document.createElement("div");F.style.cssText="overflow:hidden;position:relative",this._svgDom=S,this._svgRoot=U,this._backgroundRoot=E,this._viewport=F,h.appendChild(F),F.appendChild(S),this.resize(x.width,x.height),this._visibleList=[]};v.prototype={constructor:v,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var h=this.getViewportRoot();if(h)return{offsetLeft:h.offsetLeft||0,offsetTop:h.offsetTop||0}},refresh:function(){var h=this.storage.getDisplayList(!0);this._paintList(h)},setBackgroundColor:function(h){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var g=W("rect");g.setAttribute("width",this.getWidth()),g.setAttribute("height",this.getHeight()),g.setAttribute("x",0),g.setAttribute("y",0),g.setAttribute("id",0),g.style.fill=h,this._backgroundRoot.appendChild(g),this._backgroundNode=g},_paintList:function(h){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var g=this._svgRoot,x=this._visibleList,T=h.length,S=[],E;for(E=0;E=0;--U)if(E[U]===S)return!0;return!1}),x}else return null;else return x[0]},resize:function(h,g){var x=this._viewport;x.style.display="none";var T=this._opts;if(h!=null&&(T.width=h),g!=null&&(T.height=g),h=this._getSize(0),g=this._getSize(1),x.style.display="",this._width!==h||this._height!==g){this._width=h,this._height=g;var S=x.style;S.width=h+"px",S.height=g+"px";var E=this._svgDom;E.setAttribute("width",h),E.setAttribute("height",g)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",h),this._backgroundNode.setAttribute("height",g))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(h){var g=this._opts,x=["width","height"][h],T=["clientWidth","clientHeight"][h],S=["paddingLeft","paddingTop"][h],E=["paddingRight","paddingBottom"][h];if(g[x]!=null&&g[x]!=="auto")return parseFloat(g[x]);var U=this.root,F=document.defaultView.getComputedStyle(U);return(U[T]||f(F[x])||f(U.style[x]))-(f(F[S])||0)-(f(F[E])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var h=encodeURIComponent(this._svgDom.outerHTML.replace(/> -\r<`));return"data:image/svg+xml;charset=UTF-8,"+h}};function n(h){return function(){B('In SVG mode painter not support method "'+h+'"')}}k.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(h){v.prototype[h]=n(h)});var _=v;Ge.exports=_},"3e3G":function(Ge,re,y){var Q=y("bYtY"),W=y("QuXc"),k=function(O,R,M,p,a){this.x=O==null?.5:O,this.y=R==null?.5:R,this.r=M==null?.5:M,this.type="radial",this.global=a||!1,W.call(this,p)};k.prototype={constructor:k},Q.inherits(k,W);var B=k;Ge.exports=B},"3gBT":function(Ge,re){var y=2311;function Q(){return y++}Ge.exports=Q},"4fz+":function(Ge,re,y){var Q=y("bYtY"),W=y("1bdT"),k=y("mFDi"),B=function(R){R=R||{},W.call(this,R);for(var M in R)R.hasOwnProperty(M)&&(this[M]=R[M]);this._children=[],this.__storage=null,this.__dirty=!0};B.prototype={constructor:B,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(R){return this._children[R]},childOfName:function(R){for(var M=this._children,p=0;p=0&&(p.splice(a,0,R),this._doAdd(R))}return this},_doAdd:function(R){R.parent&&R.parent.remove(R),R.parent=this;var M=this.__storage,p=this.__zr;M&&M!==R.__storage&&(M.addToStorage(R),R instanceof B&&R.addChildrenToStorage(M)),p&&p.refresh()},remove:function(R){var M=this.__zr,p=this.__storage,a=this._children,b=Q.indexOf(a,R);return b<0?this:(a.splice(b,1),R.parent=null,p&&(p.delFromStorage(R),R instanceof B&&R.delChildrenFromStorage(p)),M&&M.refresh(),this)},removeAll:function(){var R=this._children,M=this.__storage,p,a;for(a=0;a1e-4){n[0]=t-s,n[1]=l-w,_[0]=t+s,_[1]=l+w;return}if(p[0]=R(D)*s+t,p[1]=O(D)*w+l,a[0]=R(C)*s+t,a[1]=O(C)*w+l,h(n,p,a),g(_,p,a),D=D%M,D<0&&(D=D+M),C=C%M,C<0&&(C=C+M),D>C&&!v?C+=M:DD&&(b[0]=R(S)*s+t,b[1]=O(S)*w+l,h(n,b,n),g(_,b,_))}re.fromPoints=u,re.fromLine=d,re.fromCubic=c,re.fromQuadratic=f,re.fromArc=i},"4qgm":function(Ge,re){Ge.exports="data:image/png;base64,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"},"4u4S":function(Ge,re){Ge.exports="data:image/png;base64,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"},"51gm":function(Ge,re,y){Ge.exports={title:"title___1NT0J",wrap:"wrap___2hvUc"}},"55Ip":function(Ge,re,y){"use strict";y.d(re,"a",function(){return l});var Q=y("Ty5D"),W=y("dI71"),k=y("q1tI"),B=y.n(k),O=y("YS25"),R=y("17x9"),M=y.n(R),p=y("wx14"),a=y("zLVn"),b=y("9R94"),u=function(h){Object(W.a)(g,h);function g(){for(var T,S=arguments.length,E=new Array(S),U=0;UB+o&&m>R+o&&m>p+o&&m>b+o||mk+o&&d>O+o&&d>M+o&&d>a+o||d=0||S.relatedTarget.className.indexOf("".concat(P,"-next"))>=0))return;h.setState({goInputText:""}),F(h.getValidValue())},h.go=function(S){var E=h.state.goInputText;if(E==="")return;(S.keyCode===o.ENTER||S.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(O.a)(_,[{key:"getValidValue",value:function(){var g=this.state,x=g.goInputText,T=g.current;return!x||isNaN(x)?T:Number(x)}},{key:"getPageSizeOptions",value:function(){var g=this.props,x=g.pageSize,T=g.pageSizeOptions;return T.some(function(S){return S.toString()===x.toString()})?T:T.concat([x.toString()]).sort(function(S,E){var U=isNaN(Number(S))?0:Number(S),F=isNaN(Number(E))?0:Number(E);return U-F})}},{key:"render",value:function(){var g=this,x=this.props,T=x.pageSize,S=x.locale,E=x.rootPrefixCls,U=x.changeSize,F=x.quickGo,P=x.goButton,H=x.selectComponentClass,N=x.buildOptionText,A=x.selectPrefixCls,G=x.disabled,K=this.state.goInputText,$="".concat(E,"-options"),ie=H,le=null,de=null,Se=null;if(!U&&!F)return null;var He=this.getPageSizeOptions();if(U&&ie){var et=He.map(function(je,me){return a.a.createElement(ie.Option,{key:me,value:je.toString()},(N||g.buildOptionText)(je))});le=a.a.createElement(ie,{disabled:G,prefixCls:A,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(T||He[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},et)}return F&&(P&&(Se=typeof P=="boolean"?a.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:G,className:"".concat($,"-quick-jumper-button")},S.jump_to_confirm):a.a.createElement("span",{onClick:this.go,onKeyUp:this.go},P)),de=a.a.createElement("div",{className:"".concat($,"-quick-jumper")},S.jump_to,a.a.createElement("input",{disabled:G,type:"text",value:K,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),S.page,Se)),a.a.createElement("li",{className:"".concat($)},le,de)}}]),_}(a.a.Component);c.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=c,i=y("N2Kk");function t(){}function l(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function s(v,n,_){return _}function w(v,n,_){var h=typeof v=="undefined"?n.pageSize:v;return Math.floor((_.total-1)/h)+1}var D=function(v){Object(R.a)(_,v);var n=Object(M.a)(_);function _(h){var g;Object(B.a)(this,_),g=n.call(this,h),g.getJumpPrevPage=function(){return Math.max(1,g.state.current-(g.props.showLessItems?3:5))},g.getJumpNextPage=function(){return Math.min(w(void 0,g.state,g.props),g.state.current+(g.props.showLessItems?3:5))},g.getItemIcon=function(U,F){var P=g.props.prefixCls,H=U||a.a.createElement("button",{type:"button","aria-label":F,className:"".concat(P,"-item-link")});return typeof U=="function"&&(H=a.a.createElement(U,Object(k.a)({},g.props))),H},g.savePaginationNode=function(U){g.paginationNode=U},g.isValid=function(U){return l(U)&&U!==g.state.current},g.shouldDisplayQuickJumper=function(){var U=g.props,F=U.showQuickJumper,P=U.pageSize,H=U.total;return H<=P?!1:F},g.handleKeyDown=function(U){(U.keyCode===o.ARROW_UP||U.keyCode===o.ARROW_DOWN)&&U.preventDefault()},g.handleKeyUp=function(U){var F=g.getValidValue(U),P=g.state.currentInputValue;F!==P&&g.setState({currentInputValue:F}),U.keyCode===o.ENTER?g.handleChange(F):U.keyCode===o.ARROW_UP?g.handleChange(F-1):U.keyCode===o.ARROW_DOWN&&g.handleChange(F+1)},g.changePageSize=function(U){var F=g.state.current,P=w(U,g.state,g.props);F=F>P?P:F,P===0&&(F=g.state.current),typeof U=="number"&&("pageSize"in g.props||g.setState({pageSize:U}),"current"in g.props||g.setState({current:F,currentInputValue:F})),g.props.onShowSizeChange(F,U),"onChange"in g.props&&g.props.onChange&&g.props.onChange(F,U)},g.handleChange=function(U){var F=g.props.disabled,P=U;if(g.isValid(P)&&!F){var H=w(void 0,g.state,g.props);P>H?P=H:P<1&&(P=1),"current"in g.props||g.setState({current:P,currentInputValue:P});var N=g.state.pageSize;return g.props.onChange(P,N),P}return g.state.current},g.prev=function(){g.hasPrev()&&g.handleChange(g.state.current-1)},g.next=function(){g.hasNext()&&g.handleChange(g.state.current+1)},g.jumpPrev=function(){g.handleChange(g.getJumpPrevPage())},g.jumpNext=function(){g.handleChange(g.getJumpNextPage())},g.hasPrev=function(){return g.state.current>1},g.hasNext=function(){return g.state.current2?P-2:0),N=2;N=T?E=T:E=Number(x),E}},{key:"getShowSizeChanger",value:function(){var g=this.props,x=g.showSizeChanger,T=g.total,S=g.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:T>S}},{key:"renderPrev",value:function(g){var x=this.props,T=x.prevIcon,S=x.itemRender,E=S(g,"prev",this.getItemIcon(T,"prev page")),U=!this.hasPrev();return Object(p.isValidElement)(E)?Object(p.cloneElement)(E,{disabled:U}):E}},{key:"renderNext",value:function(g){var x=this.props,T=x.nextIcon,S=x.itemRender,E=S(g,"next",this.getItemIcon(T,"next page")),U=!this.hasNext();return Object(p.isValidElement)(E)?Object(p.cloneElement)(E,{disabled:U}):E}},{key:"render",value:function(){var g=this,x=this.props,T=x.prefixCls,S=x.className,E=x.style,U=x.disabled,F=x.hideOnSinglePage,P=x.total,H=x.locale,N=x.showQuickJumper,A=x.showLessItems,G=x.showTitle,K=x.showTotal,$=x.simple,ie=x.itemRender,le=x.showPrevNextJumpers,de=x.jumpPrevIcon,Se=x.jumpNextIcon,He=x.selectComponentClass,et=x.selectPrefixCls,je=x.pageSizeOptions,me=this.state,fe=me.current,Ae=me.pageSize,he=me.currentInputValue;if(F===!0&&P<=Ae)return null;var Ue=w(void 0,this.state,this.props),st=[],Ve=null,dt=null,Qe=null,pe=null,xe=null,Le=N&&N.goButton,Ye=A?1:2,gt=fe-1>0?fe-1:0,Ct=fe+1=Ye*2&&fe!==1+2&&(st[0]=Object(p.cloneElement)(st[0],{className:"".concat(T,"-item-after-jump-prev")}),st.unshift(Ve)),Ue-fe>=Ye*2&&fe!==Ue-2&&(st[st.length-1]=Object(p.cloneElement)(st[st.length-1],{className:"".concat(T,"-item-before-jump-next")}),st.push(dt)),on!==1&&st.unshift(Qe),hn!==Ue&&st.push(pe)}var ht=null;K&&(ht=a.a.createElement("li",{className:"".concat(T,"-total-text")},K(P,[P===0?0:(fe-1)*Ae+1,fe*Ae>P?P:fe*Ae])));var Je=!this.hasPrev()||!Ue,rt=!this.hasNext()||!Ue;return a.a.createElement("ul",Object(Q.a)({className:u()(T,S,Object(W.a)({},"".concat(T,"-disabled"),U)),style:E,unselectable:"unselectable",ref:this.savePaginationNode},tn),ht,a.a.createElement("li",{title:G?H.prev_page:null,onClick:this.prev,tabIndex:Je?null:0,onKeyPress:this.runIfEnterPrev,className:u()("".concat(T,"-prev"),Object(W.a)({},"".concat(T,"-disabled"),Je)),"aria-disabled":Je},this.renderPrev(gt)),st,a.a.createElement("li",{title:G?H.next_page:null,onClick:this.next,tabIndex:rt?null:0,onKeyPress:this.runIfEnterNext,className:u()("".concat(T,"-next"),Object(W.a)({},"".concat(T,"-disabled"),rt)),"aria-disabled":rt},this.renderNext(Ct)),a.a.createElement(f,{disabled:U,locale:H,rootPrefixCls:T,selectComponentClass:He,selectPrefixCls:et,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:fe,pageSize:Ae,pageSizeOptions:je,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Le}))}}],[{key:"getDerivedStateFromProps",value:function(g,x){var T={};if("current"in g&&(T.current=g.current,g.current!==x.current&&(T.currentInputValue=T.current)),"pageSize"in g&&g.pageSize!==x.pageSize){var S=x.current,E=w(g.pageSize,x,g);S=S>E?E:S,"current"in g||(T.current=S,T.currentInputValue=S),T.pageSize=g.pageSize}return T}}]),_}(a.a.Component);D.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:t,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:t,locale:i.a,style:{},itemRender:s,totalBoundaryShowSizeChanger:50};var C=D},"6GrX":function(Ge,re,y){var Q=y("mFDi"),W=y("Xnb7"),k=y("bYtY"),B=k.getContext,O=k.extend,R=k.retrieve2,M=k.retrieve3,p=k.trim,a={},b=0,u=5e3,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,m="12px sans-serif",o={};function c(F,P){o[F]=P}function f(F,P){P=P||m;var H=F+":"+P;if(a[H])return a[H];for(var N=(F+"").split(` +`+d.stack):d},0)}}emit(d){this.listeners.forEach(m=>{m(d)})}onUnexpectedError(d){this.unexpectedErrorHandler(d),this.emit(d)}onUnexpectedExternalError(d){this.unexpectedErrorHandler(d)}}const W=new Q;function k(d){M(d)||W.onUnexpectedError(d);return}function B(d){M(d)||W.onUnexpectedExternalError(d);return}function O(d){if(d instanceof Error){let{name:m,message:o}=d;const c=d.stacktrace||d.stack;return{$isError:!0,name:m,message:o,stack:c}}return d}const R="Canceled";function M(d){return d instanceof Error&&d.name===R&&d.message===R}function p(){const d=new Error(R);return d.name=d.message,d}function a(d){return d?new Error(`Illegal argument: ${d}`):new Error("Illegal argument")}function b(d){return d?new Error(`Illegal state: ${d}`):new Error("Illegal state")}class u extends Error{constructor(d){super("NotSupported");d&&(this.message=d)}}},"06Qe":function(Ge,re,y){var Q=y("ItGF"),W="urn:schemas-microsoft-com:vml",k=typeof window=="undefined"?null:window,B=!1,O=k&&k.document;function R(a){return M(a)}var M;if(O&&!Q.canvasSupported)try{!O.namespaces.zrvml&&O.namespaces.add("zrvml",W),M=function(a){return O.createElement("')}}catch(a){M=function(b){return O.createElement("<"+b+' xmlns="'+W+'" class="zrvml">')}}function p(){if(B||!O)return;B=!0;var a=O.styleSheets;a.length<31?O.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}re.doc=O,re.createNode=R,re.initVML=p},"0eGx":function(Ge,re,y){Ge.exports=y.p+"static/zhong.c1924b73.svg"},"0r65":function(Ge,re){var y=arguments[3],Q=arguments[4],W=arguments[5],k=JSON.stringify;Ge.exports=function(B,O){for(var R,M=Object.keys(W),p=0,a=M.length;p=0;w--){var D;if(l[w]!==t&&!l[w].ignore&&(D=m(l[w],f,i))&&(!s.topTarget&&(s.topTarget=l[w]),D!==M)){s.target=l[w];break}}return s},processGesture:function(f,i){this._gestureMgr||(this._gestureMgr=new R);var t=this._gestureMgr;i==="start"&&t.clear();var l=t.recognize(f,this.findHover(f.zrX,f.zrY,null).target,this.proxy.dom);if(i==="end"&&t.clear(),l){var s=l.type;f.gestureEvent=s,this.dispatchToElement({target:l.target},s,l.event)}}},Q.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(f){d.prototype[f]=function(i){var t=i.zrX,l=i.zrY,s=o(this,t,l),w,D;if((f!=="mouseup"||!s)&&(w=this.findHover(t,l),D=w.target),f==="mousedown")this._downEl=D,this._downPoint=[i.zrX,i.zrY],this._upEl=D;else if(f==="mouseup")this._upEl=D;else if(f==="click"){if(this._downEl!==this._upEl||!this._downPoint||W.dist(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(w,f,i)}});function m(f,i,t){if(f[f.rectHover?"rectContain":"contain"](i,t)){for(var l=f,s;l;){if(l.clipPath&&!l.clipPath.contain(i,t))return!1;l.silent&&(s=!0),l=l.parent}return s?M:!0}return!1}function o(f,i,t){var l=f.painter;return i<0||i>l.getWidth()||t<0||t>l.getHeight()}Q.mixin(d,B),Q.mixin(d,k);var c=d;Ge.exports=c},"19Vz":function(Ge,re,y){(function(Q){Q(y("VrN/"))})(function(Q){Q.defineOption("placeholder","",function(p,a,b){var u=b&&b!=Q.Init;if(a&&!u)p.on("blur",O),p.on("change",R),p.on("swapDoc",R),Q.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){B(p)}),R(p);else if(!a&&u){p.off("blur",O),p.off("change",R),p.off("swapDoc",R),Q.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),W(p);var d=p.getWrapperElement();d.className=d.className.replace(" CodeMirror-empty","")}a&&!p.hasFocus()&&O(p)});function W(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function k(p){W(p);var a=p.state.placeholder=document.createElement("pre");a.style.cssText="height: 0; overflow: visible",a.style.direction=p.getOption("direction"),a.className="CodeMirror-placeholder CodeMirror-line-like";var b=p.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),a.appendChild(b),p.display.lineSpace.insertBefore(a,p.display.lineSpace.firstChild)}function B(p){setTimeout(function(){var a=!1,b=p.getInputField();b.nodeName=="TEXTAREA"?a=!b.value:p.lineCount()==1&&(a=!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)),a?k(p):W(p)},20)}function O(p){M(p)&&k(p)}function R(p){var a=p.getWrapperElement(),b=M(p);a.className=a.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?k(p):W(p)}function M(p){return p.lineCount()===1&&p.getLine(0)===""}})},"1Jh7":function(Ge,re,y){var Q=y("y+Vt"),W=y("T6xi"),k=Q.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(B,O){W.buildPath(B,O,!1)}});Ge.exports=k},"1MYJ":function(Ge,re,y){var Q=y("y+Vt"),W=Q.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var k=this.__dirtyPath,B=this.shape.paths,O=0;O=this._maxSize&&u>0){var m=p.head;p.remove(m),delete a[m.key],b=m.value,this._lastRemovedEntry=m}d?d.value=M:d=new W(M),d.key=R,p.insertEntry(d),a[R]=d}return b},B.get=function(R){var M=this._map[R],p=this._list;if(M!=null)return M!==p.tail&&(p.remove(M),p.insertEntry(M)),M.value},B.clear=function(){this._list.clear(),this._map={}};var O=k;Ge.exports=O},"1bdT":function(Ge,re,y){var Q=y("3gBT"),W=y("H6uX"),k=y("DN4a"),B=y("vWvF"),O=y("bYtY"),R=function(p){k.call(this,p),W.call(this,p),B.call(this,p),this.id=p.id||Q()};R.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(p,a){switch(this.draggable){case"horizontal":a=0;break;case"vertical":p=0;break}var b=this.transform;b||(b=this.transform=[1,0,0,1,0,0]),b[4]+=p,b[5]+=a,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(p,a){},attrKV:function(p,a){if(p==="position"||p==="scale"||p==="origin"){if(a){var b=this[p];b||(b=this[p]=[]),b[0]=a[0],b[1]=a[1]}}else this[p]=a},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(p,a){if(typeof p=="string")this.attrKV(p,a);else if(O.isObject(p))for(var b in p)p.hasOwnProperty(b)&&this.attrKV(b,p[b]);return this.dirty(!1),this},setClipPath:function(p){var a=this.__zr;a&&p.addSelfToZr(a),this.clipPath&&this.clipPath!==p&&this.removeClipPath(),this.clipPath=p,p.__zr=a,p.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var p=this.clipPath;p&&(p.__zr&&p.removeSelfFromZr(p.__zr),p.__zr=null,p.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(p){this.__zr=p;var a=this.animators;if(a)for(var b=0;b")):null:x.match("--")?S(c("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),S(f(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),T.tokenize=c("meta","?>"),"meta"):(b=x.eat("/")?"closeTag":"openTag",T.tokenize=m,"tag bracket");if(E=="&"){var U;return x.eat("#")?x.eat("x")?U=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):U=x.eatWhile(/[\d]/)&&x.eat(";"):U=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),U?"atom":"error"}else return x.eatWhile(/[^&<]/),null}d.isInText=!0;function m(x,T){var S=x.next();if(S==">"||S=="/"&&x.eat(">"))return T.tokenize=d,b=S==">"?"endTag":"selfcloseTag","tag bracket";if(S=="=")return b="equals",null;if(S=="<"){T.tokenize=d,T.state=s,T.tagName=T.tagStart=null;var E=T.tokenize(x,T);return E?E+" tag error":"tag error"}else return/[\'\"]/.test(S)?(T.tokenize=o(S),T.stringStartCol=x.column(),T.tokenize(x,T)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function o(x){var T=function(S,E){for(;!S.eol();)if(S.next()==x){E.tokenize=m;break}return"string"};return T.isInAttribute=!0,T}function c(x,T){return function(S,E){for(;!S.eol();){if(S.match(T)){E.tokenize=d;break}S.next()}return x}}function f(x){return function(T,S){for(var E;(E=T.next())!=null;){if(E=="<")return S.tokenize=f(x+1),S.tokenize(T,S);if(E==">")if(x==1){S.tokenize=d;break}else return S.tokenize=f(x-1),S.tokenize(T,S)}return"meta"}}function i(x,T,S){this.prev=x.context,this.tagName=T,this.indent=x.indented,this.startOfLine=S,(M.doNotIndent.hasOwnProperty(T)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function t(x){x.context&&(x.context=x.context.prev)}function l(x,T){for(var S;;){if(!x.context)return;if(S=x.context.tagName,!M.contextGrabbers.hasOwnProperty(S)||!M.contextGrabbers[S].hasOwnProperty(T))return;t(x)}}function s(x,T,S){return x=="openTag"?(S.tagStart=T.column(),w):x=="closeTag"?D:s}function w(x,T,S){return x=="word"?(S.tagName=T.current(),u="tag",n):M.allowMissingTagName&&x=="endTag"?(u="tag bracket",n(x,T,S)):(u="error",w)}function D(x,T,S){if(x=="word"){var E=T.current();return S.context&&S.context.tagName!=E&&M.implicitlyClosed.hasOwnProperty(S.context.tagName)&&t(S),S.context&&S.context.tagName==E||M.matchClosing===!1?(u="tag",C):(u="tag error",v)}else return M.allowMissingTagName&&x=="endTag"?(u="tag bracket",C(x,T,S)):(u="error",v)}function C(x,T,S){return x!="endTag"?(u="error",C):(t(S),s)}function v(x,T,S){return u="error",C(x,T,S)}function n(x,T,S){if(x=="word")return u="attribute",_;if(x=="endTag"||x=="selfcloseTag"){var E=S.tagName,U=S.tagStart;return S.tagName=S.tagStart=null,x=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(E)?l(S,E):(l(S,E),S.context=new i(S,E,U==S.indented)),s}return u="error",n}function _(x,T,S){return x=="equals"?h:(M.allowMissing||(u="error"),n(x,T,S))}function h(x,T,S){return x=="string"?g:x=="word"&&M.allowUnquoted?(u="string",n):(u="error",n(x,T,S))}function g(x,T,S){return x=="string"?g:n(x,T,S)}return{startState:function(x){var T={tokenize:d,state:s,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(T.baseIndent=x),T},token:function(x,T){if(!T.tagName&&x.sol()&&(T.indented=x.indentation()),x.eatSpace())return null;b=null;var S=T.tokenize(x,T);return(S||b)&&S!="comment"&&(u=null,T.state=T.state(b||S,x,T),u&&(S=u=="error"?S+" error":u)),S},indent:function(x,T,S){var E=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+R;if(E&&E.noIndent)return Q.Pass;if(x.tokenize!=m&&x.tokenize!=d)return S?S.match(/^(\s*)/)[0].length:0;if(x.tagName)return M.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+R*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/$/,blockCommentStart:"",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(x){x.state==h&&(x.state=n)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var T=[],S=x.context;S;S=S.prev)S.tagName&&T.push(S.tagName);return T.reverse()}}}),Q.defineMIME("text/xml","xml"),Q.defineMIME("application/xml","xml"),Q.mimeModes.hasOwnProperty("text/html")||Q.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Ge,re,y){"use strict";y.d(re,"d",function(){return gt}),y.d(re,"b",function(){return qe}),y.d(re,"c",function(){return nn}),y.d(re,"a",function(){return ta});var Q=y("VTBJ"),W=y("1OyB"),k=y("vuIU"),B=y("JX7q"),O=y("Ji7U"),R=y("LK+K"),M=y("q1tI"),p=y("I8Z2"),a=y("BGR+"),b=y("wx14"),u=y("rePB"),d=y("4IlW"),m=y("2GS6"),o=y("Gytx"),c=y.n(o),f=y("TSYQ"),i=y.n(f),t=y("U8pU"),l=y("ODXe"),s=/iPhone/i,w=/iPod/i,D=/iPad/i,C=/\bAndroid(?:.+)Mobile\b/i,v=/Android/i,n=/\bAndroid(?:.+)SD4930UR\b/i,_=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,g=/\bWindows(?:.+)ARM\b/i,x=/BlackBerry/i,T=/BB10/i,S=/Opera Mini/i,E=/\b(CriOS|Chrome)(?:.+)Mobile/i,U=/Mobile(?:.+)Firefox\b/i;function F(_n,Bt){return _n.test(Bt)}function P(_n){var Bt=_n||(typeof navigator!="undefined"?navigator.userAgent:""),mn=Bt.split("[FBAN");if(typeof mn[1]!="undefined"){var Gt=mn,ze=Object(l.a)(Gt,1);Bt=ze[0]}if(mn=Bt.split("Twitter"),typeof mn[1]!="undefined"){var ct=mn,Sn=Object(l.a)(ct,1);Bt=Sn[0]}var qt={apple:{phone:F(s,Bt)&&!F(h,Bt),ipod:F(w,Bt),tablet:!F(s,Bt)&&F(D,Bt)&&!F(h,Bt),device:(F(s,Bt)||F(w,Bt)||F(D,Bt))&&!F(h,Bt)},amazon:{phone:F(n,Bt),tablet:!F(n,Bt)&&F(_,Bt),device:F(n,Bt)||F(_,Bt)},android:{phone:!F(h,Bt)&&F(n,Bt)||!F(h,Bt)&&F(C,Bt),tablet:!F(h,Bt)&&!F(n,Bt)&&!F(C,Bt)&&(F(_,Bt)||F(v,Bt)),device:!F(h,Bt)&&(F(n,Bt)||F(_,Bt)||F(C,Bt)||F(v,Bt))||F(/\bokhttp\b/i,Bt)},windows:{phone:F(h,Bt),tablet:F(g,Bt),device:F(h,Bt)||F(g,Bt)},other:{blackberry:F(x,Bt),blackberry10:F(T,Bt),opera:F(S,Bt),firefox:F(U,Bt),chrome:F(E,Bt),device:F(x,Bt)||F(T,Bt)||F(S,Bt)||F(U,Bt)||F(E,Bt)},any:null,phone:null,tablet:null};return qt.any=qt.apple.device||qt.android.device||qt.windows.device||qt.other.device,qt.phone=qt.apple.phone||qt.android.phone||qt.windows.phone,qt.tablet=qt.apple.tablet||qt.android.tablet||qt.windows.tablet,qt}var H=Object(Q.a)(Object(Q.a)({},P()),{},{isMobile:P}),N=H;function A(){}function G(_n,Bt,mn){var Gt=Bt||"";return _n.key||"".concat(Gt,"item_").concat(mn)}function K(_n){return"".concat(_n,"-menu-")}function $(_n,Bt){var mn=-1;M.Children.forEach(_n,function(Gt){mn+=1,Gt&&Gt.type&&Gt.type.isMenuItemGroup?M.Children.forEach(Gt.props.children,function(ze){mn+=1,Bt(ze,mn)}):Bt(Gt,mn)})}function ie(_n,Bt,mn){if(!_n||mn.find)return;M.Children.forEach(_n,function(Gt){if(Gt){var ze=Gt.type;if(!ze||!(ze.isSubMenu||ze.isMenuItem||ze.isMenuItemGroup))return;Bt.indexOf(Gt.key)!==-1?mn.find=!0:Gt.props.children&&ie(Gt.props.children,Bt,mn)}})}var le=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],de=function(Bt){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gt=Bt&&typeof Bt.getBoundingClientRect=="function"&&Bt.getBoundingClientRect().width;if(Gt){if(mn){var ze=getComputedStyle(Bt),ct=ze.marginLeft,Sn=ze.marginRight;Gt+=+ct.replace("px","")+ +Sn.replace("px","")}Gt=+Gt.toFixed(6)}return Gt||0},Se=function(Bt,mn,Gt){Bt&&Object(t.a)(Bt.style)==="object"&&(Bt.style[mn]=Gt)},He=function(){return N.any},et=y("KQm4"),je=y("Ff2n"),me=y("i8i4"),fe=y("bdgK"),Ae=y("uciX"),he=y("8XRh"),Ue={adjustX:1,adjustY:1},st={topLeft:{points:["bl","tl"],overflow:Ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ue,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ue,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ue,offset:[4,0]}},Ve={topLeft:{points:["bl","tl"],overflow:Ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ue,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ue,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ue,offset:[4,0]}},dt=st,Qe=0,pe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},xe=function(Bt,mn,Gt){var ze=K(mn),ct=Bt.getState();Bt.setState({defaultActiveFirst:Object(Q.a)(Object(Q.a)({},ct.defaultActiveFirst),{},Object(u.a)({},ze,Gt))})},Le=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(Gt){var ze;Object(W.a)(this,mn),ze=Bt.call(this,Gt),ze.onDestroy=function(Mt){ze.props.onDestroy(Mt)},ze.onKeyDown=function(Mt){var Nn=Mt.keyCode,Bn=ze.menuInstance,na=ze.props,Ea=na.isOpen,Pe=na.store;if(Nn===d.a.ENTER)return ze.onTitleClick(Mt),xe(Pe,ze.props.eventKey,!0),!0;if(Nn===d.a.RIGHT)return Ea?Bn.onKeyDown(Mt):(ze.triggerOpenChange(!0),xe(Pe,ze.props.eventKey,!0)),!0;if(Nn===d.a.LEFT){var ye;if(Ea)ye=Bn.onKeyDown(Mt);else return;return ye||(ze.triggerOpenChange(!1),ye=!0),ye}return Ea&&(Nn===d.a.UP||Nn===d.a.DOWN)?Bn.onKeyDown(Mt):void 0},ze.onOpenChange=function(Mt){ze.props.onOpenChange(Mt)},ze.onPopupVisibleChange=function(Mt){ze.triggerOpenChange(Mt,Mt?"mouseenter":"mouseleave")},ze.onMouseEnter=function(Mt){var Nn=ze.props,Bn=Nn.eventKey,na=Nn.onMouseEnter,Ea=Nn.store;xe(Ea,ze.props.eventKey,!1),na({key:Bn,domEvent:Mt})},ze.onMouseLeave=function(Mt){var Nn=ze.props,Bn=Nn.parentMenu,na=Nn.eventKey,Ea=Nn.onMouseLeave;Bn.subMenuInstance=Object(B.a)(ze),Ea({key:na,domEvent:Mt})},ze.onTitleMouseEnter=function(Mt){var Nn=ze.props,Bn=Nn.eventKey,na=Nn.onItemHover,Ea=Nn.onTitleMouseEnter;na({key:Bn,hover:!0}),Ea({key:Bn,domEvent:Mt})},ze.onTitleMouseLeave=function(Mt){var Nn=ze.props,Bn=Nn.parentMenu,na=Nn.eventKey,Ea=Nn.onItemHover,Pe=Nn.onTitleMouseLeave;Bn.subMenuInstance=Object(B.a)(ze),Ea({key:na,hover:!1}),Pe({key:na,domEvent:Mt})},ze.onTitleClick=function(Mt){var Nn=Object(B.a)(ze),Bn=Nn.props;if(Bn.onTitleClick({key:Bn.eventKey,domEvent:Mt}),Bn.triggerSubMenuAction==="hover")return;ze.triggerOpenChange(!Bn.isOpen,"click"),xe(Bn.store,ze.props.eventKey,!1)},ze.onSubMenuClick=function(Mt){typeof ze.props.onClick=="function"&&ze.props.onClick(ze.addKeyPath(Mt))},ze.onSelect=function(Mt){ze.props.onSelect(Mt)},ze.onDeselect=function(Mt){ze.props.onDeselect(Mt)},ze.getPrefixCls=function(){return"".concat(ze.props.rootPrefixCls,"-submenu")},ze.getActiveClassName=function(){return"".concat(ze.getPrefixCls(),"-active")},ze.getDisabledClassName=function(){return"".concat(ze.getPrefixCls(),"-disabled")},ze.getSelectedClassName=function(){return"".concat(ze.getPrefixCls(),"-selected")},ze.getOpenClassName=function(){return"".concat(ze.props.rootPrefixCls,"-submenu-open")},ze.saveMenuInstance=function(Mt){ze.menuInstance=Mt},ze.addKeyPath=function(Mt){return Object(Q.a)(Object(Q.a)({},Mt),{},{keyPath:(Mt.keyPath||[]).concat(ze.props.eventKey)})},ze.triggerOpenChange=function(Mt,Nn){var Bn=ze.props.eventKey,na=function(){ze.onOpenChange({key:Bn,item:Object(B.a)(ze),trigger:Nn,open:Mt})};Nn==="mouseenter"?ze.mouseenterTimeout=setTimeout(function(){na()},0):na()},ze.isChildrenSelected=function(){var Mt={find:!1};return ie(ze.props.children,ze.props.selectedKeys,Mt),Mt.find},ze.isOpen=function(){return ze.props.openKeys.indexOf(ze.props.eventKey)!==-1},ze.adjustWidth=function(){if(!ze.subMenuTitle||!ze.menuInstance)return;var Mt=me.findDOMNode(ze.menuInstance);if(Mt.offsetWidth>=ze.subMenuTitle.offsetWidth)return;Mt.style.minWidth="".concat(ze.subMenuTitle.offsetWidth,"px")},ze.saveSubMenuTitle=function(Mt){ze.subMenuTitle=Mt},ze.getBaseProps=function(){var Mt=Object(B.a)(ze),Nn=Mt.props;return{mode:Nn.mode==="horizontal"?"vertical":Nn.mode,visible:ze.props.isOpen,level:Nn.level+1,inlineIndent:Nn.inlineIndent,focusable:!1,onClick:ze.onSubMenuClick,onSelect:ze.onSelect,onDeselect:ze.onDeselect,onDestroy:ze.onDestroy,selectedKeys:Nn.selectedKeys,eventKey:"".concat(Nn.eventKey,"-menu-"),openKeys:Nn.openKeys,motion:Nn.motion,onOpenChange:ze.onOpenChange,subMenuOpenDelay:Nn.subMenuOpenDelay,parentMenu:Object(B.a)(ze),subMenuCloseDelay:Nn.subMenuCloseDelay,forceSubMenuRender:Nn.forceSubMenuRender,triggerSubMenuAction:Nn.triggerSubMenuAction,builtinPlacements:Nn.builtinPlacements,defaultActiveFirst:Nn.store.getState().defaultActiveFirst[K(Nn.eventKey)],multiple:Nn.multiple,prefixCls:Nn.rootPrefixCls,id:ze.internalMenuId,manualRef:ze.saveMenuInstance,itemIcon:Nn.itemIcon,expandIcon:Nn.expandIcon,direction:Nn.direction}},ze.getMotion=function(Mt,Nn){var Bn=Object(B.a)(ze),na=Bn.haveRendered,Ea=ze.props,Pe=Ea.motion,ye=Ea.rootPrefixCls,J=Object(Q.a)(Object(Q.a)({},Pe),{},{leavedClassName:"".concat(ye,"-hidden"),removeOnLeave:!1,motionAppear:na||!Nn||Mt!=="inline"});return J};var ct=Gt.store,Sn=Gt.eventKey,qt=ct.getState(),Gn=qt.defaultActiveFirst;ze.isRootMenu=!1;var qn=!1;return Gn&&(qn=Gn[Sn]),xe(ct,Sn,qn),ze}return Object(k.a)(mn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ze=this,ct=this.props,Sn=ct.mode,qt=ct.parentMenu,Gn=ct.manualRef;if(Gn&&Gn(this),Sn!=="horizontal"||!qt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ze.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ze=this.props,ct=ze.onDestroy,Sn=ze.eventKey;ct&&ct(Sn),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ze){var ct=this,Sn=this.getBaseProps(),qt=this.getMotion(Sn.mode,Sn.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Sn.visible||Sn.forceSubMenuRender,!this.haveOpened)return M.createElement("div",null);var Gn=Sn.direction;return M.createElement(he.default,Object.assign({visible:Sn.visible},qt),function(qn){var Mt=qn.className,Nn=qn.style,Bn=i()("".concat(Sn.prefixCls,"-sub"),Mt,Object(u.a)({},"".concat(Sn.prefixCls,"-rtl"),Gn==="rtl"));return M.createElement(ht,Object.assign({},Sn,{id:ct.internalMenuId,className:Bn,style:Nn}),ze)})}},{key:"render",value:function(){var ze,ct=Object(Q.a)({},this.props),Sn=ct.isOpen,qt=this.getPrefixCls(),Gn=ct.mode==="inline",qn=i()(qt,"".concat(qt,"-").concat(ct.mode),(ze={},Object(u.a)(ze,ct.className,!!ct.className),Object(u.a)(ze,this.getOpenClassName(),Sn),Object(u.a)(ze,this.getActiveClassName(),ct.active||Sn&&!Gn),Object(u.a)(ze,this.getDisabledClassName(),ct.disabled),Object(u.a)(ze,this.getSelectedClassName(),this.isChildrenSelected()),ze));this.internalMenuId||(ct.eventKey?this.internalMenuId="".concat(ct.eventKey,"$Menu"):(Qe+=1,this.internalMenuId="$__$".concat(Qe,"$Menu")));var Mt={},Nn={},Bn={};ct.disabled||(Mt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Nn={onClick:this.onTitleClick},Bn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var na={},Ea=ct.direction;Gn&&(Ea==="rtl"?na.paddingRight=ct.inlineIndent*ct.level:na.paddingLeft=ct.inlineIndent*ct.level);var Pe={};this.props.isOpen&&(Pe={"aria-owns":this.internalMenuId});var ye=null;ct.mode!=="horizontal"&&(ye=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ye=M.createElement(this.props.expandIcon,Object(Q.a)({},this.props))));var J=M.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:na,className:"".concat(qt,"-title"),role:"button"},Bn,Nn,{"aria-expanded":Sn},Pe,{"aria-haspopup":"true",title:typeof ct.title=="string"?ct.title:void 0}),ct.title,ye||M.createElement("i",{className:"".concat(qt,"-arrow")})),q=this.renderChildren(ct.children),Z=ct.parentMenu.isRootMenu?ct.parentMenu.props.getPopupContainer:function(Fa){return Fa.parentNode},oe=pe[ct.mode],Oe=ct.popupOffset?{offset:ct.popupOffset}:{},Re=ct.mode==="inline"?"":ct.popupClassName;Re+=Ea==="rtl"?" ".concat(qt,"-rtl"):"";var ve=ct.disabled,bn=ct.triggerSubMenuAction,kt=ct.subMenuOpenDelay,at=ct.forceSubMenuRender,Ht=ct.subMenuCloseDelay,Fe=ct.builtinPlacements;le.forEach(function(Fa){return delete ct[Fa]}),delete ct.onClick;var Un=Ea==="rtl"?Object.assign({},Ve,Fe):Object.assign({},st,Fe);return delete ct.direction,M.createElement("li",Object.assign({},ct,Mt,{className:qn,role:"menuitem"}),Gn&&J,Gn&&q,!Gn&&M.createElement(Ae.a,{prefixCls:qt,popupClassName:i()("".concat(qt,"-popup"),Re),getPopupContainer:Z,builtinPlacements:Un,popupPlacement:oe,popupVisible:Sn,popupAlign:Oe,popup:q,action:ve?[]:[bn],mouseEnterDelay:kt,mouseLeaveDelay:Ht,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:at},J))}}]),mn}(M.Component);Le.defaultProps={onMouseEnter:A,onMouseLeave:A,onTitleMouseEnter:A,onTitleMouseLeave:A,onTitleClick:A,manualRef:A,mode:"vertical",title:""};var Ye=Object(p.b)(function(_n,Bt){var mn=_n.openKeys,Gt=_n.activeKey,ze=_n.selectedKeys,ct=Bt.eventKey,Sn=Bt.subMenuKey;return{isOpen:mn.indexOf(ct)>-1,active:Gt[Sn]===ct,selectedKeys:ze}})(Le);Ye.isSubMenu=!0;var gt=Ye,Ct="menuitem-overflowed",tn=.5,Zt=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(){var Gt;return Object(W.a)(this,mn),Gt=Bt.apply(this,arguments),Gt.resizeObserver=null,Gt.mutationObserver=null,Gt.originalTotalWidth=0,Gt.overflowedItems=[],Gt.menuItemSizes=[],Gt.cancelFrameId=null,Gt.state={lastVisibleIndex:void 0},Gt.getMenuItemNodes=function(){var ze=Gt.props.prefixCls,ct=me.findDOMNode(Object(B.a)(Gt));return ct?[].slice.call(ct.children).filter(function(Sn){return Sn.className.split(" ").indexOf("".concat(ze,"-overflowed-submenu"))<0}):[]},Gt.getOverflowedSubMenuItem=function(ze,ct,Sn){var qt=Gt.props,Gn=qt.overflowedIndicator,qn=qt.level,Mt=qt.mode,Nn=qt.prefixCls,Bn=qt.theme;if(qn!==1||Mt!=="horizontal")return null;var na=Gt.props.children[0],Ea=na.props,Pe=Ea.children,ye=Ea.title,J=Ea.style,q=Object(je.a)(Ea,["children","title","style"]),Z=Object(Q.a)({},J),oe="".concat(ze,"-overflowed-indicator"),Oe="".concat(ze,"-overflowed-indicator");ct.length===0&&Sn!==!0?Z=Object(Q.a)(Object(Q.a)({},Z),{},{display:"none"}):Sn&&(Z=Object(Q.a)(Object(Q.a)({},Z),{},{visibility:"hidden",position:"absolute"}),oe="".concat(oe,"-placeholder"),Oe="".concat(Oe,"-placeholder"));var Re=Bn?"".concat(Nn,"-").concat(Bn):"",ve={};return le.forEach(function(bn){q[bn]!==void 0&&(ve[bn]=q[bn])}),M.createElement(gt,Object.assign({title:Gn,className:"".concat(Nn,"-overflowed-submenu"),popupClassName:Re},ve,{key:oe,eventKey:Oe,disabled:!1,style:Z}),ct)},Gt.setChildrenWidthAndResize=function(){if(Gt.props.mode!=="horizontal")return;var ze=me.findDOMNode(Object(B.a)(Gt));if(!ze)return;var ct=ze.children;if(!ct||ct.length===0)return;var Sn=ze.children[ct.length-1];Se(Sn,"display","inline-block");var qt=Gt.getMenuItemNodes(),Gn=qt.filter(function(qn){return qn.className.split(" ").indexOf(Ct)>=0});Gn.forEach(function(qn){Se(qn,"display","inline-block")}),Gt.menuItemSizes=qt.map(function(qn){return de(qn,!0)}),Gn.forEach(function(qn){Se(qn,"display","none")}),Gt.overflowedIndicatorWidth=de(ze.children[ze.children.length-1],!0),Gt.originalTotalWidth=Gt.menuItemSizes.reduce(function(qn,Mt){return qn+Mt},0),Gt.handleResize(),Se(Sn,"display","none")},Gt.handleResize=function(){if(Gt.props.mode!=="horizontal")return;var ze=me.findDOMNode(Object(B.a)(Gt));if(!ze)return;var ct=de(ze);Gt.overflowedItems=[];var Sn=0,qt;Gt.originalTotalWidth>ct+tn&&(qt=-1,Gt.menuItemSizes.forEach(function(Gn){Sn+=Gn,Sn+Gt.overflowedIndicatorWidth<=ct&&(qt+=1)})),Gt.setState({lastVisibleIndex:qt})},Gt}return Object(k.a)(mn,[{key:"componentDidMount",value:function(){var ze=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ct=me.findDOMNode(this);if(!ct)return;this.resizeObserver=new fe.default(function(Sn){Sn.forEach(function(){var qt=ze.cancelFrameId;cancelAnimationFrame(qt),ze.cancelFrameId=requestAnimationFrame(ze.setChildrenWidthAndResize)})}),[].slice.call(ct.children).concat(ct).forEach(function(Sn){ze.resizeObserver.observe(Sn)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ze.resizeObserver.disconnect(),[].slice.call(ct.children).concat(ct).forEach(function(Sn){ze.resizeObserver.observe(Sn)}),ze.setChildrenWidthAndResize()}),this.mutationObserver.observe(ct,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ze){var ct=this,Sn=this.state.lastVisibleIndex;return(ze||[]).reduce(function(qt,Gn,qn){var Mt=Gn;if(ct.props.mode==="horizontal"){var Nn=ct.getOverflowedSubMenuItem(Gn.props.eventKey,[]);Sn!==void 0&&ct.props.className.indexOf("".concat(ct.props.prefixCls,"-root"))!==-1&&(qn>Sn&&(Mt=M.cloneElement(Gn,{style:{display:"none"},eventKey:"".concat(Gn.props.eventKey,"-hidden"),className:"".concat(Ct)})),qn===Sn+1&&(ct.overflowedItems=ze.slice(Sn+1).map(function(na){return M.cloneElement(na,{key:na.props.eventKey,mode:"vertical-left"})}),Nn=ct.getOverflowedSubMenuItem(Gn.props.eventKey,ct.overflowedItems)));var Bn=[].concat(Object(et.a)(qt),[Nn,Mt]);return qn===ze.length-1&&Bn.push(ct.getOverflowedSubMenuItem(Gn.props.eventKey,[],!0)),Bn}return[].concat(Object(et.a)(qt),[Mt])},[])}},{key:"render",value:function(){var ze=this.props,ct=ze.visible,Sn=ze.prefixCls,qt=ze.overflowedIndicator,Gn=ze.mode,qn=ze.level,Mt=ze.tag,Nn=ze.children,Bn=ze.theme,na=Object(je.a)(ze,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ea=Mt;return M.createElement(Ea,Object.assign({},na),this.renderChildren(Nn))}}]),mn}(M.Component);Zt.defaultProps={tag:"div",className:""};var Hn=Zt;function ia(_n){return _n.length?_n.every(function(Bt){return!!Bt.props.disabled}):!0}function vt(_n,Bt,mn){var Gt=_n.getState();_n.setState({activeKey:Object(Q.a)(Object(Q.a)({},Gt.activeKey),{},Object(u.a)({},Bt,mn))})}function mt(_n){return _n.eventKey||"0-menu-"}function on(_n,Bt){var mn=Bt,Gt=_n.children,ze=_n.eventKey;if(mn){var ct;if($(Gt,function(Sn,qt){Sn&&Sn.props&&!Sn.props.disabled&&mn===G(Sn,ze,qt)&&(ct=!0)}),ct)return mn}return mn=null,_n.defaultActiveFirst&&$(Gt,function(Sn,qt){!mn&&Sn&&!Sn.props.disabled&&(mn=G(Sn,ze,qt))}),mn}function hn(_n){if(_n){var Bt=this.instanceArray.indexOf(_n);Bt!==-1?this.instanceArray[Bt]=_n:this.instanceArray.push(_n)}}var Ot=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(Gt){var ze;return Object(W.a)(this,mn),ze=Bt.call(this,Gt),ze.onKeyDown=function(ct,Sn){var qt=ct.keyCode,Gn;if(ze.getFlatInstanceArray().forEach(function(Mt){Mt&&Mt.props.active&&Mt.onKeyDown&&(Gn=Mt.onKeyDown(ct))}),Gn)return 1;var qn=null;return(qt===d.a.UP||qt===d.a.DOWN)&&(qn=ze.step(qt===d.a.UP?-1:1)),qn?(ct.preventDefault(),vt(ze.props.store,mt(ze.props),qn.props.eventKey),typeof Sn=="function"&&Sn(qn),1):void 0},ze.onItemHover=function(ct){var Sn=ct.key,qt=ct.hover;vt(ze.props.store,mt(ze.props),qt?Sn:null)},ze.onDeselect=function(ct){ze.props.onDeselect(ct)},ze.onSelect=function(ct){ze.props.onSelect(ct)},ze.onClick=function(ct){ze.props.onClick(ct)},ze.onOpenChange=function(ct){ze.props.onOpenChange(ct)},ze.onDestroy=function(ct){ze.props.onDestroy(ct)},ze.getFlatInstanceArray=function(){return ze.instanceArray},ze.step=function(ct){var Sn=ze.getFlatInstanceArray(),qt=ze.props.store.getState().activeKey[mt(ze.props)],Gn=Sn.length;if(!Gn)return null;ct<0&&(Sn=Sn.concat().reverse());var qn=-1;if(Sn.every(function(na,Ea){return na&&na.props.eventKey===qt?(qn=Ea,!1):!0}),!ze.props.defaultActiveFirst&&qn!==-1&&ia(Sn.slice(qn,Gn-1)))return;var Mt=(qn+1)%Gn,Nn=Mt;do{var Bn=Sn[Nn];if(!Bn||Bn.props.disabled)Nn=(Nn+1)%Gn;else return Bn}while(Nn!==Mt);return null},ze.renderCommonMenuItem=function(ct,Sn,qt){var Gn=ze.props.store.getState(),qn=Object(B.a)(ze),Mt=qn.props,Nn=G(ct,Mt.eventKey,Sn),Bn=ct.props;if(!Bn||typeof ct.type=="string")return ct;var na=Nn===Gn.activeKey,Ea=Object(Q.a)(Object(Q.a)({mode:Bn.mode||Mt.mode,level:Mt.level,inlineIndent:Mt.inlineIndent,renderMenuItem:ze.renderMenuItem,rootPrefixCls:Mt.prefixCls,index:Sn,parentMenu:Mt.parentMenu,manualRef:Bn.disabled?void 0:Object(m.a)(ct.ref,hn.bind(Object(B.a)(ze))),eventKey:Nn,active:!Bn.disabled&&na,multiple:Mt.multiple,onClick:function(ye){(Bn.onClick||A)(ye),ze.onClick(ye)},onItemHover:ze.onItemHover,motion:Mt.motion,subMenuOpenDelay:Mt.subMenuOpenDelay,subMenuCloseDelay:Mt.subMenuCloseDelay,forceSubMenuRender:Mt.forceSubMenuRender,onOpenChange:ze.onOpenChange,onDeselect:ze.onDeselect,onSelect:ze.onSelect,builtinPlacements:Mt.builtinPlacements,itemIcon:Bn.itemIcon||ze.props.itemIcon,expandIcon:Bn.expandIcon||ze.props.expandIcon},qt),{},{direction:Mt.direction});return(Mt.mode==="inline"||He())&&(Ea.triggerSubMenuAction="click"),M.cloneElement(ct,Ea)},ze.renderMenuItem=function(ct,Sn,qt){if(!ct)return null;var Gn=ze.props.store.getState(),qn={openKeys:Gn.openKeys,selectedKeys:Gn.selectedKeys,triggerSubMenuAction:ze.props.triggerSubMenuAction,subMenuKey:qt};return ze.renderCommonMenuItem(ct,Sn,qn)},Gt.store.setState({activeKey:Object(Q.a)(Object(Q.a)({},Gt.store.getState().activeKey),{},Object(u.a)({},Gt.eventKey,on(Gt,Gt.activeKey)))}),ze.instanceArray=[],ze}return Object(k.a)(mn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ze){return this.props.visible||ze.visible||this.props.className!==ze.className||!c()(this.props.style,ze.style)}},{key:"componentDidUpdate",value:function(ze){var ct=this.props,Sn="activeKey"in ct?ct.activeKey:ct.store.getState().activeKey[mt(ct)],qt=on(ct,Sn);if(qt!==Sn)vt(ct.store,mt(ct),qt);else if("activeKey"in ze){var Gn=on(ze,ze.activeKey);qt!==Gn&&vt(ct.store,mt(ct),qt)}}},{key:"render",value:function(){var ze=this,ct=Object(b.a)({},this.props);this.instanceArray=[];var Sn=i()(ct.prefixCls,ct.className,"".concat(ct.prefixCls,"-").concat(ct.mode)),qt={className:Sn,role:ct.role||"menu"};ct.id&&(qt.id=ct.id),ct.focusable&&(qt.tabIndex=0,qt.onKeyDown=this.onKeyDown);var Gn=ct.prefixCls,qn=ct.eventKey,Mt=ct.visible,Nn=ct.level,Bn=ct.mode,na=ct.overflowedIndicator,Ea=ct.theme;return le.forEach(function(Pe){return delete ct[Pe]}),delete ct.onClick,M.createElement(Hn,Object.assign({},ct,{prefixCls:Gn,mode:Bn,tag:"ul",level:Nn,theme:Ea,visible:Mt,overflowedIndicator:na},qt),M.Children.map(ct.children,function(Pe,ye){return ze.renderMenuItem(Pe,ye,qn||"0-menu-")}))}}]),mn}(M.Component);Ot.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:A};var Xt=Object(p.b)()(Ot),ht=Xt,Je=y("Kwbf");function rt(_n,Bt,mn){var Gt=_n.prefixCls,ze=_n.motion,ct=_n.defaultMotions,Sn=ct===void 0?{}:ct,qt=_n.openAnimation,Gn=_n.openTransitionName,qn=Bt.switchingModeFromInline;if(ze)return ze;if(Object(t.a)(qt)==="object"&&qt)Object(Je.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof qt=="string")return{motionName:"".concat(Gt,"-open-").concat(qt)};if(Gn)return{motionName:Gn};var Mt=Sn[mn];return Mt||(qn?null:Sn.other)}var Te=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(Gt){var ze;Object(W.a)(this,mn),ze=Bt.call(this,Gt),ze.inlineOpenKeys=[],ze.onSelect=function(qt){var Gn=Object(B.a)(ze),qn=Gn.props;if(qn.selectable){var Mt=ze.store.getState(),Nn=Mt.selectedKeys,Bn=qt.key;qn.multiple?Nn=Nn.concat([Bn]):Nn=[Bn],"selectedKeys"in qn||ze.store.setState({selectedKeys:Nn}),qn.onSelect(Object(Q.a)(Object(Q.a)({},qt),{},{selectedKeys:Nn}))}},ze.onClick=function(qt){var Gn=ze.getRealMenuMode(),qn=Object(B.a)(ze),Mt=qn.store,Nn=qn.props.onOpenChange;Gn!=="inline"&&!("openKeys"in ze.props)&&(Mt.setState({openKeys:[]}),Nn([])),ze.props.onClick(qt)},ze.onKeyDown=function(qt,Gn){ze.innerMenu.getWrappedInstance().onKeyDown(qt,Gn)},ze.onOpenChange=function(qt){var Gn=Object(B.a)(ze),qn=Gn.props,Mt=ze.store.getState().openKeys.concat(),Nn=!1,Bn=function(Ea){var Pe=!1;if(Ea.open)Pe=Mt.indexOf(Ea.key)===-1,Pe&&Mt.push(Ea.key);else{var ye=Mt.indexOf(Ea.key);Pe=ye!==-1,Pe&&Mt.splice(ye,1)}Nn=Nn||Pe};Array.isArray(qt)?qt.forEach(Bn):Bn(qt),Nn&&("openKeys"in ze.props||ze.store.setState({openKeys:Mt}),qn.onOpenChange(Mt))},ze.onDeselect=function(qt){var Gn=Object(B.a)(ze),qn=Gn.props;if(qn.selectable){var Mt=ze.store.getState().selectedKeys.concat(),Nn=qt.key,Bn=Mt.indexOf(Nn);Bn!==-1&&Mt.splice(Bn,1),"selectedKeys"in qn||ze.store.setState({selectedKeys:Mt}),qn.onDeselect(Object(Q.a)(Object(Q.a)({},qt),{},{selectedKeys:Mt}))}},ze.onMouseEnter=function(qt){ze.restoreModeVerticalFromInline();var Gn=ze.props.onMouseEnter;Gn&&Gn(qt)},ze.onTransitionEnd=function(qt){var Gn=qt.propertyName==="width"&&qt.target===qt.currentTarget,qn=qt.target.className,Mt=Object.prototype.toString.call(qn)==="[object SVGAnimatedString]"?qn.animVal:qn,Nn=qt.propertyName==="font-size"&&Mt.indexOf("anticon")>=0;(Gn||Nn)&&ze.restoreModeVerticalFromInline()},ze.setInnerMenu=function(qt){ze.innerMenu=qt},ze.isRootMenu=!0;var ct=Gt.defaultSelectedKeys,Sn=Gt.defaultOpenKeys;return"selectedKeys"in Gt&&(ct=Gt.selectedKeys||[]),"openKeys"in Gt&&(Sn=Gt.openKeys||[]),ze.store=Object(p.c)({selectedKeys:ct,openKeys:Sn,activeKey:{"0-menu-":on(Gt,Gt.activeKey)}}),ze.state={switchingModeFromInline:!1},ze}return Object(k.a)(mn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ze){this.updateOpentKeysWhenSwitchMode(ze),this.updateMiniStore();var ct=this.props,Sn=ct.siderCollapsed,qt=ct.inlineCollapsed,Gn=ct.onOpenChange;(!ze.inlineCollapsed&&qt||!ze.siderCollapsed&&Sn)&&Gn([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ze){var ct=this.props,Sn=this.store,qt=this.inlineOpenKeys,Gn=Sn.getState(),qn={};ze.mode==="inline"&&ct.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in ct||((ct.inlineCollapsed&&!ze.inlineCollapsed||ct.siderCollapsed&&!ze.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Gn.openKeys.concat(),qn.openKeys=[]),(!ct.inlineCollapsed&&ze.inlineCollapsed||!ct.siderCollapsed&&ze.siderCollapsed)&&(qn.openKeys=qt,this.inlineOpenKeys=[])),Object.keys(qn).length&&Sn.setState(qn)}},{key:"updateMenuDisplay",value:function(){var ze=this.props.collapsedWidth,ct=this.store,Sn=this.prevOpenKeys,qt=this.getInlineCollapsed()&&(ze===0||ze==="0"||ze==="0px");qt?(this.prevOpenKeys=ct.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Sn&&(this.store.setState({openKeys:Sn}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ze=this.props.mode,ct=this.state.switchingModeFromInline,Sn=this.getInlineCollapsed();return ct&&Sn?"inline":Sn?"vertical":ze}},{key:"getInlineCollapsed",value:function(){var ze=this.props,ct=ze.inlineCollapsed,Sn=ze.siderCollapsed;return Sn!==void 0?Sn:ct}},{key:"restoreModeVerticalFromInline",value:function(){var ze=this.state.switchingModeFromInline;ze&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ze=Object(Q.a)({},Object(a.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ct=this.getRealMenuMode();return ze.className+=" ".concat(ze.prefixCls,"-root"),ze.direction==="rtl"&&(ze.className+=" ".concat(ze.prefixCls,"-rtl")),ze=Object(Q.a)(Object(Q.a)({},ze),{},{mode:ct,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:rt(this.props,this.state,ct)}),delete ze.openAnimation,delete ze.openTransitionName,M.createElement(p.a,{store:this.store},M.createElement(ht,Object.assign({},ze,{ref:this.setInnerMenu}),this.props.children))}}]),mn}(M.Component);Te.defaultProps={selectable:!0,onClick:A,onSelect:A,onOpenChange:A,onDeselect:A,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:M.createElement("span",null,"\xB7\xB7\xB7")};var Me=Te,Ie=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(){var Gt;return Object(W.a)(this,mn),Gt=Bt.apply(this,arguments),Gt.onKeyDown=function(ze){var ct=ze.keyCode;return ct===d.a.ENTER?(Gt.onClick(ze),!0):void 0},Gt.onMouseLeave=function(ze){var ct=Gt.props,Sn=ct.eventKey,qt=ct.onItemHover,Gn=ct.onMouseLeave;qt({key:Sn,hover:!1}),Gn({key:Sn,domEvent:ze})},Gt.onMouseEnter=function(ze){var ct=Gt.props,Sn=ct.eventKey,qt=ct.onItemHover,Gn=ct.onMouseEnter;qt({key:Sn,hover:!0}),Gn({key:Sn,domEvent:ze})},Gt.onClick=function(ze){var ct=Gt.props,Sn=ct.eventKey,qt=ct.multiple,Gn=ct.onClick,qn=ct.onSelect,Mt=ct.onDeselect,Nn=ct.isSelected,Bn={key:Sn,keyPath:[Sn],item:Object(B.a)(Gt),domEvent:ze};Gn(Bn),qt?Nn?Mt(Bn):qn(Bn):Nn||qn(Bn)},Gt.saveNode=function(ze){Gt.node=ze},Gt}return Object(k.a)(mn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ze=this.props;ze.onDestroy&&ze.onDestroy(ze.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ze,ct=Object(Q.a)({},this.props),Sn=i()(this.getPrefixCls(),ct.className,(ze={},Object(u.a)(ze,this.getActiveClassName(),!ct.disabled&&ct.active),Object(u.a)(ze,this.getSelectedClassName(),ct.isSelected),Object(u.a)(ze,this.getDisabledClassName(),ct.disabled),ze)),qt=Object(Q.a)(Object(Q.a)({},ct.attribute),{},{title:typeof ct.title=="string"?ct.title:void 0,className:Sn,role:ct.role||"menuitem","aria-disabled":ct.disabled});ct.role==="option"?qt=Object(Q.a)(Object(Q.a)({},qt),{},{role:"option","aria-selected":ct.isSelected}):(ct.role===null||ct.role==="none")&&(qt.role="none");var Gn={onClick:ct.disabled?null:this.onClick,onMouseLeave:ct.disabled?null:this.onMouseLeave,onMouseEnter:ct.disabled?null:this.onMouseEnter},qn=Object(Q.a)({},ct.style);ct.mode==="inline"&&(ct.direction==="rtl"?qn.paddingRight=ct.inlineIndent*ct.level:qn.paddingLeft=ct.inlineIndent*ct.level),le.forEach(function(Nn){return delete ct[Nn]}),delete ct.direction;var Mt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Mt=M.createElement(this.props.itemIcon,this.props)),M.createElement("li",Object.assign({},Object(a.default)(ct,["onClick","onMouseEnter","onMouseLeave","onSelect"]),qt,Gn,{style:qn,ref:this.saveNode}),ct.children,Mt)}}]),mn}(M.Component);Ie.isMenuItem=!0,Ie.defaultProps={onSelect:A,onMouseEnter:A,onMouseLeave:A,manualRef:A};var be=Object(p.b)(function(_n,Bt){var mn=_n.activeKey,Gt=_n.selectedKeys,ze=Bt.eventKey,ct=Bt.subMenuKey;return{active:mn[ct]===ze,isSelected:Gt.indexOf(ze)!==-1}})(Ie),qe=be,Lt=function(_n){Object(O.a)(mn,_n);var Bt=Object(R.a)(mn);function mn(){var Gt;return Object(W.a)(this,mn),Gt=Bt.apply(this,arguments),Gt.renderInnerMenuItem=function(ze){var ct=Gt.props,Sn=ct.renderMenuItem,qt=ct.index;return Sn(ze,qt,Gt.props.subMenuKey)},Gt}return Object(k.a)(mn,[{key:"render",value:function(){var ze=Object(b.a)({},this.props),ct=ze.className,Sn=ct===void 0?"":ct,qt=ze.rootPrefixCls,Gn="".concat(qt,"-item-group-title"),qn="".concat(qt,"-item-group-list"),Mt=ze.title,Nn=ze.children;return le.forEach(function(Bn){return delete ze[Bn]}),delete ze.onClick,delete ze.direction,M.createElement("li",Object.assign({},ze,{className:"".concat(Sn," ").concat(qt,"-item-group")}),M.createElement("div",{className:Gn,title:typeof Mt=="string"?Mt:void 0},Mt),M.createElement("ul",{className:qn},M.Children.map(Nn,this.renderInnerMenuItem)))}}]),mn}(M.Component);Lt.isMenuItemGroup=!0,Lt.defaultProps={disabled:!0};var nn=Lt,$n=function(Bt){var mn=Bt.className,Gt=Bt.rootPrefixCls,ze=Bt.style;return M.createElement("li",{className:"".concat(mn," ").concat(Gt,"-item-divider"),style:ze})};$n.defaultProps={disabled:!0,className:"",style:{}};var ta=$n,Sa=re.e=Me},"24YM":function(Ge,re,y){"use strict";Object.defineProperty(re,"__esModule",{value:!0}),re.SensorTabIndex=re.SensorClassName=re.SizeSensorId=void 0;var Q="size-sensor-id";re.SizeSensorId=Q;var W="size-sensor-object";re.SensorClassName=W;var k="-1";re.SensorTabIndex=k},"24hK":function(Ge,re,y){"use strict";y.d(re,"a",function(){return W});class Q{constructor(k){this.element=k,this.next=Q.Undefined,this.prev=Q.Undefined}}Q.Undefined=new Q(void 0);class W{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let k=this._first;for(;k!==Q.Undefined;){const B=k.next;k.prev=Q.Undefined,k.next=Q.Undefined,k=B}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(k){return this._insert(k,!1)}push(k){return this._insert(k,!0)}_insert(k,B){const O=new Q(k);if(this._first===Q.Undefined)this._first=O,this._last=O;else if(B){const M=this._last;this._last=O,O.prev=M,M.next=O}else{const M=this._first;this._first=O,O.next=M,M.prev=O}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(O))}}shift(){if(this._first===Q.Undefined)return;{const k=this._first.element;return this._remove(this._first),k}}pop(){if(this._last===Q.Undefined)return;{const k=this._last.element;return this._remove(this._last),k}}_remove(k){if(k.prev!==Q.Undefined&&k.next!==Q.Undefined){const B=k.prev;B.next=k.next,k.next.prev=B}else k.prev===Q.Undefined&&k.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):k.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):k.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let k=this._first;for(;k!==Q.Undefined;)yield k.element,k=k.next}}},"2DNl":function(Ge,re,y){var Q=y("IMiH"),W=y("loD1"),k=y("59Ip"),B=y("aKvl"),O=y("n1HI"),R=y("hX1E"),M=R.normalizeRadian,p=y("Sj9i"),a=y("hyiK"),b=Q.CMD,u=Math.PI*2,d=1e-4;function m(C,v){return Math.abs(C-v)v&&E>_&&E>g&&E>T||E1&&f(),H=p.cubicAt(v,_,g,T,c[0]),P>1&&(N=p.cubicAt(v,_,g,T,c[1]))),P===2?Gv&&T>_&&T>g||T=0&&E<=1){for(var U=0,F=p.quadraticAt(v,_,g,E),P=0;Pn||T<-n)return 0;var S=Math.sqrt(n*n-T*T);o[0]=-S,o[1]=S;var E=Math.abs(_-h);if(E<1e-4)return 0;if(E%u<1e-4){_=0,h=u;var U=g?1:-1;return x>=o[0]+C&&x<=o[1]+C?U:0}if(g){var S=_;_=M(h),h=M(S)}else _=M(_),h=M(h);_>h&&(h+=u);for(var F=0,P=0;P<2;P++){var H=o[P];if(H+C>x){var N=Math.atan2(T,H),U=g?1:-1;N<0&&(N=u+N),(N>=_&&N<=h||N+u>=_&&N+u<=h)&&(N>Math.PI/2&&N1&&(n||(g+=a(x,T,S,E,_,h))),U===1&&(x=C[U],T=C[U+1],S=x,E=T);switch(F){case b.M:S=C[U++],E=C[U++],x=S,T=E;break;case b.L:if(n){if(W.containStroke(x,T,C[U],C[U+1],v,_,h))return!0}else g+=a(x,T,C[U],C[U+1],_,h)||0;x=C[U++],T=C[U++];break;case b.C:if(n){if(k.containStroke(x,T,C[U++],C[U++],C[U++],C[U++],C[U],C[U+1],v,_,h))return!0}else g+=i(x,T,C[U++],C[U++],C[U++],C[U++],C[U],C[U+1],_,h)||0;x=C[U++],T=C[U++];break;case b.Q:if(n){if(B.containStroke(x,T,C[U++],C[U++],C[U],C[U+1],v,_,h))return!0}else g+=t(x,T,C[U++],C[U++],C[U],C[U+1],_,h)||0;x=C[U++],T=C[U++];break;case b.A:var P=C[U++],H=C[U++],N=C[U++],A=C[U++],G=C[U++],K=C[U++];U+=1;var $=1-C[U++],ie=Math.cos(G)*N+P,le=Math.sin(G)*A+H;U>1?g+=a(x,T,ie,le,_,h):(S=ie,E=le);var de=(_-P)*A/N+P;if(n){if(O.containStroke(P,H,A,G,G+K,$,v,de,h))return!0}else g+=l(P,H,A,G,G+K,$,de,h);x=Math.cos(G+K)*N+P,T=Math.sin(G+K)*A+H;break;case b.R:S=x=C[U++],E=T=C[U++];var Se=C[U++],He=C[U++],ie=S+Se,le=E+He;if(n){if(W.containStroke(S,E,ie,E,v,_,h)||W.containStroke(ie,E,ie,le,v,_,h)||W.containStroke(ie,le,S,le,v,_,h)||W.containStroke(S,le,S,E,v,_,h))return!0}else g+=a(ie,E,ie,le,_,h),g+=a(S,le,S,E,_,h);break;case b.Z:if(n){if(W.containStroke(x,T,S,E,v,_,h))return!0}else g+=a(x,T,S,E,_,h);x=S,T=E;break}}return!n&&!m(T,E)&&(g+=a(x,T,S,E,_,h)||0),g!==0}function w(C,v,n){return s(C,0,!1,v,n)}function D(C,v,n,_){return s(C,v,!0,n,_)}re.contain=w,re.containStroke=D},"2JKx":function(Ge,re,y){Ge.exports={flex_box_center:"flex_box_center___21flX",flex_space_between:"flex_space_between___hkcwT",flex_box_vertical_center:"flex_box_vertical_center___1JAyR",flex_box_center_end:"flex_box_center_end___2trjo",flex_box_column:"flex_box_column___2q5e9",form:"form___1j7IG",efficiency:"efficiency___KDh-I",ipItem:"ipItem___2NlCp",ipWrp:"ipWrp___2kiZa"}},"2fw6":function(Ge,re,y){var Q=y("y+Vt"),W=Q.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(k,B,O){O&&k.moveTo(B.cx+B.r,B.cy),k.arc(B.cx,B.cy,B.r,0,Math.PI*2,!0)}});Ge.exports=W},"3/fG":function(Ge,re,y){"use strict";y.d(re,"a",function(){return W});function Q(k,B){let O;return B.length===0?O=k:O=k.replace(/\{(\d+)\}/g,function(R,M){const p=M[0];return typeof B[p]!="undefined"?B[p]:R}),O}function W(k,B,...O){return Q(B,O)}},"3C/r":function(Ge,re){var y=function(W,k){this.image=W,this.repeat=k,this.type="pattern"};y.prototype.getCanvasPattern=function(W){return W.createPattern(this.image,this.repeat||"repeat")};var Q=y;Ge.exports=Q},"3CBa":function(Ge,re,y){var Q=y("hydK"),W=Q.createElement,k=y("bYtY"),B=y("SUKs"),O=y("y+Vt"),R=y("Dagg"),M=y("dqUG"),p=y("DBLp"),a=y("sW+o"),b=y("n6Mw"),u=y("vKoX"),d=y("P47w"),m=d.path,o=d.image,c=d.text;function f(h){return parseInt(h,10)}function i(h){return h instanceof O?m:h instanceof R?o:h instanceof M?c:m}function t(h,g){return g&&h&&g.parentNode!==h}function l(h,g,x){if(t(h,g)&&x){var T=x.nextSibling;T?h.insertBefore(g,T):h.appendChild(g)}}function s(h,g){if(t(h,g)){var x=h.firstChild;x?h.insertBefore(g,x):h.appendChild(g)}}function w(h,g){g&&h&&g.parentNode===h&&h.removeChild(g)}function D(h){return h.__textSvgEl}function C(h){return h.__svgEl}var v=function(h,g,x,T){this.root=h,this.storage=g,this._opts=x=k.extend({},x||{});var S=W("svg");S.setAttribute("xmlns","http://www.w3.org/2000/svg"),S.setAttribute("version","1.1"),S.setAttribute("baseProfile","full"),S.style.cssText="user-select:none;position:absolute;left:0;top:0;";var E=W("g");S.appendChild(E);var U=W("g");S.appendChild(U),this.gradientManager=new a(T,U),this.clipPathManager=new b(T,U),this.shadowManager=new u(T,U);var F=document.createElement("div");F.style.cssText="overflow:hidden;position:relative",this._svgDom=S,this._svgRoot=U,this._backgroundRoot=E,this._viewport=F,h.appendChild(F),F.appendChild(S),this.resize(x.width,x.height),this._visibleList=[]};v.prototype={constructor:v,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var h=this.getViewportRoot();if(h)return{offsetLeft:h.offsetLeft||0,offsetTop:h.offsetTop||0}},refresh:function(){var h=this.storage.getDisplayList(!0);this._paintList(h)},setBackgroundColor:function(h){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var g=W("rect");g.setAttribute("width",this.getWidth()),g.setAttribute("height",this.getHeight()),g.setAttribute("x",0),g.setAttribute("y",0),g.setAttribute("id",0),g.style.fill=h,this._backgroundRoot.appendChild(g),this._backgroundNode=g},_paintList:function(h){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var g=this._svgRoot,x=this._visibleList,T=h.length,S=[],E;for(E=0;E=0;--U)if(E[U]===S)return!0;return!1}),x}else return null;else return x[0]},resize:function(h,g){var x=this._viewport;x.style.display="none";var T=this._opts;if(h!=null&&(T.width=h),g!=null&&(T.height=g),h=this._getSize(0),g=this._getSize(1),x.style.display="",this._width!==h||this._height!==g){this._width=h,this._height=g;var S=x.style;S.width=h+"px",S.height=g+"px";var E=this._svgDom;E.setAttribute("width",h),E.setAttribute("height",g)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",h),this._backgroundNode.setAttribute("height",g))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(h){var g=this._opts,x=["width","height"][h],T=["clientWidth","clientHeight"][h],S=["paddingLeft","paddingTop"][h],E=["paddingRight","paddingBottom"][h];if(g[x]!=null&&g[x]!=="auto")return parseFloat(g[x]);var U=this.root,F=document.defaultView.getComputedStyle(U);return(U[T]||f(F[x])||f(U.style[x]))-(f(F[S])||0)-(f(F[E])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var h=encodeURIComponent(this._svgDom.outerHTML.replace(/> +\r<`));return"data:image/svg+xml;charset=UTF-8,"+h}};function n(h){return function(){B('In SVG mode painter not support method "'+h+'"')}}k.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(h){v.prototype[h]=n(h)});var _=v;Ge.exports=_},"3e3G":function(Ge,re,y){var Q=y("bYtY"),W=y("QuXc"),k=function(O,R,M,p,a){this.x=O==null?.5:O,this.y=R==null?.5:R,this.r=M==null?.5:M,this.type="radial",this.global=a||!1,W.call(this,p)};k.prototype={constructor:k},Q.inherits(k,W);var B=k;Ge.exports=B},"3gBT":function(Ge,re){var y=2311;function Q(){return y++}Ge.exports=Q},"4fz+":function(Ge,re,y){var Q=y("bYtY"),W=y("1bdT"),k=y("mFDi"),B=function(R){R=R||{},W.call(this,R);for(var M in R)R.hasOwnProperty(M)&&(this[M]=R[M]);this._children=[],this.__storage=null,this.__dirty=!0};B.prototype={constructor:B,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(R){return this._children[R]},childOfName:function(R){for(var M=this._children,p=0;p=0&&(p.splice(a,0,R),this._doAdd(R))}return this},_doAdd:function(R){R.parent&&R.parent.remove(R),R.parent=this;var M=this.__storage,p=this.__zr;M&&M!==R.__storage&&(M.addToStorage(R),R instanceof B&&R.addChildrenToStorage(M)),p&&p.refresh()},remove:function(R){var M=this.__zr,p=this.__storage,a=this._children,b=Q.indexOf(a,R);return b<0?this:(a.splice(b,1),R.parent=null,p&&(p.delFromStorage(R),R instanceof B&&R.delChildrenFromStorage(p)),M&&M.refresh(),this)},removeAll:function(){var R=this._children,M=this.__storage,p,a;for(a=0;a1e-4){n[0]=t-s,n[1]=l-w,_[0]=t+s,_[1]=l+w;return}if(p[0]=R(D)*s+t,p[1]=O(D)*w+l,a[0]=R(C)*s+t,a[1]=O(C)*w+l,h(n,p,a),g(_,p,a),D=D%M,D<0&&(D=D+M),C=C%M,C<0&&(C=C+M),D>C&&!v?C+=M:DD&&(b[0]=R(S)*s+t,b[1]=O(S)*w+l,h(n,b,n),g(_,b,_))}re.fromPoints=u,re.fromLine=d,re.fromCubic=c,re.fromQuadratic=f,re.fromArc=i},"4qgm":function(Ge,re){Ge.exports="data:image/png;base64,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"},"4u4S":function(Ge,re){Ge.exports="data:image/png;base64,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"},"51gm":function(Ge,re,y){Ge.exports={title:"title___1NT0J",wrap:"wrap___2hvUc"}},"55Ip":function(Ge,re,y){"use strict";y.d(re,"a",function(){return l});var Q=y("Ty5D"),W=y("dI71"),k=y("q1tI"),B=y.n(k),O=y("YS25"),R=y("17x9"),M=y.n(R),p=y("wx14"),a=y("zLVn"),b=y("9R94"),u=function(h){Object(W.a)(g,h);function g(){for(var T,S=arguments.length,E=new Array(S),U=0;UB+o&&m>R+o&&m>p+o&&m>b+o||mk+o&&d>O+o&&d>M+o&&d>a+o||d=0||S.relatedTarget.className.indexOf("".concat(P,"-next"))>=0))return;h.setState({goInputText:""}),F(h.getValidValue())},h.go=function(S){var E=h.state.goInputText;if(E==="")return;(S.keyCode===o.ENTER||S.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(O.a)(_,[{key:"getValidValue",value:function(){var g=this.state,x=g.goInputText,T=g.current;return!x||isNaN(x)?T:Number(x)}},{key:"getPageSizeOptions",value:function(){var g=this.props,x=g.pageSize,T=g.pageSizeOptions;return T.some(function(S){return S.toString()===x.toString()})?T:T.concat([x.toString()]).sort(function(S,E){var U=isNaN(Number(S))?0:Number(S),F=isNaN(Number(E))?0:Number(E);return U-F})}},{key:"render",value:function(){var g=this,x=this.props,T=x.pageSize,S=x.locale,E=x.rootPrefixCls,U=x.changeSize,F=x.quickGo,P=x.goButton,H=x.selectComponentClass,N=x.buildOptionText,A=x.selectPrefixCls,G=x.disabled,K=this.state.goInputText,$="".concat(E,"-options"),ie=H,le=null,de=null,Se=null;if(!U&&!F)return null;var He=this.getPageSizeOptions();if(U&&ie){var et=He.map(function(je,me){return a.a.createElement(ie.Option,{key:me,value:je.toString()},(N||g.buildOptionText)(je))});le=a.a.createElement(ie,{disabled:G,prefixCls:A,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(T||He[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},et)}return F&&(P&&(Se=typeof P=="boolean"?a.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:G,className:"".concat($,"-quick-jumper-button")},S.jump_to_confirm):a.a.createElement("span",{onClick:this.go,onKeyUp:this.go},P)),de=a.a.createElement("div",{className:"".concat($,"-quick-jumper")},S.jump_to,a.a.createElement("input",{disabled:G,type:"text",value:K,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),S.page,Se)),a.a.createElement("li",{className:"".concat($)},le,de)}}]),_}(a.a.Component);c.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=c,i=y("N2Kk");function t(){}function l(v){return typeof v=="number"&&isFinite(v)&&Math.floor(v)===v}function s(v,n,_){return _}function w(v,n,_){var h=typeof v=="undefined"?n.pageSize:v;return Math.floor((_.total-1)/h)+1}var D=function(v){Object(R.a)(_,v);var n=Object(M.a)(_);function _(h){var g;Object(B.a)(this,_),g=n.call(this,h),g.getJumpPrevPage=function(){return Math.max(1,g.state.current-(g.props.showLessItems?3:5))},g.getJumpNextPage=function(){return Math.min(w(void 0,g.state,g.props),g.state.current+(g.props.showLessItems?3:5))},g.getItemIcon=function(U,F){var P=g.props.prefixCls,H=U||a.a.createElement("button",{type:"button","aria-label":F,className:"".concat(P,"-item-link")});return typeof U=="function"&&(H=a.a.createElement(U,Object(k.a)({},g.props))),H},g.savePaginationNode=function(U){g.paginationNode=U},g.isValid=function(U){return l(U)&&U!==g.state.current},g.shouldDisplayQuickJumper=function(){var U=g.props,F=U.showQuickJumper,P=U.pageSize,H=U.total;return H<=P?!1:F},g.handleKeyDown=function(U){(U.keyCode===o.ARROW_UP||U.keyCode===o.ARROW_DOWN)&&U.preventDefault()},g.handleKeyUp=function(U){var F=g.getValidValue(U),P=g.state.currentInputValue;F!==P&&g.setState({currentInputValue:F}),U.keyCode===o.ENTER?g.handleChange(F):U.keyCode===o.ARROW_UP?g.handleChange(F-1):U.keyCode===o.ARROW_DOWN&&g.handleChange(F+1)},g.changePageSize=function(U){var F=g.state.current,P=w(U,g.state,g.props);F=F>P?P:F,P===0&&(F=g.state.current),typeof U=="number"&&("pageSize"in g.props||g.setState({pageSize:U}),"current"in g.props||g.setState({current:F,currentInputValue:F})),g.props.onShowSizeChange(F,U),"onChange"in g.props&&g.props.onChange&&g.props.onChange(F,U)},g.handleChange=function(U){var F=g.props.disabled,P=U;if(g.isValid(P)&&!F){var H=w(void 0,g.state,g.props);P>H?P=H:P<1&&(P=1),"current"in g.props||g.setState({current:P,currentInputValue:P});var N=g.state.pageSize;return g.props.onChange(P,N),P}return g.state.current},g.prev=function(){g.hasPrev()&&g.handleChange(g.state.current-1)},g.next=function(){g.hasNext()&&g.handleChange(g.state.current+1)},g.jumpPrev=function(){g.handleChange(g.getJumpPrevPage())},g.jumpNext=function(){g.handleChange(g.getJumpNextPage())},g.hasPrev=function(){return g.state.current>1},g.hasNext=function(){return g.state.current2?P-2:0),N=2;N=T?E=T:E=Number(x),E}},{key:"getShowSizeChanger",value:function(){var g=this.props,x=g.showSizeChanger,T=g.total,S=g.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:T>S}},{key:"renderPrev",value:function(g){var x=this.props,T=x.prevIcon,S=x.itemRender,E=S(g,"prev",this.getItemIcon(T,"prev page")),U=!this.hasPrev();return Object(p.isValidElement)(E)?Object(p.cloneElement)(E,{disabled:U}):E}},{key:"renderNext",value:function(g){var x=this.props,T=x.nextIcon,S=x.itemRender,E=S(g,"next",this.getItemIcon(T,"next page")),U=!this.hasNext();return Object(p.isValidElement)(E)?Object(p.cloneElement)(E,{disabled:U}):E}},{key:"render",value:function(){var g=this,x=this.props,T=x.prefixCls,S=x.className,E=x.style,U=x.disabled,F=x.hideOnSinglePage,P=x.total,H=x.locale,N=x.showQuickJumper,A=x.showLessItems,G=x.showTitle,K=x.showTotal,$=x.simple,ie=x.itemRender,le=x.showPrevNextJumpers,de=x.jumpPrevIcon,Se=x.jumpNextIcon,He=x.selectComponentClass,et=x.selectPrefixCls,je=x.pageSizeOptions,me=this.state,fe=me.current,Ae=me.pageSize,he=me.currentInputValue;if(F===!0&&P<=Ae)return null;var Ue=w(void 0,this.state,this.props),st=[],Ve=null,dt=null,Qe=null,pe=null,xe=null,Le=N&&N.goButton,Ye=A?1:2,gt=fe-1>0?fe-1:0,Ct=fe+1=Ye*2&&fe!==1+2&&(st[0]=Object(p.cloneElement)(st[0],{className:"".concat(T,"-item-after-jump-prev")}),st.unshift(Ve)),Ue-fe>=Ye*2&&fe!==Ue-2&&(st[st.length-1]=Object(p.cloneElement)(st[st.length-1],{className:"".concat(T,"-item-before-jump-next")}),st.push(dt)),on!==1&&st.unshift(Qe),hn!==Ue&&st.push(pe)}var ht=null;K&&(ht=a.a.createElement("li",{className:"".concat(T,"-total-text")},K(P,[P===0?0:(fe-1)*Ae+1,fe*Ae>P?P:fe*Ae])));var Je=!this.hasPrev()||!Ue,rt=!this.hasNext()||!Ue;return a.a.createElement("ul",Object(Q.a)({className:u()(T,S,Object(W.a)({},"".concat(T,"-disabled"),U)),style:E,unselectable:"unselectable",ref:this.savePaginationNode},tn),ht,a.a.createElement("li",{title:G?H.prev_page:null,onClick:this.prev,tabIndex:Je?null:0,onKeyPress:this.runIfEnterPrev,className:u()("".concat(T,"-prev"),Object(W.a)({},"".concat(T,"-disabled"),Je)),"aria-disabled":Je},this.renderPrev(gt)),st,a.a.createElement("li",{title:G?H.next_page:null,onClick:this.next,tabIndex:rt?null:0,onKeyPress:this.runIfEnterNext,className:u()("".concat(T,"-next"),Object(W.a)({},"".concat(T,"-disabled"),rt)),"aria-disabled":rt},this.renderNext(Ct)),a.a.createElement(f,{disabled:U,locale:H,rootPrefixCls:T,selectComponentClass:He,selectPrefixCls:et,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:fe,pageSize:Ae,pageSizeOptions:je,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Le}))}}],[{key:"getDerivedStateFromProps",value:function(g,x){var T={};if("current"in g&&(T.current=g.current,g.current!==x.current&&(T.currentInputValue=T.current)),"pageSize"in g&&g.pageSize!==x.pageSize){var S=x.current,E=w(g.pageSize,x,g);S=S>E?E:S,"current"in g||(T.current=S,T.currentInputValue=S),T.pageSize=g.pageSize}return T}}]),_}(a.a.Component);D.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:t,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:t,locale:i.a,style:{},itemRender:s,totalBoundaryShowSizeChanger:50};var C=D},"6GrX":function(Ge,re,y){var Q=y("mFDi"),W=y("Xnb7"),k=y("bYtY"),B=k.getContext,O=k.extend,R=k.retrieve2,M=k.retrieve3,p=k.trim,a={},b=0,u=5e3,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,m="12px sans-serif",o={};function c(F,P){o[F]=P}function f(F,P){P=P||m;var H=F+":"+P;if(a[H])return a[H];for(var N=(F+"").split(` `),A=0,G=0,K=N.length;Gu&&(b=0,a={}),b++,a[H]=A,A}function i(F,P,H,N,A,G,K,$){return K?l(F,P,H,N,A,G,K,$):t(F,P,H,N,A,G,$)}function t(F,P,H,N,A,G,K){var $=T(F,P,A,G,K),ie=f(F,P);A&&(ie+=A[1]+A[3]);var le=$.outerHeight,de=s(0,ie,H),Se=w(0,le,N),He=new Q(de,Se,ie,le);return He.lineHeight=$.lineHeight,He}function l(F,P,H,N,A,G,K,$){var ie=S(F,{rich:K,truncate:$,font:P,textAlign:H,textPadding:A,textLineHeight:G}),le=ie.outerWidth,de=ie.outerHeight,Se=s(0,le,H),He=w(0,de,N);return new Q(Se,He,le,de)}function s(F,P,H){return H==="right"?F-=P:H==="center"&&(F-=P/2),F}function w(F,P,H){return H==="middle"?F-=P/2:H==="bottom"&&(F-=P),F}function D(F,P,H){var N=P.textPosition,A=P.textDistance,G=H.x,K=H.y;A=A||0;var $=H.height,ie=H.width,le=$/2,de="left",Se="top";switch(N){case"left":G-=A,K+=le,de="right",Se="middle";break;case"right":G+=A+ie,K+=le,Se="middle";break;case"top":G+=ie/2,K-=A,de="center",Se="bottom";break;case"bottom":G+=ie/2,K+=$+A,de="center";break;case"inside":G+=ie/2,K+=le,de="center",Se="middle";break;case"insideLeft":G+=A,K+=le,Se="middle";break;case"insideRight":G+=ie-A,K+=le,de="right",Se="middle";break;case"insideTop":G+=ie/2,K+=A,de="center";break;case"insideBottom":G+=ie/2,K+=$-A,de="center",Se="bottom";break;case"insideTopLeft":G+=A,K+=A;break;case"insideTopRight":G+=ie-A,K+=A,de="right";break;case"insideBottomLeft":G+=A,K+=$-A,Se="bottom";break;case"insideBottomRight":G+=ie-A,K+=$-A,de="right",Se="bottom";break}return F=F||{},F.x=G,F.y=K,F.textAlign=de,F.textVerticalAlign=Se,F}function C(F,P,H){var N={textPosition:F,textDistance:H};return D({},N,P)}function v(F,P,H,N,A){if(!P)return"";var G=(F+"").split(` `);A=n(P,H,N,A);for(var K=0,$=G.length;K<$;K++)G[K]=_(G[K],A);return G.join(` `)}function n(F,P,H,N){N=O({},N),N.font=P;var H=R(H,"...");N.maxIterations=R(N.maxIterations,2);var A=N.minChar=R(N.minChar,0);N.cnCharWidth=f("\u56FD",P);var G=N.ascCharWidth=f("a",P);N.placeholder=R(N.placeholder,"");for(var K=F=Math.max(0,F-1),$=0;$=G;$++)K-=G;var ie=f(H,P);return ie>K&&(H="",ie=0),K=F-ie,N.ellipsis=H,N.ellipsisWidth=ie,N.contentWidth=K,N.containerWidth=F,N}function _(F,P){var H=P.containerWidth,N=P.font,A=P.contentWidth;if(!H)return"";var G=f(F,N);if(G<=H)return F;for(var K=0;;K++){if(G<=A||K>=P.maxIterations){F+=P.ellipsis;break}var $=K===0?h(F,A,P.ascCharWidth,P.cnCharWidth):G>0?Math.floor(F.length*A/G):0;F=F.substr(0,$),G=f(F,N)}return F===""&&(F=P.placeholder),F}function h(F,P,H,N){for(var A=0,G=0,K=F.length;G `),ut.appendChild(vn),ut},z.prototype.setCurrentColor=function(Y,te){var _e=this;this.currentColor=Y,this.colorBoxes.forEach(function(se){se.style.borderColor=se===te?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Y)},z}(pe),Le=function(){function ae(z,Y,te){this._state="new",this._isSelected=!1,this._container=z,this._overlayContainer=Y,this.globalSettings=te,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(z){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(z,Y){},ae.prototype.dblClick=function(z,Y){},ae.prototype.manipulate=function(z){},ae.prototype.pointerUp=function(z){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(z){this.container.childNodes.length>0?this.container.insertBefore(z,this.container.childNodes[0]):this.container.appendChild(z)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(z){this._state=z.state,this.notes=z.notes},ae.prototype.scale=function(z,Y){},ae.prototype.colorChanged=function(z){this.onColorChanged&&this.onColorChanged(z),this.stateChanged()},ae.prototype.fillColorChanged=function(z){this.onFillColorChanged&&this.onFillColorChanged(z),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var z=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),z.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(z)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),Ye=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(z){return this.topLeft.ownsTarget(z)?this.topLeft:this.topCenter.ownsTarget(z)?this.topCenter:this.topRight.ownsTarget(z)?this.topRight:this.centerLeft.ownsTarget(z)?this.centerLeft:this.centerRight.ownsTarget(z)?this.centerRight:this.bottomLeft.ownsTarget(z)?this.bottomLeft:this.bottomCenter.ownsTarget(z)?this.bottomCenter:this.bottomRight.ownsTarget(z)?this.bottomRight:void 0},ae}(),gt=function(){function ae(){this.GRIP_SIZE=10,this.visual=me.createGroup(),this.visual.appendChild(me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},ae}(),Ct=function(){function ae(){}return ae.toITransformMatrix=function(z){return{a:z.a,b:z.b,c:z.c,d:z.d,e:z.e,f:z.f}},ae.toSVGMatrix=function(z,Y){return z.a=Y.a,z.b=Y.b,z.c=Y.c,z.d=Y.d,z.e=Y.e,z.f=Y.f,z},ae}(),tn=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.left=0,se.top=0,se.width=0,se.height=0,se.defaultSize={x:50,y:20},se.offsetX=0,se.offsetY=0,se.rotationAngle=0,se.CB_DISTANCE=10,se._suppressMarkerCreateEvent=!1,se.container.transform.baseVal.appendItem(me.createTransform()),se.setupControlBox(),se}return Se(z,ae),Object.defineProperty(z.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"visual",{get:function(){return this._visual},set:function(Y){this._visual=Y;var te=me.createTransform();this._visual.transform.baseVal.appendItem(te)},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(Y){return!!ae.prototype.ownsTarget.call(this,Y)||!!(this.controlGrips.findGripByVisual(Y)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Y))},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.state==="new"&&(this.left=Y.x,this.top=Y.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var _e=this.unrotatePoint(Y);if(this.manipulationStartX=_e.x,this.manipulationStartY=_e.y,this.offsetX=_e.x-this.left,this.offsetY=_e.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(te),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(te)){this.activeGrip=this.rotatorGrip;var se=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=se.x-this.width/2,this.top=se.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ut=this.container.transform.baseVal.getItem(0);ut.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ut,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},z.prototype.pointerUp=function(Y){var te=this.state;ae.prototype.pointerUp.call(this,Y),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Y),this._state="select",te==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},z.prototype.moveVisual=function(Y){this.visual.style.transform="translate("+Y.x+"px, "+Y.y+"px)"},z.prototype.manipulate=function(Y){var te=this.unrotatePoint(Y);this.state==="creating"?this.resize(Y):this.state==="move"?(this.left=this.manipulationStartLeft+(te.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(te.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(te):this.state==="rotate"&&this.rotate(Y)},z.prototype.resize=function(Y){var te=this.manipulationStartLeft,_e=this.manipulationStartWidth,se=this.manipulationStartTop,ut=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:te=this.manipulationStartLeft+Y.x-this.manipulationStartX,_e=this.manipulationStartWidth+this.manipulationStartLeft-te;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:_e=this.manipulationStartWidth+Y.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:se=this.manipulationStartTop+Y.y-this.manipulationStartY,ut=this.manipulationStartHeight+this.manipulationStartTop-se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ut=this.manipulationStartHeight+Y.y-this.manipulationStartY}_e>=0?(this.left=te,this.width=_e):(this.left=te+_e,this.width=-_e),ut>=0?(this.top=se,this.height=ut):(this.top=se+ut,this.height=-ut),this.setSize()},z.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},z.prototype.rotate=function(Y){if(Math.abs(Y.x-this.centerX)>.1){var te=Math.sign(Y.x-this.centerX);this.rotationAngle=180*Math.atan((Y.y-this.centerY)/(Y.x-this.centerX))/Math.PI+90*te,this.applyRotation()}},z.prototype.applyRotation=function(){var Y=this.container.transform.baseVal.getItem(0);Y.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Y,0)},z.prototype.rotatePoint=function(Y){if(this.rotationAngle===0)return Y;var te=this.container.getCTM(),_e=me.createPoint(Y.x,Y.y);return{x:(_e=_e.matrixTransform(te)).x,y:_e.y}},z.prototype.unrotatePoint=function(Y){if(this.rotationAngle===0)return Y;var te=this.container.getCTM();te=te.inverse();var _e=me.createPoint(Y.x,Y.y);return{x:(_e=_e.matrixTransform(te)).x,y:_e.y}},z.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=me.createGroup();var Y=me.createTransform();Y.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Y),this.container.appendChild(this.controlBox),this.controlRect=me.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=me.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ye,this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){var Y=this.controlBox.transform.baseVal.getItem(0);Y.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Y,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},z.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},z.prototype.createGrip=function(){var Y=new gt;return Y.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(Y.visual),Y},z.prototype.positionGrips=function(){var Y=this.controlGrips.topLeft.GRIP_SIZE,te=-Y/2,_e=te,se=(this.width+this.CB_DISTANCE)/2-Y/2,ut=(this.height+this.CB_DISTANCE)/2-Y/2,vn=this.height+this.CB_DISTANCE-Y/2,Wn=this.width+this.CB_DISTANCE-Y/2;this.positionGrip(this.controlGrips.topLeft.visual,te,_e),this.positionGrip(this.controlGrips.topCenter.visual,se,_e),this.positionGrip(this.controlGrips.topRight.visual,Wn,_e),this.positionGrip(this.controlGrips.centerLeft.visual,te,ut),this.positionGrip(this.controlGrips.centerRight.visual,Wn,ut),this.positionGrip(this.controlGrips.bottomLeft.visual,te,vn),this.positionGrip(this.controlGrips.bottomCenter.visual,se,vn),this.positionGrip(this.controlGrips.bottomRight.visual,Wn,vn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,se,_e-3*this.CB_DISTANCE)},z.prototype.positionGrip=function(Y,te,_e){var se=Y.transform.baseVal.getItem(0);se.setTranslate(te,_e),Y.transform.baseVal.replaceItem(se,0)},z.prototype.hideControlBox=function(){this.controlBox.style.display="none"},z.prototype.showControlBox=function(){this.controlBox.style.display=""},z.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ct.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ct.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y);var te=Y;this.left=te.left,this.top=te.top,this.width=te.width,this.height=te.height,this.rotationAngle=te.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ct.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,te.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ct.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,te.containerTransformMatrix))},z.prototype.scale=function(Y,te){ae.prototype.scale.call(this,Y,te);var _e=this.rotatePoint({x:this.left,y:this.top}),se=this.unrotatePoint({x:_e.x*Y,y:_e.y*te});this.left=se.x,this.top=se.y,this.width=this.width*Y,this.height=this.height*te,this.adjustControlBox()},z}(Le),Zt=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!(!ae.prototype.ownsTarget.call(this,Y)&&Y!==this.visual)},z.prototype.createVisual=function(){this.visual=me.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.state==="new"&&(this.createVisual(),this.moveVisual(Y),this._state="creating")},z.prototype.manipulate=function(Y){ae.prototype.manipulate.call(this,Y)},z.prototype.resize=function(Y){ae.prototype.resize.call(this,Y),this.setSize()},z.prototype.setSize=function(){ae.prototype.setSize.call(this),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(Y){ae.prototype.pointerUp.call(this,Y),this.setSize()},z.prototype.setStrokeColor=function(Y){this.strokeColor=Y,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Y),this.stateChanged()},z.prototype.setFillColor=function(Y){this.fillColor=Y,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},z.prototype.setStrokeWidth=function(Y){this.strokeWidth=Y,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(Y){this.strokeDasharray=Y,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},z.prototype.restoreState=function(Y){var te=Y;this.fillColor=te.fillColor,this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.opacity=te.opacity,this.createVisual(),ae.prototype.restoreState.call(this,Y),this.setSize()},z.prototype.scale=function(Y,te){ae.prototype.scale.call(this,Y,te),this.setSize()},z.title="Rectangle marker",z}(tn),Hn=function(ae){function z(Y,te,_e,se){var ut=ae.call(this,Y,se||'')||this;return ut.widths=[],ut.widthBoxes=[],ut.widths=te,ut.currentWidth=_e,ut.setCurrentWidth=ut.setCurrentWidth.bind(ut),ut}return Se(z,ae),z.prototype.getUi=function(){var Y=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",this.widths.forEach(function(_e){var se=document.createElement("div");se.style.display="flex",se.style.flexGrow="2",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=_e===Y.currentWidth?Y.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){Y.setCurrentWidth(_e,se)}),te.appendChild(se);var ut=document.createElement("div");ut.innerText=_e.toString(),ut.style.marginRight="5px",se.appendChild(ut);var vn=document.createElement("div");vn.style.minHeight="20px",vn.style.flexGrow="2",vn.style.display="flex",vn.style.alignItems="center";var Wn=document.createElement("hr");Wn.style.minWidth="20px",Wn.style.border="0px",Wn.style.borderTop=_e+"px solid "+Y.uiStyleSettings.toolboxColor,Wn.style.flexGrow="2",vn.appendChild(Wn),se.appendChild(vn),Y.widthBoxes.push(se)}),te},z.prototype.setCurrentWidth=function(Y,te){var _e=this;this.currentWidth=Y,this.widthBoxes.forEach(function(se){se.style.borderColor=se===te?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},z}(pe),ia=function(ae){function z(Y,te,_e,se){var ut=ae.call(this,Y,se||'')||this;return ut.styles=[],ut.styleBoxes=[],ut.styles=te,ut.currentStyle=_e,ut.setCurrentStyle=ut.setCurrentStyle.bind(ut),ut}return Se(z,ae),z.prototype.getUi=function(){var Y=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",this.styles.forEach(function(_e){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/Y.styles.length-5+"%",se.style.borderColor=_e===Y.currentStyle?Y.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){Y.setCurrentStyle(_e,se)}),te.appendChild(se);var ut=document.createElement("div");ut.style.minHeight="20px",ut.style.flexGrow="2",ut.style.overflow="hidden";var vn=` - `;ut.innerHTML=vn,se.appendChild(ut),Y.styleBoxes.push(se)}),te},z.prototype.setCurrentStyle=function(Y,te){var _e=this;this.currentStyle=Y,this.styleBoxes.forEach(function(se){se.style.borderColor=se===te?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},z}(pe),mt=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.strokeColor=_e.defaultColor,se.strokeWidth=_e.defaultStrokeWidth,se.strokeDasharray=_e.defaultStrokeDasharray,se.strokePanel=new xe("Line color",_e.defaultColorSet,_e.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Hn("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ia("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Se(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=ae.prototype.getState.call(this);return Y.typeName=z.typeName,Y},z.typeName="FrameMarker",z.title="Frame marker",z.icon='',z}(Zt),pt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},on=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.x1=0,se.y1=0,se.x2=0,se.y2=0,se.defaultLength=50,se.manipulationStartX=0,se.manipulationStartY=0,se.manipulationStartX1=0,se.manipulationStartY1=0,se.manipulationStartX2=0,se.manipulationStartY2=0,se.setupControlBox(),se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!!ae.prototype.ownsTarget.call(this,Y)||!(!this.grip1.ownsTarget(Y)&&!this.grip2.ownsTarget(Y))},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.manipulationStartX=Y.x,this.manipulationStartY=Y.y,this.state==="new"&&(this.x1=Y.x,this.y1=Y.y,this.x2=Y.x,this.y2=Y.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(te)?this.activeGrip=this.grip1:this.grip2.ownsTarget(te)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},z.prototype.pointerUp=function(Y){var te=this.state;ae.prototype.pointerUp.call(this,Y),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(Y),this._state="select",te==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},z.prototype.adjustVisual=function(){},z.prototype.manipulate=function(Y){this.state==="creating"?this.resize(Y):this.state==="move"?(this.x1=this.manipulationStartX1+Y.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Y.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Y.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Y.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Y)},z.prototype.resize=function(Y){switch(this.activeGrip){case this.grip1:this.x1=Y.x,this.y1=Y.y;break;case this.grip2:case void 0:this.x2=Y.x,this.y2=Y.y}this.adjustVisual(),this.adjustControlBox()},z.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){this.positionGrips()},z.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},z.prototype.createGrip=function(){var Y=new gt;return Y.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(Y.visual),Y},z.prototype.positionGrips=function(){var Y=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Y/2,this.y1-Y/2),this.positionGrip(this.grip2.visual,this.x2-Y/2,this.y2-Y/2)},z.prototype.positionGrip=function(Y,te,_e){var se=Y.transform.baseVal.getItem(0);se.setTranslate(te,_e),Y.transform.baseVal.replaceItem(se,0)},z.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y);var te=Y;this.x1=te.x1,this.y1=te.y1,this.x2=te.x2,this.y2=te.y2},z.prototype.scale=function(Y,te){ae.prototype.scale.call(this,Y,te),this.x1=this.x1*Y,this.y1=this.y1*te,this.x2=this.x2*Y,this.y2=this.y2*te,this.adjustVisual(),this.adjustControlBox()},z}(Le),hn=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.strokeColor=_e.defaultColor,se.strokeWidth=_e.defaultStrokeWidth,se.strokeDasharray=_e.defaultStrokeDasharray,se.strokePanel=new xe("Line color",_e.defaultColorSet,_e.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Hn("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ia("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!(!ae.prototype.ownsTarget.call(this,Y)&&Y!==this.visual&&Y!==this.selectorLine&&Y!==this.visibleLine)},z.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},z.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setStrokeColor=function(Y){this.strokeColor=Y,this.adjustVisual(),this.colorChanged(Y)},z.prototype.setStrokeWidth=function(Y){this.strokeWidth=Y,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Y){this.strokeDasharray=Y,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y);var te=Y;this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.createVisual(),this.adjustVisual()},z.typeName="LineMarker",z.title="Line marker",z.icon='',z}(on),Ot=function(ae){function z(Y,te,_e,se){var ut=ae.call(this,Y,se||'')||this;return ut.fonts=[],ut.fontBoxes=[],ut.fonts=te,ut.currentFont=_e,ut.setCurrentFont=ut.setCurrentFont.bind(ut),ut}return Se(z,ae),z.prototype.getUi=function(){var Y=this,te=document.createElement("div");return te.style.overflow="hidden",te.style.flexGrow="2",this.fonts.forEach(function(_e){var se=document.createElement("div");se.style.display="inline-block",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/Y.fonts.length-5+"%",se.style.borderColor=_e===Y.currentFont?Y.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){Y.setCurrentFont(_e,se)}),te.appendChild(se);var ut=document.createElement("div");ut.style.display="flex",ut.style.minHeight="20px",ut.style.flexGrow="2",ut.style.fontFamily=_e,ut.style.overflow="hidden";var vn=document.createElement("div");vn.style.whiteSpace="nowrap",vn.style.overflow="hidden",vn.style.textOverflow="ellipsis",vn.innerHTML="The quick brown fox jumps over the lazy dog",ut.appendChild(vn),se.appendChild(ut),Y.fontBoxes.push(se)}),te},z.prototype.setCurrentFont=function(Y,te){var _e=this;this.currentFont=Y,this.fontBoxes.forEach(function(se){se.style.borderColor=se===te?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},z}(pe),Xt=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.color="transparent",se.padding=5,se.DEFAULT_TEXT="your text here",se.text=se.DEFAULT_TEXT,se.isMoved=!1,se.color=_e.defaultColor,se.fontFamily=_e.defaultFontFamily,se.defaultSize={x:100,y:30},se.setColor=se.setColor.bind(se),se.setFont=se.setFont.bind(se),se.renderText=se.renderText.bind(se),se.sizeText=se.sizeText.bind(se),se.textEditDivClicked=se.textEditDivClicked.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.setSize=se.setSize.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.colorPanel=new xe("Color",_e.defaultColorSet,_e.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.fontFamilyPanel=new Ot("Font",_e.defaultFontFamilies,_e.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se}return Se(z,ae),z.prototype.ownsTarget=function(Y){if(ae.prototype.ownsTarget.call(this,Y)||Y===this.visual||Y===this.textElement||Y===this.bgRectangle)return!0;var te=!1;return this.textElement.childNodes.forEach(function(_e){_e===Y&&(te=!0)}),te},z.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.isMoved=!1,this.pointerDownPoint=Y,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Y),this._state="creating")},z.prototype.renderText=function(){var Y=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(te){Y.textElement.appendChild(me.createTSpan(te.trim()===""?" ":te.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},z.prototype.getTextScale=function(){var Y=this.textElement.getBBox(),te=1;if(Y.width>0&&Y.height>0){var _e=(1*this.width-this.width*this.padding*2/100)/Y.width,se=(1*this.height-this.height*this.padding*2/100)/Y.height;te=Math.min(_e,se)}return te},z.prototype.getTextPosition=function(Y){var te=this.textElement.getBBox(),_e=0,se=0;return te.width>0&&te.height>0&&(_e=(this.width-te.width*Y)/2,se=this.height/2-te.height*Y/2),{x:_e,y:se}},z.prototype.sizeText=function(){var Y=this.textElement.getBBox(),te=this.getTextScale(),_e=this.getTextPosition(te);_e.y-=Y.y*te,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+_e.x+"px, "+_e.y+"px) scale("+te+", "+te+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(_e.x,_e.y),this.textElement.transform.baseVal.getItem(1).setScale(te,te))},z.prototype.manipulate=function(Y){ae.prototype.manipulate.call(this,Y),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Y.x-this.pointerDownPoint.x)>5||Math.abs(Y.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function(Y){ae.prototype.resize.call(this,Y),this.isMoved=!0,this.setSize(),this.sizeText()},z.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},z.prototype.pointerUp=function(Y){var te=this.state;te==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,Y),this.setSize(),(te==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.showTextEditor=function(){var Y=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(te){te.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var te=Number.parseFloat(Y.textEditor.style.fontSize);Y.textEditor.clientWidth>=Number.parseInt(Y.textEditor.style.maxWidth)&&te>.9;)te-=.1,Y.textEditor.style.fontSize=Math.max(te,.9)+"em"}),this.textEditor.addEventListener("keyup",function(te){te.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(te){if(te.clipboardData){var _e=te.clipboardData.getData("text"),se=window.getSelection();if(!se.rangeCount)return!1;se.deleteFromDocument(),se.getRangeAt(0).insertNode(document.createTextNode(_e)),te.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Y.textEditDivClicked(Y.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},z.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Y=this.getTextScale(),te=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),_e=this.textElement.getBBox(),se={x:_e.width*Y,y:_e.height*Y};te.x-=se.x/2,te.y-=se.y/2,this.textEditor.style.top=te.y+"px",this.textEditor.style.left=te.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-te.x+"px",this.textEditor.style.fontSize=Math.max(16*Y,12)+"px",this.textElement.style.display="none"}},z.prototype.textEditDivClicked=function(Y){this.text=Y.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},z.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},z.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},z.prototype.dblClick=function(Y,te){ae.prototype.dblClick.call(this,Y,te),this.showTextEditor()},z.prototype.setColor=function(Y){this.textElement&&me.setAttributes(this.textElement,[["fill",Y]]),this.color=Y,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Y)},z.prototype.setFont=function(Y){this.textElement&&me.setAttributes(this.textElement,[["font-family",Y]]),this.fontFamily=Y,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},z.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},z.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){var te=Y;this.color=te.color,this.fontFamily=te.fontFamily,this.padding=te.padding,this.text=te.text,this.createVisual(),ae.prototype.restoreState.call(this,Y),this.setSize()},z.prototype.scale=function(Y,te){ae.prototype.scale.call(this,Y,te),this.setSize(),this.sizeText(),this.positionTextEditor()},z.typeName="TextMarker",z.title="Text marker",z.icon='',z}(tn),ht=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.color="transparent",se.lineWidth=3,se.drawing=!1,se.pixelRatio=1,se.color=_e.defaultColor,se.lineWidth=_e.defaultStrokeWidth,se.pixelRatio=_e.freehandPixelRatio,se.setColor=se.setColor.bind(se),se.addCanvas=se.addCanvas.bind(se),se.finishCreation=se.finishCreation.bind(se),se.setLineWidth=se.setLineWidth.bind(se),se.colorPanel=new xe("Color",_e.defaultColorSet,_e.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.lineWidthPanel=new Hn("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),se.lineWidthPanel.onWidthChanged=se.setLineWidth,se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!(!ae.prototype.ownsTarget.call(this,Y)&&Y!==this.visual&&Y!==this.drawingImage)},z.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var Y=me.createTransform();this.visual.transform.baseVal.appendItem(Y),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Y,te){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Y.x,Y.y),this.drawing=!0):ae.prototype.pointerDown.call(this,Y,te)},z.prototype.manipulate=function(Y){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Y.x,Y.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,Y)},z.prototype.resize=function(Y){ae.prototype.resize.call(this,Y),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(Y){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,Y)},z.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},z.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},z.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},z.prototype.finishCreation=function(){for(var Y=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),te=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],_e=te[0],se=te[1],ut=te[2],vn=te[3],Wn=!1,Oa=0;Oa0&&(Wn=!0,Oavn&&(vn=Oa),dn>ut&&(ut=dn));if(Wn){this.left=_e/this.pixelRatio,this.top=se/this.pixelRatio,this.width=(ut-_e)/this.pixelRatio,this.height=(vn-se)/this.pixelRatio;var Tn=document.createElement("canvas");Tn.width=ut-_e,Tn.height=vn-se,Tn.getContext("2d").putImageData(this.canvasContext.getImageData(_e,se,ut-_e,vn-se),0,0),this.drawingImgUrl=Tn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},z.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},z.prototype.setColor=function(Y){this.color=Y,this.colorChanged(Y)},z.prototype.setLineWidth=function(Y){this.lineWidth=Y},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){this.createVisual(),ae.prototype.restoreState.call(this,Y),this.drawingImgUrl=Y.drawingImgUrl,this.setDrawingImage()},z.prototype.scale=function(Y,te){ae.prototype.scale.call(this,Y,te),this.setDrawingImage()},z.typeName="FreehandMarker",z.title="Freehand marker",z.icon='',z}(tn),Je=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,_e||'')||this;return se.typeBoxes=[],se.currentType=te,se.setCurrentType=se.setCurrentType.bind(se),se}return Se(z,ae),z.prototype.getUi=function(){var Y=this,te=document.createElement("div");te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2";for(var _e=function(vn){var Wn="both";switch(vn){case 0:Wn="both";break;case 1:Wn="start";break;case 2:Wn="end";break;case 3:Wn="none"}var Oa=document.createElement("div");if(Oa.style.display="flex",Oa.style.flexGrow="2",Oa.style.alignItems="center",Oa.style.justifyContent="space-between",Oa.style.padding="5px",Oa.style.borderWidth="2px",Oa.style.borderStyle="solid",Oa.style.borderColor=Wn===se.currentType?se.uiStyleSettings.toolboxAccentColor:"transparent",Oa.addEventListener("click",function(){Y.setCurrentType(Wn,Oa)}),te.appendChild(Oa),Wn==="both"||Wn==="start"){var dn=document.createElement("div");dn.style.display="flex",dn.style.alignItems="center",dn.style.minHeight="20px",dn.innerHTML=` + `;ut.innerHTML=vn,se.appendChild(ut),Y.styleBoxes.push(se)}),te},z.prototype.setCurrentStyle=function(Y,te){var _e=this;this.currentStyle=Y,this.styleBoxes.forEach(function(se){se.style.borderColor=se===te?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},z}(pe),vt=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.strokeColor=_e.defaultColor,se.strokeWidth=_e.defaultStrokeWidth,se.strokeDasharray=_e.defaultStrokeDasharray,se.strokePanel=new xe("Line color",_e.defaultColorSet,_e.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Hn("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ia("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Se(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=ae.prototype.getState.call(this);return Y.typeName=z.typeName,Y},z.typeName="FrameMarker",z.title="Frame marker",z.icon='',z}(Zt),mt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},on=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.x1=0,se.y1=0,se.x2=0,se.y2=0,se.defaultLength=50,se.manipulationStartX=0,se.manipulationStartY=0,se.manipulationStartX1=0,se.manipulationStartY1=0,se.manipulationStartX2=0,se.manipulationStartY2=0,se.setupControlBox(),se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!!ae.prototype.ownsTarget.call(this,Y)||!(!this.grip1.ownsTarget(Y)&&!this.grip2.ownsTarget(Y))},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.manipulationStartX=Y.x,this.manipulationStartY=Y.y,this.state==="new"&&(this.x1=Y.x,this.y1=Y.y,this.x2=Y.x,this.y2=Y.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(te)?this.activeGrip=this.grip1:this.grip2.ownsTarget(te)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},z.prototype.pointerUp=function(Y){var te=this.state;ae.prototype.pointerUp.call(this,Y),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(Y),this._state="select",te==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},z.prototype.adjustVisual=function(){},z.prototype.manipulate=function(Y){this.state==="creating"?this.resize(Y):this.state==="move"?(this.x1=this.manipulationStartX1+Y.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Y.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Y.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Y.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Y)},z.prototype.resize=function(Y){switch(this.activeGrip){case this.grip1:this.x1=Y.x,this.y1=Y.y;break;case this.grip2:case void 0:this.x2=Y.x,this.y2=Y.y}this.adjustVisual(),this.adjustControlBox()},z.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){this.positionGrips()},z.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},z.prototype.createGrip=function(){var Y=new gt;return Y.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(Y.visual),Y},z.prototype.positionGrips=function(){var Y=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Y/2,this.y1-Y/2),this.positionGrip(this.grip2.visual,this.x2-Y/2,this.y2-Y/2)},z.prototype.positionGrip=function(Y,te,_e){var se=Y.transform.baseVal.getItem(0);se.setTranslate(te,_e),Y.transform.baseVal.replaceItem(se,0)},z.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y);var te=Y;this.x1=te.x1,this.y1=te.y1,this.x2=te.x2,this.y2=te.y2},z.prototype.scale=function(Y,te){ae.prototype.scale.call(this,Y,te),this.x1=this.x1*Y,this.y1=this.y1*te,this.x2=this.x2*Y,this.y2=this.y2*te,this.adjustVisual(),this.adjustControlBox()},z}(Le),hn=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.strokeColor=_e.defaultColor,se.strokeWidth=_e.defaultStrokeWidth,se.strokeDasharray=_e.defaultStrokeDasharray,se.strokePanel=new xe("Line color",_e.defaultColorSet,_e.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Hn("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ia("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!(!ae.prototype.ownsTarget.call(this,Y)&&Y!==this.visual&&Y!==this.selectorLine&&Y!==this.visibleLine)},z.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},z.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setStrokeColor=function(Y){this.strokeColor=Y,this.adjustVisual(),this.colorChanged(Y)},z.prototype.setStrokeWidth=function(Y){this.strokeWidth=Y,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Y){this.strokeDasharray=Y,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y);var te=Y;this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.createVisual(),this.adjustVisual()},z.typeName="LineMarker",z.title="Line marker",z.icon='',z}(on),Ot=function(ae){function z(Y,te,_e,se){var ut=ae.call(this,Y,se||'')||this;return ut.fonts=[],ut.fontBoxes=[],ut.fonts=te,ut.currentFont=_e,ut.setCurrentFont=ut.setCurrentFont.bind(ut),ut}return Se(z,ae),z.prototype.getUi=function(){var Y=this,te=document.createElement("div");return te.style.overflow="hidden",te.style.flexGrow="2",this.fonts.forEach(function(_e){var se=document.createElement("div");se.style.display="inline-block",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/Y.fonts.length-5+"%",se.style.borderColor=_e===Y.currentFont?Y.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){Y.setCurrentFont(_e,se)}),te.appendChild(se);var ut=document.createElement("div");ut.style.display="flex",ut.style.minHeight="20px",ut.style.flexGrow="2",ut.style.fontFamily=_e,ut.style.overflow="hidden";var vn=document.createElement("div");vn.style.whiteSpace="nowrap",vn.style.overflow="hidden",vn.style.textOverflow="ellipsis",vn.innerHTML="The quick brown fox jumps over the lazy dog",ut.appendChild(vn),se.appendChild(ut),Y.fontBoxes.push(se)}),te},z.prototype.setCurrentFont=function(Y,te){var _e=this;this.currentFont=Y,this.fontBoxes.forEach(function(se){se.style.borderColor=se===te?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},z}(pe),Xt=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.color="transparent",se.padding=5,se.DEFAULT_TEXT="your text here",se.text=se.DEFAULT_TEXT,se.isMoved=!1,se.color=_e.defaultColor,se.fontFamily=_e.defaultFontFamily,se.defaultSize={x:100,y:30},se.setColor=se.setColor.bind(se),se.setFont=se.setFont.bind(se),se.renderText=se.renderText.bind(se),se.sizeText=se.sizeText.bind(se),se.textEditDivClicked=se.textEditDivClicked.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.setSize=se.setSize.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.colorPanel=new xe("Color",_e.defaultColorSet,_e.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.fontFamilyPanel=new Ot("Font",_e.defaultFontFamilies,_e.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se}return Se(z,ae),z.prototype.ownsTarget=function(Y){if(ae.prototype.ownsTarget.call(this,Y)||Y===this.visual||Y===this.textElement||Y===this.bgRectangle)return!0;var te=!1;return this.textElement.childNodes.forEach(function(_e){_e===Y&&(te=!0)}),te},z.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.isMoved=!1,this.pointerDownPoint=Y,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Y),this._state="creating")},z.prototype.renderText=function(){var Y=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(te){Y.textElement.appendChild(me.createTSpan(te.trim()===""?" ":te.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},z.prototype.getTextScale=function(){var Y=this.textElement.getBBox(),te=1;if(Y.width>0&&Y.height>0){var _e=(1*this.width-this.width*this.padding*2/100)/Y.width,se=(1*this.height-this.height*this.padding*2/100)/Y.height;te=Math.min(_e,se)}return te},z.prototype.getTextPosition=function(Y){var te=this.textElement.getBBox(),_e=0,se=0;return te.width>0&&te.height>0&&(_e=(this.width-te.width*Y)/2,se=this.height/2-te.height*Y/2),{x:_e,y:se}},z.prototype.sizeText=function(){var Y=this.textElement.getBBox(),te=this.getTextScale(),_e=this.getTextPosition(te);_e.y-=Y.y*te,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+_e.x+"px, "+_e.y+"px) scale("+te+", "+te+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(_e.x,_e.y),this.textElement.transform.baseVal.getItem(1).setScale(te,te))},z.prototype.manipulate=function(Y){ae.prototype.manipulate.call(this,Y),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Y.x-this.pointerDownPoint.x)>5||Math.abs(Y.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function(Y){ae.prototype.resize.call(this,Y),this.isMoved=!0,this.setSize(),this.sizeText()},z.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},z.prototype.pointerUp=function(Y){var te=this.state;te==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,Y),this.setSize(),(te==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.showTextEditor=function(){var Y=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(te){te.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var te=Number.parseFloat(Y.textEditor.style.fontSize);Y.textEditor.clientWidth>=Number.parseInt(Y.textEditor.style.maxWidth)&&te>.9;)te-=.1,Y.textEditor.style.fontSize=Math.max(te,.9)+"em"}),this.textEditor.addEventListener("keyup",function(te){te.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(te){if(te.clipboardData){var _e=te.clipboardData.getData("text"),se=window.getSelection();if(!se.rangeCount)return!1;se.deleteFromDocument(),se.getRangeAt(0).insertNode(document.createTextNode(_e)),te.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Y.textEditDivClicked(Y.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},z.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Y=this.getTextScale(),te=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),_e=this.textElement.getBBox(),se={x:_e.width*Y,y:_e.height*Y};te.x-=se.x/2,te.y-=se.y/2,this.textEditor.style.top=te.y+"px",this.textEditor.style.left=te.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-te.x+"px",this.textEditor.style.fontSize=Math.max(16*Y,12)+"px",this.textElement.style.display="none"}},z.prototype.textEditDivClicked=function(Y){this.text=Y.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},z.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},z.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},z.prototype.dblClick=function(Y,te){ae.prototype.dblClick.call(this,Y,te),this.showTextEditor()},z.prototype.setColor=function(Y){this.textElement&&me.setAttributes(this.textElement,[["fill",Y]]),this.color=Y,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Y)},z.prototype.setFont=function(Y){this.textElement&&me.setAttributes(this.textElement,[["font-family",Y]]),this.fontFamily=Y,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},z.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},z.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){var te=Y;this.color=te.color,this.fontFamily=te.fontFamily,this.padding=te.padding,this.text=te.text,this.createVisual(),ae.prototype.restoreState.call(this,Y),this.setSize()},z.prototype.scale=function(Y,te){ae.prototype.scale.call(this,Y,te),this.setSize(),this.sizeText(),this.positionTextEditor()},z.typeName="TextMarker",z.title="Text marker",z.icon='',z}(tn),ht=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.color="transparent",se.lineWidth=3,se.drawing=!1,se.pixelRatio=1,se.color=_e.defaultColor,se.lineWidth=_e.defaultStrokeWidth,se.pixelRatio=_e.freehandPixelRatio,se.setColor=se.setColor.bind(se),se.addCanvas=se.addCanvas.bind(se),se.finishCreation=se.finishCreation.bind(se),se.setLineWidth=se.setLineWidth.bind(se),se.colorPanel=new xe("Color",_e.defaultColorSet,_e.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.lineWidthPanel=new Hn("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),se.lineWidthPanel.onWidthChanged=se.setLineWidth,se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!(!ae.prototype.ownsTarget.call(this,Y)&&Y!==this.visual&&Y!==this.drawingImage)},z.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var Y=me.createTransform();this.visual.transform.baseVal.appendItem(Y),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Y,te){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Y.x,Y.y),this.drawing=!0):ae.prototype.pointerDown.call(this,Y,te)},z.prototype.manipulate=function(Y){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Y.x,Y.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,Y)},z.prototype.resize=function(Y){ae.prototype.resize.call(this,Y),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(Y){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,Y)},z.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},z.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},z.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},z.prototype.finishCreation=function(){for(var Y=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),te=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],_e=te[0],se=te[1],ut=te[2],vn=te[3],Wn=!1,Oa=0;Oa0&&(Wn=!0,Oavn&&(vn=Oa),dn>ut&&(ut=dn));if(Wn){this.left=_e/this.pixelRatio,this.top=se/this.pixelRatio,this.width=(ut-_e)/this.pixelRatio,this.height=(vn-se)/this.pixelRatio;var Tn=document.createElement("canvas");Tn.width=ut-_e,Tn.height=vn-se,Tn.getContext("2d").putImageData(this.canvasContext.getImageData(_e,se,ut-_e,vn-se),0,0),this.drawingImgUrl=Tn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},z.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},z.prototype.setColor=function(Y){this.color=Y,this.colorChanged(Y)},z.prototype.setLineWidth=function(Y){this.lineWidth=Y},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){this.createVisual(),ae.prototype.restoreState.call(this,Y),this.drawingImgUrl=Y.drawingImgUrl,this.setDrawingImage()},z.prototype.scale=function(Y,te){ae.prototype.scale.call(this,Y,te),this.setDrawingImage()},z.typeName="FreehandMarker",z.title="Freehand marker",z.icon='',z}(tn),Je=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,_e||'')||this;return se.typeBoxes=[],se.currentType=te,se.setCurrentType=se.setCurrentType.bind(se),se}return Se(z,ae),z.prototype.getUi=function(){var Y=this,te=document.createElement("div");te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2";for(var _e=function(vn){var Wn="both";switch(vn){case 0:Wn="both";break;case 1:Wn="start";break;case 2:Wn="end";break;case 3:Wn="none"}var Oa=document.createElement("div");if(Oa.style.display="flex",Oa.style.flexGrow="2",Oa.style.alignItems="center",Oa.style.justifyContent="space-between",Oa.style.padding="5px",Oa.style.borderWidth="2px",Oa.style.borderStyle="solid",Oa.style.borderColor=Wn===se.currentType?se.uiStyleSettings.toolboxAccentColor:"transparent",Oa.addEventListener("click",function(){Y.setCurrentType(Wn,Oa)}),te.appendChild(Oa),Wn==="both"||Wn==="start"){var dn=document.createElement("div");dn.style.display="flex",dn.style.alignItems="center",dn.style.minHeight="20px",dn.innerHTML=` `,dn.style.marginLeft="5px",Oa.appendChild(dn)}var Tn=document.createElement("div");Tn.style.display="flex",Tn.style.alignItems="center",Tn.style.minHeight="20px",Tn.style.flexGrow="2";var ya=document.createElement("hr");if(ya.style.minWidth="20px",ya.style.border="0px",ya.style.borderTop="3px solid "+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee"),ya.style.flexGrow="2",Tn.appendChild(ya),Oa.appendChild(Tn),Wn==="both"||Wn==="end"){var fr=document.createElement("div");fr.style.display="flex",fr.style.alignItems="center",fr.style.minHeight="20px",fr.innerHTML=` - `,fr.style.marginRight="5px",Oa.appendChild(fr)}se.typeBoxes.push(Oa)},se=this,ut=0;ut<4;ut++)_e(ut);return te},z.prototype.setCurrentType=function(Y,te){var _e=this;this.currentType=Y,this.typeBoxes.forEach(function(se){se.style.borderColor=se===te?_e.uiStyleSettings!==void 0?_e.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(pe),rt=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.arrowType="end",se.arrowBaseHeight=10,se.arrowBaseWidth=10,se.getArrowPoints=se.getArrowPoints.bind(se),se.setArrowType=se.setArrowType.bind(se),se.arrowTypePanel=new Je("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!(!ae.prototype.ownsTarget.call(this,Y)&&Y!==this.arrow1&&Y!==this.arrow2)},z.prototype.getArrowPoints=function(Y,te){var _e=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return Y-_e/2+","+(te+se/2)+" "+Y+","+(te-se/2)+" "+(Y+_e/2)+","+(te+se/2)},z.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var Y=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),te=this.arrow1.transform.baseVal.getItem(0);te.setRotate(Y,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(te,0);var _e=this.arrow2.transform.baseVal.getItem(0);_e.setRotate(Y+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(_e,0)}},z.prototype.setArrowType=function(Y){this.arrowType=Y,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y);var te=Y;this.arrowType=te.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='',z}(hn),Te=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.fillColor=_e.defaultFillColor,se.strokeWidth=0,se.fillPanel=new xe("Color",_e.defaultColorSet,_e.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return Se(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=ae.prototype.getState.call(this);return Y.typeName=z.typeName,Y},z.typeName="CoverMarker",z.title="Cover marker",z.icon='',z}(Zt),Me=function(ae){function z(Y,te,_e,se){var ut=ae.call(this,Y,se||'')||this;return ut.opacities=[],ut.opacityBoxes=[],ut.opacities=te,ut.currentOpacity=_e,ut.setCurrentOpacity=ut.setCurrentOpacity.bind(ut),ut}return Se(z,ae),z.prototype.getUi=function(){var Y=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",te.style.justifyContent="space-between",this.opacities.forEach(function(_e){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="center",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=_e===Y.currentOpacity?Y.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){Y.setCurrentOpacity(_e,se)}),te.appendChild(se);var ut=document.createElement("div");ut.innerText=100*_e+"%",se.appendChild(ut),Y.opacityBoxes.push(se)}),te},z.prototype.setCurrentOpacity=function(Y,te){var _e=this;this.currentOpacity=Y,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===te?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(pe),Ie=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=_e.defaultHighlightColor,se.strokeWidth=0,se.opacity=_e.defaultHighlightOpacity,se.fillPanel=new xe("Color",_e.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new Me("Opacity",_e.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return Se(z,ae),z.prototype.setOpacity=function(Y){this.opacity=Y,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=ae.prototype.getState.call(this);return Y.typeName=z.typeName,Y},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='',z}(Te),be='',qe=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.bgColor="transparent",se.tipPosition={x:0,y:0},se.tipBase1Position={x:0,y:0},se.tipBase2Position={x:0,y:0},se.tipMoving=!1,se.color=_e.defaultStrokeColor,se.bgColor=_e.defaultFillColor,se.fontFamily=_e.defaultFontFamily,se.defaultSize={x:100,y:30},se.setBgColor=se.setBgColor.bind(se),se.getTipPoints=se.getTipPoints.bind(se),se.positionTip=se.positionTip.bind(se),se.setTipPoints=se.setTipPoints.bind(se),se.colorPanel=new xe("Text color",_e.defaultColorSet,se.color,''),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new xe("Fill color",_e.defaultColorSet,se.bgColor,be),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Ot("Font",_e.defaultFontFamilies,_e.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new gt,se.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return ae.prototype.ownsTarget.call(this,Y)||this.tipGrip.ownsTarget(Y)||this.tip===Y},z.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function(Y,te){this.state==="new"&&ae.prototype.pointerDown.call(this,Y,te),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(te)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,Y,te)},z.prototype.pointerUp=function(Y){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,Y);else{var te=this.state==="creating";ae.prototype.pointerUp.call(this,Y),this.setTipPoints(te),this.positionTip()}},z.prototype.manipulate=function(Y){if(this.tipMoving){var te=this.unrotatePoint(Y);this.tipPosition={x:te.x-this.manipulationStartLeft,y:te.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,Y)},z.prototype.setBgColor=function(Y){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",Y]]),me.setAttributes(this.tip,[["fill",Y]])),this.bgColor=Y,this.fillColorChanged(Y)},z.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},z.prototype.setTipPoints=function(Y){Y===void 0&&(Y=!1);var te=Math.min(this.height/2,15),_e=this.height/5;Y&&(this.tipPosition={x:te+_e/2,y:this.height+20});var se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?se.1)){var Y=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),te=this.tip1.transform.baseVal.getItem(0);te.setRotate(Y,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(te,0);var _e=this.tip2.transform.baseVal.getItem(0);_e.setRotate(Y+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(_e,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=ae.prototype.getState.call(this);return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='',z}(hn),$n=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.strokePanel.colors=_e.defaultColorSet,se.fillColor="transparent",se}return Se(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=ae.prototype.getState.call(this);return Y.typeName=z.typeName,Y},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='',z}(Lt),ta=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Sa=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.curveX=0,se.curveY=0,se.manipulationStartCurveX=0,se.manipulationStartCurveY=0,se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.positionGrips=se.positionGrips.bind(se),se.addControlGrips=se.addControlGrips.bind(se),se.adjustVisual=se.adjustVisual.bind(se),se.setupControlBox=se.setupControlBox.bind(se),se.resize=se.resize.bind(se),se.strokeColor=_e.defaultColor,se.strokeWidth=_e.defaultStrokeWidth,se.strokeDasharray=_e.defaultStrokeDasharray,se.strokePanel=new xe("Line color",_e.defaultColorSet,_e.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Hn("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ia("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!(!ae.prototype.ownsTarget.call(this,Y)&&Y!==this.visual&&Y!==this.selectorCurve&&Y!==this.visibleCurve&&!this.curveGrip.ownsTarget(Y))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Y.x,this.curveY=Y.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(te)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},z.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var Y=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Y/2,this.curveY-Y/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},z.prototype.manipulate=function(Y){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Y.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Y.y-this.manipulationStartY),ae.prototype.manipulate.call(this,Y)},z.prototype.resize=function(Y){this.activeGrip===this.curveGrip&&(this.curveX=Y.x,this.curveY=Y.y),ae.prototype.resize.call(this,Y),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},z.prototype.setStrokeColor=function(Y){this.strokeColor=Y,this.adjustVisual(),this.colorChanged(Y)},z.prototype.setStrokeWidth=function(Y){this.strokeWidth=Y,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Y){this.strokeDasharray=Y,this.adjustVisual()},z.prototype.scale=function(Y,te){this.curveX=this.curveX*Y,this.curveY=this.curveY*te,ae.prototype.scale.call(this,Y,te)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y);var te=Y;this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.curveX=te.curveX,this.curveY=te.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='',z}(on),_n=function(){function ae(z,Y){Y===void 0&&(Y=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,this.cancelable=Y}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Bt=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,!1)||this;return se.dataUrl=te,se.state=_e,se}return Se(z,ae),z}(_n),mn=function(ae){function z(Y,te,_e){_e===void 0&&(_e=!1);var se=ae.call(this,Y,_e)||this;return se.marker=te,se}return Se(z,ae),z}(_n),Gt=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(z,Y){this[z].push(Y)},ae.prototype.removeEventListener=function(z,Y){var te=this[z].indexOf(Y);te>-1&&this[z].splice(te,1)},ae}(),ze=function(){function ae(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new pt,this._isOpen=!1,this.undoRedoManager=new ta,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Gt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new Ue(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[mt,ht,rt,Xt,$n,Lt,Ie,qe,nn,Te,hn,Sa]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[mt,ht,rt,Xt,Lt,Ie,qe]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[mt,ht,rt,Xt,Ie]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var Y=this;this._availableMarkerTypes.splice(0),z.forEach(function(te){if(typeof te=="string"){var _e=Y.ALL_MARKER_TYPES.find(function(se){return se.typeName===te});_e!==void 0&&Y._availableMarkerTypes.push(_e)}else Y._availableMarkerTypes.push(te)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(z){this._zoomLevel=z,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),fe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var z=this;this.styles.styleSheetRoot===void 0&&he.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=he.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Y){return Y(new _n(z))})},ae.prototype.render=function(){return He(this,void 0,void 0,function(){var z;return et(this,function(Y){switch(Y.label){case 0:return this.setCurrentMarker(),(z=new Ae).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Y.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Y.sent()]}})})},ae.prototype.close=function(z){var Y=this;if(z===void 0&&(z=!1),this.isOpen){var te=!1;z||this.eventListeners.beforeclose.forEach(function(_e){var se=new _n(Y,!0);_e(se),se.defaultPrevented&&(te=!0)}),te||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(_e){return _e(new _n(Y))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var z,Y=[],te=0;tethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,te=Y',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new dt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(z),1),z.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(z,Y){if(z==="marker"&&Y!==void 0)this.createNewMarker(Y);else if(z==="action")switch(Y){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var Y=!1;if(this.eventListeners.markerbeforedelete.forEach(function(_e){var se=new mn(z,z._currentMarker,!0);_e(se),se.defaultPrevented&&(Y=!0)}),!Y){var te=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(_e){return _e(new mn(z,te))})}}},ae.prototype.clear=function(){var z=this,Y=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ut){var vn=new mn(z,void 0,!0);ut(vn),vn.defaultPrevented&&(Y=!0)}),!Y)){this.setCurrentMarker();for(var te=function(ut){var vn=_e.markers[ut];_e.setCurrentMarker(_e.markers[ut]),_e._currentMarker.dispose(),_e.markerImage.removeChild(_e._currentMarker.container),_e.markers.splice(_e.markers.indexOf(_e._currentMarker),1),_e.eventListeners.markerdelete.forEach(function(Wn){return Wn(new mn(z,vn))})},_e=this,se=this.markers.length-1;se>=0;se--)te(se);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var z;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Y=this.getState(),te=this.undoRedoManager.getLastUndoStep();if(!te||te.width===Y.width&&te.height===Y.height){var _e=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Y),_e1&&this.panTo({x:z.clientX,y:z.clientY}))},ae.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(z,Y){var te=this.markerImage.getBoundingClientRect();return{x:(z-te.left)/this.zoomLevel,y:(Y-te.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(z){fe.addKey(z)},ae.prototype.addEventListener=function(z,Y){this.eventListeners.addEventListener(z,Y)},ae.prototype.removeEventListener=function(z,Y){this.eventListeners.removeEventListener(z,Y)},ae.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Y){return Y(new _n(z))}))},ae.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Y){return Y(new _n(z))}))},ae.instanceCounter=0,ae}();/* ********************************** + `,fr.style.marginRight="5px",Oa.appendChild(fr)}se.typeBoxes.push(Oa)},se=this,ut=0;ut<4;ut++)_e(ut);return te},z.prototype.setCurrentType=function(Y,te){var _e=this;this.currentType=Y,this.typeBoxes.forEach(function(se){se.style.borderColor=se===te?_e.uiStyleSettings!==void 0?_e.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(pe),rt=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.arrowType="end",se.arrowBaseHeight=10,se.arrowBaseWidth=10,se.getArrowPoints=se.getArrowPoints.bind(se),se.setArrowType=se.setArrowType.bind(se),se.arrowTypePanel=new Je("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!(!ae.prototype.ownsTarget.call(this,Y)&&Y!==this.arrow1&&Y!==this.arrow2)},z.prototype.getArrowPoints=function(Y,te){var _e=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return Y-_e/2+","+(te+se/2)+" "+Y+","+(te-se/2)+" "+(Y+_e/2)+","+(te+se/2)},z.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var Y=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),te=this.arrow1.transform.baseVal.getItem(0);te.setRotate(Y,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(te,0);var _e=this.arrow2.transform.baseVal.getItem(0);_e.setRotate(Y+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(_e,0)}},z.prototype.setArrowType=function(Y){this.arrowType=Y,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y);var te=Y;this.arrowType=te.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='',z}(hn),Te=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.fillColor=_e.defaultFillColor,se.strokeWidth=0,se.fillPanel=new xe("Color",_e.defaultColorSet,_e.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return Se(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=ae.prototype.getState.call(this);return Y.typeName=z.typeName,Y},z.typeName="CoverMarker",z.title="Cover marker",z.icon='',z}(Zt),Me=function(ae){function z(Y,te,_e,se){var ut=ae.call(this,Y,se||'')||this;return ut.opacities=[],ut.opacityBoxes=[],ut.opacities=te,ut.currentOpacity=_e,ut.setCurrentOpacity=ut.setCurrentOpacity.bind(ut),ut}return Se(z,ae),z.prototype.getUi=function(){var Y=this,te=document.createElement("div");return te.style.display="flex",te.style.overflow="hidden",te.style.flexGrow="2",te.style.justifyContent="space-between",this.opacities.forEach(function(_e){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="center",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=_e===Y.currentOpacity?Y.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){Y.setCurrentOpacity(_e,se)}),te.appendChild(se);var ut=document.createElement("div");ut.innerText=100*_e+"%",se.appendChild(ut),Y.opacityBoxes.push(se)}),te},z.prototype.setCurrentOpacity=function(Y,te){var _e=this;this.currentOpacity=Y,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===te?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(pe),Ie=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=_e.defaultHighlightColor,se.strokeWidth=0,se.opacity=_e.defaultHighlightOpacity,se.fillPanel=new xe("Color",_e.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new Me("Opacity",_e.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return Se(z,ae),z.prototype.setOpacity=function(Y){this.opacity=Y,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=ae.prototype.getState.call(this);return Y.typeName=z.typeName,Y},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='',z}(Te),be='',qe=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.bgColor="transparent",se.tipPosition={x:0,y:0},se.tipBase1Position={x:0,y:0},se.tipBase2Position={x:0,y:0},se.tipMoving=!1,se.color=_e.defaultStrokeColor,se.bgColor=_e.defaultFillColor,se.fontFamily=_e.defaultFontFamily,se.defaultSize={x:100,y:30},se.setBgColor=se.setBgColor.bind(se),se.getTipPoints=se.getTipPoints.bind(se),se.positionTip=se.positionTip.bind(se),se.setTipPoints=se.setTipPoints.bind(se),se.colorPanel=new xe("Text color",_e.defaultColorSet,se.color,''),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new xe("Fill color",_e.defaultColorSet,se.bgColor,be),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Ot("Font",_e.defaultFontFamilies,_e.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new gt,se.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return ae.prototype.ownsTarget.call(this,Y)||this.tipGrip.ownsTarget(Y)||this.tip===Y},z.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function(Y,te){this.state==="new"&&ae.prototype.pointerDown.call(this,Y,te),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(te)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,Y,te)},z.prototype.pointerUp=function(Y){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,Y);else{var te=this.state==="creating";ae.prototype.pointerUp.call(this,Y),this.setTipPoints(te),this.positionTip()}},z.prototype.manipulate=function(Y){if(this.tipMoving){var te=this.unrotatePoint(Y);this.tipPosition={x:te.x-this.manipulationStartLeft,y:te.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,Y)},z.prototype.setBgColor=function(Y){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",Y]]),me.setAttributes(this.tip,[["fill",Y]])),this.bgColor=Y,this.fillColorChanged(Y)},z.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},z.prototype.setTipPoints=function(Y){Y===void 0&&(Y=!1);var te=Math.min(this.height/2,15),_e=this.height/5;Y&&(this.tipPosition={x:te+_e/2,y:this.height+20});var se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?se.1)){var Y=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),te=this.tip1.transform.baseVal.getItem(0);te.setRotate(Y,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(te,0);var _e=this.tip2.transform.baseVal.getItem(0);_e.setRotate(Y+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(_e,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=ae.prototype.getState.call(this);return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='',z}(hn),$n=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.strokePanel.colors=_e.defaultColorSet,se.fillColor="transparent",se}return Se(z,ae),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=ae.prototype.getState.call(this);return Y.typeName=z.typeName,Y},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='',z}(Lt),ta=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Sa=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,te,_e)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.curveX=0,se.curveY=0,se.manipulationStartCurveX=0,se.manipulationStartCurveY=0,se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.positionGrips=se.positionGrips.bind(se),se.addControlGrips=se.addControlGrips.bind(se),se.adjustVisual=se.adjustVisual.bind(se),se.setupControlBox=se.setupControlBox.bind(se),se.resize=se.resize.bind(se),se.strokeColor=_e.defaultColor,se.strokeWidth=_e.defaultStrokeWidth,se.strokeDasharray=_e.defaultStrokeDasharray,se.strokePanel=new xe("Line color",_e.defaultColorSet,_e.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Hn("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new ia("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Se(z,ae),z.prototype.ownsTarget=function(Y){return!(!ae.prototype.ownsTarget.call(this,Y)&&Y!==this.visual&&Y!==this.selectorCurve&&Y!==this.visibleCurve&&!this.curveGrip.ownsTarget(Y))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Y,te){ae.prototype.pointerDown.call(this,Y,te),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Y.x,this.curveY=Y.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(te)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},z.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var Y=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Y/2,this.curveY-Y/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},z.prototype.manipulate=function(Y){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Y.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Y.y-this.manipulationStartY),ae.prototype.manipulate.call(this,Y)},z.prototype.resize=function(Y){this.activeGrip===this.curveGrip&&(this.curveX=Y.x,this.curveY=Y.y),ae.prototype.resize.call(this,Y),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},z.prototype.setStrokeColor=function(Y){this.strokeColor=Y,this.adjustVisual(),this.colorChanged(Y)},z.prototype.setStrokeWidth=function(Y){this.strokeWidth=Y,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Y){this.strokeDasharray=Y,this.adjustVisual()},z.prototype.scale=function(Y,te){this.curveX=this.curveX*Y,this.curveY=this.curveY*te,ae.prototype.scale.call(this,Y,te)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Y=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return Y.typeName=z.typeName,Y},z.prototype.restoreState=function(Y){ae.prototype.restoreState.call(this,Y);var te=Y;this.strokeColor=te.strokeColor,this.strokeWidth=te.strokeWidth,this.strokeDasharray=te.strokeDasharray,this.curveX=te.curveX,this.curveY=te.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='',z}(on),_n=function(){function ae(z,Y){Y===void 0&&(Y=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,this.cancelable=Y}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Bt=function(ae){function z(Y,te,_e){var se=ae.call(this,Y,!1)||this;return se.dataUrl=te,se.state=_e,se}return Se(z,ae),z}(_n),mn=function(ae){function z(Y,te,_e){_e===void 0&&(_e=!1);var se=ae.call(this,Y,_e)||this;return se.marker=te,se}return Se(z,ae),z}(_n),Gt=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(z,Y){this[z].push(Y)},ae.prototype.removeEventListener=function(z,Y){var te=this[z].indexOf(Y);te>-1&&this[z].splice(te,1)},ae}(),ze=function(){function ae(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new mt,this._isOpen=!1,this.undoRedoManager=new ta,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Gt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new Ue(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[vt,ht,rt,Xt,$n,Lt,Ie,qe,nn,Te,hn,Sa]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[vt,ht,rt,Xt,Lt,Ie,qe]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[vt,ht,rt,Xt,Ie]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var Y=this;this._availableMarkerTypes.splice(0),z.forEach(function(te){if(typeof te=="string"){var _e=Y.ALL_MARKER_TYPES.find(function(se){return se.typeName===te});_e!==void 0&&Y._availableMarkerTypes.push(_e)}else Y._availableMarkerTypes.push(te)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(z){this._zoomLevel=z,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),fe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var z=this;this.styles.styleSheetRoot===void 0&&he.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=he.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Y){return Y(new _n(z))})},ae.prototype.render=function(){return He(this,void 0,void 0,function(){var z;return et(this,function(Y){switch(Y.label){case 0:return this.setCurrentMarker(),(z=new Ae).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Y.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Y.sent()]}})})},ae.prototype.close=function(z){var Y=this;if(z===void 0&&(z=!1),this.isOpen){var te=!1;z||this.eventListeners.beforeclose.forEach(function(_e){var se=new _n(Y,!0);_e(se),se.defaultPrevented&&(te=!0)}),te||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(_e){return _e(new _n(Y))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var z,Y=[],te=0;tethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,te=Y',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new dt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(z),1),z.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(z,Y){if(z==="marker"&&Y!==void 0)this.createNewMarker(Y);else if(z==="action")switch(Y){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var Y=!1;if(this.eventListeners.markerbeforedelete.forEach(function(_e){var se=new mn(z,z._currentMarker,!0);_e(se),se.defaultPrevented&&(Y=!0)}),!Y){var te=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(_e){return _e(new mn(z,te))})}}},ae.prototype.clear=function(){var z=this,Y=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ut){var vn=new mn(z,void 0,!0);ut(vn),vn.defaultPrevented&&(Y=!0)}),!Y)){this.setCurrentMarker();for(var te=function(ut){var vn=_e.markers[ut];_e.setCurrentMarker(_e.markers[ut]),_e._currentMarker.dispose(),_e.markerImage.removeChild(_e._currentMarker.container),_e.markers.splice(_e.markers.indexOf(_e._currentMarker),1),_e.eventListeners.markerdelete.forEach(function(Wn){return Wn(new mn(z,vn))})},_e=this,se=this.markers.length-1;se>=0;se--)te(se);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var z;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Y=this.getState(),te=this.undoRedoManager.getLastUndoStep();if(!te||te.width===Y.width&&te.height===Y.height){var _e=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Y),_e1&&this.panTo({x:z.clientX,y:z.clientY}))},ae.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(z,Y){var te=this.markerImage.getBoundingClientRect();return{x:(z-te.left)/this.zoomLevel,y:(Y-te.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(z){fe.addKey(z)},ae.prototype.addEventListener=function(z,Y){this.eventListeners.addEventListener(z,Y)},ae.prototype.removeEventListener=function(z,Y){this.eventListeners.removeEventListener(z,Y)},ae.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Y){return Y(new _n(z))}))},ae.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Y){return Y(new _n(z))}))},ae.instanceCounter=0,ae}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -262,7 +262,7 @@ PERFORMANCE OF THIS SOFTWARE. `))},ae.instanceCounter=0,ae}(),Ht=y("8hTe"),Fe=y.n(Ht),Un=/]*>/g;function Fa(ae){var z=document.createElement("div");return z.innerHTML=ae,z.childNodes.length===0?"":z.childNodes[0].nodeValue}var fa=re.a=function(ae){var z=ae.value,Y=z===void 0?"":z,te=ae.edit,_e=te===void 0?!1:te,se=ae.className,ut=ae.showTextOnly,vn=ae.showLines,Wn=ae.replaces,Oa=ae.zoomImg,dn=ae.hasMask,Tn=ae.style,ya=Tn===void 0?{}:Tn,fr=ae.stylesPrev,gr=fr===void 0?{}:fr,ir=String(Y),Qa=Object(b.useRef)(),ba=Object(b.useRef)(),Na=Object(b.useState)(""),Ma=Object(M.a)(Na,2),Jt=Ma[0],Rt=Ma[1],An=Object(b.useState)("office"),aa=Object(M.a)(An,2),ra=aa[0],Fn=aa[1],da=function(){var Et=new at(ba.current);Et.displayMode="popup",Et.addRenderEventListener(function(){var jt=Object(R.a)(a.a.mark(function Yt(wn){var fn;return a.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return Qa.current.style.display="none",jn.next=3,Object(le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:wn}});case 3:fn=jn.sent,fn!=null&&fn.id&&Wn(ba.current.getAttribute("src").replace(K.a.API_SERVER,""),"/api/attachments/".concat(fn==null?void 0:fn.id,"?type=").concat(fn.content_type));case 5:case"end":return jn.stop()}},Yt)}));return function(Yt){return jt.apply(this,arguments)}}()),Et.show()},Ta=function(){var Et=new ze(ba.current);Et.settings.displayMode="popup",Et.addEventListener("render",function(){var jt=Object(R.a)(a.a.mark(function Yt(wn){var fn;return a.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(Qa.current.style.display="none",!ba.current){jn.next=6;break}return jn.next=4,Object(le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:wn.dataUrl}});case 4:fn=jn.sent,fn!=null&&fn.id&&Wn(ba.current.getAttribute("src").replace(K.a.API_SERVER,""),"/api/attachments/".concat(fn==null?void 0:fn.id,"?type=").concat(fn.content_type));case 6:case"end":return jn.stop()}},Yt)}));return function(Yt){return jt.apply(this,arguments)}}()),Et.show(),window.markerArea=Et},Wa=Object(b.useMemo)(function(){Qa.current&&(Qa.current.style.zIndex=-1);try{var wt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Et=/\"\/api\/attachments\/|\"\/attachments\/download\//g,jt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;ir=ir.replace(wt,"("+K.a.API_SERVER+"/api/attachments/").replace(Et,'"'+K.a.API_SERVER+"/api/attachments/").replace(jt,'"'+K.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `)}catch(zn){}var Yt=H(ir),wn=T();if(ir.match(/\[TOC\]/)&&(Yt=Yt.replace("

[TOC]

",v()),w()),Yt=Yt.replace(/(__special_katext_id_\d+__)/g,function(zn,jn){var $t=wn[jn],yn=$t.type,pn=$t.expression;return Object($.renderToString)(Fa(pn)||"",{displayMode:yn==="block",throwOnError:!1,output:"html"})}),Yt=Yt.replace(/▁/g,"\u2581\u2581\u2581"),S(),ut){var fn=document.createElement("div");return fn.innerHTML=Yt,fn.innerText}return setTimeout(function(){return lt()},500),Yt},[ir]),ue=Object(b.useRef)();D.WebkitLineClamp=vn,vn&&(ya=Object(O.a)(Object(O.a)({},ya),D));function ot(wt){var Et=wt.target;if(Et.tagName.toUpperCase()==="IMG"){if(Oa){var jt=Et.getAttribute("src");Rt(jt),Fn("image")}}else if(Et.tagName.toUpperCase()==="A"){var Yt=Et.getAttribute("href");if(Yt.indexOf("office")>-1)wt.preventDefault(),Rt(Yt),Fn("office");else if(Yt.indexOf("application/pdf")>-1)wt.preventDefault(),Rt(Yt),Fn("pdf");else if(Yt.indexOf("text/html")>-1)wt.preventDefault(),Rt(Yt),Fn("html");else if(Yt.startsWith("#")){wt.preventDefault();var wn=document.getElementById(Yt.replace("#",""));wn&&wn.scrollIntoView(!0)}}}var lt=function(){var Et,jt=(Et=ue.current)===null||Et===void 0?void 0:Et.querySelectorAll("video");jt==null||jt.forEach(function(Yt){if(Yt.oncontextmenu=function(){return!1},Yt.src.indexOf(".m3u8")>-1&&!Yt.canPlayType("application/vnd.apple.mpegurl")){if(G.a.isSupported()){var wn=new G.a;wn.loadSource(Yt.src),wn.attachMedia(Yt)}}})};Object(b.useEffect)(function(){if(ue.current&&Wa&&(Wa.match(Un)&&window.PR.prettyPrint()),ue.current)return ue.current.addEventListener("click",ot),function(){ue.current.removeEventListener("click",ot),S(),w()}},[Wa,ue.current,ot]);var ft=function(Et){if(!_e)return;Et.target.nodeName==="IMG"?(Qa.current.style.zIndex=1,Qa.current.style.display="flex",Qa.current.style.width=Et.target.clientWidth+"px",Qa.current.style.height=Et.target.clientHeight+"px",Qa.current.style.top=Et.target.offsetTop+"px",Qa.current.style.left=Et.target.offsetLeft+"px",ba.current.src=Et.target.getAttribute("src")):Qa.current.style.display="none"};return u.a.createElement("div",{style:{position:"relative"}},u.a.createElement("div",{ref:ue,style:Object(O.a)({},ya),className:"".concat(se||""," markdown-body ").concat(Fe.a.mdBody),onMouseOver:ft,dangerouslySetInnerHTML:{__html:Wa}}),u.a.createElement("div",{ref:Qa,className:Fe.a.button},u.a.createElement(W.a,null,u.a.createElement(B.a,{onClick:function(){return da()}},"\u88C1\u526A"),u.a.createElement(B.a,{onClick:function(){return Ta()}},"\u7F16\u8F91"))),u.a.createElement("img",{ref:ba,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),u.a.createElement(ie.a,{close:!0,data:Jt,type:Jt!=null&&Jt.length?ra:"",style:Object(O.a)({},gr),onClose:function(){return Rt("")}}))}},"9VGf":function(Ge,re,y){"use strict";y.d(re,"a",function(){return k});var Q=y("q1tI"),W=y.n(Q);function k(B,O){var R=Object(Q.useRef)();Object(Q.useEffect)(function(){R.current=B}),Object(Q.useEffect)(function(){function M(){R.current()}if(O!==null){var p=setInterval(M,O);return function(){return clearInterval(p)}}},[O])}},"A/g1":function(Ge,re){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoI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"},BPZU:function(Ge,re){var y=32,Q=7,W=256;function k(u){for(var d=0;u>=y;)d|=u&1,u>>=1;return u+d}function B(u,d,m,o){var c=d+1;if(c===m)return 1;if(o(u[c++],u[d])<0){for(;c=0;)c++;return c-d}function O(u,d,m){for(m--;d>>1,c(f,u[l])<0?t=l:i=l+1;var s=o-i;switch(s){case 3:u[i+3]=u[i+2];case 2:u[i+2]=u[i+1];case 1:u[i+1]=u[i];break;default:for(;s>0;)u[i+s]=u[i+s-1],s--}u[i]=f}}function M(u,d,m,o,c,f){var i=0,t=0,l=1;if(f(u,d[m+c])>0){for(t=o-c;l0;)i=l,l=(l<<1)+1,l<=0&&(l=t);l>t&&(l=t),i+=c,l+=c}else{for(t=c+1;lt&&(l=t);var s=i;i=c-l,l=c-s}for(i++;i>>1);f(u,d[m+w])>0?i=w+1:l=w}return l}function p(u,d,m,o,c,f){var i=0,t=0,l=1;if(f(u,d[m+c])<0){for(t=c+1;lt&&(l=t);var s=i;i=c-l,l=c-s}else{for(t=o-c;l=0;)i=l,l=(l<<1)+1,l<=0&&(l=t);l>t&&(l=t),i+=c,l+=c}for(i++;i>>1);f(u,d[m+w])<0?l=w:i=w+1}return l}function a(u,d){var m=Q,o=0,c=W,f=0,i,t,l=0;o=u.length,o<2*W&&(c=o>>>1);var s=[];f=o<120?5:o<1542?10:o<119151?19:40,i=[],t=[];function w(h,g){i[l]=h,t[l]=g,l+=1}function D(){for(;l>1;){var h=l-2;if(h>=1&&t[h-1]<=t[h]+t[h+1]||h>=2&&t[h-2]<=t[h]+t[h-1])t[h-1]t[h+1])break;v(h)}}function C(){for(;l>1;){var h=l-2;h>0&&t[h-1]=Q||N>=Q);if(A)break;P<0&&(P=0),P+=2}if(m=P,m<1&&(m=1),g===1){for(S=0;S=0;S--)u[H+S]=u[P+S];u[F]=s[U];return}for(var N=m;;){var A=0,G=0,K=!1;do if(d(s[U],u[E])<0){if(u[F--]=u[E--],A++,G=0,--g===0){K=!0;break}}else if(u[F--]=s[U--],G++,A=0,--T===1){K=!0;break}while((A|G)=0;S--)u[H+S]=u[P+S];if(g===0){K=!0;break}}if(u[F--]=s[U--],--T===1){K=!0;break}if(G=T-M(u[E],s,0,T,T-1,d),G!==0){for(F-=G,U-=G,T-=G,H=F+1,P=U+1,S=0;S=Q||G>=Q);if(K)break;N<0&&(N=0),N+=2}if(m=N,m<1&&(m=1),T===1){for(F-=g,E-=g,H=F+1,P=E+1,S=g-1;S>=0;S--)u[H+S]=u[P+S];u[F]=s[U]}else{if(T===0)throw new Error;for(P=F-(T-1),S=0;St&&(l=t),R(u,m,m+l,m+f,d),f=l}i.pushRun(m,f),i.mergeRuns(),c-=f,m+=f}while(c!==0);i.forceMergeRuns()}Ge.exports=b},BU3w:function(Ge,re,y){"use strict";y.d(re,"a",function(){return R});var Q=y("MNnm"),W="rc-util-key";function k(M){if(M.attachTo)return M.attachTo;var p=document.querySelector("head");return p||document.body}function B(M){var p,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Q.a)())return null;var b=document.createElement("style");if((p=a.csp)===null||p===void 0?void 0:p.nonce){var u;b.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}b.innerHTML=M;var d=k(a),m=d.firstChild;return a.prepend&&d.prepend?d.prepend(b):a.prepend&&m?d.insertBefore(b,m):d.appendChild(b),b}var O=new Map;function R(M,p){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=k(a);if(!O.has(b)){var u=B("",a),d=u.parentNode;O.set(b,d),d.removeChild(u)}var m=Array.from(O.get(b).children).find(function(t){return t.tagName==="STYLE"&&t[W]===p});if(m){var o,c;if(((o=a.csp)===null||o===void 0?void 0:o.nonce)&&m.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var f;m.nonce=(f=a.csp)===null||f===void 0?void 0:f.nonce}return m.innerHTML!==M&&(m.innerHTML=M),m}var i=B(M,a);return i[W]=p,i}},Bd2K:function(Ge,re,y){(function(Q){Q(y("VrN/"),y("osHv"))})(function(Q){Q.defineOption("autoCloseTags",!1,function(a,b,u){if(u!=Q.Init&&u&&a.removeKeyMap("autoCloseTags"),!b)return;var d={name:"autoCloseTags"};(typeof b!="object"||b.whenClosing!==!1)&&(d["'/'"]=function(m){return R(m)}),(typeof b!="object"||b.whenOpening!==!1)&&(d["'>'"]=function(m){return B(m)}),a.addKeyMap(d)});var W=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],k=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function B(a){if(a.getOption("disableInput"))return Q.Pass;for(var b=a.listSelections(),u=[],d=a.getOption("autoCloseTags"),m=0;mo.ch&&(l=l.slice(0,l.length-c.end+o.ch));var C=l.toLowerCase();if(!l||c.type=="string"&&(c.end!=o.ch||!/[\"\']/.test(c.string.charAt(c.string.length-1))||c.string.length==1)||c.type=="tag"&&t.close||c.string.indexOf("/")==o.ch-c.start-1||w&&M(w,C)>-1||p(a,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(i)||[],l,o,!0))return Q.Pass;var v=typeof d=="object"&&d.emptyTags;if(v&&M(v,l)>-1){u[m]={text:"/>",newPos:Q.Pos(o.line,o.ch+2)};continue}var n=D&&M(D,C)>-1;u[m]={indent:n,text:">"+(n?` -`:"")+"",newPos:n?Q.Pos(o.line+1,0):Q.Pos(o.line,o.ch+1)}}for(var _=typeof d=="object"&&d.dontIndentOnAutoClose,m=b.length-1;m>=0;m--){var h=u[m];a.replaceRange(h.text,b[m].head,b[m].anchor,"+insert");var g=a.listSelections().slice(0);g[m]={head:h.newPos,anchor:h.newPos},a.setSelections(g),!_&&h.indent&&(a.indentLine(h.newPos.line,null,!0),a.indentLine(h.newPos.line+1,null,!0))}}function O(a,b){for(var u=a.listSelections(),d=[],m=b?"/":""&&(w+=">"),d[f]=w}if(a.replaceSelections(d),u=a.listSelections(),!c)for(var f=0;f=0&&b[i]==u;i--)++f;d=c.to;for(var i=1;i0){for(var b=0;b1&&arguments[1]!==void 0?arguments[1]:"",b=[],u=0;u.5?D:w}function b(w,D,C,v,n){var _=w.length;if(n===1)for(var h=0;h<_;h++)v[h]=p(w[h],D[h],C);else for(var g=_&&w[0].length,h=0;h<_;h++)for(var x=0;xn;if(_)w.length=n;else for(var h=v;h=0&&!(N[pe]<=Qe);pe--);pe=Math.min(pe,T-2)}else{for(pe=Se;peQe);pe++);pe=Math.min(pe-1,T-2)}Se=pe,He=Qe;var xe=N[pe+1]-N[pe];if(xe===0)return;if(je=(Qe-N[pe])/xe,x)if(fe=A[pe],me=A[pe===0?pe:pe-1],Ae=A[pe>T-2?T-1:pe+1],he=A[pe>T-3?T-1:pe+2],E)m(me,fe,Ae,he,je,je*je,je*je*je,h(dt,n),P);else{var Le;if(U)Le=m(me,fe,Ae,he,je,je*je,je*je*je,Ue,1),Le=f(Ue);else{if(F)return a(fe,Ae,je);Le=o(me,fe,Ae,he,je,je*je,je*je*je)}g(dt,n,Le)}else if(E)b(A[pe],A[pe+1],je,h(dt,n),P);else{var Le;if(U)b(A[pe],A[pe+1],je,Ue,1),Le=f(Ue);else{if(F)return a(A[pe],A[pe+1],je);Le=p(A[pe],A[pe+1],je)}g(dt,n,Le)}},Ve=new Q({target:w._target,life:H,loop:w._loop,delay:w._delay,onframe:st,ondestroy:C});return D&&D!=="spline"&&(Ve.easing=D),Ve}var l=function(w,D,C,v){this._tracks={},this._target=w,this._loop=D||!1,this._getter=C||R,this._setter=v||M,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};l.prototype={when:function(w,D){var C=this._tracks;for(var v in D){if(!D.hasOwnProperty(v))continue;if(!C[v]){C[v]=[];var n=this._getter(this._target,v);if(n==null)continue;w!==0&&C[v].push({time:0,value:c(n)})}C[v].push({time:w,value:D[v]})}return this},during:function(w){return this._onframeList.push(w),this},pause:function(){for(var w=0;w1&&b&&b.length>1){var d=k(b)/k(u);!isFinite(d)&&(d=1),p.pinchScale=d;var m=B(b);return p.pinchX=m[0],p.pinchY=m[1],{type:"pinch",target:M[0].target,event:p}}}},R=W;Ge.exports=R},CCdo:function(Ge,re,y){Ge.exports={flex_box_center:"flex_box_center___3ACWg",flex_space_between:"flex_space_between___2YdIf",flex_box_vertical_center:"flex_box_vertical_center___lNx6c",flex_box_center_end:"flex_box_center_end___1EQGR",flex_box_column:"flex_box_column___3gBVY",title:"title___1Uu39",search:"search___17Xmk",head:"head___3jpio",row:"row___2jdpt",btns:"btns___3Qg_w",sort:"sort___uQoc6"}},CIbS:function(Ge,re,y){"use strict";var Q=y("2qtc"),W=y("kLXV"),k=y("T2oS"),B=y("W9HT"),O=y("sRBo"),R=y("kaz8"),M=y("7Kak"),p=y("9yH6"),a=y("14J3"),b=y("BMrR"),u=y("iQDF"),d=y("+eQT"),m=y("miYZ"),o=y("tsqr"),c=y("jrin"),f=y("oBTY"),i=y("k1fw"),t=y("9og8"),l=y("y8nQ"),s=y("Vl3Y"),w=y("tJVT"),D=y("WmNS"),C=y.n(D),v=y("q1tI"),n=y.n(v),_=y("wd/R"),h=y.n(_),g=y("ErOA"),x=y("1vsH"),T=y("Ty5D"),S=y("9kvl"),E=y("V0Rq"),U=y("6K3P"),F=y.n(U),P=y("jr/l");function H(G,K){for(var $=[],ie=G;ie0)){_n.next=10;break}return o.b.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),_n.abrupt("return");case 10:return Ot(!0),qe=Ve.map(function(Bt){return Bt.key}),Lt={check_ids:Object(f.a)(le.actionTabs.selectArrs),end_time:h()(Me.end_time).format("YYYY-MM-DD HH:mm"),publish_time:h()(Me.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:Ct.map(function(Bt){return Bt.course_group_id}),unified_setting:!Ct.length},_n.next=15,Object(g.a)("/api/courses/".concat(Se.coursesId,"/exercises/publish.json"),{method:"post",body:Lt});case 15:nn=_n.sent,nn.status===0&&(Object(x.cb)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),Je(),o.b.success("\u53D1\u5E03\u6210\u529F"),de({type:"exercise/setActionTabs",payload:{}}),le!=null&&($n=le.actionTabs)!==null&&$n!==void 0&&$n.cb?le==null||((ta=le.actionTabs)===null||ta===void 0)||ta.cb():de({type:"classroomList/getClassroomExercisesList",payload:Object(i.a)({},le.actionTabs.params)})),Ot(!1);case 18:case"end":return _n.stop()}},Te)}));return function(){return rt.apply(this,arguments)}}(),Je=function(){he(1),dt([]),tn([])};return n.a.createElement(W.a,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",visible:le.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:ht,confirmLoading:hn||xe,onCancel:function(){Je(),de({type:"exercise/setActionTabs",payload:{}})}},n.a.createElement(B.a,{spinning:xe},Ve&&n.a.createElement(s.a,{form:je},!!(le!=null&&($=le.actionTabs)!==null&&$!==void 0&&$.disabled)&&n.a.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},n.a.createElement("img",{style:{marginRight:5},src:F.a}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),n.a.createElement(b.a,null,n.a.createElement("span",{className:"mr10 mt5"},n.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),n.a.createElement(s.a.Item,{name:"publish_time"},n.a.createElement(d.a,{style:{width:155},getPopupContainer:function(Te){return Te.parentNode},disabledDate:function(Te){return Te&&Te<=h()().subtract(0,"days")},disabledTime:N,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:h()(Object(x.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),n.a.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),n.a.createElement(s.a.Item,{name:"end_time"},n.a.createElement(d.a,{style:{width:170},getPopupContainer:function(Te){return Te.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:h()(Object(x.d)(),"HH:mm")},disabledDate:function(Te){return Te&&Te0&&n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},n.a.createElement("span",{style:{flex:1}},n.a.createElement(R.a,{checked:Ct.length===Ve.length,onChange:function(Te){Ct.length===Ve.length?tn([]):tn(Ve)}},"\u5168\u9009")),n.a.createElement("span",{style:{width:16}}),n.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Ct.length||0,"\u4E2A\u5206\u73ED")),(le.actionTabs.type===1||!ia)&&Ve.length>0&&n.a.createElement(P.a,{data:Ve,selectedRowKeys:Ct,setSelectedRowKeys:tn}))))};re.a=Object(S.a)(function(G){var K=G.exercise;return{exercise:K}})(A)},"Cg/j":function(Ge,re,y){"use strict";y.d(re,"b",function(){return Q}),y.d(re,"a",function(){return W}),y.d(re,"c",function(){return B}),y.d(re,"d",function(){return O});var Q;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function M(p){return p[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=M})(Q||(Q={}));const W=B("instantiationService");function k(R,M,p,a){M[Q.DI_TARGET]===M?M[Q.DI_DEPENDENCIES].push({id:R,index:p,optional:a}):(M[Q.DI_DEPENDENCIES]=[{id:R,index:p,optional:a}],M[Q.DI_TARGET]=M)}function B(R){if(Q.serviceIds.has(R))return Q.serviceIds.get(R);const M=function(p,a,b){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");k(M,p,b,!1)};return M.toString=()=>R,Q.serviceIds.set(R,M),M}function O(R){return function(M,p,a){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");k(R,M,a,!0)}}},DBLp:function(Ge,re){function y(){}y.prototype={diff:function(O,R,M){M||(M=function(l,s){return l===s}),this.equals=M;var p=this;O=O.slice(),R=R.slice();var a=R.length,b=O.length,u=1,d=a+b,m=[{newPos:-1,components:[]}],o=this.extractCommon(m[0],R,O,0);if(m[0].newPos+1>=a&&o+1>=b){for(var c=[],f=0;f=a&&C+1>=b)return Q(p,s.components,R,O);m[l]=s}u++}for(;u<=d;){var t=i();if(t)return t}},pushComponent:function(O,R,M){var p=O[O.length-1];p&&p.added===R&&p.removed===M?O[O.length-1]={count:p.count+1,added:R,removed:M}:O.push({count:1,added:R,removed:M})},extractCommon:function(O,R,M,p){for(var a=R.length,b=M.length,u=O.newPos,d=u-p,m=0;u+1B||d<-B}var R=function(d){d=d||{},d.position||(this.position=[0,0]),d.rotation==null&&(this.rotation=0),d.scale||(this.scale=[1,1]),this.origin=this.origin||null},M=R.prototype;M.transform=null,M.needLocalTransform=function(){return O(this.rotation)||O(this.position[0])||O(this.position[1])||O(this.scale[0]-1)||O(this.scale[1]-1)};var p=[];M.updateTransform=function(){var d=this.parent,m=d&&d.transform,o=this.needLocalTransform(),c=this.transform;if(!(o||m)){c&&k(c);return}c=c||Q.create(),o?this.getLocalTransform(c):k(c),m&&(o?Q.mul(c,d.transform,c):Q.copy(c,d.transform)),this.transform=c;var f=this.globalScaleRatio;if(f!=null&&f!==1){this.getGlobalScale(p);var i=p[0]<0?-1:1,t=p[1]<0?-1:1,l=((p[0]-i)*f+i)/p[0]||0,s=((p[1]-t)*f+t)/p[1]||0;c[0]*=l,c[1]*=l,c[2]*=s,c[3]*=s}this.invTransform=this.invTransform||Q.create(),Q.invert(this.invTransform,c)},M.getLocalTransform=function(d){return R.getLocalTransform(this,d)},M.setTransform=function(d){var m=this.transform,o=d.dpr||1;m?d.setTransform(o*m[0],o*m[1],o*m[2],o*m[3],o*m[4],o*m[5]):d.setTransform(o,0,0,o,0,0)},M.restoreTransform=function(d){var m=d.dpr||1;d.setTransform(m,0,0,m,0,0)};var a=[],b=Q.create();M.setLocalTransform=function(d){if(!d)return;var m=d[0]*d[0]+d[1]*d[1],o=d[2]*d[2]+d[3]*d[3],c=this.position,f=this.scale;O(m-1)&&(m=Math.sqrt(m)),O(o-1)&&(o=Math.sqrt(o)),d[0]<0&&(m=-m),d[3]<0&&(o=-o),c[0]=d[4],c[1]=d[5],f[0]=m,f[1]=o,this.rotation=Math.atan2(-d[1]/o,d[0]/m)},M.decomposeTransform=function(){if(!this.transform)return;var d=this.parent,m=this.transform;d&&d.transform&&(Q.mul(a,d.invTransform,m),m=a);var o=this.origin;o&&(o[0]||o[1])&&(b[4]=o[0],b[5]=o[1],Q.mul(a,m,b),a[4]-=o[0],a[5]-=o[1],m=a),this.setLocalTransform(m)},M.getGlobalScale=function(d){var m=this.transform;return d=d||[],m?(d[0]=Math.sqrt(m[0]*m[0]+m[1]*m[1]),d[1]=Math.sqrt(m[2]*m[2]+m[3]*m[3]),m[0]<0&&(d[0]=-d[0]),m[3]<0&&(d[1]=-d[1]),d):(d[0]=1,d[1]=1,d)},M.transformCoordToLocal=function(d,m){var o=[d,m],c=this.invTransform;return c&&W.applyTransform(o,o,c),o},M.transformCoordToGlobal=function(d,m){var o=[d,m],c=this.transform;return c&&W.applyTransform(o,o,c),o},R.getLocalTransform=function(d,m){m=m||[],k(m);var o=d.origin,c=d.scale||[1,1],f=d.rotation||0,i=d.position||[0,0];return o&&(m[4]-=o[0],m[5]-=o[1]),Q.scale(m,m,c),f&&Q.rotate(m,m,f),o&&(m[4]+=o[0],m[5]+=o[1]),m[4]+=i[0],m[5]+=i[1],m};var u=R;Ge.exports=u},Dagg:function(Ge,re,y){var Q=y("Gev7"),W=y("mFDi"),k=y("bYtY"),B=y("Xnb7");function O(M){Q.call(this,M)}O.prototype={constructor:O,type:"image",brush:function(M,p){var a=this.style,b=a.image;a.bind(M,this,p);var u=this._image=B.createOrUpdateImage(b,this._image,this,this.onload);if(!u||!B.isImageReady(u))return;var d=a.x||0,m=a.y||0,o=a.width,c=a.height,f=u.width/u.height;if(o==null&&c!=null?o=c*f:c==null&&o!=null?c=o/f:o==null&&c==null&&(o=u.width,c=u.height),this.setTransform(M),a.sWidth&&a.sHeight){var i=a.sx||0,t=a.sy||0;M.drawImage(u,i,t,a.sWidth,a.sHeight,d,m,o,c)}else if(a.sx&&a.sy){var i=a.sx,t=a.sy,l=o-i,s=c-t;M.drawImage(u,i,t,l,s,d,m,o,c)}else M.drawImage(u,d,m,o,c);a.text!=null&&(this.restoreTransform(M),this.drawRectText(M,this.getBoundingRect()))},getBoundingRect:function(){var M=this.style;return this._rect||(this._rect=new W(M.x||0,M.y||0,M.width||0,M.height||0)),this._rect}},k.inherits(O,Q);var R=O;Ge.exports=R},DlQD:function(Ge,re,y){(function(Q,W){Ge.exports=W()})(this,function(){"use strict";function Q(ht,Je){for(var rt=0;rtht.length)&&(Je=ht.length);for(var rt=0,Te=new Array(Je);rt=ht.length?{done:!0}:{done:!1,value:ht[Te++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +`:"")+"",newPos:n?Q.Pos(o.line+1,0):Q.Pos(o.line,o.ch+1)}}for(var _=typeof d=="object"&&d.dontIndentOnAutoClose,m=b.length-1;m>=0;m--){var h=u[m];a.replaceRange(h.text,b[m].head,b[m].anchor,"+insert");var g=a.listSelections().slice(0);g[m]={head:h.newPos,anchor:h.newPos},a.setSelections(g),!_&&h.indent&&(a.indentLine(h.newPos.line,null,!0),a.indentLine(h.newPos.line+1,null,!0))}}function O(a,b){for(var u=a.listSelections(),d=[],m=b?"/":""&&(w+=">"),d[f]=w}if(a.replaceSelections(d),u=a.listSelections(),!c)for(var f=0;f=0&&b[i]==u;i--)++f;d=c.to;for(var i=1;i0){for(var b=0;b1&&arguments[1]!==void 0?arguments[1]:"",b=[],u=0;u.5?D:w}function b(w,D,C,v,n){var _=w.length;if(n===1)for(var h=0;h<_;h++)v[h]=p(w[h],D[h],C);else for(var g=_&&w[0].length,h=0;h<_;h++)for(var x=0;xn;if(_)w.length=n;else for(var h=v;h=0&&!(N[pe]<=Qe);pe--);pe=Math.min(pe,T-2)}else{for(pe=Se;peQe);pe++);pe=Math.min(pe-1,T-2)}Se=pe,He=Qe;var xe=N[pe+1]-N[pe];if(xe===0)return;if(je=(Qe-N[pe])/xe,x)if(fe=A[pe],me=A[pe===0?pe:pe-1],Ae=A[pe>T-2?T-1:pe+1],he=A[pe>T-3?T-1:pe+2],E)m(me,fe,Ae,he,je,je*je,je*je*je,h(dt,n),P);else{var Le;if(U)Le=m(me,fe,Ae,he,je,je*je,je*je*je,Ue,1),Le=f(Ue);else{if(F)return a(fe,Ae,je);Le=o(me,fe,Ae,he,je,je*je,je*je*je)}g(dt,n,Le)}else if(E)b(A[pe],A[pe+1],je,h(dt,n),P);else{var Le;if(U)b(A[pe],A[pe+1],je,Ue,1),Le=f(Ue);else{if(F)return a(A[pe],A[pe+1],je);Le=p(A[pe],A[pe+1],je)}g(dt,n,Le)}},Ve=new Q({target:w._target,life:H,loop:w._loop,delay:w._delay,onframe:st,ondestroy:C});return D&&D!=="spline"&&(Ve.easing=D),Ve}var l=function(w,D,C,v){this._tracks={},this._target=w,this._loop=D||!1,this._getter=C||R,this._setter=v||M,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};l.prototype={when:function(w,D){var C=this._tracks;for(var v in D){if(!D.hasOwnProperty(v))continue;if(!C[v]){C[v]=[];var n=this._getter(this._target,v);if(n==null)continue;w!==0&&C[v].push({time:0,value:c(n)})}C[v].push({time:w,value:D[v]})}return this},during:function(w){return this._onframeList.push(w),this},pause:function(){for(var w=0;w1&&b&&b.length>1){var d=k(b)/k(u);!isFinite(d)&&(d=1),p.pinchScale=d;var m=B(b);return p.pinchX=m[0],p.pinchY=m[1],{type:"pinch",target:M[0].target,event:p}}}},R=W;Ge.exports=R},CCdo:function(Ge,re,y){Ge.exports={flex_box_center:"flex_box_center___3ACWg",flex_space_between:"flex_space_between___2YdIf",flex_box_vertical_center:"flex_box_vertical_center___lNx6c",flex_box_center_end:"flex_box_center_end___1EQGR",flex_box_column:"flex_box_column___3gBVY",title:"title___1Uu39",search:"search___17Xmk",head:"head___3jpio",row:"row___2jdpt",btns:"btns___3Qg_w",sort:"sort___uQoc6"}},CIbS:function(Ge,re,y){"use strict";var Q=y("2qtc"),W=y("kLXV"),k=y("T2oS"),B=y("W9HT"),O=y("sRBo"),R=y("kaz8"),M=y("7Kak"),p=y("9yH6"),a=y("14J3"),b=y("BMrR"),u=y("iQDF"),d=y("+eQT"),m=y("miYZ"),o=y("tsqr"),c=y("jrin"),f=y("oBTY"),i=y("k1fw"),t=y("9og8"),l=y("y8nQ"),s=y("Vl3Y"),w=y("tJVT"),D=y("WmNS"),C=y.n(D),v=y("q1tI"),n=y.n(v),_=y("wd/R"),h=y.n(_),g=y("ErOA"),x=y("1vsH"),T=y("Ty5D"),S=y("9kvl"),E=y("V0Rq"),U=y("6K3P"),F=y.n(U),P=y("jr/l");function H(G,K){for(var $=[],ie=G;ie0)){_n.next=10;break}return o.b.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),_n.abrupt("return");case 10:return Ot(!0),qe=Ve.map(function(Bt){return Bt.key}),Lt={check_ids:Object(f.a)(le.actionTabs.selectArrs),end_time:h()(Me.end_time).format("YYYY-MM-DD HH:mm"),publish_time:h()(Me.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:Ct.map(function(Bt){return Bt.course_group_id}),unified_setting:!Ct.length},_n.next=15,Object(g.a)("/api/courses/".concat(Se.coursesId,"/exercises/publish.json"),{method:"post",body:Lt});case 15:nn=_n.sent,nn.status===0&&(Object(x.cb)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),Je(),o.b.success("\u53D1\u5E03\u6210\u529F"),de({type:"exercise/setActionTabs",payload:{}}),le!=null&&($n=le.actionTabs)!==null&&$n!==void 0&&$n.cb?le==null||((ta=le.actionTabs)===null||ta===void 0)||ta.cb():de({type:"classroomList/getClassroomExercisesList",payload:Object(i.a)({},le.actionTabs.params)})),Ot(!1);case 18:case"end":return _n.stop()}},Te)}));return function(){return rt.apply(this,arguments)}}(),Je=function(){he(1),dt([]),tn([])};return n.a.createElement(W.a,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",visible:le.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:ht,confirmLoading:hn||xe,onCancel:function(){Je(),de({type:"exercise/setActionTabs",payload:{}})}},n.a.createElement(B.a,{spinning:xe},Ve&&n.a.createElement(s.a,{form:je},!!(le!=null&&($=le.actionTabs)!==null&&$!==void 0&&$.disabled)&&n.a.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},n.a.createElement("img",{style:{marginRight:5},src:F.a}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),n.a.createElement(b.a,null,n.a.createElement("span",{className:"mr10 mt5"},n.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),n.a.createElement(s.a.Item,{name:"publish_time"},n.a.createElement(d.a,{style:{width:155},getPopupContainer:function(Te){return Te.parentNode},disabledDate:function(Te){return Te&&Te<=h()().subtract(0,"days")},disabledTime:N,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:h()(Object(x.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),n.a.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),n.a.createElement(s.a.Item,{name:"end_time"},n.a.createElement(d.a,{style:{width:170},getPopupContainer:function(Te){return Te.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:h()(Object(x.d)(),"HH:mm")},disabledDate:function(Te){return Te&&Te0&&n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},n.a.createElement("span",{style:{flex:1}},n.a.createElement(R.a,{checked:Ct.length===Ve.length,onChange:function(Te){Ct.length===Ve.length?tn([]):tn(Ve)}},"\u5168\u9009")),n.a.createElement("span",{style:{width:16}}),n.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Ct.length||0,"\u4E2A\u5206\u73ED")),(le.actionTabs.type===1||!ia)&&Ve.length>0&&n.a.createElement(P.a,{data:Ve,selectedRowKeys:Ct,setSelectedRowKeys:tn}))))};re.a=Object(S.a)(function(G){var K=G.exercise;return{exercise:K}})(A)},"Cg/j":function(Ge,re,y){"use strict";y.d(re,"b",function(){return Q}),y.d(re,"a",function(){return W}),y.d(re,"c",function(){return B}),y.d(re,"d",function(){return O});var Q;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function M(p){return p[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=M})(Q||(Q={}));const W=B("instantiationService");function k(R,M,p,a){M[Q.DI_TARGET]===M?M[Q.DI_DEPENDENCIES].push({id:R,index:p,optional:a}):(M[Q.DI_DEPENDENCIES]=[{id:R,index:p,optional:a}],M[Q.DI_TARGET]=M)}function B(R){if(Q.serviceIds.has(R))return Q.serviceIds.get(R);const M=function(p,a,b){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");k(M,p,b,!1)};return M.toString=()=>R,Q.serviceIds.set(R,M),M}function O(R){return function(M,p,a){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");k(R,M,a,!0)}}},DBLp:function(Ge,re){function y(){}y.prototype={diff:function(O,R,M){M||(M=function(l,s){return l===s}),this.equals=M;var p=this;O=O.slice(),R=R.slice();var a=R.length,b=O.length,u=1,d=a+b,m=[{newPos:-1,components:[]}],o=this.extractCommon(m[0],R,O,0);if(m[0].newPos+1>=a&&o+1>=b){for(var c=[],f=0;f=a&&C+1>=b)return Q(p,s.components,R,O);m[l]=s}u++}for(;u<=d;){var t=i();if(t)return t}},pushComponent:function(O,R,M){var p=O[O.length-1];p&&p.added===R&&p.removed===M?O[O.length-1]={count:p.count+1,added:R,removed:M}:O.push({count:1,added:R,removed:M})},extractCommon:function(O,R,M,p){for(var a=R.length,b=M.length,u=O.newPos,d=u-p,m=0;u+1B||d<-B}var R=function(d){d=d||{},d.position||(this.position=[0,0]),d.rotation==null&&(this.rotation=0),d.scale||(this.scale=[1,1]),this.origin=this.origin||null},M=R.prototype;M.transform=null,M.needLocalTransform=function(){return O(this.rotation)||O(this.position[0])||O(this.position[1])||O(this.scale[0]-1)||O(this.scale[1]-1)};var p=[];M.updateTransform=function(){var d=this.parent,m=d&&d.transform,o=this.needLocalTransform(),c=this.transform;if(!(o||m)){c&&k(c);return}c=c||Q.create(),o?this.getLocalTransform(c):k(c),m&&(o?Q.mul(c,d.transform,c):Q.copy(c,d.transform)),this.transform=c;var f=this.globalScaleRatio;if(f!=null&&f!==1){this.getGlobalScale(p);var i=p[0]<0?-1:1,t=p[1]<0?-1:1,l=((p[0]-i)*f+i)/p[0]||0,s=((p[1]-t)*f+t)/p[1]||0;c[0]*=l,c[1]*=l,c[2]*=s,c[3]*=s}this.invTransform=this.invTransform||Q.create(),Q.invert(this.invTransform,c)},M.getLocalTransform=function(d){return R.getLocalTransform(this,d)},M.setTransform=function(d){var m=this.transform,o=d.dpr||1;m?d.setTransform(o*m[0],o*m[1],o*m[2],o*m[3],o*m[4],o*m[5]):d.setTransform(o,0,0,o,0,0)},M.restoreTransform=function(d){var m=d.dpr||1;d.setTransform(m,0,0,m,0,0)};var a=[],b=Q.create();M.setLocalTransform=function(d){if(!d)return;var m=d[0]*d[0]+d[1]*d[1],o=d[2]*d[2]+d[3]*d[3],c=this.position,f=this.scale;O(m-1)&&(m=Math.sqrt(m)),O(o-1)&&(o=Math.sqrt(o)),d[0]<0&&(m=-m),d[3]<0&&(o=-o),c[0]=d[4],c[1]=d[5],f[0]=m,f[1]=o,this.rotation=Math.atan2(-d[1]/o,d[0]/m)},M.decomposeTransform=function(){if(!this.transform)return;var d=this.parent,m=this.transform;d&&d.transform&&(Q.mul(a,d.invTransform,m),m=a);var o=this.origin;o&&(o[0]||o[1])&&(b[4]=o[0],b[5]=o[1],Q.mul(a,m,b),a[4]-=o[0],a[5]-=o[1],m=a),this.setLocalTransform(m)},M.getGlobalScale=function(d){var m=this.transform;return d=d||[],m?(d[0]=Math.sqrt(m[0]*m[0]+m[1]*m[1]),d[1]=Math.sqrt(m[2]*m[2]+m[3]*m[3]),m[0]<0&&(d[0]=-d[0]),m[3]<0&&(d[1]=-d[1]),d):(d[0]=1,d[1]=1,d)},M.transformCoordToLocal=function(d,m){var o=[d,m],c=this.invTransform;return c&&W.applyTransform(o,o,c),o},M.transformCoordToGlobal=function(d,m){var o=[d,m],c=this.transform;return c&&W.applyTransform(o,o,c),o},R.getLocalTransform=function(d,m){m=m||[],k(m);var o=d.origin,c=d.scale||[1,1],f=d.rotation||0,i=d.position||[0,0];return o&&(m[4]-=o[0],m[5]-=o[1]),Q.scale(m,m,c),f&&Q.rotate(m,m,f),o&&(m[4]+=o[0],m[5]+=o[1]),m[4]+=i[0],m[5]+=i[1],m};var u=R;Ge.exports=u},Dagg:function(Ge,re,y){var Q=y("Gev7"),W=y("mFDi"),k=y("bYtY"),B=y("Xnb7");function O(M){Q.call(this,M)}O.prototype={constructor:O,type:"image",brush:function(M,p){var a=this.style,b=a.image;a.bind(M,this,p);var u=this._image=B.createOrUpdateImage(b,this._image,this,this.onload);if(!u||!B.isImageReady(u))return;var d=a.x||0,m=a.y||0,o=a.width,c=a.height,f=u.width/u.height;if(o==null&&c!=null?o=c*f:c==null&&o!=null?c=o/f:o==null&&c==null&&(o=u.width,c=u.height),this.setTransform(M),a.sWidth&&a.sHeight){var i=a.sx||0,t=a.sy||0;M.drawImage(u,i,t,a.sWidth,a.sHeight,d,m,o,c)}else if(a.sx&&a.sy){var i=a.sx,t=a.sy,l=o-i,s=c-t;M.drawImage(u,i,t,l,s,d,m,o,c)}else M.drawImage(u,d,m,o,c);a.text!=null&&(this.restoreTransform(M),this.drawRectText(M,this.getBoundingRect()))},getBoundingRect:function(){var M=this.style;return this._rect||(this._rect=new W(M.x||0,M.y||0,M.width||0,M.height||0)),this._rect}},k.inherits(O,Q);var R=O;Ge.exports=R},DlQD:function(Ge,re,y){(function(Q,W){Ge.exports=W()})(this,function(){"use strict";function Q(ht,Je){for(var rt=0;rtht.length)&&(Je=ht.length);for(var rt=0,Te=new Array(Je);rt=ht.length?{done:!0}:{done:!1,value:ht[Te++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return rt=ht[Symbol.iterator](),rt.next.bind(rt)}function R(ht,Je){return Je={exports:{}},ht(Je,Je.exports),Je.exports}var M=R(function(ht){function Je(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function rt(Te){ht.exports.defaults=Te}ht.exports={defaults:Je(),getDefaults:Je,changeDefaults:rt}}),p=M.defaults,a=M.getDefaults,b=M.changeDefaults,u=/[&<>"']/,d=/[&<>"']/g,m=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},f=function(Je){return c[Je]};function i(ht,Je){if(Je){if(u.test(ht))return ht.replace(d,f)}else if(m.test(ht))return ht.replace(o,f);return ht}var t=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function l(ht){return ht.replace(t,function(Je,rt){return rt=rt.toLowerCase(),rt==="colon"?":":rt.charAt(0)==="#"?rt.charAt(1)==="x"?String.fromCharCode(parseInt(rt.substring(2),16)):String.fromCharCode(+rt.substring(1)):""})}var s=/(^|[^\[])\^/g;function w(ht,Je){ht=ht.source||ht,Je=Je||"";var rt={replace:function(Me,Ie){return Ie=Ie.source||Ie,Ie=Ie.replace(s,"$1"),ht=ht.replace(Me,Ie),rt},getRegex:function(){return new RegExp(ht,Je)}};return rt}var D=/[^\w:]/g,C=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(ht,Je,rt){if(ht){var Te;try{Te=decodeURIComponent(l(rt)).replace(D,"").toLowerCase()}catch(Me){return null}if(Te.indexOf("javascript:")===0||Te.indexOf("vbscript:")===0||Te.indexOf("data:")===0)return null}Je&&!C.test(rt)&&(rt=x(Je,rt));try{rt=encodeURI(rt).replace(/%25/g,"%")}catch(Me){return null}return rt}var n={},_=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function x(ht,Je){n[" "+ht]||(_.test(ht)?n[" "+ht]=ht+"/":n[" "+ht]=U(ht,"/",!0)),ht=n[" "+ht];var rt=ht.indexOf(":")===-1;return Je.substring(0,2)==="//"?rt?Je:ht.replace(h,"$1")+Je:Je.charAt(0)==="/"?rt?Je:ht.replace(g,"$1")+Je:ht+Je}var T={exec:function(){}};function S(ht){for(var Je=1,rt,Te;Je=0&&qe[nn]==="\\";)Lt=!Lt;return Lt?"|":" |"}),Te=rt.split(/ \|/),Me=0;if(Te.length>Je)Te.splice(Je);else for(;Te.length=Te.length?Me.slice(Te.length):Me}).join(` `)}var de=function(){function ht(rt){this.options=rt||N}var Je=ht.prototype;return Je.space=function(Te){var Me=this.rules.block.newline.exec(Te);if(Me)return Me[0].length>1?{type:"space",raw:Me[0]}:{raw:` @@ -299,21 +299,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `+Te+` `},Je.tablecell=function(Te,Me){var Ie=Me.header?"th":"td",be=Me.align?"<"+Ie+' align="'+Me.align+'">':"<"+Ie+">";return be+Te+" `},Je.strong=function(Te){return""+Te+""},Je.em=function(Te){return""+Te+""},Je.codespan=function(Te){return""+Te+""},Je.br=function(){return this.options.xhtml?"
":"
"},Je.del=function(Te){return""+Te+""},Je.link=function(Te,Me,Ie){if(Te=pe(this.options.sanitize,this.options.baseUrl,Te),Te===null)return Ie;var be='",be},Je.image=function(Te,Me,Ie){if(Te=pe(this.options.sanitize,this.options.baseUrl,Te),Te===null)return Ie;var be=''+Ie+'":">",be},Je.text=function(Te){return Te},ht}(),Ye=function(){function ht(){}var Je=ht.prototype;return Je.strong=function(Te){return Te},Je.em=function(Te){return Te},Je.codespan=function(Te){return Te},Je.del=function(Te){return Te},Je.html=function(Te){return Te},Je.text=function(Te){return Te},Je.link=function(Te,Me,Ie){return""+Ie},Je.image=function(Te,Me,Ie){return""+Ie},Je.br=function(){return""},ht}(),gt=function(){function ht(){this.seen={}}var Je=ht.prototype;return Je.slug=function(Te){var Me=Te.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Me)){var Ie=Me;do this.seen[Ie]++,Me=Ie+"-"+this.seen[Ie];while(this.seen.hasOwnProperty(Me))}return this.seen[Me]=0,Me},ht}(),Ct=M.defaults,tn=H.unescape,Zt=function(){function ht(rt){this.options=rt||Ct,this.options.renderer=this.options.renderer||new Le,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ye,this.slugger=new gt}ht.parse=function(Te,Me){var Ie=new ht(Me);return Ie.parse(Te)};var Je=ht.prototype;return Je.parse=function(Te,Me){Me===void 0&&(Me=!0);var Ie="",be,qe,Lt,nn,$n,ta,Sa,_n,Bt,mn,Gt,ze,ct,Sn,qt,Gn,qn,Mt,Nn=Te.length;for(be=0;be0&&qt.tokens[0].type==="text"?(qt.tokens[0].text=Mt+" "+qt.tokens[0].text,qt.tokens[0].tokens&&qt.tokens[0].tokens.length>0&&qt.tokens[0].tokens[0].type==="text"&&(qt.tokens[0].tokens[0].text=Mt+" "+qt.tokens[0].tokens[0].text)):qt.tokens.unshift({type:"text",text:Mt}):Sn+=Mt),Sn+=this.parse(qt.tokens,ct),Bt+=this.renderer.listitem(Sn,qn,Gn);Ie+=this.renderer.list(Bt,Gt,ze);continue}case"html":{Ie+=this.renderer.html(mn.text);continue}case"paragraph":{Ie+=this.renderer.paragraph(this.parseInline(mn.tokens));continue}case"text":{for(Bt=mn.tokens?this.parseInline(mn.tokens):mn.text;be+1An error occurred:

"+mt(Lt.message+"",!0)+"
";throw Lt}}Ot.options=Ot.setOptions=function(ht){return Hn(Ot.defaults,ht),on(Ot.defaults),Ot},Ot.getDefaults=pt,Ot.defaults=hn,Ot.use=function(ht){var Je=Hn({},ht);if(ht.renderer&&function(){var Te=Ot.defaults.renderer||new Le,Me=function(qe){var Lt=Te[qe];Te[qe]=function(){for(var nn=arguments.length,$n=new Array(nn),ta=0;taAn error occurred:

"+vt(Lt.message+"",!0)+"
";throw Lt}}Ot.options=Ot.setOptions=function(ht){return Hn(Ot.defaults,ht),on(Ot.defaults),Ot},Ot.getDefaults=mt,Ot.defaults=hn,Ot.use=function(ht){var Je=Hn({},ht);if(ht.renderer&&function(){var Te=Ot.defaults.renderer||new Le,Me=function(qe){var Lt=Te[qe];Te[qe]=function(){for(var nn=arguments.length,$n=new Array(nn),ta=0;ta`,triples:"",explode:"[]{}"},k=Q.Pos;Q.defineOption("autoCloseBrackets",!1,function(c,f,i){i&&i!=Q.Init&&(c.removeKeyMap(O),c.state.closeBrackets=null),f&&(R(B(f,"pairs")),c.state.closeBrackets=f,c.addKeyMap(O))});function B(c,f){return f=="pairs"&&typeof c=="string"?c:typeof c=="object"&&c[f]!=null?c[f]:W[f]}var O={Backspace:a,Enter:b};function R(c){for(var f=0;f=0;l--){var w=t[l].head;c.replaceRange("",k(w.line,w.ch-1),k(w.line,w.ch+1),"+delete")}}function b(c){var f=p(c),i=f&&B(f,"explode");if(!i||c.getOption("disableInput"))return Q.Pass;for(var t=c.listSelections(),l=0;l0;return{anchor:new k(c.anchor.line,c.anchor.ch+(f?-1:1)),head:new k(c.head.line,c.head.ch+(f?1:-1))}}function d(c,f){var i=p(c);if(!i||c.getOption("disableInput"))return Q.Pass;var t=B(i,"pairs"),l=t.indexOf(f);if(l==-1)return Q.Pass;for(var s=B(i,"closeBefore"),w=B(i,"triples"),D=t.charAt(l+1)==f,C=c.listSelections(),v=l%2==0,n,_=0;_=0&&c.getRange(g,k(g.line,g.ch+3))==f+f+f?x="skipThree":x="skip";else if(D&&g.ch>1&&w.indexOf(f)>=0&&c.getRange(k(g.line,g.ch-2),g)==f+f){if(g.ch>2&&/\bstring/.test(c.getTokenTypeAt(k(g.line,g.ch-2))))return Q.Pass;x="addFour"}else if(D){var S=g.ch==0?" ":c.getRange(k(g.line,g.ch-1),g);if(!Q.isWordChar(T)&&S!=f&&!Q.isWordChar(S))x="both";else return Q.Pass}else if(v&&(T.length===0||/\s/.test(T)||s.indexOf(T)>-1))x="both";else return Q.Pass;if(!n)n=x;else if(n!=x)return Q.Pass}var E=l%2?t.charAt(l-1):f,U=l%2?f:t.charAt(l+1);c.operation(function(){if(n=="skip")c.execCommand("goCharRight");else if(n=="skipThree")for(var F=0;F<3;F++)c.execCommand("goCharRight");else if(n=="surround"){for(var P=c.getSelections(),F=0;F0)){qe.next=4;break}return o.b.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),qe.abrupt("return");case 4:return pt(!0),rt={check_ids:K.actionTabs.selectArrs,group_ids:Le},tn||(rt.end_time=h()(Je.end_time).format("YYYY-MM-DD HH:mm")),rt.group_ids=Le.map(function(Lt){return Lt.course_group_id}),qe.next=10,Object(g.a)("/api/courses/".concat(ie.coursesId,"/exercises/end_exercise.json"),{method:"post",body:rt});case 10:Te=qe.sent,Te.status===0&&(o.b.success("\u64CD\u4F5C\u6210\u529F"),Object(x.cb)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),$({type:"exercise/setActionTabs",payload:{}}),K!=null&&(Me=K.actionTabs)!==null&&Me!==void 0&&Me.cb?K==null||((Ie=K.actionTabs)===null||Ie===void 0)||Ie.cb():$({type:"classroomList/getClassroomExercisesList",payload:Object(i.a)({},K.actionTabs.params)})),pt(!1);case 13:case"end":return qe.stop()}},ht)}));return function(){return Xt.apply(this,arguments)}}(),Ot=function(){me(1),Ue([]),Ye([]),Zt(!0)};return n.a.createElement(W.a,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",visible:K.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:hn,width:680,confirmLoading:mt||dt,onCancel:function(){Ot(),$({type:"exercise/setActionTabs",payload:{}})}},n.a.createElement(B.a,{spinning:dt},he&&n.a.createElement(s.a,{form:Se},n.a.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},n.a.createElement("img",{style:{marginRight:5},src:U.a}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),n.a.createElement(p.a,{className:"mt20 mb10"},n.a.createElement("span",{className:"mr10"},n.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),n.a.createElement(d.a.Group,{value:tn,onChange:function(ht){Zt(ht.target.value),Ye([])}},n.a.createElement(d.a,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),n.a.createElement(d.a,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),n.a.createElement(s.a.Item,{name:"end_time",style:{marginTop:-3,visibility:tn?"hidden":"visible"}},n.a.createElement(b.a,{style:{width:170},getPopupContainer:function(ht){return ht.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:h()(Object(x.d)(),"HH:mm")},disabledDate:function(ht){return ht&&ht0&&n.a.createElement(p.a,{style:{marginBottom:"10px"}},n.a.createElement("span",{className:"mr10"},n.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),n.a.createElement("div",null,he.length>0&&n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},n.a.createElement("span",{style:{flex:1}},n.a.createElement(R.a,{checked:Le.length===he.length,onChange:function(ht){Le.length===he.length?Ye([]):Ye(he)}},"\u5168\u9009")," "),n.a.createElement("span",{style:{width:16}}),n.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Le.length||0,"\u4E2A\u5206\u73ED")),n.a.createElement(F.a,{data:he,selectedRowKeys:Le,setSelectedRowKeys:Ye}))))))};re.a=Object(S.a)(function(A){var G=A.exercise;return{exercise:G}})(N)},GABl:function(Ge,re){Ge.exports="data:image/png;base64,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"},GUcZ:function(Ge,re,y){"use strict";var Q=y("fWQN"),W=y("mtLc"),k=function(){function Pe(){Object(Q.a)(this,Pe)}return Object(W.a)(Pe,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(J,q){return J.__proto__=q,J},Object.assign=Object.assign||function(J){if(J==null)throw new TypeError("Cannot convert undefined or null to object");for(var q=Object(J),Z=1;Z ").concat(q);if(Pe.ENABLE_CALLBACK&&Pe.emitter.emit("log","error",Z),!Pe.ENABLE_ERROR)return;console.error?console.error(Z):console.warn?console.warn(Z):console.log(Z)}},{key:"i",value:function(J,q){(!J||Pe.FORCE_GLOBAL_TAG)&&(J=Pe.GLOBAL_TAG);var Z="[".concat(J,"] > ").concat(q);if(Pe.ENABLE_CALLBACK&&Pe.emitter.emit("log","info",Z),!Pe.ENABLE_INFO)return;console.info?console.info(Z):console.log(Z)}},{key:"w",value:function(J,q){(!J||Pe.FORCE_GLOBAL_TAG)&&(J=Pe.GLOBAL_TAG);var Z="[".concat(J,"] > ").concat(q);if(Pe.ENABLE_CALLBACK&&Pe.emitter.emit("log","warn",Z),!Pe.ENABLE_WARN)return;console.warn?console.warn(Z):console.log(Z)}},{key:"d",value:function(J,q){(!J||Pe.FORCE_GLOBAL_TAG)&&(J=Pe.GLOBAL_TAG);var Z="[".concat(J,"] > ").concat(q);if(Pe.ENABLE_CALLBACK&&Pe.emitter.emit("log","debug",Z),!Pe.ENABLE_DEBUG)return;console.debug?console.debug(Z):console.log(Z)}},{key:"v",value:function(J,q){(!J||Pe.FORCE_GLOBAL_TAG)&&(J=Pe.GLOBAL_TAG);var Z="[".concat(J,"] > ").concat(q);if(Pe.ENABLE_CALLBACK&&Pe.emitter.emit("log","verbose",Z),!Pe.ENABLE_VERBOSE)return;console.log(Z)}}]),Pe}();M.GLOBAL_TAG="flv.js",M.FORCE_GLOBAL_TAG=!1,M.ENABLE_ERROR=!0,M.ENABLE_INFO=!0,M.ENABLE_WARN=!0,M.ENABLE_DEBUG=!0,M.ENABLE_VERBOSE=!0,M.ENABLE_CALLBACK=!1,M.emitter=new R.a;var p=M,a=function(){function Pe(){Object(Q.a)(this,Pe),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(W.a)(Pe,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(J){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=J,this._totalBytes+=J):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=J,this._totalBytes+=J):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=J,this._totalBytes+=J,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var J=(this._now()-this._lastCheckpoint)/1e3;return J==0&&(J=1),this._intervalBytes/J/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var J=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/J/1024}}]),Pe}(),b=a,u=y("yKVA"),d=y("879j"),m=function(){function Pe(ye){Object(Q.a)(this,Pe),this._message=ye}return Object(W.a)(Pe,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Pe}(),o=function(Pe){Object(u.a)(J,Pe);var ye=Object(d.a)(J);function J(q){return Object(Q.a)(this,J),ye.call(this,q)}return Object(W.a)(J,[{key:"name",get:function(){return"IllegalStateException"}}]),J}(m),c=function(Pe){Object(u.a)(J,Pe);var ye=Object(d.a)(J);function J(q){return Object(Q.a)(this,J),ye.call(this,q)}return Object(W.a)(J,[{key:"name",get:function(){return"InvalidArgumentException"}}]),J}(m),f=function(Pe){Object(u.a)(J,Pe);var ye=Object(d.a)(J);function J(q){return Object(Q.a)(this,J),ye.call(this,q)}return Object(W.a)(J,[{key:"name",get:function(){return"NotImplementedException"}}]),J}(m),i={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},t={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},l=function(){function Pe(ye){Object(Q.a)(this,Pe),this._type=ye||"undefined",this._status=i.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._status=i.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===i.kConnecting||this._status===i.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(J){this._onContentLengthKnown=J}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(J){this._onURLRedirect=J}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(J){this._onDataArrival=J}},{key:"onError",get:function(){return this._onError},set:function(J){this._onError=J}},{key:"onComplete",get:function(){return this._onComplete},set:function(J){this._onComplete=J}},{key:"open",value:function(J,q){throw new f("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new f("Unimplemented abstract function!")}}]),Pe}(),s=y("oZsa");function w(Pe,ye){for(;!Object.prototype.hasOwnProperty.call(Pe,ye)&&!(Pe=Object(s.a)(Pe),Pe===null););return Pe}function D(Pe,ye,J){return typeof Reflect!="undefined"&&Reflect.get?D=Reflect.get:D=function(Z,oe,Oe){var Re=w(Z,oe);if(!Re)return;var ve=Object.getOwnPropertyDescriptor(Re,oe);return ve.get?ve.get.call(Oe):ve.value},D(Pe,ye,J||Pe)}var C={};function v(){var Pe=self.navigator.userAgent.toLowerCase(),ye=/(edge)\/([\w.]+)/.exec(Pe)||/(opr)[\/]([\w.]+)/.exec(Pe)||/(chrome)[ \/]([\w.]+)/.exec(Pe)||/(iemobile)[\/]([\w.]+)/.exec(Pe)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Pe)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Pe)||/(webkit)[ \/]([\w.]+)/.exec(Pe)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Pe)||/(msie) ([\w.]+)/.exec(Pe)||Pe.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Pe)||Pe.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Pe)||[],J=/(ipad)/.exec(Pe)||/(ipod)/.exec(Pe)||/(windows phone)/.exec(Pe)||/(iphone)/.exec(Pe)||/(kindle)/.exec(Pe)||/(android)/.exec(Pe)||/(windows)/.exec(Pe)||/(mac)/.exec(Pe)||/(linux)/.exec(Pe)||/(cros)/.exec(Pe)||[],q={browser:ye[5]||ye[3]||ye[1]||"",version:ye[2]||ye[4]||"0",majorVersion:ye[4]||ye[2]||"0",platform:J[0]||""},Z={};if(q.browser){Z[q.browser]=!0;var oe=q.majorVersion.split(".");Z.version={major:parseInt(q.majorVersion,10),string:q.version},oe.length>1&&(Z.version.minor=parseInt(oe[1],10)),oe.length>2&&(Z.version.build=parseInt(oe[2],10))}if(q.platform&&(Z[q.platform]=!0),(Z.chrome||Z.opr||Z.safari)&&(Z.webkit=!0),Z.rv||Z.iemobile){Z.rv&&delete Z.rv;var Oe="msie";q.browser=Oe,Z[Oe]=!0}if(Z.edge){delete Z.edge;var Re="msedge";q.browser=Re,Z[Re]=!0}if(Z.opr){var ve="opera";q.browser=ve,Z[ve]=!0}if(Z.safari&&Z.android){var bn="android";q.browser=bn,Z[bn]=!0}Z.name=q.browser,Z.platform=q.platform;for(var kt in C)C.hasOwnProperty(kt)&&delete C[kt];Object.assign(C,Z)}v();var n=C,_=function(Pe){Object(u.a)(J,Pe);var ye=Object(d.a)(J);function J(q,Z){var oe;return Object(Q.a)(this,J),oe=ye.call(this,"fetch-stream-loader"),oe.TAG="FetchStreamLoader",oe._seekHandler=q,oe._config=Z,oe._needStash=!0,oe._requestAbort=!1,oe._contentLength=null,oe._receivedLength=0,oe}return Object(W.a)(J,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),D(Object(s.a)(J.prototype),"destroy",this).call(this)}},{key:"open",value:function(Z,oe){var Oe=this;this._dataSource=Z,this._range=oe;var Re=Z.url;this._config.reuseRedirectedURL&&Z.redirectedURL!=null&&(Re=Z.redirectedURL);var ve=this._seekHandler.getConfig(Re,oe),bn=new self.Headers;if(typeof ve.headers=="object"){var kt=ve.headers;for(var at in kt)kt.hasOwnProperty(at)&&bn.append(at,kt[at])}var Ht={method:"GET",headers:bn,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Fe in this._config.headers)bn.append(Fe,this._config.headers[Fe]);Z.cors===!1&&(Ht.mode="same-origin"),Z.withCredentials&&(Ht.credentials="include"),Z.referrerPolicy&&(Ht.referrerPolicy=Z.referrerPolicy),this._status=i.kConnecting,self.fetch(ve.url,Ht).then(function(Un){if(Oe._requestAbort){Oe._requestAbort=!1,Oe._status=i.kIdle;return}if(Un.ok&&Un.status>=200&&Un.status<=299){if(Un.url!==ve.url&&Oe._onURLRedirect){var Fa=Oe._seekHandler.removeURLParameters(Un.url);Oe._onURLRedirect(Fa)}var fa=Un.headers.get("Content-Length");return fa!=null&&(Oe._contentLength=parseInt(fa),Oe._contentLength!==0&&(Oe._onContentLengthKnown&&Oe._onContentLengthKnown(Oe._contentLength))),Oe._pump.call(Oe,Un.body.getReader())}else if(Oe._status=i.kError,Oe._onError)Oe._onError(t.HTTP_STATUS_CODE_INVALID,{code:Un.status,msg:Un.statusText});else throw new m("FetchStreamLoader: Http code invalid, "+Un.status+" "+Un.statusText)}).catch(function(Un){if(Oe._status=i.kError,Oe._onError)Oe._onError(t.EXCEPTION,{code:-1,msg:Un.message});else throw Un})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Z){var oe=this;return Z.read().then(function(Oe){if(Oe.done)if(oe._contentLength!==null&&oe._receivedLength=15048,oe=n.msedge?Z:!0;return self.fetch&&self.ReadableStream&&oe}catch(Oe){return!1}}}]),J}(l),h=_,g=function(Pe){Object(u.a)(J,Pe);var ye=Object(d.a)(J);function J(q,Z){var oe;return Object(Q.a)(this,J),oe=ye.call(this,"xhr-moz-chunked-loader"),oe.TAG="MozChunkedLoader",oe._seekHandler=q,oe._config=Z,oe._needStash=!0,oe._xhr=null,oe._requestAbort=!1,oe._contentLength=null,oe._receivedLength=0,oe}return Object(W.a)(J,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),D(Object(s.a)(J.prototype),"destroy",this).call(this)}},{key:"open",value:function(Z,oe){this._dataSource=Z,this._range=oe;var Oe=Z.url;this._config.reuseRedirectedURL&&Z.redirectedURL!=null&&(Oe=Z.redirectedURL);var Re=this._seekHandler.getConfig(Oe,oe);this._requestURL=Re.url;var ve=this._xhr=new XMLHttpRequest;if(ve.open("GET",Re.url,!0),ve.responseType="moz-chunked-arraybuffer",ve.onreadystatechange=this._onReadyStateChange.bind(this),ve.onprogress=this._onProgress.bind(this),ve.onloadend=this._onLoadEnd.bind(this),ve.onerror=this._onXhrError.bind(this),Z.withCredentials&&(ve.withCredentials=!0),typeof Re.headers=="object"){var bn=Re.headers;for(var kt in bn)bn.hasOwnProperty(kt)&&ve.setRequestHeader(kt,bn[kt])}if(typeof this._config.headers=="object"){var at=this._config.headers;for(var Ht in at)at.hasOwnProperty(Ht)&&ve.setRequestHeader(Ht,at[Ht])}this._status=i.kConnecting,ve.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=i.kComplete}},{key:"_onReadyStateChange",value:function(Z){var oe=Z.target;if(oe.readyState===2){if(oe.responseURL!=null&&oe.responseURL!==this._requestURL&&this._onURLRedirect){var Oe=this._seekHandler.removeURLParameters(oe.responseURL);this._onURLRedirect(Oe)}if(oe.status!==0&&(oe.status<200||oe.status>299))if(this._status=i.kError,this._onError)this._onError(t.HTTP_STATUS_CODE_INVALID,{code:oe.status,msg:oe.statusText});else throw new m("MozChunkedLoader: Http code invalid, "+oe.status+" "+oe.statusText);else this._status=i.kBuffering}}},{key:"_onProgress",value:function(Z){if(this._status===i.kError)return;this._contentLength===null&&(Z.total!==null&&Z.total!==0&&(this._contentLength=Z.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var oe=Z.target.response,Oe=this._range.from+this._receivedLength;this._receivedLength+=oe.byteLength,this._onDataArrival&&this._onDataArrival(oe,Oe,this._receivedLength)}},{key:"_onLoadEnd",value:function(Z){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===i.kError)return;this._status=i.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Z){this._status=i.kError;var oe=0,Oe=null;if(this._contentLength&&Z.loaded=200&&oe.status<=299){if(this._status=i.kBuffering,oe.responseURL!=null){var Oe=this._seekHandler.removeURLParameters(oe.responseURL);oe.responseURL!==this._currentRequestURL&&Oe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Oe,this._onURLRedirect&&this._onURLRedirect(Oe))}var Re=oe.getResponseHeader("Content-Length");if(Re!=null&&this._contentLength==null){var ve=parseInt(Re);ve>0&&(this._contentLength=ve,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=i.kError,this._onError)this._onError(t.HTTP_STATUS_CODE_INVALID,{code:oe.status,msg:oe.statusText});else throw new m("MSStreamLoader: Http code invalid, "+oe.status+" "+oe.statusText);else if(oe.readyState===3&&(oe.status>=200&&oe.status<=299)){this._status=i.kBuffering;var bn=oe.response;this._reader.readAsArrayBuffer(bn)}}},{key:"_xhrOnError",value:function(Z){this._status=i.kError;var oe=t.EXCEPTION,Oe={code:-1,msg:Z.constructor.name+" "+Z.type};if(this._onError)this._onError(oe,Oe);else throw new m(Oe.msg)}},{key:"_msrOnProgress",value:function(Z){var oe=Z.target,Oe=oe.result;if(Oe==null){this._doReconnectIfNeeded();return}var Re=Oe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Oe.byteLength;var ve=this._totalRange.from+this._receivedLength;this._receivedLength+=Re.byteLength,this._onDataArrival&&this._onDataArrival(Re,ve,this._receivedLength),Oe.byteLength>=this._bufferLimit&&(p.v(this.TAG,"MSStream buffer exceeded max size near ".concat(ve+Re.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(Oe=this._range.from+this._contentLength-1)),this._currentRequestRange={from:oe,to:Oe},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Z,oe){this._lastTimeLoaded=0;var Oe=Z.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Oe=this._currentRedirectedURL:Z.redirectedURL!=null&&(Oe=Z.redirectedURL));var Re=this._seekHandler.getConfig(Oe,oe);this._currentRequestURL=Re.url;var ve=this._xhr=new XMLHttpRequest;if(ve.open("GET",Re.url,!0),ve.responseType="arraybuffer",ve.onreadystatechange=this._onReadyStateChange.bind(this),ve.onprogress=this._onProgress.bind(this),ve.onload=this._onLoad.bind(this),ve.onerror=this._onXhrError.bind(this),Z.withCredentials&&(ve.withCredentials=!0),typeof Re.headers=="object"){var bn=Re.headers;for(var kt in bn)bn.hasOwnProperty(kt)&&ve.setRequestHeader(kt,bn[kt])}if(typeof this._config.headers=="object"){var at=this._config.headers;for(var Ht in at)at.hasOwnProperty(Ht)&&ve.setRequestHeader(Ht,at[Ht])}ve.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=i.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(Z){var oe=Z.target;if(oe.readyState===2){if(oe.responseURL!=null){var Oe=this._seekHandler.removeURLParameters(oe.responseURL);oe.responseURL!==this._currentRequestURL&&Oe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Oe,this._onURLRedirect&&this._onURLRedirect(Oe))}if(oe.status>=200&&oe.status<=299){if(this._waitForTotalLength)return;this._status=i.kBuffering}else if(this._status=i.kError,this._onError)this._onError(t.HTTP_STATUS_CODE_INVALID,{code:oe.status,msg:oe.statusText});else throw new m("RangeLoader: Http code invalid, "+oe.status+" "+oe.statusText)}}},{key:"_onProgress",value:function(Z){if(this._status===i.kError)return;if(this._contentLength===null){var oe=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,oe=!0;var Oe=Z.total;this._internalAbort(),Oe!=null&Oe!==0&&(this._totalLength=Oe)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,oe){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var Re=Z.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Z.loaded,this._speedSampler.addBytes(Re)}},{key:"_normalizeSpeed",value:function(Z){var oe=this._chunkSizeKBList,Oe=oe.length-1,Re=0,ve=0,bn=Oe;if(Z=oe[Re]&&Z=3&&(oe=this._speedSampler.currentKBps)),oe!==0){var Oe=this._normalizeSpeed(oe);this._currentSpeedNormalized!==Oe&&(this._currentSpeedNormalized=Oe,this._currentChunkSizeKB=Oe)}var Re=Z.target.response,ve=this._range.from+this._receivedLength;this._receivedLength+=Re.byteLength;var bn=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0)for(var Re=Z.split("&"),ve=0;ve0;bn[0]!==this._startName&&bn[0]!==this._endName&&(kt&&(Oe+="&"),Oe+=Re[ve])}return Oe.length===0?q:q+"?"+Oe}}]),Pe}(),G=A,K=function(){function Pe(ye,J,q){Object(Q.a)(this,Pe),this.TAG="IOController",this._config=J,this._extraData=q,this._stashInitialSize=1024*384,J.stashInitialSize!=null&&J.stashInitialSize>0&&(this._stashInitialSize=J.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,J.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ye,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ye.url),this._refTotalLength=ye.filesize?ye.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new b,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(J){this._extraData=J}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(J){this._onDataArrival=J}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(J){this._onSeeked=J}},{key:"onError",get:function(){return this._onError},set:function(J){this._onError=J}},{key:"onComplete",get:function(){return this._onComplete},set:function(J){this._onComplete=J}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(J){this._onRedirect=J}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(J){this._onRecoveredEarlyEof=J}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===U?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var J=this._config;if(J.seekType==="range")this._seekHandler=new N(this._config.rangeLoadZeroStart);else if(J.seekType==="param"){var q=J.seekParamStart||"bstart",Z=J.seekParamEnd||"bend";this._seekHandler=new G(q,Z)}else if(J.seekType==="custom"){if(typeof J.customSeekHandler!="function")throw new c("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new J.customSeekHandler}else throw new c("Invalid seekType in config: ".concat(J.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=P;else if(h.isSupported())this._loaderClass=h;else if(x.isSupported())this._loaderClass=x;else if(U.isSupported())this._loaderClass=U;else throw new m("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(J){this._currentRange={from:0,to:-1},J&&(this._currentRange.from=J),this._speedSampler.reset(),J||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var J=this._resumeFrom;this._resumeFrom=0,this._internalSeek(J,!0)}}},{key:"seek",value:function(J){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(J,!0)}},{key:"_internalSeek",value:function(J,q){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(q),this._loader.destroy(),this._loader=null;var Z={from:J,to:-1};this._currentRange={from:Z.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Z),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(J){if(!J||typeof J!="string"||J.length===0)throw new c("Url must be a non-empty string!");this._dataSource.url=J}},{key:"_expandBuffer",value:function(J){for(var q=this._stashSize;q+1024*1024*10){var oe=new Uint8Array(this._stashBuffer,0,this._stashUsed),Oe=new Uint8Array(Z,0,q);Oe.set(oe,0)}this._stashBuffer=Z,this._bufferSize=q}},{key:"_normalizeSpeed",value:function(J){var q=this._speedNormalizeList,Z=q.length-1,oe=0,Oe=0,Re=Z;if(J=q[oe]&&J=512&&J<=1024?q=Math.floor(J*1.5):q=J*2,q>8192&&(q=8192);var Z=q*1024+1024*1024*1;this._bufferSize0){var Fa=this._stashBuffer.slice(0,this._stashUsed),fa=this._dispatchChunks(Fa,this._stashByteStart);if(fa0){var ae=new Uint8Array(Fa,fa);Un.set(ae,0),this._stashUsed=ae.byteLength,this._stashByteStart+=fa}}else this._stashUsed=0,this._stashByteStart+=fa;this._stashUsed+J.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+J.byteLength),Un=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Un.set(new Uint8Array(J),this._stashUsed),this._stashUsed+=J.byteLength}else{var z=this._dispatchChunks(J,q);if(zthis._bufferSize&&(this._expandBuffer(Y),Un=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Un.set(new Uint8Array(J,z),0),this._stashUsed+=Y,this._stashByteStart=q+z}}}else if(this._stashUsed===0){var Re=this._dispatchChunks(J,q);if(Rethis._bufferSize&&this._expandBuffer(ve);var bn=new Uint8Array(this._stashBuffer,0,this._bufferSize);bn.set(new Uint8Array(J,Re),0),this._stashUsed+=ve,this._stashByteStart=q+Re}}else{this._stashUsed+J.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+J.byteLength);var kt=new Uint8Array(this._stashBuffer,0,this._bufferSize);kt.set(new Uint8Array(J),this._stashUsed),this._stashUsed+=J.byteLength;var at=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(at0){var Ht=new Uint8Array(this._stashBuffer,at);kt.set(Ht,0)}this._stashUsed-=at,this._stashByteStart+=at}}},{key:"_flushStashBuffer",value:function(J){if(this._stashUsed>0){var q=this._stashBuffer.slice(0,this._stashUsed),Z=this._dispatchChunks(q,this._stashByteStart),oe=q.byteLength-Z;if(Z0){var Oe=new Uint8Array(this._stashBuffer,0,this._bufferSize),Re=new Uint8Array(q,Z);Oe.set(Re,0),this._stashUsed=Re.byteLength,this._stashByteStart+=Z}return 0}return this._stashUsed=0,this._stashByteStart=0,oe}return 0}},{key:"_onLoaderComplete",value:function(J,q){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(J,q){p.e(this.TAG,"Loader error, code = ".concat(q.code,", msg = ").concat(q.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,J=t.UNRECOVERABLE_EARLY_EOF);switch(J){case t.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Z=this._currentRange.to+1;Z0){var q=Pe.getConfig();J.emit("change",q)}}},{key:"registerListener",value:function(J){Pe.emitter.addListener("change",J)}},{key:"removeListener",value:function(J){Pe.emitter.removeListener("change",J)}},{key:"addLogListener",value:function(J){p.emitter.addListener("log",J),p.emitter.listenerCount("log")>0&&(p.ENABLE_CALLBACK=!0,Pe._notifyChange())}},{key:"removeLogListener",value:function(J){p.emitter.removeListener("log",J),p.emitter.listenerCount("log")===0&&(p.ENABLE_CALLBACK=!1,Pe._notifyChange())}}]),Pe}();je.emitter=new R.a;var me=je,fe=function(){function Pe(){Object(Q.a)(this,Pe),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(W.a)(Pe,[{key:"isComplete",value:function(){var J=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,q=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&J&&q}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(J){if(this.keyframesIndex==null)return null;var q=this.keyframesIndex,Z=this._search(q.times,J);return{index:Z,milliseconds:q.times[Z],fileposition:q.filepositions[Z]}}},{key:"_search",value:function(J,q){var Z=0,oe=J.length-1,Oe=0,Re=0,ve=oe;for(q=J[Oe]&&q=128){ye.push(String.fromCharCode(oe&65535)),q+=2;continue}}}else if(J[q]<240){if(he(J,q,2)){var Oe=(J[q]&15)<<12|(J[q+1]&63)<<6|J[q+2]&63;if(Oe>=2048&&(Oe&63488)!==55296){ye.push(String.fromCharCode(Oe&65535)),q+=3;continue}}}else if(J[q]<248&&he(J,q,3)){var Re=(J[q]&7)<<18|(J[q+1]&63)<<12|(J[q+2]&63)<<6|J[q+3]&63;if(Re>65536&&Re<1114112){Re-=65536,ye.push(String.fromCharCode(Re>>>10|55296)),ye.push(String.fromCharCode(Re&1023|56320)),q+=4;continue}}}ye.push(String.fromCharCode(65533)),++q}return ye.join("")}var st=Ue,Ve=function(){var Pe=new ArrayBuffer(2);return new DataView(Pe).setInt16(0,256,!0),new Int16Array(Pe)[0]===256}(),dt=function(){function Pe(){Object(Q.a)(this,Pe)}return Object(W.a)(Pe,null,[{key:"parseScriptData",value:function(J,q,Z){var oe={};try{var Oe=Pe.parseValue(J,q,Z),Re=Pe.parseValue(J,q+Oe.size,Z-Oe.size);oe[Oe.data]=Re.data}catch(ve){p.e("AMF",ve.toString())}return oe}},{key:"parseObject",value:function(J,q,Z){if(Z<3)throw new o("Data not enough when parse ScriptDataObject");var oe=Pe.parseString(J,q,Z),Oe=Pe.parseValue(J,q+oe.size,Z-oe.size),Re=Oe.objectEnd;return{data:{name:oe.data,value:Oe.data},size:oe.size+Oe.size,objectEnd:Re}}},{key:"parseVariable",value:function(J,q,Z){return Pe.parseObject(J,q,Z)}},{key:"parseString",value:function(J,q,Z){if(Z<2)throw new o("Data not enough when parse String");var oe=new DataView(J,q,Z),Oe=oe.getUint16(0,!Ve),Re;return Oe>0?Re=st(new Uint8Array(J,q+2,Oe)):Re="",{data:Re,size:2+Oe}}},{key:"parseLongString",value:function(J,q,Z){if(Z<4)throw new o("Data not enough when parse LongString");var oe=new DataView(J,q,Z),Oe=oe.getUint32(0,!Ve),Re;return Oe>0?Re=st(new Uint8Array(J,q+4,Oe)):Re="",{data:Re,size:4+Oe}}},{key:"parseDate",value:function(J,q,Z){if(Z<10)throw new o("Data size invalid when parse Date");var oe=new DataView(J,q,Z),Oe=oe.getFloat64(0,!Ve),Re=oe.getInt16(8,!Ve);return Oe+=Re*60*1e3,{data:new Date(Oe),size:8+2}}},{key:"parseValue",value:function(J,q,Z){if(Z<1)throw new o("Data not enough when parse Value");var oe=new DataView(J,q,Z),Oe=1,Re=oe.getUint8(0),ve,bn=!1;try{switch(Re){case 0:ve=oe.getFloat64(1,!Ve),Oe+=8;break;case 1:{var kt=oe.getUint8(1);ve=!!kt,Oe+=1;break}case 2:{var at=Pe.parseString(J,q+1,Z-1);ve=at.data,Oe+=at.size;break}case 3:{ve={};var Ht=0;for((oe.getUint32(Z-4,!Ve)&16777215)===9&&(Ht=3);Oe32)throw new c("ExpGolomb: readBits() bits exceeded max 32bits!");if(J<=this._current_word_bits_left){var q=this._current_word>>>32-J;return this._current_word<<=J,this._current_word_bits_left-=J,q}var Z=this._current_word_bits_left?this._current_word:0;Z=Z>>>32-this._current_word_bits_left;var oe=J-this._current_word_bits_left;this._fillCurrentWord();var Oe=Math.min(oe,this._current_word_bits_left),Re=this._current_word>>>32-Oe;return this._current_word<<=Oe,this._current_word_bits_left-=Oe,Z=Z<>>J)!==0)return this._current_word<<=J,this._current_word_bits_left-=J,J;return this._fillCurrentWord(),J+this._skipLeadingZero()}},{key:"readUEG",value:function(){var J=this._skipLeadingZero();return this.readBits(J+1)-1}},{key:"readSEG",value:function(){var J=this.readUEG();return J&1?J+1>>>1:-1*(J>>>1)}}]),Pe}(),xe=pe,Le=function(){function Pe(){Object(Q.a)(this,Pe)}return Object(W.a)(Pe,null,[{key:"_ebsp2rbsp",value:function(J){for(var q=J,Z=q.byteLength,oe=new Uint8Array(Z),Oe=0,Re=0;Re=2&&(q[Re]===3&&q[Re-1]===0&&q[Re-2]===0))continue;oe[Oe]=q[Re],Oe++}return new Uint8Array(oe.buffer,0,Oe)}},{key:"parseSPS",value:function(J){var q=Pe._ebsp2rbsp(J),Z=new xe(q);Z.readByte();var oe=Z.readByte();Z.readByte();var Oe=Z.readByte();Z.readUEG();var Re=Pe.getProfileString(oe),ve=Pe.getLevelString(Oe),bn=1,kt=420,at=[0,420,422,444],Ht=8;if((oe===100||oe===110||oe===122||oe===244||oe===44||oe===83||oe===86||oe===118||oe===128||oe===138||oe===144)&&(bn=Z.readUEG(),bn===3&&Z.readBits(1),bn<=3&&(kt=at[bn]),Ht=Z.readUEG()+8,Z.readUEG(),Z.readBits(1),Z.readBool()))for(var Fe=bn!==3?8:12,Un=0;Un0&&ba<16?(dn=Na[ba-1],Tn=Ma[ba-1]):ba===255&&(dn=Z.readByte()<<8|Z.readByte(),Tn=Z.readByte()<<8|Z.readByte())}if(Z.readBool()&&Z.readBool(),Z.readBool()&&(Z.readBits(4),Z.readBool()&&Z.readBits(24)),Z.readBool()&&(Z.readUEG(),Z.readUEG()),Z.readBool()){var Jt=Z.readBits(32),Rt=Z.readBits(32);fr=Z.readBool(),gr=Rt,ir=Jt*2,ya=gr/ir}}var An=1;(dn!==1||Tn!==1)&&(An=dn/Tn);var aa=0,ra=0;if(bn===0)aa=1,ra=2-_e;else{var Fn=bn===3?1:2,da=bn===1?2:1;aa=Fn,ra=da*(2-_e)}var Ta=(Y+1)*16,Wa=(2-_e)*((te+1)*16);Ta-=(se+ut)*aa,Wa-=(vn+Wn)*ra;var ue=Math.ceil(Ta*An);return Z.destroy(),Z=null,{profile_string:Re,level_string:ve,bit_depth:Ht,ref_frames:z,chroma_format:kt,chroma_format_string:Pe.getChromaFormatString(kt),frame_rate:{fixed:fr,fps:ya,fps_den:ir,fps_num:gr},sar_ratio:{width:dn,height:Tn},codec_size:{width:Ta,height:Wa},present_size:{width:ue,height:Wa}}}},{key:"_skipScalingList",value:function(J,q){for(var Z=8,oe=8,Oe=0,Re=0;Re>>8&255|(Pe&255)<<8}function Zt(Pe){return(Pe&4278190080)>>>24|(Pe&16711680)>>>8|(Pe&65280)<<8|(Pe&255)<<24}function Hn(Pe,ye){return Pe[ye]<<24|Pe[ye+1]<<16|Pe[ye+2]<<8|Pe[ye+3]}var ia=function(){function Pe(ye,J){Object(Q.a)(this,Pe),this.TAG="FLVDemuxer",this._config=J,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ye.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ye.hasAudioTrack,this._hasVideo=ye.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ae,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var q=new ArrayBuffer(2);return new DataView(q).setInt16(0,256,!0),new Int16Array(q)[0]===256}()}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(J){return J.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(J){this._onTrackMetadata=J}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(J){this._onMediaInfo=J}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(J){this._onMetaDataArrived=J}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(J){this._onScriptDataArrived=J}},{key:"onError",get:function(){return this._onError},set:function(J){this._onError=J}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(J){this._onDataAvailable=J}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(J){this._timestampBase=J}},{key:"overridedDuration",get:function(){return this._duration},set:function(J){this._durationOverrided=!0,this._duration=J,this._mediaInfo.duration=J}},{key:"overridedHasAudio",set:function(J){this._hasAudioFlagOverrided=!0,this._hasAudio=J,this._mediaInfo.hasAudio=J}},{key:"overridedHasVideo",set:function(J){this._hasVideoFlagOverrided=!0,this._hasVideo=J,this._mediaInfo.hasVideo=J}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Ae}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(J,q){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new o("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Z=0,oe=this._littleEndian;if(q===0)if(J.byteLength>13){var Oe=Pe.probe(J);Z=Oe.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,q+Z!==this._dataOffset&&p.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Re=new DataView(J,Z),ve=Re.getUint32(0,!oe);ve!==0&&p.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Z+=4}for(;ZJ.byteLength)break;var kt=bn.getUint8(0),at=bn.getUint32(0,!oe)&16777215;if(Z+11+at+4>J.byteLength)break;if(kt!==8&&kt!==9&&kt!==18){p.w(this.TAG,"Unsupported tag type ".concat(kt,", skipped")),Z+=11+at+4;continue}var Ht=bn.getUint8(4),Fe=bn.getUint8(5),Un=bn.getUint8(6),Fa=bn.getUint8(7),fa=Un|Fe<<8|Ht<<16|Fa<<24,ae=bn.getUint32(7,!oe)&16777215;ae!==0&&p.w(this.TAG,"Meet tag which has StreamID != 0!");var z=Z+11;switch(kt){case 8:this._parseAudioData(J,z,at,fa);break;case 9:this._parseVideoData(J,z,at,fa,q+Z);break;case 18:this._parseScriptData(J,z,at);break}var Y=bn.getUint32(11+at,!oe);Y!==11+at&&p.w(this.TAG,"Invalid PrevTagSize ".concat(Y)),Z+=11+at+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Z}},{key:"_parseScriptData",value:function(J,q,Z){var oe=Qe.parseScriptData(J,q,Z);if(oe.hasOwnProperty("onMetaData")){if(oe.onMetaData==null||typeof oe.onMetaData!="object"){p.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&p.w(this.TAG,"Found another onMetaData tag!"),this._metadata=oe;var Oe=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Oe)),typeof Oe.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=Oe.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof Oe.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=Oe.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof Oe.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Oe.audiodatarate),typeof Oe.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Oe.videodatarate),typeof Oe.width=="number"&&(this._mediaInfo.width=Oe.width),typeof Oe.height=="number"&&(this._mediaInfo.height=Oe.height),typeof Oe.duration=="number"){if(!this._durationOverrided){var Re=Math.floor(Oe.duration*this._timescale);this._duration=Re,this._mediaInfo.duration=Re}}else this._mediaInfo.duration=0;if(typeof Oe.framerate=="number"){var ve=Math.floor(Oe.framerate*1e3);if(ve>0){var bn=ve/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=bn,this._referenceFrameRate.fps_num=ve,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=bn}}if(typeof Oe.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var kt=Oe.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(kt),Oe.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Oe,p.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(oe).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},oe)))}},{key:"_parseKeyframesIndex",value:function(J){for(var q=[],Z=[],oe=1;oe>>4;if(bn!==2&&bn!==10){this._onError(Ct.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+bn);return}var kt=0,at=(ve&12)>>>2;if(at>=0&&at<=4)kt=this._flvSoundRateTable[at];else{this._onError(Ct.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+at);return}var Ht=(ve&2)>>>1,Fe=ve&1,Un=this._audioMetadata,Fa=this._audioTrack;if(Un||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Un=this._audioMetadata={},Un.type="audio",Un.id=Fa.id,Un.timescale=this._timescale,Un.duration=this._duration,Un.audioSampleRate=kt,Un.channelCount=Fe===0?1:2),bn===10){var fa=this._parseAACAudioData(J,q+1,Z-1);if(fa==null)return;if(fa.packetType===0){Un.config&&p.w(this.TAG,"Found another AudioSpecificConfig!");var ae=fa.data;Un.audioSampleRate=ae.samplingRate,Un.channelCount=ae.channelCount,Un.codec=ae.codec,Un.originalCodec=ae.originalCodec,Un.config=ae.config,Un.refSampleDuration=1024/Un.audioSampleRate*Un.timescale,p.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",Un);var z=this._mediaInfo;z.audioCodec=Un.originalCodec,z.audioSampleRate=Un.audioSampleRate,z.audioChannelCount=Un.channelCount,z.hasVideo?z.videoCodec!=null&&(z.mimeType='video/x-flv; codecs="'+z.videoCodec+","+z.audioCodec+'"'):z.mimeType='video/x-flv; codecs="'+z.audioCodec+'"',z.isComplete()&&this._onMediaInfo(z)}else if(fa.packetType===1){var Y=this._timestampBase+oe,te={unit:fa.data,length:fa.data.byteLength,dts:Y,pts:Y};Fa.samples.push(te),Fa.length+=fa.data.length}else p.e(this.TAG,"Flv: Unsupported AAC data type ".concat(fa.packetType))}else if(bn===2){if(!Un.codec){var _e=this._parseMP3AudioData(J,q+1,Z-1,!0);if(_e==null)return;Un.audioSampleRate=_e.samplingRate,Un.channelCount=_e.channelCount,Un.codec=_e.codec,Un.originalCodec=_e.originalCodec,Un.refSampleDuration=1152/Un.audioSampleRate*Un.timescale,p.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Un);var se=this._mediaInfo;se.audioCodec=Un.codec,se.audioSampleRate=Un.audioSampleRate,se.audioChannelCount=Un.channelCount,se.audioDataRate=_e.bitRate,se.hasVideo?se.videoCodec!=null&&(se.mimeType='video/x-flv; codecs="'+se.videoCodec+","+se.audioCodec+'"'):se.mimeType='video/x-flv; codecs="'+se.audioCodec+'"',se.isComplete()&&this._onMediaInfo(se)}var ut=this._parseMP3AudioData(J,q+1,Z-1,!1);if(ut==null)return;var vn=this._timestampBase+oe,Wn={unit:ut,length:ut.byteLength,dts:vn,pts:vn};Fa.samples.push(Wn),Fa.length+=ut.length}}},{key:"_parseAACAudioData",value:function(J,q,Z){if(Z<=1){p.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var oe={},Oe=new Uint8Array(J,q,Z);return oe.packetType=Oe[0],Oe[0]===0?oe.data=this._parseAACAudioSpecificConfig(J,q+1,Z-1):oe.data=Oe.subarray(1),oe}},{key:"_parseAACAudioSpecificConfig",value:function(J,q,Z){var oe=new Uint8Array(J,q,Z),Oe=null,Re=0,ve=0,bn=null,kt=0,at=null;if(Re=ve=oe[0]>>>3,kt=(oe[0]&7)<<1|oe[1]>>>7,kt<0||kt>=this._mpegSamplingRates.length){this._onError(Ct.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Ht=this._mpegSamplingRates[kt],Fe=(oe[1]&120)>>>3;if(Fe<0||Fe>=8){this._onError(Ct.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Re===5&&(at=(oe[1]&7)<<1|oe[2]>>>7,bn=(oe[2]&124)>>>2);var Un=self.navigator.userAgent.toLowerCase();return Un.indexOf("firefox")!==-1?kt>=6?(Re=5,Oe=new Array(4),at=kt-3):(Re=2,Oe=new Array(2),at=kt):Un.indexOf("android")!==-1?(Re=2,Oe=new Array(2),at=kt):(Re=5,at=kt,Oe=new Array(4),kt>=6?at=kt-3:Fe===1&&(Re=2,Oe=new Array(2),at=kt)),Oe[0]=Re<<3,Oe[0]|=(kt&15)>>>1,Oe[1]=(kt&15)<<7,Oe[1]|=(Fe&15)<<3,Re===5&&(Oe[1]|=(at&15)>>>1,Oe[2]=(at&1)<<7,Oe[2]|=2<<2,Oe[3]=0),{config:Oe,samplingRate:Ht,channelCount:Fe,codec:"mp4a.40."+Re,originalCodec:"mp4a.40."+ve}}},{key:"_parseMP3AudioData",value:function(J,q,Z,oe){if(Z<4){p.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var Oe=this._littleEndian,Re=new Uint8Array(J,q,Z),ve=null;if(oe){if(Re[0]!==255)return;var bn=Re[1]>>>3&3,kt=(Re[1]&6)>>1,at=(Re[2]&240)>>>4,Ht=(Re[2]&12)>>>2,Fe=Re[3]>>>6&3,Un=Fe!==3?2:1,Fa=0,fa=0,ae=34,z="mp3";switch(bn){case 0:Fa=this._mpegAudioV25SampleRateTable[Ht];break;case 2:Fa=this._mpegAudioV20SampleRateTable[Ht];break;case 3:Fa=this._mpegAudioV10SampleRateTable[Ht];break}switch(kt){case 1:ae=34,at>>4,bn=Re&15;if(bn!==7){this._onError(Ct.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(bn));return}this._parseAVCVideoPacket(J,q+1,Z-1,oe,Oe,ve)}},{key:"_parseAVCVideoPacket",value:function(J,q,Z,oe,Oe,Re){if(Z<4){p.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var ve=this._littleEndian,bn=new DataView(J,q,Z),kt=bn.getUint8(0),at=bn.getUint32(0,!ve)&16777215,Ht=at<<8>>8;if(kt===0)this._parseAVCDecoderConfigurationRecord(J,q+4,Z-4);else if(kt===1)this._parseAVCVideoData(J,q+4,Z-4,oe,Oe,Re,Ht);else if(!(kt===2)){this._onError(Ct.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(kt));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(J,q,Z){if(Z<7){p.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var oe=this._videoMetadata,Oe=this._videoTrack,Re=this._littleEndian,ve=new DataView(J,q,Z);oe?typeof oe.avcc!="undefined"&&p.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),oe=this._videoMetadata={},oe.type="video",oe.id=Oe.id,oe.timescale=this._timescale,oe.duration=this._duration);var bn=ve.getUint8(0),kt=ve.getUint8(1),at=ve.getUint8(2),Ht=ve.getUint8(3);if(bn!==1||kt===0){this._onError(Ct.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(ve.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ct.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var Fe=ve.getUint8(5)&31;if(Fe===0){this._onError(Ct.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Fe>1&&p.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(Fe));for(var Un=6,Fa=0;Fa1&&p.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Oa));Un++;for(var dn=0;dn=Z){p.w(this.TAG,"Malformed Nalu near timestamp ".concat(Fa,", offset = ").concat(Fe,", dataSize = ").concat(Z));break}var ae=kt.getUint32(Fe,!bn);if(Un===3&&(ae>>>=8),ae>Z-Un){p.w(this.TAG,"Malformed Nalus near timestamp ".concat(Fa,", NaluSize > DataSize!"));return}var z=kt.getUint8(Fe+Un)&31;z===5&&(fa=!0);var Y=new Uint8Array(J,q+Fe,Un+ae),te={type:z,data:Y};at.push(te),Ht+=Y.byteLength,Fe+=Un+ae}if(at.length){var _e=this._videoTrack,se={units:at,length:Ht,isKeyframe:fa,dts:Fa,cts:ve,pts:Fa+ve};fa&&(se.fileposition=Oe),_e.samples.push(se),_e.length+=Ht}}}],[{key:"probe",value:function(J){var q=new Uint8Array(J),Z={match:!1};if(q[0]!==70||q[1]!==76||q[2]!==86||q[3]!==1)return Z;var oe=(q[4]&4)>>>2!==0,Oe=(q[4]&1)!==0,Re=Hn(q,5);return Re<9?Z:{match:!0,consumed:Re,dataOffset:Re,hasAudioTrack:oe,hasVideoTrack:Oe}}}]),Pe}(),mt=ia,pt=function(){function Pe(){Object(Q.a)(this,Pe)}return Object(W.a)(Pe,null,[{key:"init",value:function(){Pe.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var J in Pe.types)Pe.types.hasOwnProperty(J)&&(Pe.types[J]=[J.charCodeAt(0),J.charCodeAt(1),J.charCodeAt(2),J.charCodeAt(3)]);var q=Pe.constants={};q.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),q.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),q.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),q.STSC=q.STCO=q.STTS,q.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),q.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),q.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),q.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),q.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),q.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(J){for(var q=8,Z=null,oe=Array.prototype.slice.call(arguments,1),Oe=oe.length,Re=0;Re>>24&255,Z[1]=q>>>16&255,Z[2]=q>>>8&255,Z[3]=q&255,Z.set(J,4);for(var ve=8,bn=0;bn>>24&255,J>>>16&255,J>>>8&255,J&255,q>>>24&255,q>>>16&255,q>>>8&255,q&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(J){return Pe.box(Pe.types.trak,Pe.tkhd(J),Pe.mdia(J))}},{key:"tkhd",value:function(J){var q=J.id,Z=J.duration,oe=J.presentWidth,Oe=J.presentHeight;return Pe.box(Pe.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255,0,0,0,0,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,oe>>>8&255,oe&255,0,0,Oe>>>8&255,Oe&255,0,0]))}},{key:"mdia",value:function(J){return Pe.box(Pe.types.mdia,Pe.mdhd(J),Pe.hdlr(J),Pe.minf(J))}},{key:"mdhd",value:function(J){var q=J.timescale,Z=J.duration;return Pe.box(Pe.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,85,196,0,0]))}},{key:"hdlr",value:function(J){var q=null;return J.type==="audio"?q=Pe.constants.HDLR_AUDIO:q=Pe.constants.HDLR_VIDEO,Pe.box(Pe.types.hdlr,q)}},{key:"minf",value:function(J){var q=null;return J.type==="audio"?q=Pe.box(Pe.types.smhd,Pe.constants.SMHD):q=Pe.box(Pe.types.vmhd,Pe.constants.VMHD),Pe.box(Pe.types.minf,q,Pe.dinf(),Pe.stbl(J))}},{key:"dinf",value:function(){var J=Pe.box(Pe.types.dinf,Pe.box(Pe.types.dref,Pe.constants.DREF));return J}},{key:"stbl",value:function(J){var q=Pe.box(Pe.types.stbl,Pe.stsd(J),Pe.box(Pe.types.stts,Pe.constants.STTS),Pe.box(Pe.types.stsc,Pe.constants.STSC),Pe.box(Pe.types.stsz,Pe.constants.STSZ),Pe.box(Pe.types.stco,Pe.constants.STCO));return q}},{key:"stsd",value:function(J){return J.type==="audio"?J.codec==="mp3"?Pe.box(Pe.types.stsd,Pe.constants.STSD_PREFIX,Pe.mp3(J)):Pe.box(Pe.types.stsd,Pe.constants.STSD_PREFIX,Pe.mp4a(J)):Pe.box(Pe.types.stsd,Pe.constants.STSD_PREFIX,Pe.avc1(J))}},{key:"mp3",value:function(J){var q=J.channelCount,Z=J.audioSampleRate,oe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,q,0,16,0,0,0,0,Z>>>8&255,Z&255,0,0]);return Pe.box(Pe.types[".mp3"],oe)}},{key:"mp4a",value:function(J){var q=J.channelCount,Z=J.audioSampleRate,oe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,q,0,16,0,0,0,0,Z>>>8&255,Z&255,0,0]);return Pe.box(Pe.types.mp4a,oe,Pe.esds(J))}},{key:"esds",value:function(J){var q=J.config||[],Z=q.length,oe=new Uint8Array([0,0,0,0,3,23+Z,0,1,0,4,15+Z,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Z]).concat(q).concat([6,1,2]));return Pe.box(Pe.types.esds,oe)}},{key:"avc1",value:function(J){var q=J.avcc,Z=J.codecWidth,oe=J.codecHeight,Oe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Z>>>8&255,Z&255,oe>>>8&255,oe&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Pe.box(Pe.types.avc1,Oe,Pe.box(Pe.types.avcC,q))}},{key:"mvex",value:function(J){return Pe.box(Pe.types.mvex,Pe.trex(J))}},{key:"trex",value:function(J){var q=J.id,Z=new Uint8Array([0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Pe.box(Pe.types.trex,Z)}},{key:"moof",value:function(J,q){return Pe.box(Pe.types.moof,Pe.mfhd(J.sequenceNumber),Pe.traf(J,q))}},{key:"mfhd",value:function(J){var q=new Uint8Array([0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,J&255]);return Pe.box(Pe.types.mfhd,q)}},{key:"traf",value:function(J,q){var Z=J.id,oe=Pe.box(Pe.types.tfhd,new Uint8Array([0,0,0,0,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255])),Oe=Pe.box(Pe.types.tfdt,new Uint8Array([0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255])),Re=Pe.sdtp(J),ve=Pe.trun(J,Re.byteLength+16+16+8+16+8+8);return Pe.box(Pe.types.traf,oe,Oe,ve,Re)}},{key:"sdtp",value:function(J){for(var q=J.samples||[],Z=q.length,oe=new Uint8Array(4+Z),Oe=0;Oe>>24&255,oe>>>16&255,oe>>>8&255,oe&255,q>>>24&255,q>>>16&255,q>>>8&255,q&255],0);for(var ve=0;ve>>24&255,bn>>>16&255,bn>>>8&255,bn&255,kt>>>24&255,kt>>>16&255,kt>>>8&255,kt&255,at.isLeading<<2|at.dependsOn,at.isDependedOn<<6|at.hasRedundancy<<4|at.isNonSync,0,0,Ht>>>24&255,Ht>>>16&255,Ht>>>8&255,Ht&255],12+16*ve)}return Pe.box(Pe.types.trun,Re)}},{key:"mdat",value:function(J){return Pe.box(Pe.types.mdat,J)}}]),Pe}();pt.init();var on=pt,hn=function(){function Pe(){Object(Q.a)(this,Pe)}return Object(W.a)(Pe,null,[{key:"getSilentFrame",value:function(J,q){if(J==="mp4a.40.2"){if(q===1)return new Uint8Array([0,200,0,128,35,128]);if(q===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(q===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(q===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(q===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(q===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(q===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(q===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(q===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),Pe}(),Ot=hn,Xt=function Pe(ye,J,q,Z,oe){Object(Q.a)(this,Pe),this.dts=ye,this.pts=J,this.duration=q,this.originalDts=Z,this.isSyncPoint=oe,this.fileposition=null},ht=function(){function Pe(){Object(Q.a)(this,Pe),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(W.a)(Pe,[{key:"appendSyncPoint",value:function(J){J.isSyncPoint=!0,this.syncPoints.push(J)}}]),Pe}(),Je=function(){function Pe(){Object(Q.a)(this,Pe),this._list=[]}return Object(W.a)(Pe,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(J){var q=this._list;if(J.length===0)return;q.length>0&&J[0].originalDts=q[Oe].dts&&Jq[oe].lastSample.originalDts&&J=q[oe].lastSample.originalDts&&(oe===q.length-1||oe0&&(Oe=this._searchNearestSegmentBefore(Z.originalBeginDts)+1),this._lastAppendLocation=Oe,this._list.splice(Oe,0,Z)}},{key:"getLastSegmentBefore",value:function(J){var q=this._searchNearestSegmentBefore(J);return q>=0?this._list[q]:null}},{key:"getLastSampleBefore",value:function(J){var q=this.getLastSegmentBefore(J);return q!=null?q.lastSample:null}},{key:"getLastSyncPointBefore",value:function(J){for(var q=this._searchNearestSegmentBefore(J),Z=this._list[q].syncPoints;Z.length===0&&q>0;)q--,Z=this._list[q].syncPoints;return Z.length>0?Z[Z.length-1]:null}}]),Pe}(),Te=function(){function Pe(ye){Object(Q.a)(this,Pe),this.TAG="MP4Remuxer",this._config=ye,this._isLive=ye.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new rt("audio"),this._videoSegmentInfoList=new rt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(n.chrome&&(n.version.major<50||n.version.major===50&&n.version.build<2661)),this._fillSilentAfterSeek=n.msedge||n.msie,this._mp3UseMpegAudio=!n.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(J){return J.onDataAvailable=this.remux.bind(this),J.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(J){this._onInitSegment=J}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(J){this._onMediaSegment=J}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(J){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(J,q){if(!this._onMediaSegment)throw new o("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(J,q),this._remuxVideo(q),this._remuxAudio(J)}},{key:"_onTrackMetadataReceived",value:function(J,q){var Z=null,oe="mp4",Oe=q.codec;if(J==="audio")this._audioMeta=q,q.codec==="mp3"&&this._mp3UseMpegAudio?(oe="mpeg",Oe="",Z=new Uint8Array):Z=on.generateInitSegment(q);else if(J==="video")this._videoMeta=q,Z=on.generateInitSegment(q);else return;if(!this._onInitSegment)throw new o("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(J,{type:J,data:Z.buffer,codec:Oe,container:"".concat(J,"/").concat(oe),mediaDuration:q.duration})}},{key:"_calculateDtsBase",value:function(J,q){if(this._dtsBaseInited)return;J.samples&&J.samples.length&&(this._audioDtsBase=J.samples[0].dts),q.samples&&q.samples.length&&(this._videoDtsBase=q.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var J=this._videoStashedLastSample,q=this._audioStashedLastSample,Z={type:"video",id:1,sequenceNumber:0,samples:[],length:0};J!=null&&(Z.samples.push(J),Z.length=J.length);var oe={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};q!=null&&(oe.samples.push(q),oe.length=q.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Z,!0),this._remuxAudio(oe,!0)}},{key:"_remuxAudio",value:function(J,q){if(this._audioMeta==null)return;var Z=J,oe=Z.samples,Oe=void 0,Re=-1,ve=-1,bn=-1,kt=this._audioMeta.refSampleDuration,at=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ht=this._dtsBaseInited&&this._audioNextDts===void 0,Fe=!1;if(!oe||oe.length===0)return;if(oe.length===1&&!q)return;var Un=0,Fa=null,fa=0;at?(Un=0,fa=Z.length):(Un=8,fa=8+Z.length);var ae=null;if(oe.length>1&&(ae=oe.pop(),fa-=ae.length),this._audioStashedLastSample!=null){var z=this._audioStashedLastSample;this._audioStashedLastSample=null,oe.unshift(z),fa+=z.length}ae!=null&&(this._audioStashedLastSample=ae);var Y=oe[0].dts-this._dtsBase;if(this._audioNextDts)Oe=Y-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Oe=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(Fe=!0));else{var te=this._audioSegmentInfoList.getLastSampleBefore(Y);if(te!=null){var _e=Y-(te.originalDts+te.duration);_e<=3&&(_e=0);var se=te.dts+te.duration+_e;Oe=Y-se}else Oe=0}if(Fe){var ut=Y-Oe,vn=this._videoSegmentInfoList.getLastSegmentBefore(Y);if(vn!=null&&vn.beginDts=1?ba=Tn[Tn.length-1].duration:ba=Math.floor(kt);var Jt=!1,Rt=null;if(ba>kt*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!n.safari){Jt=!0;var An=Math.abs(ba-kt),aa=Math.ceil(An/kt),ra=Qa+kt;p.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. -`+"dts: ".concat(Qa+ba," ms, expected: ").concat(Qa+Math.round(kt)," ms, ")+"delta: ".concat(Math.round(An)," ms, generate: ").concat(aa," frames"));var Fn=Ot.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Fn==null&&(p.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Fn=gr),Rt=[];for(var da=0;da0){var Wa=Rt[Rt.length-1];Wa.duration=Ta-Wa.dts}var ue={dts:Ta,pts:Ta,cts:0,unit:Fn,size:Fn.byteLength,duration:0,originalDts:ir,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Rt.push(ue),fa+=ue.size,ra+=kt}var ot=Rt[Rt.length-1];ot.duration=Qa+ba-ot.dts,ba=Math.round(kt)}Tn.push({dts:Qa,pts:Qa,cts:0,unit:fr.unit,size:fr.unit.byteLength,duration:ba,originalDts:ir,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Jt&&Tn.push.apply(Tn,Rt)}at?Fa=new Uint8Array(fa):(Fa=new Uint8Array(fa),Fa[0]=fa>>>24&255,Fa[1]=fa>>>16&255,Fa[2]=fa>>>8&255,Fa[3]=fa&255,Fa.set(on.types.mdat,4));for(var lt=0;lt1&&(Un=oe.pop(),Fe-=Un.length),this._videoStashedLastSample!=null){var Fa=this._videoStashedLastSample;this._videoStashedLastSample=null,oe.unshift(Fa),Fe+=Fa.length}Un!=null&&(this._videoStashedLastSample=Un);var fa=oe[0].dts-this._dtsBase;if(this._videoNextDts)Oe=fa-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Oe=0;else{var ae=this._videoSegmentInfoList.getLastSampleBefore(fa);if(ae!=null){var z=fa-(ae.originalDts+ae.duration);z<=3&&(z=0);var Y=ae.dts+ae.duration+z;Oe=fa-Y}else Oe=0}for(var te=new ht,_e=[],se=0;se=1?ya=_e[_e.length-1].duration:ya=Math.floor(this._videoMeta.refSampleDuration);if(Wn){var ir=new Xt(Oa,Tn,ya,ut.dts,!0);ir.fileposition=ut.fileposition,te.appendSyncPoint(ir)}_e.push({dts:Oa,pts:Tn,cts:dn,units:ut.units,size:ut.length,isKeyframe:Wn,duration:ya,originalDts:vn,flags:{isLeading:0,dependsOn:Wn?2:1,isDependedOn:Wn?1:0,hasRedundancy:0,isNonSync:Wn?0:1}})}Ht=new Uint8Array(Fe),Ht[0]=Fe>>>24&255,Ht[1]=Fe>>>16&255,Ht[2]=Fe>>>8&255,Ht[3]=Fe&255,Ht.set(on.types.mdat,4);for(var Qa=0;Qa<_e.length;Qa++)for(var ba=_e[Qa].units;ba.length;){var Na=ba.shift(),Ma=Na.data;Ht.set(Ma,at),at+=Ma.byteLength}var Jt=_e[_e.length-1];if(ve=Jt.dts+Jt.duration,kt=Jt.pts+Jt.duration,this._videoNextDts=ve,te.beginDts=Re,te.endDts=ve,te.beginPts=bn,te.endPts=kt,te.originalBeginDts=_e[0].originalDts,te.originalEndDts=Jt.originalDts+Jt.duration,te.firstSample=new Xt(_e[0].dts,_e[0].pts,_e[0].duration,_e[0].originalDts,_e[0].isKeyframe),te.lastSample=new Xt(Jt.dts,Jt.pts,Jt.duration,Jt.originalDts,Jt.isKeyframe),this._isLive||this._videoSegmentInfoList.append(te),Z.samples=_e,Z.sequenceNumber++,this._forceFirstIDR){var Rt=_e[0].flags;Rt.dependsOn=2,Rt.isNonSync=0}var An=on.moof(Z,Re);Z.samples=[],Z.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(An,Ht).buffer,sampleCount:_e.length,info:te})}},{key:"_mergeBoxes",value:function(J,q){var Z=new Uint8Array(J.byteLength+q.byteLength);return Z.set(J,0),Z.set(q,J.byteLength),Z}}]),Pe}(),Me=Te,Ie={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},be=Ie,qe=function(){function Pe(ye,J){Object(Q.a)(this,Pe),this.TAG="TransmuxingController",this._emitter=new R.a,this._config=J,ye.segments||(ye.segments=[{duration:ye.duration,filesize:ye.filesize,url:ye.url}]),typeof ye.cors!="boolean"&&(ye.cors=!0),typeof ye.withCredentials!="boolean"&&(ye.withCredentials=!1),this._mediaDataSource=ye,this._currentSegmentIndex=0;var q=0;this._mediaDataSource.segments.forEach(function(Z){Z.timestampBase=q,q+=Z.duration,Z.cors=ye.cors,Z.withCredentials=ye.withCredentials,J.referrerPolicy&&(Z.referrerPolicy=J.referrerPolicy)}),!isNaN(q)&&this._mediaDataSource.duration!==q&&(this._mediaDataSource.duration=q),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(J,q){this._emitter.addListener(J,q)}},{key:"off",value:function(J,q){this._emitter.removeListener(J,q)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(J,q){this._currentSegmentIndex=J;var Z=this._mediaDataSource.segments[J],oe=this._ioctl=new $(Z,this._config,J);oe.onError=this._onIOException.bind(this),oe.onSeeked=this._onIOSeeked.bind(this),oe.onComplete=this._onIOComplete.bind(this),oe.onRedirect=this._onIORedirect.bind(this),oe.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),q?this._demuxer.bindDataSource(this._ioctl):oe.onDataArrival=this._onInitChunkArrival.bind(this),oe.open(q)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(J){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var q=this._searchSegmentIndexContains(J);if(q===this._currentSegmentIndex){var Z=this._mediaInfo.segments[q];if(Z==null)this._pendingSeekTime=J;else{var oe=Z.getNearestKeyframe(J);this._remuxer.seek(oe.milliseconds),this._ioctl.seek(oe.fileposition),this._pendingResolveSeekPoint=oe.milliseconds}}else{var Oe=this._mediaInfo.segments[q];if(Oe==null)this._pendingSeekTime=J,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(q);else{var Re=Oe.getNearestKeyframe(J);this._internalAbort(),this._remuxer.seek(J),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[q].timestampBase,this._loadSegment(q,Re.fileposition),this._pendingResolveSeekPoint=Re.milliseconds,this._reportSegmentMediaInfo(q)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(J){for(var q=this._mediaDataSource.segments,Z=q.length-1,oe=0;oe0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Oe=this._demuxer.parseChunks(J,q);else if((oe=mt.probe(J)).match){this._demuxer=new mt(oe,this._config),this._remuxer||(this._remuxer=new Me(this._config));var Re=this._mediaDataSource;Re.duration!=null&&!isNaN(Re.duration)&&(this._demuxer.overridedDuration=Re.duration),typeof Re.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Re.hasAudio),typeof Re.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Re.hasVideo),this._demuxer.timestampBase=Re.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),Oe=this._demuxer.parseChunks(J,q)}else oe=null,p.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Z._internalAbort()}),this._emitter.emit(be.DEMUX_ERROR,Ct.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Oe=0;return Oe}},{key:"_onMediaInfo",value:function(J){var q=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},J),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ae.prototype));var Z=Object.assign({},J);Object.setPrototypeOf(Z,Ae.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Z,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var oe=q._pendingSeekTime;q._pendingSeekTime=null,q.seek(oe)})}},{key:"_onMetaDataArrived",value:function(J){this._emitter.emit(be.METADATA_ARRIVED,J)}},{key:"_onScriptDataArrived",value:function(J){this._emitter.emit(be.SCRIPTDATA_ARRIVED,J)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(J){var q=J,Z=q+1;Z0&&Z[0].originalDts===oe&&(oe=Z[0].pts),this._emitter.emit(be.RECOMMEND_SEEKPOINT,oe)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(J){var q=this._mediaInfo.segments[J],Z=Object.assign({},q);Z.duration=this._mediaInfo.duration,Z.segmentCount=this._mediaInfo.segmentCount,delete Z.segments,delete Z.keyframesIndex,this._emitter.emit(be.MEDIA_INFO,Z)}},{key:"_reportStatisticsInfo",value:function(){var J={};J.url=this._ioctl.currentURL,J.hasRedirect=this._ioctl.hasRedirect,J.hasRedirect&&(J.redirectedURL=this._ioctl.currentRedirectedURL),J.speed=this._ioctl.currentSpeed,J.loaderType=this._ioctl.loaderType,J.currentSegmentIndex=this._currentSegmentIndex,J.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(be.STATISTICS_INFO,J)}}]),Pe}(),Lt=qe,nn=function(ye){var J="TransmuxingWorker",q=null,Z=fa.bind(this);B.install(),ye.addEventListener("message",function(ae){switch(ae.data.cmd){case"init":q=new Lt(ae.data.param[0],ae.data.param[1]),q.on(be.IO_ERROR,Fe.bind(this)),q.on(be.DEMUX_ERROR,Un.bind(this)),q.on(be.INIT_SEGMENT,oe.bind(this)),q.on(be.MEDIA_SEGMENT,Oe.bind(this)),q.on(be.LOADING_COMPLETE,Re.bind(this)),q.on(be.RECOVERED_EARLY_EOF,ve.bind(this)),q.on(be.MEDIA_INFO,bn.bind(this)),q.on(be.METADATA_ARRIVED,kt.bind(this)),q.on(be.SCRIPTDATA_ARRIVED,at.bind(this)),q.on(be.STATISTICS_INFO,Ht.bind(this)),q.on(be.RECOMMEND_SEEKPOINT,Fa.bind(this));break;case"destroy":q&&(q.destroy(),q=null),ye.postMessage({msg:"destroyed"});break;case"start":q.start();break;case"stop":q.stop();break;case"seek":q.seek(ae.data.param);break;case"pause":q.pause();break;case"resume":q.resume();break;case"logging_config":{var z=ae.data.param;me.applyConfig(z),z.enableCallback===!0?me.addLogListener(Z):me.removeLogListener(Z);break}}});function oe(ae,z){var Y={msg:be.INIT_SEGMENT,data:{type:ae,data:z}};ye.postMessage(Y,[z.data])}function Oe(ae,z){var Y={msg:be.MEDIA_SEGMENT,data:{type:ae,data:z}};ye.postMessage(Y,[z.data])}function Re(){var ae={msg:be.LOADING_COMPLETE};ye.postMessage(ae)}function ve(){var ae={msg:be.RECOVERED_EARLY_EOF};ye.postMessage(ae)}function bn(ae){var z={msg:be.MEDIA_INFO,data:ae};ye.postMessage(z)}function kt(ae){var z={msg:be.METADATA_ARRIVED,data:ae};ye.postMessage(z)}function at(ae){var z={msg:be.SCRIPTDATA_ARRIVED,data:ae};ye.postMessage(z)}function Ht(ae){var z={msg:be.STATISTICS_INFO,data:ae};ye.postMessage(z)}function Fe(ae,z){ye.postMessage({msg:be.IO_ERROR,data:{type:ae,info:z}})}function Un(ae,z){ye.postMessage({msg:be.DEMUX_ERROR,data:{type:ae,info:z}})}function Fa(ae){ye.postMessage({msg:be.RECOMMEND_SEEKPOINT,data:ae})}function fa(ae,z){ye.postMessage({msg:"logcat_callback",data:{type:ae,logcat:z}})}},$n=nn,ta=function(){function Pe(ye,J){if(Object(Q.a)(this,Pe),this.TAG="Transmuxer",this._emitter=new R.a,J.enableWorker&&typeof Worker!="undefined")try{var q=y("0r65");this._worker=q($n),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ye,J]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},me.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:me.getConfig()})}catch(oe){p.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Lt(ye,J)}else this._controller=new Lt(ye,J);if(this._controller){var Z=this._controller;Z.on(be.IO_ERROR,this._onIOError.bind(this)),Z.on(be.DEMUX_ERROR,this._onDemuxError.bind(this)),Z.on(be.INIT_SEGMENT,this._onInitSegment.bind(this)),Z.on(be.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Z.on(be.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Z.on(be.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Z.on(be.MEDIA_INFO,this._onMediaInfo.bind(this)),Z.on(be.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Z.on(be.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Z.on(be.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Z.on(be.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),me.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(J,q){this._emitter.addListener(J,q)}},{key:"off",value:function(J,q){this._emitter.removeListener(J,q)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(J){this._worker?this._worker.postMessage({cmd:"seek",param:J}):this._controller.seek(J)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(J,q){var Z=this;Promise.resolve().then(function(){Z._emitter.emit(be.INIT_SEGMENT,J,q)})}},{key:"_onMediaSegment",value:function(J,q){var Z=this;Promise.resolve().then(function(){Z._emitter.emit(be.MEDIA_SEGMENT,J,q)})}},{key:"_onLoadingComplete",value:function(){var J=this;Promise.resolve().then(function(){J._emitter.emit(be.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var J=this;Promise.resolve().then(function(){J._emitter.emit(be.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(J){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.MEDIA_INFO,J)})}},{key:"_onMetaDataArrived",value:function(J){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.METADATA_ARRIVED,J)})}},{key:"_onScriptDataArrived",value:function(J){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.SCRIPTDATA_ARRIVED,J)})}},{key:"_onStatisticsInfo",value:function(J){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.STATISTICS_INFO,J)})}},{key:"_onIOError",value:function(J,q){var Z=this;Promise.resolve().then(function(){Z._emitter.emit(be.IO_ERROR,J,q)})}},{key:"_onDemuxError",value:function(J,q){var Z=this;Promise.resolve().then(function(){Z._emitter.emit(be.DEMUX_ERROR,J,q)})}},{key:"_onRecommendSeekpoint",value:function(J){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.RECOMMEND_SEEKPOINT,J)})}},{key:"_onLoggingConfigChanged",value:function(J){this._worker&&this._worker.postMessage({cmd:"logging_config",param:J})}},{key:"_onWorkerMessage",value:function(J){var q=J.data,Z=q.data;if(q.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(q.msg){case be.INIT_SEGMENT:case be.MEDIA_SEGMENT:this._emitter.emit(q.msg,Z.type,Z.data);break;case be.LOADING_COMPLETE:case be.RECOVERED_EARLY_EOF:this._emitter.emit(q.msg);break;case be.MEDIA_INFO:Object.setPrototypeOf(Z,Ae.prototype),this._emitter.emit(q.msg,Z);break;case be.METADATA_ARRIVED:case be.SCRIPTDATA_ARRIVED:case be.STATISTICS_INFO:this._emitter.emit(q.msg,Z);break;case be.IO_ERROR:case be.DEMUX_ERROR:this._emitter.emit(q.msg,Z.type,Z.info);break;case be.RECOMMEND_SEEKPOINT:this._emitter.emit(q.msg,Z);break;case"logcat_callback":p.emitter.emit("log",Z.type,Z.logcat);break;default:break}}}]),Pe}(),Sa=ta,_n={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},Bt=_n,mn=function(){function Pe(ye){Object(Q.a)(this,Pe),this.TAG="MSEController",this._config=ye,this._emitter=new R.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Je}return Object(W.a)(Pe,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(J,q){this._emitter.addListener(J,q)}},{key:"off",value:function(J,q){this._emitter.removeListener(J,q)}},{key:"attachMediaElement",value:function(J){if(this._mediaSource)throw new o("MediaSource has been attached to an HTMLMediaElement!");var q=this._mediaSource=new window.MediaSource;q.addEventListener("sourceopen",this.e.onSourceOpen),q.addEventListener("sourceended",this.e.onSourceEnded),q.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=J,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),J.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var J=this._mediaSource;for(var q in this._sourceBuffers){var Z=this._pendingSegments[q];Z.splice(0,Z.length),this._pendingSegments[q]=null,this._pendingRemoveRanges[q]=null,this._lastInitSegments[q]=null;var oe=this._sourceBuffers[q];if(oe){if(J.readyState!=="closed"){try{J.removeSourceBuffer(oe)}catch(Oe){p.e(this.TAG,Oe.message)}oe.removeEventListener("error",this.e.onSourceBufferError),oe.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[q]=null,this._sourceBuffers[q]=null}}if(J.readyState==="open")try{J.endOfStream()}catch(Oe){p.e(this.TAG,Oe.message)}J.removeEventListener("sourceopen",this.e.onSourceOpen),J.removeEventListener("sourceended",this.e.onSourceEnded),J.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(J,q){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(J),this._pendingSegments[J.type].push(J);return}var Z=J,oe="".concat(Z.container);Z.codec&&Z.codec.length>0&&(oe+=";codecs=".concat(Z.codec));var Oe=!1;if(p.v(this.TAG,"Received Initialization Segment, mimeType: "+oe),this._lastInitSegments[Z.type]=Z,oe!==this._mimeTypes[Z.type]){if(this._mimeTypes[Z.type])p.v(this.TAG,"Notice: ".concat(Z.type," mimeType changed, origin: ").concat(this._mimeTypes[Z.type],", target: ").concat(oe));else{Oe=!0;try{var Re=this._sourceBuffers[Z.type]=this._mediaSource.addSourceBuffer(oe);Re.addEventListener("error",this.e.onSourceBufferError),Re.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(ve){p.e(this.TAG,ve.message),this._emitter.emit(Bt.ERROR,{code:ve.code,msg:ve.message});return}}this._mimeTypes[Z.type]=oe}q||this._pendingSegments[Z.type].push(Z),Oe||this._sourceBuffers[Z.type]&&!this._sourceBuffers[Z.type].updating&&this._doAppendSegments(),n.safari&&Z.container==="audio/mpeg"&&Z.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Z.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(J){var q=J;this._pendingSegments[q.type].push(q),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Z=this._sourceBuffers[q.type];Z&&!Z.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(J){for(var q in this._sourceBuffers){if(!this._sourceBuffers[q])continue;var Z=this._sourceBuffers[q];if(this._mediaSource.readyState==="open")try{Z.abort()}catch(kt){p.e(this.TAG,kt.message)}this._idrList.clear();var oe=this._pendingSegments[q];if(oe.splice(0,oe.length),this._mediaSource.readyState==="closed")continue;for(var Oe=0;Oe=1&&J-oe.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var J=this._mediaElement.currentTime;for(var q in this._sourceBuffers){var Z=this._sourceBuffers[q];if(Z){for(var oe=Z.buffered,Oe=!1,Re=0;Re=this._config.autoCleanupMaxBackwardDuration){Oe=!0;var kt=J-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[q].push({start:ve,end:kt})}}else bn0&&(isNaN(q)||Z>q)&&(p.v(this.TAG,"Update MediaSource duration from ".concat(q," to ").concat(Z)),this._mediaSource.duration=Z),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var J in this._pendingRemoveRanges){if(!this._sourceBuffers[J]||this._sourceBuffers[J].updating)continue;for(var q=this._sourceBuffers[J],Z=this._pendingRemoveRanges[J];Z.length&&!q.updating;){var oe=Z.shift();q.remove(oe.start,oe.end)}}}},{key:"_doAppendSegments",value:function(){var J=this._pendingSegments;for(var q in J){if(!this._sourceBuffers[q]||this._sourceBuffers[q].updating)continue;if(J[q].length>0){var Z=J[q].shift();if(Z.timestampOffset){var oe=this._sourceBuffers[q].timestampOffset,Oe=Z.timestampOffset/1e3,Re=Math.abs(oe-Oe);Re>.1&&(p.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(oe," to ").concat(Oe)),this._sourceBuffers[q].timestampOffset=Oe),delete Z.timestampOffset}if(!Z.data||Z.data.byteLength===0)continue;try{this._sourceBuffers[q].appendBuffer(Z.data),this._isBufferFull=!1,q==="video"&&Z.hasOwnProperty("info")&&this._idrList.appendArray(Z.info.syncPoints)}catch(ve){this._pendingSegments[q].unshift(Z),ve.code===22?(this._isBufferFull||this._emitter.emit(Bt.BUFFER_FULL),this._isBufferFull=!0):(p.e(this.TAG,ve.message),this._emitter.emit(Bt.ERROR,{code:ve.code,msg:ve.message}))}}}}},{key:"_onSourceOpen",value:function(){if(p.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var J=this._pendingSourceBufferInit;J.length;){var q=J.shift();this.appendInitSegment(q,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Bt.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){p.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){p.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var J=this._pendingSegments;return J.video.length>0||J.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var J=this._pendingRemoveRanges;return J.video.length>0||J.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Bt.UPDATE_END)}},{key:"_onSourceBufferError",value:function(J){p.e(this.TAG,"SourceBuffer Error: ".concat(J))}}]),Pe}(),Gt=mn,ze={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},ct={NETWORK_EXCEPTION:t.EXCEPTION,NETWORK_STATUS_CODE_INVALID:t.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:t.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:t.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Ct.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ct.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ct.CODEC_UNSUPPORTED},Sn=function(){function Pe(ye,J){if(Object(Q.a)(this,Pe),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new R.a,this._config=le(),typeof J=="object"&&Object.assign(this._config,J),ye.type.toLowerCase()!=="flv")throw new c("FlvPlayer requires an flv MediaDataSource input!");ye.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=ye,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var q=n.chrome&&(n.version.major<50||n.version.major===50&&n.version.build<2661);this._alwaysSeekKeyframe=!!(q||n.msedge||n.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(J,q){var Z=this;J===et.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Z._emitter.emit(et.MEDIA_INFO,Z.mediaInfo)}):J===et.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Z._emitter.emit(et.STATISTICS_INFO,Z.statisticsInfo)})),this._emitter.addListener(J,q)}},{key:"off",value:function(J,q){this._emitter.removeListener(J,q)}},{key:"attachMediaElement",value:function(J){var q=this;if(this._mediaElement=J,J.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),J.addEventListener("seeking",this.e.onvSeeking),J.addEventListener("canplay",this.e.onvCanPlay),J.addEventListener("stalled",this.e.onvStalled),J.addEventListener("progress",this.e.onvProgress),this._msectl=new Gt(this._config),this._msectl.on(Bt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Bt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Bt.SOURCE_OPEN,function(){q._mseSourceOpened=!0,q._hasPendingLoad&&(q._hasPendingLoad=!1,q.load())}),this._msectl.on(Bt.ERROR,function(Z){q._emitter.emit(et.ERROR,ze.MEDIA_ERROR,ct.MEDIA_MSE_ERROR,Z)}),this._msectl.attachMediaElement(J),this._pendingSeekTime!=null)try{J.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Z){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var J=this;if(!this._mediaElement)throw new o("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new o("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Sa(this._mediaDataSource,this._config),this._transmuxer.on(be.INIT_SEGMENT,function(q,Z){J._msectl.appendInitSegment(Z)}),this._transmuxer.on(be.MEDIA_SEGMENT,function(q,Z){if(J._msectl.appendMediaSegment(Z),J._config.lazyLoad&&!J._config.isLive){var oe=J._mediaElement.currentTime;Z.info.endDts>=(oe+J._config.lazyLoadMaxDuration)*1e3&&(J._progressChecker==null&&(p.v(J.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),J._suspendTransmuxer()))}}),this._transmuxer.on(be.LOADING_COMPLETE,function(){J._msectl.endOfStream(),J._emitter.emit(et.LOADING_COMPLETE)}),this._transmuxer.on(be.RECOVERED_EARLY_EOF,function(){J._emitter.emit(et.RECOVERED_EARLY_EOF)}),this._transmuxer.on(be.IO_ERROR,function(q,Z){J._emitter.emit(et.ERROR,ze.NETWORK_ERROR,q,Z)}),this._transmuxer.on(be.DEMUX_ERROR,function(q,Z){J._emitter.emit(et.ERROR,ze.MEDIA_ERROR,q,{code:-1,msg:Z})}),this._transmuxer.on(be.MEDIA_INFO,function(q){J._mediaInfo=q,J._emitter.emit(et.MEDIA_INFO,Object.assign({},q))}),this._transmuxer.on(be.METADATA_ARRIVED,function(q){J._emitter.emit(et.METADATA_ARRIVED,q)}),this._transmuxer.on(be.SCRIPTDATA_ARRIVED,function(q){J._emitter.emit(et.SCRIPTDATA_ARRIVED,q)}),this._transmuxer.on(be.STATISTICS_INFO,function(q){J._statisticsInfo=J._fillStatisticsInfo(q),J._emitter.emit(et.STATISTICS_INFO,Object.assign({},J._statisticsInfo))}),this._transmuxer.on(be.RECOMMEND_SEEKPOINT,function(q){J._mediaElement&&!J._config.accurateSeek&&(J._requestSetTime=!0,J._mediaElement.currentTime=q/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(J){this._mediaElement.volume=J}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(J){this._mediaElement.muted=J}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(J){this._mediaElement?this._internalSeek(J):this._pendingSeekTime=J}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(J){if(J.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return J;var q=!0,Z=0,oe=0;if(this._mediaElement.getVideoPlaybackQuality){var Oe=this._mediaElement.getVideoPlaybackQuality();Z=Oe.totalVideoFrames,oe=Oe.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Z=this._mediaElement.webkitDecodedFrameCount,oe=this._mediaElement.webkitDroppedFrameCount):q=!1;return q&&(J.decodedFrames=Z,J.droppedFrames=oe),J}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var J=this._mediaElement.buffered,q=this._mediaElement.currentTime,Z=0,oe=0,Oe=0;Oe=q+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(p.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){p.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var J=this._mediaElement.currentTime,q=this._mediaElement.buffered,Z=!1,oe=0;oe=Oe&&J=Re-this._config.lazyLoadRecoverDuration&&(Z=!0);break}}Z&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Z&&(p.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(J){for(var q=this._mediaElement.buffered,Z=0;Z=oe&&J0){var Oe=this._mediaElement.buffered.start(0);(Oe<1&&J0&&q.currentTime0){var oe=Z.start(0);if(oe<1&&q0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(J){this._mediaElement.volume=J}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(J){this._mediaElement.muted=J}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(J){this._mediaElement?this._mediaElement.currentTime=J:this._pendingSeekTime=J}},{key:"mediaInfo",get:function(){var J=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",q={mimeType:J+this._mediaDataSource.type};return this._mediaElement&&(q.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(q.width=this._mediaElement.videoWidth,q.height=this._mediaElement.videoHeight)),q}},{key:"statisticsInfo",get:function(){var J={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return J;var q=!0,Z=0,oe=0;if(this._mediaElement.getVideoPlaybackQuality){var Oe=this._mediaElement.getVideoPlaybackQuality();Z=Oe.totalVideoFrames,oe=Oe.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Z=this._mediaElement.webkitDecodedFrameCount,oe=this._mediaElement.webkitDroppedFrameCount):q=!1;return q&&(J.decodedFrames=Z,J.droppedFrames=oe),J}},{key:"_onvLoadedMetadata",value:function(J){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(et.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(et.STATISTICS_INFO,this.statisticsInfo)}}]),Pe}(),qn=Gn;B.install();function Mt(Pe,ye){var J=Pe;if(J==null||typeof J!="object")throw new c("MediaDataSource must be an javascript object!");if(!J.hasOwnProperty("type"))throw new c("MediaDataSource must has type field to indicate video file type!");switch(J.type){case"flv":return new qt(J,ye);default:return new qn(J,ye)}}function Nn(){return Se.supportMSEH264Playback()}function Bn(){return Se.getFeatureList()}var na={};na.createPlayer=Mt,na.isSupported=Nn,na.getFeatureList=Bn,na.BaseLoader=l,na.LoaderStatus=i,na.LoaderErrors=t,na.Events=et,na.ErrorTypes=ze,na.ErrorDetails=ct,na.FlvPlayer=qt,na.NativePlayer=qn,na.LoggingControl=me,Object.defineProperty(na,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ea=re.a=na},Gev7:function(Ge,re,y){var Q=y("bYtY"),W=y("K2GJ"),k=y("1bdT"),B=y("ni6a");function O(M){M=M||{},k.call(this,M);for(var p in M)M.hasOwnProperty(p)&&p!=="style"&&(this[p]=M[p]);this.style=new W(M.style,this),this._rect=null,this.__clipPaths=null}O.prototype={constructor:O,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(M){},afterBrush:function(M){},brush:function(M,p){},getBoundingRect:function(){},contain:function(M,p){return this.rectContain(M,p)},traverse:function(M,p){M.call(p,this)},rectContain:function(M,p){var a=this.transformCoordToLocal(M,p),b=this.getBoundingRect();return b.contain(a[0],a[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(M){return this.animate("style",M)},attrKV:function(M,p){M!=="style"?k.prototype.attrKV.call(this,M,p):this.style.set(p)},setStyle:function(M,p){return this.style.set(M,p),this.dirty(!1),this},useStyle:function(M){return this.style=new W(M,this),this.dirty(!1),this},calculateTextPosition:null},Q.inherits(O,k),Q.mixin(O,B);var R=O;Ge.exports=R},GfqC:function(Ge,re,y){"use strict";var Q=y("q1tI"),W=y.n(Q),k=y("TSYQ"),B=y.n(k);function O(H,N){var A="cannot "+H.method+" "+H.action+" "+N.status+"'",G=new Error(A);return G.status=N.status,G.method=H.method,G.url=H.action,G}function R(H){var N=H.responseText||H.response;if(!N)return N;try{return JSON.parse(N)}catch(A){return N}}function M(H){var N=new XMLHttpRequest;H.onProgress&&N.upload&&(N.upload.onprogress=function($){$.total>0&&($.percent=$.loaded/$.total*100),H.onProgress($)});var A=new FormData;H.data&&Object.keys(H.data).forEach(function(K){var $=H.data[K];if(Array.isArray($)){$.forEach(function(ie){A.append(K+"[]",ie)});return}A.append(K,H.data[K])}),H.file instanceof Blob?A.append(H.filename,H.file,H.file.name):A.append(H.filename,H.file),N.onerror=function($){H.onError($)},N.onload=function(){return N.status<200||N.status>=300?H.onError(O(H,N),R(N)):H.onSuccess(R(N),N)},N.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in N&&(N.withCredentials=!0);var G=H.headers||{};return G["X-Requested-With"]!==null&&N.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(G).forEach(function(K){G[K]!==null&&N.setRequestHeader(K,G[K])}),N.send(A),{abort:function(){N.abort()}}}var p=+new Date,a=0;function b(){return"rc-upload-"+p+"-"+ ++a}function u(H,N){return H.indexOf(N,H.length-N.length)!==-1}var d=function(H,N){if(H&&N){var A=Array.isArray(N)?N:N.split(","),G=H.name||"",K=H.type||"",$=K.replace(/\/.*$/,"");return A.some(function(ie){var le=ie.trim();return le.charAt(0)==="."?u(G.toLowerCase(),le.toLowerCase()):/\/\*$/.test(le)?$===le.replace(/\/.*$/,""):K===le})}return!0};function m(H,N){var A=H.createReader(),G=[];function K(){A.readEntries(function($){var ie=Array.prototype.slice.apply($);G=G.concat(ie);var le=!ie.length;le?N(G):K()})}K()}var o=function(N,A,G){var K=function $(ie,le){le=le||"",ie.isFile?ie.file(function(de){G(de)&&(ie.fullPath&&!de.webkitRelativePath&&(Object.defineProperties(de,{webkitRelativePath:{writable:!0}}),de.webkitRelativePath=ie.fullPath.replace(/^\//,""),Object.defineProperties(de,{webkitRelativePath:{writable:!1}})),A([de]))}):ie.isDirectory&&m(ie,function(de){de.forEach(function(Se){$(Se,""+le+ie.name+"/")})})};N.forEach(function($){K($.webkitGetAsEntry())})},c=o,f=Object.assign||function(H){for(var N=1;N=0)continue;if(!Object.prototype.hasOwnProperty.call(H,G))continue;A[G]=H[G]}return A}function w(H,N){if(!(H instanceof N))throw new TypeError("Cannot call a class as a function")}function D(H,N){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:H}function C(H,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);H.prototype=Object.create(N&&N.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(H,N):H.__proto__=N)}var v=function(N){return Object.keys(N).reduce(function(A,G){return(G.substr(0,5)==="data-"||G.substr(0,5)==="aria-"||G==="role")&&(A[G]=N[G]),A},{})},n=function(H){C(N,H);function N(){var A,G,K,$;w(this,N);for(var ie=arguments.length,le=Array(ie),de=0;de3&&(p=y.call(p,1));for(var b=R.length,u=0;u4&&(p=y.call(p,1,p.length-1));for(var b=p[p.length-1],u=R.length,d=0;dthis._ux||i(D-this._yi)>this._uy||this._len<5;return this.addData(M.L,w,D),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(w,D):this._ctx.lineTo(w,D)),C&&(this._xi=w,this._yi=D),this},bezierCurveTo:function(w,D,C,v,n,_){return this.addData(M.C,w,D,C,v,n,_),this._ctx&&(this._needsDash()?this._dashedBezierTo(w,D,C,v,n,_):this._ctx.bezierCurveTo(w,D,C,v,n,_)),this._xi=n,this._yi=_,this},quadraticCurveTo:function(w,D,C,v){return this.addData(M.Q,w,D,C,v),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(w,D,C,v):this._ctx.quadraticCurveTo(w,D,C,v)),this._xi=C,this._yi=v,this},arc:function(w,D,C,v,n,_){return this.addData(M.A,w,D,C,C,v,n-v,0,_?0:1),this._ctx&&this._ctx.arc(w,D,C,v,n,_),this._xi=o(n)*C+w,this._yi=c(n)*C+D,this},arcTo:function(w,D,C,v,n){return this._ctx&&this._ctx.arcTo(w,D,C,v,n),this},rect:function(w,D,C,v){return this._ctx&&this._ctx.rect(w,D,C,v),this.addData(M.R,w,D,C,v),this},closePath:function(){this.addData(M.Z);var w=this._ctx,D=this._x0,C=this._y0;return w&&(this._needsDash()&&this._dashedLineTo(D,C),w.closePath()),this._xi=D,this._yi=C,this},fill:function(w){w&&w.fill(),this.toStatic()},stroke:function(w){w&&w.stroke(),this.toStatic()},setLineDash:function(w){if(w instanceof Array){this._lineDash=w,this._dashIdx=0;for(var D=0,C=0;CD.length&&(this._expandData(),D=this.data);for(var C=0;C0&&E<=w||x<0&&E>=w||x===0&&(T>0&&U<=D||T<0&&U>=D);){if(H=this._dashIdx,F=n[H],E+=x*F,U+=T*F,this._dashIdx=(H+1)%P,x>0&&Eh||T>0&&Ug)continue;_[H%2?"moveTo":"lineTo"](x>=0?d(E,w):m(E,w),T>=0?d(U,D):m(U,D))}x=E-w,T=U-D,this._dashOffset=-f(x*x+T*T)},_dashedBezierTo:function(w,D,C,v,n,_){var h=this._dashSum,g=this._dashOffset,x=this._lineDash,T=this._ctx,S=this._xi,E=this._yi,U,F,P,H=Q.cubicAt,N=0,A=this._dashIdx,G=x.length,K,$,ie=0;for(g<0&&(g=h+g),g%=h,U=0;U<1;U+=.1)F=H(S,w,C,n,U+.1)-H(S,w,C,n,U),P=H(E,D,v,_,U+.1)-H(E,D,v,_,U),N+=f(F*F+P*P);for(;Ag);A++);for(U=(ie-g)/N;U<=1;)K=H(S,w,C,n,U),$=H(E,D,v,_,U),A%2?T.moveTo(K,$):T.lineTo(K,$),U+=x[A]/N,A=(A+1)%G;A%2!==0&&T.lineTo(n,_),F=n-K,P=_-$,this._dashOffset=-f(F*F+P*P)},_dashedQuadraticTo:function(w,D,C,v){var n=C,_=v;C=(C+2*w)/3,v=(v+2*D)/3,w=(this._xi+2*w)/3,D=(this._yi+2*D)/3,this._dashedBezierTo(w,D,C,v,n,_)},toStatic:function(){var w=this.data;w instanceof Array&&(w.length=this._len,t&&(this.data=new Float32Array(w)))},getBoundingRect:function(){p[0]=p[1]=b[0]=b[1]=Number.MAX_VALUE,a[0]=a[1]=u[0]=u[1]=-Number.MAX_VALUE;for(var w=this.data,D=0,C=0,v=0,n=0,_=0;_x||i(g-_)>T||E===S-1)&&(w.lineTo(h,g),n=h,_=g);break;case M.C:w.bezierCurveTo(D[E++],D[E++],D[E++],D[E++],D[E++],D[E++]),n=D[E-2],_=D[E-1];break;case M.Q:w.quadraticCurveTo(D[E++],D[E++],D[E++],D[E++]),n=D[E-2],_=D[E-1];break;case M.A:var F=D[E++],P=D[E++],H=D[E++],N=D[E++],A=D[E++],G=D[E++],K=D[E++],$=D[E++],ie=H>N?H:N,le=H>N?1:H/N,de=H>N?N/H:1,Se=Math.abs(H-N)>.001,He=A+G;Se?(w.translate(F,P),w.rotate(K),w.scale(le,de),w.arc(0,0,ie,A,He,1-$),w.scale(1/le,1/de),w.rotate(-K),w.translate(-F,-P)):w.arc(F,P,ie,A,He,1-$),E===1&&(C=o(A)*H+F,v=c(A)*N+P),n=o(He)*H+F,_=c(He)*N+P;break;case M.R:C=n=D[E],v=_=D[E+1],w.rect(D[E++],D[E++],D[E++],D[E++]);break;case M.Z:w.closePath(),n=C,_=v}}}},l.CMD=M;var s=l;Ge.exports=s},ItGF:function(Ge,re){var y={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?y={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?y={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?y={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:y=W(navigator.userAgent);var Q=y;function W(k){var B={},O={},R=k.match(/Firefox\/([\d.]+)/),M=k.match(/MSIE\s([\d.]+)/)||k.match(/Trident\/.+?rv:(([\d.]+))/),p=k.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(k);return R&&(O.firefox=!0,O.version=R[1]),M&&(O.ie=!0,O.version=M[1]),p&&(O.edge=!0,O.version=p[1]),a&&(O.weChat=!0),{browser:O,os:B,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!O.ie&&!O.edge,pointerEventsSupported:"onpointerdown"in window&&(O.edge||O.ie&&O.version>=11),domSupported:typeof document!="undefined"}}Ge.exports=Q},JNOM:function(Ge,re,y){"use strict";y.r(re);var Q=y("g9YV"),W=y("wCAj"),k=y("Znn+"),B=y("ZTPi"),O=y("qVdP"),R=y("jsC+"),M=y("+L6B"),p=y("2/Rp"),a=y("sPJy"),b=y("bE4q"),u=y("miYZ"),d=y("tsqr"),m=y("lUTK"),o=y("BvKs"),c=y("9og8"),f=y("2qtc"),i=y("kLXV"),t=y("oBTY"),l=y("k1fw"),s=y("tJVT"),w=y("PpiC"),D=y("WmNS"),C=y.n(D),v=y("q1tI"),n=y.n(v),_=y("ErOA"),h=y("Ty5D"),g=y("55Ip"),x=y("9kvl"),T=y("jhfD"),S=y("Llu2"),E=y("0NbB"),U=y("V0Rq"),F=y("1vsH"),P=y("mgmH"),H=y("7Kak"),N=y("9yH6"),A=y("DjyN"),G=y("NUBc"),K=y("giR+"),$=y("fyUT"),ie=y("5NDa"),le=y("5rEg"),de=y("sRBo"),Se=y("kaz8"),He=y("BoS7"),et=y("Sdc0"),je=y("14J3"),me=y("BMrR"),fe=y("jCWc"),Ae=y("kPKH"),he=y("5Dmo"),Ue=y("3S7+"),st=y("jrin"),Ve=y("y8nQ"),dt=y("Vl3Y"),Qe=y("wd/R"),pe=y.n(Qe),xe=function(Wt){var Rn=Wt.shixunHomeworks,Ra=Wt.dispatch,la=Object(h.i)();return n.a.createElement(i.a,{centered:!0,title:"\u63D0\u793A",visible:Rn.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(c.a)(C.a.mark(function Mn(){var Ca;return C.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:return ma.next=2,Object(_.a)("/api/myshixuns/".concat(Rn.actionTabs.selectArrs.myshixun_identifier,"/reset_my_game.json"),{method:"post",body:{course_id:la.coursesId}});case 2:Ca=ma.sent,Ca.status===0&&(d.b.success("\u5220\u9664\u6210\u529F"),Ra({type:"shixunHomeworks/setActionTabs",payload:{}}),Ra({type:"shixunHomeworks/getWorkList",payload:Object(l.a)({},Rn.actionTabs.params)}));case 4:case"end":return ma.stop()}},Mn)})),onCancel:function(){Ra({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),n.a.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))},Le=Object(x.a)(function(Ln){var Wt=Ln.shixunHomeworks;return{shixunHomeworks:Wt}})(xe),Ye=function(Wt){var Rn,Ra,la,Mn,Ca,Dn,ma,ga,ja=Wt.exercise,Xa=Wt.dispatch,Cn=Object(h.i)(),nr=Object(v.useState)(!0),$e=Object(s.a)(nr,2),vt=$e[0],_t=$e[1],Xe=dt.a.useForm(),Ee=Object(s.a)(Xe,1),Be=Ee[0],Ce=ja.actionTabs;Object(v.useEffect)(function(){if(ja.actionTabs.key==="\u66F4\u6539\u8BC4\u9605"){var Ke,St,it,Pt;Be.resetFields(),Be.setFieldsValue({subjective_score:Ce==null||((Ke=Ce.selectArrs)===null||Ke===void 0||((St=Ke.record)===null||St===void 0))?void 0:St.subjective_score,objective_score:Ce==null||((it=Ce.selectArrs)===null||it===void 0||((Pt=it.record)===null||Pt===void 0))?void 0:Pt.objective_score})}},[ja.actionTabs.key]);var Ze=function(){Xa({type:"exercise/setActionTabs",payload:{}})};return n.a.createElement(n.a.Fragment,null,n.a.createElement(i.a,{centered:!0,title:"\u8BC4\u9605",visible:ja.actionTabs.key==="\u66F4\u6539\u8BC4\u9605",onCancel:Ze,footer:n.a.createElement(me.a,{align:"middle",justify:"end"},n.a.createElement(p.a,{onClick:function(){var St,it;return Object(F.S)("/classrooms/".concat(Cn.coursesId,"/exercise/").concat(Cn.categoryId,"/review/").concat(Ce==null||((St=Ce.selectArrs)===null||St===void 0||((it=St.record)===null||it===void 0))?void 0:it.login))}},"\u67E5\u770B\u8BE6\u60C5"),n.a.createElement(p.a,{className:"ml10",onClick:Ze}," ","\u53D6\u6D88"),n.a.createElement(p.a,{className:"ml10",onClick:Object(c.a)(C.a.mark(function Ke(){var St,it,Pt,an;return C.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,Be.validateFields();case 2:return Pt=Be.getFieldValue(),bt.next=5,Object(U.P)(Object(l.a)(Object(l.a)({},Pt),{},{id:Cn.categoryId,user_id:Ce==null||((St=Ce.selectArrs)===null||St===void 0||((it=St.record)===null||it===void 0))?void 0:it.user_id}));case 5:an=bt.sent,an.status===0&&(d.b.success("\u8BC4\u9605\u6210\u529F"),Be.resetFields(),Xa({type:"exercise/setActionTabs",payload:{}}),Xa({type:"exercise/getExerciseList",payload:Object(l.a)({},ja.actionTabs.params)}));case 7:case"end":return bt.stop()}},Ke)})),type:"primary"}," ","\u786E\u8BA4"))},n.a.createElement("div",{className:"pl30"},n.a.createElement(dt.a,{form:Be},n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement(dt.a.Item,{name:"subjective_score",label:"\u4E3B\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement($.a,{min:0,max:(Ce==null||((Rn=Ce.selectArrs)===null||Rn===void 0||((Ra=Rn.exercise_types)===null||Ra===void 0))?void 0:Ra.subjective_score)*1,style:{width:150},placeholder:"\u8BF7\u586B\u5199\u4E3B\u89C2\u9898\u6210\u7EE9"}))),n.a.createElement(Ae.a,{flex:1},n.a.createElement("div",null,n.a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",Ce==null||((la=Ce.selectArrs)===null||la===void 0||((Mn=la.exercise_types)===null||Mn===void 0))?void 0:Mn.subjective_score,"\u5206")))),n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement(dt.a.Item,{name:"objective_score",label:"\u5BA2\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement($.a,{min:0,max:(Ce==null||((Ca=Ce.selectArrs)===null||Ca===void 0||((Dn=Ca.exercise_types)===null||Dn===void 0))?void 0:Dn.objective_score)*1,style:{width:150},width:150,placeholder:"\u8BF7\u586B\u5199\u5BA2\u89C2\u9898\u6210\u7EE9"}))),n.a.createElement(Ae.a,{flex:1},n.a.createElement("div",null,n.a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",Ce==null||((ma=Ce.selectArrs)===null||ma===void 0||((ga=ma.exercise_types)===null||ga===void 0))?void 0:ga.objective_score,"\u5206"))))))))},gt=Object(x.a)(function(Ln){var Wt=Ln.exercise;return{exercise:Wt}})(Ye),Ct=[{name:"\u672A\u8BC4\u9605",id:0,type:"unreview_counts"},{name:"\u8BC4\u9605\u4E2D",id:2,type:"reviewing_counts"},{name:"\u5DF2\u8BC4\u9605",id:1,type:"review_counts"}],tn=[{name:"\u672A\u5F00\u59CB",id:0,type:"unanswer_users"},{name:"\u8003\u8BD5\u4E2D",id:1,type:"answering_users"},{name:"\u5DF2\u4EA4\u5377",id:2,type:"answer_users"},{name:"\u5DF2\u4EA4\u5377/\u672A\u7B54",id:3,type:"commit_with_no_answers_users"}],Zt=[{name:"\u65E0\u9700\u8865\u8003",id:0,type:"unmake_up_users_count"},{name:"\u53C2\u52A0\u8865\u8003",id:1,type:"make_up_users_count"}],Hn=y("BdwD"),ia=y("iQDF"),mt=y("+eQT"),pt=function(Wt){var Rn,Ra,la=Wt.exercise,Mn=Wt.dispatch,Ca=Object(h.i)(),Dn=Object(v.useState)(!0),ma=Object(s.a)(Dn,2),ga=ma[0],ja=ma[1],Xa=dt.a.useForm(),Cn=Object(s.a)(Xa,1),nr=Cn[0],$e=Object(v.useState)(!1),vt=Object(s.a)($e,2),_t=vt[0],Xe=vt[1],Ee=Object(v.useState)({}),Be=Object(s.a)(Ee,2),Ce=Be[0],Ze=Be[1],Ke=la.actionTabs;Object(v.useEffect)(function(){if(la.actionTabs.key==="\u5EF6\u65F6"){var an,gn,bt,Qn;Xe(!1),nr.resetFields(),nr.setFieldsValue({subjective_score:Ke==null||((an=Ke.selectArrs)===null||an===void 0||((gn=an.record)===null||gn===void 0))?void 0:gn.subjective_score,objective_score:Ke==null||((bt=Ke.selectArrs)===null||bt===void 0||((Qn=bt.record)===null||Qn===void 0))?void 0:Qn.objective_score})}},[la.actionTabs.key]);var St=function(gn){var bt,Qn;return console.log("current:",gn,pe()(Ke==null||((bt=Ke.selectArrs)===null||bt===void 0)?void 0:bt.exercise_end_at).startOf("minute")),gn&&(gn>pe()(Ke==null||((Qn=Ke.selectArrs)===null||Qn===void 0)?void 0:Qn.exercise_end_at).endOf("minute")||gn<=pe()().startOf("day"))};function it(an,gn){for(var bt=[],Qn=an;Qnpe()(Ke==null||((Qn=Ke.selectArrs)===null||Qn===void 0)?void 0:Qn.exercise_end_at)){var wa;nr.setFieldsValue({time:pe()(Ke==null||((wa=Ke.selectArrs)===null||wa===void 0)?void 0:wa.exercise_end_at).format("YYYY-MM-DD HH:mm")})}}})))),n.a.createElement(me.a,{style:{marginLeft:78,marginTop:4}},n.a.createElement(dt.a.Item,{name:"is_clear",className:"ml10",initialValue:!1,valuePropName:"checked"},n.a.createElement(Se.a,null,"\u786E\u8BA4\u6E05\u9664\u8BE5\u5B66\u751F\u7684\u5DF2\u5207\u5C4F\u6B21\u6570")))))))},on=Object(x.a)(function(Ln){var Wt=Ln.exercise;return{exercise:Wt}})(pt),hn=y("kaH+"),Ot=y("dhSg"),Xt=function(Wt){var Rn=Wt.shixunHomeworks,Ra=Wt.dispatch,la=Object(w.a)(Wt,["shixunHomeworks","dispatch"]),Mn=Object(h.i)(),Ca=Object(v.useState)([]),Dn=Object(s.a)(Ca,2),ma=Dn[0],ga=Dn[1],ja=Object(v.useState)([]),Xa=Object(s.a)(ja,2),Cn=Xa[0],nr=Xa[1];Object(v.useEffect)(function(){Rn.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B"&&$e()},[Rn.actionTabs.key]);function $e(){return vt.apply(this,arguments)}function vt(){return vt=Object(c.a)(C.a.mark(function Xe(){var Ee;return C.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,Object(_.a)("/api/exercises/".concat(Mn.categoryId,"/group_list.json"),{method:"GET"});case 2:Ee=Ce.sent,ga(Ee);case 4:case"end":return Ce.stop()}},Xe)})),vt.apply(this,arguments)}var _t=[{title:"\u5206\u73ED\u60C5\u51B5",dataIndex:"name"},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u68C0\u6D4B\u8FDB\u5EA6",dataIndex:"status"},{title:"\u4E0A\u6B21\u8BC4\u5206\u65F6\u95F4",dataIndex:"last_analysis_time"}];return n.a.createElement(n.a.Fragment,null,n.a.createElement(i.a,{centered:!0,title:"\u4EE3\u7801\u8D28\u91CF\u8BC4\u5206",visible:Rn.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B",width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(c.a)(C.a.mark(function Xe(){var Ee;return C.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,Object(_.a)("/api/exercises/".concat(Mn.categoryId,"/code_quality_analysis.json"),{method:"POST",body:{group_ids:Cn}});case 2:Ee=Ce.sent,(Ee==null?void 0:Ee.status)===0&&(x.d.replace("/classrooms/".concat(Mn.coursesId,"/exercise/").concat(Mn.categoryId,"/detail?tabs=7")),window.location.reload(),Ra({type:"shixunHomeworks/setActionTabs",payload:{}}),nr([]));case 4:case"end":return Ce.stop()}},Xe)})),onCancel:function(){nr([]),Ra({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement(W.a,{rowSelection:{type:"checkbox",onChange:function(Ee,Be){nr(Object(t.a)(Ee))},selectedRowKeys:Cn,getCheckboxProps:function(Ee){return{disabled:Ee.status==="\u8FDB\u884C\u4E2D"||Ee.works_count===0}}},rowKey:function(Ee){return Ee.key||Ee.id},scroll:{y:300},pagination:!1,columns:_t,dataSource:ma==null?void 0:ma.group_list})))},ht=Object(x.a)(function(Ln){var Wt=Ln.shixunHomeworks;return{shixunHomeworks:Wt}})(Xt),Je=y("xKgJ"),rt=y("hjlX"),Te=y.n(rt),Me=function(Wt){var Rn=Wt.item,Ra=Wt.renderText,la=Object(h.i)(),Mn=Object(v.useState)(),Ca=Object(s.a)(Mn,2),Dn=Ca[0],ma=Ca[1],ga=function(){var ja=Object(c.a)(C.a.mark(function Xa(Cn){var nr;return C.a.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(Cn){vt.next=2;break}return vt.abrupt("return");case 2:return vt.next=4,Object(U.C)({id:la.categoryId,user_id:Rn==null?void 0:Rn.user_id});case 4:nr=vt.sent,nr&&ma(nr);case 6:case"end":return vt.stop()}},Xa)}));return function(Cn){return ja.apply(this,arguments)}}();return n.a.createElement(Ue.a,{onVisibleChange:function(Xa){return ga(Xa)},title:n.a.createElement("div",null,"\u5355\u9009\u9898 ",Dn==null?void 0:Dn.single_question_score,"\u5206 ",n.a.createElement("br",null),"\u591A\u9009\u9898 ",Dn==null?void 0:Dn.multiple_question_score,"\u5206 ",n.a.createElement("br",null),"\u5224\u65AD\u9898 ",Dn==null?void 0:Dn.judgement_question_score,"\u5206 ",n.a.createElement("br",null),"\u586B\u7A7A\u9898 ",Dn==null?void 0:Dn.completion_question_score,"\u5206 ",n.a.createElement("br",null),"\u5B9E\u8BAD\u9898 ",Dn==null?void 0:Dn.shixun_question_score,"\u5206")},Ra)},Ie=Me,be=function(Wt){var Rn,Ra,la,Mn,Ca,Dn,ma,ga,ja,Xa,Cn,nr,$e,vt,_t,Xe,Ee,Be,Ce,Ze,Ke,St,it,Pt,an,gn,bt,Qn,wa,tr,Ya,ar,Ar,hr,sr,va,_a=Wt.exercise,ur=Wt.loading,Ba=Wt.dispatch,oa=Wt.globalSetting,Ua=Wt.checkDomainAuthority,Er=Wt.getparams,Ka=Object(w.a)(Wt,["exercise","loading","dispatch","globalSetting","checkDomainAuthority","getparams"]),yt=Object(h.h)(),qa=Object(h.i)(),Lr=Object(v.useState)(Object(l.a)({},qa)),_r=Object(s.a)(Lr,2),Tt=_r[0],pr=_r[1],Yn=_a.exerciseList,vr=_a.commonHeader,wr=Object(v.useState)({}),Xr=Object(s.a)(wr,2),ai=Xr[0],$r=Xr[1],ei=Object(v.useState)(""),Or=Object(s.a)(ei,2),za=Or[0],La=Or[1],sa=Object(v.useState)(0),In=Object(s.a)(sa,2),cr=In[0],dr=In[1],ka=Object(v.useState)({}),kr=Object(s.a)(ka,2),Yr=kr[0],jr=kr[1],rr=Object(v.useState)(!1),Rr=Object(s.a)(rr,2),ti=Rr[0],ri=Rr[1],hi=Object(v.useState)("alert"),pi=Object(s.a)(hi,2),mi=pi[0],Ei=pi[1],ao=Object(v.useState)(0),_o=Object(s.a)(ao,2),So=_o[0],$i=_o[1],eo=Object(v.useState)(!1),ro=Object(s.a)(eo,2),io=ro[0],Yi=ro[1],bo=Object(v.useState)(!1),co=Object(s.a)(bo,2),oo=co[0],zi=co[1],Xi=dt.a.useForm(),gi=Object(s.a)(Xi,1),yi=gi[0],Br=Object(v.useState)([]),Nr=Object(s.a)(Br,2),Fr=Nr[0],ii=Nr[1],ui=Object(v.useState)(!0),Ai=Object(s.a)(ui,2),fi=Ai[0],Qi=Ai[1],Eo=Object(v.useRef)(),Po=Object(v.useState)(1),fo=Object(s.a)(Po,2),Mi=fo[0],ho=fo[1],Io=Object(v.useState)(""),Oo=Object(s.a)(Io,2),Di=Oo[0],si=Oo[1],Oi=Object(v.useState)(),vi=Object(s.a)(Oi,2),Ri=vi[0],Ro=vi[1],Wi=Object(v.useState)(!1),To=Object(s.a)(Wi,2),Do=To[0],po=To[1];Object(v.useEffect)(function(){var $a;if(Object(Je.c)()){var Da;dr((Da=Yn.exercise_types)===null||Da===void 0?void 0:Da.total_users)}else if(Yn!=null&&($a=Yn.exercise_types)!==null&&$a!==void 0&&$a.score_open){var Pa;dr((Pa=Yn.exercise_types)===null||Pa===void 0?void 0:Pa.unanswer_users)}},[Yn]),Object(v.useEffect)(function(){var $a,Da={};if(yt!=null&&($a=yt.query)!==null&&$a!==void 0&&$a.exercise_group_id){var Pa;if(Da={review:[0,2],commit_status:[2,3]},(yt==null||((Pa=yt.query)===null||Pa===void 0)?void 0:Pa.exercise_group_id)!=="0"){var Pr;Da.exercise_group_id=[Number(yt==null||((Pr=yt.query)===null||Pr===void 0)?void 0:Pr.exercise_group_id)]}yi.setFieldsValue(Object(l.a)({},Da))}Tt=Object(l.a)(Object(l.a)({},Tt),Da),pr(Object(l.a)({},Tt)),Ba({type:"exercise/getExerciseList",payload:Tt}),Ba({type:"exercise/clearData",payload:{key:"reviewExercise"}})},[]);function so($a){return yo.apply(this,arguments)}function yo(){return yo=Object(c.a)(C.a.mark(function $a(Da){var Pa,Pr,li,wi,oi;return C.a.wrap(function(Pi){for(;;)switch(Pi.prev=Pi.next){case 0:return Ro(Da==null?void 0:Da.exercise_user_id),po(Da.commit_status===2||Da.commit_status===3),Yi(!0),Pi.next=5,Object(_.a)("/api/exercises/".concat(Tt.categoryId,"/student_info.json"),{method:"get",params:{exercise_user_id:Da==null?void 0:Da.exercise_user_id}});case 5:oi=Pi.sent,(oi==null||((Pa=oi.data)===null||Pa===void 0||((Pr=Pa.exercise_user_photos)===null||Pr===void 0))?void 0:Pr.length)>0?ri(!0):d.b.info("\u5F53\u524D\u6682\u65E0\u7167\u7247"),ii(oi==null||((li=oi.data)===null||li===void 0)?void 0:li.exercise_user_photos),$i(oi==null||((wi=oi.data)===null||wi===void 0)?void 0:wi.alert_count),Yi(!1);case 10:case"end":return Pi.stop()}},$a)})),yo.apply(this,arguments)}var Ao=function(Da){Tt.page=1;var Pa=Object.assign({},yi.getFieldValue());if(Object.keys(Pa).map(function(Pr){if(Pr==="objective_score_gte"||Pr==="objective_score_lte")return;Pa[Pr].includes("all")?(delete Tt[Pr],yi.setFieldsValue(Object(st.a)({},Pr,"all"))):(Tt[Pr]=Pa[Pr],Pa[Pr]==""||!Pa[Pr]?yi.setFieldsValue(Object(st.a)({},Pr,"all")):yi.setFieldsValue(Object(st.a)({},Pr,Tt[Pr])))}),Da.objective_score_gte||Da.objective_score_lte){if(Pa.objective_score_gte>Pa.objective_score_lte)return yi.setFieldsValue({objective_score_lte:Pa.objective_score_gte}),!1;if(Pa.objective_score_gte!=""&&Pa.objective_score_lte!=""&&Pa.objective_score_gte&&Pa.objective_score_lte)Tt.objective_score_lte=Pa.objective_score_lte,Tt.objective_score_gte=Pa.objective_score_gte;else return delete Tt.objective_score_lte,delete Tt.objective_score_gte,!1}pr(Object(l.a)({},Tt)),Er(Object(l.a)({},Tt)),Ba({type:"exercise/getExerciseList",payload:Tt})},No=function(Da,Pa){Tt.page=Da,Tt.limit=20,Ba({type:"exercise/getExerciseList",payload:Object(l.a)({},Tt)})},Ui=[{title:"\u5E8F\u53F7",dataIndex:"name",fixed:"left",width:80,align:"center",render:function(Da,Pa,Pr){return n.a.createElement(Ue.a,{title:((Tt.page||1)-1)*20+Pr+1},n.a.createElement("span",null,((Tt.page||1)-1)*20+Pr+1))}},{title:"\u59D3\u540D",dataIndex:"user_name",fixed:"left",width:120,ellipsis:!0,align:"left",render:function(Da,Pa){return n.a.createElement("div",null,Da||"--",!!(Pa!=null&&Pa.delayed_at)&&n.a.createElement(Ue.a,{title:n.a.createElement("div",null,"\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u8C03\u6574\u81F3",n.a.createElement("span",{className:"ml5"},pe()(Pa.delayed_at).format("YYYY-MM-DD HH:mm")))},n.a.createElement("span",{className:"iconfont icon-shizhong c-blue"})))}},!(Yn!=null&&(Rn=Yn.exercise_types)!==null&&Rn!==void 0&&Rn.is_excellent)&&{title:"\u5B66\u53F7",ellipsis:!0,dataIndex:"student_id",width:140,align:"left",sorter:!0,render:function(Da){return Da||"--"}},!(Yn!=null&&(Ra=Yn.exercise_types)!==null&&Ra!==void 0&&Ra.is_excellent)&&(Yn==null||((la=Yn.exercise_types)===null||la===void 0)?void 0:la.groups_count)!==0&&{title:"\u5206\u73ED",width:220,ellipsis:!0,dataIndex:"user_group_name",align:"left",render:function(Da){return Da||"--"}},{title:"\u6700\u7EC8\u6210\u7EE9",width:100,dataIndex:"score",align:"center",sorter:!0,render:function(Da,Pa){return!Pa.open_total_score&&Object(Je.s)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(Da=typeof Da=="number"?Number(Da):Da,Da===100?n.a.createElement("span",{className:"c-green"},Da||"--"):Da>60?n.a.createElement("span",{className:"c-orange"},Da||"--"):n.a.createElement("span",null,Da||"--"))}},!((Yn==null||((Mn=Yn.exercise_types)===null||Mn===void 0)?void 0:Mn.objective)!==1||(Yn==null||((Ca=Yn.exercise_types)===null||Ca===void 0)?void 0:Ca.objective)===1&&(Yn==null||((Dn=Yn.exercise_types)===null||Dn===void 0)?void 0:Dn.subjective)!==1)&&{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",align:"center",width:100,render:function(Da,Pa){if(!Pa.open_total_score&&Object(Je.s)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";Da=typeof Da=="number"?Number(Da):Da;var Pr;return Da>=0&&Da<=60?Pr=n.a.createElement("span",null,Da):Da===100?Pr=n.a.createElement("span",{className:"c-green"},Da):Da>60?Pr=n.a.createElement("span",{className:"c-orange"},Da):Pr="--",n.a.createElement(Ie,{renderText:Pr,item:Pa})}},!((Yn==null||((ma=Yn.exercise_types)===null||ma===void 0)?void 0:ma.subjective)!==1||(Yn==null||((ga=Yn.exercise_types)===null||ga===void 0)?void 0:ga.subjective)===1&&(Yn==null||((ja=Yn.exercise_types)===null||ja===void 0)?void 0:ja.objective)!==1)&&{title:"\u4E3B\u89C2\u9898\u5F97\u5206",width:100,dataIndex:"subjective_score",align:"center",render:function(Da,Pa){if(!Pa.open_total_score&&Object(Je.s)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";Da=typeof Da=="number"?Number(Da):Da;var Pr;return Da===0?Pr=n.a.createElement("span",null,Da," ",n.a.createElement("span",{className:"c-red"}," (\u5F85\u8BC4\u5BA1)")):Da>0&&Da<=60?Pr=n.a.createElement("span",null,Da):Da===100?Pr=n.a.createElement("span",{className:"c-green"},Da):Da>60?Pr=n.a.createElement("span",{className:"c-orange"},Da):Pr="--",Pr}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",width:130,align:"left",render:function(Da,Pa){return Da===0?n.a.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Da===1?n.a.createElement("span",{style:{color:"#DF3042"}},!Pa.is_make_up&&"\u8003\u8BD5\u4E2D",Pa.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Da===2?n.a.createElement("span",{style:{color:"#5AB891"}},!Pa.is_make_up&&"\u5DF2\u4EA4\u5377",Pa.is_make_up&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)"):n.a.createElement("span",{style:{color:"#5AB891"}},!Pa.is_make_up&&"\u5DF2\u4EA4\u5377\uFF08\u672A\u7B54\uFF09",Pa.is_make_up&&"\u5DF2\u4EA4\u5377/\u672A\u7B54\uFF08\u8865\u8003\uFF09")}},{title:"\u5F00\u59CB\u7B54\u9898\u65F6\u95F4",dataIndex:"start_at",width:145,ellipsis:!0,align:"left",sorter:!0,render:function(Da){return Da?pe()(Da).format("YYYY-MM-DD HH:mm"):"--"}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",width:145,ellipsis:!0,align:"left",sorter:!0,render:function(Da){return Da?pe()(Da).format("YYYY-MM-DD HH:mm"):"--"}},(vr==null?void 0:vr.screen_open)&&{title:n.a.createElement("span",null,"\u5207\u5C4F\u6B21\u6570"," ",n.a.createElement(Ue.a,{title:"\u7EA2\u8272\u4EE3\u8868\u5B66\u751F\u5207\u5C4F\u8D85\u8FC7\u89C4\u5B9A\u6B21\u6570\u88AB\u5F3A\u5236\u4EA4\u5377"},n.a.createElement("span",{className:"icon-xiaowenhao"}))),dataIndex:"screen_used_num",width:145,ellipsis:!0,align:"center",render:function(Da,Pa){return n.a.createElement("span",{className:Da>(Pa==null?void 0:Pa.screen_total_num)&&"c-red"},Da,"/",Pa==null?void 0:Pa.screen_total_num)}},(vr==null?void 0:vr.exercise_status)>1&&(vr==null?void 0:vr.open_camera)&&Object(Je.c)()&&!((Xa=oa.setting)!==null&&Xa!==void 0&&Xa.is_local)&&{title:"\u8003\u8BD5\u7167\u7247",dataIndex:"photo_count",align:"center",width:100,render:function(Da,Pa){return Pa.commit_status>0?n.a.createElement("a",{onClick:function(){so(Pa)}},"".concat(Da||0,"/").concat(vr==null?void 0:vr.photo_count)):"--"}},(vr==null?void 0:vr.ip_bind)&&Object(Je.d)()&&{title:"\u8003\u8BD5IP",dataIndex:"last_ip",align:"center",width:100,render:function(Da,Pa){return n.a.createElement(n.a.Fragment,null,Da||"--",Pa.commit_status<=1&&vr.ip_bind&&Pa.last_ip&&n.a.createElement(p.a,{type:"link",onClick:Object(c.a)(C.a.mark(function Pr(){var li;return C.a.wrap(function(oi){for(;;)switch(oi.prev=oi.next){case 0:li=i.a.confirm({title:n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"1"},"\u89E3\u9664\u7ED1\u5B9A"),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return li.destroy()}}))),width:500,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",className:"custom-modal-divider",content:n.a.createElement("div",null,"\u4E3A\u5B66\u751F\u89E3\u9664\u8003\u8BD5IP\u7ED1\u5B9A\u540E\uFF0C\u5B66\u751F\u53EF\u4EE5\u4F7F\u7528\u65B0\u7684IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002",n.a.createElement("span",{className:"c-red"},"\u5982\u679C\u8BE5\u5B66\u751F\u6B63\u5728\u8003\u8BD5\u4E2D\uFF0C\u5C06\u65E0\u6CD5\u4F5C\u7B54\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u5165\u8003\u8BD5\u3002"),"\u60A8\u786E\u5B9A\u8981\u89E3\u9664\u8BE5\u5B66\u751F\u7684\u8003\u8BD5IP\u7ED1\u5B9A\uFF1F"),onOk:function(){var ci=Object(c.a)(C.a.mark(function ki(){var Fi;return C.a.wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:return Jr.next=2,Object(U.bb)({id:Tt.categoryId,exercise_user_id:Pa.exercise_user_id});case 2:Fi=Jr.sent,Fi.status===0&&(d.b.success("\u89E3\u7ED1\u6210\u529F"),Ba({type:"exercise/getExerciseList",payload:Tt}));case 4:case"end":return Jr.stop()}},ki)}));function Pi(){return ci.apply(this,arguments)}return Pi}()});case 1:case"end":return oi.stop()}},Pr)}))},"\u89E3\u7ED1"))}},(vr==null?void 0:vr.open_camera)&&Object(Je.d)()&&vr.exercise_status<3&&!((Cn=oa.setting)!==null&&Cn!==void 0&&Cn.is_local)&&{title:"\u5141\u8BB8\u4E0D\u62CD\u6444",dataIndex:"close_camera",align:"center",width:100,render:function(Da,Pa){return n.a.createElement(et.a,{checked:Da,onClick:Object(c.a)(C.a.mark(function Pr(){return C.a.wrap(function(wi){for(;;)switch(wi.prev=wi.next){case 0:Da?i.a.info({title:"\u63D0\u793A",content:n.a.createElement("div",null,"\u4E0D\u5141\u8BB8\u4FEE\u6539"),okText:"\u786E\u8BA4"}):i.a.confirm({title:"\u5141\u8BB8\u4E0D\u6444\u50CF\u8B66\u544A",content:n.a.createElement("div",null,"\u4E3A\u4FDD\u8BC1\u8003\u8BD5\u516C\u5E73\uFF0C\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7684\u6444\u50CF\u5934\u3002\u5982\u5B66\u751F\u786C\u4EF6\u8BBE\u65BD\u786E\u6709\u95EE\u9898\uFF0C\u4E3A\u4FDD\u8BC1\u5B66\u751F\u8003\u8BD5\u6743\u5229\uFF0C\u6559\u5E08\u53EF\u4E34\u65F6\u53D6\u6D88\u9650\u5236\uFF0C\u5141\u8BB8\u5B66\u751F\u53C2\u8003\u3002 \u672C\u64CD\u4F5C\u4E0D\u53EF\u64A4\u56DE\uFF0C\u4E0D\u53EF\u4FEE\u6539\u3002 \u60A8\u786E\u8BA4\u540C\u610F\u8BE5\u5B66\u751F\u4E0D\u5F00\u542F\u6444\u50CF\u5934\u53C2\u52A0\u8003\u8BD5\u5417\uFF1F"),onOk:function(){var oi=Object(c.a)(C.a.mark(function Pi(){var ki;return C.a.wrap(function(xi){for(;;)switch(xi.prev=xi.next){case 0:return xi.next=2,Object(U.c)(Object(l.a)(Object(l.a)({},Tt),{},{exercise_user_id:Pa.exercise_user_id}));case 2:ki=xi.sent,(ki==null?void 0:ki.status)===0&&(d.b.success("\u64CD\u4F5C\u6210\u529F"),Ba({type:"exercise/getExerciseList",payload:Object(l.a)({},Tt)}));case 4:case"end":return xi.stop()}},Pi)}));function ci(){return oi.apply(this,arguments)}return ci}()});case 1:case"end":return wi.stop()}},Pr)}))})}},Object(Je.c)()&&{title:"\u8BC4\u9605\u72B6\u6001",width:130,dataIndex:"has_comment",align:"center",render:function(Da,Pa){return!Da&&Pa.review_status?"\u8BC4\u9605\u4E2D":Da?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},((vr==null?void 0:vr.assistant_auth)||Object(Je.c)()||Object(Je.s)())&&Ua&&{title:"\u64CD\u4F5C",fixed:"right",dataInex:"action",align:"center",width:236,render:function(Da,Pa){return n.a.createElement("div",null,Object(Je.c)()&&n.a.createElement(p.a,{ghost:!0,type:"primary",size:"small",disabled:Pa.commit_status<2},n.a.createElement("a",{className:Pa.commit_status>1?"c-blue":"c-black",href:Pa.commit_status>1?"/classrooms/".concat(Tt.coursesId,"/exercise/").concat(Tt.categoryId,"/review/").concat(Pa.login):void 0,onClick:function(li){Pa.commit_status<2&&li.preventDefault(),Pa.commit_status===3&&(li.preventDefault(),Ba({type:"exercise/setActionTabs",payload:{key:"\u66F4\u6539\u8BC4\u9605",selectArrs:{record:Object(l.a)({},Pa),exercise_types:Object(l.a)({},Yn==null?void 0:Yn.exercise_types)},params:Object(l.a)({},Tt)}}))}},Pa.has_comment&&"\u66F4\u6539\u8BC4\u9605",!Pa.has_comment&&"\u8BC4\u9605")),!Object(Je.s)()&&["\u8003\u8BD5\u4E2D"].includes(F.c[vr.exercise_status])&&n.a.createElement(p.a,{ghost:!0,type:"primary",disabled:(Pa==null?void 0:Pa.commit_status)>1,className:"ml10",size:"small",onClick:function(){i.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u5C06\u8BE5\u5B66\u751F\u7684\u8003\u8BD5\u72B6\u6001\u8C03\u6574\u4E3A\u5DF2\u4EA4\u5377\u5417\uFF1F",onOk:function(){i.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u5C06".concat(Pa==null?void 0:Pa.user_name,"\u7684\u8003\u8BD5\u72B6\u6001\u8C03\u6574\u4E3A\u5DF2\u4EA4\u5377\u5417\uFF1F"),onOk:function(){var wi=Object(c.a)(C.a.mark(function ci(){var Pi;return C.a.wrap(function(Fi){for(;;)switch(Fi.prev=Fi.next){case 0:return Fi.next=2,Object(_.a)("/api/exercises/".concat(Tt.categoryId,"/commit_exercise_force.json"),{method:"post",body:{user_id:Pa==null?void 0:Pa.user_id}});case 2:Pi=Fi.sent,Pi.status===0&&Ba({type:"exercise/getExerciseList",payload:Tt});case 4:case"end":return Fi.stop()}},ci)}));function oi(){return wi.apply(this,arguments)}return oi}()})}})}},"\u5F3A\u5236\u4EA4\u5377"),Object(Je.s)()&&Pa.commit_status>1&&n.a.createElement("span",{style:{color:"#0152d9",marginRight:"5px",cursor:"pointer"},onClick:function(){var li;if(!(Yn!=null&&(li=Yn.exercise_types)!==null&&li!==void 0&&li.answered_open)){d.b.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}x.d.push("/classrooms/".concat(Tt.coursesId,"/exercise/").concat(Tt.categoryId,"/users/").concat(Pa==null?void 0:Pa.login,"?check=true"))}},"\u67E5\u770B"),(vr==null?void 0:vr.exercise_time)>0&&Object(Je.d)()&&n.a.createElement(Ue.a,{title:function(){return Object(Je.k)()?"\u60A8\u7684\u6743\u9650\u4E0D\u8DB3\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u7BA1\u7406\u5458":vr.exercise_status===3?"\u672C\u8BD5\u5377\u5DF2\u622A\u6B62\uFF0C\u8BF7\u5148\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u4F7F\u672C\u8BD5\u5377\u5904\u4E8E\u201C\u8003\u8BD5\u4E2D\u201D":!1}()},n.a.createElement(p.a,{danger:!0,className:"c-red ml10",size:"small",disabled:function(){return Object(Je.k)()?!0:vr.exercise_status===3}(),onClick:function(){Object(Je.i)()&&Ba({type:"exercise/setActionTabs",payload:{key:"\u5EF6\u65F6",selectArrs:Pa,exercise_time:vr.exercise_time,params:Object(l.a)({},Tt)}})}},"\u5EF6\u65F6")))}}].filter(function($a){return!!$a}),Kr=Object(t.a)(Ui);return Kr[0]=Object(l.a)({},Kr[0]),Kr[(Kr==null?void 0:Kr.length)-1]=Object(l.a)({},Kr[(Kr==null?void 0:Kr.length)-1]),Kr[0].render=function(){return"\u6211"},Kr[(Kr==null?void 0:Kr.length)-1].render=function(){var $a;return Yn!=null&&($a=Yn.current_answer_user)!==null&&$a!==void 0&&$a.login?n.a.createElement("span",{style:{color:"#0152d9",marginRight:"5px",cursor:"pointer"},onClick:function(){var Pa,Pr,li;if(!(Yn!=null&&(Pa=Yn.exercise_types)!==null&&Pa!==void 0&&Pa.answered_open)){d.b.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}var wi="/classrooms/".concat(Tt.coursesId,"/exercise/").concat(Tt.categoryId,"/users/").concat(Yn==null||((Pr=Yn.current_answer_user)===null||Pr===void 0)?void 0:Pr.login);(Yn==null||((li=Yn.current_answer_user)===null||li===void 0)?void 0:li.commit_status)>1&&(wi=wi+"?check=true"),x.d.push(wi)}},"\u67E5\u770B"):"--"},n.a.createElement("section",{className:"minH500 bg-white mb50 inline-block w100"},(Yn==null||((nr=Yn.exercise_types)===null||nr===void 0)?void 0:nr.score_open)&&Object(Je.s)()&&n.a.createElement(W.a,{hideOnSinglePage:!0,pagination:!1,showHeader:!1,dataSource:[Object(l.a)({},Yn==null?void 0:Yn.current_answer_user)],columns:Kr,scroll:{x:(Ui==null?void 0:Ui.length)*120}}),!Object(Je.c)()&&n.a.createElement("div",{className:"bg-white pt10 pl25 mt15"},!!(Yn!=null&&($e=Yn.exercise_types)!==null&&$e!==void 0&&$e.answer_users)&&n.a.createElement("span",{className:"mr10"},n.a.createElement("span",{style:{color:"#FF954C"}},Yn==null||((vt=Yn.exercise_types)===null||vt===void 0)?void 0:vt.answer_users," "),"\u5DF2\u4EA4"),!!(Yn!=null&&(_t=Yn.exercise_types)!==null&&_t!==void 0&&_t.unanswer_users)&&n.a.createElement("span",{className:"mr10"},Yn==null||((Xe=Yn.exercise_types)===null||Xe===void 0)?void 0:Xe.unanswer_users,"\u672A\u4EA4"),(Yn==null||((Ee=Yn.exercise_types)===null||Ee===void 0)?void 0:Ee.exercise_end_time)!=="--"&&n.a.createElement("span",null,"\u5269\u4F59\u63D0\u4EA4\u65F6\u95F4\uFF1A",n.a.createElement("span",{style:{color:"#FF954C"}},Yn==null||((Be=Yn.exercise_types)===null||Be===void 0)?void 0:Be.exercise_end_time))),!((Ce=Yn.exercise_types)!==null&&Ce!==void 0&&Ce.exercise_all_users)&&!Object(Je.s)()&&n.a.createElement(Hn.a,null),(!!((Ze=Yn.exercise_types)!==null&&Ze!==void 0&&Ze.exercise_all_users)||Object(Je.s)())&&n.a.createElement("aside",null,Object(Je.c)()&&n.a.createElement("aside",{className:"pt20"},n.a.createElement(dt.a,{form:yi,onValuesChange:Ao,initialValues:(Ke={},Object(st.a)(Ke,"commit_status","all"),Object(st.a)(Ke,"exercise_group_id","all"),Object(st.a)(Ke,"review","all"),Object(st.a)(Ke,"is_make_up","all"),Ke)},n.a.createElement(dt.a.Item,{name:"exercise_group_id"},n.a.createElement(Se.a.Group,{style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"80px"},"\u9009\u62E9\u73ED\u7EA7:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all",checked:!((St=ai.course_group)!==null&&St!==void 0&&St.length)},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1"},Yn.course_groups&&Yn.course_groups.map(function($a,Da){return n.a.createElement(Se.a,{value:$a.exercise_group_id,className:"ml0 mr8",key:$a.exercise_group_id},$a.exercise_group_name,"(",$a.exercise_group_students,")")}))))),n.a.createElement(dt.a.Item,{name:"commit_status"},n.a.createElement(Se.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"80px"},"\u63D0\u4EA4\u72B6\u6001:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all",checked:!((it=ai.commit_status)!==null&&it!==void 0&&it.length)},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1"},tn.map(function($a,Da){var Pa;return n.a.createElement(Se.a,{name:"commit_status",value:$a.id,key:$a.id},$a.name,"(",Yn==null||((Pa=Yn.exercise_types)===null||Pa===void 0)?void 0:Pa[$a.type],")")}))))),n.a.createElement(dt.a.Item,{name:"review"},n.a.createElement(Se.a.Group,{style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"80px"},"\u8BC4\u9605\u72B6\u6001:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all",checked:!((Pt=ai.review)!==null&&Pt!==void 0&&Pt.length)},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1"},Ct==null?void 0:Ct.map(function($a,Da){var Pa;return n.a.createElement(Se.a,{value:$a.id,key:Da},$a.name,"(",Yn==null||((Pa=Yn.exercise_types)===null||Pa===void 0)?void 0:Pa[$a.type],")")}))))),(Yn==null||((an=Yn.exercise_types)===null||an===void 0)?void 0:an.open_make_up)&&n.a.createElement(dt.a.Item,{name:"is_make_up"},n.a.createElement(Se.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"80px"},"\u8865\u8003\u72B6\u6001:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all",checked:!((gn=ai.is_make_up)!==null&&gn!==void 0&&gn.length)},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1"},Zt.map(function($a,Da){var Pa;return n.a.createElement(Se.a,{name:"is_make_up",value:$a.id},$a.name,"(",Yn==null||((Pa=Yn.exercise_types)===null||Pa===void 0)?void 0:Pa[$a.type],")")}))))),n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,{flex:"1"},n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,null,n.a.createElement(le.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(Da){Tt.search=Da,Ba({type:"exercise/getExerciseList",payload:Object(l.a)(Object(l.a)({},Tt),{},{page:1})})},style:{width:240}})))),!(vr!=null&&vr.is_random)&&n.a.createElement(Ae.a,{className:["tr",Te.a.rightFilter].join(" ")},((bt=Yn.exercise_types)===null||bt===void 0?void 0:bt.objective)===1&&((Qn=Yn.exercise_types)===null||Qn===void 0?void 0:Qn.subjective)===1&&n.a.createElement(n.a.Fragment,null,"\u6309\u5BA2\u89C2\u9898\u5F97\u5206\u5206\u7EC4",n.a.createElement("span",null,n.a.createElement(dt.a.Item,{name:"objective_score_gte"},n.a.createElement($.a,{min:0,max:Yn==null||((wa=Yn.exercise_types)===null||wa===void 0)?void 0:wa.objective_score,placeholder:"\u6700\u4F4E"}))),n.a.createElement("span",null,n.a.createElement(dt.a.Item,{name:"objective_score_lte"},n.a.createElement($.a,{min:((tr=Tt)===null||tr===void 0?void 0:tr.objective_score_gte)||0,max:Yn==null||((Ya=Yn.exercise_types)===null||Ya===void 0)?void 0:Ya.objective_score,placeholder:"\u6700\u9AD8"})))),((ar=Yn.exercise_types)===null||ar===void 0?void 0:ar.subjective)===1&&Ua&&n.a.createElement(n.a.Fragment,null,n.a.createElement(p.a,{style:{marginBottom:15},type:"default",disabled:(Yn==null||((Ar=Yn.total_exercise_users)===null||Ar===void 0)?void 0:Ar.length)<1},n.a.createElement(g.a,{to:"/classrooms/".concat(Tt.coursesId,"/exercise/").concat(Tt.categoryId,"/reviews/group")},n.a.createElement("span",{className:"iconfont icon-tijiaozongjie"}),n.a.createElement("span",null,"\u96C6\u4E2D\u6279\u91CF\u6279\u9605"))),n.a.createElement(p.a,{style:{marginBottom:15},type:"default",disabled:(Yn==null||((hr=Yn.total_exercise_users)===null||hr===void 0)?void 0:hr.length)<1},n.a.createElement(g.a,{to:"/classrooms/".concat(Tt.coursesId,"/exercise/").concat(Tt.categoryId,"/review/").concat(Yn==null||((sr=Yn.total_exercise_users)===null||sr===void 0||((va=sr[0])===null||va===void 0))?void 0:va.user_login)},n.a.createElement("span",{className:"iconfont icon-filesync3x"}),n.a.createElement("span",null,"\u7EC4\u5185\u987A\u5E8F\u6279\u9605"))))),n.a.createElement(Ae.a,{style:{marginBottom:15}},(vr==null?void 0:vr.exercise_status)===3&&n.a.createElement(p.a,{className:"ml10",onClick:function(){Ba({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B",params:Tt}})}},n.a.createElement("i",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"))))),n.a.createElement(W.a,{className:"mt30",loading:ur["exercise/getExerciseList"],hideOnSinglePage:!0,pagination:!1,dataSource:(Yn==null?void 0:Yn.exercise_users)||[],columns:Ui,scroll:{x:(Ui==null?void 0:Ui.length)*120},size:"large",onChange:function(Da,Pa,Pr){Tt.page=1,console.log(Pr,444),Pr.order===void 0?(Tt.order_type=null,Tt.order=null):(Tt.order_type=Pr.order==="descend"?"desc":"asc",Tt.order=Pr.field),Ba({type:"exercise/getExerciseList",payload:Object(l.a)({},Tt)})}}),cr>20&&n.a.createElement("aside",{className:"tc mb50 pb30 mt30"},n.a.createElement(G.a,{onChange:No,current:Tt.page||1,defaultPageSize:20,total:cr,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,showTotal:function(Da){return n.a.createElement("span",{className:"mr10"},"\u5171",n.a.createElement("span",{className:"c-orange"},Da),"\u6761\u6570\u636E")}}))),n.a.createElement(gt,null),n.a.createElement(Le,null),n.a.createElement(on,null),ti&&n.a.createElement(i.a,{title:"\u9632\u4F5C\u5F0A\u5934\u50CF",visible:ti,centered:!0,onCancel:function(){ho(1),ri(!1),ii([]),Ei("alert"),si("")},footer:n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("div",{style:{flex:1,textAlign:"left"}}," ",n.a.createElement(p.a,{onClick:Object(c.a)(C.a.mark(function $a(){var Da;return C.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:if(Di){Pr.next=3;break}return d.b.info("\u8F93\u5165\u6846\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Pr.abrupt("return");case 3:return zi(!0),Pr.next=6,Object(_.a)("/api/exercises/".concat(Tt.categoryId,"/send_alert.json"),{method:"post",body:{content:Di,clazz:mi,exercise_user_id:Ri}});case 6:Da=Pr.sent,(Da==null?void 0:Da.status)===0&&(d.b.info("\u53D1\u9001\u6210\u529F"),ho(1),ri(!1),ii([]),Ei("alert"),si("")),zi(!1);case 9:case"end":return Pr.stop()}},$a)})),disabled:Do,loading:oo},"\u53D1\u9001")),n.a.createElement(p.a,{disabled:(Fr==null?void 0:Fr.length)===0,style:{marginRight:"10px"},onClick:Object(c.a)(C.a.mark(function $a(){return C.a.wrap(function(Pa){for(;;)switch(Pa.prev=Pa.next){case 0:return Pa.next=2,ho(Mi-1===0?Fr==null?void 0:Fr.length:Mi-1);case 2:case"end":return Pa.stop()}},$a)}))},"\u4E0A\u4E00\u5F20"),n.a.createElement(p.a,{disabled:(Fr==null?void 0:Fr.length)===0,type:"primary",onClick:Object(c.a)(C.a.mark(function $a(){return C.a.wrap(function(Pa){for(;;)switch(Pa.prev=Pa.next){case 0:return Pa.next=2,ho(Mi===(Fr==null?void 0:Fr.length)?1:Mi+1);case 2:case"end":return Pa.stop()}},$a)}))},"\u4E0B\u4E00\u5F20"))},n.a.createElement("img",{style:{width:"234px !important",height:"132px",borderRadius:"5px"},src:Fr[Mi-1]}),n.a.createElement("span",{onClick:function(){Ot.a.publish("preview-image",Fr[Mi-1]),console.log("src:",Fr[Mi-1],Fr,Mi-1)},style:{background:"#0152d9",color:"#fff",display:"inline-flex",width:"54px",height:"20px",borderRadius:"10px",justifyContent:"center",lineHeight:"20px",alignItems:"center",position:"absolute",top:"70px",left:"190px",zIndex:5,cursor:"pointer"}},"\u9884\u89C8"),n.a.createElement("span",{style:{color:"#0152d9",marginTop:"16px",width:"234px",justifyContent:"center",display:"flex"}},Mi+"/"+(Fr==null?void 0:Fr.length)),n.a.createElement(N.a,{className:"mt20",checked:mi==="alert",onChange:function(){return Ei("alert")}},"\u53D1\u9001\u8B66\u544A",n.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),n.a.createElement(N.a,{className:"mt10",checked:mi==="notice",onChange:function(){return Ei("notice")}},"\u53D1\u9001\u901A\u77E5",n.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),n.a.createElement(le.a.TextArea,{className:"mt20",value:Di,onChange:function(Da){return si(Da.target.value)},placeholder:"\u8BF7\u8F93\u5165".concat(mi==="alert"?"\u8B66\u544A":"\u901A\u77E5","\u5185\u5BB9").concat(mi==="alert"?"\uFF0C\u5982\uFF1A\u626D\u5934\u4F4E\u5934\u5927\u5E45\u5EA6\u52A8\u4F5C\u68C0\u6D4B":"")}),n.a.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",So,"\u6B21\u8B66\u544A")),n.a.createElement(hn.a,null),n.a.createElement(ht,null))},qe=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading,Ra=Ln.globalSetting;return{exercise:Wt,loading:Rn.effects,globalSetting:Ra}})(be),Lt=y("OaEy"),nn=y("2fM7"),$n=y("8Skl"),ta=y("y3Kf"),Sa=y("mxOx"),_n=y.n(Sa),Bt=y("LvDl"),mn=y.n(Bt),Gt=y("GUcZ"),ze=y("ulZh"),ct=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i,Sn=Object(v.forwardRef)(function(Ln,Wt){var Rn,Ra=Ln.src,la=Ln.videoId,Mn=Ln.logWatchHistory,Ca=Ln.courseId,Dn=Ca===void 0?null:Ca,ma=Ln.startTime,ga=Ln.handlePause,ja=ga===void 0?function(){}:ga,Xa=Ln.handlePlay,Cn=Xa===void 0?function(){}:Xa,nr=Ln.handlePlayEnded,$e=nr===void 0?function(){}:nr,vt=Ln.videoSpeed,_t=vt===void 0?1:vt,Xe=Ra==null||((Rn=Ra.split("."))===null||Rn===void 0)?void 0:Rn.pop(),Ee=Xe==="flv",Be=Object(v.useRef)(),Ce=Object(v.useRef)(),Ze=Object(v.useRef)(0),Ke=Object(v.useRef)(0),St=Object(v.useState)(0),it=Object(s.a)(St,2),Pt=it[0],an=it[1],gn=navigator.userAgent.toLowerCase().match(ct),bt=gn?gn[0]:"pc";Object(v.useImperativeHandle)(Wt,function(){return{getLastUpdatedTime:function(){return Be.current.currentTime},getDuration:function(){return Be.current.duration}}}),Object(v.useEffect)(function(){Ke.current=void 0;try{Gt.a.isSupported&&Ee&&Ra&&(Ra==null?void 0:Ra.indexOf(".m3u8"))<0?(Ke.current=Gt.a.createPlayer({type:"flv",volume:.8,cors:!0,url:Ra+"?t="+Date.now(),muted:!1,isLive:!0}),Ke.current.on("play",function(){console.log(21111)}),Be.current&&(Ke.current.detachMediaElement(Be.current),Ke.current.attachMediaElement(Be.current),Ke.current.load(),Ke.current.play())):Be.current.setAttribute("src",Ra+"?t="+Date.now())}catch(wa){setTimeout(function(){an(Pt+1)},1e3)}return console.log("src:",Ra),function(){if(Ke.current){var wa,tr,Ya,ar,Ar,hr,sr,va;(wa=Ke.current)===null||wa===void 0||((tr=wa.unload)===null||tr===void 0)||tr.call(wa),(Ya=Ke.current)===null||Ya===void 0||((ar=Ya.pause)===null||ar===void 0)||ar.call(Ya),(Ar=Ke.current)===null||Ar===void 0||((hr=Ar.destroy)===null||hr===void 0)||hr.call(Ar),(sr=Ke.current)===null||sr===void 0||((va=sr.detachMediaElement)===null||va===void 0)||va.call(sr,Be.current),Ke.current=void 0,Be.current.src=""}}},[Be,Ee,Ra,Pt]),Object(v.useEffect)(function(){return Ce.current=setInterval(function(){Ze.current>0&&Ze.current===Be.current.currentTime&&(console.log("\u64AD\u653E\u4E00\u6B21"),an(Pt+1)),Ze.current=Be.current.currentTime},3e3),function(){clearInterval(Ce.current)}},[]);var Qn=function(tr){setTimeout(function(){an(Pt+1)},1e3)};return n.a.createElement("video",{ref:Be,onerr:!0,onErrorCapture:function(){an(Pt+1)},autoPlay:!0,muted:!0})}),qt=function(Wt){var Rn,Ra=Wt.exercise,la=Wt.dispatch,Mn=Wt.user,Ca=Object(h.i)(),Dn=Object(v.useState)({page:1,limit:20,sort_by:null,sort_direction:null,state:null,audit:null,name:"",save_name:"",exercise_id:Ca==null?void 0:Ca.categoryId}),ma=Object(s.a)(Dn,2),ga=ma[0],ja=ma[1],Xa=dt.a.useForm(),Cn=Object(s.a)(Xa,1),nr=Cn[0],$e=Object(v.useState)(),vt=Object(s.a)($e,2),_t=vt[0],Xe=vt[1],Ee=Object(v.useState)(!1),Be=Object(s.a)(Ee,2),Ce=Be[0],Ze=Be[1],Ke=Ra.exerciseList,St=Ra.commonHeader,it=Object(v.useState)([]),Pt=Object(s.a)(it,2),an=Pt[0],gn=Pt[1],bt=Object(v.useState)([]),Qn=Object(s.a)(bt,2),wa=Qn[0],tr=Qn[1],Ya=Object(v.useState)(0),ar=Object(s.a)(Ya,2),Ar=ar[0],hr=ar[1],sr=Object(v.useState)(!0),va=Object(s.a)(sr,2),_a=va[0],ur=va[1],Ba=Object(v.useState)(!1),oa=Object(s.a)(Ba,2),Ua=oa[0],Er=oa[1],Ka=Object(v.useRef)(null);Object(v.useEffect)(function(){yt(),qa(ga)},[]),Object(v.useEffect)(function(){return clearInterval(Ka.current),(St==null?void 0:St.exercise_status)===2&&(Ka.current=setInterval(function(){qa(ga)},3e4)),function(){clearInterval(Ka.current)}},[St==null?void 0:St.exercise_status,ga]);var yt=function(){la({type:"exercise/getExerciseList",payload:Ca})},qa=function(){var Or=Object(c.a)(C.a.mark(function za(La){var sa,In;return C.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return sa=mn.a.cloneDeep(La),console.log(sa,"sendData"),ur(!0),gn([]),dr.next=6,Object(_.a)("/api/exercises/".concat(La==null?void 0:La.exercise_id,"/exercise_identity_photos.json"),{method:"get",params:sa});case 6:In=dr.sent,tr([]),ur(!1),hr(In==null?void 0:In.count),gn((In==null?void 0:In.exercise_users)||[]);case 11:case"end":return dr.stop()}},za)}));return function(La){return Or.apply(this,arguments)}}(),Lr=function(za,La){ga.page=1,ga[La]=za,ja(Object(l.a)({},ga)),qa(ga)},_r=function(za){ga.page=1,ga.save_name=za,ja(Object(l.a)({},ga))},Tt=function(){ga.page=1;var za=Object.assign({},nr.getFieldsValue());Object.keys(za).map(function(La){switch(La){case"exercise_group_id":za[La].includes("all")||!za[La].length?(delete ga.course_group,nr.setFieldsValue(Object(st.a)({},"exercise_group_id","all"))):(ga.course_group=za[La],nr.setFieldsValue(Object(st.a)({},"exercise_group_id",ga.course_group)));break}}),ja(Object(l.a)({},ga)),qa(ga)};Object(v.useEffect)(function(){if(document.getElementById("divhe")){var Or=document.getElementById("divhe").scrollHeight;Or>47&&(Xe(47),Ze(!0))}},[document.getElementById("divhe"),Ke]);var pr=function(za,La,sa){ga.page=za==null?void 0:za.current,ga.limit=za==null?void 0:za.pageSize,sa!=null&&sa.order?(ga.sort_by=sa==null?void 0:sa.field,ga.sort_direction=(sa==null?void 0:sa.order)==="ascend"?"asc":"desc"):(ga.sort_by=null,ga.sort_direction=null),ja(Object(l.a)({},ga)),qa(ga)},Yn=[{title:"\u5E8F\u53F7",dataIndex:"number",width:80,render:function(za,La,sa){return ga.limit*(ga.page-1)+sa+1}},{title:"\u59D3\u540D",dataIndex:"user_name",width:110,ellipsis:{showTitle:!1},render:function(za){return n.a.createElement(Ue.a,{placement:"bottomLeft",title:za},n.a.createElement("span",null,za))}},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,width:140,showSorterTooltip:!1,ellipsis:{showTitle:!1},render:function(za){return n.a.createElement(Ue.a,{placement:"bottomLeft",title:za||"--"},n.a.createElement("span",null,za||"--"))}},{title:"\u5206\u73ED",dataIndex:"user_group_name",ellipsis:{showTitle:!1},render:function(za,La){return za?n.a.createElement(Ue.a,{placement:"bottom",title:za},n.a.createElement("span",{className:_n.a.es},za)):"--"}},{title:"\u4EBA\u8138\u7167\u7247",dataIndex:"photo_url",width:90,ellipsis:{showTitle:!1},render:function(za,La){return n.a.createElement("img",{width:40,style:{maxHeight:30},src:za,className:"current",onClick:function(){$r(La)}})}},{title:"\u5BA1\u6838\u72B6\u6001",width:100,dataIndex:"exercise_identity_photo_state",ellipsis:{showTitle:!1},render:function(za,La){return n.a.createElement(n.a.Fragment,null,za==="passed"&&n.a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),za==="rejected"&&n.a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),za==="submitted"&&n.a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))}},{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:180,ellipsis:{showTitle:!1},render:function(za){return n.a.createElement("span",null,za||"--")}},{title:"\u5BA1\u6838\u7C7B\u578B",dataIndex:"audit_clazz",width:90,ellipsis:{showTitle:!1},render:function(za){return n.a.createElement("span",null,za||"--")}},{title:"\u64CD\u4F5C",dataIndex:"action",width:180,ellipsis:{showTitle:!1},render:function(za,La){var sa;return n.a.createElement(n.a.Fragment,null,(La==null?void 0:La.exercise_identity_photo_state)==="submitted"?n.a.createElement("span",{className:"c-light-primary current",onClick:function(){return Er(La)}},"\u5BA1\u6838"):n.a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u5BA1\u6838"),(La==null?void 0:La.exercise_identity_photo_state)!=="submitted"?n.a.createElement("span",{className:"c-light-primary current ml10 mr10",onClick:function(){return Xr(La)}},"\u5BA1\u6838\u8BB0\u5F55"):n.a.createElement("span",{className:"c-grey-999 ml10 mr10 cursorNotAllowed"},"\u5BA1\u6838\u8BB0\u5F55"),(La==null?void 0:La.exercise_identity_photo_state)==="passed"&&!!(La!=null&&(sa=La.play_url)!==null&&sa!==void 0&&sa.length)?n.a.createElement("span",{className:"c-light-primary current",onClick:function(){return ai(La)}},"\u6444\u50CF\u76D1\u63A7"):n.a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u6444\u50CF\u76D1\u63A7"))}}],vr=function(za){tr(za)},wr=function(){Er(!1),qa(ga)},Xr=function(za){var La=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:170,render:function(cr,dr){return n.a.createElement("span",null,cr||"--")}},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"exercise_identity_photo_state",width:110,render:function(cr,dr){return n.a.createElement(n.a.Fragment,null,cr==="passed"&&n.a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),cr==="rejected"&&n.a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),cr==="submitted"&&n.a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))}},{title:"\u5BA1\u6838\u610F\u89C1",dataIndex:"comment",render:function(cr,dr){return cr?n.a.createElement(Ue.a,{placement:"bottom",title:cr},n.a.createElement("span",null,cr)):"--"}},{title:"\u91C7\u96C6\u7167\u7247",dataIndex:"photo_url",width:90,render:function(cr,dr){return n.a.createElement("span",{className:"current c-light-primary",onClick:function(){Ot.a.publish("preview-image",cr)}},"\u67E5\u770B")}}],sa=i.a.confirm({icon:null,width:700,className:"".concat(_n.a.cusModal," custom-modal-divider"),centered:!0,title:n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"1"},"\u5BA1\u6838\u8BB0\u5F55"),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return sa.destroy()}}))),content:n.a.createElement("div",null,n.a.createElement(W.a,{className:_n.a.customTable,dataSource:[Object(l.a)({},za)],bordered:!1,columns:La,rowKey:"exercise_identity_photo_id",rowClassName:_n.a.row,pagination:!1}))})},ai=function(za){var La,sa,In=i.a.confirm({icon:null,className:"".concat(_n.a.cusModal," custom-modal-divider"),centered:!0,width:(za==null||((La=za.play_url)===null||La===void 0)?void 0:La.length)<6?724:744,title:n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"1"},"\u89C6\u9891"),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return In.destroy()}}))),content:n.a.createElement("ul",{className:_n.a.sys},za==null||((sa=za.play_url)===null||sa===void 0)?void 0:sa.map(function(cr,dr){return n.a.createElement("li",{className:_n.a.li,key:dr},n.a.createElement("div",{className:_n.a.d1},n.a.createElement("div",{className:_n.a.img},n.a.createElement(Sn,{src:cr==null?void 0:cr.replace(".m3u8",".flv"),autoPlay:!0})),n.a.createElement("div",{className:_n.a.btn},n.a.createElement("div",{className:_n.a.b1},"\u56DE\u653E\u89C6\u9891",dr+1))))}))})},$r=function(za){var La=i.a.confirm({icon:null,className:"".concat(_n.a.cusModal," custom-modal-divider"),centered:!0,width:710,title:n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"1"},"\u4EBA\u8138\u7167\u7247"),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return La.destroy()}}))),content:n.a.createElement(me.a,null,n.a.createElement("aside",{className:_n.a.imgWrap,style:{marginBottom:40}},n.a.createElement("div",{className:_n.a.img},n.a.createElement("img",{width:326,src:Object(F.i)(za==null?void 0:za.photo_url)}),n.a.createElement("div",{className:_n.a.textP},"\u91C7\u96C6\u7167\u7247")),n.a.createElement("div",{className:_n.a.img,style:{marginLeft:20}},za!=null&&za.identity_url?n.a.createElement("img",{width:326,src:Object(F.i)(za==null?void 0:za.identity_url)}):n.a.createElement("div",{className:_n.a.no,style:{width:326}},n.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),n.a.createElement("div",{className:_n.a.textP},"\u8BC1\u4EF6\u7167\u7247"))))})},ei={selectedRowKeys:wa,columnWidth:40,onChange:vr,getCheckboxProps:function(za){return{disabled:!((za==null?void 0:za.exercise_identity_photo_state)!=="passed")}}};return n.a.createElement("section",{className:_n.a.wrap},n.a.createElement(dt.a,{form:nr,onChange:Tt,initialValues:Object(st.a)({},"exercise_group_id","all")},n.a.createElement(dt.a.Item,{name:"exercise_group_id"},n.a.createElement(Se.a.Group,{style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1",id:"divhe",style:{height:_t+"px",overflow:"hidden"}},(Rn=Ke.course_groups)===null||Rn===void 0?void 0:Rn.map(function(Or,za){return n.a.createElement(Se.a,{key:za,value:Or.exercise_group_id,className:"ml0 mr8"},Or.exercise_group_name,"(",Or.exercise_group_students,")")})),Ce&&n.a.createElement("span",{onClick:function(){var za=document.getElementById("divhe").scrollHeight;_t>47?Xe(47):Xe(za)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},_t===47?"\u5C55\u5F00":"\u6536\u8D77",_t===47?n.a.createElement($n.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(ta.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),n.a.createElement("div",{className:_n.a.control},n.a.createElement(le.a.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:ga==null?void 0:ga.save_name,onChange:function(za){return _r(za.target.value)},onSearch:function(){ga.page=1,ga.name=ga.save_name,ja(Object(l.a)({},ga)),qa(ga)}}),n.a.createElement(nn.a,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001",value:ga==null?void 0:ga.state,onChange:function(za){return Lr(za,"state")}},n.a.createElement(nn.a.Option,{value:null},"\u5168\u90E8"),n.a.createElement(nn.a.Option,{value:"submitted"},"\u5F85\u5BA1\u6838"),n.a.createElement(nn.a.Option,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),n.a.createElement(nn.a.Option,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7")),n.a.createElement(nn.a,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7C7B\u578B",value:ga==null?void 0:ga.audit,onChange:function(za){return Lr(za,"audit")}},n.a.createElement(nn.a.Option,{value:null},"\u5168\u90E8"),n.a.createElement(nn.a.Option,{value:1},"\u81EA\u52A8\u5BA1\u6838"),n.a.createElement(nn.a.Option,{value:2},"\u4EBA\u5DE5\u5BA1\u6838")),n.a.createElement("span",{className:_n.a.btn,style:{cursor:"pointer"},onClick:function(){if(!wa.length){d.b.warn("\u8BF7\u9009\u62E9\u5B66\u751F");return}Er(!0)}},n.a.createElement("i",{className:"iconfont icon-piliangcaozuo font14 mr5"}),"\u6279\u91CF\u5BA1\u6838")),n.a.createElement("div",{className:_n.a.bgH}),n.a.createElement(W.a,{rowSelection:ei,className:_n.a.customTable,dataSource:an,bordered:!1,columns:Yn,rowKey:"exercise_identity_photo_id",rowClassName:_n.a.row,loading:_a,onChange:pr,pagination:{pageSize:ga.limit,total:Ar,current:ga.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:function(za){return n.a.createElement("span",{className:"mr10"},"\u5171",n.a.createElement("span",{className:"c-orange"},za),"\u6761\u6570\u636E")}}}),n.a.createElement(qn,{selectIds:wa,visible:Ua,onCancel:function(){return Er(!1)},onOk:wr,params:ga}),n.a.createElement(hn.a,null))},Gn=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.user;return{exercise:Wt,user:Rn}})(qt),qn=function(Wt){var Rn=Wt.visible,Ra=Wt.onOk,la=Wt.onCancel,Mn=Wt.selectIds,Ca=Wt.params,Dn=Object(v.useState)(!1),ma=Object(s.a)(Dn,2),ga=ma[0],ja=ma[1],Xa=Object(v.useState)({}),Cn=Object(s.a)(Xa,2),nr=Cn[0],$e=Cn[1],vt=dt.a.useForm(),_t=Object(s.a)(vt,1),Xe=_t[0],Ee=function(){var Be=Object(c.a)(C.a.mark(function Ce(Ze){var Ke,St;return C.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(ja(!0),!(Rn===!0)){Pt.next=7;break}return Pt.next=4,Object(_.a)("/api/exercises/".concat(Ca==null?void 0:Ca.exercise_id,"/batch_audit_identity_photo.json"),{method:"post",body:Object(l.a)({identity_photo_ids:Mn},Ze)});case 4:St=Pt.sent,Pt.next=10;break;case 7:return Pt.next=9,Object(_.a)("/api/exercises/".concat(Ca==null?void 0:Ca.exercise_id,"/audit_identity_photo.json"),{method:"post",body:Object(l.a)({identity_photo_id:Rn==null?void 0:Rn.exercise_identity_photo_id},Ze)});case 9:St=Pt.sent;case 10:((Ke=St)===null||Ke===void 0?void 0:Ke.status)===0&&Ra(),ja(!1);case 12:case"end":return Pt.stop()}},Ce)}));return function(Ze){return Be.apply(this,arguments)}}();return n.a.createElement(i.a,{title:Rn!==!0?"\u4EBA\u8138\u8EAB\u4EFD\u5BA1\u6838":"\u6279\u91CF\u5BA1\u6838",visible:!!Rn,centered:!0,width:650,destroyOnClose:!0,onCancel:function(){la()},afterClose:function(){Xe.resetFields(),$e({})},confirmLoading:ga,onOk:function(){return Xe.submit()}},n.a.createElement(dt.a,{className:_n.a.formWrap,form:Xe,labelCol:{span:4},wrapperCol:{span:18},onFinish:Ee,onValuesChange:function(){$e(Object(l.a)({},Xe.getFieldsValue()))}},Rn!==!0&&n.a.createElement(me.a,{style:{marginLeft:28,marginBottom:38}},n.a.createElement(Ae.a,null,"\u91C7\u96C6\u7167\u7247\uFF1A"),n.a.createElement(Ae.a,null,n.a.createElement("aside",{className:_n.a.imgWrap},n.a.createElement("div",{className:_n.a.img},n.a.createElement("img",{width:234,src:Object(F.i)(Rn==null?void 0:Rn.photo_url)}),n.a.createElement("div",{onClick:function(){Ot.a.publish("preview-image",Rn==null?void 0:Rn.photo_url)},className:_n.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:_n.a.text},"\u91C7\u96C6\u7167\u7247")),n.a.createElement("div",{className:_n.a.img,style:{marginLeft:20}},Rn!=null&&Rn.identity_url?n.a.createElement("img",{width:234,src:Object(F.i)(Rn==null?void 0:Rn.identity_url)}):n.a.createElement("div",{className:_n.a.no,style:{width:326}},n.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(Rn!=null&&Rn.identity_url)&&n.a.createElement("div",{onClick:function(){Ot.a.publish("preview-image",Object(F.i)(Rn==null?void 0:Rn.identity_url))},className:_n.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:_n.a.text},"\u8BC1\u4EF6\u7167\u7247"))))),n.a.createElement(dt.a.Item,{label:"\u5BA1\u6838\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"}]},n.a.createElement(N.a.Group,null,n.a.createElement(N.a,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),n.a.createElement(N.a,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7"))),(nr==null?void 0:nr.state)==="rejected"&&n.a.createElement(dt.a.Item,{label:"\u5BA1\u6838\u610F\u89C1",name:"comment",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"}]},n.a.createElement(le.a,{placeholder:"\u5982\uFF1A\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F\u4E0E\u7167\u7247\u4E0D\u4E00\u81F4\u3002",maxLength:30})),n.a.createElement("div",{style:{color:"#FA6400",paddingLeft:32}},"\u6CE8\u610F\uFF1A\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u8BE5\u5B66\u751F\u5728\u672C\u573A\u8003\u8BD5\u7684\u8BA4\u8BC1\u72B6\u6001\u5C06\u66F4\u65B0\u4E3A\u201C\u5BA1\u6838\u901A\u8FC7\u201D\uFF0C\u4E14\u80FD\u591F\u8FDB\u5165\u8003\u8BD5\u3002")))},Mt=y("cWXX"),Nn=y("/ezw"),Bn=y("R9oj"),na=y("ECub"),Ea=y("hZbv"),Pe=y.n(Ea),ye=function(Wt){var Rn,Ra,la,Mn,Ca,Dn,ma,ga,ja,Xa=Wt.exercise,Cn=Wt.dispatch,nr=Wt.user,$e=Object(h.i)(),vt=Object(v.useState)({page:1,limit:10,name:"",save_name:"",exercise_id:$e==null?void 0:$e.categoryId}),_t=Object(s.a)(vt,2),Xe=_t[0],Ee=_t[1],Be=dt.a.useForm(),Ce=Object(s.a)(Be,1),Ze=Ce[0],Ke=Object(v.useState)(),St=Object(s.a)(Ke,2),it=St[0],Pt=St[1],an=Object(v.useState)(!1),gn=Object(s.a)(an,2),bt=gn[0],Qn=gn[1],wa=Xa.exerciseList,tr=Object(v.useState)([]),Ya=Object(s.a)(tr,2),ar=Ya[0],Ar=Ya[1],hr=Object(v.useState)(0),sr=Object(s.a)(hr,2),va=sr[0],_a=sr[1],ur=Object(v.useState)(!0),Ba=Object(s.a)(ur,2),oa=Ba[0],Ua=Ba[1],Er=Object(v.useState)(!1),Ka=Object(s.a)(Er,2),yt=Ka[0],qa=Ka[1],Lr=Object(v.useState)("1"),_r=Object(s.a)(Lr,2),Tt=_r[0],pr=_r[1],Yn=Object(v.useState)(1),vr=Object(s.a)(Yn,2),wr=vr[0],Xr=vr[1],ai=Object(v.useState)("alert"),$r=Object(s.a)(ai,2),ei=$r[0],Or=$r[1],za=Object(v.useState)(1),La=Object(s.a)(za,2),sa=La[0],In=La[1],cr=Object(v.useState)(""),dr=Object(s.a)(cr,2),ka=dr[0],kr=dr[1],Yr=Object(v.useState)(!1),jr=Object(s.a)(Yr,2),rr=jr[0],Rr=jr[1],ti=Object(v.useState)(!1),ri=Object(s.a)(ti,2),hi=ri[0],pi=ri[1],mi=Object(v.useState)([]),Ei=Object(s.a)(mi,2),ao=Ei[0],_o=Ei[1];Object(v.useEffect)(function(){So(),$i(Xe)},[]);var So=function(){Cn({type:"exercise/getExerciseList",payload:$e})},$i=function(){var Br=Object(c.a)(C.a.mark(function Nr(Fr){var ii,ui;return C.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return ii=mn.a.cloneDeep(Fr),Ua(!0),Ar([]),fi.next=5,Object(_.a)("/api/exercises/".concat(Fr==null?void 0:Fr.exercise_id,"/exercise_videos.json"),{method:"get",params:ii});case 5:ui=fi.sent,Ua(!1),_a(ui==null?void 0:ui.count),Ar((ui==null?void 0:ui.exercise_users)||[]);case 9:case"end":return fi.stop()}},Nr)}));return function(Fr){return Br.apply(this,arguments)}}(),eo=function(Nr,Fr){Xe.page=Nr,Xe.limit=Fr,Ee(Object(l.a)({},Xe)),$i(Xe)},ro=function(Nr){Xe.page=1,Xe.save_name=Nr,Ee(Object(l.a)({},Xe))},io=function(){Xe.page=1;var Nr=Object.assign({},Ze.getFieldsValue());Object.keys(Nr).map(function(Fr){switch(Fr){case"exercise_group_id":Nr[Fr].includes("all")||!Nr[Fr].length?(delete Xe.course_group,Ze.setFieldsValue(Object(st.a)({},"exercise_group_id","all"))):(Xe.course_group=Nr[Fr],Ze.setFieldsValue(Object(st.a)({},"exercise_group_id",Xe.course_group)));break}}),$i(Xe)};Object(v.useEffect)(function(){if(document.getElementById("divhe")){var Br=document.getElementById("divhe").scrollHeight;Br>47&&(Pt(47),Qn(!0))}},[document.getElementById("divhe"),wa]);var Yi=function(){var Br=Object(c.a)(C.a.mark(function Nr(Fr){var ii,ui;return C.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return Rr(!0),qa({}),fi.next=4,Object(_.a)("/api/exercises/".concat(Xe==null?void 0:Xe.exercise_id,"/student_info.json"),{method:"get",params:{exercise_user_id:Fr==null?void 0:Fr.exercise_user_id}});case 4:return ii=fi.sent,fi.next=7,Object(_.a)("/api/exercises/".concat(Xe==null?void 0:Xe.exercise_id,"/video_push_logs.json"),{method:"get",params:{exercise_user_id:Fr==null?void 0:Fr.exercise_user_id}});case 7:ui=fi.sent,ui!=null&&ui.data&&_o((ui==null?void 0:ui.data)||[]),ii!=null&&ii.data&&qa(Object(l.a)(Object(l.a)({},ii==null?void 0:ii.data),{},{exercise_user_id:Fr==null?void 0:Fr.exercise_user_id,datas:Fr})),Rr(!1);case 11:case"end":return fi.stop()}},Nr)}));return function(Fr){return Br.apply(this,arguments)}}(),bo=function(Nr){if(Nr==="prev"){var Fr;Xr(wr-1===0?yt==null||((Fr=yt.exercise_user_photos)===null||Fr===void 0)?void 0:Fr.length:wr-1)}else{var ii;Xr(wr===(yt==null||((ii=yt.exercise_user_photos)===null||ii===void 0)?void 0:ii.length)?1:wr+1)}},co=function(){Xr(1),Or("alert"),kr(""),pr("1"),In(1)},oo=function(Nr){In(Nr)},zi=function(Nr){Or(Nr),In(1),kr("")},Xi=[{key:1,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:2,value:"\u8BF7\u52FF\u79BB\u5F00\u76D1\u63A7\u8303\u56F4\uFF01"},{key:3,value:"\u8BF7\u4E0D\u8981\u4E0E\u5176\u4ED6\u4EBA\u4EA4\u8C08\uFF01"},{key:4,value:"\u8BF7\u4E0D\u8981\u505A\u4E0E\u8003\u8BD5\u65E0\u5173\u7684\u884C\u4E3A\uFF01"},{key:5,value:"\u8BF7\u52FF\u5207\u5C4F\uFF0C\u8D85\u8FC73\u6B21\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF01"},{key:6,value:"\u8BF7\u52FF\u906E\u6321\u6216\u5173\u95ED\u7535\u8111\u6444\u50CF\u76D1\u63A7\uFF01"},{key:0,value:"\u5176\u4ED6"}],gi=[{key:1,value:"\u8BF7\u5C06\u624B\u673A\u653E\u7F6E\u4E8E\u4FA7\u540E\u65B945\xB0\uFF0C\u79BB\u684C\u97621\u7C73\u5DE6\u53F3\uFF0C\u4FDD\u8BC1\u80FD\u62CD\u6444\u5230\u4E0A\u534A\u8EAB\u3001\u7535\u8111\u5C4F\u5E55\u548C\u684C\u9762\u3002"},{key:2,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:0,value:"\u5176\u4ED6"}],yi=ei==="alert"?Xi:gi;return n.a.createElement("section",{className:Pe.a.wrap},n.a.createElement(dt.a,{form:Ze,onChange:io,initialValues:Object(st.a)({},"exercise_group_id","all")},n.a.createElement(dt.a.Item,{name:"exercise_group_id"},n.a.createElement(Se.a.Group,{style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1",id:"divhe",style:{height:it+"px",overflow:"hidden"}},(Rn=wa.course_groups)===null||Rn===void 0?void 0:Rn.map(function(Br,Nr){return n.a.createElement(Se.a,{key:Nr,value:Br.exercise_group_id,className:"ml0 mr8"},Br.exercise_group_name,"(",Br.exercise_group_students,")")})),bt&&n.a.createElement("span",{onClick:function(){var Nr=document.getElementById("divhe").scrollHeight;it>47?Pt(47):Pt(Nr)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},it===47?"\u5C55\u5F00":"\u6536\u8D77",it===47?n.a.createElement($n.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(ta.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),n.a.createElement("div",{className:Pe.a.control},n.a.createElement(le.a.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Xe==null?void 0:Xe.save_name,onChange:function(Nr){return ro(Nr.target.value)},onSearch:function(){Xe.page=1,Xe.name=Xe.save_name,Ee(Object(l.a)({},Xe)),$i(Xe)}})),n.a.createElement("div",{className:Pe.a.bgH}),n.a.createElement("div",{className:Pe.a.warpList},n.a.createElement(Nn.a,{loading:oa,active:!0,paragraph:{rows:5}},n.a.createElement("div",{className:"c-grey-666 mb20 mt20"},"\u5171",n.a.createElement("span",{className:"c-orange"},va),"\u540D\u5B66\u751F\u5DF2\u5F00\u542F\u624B\u673A\u6444\u5F71"),ar.length?n.a.createElement("ul",{className:Pe.a.sys},ar.map(function(Br,Nr){var Fr=Br.user_name,ii=Br.user_group_name,ui=Br.video_url,Ai=Br.login,fi=Br.student_id;return n.a.createElement("li",{className:Pe.a.li,key:Nr},n.a.createElement("div",{className:Pe.a.d1},n.a.createElement("div",{className:Pe.a.img},n.a.createElement("iframe",{style:{height:340,width:"100%",border:"none"},src:"/live-play.html?key=".concat(Nr,"&video_url=").concat(ui==null?void 0:ui.replace(".m3u8",".flv"))})),n.a.createElement(Ue.a,{title:"\u59D3\u540D+\u5B66\u53F7"},n.a.createElement("div",{className:Pe.a.btn,onClick:function(){return Object(F.u)("".concat(Xe.exercise_id,"-").concat(Ai),!0)}},n.a.createElement("div",{title:Fr,className:Pe.a.b1},Fr),n.a.createElement("div",{title:ii,className:Pe.a.b2},"(",fi,")"))),n.a.createElement("div",{onClick:function(){return Yi(Br)},className:Pe.a.big},"\u67E5\u770B")))})):n.a.createElement(na.a,null)),n.a.createElement(G.a,{showTotal:function(Nr){return n.a.createElement("span",{className:"mr10"},"\u5171",n.a.createElement("span",{className:"c-orange"},Nr),"\u6761\u6570\u636E")},className:"tc",showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,onChange:eo,pageSize:Xe==null?void 0:Xe.limit,current:Xe.page,total:va})),n.a.createElement(i.a,{title:"\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F",visible:yt,centered:!0,width:850,destroyOnClose:!0,onCancel:function(){qa(!1)},afterClose:co,footer:null},n.a.createElement(Nn.a,{loading:rr,active:!0,paragraph:{rows:5}},n.a.createElement("div",null,n.a.createElement("span",null,"\u59D3\u540D:",yt==null||((Ra=yt.datas)===null||Ra===void 0)?void 0:Ra.user_name),n.a.createElement("span",{className:"ml20"},"\u5B66\u53F7:",yt==null||((la=yt.datas)===null||la===void 0)?void 0:la.student_id),n.a.createElement("span",{className:"ml20"},"\u73ED\u7EA7:",yt==null||((Mn=yt.datas)===null||Mn===void 0)?void 0:Mn.user_group_name)),n.a.createElement(B.a,{className:"mt10",defaultActiveKey:Tt,onChange:function(Nr){pr(Nr)}},n.a.createElement(B.a.TabPane,{tab:"\u9632\u4F5C\u5F0A\u5934\u50CF",key:"1"},n.a.createElement("aside",{className:Pe.a.imgWrap},n.a.createElement("div",{className:Pe.a.img,style:{width:234,marginLeft:30,textAlign:"center"}},yt!=null&&(Ca=yt.exercise_user_photos)!==null&&Ca!==void 0&&Ca.length?n.a.createElement(v.Fragment,null,n.a.createElement("img",{height:131,src:yt==null||((Dn=yt.exercise_user_photos)===null||Dn===void 0)?void 0:Dn[wr-1]}),n.a.createElement("div",{onClick:function(){var Nr;Ot.a.publish("preview-image",yt==null||((Nr=yt.exercise_user_photos)===null||Nr===void 0)?void 0:Nr[wr-1])},className:Pe.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:Pe.a.text},"\u8003\u8BD5\u4E2D\u7167\u7247",n.a.createElement("span",{className:"c-light-primary"},wr,"/",yt==null||((ma=yt.exercise_user_photos)===null||ma===void 0)?void 0:ma.length)),wr===1?n.a.createElement("div",{style:{color:"#ccc",cursor:"not-allowed"},className:Pe.a.l}," ",n.a.createElement("i",{className:"iconfont icon-fanhui2"})):n.a.createElement("div",{onClick:function(){return bo("prev")},className:Pe.a.l}," ",n.a.createElement("i",{className:"iconfont icon-fanhui2"})),n.a.createElement("div",{onClick:function(){return bo("next")},className:Pe.a.r},n.a.createElement("i",{className:"iconfont icon-lujing"}))):n.a.createElement("div",{className:Pe.a.no},n.a.createElement("span",null,"\u6682\u65E0\u8003\u8BD5\u4E2D\u7167\u7247"))),n.a.createElement("div",{className:Pe.a.img,style:{marginLeft:60,width:234,textAlign:"center"}},yt!=null&&yt.identity_url?n.a.createElement("img",{height:131,src:Object(F.i)(yt==null?void 0:yt.identity_url)}):n.a.createElement("div",{className:Pe.a.no},n.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(yt!=null&&yt.identity_url)&&n.a.createElement("div",{onClick:function(){Ot.a.publish("preview-image",Object(F.i)(yt==null?void 0:yt.identity_url))},className:Pe.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:Pe.a.text},"\u8BC1\u4EF6\u7167\u7247")))),n.a.createElement(B.a.TabPane,{tab:"\u4EBA\u8138\u7167\u7247",key:"2"},n.a.createElement("aside",{className:Pe.a.imgWrap,style:{marginLeft:70}},n.a.createElement("div",{className:Pe.a.img},n.a.createElement("img",{width:234,src:yt==null?void 0:yt.exercise_identity_photo}),n.a.createElement("div",{onClick:function(){Ot.a.publish("preview-image",yt==null?void 0:yt.exercise_identity_photo)},className:Pe.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:Pe.a.text},"\u91C7\u96C6\u7167\u7247")),n.a.createElement("div",{className:Pe.a.img,style:{marginLeft:20,width:234,textAlign:"center"}},yt!=null&&yt.identity_url?n.a.createElement("img",{height:131,src:Object(F.i)(yt==null?void 0:yt.identity_url)}):n.a.createElement("div",{className:Pe.a.no},n.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(yt!=null&&yt.identity_url)&&n.a.createElement("div",{onClick:function(){Ot.a.publish("preview-image",Object(F.i)(yt==null?void 0:yt.identity_url))},className:Pe.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:Pe.a.text},"\u8BC1\u4EF6\u7167\u7247")))),n.a.createElement(B.a.TabPane,{tab:"\u8B66\u544A\u548C\u901A\u77E5",key:"3"},n.a.createElement("div",{className:Pe.a.fo},n.a.createElement(N.a,{className:"mt20",checked:ei==="alert",onChange:function(){return zi("alert")}},"\u53D1\u9001\u8B66\u544A",n.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),n.a.createElement(N.a,{className:"mt10",checked:ei==="notice",onChange:function(){return zi("notice")}},"\u53D1\u9001\u901A\u77E5",n.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),n.a.createElement("div",{className:"mt20"},n.a.createElement("span",{className:"mr10"},"\u539F\u56E0:"),n.a.createElement(nn.a,{getPopupContainer:function(Nr){return Nr.parentNode.parentNode},style:{width:570},value:sa,onChange:oo},yi==null?void 0:yi.map(function(Br){return n.a.createElement(nn.a.Option,{key:Br.key,value:Br.key},Br.value)}))),sa===0&&n.a.createElement(le.a.TextArea,{className:"mt20",value:ka,onChange:function(Nr){return kr(Nr.target.value)},placeholder:"\u8BF7\u586B\u5199\u5176\u4ED6\u539F\u56E0"}),n.a.createElement(me.a,{className:"mt10",align:"middle"},n.a.createElement("div",{className:"mr10"},"\u53D1\u9001\u8BB0\u5F55"),n.a.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",yt==null?void 0:yt.alert_count,"\u6B21\u8B66\u544A\u548C",(yt==null||((ga=yt.alerts)===null||ga===void 0)?void 0:ga.length)-(yt==null?void 0:yt.alert_count),"\u6B21\u901A\u77E5")),n.a.createElement(W.a,{dataSource:(yt==null?void 0:yt.alerts)||[],bordered:!1,scroll:(yt==null||((ja=yt.alerts)===null||ja===void 0)?void 0:ja.length)>4?{y:200}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"created_at",width:164},{title:"\u53D1\u9001\u4EBA",dataIndex:"sender",width:100,ellipsis:{showTitle:!1},render:function(Nr){return Nr?n.a.createElement("span",{title:Nr},Nr):"--"}},{title:"\u53D1\u9001\u7C7B\u578B",dataIndex:"clazz",width:80,render:function(Nr){return Nr==="alert"?"\u8B66\u544A":"\u901A\u77E5"}},{title:"\u53D1\u9001\u5185\u5BB9",dataIndex:"content",ellipsis:!0}],pagination:!1}),n.a.createElement(p.a,{className:Pe.a.b,onClick:Object(c.a)(C.a.mark(function Br(){var Nr,Fr,ii;return C.a.wrap(function(Ai){for(;;)switch(Ai.prev=Ai.next){case 0:if(!(!ka&&sa===0)){Ai.next=3;break}return d.b.info("\u8BF7\u8F93\u5165\u5176\u4ED6\u539F\u56E0"),Ai.abrupt("return");case 3:return Nr=ka,sa&&(Fr=ei==="alert"?Xi:gi,Nr=Fr.find(function(fi){return fi.key===sa}).value),pi(!0),Ai.next=8,Object(_.a)("/api/exercises/".concat(Xe.exercise_id,"/send_alert.json"),{method:"post",body:{content:Nr,clazz:ei,exercise_user_id:yt==null?void 0:yt.exercise_user_id}});case 8:ii=Ai.sent,(ii==null?void 0:ii.status)===0&&(d.b.info("\u53D1\u9001\u6210\u529F"),qa(!1)),pi(!1);case 11:case"end":return Ai.stop()}},Br)})),loading:hi,type:"primary"},n.a.createElement("i",{className:"iconfont icon-fasongtongzhi mr5"}),"\u53D1\u9001"))),n.a.createElement(B.a.TabPane,{tab:"\u65AD\u6D41\u8BB0\u5F55",key:"4"},n.a.createElement(W.a,{dataSource:ao,bordered:!1,scroll:ao.length>7?{y:300}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"start_time",width:164},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"end_time",width:164,render:function(Nr){return pe()(Nr).format("YYYY-MM-DD HH:mm:ss")||"--"}},{title:"\u63A8\u6D41\u65F6\u957F",dataIndex:"push_duration",ellipsis:!0,width:120,render:function(Nr){return Nr&&Object(F.bb)(Number(Nr)/1e3)||0}},{title:"\u65AD\u6D41\u539F\u56E0",dataIndex:"msg",ellipsis:!0}]}))))),n.a.createElement(hn.a,null))},J=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.user;return{exercise:Wt,user:Rn}})(ye),q=y("wNxg"),Z=y.n(q),oe=y("b6Jr"),Oe=y.n(oe),Re=function(Wt){var Rn=Wt.index,Ra=Wt.bottomLine,la=Wt.gather,Mn=Wt.search,Ca=Object(v.useState)([]),Dn=Object(s.a)(Ca,2),ma=Dn[0],ga=Dn[1],ja=Object(v.useState)(!1),Xa=Object(s.a)(ja,2),Cn=Xa[0],nr=Xa[1],$e=Object(v.useState)(!1),vt=Object(s.a)($e,2),_t=vt[0],Xe=vt[1],Ee=Object(h.i)(),Be=Object(h.h)(),Ce=Object(v.useState)({page:1,limit:6,total:0}),Ze=Object(s.a)(Ce,2),Ke=Ze[0],St=Ze[1];Object(v.useEffect)(function(){console.log(la,"gather"),Rn===0&&Xe(!0)},[]),Object(v.useEffect)(function(){_t&&Pt()},[_t]);var it=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",align:"left",ellipsis:!0,render:function(Qn,wa,tr){return Ke.limit*(Ke.page-1)+tr+1}},{title:"\u59D3\u540D",dataIndex:"username",key:"username",align:"left",ellipsis:!0},{title:"\u73ED\u7EA7",dataIndex:"user_group_name",key:"user_group_name",align:"left",render:function(Qn){return Qn||"--"}},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",align:"left"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",key:"code_rate",align:"left",render:function(Qn){return Qn+"%"}},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",align:"left",render:function(Qn){var wa,tr="/classrooms/".concat(Ee==null?void 0:Ee.coursesId,"/exercise/").concat(Ee==null?void 0:Ee.categoryId,"/detail/").concat(Qn,"/review_detail");if(Be!=null&&(wa=Be.query)!==null&&wa!==void 0&&wa.random){var Ya;tr=tr+"?random=".concat(Be==null||((Ya=Be.query)===null||Ya===void 0)?void 0:Ya.random)}return n.a.createElement(g.a,{to:tr,target:"_blank"},"\u67E5\u770B")}}],Pt=function(){var bt=Object(c.a)(C.a.mark(function Qn(wa){var tr,Ya,ar;return C.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return nr(!0),tr=wa||{page:1,limit:10,total:0},Ya=Object(l.a)({id:Ee==null?void 0:Ee.categoryId,question_id:la==null?void 0:la.question_id,search:Mn},tr),hr.next=5,Object(_.a)("/api/courses/".concat(Ee==null?void 0:Ee.coursesId,"/exercises/code_review_users.json"),{method:"get",params:Ya});case 5:ar=hr.sent,ar&&(ga(ar==null?void 0:ar.users),nr(!1),St(Object(l.a)(Object(l.a)({},tr),{},{total:(ar==null?void 0:ar.count)||0})));case 7:case"end":return hr.stop()}},Qn)}));return function(wa){return bt.apply(this,arguments)}}(),an=function(Qn){var wa=Object(l.a)(Object(l.a)({},Ke),{},{page:Qn});St(wa),Pt(wa)},gn=function(){Xe(!_t)};return n.a.createElement("div",{className:Oe.a.subjectTable},n.a.createElement("aside",{className:Oe.a.title},n.a.createElement("span",{className:"c-light-primary"},Rn+1,"\u3001",(la==null?void 0:la.question_type)===5?"\u5B9E\u8BAD\u9898":"\u7F16\u7A0B\u9898"),n.a.createElement("span",{className:"c-grey-333"},"\uFF08",la==null?void 0:la.score,"\u5206\uFF09\uFF1A",la==null?void 0:la.question_title),n.a.createElement("span",{className:"ml40 c-grey-999"},n.a.createElement("b",{className:"c-red-ee4"},la==null?void 0:la.checked_count),"\xA0\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08\u5171",la==null?void 0:la.total_count,"\u4E2A\u4F5C\u54C1\uFF09"),n.a.createElement("span",{onClick:gn,style:{marginLeft:"auto",cursor:"pointer",color:"#0152d9"}},_t?"\u6536\u8D77":"\u5C55\u5F00",_t?n.a.createElement(ta.a,null):n.a.createElement($n.a,null)),(la==null?void 0:la.question_type)===5&&n.a.createElement("a",{style:{marginLeft:20},target:"_blank",href:"/shixuns/".concat(la==null?void 0:la.shixun_identifier,"/challenges")},"\u5B9E\u8BAD\u8BE6\u60C5")),n.a.createElement(W.a,{className:Oe.a.customTable,style:{display:_t?"block":"none"},dataSource:ma,bordered:!1,rowKey:function(Qn){return Qn.id},rowClassName:Oe.a.row,columns:it,loading:Cn,pagination:{pageSize:Ke.limit,total:Ke.total,current:Ke.page,onChange:an,showQuickJumper:!0,showSizeChanger:!1,hideOnSinglePage:!0,position:["bottomCenter"]}}),n.a.createElement("div",{className:Oe.a.line,style:{visibility:Ra?"hidden":"visible"}}))},ve=Re,bn=y("lzim"),kt=function(Wt){var Rn=Wt.exercise,Ra=Wt.globalSetting,la=Wt.dispatch,Mn=Object(v.useState)(""),Ca=Object(s.a)(Mn,2),Dn=Ca[0],ma=Ca[1],ga=Object(v.useState)([]),ja=Object(s.a)(ga,2),Xa=ja[0],Cn=ja[1],nr=Object(v.useState)(""),$e=Object(s.a)(nr,2),vt=$e[0],_t=$e[1],Xe=Object(v.useState)(!1),Ee=Object(s.a)(Xe,2),Be=Ee[0],Ce=Ee[1],Ze=Object(h.i)();Object(v.useEffect)(function(){Ke()},[]);var Ke=function(){var Pt=Object(c.a)(C.a.mark(function an(gn){var bt;return C.a.wrap(function(wa){for(;;)switch(wa.prev=wa.next){case 0:return Ce(!0),wa.next=3,Object(_.a)("/api/courses/".concat(Ze==null?void 0:Ze.coursesId,"/exercises/code_review_results.json"),{method:"get",params:{id:Ze==null?void 0:Ze.categoryId,search:Dn}});case 3:if(bt=wa.sent,!((bt==null?void 0:bt.status)===-2)){wa.next=7;break}return Ke(),wa.abrupt("return");case 7:bt&&(Ce(!1),Cn((bt==null?void 0:bt.exercise_questions)||[]),_t(bt==null?void 0:bt.last_review_time));case 8:case"end":return wa.stop()}},an)}));return function(gn){return Pt.apply(this,arguments)}}(),St=function(){Ke()},it=function(){return n.a.createElement("div",{className:Z.a.empty},n.a.createElement("img",{src:bn.j,width:"258"}),n.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E"))};return n.a.createElement("section",{className:Z.a.warp},n.a.createElement("aside",{className:Z.a.header},n.a.createElement("div",null,"\u67E5\u91CD\u65F6\u95F4\uFF1A",vt||"--"),!!vt&&n.a.createElement(le.a,{value:Dn,onChange:function(an){return ma(an.target.value)},suffix:n.a.createElement("i",{onClick:St,className:"iconfont icon-sousuo2 c-grey-c"}),bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onPressEnter:St})),n.a.createElement(Nn.a,{loading:Be,active:!0,paragraph:{rows:5}},Xa.length>0?n.a.createElement("aside",{className:Z.a.subject},Xa.map(function(Pt,an){return n.a.createElement(ve,{key:an,index:an,bottomLine:an===Xa.length-1,gather:Pt,search:Dn})})):it()))},at=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.globalSetting;return{exercise:Wt,globalSetting:Rn}})(kt),Ht=y("/zsF"),Fe=y("PArb"),Un=y("LYsE"),Fa=y("k5F3"),fa=function(Wt){var Rn,Ra=Wt.exercise,la=Wt.loading,Mn=Wt.dispatch,Ca=Wt.activeTabs,Dn=Object(h.i)(),ma=Object(v.useState)(Object(l.a)(Object(l.a)({},Dn),{page:1,per_page:10})),ga=Object(s.a)(ma,1),ja=ga[0],Xa=Ra.editData,Cn=Ra.commonHeader.exercise_status;console.log(Ra),Object(v.useEffect)(function(){Ca==="2"&&nr()},[Dn.categoryId,Ca]);var nr=function(){Mn({type:"exercise/editExercise",payload:Object(l.a)({},ja)})};return Object(v.useEffect)(function(){return Mn({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),Mn({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),function(){Mn({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),Mn({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}},[]),n.a.createElement("section",{className:"minH1050 mb20 pt30 pb30 pl60 bg-white relative"},n.a.createElement(Fa.a,{isPreview:!0,activeTabs:Ca}),n.a.createElement(Fe.a,null),n.a.createElement(Un.a,{data:Xa==null?void 0:Xa.exercise_question_types,isDragDisabled:!0,markBtnVisible:Cn===3&&((Xa==null||((Rn=Xa.exercise)===null||Rn===void 0)?void 0:Rn.is_creator)||Object(Je.v)())}))},ae=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading;return{exercise:Wt,loading:Rn.effects}})(fa),z=y("T2oS"),Y=y("W9HT"),te=y("Q9mQ"),_e=y("diRs"),se=y("CCdo"),ut=y.n(se),vn=y("RotF"),Wn=y.n(vn),Oa=y("6K3P"),dn=y.n(Oa),Tn=y("0owl"),ya=y("ek7X"),fr=function(Wt){var Rn,Ra,la,Mn=Wt.exercise,Ca=Wt.loading,Dn=Wt.dispatch,ma=Wt.cb,ga=Object(l.a)(Object(l.a)({},Object(h.i)()),{},{page:0,limit:50,one:null,two:null,save_one:null,save_two:null,sort:null,course_group:"",student_id:"",realname:"",save_course_group:"",save_student_id:"",save_realname:""}),ja=Object(v.useState)(Object(l.a)({},ga)),Xa=Object(s.a)(ja,2),Cn=Xa[0],nr=Xa[1],$e=Object(v.useState)([]),vt=Object(s.a)($e,2),_t=vt[0],Xe=vt[1],Ee=Object(v.useState)(!0),Be=Object(s.a)(Ee,2),Ce=Be[0],Ze=Be[1],Ke=Object(v.useState)(!0),St=Object(s.a)(Ke,2),it=St[0],Pt=St[1],an=Object(v.useState)(0),gn=Object(s.a)(an,2),bt=gn[0],Qn=gn[1],wa=Object(v.useState)(!1),tr=Object(s.a)(wa,2),Ya=tr[0],ar=tr[1],Ar=Object(v.useState)([]),hr=Object(s.a)(Ar,2),sr=hr[0],va=hr[1];Object(v.useEffect)(function(){Mn.actionTabs.key==="\u6253\u56DE\u91CD\u505A"&&(_t=[],_a(1))},[Mn.actionTabs.key]);var _a=function(){var yt=Object(c.a)(C.a.mark(function qa(Lr){var _r,Tt;return C.a.wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:return Lr==1&&(_t=[]),Ze(!0),Cn.page=Lr,Pt(!0),Yn.next=6,Dn({type:"exercise/getRedoModal",payload:Object(l.a)(Object(l.a)({},Cn),{},{score:((Cn==null?void 0:Cn.one)||0)+"".concat(Cn!=null&&Cn.two?","+(Cn==null?void 0:Cn.two):"")})});case 6:Tt=Yn.sent,(Tt==null||((_r=Tt.exercise_users)===null||_r===void 0)?void 0:_r.length)0?n.a.createElement("p",null,"\u9009\u62E9\u73ED\u7EA7\uFF1A"):n.a.createElement("p",null,"\u6682\u65E0\u5206\u73ED"),n.a.createElement(Se.a.Group,{value:Cn,onChange:Pt},ma.map(function(an){return n.a.createElement(Se.a,{key:an.id,value:an.id},an.name)}))),n.a.createElement("p",{style:{marginBottom:40},className:"c-grey-999 mt40"},"\u8BF4\u660E\uFF1A\u5E73\u53F0\u76EE\u524D\u4EC5\u652F\u6301java\u3001python\u3001c\u3001c++\u3001php\u3001xml\u3001matlab\u8BED\u8A00\u7684\u5B9E\u8BAD\u9898\u548C\u7F16\u7A0B\u9898\u7684\u4EE3\u7801\u67E5\u91CD\u3002")),n.a.createElement("div",{className:Na.a.footer},n.a.createElement(Se.a,{checked:Ce,onChange:function(gn){var bt=gn.target.checked?ma.map(function(Qn){return Qn.id}):[];nr(bt),Ze(gn.target.checked)}},"\u5168\u9009"),n.a.createElement(p.a,{onClick:St},"\u53D6\u6D88"),n.a.createElement(p.a,{onClick:it,type:"primary"},"\u786E\u8BA4"))))},Jt=Object(x.a)(function(Ln){var Wt=Ln.exercise;return{exercise:Wt}})(Ma),Rt=y("Fzz4"),An=y("DZo9"),aa=y("8z0m"),ra=y("/MfK"),Fn=y("w5pM"),da=y("jN4g"),Ta=y("xvlK"),Wa=y("dfu6"),ue=B.a.TabPane,ot=function(Wt){var Rn,Ra=Wt.exercise,la=Wt.loading,Mn=Wt.dispatch,Ca=Object(h.i)(),Dn=Object(h.h)(),ma=dt.a.useForm(),ga=Object(s.a)(ma,1),ja=ga[0],Xa=Object(v.useState)({}),Cn=Object(s.a)(Xa,2),nr=Cn[0],$e=Cn[1],vt=Object(v.useState)("1"),_t=Object(s.a)(vt,2),Xe=_t[0],Ee=_t[1];return Object(v.useEffect)(function(){Ra.actionTabs.key==="addIp"&&(ja.resetFields(),Ee("1"))},[Ra.actionTabs]),n.a.createElement(i.a,{centered:!0,title:"\u6DFB\u52A0IP\u8303\u56F4",visible:Ra.actionTabs.key==="addIp",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:600,bodyStyle:{minHeight:200},onOk:Object(c.a)(C.a.mark(function Be(){var Ce;return C.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ke.next=2,ja.validateFields();case 2:if(nr.ip){Ke.next=7;break}if(Ce=nr.startIP.split(".")[3],!(parseInt(Ce)>parseInt(nr.endIP))){Ke.next=7;break}return d.b.warn("IP\u533A\u95F4\u6BB5\u4E0D\u5408\u6CD5"),Ke.abrupt("return");case 7:Mn({type:"exercise/setActionTabs",payload:{key:"insterIp",data:Object(l.a)({},ja.getFieldValue()),type:Ra.actionTabs.type}});case 8:case"end":return Ke.stop()}},Be)})),onCancel:function(){Mn({type:"exercise/setActionTabs",payload:{}})}},n.a.createElement("section",{className:"pl10 pr10"},n.a.createElement(B.a,{activeKey:Xe,onChange:function(Ce){Ee(Ce),ja.resetFields()}},n.a.createElement(ue,{tab:"\u65B0\u589EIP\u5730\u5740",key:"1"}),n.a.createElement(ue,{tab:"\u65B0\u589EIP\u8303\u56F4",key:"2"})),n.a.createElement(dt.a,{form:ja,className:"pt30",name:"form",layout:"vertical",onValuesChange:function(Ce,Ze){$e(Object(l.a)({},Ze))}},Xe==="1"&&n.a.createElement(dt.a.Item,{name:"ip",rules:[{required:!0,message:"\u8BF7\u8F93\u5165IP\u5730\u5740"}],label:"IP\u5730\u5740"},n.a.createElement(nn.a,{open:!1,tokenSeparators:[";",",","\uFF1B"],size:"large",mode:"tags",style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165IP\u5730\u5740,\u53EF\u540C\u65F6\u6DFB\u52A0\u591A\u4E2AIP\u5730\u5740\uFF0C\u4E2D\u95F4\u7528\u82F1\u6587\u7684\u5206\u53F7\u95F4\u9694\u3002",onChange:function(Ce){ja.setFieldsValue({ip:Object(t.a)(Ce.filter(function(Ze){return Object(Wa.a)(Ze)?!0:(d.b.warn("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"),!1)}))})}})),Xe==="2"&&n.a.createElement(me.a,{gutter:[20,20]},n.a.createElement(Ae.a,{flex:"1"},n.a.createElement(dt.a.Item,{name:"startIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740"}],label:"\u8D77\u59CBIP\u5730\u5740"},n.a.createElement(le.a,{maxLength:15,placeholder:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740",onBlur:function(Ce){var Ze="";Object(Wa.a)(Ce.target.value)?Ze=Ce.target.value:(Ze="",d.b.warn("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165")),ja.setFieldsValue({startIP:Ze})}}))),n.a.createElement(Ae.a,{flex:"1"},n.a.createElement(dt.a.Item,{name:"endIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740"},{pattern:/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/,message:"\u8BF7\u8F93\u51650-255\u7684\u7F51\u6BB5"}],label:"\u7ED3\u675FIP\u5730\u5740"},n.a.createElement(le.a,{onBlur:function(Ce){},prefix:n.a.createElement("span",{className:"font14"},(Rn=nr.startIP)===null||Rn===void 0?void 0:Rn.substring(0,nr.startIP.lastIndexOf("."))),maxLength:3,placeholder:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740\u7684\u540E\u4E09\u4F4D"})))))))},lt=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading;return{exercise:Wt,loading:Rn}})(ot),ft=y("2JKx"),wt=y.n(ft),Et=y("Ot1p"),jt=y("+BJd"),Yt=y("mr32"),wn=B.a.TabPane,fn=nn.a.Option,zn=function(Wt){var Rn,Ra,la,Mn=Wt.exercise,Ca=Wt.loading,Dn=Wt.data,ma=Wt.disabled,ga=Wt.updata,ja=Wt.dispatch,Xa=Object(h.i)(),Cn=Object(h.h)(),nr=dt.a.useForm(),$e=Object(s.a)(nr,1),vt=$e[0],_t=Object(v.useState)({}),Xe=Object(s.a)(_t,2),Ee=Xe[0],Be=Xe[1],Ce=Object(v.useState)("1"),Ze=Object(s.a)(Ce,2),Ke=Ze[0],St=Ze[1],it=Mn.workSetting,Pt=Mn.commonHeader,an=Object(v.useState)(!1),gn=Object(s.a)(an,2),bt=gn[0],Qn=gn[1],wa=Object(v.useState)([]),tr=Object(s.a)(wa,2),Ya=tr[0],ar=tr[1],Ar=Object(v.useState)([]),hr=Object(s.a)(Ar,2),sr=hr[0],va=hr[1],_a=Object(v.useState)(!1),ur=Object(s.a)(_a,2),Ba=ur[0],oa=ur[1],Ua=Object(v.useState)([]),Er=Object(s.a)(Ua,2),Ka=Er[0],yt=Er[1],qa=Object(v.useState)([]),Lr=Object(s.a)(qa,2),_r=Lr[0],Tt=Lr[1],pr=Object(v.useState)({id:Xa.categoryId,exercise_group_id:[]}),Yn=Object(s.a)(pr,2),vr=Yn[0],wr=Yn[1],Xr=Object(v.useState)(0),ai=Object(s.a)(Xr,2),$r=ai[0],ei=ai[1];Object(v.useMemo)(function(){var dr,ka,kr;if(it!=null&&(dr=it.published_course_groups)!==null&&dr!==void 0&&dr.length){var Yr,jr=Object(t.a)(it==null||((Yr=it.published_course_groups)===null||Yr===void 0)?void 0:Yr.map(function(pi){return Object(t.a)(pi.course_group_id)}).flat());ar(Object(t.a)(jr))}else if(it!=null&&it.published_course_groups){var rr;ar(Object(t.a)(it==null||((rr=it.course_groups)===null||rr===void 0)?void 0:rr.map(function(pi){return pi.course_group_id})))}if(it!=null&&(ka=it.exercise)!==null&&ka!==void 0&&ka.group_make_ups||it!=null&&(kr=it.exercise)!==null&&kr!==void 0&&kr.unified_make_up){var Rr;if(oa(!0),it!=null&&(Rr=it.exercise)!==null&&Rr!==void 0&&Rr.group_make_ups){var ti,ri,hi=sr;it==null||((ti=it.exercise)===null||ti===void 0||((ri=ti.group_make_ups)===null||ri===void 0))||ri.map(function(pi,mi){hi[mi]=pi.course_group_id||[]}),va(Object(t.a)(hi))}}},[it]),Object(v.useEffect)(function(){console.log("groupIds:",Ya)},[Ya]),Object(v.useEffect)(function(){console.log("selectGroupIds:",sr)},[sr]);var Or=function(){var dr=Object(c.a)(C.a.mark(function ka(kr){var Yr;return C.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:return rr.next=2,Object(U.L)(Object(l.a)({},vr));case 2:Yr=rr.sent,Tt(Object(t.a)(Yr.users.map(function(Rr){return Rr.key=String(Rr.id),Rr}).filter(function(Rr){var ti;return console.log("openKeys",Dn.group_make_ups[$r].students,$r),!((ti=Dn.group_make_ups[$r].students)!==null&&ti!==void 0&&ti.some(function(ri){return ri.id===Rr.id}))})));case 4:case"end":return rr.stop()}},ka)}));return function(kr){return dr.apply(this,arguments)}}(),za=[,{title:"\u5B66\u751F\u59D3\u540D",dataIndex:"name"},{title:"\u5206\u73ED",dataIndex:"course_group_name"}],La={onChange:function(ka,kr){yt(Object(t.a)(kr)),console.log("selectedRowKeys: ".concat(ka),"selectedRows: ",kr)},getCheckboxProps:function(ka){return{disabled:ka.name==="Disabled User",name:ka.name}}},sa=function(ka){return ma?!0:Pt.exercise_status!==3},In=function(ka){var kr,Yr,jr;return ma?!0:Pt.exercise_status===2&&!(it!=null&&(kr=it.exercise)!==null&&kr!==void 0&&(Yr=kr.group_make_ups)!==null&&Yr!==void 0&&(jr=Yr[ka])!==null&&jr!==void 0&&jr.course_groups)?!1:Pt.exercise_status!==3},cr=function(ka){if(ma)return!0;if(Pt.exercise_status===2){var kr,Yr,jr;return it==null||((kr=it.exercise)===null||kr===void 0||((Yr=kr.group_make_ups)===null||Yr===void 0||((jr=Yr[ka])===null||jr===void 0)))?void 0:jr.is_all}return Pt.exercise_status!==3};return n.a.createElement(n.a.Fragment,null,n.a.createElement(me.a,null,n.a.createElement(Ae.a,{span:24},n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,{flex:"1"},n.a.createElement("h1",{className:"mt15"},"\u8865\u8003\u8BBE\u7F6E"," ",n.a.createElement("span",{className:"c-red font14"},"\uFF08\u6B63\u5F0F\u5F00\u59CB\u8865\u8003\u524D\uFF0C\u5207\u8BB0\u4FEE\u6539\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u5927\u4E8E\u5F53\u524D\u65F6\u95F4\uFF09"))))),n.a.createElement(Ae.a,{span:24,className:"mt10"},n.a.createElement(Se.a,{checked:Dn.unified_make_up||((Rn=Dn.group_make_ups)===null||Rn===void 0?void 0:Rn.length),disabled:ma,onChange:function(ka){ka.target.checked?Dn.unified_make_up=!0:(Dn.unified_make_up=!1,delete Dn.group_make_ups),oa(ka.target.checked)}},n.a.createElement("strong",null,"\u5F00\u542F\u8865\u8003")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u5F00\u542F\u540E\u53EF\u9488\u5BF9\u672A\u7B54\u5377\u7684\u5B66\u751F\u8BBE\u7F6E\u8865\u8003\uFF0C\u8865\u8003\u4E0E\u5EF6\u957F\u622A\u6B62\u65F6\u95F4\u4E0D\u53EF\u5171\u5B58\uFF09"))),Ba&&n.a.createElement("section",{className:"ml40"},n.a.createElement(me.a,{align:"middle",className:"mt10"},n.a.createElement(Ae.a,null,n.a.createElement(N.a,{checked:Dn.unified_make_up,disabled:ma,onClick:function(){Dn.unified_make_up=!0,delete Dn.group_make_ups,ga(Object(l.a)({},Dn))}},"\u6240\u6709\u5206\u73ED\u7EDF\u4E00\u8865\u8003")),n.a.createElement(Ae.a,null,n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,{className:"ml50"},"\u8865\u8003\u6263\u5206"),n.a.createElement(Ae.a,{className:"ml10 mr10"},n.a.createElement($.a,{min:0,max:100,placeholder:"\u4E3A\u7A7A\u4EE3\u8868\u4E0D\u6263\u5206",disabled:ma||Pt.exercise_status!==3,onChange:function(ka){Dn.make_up_score=ka,ga(Object(l.a)({},Dn))},value:Dn.make_up_score,style:{width:150}})),n.a.createElement(Ae.a,null,"(\u5206)")))),((Ra=it.course_groups)===null||Ra===void 0?void 0:Ra.length)>0&&n.a.createElement(me.a,{align:"middle",className:"mt10"},n.a.createElement(Ae.a,null,n.a.createElement(N.a,{disabled:ma||Pt.exercise_status!==3,checked:Dn.group_make_ups,onClick:function(){var ka;delete Dn.unified_make_up,Dn.group_make_ups=(it==null||((ka=it.exercise)===null||ka===void 0)?void 0:ka.group_make_ups)||[{students:[],course_group_id:[],score:0}],ga(Object(l.a)({},Dn))}},"\u5404\u73ED\u5206\u522B\u8865\u8003"))),(la=Dn.group_make_ups)===null||la===void 0?void 0:la.map(function(dr,ka){var kr,Yr;return n.a.createElement("div",{key:ka},n.a.createElement(me.a,{align:"middle",className:"mt10"},n.a.createElement(Ae.a,{flex:"100px"},"\u8865\u8003\u89C4\u5219",ka+1),n.a.createElement(Ae.a,{className:"ml10"},n.a.createElement(nn.a,{style:{width:307},value:dr.course_group_id,mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED",disabled:In(ka),onChange:function(rr,Rr,ti){sr[ka]=rr,Dn.group_make_ups[ka].course_group_id=rr,ga(Object(l.a)({},Dn)),va(Object(t.a)(sr))}},it==null||((kr=it.course_groups)===null||kr===void 0)?void 0:kr.map(function(jr,rr){var Rr=[];return Ya.includes(jr.course_group_id)?(sr.length&&(Rr=sr.filter(function(ti,ri){return ka===ri?!1:!!ti.includes(jr.course_group_id)})),Rr.length?void 0:n.a.createElement(fn,{value:jr.course_group_id,key:rr},jr.course_group_name)):void 0}))),n.a.createElement(Ae.a,null,n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,{className:"ml50"},"\u8865\u8003\u6263\u5206"),n.a.createElement(Ae.a,{className:"ml10 mr10"},n.a.createElement($.a,{value:dr.score,min:0,max:100,style:{width:150},placeholder:"\u4E3A\u7A7A\u4EE3\u8868\u4E0D\u6263\u5206",disabled:In(ka),onChange:function(rr){Dn.group_make_ups[ka].score=rr,ga(Object(l.a)({},Dn))}})),n.a.createElement(Ae.a,null,"(\u5206)")))),n.a.createElement(me.a,{className:"mt20"},n.a.createElement(Ae.a,{flex:"220px"},n.a.createElement(N.a.Group,{name:"student",value:dr.is_all,disabled:cr(ka),onChange:function(rr){if(rr.target.value)delete Dn.group_make_ups[ka].students;else{var Rr,ti,ri;Dn.group_make_ups[ka].students=(it==null||((Rr=it.exercise)===null||Rr===void 0||((ti=Rr.group_make_ups)===null||ti===void 0||((ri=ti[ka])===null||ri===void 0)))?void 0:ri.students)||[]}Dn.group_make_ups[ka].is_all=rr.target.value,ga(Object(l.a)({},Dn))}},n.a.createElement(N.a,{value:!0},"\u5168\u90E8\u672A\u7B54\u5B66\u751F"),n.a.createElement(N.a,{value:!1},"\u6307\u5B9A\u5B66\u751F"))),n.a.createElement(Ae.a,{flex:"1"},!Dn.group_make_ups[ka].is_all&&n.a.createElement("div",{onClick:function(){var rr;if(!((rr=sr[ka])!==null&&rr!==void 0&&rr.length)){d.b.warn("\u8BF7\u5148\u9009\u62E9\u8865\u8003\u73ED\u7EA7");return}ma||(vr.exercise_group_id=sr[ka],Qn(!0),yt([]),ei(ka),Tt([]),Or({page:1}))},className:"".concat(ma&&"disabledStyle"),style:{minHeight:28,border:"1px solid #ccc",padding:4}},(Yr=dr.students)===null||Yr===void 0?void 0:Yr.map(function(jr,rr){return n.a.createElement(Yt.a,{key:rr,closable:jr.add||Pt.exercise_status>2,onClose:function(){dr.students.splice(rr,1),ga(Object(l.a)({},Dn))}},jr.name)}))),n.a.createElement(Ae.a,{flex:"100px",className:"tr"},ka>0&&Pt.exercise_status===3&&n.a.createElement(ra.a,{onClick:function(){Dn.group_make_ups.splice(ka,1),ga(Object(l.a)({},Dn))}}),n.a.createElement(Fn.a,{className:"c-green ml20",onClick:function(){Dn.group_make_ups.push({students:[],course_group_id:[],score:0,is_all:!0}),ga(Object(l.a)({},Dn))}}))))}),n.a.createElement(i.a,{title:"\u6307\u5B9A\u8865\u8003\u5B66\u751F",visible:bt,onCancel:function(){return Qn(!1)},destroyOnClose:!0,onOk:function(){Dn.group_make_ups[$r].students=Dn.group_make_ups[$r].students.concat(Ka.map(function(ka){return ka.add=!0,ka})),Qn(!1),console.log("data:",Dn),ga(Object(l.a)({},Dn))}},n.a.createElement(W.a,{columns:[].concat(za),dataSource:Object(t.a)(_r),rowSelection:Object(l.a)({type:"checkbox"},La),pagination:{pageSize:10,defaultCurrent:1}}))))},jn=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading;return{exercise:Wt,loading:Rn}})(zn),$t=y("m3rI"),yn=le.a.TextArea,pn=mt.a.RangePicker,On=nn.a.Option,cn=function(Wt){var Rn,Ra,la,Mn,Ca,Dn,ma,ga,ja,Xa,Cn=Wt.exercise,nr=Wt.globalSetting,$e=Wt.loading,vt=Wt.dispatch,_t=Object(h.i)(),Xe=Object(h.h)(),Ee=Cn.workSetting,Be=Cn.commonHeader,Ce=Object(v.useState)(!0),Ze=Object(s.a)(Ce,2),Ke=Ze[0],St=Ze[1],it=Object(v.useState)([]),Pt=Object(s.a)(it,2),an=Pt[0],gn=Pt[1],bt=Object(v.useState)({}),Qn=Object(s.a)(bt,2),wa=Qn[0],tr=Qn[1],Ya=Object(v.useState)([]),ar=Object(s.a)(Ya,2),Ar=ar[0],hr=ar[1],sr=Object(v.useState)(),va=Object(s.a)(sr,2),_a=va[0],ur=va[1],Ba=dt.a.useForm(),oa=Object(s.a)(Ba,1),Ua=oa[0],Er=Object(v.useState)([]),Ka=Object(s.a)(Er,2),yt=Ka[0],qa=Ka[1],Lr=Object(v.useState)({ip_bind:!1,export_page_num:40,ip_limit:null,public_ip:[],inner_ip:[],screen_open:!1,screen_num:3,screen_sec:5,open_camera:!1,identity_verify:!1,open_phone_video_recording:!1,photo_count:5,open_make_up:!1,unified_setting:!1,publish_time:"",end_time:"",group_make_ups:[],unified_make_up:!1,make_up_score:0,time:"",choice_random:!1,question_random:!1,show_statistic:!1,assistant_auth:!1,answer_open:!1,score_open:!1,answered_open:!0,open_score:!0,open_total_score:!0,file_list:[],show_title:!1,show_body:!1,show_info:!1,show_table:!0,show_user:!1,show_no:!1,show_group:!0,show_desc:!1,description:"",attachment_id:"",enable_last_times:!1,last_times:1}),_r=Object(s.a)(Lr,2),Tt=_r[0],pr=_r[1];_t.category=_t.categoryId,Object(v.useEffect)(function(){wr()},[Ee]),Object(v.useEffect)(function(){vt({type:"exercise/getWorkSetting",payload:Object(l.a)({},_t)}),Object(Je.s)()||Yn()},[]);function Yn(){return vr.apply(this,arguments)}function vr(){return vr=Object(c.a)(C.a.mark(function sa(){var In;return C.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(_.a)("/api/courses/".concat(_t==null?void 0:_t.coursesId,"/exercises/overload_alert.json"),{method:"get",params:{course_id:_t==null?void 0:_t.coursesId}});case 2:In=dr.sent,ur(In==null?void 0:In.alert);case 4:case"end":return dr.stop()}},sa)})),vr.apply(this,arguments)}Object(v.useEffect)(function(){Cn.actionTabs.key==="insterIp"&&(Cn.actionTabs.data.ip?Tt[Cn.actionTabs.type]=[].concat(Object(t.a)(Tt[Cn.actionTabs.type]||[]),Object(t.a)(Cn.actionTabs.data.ip)):Tt[Cn.actionTabs.type]=[].concat(Object(t.a)(Tt[Cn.actionTabs.type]||[]),["".concat(Cn.actionTabs.data.startIP,",").concat(Cn.actionTabs.data.startIP.substring(0,Cn.actionTabs.data.startIP.lastIndexOf("."))+"."+Cn.actionTabs.data.endIP)]),pr(Object(l.a)({},Tt)))},[Cn.actionTabs]);var wr=function(){var In,cr,dr,ka,kr,Yr,jr,rr=JSON.parse(JSON.stringify(Ee));Object.keys(Tt).map(function(Rr){var ti,ri,hi;if(Tt[Rr]=(rr==null||((ti=rr.exercise)===null||ti===void 0)?void 0:ti[Rr])||(rr==null||((ri=rr.exercise_header)===null||ri===void 0)?void 0:ri[Rr]),rr!=null&&(hi=rr.exercise_header)!==null&&hi!==void 0&&hi[Rr]){var pi;Tt[Rr]=rr==null||((pi=rr.exercise_header)===null||pi===void 0)?void 0:pi[Rr]}else{var mi;Tt[Rr]=rr==null||((mi=rr.exercise)===null||mi===void 0)?void 0:mi[Rr]}}),Tt.file_list=rr!=null&&(In=rr.exercise_header)!==null&&In!==void 0&&In.attachment_id?[{uid:rr==null||((cr=rr.exercise_header)===null||cr===void 0)?void 0:cr.attachment_id,id:rr==null||((dr=rr.exercise_header)===null||dr===void 0)?void 0:dr.attachment_id,url:rr==null||((ka=rr.exercise_header)===null||ka===void 0)?void 0:ka.photo_url}]:[],yt=(rr==null||((kr=rr.published_course_groups)===null||kr===void 0)?void 0:kr.map(function(Rr){return{course_group_id:Rr.course_group_id,end_time:Rr.course_end_time,publish_time:Rr.course_publish_time}}))||[{}],Ee==null||((Yr=Ee.course_groups)===null||Yr===void 0)||Yr.map(function(Rr,ti){Rr.cilckkey="",Rr.isselect=!1}),Ee==null||((jr=Ee.course_groups)===null||jr===void 0)||jr.map(function(Rr,ti){var ri;Ee==null||((ri=Ee.published_course_groups)===null||ri===void 0)||ri.map(function(hi,pi){var mi;hi!=null&&(mi=hi.course_group_id)!==null&&mi!==void 0&&mi.includes(Rr==null?void 0:Rr.course_group_id)&&(Rr.cilckkey=pi,Rr.isselect=!0)})}),console.log("data:",Tt,Ee),pr(Tt),qa(yt)},Xr=function(){var In,cr,dr,ka,kr,Yr=JSON.parse(JSON.stringify(Tt));if(Yr.categoryId=_t.categoryId,Yr.publish_time_groups=yt,Yr.attachment_id=((In=Yr.file_list)===null||In===void 0||((cr=In[0])===null||cr===void 0||((dr=cr.response)===null||dr===void 0))?void 0:dr.id)||null,delete Yr.file_list,Tt.unified_setting){if(!Tt.publish_time||!Tt.end_time)throw d.b.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")}else{if(!yt.length){d.b.warn("\u63D0\u4EA4\u5931\u8D25\uFF1A\u5206\u73ED\u53D1\u5E03\u8BBE\u7F6E\u4E0D\u80FD\u4E3A\u7A7A");return}delete Yr.publish_time,delete Yr.end_time,yt.map(function(rr){var Rr;if(!rr.course_group_id||!((Rr=rr.course_group_id)!==null&&Rr!==void 0&&Rr.length))throw d.b.error("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A");if(!rr.publish_time||!rr.end_time)throw d.b.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")})}if(Tt.open_camera&&Tt.photo_count<1)throw d.b.error("\u8BF7\u586B\u5199\u672C\u573A\u8003\u8BD5\u6700\u5927\u62CD\u6444\u6B21\u6570"),new String("\u8BF7\u586B\u5199\u672C\u573A\u8003\u8BD5\u6700\u5927\u62CD\u6444\u6B21\u6570");if(Tt.ip_limit!=="no"&&!((ka=Tt.public_ip)!==null&&ka!==void 0&&ka.length)&&!((kr=Tt.inner_ip)!==null&&kr!==void 0&&kr.length))throw d.b.error("\u8BF7\u586B\u5199\u516C\u7F51IP\u6216\u5185\u7F51IP\u5730\u5740"),new String("\u8BF7\u586B\u5199\u5185\u7F51IP\u5730\u5740");if(Tt.open_camera||Tt.screen_open)var jr=i.a.confirm({title:"\u8003\u8BD5\u8BF4\u660E",className:"custom-modal-divider",icon:null,width:750,content:n.a.createElement("div",{className:"font16 p20"},Tt.open_camera&&n.a.createElement(me.a,{align:"",justify:"start",className:"mt20"},n.a.createElement(Ae.a,{flex:"24px"},n.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),n.a.createElement(Ae.a,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u6444\u50CF\u9632\u4F5C\u5F0A\u529F\u80FD\uFF0C",n.a.createElement("span",{className:"c-red"},"\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907"),"\u3002Educoder\u5E73\u53F0\u5C06\u4F1A\u4E25\u683C\u4FDD\u62A4\u6240\u6709\u5B66\u751F\u7684\u7167\u7247\u548C\u89C6\u9891\uFF0C\u5E76\u627F\u8BFA\u4E0D\u5728\u672C\u5E73\u53F0\u4EE5\u5916\u4F7F\u7528\u3002",n.a.createElement("br",null),"\u8BF7\u786E\u8BA4\uFF1A\u4E3A\u4E25\u683C\u76D1\u7763\u8003\u8BD5\u4EE5\u83B7\u5F97\u516C\u5E73\uFF0C\u60A8\u540C\u610F\u5E76\u548C\u8981\u6C42Educoder\u5E73\u53F0\u5728\u672C\u6B21\u8003\u8BD5\u4E2D\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907\u5E76\u83B7\u53D6\u5B66\u751F\u7684\u5F71\u50CF\u4FE1\u606F\u3002")),Tt.screen_open&&n.a.createElement(me.a,{justify:"start",className:"mt20"},n.a.createElement(Ae.a,{flex:"24px",className:"mr20"},n.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),n.a.createElement(Ae.a,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u9632\u5207\u5C4F\u529F\u80FD\uFF0C\u8FD9\u9879\u529F\u80FD\u6682\u65F6\u4EC5\u652F\u6301\u8C37\u6B4C\u3001\u706B\u72D0\u6D4F\u89C8\u5668\u3002 \u8BF7\u786E\u4FDD\uFF1A\u5728\u6B63\u5F0F\u5F00\u59CB\u8003\u8BD5\u524D\u901A\u77E5\u5168\u4F53\u5B66\u751F\uFF0C\u4F7F\u7528"," ",n.a.createElement("img",{width:"26",src:bn.e})," ",n.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C\u6D4F\u89C8\u5668"),"\u6216",n.a.createElement("img",{width:"26",src:bn.n})," ",n.a.createElement("span",{className:"c-red"},"\u706B\u72D0\u6D4F\u89C8\u5668"),"\u8FDB\u884C\u8003\u8BD5\u3002")),n.a.createElement("p",{className:"ml40 mt40"},n.a.createElement(Se.a,{onChange:function(Rr){return jr.update({okButtonProps:{disabled:!Rr.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){ai(Yr)},okButtonProps:{disabled:!0}});else ai(Yr)},ai=function(In){Object(U.db)(Object(l.a)({},In)).then(function(cr){cr.status===0&&(d.b.success("\u66F4\u65B0\u6210\u529F"),vt({type:"exercise/getCommonHeader",payload:Object(l.a)({},_t)}),vt({type:"exercise/getWorkSetting",payload:Object(l.a)({},_t)}),St(!0))})},$r=function(In){return In&&In1&&!(In!=null&&In.new)?!0:Ee!=null&&(dr=Ee.published_course_groups)!==null&&dr!==void 0&&dr.some(function(ka){return ka.course_group_id===In.course_group_id})?Ke:!1},za=function(In){var cr,dr;if(Ke)return[!0,!0];if((Ee==null||((cr=Ee.exercise)===null||cr===void 0)?void 0:cr.exercise_status)>1)return In!=null&&In.new?[!1,!1]:[!0,!1];if(Ee!=null&&(dr=Ee.published_course_groups)!==null&&dr!==void 0&&dr.some(function(kr){return kr.course_group_id===In.course_group_id})){var ka;return Ke||(Ee==null||((ka=Ee.exercise)===null||ka===void 0)?void 0:ka.exercise_status)>1?[!0,!1]:[!1,!1]}else return[!1,!1]},La={disabled:Ke,multiple:!1,listType:"picture-card",onPreview:function(In){Ot.a.publish("preview-image",In.thumbUrl)},withCredentials:!0,fileList:Tt.file_list,beforeUpload:function(In){var cr=In.size/1024;return cr>200?(d.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(200KB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),!1):!0},action:"".concat($t.a.API_SERVER,"/api/attachments.json"),onChange:function(In){var cr=In.fileList.filter(function(dr){return!!dr.status});Tt.file_list=cr,pr(Object.assign({},Tt))},onRemove:function(){var sa=Object(c.a)(C.a.mark(function cr(dr){return C.a.wrap(function(kr){for(;;)switch(kr.prev=kr.next){case 0:return Tt.file_list=[],pr(Object.assign({},Tt)),kr.abrupt("return",!0);case 3:case"end":return kr.stop()}},cr)}));function In(cr){return sa.apply(this,arguments)}return In}()};return n.a.createElement("section",{className:[wt.a.form,"mb50 bg-white"].join(" ")},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{span:24},n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,{flex:"1"},n.a.createElement("h1",{className:"mt15"},"\u53D1\u5E03\u8BBE\u7F6E")),n.a.createElement(Ae.a,null,Object(Je.c)()&&Ke&&n.a.createElement(p.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return St(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")))),((Rn=Ee.course_groups)===null||Rn===void 0?void 0:Rn.length)>0&&n.a.createElement(Ae.a,{span:24,className:"mt10"},n.a.createElement(Se.a,{checked:Tt.unified_setting,disabled:Ke||(Ee==null||((Ra=Ee.exercise)===null||Ra===void 0)?void 0:Ra.exercise_status)>1,onChange:function(){var In;if((Ee==null||((In=Ee.exercise)===null||In===void 0)?void 0:In.exercise_status)>1){d.b.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u5206\u73ED\u7EDF\u4E00\u53D1\u5E03");return}Tt.unified_setting=!Tt.unified_setting,Tt.unified_setting===!1&&yt==""&&qa(yt.concat({})),pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5206\u73ED\u7EDF\u4E00\u53D1\u5E03")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\u5219\u6240\u6709\u5206\u73ED\u4F7F\u7528\u76F8\u540C\u7684\u53D1\u5E03\u8BBE\u7F6E\uFF0C\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u53EF\u4FEE\u6539\uFF1B\u5426\u5219\u5404\u4E2A\u5206\u73ED\u5141\u8BB8\u5355\u72EC\u8BBE\u7F6E)")),n.a.createElement("span",{style:{color:"red"}},(Ee==null||((la=Ee.exercise)===null||la===void 0)?void 0:la.exercise_status)>1&&_a&&"\u5F53\u524D\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\uFF0C\u4E3A\u63D0\u4F9B\u66F4\u597D\u7684\u670D\u52A1\uFF0C\u6211\u4EEC\u5C06\u8FDB\u884C\u670D\u52A1\u5668\u6269\u5BB9\uFF0C\u5EFA\u8BAE\u60A8\u572830\u5206\u949F\u540E\u53D1\u8D77\u8003\u8BD5\u3002\u60A8\u4E5F\u53EF\u4EE5\u7ACB\u5373\u53D1\u5E03\u3002")),Tt.unified_setting&&n.a.createElement("div",null,n.a.createElement(me.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(Ae.a,null,"\u53D1\u5E03\u65F6\u95F4:"),n.a.createElement(Ae.a,{className:"ml5"},n.a.createElement(Ue.a,{placement:"bottom",title:(Ee==null||((Mn=Ee.exercise)===null||Mn===void 0)?void 0:Mn.exercise_status)>1&&"\u53D1\u5E03\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u4E0D\u80FD\u4FEE\u6539"},n.a.createElement(mt.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:pe()(Object(F.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabledDate:$r,disabled:Ke||(Ee==null||((Ca=Ee.exercise)===null||Ca===void 0)?void 0:Ca.exercise_status)>1,value:Tt.publish_time?pe()(Tt.publish_time):"",allowClear:!1,onChange:function(In,cr){Tt.publish_time=cr,Tt.end_time||(Tt.end_time=pe()(In).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),pr(Object.assign({},Tt))}}))),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u5F00\u59CB\u7B54\u9898\u65F6\u95F4)"))),n.a.createElement(me.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(Ae.a,null,"\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(Ae.a,{className:"ml5"},n.a.createElement(mt.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:pe()(Object(F.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Ke,allowClear:!1,value:Tt.end_time?pe()(Tt.end_time):"",disabledDate:ei,onChange:function(In,cr){Tt.end_time=cr,pr(Object.assign({},Tt))}})),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u7ED3\u675F\u7B54\u9898\u65F6\u95F4)")))),!Tt.unified_setting&&n.a.createElement(me.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},n.a.createElement(Ae.a,{span:24},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{span:10}),n.a.createElement(Ae.a,{span:9},n.a.createElement(me.a,{className:"c-grey-c"},n.a.createElement(Ae.a,{flex:"1"},"(\u5B66\u751F\u5F00\u59CB\u7B54\u9898\u65F6\u95F4)"),n.a.createElement(Ae.a,{flex:"1"},"(\u5B66\u751F\u7ED3\u675F\u7B54\u9898\u65F6\u95F4)"))),n.a.createElement(Ae.a,{span:4}))),yt&&yt.map(function(sa,In){return n.a.createElement(Ae.a,{span:24,key:In},n.a.createElement(me.a,{gutter:[8,16]},n.a.createElement(Ae.a,{span:9},n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,"\u53D1\u5E03\u89C4\u5219 ",In+1),n.a.createElement(Ae.a,{style:{flexBasis:332}},n.a.createElement(nn.a,{allowClear:!0,disabled:Or(sa),className:"ml20",mode:"multiple",size:"large",style:{width:"100%"},value:sa.course_group_id,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",optionFilterProp:"label",onChange:function(dr){yt[In].course_group_id=dr,gn(yt.map(function(ka){return ka.course_group_id}).toString().split(",")),qa(yt.slice()),Ee.course_groups.map(function(ka,kr){dr.map(function(Yr,jr){ka.course_group_id===Yr&&(ka.cilckkey=In,ka.isselect=!0)})}),console.log(Ee,"workSetting")},onDeselect:function(dr){Ee.course_groups.map(function(ka,kr){ka.course_group_id===dr&&ka.cilckkey===In&&(ka.cilckkey=In,ka.isselect=!1)})}},Ee.course_groups&&Ee.course_groups.map(function(cr,dr){return n.a.createElement(On,Object(st.a)({key:dr,disabled:(cr==null?void 0:cr.isselect)&&cr.cilckkey!=In,label:cr.course_group_name,value:cr.course_group_id},"key",cr.course_group_id),cr.course_group_name)}))))),n.a.createElement(Ae.a,{span:1}),n.a.createElement(Ae.a,{span:9},n.a.createElement(pn,{disabled:za(sa),disabledDate:$r,style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],showTime:{format:"HH:mm",defaultValue:[pe()(Object(F.d)(),"HH:mm"),pe()(Object(F.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",size:"large",value:sa.publish_time&&[pe()(sa.publish_time),sa.end_time&&pe()(sa.end_time)],onChange:function(dr,ka){Or(sa)||(yt[In].publish_time=ka[0]),yt[In].end_time=ka[1],qa(Object(t.a)(yt))}})),!Ke&&n.a.createElement(Ae.a,{span:4},In>0&&(sa==null?void 0:sa.new)&&n.a.createElement(ra.a,{onClick:function(){yt=yt.filter(function(dr,ka){return In!==ka}),qa(Object(t.a)(yt))}}),n.a.createElement(Fn.a,{className:"c-green ml20",onClick:function(){qa(yt.concat({new:!0}))}}))))})),n.a.createElement(Fe.a,null),((Be==null?void 0:Be.exercise_status)===3||Tt.open_make_up)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(jn,{data:Tt,disabled:Ke,updata:pr}),n.a.createElement(Fe.a,null)),n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement("strong",null,"\u7B54\u9898\u8BBE\u7F6E")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement("span",null,"\u7B54\u9898\u65F6\u957F\uFF1A"),n.a.createElement($.a,{size:"large",disabled:Ke,min:1,value:Tt.time===-1?null:Tt.time,onChange:function(In){Tt.time=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"ml10"},"\u5206\u949F"),n.a.createElement("span",{className:"c-grey-c font12 ml10"},"(\u7A7A\u503C\uFF0C\u4EE3\u8868\u4E0D\u9650\u65F6\u957F\uFF1B\u975E\u7A7A\u503C\uFF0C\u4EE3\u8868\u9650\u5236\u65F6\u957F\uFF0C\u4ECE\u5B66\u751F\u9996\u6B21\u7B54\u9898\u5F00\u59CB\u6301\u7EED\u8BA1\u65F6)")),!(Be!=null&&Be.is_random)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.question_random,disabled:Ke,onChange:function(In){Tt.question_random=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u9898\u76EE\u987A\u5E8F\u968F\u673A\u6253\u4E71")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9898\u76EE\u987A\u5E8F\u6309\u7167\u9898\u578B\u968F\u673A\u663E\u793A)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.choice_random,disabled:Ke,onChange:function(In){Tt.choice_random=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u9009\u9879\u987A\u5E8F\u968F\u673A\u6253\u4E71")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9009\u9879\u987A\u5E8F\u968F\u673A\u663E\u793A)"))),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.enable_last_times,disabled:Ke,onChange:function(In){Tt.enable_last_times=In.target.checked,pr(Object.assign({},Tt))}}),n.a.createElement("span",{className:"ml10 mr10"},"\u8003\u8BD5\u5F00\u59CB\u540E"),n.a.createElement($.a,{precision:0,size:"large",value:Tt==null?void 0:Tt.last_times,disabled:Ke||!Tt.enable_last_times,min:1,onChange:function(In){Tt.last_times=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"ml10"},"\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u8003\u8BD5"),n.a.createElement("span",{className:"c-grey-c font12 ml10"},"(\u9009\u4E2D\uFF0C\u5219\u8D85\u8FC7\u65F6\u95F4\u540E\uFF0C\u5B66\u751F\u65E0\u6CD5\u8FDB\u5165\u8003\u8BD5)"))),n.a.createElement(Fe.a,null),n.a.createElement(n.a.Fragment,null,n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement("strong",null,"\u9632\u4F5C\u5F0A\u8BBE\u7F6E")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.open_camera,disabled:Ke,onChange:function(In){if(!Tt.time){d.b.error("\u4E0D\u9650\u65F6\u957F\u7684\u8003\u8BD5\u4E0D\u53EF\u5F00\u542F\u6444\u50CF\u5934\uFF0C\u8BF7\u586B\u5199\u8003\u8BD5\u65F6\u957F");return}Tt.open_camera=In.target.checked,Tt.photo_count=Tt.photo_count||5,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u76D1\u8003")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53C2\u52A0\u8003\u8BD5\u65F6\u5C06\u4F1A\u8981\u6C42\u8C03\u7528\u6444\u50CF\u5934)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement("span",null,"\u672C\u573A\u8003\u8BD5\u6700\u591A\u62CD\u6444\uFF1A"),n.a.createElement($.a,{size:"large",disabled:Ke||!Tt.open_camera,min:1,defaultValue:5,max:Object(Je.v)()?1e3:10,value:Tt.photo_count,onChange:function(In){Tt.photo_count=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"ml10"},"(\u6B21)"),n.a.createElement("span",{className:"c-grey-c font12 ml10"},"(\u8BF7\u586B\u5199\u4E0D\u5927\u4E8E10\u7684\u6B63\u6574\u6570)")),n.a.createElement(Ae.a,{className:"c-grey-c font12 pl30 mt10"},"\u5982\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u5B66\u751F\u5FC5\u987B\u540C\u610F\u624D\u53EF\u4EE5\u53C2\u52A0\u8003\u8BD5\u3002"),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.screen_open,disabled:Ke,onChange:function(In){Tt.screen_open=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"))),Tt.screen_open&&n.a.createElement(Ae.a,{span:24,className:"mt15 pl30 font14"},n.a.createElement("span",{className:"c-grey-333 mr10"},"\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u5207\u6362\u9875\u9762\u8D85\u8FC7"),n.a.createElement($.a,{size:"large",disabled:Ke,min:0,defaultValue:3,max:10,value:Tt.screen_num,onChange:function(In){Tt.screen_num=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"c-grey-333 mr10"},"\uFF08\u6B21\uFF09\u540E\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF0C\u5207\u6362\u5230\u5176\u4ED6\u9875\u9762"),n.a.createElement($.a,{size:"large",disabled:Ke,min:0,defaultValue:5,max:60,value:Tt.screen_sec,onChange:function(In){Tt.screen_sec=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"c-grey-333"},"\uFF08\u79D2\uFF09\u540E\u5373\u5224\u5B9A\u4E3A\u5207\u5C4F\u3002")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.ip_limit!=="no",disabled:Ke,onChange:function(In){Tt.ip_limit==="no"?Tt.ip_limit="pub":Tt.ip_limit="no",pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP"),n.a.createElement("span",{className:"font12 c-grey-c"},"\uFF08\u4E0D\u5728IP\u8303\u56F4\u4E2D\u7684\u5C06\u65E0\u6CD5\u53C2\u52A0\u6B64\u8003\u8BD5\uFF09"))),Tt.ip_limit!=="no"&&n.a.createElement(Ae.a,{className:"mt15 ml50"},n.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u8981\u6C42\u5B66\u751F\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),n.a.createElement("a",{className:"c-blue",target:"_blank",href:"https://www.educoder.net/forums/4478"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))),Tt.ip_limit!=="no"&&n.a.createElement(n.a.Fragment,null,n.a.createElement(me.a,{className:"mt15 ml50 ".concat(wt.a.ipWrp)},n.a.createElement(Ae.a,null,n.a.createElement("span",null,"\u516C\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A")),n.a.createElement(Ae.a,null,!((Dn=Tt.public_ip)!==null&&Dn!==void 0&&Dn.length)&&n.a.createElement("span",null,"\u5F53\u524D\u8FD8\u672A\u8BBE\u7F6EIP\u8303\u56F4"),(ma=Tt.public_ip)===null||ma===void 0?void 0:ma.map(function(sa,In){return n.a.createElement("span",{className:wt.a.ipItem},n.a.createElement("i",null,sa," "),!Ke&&n.a.createElement(da.a,{onClick:function(){i.a.confirm({okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:function(){Tt.public_ip.splice(In,1),pr(Object(l.a)({},Tt))}})},className:" c-grey-c",size:20}))}),Object(Je.c)()&&!Ke&&n.a.createElement("span",{onClick:function(){vt({type:"exercise/setActionTabs",payload:{key:"addIp",type:"public_ip"}})},className:"font14 c-blue ml10"}," ",n.a.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0"))),n.a.createElement(me.a,{className:"mt15 ml50 ".concat(wt.a.ipWrp)},n.a.createElement(Ae.a,null,n.a.createElement("span",null,"\u5185\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A")),n.a.createElement(Ae.a,null,!((ga=Tt.inner_ip)!==null&&ga!==void 0&&ga.length)&&n.a.createElement("span",null,"\u5F53\u524D\u8FD8\u672A\u8BBE\u7F6EIP\u8303\u56F4"),(ja=Tt.inner_ip)===null||ja===void 0?void 0:ja.map(function(sa,In){return n.a.createElement("span",{className:wt.a.ipItem},n.a.createElement("i",null,sa," "),!Ke&&n.a.createElement(da.a,{onClick:function(){Ke||i.a.confirm({title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:function(){Tt.inner_ip.splice(In,1),pr(Object(l.a)({},Tt))}})},className:" c-grey-c",size:20}))}),Object(Je.c)()&&!Ke&&n.a.createElement("span",{className:"font14 c-blue ml10",onClick:function(){vt({type:"exercise/setActionTabs",payload:{key:"addIp",type:"inner_ip"}})}}," ",n.a.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0")))),n.a.createElement(me.a,null,n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.ip_bind,disabled:Ke,onChange:function(In){Tt.ip_bind=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"IP\u7ED1\u5B9A"),n.a.createElement("span",{className:"font12 c-grey-c"},"\uFF08\u8003\u8BD5\u5F00\u59CB\u540E\uFF0C\u5B66\u751F\u7684\u8D26\u53F7\u5C06\u81EA\u52A8\u4E0E\u673A\u5668IP\u7ED1\u5B9A\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u6559\u5E08/\u52A9\u6559\u53EF\u4EE5\u89E3\u9664\u5B66\u751F\u7684IP\u7ED1\u5B9A\uFF09")))),n.a.createElement(Fe.a,null)),n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement("strong",null,"\u5C5E\u6027\u8BBE\u7F6E")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.score_open,disabled:Ke,onChange:function(In){Tt.score_open=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u516C\u5F00\u6210\u7EE9")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5176\u5B83\u5B66\u751F\u7684\u6210\u7EE9\uFF0C\u5426\u5219\u53EA\u80FD\u67E5\u770B\u81EA\u5DF1\u7684\u6210\u7EE9\uFF1B\u4F46\u672A\u9009\u4E2D\u201C\u67E5\u770B\u603B\u6210\u7EE9\u201D\u65F6\u81EA\u5DF1\u548C\u5176\u4ED6\u540C\u5B66\u6210\u7EE9\u5747\u4E0D\u53EF\u89C1)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.answer_open,disabled:Ke,onChange:function(In){Tt.answer_open=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u516C\u5F00\u7B54\u6848")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u8BD5\u5377\u9898\u76EE\u7684\u7B54\u6848\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30 "},n.a.createElement(Se.a,{checked:Tt.show_statistic,disabled:Ke,onChange:function(In){Tt.show_statistic=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u516C\u5F00\u7EDF\u8BA1")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u7B54\u9898\u7EDF\u8BA1\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.open_total_score,disabled:Ke,onChange:function(In){Tt.open_total_score=In.target.checked,In.target.checked===!1&&(Tt.open_score=In.target.checked),pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u67E5\u770B\u603B\u6210\u7EE9")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u770B\u5230\u81EA\u5DF1\u7684\u603B\u6210\u7EE9\u53CA\u6BCF\u4E2A\u5C0F\u9898\u7684\u5F97\u5206\uFF0C\u5426\u5219\u603B\u6210\u7EE9\u548C\u5C0F\u9898\u5F97\u5206\u5747\u4E0D\u80FD\u67E5\u770B)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.open_score,disabled:Tt.open_total_score?Ke:!0,onChange:function(In){Tt.open_score=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u67E5\u770B\u5C0F\u9898\u5F97\u5206")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u770B\u5230\u81EA\u5DF1\u6BCF\u4E2A\u5C0F\u9898\u7684\u5F97\u5206\u8BE6\u60C5\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B\u3002\u9009\u4E2D\u672C\u9879\u524D\u5FC5\u987B\u5148\u9009\u4E2D\u201C\u67E5\u770B\u603B\u6210\u7EE9\u201D)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.answered_open,disabled:Ke,onChange:function(In){Tt.answered_open=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u67E5\u770B\u5DF2\u7B54\u8BD5\u5377")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u67E5\u770B\u8BD5\u5377\u548C\u6210\u7EE9\uFF1B\u5426\u5219\u53EA\u80FD\u67E5\u770B\u6210\u7EE9\uFF0C\u4E0D\u80FD\u67E5\u770B\u8BD5\u5377)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30 pb40"},n.a.createElement(Se.a,{checked:Tt.assistant_auth,disabled:Ke,onChange:function(In){Tt.assistant_auth=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u52A9\u6559\u67E5\u770B\u7B54\u6848")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u52A9\u6559\u67E5\u770B\u7B54\u6848)"))),n.a.createElement(Fe.a,null),Object(Je.c)()&&n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"600px"},n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement("strong",null,"\u8BD5\u5377\u5BFC\u51FA\u683C\u5F0F\u8BBE\u7F6E")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement("strong",null,"\u5377\u5934\u5DE6\u89D2\u6807"),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u4F4D\u4E8E\u9996\u9875\u5DE6\u4E0A\u89D2\uFF0C\u8BF7\u4EE5\u56FE\u7247\u4E0A\u4F20\uFF1B\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7200k\uFF0C\u5C3A\u5BF8\u4E3A700x500\uFF09")),n.a.createElement("div",{className:"mt15 pl30"},n.a.createElement(aa.a,La,!((Xa=Tt.file_list)!==null&&Xa!==void 0&&Xa.length)&&n.a.createElement("div",null,n.a.createElement(Ta.a,null),n.a.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")))),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.show_title,disabled:Ke,onChange:function(In){Tt.show_title=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5C55\u793A\u8BD5\u5377\u6807\u9898")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u8BD5\u5377\u6807\u9898\uFF09")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30 "},n.a.createElement(Se.a,{checked:Tt.show_body,disabled:Ke,onChange:function(In){Tt.show_body=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5C55\u793A\u8003\u8BD5\u5185\u5BB9")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u8003\u8BD5\u5185\u5BB9\uFF0C\u5373\u672C\u8BD5\u5377\u6240\u5C5E\u8BFE\u7A0B\u540D\u79F0\uFF09")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.show_info,disabled:Ke,onChange:function(In){Tt.show_info=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F\u4FE1\u606F\uFF09")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.show_table,disabled:Ke,onChange:function(In){Tt.show_table=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5C55\u793A\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u7ED9\u51FA\u5B66\u751F\u7684\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C\uFF09")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement("strong",null,"\u5BC6\u5C01\u7EBF\u533A\u57DF\u8BBE\u7F6E"),n.a.createElement(Se.a,{className:"pl8",checked:Tt.show_user,disabled:Ke,onChange:function(In){Tt.show_user=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u59D3\u540D")),n.a.createElement(Se.a,{checked:Tt.show_no,disabled:Ke,onChange:function(In){Tt.show_no=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5B66\u53F7")),n.a.createElement(Se.a,{checked:Tt.show_group,disabled:Ke,onChange:function(In){Tt.show_group=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u4E13\u4E1A\u73ED\u7EA7"))),Object(Je.o)()&&n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement("span",null,"\u6BCF\u9875\u5BFC\u51FA\u6700\u5927\u8BD5\u9898\u6570\uFF1A"),n.a.createElement($.a,{size:"large",min:1,value:Tt.export_page_num?Tt.export_page_num:40,onChange:function(In){Tt.export_page_num=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"ml10"},"\u9898")),n.a.createElement("span",{className:"c-grey-c font12 pl30 pt10"},"\uFF08\u52FE\u9009\u9879\u5C06\u4F1A\u51FA\u73B0\u5728\u9996\u9875\u5DE6\u4FA7\u5BC6\u5C01\u7EBF\u5185\uFF0C\u4E0D\u9009\u5219\u4EE3\u8868\u4E0D\u8BBE\u7F6E\u5BC6\u5C01\u533A\uFF09"),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.show_desc,disabled:Ke,onChange:function(In){Tt.show_desc=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u8003\u8BD5\u8BF4\u660E")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5F00\u542F\u6587\u672C\u7F16\u8F91\u5668\uFF0C\u53EF\u8F93\u5165500\u5B57\u4EE5\u5185\u7684\u8003\u8BD5\u8BF4\u660E\uFF09")),Tt.show_desc&&n.a.createElement("div",{className:"mt15 pl30 pb40"},Ke?n.a.createElement(yn,{style:{height:150,width:550},disabled:!0,value:Tt.description}):n.a.createElement(Et.a,{width:550,height:150,defaultValue:Tt.description,id:"exercise-detail-config-exam-description-id",onChange:function(In){Tt.description=In,pr(Object.assign({},Tt))}})))),n.a.createElement(Ae.a,{flex:1,className:"pt40 mb20"},n.a.createElement("div",{className:"pb10"},"\u793A\u4F8B\u56FE\u7247\u9884\u89C8\uFF1A"),n.a.createElement("img",{src:bn.m}))),!Ke&&n.a.createElement(Ae.a,{className:"mb50 pb10 btn-w120"},n.a.createElement(p.a,{type:"primary",size:"large",onClick:function(){return Xr()}},"\u63D0\u4EA4"),n.a.createElement(p.a,{onClick:function(){St(!0),wr()},type:"primary",size:"large",ghost:!0,className:"ml20"},"\u53D6\u6D88")),n.a.createElement(hn.a,null),n.a.createElement(lt,null))},sn=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading,Ra=Ln.globalSetting;return{exercise:Wt,loading:Rn.effects,globalSetting:Ra}})(cn),En=y("MXD1"),Pn=y("CFYs"),Kn=y("9Bee"),Vn=y("51gm"),ua=y.n(Vn),xa={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u4E3B\u89C2\u9898",5:"\u5B9E\u8BAD\u9898",7:"\u7EC4\u5408\u9898"},rn={1:"\u6EE1\u5206\u4F5C\u7B54",2:"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54",3:"\u96F6\u5206\u4F5C\u7B54",4:"\u672A\u6279"},Vt=function(Wt){var Rn,Ra,la=Wt.exercise,Mn=Wt.loading,Ca=Wt.dispatch,Dn=Object(h.i)(),ma=Object(v.useState)(Object(l.a)(Object(l.a)({},Dn),{sort:"asc",page:1,limit:10})),ga=Object(s.a)(ma,2),ja=ga[0],Xa=ga[1],Cn=Object(h.h)(),nr=la.statisticsList,$e=Object(v.useState)({}),vt=Object(s.a)($e,2),_t=vt[0],Xe=vt[1],Ee=Object(v.useState)([]),Be=Object(s.a)(Ee,2),Ce=Be[0],Ze=Be[1],Ke=Object(v.useState)(""),St=Object(s.a)(Ke,2),it=St[0],Pt=St[1],an=Object(v.useState)(""),gn=Object(s.a)(an,2),bt=gn[0],Qn=gn[1],wa=dt.a.useForm(),tr=Object(s.a)(wa,1),Ya=tr[0],ar=function(){var _a=Object.assign({},Ya.getFieldValue());Object.keys(_a).map(function(ur){_a[ur].includes("all")?(delete ja[ur],Ya.setFieldsValue(Object(st.a)({},ur,"all"))):(ja[ur]=_a[ur],Ya.setFieldsValue(Object(st.a)({},ur,ja[ur])))}),ja.page=1,ja.limit=10,sr()},Ar=function(_a,ur){ja.page=_a,ja.limit=20,Ca({type:"exercise/getExerciseStatistics",payload:Object(l.a)({},ja)})},hr=[{title:"\u63D0\u4EA4\u7387",dataIndex:"commit_percent",align:"center",render:function(_a){return n.a.createElement("span",null,_a===0?0:(_a*100).toFixed(2),"%")}},{title:"\u6700\u4F4E\u5206",dataIndex:"min_score",align:"center",render:function(_a){return n.a.createElement("span",null,_a,"\u5206")}},{title:"\u6700\u9AD8\u5206",dataIndex:"max_score",align:"center",render:function(_a){return n.a.createElement("span",{className:"c-orange"},_a,"\u5206")}},{title:"\u5E73\u5747\u5206",dataIndex:"average_score",align:"center",render:function(_a){return n.a.createElement("span",null,_a,"\u5206")}},{title:"\u4E0D\u53CA\u683C\uFF08\u5F97\u5206 \u4F4E\u4E8E60%\uFF09",dataIndex:"fail_counts",align:"center",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u53CA\u683C\uFF08\u5F97\u520660%~70%\uFF09",dataIndex:"pass_counts",align:"center",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u826F\u597D\uFF08\u5F97\u520670%~90%\uFF09",dataIndex:"good_counts",align:"center",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u4F18\u79C0\uFF08\u5F97\u520690%~100%\uFF09",dataIndex:"best_counts",align:"center",render:function(_a){return n.a.createElement("span",{className:"c-orange"},_a,"\u4EBA")}}],sr=function(){var va=Object(c.a)(C.a.mark(function _a(){var ur;return C.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Ca({type:"exercise/getExerciseStatistics",payload:Object(l.a)({},ja)});case 2:ur=oa.sent,ur!=null&&ur.exercise_counts&&Ze([ur.exercise_counts]);case 4:case"end":return oa.stop()}},_a)}));return function(){return va.apply(this,arguments)}}();return Object(v.useEffect)(function(){sr()},[ja.coursesId]),n.a.createElement(n.a.Fragment,null,n.a.createElement("section",{className:"minH500 bg-white"},n.a.createElement("aside",{className:"pt20"},n.a.createElement(dt.a,{form:Ya,onChange:ar,initialValues:(Rn={},Object(st.a)(Rn,"commit_status","all"),Object(st.a)(Rn,"exercise_group_id","all"),Object(st.a)(Rn,"review","all"),Rn)},n.a.createElement(dt.a.Item,{name:"exercise_group_id"},n.a.createElement(Se.a.Group,{style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all",checked:!_t.course_group},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1",className:ua.a.wrap},nr.course_groups&&nr.course_groups.map(function(va,_a){return n.a.createElement(Se.a,{value:va.exercise_group_id,key:_a},va.exercise_group_name,"(",va.exercise_group_students,")")}))))))),n.a.createElement(W.a,{className:"mt30",loading:Mn["exercise/getExerciseStatistics"],pagination:!1,dataSource:Ce,columns:hr}),n.a.createElement("div",{className:ua.a.title},n.a.createElement(me.a,{align:"middle",style:{height:"100%"},className:"ml5 mr5"},n.a.createElement(Ae.a,{flex:1,className:"font16"},"\u7EDF\u8BA1\u8BE6\u60C5"),n.a.createElement(Ae.a,{className:"font16"},n.a.createElement("span",{className:"current",onClick:function(){ja.sort=ja.sort==="desc"?"asc":"desc",console.log("xx params.sort: ",ja.sort),Xa(Object(l.a)({},ja)),sr()}},n.a.createElement("span",null,"\u6B63\u786E\u7387"),n.a.createElement("p",{className:"edu-sorter current ".concat(ja.sort)},n.a.createElement("span",{className:"iconfont icon-sanjiaoxing-up"}),n.a.createElement("span",{className:"iconfont icon-sanjiaoxing-down"})))))),n.a.createElement(Y.a,{spinning:Mn["exercise/getExerciseStatistics"]},n.a.createElement("div",{className:"minH200"},nr==null||((Ra=nr.commit_results)===null||Ra===void 0)?void 0:Ra.map(function(va,_a){var ur;return n.a.createElement("aside",{key:_a,className:"font14 c-black mt30"},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:1},va.ques_position,".",xa[va.ques_type]),n.a.createElement(Ae.a,null,"\u6B63\u786E\u7387",n.a.createElement("span",{className:"c-orange"},va.right_percent,"%"))),n.a.createElement("div",null,n.a.createElement(Kn.a,{value:va.ques_title})),n.a.createElement("div",{className:"mt20",style:{display:va.ques_type===5?"none":""}},n.a.createElement(me.a,{className:"c-light-black ",gutter:[24,20]},n.a.createElement(Ae.a,{flex:1},"\u9009\u9879"),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},"\u5C0F\u8BA1"),n.a.createElement(Ae.a,{flex:"200px"},"\u767E\u5206\u6BD4"))),n.a.createElement(Fe.a,{style:{margin:0,marginBottom:20,display:va.ques_type===5?"none":""}}),(va==null?void 0:va.ques_type)===7&&(va==null?void 0:va.sub_exercise_questions.map(function(Ba,oa){var Ua;return n.a.createElement("div",{key:oa},n.a.createElement("div",{style:{marginBottom:10,display:"flex",justifyContent:"space-between"}},n.a.createElement(Ae.a,null,n.a.createElement("span",null,Ba.ques_title)),n.a.createElement(Ae.a,null,"\u6B63\u786E\u7387",n.a.createElement("span",{className:"c-orange"},Ba.right_percent,"%"))),Ba==null||((Ua=Ba.ques_details)===null||Ua===void 0)?void 0:Ua.map(function(Er,Ka){return n.a.createElement(me.a,{key:Ka,gutter:[24,24],className:"font14 c-black"},n.a.createElement(Ae.a,{flex:1},n.a.createElement(me.a,{style:{alignItems:"center"}},va.ques_type===2||va.ques_type===3||va.ques_type===4?"":n.a.createElement(Ae.a,null,F.o[Ka],". "),va.ques_type===4?n.a.createElement(Ae.a,{flex:1,className:"ml10"},n.a.createElement(Kn.a,{value:rn[Er.choice_text]})):n.a.createElement(Ae.a,{flex:1,className:"ml10"},n.a.createElement(Kn.a,{value:Er.choice_text==="wrong"?"\u586B\u5199\u4E86\u9519\u8BEF\u7B54\u6848":Er.choice_text})))),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},n.a.createElement("span",{className:Er.choice_right_boolean&&"c-green"},Er.choice_users_count||0)),n.a.createElement(Ae.a,{flex:"200px"},n.a.createElement(Pn.a,{status:"active",strokeColor:"#2abd8b",percent:(Er.choice_percent*100).toFixed(),width:200})))}),n.a.createElement(Fe.a,{style:{margin:0,marginBottom:20}}))})),(va==null?void 0:va.ques_type)<7&&(va==null||((ur=va.ques_details)===null||ur===void 0)?void 0:ur.map(function(Ba,oa){return va.ques_type===5?n.a.createElement("div",{className:"mt20",key:oa},n.a.createElement(me.a,{gutter:[24,24],className:"font14 c-black"},n.a.createElement(Ae.a,{flex:1},Ba.challenge_position,".",Ba.challenge_name),n.a.createElement(Ae.a,null,"\u6B63\u786E\u7387",n.a.createElement("span",{className:"c-orange"},Ba.challenge_percent,"%"))),n.a.createElement("div",null,n.a.createElement(me.a,{className:"c-light-black ",gutter:[24,20]},n.a.createElement(Ae.a,{flex:1},"\u9009\u9879"),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},"\u5C0F\u8BA1"),n.a.createElement(Ae.a,{flex:"200px"},"\u767E\u5206\u6BD4"))),n.a.createElement(Fe.a,{style:{margin:0,marginBottom:20}}),Ba==null?void 0:Ba.challenge_details.map(function(Ua,Er){return n.a.createElement(me.a,{key:Er,gutter:[24,24],className:"font14 c-black"},n.a.createElement(Ae.a,{flex:1},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:1,className:"ml10"},n.a.createElement(Kn.a,{value:rn[Ua.choice_text]})))),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},n.a.createElement("span",{className:Ua.choice_right_boolean?"c-green":""},Ua.choice_users_count||0)),n.a.createElement(Ae.a,{flex:"200px"},n.a.createElement(Pn.a,{status:"active",strokeColor:"#2abd8b",percent:(Ua.choice_percent*100).toFixed(),width:200})))}),n.a.createElement(me.a,{className:"",gutter:[24,20]},n.a.createElement(Ae.a,{className:"ml10",flex:1},"\u6709\u6548\u586B\u5199\u91CF"),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},va.effictive_counts),n.a.createElement(Ae.a,{flex:"200px"})),n.a.createElement(Fe.a,{style:{margin:0,marginBottom:20}})):n.a.createElement(me.a,{key:oa,gutter:[24,24],className:"font14 c-black"},n.a.createElement(Ae.a,{flex:1},n.a.createElement(me.a,null,va.ques_type===2||va.ques_type===3||va.ques_type===4||va.ques_type===6?"":n.a.createElement(Ae.a,null,F.o[oa],". "),va.ques_type===4||va.ques_type===6?n.a.createElement(Ae.a,{flex:1,className:"ml10"},n.a.createElement(Kn.a,{value:rn[Ba.choice_text]})):n.a.createElement(Ae.a,{flex:1,className:"ml10"},n.a.createElement(Kn.a,{value:Ba.choice_text==="wrong"?"\u586B\u5199\u4E86\u9519\u8BEF\u7B54\u6848":Ba.choice_text})))),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},n.a.createElement("span",{className:Ba.choice_right_boolean?"c-green":""},Ba.choice_users_count||0)),n.a.createElement(Ae.a,{flex:"200px"},n.a.createElement(Pn.a,{status:"active",strokeColor:"#2abd8b",percent:(Ba.choice_percent*100).toFixed(),width:200})))})),n.a.createElement(me.a,{style:{display:va.ques_type===5?"none":""},className:"",gutter:[24,20]},n.a.createElement(Ae.a,{className:va.ques_type===2||va.ques_type===3||va.ques_type===4?"ml10":"",flex:1},"\u6709\u6548\u586B\u5199\u91CF"),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},va.effictive_counts),n.a.createElement(Ae.a,{flex:"200px"})))})))),n.a.createElement("div",{className:"tc mt30 mb50"},n.a.createElement(G.a,{hideOnSinglePage:!1,total:nr==null?void 0:nr.questions_count,current:ja.page||1,pageSize:ja.limit,onChange:function(_a,ur){ja.page=_a,ja.limit=ur,sr()}})))},Dt=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading;return{exercise:Wt,loading:Rn.effects}})(Vt),zt=y("cVA7"),xt=y.n(zt),ln={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898",5:"\u5B9E\u8BAD\u9898",6:"\u7F16\u7A0B\u9898",7:"\u7EC4\u5408\u9898"},Kt=function(Wt){var Rn,Ra=Wt.exercise,la=Wt.loading,Mn=Wt.dispatch,Ca=Object(h.i)(),Dn=Object(h.h)(),ma=Ra.statisticsList,ga=Object(v.useState)({}),ja=Object(s.a)(ga,2),Xa=ja[0],Cn=ja[1],nr=Object(v.useState)([]),$e=Object(s.a)(nr,2),vt=$e[0],_t=$e[1],Xe=Object(v.useState)(""),Ee=Object(s.a)(Xe,2),Be=Ee[0],Ce=Ee[1],Ze=Object(v.useState)(""),Ke=Object(s.a)(Ze,2),St=Ke[0],it=Ke[1],Pt=Object(v.useState)({}),an=Object(s.a)(Pt,2),gn=an[0],bt=an[1],Qn=dt.a.useForm(),wa=Object(s.a)(Qn,1),tr=wa[0];Ca.sort="asc";var Ya=function(_a){return{title:{text:"\u300E \u5B66\u751F\u6B63\u786E\u7387\u5206\u5E03\u56FE \u300F",left:"center"},tooltip:{trigger:"item",formatter:"{b} : {c} \u4EBA"},legend:{bottom:0,icon:"circle",left:"center",itemWidth:6,itemHeight:6,data:["100%","90%-100%","70%-90%","60%-70%","60%\u4EE5\u4E0B"].reverse()},series:[{type:"pie",radius:"55%",minAngle:15,center:["50%","50%"],selectedMode:"single",label:{show:!0,position:"outer",normal:{formatter:`{b} - {c}\u4EBA`,color:"#5c5c5c",lineHeight:20}},labelLine:{normal:{length:20,length2:20,lineStyle:{color:"rgba(0,0,0,.45)"}}},data:[{value:_a.details[0].full_count,name:"100%"},{value:_a.details[0].best_count,name:"90%-100%"},{value:_a.details[0].good_count,name:"70%-90%"},{value:_a.details[0].pass_count,name:"60%-70%"},{value:_a.details[0].fails_count,name:"60%\u4EE5\u4E0B"}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},normal:{color:function(Ba){var oa=["#99B8FB","#80E0B9","#8190AA","#F7C739","#EB7E65"];return oa[Ba.dataIndex]}}},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}},ar=function(){var _a=Object.assign({},tr.getFieldValue());Object.keys(_a).map(function(ur){_a[ur].includes("all")?(delete Ca[ur],tr.setFieldsValue(Object(st.a)({},ur,"all"))):(Ca[ur]=_a[ur],tr.setFieldsValue(Object(st.a)({},ur,Ca[ur])))}),Mn({type:"exercise/getExerciseStatistics",payload:Ca})},Ar=function(_a,ur){Ca.page=_a,Ca.limit=20,Mn({type:"exercise/getExerciseStatistics",payload:Object(l.a)({},Ca)})},hr=[{title:"\u63D0\u4EA4\u7387",dataIndex:"commit_percent",render:function(_a){return n.a.createElement("span",null,_a*100,"%")}},{title:"\u6700\u4F4E\u5206",dataIndex:"min_score",render:function(_a){return n.a.createElement("span",null,_a,"\u5206")}},{title:"\u6700\u9AD8\u5206",dataIndex:"max_score",render:function(_a){return n.a.createElement("span",{className:"c-orange"},_a,"\u5206")}},{title:"\u5E73\u5747\u5206",dataIndex:"average_score",render:function(_a){return n.a.createElement("span",null,_a,"\u5206")}},{title:"\u4E0D\u53CA\u683C\uFF08\u5F97\u5206 \u4F4E\u4E8E60%\uFF09",dataIndex:"fail_counts",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u53CA\u683C\uFF08\u5F97\u520660%~70%\uFF09",dataIndex:"pass_counts",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u826F\u597D\uFF08\u5F97\u520670%~90%\uFF09",dataIndex:"good_counts",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u4F18\u79C0\uFF08\u5F97\u520690%~100%\uFF09",dataIndex:"best_counts",render:function(_a){return n.a.createElement("span",{className:"c-orange"},_a,"\u4EBA")}}],sr=function(){var va=Object(c.a)(C.a.mark(function _a(){var ur;return C.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Mn({type:"exercise/getExerciseStatistics",payload:Object(l.a)({},Ca)});case 2:ur=oa.sent,ur!=null&&ur.exercise_counts&&_t([ur.exercise_counts]);case 4:case"end":return oa.stop()}},_a)}));return function(){return va.apply(this,arguments)}}();return Object(v.useEffect)(function(){sr()},[Ca.coursesId]),n.a.createElement("section",{className:"minH500 ",style:{padding:0}},n.a.createElement("aside",{className:"bg-white inline-block w100 th-bg-white"},n.a.createElement(W.a,{className:"mt10 bg-white",loading:la["exercise/getExerciseStatistics"],pagination:!1,dataSource:vt,columns:hr})),n.a.createElement("aside",{className:"mt20"},n.a.createElement("span",{className:"bold c-black font16 ml20"},"\u5DF2\u4EA4\u5377\u5B66\u751F\u7B54\u9898\u8BE6\u60C5")),n.a.createElement("aside",null,ma==null||((Rn=ma.commit_results)===null||Rn===void 0)?void 0:Rn.map(function(va,_a){return n.a.createElement("div",{key:_a,className:"bg-white pl20 pt20 pr20 pb20 mt20"},n.a.createElement("div",{style:{fontSize:14,color:"#0152d9",fontWeight:500}},_a+1,"\u3001",ln[va.question_type],n.a.createElement("span",{style:{color:"#999",paddingLeft:10}},"(\u5171",va.question_count,"\u5C0F\u9898\uFF0C",va.question_score,"\u5206)"),n.a.createElement("span",{style:{color:"#000",float:"right"}},"\u5168\u73ED\u6B63\u786E\u7387\uFF1A",va.right_percent*100,"%")),n.a.createElement(xt.a,{option:Ya(va),style:{height:370},opts:{renderer:"svg"}}))})))},Xn=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading;return{exercise:Wt,loading:Rn.effects}})(Kt),ha=y("oUNq"),Jn=function(Wt){var Rn=Wt.exercise,Ra=Wt.dispatch,la=Rn.actionTabs.params||{},Mn=la.value,Ca=Object(v.useState)(!1),Dn=Object(s.a)(Ca,2),ma=Dn[0],ga=Dn[1],ja=Object(h.i)(),Xa=ja.categoryId,Cn=ja.coursesId,nr=function(){var $e=Object(c.a)(C.a.mark(function vt(){var _t,Xe,Ee;return C.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(ga(!0),!(Mn!=null&&Mn.is_wrong)){Ce.next=7;break}return Ce.next=4,Object(ha.e)(Xa,{exercise_question_id:Mn==null?void 0:Mn.question_id});case 4:Xe=Ce.sent,Ce.next=10;break;case 7:return Ce.next=9,Object(ha.vb)(Xa,{exercise_question_id:Mn==null?void 0:Mn.question_id});case 9:Xe=Ce.sent;case 10:((_t=Xe)===null||_t===void 0?void 0:_t.status)===0&&(d.b.success((Ee=Xe)===null||Ee===void 0?void 0:Ee.message),Ra({type:"exercise/editExercise",payload:{categoryId:Xa,coursesId:Cn}}),Ra({type:"exercise/setActionTabs",payload:{}})),ga(!1);case 12:case"end":return Ce.stop()}},vt)}));return function(){return $e.apply(this,arguments)}}();return n.a.createElement(i.a,{title:"\u63D0\u793A",width:600,centered:!0,visible:Rn.actionTabs.key==="\u6807\u8BB0\u9519\u9898",confirmLoading:ma,onCancel:function(){return Ra({type:"exercise/setActionTabs",payload:{}})},onOk:nr},n.a.createElement("p",null,Mn!=null&&Mn.is_wrong?"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u9053\u8BD5\u9898\u53D6\u6D88\u6807\u8BB0\u4E3A\u9519\u9898\uFF1F":"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u9053\u8BD5\u9898\u6807\u8BB0\u4E3A\u9519\u9898\uFF1F"),Mn!=null&&Mn.is_wrong?n.a.createElement("p",null,"\u53D6\u6D88\u6807\u8BB0\u540E\u5C06\u6309\u7167\u5B66\u751F\u5B9E\u9645\u7B54\u9898\u60C5\u51B5\u91CD\u65B0\u8BA1\u7B97\u5B66\u751F\u672C\u9053\u8BD5\u9898\u5F97\u5206\u3002"):n.a.createElement("p",null,"\u6807\u8BB0\u540E\u5C06\u91CD\u65B0\u8BA1\u7B97\u5DF2\u4EA4\u5377\u5B66\u751F\u6210\u7EE9\uFF0C\u5C06\u5DF2\u4EA4\u5377\u5B66\u751F\u672C\u9053\u8BD5\u9898\u5F97\u5206\u8C03\u6574\u4E3A",Mn==null?void 0:Mn.question_score,"\u5206\u3002"))},Aa=Object(x.a)(function(Ln){var Wt=Ln.exercise;return{exercise:Wt}})(Jn),Zn=y("RQ0A"),ea=y.n(Zn),er=function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return console.log("---",Wt,Rn,Ra),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["\u7B49\u7EA7A","\u7B49\u7EA7B","\u7B49\u7EA7C","\u7B49\u7EA7D","\u7B49\u7EA7E"]}],yAxis:[{type:"value"}],series:[{name:"\u7F3A\u9677",type:"bar",stack:"Ad",color:["#5c9ef7"],emphasis:{focus:"series"},data:Ra},{name:"\u6F0F\u6D1E",type:"bar",stack:"Ad",color:["#75c87c"],emphasis:{focus:"series"},data:Rn},{name:"\u4EE3\u7801\u89C4\u8303\u6027",type:"bar",stack:"Ad",color:["#f3d460"],emphasis:{focus:"series"},data:Wt}]}},Ha=function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return{dataset:[{source:Wt}],tooltip:{show:!0,formatter:function(Ra){return Ra.value[2]+":"+Ra.value[1]+"\u5206"}},xAxis:{splitLine:{lineStyle:{type:"dashed"}},show:!1},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"scatter",type:"scatter",datasetIndex:0},{name:"line",type:"line",smooth:!0,datasetIndex:1,symbolSize:.1,symbol:"circle",label:{show:!0,fontSize:16},labelLayout:{dx:-20},encode:{label:2,tooltip:1}}]}},Sr=function(Wt){var Rn,Ra,la,Mn,Ca=Wt.shixunHomeworks,Dn=Wt.loading,ma=Wt.dispatch,ga=Object(h.i)(),ja=Object(v.useState)(Object(l.a)(Object(l.a)({},{sort_by:"student_id",sort_direction:"desc"}),ga)),Xa=Object(s.a)(ja,2),Cn=Xa[0],nr=Xa[1],$e=Object(v.useState)(),vt=Object(s.a)($e,2),_t=vt[0],Xe=vt[1],Ee=Object(v.useState)([]),Be=Object(s.a)(Ee,2),Ce=Be[0],Ze=Be[1],Ke=Object(v.useRef)(),St=Object(v.useState)(1),it=Object(s.a)(St,2),Pt=it[0],an=it[1],gn=Object(v.useState)(!1),bt=Object(s.a)(gn,2),Qn=bt[0],wa=bt[1],tr=Object(v.useState)(10),Ya=Object(s.a)(tr,2),ar=Ya[0],Ar=Ya[1],hr=Object(v.useState)([]),sr=Object(s.a)(hr,2),va=sr[0],_a=sr[1];Object(v.useEffect)(function(){Ba()},[]);var ur=[{title:"\u5B66\u53F7",dataIndex:"student_number",sorter:!0,showSorterTooltip:!1,sortOrder:Cn.sort_by==="student_number"?Cn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED",dataIndex:"group_course_name"},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u7F3A\u9677",children:[{title:"\u963B\u65AD",dataIndex:"bug",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"bug",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.critical)}},{title:"\u4E3B\u8981",dataIndex:"bug",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.major)}},{title:"\u6B21\u8981",dataIndex:"bug",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"bug",sorter:!1,showSorterTooltip:!1,sortOrder:Cn.sort_by==="bug"?Cn.sort_direction==="desc"?"descend":"ascend":null,render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.grade)}}]},{title:"\u6F0F\u6D1E",children:[{title:"\u963B\u65AD",dataIndex:"vulnerability",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"vulnerability",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.critical)}},{title:"\u4E3B\u8981",dataIndex:"vulnerability",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.major)}},{title:"\u6B21\u8981",dataIndex:"vulnerability",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"vulnerability",sorter:!1,showSorterTooltip:!1,sortOrder:Cn.sort_by==="vulnerability"?Cn.sort_direction==="desc"?"descend":"ascend":null,render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.grade)}}]},{title:"\u4EE3\u7801\u89C4\u8303\u6027",children:[{title:"\u963B\u65AD",dataIndex:"specification",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"specification",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.critical)}},{title:"\u4E3B\u8981",dataIndex:"specification",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.major)}},{title:"\u6B21\u8981",dataIndex:"specification",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"specification",sorter:!1,showSorterTooltip:!1,sortOrder:Cn.sort_by==="specification"?Cn.sort_direction==="desc"?"descend":"ascend":null,render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.grade)}}]},{title:"\u590D\u6742\u4EE3\u7801",dataIndex:"complexity",sorter:!0,showSorterTooltip:!1,sortOrder:Cn.sort_by==="complexity"?Cn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u4EE3\u7801\u884C\u6570",dataIndex:"total_row_number",sorter:!0,showSorterTooltip:!1,sortOrder:Cn.sort_by==="total_row_number"?Cn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8D28\u91CF\u8BC4\u5206",dataIndex:"quality_score",sorter:!0,showSorterTooltip:!1,sortOrder:Cn.sort_by==="quality_score"?Cn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",render:function(yt,qa){return n.a.createElement("a",{target:"_blank",href:"/classrooms/".concat(ga.coursesId,"/exercise/").concat(ga.categoryId,"/analysis/").concat(qa.id),className:"current c-light-primary"},"\u8BE6\u7EC6\u5206\u6790")}}];Object(v.useEffect)(function(){return _t===2&&(Ke.current=setInterval(function(){Ba()},6e4)),function(){clearTimeout(Ke.current)}},[_t]);function Ba(){return oa.apply(this,arguments)}function oa(){return oa=Object(c.a)(C.a.mark(function Ka(){var yt;return C.a.wrap(function(Lr){for(;;)switch(Lr.prev=Lr.next){case 0:return Lr.next=2,Object(_.a)("/api/exercises/".concat(Cn.categoryId,"/check_status.json"),{method:"GET"});case 2:yt=Lr.sent,Xe(yt.status),yt.status!=2&&yt.status!=-1&&(Ua({page:1,limit:10}),clearTimeout(Ke.current));case 5:case"end":return Lr.stop()}},Ka)})),oa.apply(this,arguments)}function Ua(Ka){return Er.apply(this,arguments)}function Er(){return Er=Object(c.a)(C.a.mark(function Ka(yt){var qa;return C.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return an(yt==null?void 0:yt.page),Ar(yt==null?void 0:yt.limit),_r.next=4,Object(_.a)("/api/exercises/".concat(Cn.categoryId,"/code_quality_analysis_index.json"),{method:"GET",params:Object(l.a)({},yt)});case 4:qa=_r.sent,Ze(qa);case 6:case"end":return _r.stop()}},Ka)})),Er.apply(this,arguments)}return console.log("-------",ga),n.a.createElement("section",{style:{paddingBottom:"10px"},className:"minH500 bg-white pt10"},(_t===0||_t===1)&&n.a.createElement("div",null,n.a.createElement("p",{style:{display:"flex"}},n.a.createElement("span",{style:{flex:"1"}},n.a.createElement("label",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A",Ce==null?void 0:Ce.created_at)),n.a.createElement(p.a,{onClick:function(){ma({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B"}})}},"\u91CD\u65B0\u68C0\u6D4B")),n.a.createElement("p",{style:{display:"flex"}},n.a.createElement(me.a,{style:{width:"100%"}},n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement("label",null,"\u5206\u73ED\u60C5\u51B5:")),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{checked:(va==null?void 0:va.length)===0,onChange:function(yt){yt.target.checked&&(_a([]),Ua({page:Pt,limit:ar}))},style:{fontSize:"14px"},value:"all"},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1"},n.a.createElement(Se.a.Group,{value:va,onChange:function(){var Ka=Object(c.a)(C.a.mark(function yt(qa){return C.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:_a(Object(t.a)(qa)),Ua({page:Pt,limit:ar,group_course_ids:qa});case 2:case"end":return _r.stop()}},yt)}));return function(yt){return Ka.apply(this,arguments)}}(),style:{width:"100%",fontSize:"14px"}},Ce==null||((Rn=Ce.course_groups)===null||Rn===void 0)?void 0:Rn.map(function(Ka,yt){return n.a.createElement(Se.a,{style:{fontSize:"14px"},value:Ka==null?void 0:Ka.id},Ka==null?void 0:Ka.name,"(",Ka==null?void 0:Ka.count,")")}))))),n.a.createElement("p",{style:{display:"flex"}},n.a.createElement("span",null,n.a.createElement("label",{style:{color:"red"}},"\u6CE8\u610F\uFF1A")),"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u5B8C\u6210\u68C0\u6D4B\u7684\u5206\u73ED"),n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},n.a.createElement("div",null,n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u7B49\u7EA7\u5206\u6790"),(Ce==null?void 0:Ce.grade_statistics)&&n.a.createElement(xt.a,{option:er(Ce==null||((Ra=Ce.grade_statistics)===null||Ra===void 0)?void 0:Ra.map(function(Ka){return Ka.specification_count}),Ce==null||((la=Ce.grade_statistics)===null||la===void 0)?void 0:la.map(function(Ka){return Ka.vulnerability_count}),Ce==null||((Mn=Ce.grade_statistics)===null||Mn===void 0)?void 0:Mn.map(function(Ka){return Ka.bug_count})),style:{height:400,width:600},opts:{renderer:"svg"}})),n.a.createElement("div",null,n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u8D28\u91CF\u5206\u5E03"),(Ce==null?void 0:Ce.quality_scores)&&n.a.createElement(xt.a,{option:Ha(Ce==null?void 0:Ce.quality_scores.map(function(Ka,yt){return[yt+1,Ka==null?void 0:Ka.quality_score,Ka==null?void 0:Ka.user_name]})),style:{height:400,width:600},opts:{renderer:"svg"}}))),n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500,flex:"1"}},"\u8BE6\u7EC6\u5217\u8868"),n.a.createElement(le.a.Search,{size:"large",onSearch:function(yt){Ua({page:1,limit:ar,search:yt})},style:{width:"300px"},enterButton:"\u641C\u7D22"})),n.a.createElement(W.a,{columns:ur,dataSource:Ce==null?void 0:Ce.analysis,bordered:!0,scroll:{x:"calc(800px + 50%)"},pagination:!1,onChange:function(yt,qa,Lr){Lr.field&&(Cn.sort_by=Lr.field),Lr.order||(Cn.sort_direction="asc"),Lr.order==="ascend"&&(Cn.sort_direction="asc"),Lr.order==="descend"&&(Cn.sort_direction="desc"),Lr.order||(Cn.sort_direction="asc"),Ua(Object(l.a)({page:1,limit:ar},Cn))}}),n.a.createElement(G.a,{current:Pt,total:Ce==null?void 0:Ce.total_count,pageSizeOptions:["10","20","50","100","200"],pageSize:ar,style:{textAlign:"center",marginTop:"20px",marginBottom:"20px"},onChange:function(yt,qa){an(yt),Ar(qa),Ua({page:yt,limit:qa,group_course_ids:va})}}))),_t===2&&n.a.createElement("div",{style:{textAlign:"center",margin:"100px 0px",paddingBottom:"100px"}},n.a.createElement("img",{src:ea.a}),n.a.createElement("br",null),n.a.createElement(p.a,{type:"primary",style:{width:"120px",height:"40px"},onClick:function(){Ba()}},"\u5237\u65B0\u9875\u9762")),n.a.createElement(ht,null),n.a.createElement(i.a,{centered:!0,width:1200,title:"\u8BE6\u7EC6\u5206\u6790",destroyOnClose:!0,visible:!!Qn,footer:null,onCancel:function(){return wa(!1)}},n.a.createElement("div",{style:{height:500,overflow:"hidden"}},!!Qn&&n.a.createElement("iframe",{style:{height:"100%",width:"100%"},src:"https://sonar.educoder.net/project/issues?id=".concat(ga==null?void 0:ga.categoryId,"-").concat(Qn==null?void 0:Qn.student_number,"&resolved=false"),frameBorder:"0"}))))},Va=Object(x.a)(function(Ln){var Wt=Ln.shixunHomeworks,Rn=Ln.loading;return{shixunHomeworks:Wt,loading:Rn.effects}})(Sr),Za=y("tf39"),pa=y.n(Za),Ja=function(Wt){var Rn,Ra,la,Mn,Ca,Dn,ma,ga,ja,Xa,Cn,nr,$e=Wt.exercise,vt=Wt.globalSetting,_t=Wt.loading,Xe=Wt.dispatch,Ee=Wt.user,Be=Wt.match,Ce=Object(w.a)(Wt,["exercise","globalSetting","loading","dispatch","user","match"]),Ze=Object(h.i)(),Ke=Object(h.h)(),St=Object(v.useState)([]),it=Object(s.a)(St,2),Pt=it[0],an=it[1],gn=$e.exerciseList,bt=$e.commonHeader,Qn=$e.checkDomain,wa=Object(v.useState)(Ke.query.tabs||0),tr=Object(s.a)(wa,2),Ya=tr[0],ar=tr[1],Ar=Object(v.useState)(pe()(new Date).valueOf()),hr=Object(s.a)(Ar,2),sr=hr[0],va=hr[1],_a=Object(v.useState)(),ur=Object(s.a)(_a,2),Ba=ur[0],oa=ur[1],Ua=Object(v.useState)(!1),Er=Object(s.a)(Ua,2),Ka=Er[0],yt=Er[1],qa=Ee.userInfo,Lr=Object(h.g)();Ze.category=Ke.query.category_id;var _r=!Qn||Qn&&(qa==null||((Rn=qa.course)===null||Rn===void 0)?void 0:Rn.course_identity)<3;Object(v.useEffect)(function(){Xe({type:"exercise/getCommonHeader",payload:Object(l.a)({},Ze)})},[Ze.coursesId]);var Tt=function(){var sa;Object(F.ab)({inner_ip:bt.inner_ip,public_ip:bt.public_ip,ip_limit:bt.ip_limit,ip_bind:bt.ip_bind,open_camera:bt.open_camera,exercise_tips:[bt.open_camera?"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A":""],exerciseId:bt.id,screen_open:bt.screen_open,screen_num:bt.screen_num,coursesId:Ze.coursesId,login:qa.login,history:Ce.history,identity_verify:bt.identity_verify,current_status:bt==null||((sa=bt.user_permission)===null||sa===void 0)?void 0:sa.current_status,open_phone_video_recording:bt==null?void 0:bt.open_phone_video_recording})},pr=function(){Xe({type:"exercise/getExerciseList",payload:Object(l.a)({},Ze)})},Yn=function(){Xe({type:"exercise/getCommonHeader",payload:Object(l.a)({},Ze)});var sa={0:function(){Xe({type:"exercise/getExerciseList",payload:Object(l.a)({},Ze)})},3:function(){Xe({type:"exercise/getWorkSetting",payload:Object(l.a)({},Ze)})}};sa[Ya]&&sa[Ya]()};function vr(La){oa(Object(l.a)({},La))}var wr=[{name:"\u7B54\u9898\u5217\u8868",id:0,compontent:n.a.createElement(qe,{getparams:vr,checkDomainAuthority:_r})},{name:"\u8BD5\u5377\u9884\u89C8",id:2,compontent:n.a.createElement(ae,{activeTabs:Ya})},{name:"\u7EDF\u8BA1\u7ED3\u679C",id:1,compontent:n.a.createElement(Dt,null)},{name:"\u8D28\u91CF\u68C0\u6D4B",id:7,compontent:n.a.createElement(Va,null)},{name:"\u4EE3\u7801\u67E5\u91CD",id:4,compontent:n.a.createElement(at,{key:sr})},{name:"\u89C4\u5219\u8BBE\u7F6E",id:3,compontent:n.a.createElement(sn,null)},{name:"\u4EBA\u8138\u5BA1\u6838",id:5,compontent:n.a.createElement(Gn,null)},{name:"\u6444\u50CF\u76D1\u63A7",id:6,compontent:n.a.createElement(J,null)}].filter(function(La){return bt!=null&&bt.is_random&&(La.name==="\u7EDF\u8BA1\u7ED3\u679C"&&(La.compontent=n.a.createElement(Xn,null)),La.name==="\u8BD5\u5377\u9884\u89C8"&&(La.compontent=n.a.createElement(Qa.default,null))),!0}).filter(function(La){return Object(Je.k)()&&bt!==null&&bt!==void 0&&bt.assistant_auth||Object(Je.c)()?!0:bt!=null&&bt.show_statistic&&(bt==null?void 0:bt.exercise_status)===3?La.name!=="\u8BD5\u5377\u9884\u89C8":La.name==="\u7B54\u9898\u5217\u8868"||La.name==="\u89C4\u5219\u8BBE\u7F6E"}).filter(function(La){return Object(Je.s)()||bt.exercise_status===1||!bt.exist_program?La.name!=="\u4EE3\u7801\u67E5\u91CD":!0}).filter(function(La){return bt.identity_verify?!0:La.name!=="\u4EBA\u8138\u5BA1\u6838"}).filter(function(La){return bt.open_phone_video_recording?!0:La.name!=="\u6444\u50CF\u76D1\u63A7"}).filter(function(La){return Object(F.M)()&&!Object(Je.o)()?La.name!=="\u8BD5\u5377\u9884\u89C8"&&La.name!=="\u7EDF\u8BA1\u7ED3\u679C":!0}).filter(function(La){return _r?!0:La.name!=="\u7EDF\u8BA1\u7ED3\u679C"&&La.name!=="\u8BD5\u5377\u9884\u89C8"&&La.name!=="\u89C4\u5219\u8BBE\u7F6E"}).filter(function(La){return bt!=null&&bt.open_code_quality_analysis?!0:La.name!=="\u8D28\u91CF\u68C0\u6D4B"}).filter(function(La){return!!La});(bt==null?void 0:bt.exercise_status)&&(bt==null?void 0:bt.exercise_status)===1&&wr.splice.apply(wr,[0,1].concat(Object(t.a)(wr.splice(1,1,wr[0])))),Object(v.useEffect)(function(){(bt==null?void 0:bt.exercise_status)&&(bt==null?void 0:bt.exercise_status)===1&&ar("2")},[bt==null?void 0:bt.exercise_status]);var Xr="YYYY-MM-DD",ai=pe()("2020-11-15",Xr),$r=function(){return i.a.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:n.a.createElement(n.a.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")})},ei=function(){return n.a.createElement(o.a,{onClick:function(){var sa=Object(c.a)(C.a.mark(function In(cr){var dr;return C.a.wrap(function(kr){for(;;)switch(kr.prev=kr.next){case 0:kr.t0=cr.key,kr.next=kr.t0==="1"?3:8;break;case 3:return kr.next=5,Object(U.o)(Object(l.a)(Object(l.a)({},Ze),Ba));case 5:return dr=kr.sent,dr.status===0&&Object(P.i)(Object(l.a)(Object(l.a)({},Ze),Ba)),kr.abrupt("break",8);case 8:case"end":return kr.stop()}},In)}));return function(In){return sa.apply(this,arguments)}}()},n.a.createElement(o.a.Item,{key:"1"},"\u5B66\u751F\u6210\u7EE9"),n.a.createElement(o.a.Item,{key:"2"},n.a.createElement("a",{target:"_blank",href:"/classrooms/".concat(Ze.coursesId,"/exercise/").concat(Ze.categoryId,"/export_blank")},"\u5BFC\u51FA\u8BD5\u5377")),n.a.createElement(o.a.Item,{key:"3"},n.a.createElement(g.a,{to:"/classrooms/".concat(Ze.coursesId,"/exportlist/exercise_score")},"\u5386\u53F2\u5BFC\u51FA")))},Or=function(){var La=Object(c.a)(C.a.mark(function sa(In){var cr;return C.a.wrap(function(ka){for(;;)switch(ka.prev=ka.next){case 0:return ka.next=2,Object(_.a)("/api/courses/".concat(Ze==null?void 0:Ze.coursesId,"/exercises/exercise_code_repeat.json"),{method:"post",body:{group_ids:In,id:Ze==null?void 0:Ze.categoryId}});case 2:if(cr=ka.sent,!(cr.status===0)){ka.next=8;break}return ar(4),va(pe()(new Date).valueOf()),Xe({type:"exercise/setActionTabs",payload:{}}),ka.abrupt("return");case 8:cr.status<-2&&d.b.error(cr==null?void 0:cr.message);case 9:case"end":return ka.stop()}},sa)}));return function(In){return La.apply(this,arguments)}}(),za=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u963B\u65AD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u963B\u65AD\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}];return Object(Je.h)()?n.a.createElement("section",{className:pa.a.bg},n.a.createElement("div",{className:"edu-container"},qa.username&&n.a.createElement("section",{className:"animated fadeIn"},n.a.createElement("aside",{className:"mt10"},n.a.createElement(b.a,{separator:">"},n.a.createElement(b.a.Item,null,n.a.createElement(g.a,{to:"/classrooms/".concat(Ze.coursesId,"/exercise")},Ee==null||((Ra=Ee.userInfo)===null||Ra===void 0||((la=Ra.course)===null||la===void 0))?void 0:la.course_name)),n.a.createElement(b.a.Item,null,n.a.createElement(g.a,{to:"/classrooms/".concat(Ze.coursesId,"/exercise")},"\u5728\u7EBF\u8003\u8BD5")),n.a.createElement(b.a.Item,null,"\u8BD5\u5377\u8BE6\u60C5"))),n.a.createElement("aside",{className:[pa.a.title,"mt20"].join(" ")},n.a.createElement(g.a,{to:"/classrooms/".concat(Ze.coursesId,"/exercise")},n.a.createElement(T.a,{className:"font16 c-black"})),Object(F.A)(bt==null?void 0:bt.exercise_status),n.a.createElement("strong",{className:"font20 ml5"},bt==null?void 0:bt.exercise_name),Ya==="7"&&n.a.createElement("span",{className:"iconfont icon-a-wenhaobeifen2",onClick:function(){yt(!0)},style:{fontWeight:800,color:"#0152d9",textAlign:"end",flex:1,cursor:"pointer"}},"\u89C4\u5219\u8BF4\u660E"))),n.a.createElement("aside",{className:"mt30 relative"},n.a.createElement("div",{className:pa.a.export},!Object(Je.s)()&&_r&&bt.exercise_status>1&&bt.exist_program&&n.a.createElement(p.a,{onClick:function(sa){sa.preventDefault(),Xe({type:"exercise/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Ze}})}},n.a.createElement("span",{className:"iconfont icon-daimachazhong font14 mr5"}),"\u4EE3\u7801\u67E5\u91CD"),Object(Je.c)()&&_r&&(bt==null||((Mn=bt.user_permission)===null||Mn===void 0)?void 0:Mn.user_commit_counts)>0&&(bt==null?void 0:bt.exercise_status)===2&&n.a.createElement(p.a,{onClick:function(sa){sa.preventDefault(),Xe({type:"exercise/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",params:Ze}})}},n.a.createElement("span",{className:"iconfont icon-dahuizhongzuo3x font14 mr5"}),"\u6253\u56DE\u91CD\u505A"),Object(Je.c)()&&_r&&(bt==null||((Ca=bt.user_permission)===null||Ca===void 0)?void 0:Ca.exercise_unpublish_count)>0&&n.a.createElement(p.a,{onClick:function(sa){sa.preventDefault();var In=pe()(bt==null?void 0:bt.created_at,Xr),cr=pe()(ai).diff(pe()(In),"days");if(cr>0&&bt!==null&&bt!==void 0&&bt.is_random){$r();return}Xe({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Ze.categoryId],unified_setting:bt==null?void 0:bt.unified_setting,params:Ze,disabled:(bt==null?void 0:bt.exercise_status)!==1,type:2,cb:Yn}})}},n.a.createElement("span",{className:"iconfont icon-fabuzhiwei font14 mr5"}),"\u53D1\u5E03\u8003\u8BD5"),Object(Je.c)()&&_r&&(bt==null||((Dn=bt.user_permission)===null||Dn===void 0)?void 0:Dn.exercise_publish_count)>0&&n.a.createElement(p.a,{onClick:function(sa){sa.preventDefault(),Xe({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[Ze.categoryId],params:Ze,cb:Yn}})}},n.a.createElement("span",{className:"iconfont icon-lijijiezhi mr5 font14"}),"\u7ED3\u675F\u8003\u8BD5"),Object(Je.s)()&&(bt==null||((ma=bt.user_permission)===null||ma===void 0)?void 0:ma.current_status)===2&&bt.exercise_status>1&&n.a.createElement(p.a,{style:{color:(gn==null||((ga=gn.exercise_types)===null||ga===void 0)?void 0:ga.is_redo)&&"red"},onClick:Tt},n.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),gn!=null&&(ja=gn.exercise_types)!==null&&ja!==void 0&&ja.is_redo?"\u91CD\u65B0\u8003\u8BD5":"\u5F00\u59CB\u8003\u8BD5"),Object(Je.s)()&&(bt==null||((Xa=bt.user_permission)===null||Xa===void 0)?void 0:Xa.current_status)===0&&bt.exercise_status>1&&n.a.createElement(p.a,{onClick:Tt},n.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7EE7\u7EED\u8003\u8BD5"),(bt==null?void 0:bt.show_analysis_detail)&&n.a.createElement(p.a,{onClick:function(){Object(F.S)("/classrooms/".concat(Ze.coursesId,"/exercise/").concat(Ze.categoryId,"/analysis/").concat(bt==null?void 0:bt.analysis_id))}},n.a.createElement("span",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),Object(Je.c)()&&_r&&(Object(Je.k)()&&(bt==null?void 0:bt.assistant_auth)||!Object(Je.k)())&&n.a.createElement(p.a,{onClick:function(){var sa=pe()(bt==null?void 0:bt.created_at,Xr),In=pe()(ai).diff(pe()(sa),"days");if(In>0&&bt!==null&&bt!==void 0&&bt.is_random){$r();return}else x.d.push(bt!=null&&bt.is_random?"/classrooms/".concat(Ze.coursesId,"/exercise/").concat(Ze.categoryId,"/random/edit?random=true"):"/classrooms/".concat(Ze.coursesId,"/exercise/").concat(Ze.categoryId,"/edit?random=false"))}},n.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7F16\u8F91\u8BD5\u5377"),Object(Je.c)()&&_r&&n.a.createElement(R.a,{overlay:ei},n.a.createElement(p.a,null,n.a.createElement(S.a,null),"\u5BFC\u51FA",n.a.createElement(E.a,null)))),n.a.createElement(B.a,{activeKey:String(Ya),className:pa.a.tabs,onChange:function(sa){var In=pe()(bt==null?void 0:bt.created_at,Xr),cr=pe()(ai).diff(pe()(In),"days");if(cr>0&&parseInt(sa)===3&&bt!==null&&bt!==void 0&&bt.is_random){$r();return}ar(sa)}},wr.map(function(La,sa){return n.a.createElement(B.a.TabPane,{tab:La.name,key:La.id})})),n.a.createElement("section",{className:bt!=null&&bt.is_random&&Ya==="2"?"":"pl25 pr25 bg-white"},(Cn=wr.filter(function(La){return La.id==Ya}))===null||Cn===void 0||((nr=Cn[0])===null||nr===void 0)?void 0:nr.compontent))),n.a.createElement(ir.a,null),n.a.createElement(Jt,{onOk:Or}),n.a.createElement(Rt.a,null),n.a.createElement(gr,{cb:function(){return pr()}}),n.a.createElement(Aa,null),n.a.createElement(i.a,{visible:Ka,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:function(){yt(!1)}},n.a.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),n.a.createElement("p",{style:{marginLeft:"10px"}},n.a.createElement(W.a,{dataSource:za,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),n.a.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),n.a.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),n.a.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),n.a.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u963B\u65AD\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002"))):""},or=re.default=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading,Ra=Ln.user,la=Ln.globalSetting;return{exercise:Wt,globalSetting:la,user:Ra,loading:Rn.effects}})(Ja)},JWDV:function(Ge,re,y){Ge.exports=y.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(Ge,re,y){"use strict";y.d(re,"a",function(){return Q});var Q;(function(W){function k(s){return s&&typeof s=="object"&&typeof s[Symbol.iterator]=="function"}W.is=k;const B=Object.freeze([]);function O(){return B}W.empty=O;function*R(s){yield s}W.single=R;function M(s){return s||B}W.from=M;function p(s){return!s||s[Symbol.iterator]().next().done===!0}W.isEmpty=p;function a(s){return s[Symbol.iterator]().next().value}W.first=a;function b(s,w){for(const D of s)if(w(D))return!0;return!1}W.some=b;function u(s,w){for(const D of s)if(w(D))return D;return}W.find=u;function*d(s,w){for(const D of s)w(D)&&(yield D)}W.filter=d;function*m(s,w){let D=0;for(const C of s)yield w(C,D++)}W.map=m;function*o(...s){for(const w of s)for(const D of w)yield D}W.concat=o;function*c(s){for(const w of s)for(const D of w)yield D}W.concatNested=c;function f(s,w,D){let C=D;for(const v of s)C=w(C,v);return C}W.reduce=f;function*i(s,w,D=s.length){for(w<0&&(w+=s.length),D<0?D+=s.length:D>s.length&&(D=s.length);wC===v){const C=s[Symbol.iterator](),v=w[Symbol.iterator]();for(;;){const n=C.next(),_=v.next();if(n.done!==_.done)return!1;if(n.done)return!0;if(!D(n.value,_.value))return!1}}W.equals=l})(Q||(Q={}))},JeFH:function(Ge,re){Ge.exports="data:image/png;base64,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"},Jq4h:function(Ge,re,y){Ge.exports=y.p+"static/qrcode.2267e4d5.png"},K2GJ:function(Ge,re,y){var Q=y("fW2E"),W=y("gut8"),k=W.ContextCachedBy,B=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],O=function(d){this.extendFrom(d,!1)};function R(d,m,o){var c=m.x==null?0:m.x,f=m.x2==null?1:m.x2,i=m.y==null?0:m.y,t=m.y2==null?0:m.y2;m.global||(c=c*o.width+o.x,f=f*o.width+o.x,i=i*o.height+o.y,t=t*o.height+o.y),c=isNaN(c)?0:c,f=isNaN(f)?1:f,i=isNaN(i)?0:i,t=isNaN(t)?0:t;var l=d.createLinearGradient(c,i,f,t);return l}function M(d,m,o){var c=o.width,f=o.height,i=Math.min(c,f),t=m.x==null?.5:m.x,l=m.y==null?.5:m.y,s=m.r==null?.5:m.r;m.global||(t=t*c+o.x,l=l*f+o.y,s=s*i);var w=d.createRadialGradient(t,l,0,t,l,s);return w}O.prototype={constructor:O,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(d,m,o){var c=this,f=o&&o.style,i=!f||d.__attrCachedBy!==k.STYLE_BIND;d.__attrCachedBy=k.STYLE_BIND;for(var t=0;t0},extendFrom:function(d,m){if(d)for(var o in d)d.hasOwnProperty(o)&&(m===!0||(m===!1?!this.hasOwnProperty(o):d[o]!=null))&&(this[o]=d[o])},set:function(d,m){typeof d=="string"?this[d]=m:this.extendFrom(d,!0)},clone:function(){var d=new this.constructor;return d.extendFrom(this,!0),d},getGradient:function(d,m,o){for(var c=m.type==="radial"?M:R,f=c(d,m,o),i=m.colorStops,t=0;t=0)continue;if(!Object.prototype.hasOwnProperty.call(d,c))continue;o[c]=d[c]}return o}function p(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function a(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function b(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var u=function(d){b(m,d);function m(o){p(this,m);var c=a(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,o));return c.scrollListener=c.scrollListener.bind(c),c.eventListenerOptions=c.eventListenerOptions.bind(c),c.mousewheelListener=c.mousewheelListener.bind(c),c}return Q(m,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var c=this.getParentElement(this.scrollComponent);c.scrollTop=c.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var c=!1,f={get passive(){c=!0}};try{document.addEventListener("test",null,f),document.removeEventListener("test",null,f)}catch(i){}return c}},{key:"eventListenerOptions",value:function(){var c=this.props.useCapture;return this.isPassiveSupported()&&(c={useCapture:this.props.useCapture,passive:!0}),c}},{key:"setDefaultLoader",value:function(c){this.defaultLoader=c}},{key:"detachMousewheelListener",value:function(){var c=window;this.props.useWindow===!1&&(c=this.scrollComponent.parentNode),c.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var c=window;this.props.useWindow===!1&&(c=this.getParentElement(this.scrollComponent)),c.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),c.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(c){var f=this.props.getScrollParent&&this.props.getScrollParent();return f!=null?f:c&&c.parentNode}},{key:"filterProps",value:function(c){return c}},{key:"attachScrollListener",value:function(){var c=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!c)return;var f=window;this.props.useWindow===!1&&(f=c),f.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),f.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),f.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(c){c.deltaY===1&&!this.isPassiveSupported()&&c.preventDefault()}},{key:"scrollListener",value:function(){var c=this.scrollComponent,f=window,i=this.getParentElement(c),t=void 0;if(this.props.useWindow){var l=document.documentElement||document.body.parentNode||document.body,s=f.pageYOffset!==void 0?f.pageYOffset:l.scrollTop;this.props.isReverse?t=s:t=this.calculateOffset(c,s)}else this.props.isReverse?t=i.scrollTop:t=c.scrollHeight-i.scrollTop-i.clientHeight;t1&&t.a.createElement("span",null,t.a.createElement(T.a,{checked:Fn,onChange:function(Cn){return da(Cn.target.checked)},className:"".concat(le.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),t.a.createElement("span",{className:"".concat(le.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:fr,onChange:function(Cn){return gr(Cn)}}),t.a.createElement("p",{className:""},t.a.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:wt,max:1e4,min:0,onChange:function(Cn){Et(Cn)}})," ","\u5206 \xA0"," ",!!wt&&!!wn&&t.a.createElement("span",{style:{color:"red"}},"(\u6839\u636E\u5747\u5206\u89C4\u5219\uFF0C\u672C\u9898\u6BCF\u7A7A",(wt/wn).toFixed(1),"\u5206)"),t.a.createElement("span",{style:{marginLeft:"30px"},className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:rn,onChange:function(Cn){Vt(Cn.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:Kn,selectvalues:at==null?void 0:at.tag_discipline_ids,onChange:Vn,subId:(ga=ve.editData)===null||ga===void 0||((ja=ga.exercise)===null||ja===void 0)?void 0:ja.sub_discipline_id,knowledgeOptions:Aa,onAddKnowledgeFinish:ea})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:xt,onChange:function(Cn){ln(Cn)}}))),t.a.createElement("aside",{className:"tr"},(Ht!==-1||at.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){fa(),yn(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){Ha()}},"\u4FDD\u5B58")))},Wt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(la){var Mn,Ca;return(ve==null||((Mn=ve.editData)===null||Mn===void 0||((Ca=Mn.exercise)===null||Ca===void 0))?void 0:Ca.exercise_status)===1?la:la.id!=="del"&&la.id!=="add"}),Rn=function(){var la=Object(Q.a)(f.a.mark(function Mn(Ca){return f.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:if(!(Ht!==-1)){ma.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),ma.abrupt("return");case 3:ma.t0=Ca.id,ma.next=ma.t0==="del"?6:ma.t0==="up"||ma.t0==="down"?8:ma.t0==="edit"?12:ma.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function ja(){return f.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(N.n)({id:at.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},Xn)});case 3:case"end":return Cn.stop()}},ja)}))()}}),ma.abrupt("break",17);case 8:return ma.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:at.question_id,opr:Ca.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},Xn)}),ma.abrupt("break",17);case 12:return Un(at.dragKey),yn(!0),ma.abrupt("break",17);case 15:return z({key:at.key,insert_id:at==null?void 0:at.question_id,question_type:3}),ma.abrupt("break",17);case 17:case"end":return ma.stop()}},Mn)}));return function(Ca){return la.apply(this,arguments)}}(),Ra=function(){var Mn;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(at!=null&&at.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},at.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",at.question_score,"\u5206\uFF09")),at!=null&&at.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},at.key,"."),t.a.createElement(de.a,{value:at.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",at.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:at.question_title})),t.a.createElement("div",{className:le.a.questionChoices},at==null||((Mn=at.standard_answer)===null||Mn===void 0)?void 0:Mn.map(function(Ca,Dn){return t.a.createElement(a.a,{key:Dn,align:"middle"},t.a.createElement(v.a,null,"\u7B54\u6848\uFF08\u586B\u7A7A",Ca.choice_id,"\uFF09\uFF1A"),t.a.createElement(v.a,{flex:"1"},t.a.createElement(a.a,{align:"middle",gutter:[1,1]},Ca.answer_text.map(function(ma,ga){return t.a.createElement(v.a,{span:24,key:ga},t.a.createElement(D.a,{key:Dn,checked:at.standard_answer.includes(Dn),disabled:!0,value:ma}))}))))})),t.a.createElement("div",{className:le.a.action},!at.hideAction&&Wt.map(function(Ca,Dn){return Ca.id==="up"&&at.key===1||Ca.id==="down"&&at.key===at.len?null:t.a.createElement(s.a,{key:Dn,placement:"bottom",title:Ca.name},t.a.createElement("span",{onClick:function(){return Rn(Ca)},className:Ca.icon}))})))};return t.a.createElement("section",{className:le.a.wrap},!$t&&Ra(),$t&&Ln())},me=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.exercise,Re=q.globalSetting;return{problemset:Z,globalSetting:Re,exercise:Oe,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(je)),fe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ae=function(Z,oe){var Oe=Z.problemset,Re=Z.globalSetting,ve=Z.exercise,bn=Z.loading,kt=Z.dispatch,at=Z.onRef,Ht=at===void 0?function(){}:at,Fe=Z.editData,Un=Z.editKey,Fa=Z.setEditKey,fa=Fa===void 0?function(){}:Fa,ae=Z.cancelAdd,z=ae===void 0?function(){}:ae,Y=Z.reload,te=Y===void 0?function(){}:Y,_e=Z.addCallback,se=_e===void 0?function(){}:_e,ut=Z.setIsClaer,vn=ut===void 0?function(){}:ut,Wn=Object(F.a)(Z,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","editKey","setEditKey","cancelAdd","reload","addCallback","setIsClaer"]),Oa=Object(i.useState)(),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(""),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(!1),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)(),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)([]),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)([]),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(1),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useState)(!1),fn=Object(o.a)(wn,2),zn=fn[0],jn=fn[1],$t=Object(i.useState)(""),yn=Object(o.a)($t,2),pn=yn[0],On=yn[1],cn=Object(i.useRef)(!1),sn=function(Dt){ft([].concat(Object(U.a)(lt),[Object(d.a)({},Dt)]))},En=Object(P.i)();Object(i.useEffect)(function(){if(cn.current)return;if(!(Fe!=null&&Fe.question_choices)){Jt(!0),Qa(""),ra(2),ya("");return}jn(!(Fe!=null&&Fe.repeat_answer)),Qa(Fe==null?void 0:Fe.question_title),ra(Fe==null?void 0:Fe.question_score),Yt(Fe==null?void 0:Fe.difficulty),ya(Fe.standard_answer[0]+""),Wa(Fe.tag_discipline_ids),On(Fe==null?void 0:Fe.analysis)},[Fe,Ma]),Object(i.useEffect)(function(){Ma&&Vt();function Vt(){return Dt.apply(this,arguments)}function Dt(){return Dt=Object(Q.a)(f.a.mark(function zt(){var xt,ln,Kt;return f.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.next=2,Object(N.I)({sub_discipline_id:(xt=ve.editData)===null||xt===void 0||((ln=xt.exercise)===null||ln===void 0)?void 0:ln.sub_discipline_id});case 2:Kt=ha.sent,ft(Kt.tag_disciplines);case 4:case"end":return ha.stop()}},zt)})),Dt.apply(this,arguments)}},[Ma]),Object(i.useImperativeHandle)(oe,function(){return{onSave:Kn,isEdit:Ma}}),Object(i.useEffect)(function(){var Vt,Dt=ve!=null&&(Vt=ve.tagDisciplineData)!==null&&Vt!==void 0&&Vt.tag_disciplines&&Array.isArray(ve.tagDisciplineData.tag_disciplines)?ve.tagDisciplineData.tag_disciplines:[];ft(Dt)},[ve.tagDisciplineData]);var Pn=function(Dt){(Dt==null?void 0:Dt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Jt(!1),fa(-1),cn.current=!1,te())},Kn=function(){var Vt=Object(Q.a)(f.a.mark(function Dt(){var zt,xt,ln,Kt,Xn,ha;return f.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:if(ir){Aa.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Aa.abrupt("return",!1);case 3:if(Tn){Aa.next=6;break}return E.b.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),Aa.abrupt("return",!1);case 6:if(zt=[{choice_text:"\u6B63\u786E",is_answer:Tn==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Tn==="2"?2:0}],cn.current=!0,!Fe.question_id){Aa.next=19;break}if(!((Fe==null?void 0:Fe.is_my)===1)){Aa.next=13;break}O.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:function(){var Zn=Object(Q.a)(f.a.mark(function er(){var Ha,Sr;return f.a.wrap(function(Za){for(;;)switch(Za.prev=Za.next){case 0:return Za.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:ir,question_type:2,question_score:aa,question_choices:zt.map(function(pa){return pa.choice_text}),standard_answers:zt.filter(function(pa){return pa.is_answer}).map(function(pa){return pa.is_answer}),tag_discipline_ids:Ta,sub_discipline_id:(Ha=ve.editData)===null||Ha===void 0||((Sr=Ha.exercise)===null||Sr===void 0)?void 0:Sr.sub_discipline_id,difficulty:jt,is_cover:1,repeat_answer:!zn,analysis:pn}});case 2:xt=Za.sent,Pn(xt);case 4:case"end":return Za.stop()}},er)}));function ea(){return Zn.apply(this,arguments)}return ea}(),onCancel:function(){var Zn=Object(Q.a)(f.a.mark(function er(){var Ha,Sr;return f.a.wrap(function(Za){for(;;)switch(Za.prev=Za.next){case 0:return Za.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:ir,question_type:2,question_score:aa,question_choices:zt.map(function(pa){return pa.choice_text}),standard_answers:zt.filter(function(pa){return pa.is_answer}).map(function(pa){return pa.is_answer}),tag_discipline_ids:Ta,sub_discipline_id:(Ha=ve.editData)===null||Ha===void 0||((Sr=Ha.exercise)===null||Sr===void 0)?void 0:Sr.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:pn}});case 2:xt=Za.sent,Pn(xt);case 4:case"end":return Za.stop()}},er)}));function ea(){return Zn.apply(this,arguments)}return ea}()}),Aa.next=17;break;case 13:return Aa.next=15,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:ir,question_type:2,question_score:aa,question_choices:zt.map(function(Zn){return Zn.choice_text}),standard_answers:zt.filter(function(Zn){return Zn.is_answer}).map(function(Zn){return Zn.is_answer}),tag_discipline_ids:Ta,sub_discipline_id:(ln=ve.editData)===null||ln===void 0||((Kt=ln.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:pn}});case 15:xt=Aa.sent,Pn(xt);case 17:Aa.next=23;break;case 19:return Aa.next=21,kt({type:"exercise/addExerciseQuestion",payload:{insert_id:Fe==null?void 0:Fe.insert_id,categoryId:En.categoryId,question_title:ir,question_type:2,question_score:aa,question_choices:zt.map(function(Zn){return Zn.choice_text}),standard_answers:zt.filter(function(Zn){return Zn.is_answer}).map(function(Zn){return Zn.is_answer}),tag_discipline_ids:Ta,sub_discipline_id:(Xn=ve.editData)===null||Xn===void 0||((ha=Xn.exercise)===null||ha===void 0)?void 0:ha.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:pn}});case 21:xt=Aa.sent,Pn(xt);case 23:return Aa.abrupt("return",{name:ir,choices:zt});case 24:case"end":return Aa.stop()}},Dt)}));return function(){return Vt.apply(this,arguments)}}(),Vn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Vt){var Dt,zt;return(ve==null||((Dt=ve.editData)===null||Dt===void 0||((zt=Dt.exercise)===null||zt===void 0))?void 0:zt.exercise_status)===1?Vt:Vt.id!=="del"&&Vt.id!=="add"}),ua=function(){var Vt=Object(Q.a)(f.a.mark(function Dt(zt){return f.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:if(!(Un!==-1)){ln.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),ln.abrupt("return");case 3:ln.t0=zt.id,ln.next=ln.t0==="del"?6:ln.t0==="up"||ln.t0==="down"?8:ln.t0==="edit"?12:ln.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Xn(){return f.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:return Jn.next=2,Object(N.n)({id:Fe.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},En)});case 3:case"end":return Jn.stop()}},Xn)}))()}}),ln.abrupt("break",17);case 8:return ln.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:Fe.question_id,opr:zt.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},En)}),ln.abrupt("break",17);case 12:return fa(Fe.dragKey),Jt(!0),ln.abrupt("break",17);case 15:return se({key:Fe.key,insert_id:Fe==null?void 0:Fe.question_id,question_type:2}),ln.abrupt("break",17);case 17:case"end":return ln.stop()}},Dt)}));return function(zt){return Vt.apply(this,arguments)}}(),xa=function(){var Dt;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(Fe!=null&&Fe.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09")),Fe!=null&&Fe.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,"."),t.a.createElement(de.a,{value:Fe.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Fe.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Fe.question_title})),t.a.createElement("div",{className:le.a.questionChoices},Fe==null||((Dt=Fe.question_choices)===null||Dt===void 0)?void 0:Dt.map(function(zt,xt){return t.a.createElement(g.a,{key:xt,checked:Fe.standard_answer.includes(xt+1),disabled:!0},fe[xt],"."," ",t.a.createElement("span",{className:"c-black font14"},zt.choice_text))})),t.a.createElement("div",{className:le.a.action},!Fe.hideAction&&Vn.map(function(zt,xt){return zt.id==="up"&&Fe.key===1||zt.id==="down"&&Fe.key===Fe.len?null:t.a.createElement(s.a,{key:xt,placement:"bottom",title:zt.name},t.a.createElement("span",{onClick:function(){return ua(zt)},className:zt.icon}))})))},rn=function(){var Dt,zt;return t.a.createElement("aside",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ir,onChange:function(ln){return Qa(ln)}}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),t.a.createElement(g.a.Group,{buttonStyle:"solid",value:Tn,onChange:function(ln){return ya(ln.target.value)}},t.a.createElement(g.a.Button,{value:"1",className:"".concat(le.a.radio," mr40")},"\u6B63\u786E"),t.a.createElement(g.a.Button,{value:"2",className:le.a.radio},"\u9519\u8BEF")),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:pn,onChange:function(ln){return On(ln)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:aa,max:1e4,min:0,onChange:function(ln){ra(ln)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:jt,onChange:function(ln){Yt(ln.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:Ta,selectvalues:Fe==null?void 0:Fe.tag_discipline_ids,onChange:Wa,subId:(Dt=ve.editData)===null||Dt===void 0||((zt=Dt.exercise)===null||zt===void 0)?void 0:zt.sub_discipline_id,knowledgeOptions:lt,onAddKnowledgeFinish:sn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:zn,onChange:function(ln){jn(ln)}}))),t.a.createElement("aside",{className:"tr"},(Un!==-1||Fe.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){z(),Jt(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){Kn()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:le.a.wrap},!Ma&&xa(),Ma&&rn())},he=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.exercise,Re=q.globalSetting;return{problemset:Z,globalSetting:Re,exercise:Oe,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Ae)),Ue=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],st=Object(i.forwardRef)(function(q,Z){var oe=q.problemset,Oe=q.globalSetting,Re=q.exercise,ve=q.loading,bn=q.dispatch,kt=q.onRef,at=kt===void 0?function(){}:kt,Ht=q.editData,Fe=q.cancelAdd,Un=Fe===void 0?function(){}:Fe,Fa=q.editKey,fa=q.setEditKey,ae=fa===void 0?function(){}:fa,z=q.setIsClaer,Y=z===void 0?function(){}:z,te=q.addCallback,_e=te===void 0?function(ha){}:te,se=q.reload,ut=se===void 0?function(){}:se,vn=Object(F.a)(q,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback","reload"]),Wn=Object(i.useState)([]),Oa=Object(o.a)(Wn,2),dn=Oa[0],Tn=Oa[1],ya=Object(i.useState)(),fr=Object(o.a)(ya,2),gr=fr[0],ir=fr[1],Qa=Object(i.useState)([]),ba=Object(o.a)(Qa,2),Na=ba[0],Ma=ba[1],Jt=Object(i.useState)(""),Rt=Object(o.a)(Jt,2),An=Rt[0],aa=Rt[1],ra=Object(i.useState)(),Fn=Object(o.a)(ra,2),da=Fn[0],Ta=Fn[1],Wa=Object(i.useState)(!1),ue=Object(o.a)(Wa,2),ot=ue[0],lt=ue[1],ft=Object(i.useState)([]),wt=Object(o.a)(ft,2),Et=wt[0],jt=wt[1],Yt=Object(i.useState)(1),wn=Object(o.a)(Yt,2),fn=wn[0],zn=wn[1],jn=Object(i.useState)(!1),$t=Object(o.a)(jn,2),yn=$t[0],pn=$t[1],On=Object(i.useState)(""),cn=Object(o.a)(On,2),sn=cn[0],En=cn[1],Pn=Object(i.useState)([]),Kn=Object(o.a)(Pn,2),Vn=Kn[0],ua=Kn[1],xa=Object(i.useRef)(!1),rn=function(Jn){ua([].concat(Object(U.a)(Vn),[Object(d.a)({},Jn)]))},Vt=Object(P.i)();Object(i.useEffect)(function(){Tn(["","","",""])},[]),Object(i.useEffect)(function(){if(xa.current)return;if(!(Ht!=null&&Ht.question_choices)){lt(!0),aa(""),Ta(5),Tn(["","","",""]),Ma([]);return}aa(Ht==null?void 0:Ht.question_title),Ta(Ht==null?void 0:Ht.question_score),pn(!(Ht!=null&&Ht.repeat_answer)),zn(Ht==null?void 0:Ht.difficulty),Tn(Ht==null?void 0:Ht.question_choices.map(function(Jn){return Jn.choice_text}));var ha=[];Ht==null||Ht.standard_answer.map(function(Jn,Aa){ha.push(Jn-1)}),Ma(ha),jt(Ht.tag_discipline_ids),En(Ht==null?void 0:Ht.analysis)},[Ht,ot]),Object(i.useEffect)(function(){ot&&ha();function ha(){return Jn.apply(this,arguments)}function Jn(){return Jn=Object(Q.a)(f.a.mark(function Aa(){var Zn,ea,er;return f.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:return Sr.next=2,Object(N.I)({sub_discipline_id:(Zn=Re.editData)===null||Zn===void 0||((ea=Zn.exercise)===null||ea===void 0)?void 0:ea.sub_discipline_id});case 2:er=Sr.sent,ua(er.tag_disciplines);case 4:case"end":return Sr.stop()}},Aa)})),Jn.apply(this,arguments)}},[ot]),Object(i.useImperativeHandle)(Z,function(){return{onSave:zt,isEdit:ot}}),Object(i.useEffect)(function(){var ha,Jn=Re!=null&&(ha=Re.tagDisciplineData)!==null&&ha!==void 0&&ha.tag_disciplines&&Array.isArray(Re.tagDisciplineData.tag_disciplines)?Re.tagDisciplineData.tag_disciplines:[];ua(Jn)},[Re.tagDisciplineData]);var Dt=function(Jn){(Jn==null?void 0:Jn.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),lt(!1),ae(-1),xa.current=!1,ut())},zt=function(){var ha=Object(Q.a)(f.a.mark(function Jn(){var Aa,Zn,ea,er,Ha,Sr,Va;return f.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:if(An){pa.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),pa.abrupt("return",!1);case 3:if(Aa=dn.findIndex(function(Ja){return!Ja}),!(Aa>-1)){pa.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Ue[Aa]," \u9009\u9879\u7684\u5185\u5BB9")),pa.abrupt("return",!1);case 7:if(Na.length){pa.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),pa.abrupt("return",!1);case 10:if(!(Na.length<1)){pa.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),pa.abrupt("return",!1);case 13:if(Zn=dn.map(function(Ja,or){return{choice_text:Ja,is_answer:Na.includes(or)?or+1:0}}),xa.current=!0,!Ht.question_id){pa.next=26;break}if(!((Ht==null?void 0:Ht.is_my)===1)){pa.next=20;break}O.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:function(){var Ja=Object(Q.a)(f.a.mark(function Ln(){var Wt,Rn;return f.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return la.next=2,bn({type:"exercise/editExerciseQuestion",payload:{id:Ht.question_id,question_title:An,question_type:1,question_score:da,question_choices:Zn.map(function(Mn){return Mn.choice_text}),standard_answers:Zn.filter(function(Mn){return Mn.is_answer}).map(function(Mn){return Mn.is_answer}),tag_discipline_ids:Et,sub_discipline_id:(Wt=Re.editData)===null||Wt===void 0||((Rn=Wt.exercise)===null||Rn===void 0)?void 0:Rn.sub_discipline_id,difficulty:fn,is_cover:1,repeat_answer:!yn,analysis:sn}});case 2:ea=la.sent,Dt(ea);case 4:case"end":return la.stop()}},Ln)}));function or(){return Ja.apply(this,arguments)}return or}(),onCancel:function(){var Ja=Object(Q.a)(f.a.mark(function Ln(){var Wt,Rn;return f.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return la.next=2,bn({type:"exercise/editExerciseQuestion",payload:{id:Ht.question_id,question_title:An,question_type:1,question_score:da,question_choices:Zn.map(function(Mn){return Mn.choice_text}),standard_answers:Zn.filter(function(Mn){return Mn.is_answer}).map(function(Mn){return Mn.is_answer}),tag_discipline_ids:Et,sub_discipline_id:(Wt=Re.editData)===null||Wt===void 0||((Rn=Wt.exercise)===null||Rn===void 0)?void 0:Rn.sub_discipline_id,difficulty:fn,repeat_answer:!yn,analysis:sn}});case 2:ea=la.sent,Dt(ea);case 4:case"end":return la.stop()}},Ln)}));function or(){return Ja.apply(this,arguments)}return or}()}),pa.next=24;break;case 20:return pa.next=22,bn({type:"exercise/editExerciseQuestion",payload:{id:Ht.question_id,question_title:An,question_type:1,question_score:da,question_choices:Zn.map(function(Ja){return Ja.choice_text}),standard_answers:Zn.filter(function(Ja){return Ja.is_answer}).map(function(Ja){return Ja.is_answer}),tag_discipline_ids:Et,sub_discipline_id:(er=Re.editData)===null||er===void 0||((Ha=er.exercise)===null||Ha===void 0)?void 0:Ha.sub_discipline_id,difficulty:fn,repeat_answer:!yn,analysis:sn}});case 22:ea=pa.sent,Dt(ea);case 24:pa.next=30;break;case 26:return pa.next=28,bn({type:"exercise/addExerciseQuestion",payload:{insert_id:Ht==null?void 0:Ht.insert_id,categoryId:Vt.categoryId,question_title:An,question_type:1,question_score:da,question_choices:Zn.map(function(Ja){return Ja.choice_text}),standard_answers:Zn.filter(function(Ja){return Ja.is_answer}).map(function(Ja){return Ja.is_answer}),tag_discipline_ids:Et,sub_discipline_id:(Sr=Re.editData)===null||Sr===void 0||((Va=Sr.exercise)===null||Va===void 0)?void 0:Va.sub_discipline_id,difficulty:fn,repeat_answer:!yn,analysis:sn}});case 28:ea=pa.sent,Dt(ea);case 30:case"end":return pa.stop()}},Jn)}));return function(){return ha.apply(this,arguments)}}(),xt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(ha){var Jn,Aa;return(Re==null||((Jn=Re.editData)===null||Jn===void 0||((Aa=Jn.exercise)===null||Aa===void 0))?void 0:Aa.exercise_status)===1?ha:ha.id!=="del"&&ha.id!=="add"}),ln=function(){var ha=Object(Q.a)(f.a.mark(function Jn(Aa){return f.a.wrap(function(ea){for(;;)switch(ea.prev=ea.next){case 0:if(!(Fa!==-1)){ea.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),ea.abrupt("return");case 3:ea.t0=Aa.id,ea.next=ea.t0==="del"?6:ea.t0==="up"||ea.t0==="down"?8:ea.t0==="edit"?12:ea.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Ha(){return f.a.wrap(function(Va){for(;;)switch(Va.prev=Va.next){case 0:return Va.next=2,Object(N.n)({id:Ht.question_id});case 2:bn({type:"exercise/editExercise",payload:Object(d.a)({},Vt)});case 3:case"end":return Va.stop()}},Ha)}))()}}),ea.abrupt("break",17);case 8:return ea.next=10,bn({type:"exercise/exeriseMoveUpDown",payload:{id:Ht.question_id,opr:Aa.id}});case 10:return bn({type:"exercise/editExercise",payload:Object(d.a)({},Vt)}),ea.abrupt("break",17);case 12:return ae(Ht.dragKey),lt(!0),ea.abrupt("break",17);case 15:return _e({key:Ht.key,insert_id:Ht==null?void 0:Ht.question_id,question_type:1}),ea.abrupt("break",17);case 17:case"end":return ea.stop()}},Jn)}));return function(Aa){return ha.apply(this,arguments)}}(),Kt=function(){var Jn;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(Ht!=null&&Ht.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Ht.key,"\u3001\u591A\u9009\u9898"),"\uFF08",Ht.question_score,"\u5206\uFF09")),Ht!=null&&Ht.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Ht.key,"."),t.a.createElement(de.a,{value:Ht.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Ht.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Ht.question_title})),t.a.createElement("div",{className:le.a.questionChoices},Ht==null||((Jn=Ht.question_choices)===null||Jn===void 0)?void 0:Jn.map(function(Aa,Zn){return t.a.createElement(a.a,{key:Zn},t.a.createElement(v.a,null,t.a.createElement(T.a,{key:Zn,checked:Ht.standard_answer.includes(Zn+1),disabled:!0},Ue[Zn],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:Aa.choice_text}))))})),t.a.createElement("div",{className:le.a.action},!Ht.hideAction&&xt.map(function(Aa,Zn){return Aa.id==="up"&&Ht.key===1||Aa.id==="down"&&Ht.key===Ht.len?null:t.a.createElement(s.a,{key:Zn,placement:"bottom",title:Aa.name},t.a.createElement("span",{onClick:function(){return ln(Aa)},className:Aa.icon}))})))},Xn=function(){var Jn,Aa;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:An,onChange:function(ea){return aa(ea)}}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),dn.map(function(Zn,ea){var er,Ha;return t.a.createElement("div",{className:le.a.choiceWrap,key:ea},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(le.a.answer," ").concat(Na.includes(ea)?le.a.activeAnswer:""),onClick:function(){Na.includes(ea)?Ma(Na.filter(function(Va){return Va!==ea})):Ma([].concat(Object(U.a)(Na),[ea]))}},Ue[ea])),t.a.createElement("div",{className:le.a.editorWrap},gr===ea?t.a.createElement(A.a,{id:"single-question-option-".concat(ea),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Zn,onChange:function(Va){dn[ea]=Va,Tn(dn)}}):t.a.createElement("div",{className:le.a.htmlWrap,onClick:function(){return ir(ea)}},t.a.createElement(de.a,{value:Zn}))),((er=Re.editData)===null||er===void 0||((Ha=er.exercise)===null||Ha===void 0)?void 0:Ha.exercise_status)===1&&t.a.createElement(t.a.Fragment,null,ea>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(le.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return Tn(dn.filter(function(Va,Za){return Za!==ea}))}})),ea<7&&ea===dn.length-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(le.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Tn([].concat(Object(U.a)(dn),[""]))}}))))}),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:sn,onChange:function(ea){return En(ea)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:da,max:1e4,min:0,onChange:function(ea){Ta(ea)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:fn,onChange:function(ea){zn(ea.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:Et,selectvalues:Ht==null?void 0:Ht.tag_discipline_ids,onChange:jt,subId:(Jn=Re.editData)===null||Jn===void 0||((Aa=Jn.exercise)===null||Aa===void 0)?void 0:Aa.sub_discipline_id,knowledgeOptions:Vn,onAddKnowledgeFinish:rn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:yn,onChange:function(ea){pn(ea)}}))),t.a.createElement("aside",{className:"tr"},(Fa!==-1||Ht.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Un(),lt(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){zt()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:le.a.wrap},!ot&&Kt(),ot&&Xn())}),Ve=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.exercise,Re=q.globalSetting;return{problemset:Z,globalSetting:Re,exercise:Oe,loading:oe.effects}},null,null,{forwardRef:!0})(st),dt=y("55Ip"),Qe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],pe=function(Z,oe){var Oe=Z.problemset,Re=Z.globalSetting,ve=Z.exercise,bn=Z.loading,kt=Z.dispatch,at=Z.editData,Ht=Z.cancelAdd,Fe=Ht===void 0?function(){}:Ht,Un=Z.editKey,Fa=Z.setEditKey,fa=Fa===void 0?function(){}:Fa,ae=Z.addCallback,z=ae===void 0?function(){}:ae,Y=Z.reload,te=Y===void 0?function(){}:Y,_e=Z.setIsClaer,se=_e===void 0?function(){}:_e,ut=Object(F.a)(Z,["problemset","globalSetting","exercise","loading","dispatch","editData","cancelAdd","editKey","setEditKey","addCallback","reload","setIsClaer"]),vn=Object(i.useState)(""),Wn=Object(o.a)(vn,2),Oa=Wn[0],dn=Wn[1],Tn=Object(i.useState)(""),ya=Object(o.a)(Tn,2),fr=ya[0],gr=ya[1],ir=Object(i.useState)(""),Qa=Object(o.a)(ir,2),ba=Qa[0],Na=Qa[1],Ma=Object(i.useState)([]),Jt=Object(o.a)(Ma,2),Rt=Jt[0],An=Jt[1],aa=Object(i.useState)(""),ra=Object(o.a)(aa,2),Fn=ra[0],da=ra[1],Ta=Object(i.useState)(),Wa=Object(o.a)(Ta,2),ue=Wa[0],ot=Wa[1],lt=Object(i.useState)(!1),ft=Object(o.a)(lt,2),wt=ft[0],Et=ft[1],jt=Object(i.useState)([]),Yt=Object(o.a)(jt,2),wn=Yt[0],fn=Yt[1],zn=Object(i.useState)(!1),jn=Object(o.a)(zn,2),$t=jn[0],yn=jn[1],pn=Object(i.useState)(!1),On=Object(o.a)(pn,2),cn=On[0],sn=On[1],En=Object(P.i)(),Pn=Object(i.useRef)(!1);Object(i.useEffect)(function(){var Dt;if(Pn.current)return;at.edit&&(yn(!0),gr(""),dn(""),fn([])),dn(at.shixun_name),gr(at.question_title);var zt=[];(Dt=at.shixun)===null||Dt===void 0||Dt.map(function(xt){zt.push(xt.challenge_score)}),fn(zt)},[at]),Object(i.useEffect)(function(){Et(!1)},[$t]),Object(i.useImperativeHandle)(oe,function(){return{onSave:Vn,isEdit:$t}});var Kn=function(zt){(zt==null?void 0:zt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),yn(!1),fa(-1),Pn.current=!1,te())},Vn=function(){var Dt=Object(Q.a)(f.a.mark(function zt(){var xt,ln,Kt;return f.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:if(xt=[],ln=!1,!ln){ha.next=4;break}return ha.abrupt("return",!1);case 4:if(Pn.current=!0,sn(!0),!at.question_id){ha.next=12;break}return ha.next=9,kt({type:"exercise/editExerciseQuestion",payload:{id:at.question_id,question_title:fr,shixun_name:Oa,shixun_id:at.shixun_id,question_type:5,question_scores:wn}});case 9:Kt=ha.sent,ha.next=15;break;case 12:return ha.next=14,kt({type:"exercise/addExerciseQuestion",payload:{insert_id:at==null?void 0:at.insert_id,categoryId:En.categoryId,question_title:fr,shixun_name:Oa,shixun_id:at.shixun_id,question_type:5,question_scores:wn,is_copy:at.is_copy}});case 14:Kt=ha.sent;case 15:return Kn(Kt),sn(!1),ha.abrupt("return",{name:fr,analysis:ba,standard_answers:xt,is_ordered:ue});case 18:case"end":return ha.stop()}},zt)}));return function(){return Dt.apply(this,arguments)}}(),ua=function(){var zt;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),t.a.createElement("div",{className:"mt10"},t.a.createElement(D.a,{defaultValue:Oa,onChange:function(ln){dn(ln.target.value)}})),t.a.createElement("div",{className:"mt10"},t.a.createElement(A.a,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:fr,onChange:function(ln){gr(ln)}})),t.a.createElement("div",{className:"mt20"},(zt=at.shixun)===null||zt===void 0?void 0:zt.map(function(xt,ln){return t.a.createElement(a.a,{gutter:[20,20]},t.a.createElement(v.a,{flex:"1"},ln+1,".",xt.challenge_name),t.a.createElement(v.a,null,t.a.createElement(k.a,{defaultValue:wn[ln],onChange:function(Xn){wn[ln]=Xn,fn(wn),console.log("srore:L",wn[ln])}})," ","\u5206"))})),t.a.createElement("div",{className:"mt20"},Rt.length>1&&t.a.createElement("span",null,t.a.createElement(T.a,{checked:ue,onChange:function(ln){return ot(ln.target.checked)},className:"".concat(le.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),t.a.createElement("span",{className:"".concat(le.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),t.a.createElement("aside",{className:"tr"},(Un!==-1||!(at!=null&&at.edit))&&t.a.createElement(u.a,{type:"default",onClick:function(){Fe(),yn(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{loading:cn,className:"ml20",type:"primary",onClick:function(){Vn()}},"\u4FDD\u5B58")))},xa=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5B9E\u8BAD\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Dt){var zt,xt;return(ve==null||((zt=ve.editData)===null||zt===void 0||((xt=zt.exercise)===null||xt===void 0))?void 0:xt.exercise_status)===1?Dt:Dt.id!=="del"&&Dt.id!=="add"}),rn=function(){var Dt=Object(Q.a)(f.a.mark(function zt(xt){return f.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(!(Un!==-1)){Kt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Kt.abrupt("return");case 3:Kt.t0=xt.id,Kt.next=Kt.t0==="del"?6:Kt.t0==="up"||Kt.t0==="down"?8:Kt.t0==="edit"?12:Kt.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function ha(){return f.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return Aa.next=2,Object(N.n)({id:at.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},En)});case 3:case"end":return Aa.stop()}},ha)}))()}}),Kt.abrupt("break",17);case 8:return Kt.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:at.question_id,opr:xt.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},En)}),Kt.abrupt("break",17);case 12:return fa(at.dragKey),yn(!0),Kt.abrupt("break",17);case 15:return kt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",editData:{key:at.key,insert_id:at==null?void 0:at.question_id,question_type:5}}}),Kt.abrupt("break",17);case 17:case"end":return Kt.stop()}},zt)}));return function(xt){return Dt.apply(this,arguments)}}(),Vt=function(){var zt,xt;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(at!=null&&at.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},at.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",at.question_score,"\u5206\uFF09")),at!=null&&at.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},at.key,"."),t.a.createElement(de.a,{value:at.shixun_name}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",at.question_score,"\u5206\uFF09"),!!((zt=at.schools)!==null&&zt!==void 0&&zt.length)&&t.a.createElement(s.a,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},t.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 font18 line24 c-orange"}))):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:at.shixun_name})),t.a.createElement("div",{className:"mt30"}),(xt=at.shixun)===null||xt===void 0?void 0:xt.map(function(ln,Kt){return t.a.createElement("div",{key:Kt},"\u7B2C",Kt+1,"\u5173"," ",t.a.createElement("span",{className:"ml10"},ln.challenge_name)," ",t.a.createElement("span",{className:"ml10"},ln.challenge_score," \u5206"))}),t.a.createElement("div",{className:le.a.action},t.a.createElement(dt.a,{target:"_blank",to:"/shixuns/".concat(at.shixun_identifier,"/challenges?exercise=true")},"\u5B9E\u8BAD\u8BE6\u60C5"),!at.hideAction&&xa.map(function(ln,Kt){return ln.id==="up"&&at.key===1||ln.id==="down"&&at.key===at.len?null:t.a.createElement(s.a,{key:Kt,placement:"bottom",title:ln.name},t.a.createElement("span",{onClick:function(){return rn(ln)},className:ln.icon}))})))};return t.a.createElement("section",{className:le.a.wrap},!$t&&Vt(),$t&&ua())},xe=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.globalSetting,Re=q.exercise;return{problemset:Z,globalSetting:Oe,exercise:Re,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(pe)),Le=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ye=function(Z,oe){var Oe=Z.problemset,Re=Z.exercise,ve=Z.globalSetting,bn=Z.loading,kt=Z.dispatch,at=Z.onRef,Ht=at===void 0?function(){}:at,Fe=Z.editData,Un=Z.cancelAdd,Fa=Un===void 0?function(){}:Un,fa=Z.editKey,ae=Z.setEditKey,z=ae===void 0?function(){}:ae,Y=Z.setIsClaer,te=Y===void 0?function(){}:Y,_e=Z.reload,se=_e===void 0?function(){}:_e,ut=Z.addCallback,vn=ut===void 0?function(Aa){}:ut,Wn=Object(F.a)(Z,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","reload","addCallback"]),Oa=Object(i.useState)([]),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)([]),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)(""),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)([]),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(!1),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useState)(1),fn=Object(o.a)(wn,2),zn=fn[0],jn=fn[1],$t=Object(i.useState)(!1),yn=Object(o.a)($t,2),pn=yn[0],On=yn[1],cn=Object(i.useState)(""),sn=Object(o.a)(cn,2),En=sn[0],Pn=sn[1],Kn=Object(P.i)(),Vn=Object(i.useRef)(null),ua=Object(i.useRef)(!1),xa=Object(i.useState)([]),rn=Object(o.a)(xa,2),Vt=rn[0],Dt=rn[1],zt=function(Zn){Dt([].concat(Object(U.a)(Vt),[Object(d.a)({},Zn)]))};Object(i.useEffect)(function(){ya(["","","",""])},[]),Object(i.useEffect)(function(){if(ua.current)return;if(!(Fe!=null&&Fe.question_choices)){Yt(!0),ra(""),Wa(5),ya(["","","",""]),Jt([]);return}ra(Fe==null?void 0:Fe.question_title),Wa(Fe==null?void 0:Fe.question_score),On(!(Fe!=null&&Fe.repeat_answer)),Pn(Fe==null?void 0:Fe.analysis),jn(Fe==null?void 0:Fe.difficulty),ya(Fe==null?void 0:Fe.question_choices.map(function(Zn){return Zn.choice_text}));var Aa=[];Fe==null||Fe.standard_answer.map(function(Zn,ea){Aa.push(Zn-1)}),ft(Fe.tag_discipline_ids),Jt(Aa)},[Fe,jt]),Object(i.useEffect)(function(){jt&&Aa();function Aa(){return Zn.apply(this,arguments)}function Zn(){return Zn=Object(Q.a)(f.a.mark(function ea(){var er,Ha,Sr;return f.a.wrap(function(Za){for(;;)switch(Za.prev=Za.next){case 0:return Za.next=2,Object(N.I)({sub_discipline_id:(er=Re.editData)===null||er===void 0||((Ha=er.exercise)===null||Ha===void 0)?void 0:Ha.sub_discipline_id});case 2:Sr=Za.sent,Dt(Sr.tag_disciplines);case 4:case"end":return Za.stop()}},ea)})),Zn.apply(this,arguments)}},[jt]),Object(i.useEffect)(function(){var Aa,Zn=Re!=null&&(Aa=Re.tagDisciplineData)!==null&&Aa!==void 0&&Aa.tag_disciplines&&Array.isArray(Re.tagDisciplineData.tag_disciplines)?Re.tagDisciplineData.tag_disciplines:[];Dt(Zn)},[Re.tagDisciplineData]),Object(i.useImperativeHandle)(oe,function(){return{onSave:ln,isEdit:jt}});var xt=function(Zn){(Zn==null?void 0:Zn.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Yt(!1),z(-1),ua.current=!1,se())},ln=function(){var Aa=Object(Q.a)(f.a.mark(function Zn(){var ea,er,Ha,Sr,Va,Za,pa;return f.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:if(aa){or.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),or.abrupt("return",!1);case 3:if(ea=Tn.findIndex(function(Ln){return!Ln}),!(ea>-1)){or.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Le[ea]," \u9009\u9879\u7684\u5185\u5BB9")),or.abrupt("return",!1);case 7:if(Ma.length){or.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),or.abrupt("return",!1);case 10:if(!(Ma.length<1)){or.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),or.abrupt("return",!1);case 13:if(er=Tn.map(function(Ln,Wt){return{choice_text:Ln,is_answer:Ma.includes(Wt)?Wt+1:0}}),ua.current=!0,!Fe.question_id){or.next=26;break}if(!((Fe==null?void 0:Fe.is_my)===1)){or.next=20;break}O.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:function(){var Ln=Object(Q.a)(f.a.mark(function Rn(){var Ra,la;return f.a.wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:return Ca.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:aa,question_type:1,question_score:Ta,question_choices:er.map(function(Dn){return Dn.choice_text}),standard_answers:er.filter(function(Dn){return Dn.is_answer}).map(function(Dn){return Dn.is_answer}),tag_discipline_ids:lt,sub_discipline_id:(Ra=Re.editData)===null||Ra===void 0||((la=Ra.exercise)===null||la===void 0)?void 0:la.sub_discipline_id,difficulty:zn,is_cover:1,repeat_answer:!pn,analysis:En}});case 2:Ha=Ca.sent,xt(Ha);case 4:case"end":return Ca.stop()}},Rn)}));function Wt(){return Ln.apply(this,arguments)}return Wt}(),onCancel:function(){var Ln=Object(Q.a)(f.a.mark(function Rn(){var Ra,la;return f.a.wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:return Ca.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:aa,question_type:1,question_score:Ta,question_choices:er.map(function(Dn){return Dn.choice_text}),standard_answers:er.filter(function(Dn){return Dn.is_answer}).map(function(Dn){return Dn.is_answer}),tag_discipline_ids:lt,sub_discipline_id:(Ra=Re.editData)===null||Ra===void 0||((la=Ra.exercise)===null||la===void 0)?void 0:la.sub_discipline_id,difficulty:zn,repeat_answer:!pn,analysis:En}});case 2:Ha=Ca.sent,xt(Ha);case 4:case"end":return Ca.stop()}},Rn)}));function Wt(){return Ln.apply(this,arguments)}return Wt}()}),or.next=24;break;case 20:return or.next=22,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:aa,question_type:1,question_score:Ta,question_choices:er.map(function(Ln){return Ln.choice_text}),standard_answers:er.filter(function(Ln){return Ln.is_answer}).map(function(Ln){return Ln.is_answer}),tag_discipline_ids:lt,sub_discipline_id:(Sr=Re.editData)===null||Sr===void 0||((Va=Sr.exercise)===null||Va===void 0)?void 0:Va.sub_discipline_id,difficulty:zn,repeat_answer:!pn,analysis:En}});case 22:Ha=or.sent,xt(Ha);case 24:or.next=30;break;case 26:return or.next=28,kt({type:"exercise/addExerciseQuestion",payload:{insert_id:Fe==null?void 0:Fe.insert_id,categoryId:Kn.categoryId,question_title:aa,question_type:1,question_score:Ta,question_choices:er.map(function(Ln){return Ln.choice_text}),standard_answers:er.filter(function(Ln){return Ln.is_answer}).map(function(Ln){return Ln.is_answer}),tag_discipline_ids:lt,sub_discipline_id:(Za=Re.editData)===null||Za===void 0||((pa=Za.exercise)===null||pa===void 0)?void 0:pa.sub_discipline_id,difficulty:zn,repeat_answer:!pn,analysis:En}});case 28:Ha=or.sent,xt(Ha);case 30:case"end":return or.stop()}},Zn)}));return function(){return Aa.apply(this,arguments)}}(),Kt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Aa){var Zn,ea;return(Re==null||((Zn=Re.editData)===null||Zn===void 0||((ea=Zn.exercise)===null||ea===void 0))?void 0:ea.exercise_status)===1?Aa:Aa.id!=="del"&&Aa.id!=="add"}),Xn=function(){var Aa=Object(Q.a)(f.a.mark(function Zn(ea){return f.a.wrap(function(Ha){for(;;)switch(Ha.prev=Ha.next){case 0:if(!(fa!==-1)){Ha.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Ha.abrupt("return");case 3:Ha.t0=ea.id,Ha.next=Ha.t0==="del"?6:Ha.t0==="up"||Ha.t0==="down"?8:Ha.t0==="edit"?12:Ha.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Va(){return f.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:return pa.next=2,Object(N.n)({id:Fe.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},Kn)});case 3:case"end":return pa.stop()}},Va)}))()}}),Ha.abrupt("break",17);case 8:return Ha.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:Fe.question_id,opr:ea.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},Kn)}),Ha.abrupt("break",17);case 12:return z(Fe.dragKey),Yt(!0),Ha.abrupt("break",17);case 15:return vn({key:Fe.key,insert_id:Fe==null?void 0:Fe.question_id,question_type:0}),Ha.abrupt("break",17);case 17:case"end":return Ha.stop()}},Zn)}));return function(ea){return Aa.apply(this,arguments)}}(),ha=function(){var Zn;return t.a.createElement("aside",{ref:Vn},t.a.createElement("div",{className:le.a.questionType},!(Fe!=null&&Fe.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u5355\u9009\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09")),Fe!=null&&Fe.isPreview?t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,"."),t.a.createElement(de.a,{value:Fe.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Fe.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Fe.question_title})),t.a.createElement("div",{className:le.a.questionChoices},Fe==null||((Zn=Fe.question_choices)===null||Zn===void 0)?void 0:Zn.map(function(ea,er){return t.a.createElement(a.a,{key:er},t.a.createElement(v.a,null,t.a.createElement(g.a,{key:er,checked:Fe.standard_answer.includes(er+1),disabled:!0},Le[er],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:ea.choice_text}))))})),t.a.createElement("div",{className:le.a.action},!Fe.hideAction&&Kt.map(function(ea,er){return ea.id==="up"&&Fe.key===1||ea.id==="down"&&Fe.key===Fe.len?null:t.a.createElement(s.a,{key:er,placement:"bottom",title:ea.name},t.a.createElement("span",{onClick:function(){return Xn(ea)},className:ea.icon}))})))},Jn=function(){var Zn,ea;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:aa,onChange:function(Ha){return ra(Ha)}}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Tn.map(function(er,Ha){var Sr,Va;return t.a.createElement("div",{className:le.a.choiceWrap,key:Ha},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(le.a.answer," ").concat(Ma.includes(Ha)?le.a.activeAnswer:""),onClick:function(){Ma.includes(Ha)?Jt(Ma.filter(function(pa){return pa!==Ha})):Jt([].concat(Object(U.a)(Ma),[Ha]))}},Le[Ha])),t.a.createElement("div",{className:le.a.editorWrap},ir===Ha?t.a.createElement(A.a,{id:"single-question-option-".concat(Ha),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:er,onChange:function(pa){Tn[Ha]=pa,ya(Tn)}}):t.a.createElement("div",{className:le.a.htmlWrap,onClick:function(){return Qa(Ha)}},t.a.createElement(de.a,{value:er}))),((Sr=Re.editData)===null||Sr===void 0||((Va=Sr.exercise)===null||Va===void 0)?void 0:Va.exercise_status)===1&&t.a.createElement(t.a.Fragment,null,Ha>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(le.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return ya(Tn.filter(function(pa,Ja){return Ja!==Ha}))}})),Ha<7&&Ha===Tn.length-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(le.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return ya([].concat(Object(U.a)(Tn),[""]))}}))))}),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:En,onChange:function(Ha){return Pn(Ha)}}),t.a.createElement("div",{style:{marginBottom:14}},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:Ta,max:1e4,min:0,onChange:function(Ha){Wa(Ha)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:zn,onChange:function(Ha){jn(Ha.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("div",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{selectvalues:Fe==null?void 0:Fe.tag_discipline_ids,value:lt,onChange:ft,subId:(Zn=Re.editData)===null||Zn===void 0||((ea=Zn.exercise)===null||ea===void 0)?void 0:ea.sub_discipline_id,knowledgeOptions:Vt,onAddKnowledgeFinish:zt})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:pn,onChange:function(Ha){On(Ha)}}))),t.a.createElement("aside",{className:"tr"},(fa!==-1||Fe.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Fa(),Yt(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){ln()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:le.a.wrap},!jt&&ha(),jt&&Jn())},gt=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.globalSetting,Re=q.exercise;return{problemset:Z,globalSetting:Oe,exercise:Re,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Ye)),Ct=y("Z9P2"),tn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Zt=function(Z,oe){var Oe=Z.problemset,Re=Z.exercise,ve=Z.globalSetting,bn=Z.loading,kt=Z.dispatch,at=Z.onRef,Ht=at===void 0?function(){}:at,Fe=Z.editData,Un=Z.cancelAdd,Fa=Un===void 0?function(){}:Un,fa=Z.editKey,ae=Z.setEditKey,z=ae===void 0?function(){}:ae,Y=Z.reload,te=Y===void 0?function(){}:Y,_e=Z.addCallback,se=_e===void 0?function(){}:_e,ut=Z.setIsClaer,vn=ut===void 0?function(){}:ut,Wn=Object(F.a)(Z,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","reload","addCallback","setIsClaer"]),Oa=Object(i.useState)(""),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(""),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(""),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)(),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(!1),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)([]),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(1),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useState)(!1),fn=Object(o.a)(wn,2),zn=fn[0],jn=fn[1],$t=Object(i.useState)([[],[]]),yn=Object(o.a)($t,2),pn=yn[0],On=yn[1],cn=Object(i.useRef)(!1),sn=Object(P.i)(),En=Object(i.useState)([]),Pn=Object(o.a)(En,2),Kn=Pn[0],Vn=Pn[1],ua=function(Kt){Vn([].concat(Object(U.a)(Kn),[Object(d.a)({},Kt)]))};Object(i.useEffect)(function(){var ln;if(cn.current)return;if(!(Fe!=null&&Fe.question_title)){Wa(!0),ya(""),Jt(""),ra(10);return}jn(!(Fe!=null&&Fe.repeat_answer)),ya(Fe==null?void 0:Fe.question_title),Jt(Fe==null||((ln=Fe.standard_answer)===null||ln===void 0)?void 0:ln[0]),ra(Fe==null?void 0:Fe.question_score),ft(Fe.tag_discipline_ids),Yt(Fe==null?void 0:Fe.difficulty),Qa(Fe==null?void 0:Fe.analysis),On([Fe==null?void 0:Fe.normal_keywords,Fe==null?void 0:Fe.main_keywords])},[Oe.editData,Ta]),Object(i.useEffect)(function(){var ln,Kt=Re!=null&&(ln=Re.tagDisciplineData)!==null&&ln!==void 0&&ln.tag_disciplines&&Array.isArray(Re.tagDisciplineData.tag_disciplines)?Re.tagDisciplineData.tag_disciplines:[];Vn(Kt)},[Re.tagDisciplineData]),Object(i.useEffect)(function(){Ta&&ln();function ln(){return Kt.apply(this,arguments)}function Kt(){return Kt=Object(Q.a)(f.a.mark(function Xn(){var ha,Jn,Aa;return f.a.wrap(function(ea){for(;;)switch(ea.prev=ea.next){case 0:return ea.next=2,Object(N.I)({sub_discipline_id:(ha=Re.editData)===null||ha===void 0||((Jn=ha.exercise)===null||Jn===void 0)?void 0:Jn.sub_discipline_id});case 2:Aa=ea.sent,Vn(Aa.tag_disciplines);case 4:case"end":return ea.stop()}},Xn)})),Kt.apply(this,arguments)}},[Ta]),Object(i.useImperativeHandle)(oe,function(){return{onSave:rn,isEdit:Ta}});var xa=function(Kt){(Kt==null?void 0:Kt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Wa(!1),z(-1),cn.current=!1,te())},rn=function(){var ln=Object(Q.a)(f.a.mark(function Kt(){var Xn,ha,Jn,Aa,Zn,ea,er;return f.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(Tn){Sr.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Sr.abrupt("return",!1);case 3:if(Xn=pn[0],ha=pn[1],cn.current=!0,!Fe.question_id){Sr.next=17;break}if(!((Fe==null?void 0:Fe.is_my)===1)){Sr.next=11;break}O.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:function(){var Va=Object(Q.a)(f.a.mark(function pa(){var Ja,or;return f.a.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:return Wt.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:Tn,question_type:4,question_score:aa,standard_answers:[Ma],tag_discipline_ids:lt,sub_discipline_id:(Ja=Re.editData)===null||Ja===void 0||((or=Ja.exercise)===null||or===void 0)?void 0:or.sub_discipline_id,difficulty:jt,is_cover:1,repeat_answer:!zn,analysis:ir,normal_keywords:Xn,main_keywords:ha}});case 2:Jn=Wt.sent,xa(Jn);case 4:case"end":return Wt.stop()}},pa)}));function Za(){return Va.apply(this,arguments)}return Za}(),onCancel:function(){var Va=Object(Q.a)(f.a.mark(function pa(){var Ja,or;return f.a.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:return Wt.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:Tn,question_type:4,question_score:aa,standard_answers:[Ma],tag_discipline_ids:lt,sub_discipline_id:(Ja=Re.editData)===null||Ja===void 0||((or=Ja.exercise)===null||or===void 0)?void 0:or.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:ir,normal_keywords:Xn,main_keywords:ha}});case 2:Jn=Wt.sent,xa(Jn);case 4:case"end":return Wt.stop()}},pa)}));function Za(){return Va.apply(this,arguments)}return Za}()}),Sr.next=15;break;case 11:return Sr.next=13,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:Tn,question_type:4,question_score:aa,standard_answers:[Ma],tag_discipline_ids:lt,sub_discipline_id:(Aa=Re.editData)===null||Aa===void 0||((Zn=Aa.exercise)===null||Zn===void 0)?void 0:Zn.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:ir,normal_keywords:Xn,main_keywords:ha}});case 13:Jn=Sr.sent,xa(Jn);case 15:Sr.next=21;break;case 17:return Sr.next=19,kt({type:"exercise/addExerciseQuestion",payload:{insert_id:Fe==null?void 0:Fe.insert_id,categoryId:sn.categoryId,exercise_bank_id:sn.categoryId,question_title:Tn,question_type:4,question_score:aa,standard_answers:[Ma],tag_discipline_ids:lt,sub_discipline_id:(ea=Re.editData)===null||ea===void 0||((er=ea.exercise)===null||er===void 0)?void 0:er.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:ir,normal_keywords:Xn,main_keywords:ha}});case 19:Jn=Sr.sent,xa(Jn);case 21:return Sr.abrupt("return",{name:Tn,answer_texts:[Ma],analysis:ir,normal_keywords:Xn,main_keywords:ha});case 22:case"end":return Sr.stop()}},Kt)}));return function(){return ln.apply(this,arguments)}}(),Vt=function(){var Kt,Xn;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Tn,onChange:function(Jn){return ya(Jn)}}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),t.a.createElement(A.a,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Ma,onChange:function(Jn){return Jt(Jn)}}),t.a.createElement(Ct.a,{value:pn,onChange:On}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ir,onChange:function(Jn){return Qa(Jn)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:aa,max:1e4,min:0,onChange:function(Jn){ra(Jn)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:jt,onChange:function(Jn){Yt(Jn.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:lt,selectvalues:Fe==null?void 0:Fe.tag_discipline_ids,onChange:ft,subId:(Kt=Re.editData)===null||Kt===void 0||((Xn=Kt.exercise)===null||Xn===void 0)?void 0:Xn.sub_discipline_id,knowledgeOptions:Kn,onAddKnowledgeFinish:ua})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:zn,onChange:function(Jn){jn(Jn)}}))),t.a.createElement("aside",{className:"tr"},(fa!==-1||Fe.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Fa(),Wa(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){rn()}},"\u4FDD\u5B58")))},Dt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(ln){var Kt,Xn;return(Re==null||((Kt=Re.editData)===null||Kt===void 0||((Xn=Kt.exercise)===null||Xn===void 0))?void 0:Xn.exercise_status)===1?ln:ln.id!=="del"&&ln.id!=="add"}),zt=function(){var ln=Object(Q.a)(f.a.mark(function Kt(Xn){return f.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(!(fa!==-1)){Jn.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Jn.abrupt("return");case 3:Jn.t0=Xn.id,Jn.next=Jn.t0==="del"?6:Jn.t0==="up"||Jn.t0==="down"?8:Jn.t0==="edit"?12:Jn.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Zn(){return f.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,Object(N.n)({id:Fe.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},sn)});case 3:case"end":return er.stop()}},Zn)}))()}}),Jn.abrupt("break",17);case 8:return Jn.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:Fe.question_id,opr:Xn.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},sn)}),Jn.abrupt("break",17);case 12:return z(Fe.dragKey),Wa(!0),Jn.abrupt("break",17);case 15:return se({key:Fe.key,insert_id:Fe==null?void 0:Fe.question_id,question_type:4}),Jn.abrupt("break",17);case 17:case"end":return Jn.stop()}},Kt)}));return function(Xn){return ln.apply(this,arguments)}}(),xt=function(){return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(Fe!=null&&Fe.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09")),Fe!=null&&Fe.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,"."),t.a.createElement(de.a,{value:Fe.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Fe.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Fe.question_title})),t.a.createElement("div",{className:le.a.questionChoices},t.a.createElement("p",null,t.a.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),t.a.createElement(de.a,{value:Ma||""})),t.a.createElement("div",{className:le.a.action},!Fe.hideAction&&Dt.map(function(Kt,Xn){return Kt.id==="up"&&Fe.key===1||Kt.id==="down"&&Fe.key===Fe.len?null:t.a.createElement(s.a,{key:Xn,placement:"bottom",title:Kt.name},t.a.createElement("span",{onClick:function(){return zt(Kt)},className:Kt.icon}))})))};return t.a.createElement("section",{className:le.a.wrap},!Ta&&xt(),Ta&&Vt())},Hn=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.exercise,Re=q.globalSetting;return{problemset:Z,globalSetting:Re,exercise:Oe,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Zt)),ia=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],mt=function(Z,oe){var Oe=Z.problemset,Re=Z.exercise,ve=Z.globalSetting,bn=Z.loading,kt=Z.dispatch,at=Z.onRef,Ht=at===void 0?function(){}:at,Fe=Z.editData,Un=Z.cancelAdd,Fa=Un===void 0?function(){}:Un,fa=Z.editKey,ae=Z.setEditKey,z=ae===void 0?function(){}:ae,Y=Z.addCallback,te=Y===void 0?function(){}:Y,_e=Z.setIsClaer,se=_e===void 0?function(){}:_e,ut=Object(F.a)(Z,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","addCallback","setIsClaer"]),vn=Object(i.useState)([]),Wn=Object(o.a)(vn,2),Oa=Wn[0],dn=Wn[1],Tn=Object(i.useState)(),ya=Object(o.a)(Tn,2),fr=ya[0],gr=ya[1],ir=Object(i.useState)([]),Qa=Object(o.a)(ir,2),ba=Qa[0],Na=Qa[1],Ma=Object(i.useState)(""),Jt=Object(o.a)(Ma,2),Rt=Jt[0],An=Jt[1],aa=Object(i.useState)(5),ra=Object(o.a)(aa,2),Fn=ra[0],da=ra[1],Ta=Object(i.useState)(!1),Wa=Object(o.a)(Ta,2),ue=Wa[0],ot=Wa[1],lt=Object(P.g)(),ft=Object(P.i)();Object(i.useEffect)(function(){dn(["","","",""])},[]),Object(i.useEffect)(function(){if(!(Fe!=null&&Fe.question_choices)){ot(!0),An(""),da(5),dn(["","","",""]),Na([]);return}An(Fe==null?void 0:Fe.question_title),da(Fe==null?void 0:Fe.question_score),dn(Fe==null?void 0:Fe.question_choices.map(function(zn){return zn.choice_text}));var fn=[];Fe==null||Fe.standard_answer.map(function(zn,jn){fn.push(zn-1)}),Na(fn)},[Fe]),Object(i.useImperativeHandle)(oe,function(){return{onSave:wt,isEdit:ue}});var wt=function(){var fn=Object(Q.a)(f.a.mark(function zn(){var jn,$t,yn;return f.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:if(Rt){On.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),On.abrupt("return",!1);case 3:if(jn=Oa.findIndex(function(cn){return!cn}),!(jn>-1)){On.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(ia[jn]," \u9009\u9879\u7684\u5185\u5BB9")),On.abrupt("return",!1);case 7:if(ba.length){On.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),On.abrupt("return",!1);case 10:if(!(ba.length<1)){On.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),On.abrupt("return",!1);case 13:if($t=Oa.map(function(cn,sn){return{choice_text:cn,is_answer:ba.includes(sn)?sn+1:0}}),!Fe.question_id){On.next=20;break}return On.next=17,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:Rt,question_type:1,question_score:Fn,question_choices:$t.map(function(cn){return cn.choice_text}),standard_answers:$t.filter(function(cn){return cn.is_answer}).map(function(cn){return cn.is_answer})}});case 17:yn=On.sent,On.next=23;break;case 20:return On.next=22,kt({type:"exercise/addExerciseQuestion",payload:{insert_id:Fe==null?void 0:Fe.insert_id,categoryId:ft.categoryId,question_title:Rt,question_type:1,question_score:"5.0",question_choices:$t.map(function(cn){return cn.choice_text}),standard_answers:$t.filter(function(cn){return cn.is_answer}).map(function(cn){return cn.is_answer})}});case 22:yn=On.sent;case 23:yn.status===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),ot(!1),kt({type:"exercise/editExercise",payload:Object(d.a)({},ft)}));case 24:case"end":return On.stop()}},zn)}));return function(){return fn.apply(this,arguments)}}(),Et=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(fn){var zn,jn;return(Re==null||((zn=Re.editData)===null||zn===void 0||((jn=zn.exercise)===null||jn===void 0))?void 0:jn.exercise_status)===1?fn:fn.id!=="del"&&fn.id!=="add"}),jt=function(){var fn=Object(Q.a)(f.a.mark(function zn(jn){return f.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:if(!(fa!==-1)){yn.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),yn.abrupt("return");case 3:yn.t0=jn.id,yn.next=yn.t0==="del"?6:yn.t0==="up"||yn.t0==="down"?8:yn.t0==="edit"?12:yn.t0==="add"?14:16;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function On(){return f.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:return sn.next=2,Object(N.n)({id:Fe.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},ft)});case 3:case"end":return sn.stop()}},On)}))()}}),yn.abrupt("break",16);case 8:return yn.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:Fe.question_id,opr:jn.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},ft)}),yn.abrupt("break",16);case 12:return lt.push("/problems/".concat(Fe==null?void 0:Fe.hack_identifier,"/edit?type=exercises&express_id=").concat(ft.categoryId,"&question_id=").concat(Fe==null?void 0:Fe.question_id,"&score=").concat(Fe==null?void 0:Fe.question_score,"&exercise=true&callback_url=").concat(location.pathname)),yn.abrupt("break",16);case 14:return te({key:Fe.key,insert_id:Fe==null?void 0:Fe.question_id,question_type:6}),yn.abrupt("break",16);case 16:case"end":return yn.stop()}},zn)}));return function(jn){return fn.apply(this,arguments)}}(),Yt=function(){var fn=Object(Q.a)(f.a.mark(function zn(jn){var $t;return f.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:return jn.preventDefault(),pn.next=3,Object(N.X)({id:Fe==null?void 0:Fe.hack_identifier});case 3:$t=pn.sent,$t.status===0&&Object($.S)("/myproblems/".concat($t==null?void 0:$t.identifier));case 5:case"end":return pn.stop()}},zn)}));return function(jn){return fn.apply(this,arguments)}}(),wn=function(){return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(Fe!=null&&Fe.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u7F16\u7A0B\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09")),Fe!=null&&Fe.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,"."),t.a.createElement(de.a,{value:Fe.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Fe.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Fe.question_title})),t.a.createElement("div",{className:le.a.questionChoices},t.a.createElement(de.a,{value:Fe.description||""})),t.a.createElement("div",{className:le.a.action},!Fe.hideAction&&Et.map(function(zn,jn){return zn.id==="up"&&Fe.key===1||zn.id==="down"&&Fe.key===Fe.len?null:t.a.createElement(s.a,{key:jn,placement:"bottom",title:zn.name},t.a.createElement("span",{onClick:function(){return jt(zn)},className:zn.icon}))})))};return t.a.createElement("section",{className:le.a.wrap},wn())},pt=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.globalSetting,Re=q.exercise;return{problemset:Z,globalSetting:Oe,exercise:Re,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(mt)),on=y("LvDl"),hn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ot=function(Z,oe){var Oe=Z.problemset,Re=Z.exercise,ve=Z.globalSetting,bn=Z.loading,kt=Z.dispatch,at=Z.onRef,Ht=at===void 0?function(){}:at,Fe=Z.editData,Un=Z.cancelAdd,Fa=Un===void 0?function(){}:Un,fa=Z.editKey,ae=Z.setEditKey,z=ae===void 0?function(){}:ae,Y=Z.setIsClaer,te=Y===void 0?function(){}:Y,_e=Z.addCallback,se=_e===void 0?function(rn){}:_e,ut=Z.reload,vn=ut===void 0?function(){}:ut,Wn=Object(F.a)(Z,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback","reload"]),Oa=Object(i.useState)([]),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(!1),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(!0),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)(1),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(!1),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)([]),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(P.i)(),Et=Object(i.useRef)(null),jt=Object(i.useState)(""),Yt=Object(o.a)(jt,2),wn=Yt[0],fn=Yt[1],zn=Object(i.useState)([]),jn=Object(o.a)(zn,2),$t=jn[0],yn=jn[1],pn=Object(i.useRef)(!1),On=function(Vt){ft([].concat(Object(U.a)(lt),[Object(d.a)({},Vt)]))};Object(i.useEffect)(function(){var rn;if(pn.current)return;if(!(Fe!=null&&Fe.question_title)){Qa(!0),fn("");return}fn(Fe==null?void 0:Fe.question_title),Wa(!(Fe!=null&&Fe.repeat_answer)),ra(Fe==null?void 0:Fe.difficulty),ya(Fe.tag_discipline_ids);var Vt=Fe==null||((rn=Fe.sub_exercise_questions)===null||rn===void 0)?void 0:rn.map(function(Dt){var zt,xt,ln;return Object(d.a)(Object(d.a)({},Dt),{},{id:Dt.question_id,name:Dt.question_title,open:!1,score:Dt.question_score,qusList:Dt==null||((zt=Dt.question_choices)===null||zt===void 0)?void 0:zt.map(function(Kt){return Kt.choice_text}),activeQusEditor:null,qusAnswer:(xt=[Dt==null||((ln=Dt.question_choices)===null||ln===void 0)?void 0:ln.findIndex(function(Kt){return Kt.standard_boolean})])===null||xt===void 0?void 0:xt.filter(function(Kt){return Kt!==-1})})});yn(Vt)},[Fe,ir]),Object(i.useEffect)(function(){ir&&rn();function rn(){return Vt.apply(this,arguments)}function Vt(){return Vt=Object(Q.a)(f.a.mark(function Dt(){var zt,xt,ln;return f.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.next=2,Object(N.I)({sub_discipline_id:(zt=Re.editData)===null||zt===void 0||((xt=zt.exercise)===null||xt===void 0)?void 0:xt.sub_discipline_id});case 2:ln=Xn.sent,ft(ln.tag_disciplines);case 4:case"end":return Xn.stop()}},Dt)})),Vt.apply(this,arguments)}},[ir]),Object(i.useEffect)(function(){var rn,Vt=Re!=null&&(rn=Re.tagDisciplineData)!==null&&rn!==void 0&&rn.tag_disciplines&&Array.isArray(Re.tagDisciplineData.tag_disciplines)?Re.tagDisciplineData.tag_disciplines:[];ft(Vt)},[Re.tagDisciplineData]),Object(i.useImperativeHandle)(oe,function(){return{onSave:sn,isEdit:ir}});var cn=function(Vt){(Vt==null?void 0:Vt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Qa(!1),z(-1),pn.current=!1,vn())},sn=function(){var rn=Object(Q.a)(f.a.mark(function Vt(){var Dt,zt,xt,ln,Kt,Xn,ha,Jn;return f.a.wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:if(wn){Zn.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Zn.abrupt("return",!1);case 3:if(!($t.length===0)){Zn.next=6;break}return E.b.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),Zn.abrupt("return",!1);case 6:Dt=0;case 7:if(!(Dt<$t.length)){Zn.next=25;break}if(xt=$t[Dt],xt!=null&&xt.name){Zn.next=12;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u7B2C".concat(Dt+1,"\u5C0F\u9898\u9898\u5E72")),Zn.abrupt("return",!1);case 12:if(xt!=null&&xt.score){Zn.next=15;break}return E.b.info("\u7B2C".concat(Dt+1,"\u5C0F\u9898\u5206\u6570\u4E0D\u80FD\u4E3A0\u6216\u7A7A")),Zn.abrupt("return",!1);case 15:if(ln=xt==null||((zt=xt.qusList)===null||zt===void 0)?void 0:zt.findIndex(function(ea){return!ea}),!(ln>-1)){Zn.next=19;break}return E.b.info("\u8BF7\u5148\u8F93\u5165\u7B2C".concat(Dt+1,"\u5C0F\u9898").concat(hn[ln],"\u9009\u9879\u7684\u5185\u5BB9")),Zn.abrupt("return",!1);case 19:if(xt!=null&&xt.qusAnswer.length){Zn.next=22;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u7B2C".concat(Dt+1,"\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E")),Zn.abrupt("return",!1);case 22:Dt++,Zn.next=7;break;case 25:if(Kt=$t.map(function(ea){var er;return{id:ea.id>1?ea.id:null,question_title:ea.name,question_type:1,question_choices:ea.qusList,question_score:ea.score,standard_answers:[((er=ea.qusAnswer)===null||er===void 0?void 0:er[0])+1]}}),pn.current=!0,!Fe.question_id){Zn.next=36;break}if(!((Fe==null?void 0:Fe.is_my)===1)){Zn.next=32;break}O.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:function(){var ea=Object(Q.a)(f.a.mark(function Ha(){var Sr,Va;return f.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:return pa.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:wn,question_type:7,sub_questions:Kt,tag_discipline_ids:Tn,sub_discipline_id:(Sr=Re.editData)===null||Sr===void 0||((Va=Sr.exercise)===null||Va===void 0)?void 0:Va.sub_discipline_id,difficulty:aa,is_cover:1,repeat_answer:!Ta}});case 2:Xn=pa.sent,cn(Xn);case 4:case"end":return pa.stop()}},Ha)}));function er(){return ea.apply(this,arguments)}return er}(),onCancel:function(){var ea=Object(Q.a)(f.a.mark(function Ha(){var Sr,Va;return f.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:return pa.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:wn,question_type:7,sub_questions:Kt,tag_discipline_ids:Tn,sub_discipline_id:(Sr=Re.editData)===null||Sr===void 0||((Va=Sr.exercise)===null||Va===void 0)?void 0:Va.sub_discipline_id,difficulty:aa,repeat_answer:!Ta}});case 2:Xn=pa.sent,cn(Xn);case 4:case"end":return pa.stop()}},Ha)}));function er(){return ea.apply(this,arguments)}return er}()}),Zn.next=36;break;case 32:return Zn.next=34,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:wn,question_type:7,sub_questions:Kt,tag_discipline_ids:Tn,sub_discipline_id:(ha=Re.editData)===null||ha===void 0||((Jn=ha.exercise)===null||Jn===void 0)?void 0:Jn.sub_discipline_id,difficulty:aa,repeat_answer:!Ta}});case 34:Xn=Zn.sent,cn(Xn);case 36:case"end":return Zn.stop()}},Vt)}));return function(){return rn.apply(this,arguments)}}(),En=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(rn){var Vt,Dt;return(Re==null||((Vt=Re.editData)===null||Vt===void 0||((Dt=Vt.exercise)===null||Dt===void 0))?void 0:Dt.exercise_status)===1?rn:rn.id!=="del"&&rn.id!=="add"}),Pn=function(){var rn=Object(Q.a)(f.a.mark(function Vt(Dt){return f.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!(fa!==-1)){xt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),xt.abrupt("return");case 3:xt.t0=Dt.id,xt.next=xt.t0==="del"?6:xt.t0==="up"||xt.t0==="down"?8:xt.t0==="edit"?12:xt.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Kt(){return f.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.next=2,Object(N.n)({id:Fe.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},wt)});case 3:case"end":return ha.stop()}},Kt)}))()}}),xt.abrupt("break",17);case 8:return xt.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:Fe.question_id,opr:Dt.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},wt)}),xt.abrupt("break",17);case 12:return z(Fe.dragKey),Qa(!0),xt.abrupt("break",17);case 15:return se({key:Fe.key,insert_id:Fe==null?void 0:Fe.question_id,question_type:0}),xt.abrupt("break",17);case 17:case"end":return xt.stop()}},Vt)}));return function(Dt){return rn.apply(this,arguments)}}(),Kn=function(){var Vt;return t.a.createElement("aside",{ref:Et},t.a.createElement("div",{className:le.a.questionType},!(Fe!=null&&Fe.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u7EC4\u5408\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09")),Fe!=null&&Fe.isPreview?t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,"."),t.a.createElement(de.a,{value:Fe.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08\u5171",Fe==null?void 0:Fe.sub_q_count,"\u5C0F\u9898\uFF0C",Fe.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Fe.question_title})),t.a.createElement("div",{style:{display:Ma?"block":"none"},className:le.a.questionChoices},Fe==null||((Vt=Fe.sub_exercise_questions)===null||Vt===void 0)?void 0:Vt.map(function(Dt,zt){var xt;return t.a.createElement("div",{key:zt},t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,".",zt+1,"\uFF08\u5355\u9009\u9898\uFF09"),t.a.createElement(de.a,{value:Dt.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Dt.question_score,"\u5206\uFF09")),Dt==null||((xt=Dt.question_choices)===null||xt===void 0)?void 0:xt.map(function(ln,Kt){return t.a.createElement(a.a,{key:Kt},t.a.createElement(v.a,null,t.a.createElement(g.a,{key:Kt,checked:Dt.standard_answer.includes(Kt+1),disabled:!0},hn[Kt],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:ln.choice_text}))))}))})),t.a.createElement("div",{className:le.a.action},t.a.createElement("span",{className:"c-light-primary current",onClick:function(){return Jt(!Ma)},style:{}},Ma?"\u6536\u8D77":"\u5C55\u5F00"),!Fe.hideAction&&En.map(function(Dt,zt){return Dt.id==="up"&&Fe.key===1||Dt.id==="down"&&Fe.key===Fe.len?null:t.a.createElement(s.a,{key:zt,placement:"bottom",title:Dt.name},t.a.createElement("span",{onClick:function(){return Pn(Dt)},className:Dt.icon}))})))},Vn=function(){var Vt,Dt;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("section",{className:le.a.wrap,style:{padding:0}},t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:wn,onChange:function(xt){return fn(xt)}}),t.a.createElement("p",null,"\u5C0F\u9898\u6570\uFF1A",$t==null?void 0:$t.length),$t==null?void 0:$t.map(function(zt,xt){var ln;return t.a.createElement("div",{className:le.a.fold,key:zt.id},t.a.createElement("div",{onClick:function(){return xa("open",xt)},className:le.a.head},t.a.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:zt.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),t.a.createElement("span",null,"\u7B2C",xt+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),t.a.createElement("b",{onClick:function(Xn){Xn.stopPropagation(),xa("delete",xt)},className:"iconfont icon-shanchu8"})),t.a.createElement("div",{className:"mb10",style:{display:zt.open?"block":"none"}},t.a.createElement(A.a,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:zt==null?void 0:zt.name,onChange:function(Xn){return xa("value",xt,Xn)}}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),zt==null||((ln=zt.qusList)===null||ln===void 0)?void 0:ln.map(function(Kt,Xn){var ha,Jn;return t.a.createElement("div",{className:le.a.choiceWrap,key:Xn},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(le.a.answer," ").concat(zt!=null&&(ha=zt.qusAnswer)!==null&&ha!==void 0&&ha.includes(Xn)?le.a.activeAnswer:""),onClick:function(){return xa("answer",xt,Xn)}},hn[Xn])),t.a.createElement("div",{className:le.a.editorWrap},(zt==null?void 0:zt.activeQusEditor)===Xn?t.a.createElement(A.a,{id:"single-question-option-".concat(Xn),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Kt,onChange:function(Zn){return xa("details",xt,Zn)}}):t.a.createElement("div",{className:le.a.htmlWrap,onClick:function(){return xa("edit",xt,Xn)}},t.a.createElement(de.a,{value:Kt}))),Xn>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(le.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return xa("deleteQus",xt,Xn)}})),Xn<7&&Xn===(zt==null||((Jn=zt.qusList)===null||Jn===void 0)?void 0:Jn.length)-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(le.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return xa("addQus",xt)}})))}),t.a.createElement("p",{className:"mt10"},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:zt.score,max:1e4,min:0,onChange:function(Xn){return xa("score",xt,Xn)}})," ","\u5206")))}),$t.length<20&&t.a.createElement(u.a,{type:"primary",onClick:ua},t.a.createElement("i",{className:"iconfont icon-tianjiatimu mr5 font14"}),"\u6DFB\u52A0\u5C0F\u9898")),t.a.createElement("p",{className:"mt10"},t.a.createElement("span",{className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:aa,onChange:function(xt){ra(xt.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{selectvalues:Fe==null?void 0:Fe.tag_discipline_ids,value:Tn,onChange:ya,subId:(Vt=Re.editData)===null||Vt===void 0||((Dt=Vt.exercise)===null||Dt===void 0)?void 0:Dt.sub_discipline_id,knowledgeOptions:lt,onAddKnowledgeFinish:On}))),t.a.createElement("aside",{className:"tr"},(fa!==-1||Fe.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Fa(),Qa(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){sn()}},"\u4FDD\u5B58")))},ua=function(){var Vt={id:Math.random(),item_type:"SINGLE",open:!1,name:"",qusList:["","","",""],activeQusEditor:null,qusAnswer:[],analysis:""};yn($t.concat(Vt))},xa=function(Vt,Dt,zt){var xt=Object(on.cloneDeep)($t);if(Vt==="open"&&(xt[Dt].open=!xt[Dt].open),Vt==="delete"&&xt.splice(Dt,1),Vt==="value"&&(xt[Dt].name=zt),Vt==="answer"&&(xt[Dt].qusAnswer=[zt]),Vt==="edit"&&(xt[Dt].activeQusEditor=zt),Vt==="details"&&(xt[Dt].qusList[xt[Dt].activeQusEditor]=zt),Vt==="addQus"&&(xt[Dt].qusList=xt[Dt].qusList.concat("")),Vt==="deleteQus"){var ln;xt[Dt].qusList=xt[Dt].qusList.filter(function(Kt,Xn){return Xn!==zt}),xt[Dt].qusAnswer=(ln=xt[Dt].qusAnswer)===null||ln===void 0?void 0:ln.filter(function(Kt){return Kt!==zt})}Vt==="analysis"&&(xt[Dt].analysis=zt),Vt==="score"&&(xt[Dt].score=zt),yn(xt)};return t.a.createElement("section",{className:le.a.wrap},!ir&&Kn(),ir&&Vn())},Xt=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.globalSetting,Re=q.exercise;return{problemset:Z,globalSetting:Oe,exercise:Re,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Ot)),ht=y("ngQI"),Je=y("loLm"),rt=y.n(Je),Te=y("ErOA"),Me=y("vCeJ"),Ie=y("Nog9"),be=y.n(Ie),qe=y("hQp1"),Lt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],nn=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.cancelAdd,kt=bn===void 0?function(){}:bn,at=Z.editKey,Ht=Z.setEditKey,Fe=Ht===void 0?function(){}:Ht,Un=Z.reload,Fa=Un===void 0?function(){}:Un,fa=Z.addCallback,ae=fa===void 0?function(Dt){}:fa,z=Object(i.useState)([]),Y=Object(o.a)(z,2),te=Y[0],_e=Y[1],se=Object(i.useState)(),ut=Object(o.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(i.useState)([]),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(""),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)([]),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(!1),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)(1),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(!1),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useState)(""),fn=Object(o.a)(wn,2),zn=fn[0],jn=fn[1],$t=Object(P.i)(),yn=Object(i.useRef)(null),pn=Object(i.useRef)(!1),On=Object(i.useState)([]),cn=Object(o.a)(On,2),sn=cn[0],En=cn[1],Pn=function(zt){En([].concat(Object(U.a)(sn),[Object(d.a)({},zt)]))};Object(i.useEffect)(function(){_e(["","","",""])},[]),Object(i.useEffect)(function(){if(pn.current)return;if(!(ve!=null&&ve.question_choices)){Wa(!0),Qa(""),Jt(5),_e(["","","",""]),ya([]);return}Qa(ve==null?void 0:ve.question_title),Jt(ve==null?void 0:ve.question_score),Yt(!(ve!=null&&ve.repeat_answer)),jn(ve==null?void 0:ve.analysis),ft(ve==null?void 0:ve.difficulty),_e(ve==null?void 0:ve.question_choices.map(function(zt){return zt.choice_text}));var Dt=[];ve==null||ve.standard_answer.map(function(zt,xt){Dt.push(zt-1)}),ra(ve.tag_discipline_ids),ya(Dt)},[ve,Ta]),Object(i.useEffect)(function(){Ta&&Dt();function Dt(){return zt.apply(this,arguments)}function zt(){return zt=Object(Q.a)(f.a.mark(function xt(){var ln,Kt,Xn;return f.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:return Jn.next=2,Object(N.I)({sub_discipline_id:(ln=Oe.editData)===null||ln===void 0||((Kt=ln.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id});case 2:Xn=Jn.sent,En(Xn.tag_disciplines);case 4:case"end":return Jn.stop()}},xt)})),zt.apply(this,arguments)}},[Ta]),Object(i.useEffect)(function(){var Dt,zt=Oe!=null&&(Dt=Oe.tagDisciplineData)!==null&&Dt!==void 0&&Dt.tag_disciplines&&Array.isArray(Oe.tagDisciplineData.tag_disciplines)?Oe.tagDisciplineData.tag_disciplines:[];En(zt)},[Oe.tagDisciplineData]),Object(i.useImperativeHandle)(oe,function(){return{onSave:Vn,isEdit:Ta}});var Kn=function(zt){(zt==null?void 0:zt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Wa(!1),Fe(-1),pn.current=!1,Fa())},Vn=function(){var Dt=Object(Q.a)(f.a.mark(function zt(){var xt,ln,Kt,Xn,ha,Jn,Aa;return f.a.wrap(function(ea){for(;;)switch(ea.prev=ea.next){case 0:if(ir){ea.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),ea.abrupt("return",!1);case 3:if(xt=te.findIndex(function(er){return!er}),!(xt>-1)){ea.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Lt[xt]," \u9009\u9879\u7684\u5185\u5BB9")),ea.abrupt("return",!1);case 7:if(Tn.length){ea.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),ea.abrupt("return",!1);case 10:if(!(Tn.length<1)){ea.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),ea.abrupt("return",!1);case 13:if(ln=te.map(function(er,Ha){return{choice_text:er,is_answer:Tn.includes(Ha)?1:0}}),pn.current=!0,!ve.question_id){ea.next=22;break}return ea.next=18,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:$t.id,question_id:ve.question_id,name:ir,item_type:Tn.length>1?qe.a.Multiple:qe.a.Single,question_score:Ma,choices:ln,tag_discipline_ids:aa,sub_discipline_id:(Xn=Oe.editData)===null||Xn===void 0||((ha=Xn.exercise)===null||ha===void 0)?void 0:ha.sub_discipline_id,difficulty:lt,repeat_answer:!jt,analysis:zn}});case 18:Kt=ea.sent,Kn(Kt),ea.next=26;break;case 22:return ea.next=24,Re({type:"newExercisePaper/addExerciseQuestion",payload:{insert_id:ve==null?void 0:ve.insert_id,id:$t.id,name:ir,item_type:Tn.length>1?qe.a.Multiple:qe.a.Single,question_score:Ma,choices:ln,tag_discipline_ids:aa,sub_discipline_id:(Jn=Oe.editData)===null||Jn===void 0||((Aa=Jn.exercise)===null||Aa===void 0)?void 0:Aa.sub_discipline_id,difficulty:lt,repeat_answer:!jt,analysis:zn}});case 24:Kt=ea.sent,Kn(Kt);case 26:case"end":return ea.stop()}},zt)}));return function(){return Dt.apply(this,arguments)}}(),ua=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],xa=function(){var Dt=Object(Q.a)(f.a.mark(function zt(xt){return f.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(!(at!==-1)){Kt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Kt.abrupt("return");case 3:Kt.t0=xt.id,Kt.next=Kt.t0==="del"?6:Kt.t0==="edit"?8:Kt.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function ha(){return f.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return Aa.next=2,Object(Me.g)({exam_id:$t.id,question_id:ve.question_id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},$t)});case 3:case"end":return Aa.stop()}},ha)}))()}}),Kt.abrupt("break",13);case 8:return Fe(ve.dragKey),Wa(!0),Kt.abrupt("break",13);case 11:return ae({key:ve.key,insert_id:ve==null?void 0:ve.question_id,question_type:0}),Kt.abrupt("break",13);case 13:case"end":return Kt.stop()}},zt)}));return function(xt){return Dt.apply(this,arguments)}}(),rn=function(){var zt;return t.a.createElement("aside",{ref:yn},t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u5355\u9009\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{className:be.a.questionChoices},ve==null||((zt=ve.question_choices)===null||zt===void 0)?void 0:zt.map(function(xt,ln){return t.a.createElement(a.a,{key:ln},t.a.createElement(v.a,null,t.a.createElement(g.a,{key:ln,checked:ve.standard_answer.includes(ln+1),disabled:!0},Lt[ln],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:xt.choice_text}))))})),t.a.createElement("div",{className:be.a.action},!ve.hideAction&&ua.map(function(xt,ln){return t.a.createElement(s.a,{key:ln,placement:"bottom",title:xt.name},t.a.createElement("span",{onClick:function(){return xa(xt)},className:xt.icon}))})))},Vt=function(){var zt,xt;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ir,onChange:function(Kt){return Qa(Kt)}}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),te.map(function(ln,Kt){return t.a.createElement("div",{className:be.a.choiceWrap,key:Kt},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(be.a.answer," ").concat(Tn.includes(Kt)?be.a.activeAnswer:""),onClick:function(){Tn.includes(Kt)?ya(function(ha){return ha.filter(function(Jn){return Jn!==Kt})}):ya(function(ha){return[].concat(Object(U.a)(ha),[Kt])})}},Lt[Kt])),t.a.createElement("div",{className:be.a.editorWrap},vn===Kt?t.a.createElement(A.a,{id:"single-question-option-".concat(Kt),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ln,onChange:function(ha){te[Kt]=ha,_e(te)}}):t.a.createElement("div",{className:be.a.htmlWrap,onClick:function(){return Wn(Kt)}},t.a.createElement(de.a,{value:ln}))),t.a.createElement(t.a.Fragment,null,Kt>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(be.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return _e(te.filter(function(ha,Jn){return Jn!==Kt}))}})),Kt<7&&Kt===te.length-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(be.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return _e([].concat(Object(U.a)(te),[""]))}}))))}),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:zn,onChange:function(Kt){return jn(Kt)}}),t.a.createElement("div",{style:{marginBottom:14}},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:Ma,max:1e4,min:0,onChange:function(Kt){Jt(Kt)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:lt,onChange:function(Kt){ft(Kt.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("div",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{selectvalues:ve==null?void 0:ve.tag_discipline_ids,value:aa,onChange:ra,subId:(zt=Oe.editData)===null||zt===void 0||((xt=zt.exercise)===null||xt===void 0)?void 0:xt.sub_discipline_id,knowledgeOptions:sn,onAddKnowledgeFinish:Pn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:jt,onChange:function(Kt){Yt(Kt)}}))),t.a.createElement("aside",{className:"tr"},(at!==-1||ve.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){kt(),Wa(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){Vn()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:be.a.wrap},!Ta&&rn(),Ta&&Vt())},$n=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(nn)),ta=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Sa=Object(i.forwardRef)(function(q,Z){var oe=q.newExercisePaper,Oe=q.dispatch,Re=q.editData,ve=q.cancelAdd,bn=ve===void 0?function(){}:ve,kt=q.editKey,at=q.setEditKey,Ht=at===void 0?function(){}:at,Fe=q.addCallback,Un=Fe===void 0?function(rn){}:Fe,Fa=q.reload,fa=Fa===void 0?function(){}:Fa,ae=Object(i.useState)([]),z=Object(o.a)(ae,2),Y=z[0],te=z[1],_e=Object(i.useState)(),se=Object(o.a)(_e,2),ut=se[0],vn=se[1],Wn=Object(i.useState)([]),Oa=Object(o.a)(Wn,2),dn=Oa[0],Tn=Oa[1],ya=Object(i.useState)(""),fr=Object(o.a)(ya,2),gr=fr[0],ir=fr[1],Qa=Object(i.useState)(),ba=Object(o.a)(Qa,2),Na=ba[0],Ma=ba[1],Jt=Object(i.useState)(!1),Rt=Object(o.a)(Jt,2),An=Rt[0],aa=Rt[1],ra=Object(i.useState)([]),Fn=Object(o.a)(ra,2),da=Fn[0],Ta=Fn[1],Wa=Object(i.useState)(1),ue=Object(o.a)(Wa,2),ot=ue[0],lt=ue[1],ft=Object(i.useState)(!1),wt=Object(o.a)(ft,2),Et=wt[0],jt=wt[1],Yt=Object(i.useState)(""),wn=Object(o.a)(Yt,2),fn=wn[0],zn=wn[1],jn=Object(i.useState)([]),$t=Object(o.a)(jn,2),yn=$t[0],pn=$t[1],On=Object(i.useRef)(!1),cn=function(Vt){pn([].concat(Object(U.a)(yn),[Object(d.a)({},Vt)]))},sn=Object(P.i)();Object(i.useEffect)(function(){te(["","","",""])},[]),Object(i.useEffect)(function(){if(On.current)return;if(!(Re!=null&&Re.question_choices)){aa(!0),ir(""),Ma(5),te(["","","",""]),Tn([]);return}ir(Re==null?void 0:Re.question_title),Ma(Re==null?void 0:Re.question_score),jt(!(Re!=null&&Re.repeat_answer)),lt(Re==null?void 0:Re.difficulty),te(Re==null?void 0:Re.question_choices.map(function(Vt){return Vt.choice_text}));var rn=[];Re==null||Re.standard_answer.map(function(Vt,Dt){rn.push(Vt-1)}),Tn(rn),Ta(Re.tag_discipline_ids),zn(Re==null?void 0:Re.analysis)},[Re,An]),Object(i.useEffect)(function(){An&&rn();function rn(){return Vt.apply(this,arguments)}function Vt(){return Vt=Object(Q.a)(f.a.mark(function Dt(){var zt,xt,ln;return f.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.next=2,Object(N.I)({sub_discipline_id:(zt=oe.editData)===null||zt===void 0||((xt=zt.exercise)===null||xt===void 0)?void 0:xt.sub_discipline_id});case 2:ln=Xn.sent,pn(ln.tag_disciplines);case 4:case"end":return Xn.stop()}},Dt)})),Vt.apply(this,arguments)}},[An]),Object(i.useImperativeHandle)(Z,function(){return{onSave:Pn,isEdit:An}}),Object(i.useEffect)(function(){var rn,Vt=oe!=null&&(rn=oe.tagDisciplineData)!==null&&rn!==void 0&&rn.tag_disciplines&&Array.isArray(oe.tagDisciplineData.tag_disciplines)?oe.tagDisciplineData.tag_disciplines:[];pn(Vt)},[oe.tagDisciplineData]);var En=function(Vt){(Vt==null?void 0:Vt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),aa(!1),Ht(-1),On.current=!1,fa())},Pn=function(){var rn=Object(Q.a)(f.a.mark(function Vt(){var Dt,zt,xt,ln,Kt,Xn,ha;return f.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:if(gr){Aa.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),Aa.abrupt("return",!1);case 3:if(Dt=Y.findIndex(function(Zn){return!Zn}),!(Dt>-1)){Aa.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(ta[Dt]," \u9009\u9879\u7684\u5185\u5BB9")),Aa.abrupt("return",!1);case 7:if(dn.length){Aa.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),Aa.abrupt("return",!1);case 10:if(!(dn.length<1)){Aa.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),Aa.abrupt("return",!1);case 13:if(zt=Y.map(function(Zn,ea){return{choice_text:Zn,is_answer:dn.includes(ea)?1:0}}),On.current=!0,!Re.question_id){Aa.next=22;break}return Aa.next=18,Oe({type:"newExercisePaper/editExerciseQuestion",payload:{id:sn.id,question_id:Re.question_id,name:gr,item_type:dn.length>1?qe.a.Multiple:qe.a.Single,question_score:Na,choices:zt,tag_discipline_ids:da,sub_discipline_id:(ln=oe.editData)===null||ln===void 0||((Kt=ln.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id,difficulty:ot,repeat_answer:!Et,analysis:fn}});case 18:xt=Aa.sent,En(xt),Aa.next=26;break;case 22:return Aa.next=24,Oe({type:"newExercisePaper/addExerciseQuestion",payload:{insert_id:Re==null?void 0:Re.insert_id,id:sn.id,name:gr,item_type:dn.length>1?qe.a.Multiple:qe.a.Single,question_score:Na,choices:zt,tag_discipline_ids:da,sub_discipline_id:(Xn=oe.editData)===null||Xn===void 0||((ha=Xn.exercise)===null||ha===void 0)?void 0:ha.sub_discipline_id,difficulty:ot,repeat_answer:!Et,analysis:fn}});case 24:xt=Aa.sent,En(xt);case 26:case"end":return Aa.stop()}},Vt)}));return function(){return rn.apply(this,arguments)}}(),Kn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u591A\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],Vn=function(){var rn=Object(Q.a)(f.a.mark(function Vt(Dt){return f.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!(kt!==-1)){xt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),xt.abrupt("return");case 3:xt.t0=Dt.id,xt.next=xt.t0==="del"?6:xt.t0==="edit"?8:xt.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Kt(){return f.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.next=2,Object(Me.g)({question_id:Re.question_id,exam_id:sn.id});case 2:Oe({type:"newExercisePaper/editExercise",payload:Object(d.a)({},sn)});case 3:case"end":return ha.stop()}},Kt)}))()}}),xt.abrupt("break",13);case 8:return Ht(Re.dragKey),aa(!0),xt.abrupt("break",13);case 11:return Un({key:Re.key,insert_id:Re==null?void 0:Re.question_id,question_type:1}),xt.abrupt("break",13);case 13:case"end":return xt.stop()}},Vt)}));return function(Dt){return rn.apply(this,arguments)}}(),ua=function(){var Vt;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(Re!=null&&Re.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u591A\u9009\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09")),Re!=null&&Re.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Re.key,"."),t.a.createElement(de.a,{value:Re.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Re.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Re.question_title})),t.a.createElement("div",{className:be.a.questionChoices},Re==null||((Vt=Re.question_choices)===null||Vt===void 0)?void 0:Vt.map(function(Dt,zt){return t.a.createElement(a.a,{key:zt},t.a.createElement(v.a,null,t.a.createElement(T.a,{key:zt,checked:Re.standard_answer.includes(zt+1),disabled:!0},ta[zt],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:Dt.choice_text}))))})),t.a.createElement("div",{className:be.a.action},!Re.hideAction&&Kn.map(function(Dt,zt){return t.a.createElement(s.a,{key:zt,placement:"bottom",title:Dt.name},t.a.createElement("span",{onClick:function(){return Vn(Dt)},className:Dt.icon}))})))},xa=function(){var Vt,Dt;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:gr,onChange:function(xt){return ir(xt)}}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Y.map(function(zt,xt){var ln,Kt;return t.a.createElement("div",{className:be.a.choiceWrap,key:xt},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(be.a.answer," ").concat(dn.includes(xt)?be.a.activeAnswer:""),onClick:function(){dn.includes(xt)?Tn(dn.filter(function(ha){return ha!==xt})):Tn([].concat(Object(U.a)(dn),[xt]))}},ta[xt])),t.a.createElement("div",{className:be.a.editorWrap},ut===xt?t.a.createElement(A.a,{id:"single-question-option-".concat(xt),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:zt,onChange:function(ha){Y[xt]=ha,te(Y)}}):t.a.createElement("div",{className:be.a.htmlWrap,onClick:function(){return vn(xt)}},t.a.createElement(de.a,{value:zt}))),((ln=oe.editData)===null||ln===void 0||((Kt=ln.exercise)===null||Kt===void 0)?void 0:Kt.exercise_status)===1&&t.a.createElement(t.a.Fragment,null,xt>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(be.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return te(Y.filter(function(ha,Jn){return Jn!==xt}))}})),xt<7&&xt===Y.length-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(be.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return te([].concat(Object(U.a)(Y),[""]))}}))))}),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:fn,onChange:function(xt){return zn(xt)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:Na,max:1e4,min:0,onChange:function(xt){Ma(xt)}}),"\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:ot,onChange:function(xt){lt(xt.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:da,selectvalues:Re==null?void 0:Re.tag_discipline_ids,onChange:Ta,subId:(Vt=oe.editData)===null||Vt===void 0||((Dt=Vt.exercise)===null||Dt===void 0)?void 0:Dt.sub_discipline_id,knowledgeOptions:yn,onAddKnowledgeFinish:cn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:Et,onChange:function(xt){jt(xt)}}))),t.a.createElement("aside",{className:"tr"},(kt!==-1||Re.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){bn(),aa(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){Pn()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:be.a.wrap},!An&&ua(),An&&xa())}),_n=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Sa),Bt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],mn=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.editKey,kt=Z.setEditKey,at=kt===void 0?function(){}:kt,Ht=Z.cancelAdd,Fe=Ht===void 0?function(){}:Ht,Un=Z.reload,Fa=Un===void 0?function(){}:Un,fa=Z.addCallback,ae=fa===void 0?function(){}:fa,z=Object(i.useState)(),Y=Object(o.a)(z,2),te=Y[0],_e=Y[1],se=Object(i.useState)(""),ut=Object(o.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(i.useState)(!1),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)([]),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)([]),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(1),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)(!1),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(""),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useRef)(!1),fn=function(En){ra([].concat(Object(U.a)(aa),[Object(d.a)({},En)]))},zn=Object(P.i)();Object(i.useEffect)(function(){if(wn.current)return;if(!(ve!=null&&ve.question_choices)){ya(!0),Wn(""),Qa(2),_e("");return}ft(!(ve!=null&&ve.repeat_answer)),Wn(ve==null?void 0:ve.question_title),Qa(ve==null?void 0:ve.question_score),Wa(ve==null?void 0:ve.difficulty),_e(ve.standard_answer[0]+""),Jt(ve.tag_discipline_ids),Yt(ve==null?void 0:ve.analysis)},[ve,Tn]),Object(i.useEffect)(function(){Tn&&sn();function sn(){return En.apply(this,arguments)}function En(){return En=Object(Q.a)(f.a.mark(function Pn(){var Kn,Vn,ua;return f.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.next=2,Object(N.I)({sub_discipline_id:(Kn=Oe.editData)===null||Kn===void 0||((Vn=Kn.exercise)===null||Vn===void 0)?void 0:Vn.sub_discipline_id});case 2:ua=rn.sent,ra(ua.tag_disciplines);case 4:case"end":return rn.stop()}},Pn)})),En.apply(this,arguments)}},[Tn]),Object(i.useImperativeHandle)(oe,function(){return{onSave:$t,isEdit:Tn}}),Object(i.useEffect)(function(){var sn,En=Oe!=null&&(sn=Oe.tagDisciplineData)!==null&&sn!==void 0&&sn.tag_disciplines&&Array.isArray(Oe.tagDisciplineData.tag_disciplines)?Oe.tagDisciplineData.tag_disciplines:[];ra(En)},[Oe.tagDisciplineData]);var jn=function(En){(En==null?void 0:En.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),ya(!1),at(-1),wn.current=!1,Fa())},$t=function(){var sn=Object(Q.a)(f.a.mark(function En(){var Pn,Kn,Vn,ua,xa,rn;return f.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(vn){Dt.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Dt.abrupt("return",!1);case 3:if(te){Dt.next=6;break}return E.b.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),Dt.abrupt("return",!1);case 6:if(Pn=[{choice_text:"\u6B63\u786E",is_answer:te==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:te==="2"?1:0}],wn.current=!0,!ve.question_id){Dt.next=15;break}return Dt.next=11,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:zn.id,question_id:ve.question_id,name:vn,item_type:qe.a.Judge,question_score:ir,choices:Pn,tag_discipline_ids:Ma,sub_discipline_id:(Vn=Oe.editData)===null||Vn===void 0||((ua=Vn.exercise)===null||ua===void 0)?void 0:ua.sub_discipline_id,difficulty:Ta,repeat_answer:!lt,analysis:jt}});case 11:Kn=Dt.sent,jn(Kn),Dt.next=19;break;case 15:return Dt.next=17,Re({type:"newExercisePaper/addExerciseQuestion",payload:{id:zn.id,insert_id:ve==null?void 0:ve.insert_id,name:vn,item_type:qe.a.Judge,question_score:ir,choices:Pn,tag_discipline_ids:Ma,sub_discipline_id:(xa=Oe.editData)===null||xa===void 0||((rn=xa.exercise)===null||rn===void 0)?void 0:rn.sub_discipline_id,difficulty:Ta,repeat_answer:!lt,analysis:jt}});case 17:Kn=Dt.sent,jn(Kn);case 19:return Dt.abrupt("return",{name:vn,choices:Pn});case 20:case"end":return Dt.stop()}},En)}));return function(){return sn.apply(this,arguments)}}(),yn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5224\u65AD\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],pn=function(){var sn=Object(Q.a)(f.a.mark(function En(Pn){return f.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:if(!(bn!==-1)){Vn.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Vn.abrupt("return");case 3:Vn.t0=Pn.id,Vn.next=Vn.t0==="del"?6:Vn.t0==="edit"?8:Vn.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function xa(){return f.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Vt.next=2,Object(Me.g)({question_id:ve.question_id,exam_id:zn.id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},zn)});case 3:case"end":return Vt.stop()}},xa)}))()}}),Vn.abrupt("break",13);case 8:return at(ve.dragKey),ya(!0),Vn.abrupt("break",13);case 11:return ae({key:ve.key,insert_id:ve==null?void 0:ve.question_id,question_type:2}),Vn.abrupt("break",13);case 13:case"end":return Vn.stop()}},En)}));return function(Pn){return sn.apply(this,arguments)}}(),On=function(){var En;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{className:be.a.questionChoices},ve==null||((En=ve.question_choices)===null||En===void 0)?void 0:En.map(function(Pn,Kn){return t.a.createElement(g.a,{key:Kn,checked:ve.standard_answer.includes(Kn+1),disabled:!0},Bt[Kn],"."," ",t.a.createElement("span",{className:"c-black font14"},Pn.choice_text))})),t.a.createElement("div",{className:be.a.action},!ve.hideAction&&yn.map(function(Pn,Kn){return t.a.createElement(s.a,{key:Kn,placement:"bottom",title:Pn.name},t.a.createElement("span",{onClick:function(){return pn(Pn)},className:Pn.icon}))})))},cn=function(){var En,Pn;return t.a.createElement("aside",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:vn,onChange:function(Vn){return Wn(Vn)}}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),t.a.createElement(g.a.Group,{buttonStyle:"solid",value:te,onChange:function(Vn){return _e(Vn.target.value)}},t.a.createElement(g.a.Button,{value:"1",className:"".concat(be.a.radio," mr40")},"\u6B63\u786E"),t.a.createElement(g.a.Button,{value:"2",className:be.a.radio},"\u9519\u8BEF")),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:jt,onChange:function(Vn){return Yt(Vn)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:ir,max:1e4,min:0,onChange:function(Vn){Qa(Vn)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:Ta,onChange:function(Vn){Wa(Vn.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:Ma,selectvalues:ve==null?void 0:ve.tag_discipline_ids,onChange:Jt,subId:(En=Oe.editData)===null||En===void 0||((Pn=En.exercise)===null||Pn===void 0)?void 0:Pn.sub_discipline_id,knowledgeOptions:aa,onAddKnowledgeFinish:fn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:lt,onChange:function(Vn){ft(Vn)}}))),t.a.createElement("aside",{className:"tr"},(bn!==-1||ve.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Fe(),ya(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){$t()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:be.a.wrap},!Tn&&On(),Tn&&cn())},Gt=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(mn)),ze=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.editKey,kt=Z.setEditKey,at=kt===void 0?function(){}:kt,Ht=Z.cancelAdd,Fe=Ht===void 0?function(){}:Ht,Un=Z.addCallback,Fa=Un===void 0?function(){}:Un,fa=Z.reload,ae=fa===void 0?function(){}:fa,z=Object(i.useState)(""),Y=Object(o.a)(z,2),te=Y[0],_e=Y[1],se=Object(i.useState)(""),ut=Object(o.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(i.useState)([]),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(""),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)(!1),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)(0),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(!1),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useState)(!1),fn=Object(o.a)(wn,2),zn=fn[0],jn=fn[1],$t=Object(i.useState)([]),yn=Object(o.a)($t,2),pn=yn[0],On=yn[1],cn=Object(i.useState)(1),sn=Object(o.a)(cn,2),En=sn[0],Pn=sn[1],Kn=Object(i.useState)(!1),Vn=Object(o.a)(Kn,2),ua=Vn[0],xa=Vn[1],rn=Object(i.useRef)(!1),Vt=Object(P.i)(),Dt=Object(i.useState)([]),zt=Object(o.a)(Dt,2),xt=zt[0],ln=zt[1],Kt=function(Ja){ln([].concat(Object(U.a)(xt),[Object(d.a)({},Ja)]))};Object(i.useEffect)(function(){if(rn.current)return;if(!(ve!=null&&ve.question_title)){Yt(!0),_e(""),Jt(!1),Wa(2),ya([]),Qa(""),ra(!1);return}_e(ve==null?void 0:ve.question_title),Jt(ve==null?void 0:ve.is_ordered),Pn(ve==null?void 0:ve.difficulty),xa(!(ve!=null&&ve.repeat_answer)),Wa(ve==null?void 0:ve.question_score);var pa=ve==null?void 0:ve.standard_answer.map(function(Ja){return Ja.answer_text});ya(Object(U.a)(pa)),On(ve.tag_discipline_ids),Wn(ve==null?void 0:ve.analysis)},[ve,jt]),Object(i.useEffect)(function(){ra(!1),jt&&pa();function pa(){return Ja.apply(this,arguments)}function Ja(){return Ja=Object(Q.a)(f.a.mark(function or(){var Ln,Wt,Rn;return f.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return la.next=2,Object(N.I)({sub_discipline_id:(Ln=Oe.editData)===null||Ln===void 0||((Wt=Ln.exercise)===null||Wt===void 0)?void 0:Wt.sub_discipline_id});case 2:Rn=la.sent,ln(Rn.tag_disciplines);case 4:case"end":return la.stop()}},or)})),Ja.apply(this,arguments)}},[jt]),Object(i.useImperativeHandle)(oe,function(){return{onSave:ha,isEdit:jt}}),Object(i.useEffect)(function(){var pa,Ja=Oe!=null&&(pa=Oe.tagDisciplineData)!==null&&pa!==void 0&&pa.tag_disciplines&&Array.isArray(Oe.tagDisciplineData.tag_disciplines)?Oe.tagDisciplineData.tag_disciplines:[];ln(Ja)},[Oe.tagDisciplineData]);var Xn=function(Ja){(Ja==null?void 0:Ja.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Yt(!1),at(-1),rn.current=!1,ae())},ha=function(){var pa=Object(Q.a)(f.a.mark(function Ja(){var or,Ln,Wt,Rn,Ra,la,Mn;return f.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(or=[],Ln=!1,jn(!0),Tn.forEach(function(ma,ga){or.push({position:ga+1,answer_text:[]}),ma.forEach(function(ja,Xa){or[ga].answer_text.push(ja),(!ja||!Object($.db)(ja,1e4))&&(Qa("".concat(ga,"-").concat(Xa)),E.b.info(ja?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Ln=!0)})}),!Ln){Dn.next=7;break}return jn(!1),Dn.abrupt("return",!1);case 7:if(rn.current=!0,!ve.question_id){Dn.next=15;break}return Dn.next=11,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:Vt.id,question_id:ve.question_id,name:te,item_type:3,question_score:Ta,is_ordered:Ma,standard_answers:or,tag_discipline_ids:pn,sub_discipline_id:(Rn=Oe.editData)===null||Rn===void 0||((Ra=Rn.exercise)===null||Ra===void 0)?void 0:Ra.sub_discipline_id,difficulty:En,repeat_answer:!ua,analysis:vn}});case 11:Wt=Dn.sent,Xn(Wt),Dn.next=19;break;case 15:return Dn.next=17,Re({type:"newExercisePaper/addExerciseQuestion",payload:{insert_id:ve==null?void 0:ve.insert_id,id:Vt.id,name:te,item_type:3,question_score:Ta,is_ordered:Ma,standard_answers:or,tag_discipline_ids:pn,sub_discipline_id:(la=Oe.editData)===null||la===void 0||((Mn=la.exercise)===null||Mn===void 0)?void 0:Mn.sub_discipline_id,difficulty:En,repeat_answer:!ua,analysis:vn}});case 17:Wt=Dn.sent,Xn(Wt);case 19:return jn(!1),Dn.abrupt("return",{name:te,analysis:vn,standard_answers:or,is_ordered:Ma});case 21:case"end":return Dn.stop()}},Ja)}));return function(){return pa.apply(this,arguments)}}(),Jn=function(Ja,or,Ln){var Wt=Tn.slice();if(or&&Wt.splice(Ja,or),Ln&&aa||!ve.question_id)for(var Rn=0;Rn1&&t.a.createElement("span",null,t.a.createElement(T.a,{checked:Ma,onChange:function(Wt){return Jt(Wt.target.checked)},className:"".concat(be.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),t.a.createElement("span",{className:"".concat(be.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:vn,onChange:function(Wt){return Wn(Wt)}}),t.a.createElement("p",{className:""},t.a.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:Ta,max:1e4,min:0,onChange:function(Wt){Wa(Wt)}})," ","\u5206 \xA0"," ",!!Ta&&!!lt&&t.a.createElement("span",{style:{color:"red"}},"(\u6839\u636E\u5747\u5206\u89C4\u5219\uFF0C\u672C\u9898\u6BCF\u7A7A",(Ta/lt).toFixed(1),"\u5206)"),t.a.createElement("span",{style:{marginLeft:"30px"},className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:En,onChange:function(Wt){Pn(Wt.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:pn,selectvalues:ve==null?void 0:ve.tag_discipline_ids,onChange:On,subId:(Ja=Oe.editData)===null||Ja===void 0||((or=Ja.exercise)===null||or===void 0)?void 0:or.sub_discipline_id,knowledgeOptions:xt,onAddKnowledgeFinish:Kt})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:ua,onChange:function(Wt){xa(Wt)}}))),t.a.createElement("aside",{className:"tr"},(bn!==-1||ve.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Fe(),Yt(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){ha()}},"\u4FDD\u5B58")))},Sr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u586B\u7A7A\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],Va=function(){var pa=Object(Q.a)(f.a.mark(function Ja(or){return f.a.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(!(bn!==-1)){Wt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Wt.abrupt("return");case 3:Wt.t0=or.id,Wt.next=Wt.t0==="del"?6:Wt.t0==="edit"?8:Wt.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Ra(){return f.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.next=2,Object(Me.g)({question_id:ve.question_id,exam_id:Vt.id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Vt)});case 3:case"end":return Mn.stop()}},Ra)}))()}}),Wt.abrupt("break",13);case 8:return at(ve.dragKey),Yt(!0),Wt.abrupt("break",13);case 11:return Fa({key:ve.key,insert_id:ve==null?void 0:ve.question_id,question_type:3}),Wt.abrupt("break",13);case 13:case"end":return Wt.stop()}},Ja)}));return function(or){return pa.apply(this,arguments)}}(),Za=function(){var Ja;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{className:be.a.questionChoices},ve==null||((Ja=ve.standard_answer)===null||Ja===void 0)?void 0:Ja.map(function(or,Ln){return t.a.createElement(a.a,{key:Ln,align:"middle"},t.a.createElement(v.a,null,"\u7B54\u6848\uFF08\u586B\u7A7A",or.choice_id,"\uFF09\uFF1A"),t.a.createElement(v.a,{flex:"1"},t.a.createElement(a.a,{align:"middle",gutter:[1,1]},or.answer_text.map(function(Wt,Rn){return t.a.createElement(v.a,{span:24,key:Rn},t.a.createElement(D.a,{key:Ln,checked:ve.standard_answer.includes(Ln),disabled:!0,value:Wt}))}))))})),t.a.createElement("div",{className:be.a.action},!ve.hideAction&&Sr.map(function(or,Ln){return or.id==="up"&&ve.key===1||or.id==="down"&&ve.key===ve.len?null:t.a.createElement(s.a,{key:Ln,placement:"bottom",title:or.name},t.a.createElement("span",{onClick:function(){return Va(or)},className:or.icon}))})))};return t.a.createElement("section",{className:be.a.wrap},!jt&&Za(),jt&&Ha())},ct=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(ze)),Sn=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.cancelAdd,kt=bn===void 0?function(){}:bn,at=Z.editKey,Ht=Z.setEditKey,Fe=Ht===void 0?function(){}:Ht,Un=Z.reload,Fa=Un===void 0?function(){}:Un,fa=Z.addCallback,ae=fa===void 0?function(){}:fa,z=Object(i.useState)(""),Y=Object(o.a)(z,2),te=Y[0],_e=Y[1],se=Object(i.useState)(""),ut=Object(o.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(i.useState)(""),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(!1),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)([]),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(1),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)(!1),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)([[],[]]),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useRef)(!1),fn=Object(P.i)(),zn=Object(i.useState)([]),jn=Object(o.a)(zn,2),$t=jn[0],yn=jn[1],pn=function(ua){yn([].concat(Object(U.a)($t),[Object(d.a)({},ua)]))};Object(i.useEffect)(function(){var Vn;if(wn.current)return;if(!(ve!=null&&ve.question_title)){Jt(!0),_e(""),ya(""),Qa(10);return}ft(!(ve!=null&&ve.repeat_answer)),_e(ve==null?void 0:ve.question_title),ya(ve==null||((Vn=ve.standard_answer)===null||Vn===void 0)?void 0:Vn[0]),Qa(ve==null?void 0:ve.question_score),ra(ve.tag_discipline_ids),Wa(ve==null?void 0:ve.difficulty),Wn(ve==null?void 0:ve.analysis),Yt([ve==null?void 0:ve.normal_keywords,ve==null?void 0:ve.main_keywords])},[Oe.editData,Ma]),Object(i.useEffect)(function(){var Vn,ua=Oe!=null&&(Vn=Oe.tagDisciplineData)!==null&&Vn!==void 0&&Vn.tag_disciplines&&Array.isArray(Oe.tagDisciplineData.tag_disciplines)?Oe.tagDisciplineData.tag_disciplines:[];yn(ua)},[Oe.tagDisciplineData]),Object(i.useEffect)(function(){Ma&&Vn();function Vn(){return ua.apply(this,arguments)}function ua(){return ua=Object(Q.a)(f.a.mark(function xa(){var rn,Vt,Dt;return f.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,Object(N.I)({sub_discipline_id:(rn=Oe.editData)===null||rn===void 0||((Vt=rn.exercise)===null||Vt===void 0)?void 0:Vt.sub_discipline_id});case 2:Dt=xt.sent,yn(Dt.tag_disciplines);case 4:case"end":return xt.stop()}},xa)})),ua.apply(this,arguments)}},[Ma]),Object(i.useImperativeHandle)(oe,function(){return{onSave:cn,isEdit:Ma}});var On=function(ua){(ua==null?void 0:ua.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Jt(!1),Fe(-1),wn.current=!1,Fa())},cn=function(){var Vn=Object(Q.a)(f.a.mark(function ua(){var xa,rn,Vt,Dt,zt,xt,ln;return f.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(te){Xn.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Xn.abrupt("return",!1);case 3:if(xa=jt[0],rn=jt[1],wn.current=!0,!ve.question_id){Xn.next=13;break}return Xn.next=9,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:fn.id,question_id:ve.question_id,name:te,item_type:4,question_score:ir,answer_texts:[Tn],tag_discipline_ids:aa,sub_discipline_id:(Dt=Oe.editData)===null||Dt===void 0||((zt=Dt.exercise)===null||zt===void 0)?void 0:zt.sub_discipline_id,difficulty:Ta,repeat_answer:!lt,analysis:vn,normal_keywords:xa,main_keywords:rn}});case 9:Vt=Xn.sent,On(Vt),Xn.next=17;break;case 13:return Xn.next=15,Re({type:"newExercisePaper/addExerciseQuestion",payload:{insert_id:ve==null?void 0:ve.insert_id,id:fn.id,name:te,item_type:4,question_score:ir,answer_texts:[Tn],tag_discipline_ids:aa,sub_discipline_id:(xt=Oe.editData)===null||xt===void 0||((ln=xt.exercise)===null||ln===void 0)?void 0:ln.sub_discipline_id,difficulty:Ta,repeat_answer:!lt,analysis:vn,normal_keywords:xa,main_keywords:rn}});case 15:Vt=Xn.sent,On(Vt);case 17:return Xn.abrupt("return",{name:te,answer_texts:[Tn],analysis:vn,normal_keywords:xa,main_keywords:rn});case 18:case"end":return Xn.stop()}},ua)}));return function(){return Vn.apply(this,arguments)}}(),sn=function(){var ua,xa;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:te,onChange:function(Vt){return _e(Vt)}}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),t.a.createElement(A.a,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Tn,onChange:function(Vt){return ya(Vt)}}),t.a.createElement(Ct.a,{value:jt,onChange:Yt}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:vn,onChange:function(Vt){return Wn(Vt)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:ir,max:1e4,min:0,onChange:function(Vt){Qa(Vt)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:Ta,onChange:function(Vt){Wa(Vt.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:aa,selectvalues:ve==null?void 0:ve.tag_discipline_ids,onChange:ra,subId:(ua=Oe.editData)===null||ua===void 0||((xa=ua.exercise)===null||xa===void 0)?void 0:xa.sub_discipline_id,knowledgeOptions:$t,onAddKnowledgeFinish:pn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:lt,onChange:function(Vt){ft(Vt)}}))),t.a.createElement("aside",{className:"tr"},(at!==-1||ve.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){kt(),Jt(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){cn()}},"\u4FDD\u5B58")))},En=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u7B80\u7B54\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],Pn=function(){var Vn=Object(Q.a)(f.a.mark(function ua(xa){return f.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!(at!==-1)){Vt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Vt.abrupt("return");case 3:Vt.t0=xa.id,Vt.next=Vt.t0==="del"?6:Vt.t0==="up"||Vt.t0==="down"?8:Vt.t0==="edit"?12:Vt.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function zt(){return f.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return ln.next=2,Object(Me.g)({question_id:ve.question_id,exam_id:fn.id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},fn)});case 3:case"end":return ln.stop()}},zt)}))()}}),Vt.abrupt("break",17);case 8:return Vt.next=10,Re({type:"newExercisePaper/exeriseMoveUpDown",payload:{id:ve.question_id,opr:xa.id}});case 10:return Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},fn)}),Vt.abrupt("break",17);case 12:return Fe(ve.dragKey),Jt(!0),Vt.abrupt("break",17);case 15:return ae({key:ve.key,insert_id:ve==null?void 0:ve.question_id,question_type:4}),Vt.abrupt("break",17);case 17:case"end":return Vt.stop()}},ua)}));return function(xa){return Vn.apply(this,arguments)}}(),Kn=function(){return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{className:be.a.questionChoices},t.a.createElement("p",null,t.a.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),t.a.createElement(de.a,{value:Tn||""})),t.a.createElement("div",{className:be.a.action},!ve.hideAction&&En.map(function(ua,xa){return t.a.createElement(s.a,{key:xa,placement:"bottom",title:ua.name},t.a.createElement("span",{onClick:function(){return Pn(ua)},className:ua.icon}))})))};return t.a.createElement("section",{className:be.a.wrap},!Ma&&Kn(),Ma&&sn())},qt=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Sn)),Gn=function(Z,oe){var Oe=Z.dispatch,Re=Z.editData,ve=Z.cancelAdd,bn=ve===void 0?function(){}:ve,kt=Z.editKey,at=Z.setEditKey,Ht=at===void 0?function(){}:at,Fe=Z.reload,Un=Fe===void 0?function(){}:Fe,Fa=Object(i.useState)(""),fa=Object(o.a)(Fa,2),ae=fa[0],z=fa[1],Y=Object(i.useState)(""),te=Object(o.a)(Y,2),_e=te[0],se=te[1],ut=Object(i.useState)(""),vn=Object(o.a)(ut,2),Wn=vn[0],Oa=vn[1],dn=Object(i.useState)([]),Tn=Object(o.a)(dn,2),ya=Tn[0],fr=Tn[1],gr=Object(i.useState)(),ir=Object(o.a)(gr,2),Qa=ir[0],ba=ir[1],Na=Object(i.useState)(!1),Ma=Object(o.a)(Na,2),Jt=Ma[0],Rt=Ma[1],An=Object(i.useState)([]),aa=Object(o.a)(An,2),ra=aa[0],Fn=aa[1],da=Object(i.useState)(!1),Ta=Object(o.a)(da,2),Wa=Ta[0],ue=Ta[1],ot=Object(i.useState)(!1),lt=Object(o.a)(ot,2),ft=lt[0],wt=lt[1],Et=Object(P.i)(),jt=Object(i.useRef)(!1);Object(i.useEffect)(function(){var yn;if(jt.current)return;Re.edit&&(ue(!0),se(""),z(""),Fn([])),z(Re.shixun_name),se(Re.question_title);var pn=[];(yn=Re.shixun)===null||yn===void 0||yn.map(function(On){pn.push(On.challenge_score)}),Fn(pn)},[Re]),Object(i.useEffect)(function(){Rt(!1)},[Wa]),Object(i.useImperativeHandle)(oe,function(){return{onSave:wn,isEdit:Wa}});var Yt=function(pn){(pn==null?void 0:pn.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),ue(!1),Ht(-1),jt.current=!1,Un())},wn=function(){var yn=Object(Q.a)(f.a.mark(function pn(){var On,cn,sn;return f.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:if(On=[],cn=!1,!cn){Pn.next=4;break}return Pn.abrupt("return",!1);case 4:if(jt.current=!0,wt(!0),!Re.question_id){Pn.next=12;break}return Pn.next=9,Oe({type:"newExercisePaper/editExerciseQuestion",payload:{id:Et.id,question_id:Re.question_id,name:_e,shixun_name:ae,shixun_id:Re.shixun_id,item_type:5,question_scores:ra}});case 9:sn=Pn.sent,Pn.next=15;break;case 12:return Pn.next=14,Oe({type:"newExercisePaper/addExerciseQuestion",payload:{id:Et.id,insert_id:Re==null?void 0:Re.insert_id,name:_e,shixun_name:ae,shixun_id:Re.shixun_id,item_type:5,question_scores:ra,is_copy:Re.is_copy}});case 14:sn=Pn.sent;case 15:return Yt(sn),wt(!1),Pn.abrupt("return",{name:_e,analysis:Wn,standard_answers:On,is_ordered:Qa});case 18:case"end":return Pn.stop()}},pn)}));return function(){return yn.apply(this,arguments)}}(),fn=function(){var pn;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),t.a.createElement("div",{className:"mt10"},t.a.createElement(D.a,{defaultValue:ae,onChange:function(cn){z(cn.target.value)}})),t.a.createElement("div",{className:"mt10"},t.a.createElement(A.a,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:_e,onChange:function(cn){se(cn)}})),t.a.createElement("div",{className:"mt20"},(pn=Re.shixun)===null||pn===void 0?void 0:pn.map(function(On,cn){return t.a.createElement(a.a,{gutter:[20,20]},t.a.createElement(v.a,{flex:"1"},cn+1,".",On.challenge_name),t.a.createElement(v.a,null,t.a.createElement(k.a,{defaultValue:ra[cn],onChange:function(En){ra[cn]=En,Fn(ra)}})," ","\u5206"))})),t.a.createElement("div",{className:"mt20"},ya.length>1&&t.a.createElement("span",null,t.a.createElement(T.a,{checked:Qa,onChange:function(cn){return ba(cn.target.checked)},className:"".concat(be.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),t.a.createElement("span",{className:"".concat(be.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),t.a.createElement("aside",{className:"tr"},(kt!==-1||!(Re!=null&&Re.edit))&&t.a.createElement(u.a,{type:"default",onClick:function(){bn(),ue(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{loading:ft,className:"ml20",type:"primary",onClick:function(){wn()}},"\u4FDD\u5B58")))},zn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5B9E\u8BAD\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],jn=function(){var yn=Object(Q.a)(f.a.mark(function pn(On){return f.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:if(!(kt!==-1)){sn.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),sn.abrupt("return");case 3:sn.t0=On.id,sn.next=sn.t0==="del"?6:sn.t0==="edit"?8:sn.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Pn(){return f.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Vn.next=2,Object(Me.g)({question_id:Re.question_id,exam_id:Et.id});case 2:Oe({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Et)});case 3:case"end":return Vn.stop()}},Pn)}))()}}),sn.abrupt("break",13);case 8:return Ht(Re.dragKey),ue(!0),sn.abrupt("break",13);case 11:return Oe({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",editData:{key:Re.key,insert_id:Re==null?void 0:Re.question_id,question_type:5}}}),sn.abrupt("break",13);case 13:case"end":return sn.stop()}},pn)}));return function(On){return yn.apply(this,arguments)}}(),$t=function(){var pn,On;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(Re!=null&&Re.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09")),Re!=null&&Re.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Re.key,"."),t.a.createElement(de.a,{value:Re.shixun_name}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Re.question_score,"\u5206\uFF09"),!!((pn=Re.schools)!==null&&pn!==void 0&&pn.length)&&t.a.createElement(s.a,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},t.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 font18 line24 c-orange"}))):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Re.shixun_name})),t.a.createElement("div",{className:"mt30"}),(On=Re.shixun)===null||On===void 0?void 0:On.map(function(cn,sn){return t.a.createElement("div",{key:sn},"\u7B2C",sn+1,"\u5173"," ",t.a.createElement("span",{className:"ml10"},cn.challenge_name)," ",t.a.createElement("span",{className:"ml10"},cn.challenge_score," \u5206"))}),t.a.createElement("div",{className:be.a.action},t.a.createElement(dt.a,{target:"_blank",to:"/shixuns/".concat(Re.shixun_identifier,"/challenges?exercise=true")},"\u5B9E\u8BAD\u8BE6\u60C5"),!Re.hideAction&&zn.map(function(cn,sn){return t.a.createElement(s.a,{key:sn,placement:"bottom",title:cn.name},t.a.createElement("span",{onClick:function(){return jn(cn)},className:cn.icon}))})))};return t.a.createElement("section",{className:be.a.wrap},!Wa&&$t(),Wa&&fn())},qn=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Gn)),Mt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Nn=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.editKey,kt=Z.addCallback,at=kt===void 0?function(){}:kt,Ht=Object(i.useState)([]),Fe=Object(o.a)(Ht,2),Un=Fe[0],Fa=Fe[1],fa=Object(i.useState)(),ae=Object(o.a)(fa,2),z=ae[0],Y=ae[1],te=Object(i.useState)([]),_e=Object(o.a)(te,2),se=_e[0],ut=_e[1],vn=Object(i.useState)(""),Wn=Object(o.a)(vn,2),Oa=Wn[0],dn=Wn[1],Tn=Object(i.useState)(5),ya=Object(o.a)(Tn,2),fr=ya[0],gr=ya[1],ir=Object(i.useState)(!1),Qa=Object(o.a)(ir,2),ba=Qa[0],Na=Qa[1],Ma=Object(P.i)();Object(i.useEffect)(function(){Fa(["","","",""])},[]),Object(i.useEffect)(function(){if(!(ve!=null&&ve.question_choices)){Na(!0),dn(""),gr(5),Fa(["","","",""]),ut([]);return}dn(ve==null?void 0:ve.question_title),gr(ve==null?void 0:ve.question_score),Fa(ve==null?void 0:ve.question_choices.map(function(da){return da.choice_text}));var Fn=[];ve==null||ve.standard_answer.map(function(da,Ta){Fn.push(da-1)}),ut(Fn)},[ve]),Object(i.useImperativeHandle)(oe,function(){return{onSave:Jt,isEdit:ba}});var Jt=function(){var Fn=Object(Q.a)(f.a.mark(function da(){var Ta,Wa,ue;return f.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(Oa){lt.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),lt.abrupt("return",!1);case 3:if(Ta=Un.findIndex(function(ft){return!ft}),!(Ta>-1)){lt.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Mt[Ta]," \u9009\u9879\u7684\u5185\u5BB9")),lt.abrupt("return",!1);case 7:if(se.length){lt.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),lt.abrupt("return",!1);case 10:if(!(se.length<1)){lt.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),lt.abrupt("return",!1);case 13:if(Wa=Un.map(function(ft,wt){return{choice_text:ft,is_answer:se.includes(wt)?wt+1:0}}),!ve.question_id){lt.next=20;break}return lt.next=17,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:ve.question_id,question_title:Oa,question_type:1,question_score:fr,question_choices:Wa.map(function(ft){return ft.choice_text}),standard_answers:Wa.filter(function(ft){return ft.is_answer}).map(function(ft){return ft.is_answer})}});case 17:ue=lt.sent,lt.next=23;break;case 20:return lt.next=22,Re({type:"newExercisePaper/addExerciseQuestion",payload:{insert_id:ve==null?void 0:ve.insert_id,categoryId:Ma.categoryId,question_title:Oa,question_type:1,question_score:"5.0",question_choices:Wa.map(function(ft){return ft.choice_text}),standard_answers:Wa.filter(function(ft){return ft.is_answer}).map(function(ft){return ft.is_answer})}});case 22:ue=lt.sent;case 23:ue.status===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Na(!1),Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Ma)}));case 24:case"end":return lt.stop()}},da)}));return function(){return Fn.apply(this,arguments)}}(),Rt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u7F16\u7A0B\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],An=function(){var Fn=Object(Q.a)(f.a.mark(function da(Ta){return f.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(!(bn!==-1)){ue.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),ue.abrupt("return");case 3:ue.t0=Ta.id,ue.next=ue.t0==="del"?6:ue.t0==="edit"?8:ue.t0==="add"?10:12;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function lt(){return f.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Object(Me.g)({exam_id:Ma.id,question_id:ve.question_id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Ma)});case 3:case"end":return wt.stop()}},lt)}))()}}),ue.abrupt("break",12);case 8:return H.d.push("/problems/".concat(ve==null?void 0:ve.hack_identifier,"/edit?type=exercises&express_id=").concat(Ma.id,"&question_id=").concat(ve==null?void 0:ve.question_id,"&score=").concat(ve==null?void 0:ve.question_score,"&exercise=true&callback_url=").concat(location.pathname)),ue.abrupt("break",12);case 10:return at({key:ve.key,insert_id:ve==null?void 0:ve.question_id,question_type:6}),ue.abrupt("break",12);case 12:case"end":return ue.stop()}},da)}));return function(Ta){return Fn.apply(this,arguments)}}(),aa=function(){var Fn=Object(Q.a)(f.a.mark(function da(Ta){var Wa;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return Ta.preventDefault(),ot.next=3,Object(N.X)({id:ve==null?void 0:ve.hack_identifier});case 3:Wa=ot.sent,Wa.status===0&&Object($.S)("/myproblems/".concat(Wa==null?void 0:Wa.identifier));case 5:case"end":return ot.stop()}},da)}));return function(Ta){return Fn.apply(this,arguments)}}(),ra=function(){return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u7F16\u7A0B\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{className:be.a.questionChoices},t.a.createElement(de.a,{value:ve.description||""})),t.a.createElement("div",{className:be.a.action},!ve.hideAction&&Rt.map(function(da,Ta){return t.a.createElement(s.a,{key:Ta,placement:"bottom",title:da.name},t.a.createElement("span",{onClick:function(){return An(da)},className:da.icon}))})))};return t.a.createElement("section",{className:be.a.wrap},ra())},Bn=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Nn)),na=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ea=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.cancelAdd,kt=bn===void 0?function(){}:bn,at=Z.editKey,Ht=Z.setEditKey,Fe=Ht===void 0?function(){}:Ht,Un=Z.addCallback,Fa=Un===void 0?function(cn){}:Un,fa=Z.reload,ae=fa===void 0?function(){}:fa,z=Object(i.useState)([]),Y=Object(o.a)(z,2),te=Y[0],_e=Y[1],se=Object(i.useState)(!1),ut=Object(o.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(i.useState)(!0),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(1),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(!1),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)([]),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(P.i)(),da=Object(i.useRef)(null),Ta=Object(i.useState)(""),Wa=Object(o.a)(Ta,2),ue=Wa[0],ot=Wa[1],lt=Object(i.useState)([]),ft=Object(o.a)(lt,2),wt=ft[0],Et=ft[1],jt=Object(i.useRef)(!1),Yt=function(sn){ra([].concat(Object(U.a)(aa),[Object(d.a)({},sn)]))};Object(i.useEffect)(function(){var cn;if(jt.current)return;if(!(ve!=null&&ve.question_title)){Wn(!0),ot("");return}ot(ve==null?void 0:ve.question_title),Jt(!(ve!=null&&ve.repeat_answer)),Qa(ve==null?void 0:ve.difficulty),_e(ve.tag_discipline_ids);var sn=ve==null||((cn=ve.sub_exercise_questions)===null||cn===void 0)?void 0:cn.map(function(En){return Object(d.a)(Object(d.a)({},En),{},{id:En.question_id,name:En.question_title,open:!1,question_score:En.question_score,choices:En==null?void 0:En.question_choices.map(function(Pn){return{choice_text:Pn.choice_text,is_answer:Pn.standard_boolean?1:0}}),activeQusEditor:null})});Et(sn)},[ve,vn]),Object(i.useEffect)(function(){vn&&cn();function cn(){return sn.apply(this,arguments)}function sn(){return sn=Object(Q.a)(f.a.mark(function En(){var Pn,Kn,Vn;return f.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,Object(N.I)({sub_discipline_id:(Pn=Oe.editData)===null||Pn===void 0||((Kn=Pn.exercise)===null||Kn===void 0)?void 0:Kn.sub_discipline_id});case 2:Vn=xa.sent,ra(Vn.tag_disciplines);case 4:case"end":return xa.stop()}},En)})),sn.apply(this,arguments)}},[vn]),Object(i.useEffect)(function(){var cn,sn=Oe!=null&&(cn=Oe.tagDisciplineData)!==null&&cn!==void 0&&cn.tag_disciplines&&Array.isArray(Oe.tagDisciplineData.tag_disciplines)?Oe.tagDisciplineData.tag_disciplines:[];ra(sn)},[Oe.tagDisciplineData]),Object(i.useImperativeHandle)(oe,function(){return{onSave:fn,isEdit:vn}});var wn=function(sn){(sn==null?void 0:sn.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Wn(!1),Fe(-1),jt.current=!1,ae())},fn=function(){var cn=Object(Q.a)(f.a.mark(function sn(){var En,Pn,Kn,Vn,ua,xa,rn,Vt,Dt,zt,xt;return f.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(ue){Kt.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Kt.abrupt("return",!1);case 3:if(!(wt.length===0)){Kt.next=6;break}return E.b.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),Kt.abrupt("return",!1);case 6:En=0;case 7:if(!(En-1)){Kt.next=19;break}return E.b.info("\u8BF7\u5148\u8F93\u5165\u7B2C".concat(En+1,"\u5C0F\u9898").concat(na[Vn],"\u9009\u9879\u7684\u5185\u5BB9")),Kt.abrupt("return",!1);case 19:if(!(Kn.choices.findIndex(function(Xn){return Xn.is_answer===1})===-1)){Kt.next=22;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u7B2C".concat(En+1,"\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E")),Kt.abrupt("return",!1);case 22:En++,Kt.next=7;break;case 25:if(ua=wt.map(function(Xn){return{id:Xn.id>1?Xn.id:null,name:Xn.name,item_type:qe.a.Single,choices:Xn.choices,question_score:Xn.question_score}}),jt.current=!0,!ve.question_id){Kt.next=34;break}return Kt.next=30,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:Fn.id,question_id:ve.question_id,name:ue,item_type:qe.a.Combine,sub_item_banks:ua,tag_discipline_ids:te,sub_discipline_id:(rn=Oe.editData)===null||rn===void 0||((Vt=rn.exercise)===null||Vt===void 0)?void 0:Vt.sub_discipline_id,difficulty:ir,repeat_answer:!Ma}});case 30:xa=Kt.sent,wn(xa),Kt.next=38;break;case 34:return Kt.next=36,Re({type:"newExercisePaper/addExerciseQuestion",payload:{id:Fn.id,insert_id:ve==null?void 0:ve.insert_id,name:ue,item_type:qe.a.Combine,tag_discipline_ids:te,sub_discipline_id:(Dt=Oe.editData)===null||Dt===void 0||((zt=Dt.exercise)===null||zt===void 0)?void 0:zt.sub_discipline_id,difficulty:ir,repeat_answer:!Ma,sub_item_banks:ua}});case 36:xa=Kt.sent,((xt=xa)===null||xt===void 0?void 0:xt.status)===0&&(Fe(-1),E.b.success("\u4FDD\u5B58\u6210\u529F"),Wn(!1),Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Fn)}));case 38:case"end":return Kt.stop()}},sn)}));return function(){return cn.apply(this,arguments)}}(),zn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],jn=function(){var cn=Object(Q.a)(f.a.mark(function sn(En){return f.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(!(at!==-1)){Kn.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Kn.abrupt("return");case 3:Kn.t0=En.id,Kn.next=Kn.t0==="del"?6:Kn.t0==="edit"?8:Kn.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function ua(){return f.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.next=2,Object(Me.g)({question_id:ve.question_id,exam_id:Fn.id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Fn)});case 3:case"end":return rn.stop()}},ua)}))()}}),Kn.abrupt("break",13);case 8:return Fe(ve.dragKey),Wn(!0),Kn.abrupt("break",13);case 11:return Fa({key:ve.key,insert_id:ve==null?void 0:ve.question_id,item_type:qe.a.Single}),Kn.abrupt("break",13);case 13:case"end":return Kn.stop()}},sn)}));return function(En){return cn.apply(this,arguments)}}(),$t=function(){var sn;return t.a.createElement("aside",{ref:da},t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u7EC4\u5408\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08\u5171",ve==null?void 0:ve.sub_q_count,"\u5C0F\u9898\uFF0C",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{style:{display:Tn?"block":"none"},className:be.a.questionChoices},ve==null||((sn=ve.sub_exercise_questions)===null||sn===void 0)?void 0:sn.map(function(En,Pn){var Kn;return t.a.createElement("div",{key:Pn},t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,".",Pn+1,"\uFF08\u5355\u9009\u9898\uFF09"),t.a.createElement(de.a,{value:En.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",En.question_score,"\u5206\uFF09")),En==null||((Kn=En.question_choices)===null||Kn===void 0)?void 0:Kn.map(function(Vn,ua){return t.a.createElement(a.a,{key:ua},t.a.createElement(v.a,null,t.a.createElement(g.a,{key:ua,checked:Vn.standard_boolean,disabled:!0},na[ua],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:Vn.choice_text}))))}))})),t.a.createElement("div",{className:be.a.action},t.a.createElement("span",{className:"c-light-primary current",onClick:function(){return ya(!Tn)},style:{}},Tn?"\u6536\u8D77":"\u5C55\u5F00"),!ve.hideAction&&zn.map(function(En,Pn){return t.a.createElement(s.a,{key:Pn,placement:"bottom",title:En.name},t.a.createElement("span",{onClick:function(){return jn(En)},className:En.icon}))})))},yn=function(){var sn,En;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("section",{className:be.a.wrap,style:{padding:0}},t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ue,onChange:function(Kn){return ot(Kn)}}),t.a.createElement("p",null,"\u5C0F\u9898\u6570\uFF1A",wt==null?void 0:wt.length),wt==null?void 0:wt.map(function(Pn,Kn){var Vn;return t.a.createElement("div",{className:be.a.fold,key:Pn.id},t.a.createElement("div",{onClick:function(){return On("open",Kn)},className:be.a.head},t.a.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:Pn.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),t.a.createElement("span",null,"\u7B2C",Kn+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),t.a.createElement("b",{onClick:function(xa){xa.stopPropagation(),On("delete",Kn)},className:"iconfont icon-shanchu8"})),t.a.createElement("div",{className:"mb10",style:{display:Pn.open?"block":"none"}},t.a.createElement(A.a,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Pn==null?void 0:Pn.name,onChange:function(xa){return On("value",Kn,xa)}}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Pn==null||((Vn=Pn.choices)===null||Vn===void 0)?void 0:Vn.map(function(ua,xa){var rn;return t.a.createElement("div",{className:be.a.choiceWrap,key:xa},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(be.a.answer," ").concat(ua.is_answer===1?be.a.activeAnswer:""),onClick:function(){return On("answer",Kn,xa)}},na[xa])),t.a.createElement("div",{className:be.a.editorWrap},(Pn==null?void 0:Pn.activeQusEditor)===xa?t.a.createElement(A.a,{id:"single-question-option-".concat(xa),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ua.choice_text,onChange:function(Dt){return On("details",Kn,Dt)}}):t.a.createElement("div",{className:be.a.htmlWrap,onClick:function(){return On("edit",Kn,xa)}},t.a.createElement(de.a,{value:ua.choice_text}))),xa>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(be.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return On("deleteQus",Kn,xa)}})),xa<7&&xa===(Pn==null||((rn=Pn.choices)===null||rn===void 0)?void 0:rn.length)-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(be.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return On("addQus",Kn)}})))}),t.a.createElement("p",{className:"mt10"},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:Pn.question_score,max:1e4,min:0,onChange:function(xa){return On("score",Kn,xa)}}),"\u5206")))}),wt.length<20&&t.a.createElement(u.a,{type:"primary",onClick:pn},t.a.createElement("i",{className:"iconfont icon-tianjiatimu mr5 font14"}),"\u6DFB\u52A0\u5C0F\u9898")),t.a.createElement("p",{className:"mt10"},t.a.createElement("span",{className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:ir,onChange:function(Kn){Qa(Kn.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{selectvalues:ve==null?void 0:ve.tag_discipline_ids,value:te,onChange:_e,subId:(sn=Oe.editData)===null||sn===void 0||((En=sn.exercise)===null||En===void 0)?void 0:En.sub_discipline_id,knowledgeOptions:aa,onAddKnowledgeFinish:Yt}))),t.a.createElement("aside",{className:"tr"},(at!==-1||ve.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){kt(),Wn(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){fn()}},"\u4FDD\u5B58")))},pn=function(){var sn={id:Math.random(),item_type:"SINGLE",open:!1,name:"",choices:Array.from({length:4},function(){return{choice_text:"",is_answer:0}}),activeQusEditor:null,analysis:""};Et(wt.concat(sn))},On=function(sn,En,Pn){var Kn=Object(on.cloneDeep)(wt);sn==="open"&&(Kn[En].open=!Kn[En].open),sn==="delete"&&Kn.splice(En,1),sn==="value"&&(Kn[En].name=Pn),sn==="answer"&&Kn[En].choices.forEach(function(Vn,ua){Vn.is_answer=Pn===ua?1:0}),sn==="edit"&&(Kn[En].activeQusEditor=Pn),sn==="details"&&(Kn[En].choices[Kn[En].activeQusEditor].choice_text=Pn),sn==="addQus"&&(Kn[En].choices=Kn[En].choices.concat({choice_text:"",is_answer:0})),sn==="deleteQus"&&(Kn[En].choices=Kn[En].choices.filter(function(Vn,ua){return ua!==Pn})),sn==="analysis"&&(Kn[En].analysis=Pn),sn==="score"&&(Kn[En].question_score=Pn),Et(Kn)};return t.a.createElement("section",{className:be.a.wrap},!vn&&$t(),vn&&yn())},Pe=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Ea)),ye=function(Z){var oe=Z.data,Oe=Z.isDragDisabled,Re=Oe===void 0?!1:Oe,ve=Z.editorProps,bn=ve===void 0?{}:ve,kt=Z.onDragEnd,at=kt===void 0?function(){}:kt,Ht=Z.dispatch,Fe=Z.markBtnVisible,Un=Fe===void 0?!1:Fe,Fa=Z.batchScore,fa=Fa===void 0?[]:Fa,ae=Z.reload,z=ae===void 0?function(){}:ae,Y=Z.inNewPaperLibrary,te=Y===void 0?!1:Y,_e=Object(i.useRef)(),se=Object(P.i)(),ut=function(){var ba,Na,Ma,Jt,Rt,An,aa,ra,Fn,da,Ta,Wa,ue,ot,lt,ft,wt=[{name:"\u5355\u9009\u9898",type:0,count:oe==null||((ba=oe.exercise_types)===null||ba===void 0)?void 0:ba.q_singles,score:oe==null||((Na=oe.exercise_types)===null||Na===void 0)?void 0:Na.q_singles_scores,items:[]},{name:"\u591A\u9009\u9898",type:1,count:oe==null||((Ma=oe.exercise_types)===null||Ma===void 0)?void 0:Ma.q_doubles,score:oe==null||((Jt=oe.exercise_types)===null||Jt===void 0)?void 0:Jt.q_doubles_scores,items:[]},{name:"\u5224\u65AD\u9898",type:2,count:oe==null||((Rt=oe.exercise_types)===null||Rt===void 0)?void 0:Rt.q_judges,score:oe==null||((An=oe.exercise_types)===null||An===void 0)?void 0:An.q_judges_scores,items:[]},{name:"\u586B\u7A7A\u9898",type:3,count:oe==null||((aa=oe.exercise_types)===null||aa===void 0)?void 0:aa.q_nulls,score:oe==null||((ra=oe.exercise_types)===null||ra===void 0)?void 0:ra.q_nulls_scores,items:[]},{name:"\u7B80\u7B54\u9898",type:4,count:oe==null||((Fn=oe.exercise_types)===null||Fn===void 0)?void 0:Fn.q_mains,score:oe==null||((da=oe.exercise_types)===null||da===void 0)?void 0:da.q_mains_scores,items:[]},{name:"\u5B9E\u8BAD\u9898",type:5,count:oe==null||((Ta=oe.exercise_types)===null||Ta===void 0)?void 0:Ta.q_shixuns,score:oe==null||((Wa=oe.exercise_types)===null||Wa===void 0)?void 0:Wa.q_shixuns_scores,items:[]},{name:"\u7F16\u7A0B\u9898",type:6,count:oe==null||((ue=oe.exercise_types)===null||ue===void 0)?void 0:ue.q_pros,score:oe==null||((ot=oe.exercise_types)===null||ot===void 0)?void 0:ot.q_pros_scores,items:[]},{name:"\u7EC4\u5408\u9898",type:7,count:oe==null||((lt=oe.exercise_types)===null||lt===void 0)?void 0:lt.q_combinations,score:oe==null||((ft=oe.exercise_types)===null||ft===void 0)?void 0:ft.q_combination_scores,items:[]}];return wt},vn=function(ba,Na,Ma){var Jt=Array.from(ba),Rt=Jt.splice(Na,1),An=Object(o.a)(Rt,1),aa=An[0];return Jt.splice(Ma,0,aa),Jt},Wn=function(ba,Na,Ma){if(!ba.destination)return;var Jt=vn(Na,ba.source.index,ba.destination.index);te?at(ba,Jt,Ma):at(Jt,Ma)},Oa=function(ba){Ht({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:ba}})},dn=function(ba,Na){if(Na===0)return te?t.a.createElement($n,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(gt,Object(m.a)({reload:z,editData:ba},ba));if(Na===1)return te?t.a.createElement(_n,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(Ve,Object(m.a)({reload:z,editData:ba},ba));if(Na===2)return te?t.a.createElement(Gt,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(he,Object(m.a)({reload:z,editData:ba},ba));if(Na===3)return te?t.a.createElement(ct,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(me,Object(m.a)({reload:z,editData:ba},ba));if(Na===4)return te?t.a.createElement(qt,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(Hn,Object(m.a)({reload:z,editData:ba},ba));if(Na===5)return te?t.a.createElement(qn,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(xe,Object(m.a)({reload:z,editData:ba},ba));if(Na===6)return te?t.a.createElement(Bn,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(pt,Object(m.a)({editData:ba},ba));if(Na===7)return te?t.a.createElement(Pe,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(Xt,Object(m.a)({reload:z,editData:ba},ba))},Tn=function(ba,Na,Ma){return t.a.createElement(ht.a,{onDragEnd:function(Rt){return Wn(Rt,ba,Na)}},t.a.createElement(ht.c,{droppableId:"droppable"},function(Jt,Rt){return t.a.createElement("div",Object(m.a)({ref:Jt.innerRef},Jt.droppableProps,{style:{width:"100%"}}),ba==null?void 0:ba.map(function(An,aa){var ra,Fn=Object(d.a)(Object(d.a)({},An),{},{key:aa+1,hideAction:!0,isPreview:!0,dragKey:Na+"-"+aa},bn);return t.a.createElement(ht.b,{key:Fn==null?void 0:Fn.question_id,draggableId:Fn==null||((ra=Fn.question_id)===null||ra===void 0)?void 0:ra.toString(),index:aa,isDragDisabled:Re},function(da,Ta){return t.a.createElement("aside",Object(m.a)({ref:da.innerRef},da.draggableProps,da.dragHandleProps),t.a.createElement("div",{className:rt.a.posWarp,id:Fn.dragKey},dn(Fn,Na),Un&&t.a.createElement(a.a,{className:rt.a.markWrongBtnWrapper},t.a.createElement(u.a,{onClick:function(){return Oa({value:Fn,type:Na})}},Fn!=null&&Fn.is_wrong?"\u53D6\u6D88\u6807\u8BB0\u9519\u9898":"\u6807\u8BB0\u9519\u9898")),t.a.createElement(M.a,null),!Re&&t.a.createElement("div",{className:rt.a.pos},t.a.createElement("div",{className:rt.a.tips},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u8BD5\u9898\u663E\u793A\u987A\u5E8F"))))})}))}))},ya=function(ba){var Na=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Ma=["","\u5341","\u767E","\u5343","\u4E07"];ba=parseInt(ba);var Jt=function(ra){for(var Fn=ra.toString().split("").reverse(),da="",Ta=0;Ta0&&Fn[Ta]==0&&Fn[Ta-1]==0?"":Na[Fn[Ta]]+(Fn[Ta]==0?Ma[0]:Ma[Ta]))+da;return da},Rt=Math.floor(ba/1e4),An=ba%1e4;return An.toString().length<4&&(An="0"+An),Rt?Jt(Rt)+"\u4E07"+Jt(An):Jt(ba)},fr=function(ba){var Na={\u5355\u9009\u9898:2,\u591A\u9009\u9898:5,\u586B\u7A7A\u9898:2,\u5224\u65AD\u9898:2,\u7B80\u7B54\u9898:10,\u7F16\u7A0B\u9898:10,\u5B9E\u8BAD\u9898:5,\u7EC4\u5408\u9898:10};return Na[ba]||0},gr=function(ba,Na){_e.current=fr(Na),O.a.confirm({centered:!0,title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u6570",content:t.a.createElement("div",{className:""},t.a.createElement("span",null,Na==="\u7EC4\u5408\u9898"?"\u7EC4\u5408\u9898\u4E2D\u7684\u6BCF\u5C0F\u9898":Na,"\uFF1A"),t.a.createElement(k.a,{min:1,defaultValue:_e.current,onChange:function(Jt){_e.current=Jt}}),t.a.createElement("span",{className:"ml5"},"\u5206/\u9898"),t.a.createElement("br",null),Na==="\u586B\u7A7A\u9898"&&t.a.createElement("div",{style:{color:"rgb(255, 0, 0)"}},"\u6BCF\u7A7A\u5206\u503C\u6309\u6BCF\u9898\u5206\u503C\u53D6\u5E73\u5747\u5206\u8BA1\u7B97")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Ma=Object(Q.a)(f.a.mark(function Rt(){var An,aa;return f.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:if(!te){Fn.next=6;break}return Fn.next=3,Object(Me.t)(se.id,{question_type:ba,score:_e.current});case 3:return An=Fn.sent,An.status===0&&z(),Fn.abrupt("return");case 6:return Fn.next=8,Object(Te.a)("/api/exercises/".concat(se.categoryId,"/batch_set_score.json"),{method:"post",body:{question_type:ba,score:_e.current}});case 8:aa=Fn.sent,aa.status!==-1&&z();case 10:case"end":return Fn.stop()}},Rt)}));function Jt(){return Ma.apply(this,arguments)}return Jt}()})},ir=function(){var ba,Na=ut();oe==null||((ba=oe.exercise_questions)===null||ba===void 0)||ba.forEach(function(Jt,Rt){if(Jt.question_type===0){var An,aa;(An=Na[Jt.question_type])===null||An===void 0||((aa=An.items)===null||aa===void 0)||aa.push(Jt)}if(Jt.question_type===1){var ra,Fn;(ra=Na[Jt.question_type])===null||ra===void 0||((Fn=ra.items)===null||Fn===void 0)||Fn.push(Jt)}if(Jt.question_type===2){var da,Ta;(da=Na[Jt.question_type])===null||da===void 0||((Ta=da.items)===null||Ta===void 0)||Ta.push(Jt)}if(Jt.question_type===3){var Wa,ue;(Wa=Na[Jt.question_type])===null||Wa===void 0||((ue=Wa.items)===null||ue===void 0)||ue.push(Jt)}if(Jt.question_type===4){var ot,lt;(ot=Na[Jt.question_type])===null||ot===void 0||((lt=ot.items)===null||lt===void 0)||lt.push(Jt)}if(Jt.question_type===5){var ft,wt;(ft=Na[Jt.question_type])===null||ft===void 0||((wt=ft.items)===null||wt===void 0)||wt.push(Jt)}if(Jt.question_type===6){var Et,jt;(Et=Na[Jt.question_type])===null||Et===void 0||((jt=Et.items)===null||jt===void 0)||jt.push(Jt)}if(Jt.question_type===7){var Yt,wn;(Yt=Na[Jt.question_type])===null||Yt===void 0||((wn=Yt.items)===null||wn===void 0)||wn.push(Jt)}});var Ma=oe==null?void 0:oe.map(function(Jt,Rt){return t.a.createElement(t.a.Fragment,{key:Rt},t.a.createElement("div",{className:"pl20"},t.a.createElement("span",{className:"font16 c-light-primary"},ya(Rt+1),"\u3001",Jt.name),t.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",Jt.count,"\u9898",(Jt==null?void 0:Jt.question_type)===7?"\uFF0C\u5305\u542B".concat(Jt.sub_count,"\u5C0F\u9898"):"","\uFF1B\u5171",Jt.score,"\u5206\uFF09"),(fa==null?void 0:fa.includes(Jt==null?void 0:Jt.name))&&t.a.createElement(u.a,{onClick:function(){return gr(Jt==null?void 0:Jt.question_type,Jt==null?void 0:Jt.name)},style:{float:"right"},type:"primary",ghost:!0},"\u6279\u91CF\u8BBE\u7F6E\u5F97\u5206")),Tn(Jt.items,Jt==null?void 0:Jt.question_type,Jt==null?void 0:Jt.name))});return Ma};return t.a.createElement("div",null," ",ir()," ")},J=re.a=Object(H.a)()(ye)},LdHM:function(Ge,re,y){"use strict";y.d(re,"b",function(){return s}),y.d(re,"a",function(){return D});var Q=y("1OyB"),W=y("vuIU"),k=y("Ji7U"),B=y("LK+K"),O=y("q1tI"),R=y("rePB"),M=y("Ff2n"),p=y("ODXe"),a=y("4IlW"),b=y("bX4T"),u=y("YrtM"),d=y("TSYQ"),m=y.n(d),o=y("+nKL"),c=y("8OUc"),f=function(G,K){var $=G.prefixCls,ie=G.id,le=G.flattenOptions,de=G.childrenAsData,Se=G.values,He=G.searchValue,et=G.multiple,je=G.defaultActiveFirstOption,me=G.height,fe=G.itemHeight,Ae=G.notFoundContent,he=G.open,Ue=G.menuItemSelectedIcon,st=G.virtual,Ve=G.onSelect,dt=G.onToggleOpen,Qe=G.onActiveValue,pe=G.onScroll,xe=G.onMouseEnter,Le="".concat($,"-item"),Ye=Object(u.a)(function(){return le},[he,le],function(Xt,ht){return ht[0]&&Xt[1]!==ht[1]}),gt=O.useRef(null),Ct=function(ht){ht.preventDefault()},tn=function(ht){gt.current&>.current.scrollTo({index:ht})},Zt=function(ht){for(var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,rt=Ye.length,Te=0;Te1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(A).map(function(K,$){if(!O.isValidElement(K)||!K.type)return null;var ie=K.type.isSelectOptGroup,le=K.key,de=K.props,Se=de.children,He=Object(M.a)(de,["children"]);return G||!ie?n(K):Object(C.a)(Object(C.a)({key:"__RC_SELECT_GRP__".concat(le===null?$:le,"__"),label:le},He),{},{options:_(Se)})}).filter(function(K){return K})}var h=y("2Qr1"),g=y("qNPg"),x=y("U8pU"),T=y("Kwbf"),S=y("WKfj");function E(A){var G=A.mode,K=A.options,$=A.children,ie=A.backfill,le=A.allowClear,de=A.placeholder,Se=A.getInputElement,He=A.showSearch,et=A.onSearch,je=A.defaultOpen,me=A.autoFocus,fe=A.labelInValue,Ae=A.value,he=A.inputValue,Ue=A.optionLabelProp,st=G==="multiple"||G==="tags",Ve=He!==void 0?He:st||G==="combobox",dt=K||_($);if(Object(T.a)(G!=="tags"||dt.every(function(Le){return!Le.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),G==="tags"||G==="combobox"){var Qe=dt.some(function(Le){return Le.options?Le.options.some(function(Ye){return typeof("value"in Ye?Ye.value:Ye.key)=="number"}):typeof("value"in Le?Le.value:Le.key)=="number"});Object(T.a)(!Qe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(G!=="combobox"||!Ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(G==="combobox"||!ie,"`backfill` only works with `combobox` mode."),Object(T.a)(G==="combobox"||!Se,"`getInputElement` only work with `combobox` mode."),Object(T.b)(G!=="combobox"||!Se||!le||!de,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),et&&!Ve&&G!=="combobox"&&G!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!je||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ae!=null){var pe=Object(S.d)(Ae);Object(T.a)(!fe||pe.every(function(Le){return Object(x.a)(Le)==="object"&&("key"in Le||"value"in Le)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!st||Array.isArray(Ae),"`value` should be array when `mode` is `multiple` or `tags`")}if($){var xe=null;Object(v.a)($).some(function(Le){if(!O.isValidElement(Le)||!Le.type)return!1;var Ye=Le.type;if(Ye.isSelectOption)return!1;if(Ye.isSelectOptGroup){var gt=Object(v.a)(Le.props.children).every(function(Ct){return!O.isValidElement(Ct)||!Le.type||Ct.type.isSelectOption?!0:(xe=Ct.type,!1)});return!gt}return xe=Ye,!0}),xe&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(xe.displayName||xe.name||xe,"`.")),Object(T.a)(he===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var U=E,F=Object(g.a)({prefixCls:"rc-select",components:{optionList:t},convertChildrenToData:_,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:U,fillOptionsWithMissingValue:h.a}),P=function(A){Object(k.a)(K,A);var G=Object(B.a)(K);function K(){var $;return Object(Q.a)(this,K),$=G.apply(this,arguments),$.selectRef=O.createRef(),$.focus=function(){$.selectRef.current.focus()},$.blur=function(){$.selectRef.current.blur()},$}return Object(W.a)(K,[{key:"render",value:function(){return O.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),K}(O.Component);P.Option=s,P.OptGroup=D;var H=P,N=re.c=H},M8RZ:function(Ge,re,y){"use strict";y.d(re,"a",function(){return a});var Q=y("fWQN"),W=y("mtLc"),k=y("yKVA"),B=y("879j"),O=y("q1tI"),R=y.n(O),M=y("i8i4"),p=y.n(M),a=function(b){Object(k.a)(d,b);var u=Object(B.a)(d);function d(m){var o;Object(Q.a)(this,d),o=u.call(this,m);var c=window.document;return o.node=c.createElement("div"),c.body.appendChild(o.node),o}return Object(W.a)(d,[{key:"render",value:function(){var o=this.props.children;return Object(M.createPortal)(o,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),d}(R.a.Component)},MEGo:function(Ge,re,y){var Q=y("4fz+"),W=y("Dagg"),k=y("dqUG"),B=y("2fw6"),O=y("x6Kt"),R=y("rmlV"),M=y("yxFR"),p=y("y+Vt"),a=y("h7HQ"),b=y("1Jh7"),u=y("SKnc"),d=y("K2GJ"),m=y("Fofx"),o=y("NC18"),c=o.createFromString,f=y("bYtY"),i=f.isString,t=f.extend,l=f.defaults,s=f.trim,w=f.each,D=/[\s,]+/;function C(K){if(i(K)){var $=new DOMParser;K=$.parseFromString(K,"text/xml")}for(K.nodeType===9&&(K=K.firstChild);K.nodeName.toLowerCase()!=="svg"||K.nodeType!==1;)K=K.nextSibling;return K}function v(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}v.prototype.parse=function(K,$){$=$||{};var ie=C(K);if(!ie)throw new Error("Illegal svg");var le=new Q;this._root=le;var de=ie.getAttribute("viewBox")||"",Se=parseFloat(ie.getAttribute("width")||$.width),He=parseFloat(ie.getAttribute("height")||$.height);isNaN(Se)&&(Se=null),isNaN(He)&&(He=null),S(ie,le,null,!0);for(var et=ie.firstChild;et;)this._parseNode(et,le),et=et.nextSibling;var je,me;if(de){var fe=s(de).split(D);fe.length>=4&&(je={x:parseFloat(fe[0]||0),y:parseFloat(fe[1]||0),width:parseFloat(fe[2]),height:parseFloat(fe[3])})}if(je&&Se!=null&&He!=null&&(me=A(je,Se,He),!$.ignoreViewBox)){var Ae=le;le=new Q,le.add(Ae),Ae.scale=me.scale.slice(),Ae.position=me.position.slice()}return!$.ignoreRootClip&&Se!=null&&He!=null&&le.setClipPath(new O({shape:{x:0,y:0,width:Se,height:He}})),{root:le,width:Se,height:He,viewBoxRect:je,viewBoxTransform:me}},v.prototype._parseNode=function(K,$){var ie=K.nodeName.toLowerCase();ie==="defs"?this._isDefine=!0:ie==="text"&&(this._isText=!0);var le;if(this._isDefine){var de=_[ie];if(de){var Se=de.call(this,K),He=K.getAttribute("id");He&&(this._defs[He]=Se)}}else{var de=n[ie];de&&(le=de.call(this,K,$),$.add(le))}for(var et=K.firstChild;et;)et.nodeType===1&&this._parseNode(et,le),et.nodeType===3&&this._isText&&this._parseText(et,le),et=et.nextSibling;ie==="defs"?this._isDefine=!1:ie==="text"&&(this._isText=!1)},v.prototype._parseText=function(K,$){if(K.nodeType===1){var ie=K.getAttribute("dx")||0,le=K.getAttribute("dy")||0;this._textX+=parseFloat(ie),this._textY+=parseFloat(le)}var de=new k({style:{text:K.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});g($,de),S(K,de,this._defs);var Se=de.style.fontSize;Se&&Se<9&&(de.style.fontSize=9,de.scale=de.scale||[1,1],de.scale[0]*=Se/9,de.scale[1]*=Se/9);var He=de.getBoundingRect();return this._textX+=He.width,$.add(de),de};var n={g:function(K,$){var ie=new Q;return g($,ie),S(K,ie,this._defs),ie},rect:function(K,$){var ie=new O;return g($,ie),S(K,ie,this._defs),ie.setShape({x:parseFloat(K.getAttribute("x")||0),y:parseFloat(K.getAttribute("y")||0),width:parseFloat(K.getAttribute("width")||0),height:parseFloat(K.getAttribute("height")||0)}),ie},circle:function(K,$){var ie=new B;return g($,ie),S(K,ie,this._defs),ie.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),r:parseFloat(K.getAttribute("r")||0)}),ie},line:function(K,$){var ie=new M;return g($,ie),S(K,ie,this._defs),ie.setShape({x1:parseFloat(K.getAttribute("x1")||0),y1:parseFloat(K.getAttribute("y1")||0),x2:parseFloat(K.getAttribute("x2")||0),y2:parseFloat(K.getAttribute("y2")||0)}),ie},ellipse:function(K,$){var ie=new R;return g($,ie),S(K,ie,this._defs),ie.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),rx:parseFloat(K.getAttribute("rx")||0),ry:parseFloat(K.getAttribute("ry")||0)}),ie},polygon:function(K,$){var ie=K.getAttribute("points");ie&&(ie=x(ie));var le=new a({shape:{points:ie||[]}});return g($,le),S(K,le,this._defs),le},polyline:function(K,$){var ie=new p;g($,ie),S(K,ie,this._defs);var le=K.getAttribute("points");le&&(le=x(le));var de=new b({shape:{points:le||[]}});return de},image:function(K,$){var ie=new W;return g($,ie),S(K,ie,this._defs),ie.setStyle({image:K.getAttribute("xlink:href"),x:K.getAttribute("x"),y:K.getAttribute("y"),width:K.getAttribute("width"),height:K.getAttribute("height")}),ie},text:function(K,$){var ie=K.getAttribute("x")||0,le=K.getAttribute("y")||0,de=K.getAttribute("dx")||0,Se=K.getAttribute("dy")||0;this._textX=parseFloat(ie)+parseFloat(de),this._textY=parseFloat(le)+parseFloat(Se);var He=new Q;return g($,He),S(K,He,this._defs),He},tspan:function(K,$){var ie=K.getAttribute("x"),le=K.getAttribute("y");ie!=null&&(this._textX=parseFloat(ie)),le!=null&&(this._textY=parseFloat(le));var de=K.getAttribute("dx")||0,Se=K.getAttribute("dy")||0,He=new Q;return g($,He),S(K,He,this._defs),this._textX+=de,this._textY+=Se,He},path:function(K,$){var ie=K.getAttribute("d")||"",le=c(ie);return g($,le),S(K,le,this._defs),le}},_={lineargradient:function(K){var $=parseInt(K.getAttribute("x1")||0,10),ie=parseInt(K.getAttribute("y1")||0,10),le=parseInt(K.getAttribute("x2")||10,10),de=parseInt(K.getAttribute("y2")||0,10),Se=new u($,ie,le,de);return h(K,Se),Se},radialgradient:function(K){}};function h(K,$){for(var ie=K.firstChild;ie;){if(ie.nodeType===1){var le=ie.getAttribute("offset");le.indexOf("%")>0?le=parseInt(le,10)/100:le?le=parseFloat(le):le=0;var de=ie.getAttribute("stop-color")||"#000000";$.addColorStop(le,de)}ie=ie.nextSibling}}function g(K,$){K&&K.__inheritedStyle&&($.__inheritedStyle||($.__inheritedStyle={}),l($.__inheritedStyle,K.__inheritedStyle))}function x(K){for(var $=s(K).split(D),ie=[],le=0;le<$.length;le+=2){var de=parseFloat($[le]),Se=parseFloat($[le+1]);ie.push([de,Se])}return ie}var T={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function S(K,$,ie,le){var de=$.__inheritedStyle||{},Se=$.type==="text";if(K.nodeType===1&&(P(K,$),t(de,N(K)),!le)){for(var He in T)if(T.hasOwnProperty(He)){var et=K.getAttribute(He);et!=null&&(de[T[He]]=et)}}var je=Se?"textFill":"fill",me=Se?"textStroke":"stroke";$.style=$.style||new d;var fe=$.style;de.fill!=null&&fe.set(je,U(de.fill,ie)),de.stroke!=null&&fe.set(me,U(de.stroke,ie)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Ae){var he=Ae==="lineWidth"&&Se?"textStrokeWidth":Ae;de[Ae]!=null&&fe.set(he,parseFloat(de[Ae]))}),(!de.textBaseline||de.textBaseline==="auto")&&(de.textBaseline="alphabetic"),de.textBaseline==="alphabetic"&&(de.textBaseline="bottom"),de.textAlign==="start"&&(de.textAlign="left"),de.textAlign==="end"&&(de.textAlign="right"),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Ae){de[Ae]!=null&&fe.set(Ae,de[Ae])}),de.lineDash&&($.style.lineDash=s(de.lineDash).split(D)),fe[me]&&fe[me]!=="none"&&($[me]=!0),$.__inheritedStyle=de}var E=/url\(\s*#(.*?)\)/;function U(K,$){var ie=$&&K&&K.match(E);if(ie){var le=s(ie[1]),de=$[le];return de}return K}var F=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function P(K,$){var ie=K.getAttribute("transform");if(ie){ie=ie.replace(/,/g," ");var le=null,de=[];ie.replace(F,function(je,me,fe){de.push(me,fe)});for(var Se=de.length-1;Se>0;Se-=2){var He=de[Se],et=de[Se-1];le=le||m.create();switch(et){case"translate":He=s(He).split(D),m.translate(le,le,[parseFloat(He[0]),parseFloat(He[1]||0)]);break;case"scale":He=s(He).split(D),m.scale(le,le,[parseFloat(He[0]),parseFloat(He[1]||He[0])]);break;case"rotate":He=s(He).split(D),m.rotate(le,le,parseFloat(He[0]));break;case"skew":He=s(He).split(D),console.warn("Skew transform is not supported yet");break;case"matrix":var He=s(He).split(D);le[0]=parseFloat(He[0]),le[1]=parseFloat(He[1]),le[2]=parseFloat(He[2]),le[3]=parseFloat(He[3]),le[4]=parseFloat(He[4]),le[5]=parseFloat(He[5]);break}}$.setLocalTransform(le)}}var H=/([^\s:;]+)\s*:\s*([^:;]+)/g;function N(K){var $=K.getAttribute("style"),ie={};if(!$)return ie;var le={};H.lastIndex=0;for(var de;(de=H.exec($))!=null;)le[de[1]]=de[2];for(var Se in T)T.hasOwnProperty(Se)&&le[Se]!=null&&(ie[T[Se]]=le[Se]);return ie}function A(K,$,ie){var le=$/K.width,de=ie/K.height,Se=Math.min(le,de),He=[Se,Se],et=[-(K.x+K.width/2)*Se+$/2,-(K.y+K.height/2)*Se+ie/2];return{scale:He,position:et}}function G(K,$){var ie=new v;return ie.parse(K,$)}re.parseXML=C,re.makeViewBoxTransform=A,re.parseSVG=G},MI8n:function(Ge,re,y){"use strict";y.d(re,"c",function(){return O}),y.d(re,"b",function(){return a}),y.d(re,"e",function(){return b}),y.d(re,"a",function(){return u}),y.d(re,"d",function(){return d}),y.d(re,"f",function(){return m});var Q=y("/cxE"),W=y("pmY6"),k=y("24hK"),B=y("5Y4S"),O;(function(o){o.None=()=>W.a.None;function c(E){return(U,F=null,P)=>{let H=!1,N;return N=E(A=>H?void 0:(N?N.dispose():H=!0,U.call(F,A)),null,P),H&&N.dispose(),N}}o.once=c;function f(E,U){return D((F,P=null,H)=>E(N=>F.call(P,U(N)),null,H))}o.map=f;function i(E,U){return D((F,P=null,H)=>E(N=>{U(N),F.call(P,N)},null,H))}o.forEach=i;function t(E,U){return D((F,P=null,H)=>E(N=>U(N)&&F.call(P,N),null,H))}o.filter=t;function l(E){return E}o.signal=l;function s(...E){return(U,F=null,P)=>Object(W.e)(...E.map(H=>H(N=>U.call(F,N),null,P)))}o.any=s;function w(E,U,F){let P=F;return f(E,H=>(P=U(P,H),P))}o.reduce=w;function D(E){let U;const F=new a({onFirstListenerAdd(){U=E(F.fire,F)},onLastListenerRemove(){U.dispose()}});return F.event}function C(E,U,F=100,P=!1,H){let N,A,G,K=0;const $=new a({leakWarningThreshold:H,onFirstListenerAdd(){N=E(ie=>{K++,A=U(A,ie),P&&!G&&($.fire(A),A=void 0),clearTimeout(G),G=setTimeout(()=>{const le=A;A=void 0,G=void 0,(!P||K>1)&&$.fire(le),K=0},F)})},onLastListenerRemove(){N.dispose()}});return $.event}o.debounce=C;function v(E,U=(F,P)=>F===P){let F=!0,P;return t(E,H=>{const N=F||!U(H,P);return F=!1,P=H,N})}o.latch=v;function n(E,U){return[o.filter(E,U),o.filter(E,F=>!U(F))]}o.split=n;function _(E,U=!1,F=[]){let P=F.slice(),H=E(G=>{P?P.push(G):A.fire(G)});const N=()=>{P&&P.forEach(G=>A.fire(G)),P=null},A=new a({onFirstListenerAdd(){H||(H=E(G=>A.fire(G)))},onFirstListenerDidAdd(){P&&(U?setTimeout(N):N())},onLastListenerRemove(){H&&H.dispose(),H=null}});return A.event}o.buffer=_;class h{constructor(E){this.event=E}map(E){return new h(f(this.event,E))}forEach(E){return new h(i(this.event,E))}filter(E){return new h(t(this.event,E))}reduce(E,U){return new h(w(this.event,E,U))}latch(){return new h(v(this.event))}debounce(E,U=100,F=!1,P){return new h(C(this.event,E,U,F,P))}on(E,U,F){return this.event(E,U,F)}once(E,U,F){return c(this.event)(E,U,F)}}function g(E){return new h(E)}o.chain=g;function x(E,U,F=P=>P){const P=(...G)=>A.fire(F(...G)),H=()=>E.on(U,P),N=()=>E.removeListener(U,P),A=new a({onFirstListenerAdd:H,onLastListenerRemove:N});return A.event}o.fromNodeEventEmitter=x;function T(E,U,F=P=>P){const P=(...G)=>A.fire(F(...G)),H=()=>E.addEventListener(U,P),N=()=>E.removeEventListener(U,P),A=new a({onFirstListenerAdd:H,onLastListenerRemove:N});return A.event}o.fromDOMEventEmitter=T;function S(E){return new Promise(U=>c(E)(U))}o.toPromise=S})(O||(O={}));class R{constructor(o){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${o}_${R._idPool++}`}start(o){this._stopWatch=new B.a(!0),this._listenerCount=o}stop(){if(this._stopWatch){const o=this._stopWatch.elapsed();this._elapsedOverall+=o,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${o.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}R._idPool=0;let M=-1;class p{constructor(o,c=Math.random().toString(18).slice(2,5)){this.customThreshold=o,this.name=c,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(o){let c=M;if(typeof this.customThreshold=="number"&&(c=this.customThreshold),c<=0||o`,triples:"",explode:"[]{}"},k=Q.Pos;Q.defineOption("autoCloseBrackets",!1,function(c,f,i){i&&i!=Q.Init&&(c.removeKeyMap(O),c.state.closeBrackets=null),f&&(R(B(f,"pairs")),c.state.closeBrackets=f,c.addKeyMap(O))});function B(c,f){return f=="pairs"&&typeof c=="string"?c:typeof c=="object"&&c[f]!=null?c[f]:W[f]}var O={Backspace:a,Enter:b};function R(c){for(var f=0;f=0;l--){var w=t[l].head;c.replaceRange("",k(w.line,w.ch-1),k(w.line,w.ch+1),"+delete")}}function b(c){var f=p(c),i=f&&B(f,"explode");if(!i||c.getOption("disableInput"))return Q.Pass;for(var t=c.listSelections(),l=0;l0;return{anchor:new k(c.anchor.line,c.anchor.ch+(f?-1:1)),head:new k(c.head.line,c.head.ch+(f?1:-1))}}function d(c,f){var i=p(c);if(!i||c.getOption("disableInput"))return Q.Pass;var t=B(i,"pairs"),l=t.indexOf(f);if(l==-1)return Q.Pass;for(var s=B(i,"closeBefore"),w=B(i,"triples"),D=t.charAt(l+1)==f,C=c.listSelections(),v=l%2==0,n,_=0;_=0&&c.getRange(g,k(g.line,g.ch+3))==f+f+f?x="skipThree":x="skip";else if(D&&g.ch>1&&w.indexOf(f)>=0&&c.getRange(k(g.line,g.ch-2),g)==f+f){if(g.ch>2&&/\bstring/.test(c.getTokenTypeAt(k(g.line,g.ch-2))))return Q.Pass;x="addFour"}else if(D){var S=g.ch==0?" ":c.getRange(k(g.line,g.ch-1),g);if(!Q.isWordChar(T)&&S!=f&&!Q.isWordChar(S))x="both";else return Q.Pass}else if(v&&(T.length===0||/\s/.test(T)||s.indexOf(T)>-1))x="both";else return Q.Pass;if(!n)n=x;else if(n!=x)return Q.Pass}var E=l%2?t.charAt(l-1):f,U=l%2?f:t.charAt(l+1);c.operation(function(){if(n=="skip")c.execCommand("goCharRight");else if(n=="skipThree")for(var F=0;F<3;F++)c.execCommand("goCharRight");else if(n=="surround"){for(var P=c.getSelections(),F=0;F0)){qe.next=4;break}return o.b.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),qe.abrupt("return");case 4:return mt(!0),rt={check_ids:K.actionTabs.selectArrs,group_ids:Le},tn||(rt.end_time=h()(Je.end_time).format("YYYY-MM-DD HH:mm")),rt.group_ids=Le.map(function(Lt){return Lt.course_group_id}),qe.next=10,Object(g.a)("/api/courses/".concat(ie.coursesId,"/exercises/end_exercise.json"),{method:"post",body:rt});case 10:Te=qe.sent,Te.status===0&&(o.b.success("\u64CD\u4F5C\u6210\u529F"),Object(x.cb)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),$({type:"exercise/setActionTabs",payload:{}}),K!=null&&(Me=K.actionTabs)!==null&&Me!==void 0&&Me.cb?K==null||((Ie=K.actionTabs)===null||Ie===void 0)||Ie.cb():$({type:"classroomList/getClassroomExercisesList",payload:Object(i.a)({},K.actionTabs.params)})),mt(!1);case 13:case"end":return qe.stop()}},ht)}));return function(){return Xt.apply(this,arguments)}}(),Ot=function(){me(1),Ue([]),Ye([]),Zt(!0)};return n.a.createElement(W.a,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",visible:K.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:hn,width:680,confirmLoading:vt||dt,onCancel:function(){Ot(),$({type:"exercise/setActionTabs",payload:{}})}},n.a.createElement(B.a,{spinning:dt},he&&n.a.createElement(s.a,{form:Se},n.a.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},n.a.createElement("img",{style:{marginRight:5},src:U.a}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),n.a.createElement(p.a,{className:"mt20 mb10"},n.a.createElement("span",{className:"mr10"},n.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),n.a.createElement(d.a.Group,{value:tn,onChange:function(ht){Zt(ht.target.value),Ye([])}},n.a.createElement(d.a,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),n.a.createElement(d.a,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),n.a.createElement(s.a.Item,{name:"end_time",style:{marginTop:-3,visibility:tn?"hidden":"visible"}},n.a.createElement(b.a,{style:{width:170},getPopupContainer:function(ht){return ht.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:h()(Object(x.d)(),"HH:mm")},disabledDate:function(ht){return ht&&ht0&&n.a.createElement(p.a,{style:{marginBottom:"10px"}},n.a.createElement("span",{className:"mr10"},n.a.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),n.a.createElement("div",null,he.length>0&&n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},n.a.createElement("span",{style:{flex:1}},n.a.createElement(R.a,{checked:Le.length===he.length,onChange:function(ht){Le.length===he.length?Ye([]):Ye(he)}},"\u5168\u9009")," "),n.a.createElement("span",{style:{width:16}}),n.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Le.length||0,"\u4E2A\u5206\u73ED")),n.a.createElement(F.a,{data:he,selectedRowKeys:Le,setSelectedRowKeys:Ye}))))))};re.a=Object(S.a)(function(A){var G=A.exercise;return{exercise:G}})(N)},GABl:function(Ge,re){Ge.exports="data:image/png;base64,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"},GUcZ:function(Ge,re,y){"use strict";var Q=y("fWQN"),W=y("mtLc"),k=function(){function Pe(){Object(Q.a)(this,Pe)}return Object(W.a)(Pe,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(J,q){return J.__proto__=q,J},Object.assign=Object.assign||function(J){if(J==null)throw new TypeError("Cannot convert undefined or null to object");for(var q=Object(J),Z=1;Z ").concat(q);if(Pe.ENABLE_CALLBACK&&Pe.emitter.emit("log","error",Z),!Pe.ENABLE_ERROR)return;console.error?console.error(Z):console.warn?console.warn(Z):console.log(Z)}},{key:"i",value:function(J,q){(!J||Pe.FORCE_GLOBAL_TAG)&&(J=Pe.GLOBAL_TAG);var Z="[".concat(J,"] > ").concat(q);if(Pe.ENABLE_CALLBACK&&Pe.emitter.emit("log","info",Z),!Pe.ENABLE_INFO)return;console.info?console.info(Z):console.log(Z)}},{key:"w",value:function(J,q){(!J||Pe.FORCE_GLOBAL_TAG)&&(J=Pe.GLOBAL_TAG);var Z="[".concat(J,"] > ").concat(q);if(Pe.ENABLE_CALLBACK&&Pe.emitter.emit("log","warn",Z),!Pe.ENABLE_WARN)return;console.warn?console.warn(Z):console.log(Z)}},{key:"d",value:function(J,q){(!J||Pe.FORCE_GLOBAL_TAG)&&(J=Pe.GLOBAL_TAG);var Z="[".concat(J,"] > ").concat(q);if(Pe.ENABLE_CALLBACK&&Pe.emitter.emit("log","debug",Z),!Pe.ENABLE_DEBUG)return;console.debug?console.debug(Z):console.log(Z)}},{key:"v",value:function(J,q){(!J||Pe.FORCE_GLOBAL_TAG)&&(J=Pe.GLOBAL_TAG);var Z="[".concat(J,"] > ").concat(q);if(Pe.ENABLE_CALLBACK&&Pe.emitter.emit("log","verbose",Z),!Pe.ENABLE_VERBOSE)return;console.log(Z)}}]),Pe}();M.GLOBAL_TAG="flv.js",M.FORCE_GLOBAL_TAG=!1,M.ENABLE_ERROR=!0,M.ENABLE_INFO=!0,M.ENABLE_WARN=!0,M.ENABLE_DEBUG=!0,M.ENABLE_VERBOSE=!0,M.ENABLE_CALLBACK=!1,M.emitter=new R.a;var p=M,a=function(){function Pe(){Object(Q.a)(this,Pe),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(W.a)(Pe,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(J){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=J,this._totalBytes+=J):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=J,this._totalBytes+=J):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=J,this._totalBytes+=J,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var J=(this._now()-this._lastCheckpoint)/1e3;return J==0&&(J=1),this._intervalBytes/J/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var J=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/J/1024}}]),Pe}(),b=a,u=y("yKVA"),d=y("879j"),m=function(){function Pe(ye){Object(Q.a)(this,Pe),this._message=ye}return Object(W.a)(Pe,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Pe}(),o=function(Pe){Object(u.a)(J,Pe);var ye=Object(d.a)(J);function J(q){return Object(Q.a)(this,J),ye.call(this,q)}return Object(W.a)(J,[{key:"name",get:function(){return"IllegalStateException"}}]),J}(m),c=function(Pe){Object(u.a)(J,Pe);var ye=Object(d.a)(J);function J(q){return Object(Q.a)(this,J),ye.call(this,q)}return Object(W.a)(J,[{key:"name",get:function(){return"InvalidArgumentException"}}]),J}(m),f=function(Pe){Object(u.a)(J,Pe);var ye=Object(d.a)(J);function J(q){return Object(Q.a)(this,J),ye.call(this,q)}return Object(W.a)(J,[{key:"name",get:function(){return"NotImplementedException"}}]),J}(m),i={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},t={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},l=function(){function Pe(ye){Object(Q.a)(this,Pe),this._type=ye||"undefined",this._status=i.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._status=i.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===i.kConnecting||this._status===i.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(J){this._onContentLengthKnown=J}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(J){this._onURLRedirect=J}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(J){this._onDataArrival=J}},{key:"onError",get:function(){return this._onError},set:function(J){this._onError=J}},{key:"onComplete",get:function(){return this._onComplete},set:function(J){this._onComplete=J}},{key:"open",value:function(J,q){throw new f("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new f("Unimplemented abstract function!")}}]),Pe}(),s=y("oZsa");function w(Pe,ye){for(;!Object.prototype.hasOwnProperty.call(Pe,ye)&&!(Pe=Object(s.a)(Pe),Pe===null););return Pe}function D(Pe,ye,J){return typeof Reflect!="undefined"&&Reflect.get?D=Reflect.get:D=function(Z,oe,Oe){var Re=w(Z,oe);if(!Re)return;var ve=Object.getOwnPropertyDescriptor(Re,oe);return ve.get?ve.get.call(Oe):ve.value},D(Pe,ye,J||Pe)}var C={};function v(){var Pe=self.navigator.userAgent.toLowerCase(),ye=/(edge)\/([\w.]+)/.exec(Pe)||/(opr)[\/]([\w.]+)/.exec(Pe)||/(chrome)[ \/]([\w.]+)/.exec(Pe)||/(iemobile)[\/]([\w.]+)/.exec(Pe)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Pe)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Pe)||/(webkit)[ \/]([\w.]+)/.exec(Pe)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Pe)||/(msie) ([\w.]+)/.exec(Pe)||Pe.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Pe)||Pe.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Pe)||[],J=/(ipad)/.exec(Pe)||/(ipod)/.exec(Pe)||/(windows phone)/.exec(Pe)||/(iphone)/.exec(Pe)||/(kindle)/.exec(Pe)||/(android)/.exec(Pe)||/(windows)/.exec(Pe)||/(mac)/.exec(Pe)||/(linux)/.exec(Pe)||/(cros)/.exec(Pe)||[],q={browser:ye[5]||ye[3]||ye[1]||"",version:ye[2]||ye[4]||"0",majorVersion:ye[4]||ye[2]||"0",platform:J[0]||""},Z={};if(q.browser){Z[q.browser]=!0;var oe=q.majorVersion.split(".");Z.version={major:parseInt(q.majorVersion,10),string:q.version},oe.length>1&&(Z.version.minor=parseInt(oe[1],10)),oe.length>2&&(Z.version.build=parseInt(oe[2],10))}if(q.platform&&(Z[q.platform]=!0),(Z.chrome||Z.opr||Z.safari)&&(Z.webkit=!0),Z.rv||Z.iemobile){Z.rv&&delete Z.rv;var Oe="msie";q.browser=Oe,Z[Oe]=!0}if(Z.edge){delete Z.edge;var Re="msedge";q.browser=Re,Z[Re]=!0}if(Z.opr){var ve="opera";q.browser=ve,Z[ve]=!0}if(Z.safari&&Z.android){var bn="android";q.browser=bn,Z[bn]=!0}Z.name=q.browser,Z.platform=q.platform;for(var kt in C)C.hasOwnProperty(kt)&&delete C[kt];Object.assign(C,Z)}v();var n=C,_=function(Pe){Object(u.a)(J,Pe);var ye=Object(d.a)(J);function J(q,Z){var oe;return Object(Q.a)(this,J),oe=ye.call(this,"fetch-stream-loader"),oe.TAG="FetchStreamLoader",oe._seekHandler=q,oe._config=Z,oe._needStash=!0,oe._requestAbort=!1,oe._contentLength=null,oe._receivedLength=0,oe}return Object(W.a)(J,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),D(Object(s.a)(J.prototype),"destroy",this).call(this)}},{key:"open",value:function(Z,oe){var Oe=this;this._dataSource=Z,this._range=oe;var Re=Z.url;this._config.reuseRedirectedURL&&Z.redirectedURL!=null&&(Re=Z.redirectedURL);var ve=this._seekHandler.getConfig(Re,oe),bn=new self.Headers;if(typeof ve.headers=="object"){var kt=ve.headers;for(var at in kt)kt.hasOwnProperty(at)&&bn.append(at,kt[at])}var Ht={method:"GET",headers:bn,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Fe in this._config.headers)bn.append(Fe,this._config.headers[Fe]);Z.cors===!1&&(Ht.mode="same-origin"),Z.withCredentials&&(Ht.credentials="include"),Z.referrerPolicy&&(Ht.referrerPolicy=Z.referrerPolicy),this._status=i.kConnecting,self.fetch(ve.url,Ht).then(function(Un){if(Oe._requestAbort){Oe._requestAbort=!1,Oe._status=i.kIdle;return}if(Un.ok&&Un.status>=200&&Un.status<=299){if(Un.url!==ve.url&&Oe._onURLRedirect){var Fa=Oe._seekHandler.removeURLParameters(Un.url);Oe._onURLRedirect(Fa)}var fa=Un.headers.get("Content-Length");return fa!=null&&(Oe._contentLength=parseInt(fa),Oe._contentLength!==0&&(Oe._onContentLengthKnown&&Oe._onContentLengthKnown(Oe._contentLength))),Oe._pump.call(Oe,Un.body.getReader())}else if(Oe._status=i.kError,Oe._onError)Oe._onError(t.HTTP_STATUS_CODE_INVALID,{code:Un.status,msg:Un.statusText});else throw new m("FetchStreamLoader: Http code invalid, "+Un.status+" "+Un.statusText)}).catch(function(Un){if(Oe._status=i.kError,Oe._onError)Oe._onError(t.EXCEPTION,{code:-1,msg:Un.message});else throw Un})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Z){var oe=this;return Z.read().then(function(Oe){if(Oe.done)if(oe._contentLength!==null&&oe._receivedLength=15048,oe=n.msedge?Z:!0;return self.fetch&&self.ReadableStream&&oe}catch(Oe){return!1}}}]),J}(l),h=_,g=function(Pe){Object(u.a)(J,Pe);var ye=Object(d.a)(J);function J(q,Z){var oe;return Object(Q.a)(this,J),oe=ye.call(this,"xhr-moz-chunked-loader"),oe.TAG="MozChunkedLoader",oe._seekHandler=q,oe._config=Z,oe._needStash=!0,oe._xhr=null,oe._requestAbort=!1,oe._contentLength=null,oe._receivedLength=0,oe}return Object(W.a)(J,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),D(Object(s.a)(J.prototype),"destroy",this).call(this)}},{key:"open",value:function(Z,oe){this._dataSource=Z,this._range=oe;var Oe=Z.url;this._config.reuseRedirectedURL&&Z.redirectedURL!=null&&(Oe=Z.redirectedURL);var Re=this._seekHandler.getConfig(Oe,oe);this._requestURL=Re.url;var ve=this._xhr=new XMLHttpRequest;if(ve.open("GET",Re.url,!0),ve.responseType="moz-chunked-arraybuffer",ve.onreadystatechange=this._onReadyStateChange.bind(this),ve.onprogress=this._onProgress.bind(this),ve.onloadend=this._onLoadEnd.bind(this),ve.onerror=this._onXhrError.bind(this),Z.withCredentials&&(ve.withCredentials=!0),typeof Re.headers=="object"){var bn=Re.headers;for(var kt in bn)bn.hasOwnProperty(kt)&&ve.setRequestHeader(kt,bn[kt])}if(typeof this._config.headers=="object"){var at=this._config.headers;for(var Ht in at)at.hasOwnProperty(Ht)&&ve.setRequestHeader(Ht,at[Ht])}this._status=i.kConnecting,ve.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=i.kComplete}},{key:"_onReadyStateChange",value:function(Z){var oe=Z.target;if(oe.readyState===2){if(oe.responseURL!=null&&oe.responseURL!==this._requestURL&&this._onURLRedirect){var Oe=this._seekHandler.removeURLParameters(oe.responseURL);this._onURLRedirect(Oe)}if(oe.status!==0&&(oe.status<200||oe.status>299))if(this._status=i.kError,this._onError)this._onError(t.HTTP_STATUS_CODE_INVALID,{code:oe.status,msg:oe.statusText});else throw new m("MozChunkedLoader: Http code invalid, "+oe.status+" "+oe.statusText);else this._status=i.kBuffering}}},{key:"_onProgress",value:function(Z){if(this._status===i.kError)return;this._contentLength===null&&(Z.total!==null&&Z.total!==0&&(this._contentLength=Z.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var oe=Z.target.response,Oe=this._range.from+this._receivedLength;this._receivedLength+=oe.byteLength,this._onDataArrival&&this._onDataArrival(oe,Oe,this._receivedLength)}},{key:"_onLoadEnd",value:function(Z){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===i.kError)return;this._status=i.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Z){this._status=i.kError;var oe=0,Oe=null;if(this._contentLength&&Z.loaded=200&&oe.status<=299){if(this._status=i.kBuffering,oe.responseURL!=null){var Oe=this._seekHandler.removeURLParameters(oe.responseURL);oe.responseURL!==this._currentRequestURL&&Oe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Oe,this._onURLRedirect&&this._onURLRedirect(Oe))}var Re=oe.getResponseHeader("Content-Length");if(Re!=null&&this._contentLength==null){var ve=parseInt(Re);ve>0&&(this._contentLength=ve,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=i.kError,this._onError)this._onError(t.HTTP_STATUS_CODE_INVALID,{code:oe.status,msg:oe.statusText});else throw new m("MSStreamLoader: Http code invalid, "+oe.status+" "+oe.statusText);else if(oe.readyState===3&&(oe.status>=200&&oe.status<=299)){this._status=i.kBuffering;var bn=oe.response;this._reader.readAsArrayBuffer(bn)}}},{key:"_xhrOnError",value:function(Z){this._status=i.kError;var oe=t.EXCEPTION,Oe={code:-1,msg:Z.constructor.name+" "+Z.type};if(this._onError)this._onError(oe,Oe);else throw new m(Oe.msg)}},{key:"_msrOnProgress",value:function(Z){var oe=Z.target,Oe=oe.result;if(Oe==null){this._doReconnectIfNeeded();return}var Re=Oe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Oe.byteLength;var ve=this._totalRange.from+this._receivedLength;this._receivedLength+=Re.byteLength,this._onDataArrival&&this._onDataArrival(Re,ve,this._receivedLength),Oe.byteLength>=this._bufferLimit&&(p.v(this.TAG,"MSStream buffer exceeded max size near ".concat(ve+Re.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(Oe=this._range.from+this._contentLength-1)),this._currentRequestRange={from:oe,to:Oe},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Z,oe){this._lastTimeLoaded=0;var Oe=Z.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Oe=this._currentRedirectedURL:Z.redirectedURL!=null&&(Oe=Z.redirectedURL));var Re=this._seekHandler.getConfig(Oe,oe);this._currentRequestURL=Re.url;var ve=this._xhr=new XMLHttpRequest;if(ve.open("GET",Re.url,!0),ve.responseType="arraybuffer",ve.onreadystatechange=this._onReadyStateChange.bind(this),ve.onprogress=this._onProgress.bind(this),ve.onload=this._onLoad.bind(this),ve.onerror=this._onXhrError.bind(this),Z.withCredentials&&(ve.withCredentials=!0),typeof Re.headers=="object"){var bn=Re.headers;for(var kt in bn)bn.hasOwnProperty(kt)&&ve.setRequestHeader(kt,bn[kt])}if(typeof this._config.headers=="object"){var at=this._config.headers;for(var Ht in at)at.hasOwnProperty(Ht)&&ve.setRequestHeader(Ht,at[Ht])}ve.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=i.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(Z){var oe=Z.target;if(oe.readyState===2){if(oe.responseURL!=null){var Oe=this._seekHandler.removeURLParameters(oe.responseURL);oe.responseURL!==this._currentRequestURL&&Oe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Oe,this._onURLRedirect&&this._onURLRedirect(Oe))}if(oe.status>=200&&oe.status<=299){if(this._waitForTotalLength)return;this._status=i.kBuffering}else if(this._status=i.kError,this._onError)this._onError(t.HTTP_STATUS_CODE_INVALID,{code:oe.status,msg:oe.statusText});else throw new m("RangeLoader: Http code invalid, "+oe.status+" "+oe.statusText)}}},{key:"_onProgress",value:function(Z){if(this._status===i.kError)return;if(this._contentLength===null){var oe=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,oe=!0;var Oe=Z.total;this._internalAbort(),Oe!=null&Oe!==0&&(this._totalLength=Oe)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,oe){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var Re=Z.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Z.loaded,this._speedSampler.addBytes(Re)}},{key:"_normalizeSpeed",value:function(Z){var oe=this._chunkSizeKBList,Oe=oe.length-1,Re=0,ve=0,bn=Oe;if(Z=oe[Re]&&Z=3&&(oe=this._speedSampler.currentKBps)),oe!==0){var Oe=this._normalizeSpeed(oe);this._currentSpeedNormalized!==Oe&&(this._currentSpeedNormalized=Oe,this._currentChunkSizeKB=Oe)}var Re=Z.target.response,ve=this._range.from+this._receivedLength;this._receivedLength+=Re.byteLength;var bn=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0)for(var Re=Z.split("&"),ve=0;ve0;bn[0]!==this._startName&&bn[0]!==this._endName&&(kt&&(Oe+="&"),Oe+=Re[ve])}return Oe.length===0?q:q+"?"+Oe}}]),Pe}(),G=A,K=function(){function Pe(ye,J,q){Object(Q.a)(this,Pe),this.TAG="IOController",this._config=J,this._extraData=q,this._stashInitialSize=1024*384,J.stashInitialSize!=null&&J.stashInitialSize>0&&(this._stashInitialSize=J.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,J.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ye,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ye.url),this._refTotalLength=ye.filesize?ye.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new b,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(J){this._extraData=J}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(J){this._onDataArrival=J}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(J){this._onSeeked=J}},{key:"onError",get:function(){return this._onError},set:function(J){this._onError=J}},{key:"onComplete",get:function(){return this._onComplete},set:function(J){this._onComplete=J}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(J){this._onRedirect=J}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(J){this._onRecoveredEarlyEof=J}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===U?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var J=this._config;if(J.seekType==="range")this._seekHandler=new N(this._config.rangeLoadZeroStart);else if(J.seekType==="param"){var q=J.seekParamStart||"bstart",Z=J.seekParamEnd||"bend";this._seekHandler=new G(q,Z)}else if(J.seekType==="custom"){if(typeof J.customSeekHandler!="function")throw new c("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new J.customSeekHandler}else throw new c("Invalid seekType in config: ".concat(J.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=P;else if(h.isSupported())this._loaderClass=h;else if(x.isSupported())this._loaderClass=x;else if(U.isSupported())this._loaderClass=U;else throw new m("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(J){this._currentRange={from:0,to:-1},J&&(this._currentRange.from=J),this._speedSampler.reset(),J||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var J=this._resumeFrom;this._resumeFrom=0,this._internalSeek(J,!0)}}},{key:"seek",value:function(J){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(J,!0)}},{key:"_internalSeek",value:function(J,q){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(q),this._loader.destroy(),this._loader=null;var Z={from:J,to:-1};this._currentRange={from:Z.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Z),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(J){if(!J||typeof J!="string"||J.length===0)throw new c("Url must be a non-empty string!");this._dataSource.url=J}},{key:"_expandBuffer",value:function(J){for(var q=this._stashSize;q+1024*1024*10){var oe=new Uint8Array(this._stashBuffer,0,this._stashUsed),Oe=new Uint8Array(Z,0,q);Oe.set(oe,0)}this._stashBuffer=Z,this._bufferSize=q}},{key:"_normalizeSpeed",value:function(J){var q=this._speedNormalizeList,Z=q.length-1,oe=0,Oe=0,Re=Z;if(J=q[oe]&&J=512&&J<=1024?q=Math.floor(J*1.5):q=J*2,q>8192&&(q=8192);var Z=q*1024+1024*1024*1;this._bufferSize0){var Fa=this._stashBuffer.slice(0,this._stashUsed),fa=this._dispatchChunks(Fa,this._stashByteStart);if(fa0){var ae=new Uint8Array(Fa,fa);Un.set(ae,0),this._stashUsed=ae.byteLength,this._stashByteStart+=fa}}else this._stashUsed=0,this._stashByteStart+=fa;this._stashUsed+J.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+J.byteLength),Un=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Un.set(new Uint8Array(J),this._stashUsed),this._stashUsed+=J.byteLength}else{var z=this._dispatchChunks(J,q);if(zthis._bufferSize&&(this._expandBuffer(Y),Un=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Un.set(new Uint8Array(J,z),0),this._stashUsed+=Y,this._stashByteStart=q+z}}}else if(this._stashUsed===0){var Re=this._dispatchChunks(J,q);if(Rethis._bufferSize&&this._expandBuffer(ve);var bn=new Uint8Array(this._stashBuffer,0,this._bufferSize);bn.set(new Uint8Array(J,Re),0),this._stashUsed+=ve,this._stashByteStart=q+Re}}else{this._stashUsed+J.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+J.byteLength);var kt=new Uint8Array(this._stashBuffer,0,this._bufferSize);kt.set(new Uint8Array(J),this._stashUsed),this._stashUsed+=J.byteLength;var at=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(at0){var Ht=new Uint8Array(this._stashBuffer,at);kt.set(Ht,0)}this._stashUsed-=at,this._stashByteStart+=at}}},{key:"_flushStashBuffer",value:function(J){if(this._stashUsed>0){var q=this._stashBuffer.slice(0,this._stashUsed),Z=this._dispatchChunks(q,this._stashByteStart),oe=q.byteLength-Z;if(Z0){var Oe=new Uint8Array(this._stashBuffer,0,this._bufferSize),Re=new Uint8Array(q,Z);Oe.set(Re,0),this._stashUsed=Re.byteLength,this._stashByteStart+=Z}return 0}return this._stashUsed=0,this._stashByteStart=0,oe}return 0}},{key:"_onLoaderComplete",value:function(J,q){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(J,q){p.e(this.TAG,"Loader error, code = ".concat(q.code,", msg = ").concat(q.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,J=t.UNRECOVERABLE_EARLY_EOF);switch(J){case t.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Z=this._currentRange.to+1;Z0){var q=Pe.getConfig();J.emit("change",q)}}},{key:"registerListener",value:function(J){Pe.emitter.addListener("change",J)}},{key:"removeListener",value:function(J){Pe.emitter.removeListener("change",J)}},{key:"addLogListener",value:function(J){p.emitter.addListener("log",J),p.emitter.listenerCount("log")>0&&(p.ENABLE_CALLBACK=!0,Pe._notifyChange())}},{key:"removeLogListener",value:function(J){p.emitter.removeListener("log",J),p.emitter.listenerCount("log")===0&&(p.ENABLE_CALLBACK=!1,Pe._notifyChange())}}]),Pe}();je.emitter=new R.a;var me=je,fe=function(){function Pe(){Object(Q.a)(this,Pe),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(W.a)(Pe,[{key:"isComplete",value:function(){var J=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,q=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&J&&q}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(J){if(this.keyframesIndex==null)return null;var q=this.keyframesIndex,Z=this._search(q.times,J);return{index:Z,milliseconds:q.times[Z],fileposition:q.filepositions[Z]}}},{key:"_search",value:function(J,q){var Z=0,oe=J.length-1,Oe=0,Re=0,ve=oe;for(q=J[Oe]&&q=128){ye.push(String.fromCharCode(oe&65535)),q+=2;continue}}}else if(J[q]<240){if(he(J,q,2)){var Oe=(J[q]&15)<<12|(J[q+1]&63)<<6|J[q+2]&63;if(Oe>=2048&&(Oe&63488)!==55296){ye.push(String.fromCharCode(Oe&65535)),q+=3;continue}}}else if(J[q]<248&&he(J,q,3)){var Re=(J[q]&7)<<18|(J[q+1]&63)<<12|(J[q+2]&63)<<6|J[q+3]&63;if(Re>65536&&Re<1114112){Re-=65536,ye.push(String.fromCharCode(Re>>>10|55296)),ye.push(String.fromCharCode(Re&1023|56320)),q+=4;continue}}}ye.push(String.fromCharCode(65533)),++q}return ye.join("")}var st=Ue,Ve=function(){var Pe=new ArrayBuffer(2);return new DataView(Pe).setInt16(0,256,!0),new Int16Array(Pe)[0]===256}(),dt=function(){function Pe(){Object(Q.a)(this,Pe)}return Object(W.a)(Pe,null,[{key:"parseScriptData",value:function(J,q,Z){var oe={};try{var Oe=Pe.parseValue(J,q,Z),Re=Pe.parseValue(J,q+Oe.size,Z-Oe.size);oe[Oe.data]=Re.data}catch(ve){p.e("AMF",ve.toString())}return oe}},{key:"parseObject",value:function(J,q,Z){if(Z<3)throw new o("Data not enough when parse ScriptDataObject");var oe=Pe.parseString(J,q,Z),Oe=Pe.parseValue(J,q+oe.size,Z-oe.size),Re=Oe.objectEnd;return{data:{name:oe.data,value:Oe.data},size:oe.size+Oe.size,objectEnd:Re}}},{key:"parseVariable",value:function(J,q,Z){return Pe.parseObject(J,q,Z)}},{key:"parseString",value:function(J,q,Z){if(Z<2)throw new o("Data not enough when parse String");var oe=new DataView(J,q,Z),Oe=oe.getUint16(0,!Ve),Re;return Oe>0?Re=st(new Uint8Array(J,q+2,Oe)):Re="",{data:Re,size:2+Oe}}},{key:"parseLongString",value:function(J,q,Z){if(Z<4)throw new o("Data not enough when parse LongString");var oe=new DataView(J,q,Z),Oe=oe.getUint32(0,!Ve),Re;return Oe>0?Re=st(new Uint8Array(J,q+4,Oe)):Re="",{data:Re,size:4+Oe}}},{key:"parseDate",value:function(J,q,Z){if(Z<10)throw new o("Data size invalid when parse Date");var oe=new DataView(J,q,Z),Oe=oe.getFloat64(0,!Ve),Re=oe.getInt16(8,!Ve);return Oe+=Re*60*1e3,{data:new Date(Oe),size:8+2}}},{key:"parseValue",value:function(J,q,Z){if(Z<1)throw new o("Data not enough when parse Value");var oe=new DataView(J,q,Z),Oe=1,Re=oe.getUint8(0),ve,bn=!1;try{switch(Re){case 0:ve=oe.getFloat64(1,!Ve),Oe+=8;break;case 1:{var kt=oe.getUint8(1);ve=!!kt,Oe+=1;break}case 2:{var at=Pe.parseString(J,q+1,Z-1);ve=at.data,Oe+=at.size;break}case 3:{ve={};var Ht=0;for((oe.getUint32(Z-4,!Ve)&16777215)===9&&(Ht=3);Oe32)throw new c("ExpGolomb: readBits() bits exceeded max 32bits!");if(J<=this._current_word_bits_left){var q=this._current_word>>>32-J;return this._current_word<<=J,this._current_word_bits_left-=J,q}var Z=this._current_word_bits_left?this._current_word:0;Z=Z>>>32-this._current_word_bits_left;var oe=J-this._current_word_bits_left;this._fillCurrentWord();var Oe=Math.min(oe,this._current_word_bits_left),Re=this._current_word>>>32-Oe;return this._current_word<<=Oe,this._current_word_bits_left-=Oe,Z=Z<>>J)!==0)return this._current_word<<=J,this._current_word_bits_left-=J,J;return this._fillCurrentWord(),J+this._skipLeadingZero()}},{key:"readUEG",value:function(){var J=this._skipLeadingZero();return this.readBits(J+1)-1}},{key:"readSEG",value:function(){var J=this.readUEG();return J&1?J+1>>>1:-1*(J>>>1)}}]),Pe}(),xe=pe,Le=function(){function Pe(){Object(Q.a)(this,Pe)}return Object(W.a)(Pe,null,[{key:"_ebsp2rbsp",value:function(J){for(var q=J,Z=q.byteLength,oe=new Uint8Array(Z),Oe=0,Re=0;Re=2&&(q[Re]===3&&q[Re-1]===0&&q[Re-2]===0))continue;oe[Oe]=q[Re],Oe++}return new Uint8Array(oe.buffer,0,Oe)}},{key:"parseSPS",value:function(J){var q=Pe._ebsp2rbsp(J),Z=new xe(q);Z.readByte();var oe=Z.readByte();Z.readByte();var Oe=Z.readByte();Z.readUEG();var Re=Pe.getProfileString(oe),ve=Pe.getLevelString(Oe),bn=1,kt=420,at=[0,420,422,444],Ht=8;if((oe===100||oe===110||oe===122||oe===244||oe===44||oe===83||oe===86||oe===118||oe===128||oe===138||oe===144)&&(bn=Z.readUEG(),bn===3&&Z.readBits(1),bn<=3&&(kt=at[bn]),Ht=Z.readUEG()+8,Z.readUEG(),Z.readBits(1),Z.readBool()))for(var Fe=bn!==3?8:12,Un=0;Un0&&ba<16?(dn=Na[ba-1],Tn=Ma[ba-1]):ba===255&&(dn=Z.readByte()<<8|Z.readByte(),Tn=Z.readByte()<<8|Z.readByte())}if(Z.readBool()&&Z.readBool(),Z.readBool()&&(Z.readBits(4),Z.readBool()&&Z.readBits(24)),Z.readBool()&&(Z.readUEG(),Z.readUEG()),Z.readBool()){var Jt=Z.readBits(32),Rt=Z.readBits(32);fr=Z.readBool(),gr=Rt,ir=Jt*2,ya=gr/ir}}var An=1;(dn!==1||Tn!==1)&&(An=dn/Tn);var aa=0,ra=0;if(bn===0)aa=1,ra=2-_e;else{var Fn=bn===3?1:2,da=bn===1?2:1;aa=Fn,ra=da*(2-_e)}var Ta=(Y+1)*16,Wa=(2-_e)*((te+1)*16);Ta-=(se+ut)*aa,Wa-=(vn+Wn)*ra;var ue=Math.ceil(Ta*An);return Z.destroy(),Z=null,{profile_string:Re,level_string:ve,bit_depth:Ht,ref_frames:z,chroma_format:kt,chroma_format_string:Pe.getChromaFormatString(kt),frame_rate:{fixed:fr,fps:ya,fps_den:ir,fps_num:gr},sar_ratio:{width:dn,height:Tn},codec_size:{width:Ta,height:Wa},present_size:{width:ue,height:Wa}}}},{key:"_skipScalingList",value:function(J,q){for(var Z=8,oe=8,Oe=0,Re=0;Re>>8&255|(Pe&255)<<8}function Zt(Pe){return(Pe&4278190080)>>>24|(Pe&16711680)>>>8|(Pe&65280)<<8|(Pe&255)<<24}function Hn(Pe,ye){return Pe[ye]<<24|Pe[ye+1]<<16|Pe[ye+2]<<8|Pe[ye+3]}var ia=function(){function Pe(ye,J){Object(Q.a)(this,Pe),this.TAG="FLVDemuxer",this._config=J,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ye.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ye.hasAudioTrack,this._hasVideo=ye.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ae,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var q=new ArrayBuffer(2);return new DataView(q).setInt16(0,256,!0),new Int16Array(q)[0]===256}()}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(J){return J.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(J){this._onTrackMetadata=J}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(J){this._onMediaInfo=J}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(J){this._onMetaDataArrived=J}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(J){this._onScriptDataArrived=J}},{key:"onError",get:function(){return this._onError},set:function(J){this._onError=J}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(J){this._onDataAvailable=J}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(J){this._timestampBase=J}},{key:"overridedDuration",get:function(){return this._duration},set:function(J){this._durationOverrided=!0,this._duration=J,this._mediaInfo.duration=J}},{key:"overridedHasAudio",set:function(J){this._hasAudioFlagOverrided=!0,this._hasAudio=J,this._mediaInfo.hasAudio=J}},{key:"overridedHasVideo",set:function(J){this._hasVideoFlagOverrided=!0,this._hasVideo=J,this._mediaInfo.hasVideo=J}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Ae}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(J,q){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new o("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Z=0,oe=this._littleEndian;if(q===0)if(J.byteLength>13){var Oe=Pe.probe(J);Z=Oe.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,q+Z!==this._dataOffset&&p.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Re=new DataView(J,Z),ve=Re.getUint32(0,!oe);ve!==0&&p.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Z+=4}for(;ZJ.byteLength)break;var kt=bn.getUint8(0),at=bn.getUint32(0,!oe)&16777215;if(Z+11+at+4>J.byteLength)break;if(kt!==8&&kt!==9&&kt!==18){p.w(this.TAG,"Unsupported tag type ".concat(kt,", skipped")),Z+=11+at+4;continue}var Ht=bn.getUint8(4),Fe=bn.getUint8(5),Un=bn.getUint8(6),Fa=bn.getUint8(7),fa=Un|Fe<<8|Ht<<16|Fa<<24,ae=bn.getUint32(7,!oe)&16777215;ae!==0&&p.w(this.TAG,"Meet tag which has StreamID != 0!");var z=Z+11;switch(kt){case 8:this._parseAudioData(J,z,at,fa);break;case 9:this._parseVideoData(J,z,at,fa,q+Z);break;case 18:this._parseScriptData(J,z,at);break}var Y=bn.getUint32(11+at,!oe);Y!==11+at&&p.w(this.TAG,"Invalid PrevTagSize ".concat(Y)),Z+=11+at+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Z}},{key:"_parseScriptData",value:function(J,q,Z){var oe=Qe.parseScriptData(J,q,Z);if(oe.hasOwnProperty("onMetaData")){if(oe.onMetaData==null||typeof oe.onMetaData!="object"){p.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&p.w(this.TAG,"Found another onMetaData tag!"),this._metadata=oe;var Oe=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Oe)),typeof Oe.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=Oe.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof Oe.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=Oe.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof Oe.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Oe.audiodatarate),typeof Oe.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Oe.videodatarate),typeof Oe.width=="number"&&(this._mediaInfo.width=Oe.width),typeof Oe.height=="number"&&(this._mediaInfo.height=Oe.height),typeof Oe.duration=="number"){if(!this._durationOverrided){var Re=Math.floor(Oe.duration*this._timescale);this._duration=Re,this._mediaInfo.duration=Re}}else this._mediaInfo.duration=0;if(typeof Oe.framerate=="number"){var ve=Math.floor(Oe.framerate*1e3);if(ve>0){var bn=ve/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=bn,this._referenceFrameRate.fps_num=ve,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=bn}}if(typeof Oe.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var kt=Oe.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(kt),Oe.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Oe,p.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(oe).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},oe)))}},{key:"_parseKeyframesIndex",value:function(J){for(var q=[],Z=[],oe=1;oe>>4;if(bn!==2&&bn!==10){this._onError(Ct.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+bn);return}var kt=0,at=(ve&12)>>>2;if(at>=0&&at<=4)kt=this._flvSoundRateTable[at];else{this._onError(Ct.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+at);return}var Ht=(ve&2)>>>1,Fe=ve&1,Un=this._audioMetadata,Fa=this._audioTrack;if(Un||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Un=this._audioMetadata={},Un.type="audio",Un.id=Fa.id,Un.timescale=this._timescale,Un.duration=this._duration,Un.audioSampleRate=kt,Un.channelCount=Fe===0?1:2),bn===10){var fa=this._parseAACAudioData(J,q+1,Z-1);if(fa==null)return;if(fa.packetType===0){Un.config&&p.w(this.TAG,"Found another AudioSpecificConfig!");var ae=fa.data;Un.audioSampleRate=ae.samplingRate,Un.channelCount=ae.channelCount,Un.codec=ae.codec,Un.originalCodec=ae.originalCodec,Un.config=ae.config,Un.refSampleDuration=1024/Un.audioSampleRate*Un.timescale,p.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",Un);var z=this._mediaInfo;z.audioCodec=Un.originalCodec,z.audioSampleRate=Un.audioSampleRate,z.audioChannelCount=Un.channelCount,z.hasVideo?z.videoCodec!=null&&(z.mimeType='video/x-flv; codecs="'+z.videoCodec+","+z.audioCodec+'"'):z.mimeType='video/x-flv; codecs="'+z.audioCodec+'"',z.isComplete()&&this._onMediaInfo(z)}else if(fa.packetType===1){var Y=this._timestampBase+oe,te={unit:fa.data,length:fa.data.byteLength,dts:Y,pts:Y};Fa.samples.push(te),Fa.length+=fa.data.length}else p.e(this.TAG,"Flv: Unsupported AAC data type ".concat(fa.packetType))}else if(bn===2){if(!Un.codec){var _e=this._parseMP3AudioData(J,q+1,Z-1,!0);if(_e==null)return;Un.audioSampleRate=_e.samplingRate,Un.channelCount=_e.channelCount,Un.codec=_e.codec,Un.originalCodec=_e.originalCodec,Un.refSampleDuration=1152/Un.audioSampleRate*Un.timescale,p.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Un);var se=this._mediaInfo;se.audioCodec=Un.codec,se.audioSampleRate=Un.audioSampleRate,se.audioChannelCount=Un.channelCount,se.audioDataRate=_e.bitRate,se.hasVideo?se.videoCodec!=null&&(se.mimeType='video/x-flv; codecs="'+se.videoCodec+","+se.audioCodec+'"'):se.mimeType='video/x-flv; codecs="'+se.audioCodec+'"',se.isComplete()&&this._onMediaInfo(se)}var ut=this._parseMP3AudioData(J,q+1,Z-1,!1);if(ut==null)return;var vn=this._timestampBase+oe,Wn={unit:ut,length:ut.byteLength,dts:vn,pts:vn};Fa.samples.push(Wn),Fa.length+=ut.length}}},{key:"_parseAACAudioData",value:function(J,q,Z){if(Z<=1){p.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var oe={},Oe=new Uint8Array(J,q,Z);return oe.packetType=Oe[0],Oe[0]===0?oe.data=this._parseAACAudioSpecificConfig(J,q+1,Z-1):oe.data=Oe.subarray(1),oe}},{key:"_parseAACAudioSpecificConfig",value:function(J,q,Z){var oe=new Uint8Array(J,q,Z),Oe=null,Re=0,ve=0,bn=null,kt=0,at=null;if(Re=ve=oe[0]>>>3,kt=(oe[0]&7)<<1|oe[1]>>>7,kt<0||kt>=this._mpegSamplingRates.length){this._onError(Ct.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Ht=this._mpegSamplingRates[kt],Fe=(oe[1]&120)>>>3;if(Fe<0||Fe>=8){this._onError(Ct.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Re===5&&(at=(oe[1]&7)<<1|oe[2]>>>7,bn=(oe[2]&124)>>>2);var Un=self.navigator.userAgent.toLowerCase();return Un.indexOf("firefox")!==-1?kt>=6?(Re=5,Oe=new Array(4),at=kt-3):(Re=2,Oe=new Array(2),at=kt):Un.indexOf("android")!==-1?(Re=2,Oe=new Array(2),at=kt):(Re=5,at=kt,Oe=new Array(4),kt>=6?at=kt-3:Fe===1&&(Re=2,Oe=new Array(2),at=kt)),Oe[0]=Re<<3,Oe[0]|=(kt&15)>>>1,Oe[1]=(kt&15)<<7,Oe[1]|=(Fe&15)<<3,Re===5&&(Oe[1]|=(at&15)>>>1,Oe[2]=(at&1)<<7,Oe[2]|=2<<2,Oe[3]=0),{config:Oe,samplingRate:Ht,channelCount:Fe,codec:"mp4a.40."+Re,originalCodec:"mp4a.40."+ve}}},{key:"_parseMP3AudioData",value:function(J,q,Z,oe){if(Z<4){p.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var Oe=this._littleEndian,Re=new Uint8Array(J,q,Z),ve=null;if(oe){if(Re[0]!==255)return;var bn=Re[1]>>>3&3,kt=(Re[1]&6)>>1,at=(Re[2]&240)>>>4,Ht=(Re[2]&12)>>>2,Fe=Re[3]>>>6&3,Un=Fe!==3?2:1,Fa=0,fa=0,ae=34,z="mp3";switch(bn){case 0:Fa=this._mpegAudioV25SampleRateTable[Ht];break;case 2:Fa=this._mpegAudioV20SampleRateTable[Ht];break;case 3:Fa=this._mpegAudioV10SampleRateTable[Ht];break}switch(kt){case 1:ae=34,at>>4,bn=Re&15;if(bn!==7){this._onError(Ct.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(bn));return}this._parseAVCVideoPacket(J,q+1,Z-1,oe,Oe,ve)}},{key:"_parseAVCVideoPacket",value:function(J,q,Z,oe,Oe,Re){if(Z<4){p.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var ve=this._littleEndian,bn=new DataView(J,q,Z),kt=bn.getUint8(0),at=bn.getUint32(0,!ve)&16777215,Ht=at<<8>>8;if(kt===0)this._parseAVCDecoderConfigurationRecord(J,q+4,Z-4);else if(kt===1)this._parseAVCVideoData(J,q+4,Z-4,oe,Oe,Re,Ht);else if(!(kt===2)){this._onError(Ct.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(kt));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(J,q,Z){if(Z<7){p.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var oe=this._videoMetadata,Oe=this._videoTrack,Re=this._littleEndian,ve=new DataView(J,q,Z);oe?typeof oe.avcc!="undefined"&&p.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),oe=this._videoMetadata={},oe.type="video",oe.id=Oe.id,oe.timescale=this._timescale,oe.duration=this._duration);var bn=ve.getUint8(0),kt=ve.getUint8(1),at=ve.getUint8(2),Ht=ve.getUint8(3);if(bn!==1||kt===0){this._onError(Ct.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(ve.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ct.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var Fe=ve.getUint8(5)&31;if(Fe===0){this._onError(Ct.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Fe>1&&p.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(Fe));for(var Un=6,Fa=0;Fa1&&p.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Oa));Un++;for(var dn=0;dn=Z){p.w(this.TAG,"Malformed Nalu near timestamp ".concat(Fa,", offset = ").concat(Fe,", dataSize = ").concat(Z));break}var ae=kt.getUint32(Fe,!bn);if(Un===3&&(ae>>>=8),ae>Z-Un){p.w(this.TAG,"Malformed Nalus near timestamp ".concat(Fa,", NaluSize > DataSize!"));return}var z=kt.getUint8(Fe+Un)&31;z===5&&(fa=!0);var Y=new Uint8Array(J,q+Fe,Un+ae),te={type:z,data:Y};at.push(te),Ht+=Y.byteLength,Fe+=Un+ae}if(at.length){var _e=this._videoTrack,se={units:at,length:Ht,isKeyframe:fa,dts:Fa,cts:ve,pts:Fa+ve};fa&&(se.fileposition=Oe),_e.samples.push(se),_e.length+=Ht}}}],[{key:"probe",value:function(J){var q=new Uint8Array(J),Z={match:!1};if(q[0]!==70||q[1]!==76||q[2]!==86||q[3]!==1)return Z;var oe=(q[4]&4)>>>2!==0,Oe=(q[4]&1)!==0,Re=Hn(q,5);return Re<9?Z:{match:!0,consumed:Re,dataOffset:Re,hasAudioTrack:oe,hasVideoTrack:Oe}}}]),Pe}(),vt=ia,mt=function(){function Pe(){Object(Q.a)(this,Pe)}return Object(W.a)(Pe,null,[{key:"init",value:function(){Pe.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var J in Pe.types)Pe.types.hasOwnProperty(J)&&(Pe.types[J]=[J.charCodeAt(0),J.charCodeAt(1),J.charCodeAt(2),J.charCodeAt(3)]);var q=Pe.constants={};q.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),q.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),q.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),q.STSC=q.STCO=q.STTS,q.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),q.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),q.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),q.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),q.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),q.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(J){for(var q=8,Z=null,oe=Array.prototype.slice.call(arguments,1),Oe=oe.length,Re=0;Re>>24&255,Z[1]=q>>>16&255,Z[2]=q>>>8&255,Z[3]=q&255,Z.set(J,4);for(var ve=8,bn=0;bn>>24&255,J>>>16&255,J>>>8&255,J&255,q>>>24&255,q>>>16&255,q>>>8&255,q&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(J){return Pe.box(Pe.types.trak,Pe.tkhd(J),Pe.mdia(J))}},{key:"tkhd",value:function(J){var q=J.id,Z=J.duration,oe=J.presentWidth,Oe=J.presentHeight;return Pe.box(Pe.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255,0,0,0,0,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,oe>>>8&255,oe&255,0,0,Oe>>>8&255,Oe&255,0,0]))}},{key:"mdia",value:function(J){return Pe.box(Pe.types.mdia,Pe.mdhd(J),Pe.hdlr(J),Pe.minf(J))}},{key:"mdhd",value:function(J){var q=J.timescale,Z=J.duration;return Pe.box(Pe.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,85,196,0,0]))}},{key:"hdlr",value:function(J){var q=null;return J.type==="audio"?q=Pe.constants.HDLR_AUDIO:q=Pe.constants.HDLR_VIDEO,Pe.box(Pe.types.hdlr,q)}},{key:"minf",value:function(J){var q=null;return J.type==="audio"?q=Pe.box(Pe.types.smhd,Pe.constants.SMHD):q=Pe.box(Pe.types.vmhd,Pe.constants.VMHD),Pe.box(Pe.types.minf,q,Pe.dinf(),Pe.stbl(J))}},{key:"dinf",value:function(){var J=Pe.box(Pe.types.dinf,Pe.box(Pe.types.dref,Pe.constants.DREF));return J}},{key:"stbl",value:function(J){var q=Pe.box(Pe.types.stbl,Pe.stsd(J),Pe.box(Pe.types.stts,Pe.constants.STTS),Pe.box(Pe.types.stsc,Pe.constants.STSC),Pe.box(Pe.types.stsz,Pe.constants.STSZ),Pe.box(Pe.types.stco,Pe.constants.STCO));return q}},{key:"stsd",value:function(J){return J.type==="audio"?J.codec==="mp3"?Pe.box(Pe.types.stsd,Pe.constants.STSD_PREFIX,Pe.mp3(J)):Pe.box(Pe.types.stsd,Pe.constants.STSD_PREFIX,Pe.mp4a(J)):Pe.box(Pe.types.stsd,Pe.constants.STSD_PREFIX,Pe.avc1(J))}},{key:"mp3",value:function(J){var q=J.channelCount,Z=J.audioSampleRate,oe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,q,0,16,0,0,0,0,Z>>>8&255,Z&255,0,0]);return Pe.box(Pe.types[".mp3"],oe)}},{key:"mp4a",value:function(J){var q=J.channelCount,Z=J.audioSampleRate,oe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,q,0,16,0,0,0,0,Z>>>8&255,Z&255,0,0]);return Pe.box(Pe.types.mp4a,oe,Pe.esds(J))}},{key:"esds",value:function(J){var q=J.config||[],Z=q.length,oe=new Uint8Array([0,0,0,0,3,23+Z,0,1,0,4,15+Z,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Z]).concat(q).concat([6,1,2]));return Pe.box(Pe.types.esds,oe)}},{key:"avc1",value:function(J){var q=J.avcc,Z=J.codecWidth,oe=J.codecHeight,Oe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Z>>>8&255,Z&255,oe>>>8&255,oe&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Pe.box(Pe.types.avc1,Oe,Pe.box(Pe.types.avcC,q))}},{key:"mvex",value:function(J){return Pe.box(Pe.types.mvex,Pe.trex(J))}},{key:"trex",value:function(J){var q=J.id,Z=new Uint8Array([0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Pe.box(Pe.types.trex,Z)}},{key:"moof",value:function(J,q){return Pe.box(Pe.types.moof,Pe.mfhd(J.sequenceNumber),Pe.traf(J,q))}},{key:"mfhd",value:function(J){var q=new Uint8Array([0,0,0,0,J>>>24&255,J>>>16&255,J>>>8&255,J&255]);return Pe.box(Pe.types.mfhd,q)}},{key:"traf",value:function(J,q){var Z=J.id,oe=Pe.box(Pe.types.tfhd,new Uint8Array([0,0,0,0,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255])),Oe=Pe.box(Pe.types.tfdt,new Uint8Array([0,0,0,0,q>>>24&255,q>>>16&255,q>>>8&255,q&255])),Re=Pe.sdtp(J),ve=Pe.trun(J,Re.byteLength+16+16+8+16+8+8);return Pe.box(Pe.types.traf,oe,Oe,ve,Re)}},{key:"sdtp",value:function(J){for(var q=J.samples||[],Z=q.length,oe=new Uint8Array(4+Z),Oe=0;Oe>>24&255,oe>>>16&255,oe>>>8&255,oe&255,q>>>24&255,q>>>16&255,q>>>8&255,q&255],0);for(var ve=0;ve>>24&255,bn>>>16&255,bn>>>8&255,bn&255,kt>>>24&255,kt>>>16&255,kt>>>8&255,kt&255,at.isLeading<<2|at.dependsOn,at.isDependedOn<<6|at.hasRedundancy<<4|at.isNonSync,0,0,Ht>>>24&255,Ht>>>16&255,Ht>>>8&255,Ht&255],12+16*ve)}return Pe.box(Pe.types.trun,Re)}},{key:"mdat",value:function(J){return Pe.box(Pe.types.mdat,J)}}]),Pe}();mt.init();var on=mt,hn=function(){function Pe(){Object(Q.a)(this,Pe)}return Object(W.a)(Pe,null,[{key:"getSilentFrame",value:function(J,q){if(J==="mp4a.40.2"){if(q===1)return new Uint8Array([0,200,0,128,35,128]);if(q===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(q===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(q===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(q===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(q===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(q===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(q===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(q===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),Pe}(),Ot=hn,Xt=function Pe(ye,J,q,Z,oe){Object(Q.a)(this,Pe),this.dts=ye,this.pts=J,this.duration=q,this.originalDts=Z,this.isSyncPoint=oe,this.fileposition=null},ht=function(){function Pe(){Object(Q.a)(this,Pe),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(W.a)(Pe,[{key:"appendSyncPoint",value:function(J){J.isSyncPoint=!0,this.syncPoints.push(J)}}]),Pe}(),Je=function(){function Pe(){Object(Q.a)(this,Pe),this._list=[]}return Object(W.a)(Pe,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(J){var q=this._list;if(J.length===0)return;q.length>0&&J[0].originalDts=q[Oe].dts&&Jq[oe].lastSample.originalDts&&J=q[oe].lastSample.originalDts&&(oe===q.length-1||oe0&&(Oe=this._searchNearestSegmentBefore(Z.originalBeginDts)+1),this._lastAppendLocation=Oe,this._list.splice(Oe,0,Z)}},{key:"getLastSegmentBefore",value:function(J){var q=this._searchNearestSegmentBefore(J);return q>=0?this._list[q]:null}},{key:"getLastSampleBefore",value:function(J){var q=this.getLastSegmentBefore(J);return q!=null?q.lastSample:null}},{key:"getLastSyncPointBefore",value:function(J){for(var q=this._searchNearestSegmentBefore(J),Z=this._list[q].syncPoints;Z.length===0&&q>0;)q--,Z=this._list[q].syncPoints;return Z.length>0?Z[Z.length-1]:null}}]),Pe}(),Te=function(){function Pe(ye){Object(Q.a)(this,Pe),this.TAG="MP4Remuxer",this._config=ye,this._isLive=ye.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new rt("audio"),this._videoSegmentInfoList=new rt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(n.chrome&&(n.version.major<50||n.version.major===50&&n.version.build<2661)),this._fillSilentAfterSeek=n.msedge||n.msie,this._mp3UseMpegAudio=!n.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(J){return J.onDataAvailable=this.remux.bind(this),J.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(J){this._onInitSegment=J}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(J){this._onMediaSegment=J}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(J){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(J,q){if(!this._onMediaSegment)throw new o("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(J,q),this._remuxVideo(q),this._remuxAudio(J)}},{key:"_onTrackMetadataReceived",value:function(J,q){var Z=null,oe="mp4",Oe=q.codec;if(J==="audio")this._audioMeta=q,q.codec==="mp3"&&this._mp3UseMpegAudio?(oe="mpeg",Oe="",Z=new Uint8Array):Z=on.generateInitSegment(q);else if(J==="video")this._videoMeta=q,Z=on.generateInitSegment(q);else return;if(!this._onInitSegment)throw new o("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(J,{type:J,data:Z.buffer,codec:Oe,container:"".concat(J,"/").concat(oe),mediaDuration:q.duration})}},{key:"_calculateDtsBase",value:function(J,q){if(this._dtsBaseInited)return;J.samples&&J.samples.length&&(this._audioDtsBase=J.samples[0].dts),q.samples&&q.samples.length&&(this._videoDtsBase=q.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var J=this._videoStashedLastSample,q=this._audioStashedLastSample,Z={type:"video",id:1,sequenceNumber:0,samples:[],length:0};J!=null&&(Z.samples.push(J),Z.length=J.length);var oe={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};q!=null&&(oe.samples.push(q),oe.length=q.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Z,!0),this._remuxAudio(oe,!0)}},{key:"_remuxAudio",value:function(J,q){if(this._audioMeta==null)return;var Z=J,oe=Z.samples,Oe=void 0,Re=-1,ve=-1,bn=-1,kt=this._audioMeta.refSampleDuration,at=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ht=this._dtsBaseInited&&this._audioNextDts===void 0,Fe=!1;if(!oe||oe.length===0)return;if(oe.length===1&&!q)return;var Un=0,Fa=null,fa=0;at?(Un=0,fa=Z.length):(Un=8,fa=8+Z.length);var ae=null;if(oe.length>1&&(ae=oe.pop(),fa-=ae.length),this._audioStashedLastSample!=null){var z=this._audioStashedLastSample;this._audioStashedLastSample=null,oe.unshift(z),fa+=z.length}ae!=null&&(this._audioStashedLastSample=ae);var Y=oe[0].dts-this._dtsBase;if(this._audioNextDts)Oe=Y-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Oe=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(Fe=!0));else{var te=this._audioSegmentInfoList.getLastSampleBefore(Y);if(te!=null){var _e=Y-(te.originalDts+te.duration);_e<=3&&(_e=0);var se=te.dts+te.duration+_e;Oe=Y-se}else Oe=0}if(Fe){var ut=Y-Oe,vn=this._videoSegmentInfoList.getLastSegmentBefore(Y);if(vn!=null&&vn.beginDts=1?ba=Tn[Tn.length-1].duration:ba=Math.floor(kt);var Jt=!1,Rt=null;if(ba>kt*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!n.safari){Jt=!0;var An=Math.abs(ba-kt),aa=Math.ceil(An/kt),ra=Qa+kt;p.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. +`+"dts: ".concat(Qa+ba," ms, expected: ").concat(Qa+Math.round(kt)," ms, ")+"delta: ".concat(Math.round(An)," ms, generate: ").concat(aa," frames"));var Fn=Ot.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Fn==null&&(p.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Fn=gr),Rt=[];for(var da=0;da0){var Wa=Rt[Rt.length-1];Wa.duration=Ta-Wa.dts}var ue={dts:Ta,pts:Ta,cts:0,unit:Fn,size:Fn.byteLength,duration:0,originalDts:ir,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Rt.push(ue),fa+=ue.size,ra+=kt}var ot=Rt[Rt.length-1];ot.duration=Qa+ba-ot.dts,ba=Math.round(kt)}Tn.push({dts:Qa,pts:Qa,cts:0,unit:fr.unit,size:fr.unit.byteLength,duration:ba,originalDts:ir,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Jt&&Tn.push.apply(Tn,Rt)}at?Fa=new Uint8Array(fa):(Fa=new Uint8Array(fa),Fa[0]=fa>>>24&255,Fa[1]=fa>>>16&255,Fa[2]=fa>>>8&255,Fa[3]=fa&255,Fa.set(on.types.mdat,4));for(var lt=0;lt1&&(Un=oe.pop(),Fe-=Un.length),this._videoStashedLastSample!=null){var Fa=this._videoStashedLastSample;this._videoStashedLastSample=null,oe.unshift(Fa),Fe+=Fa.length}Un!=null&&(this._videoStashedLastSample=Un);var fa=oe[0].dts-this._dtsBase;if(this._videoNextDts)Oe=fa-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Oe=0;else{var ae=this._videoSegmentInfoList.getLastSampleBefore(fa);if(ae!=null){var z=fa-(ae.originalDts+ae.duration);z<=3&&(z=0);var Y=ae.dts+ae.duration+z;Oe=fa-Y}else Oe=0}for(var te=new ht,_e=[],se=0;se=1?ya=_e[_e.length-1].duration:ya=Math.floor(this._videoMeta.refSampleDuration);if(Wn){var ir=new Xt(Oa,Tn,ya,ut.dts,!0);ir.fileposition=ut.fileposition,te.appendSyncPoint(ir)}_e.push({dts:Oa,pts:Tn,cts:dn,units:ut.units,size:ut.length,isKeyframe:Wn,duration:ya,originalDts:vn,flags:{isLeading:0,dependsOn:Wn?2:1,isDependedOn:Wn?1:0,hasRedundancy:0,isNonSync:Wn?0:1}})}Ht=new Uint8Array(Fe),Ht[0]=Fe>>>24&255,Ht[1]=Fe>>>16&255,Ht[2]=Fe>>>8&255,Ht[3]=Fe&255,Ht.set(on.types.mdat,4);for(var Qa=0;Qa<_e.length;Qa++)for(var ba=_e[Qa].units;ba.length;){var Na=ba.shift(),Ma=Na.data;Ht.set(Ma,at),at+=Ma.byteLength}var Jt=_e[_e.length-1];if(ve=Jt.dts+Jt.duration,kt=Jt.pts+Jt.duration,this._videoNextDts=ve,te.beginDts=Re,te.endDts=ve,te.beginPts=bn,te.endPts=kt,te.originalBeginDts=_e[0].originalDts,te.originalEndDts=Jt.originalDts+Jt.duration,te.firstSample=new Xt(_e[0].dts,_e[0].pts,_e[0].duration,_e[0].originalDts,_e[0].isKeyframe),te.lastSample=new Xt(Jt.dts,Jt.pts,Jt.duration,Jt.originalDts,Jt.isKeyframe),this._isLive||this._videoSegmentInfoList.append(te),Z.samples=_e,Z.sequenceNumber++,this._forceFirstIDR){var Rt=_e[0].flags;Rt.dependsOn=2,Rt.isNonSync=0}var An=on.moof(Z,Re);Z.samples=[],Z.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(An,Ht).buffer,sampleCount:_e.length,info:te})}},{key:"_mergeBoxes",value:function(J,q){var Z=new Uint8Array(J.byteLength+q.byteLength);return Z.set(J,0),Z.set(q,J.byteLength),Z}}]),Pe}(),Me=Te,Ie={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},be=Ie,qe=function(){function Pe(ye,J){Object(Q.a)(this,Pe),this.TAG="TransmuxingController",this._emitter=new R.a,this._config=J,ye.segments||(ye.segments=[{duration:ye.duration,filesize:ye.filesize,url:ye.url}]),typeof ye.cors!="boolean"&&(ye.cors=!0),typeof ye.withCredentials!="boolean"&&(ye.withCredentials=!1),this._mediaDataSource=ye,this._currentSegmentIndex=0;var q=0;this._mediaDataSource.segments.forEach(function(Z){Z.timestampBase=q,q+=Z.duration,Z.cors=ye.cors,Z.withCredentials=ye.withCredentials,J.referrerPolicy&&(Z.referrerPolicy=J.referrerPolicy)}),!isNaN(q)&&this._mediaDataSource.duration!==q&&(this._mediaDataSource.duration=q),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(J,q){this._emitter.addListener(J,q)}},{key:"off",value:function(J,q){this._emitter.removeListener(J,q)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(J,q){this._currentSegmentIndex=J;var Z=this._mediaDataSource.segments[J],oe=this._ioctl=new $(Z,this._config,J);oe.onError=this._onIOException.bind(this),oe.onSeeked=this._onIOSeeked.bind(this),oe.onComplete=this._onIOComplete.bind(this),oe.onRedirect=this._onIORedirect.bind(this),oe.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),q?this._demuxer.bindDataSource(this._ioctl):oe.onDataArrival=this._onInitChunkArrival.bind(this),oe.open(q)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(J){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var q=this._searchSegmentIndexContains(J);if(q===this._currentSegmentIndex){var Z=this._mediaInfo.segments[q];if(Z==null)this._pendingSeekTime=J;else{var oe=Z.getNearestKeyframe(J);this._remuxer.seek(oe.milliseconds),this._ioctl.seek(oe.fileposition),this._pendingResolveSeekPoint=oe.milliseconds}}else{var Oe=this._mediaInfo.segments[q];if(Oe==null)this._pendingSeekTime=J,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(q);else{var Re=Oe.getNearestKeyframe(J);this._internalAbort(),this._remuxer.seek(J),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[q].timestampBase,this._loadSegment(q,Re.fileposition),this._pendingResolveSeekPoint=Re.milliseconds,this._reportSegmentMediaInfo(q)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(J){for(var q=this._mediaDataSource.segments,Z=q.length-1,oe=0;oe0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Oe=this._demuxer.parseChunks(J,q);else if((oe=vt.probe(J)).match){this._demuxer=new vt(oe,this._config),this._remuxer||(this._remuxer=new Me(this._config));var Re=this._mediaDataSource;Re.duration!=null&&!isNaN(Re.duration)&&(this._demuxer.overridedDuration=Re.duration),typeof Re.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Re.hasAudio),typeof Re.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Re.hasVideo),this._demuxer.timestampBase=Re.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),Oe=this._demuxer.parseChunks(J,q)}else oe=null,p.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Z._internalAbort()}),this._emitter.emit(be.DEMUX_ERROR,Ct.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Oe=0;return Oe}},{key:"_onMediaInfo",value:function(J){var q=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},J),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ae.prototype));var Z=Object.assign({},J);Object.setPrototypeOf(Z,Ae.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Z,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var oe=q._pendingSeekTime;q._pendingSeekTime=null,q.seek(oe)})}},{key:"_onMetaDataArrived",value:function(J){this._emitter.emit(be.METADATA_ARRIVED,J)}},{key:"_onScriptDataArrived",value:function(J){this._emitter.emit(be.SCRIPTDATA_ARRIVED,J)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(J){var q=J,Z=q+1;Z0&&Z[0].originalDts===oe&&(oe=Z[0].pts),this._emitter.emit(be.RECOMMEND_SEEKPOINT,oe)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(J){var q=this._mediaInfo.segments[J],Z=Object.assign({},q);Z.duration=this._mediaInfo.duration,Z.segmentCount=this._mediaInfo.segmentCount,delete Z.segments,delete Z.keyframesIndex,this._emitter.emit(be.MEDIA_INFO,Z)}},{key:"_reportStatisticsInfo",value:function(){var J={};J.url=this._ioctl.currentURL,J.hasRedirect=this._ioctl.hasRedirect,J.hasRedirect&&(J.redirectedURL=this._ioctl.currentRedirectedURL),J.speed=this._ioctl.currentSpeed,J.loaderType=this._ioctl.loaderType,J.currentSegmentIndex=this._currentSegmentIndex,J.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(be.STATISTICS_INFO,J)}}]),Pe}(),Lt=qe,nn=function(ye){var J="TransmuxingWorker",q=null,Z=fa.bind(this);B.install(),ye.addEventListener("message",function(ae){switch(ae.data.cmd){case"init":q=new Lt(ae.data.param[0],ae.data.param[1]),q.on(be.IO_ERROR,Fe.bind(this)),q.on(be.DEMUX_ERROR,Un.bind(this)),q.on(be.INIT_SEGMENT,oe.bind(this)),q.on(be.MEDIA_SEGMENT,Oe.bind(this)),q.on(be.LOADING_COMPLETE,Re.bind(this)),q.on(be.RECOVERED_EARLY_EOF,ve.bind(this)),q.on(be.MEDIA_INFO,bn.bind(this)),q.on(be.METADATA_ARRIVED,kt.bind(this)),q.on(be.SCRIPTDATA_ARRIVED,at.bind(this)),q.on(be.STATISTICS_INFO,Ht.bind(this)),q.on(be.RECOMMEND_SEEKPOINT,Fa.bind(this));break;case"destroy":q&&(q.destroy(),q=null),ye.postMessage({msg:"destroyed"});break;case"start":q.start();break;case"stop":q.stop();break;case"seek":q.seek(ae.data.param);break;case"pause":q.pause();break;case"resume":q.resume();break;case"logging_config":{var z=ae.data.param;me.applyConfig(z),z.enableCallback===!0?me.addLogListener(Z):me.removeLogListener(Z);break}}});function oe(ae,z){var Y={msg:be.INIT_SEGMENT,data:{type:ae,data:z}};ye.postMessage(Y,[z.data])}function Oe(ae,z){var Y={msg:be.MEDIA_SEGMENT,data:{type:ae,data:z}};ye.postMessage(Y,[z.data])}function Re(){var ae={msg:be.LOADING_COMPLETE};ye.postMessage(ae)}function ve(){var ae={msg:be.RECOVERED_EARLY_EOF};ye.postMessage(ae)}function bn(ae){var z={msg:be.MEDIA_INFO,data:ae};ye.postMessage(z)}function kt(ae){var z={msg:be.METADATA_ARRIVED,data:ae};ye.postMessage(z)}function at(ae){var z={msg:be.SCRIPTDATA_ARRIVED,data:ae};ye.postMessage(z)}function Ht(ae){var z={msg:be.STATISTICS_INFO,data:ae};ye.postMessage(z)}function Fe(ae,z){ye.postMessage({msg:be.IO_ERROR,data:{type:ae,info:z}})}function Un(ae,z){ye.postMessage({msg:be.DEMUX_ERROR,data:{type:ae,info:z}})}function Fa(ae){ye.postMessage({msg:be.RECOMMEND_SEEKPOINT,data:ae})}function fa(ae,z){ye.postMessage({msg:"logcat_callback",data:{type:ae,logcat:z}})}},$n=nn,ta=function(){function Pe(ye,J){if(Object(Q.a)(this,Pe),this.TAG="Transmuxer",this._emitter=new R.a,J.enableWorker&&typeof Worker!="undefined")try{var q=y("0r65");this._worker=q($n),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ye,J]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},me.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:me.getConfig()})}catch(oe){p.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Lt(ye,J)}else this._controller=new Lt(ye,J);if(this._controller){var Z=this._controller;Z.on(be.IO_ERROR,this._onIOError.bind(this)),Z.on(be.DEMUX_ERROR,this._onDemuxError.bind(this)),Z.on(be.INIT_SEGMENT,this._onInitSegment.bind(this)),Z.on(be.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Z.on(be.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Z.on(be.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Z.on(be.MEDIA_INFO,this._onMediaInfo.bind(this)),Z.on(be.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Z.on(be.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Z.on(be.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Z.on(be.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),me.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(J,q){this._emitter.addListener(J,q)}},{key:"off",value:function(J,q){this._emitter.removeListener(J,q)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(J){this._worker?this._worker.postMessage({cmd:"seek",param:J}):this._controller.seek(J)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(J,q){var Z=this;Promise.resolve().then(function(){Z._emitter.emit(be.INIT_SEGMENT,J,q)})}},{key:"_onMediaSegment",value:function(J,q){var Z=this;Promise.resolve().then(function(){Z._emitter.emit(be.MEDIA_SEGMENT,J,q)})}},{key:"_onLoadingComplete",value:function(){var J=this;Promise.resolve().then(function(){J._emitter.emit(be.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var J=this;Promise.resolve().then(function(){J._emitter.emit(be.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(J){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.MEDIA_INFO,J)})}},{key:"_onMetaDataArrived",value:function(J){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.METADATA_ARRIVED,J)})}},{key:"_onScriptDataArrived",value:function(J){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.SCRIPTDATA_ARRIVED,J)})}},{key:"_onStatisticsInfo",value:function(J){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.STATISTICS_INFO,J)})}},{key:"_onIOError",value:function(J,q){var Z=this;Promise.resolve().then(function(){Z._emitter.emit(be.IO_ERROR,J,q)})}},{key:"_onDemuxError",value:function(J,q){var Z=this;Promise.resolve().then(function(){Z._emitter.emit(be.DEMUX_ERROR,J,q)})}},{key:"_onRecommendSeekpoint",value:function(J){var q=this;Promise.resolve().then(function(){q._emitter.emit(be.RECOMMEND_SEEKPOINT,J)})}},{key:"_onLoggingConfigChanged",value:function(J){this._worker&&this._worker.postMessage({cmd:"logging_config",param:J})}},{key:"_onWorkerMessage",value:function(J){var q=J.data,Z=q.data;if(q.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(q.msg){case be.INIT_SEGMENT:case be.MEDIA_SEGMENT:this._emitter.emit(q.msg,Z.type,Z.data);break;case be.LOADING_COMPLETE:case be.RECOVERED_EARLY_EOF:this._emitter.emit(q.msg);break;case be.MEDIA_INFO:Object.setPrototypeOf(Z,Ae.prototype),this._emitter.emit(q.msg,Z);break;case be.METADATA_ARRIVED:case be.SCRIPTDATA_ARRIVED:case be.STATISTICS_INFO:this._emitter.emit(q.msg,Z);break;case be.IO_ERROR:case be.DEMUX_ERROR:this._emitter.emit(q.msg,Z.type,Z.info);break;case be.RECOMMEND_SEEKPOINT:this._emitter.emit(q.msg,Z);break;case"logcat_callback":p.emitter.emit("log",Z.type,Z.logcat);break;default:break}}}]),Pe}(),Sa=ta,_n={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},Bt=_n,mn=function(){function Pe(ye){Object(Q.a)(this,Pe),this.TAG="MSEController",this._config=ye,this._emitter=new R.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Je}return Object(W.a)(Pe,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(J,q){this._emitter.addListener(J,q)}},{key:"off",value:function(J,q){this._emitter.removeListener(J,q)}},{key:"attachMediaElement",value:function(J){if(this._mediaSource)throw new o("MediaSource has been attached to an HTMLMediaElement!");var q=this._mediaSource=new window.MediaSource;q.addEventListener("sourceopen",this.e.onSourceOpen),q.addEventListener("sourceended",this.e.onSourceEnded),q.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=J,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),J.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var J=this._mediaSource;for(var q in this._sourceBuffers){var Z=this._pendingSegments[q];Z.splice(0,Z.length),this._pendingSegments[q]=null,this._pendingRemoveRanges[q]=null,this._lastInitSegments[q]=null;var oe=this._sourceBuffers[q];if(oe){if(J.readyState!=="closed"){try{J.removeSourceBuffer(oe)}catch(Oe){p.e(this.TAG,Oe.message)}oe.removeEventListener("error",this.e.onSourceBufferError),oe.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[q]=null,this._sourceBuffers[q]=null}}if(J.readyState==="open")try{J.endOfStream()}catch(Oe){p.e(this.TAG,Oe.message)}J.removeEventListener("sourceopen",this.e.onSourceOpen),J.removeEventListener("sourceended",this.e.onSourceEnded),J.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(J,q){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(J),this._pendingSegments[J.type].push(J);return}var Z=J,oe="".concat(Z.container);Z.codec&&Z.codec.length>0&&(oe+=";codecs=".concat(Z.codec));var Oe=!1;if(p.v(this.TAG,"Received Initialization Segment, mimeType: "+oe),this._lastInitSegments[Z.type]=Z,oe!==this._mimeTypes[Z.type]){if(this._mimeTypes[Z.type])p.v(this.TAG,"Notice: ".concat(Z.type," mimeType changed, origin: ").concat(this._mimeTypes[Z.type],", target: ").concat(oe));else{Oe=!0;try{var Re=this._sourceBuffers[Z.type]=this._mediaSource.addSourceBuffer(oe);Re.addEventListener("error",this.e.onSourceBufferError),Re.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(ve){p.e(this.TAG,ve.message),this._emitter.emit(Bt.ERROR,{code:ve.code,msg:ve.message});return}}this._mimeTypes[Z.type]=oe}q||this._pendingSegments[Z.type].push(Z),Oe||this._sourceBuffers[Z.type]&&!this._sourceBuffers[Z.type].updating&&this._doAppendSegments(),n.safari&&Z.container==="audio/mpeg"&&Z.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Z.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(J){var q=J;this._pendingSegments[q.type].push(q),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Z=this._sourceBuffers[q.type];Z&&!Z.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(J){for(var q in this._sourceBuffers){if(!this._sourceBuffers[q])continue;var Z=this._sourceBuffers[q];if(this._mediaSource.readyState==="open")try{Z.abort()}catch(kt){p.e(this.TAG,kt.message)}this._idrList.clear();var oe=this._pendingSegments[q];if(oe.splice(0,oe.length),this._mediaSource.readyState==="closed")continue;for(var Oe=0;Oe=1&&J-oe.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var J=this._mediaElement.currentTime;for(var q in this._sourceBuffers){var Z=this._sourceBuffers[q];if(Z){for(var oe=Z.buffered,Oe=!1,Re=0;Re=this._config.autoCleanupMaxBackwardDuration){Oe=!0;var kt=J-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[q].push({start:ve,end:kt})}}else bn0&&(isNaN(q)||Z>q)&&(p.v(this.TAG,"Update MediaSource duration from ".concat(q," to ").concat(Z)),this._mediaSource.duration=Z),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var J in this._pendingRemoveRanges){if(!this._sourceBuffers[J]||this._sourceBuffers[J].updating)continue;for(var q=this._sourceBuffers[J],Z=this._pendingRemoveRanges[J];Z.length&&!q.updating;){var oe=Z.shift();q.remove(oe.start,oe.end)}}}},{key:"_doAppendSegments",value:function(){var J=this._pendingSegments;for(var q in J){if(!this._sourceBuffers[q]||this._sourceBuffers[q].updating)continue;if(J[q].length>0){var Z=J[q].shift();if(Z.timestampOffset){var oe=this._sourceBuffers[q].timestampOffset,Oe=Z.timestampOffset/1e3,Re=Math.abs(oe-Oe);Re>.1&&(p.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(oe," to ").concat(Oe)),this._sourceBuffers[q].timestampOffset=Oe),delete Z.timestampOffset}if(!Z.data||Z.data.byteLength===0)continue;try{this._sourceBuffers[q].appendBuffer(Z.data),this._isBufferFull=!1,q==="video"&&Z.hasOwnProperty("info")&&this._idrList.appendArray(Z.info.syncPoints)}catch(ve){this._pendingSegments[q].unshift(Z),ve.code===22?(this._isBufferFull||this._emitter.emit(Bt.BUFFER_FULL),this._isBufferFull=!0):(p.e(this.TAG,ve.message),this._emitter.emit(Bt.ERROR,{code:ve.code,msg:ve.message}))}}}}},{key:"_onSourceOpen",value:function(){if(p.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var J=this._pendingSourceBufferInit;J.length;){var q=J.shift();this.appendInitSegment(q,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Bt.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){p.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){p.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var J=this._pendingSegments;return J.video.length>0||J.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var J=this._pendingRemoveRanges;return J.video.length>0||J.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Bt.UPDATE_END)}},{key:"_onSourceBufferError",value:function(J){p.e(this.TAG,"SourceBuffer Error: ".concat(J))}}]),Pe}(),Gt=mn,ze={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},ct={NETWORK_EXCEPTION:t.EXCEPTION,NETWORK_STATUS_CODE_INVALID:t.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:t.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:t.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Ct.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ct.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ct.CODEC_UNSUPPORTED},Sn=function(){function Pe(ye,J){if(Object(Q.a)(this,Pe),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new R.a,this._config=le(),typeof J=="object"&&Object.assign(this._config,J),ye.type.toLowerCase()!=="flv")throw new c("FlvPlayer requires an flv MediaDataSource input!");ye.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=ye,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var q=n.chrome&&(n.version.major<50||n.version.major===50&&n.version.build<2661);this._alwaysSeekKeyframe=!!(q||n.msedge||n.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(W.a)(Pe,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(J,q){var Z=this;J===et.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Z._emitter.emit(et.MEDIA_INFO,Z.mediaInfo)}):J===et.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Z._emitter.emit(et.STATISTICS_INFO,Z.statisticsInfo)})),this._emitter.addListener(J,q)}},{key:"off",value:function(J,q){this._emitter.removeListener(J,q)}},{key:"attachMediaElement",value:function(J){var q=this;if(this._mediaElement=J,J.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),J.addEventListener("seeking",this.e.onvSeeking),J.addEventListener("canplay",this.e.onvCanPlay),J.addEventListener("stalled",this.e.onvStalled),J.addEventListener("progress",this.e.onvProgress),this._msectl=new Gt(this._config),this._msectl.on(Bt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Bt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Bt.SOURCE_OPEN,function(){q._mseSourceOpened=!0,q._hasPendingLoad&&(q._hasPendingLoad=!1,q.load())}),this._msectl.on(Bt.ERROR,function(Z){q._emitter.emit(et.ERROR,ze.MEDIA_ERROR,ct.MEDIA_MSE_ERROR,Z)}),this._msectl.attachMediaElement(J),this._pendingSeekTime!=null)try{J.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Z){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var J=this;if(!this._mediaElement)throw new o("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new o("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Sa(this._mediaDataSource,this._config),this._transmuxer.on(be.INIT_SEGMENT,function(q,Z){J._msectl.appendInitSegment(Z)}),this._transmuxer.on(be.MEDIA_SEGMENT,function(q,Z){if(J._msectl.appendMediaSegment(Z),J._config.lazyLoad&&!J._config.isLive){var oe=J._mediaElement.currentTime;Z.info.endDts>=(oe+J._config.lazyLoadMaxDuration)*1e3&&(J._progressChecker==null&&(p.v(J.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),J._suspendTransmuxer()))}}),this._transmuxer.on(be.LOADING_COMPLETE,function(){J._msectl.endOfStream(),J._emitter.emit(et.LOADING_COMPLETE)}),this._transmuxer.on(be.RECOVERED_EARLY_EOF,function(){J._emitter.emit(et.RECOVERED_EARLY_EOF)}),this._transmuxer.on(be.IO_ERROR,function(q,Z){J._emitter.emit(et.ERROR,ze.NETWORK_ERROR,q,Z)}),this._transmuxer.on(be.DEMUX_ERROR,function(q,Z){J._emitter.emit(et.ERROR,ze.MEDIA_ERROR,q,{code:-1,msg:Z})}),this._transmuxer.on(be.MEDIA_INFO,function(q){J._mediaInfo=q,J._emitter.emit(et.MEDIA_INFO,Object.assign({},q))}),this._transmuxer.on(be.METADATA_ARRIVED,function(q){J._emitter.emit(et.METADATA_ARRIVED,q)}),this._transmuxer.on(be.SCRIPTDATA_ARRIVED,function(q){J._emitter.emit(et.SCRIPTDATA_ARRIVED,q)}),this._transmuxer.on(be.STATISTICS_INFO,function(q){J._statisticsInfo=J._fillStatisticsInfo(q),J._emitter.emit(et.STATISTICS_INFO,Object.assign({},J._statisticsInfo))}),this._transmuxer.on(be.RECOMMEND_SEEKPOINT,function(q){J._mediaElement&&!J._config.accurateSeek&&(J._requestSetTime=!0,J._mediaElement.currentTime=q/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(J){this._mediaElement.volume=J}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(J){this._mediaElement.muted=J}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(J){this._mediaElement?this._internalSeek(J):this._pendingSeekTime=J}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(J){if(J.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return J;var q=!0,Z=0,oe=0;if(this._mediaElement.getVideoPlaybackQuality){var Oe=this._mediaElement.getVideoPlaybackQuality();Z=Oe.totalVideoFrames,oe=Oe.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Z=this._mediaElement.webkitDecodedFrameCount,oe=this._mediaElement.webkitDroppedFrameCount):q=!1;return q&&(J.decodedFrames=Z,J.droppedFrames=oe),J}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var J=this._mediaElement.buffered,q=this._mediaElement.currentTime,Z=0,oe=0,Oe=0;Oe=q+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(p.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){p.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var J=this._mediaElement.currentTime,q=this._mediaElement.buffered,Z=!1,oe=0;oe=Oe&&J=Re-this._config.lazyLoadRecoverDuration&&(Z=!0);break}}Z&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Z&&(p.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(J){for(var q=this._mediaElement.buffered,Z=0;Z=oe&&J0){var Oe=this._mediaElement.buffered.start(0);(Oe<1&&J0&&q.currentTime0){var oe=Z.start(0);if(oe<1&&q0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(J){this._mediaElement.volume=J}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(J){this._mediaElement.muted=J}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(J){this._mediaElement?this._mediaElement.currentTime=J:this._pendingSeekTime=J}},{key:"mediaInfo",get:function(){var J=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",q={mimeType:J+this._mediaDataSource.type};return this._mediaElement&&(q.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(q.width=this._mediaElement.videoWidth,q.height=this._mediaElement.videoHeight)),q}},{key:"statisticsInfo",get:function(){var J={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return J;var q=!0,Z=0,oe=0;if(this._mediaElement.getVideoPlaybackQuality){var Oe=this._mediaElement.getVideoPlaybackQuality();Z=Oe.totalVideoFrames,oe=Oe.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Z=this._mediaElement.webkitDecodedFrameCount,oe=this._mediaElement.webkitDroppedFrameCount):q=!1;return q&&(J.decodedFrames=Z,J.droppedFrames=oe),J}},{key:"_onvLoadedMetadata",value:function(J){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(et.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(et.STATISTICS_INFO,this.statisticsInfo)}}]),Pe}(),qn=Gn;B.install();function Mt(Pe,ye){var J=Pe;if(J==null||typeof J!="object")throw new c("MediaDataSource must be an javascript object!");if(!J.hasOwnProperty("type"))throw new c("MediaDataSource must has type field to indicate video file type!");switch(J.type){case"flv":return new qt(J,ye);default:return new qn(J,ye)}}function Nn(){return Se.supportMSEH264Playback()}function Bn(){return Se.getFeatureList()}var na={};na.createPlayer=Mt,na.isSupported=Nn,na.getFeatureList=Bn,na.BaseLoader=l,na.LoaderStatus=i,na.LoaderErrors=t,na.Events=et,na.ErrorTypes=ze,na.ErrorDetails=ct,na.FlvPlayer=qt,na.NativePlayer=qn,na.LoggingControl=me,Object.defineProperty(na,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ea=re.a=na},Gev7:function(Ge,re,y){var Q=y("bYtY"),W=y("K2GJ"),k=y("1bdT"),B=y("ni6a");function O(M){M=M||{},k.call(this,M);for(var p in M)M.hasOwnProperty(p)&&p!=="style"&&(this[p]=M[p]);this.style=new W(M.style,this),this._rect=null,this.__clipPaths=null}O.prototype={constructor:O,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(M){},afterBrush:function(M){},brush:function(M,p){},getBoundingRect:function(){},contain:function(M,p){return this.rectContain(M,p)},traverse:function(M,p){M.call(p,this)},rectContain:function(M,p){var a=this.transformCoordToLocal(M,p),b=this.getBoundingRect();return b.contain(a[0],a[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(M){return this.animate("style",M)},attrKV:function(M,p){M!=="style"?k.prototype.attrKV.call(this,M,p):this.style.set(p)},setStyle:function(M,p){return this.style.set(M,p),this.dirty(!1),this},useStyle:function(M){return this.style=new W(M,this),this.dirty(!1),this},calculateTextPosition:null},Q.inherits(O,k),Q.mixin(O,B);var R=O;Ge.exports=R},GfqC:function(Ge,re,y){"use strict";var Q=y("q1tI"),W=y.n(Q),k=y("TSYQ"),B=y.n(k);function O(H,N){var A="cannot "+H.method+" "+H.action+" "+N.status+"'",G=new Error(A);return G.status=N.status,G.method=H.method,G.url=H.action,G}function R(H){var N=H.responseText||H.response;if(!N)return N;try{return JSON.parse(N)}catch(A){return N}}function M(H){var N=new XMLHttpRequest;H.onProgress&&N.upload&&(N.upload.onprogress=function($){$.total>0&&($.percent=$.loaded/$.total*100),H.onProgress($)});var A=new FormData;H.data&&Object.keys(H.data).forEach(function(K){var $=H.data[K];if(Array.isArray($)){$.forEach(function(ie){A.append(K+"[]",ie)});return}A.append(K,H.data[K])}),H.file instanceof Blob?A.append(H.filename,H.file,H.file.name):A.append(H.filename,H.file),N.onerror=function($){H.onError($)},N.onload=function(){return N.status<200||N.status>=300?H.onError(O(H,N),R(N)):H.onSuccess(R(N),N)},N.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in N&&(N.withCredentials=!0);var G=H.headers||{};return G["X-Requested-With"]!==null&&N.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(G).forEach(function(K){G[K]!==null&&N.setRequestHeader(K,G[K])}),N.send(A),{abort:function(){N.abort()}}}var p=+new Date,a=0;function b(){return"rc-upload-"+p+"-"+ ++a}function u(H,N){return H.indexOf(N,H.length-N.length)!==-1}var d=function(H,N){if(H&&N){var A=Array.isArray(N)?N:N.split(","),G=H.name||"",K=H.type||"",$=K.replace(/\/.*$/,"");return A.some(function(ie){var le=ie.trim();return le.charAt(0)==="."?u(G.toLowerCase(),le.toLowerCase()):/\/\*$/.test(le)?$===le.replace(/\/.*$/,""):K===le})}return!0};function m(H,N){var A=H.createReader(),G=[];function K(){A.readEntries(function($){var ie=Array.prototype.slice.apply($);G=G.concat(ie);var le=!ie.length;le?N(G):K()})}K()}var o=function(N,A,G){var K=function $(ie,le){le=le||"",ie.isFile?ie.file(function(de){G(de)&&(ie.fullPath&&!de.webkitRelativePath&&(Object.defineProperties(de,{webkitRelativePath:{writable:!0}}),de.webkitRelativePath=ie.fullPath.replace(/^\//,""),Object.defineProperties(de,{webkitRelativePath:{writable:!1}})),A([de]))}):ie.isDirectory&&m(ie,function(de){de.forEach(function(Se){$(Se,""+le+ie.name+"/")})})};N.forEach(function($){K($.webkitGetAsEntry())})},c=o,f=Object.assign||function(H){for(var N=1;N=0)continue;if(!Object.prototype.hasOwnProperty.call(H,G))continue;A[G]=H[G]}return A}function w(H,N){if(!(H instanceof N))throw new TypeError("Cannot call a class as a function")}function D(H,N){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:H}function C(H,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);H.prototype=Object.create(N&&N.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(H,N):H.__proto__=N)}var v=function(N){return Object.keys(N).reduce(function(A,G){return(G.substr(0,5)==="data-"||G.substr(0,5)==="aria-"||G==="role")&&(A[G]=N[G]),A},{})},n=function(H){C(N,H);function N(){var A,G,K,$;w(this,N);for(var ie=arguments.length,le=Array(ie),de=0;de3&&(p=y.call(p,1));for(var b=R.length,u=0;u4&&(p=y.call(p,1,p.length-1));for(var b=p[p.length-1],u=R.length,d=0;dthis._ux||i(D-this._yi)>this._uy||this._len<5;return this.addData(M.L,w,D),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(w,D):this._ctx.lineTo(w,D)),C&&(this._xi=w,this._yi=D),this},bezierCurveTo:function(w,D,C,v,n,_){return this.addData(M.C,w,D,C,v,n,_),this._ctx&&(this._needsDash()?this._dashedBezierTo(w,D,C,v,n,_):this._ctx.bezierCurveTo(w,D,C,v,n,_)),this._xi=n,this._yi=_,this},quadraticCurveTo:function(w,D,C,v){return this.addData(M.Q,w,D,C,v),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(w,D,C,v):this._ctx.quadraticCurveTo(w,D,C,v)),this._xi=C,this._yi=v,this},arc:function(w,D,C,v,n,_){return this.addData(M.A,w,D,C,C,v,n-v,0,_?0:1),this._ctx&&this._ctx.arc(w,D,C,v,n,_),this._xi=o(n)*C+w,this._yi=c(n)*C+D,this},arcTo:function(w,D,C,v,n){return this._ctx&&this._ctx.arcTo(w,D,C,v,n),this},rect:function(w,D,C,v){return this._ctx&&this._ctx.rect(w,D,C,v),this.addData(M.R,w,D,C,v),this},closePath:function(){this.addData(M.Z);var w=this._ctx,D=this._x0,C=this._y0;return w&&(this._needsDash()&&this._dashedLineTo(D,C),w.closePath()),this._xi=D,this._yi=C,this},fill:function(w){w&&w.fill(),this.toStatic()},stroke:function(w){w&&w.stroke(),this.toStatic()},setLineDash:function(w){if(w instanceof Array){this._lineDash=w,this._dashIdx=0;for(var D=0,C=0;CD.length&&(this._expandData(),D=this.data);for(var C=0;C0&&E<=w||x<0&&E>=w||x===0&&(T>0&&U<=D||T<0&&U>=D);){if(H=this._dashIdx,F=n[H],E+=x*F,U+=T*F,this._dashIdx=(H+1)%P,x>0&&Eh||T>0&&Ug)continue;_[H%2?"moveTo":"lineTo"](x>=0?d(E,w):m(E,w),T>=0?d(U,D):m(U,D))}x=E-w,T=U-D,this._dashOffset=-f(x*x+T*T)},_dashedBezierTo:function(w,D,C,v,n,_){var h=this._dashSum,g=this._dashOffset,x=this._lineDash,T=this._ctx,S=this._xi,E=this._yi,U,F,P,H=Q.cubicAt,N=0,A=this._dashIdx,G=x.length,K,$,ie=0;for(g<0&&(g=h+g),g%=h,U=0;U<1;U+=.1)F=H(S,w,C,n,U+.1)-H(S,w,C,n,U),P=H(E,D,v,_,U+.1)-H(E,D,v,_,U),N+=f(F*F+P*P);for(;Ag);A++);for(U=(ie-g)/N;U<=1;)K=H(S,w,C,n,U),$=H(E,D,v,_,U),A%2?T.moveTo(K,$):T.lineTo(K,$),U+=x[A]/N,A=(A+1)%G;A%2!==0&&T.lineTo(n,_),F=n-K,P=_-$,this._dashOffset=-f(F*F+P*P)},_dashedQuadraticTo:function(w,D,C,v){var n=C,_=v;C=(C+2*w)/3,v=(v+2*D)/3,w=(this._xi+2*w)/3,D=(this._yi+2*D)/3,this._dashedBezierTo(w,D,C,v,n,_)},toStatic:function(){var w=this.data;w instanceof Array&&(w.length=this._len,t&&(this.data=new Float32Array(w)))},getBoundingRect:function(){p[0]=p[1]=b[0]=b[1]=Number.MAX_VALUE,a[0]=a[1]=u[0]=u[1]=-Number.MAX_VALUE;for(var w=this.data,D=0,C=0,v=0,n=0,_=0;_x||i(g-_)>T||E===S-1)&&(w.lineTo(h,g),n=h,_=g);break;case M.C:w.bezierCurveTo(D[E++],D[E++],D[E++],D[E++],D[E++],D[E++]),n=D[E-2],_=D[E-1];break;case M.Q:w.quadraticCurveTo(D[E++],D[E++],D[E++],D[E++]),n=D[E-2],_=D[E-1];break;case M.A:var F=D[E++],P=D[E++],H=D[E++],N=D[E++],A=D[E++],G=D[E++],K=D[E++],$=D[E++],ie=H>N?H:N,le=H>N?1:H/N,de=H>N?N/H:1,Se=Math.abs(H-N)>.001,He=A+G;Se?(w.translate(F,P),w.rotate(K),w.scale(le,de),w.arc(0,0,ie,A,He,1-$),w.scale(1/le,1/de),w.rotate(-K),w.translate(-F,-P)):w.arc(F,P,ie,A,He,1-$),E===1&&(C=o(A)*H+F,v=c(A)*N+P),n=o(He)*H+F,_=c(He)*N+P;break;case M.R:C=n=D[E],v=_=D[E+1],w.rect(D[E++],D[E++],D[E++],D[E++]);break;case M.Z:w.closePath(),n=C,_=v}}}},l.CMD=M;var s=l;Ge.exports=s},ItGF:function(Ge,re){var y={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?y={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?y={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?y={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:y=W(navigator.userAgent);var Q=y;function W(k){var B={},O={},R=k.match(/Firefox\/([\d.]+)/),M=k.match(/MSIE\s([\d.]+)/)||k.match(/Trident\/.+?rv:(([\d.]+))/),p=k.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(k);return R&&(O.firefox=!0,O.version=R[1]),M&&(O.ie=!0,O.version=M[1]),p&&(O.edge=!0,O.version=p[1]),a&&(O.weChat=!0),{browser:O,os:B,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!O.ie&&!O.edge,pointerEventsSupported:"onpointerdown"in window&&(O.edge||O.ie&&O.version>=11),domSupported:typeof document!="undefined"}}Ge.exports=Q},JNOM:function(Ge,re,y){"use strict";y.r(re);var Q=y("g9YV"),W=y("wCAj"),k=y("Znn+"),B=y("ZTPi"),O=y("qVdP"),R=y("jsC+"),M=y("+L6B"),p=y("2/Rp"),a=y("sPJy"),b=y("bE4q"),u=y("miYZ"),d=y("tsqr"),m=y("lUTK"),o=y("BvKs"),c=y("9og8"),f=y("2qtc"),i=y("kLXV"),t=y("oBTY"),l=y("k1fw"),s=y("tJVT"),w=y("PpiC"),D=y("WmNS"),C=y.n(D),v=y("q1tI"),n=y.n(v),_=y("ErOA"),h=y("Ty5D"),g=y("55Ip"),x=y("9kvl"),T=y("jhfD"),S=y("Llu2"),E=y("0NbB"),U=y("V0Rq"),F=y("1vsH"),P=y("mgmH"),H=y("7Kak"),N=y("9yH6"),A=y("DjyN"),G=y("NUBc"),K=y("giR+"),$=y("fyUT"),ie=y("5NDa"),le=y("5rEg"),de=y("sRBo"),Se=y("kaz8"),He=y("BoS7"),et=y("Sdc0"),je=y("14J3"),me=y("BMrR"),fe=y("jCWc"),Ae=y("kPKH"),he=y("5Dmo"),Ue=y("3S7+"),st=y("jrin"),Ve=y("y8nQ"),dt=y("Vl3Y"),Qe=y("wd/R"),pe=y.n(Qe),xe=function(Wt){var Rn=Wt.shixunHomeworks,Ra=Wt.dispatch,la=Object(h.i)();return n.a.createElement(i.a,{centered:!0,title:"\u63D0\u793A",visible:Rn.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(c.a)(C.a.mark(function Mn(){var Ca;return C.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:return ma.next=2,Object(_.a)("/api/myshixuns/".concat(Rn.actionTabs.selectArrs.myshixun_identifier,"/reset_my_game.json"),{method:"post",body:{course_id:la.coursesId}});case 2:Ca=ma.sent,Ca.status===0&&(d.b.success("\u5220\u9664\u6210\u529F"),Ra({type:"shixunHomeworks/setActionTabs",payload:{}}),Ra({type:"shixunHomeworks/getWorkList",payload:Object(l.a)({},Rn.actionTabs.params)}));case 4:case"end":return ma.stop()}},Mn)})),onCancel:function(){Ra({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),n.a.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))},Le=Object(x.a)(function(Ln){var Wt=Ln.shixunHomeworks;return{shixunHomeworks:Wt}})(xe),Ye=function(Wt){var Rn,Ra,la,Mn,Ca,Dn,ma,ga,ja=Wt.exercise,Xa=Wt.dispatch,Cn=Object(h.i)(),nr=Object(v.useState)(!0),$e=Object(s.a)(nr,2),pt=$e[0],_t=$e[1],Xe=dt.a.useForm(),Ee=Object(s.a)(Xe,1),Be=Ee[0],Ce=ja.actionTabs;Object(v.useEffect)(function(){if(ja.actionTabs.key==="\u66F4\u6539\u8BC4\u9605"){var Ke,St,it,Pt;Be.resetFields(),Be.setFieldsValue({subjective_score:Ce==null||((Ke=Ce.selectArrs)===null||Ke===void 0||((St=Ke.record)===null||St===void 0))?void 0:St.subjective_score,objective_score:Ce==null||((it=Ce.selectArrs)===null||it===void 0||((Pt=it.record)===null||Pt===void 0))?void 0:Pt.objective_score})}},[ja.actionTabs.key]);var Ze=function(){Xa({type:"exercise/setActionTabs",payload:{}})};return n.a.createElement(n.a.Fragment,null,n.a.createElement(i.a,{centered:!0,title:"\u8BC4\u9605",visible:ja.actionTabs.key==="\u66F4\u6539\u8BC4\u9605",onCancel:Ze,footer:n.a.createElement(me.a,{align:"middle",justify:"end"},n.a.createElement(p.a,{onClick:function(){var St,it;return Object(F.S)("/classrooms/".concat(Cn.coursesId,"/exercise/").concat(Cn.categoryId,"/review/").concat(Ce==null||((St=Ce.selectArrs)===null||St===void 0||((it=St.record)===null||it===void 0))?void 0:it.login))}},"\u67E5\u770B\u8BE6\u60C5"),n.a.createElement(p.a,{className:"ml10",onClick:Ze}," ","\u53D6\u6D88"),n.a.createElement(p.a,{className:"ml10",onClick:Object(c.a)(C.a.mark(function Ke(){var St,it,Pt,an;return C.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,Be.validateFields();case 2:return Pt=Be.getFieldValue(),bt.next=5,Object(U.P)(Object(l.a)(Object(l.a)({},Pt),{},{id:Cn.categoryId,user_id:Ce==null||((St=Ce.selectArrs)===null||St===void 0||((it=St.record)===null||it===void 0))?void 0:it.user_id}));case 5:an=bt.sent,an.status===0&&(d.b.success("\u8BC4\u9605\u6210\u529F"),Be.resetFields(),Xa({type:"exercise/setActionTabs",payload:{}}),Xa({type:"exercise/getExerciseList",payload:Object(l.a)({},ja.actionTabs.params)}));case 7:case"end":return bt.stop()}},Ke)})),type:"primary"}," ","\u786E\u8BA4"))},n.a.createElement("div",{className:"pl30"},n.a.createElement(dt.a,{form:Be},n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement(dt.a.Item,{name:"subjective_score",label:"\u4E3B\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement($.a,{min:0,max:(Ce==null||((Rn=Ce.selectArrs)===null||Rn===void 0||((Ra=Rn.exercise_types)===null||Ra===void 0))?void 0:Ra.subjective_score)*1,style:{width:150},placeholder:"\u8BF7\u586B\u5199\u4E3B\u89C2\u9898\u6210\u7EE9"}))),n.a.createElement(Ae.a,{flex:1},n.a.createElement("div",null,n.a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",Ce==null||((la=Ce.selectArrs)===null||la===void 0||((Mn=la.exercise_types)===null||Mn===void 0))?void 0:Mn.subjective_score,"\u5206")))),n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement(dt.a.Item,{name:"objective_score",label:"\u5BA2\u89C2\u9898\u6210\u7EE9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement($.a,{min:0,max:(Ce==null||((Ca=Ce.selectArrs)===null||Ca===void 0||((Dn=Ca.exercise_types)===null||Dn===void 0))?void 0:Dn.objective_score)*1,style:{width:150},width:150,placeholder:"\u8BF7\u586B\u5199\u5BA2\u89C2\u9898\u6210\u7EE9"}))),n.a.createElement(Ae.a,{flex:1},n.a.createElement("div",null,n.a.createElement("span",{className:"ml10"},"\u5206\uFF0C\u603B\u5171\uFF1A",Ce==null||((ma=Ce.selectArrs)===null||ma===void 0||((ga=ma.exercise_types)===null||ga===void 0))?void 0:ga.objective_score,"\u5206"))))))))},gt=Object(x.a)(function(Ln){var Wt=Ln.exercise;return{exercise:Wt}})(Ye),Ct=[{name:"\u672A\u8BC4\u9605",id:0,type:"unreview_counts"},{name:"\u8BC4\u9605\u4E2D",id:2,type:"reviewing_counts"},{name:"\u5DF2\u8BC4\u9605",id:1,type:"review_counts"}],tn=[{name:"\u672A\u5F00\u59CB",id:0,type:"unanswer_users"},{name:"\u8003\u8BD5\u4E2D",id:1,type:"answering_users"},{name:"\u5DF2\u4EA4\u5377",id:2,type:"answer_users"},{name:"\u5DF2\u4EA4\u5377/\u672A\u7B54",id:3,type:"commit_with_no_answers_users"}],Zt=[{name:"\u65E0\u9700\u8865\u8003",id:0,type:"unmake_up_users_count"},{name:"\u53C2\u52A0\u8865\u8003",id:1,type:"make_up_users_count"}],Hn=y("BdwD"),ia=y("iQDF"),vt=y("+eQT"),mt=function(Wt){var Rn,Ra,la=Wt.exercise,Mn=Wt.dispatch,Ca=Object(h.i)(),Dn=Object(v.useState)(!0),ma=Object(s.a)(Dn,2),ga=ma[0],ja=ma[1],Xa=dt.a.useForm(),Cn=Object(s.a)(Xa,1),nr=Cn[0],$e=Object(v.useState)(!1),pt=Object(s.a)($e,2),_t=pt[0],Xe=pt[1],Ee=Object(v.useState)({}),Be=Object(s.a)(Ee,2),Ce=Be[0],Ze=Be[1],Ke=la.actionTabs;Object(v.useEffect)(function(){if(la.actionTabs.key==="\u5EF6\u65F6"){var an,gn,bt,Qn;Xe(!1),nr.resetFields(),nr.setFieldsValue({subjective_score:Ke==null||((an=Ke.selectArrs)===null||an===void 0||((gn=an.record)===null||gn===void 0))?void 0:gn.subjective_score,objective_score:Ke==null||((bt=Ke.selectArrs)===null||bt===void 0||((Qn=bt.record)===null||Qn===void 0))?void 0:Qn.objective_score})}},[la.actionTabs.key]);var St=function(gn){var bt,Qn;return console.log("current:",gn,pe()(Ke==null||((bt=Ke.selectArrs)===null||bt===void 0)?void 0:bt.exercise_end_at).startOf("minute")),gn&&(gn>pe()(Ke==null||((Qn=Ke.selectArrs)===null||Qn===void 0)?void 0:Qn.exercise_end_at).endOf("minute")||gn<=pe()().startOf("day"))};function it(an,gn){for(var bt=[],Qn=an;Qnpe()(Ke==null||((Qn=Ke.selectArrs)===null||Qn===void 0)?void 0:Qn.exercise_end_at)){var wa;nr.setFieldsValue({time:pe()(Ke==null||((wa=Ke.selectArrs)===null||wa===void 0)?void 0:wa.exercise_end_at).format("YYYY-MM-DD HH:mm")})}}})))),n.a.createElement(me.a,{style:{marginLeft:78,marginTop:4}},n.a.createElement(dt.a.Item,{name:"is_clear",className:"ml10",initialValue:!1,valuePropName:"checked"},n.a.createElement(Se.a,null,"\u786E\u8BA4\u6E05\u9664\u8BE5\u5B66\u751F\u7684\u5DF2\u5207\u5C4F\u6B21\u6570")))))))},on=Object(x.a)(function(Ln){var Wt=Ln.exercise;return{exercise:Wt}})(mt),hn=y("kaH+"),Ot=y("dhSg"),Xt=function(Wt){var Rn=Wt.shixunHomeworks,Ra=Wt.dispatch,la=Object(w.a)(Wt,["shixunHomeworks","dispatch"]),Mn=Object(h.i)(),Ca=Object(v.useState)([]),Dn=Object(s.a)(Ca,2),ma=Dn[0],ga=Dn[1],ja=Object(v.useState)([]),Xa=Object(s.a)(ja,2),Cn=Xa[0],nr=Xa[1];Object(v.useEffect)(function(){Rn.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B"&&$e()},[Rn.actionTabs.key]);function $e(){return pt.apply(this,arguments)}function pt(){return pt=Object(c.a)(C.a.mark(function Xe(){var Ee;return C.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,Object(_.a)("/api/exercises/".concat(Mn.categoryId,"/group_list.json"),{method:"GET"});case 2:Ee=Ce.sent,ga(Ee);case 4:case"end":return Ce.stop()}},Xe)})),pt.apply(this,arguments)}var _t=[{title:"\u5206\u73ED\u60C5\u51B5",dataIndex:"name"},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u68C0\u6D4B\u8FDB\u5EA6",dataIndex:"status"},{title:"\u4E0A\u6B21\u8BC4\u5206\u65F6\u95F4",dataIndex:"last_analysis_time"}];return n.a.createElement(n.a.Fragment,null,n.a.createElement(i.a,{centered:!0,title:"\u4EE3\u7801\u8D28\u91CF\u8BC4\u5206",visible:Rn.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B",width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(c.a)(C.a.mark(function Xe(){var Ee;return C.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,Object(_.a)("/api/exercises/".concat(Mn.categoryId,"/code_quality_analysis.json"),{method:"POST",body:{group_ids:Cn}});case 2:Ee=Ce.sent,(Ee==null?void 0:Ee.status)===0&&(x.d.replace("/classrooms/".concat(Mn.coursesId,"/exercise/").concat(Mn.categoryId,"/detail?tabs=7")),window.location.reload(),Ra({type:"shixunHomeworks/setActionTabs",payload:{}}),nr([]));case 4:case"end":return Ce.stop()}},Xe)})),onCancel:function(){nr([]),Ra({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement(W.a,{rowSelection:{type:"checkbox",onChange:function(Ee,Be){nr(Object(t.a)(Ee))},selectedRowKeys:Cn,getCheckboxProps:function(Ee){return{disabled:Ee.status==="\u8FDB\u884C\u4E2D"||Ee.works_count===0}}},rowKey:function(Ee){return Ee.key||Ee.id},scroll:{y:300},pagination:!1,columns:_t,dataSource:ma==null?void 0:ma.group_list})))},ht=Object(x.a)(function(Ln){var Wt=Ln.shixunHomeworks;return{shixunHomeworks:Wt}})(Xt),Je=y("xKgJ"),rt=y("hjlX"),Te=y.n(rt),Me=function(Wt){var Rn=Wt.item,Ra=Wt.renderText,la=Object(h.i)(),Mn=Object(v.useState)(),Ca=Object(s.a)(Mn,2),Dn=Ca[0],ma=Ca[1],ga=function(){var ja=Object(c.a)(C.a.mark(function Xa(Cn){var nr;return C.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(Cn){pt.next=2;break}return pt.abrupt("return");case 2:return pt.next=4,Object(U.C)({id:la.categoryId,user_id:Rn==null?void 0:Rn.user_id});case 4:nr=pt.sent,nr&&ma(nr);case 6:case"end":return pt.stop()}},Xa)}));return function(Cn){return ja.apply(this,arguments)}}();return n.a.createElement(Ue.a,{onVisibleChange:function(Xa){return ga(Xa)},title:n.a.createElement("div",null,"\u5355\u9009\u9898 ",Dn==null?void 0:Dn.single_question_score,"\u5206 ",n.a.createElement("br",null),"\u591A\u9009\u9898 ",Dn==null?void 0:Dn.multiple_question_score,"\u5206 ",n.a.createElement("br",null),"\u5224\u65AD\u9898 ",Dn==null?void 0:Dn.judgement_question_score,"\u5206 ",n.a.createElement("br",null),"\u586B\u7A7A\u9898 ",Dn==null?void 0:Dn.completion_question_score,"\u5206 ",n.a.createElement("br",null),"\u5B9E\u8BAD\u9898 ",Dn==null?void 0:Dn.shixun_question_score,"\u5206")},Ra)},Ie=Me,be=function(Wt){var Rn,Ra,la,Mn,Ca,Dn,ma,ga,ja,Xa,Cn,nr,$e,pt,_t,Xe,Ee,Be,Ce,Ze,Ke,St,it,Pt,an,gn,bt,Qn,wa,tr,Ya,ar,Ar,hr,sr,va,_a=Wt.exercise,ur=Wt.loading,Ba=Wt.dispatch,oa=Wt.globalSetting,Ua=Wt.checkDomainAuthority,Er=Wt.getparams,Ka=Object(w.a)(Wt,["exercise","loading","dispatch","globalSetting","checkDomainAuthority","getparams"]),yt=Object(h.h)(),qa=Object(h.i)(),Lr=Object(v.useState)(Object(l.a)({},qa)),_r=Object(s.a)(Lr,2),Tt=_r[0],pr=_r[1],Yn=_a.exerciseList,vr=_a.commonHeader,wr=Object(v.useState)({}),Xr=Object(s.a)(wr,2),ai=Xr[0],$r=Xr[1],ei=Object(v.useState)(""),Or=Object(s.a)(ei,2),za=Or[0],La=Or[1],sa=Object(v.useState)(0),In=Object(s.a)(sa,2),cr=In[0],dr=In[1],ka=Object(v.useState)({}),kr=Object(s.a)(ka,2),Yr=kr[0],jr=kr[1],rr=Object(v.useState)(!1),Rr=Object(s.a)(rr,2),ti=Rr[0],ri=Rr[1],hi=Object(v.useState)("alert"),pi=Object(s.a)(hi,2),mi=pi[0],Ei=pi[1],ao=Object(v.useState)(0),_o=Object(s.a)(ao,2),So=_o[0],$i=_o[1],eo=Object(v.useState)(!1),ro=Object(s.a)(eo,2),io=ro[0],Yi=ro[1],bo=Object(v.useState)(!1),co=Object(s.a)(bo,2),oo=co[0],zi=co[1],Xi=dt.a.useForm(),gi=Object(s.a)(Xi,1),yi=gi[0],Br=Object(v.useState)([]),Nr=Object(s.a)(Br,2),Fr=Nr[0],ii=Nr[1],ui=Object(v.useState)(!0),Ai=Object(s.a)(ui,2),fi=Ai[0],Qi=Ai[1],Eo=Object(v.useRef)(),Po=Object(v.useState)(1),fo=Object(s.a)(Po,2),Mi=fo[0],ho=fo[1],Io=Object(v.useState)(""),Oo=Object(s.a)(Io,2),Di=Oo[0],si=Oo[1],Oi=Object(v.useState)(),vi=Object(s.a)(Oi,2),Ri=vi[0],Ro=vi[1],Wi=Object(v.useState)(!1),To=Object(s.a)(Wi,2),Do=To[0],po=To[1];Object(v.useEffect)(function(){var $a;if(Object(Je.c)()){var Da;dr((Da=Yn.exercise_types)===null||Da===void 0?void 0:Da.total_users)}else if(Yn!=null&&($a=Yn.exercise_types)!==null&&$a!==void 0&&$a.score_open){var Pa;dr((Pa=Yn.exercise_types)===null||Pa===void 0?void 0:Pa.unanswer_users)}},[Yn]),Object(v.useEffect)(function(){var $a,Da={};if(yt!=null&&($a=yt.query)!==null&&$a!==void 0&&$a.exercise_group_id){var Pa;if(Da={review:[0,2],commit_status:[2,3]},(yt==null||((Pa=yt.query)===null||Pa===void 0)?void 0:Pa.exercise_group_id)!=="0"){var Pr;Da.exercise_group_id=[Number(yt==null||((Pr=yt.query)===null||Pr===void 0)?void 0:Pr.exercise_group_id)]}yi.setFieldsValue(Object(l.a)({},Da))}Tt=Object(l.a)(Object(l.a)({},Tt),Da),pr(Object(l.a)({},Tt)),Ba({type:"exercise/getExerciseList",payload:Tt}),Ba({type:"exercise/clearData",payload:{key:"reviewExercise"}})},[]);function so($a){return yo.apply(this,arguments)}function yo(){return yo=Object(c.a)(C.a.mark(function $a(Da){var Pa,Pr,li,wi,oi;return C.a.wrap(function(Pi){for(;;)switch(Pi.prev=Pi.next){case 0:return Ro(Da==null?void 0:Da.exercise_user_id),po(Da.commit_status===2||Da.commit_status===3),Yi(!0),Pi.next=5,Object(_.a)("/api/exercises/".concat(Tt.categoryId,"/student_info.json"),{method:"get",params:{exercise_user_id:Da==null?void 0:Da.exercise_user_id}});case 5:oi=Pi.sent,(oi==null||((Pa=oi.data)===null||Pa===void 0||((Pr=Pa.exercise_user_photos)===null||Pr===void 0))?void 0:Pr.length)>0?ri(!0):d.b.info("\u5F53\u524D\u6682\u65E0\u7167\u7247"),ii(oi==null||((li=oi.data)===null||li===void 0)?void 0:li.exercise_user_photos),$i(oi==null||((wi=oi.data)===null||wi===void 0)?void 0:wi.alert_count),Yi(!1);case 10:case"end":return Pi.stop()}},$a)})),yo.apply(this,arguments)}var Ao=function(Da){Tt.page=1;var Pa=Object.assign({},yi.getFieldValue());if(Object.keys(Pa).map(function(Pr){if(Pr==="objective_score_gte"||Pr==="objective_score_lte")return;Pa[Pr].includes("all")?(delete Tt[Pr],yi.setFieldsValue(Object(st.a)({},Pr,"all"))):(Tt[Pr]=Pa[Pr],Pa[Pr]==""||!Pa[Pr]?yi.setFieldsValue(Object(st.a)({},Pr,"all")):yi.setFieldsValue(Object(st.a)({},Pr,Tt[Pr])))}),Da.objective_score_gte||Da.objective_score_lte){if(Pa.objective_score_gte>Pa.objective_score_lte)return yi.setFieldsValue({objective_score_lte:Pa.objective_score_gte}),!1;if(Pa.objective_score_gte!=""&&Pa.objective_score_lte!=""&&Pa.objective_score_gte&&Pa.objective_score_lte)Tt.objective_score_lte=Pa.objective_score_lte,Tt.objective_score_gte=Pa.objective_score_gte;else return delete Tt.objective_score_lte,delete Tt.objective_score_gte,!1}pr(Object(l.a)({},Tt)),Er(Object(l.a)({},Tt)),Ba({type:"exercise/getExerciseList",payload:Tt})},No=function(Da,Pa){Tt.page=Da,Tt.limit=20,Ba({type:"exercise/getExerciseList",payload:Object(l.a)({},Tt)})},Ui=[{title:"\u5E8F\u53F7",dataIndex:"name",fixed:"left",width:80,align:"center",render:function(Da,Pa,Pr){return n.a.createElement(Ue.a,{title:((Tt.page||1)-1)*20+Pr+1},n.a.createElement("span",null,((Tt.page||1)-1)*20+Pr+1))}},{title:"\u59D3\u540D",dataIndex:"user_name",fixed:"left",width:120,ellipsis:!0,align:"left",render:function(Da,Pa){return n.a.createElement("div",null,Da||"--",!!(Pa!=null&&Pa.delayed_at)&&n.a.createElement(Ue.a,{title:n.a.createElement("div",null,"\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u8C03\u6574\u81F3",n.a.createElement("span",{className:"ml5"},pe()(Pa.delayed_at).format("YYYY-MM-DD HH:mm")))},n.a.createElement("span",{className:"iconfont icon-shizhong c-blue"})))}},!(Yn!=null&&(Rn=Yn.exercise_types)!==null&&Rn!==void 0&&Rn.is_excellent)&&{title:"\u5B66\u53F7",ellipsis:!0,dataIndex:"student_id",width:140,align:"left",sorter:!0,render:function(Da){return Da||"--"}},!(Yn!=null&&(Ra=Yn.exercise_types)!==null&&Ra!==void 0&&Ra.is_excellent)&&(Yn==null||((la=Yn.exercise_types)===null||la===void 0)?void 0:la.groups_count)!==0&&{title:"\u5206\u73ED",width:220,ellipsis:!0,dataIndex:"user_group_name",align:"left",render:function(Da){return Da||"--"}},{title:"\u6700\u7EC8\u6210\u7EE9",width:100,dataIndex:"score",align:"center",sorter:!0,render:function(Da,Pa){return!Pa.open_total_score&&Object(Je.s)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(Da=typeof Da=="number"?Number(Da):Da,Da===100?n.a.createElement("span",{className:"c-green"},Da||"--"):Da>60?n.a.createElement("span",{className:"c-orange"},Da||"--"):n.a.createElement("span",null,Da||"--"))}},!((Yn==null||((Mn=Yn.exercise_types)===null||Mn===void 0)?void 0:Mn.objective)!==1||(Yn==null||((Ca=Yn.exercise_types)===null||Ca===void 0)?void 0:Ca.objective)===1&&(Yn==null||((Dn=Yn.exercise_types)===null||Dn===void 0)?void 0:Dn.subjective)!==1)&&{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",align:"center",width:100,render:function(Da,Pa){if(!Pa.open_total_score&&Object(Je.s)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";Da=typeof Da=="number"?Number(Da):Da;var Pr;return Da>=0&&Da<=60?Pr=n.a.createElement("span",null,Da):Da===100?Pr=n.a.createElement("span",{className:"c-green"},Da):Da>60?Pr=n.a.createElement("span",{className:"c-orange"},Da):Pr="--",n.a.createElement(Ie,{renderText:Pr,item:Pa})}},!((Yn==null||((ma=Yn.exercise_types)===null||ma===void 0)?void 0:ma.subjective)!==1||(Yn==null||((ga=Yn.exercise_types)===null||ga===void 0)?void 0:ga.subjective)===1&&(Yn==null||((ja=Yn.exercise_types)===null||ja===void 0)?void 0:ja.objective)!==1)&&{title:"\u4E3B\u89C2\u9898\u5F97\u5206",width:100,dataIndex:"subjective_score",align:"center",render:function(Da,Pa){if(!Pa.open_total_score&&Object(Je.s)())return"\u8001\u5E08\u5BA1\u6838\u4E2D";Da=typeof Da=="number"?Number(Da):Da;var Pr;return Da===0?Pr=n.a.createElement("span",null,Da," ",n.a.createElement("span",{className:"c-red"}," (\u5F85\u8BC4\u5BA1)")):Da>0&&Da<=60?Pr=n.a.createElement("span",null,Da):Da===100?Pr=n.a.createElement("span",{className:"c-green"},Da):Da>60?Pr=n.a.createElement("span",{className:"c-orange"},Da):Pr="--",Pr}},{title:"\u63D0\u4EA4\u72B6\u6001",dataIndex:"commit_status",width:130,align:"left",render:function(Da,Pa){return Da===0?n.a.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Da===1?n.a.createElement("span",{style:{color:"#DF3042"}},!Pa.is_make_up&&"\u8003\u8BD5\u4E2D",Pa.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Da===2?n.a.createElement("span",{style:{color:"#5AB891"}},!Pa.is_make_up&&"\u5DF2\u4EA4\u5377",Pa.is_make_up&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)"):n.a.createElement("span",{style:{color:"#5AB891"}},!Pa.is_make_up&&"\u5DF2\u4EA4\u5377\uFF08\u672A\u7B54\uFF09",Pa.is_make_up&&"\u5DF2\u4EA4\u5377/\u672A\u7B54\uFF08\u8865\u8003\uFF09")}},{title:"\u5F00\u59CB\u7B54\u9898\u65F6\u95F4",dataIndex:"start_at",width:145,ellipsis:!0,align:"left",sorter:!0,render:function(Da){return Da?pe()(Da).format("YYYY-MM-DD HH:mm"):"--"}},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",width:145,ellipsis:!0,align:"left",sorter:!0,render:function(Da){return Da?pe()(Da).format("YYYY-MM-DD HH:mm"):"--"}},(vr==null?void 0:vr.screen_open)&&{title:n.a.createElement("span",null,"\u5207\u5C4F\u6B21\u6570"," ",n.a.createElement(Ue.a,{title:"\u7EA2\u8272\u4EE3\u8868\u5B66\u751F\u5207\u5C4F\u8D85\u8FC7\u89C4\u5B9A\u6B21\u6570\u88AB\u5F3A\u5236\u4EA4\u5377"},n.a.createElement("span",{className:"icon-xiaowenhao"}))),dataIndex:"screen_used_num",width:145,ellipsis:!0,align:"center",render:function(Da,Pa){return n.a.createElement("span",{className:Da>(Pa==null?void 0:Pa.screen_total_num)&&"c-red"},Da,"/",Pa==null?void 0:Pa.screen_total_num)}},(vr==null?void 0:vr.exercise_status)>1&&(vr==null?void 0:vr.open_camera)&&Object(Je.c)()&&!((Xa=oa.setting)!==null&&Xa!==void 0&&Xa.is_local)&&{title:"\u8003\u8BD5\u7167\u7247",dataIndex:"photo_count",align:"center",width:100,render:function(Da,Pa){return Pa.commit_status>0?n.a.createElement("a",{onClick:function(){so(Pa)}},"".concat(Da||0,"/").concat(vr==null?void 0:vr.photo_count)):"--"}},(vr==null?void 0:vr.ip_bind)&&Object(Je.d)()&&{title:"\u8003\u8BD5IP",dataIndex:"last_ip",align:"center",width:100,render:function(Da,Pa){return n.a.createElement(n.a.Fragment,null,Da||"--",Pa.commit_status<=1&&vr.ip_bind&&Pa.last_ip&&n.a.createElement(p.a,{type:"link",onClick:Object(c.a)(C.a.mark(function Pr(){var li;return C.a.wrap(function(oi){for(;;)switch(oi.prev=oi.next){case 0:li=i.a.confirm({title:n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"1"},"\u89E3\u9664\u7ED1\u5B9A"),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:function(){return li.destroy()}}))),width:500,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",className:"custom-modal-divider",content:n.a.createElement("div",null,"\u4E3A\u5B66\u751F\u89E3\u9664\u8003\u8BD5IP\u7ED1\u5B9A\u540E\uFF0C\u5B66\u751F\u53EF\u4EE5\u4F7F\u7528\u65B0\u7684IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002",n.a.createElement("span",{className:"c-red"},"\u5982\u679C\u8BE5\u5B66\u751F\u6B63\u5728\u8003\u8BD5\u4E2D\uFF0C\u5C06\u65E0\u6CD5\u4F5C\u7B54\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u5165\u8003\u8BD5\u3002"),"\u60A8\u786E\u5B9A\u8981\u89E3\u9664\u8BE5\u5B66\u751F\u7684\u8003\u8BD5IP\u7ED1\u5B9A\uFF1F"),onOk:function(){var ci=Object(c.a)(C.a.mark(function ki(){var Fi;return C.a.wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:return Jr.next=2,Object(U.bb)({id:Tt.categoryId,exercise_user_id:Pa.exercise_user_id});case 2:Fi=Jr.sent,Fi.status===0&&(d.b.success("\u89E3\u7ED1\u6210\u529F"),Ba({type:"exercise/getExerciseList",payload:Tt}));case 4:case"end":return Jr.stop()}},ki)}));function Pi(){return ci.apply(this,arguments)}return Pi}()});case 1:case"end":return oi.stop()}},Pr)}))},"\u89E3\u7ED1"))}},(vr==null?void 0:vr.open_camera)&&Object(Je.d)()&&vr.exercise_status<3&&!((Cn=oa.setting)!==null&&Cn!==void 0&&Cn.is_local)&&{title:"\u5141\u8BB8\u4E0D\u62CD\u6444",dataIndex:"close_camera",align:"center",width:100,render:function(Da,Pa){return n.a.createElement(et.a,{checked:Da,onClick:Object(c.a)(C.a.mark(function Pr(){return C.a.wrap(function(wi){for(;;)switch(wi.prev=wi.next){case 0:Da?i.a.info({title:"\u63D0\u793A",content:n.a.createElement("div",null,"\u4E0D\u5141\u8BB8\u4FEE\u6539"),okText:"\u786E\u8BA4"}):i.a.confirm({title:"\u5141\u8BB8\u4E0D\u6444\u50CF\u8B66\u544A",content:n.a.createElement("div",null,"\u4E3A\u4FDD\u8BC1\u8003\u8BD5\u516C\u5E73\uFF0C\u672C\u6B21\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7684\u6444\u50CF\u5934\u3002\u5982\u5B66\u751F\u786C\u4EF6\u8BBE\u65BD\u786E\u6709\u95EE\u9898\uFF0C\u4E3A\u4FDD\u8BC1\u5B66\u751F\u8003\u8BD5\u6743\u5229\uFF0C\u6559\u5E08\u53EF\u4E34\u65F6\u53D6\u6D88\u9650\u5236\uFF0C\u5141\u8BB8\u5B66\u751F\u53C2\u8003\u3002 \u672C\u64CD\u4F5C\u4E0D\u53EF\u64A4\u56DE\uFF0C\u4E0D\u53EF\u4FEE\u6539\u3002 \u60A8\u786E\u8BA4\u540C\u610F\u8BE5\u5B66\u751F\u4E0D\u5F00\u542F\u6444\u50CF\u5934\u53C2\u52A0\u8003\u8BD5\u5417\uFF1F"),onOk:function(){var oi=Object(c.a)(C.a.mark(function Pi(){var ki;return C.a.wrap(function(xi){for(;;)switch(xi.prev=xi.next){case 0:return xi.next=2,Object(U.c)(Object(l.a)(Object(l.a)({},Tt),{},{exercise_user_id:Pa.exercise_user_id}));case 2:ki=xi.sent,(ki==null?void 0:ki.status)===0&&(d.b.success("\u64CD\u4F5C\u6210\u529F"),Ba({type:"exercise/getExerciseList",payload:Object(l.a)({},Tt)}));case 4:case"end":return xi.stop()}},Pi)}));function ci(){return oi.apply(this,arguments)}return ci}()});case 1:case"end":return wi.stop()}},Pr)}))})}},Object(Je.c)()&&{title:"\u8BC4\u9605\u72B6\u6001",width:130,dataIndex:"has_comment",align:"center",render:function(Da,Pa){return!Da&&Pa.review_status?"\u8BC4\u9605\u4E2D":Da?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},((vr==null?void 0:vr.assistant_auth)||Object(Je.c)()||Object(Je.s)())&&Ua&&{title:"\u64CD\u4F5C",fixed:"right",dataInex:"action",align:"center",width:236,render:function(Da,Pa){return n.a.createElement("div",null,Object(Je.c)()&&n.a.createElement(p.a,{ghost:!0,type:"primary",size:"small",disabled:Pa.commit_status<2},n.a.createElement("a",{className:Pa.commit_status>1?"c-blue":"c-black",href:Pa.commit_status>1?"/classrooms/".concat(Tt.coursesId,"/exercise/").concat(Tt.categoryId,"/review/").concat(Pa.login):void 0,onClick:function(li){Pa.commit_status<2&&li.preventDefault(),Pa.commit_status===3&&(li.preventDefault(),Ba({type:"exercise/setActionTabs",payload:{key:"\u66F4\u6539\u8BC4\u9605",selectArrs:{record:Object(l.a)({},Pa),exercise_types:Object(l.a)({},Yn==null?void 0:Yn.exercise_types)},params:Object(l.a)({},Tt)}}))}},Pa.has_comment&&"\u66F4\u6539\u8BC4\u9605",!Pa.has_comment&&"\u8BC4\u9605")),!Object(Je.s)()&&["\u8003\u8BD5\u4E2D"].includes(F.c[vr.exercise_status])&&n.a.createElement(p.a,{ghost:!0,type:"primary",disabled:(Pa==null?void 0:Pa.commit_status)>1,className:"ml10",size:"small",onClick:function(){i.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u5C06\u8BE5\u5B66\u751F\u7684\u8003\u8BD5\u72B6\u6001\u8C03\u6574\u4E3A\u5DF2\u4EA4\u5377\u5417\uFF1F",onOk:function(){i.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u5C06".concat(Pa==null?void 0:Pa.user_name,"\u7684\u8003\u8BD5\u72B6\u6001\u8C03\u6574\u4E3A\u5DF2\u4EA4\u5377\u5417\uFF1F"),onOk:function(){var wi=Object(c.a)(C.a.mark(function ci(){var Pi;return C.a.wrap(function(Fi){for(;;)switch(Fi.prev=Fi.next){case 0:return Fi.next=2,Object(_.a)("/api/exercises/".concat(Tt.categoryId,"/commit_exercise_force.json"),{method:"post",body:{user_id:Pa==null?void 0:Pa.user_id}});case 2:Pi=Fi.sent,Pi.status===0&&Ba({type:"exercise/getExerciseList",payload:Tt});case 4:case"end":return Fi.stop()}},ci)}));function oi(){return wi.apply(this,arguments)}return oi}()})}})}},"\u5F3A\u5236\u4EA4\u5377"),Object(Je.s)()&&Pa.commit_status>1&&n.a.createElement("span",{style:{color:"#0152d9",marginRight:"5px",cursor:"pointer"},onClick:function(){var li;if(!(Yn!=null&&(li=Yn.exercise_types)!==null&&li!==void 0&&li.answered_open)){d.b.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}x.d.push("/classrooms/".concat(Tt.coursesId,"/exercise/").concat(Tt.categoryId,"/users/").concat(Pa==null?void 0:Pa.login,"?check=true"))}},"\u67E5\u770B"),(vr==null?void 0:vr.exercise_time)>0&&Object(Je.d)()&&n.a.createElement(Ue.a,{title:function(){return Object(Je.k)()?"\u60A8\u7684\u6743\u9650\u4E0D\u8DB3\uFF0C\u8BF7\u8054\u7CFB\u672C\u8BFE\u5802\u7BA1\u7406\u5458":vr.exercise_status===3?"\u672C\u8BD5\u5377\u5DF2\u622A\u6B62\uFF0C\u8BF7\u5148\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u4F7F\u672C\u8BD5\u5377\u5904\u4E8E\u201C\u8003\u8BD5\u4E2D\u201D":!1}()},n.a.createElement(p.a,{danger:!0,className:"c-red ml10",size:"small",disabled:function(){return Object(Je.k)()?!0:vr.exercise_status===3}(),onClick:function(){Object(Je.i)()&&Ba({type:"exercise/setActionTabs",payload:{key:"\u5EF6\u65F6",selectArrs:Pa,exercise_time:vr.exercise_time,params:Object(l.a)({},Tt)}})}},"\u5EF6\u65F6")))}}].filter(function($a){return!!$a}),Kr=Object(t.a)(Ui);return Kr[0]=Object(l.a)({},Kr[0]),Kr[(Kr==null?void 0:Kr.length)-1]=Object(l.a)({},Kr[(Kr==null?void 0:Kr.length)-1]),Kr[0].render=function(){return"\u6211"},Kr[(Kr==null?void 0:Kr.length)-1].render=function(){var $a;return Yn!=null&&($a=Yn.current_answer_user)!==null&&$a!==void 0&&$a.login?n.a.createElement("span",{style:{color:"#0152d9",marginRight:"5px",cursor:"pointer"},onClick:function(){var Pa,Pr,li;if(!(Yn!=null&&(Pa=Yn.exercise_types)!==null&&Pa!==void 0&&Pa.answered_open)){d.b.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}var wi="/classrooms/".concat(Tt.coursesId,"/exercise/").concat(Tt.categoryId,"/users/").concat(Yn==null||((Pr=Yn.current_answer_user)===null||Pr===void 0)?void 0:Pr.login);(Yn==null||((li=Yn.current_answer_user)===null||li===void 0)?void 0:li.commit_status)>1&&(wi=wi+"?check=true"),x.d.push(wi)}},"\u67E5\u770B"):"--"},n.a.createElement("section",{className:"minH500 bg-white mb50 inline-block w100"},(Yn==null||((nr=Yn.exercise_types)===null||nr===void 0)?void 0:nr.score_open)&&Object(Je.s)()&&n.a.createElement(W.a,{hideOnSinglePage:!0,pagination:!1,showHeader:!1,dataSource:[Object(l.a)({},Yn==null?void 0:Yn.current_answer_user)],columns:Kr,scroll:{x:(Ui==null?void 0:Ui.length)*120}}),!Object(Je.c)()&&n.a.createElement("div",{className:"bg-white pt10 pl25 mt15"},!!(Yn!=null&&($e=Yn.exercise_types)!==null&&$e!==void 0&&$e.answer_users)&&n.a.createElement("span",{className:"mr10"},n.a.createElement("span",{style:{color:"#FF954C"}},Yn==null||((pt=Yn.exercise_types)===null||pt===void 0)?void 0:pt.answer_users," "),"\u5DF2\u4EA4"),!!(Yn!=null&&(_t=Yn.exercise_types)!==null&&_t!==void 0&&_t.unanswer_users)&&n.a.createElement("span",{className:"mr10"},Yn==null||((Xe=Yn.exercise_types)===null||Xe===void 0)?void 0:Xe.unanswer_users,"\u672A\u4EA4"),(Yn==null||((Ee=Yn.exercise_types)===null||Ee===void 0)?void 0:Ee.exercise_end_time)!=="--"&&n.a.createElement("span",null,"\u5269\u4F59\u63D0\u4EA4\u65F6\u95F4\uFF1A",n.a.createElement("span",{style:{color:"#FF954C"}},Yn==null||((Be=Yn.exercise_types)===null||Be===void 0)?void 0:Be.exercise_end_time))),!((Ce=Yn.exercise_types)!==null&&Ce!==void 0&&Ce.exercise_all_users)&&!Object(Je.s)()&&n.a.createElement(Hn.a,null),(!!((Ze=Yn.exercise_types)!==null&&Ze!==void 0&&Ze.exercise_all_users)||Object(Je.s)())&&n.a.createElement("aside",null,Object(Je.c)()&&n.a.createElement("aside",{className:"pt20"},n.a.createElement(dt.a,{form:yi,onValuesChange:Ao,initialValues:(Ke={},Object(st.a)(Ke,"commit_status","all"),Object(st.a)(Ke,"exercise_group_id","all"),Object(st.a)(Ke,"review","all"),Object(st.a)(Ke,"is_make_up","all"),Ke)},n.a.createElement(dt.a.Item,{name:"exercise_group_id"},n.a.createElement(Se.a.Group,{style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"80px"},"\u9009\u62E9\u73ED\u7EA7:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all",checked:!((St=ai.course_group)!==null&&St!==void 0&&St.length)},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1"},Yn.course_groups&&Yn.course_groups.map(function($a,Da){return n.a.createElement(Se.a,{value:$a.exercise_group_id,className:"ml0 mr8",key:$a.exercise_group_id},$a.exercise_group_name,"(",$a.exercise_group_students,")")}))))),n.a.createElement(dt.a.Item,{name:"commit_status"},n.a.createElement(Se.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"80px"},"\u63D0\u4EA4\u72B6\u6001:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all",checked:!((it=ai.commit_status)!==null&&it!==void 0&&it.length)},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1"},tn.map(function($a,Da){var Pa;return n.a.createElement(Se.a,{name:"commit_status",value:$a.id,key:$a.id},$a.name,"(",Yn==null||((Pa=Yn.exercise_types)===null||Pa===void 0)?void 0:Pa[$a.type],")")}))))),n.a.createElement(dt.a.Item,{name:"review"},n.a.createElement(Se.a.Group,{style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"80px"},"\u8BC4\u9605\u72B6\u6001:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all",checked:!((Pt=ai.review)!==null&&Pt!==void 0&&Pt.length)},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1"},Ct==null?void 0:Ct.map(function($a,Da){var Pa;return n.a.createElement(Se.a,{value:$a.id,key:Da},$a.name,"(",Yn==null||((Pa=Yn.exercise_types)===null||Pa===void 0)?void 0:Pa[$a.type],")")}))))),(Yn==null||((an=Yn.exercise_types)===null||an===void 0)?void 0:an.open_make_up)&&n.a.createElement(dt.a.Item,{name:"is_make_up"},n.a.createElement(Se.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"80px"},"\u8865\u8003\u72B6\u6001:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all",checked:!((gn=ai.is_make_up)!==null&&gn!==void 0&&gn.length)},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1"},Zt.map(function($a,Da){var Pa;return n.a.createElement(Se.a,{name:"is_make_up",value:$a.id},$a.name,"(",Yn==null||((Pa=Yn.exercise_types)===null||Pa===void 0)?void 0:Pa[$a.type],")")}))))),n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,{flex:"1"},n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,null,n.a.createElement(le.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(Da){Tt.search=Da,Ba({type:"exercise/getExerciseList",payload:Object(l.a)(Object(l.a)({},Tt),{},{page:1})})},style:{width:240}})))),!(vr!=null&&vr.is_random)&&n.a.createElement(Ae.a,{className:["tr",Te.a.rightFilter].join(" ")},((bt=Yn.exercise_types)===null||bt===void 0?void 0:bt.objective)===1&&((Qn=Yn.exercise_types)===null||Qn===void 0?void 0:Qn.subjective)===1&&n.a.createElement(n.a.Fragment,null,"\u6309\u5BA2\u89C2\u9898\u5F97\u5206\u5206\u7EC4",n.a.createElement("span",null,n.a.createElement(dt.a.Item,{name:"objective_score_gte"},n.a.createElement($.a,{min:0,max:Yn==null||((wa=Yn.exercise_types)===null||wa===void 0)?void 0:wa.objective_score,placeholder:"\u6700\u4F4E"}))),n.a.createElement("span",null,n.a.createElement(dt.a.Item,{name:"objective_score_lte"},n.a.createElement($.a,{min:((tr=Tt)===null||tr===void 0?void 0:tr.objective_score_gte)||0,max:Yn==null||((Ya=Yn.exercise_types)===null||Ya===void 0)?void 0:Ya.objective_score,placeholder:"\u6700\u9AD8"})))),((ar=Yn.exercise_types)===null||ar===void 0?void 0:ar.subjective)===1&&Ua&&n.a.createElement(n.a.Fragment,null,n.a.createElement(p.a,{style:{marginBottom:15},type:"default",disabled:(Yn==null||((Ar=Yn.total_exercise_users)===null||Ar===void 0)?void 0:Ar.length)<1},n.a.createElement(g.a,{to:"/classrooms/".concat(Tt.coursesId,"/exercise/").concat(Tt.categoryId,"/reviews/group")},n.a.createElement("span",{className:"iconfont icon-tijiaozongjie"}),n.a.createElement("span",null,"\u96C6\u4E2D\u6279\u91CF\u6279\u9605"))),n.a.createElement(p.a,{style:{marginBottom:15},type:"default",disabled:(Yn==null||((hr=Yn.total_exercise_users)===null||hr===void 0)?void 0:hr.length)<1},n.a.createElement(g.a,{to:"/classrooms/".concat(Tt.coursesId,"/exercise/").concat(Tt.categoryId,"/review/").concat(Yn==null||((sr=Yn.total_exercise_users)===null||sr===void 0||((va=sr[0])===null||va===void 0))?void 0:va.user_login)},n.a.createElement("span",{className:"iconfont icon-filesync3x"}),n.a.createElement("span",null,"\u7EC4\u5185\u987A\u5E8F\u6279\u9605"))))),n.a.createElement(Ae.a,{style:{marginBottom:15}},(vr==null?void 0:vr.exercise_status)===3&&n.a.createElement(p.a,{className:"ml10",onClick:function(){Ba({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B",params:Tt}})}},n.a.createElement("i",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"))))),n.a.createElement(W.a,{className:"mt30",loading:ur["exercise/getExerciseList"],hideOnSinglePage:!0,pagination:!1,dataSource:(Yn==null?void 0:Yn.exercise_users)||[],columns:Ui,scroll:{x:(Ui==null?void 0:Ui.length)*120},size:"large",onChange:function(Da,Pa,Pr){Tt.page=1,console.log(Pr,444),Pr.order===void 0?(Tt.order_type=null,Tt.order=null):(Tt.order_type=Pr.order==="descend"?"desc":"asc",Tt.order=Pr.field),Ba({type:"exercise/getExerciseList",payload:Object(l.a)({},Tt)})}}),cr>20&&n.a.createElement("aside",{className:"tc mb50 pb30 mt30"},n.a.createElement(G.a,{onChange:No,current:Tt.page||1,defaultPageSize:20,total:cr,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,showTotal:function(Da){return n.a.createElement("span",{className:"mr10"},"\u5171",n.a.createElement("span",{className:"c-orange"},Da),"\u6761\u6570\u636E")}}))),n.a.createElement(gt,null),n.a.createElement(Le,null),n.a.createElement(on,null),ti&&n.a.createElement(i.a,{title:"\u9632\u4F5C\u5F0A\u5934\u50CF",visible:ti,centered:!0,onCancel:function(){ho(1),ri(!1),ii([]),Ei("alert"),si("")},footer:n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("div",{style:{flex:1,textAlign:"left"}}," ",n.a.createElement(p.a,{onClick:Object(c.a)(C.a.mark(function $a(){var Da;return C.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:if(Di){Pr.next=3;break}return d.b.info("\u8F93\u5165\u6846\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Pr.abrupt("return");case 3:return zi(!0),Pr.next=6,Object(_.a)("/api/exercises/".concat(Tt.categoryId,"/send_alert.json"),{method:"post",body:{content:Di,clazz:mi,exercise_user_id:Ri}});case 6:Da=Pr.sent,(Da==null?void 0:Da.status)===0&&(d.b.info("\u53D1\u9001\u6210\u529F"),ho(1),ri(!1),ii([]),Ei("alert"),si("")),zi(!1);case 9:case"end":return Pr.stop()}},$a)})),disabled:Do,loading:oo},"\u53D1\u9001")),n.a.createElement(p.a,{disabled:(Fr==null?void 0:Fr.length)===0,style:{marginRight:"10px"},onClick:Object(c.a)(C.a.mark(function $a(){return C.a.wrap(function(Pa){for(;;)switch(Pa.prev=Pa.next){case 0:return Pa.next=2,ho(Mi-1===0?Fr==null?void 0:Fr.length:Mi-1);case 2:case"end":return Pa.stop()}},$a)}))},"\u4E0A\u4E00\u5F20"),n.a.createElement(p.a,{disabled:(Fr==null?void 0:Fr.length)===0,type:"primary",onClick:Object(c.a)(C.a.mark(function $a(){return C.a.wrap(function(Pa){for(;;)switch(Pa.prev=Pa.next){case 0:return Pa.next=2,ho(Mi===(Fr==null?void 0:Fr.length)?1:Mi+1);case 2:case"end":return Pa.stop()}},$a)}))},"\u4E0B\u4E00\u5F20"))},n.a.createElement("img",{style:{width:"234px !important",height:"132px",borderRadius:"5px"},src:Fr[Mi-1]}),n.a.createElement("span",{onClick:function(){Ot.a.publish("preview-image",Fr[Mi-1]),console.log("src:",Fr[Mi-1],Fr,Mi-1)},style:{background:"#0152d9",color:"#fff",display:"inline-flex",width:"54px",height:"20px",borderRadius:"10px",justifyContent:"center",lineHeight:"20px",alignItems:"center",position:"absolute",top:"70px",left:"190px",zIndex:5,cursor:"pointer"}},"\u9884\u89C8"),n.a.createElement("span",{style:{color:"#0152d9",marginTop:"16px",width:"234px",justifyContent:"center",display:"flex"}},Mi+"/"+(Fr==null?void 0:Fr.length)),n.a.createElement(N.a,{className:"mt20",checked:mi==="alert",onChange:function(){return Ei("alert")}},"\u53D1\u9001\u8B66\u544A",n.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),n.a.createElement(N.a,{className:"mt10",checked:mi==="notice",onChange:function(){return Ei("notice")}},"\u53D1\u9001\u901A\u77E5",n.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),n.a.createElement(le.a.TextArea,{className:"mt20",value:Di,onChange:function(Da){return si(Da.target.value)},placeholder:"\u8BF7\u8F93\u5165".concat(mi==="alert"?"\u8B66\u544A":"\u901A\u77E5","\u5185\u5BB9").concat(mi==="alert"?"\uFF0C\u5982\uFF1A\u626D\u5934\u4F4E\u5934\u5927\u5E45\u5EA6\u52A8\u4F5C\u68C0\u6D4B":"")}),n.a.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",So,"\u6B21\u8B66\u544A")),n.a.createElement(hn.a,null),n.a.createElement(ht,null))},qe=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading,Ra=Ln.globalSetting;return{exercise:Wt,loading:Rn.effects,globalSetting:Ra}})(be),Lt=y("OaEy"),nn=y("2fM7"),$n=y("8Skl"),ta=y("y3Kf"),Sa=y("mxOx"),_n=y.n(Sa),Bt=y("LvDl"),mn=y.n(Bt),Gt=y("GUcZ"),ze=y("ulZh"),ct=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i,Sn=Object(v.forwardRef)(function(Ln,Wt){var Rn,Ra=Ln.src,la=Ln.videoId,Mn=Ln.logWatchHistory,Ca=Ln.courseId,Dn=Ca===void 0?null:Ca,ma=Ln.startTime,ga=Ln.handlePause,ja=ga===void 0?function(){}:ga,Xa=Ln.handlePlay,Cn=Xa===void 0?function(){}:Xa,nr=Ln.handlePlayEnded,$e=nr===void 0?function(){}:nr,pt=Ln.videoSpeed,_t=pt===void 0?1:pt,Xe=Ra==null||((Rn=Ra.split("."))===null||Rn===void 0)?void 0:Rn.pop(),Ee=Xe==="flv",Be=Object(v.useRef)(),Ce=Object(v.useRef)(),Ze=Object(v.useRef)(0),Ke=Object(v.useRef)(0),St=Object(v.useState)(0),it=Object(s.a)(St,2),Pt=it[0],an=it[1],gn=navigator.userAgent.toLowerCase().match(ct),bt=gn?gn[0]:"pc";Object(v.useImperativeHandle)(Wt,function(){return{getLastUpdatedTime:function(){return Be.current.currentTime},getDuration:function(){return Be.current.duration}}}),Object(v.useEffect)(function(){Ke.current=void 0;try{Gt.a.isSupported&&Ee&&Ra&&(Ra==null?void 0:Ra.indexOf(".m3u8"))<0?(Ke.current=Gt.a.createPlayer({type:"flv",volume:.8,cors:!0,url:Ra+"?t="+Date.now(),muted:!1,isLive:!0}),Ke.current.on("play",function(){console.log(21111)}),Be.current&&(Ke.current.detachMediaElement(Be.current),Ke.current.attachMediaElement(Be.current),Ke.current.load(),Ke.current.play())):Be.current.setAttribute("src",Ra+"?t="+Date.now())}catch(wa){setTimeout(function(){an(Pt+1)},1e3)}return console.log("src:",Ra),function(){if(Ke.current){var wa,tr,Ya,ar,Ar,hr,sr,va;(wa=Ke.current)===null||wa===void 0||((tr=wa.unload)===null||tr===void 0)||tr.call(wa),(Ya=Ke.current)===null||Ya===void 0||((ar=Ya.pause)===null||ar===void 0)||ar.call(Ya),(Ar=Ke.current)===null||Ar===void 0||((hr=Ar.destroy)===null||hr===void 0)||hr.call(Ar),(sr=Ke.current)===null||sr===void 0||((va=sr.detachMediaElement)===null||va===void 0)||va.call(sr,Be.current),Ke.current=void 0,Be.current.src=""}}},[Be,Ee,Ra,Pt]),Object(v.useEffect)(function(){return Ce.current=setInterval(function(){Ze.current>0&&Ze.current===Be.current.currentTime&&(console.log("\u64AD\u653E\u4E00\u6B21"),an(Pt+1)),Ze.current=Be.current.currentTime},3e3),function(){clearInterval(Ce.current)}},[]);var Qn=function(tr){setTimeout(function(){an(Pt+1)},1e3)};return n.a.createElement("video",{ref:Be,onerr:!0,onErrorCapture:function(){an(Pt+1)},autoPlay:!0,muted:!0})}),qt=function(Wt){var Rn,Ra=Wt.exercise,la=Wt.dispatch,Mn=Wt.user,Ca=Object(h.i)(),Dn=Object(v.useState)({page:1,limit:20,sort_by:null,sort_direction:null,state:null,audit:null,name:"",save_name:"",exercise_id:Ca==null?void 0:Ca.categoryId}),ma=Object(s.a)(Dn,2),ga=ma[0],ja=ma[1],Xa=dt.a.useForm(),Cn=Object(s.a)(Xa,1),nr=Cn[0],$e=Object(v.useState)(),pt=Object(s.a)($e,2),_t=pt[0],Xe=pt[1],Ee=Object(v.useState)(!1),Be=Object(s.a)(Ee,2),Ce=Be[0],Ze=Be[1],Ke=Ra.exerciseList,St=Ra.commonHeader,it=Object(v.useState)([]),Pt=Object(s.a)(it,2),an=Pt[0],gn=Pt[1],bt=Object(v.useState)([]),Qn=Object(s.a)(bt,2),wa=Qn[0],tr=Qn[1],Ya=Object(v.useState)(0),ar=Object(s.a)(Ya,2),Ar=ar[0],hr=ar[1],sr=Object(v.useState)(!0),va=Object(s.a)(sr,2),_a=va[0],ur=va[1],Ba=Object(v.useState)(!1),oa=Object(s.a)(Ba,2),Ua=oa[0],Er=oa[1],Ka=Object(v.useRef)(null);Object(v.useEffect)(function(){yt(),qa(ga)},[]),Object(v.useEffect)(function(){return clearInterval(Ka.current),(St==null?void 0:St.exercise_status)===2&&(Ka.current=setInterval(function(){qa(ga)},3e4)),function(){clearInterval(Ka.current)}},[St==null?void 0:St.exercise_status,ga]);var yt=function(){la({type:"exercise/getExerciseList",payload:Ca})},qa=function(){var Or=Object(c.a)(C.a.mark(function za(La){var sa,In;return C.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return sa=mn.a.cloneDeep(La),console.log(sa,"sendData"),ur(!0),gn([]),dr.next=6,Object(_.a)("/api/exercises/".concat(La==null?void 0:La.exercise_id,"/exercise_identity_photos.json"),{method:"get",params:sa});case 6:In=dr.sent,tr([]),ur(!1),hr(In==null?void 0:In.count),gn((In==null?void 0:In.exercise_users)||[]);case 11:case"end":return dr.stop()}},za)}));return function(La){return Or.apply(this,arguments)}}(),Lr=function(za,La){ga.page=1,ga[La]=za,ja(Object(l.a)({},ga)),qa(ga)},_r=function(za){ga.page=1,ga.save_name=za,ja(Object(l.a)({},ga))},Tt=function(){ga.page=1;var za=Object.assign({},nr.getFieldsValue());Object.keys(za).map(function(La){switch(La){case"exercise_group_id":za[La].includes("all")||!za[La].length?(delete ga.course_group,nr.setFieldsValue(Object(st.a)({},"exercise_group_id","all"))):(ga.course_group=za[La],nr.setFieldsValue(Object(st.a)({},"exercise_group_id",ga.course_group)));break}}),ja(Object(l.a)({},ga)),qa(ga)};Object(v.useEffect)(function(){if(document.getElementById("divhe")){var Or=document.getElementById("divhe").scrollHeight;Or>47&&(Xe(47),Ze(!0))}},[document.getElementById("divhe"),Ke]);var pr=function(za,La,sa){ga.page=za==null?void 0:za.current,ga.limit=za==null?void 0:za.pageSize,sa!=null&&sa.order?(ga.sort_by=sa==null?void 0:sa.field,ga.sort_direction=(sa==null?void 0:sa.order)==="ascend"?"asc":"desc"):(ga.sort_by=null,ga.sort_direction=null),ja(Object(l.a)({},ga)),qa(ga)},Yn=[{title:"\u5E8F\u53F7",dataIndex:"number",width:80,render:function(za,La,sa){return ga.limit*(ga.page-1)+sa+1}},{title:"\u59D3\u540D",dataIndex:"user_name",width:110,ellipsis:{showTitle:!1},render:function(za){return n.a.createElement(Ue.a,{placement:"bottomLeft",title:za},n.a.createElement("span",null,za))}},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,width:140,showSorterTooltip:!1,ellipsis:{showTitle:!1},render:function(za){return n.a.createElement(Ue.a,{placement:"bottomLeft",title:za||"--"},n.a.createElement("span",null,za||"--"))}},{title:"\u5206\u73ED",dataIndex:"user_group_name",ellipsis:{showTitle:!1},render:function(za,La){return za?n.a.createElement(Ue.a,{placement:"bottom",title:za},n.a.createElement("span",{className:_n.a.es},za)):"--"}},{title:"\u4EBA\u8138\u7167\u7247",dataIndex:"photo_url",width:90,ellipsis:{showTitle:!1},render:function(za,La){return n.a.createElement("img",{width:40,style:{maxHeight:30},src:za,className:"current",onClick:function(){$r(La)}})}},{title:"\u5BA1\u6838\u72B6\u6001",width:100,dataIndex:"exercise_identity_photo_state",ellipsis:{showTitle:!1},render:function(za,La){return n.a.createElement(n.a.Fragment,null,za==="passed"&&n.a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),za==="rejected"&&n.a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),za==="submitted"&&n.a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))}},{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:180,ellipsis:{showTitle:!1},render:function(za){return n.a.createElement("span",null,za||"--")}},{title:"\u5BA1\u6838\u7C7B\u578B",dataIndex:"audit_clazz",width:90,ellipsis:{showTitle:!1},render:function(za){return n.a.createElement("span",null,za||"--")}},{title:"\u64CD\u4F5C",dataIndex:"action",width:180,ellipsis:{showTitle:!1},render:function(za,La){var sa;return n.a.createElement(n.a.Fragment,null,(La==null?void 0:La.exercise_identity_photo_state)==="submitted"?n.a.createElement("span",{className:"c-light-primary current",onClick:function(){return Er(La)}},"\u5BA1\u6838"):n.a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u5BA1\u6838"),(La==null?void 0:La.exercise_identity_photo_state)!=="submitted"?n.a.createElement("span",{className:"c-light-primary current ml10 mr10",onClick:function(){return Xr(La)}},"\u5BA1\u6838\u8BB0\u5F55"):n.a.createElement("span",{className:"c-grey-999 ml10 mr10 cursorNotAllowed"},"\u5BA1\u6838\u8BB0\u5F55"),(La==null?void 0:La.exercise_identity_photo_state)==="passed"&&!!(La!=null&&(sa=La.play_url)!==null&&sa!==void 0&&sa.length)?n.a.createElement("span",{className:"c-light-primary current",onClick:function(){return ai(La)}},"\u6444\u50CF\u76D1\u63A7"):n.a.createElement("span",{className:"c-grey-999 cursorNotAllowed"},"\u6444\u50CF\u76D1\u63A7"))}}],vr=function(za){tr(za)},wr=function(){Er(!1),qa(ga)},Xr=function(za){var La=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"audit_time",width:170,render:function(cr,dr){return n.a.createElement("span",null,cr||"--")}},{title:"\u5BA1\u6838\u72B6\u6001",dataIndex:"exercise_identity_photo_state",width:110,render:function(cr,dr){return n.a.createElement(n.a.Fragment,null,cr==="passed"&&n.a.createElement("span",{style:{color:"#44D7B6"}},"\u5BA1\u6838\u901A\u8FC7"),cr==="rejected"&&n.a.createElement("span",{style:{color:"#E53333"}},"\u5BA1\u6838\u4E0D\u901A\u8FC7"),cr==="submitted"&&n.a.createElement("span",{style:{color:"#666666"}},"\u5F85\u5BA1\u6838"))}},{title:"\u5BA1\u6838\u610F\u89C1",dataIndex:"comment",render:function(cr,dr){return cr?n.a.createElement(Ue.a,{placement:"bottom",title:cr},n.a.createElement("span",null,cr)):"--"}},{title:"\u91C7\u96C6\u7167\u7247",dataIndex:"photo_url",width:90,render:function(cr,dr){return n.a.createElement("span",{className:"current c-light-primary",onClick:function(){Ot.a.publish("preview-image",cr)}},"\u67E5\u770B")}}],sa=i.a.confirm({icon:null,width:700,className:"".concat(_n.a.cusModal," custom-modal-divider"),centered:!0,title:n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"1"},"\u5BA1\u6838\u8BB0\u5F55"),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return sa.destroy()}}))),content:n.a.createElement("div",null,n.a.createElement(W.a,{className:_n.a.customTable,dataSource:[Object(l.a)({},za)],bordered:!1,columns:La,rowKey:"exercise_identity_photo_id",rowClassName:_n.a.row,pagination:!1}))})},ai=function(za){var La,sa,In=i.a.confirm({icon:null,className:"".concat(_n.a.cusModal," custom-modal-divider"),centered:!0,width:(za==null||((La=za.play_url)===null||La===void 0)?void 0:La.length)<6?724:744,title:n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"1"},"\u89C6\u9891"),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return In.destroy()}}))),content:n.a.createElement("ul",{className:_n.a.sys},za==null||((sa=za.play_url)===null||sa===void 0)?void 0:sa.map(function(cr,dr){return n.a.createElement("li",{className:_n.a.li,key:dr},n.a.createElement("div",{className:_n.a.d1},n.a.createElement("div",{className:_n.a.img},n.a.createElement(Sn,{src:cr==null?void 0:cr.replace(".m3u8",".flv"),autoPlay:!0})),n.a.createElement("div",{className:_n.a.btn},n.a.createElement("div",{className:_n.a.b1},"\u56DE\u653E\u89C6\u9891",dr+1))))}))})},$r=function(za){var La=i.a.confirm({icon:null,className:"".concat(_n.a.cusModal," custom-modal-divider"),centered:!0,width:710,title:n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"1"},"\u4EBA\u8138\u7167\u7247"),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:function(){return La.destroy()}}))),content:n.a.createElement(me.a,null,n.a.createElement("aside",{className:_n.a.imgWrap,style:{marginBottom:40}},n.a.createElement("div",{className:_n.a.img},n.a.createElement("img",{width:326,src:Object(F.i)(za==null?void 0:za.photo_url)}),n.a.createElement("div",{className:_n.a.textP},"\u91C7\u96C6\u7167\u7247")),n.a.createElement("div",{className:_n.a.img,style:{marginLeft:20}},za!=null&&za.identity_url?n.a.createElement("img",{width:326,src:Object(F.i)(za==null?void 0:za.identity_url)}):n.a.createElement("div",{className:_n.a.no,style:{width:326}},n.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),n.a.createElement("div",{className:_n.a.textP},"\u8BC1\u4EF6\u7167\u7247"))))})},ei={selectedRowKeys:wa,columnWidth:40,onChange:vr,getCheckboxProps:function(za){return{disabled:!((za==null?void 0:za.exercise_identity_photo_state)!=="passed")}}};return n.a.createElement("section",{className:_n.a.wrap},n.a.createElement(dt.a,{form:nr,onChange:Tt,initialValues:Object(st.a)({},"exercise_group_id","all")},n.a.createElement(dt.a.Item,{name:"exercise_group_id"},n.a.createElement(Se.a.Group,{style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1",id:"divhe",style:{height:_t+"px",overflow:"hidden"}},(Rn=Ke.course_groups)===null||Rn===void 0?void 0:Rn.map(function(Or,za){return n.a.createElement(Se.a,{key:za,value:Or.exercise_group_id,className:"ml0 mr8"},Or.exercise_group_name,"(",Or.exercise_group_students,")")})),Ce&&n.a.createElement("span",{onClick:function(){var za=document.getElementById("divhe").scrollHeight;_t>47?Xe(47):Xe(za)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},_t===47?"\u5C55\u5F00":"\u6536\u8D77",_t===47?n.a.createElement($n.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(ta.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),n.a.createElement("div",{className:_n.a.control},n.a.createElement(le.a.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:ga==null?void 0:ga.save_name,onChange:function(za){return _r(za.target.value)},onSearch:function(){ga.page=1,ga.name=ga.save_name,ja(Object(l.a)({},ga)),qa(ga)}}),n.a.createElement(nn.a,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001",value:ga==null?void 0:ga.state,onChange:function(za){return Lr(za,"state")}},n.a.createElement(nn.a.Option,{value:null},"\u5168\u90E8"),n.a.createElement(nn.a.Option,{value:"submitted"},"\u5F85\u5BA1\u6838"),n.a.createElement(nn.a.Option,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),n.a.createElement(nn.a.Option,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7")),n.a.createElement(nn.a,{placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7C7B\u578B",value:ga==null?void 0:ga.audit,onChange:function(za){return Lr(za,"audit")}},n.a.createElement(nn.a.Option,{value:null},"\u5168\u90E8"),n.a.createElement(nn.a.Option,{value:1},"\u81EA\u52A8\u5BA1\u6838"),n.a.createElement(nn.a.Option,{value:2},"\u4EBA\u5DE5\u5BA1\u6838")),n.a.createElement("span",{className:_n.a.btn,style:{cursor:"pointer"},onClick:function(){if(!wa.length){d.b.warn("\u8BF7\u9009\u62E9\u5B66\u751F");return}Er(!0)}},n.a.createElement("i",{className:"iconfont icon-piliangcaozuo font14 mr5"}),"\u6279\u91CF\u5BA1\u6838")),n.a.createElement("div",{className:_n.a.bgH}),n.a.createElement(W.a,{rowSelection:ei,className:_n.a.customTable,dataSource:an,bordered:!1,columns:Yn,rowKey:"exercise_identity_photo_id",rowClassName:_n.a.row,loading:_a,onChange:pr,pagination:{pageSize:ga.limit,total:Ar,current:ga.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,position:["bottomCenter"],showTotal:function(za){return n.a.createElement("span",{className:"mr10"},"\u5171",n.a.createElement("span",{className:"c-orange"},za),"\u6761\u6570\u636E")}}}),n.a.createElement(qn,{selectIds:wa,visible:Ua,onCancel:function(){return Er(!1)},onOk:wr,params:ga}),n.a.createElement(hn.a,null))},Gn=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.user;return{exercise:Wt,user:Rn}})(qt),qn=function(Wt){var Rn=Wt.visible,Ra=Wt.onOk,la=Wt.onCancel,Mn=Wt.selectIds,Ca=Wt.params,Dn=Object(v.useState)(!1),ma=Object(s.a)(Dn,2),ga=ma[0],ja=ma[1],Xa=Object(v.useState)({}),Cn=Object(s.a)(Xa,2),nr=Cn[0],$e=Cn[1],pt=dt.a.useForm(),_t=Object(s.a)(pt,1),Xe=_t[0],Ee=function(){var Be=Object(c.a)(C.a.mark(function Ce(Ze){var Ke,St;return C.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(ja(!0),!(Rn===!0)){Pt.next=7;break}return Pt.next=4,Object(_.a)("/api/exercises/".concat(Ca==null?void 0:Ca.exercise_id,"/batch_audit_identity_photo.json"),{method:"post",body:Object(l.a)({identity_photo_ids:Mn},Ze)});case 4:St=Pt.sent,Pt.next=10;break;case 7:return Pt.next=9,Object(_.a)("/api/exercises/".concat(Ca==null?void 0:Ca.exercise_id,"/audit_identity_photo.json"),{method:"post",body:Object(l.a)({identity_photo_id:Rn==null?void 0:Rn.exercise_identity_photo_id},Ze)});case 9:St=Pt.sent;case 10:((Ke=St)===null||Ke===void 0?void 0:Ke.status)===0&&Ra(),ja(!1);case 12:case"end":return Pt.stop()}},Ce)}));return function(Ze){return Be.apply(this,arguments)}}();return n.a.createElement(i.a,{title:Rn!==!0?"\u4EBA\u8138\u8EAB\u4EFD\u5BA1\u6838":"\u6279\u91CF\u5BA1\u6838",visible:!!Rn,centered:!0,width:650,destroyOnClose:!0,onCancel:function(){la()},afterClose:function(){Xe.resetFields(),$e({})},confirmLoading:ga,onOk:function(){return Xe.submit()}},n.a.createElement(dt.a,{className:_n.a.formWrap,form:Xe,labelCol:{span:4},wrapperCol:{span:18},onFinish:Ee,onValuesChange:function(){$e(Object(l.a)({},Xe.getFieldsValue()))}},Rn!==!0&&n.a.createElement(me.a,{style:{marginLeft:28,marginBottom:38}},n.a.createElement(Ae.a,null,"\u91C7\u96C6\u7167\u7247\uFF1A"),n.a.createElement(Ae.a,null,n.a.createElement("aside",{className:_n.a.imgWrap},n.a.createElement("div",{className:_n.a.img},n.a.createElement("img",{width:234,src:Object(F.i)(Rn==null?void 0:Rn.photo_url)}),n.a.createElement("div",{onClick:function(){Ot.a.publish("preview-image",Rn==null?void 0:Rn.photo_url)},className:_n.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:_n.a.text},"\u91C7\u96C6\u7167\u7247")),n.a.createElement("div",{className:_n.a.img,style:{marginLeft:20}},Rn!=null&&Rn.identity_url?n.a.createElement("img",{width:234,src:Object(F.i)(Rn==null?void 0:Rn.identity_url)}):n.a.createElement("div",{className:_n.a.no,style:{width:326}},n.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(Rn!=null&&Rn.identity_url)&&n.a.createElement("div",{onClick:function(){Ot.a.publish("preview-image",Object(F.i)(Rn==null?void 0:Rn.identity_url))},className:_n.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:_n.a.text},"\u8BC1\u4EF6\u7167\u7247"))))),n.a.createElement(dt.a.Item,{label:"\u5BA1\u6838\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u72B6\u6001"}]},n.a.createElement(N.a.Group,null,n.a.createElement(N.a,{value:"passed"},"\u5BA1\u6838\u901A\u8FC7"),n.a.createElement(N.a,{value:"rejected"},"\u5BA1\u6838\u4E0D\u901A\u8FC7"))),(nr==null?void 0:nr.state)==="rejected"&&n.a.createElement(dt.a.Item,{label:"\u5BA1\u6838\u610F\u89C1",name:"comment",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BA1\u6838\u610F\u89C1"}]},n.a.createElement(le.a,{placeholder:"\u5982\uFF1A\u4F60\u7684\u4E2A\u4EBA\u4FE1\u606F\u4E0E\u7167\u7247\u4E0D\u4E00\u81F4\u3002",maxLength:30})),n.a.createElement("div",{style:{color:"#FA6400",paddingLeft:32}},"\u6CE8\u610F\uFF1A\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u8BE5\u5B66\u751F\u5728\u672C\u573A\u8003\u8BD5\u7684\u8BA4\u8BC1\u72B6\u6001\u5C06\u66F4\u65B0\u4E3A\u201C\u5BA1\u6838\u901A\u8FC7\u201D\uFF0C\u4E14\u80FD\u591F\u8FDB\u5165\u8003\u8BD5\u3002")))},Mt=y("cWXX"),Nn=y("/ezw"),Bn=y("R9oj"),na=y("ECub"),Ea=y("hZbv"),Pe=y.n(Ea),ye=function(Wt){var Rn,Ra,la,Mn,Ca,Dn,ma,ga,ja,Xa=Wt.exercise,Cn=Wt.dispatch,nr=Wt.user,$e=Object(h.i)(),pt=Object(v.useState)({page:1,limit:10,name:"",save_name:"",exercise_id:$e==null?void 0:$e.categoryId}),_t=Object(s.a)(pt,2),Xe=_t[0],Ee=_t[1],Be=dt.a.useForm(),Ce=Object(s.a)(Be,1),Ze=Ce[0],Ke=Object(v.useState)(),St=Object(s.a)(Ke,2),it=St[0],Pt=St[1],an=Object(v.useState)(!1),gn=Object(s.a)(an,2),bt=gn[0],Qn=gn[1],wa=Xa.exerciseList,tr=Object(v.useState)([]),Ya=Object(s.a)(tr,2),ar=Ya[0],Ar=Ya[1],hr=Object(v.useState)(0),sr=Object(s.a)(hr,2),va=sr[0],_a=sr[1],ur=Object(v.useState)(!0),Ba=Object(s.a)(ur,2),oa=Ba[0],Ua=Ba[1],Er=Object(v.useState)(!1),Ka=Object(s.a)(Er,2),yt=Ka[0],qa=Ka[1],Lr=Object(v.useState)("1"),_r=Object(s.a)(Lr,2),Tt=_r[0],pr=_r[1],Yn=Object(v.useState)(1),vr=Object(s.a)(Yn,2),wr=vr[0],Xr=vr[1],ai=Object(v.useState)("alert"),$r=Object(s.a)(ai,2),ei=$r[0],Or=$r[1],za=Object(v.useState)(1),La=Object(s.a)(za,2),sa=La[0],In=La[1],cr=Object(v.useState)(""),dr=Object(s.a)(cr,2),ka=dr[0],kr=dr[1],Yr=Object(v.useState)(!1),jr=Object(s.a)(Yr,2),rr=jr[0],Rr=jr[1],ti=Object(v.useState)(!1),ri=Object(s.a)(ti,2),hi=ri[0],pi=ri[1],mi=Object(v.useState)([]),Ei=Object(s.a)(mi,2),ao=Ei[0],_o=Ei[1];Object(v.useEffect)(function(){So(),$i(Xe)},[]);var So=function(){Cn({type:"exercise/getExerciseList",payload:$e})},$i=function(){var Br=Object(c.a)(C.a.mark(function Nr(Fr){var ii,ui;return C.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return ii=mn.a.cloneDeep(Fr),Ua(!0),Ar([]),fi.next=5,Object(_.a)("/api/exercises/".concat(Fr==null?void 0:Fr.exercise_id,"/exercise_videos.json"),{method:"get",params:ii});case 5:ui=fi.sent,Ua(!1),_a(ui==null?void 0:ui.count),Ar((ui==null?void 0:ui.exercise_users)||[]);case 9:case"end":return fi.stop()}},Nr)}));return function(Fr){return Br.apply(this,arguments)}}(),eo=function(Nr,Fr){Xe.page=Nr,Xe.limit=Fr,Ee(Object(l.a)({},Xe)),$i(Xe)},ro=function(Nr){Xe.page=1,Xe.save_name=Nr,Ee(Object(l.a)({},Xe))},io=function(){Xe.page=1;var Nr=Object.assign({},Ze.getFieldsValue());Object.keys(Nr).map(function(Fr){switch(Fr){case"exercise_group_id":Nr[Fr].includes("all")||!Nr[Fr].length?(delete Xe.course_group,Ze.setFieldsValue(Object(st.a)({},"exercise_group_id","all"))):(Xe.course_group=Nr[Fr],Ze.setFieldsValue(Object(st.a)({},"exercise_group_id",Xe.course_group)));break}}),$i(Xe)};Object(v.useEffect)(function(){if(document.getElementById("divhe")){var Br=document.getElementById("divhe").scrollHeight;Br>47&&(Pt(47),Qn(!0))}},[document.getElementById("divhe"),wa]);var Yi=function(){var Br=Object(c.a)(C.a.mark(function Nr(Fr){var ii,ui;return C.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:return Rr(!0),qa({}),fi.next=4,Object(_.a)("/api/exercises/".concat(Xe==null?void 0:Xe.exercise_id,"/student_info.json"),{method:"get",params:{exercise_user_id:Fr==null?void 0:Fr.exercise_user_id}});case 4:return ii=fi.sent,fi.next=7,Object(_.a)("/api/exercises/".concat(Xe==null?void 0:Xe.exercise_id,"/video_push_logs.json"),{method:"get",params:{exercise_user_id:Fr==null?void 0:Fr.exercise_user_id}});case 7:ui=fi.sent,ui!=null&&ui.data&&_o((ui==null?void 0:ui.data)||[]),ii!=null&&ii.data&&qa(Object(l.a)(Object(l.a)({},ii==null?void 0:ii.data),{},{exercise_user_id:Fr==null?void 0:Fr.exercise_user_id,datas:Fr})),Rr(!1);case 11:case"end":return fi.stop()}},Nr)}));return function(Fr){return Br.apply(this,arguments)}}(),bo=function(Nr){if(Nr==="prev"){var Fr;Xr(wr-1===0?yt==null||((Fr=yt.exercise_user_photos)===null||Fr===void 0)?void 0:Fr.length:wr-1)}else{var ii;Xr(wr===(yt==null||((ii=yt.exercise_user_photos)===null||ii===void 0)?void 0:ii.length)?1:wr+1)}},co=function(){Xr(1),Or("alert"),kr(""),pr("1"),In(1)},oo=function(Nr){In(Nr)},zi=function(Nr){Or(Nr),In(1),kr("")},Xi=[{key:1,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:2,value:"\u8BF7\u52FF\u79BB\u5F00\u76D1\u63A7\u8303\u56F4\uFF01"},{key:3,value:"\u8BF7\u4E0D\u8981\u4E0E\u5176\u4ED6\u4EBA\u4EA4\u8C08\uFF01"},{key:4,value:"\u8BF7\u4E0D\u8981\u505A\u4E0E\u8003\u8BD5\u65E0\u5173\u7684\u884C\u4E3A\uFF01"},{key:5,value:"\u8BF7\u52FF\u5207\u5C4F\uFF0C\u8D85\u8FC73\u6B21\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF01"},{key:6,value:"\u8BF7\u52FF\u906E\u6321\u6216\u5173\u95ED\u7535\u8111\u6444\u50CF\u76D1\u63A7\uFF01"},{key:0,value:"\u5176\u4ED6"}],gi=[{key:1,value:"\u8BF7\u5C06\u624B\u673A\u653E\u7F6E\u4E8E\u4FA7\u540E\u65B945\xB0\uFF0C\u79BB\u684C\u97621\u7C73\u5DE6\u53F3\uFF0C\u4FDD\u8BC1\u80FD\u62CD\u6444\u5230\u4E0A\u534A\u8EAB\u3001\u7535\u8111\u5C4F\u5E55\u548C\u684C\u9762\u3002"},{key:2,value:"\u624B\u673A\u5F55\u50CF\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u5F00\u542F\u624B\u673A\u6444\u50CF\u5F55\u5236\u3002"},{key:0,value:"\u5176\u4ED6"}],yi=ei==="alert"?Xi:gi;return n.a.createElement("section",{className:Pe.a.wrap},n.a.createElement(dt.a,{form:Ze,onChange:io,initialValues:Object(st.a)({},"exercise_group_id","all")},n.a.createElement(dt.a.Item,{name:"exercise_group_id"},n.a.createElement(Se.a.Group,{style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{className:"font14",flex:"80px"},"\u9009\u62E9\u5206\u73ED:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1",id:"divhe",style:{height:it+"px",overflow:"hidden"}},(Rn=wa.course_groups)===null||Rn===void 0?void 0:Rn.map(function(Br,Nr){return n.a.createElement(Se.a,{key:Nr,value:Br.exercise_group_id,className:"ml0 mr8"},Br.exercise_group_name,"(",Br.exercise_group_students,")")})),bt&&n.a.createElement("span",{onClick:function(){var Nr=document.getElementById("divhe").scrollHeight;it>47?Pt(47):Pt(Nr)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},it===47?"\u5C55\u5F00":"\u6536\u8D77",it===47?n.a.createElement($n.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(ta.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))),n.a.createElement("div",{className:Pe.a.control},n.a.createElement(le.a.Search,{placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:Xe==null?void 0:Xe.save_name,onChange:function(Nr){return ro(Nr.target.value)},onSearch:function(){Xe.page=1,Xe.name=Xe.save_name,Ee(Object(l.a)({},Xe)),$i(Xe)}})),n.a.createElement("div",{className:Pe.a.bgH}),n.a.createElement("div",{className:Pe.a.warpList},n.a.createElement(Nn.a,{loading:oa,active:!0,paragraph:{rows:5}},n.a.createElement("div",{className:"c-grey-666 mb20 mt20"},"\u5171",n.a.createElement("span",{className:"c-orange"},va),"\u540D\u5B66\u751F\u5DF2\u5F00\u542F\u624B\u673A\u6444\u5F71"),ar.length?n.a.createElement("ul",{className:Pe.a.sys},ar.map(function(Br,Nr){var Fr=Br.user_name,ii=Br.user_group_name,ui=Br.video_url,Ai=Br.login,fi=Br.student_id;return n.a.createElement("li",{className:Pe.a.li,key:Nr},n.a.createElement("div",{className:Pe.a.d1},n.a.createElement("div",{className:Pe.a.img},n.a.createElement("iframe",{style:{height:340,width:"100%",border:"none"},src:"/live-play.html?key=".concat(Nr,"&video_url=").concat(ui==null?void 0:ui.replace(".m3u8",".flv"))})),n.a.createElement(Ue.a,{title:"\u59D3\u540D+\u5B66\u53F7"},n.a.createElement("div",{className:Pe.a.btn,onClick:function(){return Object(F.u)("".concat(Xe.exercise_id,"-").concat(Ai),!0)}},n.a.createElement("div",{title:Fr,className:Pe.a.b1},Fr),n.a.createElement("div",{title:ii,className:Pe.a.b2},"(",fi,")"))),n.a.createElement("div",{onClick:function(){return Yi(Br)},className:Pe.a.big},"\u67E5\u770B")))})):n.a.createElement(na.a,null)),n.a.createElement(G.a,{showTotal:function(Nr){return n.a.createElement("span",{className:"mr10"},"\u5171",n.a.createElement("span",{className:"c-orange"},Nr),"\u6761\u6570\u636E")},className:"tc",showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,onChange:eo,pageSize:Xe==null?void 0:Xe.limit,current:Xe.page,total:va})),n.a.createElement(i.a,{title:"\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F",visible:yt,centered:!0,width:850,destroyOnClose:!0,onCancel:function(){qa(!1)},afterClose:co,footer:null},n.a.createElement(Nn.a,{loading:rr,active:!0,paragraph:{rows:5}},n.a.createElement("div",null,n.a.createElement("span",null,"\u59D3\u540D:",yt==null||((Ra=yt.datas)===null||Ra===void 0)?void 0:Ra.user_name),n.a.createElement("span",{className:"ml20"},"\u5B66\u53F7:",yt==null||((la=yt.datas)===null||la===void 0)?void 0:la.student_id),n.a.createElement("span",{className:"ml20"},"\u73ED\u7EA7:",yt==null||((Mn=yt.datas)===null||Mn===void 0)?void 0:Mn.user_group_name)),n.a.createElement(B.a,{className:"mt10",defaultActiveKey:Tt,onChange:function(Nr){pr(Nr)}},n.a.createElement(B.a.TabPane,{tab:"\u9632\u4F5C\u5F0A\u5934\u50CF",key:"1"},n.a.createElement("aside",{className:Pe.a.imgWrap},n.a.createElement("div",{className:Pe.a.img,style:{width:234,marginLeft:30,textAlign:"center"}},yt!=null&&(Ca=yt.exercise_user_photos)!==null&&Ca!==void 0&&Ca.length?n.a.createElement(v.Fragment,null,n.a.createElement("img",{height:131,src:yt==null||((Dn=yt.exercise_user_photos)===null||Dn===void 0)?void 0:Dn[wr-1]}),n.a.createElement("div",{onClick:function(){var Nr;Ot.a.publish("preview-image",yt==null||((Nr=yt.exercise_user_photos)===null||Nr===void 0)?void 0:Nr[wr-1])},className:Pe.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:Pe.a.text},"\u8003\u8BD5\u4E2D\u7167\u7247",n.a.createElement("span",{className:"c-light-primary"},wr,"/",yt==null||((ma=yt.exercise_user_photos)===null||ma===void 0)?void 0:ma.length)),wr===1?n.a.createElement("div",{style:{color:"#ccc",cursor:"not-allowed"},className:Pe.a.l}," ",n.a.createElement("i",{className:"iconfont icon-fanhui2"})):n.a.createElement("div",{onClick:function(){return bo("prev")},className:Pe.a.l}," ",n.a.createElement("i",{className:"iconfont icon-fanhui2"})),n.a.createElement("div",{onClick:function(){return bo("next")},className:Pe.a.r},n.a.createElement("i",{className:"iconfont icon-lujing"}))):n.a.createElement("div",{className:Pe.a.no},n.a.createElement("span",null,"\u6682\u65E0\u8003\u8BD5\u4E2D\u7167\u7247"))),n.a.createElement("div",{className:Pe.a.img,style:{marginLeft:60,width:234,textAlign:"center"}},yt!=null&&yt.identity_url?n.a.createElement("img",{height:131,src:Object(F.i)(yt==null?void 0:yt.identity_url)}):n.a.createElement("div",{className:Pe.a.no},n.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(yt!=null&&yt.identity_url)&&n.a.createElement("div",{onClick:function(){Ot.a.publish("preview-image",Object(F.i)(yt==null?void 0:yt.identity_url))},className:Pe.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:Pe.a.text},"\u8BC1\u4EF6\u7167\u7247")))),n.a.createElement(B.a.TabPane,{tab:"\u4EBA\u8138\u7167\u7247",key:"2"},n.a.createElement("aside",{className:Pe.a.imgWrap,style:{marginLeft:70}},n.a.createElement("div",{className:Pe.a.img},n.a.createElement("img",{width:234,src:yt==null?void 0:yt.exercise_identity_photo}),n.a.createElement("div",{onClick:function(){Ot.a.publish("preview-image",yt==null?void 0:yt.exercise_identity_photo)},className:Pe.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:Pe.a.text},"\u91C7\u96C6\u7167\u7247")),n.a.createElement("div",{className:Pe.a.img,style:{marginLeft:20,width:234,textAlign:"center"}},yt!=null&&yt.identity_url?n.a.createElement("img",{height:131,src:Object(F.i)(yt==null?void 0:yt.identity_url)}):n.a.createElement("div",{className:Pe.a.no},n.a.createElement("span",null,"\u6682\u65E0\u8BC1\u4EF6\u7167\u7247")),!!(yt!=null&&yt.identity_url)&&n.a.createElement("div",{onClick:function(){Ot.a.publish("preview-image",Object(F.i)(yt==null?void 0:yt.identity_url))},className:Pe.a.iBtn},"\u9884\u89C8"),n.a.createElement("div",{className:Pe.a.text},"\u8BC1\u4EF6\u7167\u7247")))),n.a.createElement(B.a.TabPane,{tab:"\u8B66\u544A\u548C\u901A\u77E5",key:"3"},n.a.createElement("div",{className:Pe.a.fo},n.a.createElement(N.a,{className:"mt20",checked:ei==="alert",onChange:function(){return zi("alert")}},"\u53D1\u9001\u8B66\u544A",n.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5982\u53D1\u73B0\u5B66\u751F\u5728\u8003\u8BD5\u4E2D\u7684\u7167\u7247\u5B58\u5728\u5F02\u5E38\u65F6\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),n.a.createElement(N.a,{className:"mt10",checked:ei==="notice",onChange:function(){return zi("notice")}},"\u53D1\u9001\u901A\u77E5",n.a.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u8003\u8BD5\u4E2D\u5982\u6709\u6D88\u606F\u901A\u77E5\uFF0C\u53EF\u53D1\u9001\u6D88\u606F\u7ED9\u5B66\u751F\uFF09")),n.a.createElement("div",{className:"mt20"},n.a.createElement("span",{className:"mr10"},"\u539F\u56E0:"),n.a.createElement(nn.a,{getPopupContainer:function(Nr){return Nr.parentNode.parentNode},style:{width:570},value:sa,onChange:oo},yi==null?void 0:yi.map(function(Br){return n.a.createElement(nn.a.Option,{key:Br.key,value:Br.key},Br.value)}))),sa===0&&n.a.createElement(le.a.TextArea,{className:"mt20",value:ka,onChange:function(Nr){return kr(Nr.target.value)},placeholder:"\u8BF7\u586B\u5199\u5176\u4ED6\u539F\u56E0"}),n.a.createElement(me.a,{className:"mt10",align:"middle"},n.a.createElement("div",{className:"mr10"},"\u53D1\u9001\u8BB0\u5F55"),n.a.createElement("div",{style:{color:"#E30000",fontSize:12,margin:"10px 0"}},"\u5DF2\u53D1\u9001",yt==null?void 0:yt.alert_count,"\u6B21\u8B66\u544A\u548C",(yt==null||((ga=yt.alerts)===null||ga===void 0)?void 0:ga.length)-(yt==null?void 0:yt.alert_count),"\u6B21\u901A\u77E5")),n.a.createElement(W.a,{dataSource:(yt==null?void 0:yt.alerts)||[],bordered:!1,scroll:(yt==null||((ja=yt.alerts)===null||ja===void 0)?void 0:ja.length)>4?{y:200}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"created_at",width:164},{title:"\u53D1\u9001\u4EBA",dataIndex:"sender",width:100,ellipsis:{showTitle:!1},render:function(Nr){return Nr?n.a.createElement("span",{title:Nr},Nr):"--"}},{title:"\u53D1\u9001\u7C7B\u578B",dataIndex:"clazz",width:80,render:function(Nr){return Nr==="alert"?"\u8B66\u544A":"\u901A\u77E5"}},{title:"\u53D1\u9001\u5185\u5BB9",dataIndex:"content",ellipsis:!0}],pagination:!1}),n.a.createElement(p.a,{className:Pe.a.b,onClick:Object(c.a)(C.a.mark(function Br(){var Nr,Fr,ii;return C.a.wrap(function(Ai){for(;;)switch(Ai.prev=Ai.next){case 0:if(!(!ka&&sa===0)){Ai.next=3;break}return d.b.info("\u8BF7\u8F93\u5165\u5176\u4ED6\u539F\u56E0"),Ai.abrupt("return");case 3:return Nr=ka,sa&&(Fr=ei==="alert"?Xi:gi,Nr=Fr.find(function(fi){return fi.key===sa}).value),pi(!0),Ai.next=8,Object(_.a)("/api/exercises/".concat(Xe.exercise_id,"/send_alert.json"),{method:"post",body:{content:Nr,clazz:ei,exercise_user_id:yt==null?void 0:yt.exercise_user_id}});case 8:ii=Ai.sent,(ii==null?void 0:ii.status)===0&&(d.b.info("\u53D1\u9001\u6210\u529F"),qa(!1)),pi(!1);case 11:case"end":return Ai.stop()}},Br)})),loading:hi,type:"primary"},n.a.createElement("i",{className:"iconfont icon-fasongtongzhi mr5"}),"\u53D1\u9001"))),n.a.createElement(B.a.TabPane,{tab:"\u65AD\u6D41\u8BB0\u5F55",key:"4"},n.a.createElement(W.a,{dataSource:ao,bordered:!1,scroll:ao.length>7?{y:300}:{},columns:[{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"start_time",width:164},{title:"\u7ED3\u675F\u65F6\u95F4",dataIndex:"end_time",width:164,render:function(Nr){return pe()(Nr).format("YYYY-MM-DD HH:mm:ss")||"--"}},{title:"\u63A8\u6D41\u65F6\u957F",dataIndex:"push_duration",ellipsis:!0,width:120,render:function(Nr){return Nr&&Object(F.bb)(Number(Nr)/1e3)||0}},{title:"\u65AD\u6D41\u539F\u56E0",dataIndex:"msg",ellipsis:!0}]}))))),n.a.createElement(hn.a,null))},J=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.user;return{exercise:Wt,user:Rn}})(ye),q=y("wNxg"),Z=y.n(q),oe=y("b6Jr"),Oe=y.n(oe),Re=function(Wt){var Rn=Wt.index,Ra=Wt.bottomLine,la=Wt.gather,Mn=Wt.search,Ca=Object(v.useState)([]),Dn=Object(s.a)(Ca,2),ma=Dn[0],ga=Dn[1],ja=Object(v.useState)(!1),Xa=Object(s.a)(ja,2),Cn=Xa[0],nr=Xa[1],$e=Object(v.useState)(!1),pt=Object(s.a)($e,2),_t=pt[0],Xe=pt[1],Ee=Object(h.i)(),Be=Object(h.h)(),Ce=Object(v.useState)({page:1,limit:6,total:0}),Ze=Object(s.a)(Ce,2),Ke=Ze[0],St=Ze[1];Object(v.useEffect)(function(){console.log(la,"gather"),Rn===0&&Xe(!0)},[]),Object(v.useEffect)(function(){_t&&Pt()},[_t]);var it=[{title:"\u5E8F\u53F7",dataIndex:"index",key:"index",align:"left",ellipsis:!0,render:function(Qn,wa,tr){return Ke.limit*(Ke.page-1)+tr+1}},{title:"\u59D3\u540D",dataIndex:"username",key:"username",align:"left",ellipsis:!0},{title:"\u73ED\u7EA7",dataIndex:"user_group_name",key:"user_group_name",align:"left",render:function(Qn){return Qn||"--"}},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",align:"left"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",key:"code_rate",align:"left",render:function(Qn){return Qn+"%"}},{title:"\u64CD\u4F5C",dataIndex:"id",key:"id",align:"left",render:function(Qn){var wa,tr="/classrooms/".concat(Ee==null?void 0:Ee.coursesId,"/exercise/").concat(Ee==null?void 0:Ee.categoryId,"/detail/").concat(Qn,"/review_detail");if(Be!=null&&(wa=Be.query)!==null&&wa!==void 0&&wa.random){var Ya;tr=tr+"?random=".concat(Be==null||((Ya=Be.query)===null||Ya===void 0)?void 0:Ya.random)}return n.a.createElement(g.a,{to:tr,target:"_blank"},"\u67E5\u770B")}}],Pt=function(){var bt=Object(c.a)(C.a.mark(function Qn(wa){var tr,Ya,ar;return C.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return nr(!0),tr=wa||{page:1,limit:10,total:0},Ya=Object(l.a)({id:Ee==null?void 0:Ee.categoryId,question_id:la==null?void 0:la.question_id,search:Mn},tr),hr.next=5,Object(_.a)("/api/courses/".concat(Ee==null?void 0:Ee.coursesId,"/exercises/code_review_users.json"),{method:"get",params:Ya});case 5:ar=hr.sent,ar&&(ga(ar==null?void 0:ar.users),nr(!1),St(Object(l.a)(Object(l.a)({},tr),{},{total:(ar==null?void 0:ar.count)||0})));case 7:case"end":return hr.stop()}},Qn)}));return function(wa){return bt.apply(this,arguments)}}(),an=function(Qn){var wa=Object(l.a)(Object(l.a)({},Ke),{},{page:Qn});St(wa),Pt(wa)},gn=function(){Xe(!_t)};return n.a.createElement("div",{className:Oe.a.subjectTable},n.a.createElement("aside",{className:Oe.a.title},n.a.createElement("span",{className:"c-light-primary"},Rn+1,"\u3001",(la==null?void 0:la.question_type)===5?"\u5B9E\u8BAD\u9898":"\u7F16\u7A0B\u9898"),n.a.createElement("span",{className:"c-grey-333"},"\uFF08",la==null?void 0:la.score,"\u5206\uFF09\uFF1A",la==null?void 0:la.question_title),n.a.createElement("span",{className:"ml40 c-grey-999"},n.a.createElement("b",{className:"c-red-ee4"},la==null?void 0:la.checked_count),"\xA0\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08\u5171",la==null?void 0:la.total_count,"\u4E2A\u4F5C\u54C1\uFF09"),n.a.createElement("span",{onClick:gn,style:{marginLeft:"auto",cursor:"pointer",color:"#0152d9"}},_t?"\u6536\u8D77":"\u5C55\u5F00",_t?n.a.createElement(ta.a,null):n.a.createElement($n.a,null)),(la==null?void 0:la.question_type)===5&&n.a.createElement("a",{style:{marginLeft:20},target:"_blank",href:"/shixuns/".concat(la==null?void 0:la.shixun_identifier,"/challenges")},"\u5B9E\u8BAD\u8BE6\u60C5")),n.a.createElement(W.a,{className:Oe.a.customTable,style:{display:_t?"block":"none"},dataSource:ma,bordered:!1,rowKey:function(Qn){return Qn.id},rowClassName:Oe.a.row,columns:it,loading:Cn,pagination:{pageSize:Ke.limit,total:Ke.total,current:Ke.page,onChange:an,showQuickJumper:!0,showSizeChanger:!1,hideOnSinglePage:!0,position:["bottomCenter"]}}),n.a.createElement("div",{className:Oe.a.line,style:{visibility:Ra?"hidden":"visible"}}))},ve=Re,bn=y("lzim"),kt=function(Wt){var Rn=Wt.exercise,Ra=Wt.globalSetting,la=Wt.dispatch,Mn=Object(v.useState)(""),Ca=Object(s.a)(Mn,2),Dn=Ca[0],ma=Ca[1],ga=Object(v.useState)([]),ja=Object(s.a)(ga,2),Xa=ja[0],Cn=ja[1],nr=Object(v.useState)(""),$e=Object(s.a)(nr,2),pt=$e[0],_t=$e[1],Xe=Object(v.useState)(!1),Ee=Object(s.a)(Xe,2),Be=Ee[0],Ce=Ee[1],Ze=Object(h.i)();Object(v.useEffect)(function(){Ke()},[]);var Ke=function(){var Pt=Object(c.a)(C.a.mark(function an(gn){var bt;return C.a.wrap(function(wa){for(;;)switch(wa.prev=wa.next){case 0:return Ce(!0),wa.next=3,Object(_.a)("/api/courses/".concat(Ze==null?void 0:Ze.coursesId,"/exercises/code_review_results.json"),{method:"get",params:{id:Ze==null?void 0:Ze.categoryId,search:Dn}});case 3:if(bt=wa.sent,!((bt==null?void 0:bt.status)===-2)){wa.next=7;break}return Ke(),wa.abrupt("return");case 7:bt&&(Ce(!1),Cn((bt==null?void 0:bt.exercise_questions)||[]),_t(bt==null?void 0:bt.last_review_time));case 8:case"end":return wa.stop()}},an)}));return function(gn){return Pt.apply(this,arguments)}}(),St=function(){Ke()},it=function(){return n.a.createElement("div",{className:Z.a.empty},n.a.createElement("img",{src:bn.j,width:"258"}),n.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E"))};return n.a.createElement("section",{className:Z.a.warp},n.a.createElement("aside",{className:Z.a.header},n.a.createElement("div",null,"\u67E5\u91CD\u65F6\u95F4\uFF1A",pt||"--"),!!pt&&n.a.createElement(le.a,{value:Dn,onChange:function(an){return ma(an.target.value)},suffix:n.a.createElement("i",{onClick:St,className:"iconfont icon-sousuo2 c-grey-c"}),bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u641C\u7D22",onPressEnter:St})),n.a.createElement(Nn.a,{loading:Be,active:!0,paragraph:{rows:5}},Xa.length>0?n.a.createElement("aside",{className:Z.a.subject},Xa.map(function(Pt,an){return n.a.createElement(ve,{key:an,index:an,bottomLine:an===Xa.length-1,gather:Pt,search:Dn})})):it()))},at=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.globalSetting;return{exercise:Wt,globalSetting:Rn}})(kt),Ht=y("/zsF"),Fe=y("PArb"),Un=y("LYsE"),Fa=y("k5F3"),fa=function(Wt){var Rn,Ra=Wt.exercise,la=Wt.loading,Mn=Wt.dispatch,Ca=Wt.activeTabs,Dn=Object(h.i)(),ma=Object(v.useState)(Object(l.a)(Object(l.a)({},Dn),{page:1,per_page:10})),ga=Object(s.a)(ma,1),ja=ga[0],Xa=Ra.editData,Cn=Ra.commonHeader.exercise_status;console.log(Ra),Object(v.useEffect)(function(){Ca==="2"&&nr()},[Dn.categoryId,Ca]);var nr=function(){Mn({type:"exercise/editExercise",payload:Object(l.a)({},ja)})};return Object(v.useEffect)(function(){return Mn({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),Mn({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),function(){Mn({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),Mn({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}},[]),n.a.createElement("section",{className:"minH1050 mb20 pt30 pb30 pl60 bg-white relative"},n.a.createElement(Fa.a,{isPreview:!0,activeTabs:Ca}),n.a.createElement(Fe.a,null),n.a.createElement(Un.a,{data:Xa==null?void 0:Xa.exercise_question_types,isDragDisabled:!0,markBtnVisible:Cn===3&&((Xa==null||((Rn=Xa.exercise)===null||Rn===void 0)?void 0:Rn.is_creator)||Object(Je.v)())}))},ae=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading;return{exercise:Wt,loading:Rn.effects}})(fa),z=y("T2oS"),Y=y("W9HT"),te=y("Q9mQ"),_e=y("diRs"),se=y("CCdo"),ut=y.n(se),vn=y("RotF"),Wn=y.n(vn),Oa=y("6K3P"),dn=y.n(Oa),Tn=y("0owl"),ya=y("ek7X"),fr=function(Wt){var Rn,Ra,la,Mn=Wt.exercise,Ca=Wt.loading,Dn=Wt.dispatch,ma=Wt.cb,ga=Object(l.a)(Object(l.a)({},Object(h.i)()),{},{page:0,limit:50,one:null,two:null,save_one:null,save_two:null,sort:null,course_group:"",student_id:"",realname:"",save_course_group:"",save_student_id:"",save_realname:""}),ja=Object(v.useState)(Object(l.a)({},ga)),Xa=Object(s.a)(ja,2),Cn=Xa[0],nr=Xa[1],$e=Object(v.useState)([]),pt=Object(s.a)($e,2),_t=pt[0],Xe=pt[1],Ee=Object(v.useState)(!0),Be=Object(s.a)(Ee,2),Ce=Be[0],Ze=Be[1],Ke=Object(v.useState)(!0),St=Object(s.a)(Ke,2),it=St[0],Pt=St[1],an=Object(v.useState)(0),gn=Object(s.a)(an,2),bt=gn[0],Qn=gn[1],wa=Object(v.useState)(!1),tr=Object(s.a)(wa,2),Ya=tr[0],ar=tr[1],Ar=Object(v.useState)([]),hr=Object(s.a)(Ar,2),sr=hr[0],va=hr[1];Object(v.useEffect)(function(){Mn.actionTabs.key==="\u6253\u56DE\u91CD\u505A"&&(_t=[],_a(1))},[Mn.actionTabs.key]);var _a=function(){var yt=Object(c.a)(C.a.mark(function qa(Lr){var _r,Tt;return C.a.wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:return Lr==1&&(_t=[]),Ze(!0),Cn.page=Lr,Pt(!0),Yn.next=6,Dn({type:"exercise/getRedoModal",payload:Object(l.a)(Object(l.a)({},Cn),{},{score:((Cn==null?void 0:Cn.one)||0)+"".concat(Cn!=null&&Cn.two?","+(Cn==null?void 0:Cn.two):"")})});case 6:Tt=Yn.sent,(Tt==null||((_r=Tt.exercise_users)===null||_r===void 0)?void 0:_r.length)0?n.a.createElement("p",null,"\u9009\u62E9\u73ED\u7EA7\uFF1A"):n.a.createElement("p",null,"\u6682\u65E0\u5206\u73ED"),n.a.createElement(Se.a.Group,{value:Cn,onChange:Pt},ma.map(function(an){return n.a.createElement(Se.a,{key:an.id,value:an.id},an.name)}))),n.a.createElement("p",{style:{marginBottom:40},className:"c-grey-999 mt40"},"\u8BF4\u660E\uFF1A\u5E73\u53F0\u76EE\u524D\u4EC5\u652F\u6301java\u3001python\u3001c\u3001c++\u3001php\u3001xml\u3001matlab\u8BED\u8A00\u7684\u5B9E\u8BAD\u9898\u548C\u7F16\u7A0B\u9898\u7684\u4EE3\u7801\u67E5\u91CD\u3002")),n.a.createElement("div",{className:Na.a.footer},n.a.createElement(Se.a,{checked:Ce,onChange:function(gn){var bt=gn.target.checked?ma.map(function(Qn){return Qn.id}):[];nr(bt),Ze(gn.target.checked)}},"\u5168\u9009"),n.a.createElement(p.a,{onClick:St},"\u53D6\u6D88"),n.a.createElement(p.a,{onClick:it,type:"primary"},"\u786E\u8BA4"))))},Jt=Object(x.a)(function(Ln){var Wt=Ln.exercise;return{exercise:Wt}})(Ma),Rt=y("Fzz4"),An=y("DZo9"),aa=y("8z0m"),ra=y("/MfK"),Fn=y("w5pM"),da=y("jN4g"),Ta=y("xvlK"),Wa=y("dfu6"),ue=B.a.TabPane,ot=function(Wt){var Rn,Ra=Wt.exercise,la=Wt.loading,Mn=Wt.dispatch,Ca=Object(h.i)(),Dn=Object(h.h)(),ma=dt.a.useForm(),ga=Object(s.a)(ma,1),ja=ga[0],Xa=Object(v.useState)({}),Cn=Object(s.a)(Xa,2),nr=Cn[0],$e=Cn[1],pt=Object(v.useState)("1"),_t=Object(s.a)(pt,2),Xe=_t[0],Ee=_t[1];return Object(v.useEffect)(function(){Ra.actionTabs.key==="addIp"&&(ja.resetFields(),Ee("1"))},[Ra.actionTabs]),n.a.createElement(i.a,{centered:!0,title:"\u6DFB\u52A0IP\u8303\u56F4",visible:Ra.actionTabs.key==="addIp",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:600,bodyStyle:{minHeight:200},onOk:Object(c.a)(C.a.mark(function Be(){var Ce;return C.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ke.next=2,ja.validateFields();case 2:if(nr.ip){Ke.next=7;break}if(Ce=nr.startIP.split(".")[3],!(parseInt(Ce)>parseInt(nr.endIP))){Ke.next=7;break}return d.b.warn("IP\u533A\u95F4\u6BB5\u4E0D\u5408\u6CD5"),Ke.abrupt("return");case 7:Mn({type:"exercise/setActionTabs",payload:{key:"insterIp",data:Object(l.a)({},ja.getFieldValue()),type:Ra.actionTabs.type}});case 8:case"end":return Ke.stop()}},Be)})),onCancel:function(){Mn({type:"exercise/setActionTabs",payload:{}})}},n.a.createElement("section",{className:"pl10 pr10"},n.a.createElement(B.a,{activeKey:Xe,onChange:function(Ce){Ee(Ce),ja.resetFields()}},n.a.createElement(ue,{tab:"\u65B0\u589EIP\u5730\u5740",key:"1"}),n.a.createElement(ue,{tab:"\u65B0\u589EIP\u8303\u56F4",key:"2"})),n.a.createElement(dt.a,{form:ja,className:"pt30",name:"form",layout:"vertical",onValuesChange:function(Ce,Ze){$e(Object(l.a)({},Ze))}},Xe==="1"&&n.a.createElement(dt.a.Item,{name:"ip",rules:[{required:!0,message:"\u8BF7\u8F93\u5165IP\u5730\u5740"}],label:"IP\u5730\u5740"},n.a.createElement(nn.a,{open:!1,tokenSeparators:[";",",","\uFF1B"],size:"large",mode:"tags",style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165IP\u5730\u5740,\u53EF\u540C\u65F6\u6DFB\u52A0\u591A\u4E2AIP\u5730\u5740\uFF0C\u4E2D\u95F4\u7528\u82F1\u6587\u7684\u5206\u53F7\u95F4\u9694\u3002",onChange:function(Ce){ja.setFieldsValue({ip:Object(t.a)(Ce.filter(function(Ze){return Object(Wa.a)(Ze)?!0:(d.b.warn("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"),!1)}))})}})),Xe==="2"&&n.a.createElement(me.a,{gutter:[20,20]},n.a.createElement(Ae.a,{flex:"1"},n.a.createElement(dt.a.Item,{name:"startIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740"}],label:"\u8D77\u59CBIP\u5730\u5740"},n.a.createElement(le.a,{maxLength:15,placeholder:"\u8BF7\u8F93\u5165\u8D77\u59CBIP\u5730\u5740",onBlur:function(Ce){var Ze="";Object(Wa.a)(Ce.target.value)?Ze=Ce.target.value:(Ze="",d.b.warn("IP\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165")),ja.setFieldsValue({startIP:Ze})}}))),n.a.createElement(Ae.a,{flex:"1"},n.a.createElement(dt.a.Item,{name:"endIP",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740"},{pattern:/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/,message:"\u8BF7\u8F93\u51650-255\u7684\u7F51\u6BB5"}],label:"\u7ED3\u675FIP\u5730\u5740"},n.a.createElement(le.a,{onBlur:function(Ce){},prefix:n.a.createElement("span",{className:"font14"},(Rn=nr.startIP)===null||Rn===void 0?void 0:Rn.substring(0,nr.startIP.lastIndexOf("."))),maxLength:3,placeholder:"\u8BF7\u8F93\u5165\u7ED3\u675FIP\u5730\u5740\u7684\u540E\u4E09\u4F4D"})))))))},lt=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading;return{exercise:Wt,loading:Rn}})(ot),ft=y("2JKx"),wt=y.n(ft),Et=y("Ot1p"),jt=y("+BJd"),Yt=y("mr32"),wn=B.a.TabPane,fn=nn.a.Option,zn=function(Wt){var Rn,Ra,la,Mn=Wt.exercise,Ca=Wt.loading,Dn=Wt.data,ma=Wt.disabled,ga=Wt.updata,ja=Wt.dispatch,Xa=Object(h.i)(),Cn=Object(h.h)(),nr=dt.a.useForm(),$e=Object(s.a)(nr,1),pt=$e[0],_t=Object(v.useState)({}),Xe=Object(s.a)(_t,2),Ee=Xe[0],Be=Xe[1],Ce=Object(v.useState)("1"),Ze=Object(s.a)(Ce,2),Ke=Ze[0],St=Ze[1],it=Mn.workSetting,Pt=Mn.commonHeader,an=Object(v.useState)(!1),gn=Object(s.a)(an,2),bt=gn[0],Qn=gn[1],wa=Object(v.useState)([]),tr=Object(s.a)(wa,2),Ya=tr[0],ar=tr[1],Ar=Object(v.useState)([]),hr=Object(s.a)(Ar,2),sr=hr[0],va=hr[1],_a=Object(v.useState)(!1),ur=Object(s.a)(_a,2),Ba=ur[0],oa=ur[1],Ua=Object(v.useState)([]),Er=Object(s.a)(Ua,2),Ka=Er[0],yt=Er[1],qa=Object(v.useState)([]),Lr=Object(s.a)(qa,2),_r=Lr[0],Tt=Lr[1],pr=Object(v.useState)({id:Xa.categoryId,exercise_group_id:[]}),Yn=Object(s.a)(pr,2),vr=Yn[0],wr=Yn[1],Xr=Object(v.useState)(0),ai=Object(s.a)(Xr,2),$r=ai[0],ei=ai[1];Object(v.useMemo)(function(){var dr,ka,kr;if(it!=null&&(dr=it.published_course_groups)!==null&&dr!==void 0&&dr.length){var Yr,jr=Object(t.a)(it==null||((Yr=it.published_course_groups)===null||Yr===void 0)?void 0:Yr.map(function(pi){return Object(t.a)(pi.course_group_id)}).flat());ar(Object(t.a)(jr))}else if(it!=null&&it.published_course_groups){var rr;ar(Object(t.a)(it==null||((rr=it.course_groups)===null||rr===void 0)?void 0:rr.map(function(pi){return pi.course_group_id})))}if(it!=null&&(ka=it.exercise)!==null&&ka!==void 0&&ka.group_make_ups||it!=null&&(kr=it.exercise)!==null&&kr!==void 0&&kr.unified_make_up){var Rr;if(oa(!0),it!=null&&(Rr=it.exercise)!==null&&Rr!==void 0&&Rr.group_make_ups){var ti,ri,hi=sr;it==null||((ti=it.exercise)===null||ti===void 0||((ri=ti.group_make_ups)===null||ri===void 0))||ri.map(function(pi,mi){hi[mi]=pi.course_group_id||[]}),va(Object(t.a)(hi))}}},[it]),Object(v.useEffect)(function(){console.log("groupIds:",Ya)},[Ya]),Object(v.useEffect)(function(){console.log("selectGroupIds:",sr)},[sr]);var Or=function(){var dr=Object(c.a)(C.a.mark(function ka(kr){var Yr;return C.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:return rr.next=2,Object(U.L)(Object(l.a)({},vr));case 2:Yr=rr.sent,Tt(Object(t.a)(Yr.users.map(function(Rr){return Rr.key=String(Rr.id),Rr}).filter(function(Rr){var ti;return console.log("openKeys",Dn.group_make_ups[$r].students,$r),!((ti=Dn.group_make_ups[$r].students)!==null&&ti!==void 0&&ti.some(function(ri){return ri.id===Rr.id}))})));case 4:case"end":return rr.stop()}},ka)}));return function(kr){return dr.apply(this,arguments)}}(),za=[,{title:"\u5B66\u751F\u59D3\u540D",dataIndex:"name"},{title:"\u5206\u73ED",dataIndex:"course_group_name"}],La={onChange:function(ka,kr){yt(Object(t.a)(kr)),console.log("selectedRowKeys: ".concat(ka),"selectedRows: ",kr)},getCheckboxProps:function(ka){return{disabled:ka.name==="Disabled User",name:ka.name}}},sa=function(ka){return ma?!0:Pt.exercise_status!==3},In=function(ka){var kr,Yr,jr;return ma?!0:Pt.exercise_status===2&&!(it!=null&&(kr=it.exercise)!==null&&kr!==void 0&&(Yr=kr.group_make_ups)!==null&&Yr!==void 0&&(jr=Yr[ka])!==null&&jr!==void 0&&jr.course_groups)?!1:Pt.exercise_status!==3},cr=function(ka){if(ma)return!0;if(Pt.exercise_status===2){var kr,Yr,jr;return it==null||((kr=it.exercise)===null||kr===void 0||((Yr=kr.group_make_ups)===null||Yr===void 0||((jr=Yr[ka])===null||jr===void 0)))?void 0:jr.is_all}return Pt.exercise_status!==3};return n.a.createElement(n.a.Fragment,null,n.a.createElement(me.a,null,n.a.createElement(Ae.a,{span:24},n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,{flex:"1"},n.a.createElement("h1",{className:"mt15"},"\u8865\u8003\u8BBE\u7F6E"," ",n.a.createElement("span",{className:"c-red font14"},"\uFF08\u6B63\u5F0F\u5F00\u59CB\u8865\u8003\u524D\uFF0C\u5207\u8BB0\u4FEE\u6539\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u5927\u4E8E\u5F53\u524D\u65F6\u95F4\uFF09"))))),n.a.createElement(Ae.a,{span:24,className:"mt10"},n.a.createElement(Se.a,{checked:Dn.unified_make_up||((Rn=Dn.group_make_ups)===null||Rn===void 0?void 0:Rn.length),disabled:ma,onChange:function(ka){ka.target.checked?Dn.unified_make_up=!0:(Dn.unified_make_up=!1,delete Dn.group_make_ups),oa(ka.target.checked)}},n.a.createElement("strong",null,"\u5F00\u542F\u8865\u8003")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u5F00\u542F\u540E\u53EF\u9488\u5BF9\u672A\u7B54\u5377\u7684\u5B66\u751F\u8BBE\u7F6E\u8865\u8003\uFF0C\u8865\u8003\u4E0E\u5EF6\u957F\u622A\u6B62\u65F6\u95F4\u4E0D\u53EF\u5171\u5B58\uFF09"))),Ba&&n.a.createElement("section",{className:"ml40"},n.a.createElement(me.a,{align:"middle",className:"mt10"},n.a.createElement(Ae.a,null,n.a.createElement(N.a,{checked:Dn.unified_make_up,disabled:ma,onClick:function(){Dn.unified_make_up=!0,delete Dn.group_make_ups,ga(Object(l.a)({},Dn))}},"\u6240\u6709\u5206\u73ED\u7EDF\u4E00\u8865\u8003")),n.a.createElement(Ae.a,null,n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,{className:"ml50"},"\u8865\u8003\u6263\u5206"),n.a.createElement(Ae.a,{className:"ml10 mr10"},n.a.createElement($.a,{min:0,max:100,placeholder:"\u4E3A\u7A7A\u4EE3\u8868\u4E0D\u6263\u5206",disabled:ma||Pt.exercise_status!==3,onChange:function(ka){Dn.make_up_score=ka,ga(Object(l.a)({},Dn))},value:Dn.make_up_score,style:{width:150}})),n.a.createElement(Ae.a,null,"(\u5206)")))),((Ra=it.course_groups)===null||Ra===void 0?void 0:Ra.length)>0&&n.a.createElement(me.a,{align:"middle",className:"mt10"},n.a.createElement(Ae.a,null,n.a.createElement(N.a,{disabled:ma||Pt.exercise_status!==3,checked:Dn.group_make_ups,onClick:function(){var ka;delete Dn.unified_make_up,Dn.group_make_ups=(it==null||((ka=it.exercise)===null||ka===void 0)?void 0:ka.group_make_ups)||[{students:[],course_group_id:[],score:0}],ga(Object(l.a)({},Dn))}},"\u5404\u73ED\u5206\u522B\u8865\u8003"))),(la=Dn.group_make_ups)===null||la===void 0?void 0:la.map(function(dr,ka){var kr,Yr;return n.a.createElement("div",{key:ka},n.a.createElement(me.a,{align:"middle",className:"mt10"},n.a.createElement(Ae.a,{flex:"100px"},"\u8865\u8003\u89C4\u5219",ka+1),n.a.createElement(Ae.a,{className:"ml10"},n.a.createElement(nn.a,{style:{width:307},value:dr.course_group_id,mode:"multiple",placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED",disabled:In(ka),onChange:function(rr,Rr,ti){sr[ka]=rr,Dn.group_make_ups[ka].course_group_id=rr,ga(Object(l.a)({},Dn)),va(Object(t.a)(sr))}},it==null||((kr=it.course_groups)===null||kr===void 0)?void 0:kr.map(function(jr,rr){var Rr=[];return Ya.includes(jr.course_group_id)?(sr.length&&(Rr=sr.filter(function(ti,ri){return ka===ri?!1:!!ti.includes(jr.course_group_id)})),Rr.length?void 0:n.a.createElement(fn,{value:jr.course_group_id,key:rr},jr.course_group_name)):void 0}))),n.a.createElement(Ae.a,null,n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,{className:"ml50"},"\u8865\u8003\u6263\u5206"),n.a.createElement(Ae.a,{className:"ml10 mr10"},n.a.createElement($.a,{value:dr.score,min:0,max:100,style:{width:150},placeholder:"\u4E3A\u7A7A\u4EE3\u8868\u4E0D\u6263\u5206",disabled:In(ka),onChange:function(rr){Dn.group_make_ups[ka].score=rr,ga(Object(l.a)({},Dn))}})),n.a.createElement(Ae.a,null,"(\u5206)")))),n.a.createElement(me.a,{className:"mt20"},n.a.createElement(Ae.a,{flex:"220px"},n.a.createElement(N.a.Group,{name:"student",value:dr.is_all,disabled:cr(ka),onChange:function(rr){if(rr.target.value)delete Dn.group_make_ups[ka].students;else{var Rr,ti,ri;Dn.group_make_ups[ka].students=(it==null||((Rr=it.exercise)===null||Rr===void 0||((ti=Rr.group_make_ups)===null||ti===void 0||((ri=ti[ka])===null||ri===void 0)))?void 0:ri.students)||[]}Dn.group_make_ups[ka].is_all=rr.target.value,ga(Object(l.a)({},Dn))}},n.a.createElement(N.a,{value:!0},"\u5168\u90E8\u672A\u7B54\u5B66\u751F"),n.a.createElement(N.a,{value:!1},"\u6307\u5B9A\u5B66\u751F"))),n.a.createElement(Ae.a,{flex:"1"},!Dn.group_make_ups[ka].is_all&&n.a.createElement("div",{onClick:function(){var rr;if(!((rr=sr[ka])!==null&&rr!==void 0&&rr.length)){d.b.warn("\u8BF7\u5148\u9009\u62E9\u8865\u8003\u73ED\u7EA7");return}ma||(vr.exercise_group_id=sr[ka],Qn(!0),yt([]),ei(ka),Tt([]),Or({page:1}))},className:"".concat(ma&&"disabledStyle"),style:{minHeight:28,border:"1px solid #ccc",padding:4}},(Yr=dr.students)===null||Yr===void 0?void 0:Yr.map(function(jr,rr){return n.a.createElement(Yt.a,{key:rr,closable:jr.add||Pt.exercise_status>2,onClose:function(){dr.students.splice(rr,1),ga(Object(l.a)({},Dn))}},jr.name)}))),n.a.createElement(Ae.a,{flex:"100px",className:"tr"},ka>0&&Pt.exercise_status===3&&n.a.createElement(ra.a,{onClick:function(){Dn.group_make_ups.splice(ka,1),ga(Object(l.a)({},Dn))}}),n.a.createElement(Fn.a,{className:"c-green ml20",onClick:function(){Dn.group_make_ups.push({students:[],course_group_id:[],score:0,is_all:!0}),ga(Object(l.a)({},Dn))}}))))}),n.a.createElement(i.a,{title:"\u6307\u5B9A\u8865\u8003\u5B66\u751F",visible:bt,onCancel:function(){return Qn(!1)},destroyOnClose:!0,onOk:function(){Dn.group_make_ups[$r].students=Dn.group_make_ups[$r].students.concat(Ka.map(function(ka){return ka.add=!0,ka})),Qn(!1),console.log("data:",Dn),ga(Object(l.a)({},Dn))}},n.a.createElement(W.a,{columns:[].concat(za),dataSource:Object(t.a)(_r),rowSelection:Object(l.a)({type:"checkbox"},La),pagination:{pageSize:10,defaultCurrent:1}}))))},jn=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading;return{exercise:Wt,loading:Rn}})(zn),$t=y("m3rI"),yn=le.a.TextArea,pn=vt.a.RangePicker,On=nn.a.Option,cn=function(Wt){var Rn,Ra,la,Mn,Ca,Dn,ma,ga,ja,Xa,Cn=Wt.exercise,nr=Wt.globalSetting,$e=Wt.loading,pt=Wt.dispatch,_t=Object(h.i)(),Xe=Object(h.h)(),Ee=Cn.workSetting,Be=Cn.commonHeader,Ce=Object(v.useState)(!0),Ze=Object(s.a)(Ce,2),Ke=Ze[0],St=Ze[1],it=Object(v.useState)([]),Pt=Object(s.a)(it,2),an=Pt[0],gn=Pt[1],bt=Object(v.useState)({}),Qn=Object(s.a)(bt,2),wa=Qn[0],tr=Qn[1],Ya=Object(v.useState)([]),ar=Object(s.a)(Ya,2),Ar=ar[0],hr=ar[1],sr=Object(v.useState)(),va=Object(s.a)(sr,2),_a=va[0],ur=va[1],Ba=dt.a.useForm(),oa=Object(s.a)(Ba,1),Ua=oa[0],Er=Object(v.useState)([]),Ka=Object(s.a)(Er,2),yt=Ka[0],qa=Ka[1],Lr=Object(v.useState)({ip_bind:!1,export_page_num:40,ip_limit:null,public_ip:[],inner_ip:[],screen_open:!1,screen_num:3,screen_sec:5,open_camera:!1,identity_verify:!1,open_phone_video_recording:!1,photo_count:5,open_make_up:!1,unified_setting:!1,publish_time:"",end_time:"",group_make_ups:[],unified_make_up:!1,make_up_score:0,time:"",choice_random:!1,question_random:!1,show_statistic:!1,assistant_auth:!1,answer_open:!1,score_open:!1,answered_open:!0,open_score:!0,open_total_score:!0,file_list:[],show_title:!1,show_body:!1,show_info:!1,show_table:!0,show_user:!1,show_no:!1,show_group:!0,show_desc:!1,description:"",attachment_id:"",enable_last_times:!1,last_times:1}),_r=Object(s.a)(Lr,2),Tt=_r[0],pr=_r[1];_t.category=_t.categoryId,Object(v.useEffect)(function(){wr()},[Ee]),Object(v.useEffect)(function(){pt({type:"exercise/getWorkSetting",payload:Object(l.a)({},_t)}),Object(Je.s)()||Yn()},[]);function Yn(){return vr.apply(this,arguments)}function vr(){return vr=Object(c.a)(C.a.mark(function sa(){var In;return C.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(_.a)("/api/courses/".concat(_t==null?void 0:_t.coursesId,"/exercises/overload_alert.json"),{method:"get",params:{course_id:_t==null?void 0:_t.coursesId}});case 2:In=dr.sent,ur(In==null?void 0:In.alert);case 4:case"end":return dr.stop()}},sa)})),vr.apply(this,arguments)}Object(v.useEffect)(function(){Cn.actionTabs.key==="insterIp"&&(Cn.actionTabs.data.ip?Tt[Cn.actionTabs.type]=[].concat(Object(t.a)(Tt[Cn.actionTabs.type]||[]),Object(t.a)(Cn.actionTabs.data.ip)):Tt[Cn.actionTabs.type]=[].concat(Object(t.a)(Tt[Cn.actionTabs.type]||[]),["".concat(Cn.actionTabs.data.startIP,",").concat(Cn.actionTabs.data.startIP.substring(0,Cn.actionTabs.data.startIP.lastIndexOf("."))+"."+Cn.actionTabs.data.endIP)]),pr(Object(l.a)({},Tt)))},[Cn.actionTabs]);var wr=function(){var In,cr,dr,ka,kr,Yr,jr,rr=JSON.parse(JSON.stringify(Ee));Object.keys(Tt).map(function(Rr){var ti,ri,hi;if(Tt[Rr]=(rr==null||((ti=rr.exercise)===null||ti===void 0)?void 0:ti[Rr])||(rr==null||((ri=rr.exercise_header)===null||ri===void 0)?void 0:ri[Rr]),rr!=null&&(hi=rr.exercise_header)!==null&&hi!==void 0&&hi[Rr]){var pi;Tt[Rr]=rr==null||((pi=rr.exercise_header)===null||pi===void 0)?void 0:pi[Rr]}else{var mi;Tt[Rr]=rr==null||((mi=rr.exercise)===null||mi===void 0)?void 0:mi[Rr]}}),Tt.file_list=rr!=null&&(In=rr.exercise_header)!==null&&In!==void 0&&In.attachment_id?[{uid:rr==null||((cr=rr.exercise_header)===null||cr===void 0)?void 0:cr.attachment_id,id:rr==null||((dr=rr.exercise_header)===null||dr===void 0)?void 0:dr.attachment_id,url:rr==null||((ka=rr.exercise_header)===null||ka===void 0)?void 0:ka.photo_url}]:[],yt=(rr==null||((kr=rr.published_course_groups)===null||kr===void 0)?void 0:kr.map(function(Rr){return{course_group_id:Rr.course_group_id,end_time:Rr.course_end_time,publish_time:Rr.course_publish_time}}))||[{}],Ee==null||((Yr=Ee.course_groups)===null||Yr===void 0)||Yr.map(function(Rr,ti){Rr.cilckkey="",Rr.isselect=!1}),Ee==null||((jr=Ee.course_groups)===null||jr===void 0)||jr.map(function(Rr,ti){var ri;Ee==null||((ri=Ee.published_course_groups)===null||ri===void 0)||ri.map(function(hi,pi){var mi;hi!=null&&(mi=hi.course_group_id)!==null&&mi!==void 0&&mi.includes(Rr==null?void 0:Rr.course_group_id)&&(Rr.cilckkey=pi,Rr.isselect=!0)})}),console.log("data:",Tt,Ee),pr(Tt),qa(yt)},Xr=function(){var In,cr,dr,ka,kr,Yr=JSON.parse(JSON.stringify(Tt));if(Yr.categoryId=_t.categoryId,Yr.publish_time_groups=yt,Yr.attachment_id=((In=Yr.file_list)===null||In===void 0||((cr=In[0])===null||cr===void 0||((dr=cr.response)===null||dr===void 0))?void 0:dr.id)||null,delete Yr.file_list,Tt.unified_setting){if(!Tt.publish_time||!Tt.end_time)throw d.b.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")}else{if(!yt.length){d.b.warn("\u63D0\u4EA4\u5931\u8D25\uFF1A\u5206\u73ED\u53D1\u5E03\u8BBE\u7F6E\u4E0D\u80FD\u4E3A\u7A7A");return}delete Yr.publish_time,delete Yr.end_time,yt.map(function(rr){var Rr;if(!rr.course_group_id||!((Rr=rr.course_group_id)!==null&&Rr!==void 0&&Rr.length))throw d.b.error("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A");if(!rr.publish_time||!rr.end_time)throw d.b.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")})}if(Tt.open_camera&&Tt.photo_count<1)throw d.b.error("\u8BF7\u586B\u5199\u672C\u573A\u8003\u8BD5\u6700\u5927\u62CD\u6444\u6B21\u6570"),new String("\u8BF7\u586B\u5199\u672C\u573A\u8003\u8BD5\u6700\u5927\u62CD\u6444\u6B21\u6570");if(Tt.ip_limit!=="no"&&!((ka=Tt.public_ip)!==null&&ka!==void 0&&ka.length)&&!((kr=Tt.inner_ip)!==null&&kr!==void 0&&kr.length))throw d.b.error("\u8BF7\u586B\u5199\u516C\u7F51IP\u6216\u5185\u7F51IP\u5730\u5740"),new String("\u8BF7\u586B\u5199\u5185\u7F51IP\u5730\u5740");if(Tt.open_camera||Tt.screen_open)var jr=i.a.confirm({title:"\u8003\u8BD5\u8BF4\u660E",className:"custom-modal-divider",icon:null,width:750,content:n.a.createElement("div",{className:"font16 p20"},Tt.open_camera&&n.a.createElement(me.a,{align:"",justify:"start",className:"mt20"},n.a.createElement(Ae.a,{flex:"24px"},n.a.createElement("span",{className:"iconfont icon-kaiqishexiangtou c-blue mr20 font24"})),n.a.createElement(Ae.a,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u6444\u50CF\u9632\u4F5C\u5F0A\u529F\u80FD\uFF0C",n.a.createElement("span",{className:"c-red"},"\u8FD9\u9700\u8981\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907"),"\u3002Educoder\u5E73\u53F0\u5C06\u4F1A\u4E25\u683C\u4FDD\u62A4\u6240\u6709\u5B66\u751F\u7684\u7167\u7247\u548C\u89C6\u9891\uFF0C\u5E76\u627F\u8BFA\u4E0D\u5728\u672C\u5E73\u53F0\u4EE5\u5916\u4F7F\u7528\u3002",n.a.createElement("br",null),"\u8BF7\u786E\u8BA4\uFF1A\u4E3A\u4E25\u683C\u76D1\u7763\u8003\u8BD5\u4EE5\u83B7\u5F97\u516C\u5E73\uFF0C\u60A8\u540C\u610F\u5E76\u548C\u8981\u6C42Educoder\u5E73\u53F0\u5728\u672C\u6B21\u8003\u8BD5\u4E2D\u8C03\u7528\u5B66\u751F\u7528\u6237\u7684\u6444\u50CF\u8BBE\u5907\u5E76\u83B7\u53D6\u5B66\u751F\u7684\u5F71\u50CF\u4FE1\u606F\u3002")),Tt.screen_open&&n.a.createElement(me.a,{justify:"start",className:"mt20"},n.a.createElement(Ae.a,{flex:"24px",className:"mr20"},n.a.createElement("span",{className:"iconfont icon-kaiqifangqieping c-blue font24"})),n.a.createElement(Ae.a,{flex:"1"},"\u60A8\u5DF2\u5F00\u542F\u8003\u8BD5\u4E2D\u9632\u5207\u5C4F\u529F\u80FD\uFF0C\u8FD9\u9879\u529F\u80FD\u6682\u65F6\u4EC5\u652F\u6301\u8C37\u6B4C\u3001\u706B\u72D0\u6D4F\u89C8\u5668\u3002 \u8BF7\u786E\u4FDD\uFF1A\u5728\u6B63\u5F0F\u5F00\u59CB\u8003\u8BD5\u524D\u901A\u77E5\u5168\u4F53\u5B66\u751F\uFF0C\u4F7F\u7528"," ",n.a.createElement("img",{width:"26",src:bn.e})," ",n.a.createElement("span",{className:"c-red"},"\u8C37\u6B4C\u6D4F\u89C8\u5668"),"\u6216",n.a.createElement("img",{width:"26",src:bn.n})," ",n.a.createElement("span",{className:"c-red"},"\u706B\u72D0\u6D4F\u89C8\u5668"),"\u8FDB\u884C\u8003\u8BD5\u3002")),n.a.createElement("p",{className:"ml40 mt40"},n.a.createElement(Se.a,{onChange:function(Rr){return jr.update({okButtonProps:{disabled:!Rr.target.checked}})}},"\u6211\u5DF2\u9605\u8BFB"))),onOk:function(){ai(Yr)},okButtonProps:{disabled:!0}});else ai(Yr)},ai=function(In){Object(U.db)(Object(l.a)({},In)).then(function(cr){cr.status===0&&(d.b.success("\u66F4\u65B0\u6210\u529F"),pt({type:"exercise/getCommonHeader",payload:Object(l.a)({},_t)}),pt({type:"exercise/getWorkSetting",payload:Object(l.a)({},_t)}),St(!0))})},$r=function(In){return In&&In1&&!(In!=null&&In.new)?!0:Ee!=null&&(dr=Ee.published_course_groups)!==null&&dr!==void 0&&dr.some(function(ka){return ka.course_group_id===In.course_group_id})?Ke:!1},za=function(In){var cr,dr;if(Ke)return[!0,!0];if((Ee==null||((cr=Ee.exercise)===null||cr===void 0)?void 0:cr.exercise_status)>1)return In!=null&&In.new?[!1,!1]:[!0,!1];if(Ee!=null&&(dr=Ee.published_course_groups)!==null&&dr!==void 0&&dr.some(function(kr){return kr.course_group_id===In.course_group_id})){var ka;return Ke||(Ee==null||((ka=Ee.exercise)===null||ka===void 0)?void 0:ka.exercise_status)>1?[!0,!1]:[!1,!1]}else return[!1,!1]},La={disabled:Ke,multiple:!1,listType:"picture-card",onPreview:function(In){Ot.a.publish("preview-image",In.thumbUrl)},withCredentials:!0,fileList:Tt.file_list,beforeUpload:function(In){var cr=In.size/1024;return cr>200?(d.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(200KB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20"),!1):!0},action:"".concat($t.a.API_SERVER,"/api/attachments.json"),onChange:function(In){var cr=In.fileList.filter(function(dr){return!!dr.status});Tt.file_list=cr,pr(Object.assign({},Tt))},onRemove:function(){var sa=Object(c.a)(C.a.mark(function cr(dr){return C.a.wrap(function(kr){for(;;)switch(kr.prev=kr.next){case 0:return Tt.file_list=[],pr(Object.assign({},Tt)),kr.abrupt("return",!0);case 3:case"end":return kr.stop()}},cr)}));function In(cr){return sa.apply(this,arguments)}return In}()};return n.a.createElement("section",{className:[wt.a.form,"mb50 bg-white"].join(" ")},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{span:24},n.a.createElement(me.a,{align:"middle"},n.a.createElement(Ae.a,{flex:"1"},n.a.createElement("h1",{className:"mt15"},"\u53D1\u5E03\u8BBE\u7F6E")),n.a.createElement(Ae.a,null,Object(Je.c)()&&Ke&&n.a.createElement(p.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return St(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")))),((Rn=Ee.course_groups)===null||Rn===void 0?void 0:Rn.length)>0&&n.a.createElement(Ae.a,{span:24,className:"mt10"},n.a.createElement(Se.a,{checked:Tt.unified_setting,disabled:Ke||(Ee==null||((Ra=Ee.exercise)===null||Ra===void 0)?void 0:Ra.exercise_status)>1,onChange:function(){var In;if((Ee==null||((In=Ee.exercise)===null||In===void 0)?void 0:In.exercise_status)>1){d.b.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u5206\u73ED\u7EDF\u4E00\u53D1\u5E03");return}Tt.unified_setting=!Tt.unified_setting,Tt.unified_setting===!1&&yt==""&&qa(yt.concat({})),pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5206\u73ED\u7EDF\u4E00\u53D1\u5E03")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\u5219\u6240\u6709\u5206\u73ED\u4F7F\u7528\u76F8\u540C\u7684\u53D1\u5E03\u8BBE\u7F6E\uFF0C\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u53EF\u4FEE\u6539\uFF1B\u5426\u5219\u5404\u4E2A\u5206\u73ED\u5141\u8BB8\u5355\u72EC\u8BBE\u7F6E)")),n.a.createElement("span",{style:{color:"red"}},(Ee==null||((la=Ee.exercise)===null||la===void 0)?void 0:la.exercise_status)>1&&_a&&"\u5F53\u524D\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\uFF0C\u4E3A\u63D0\u4F9B\u66F4\u597D\u7684\u670D\u52A1\uFF0C\u6211\u4EEC\u5C06\u8FDB\u884C\u670D\u52A1\u5668\u6269\u5BB9\uFF0C\u5EFA\u8BAE\u60A8\u572830\u5206\u949F\u540E\u53D1\u8D77\u8003\u8BD5\u3002\u60A8\u4E5F\u53EF\u4EE5\u7ACB\u5373\u53D1\u5E03\u3002")),Tt.unified_setting&&n.a.createElement("div",null,n.a.createElement(me.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(Ae.a,null,"\u53D1\u5E03\u65F6\u95F4:"),n.a.createElement(Ae.a,{className:"ml5"},n.a.createElement(Ue.a,{placement:"bottom",title:(Ee==null||((Mn=Ee.exercise)===null||Mn===void 0)?void 0:Mn.exercise_status)>1&&"\u53D1\u5E03\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u4E0D\u80FD\u4FEE\u6539"},n.a.createElement(vt.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:pe()(Object(F.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabledDate:$r,disabled:Ke||(Ee==null||((Ca=Ee.exercise)===null||Ca===void 0)?void 0:Ca.exercise_status)>1,value:Tt.publish_time?pe()(Tt.publish_time):"",allowClear:!1,onChange:function(In,cr){Tt.publish_time=cr,Tt.end_time||(Tt.end_time=pe()(In).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),pr(Object.assign({},Tt))}}))),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u5F00\u59CB\u7B54\u9898\u65F6\u95F4)"))),n.a.createElement(me.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(Ae.a,null,"\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(Ae.a,{className:"ml5"},n.a.createElement(vt.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:pe()(Object(F.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Ke,allowClear:!1,value:Tt.end_time?pe()(Tt.end_time):"",disabledDate:ei,onChange:function(In,cr){Tt.end_time=cr,pr(Object.assign({},Tt))}})),n.a.createElement(Ae.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u7ED3\u675F\u7B54\u9898\u65F6\u95F4)")))),!Tt.unified_setting&&n.a.createElement(me.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},n.a.createElement(Ae.a,{span:24},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{span:10}),n.a.createElement(Ae.a,{span:9},n.a.createElement(me.a,{className:"c-grey-c"},n.a.createElement(Ae.a,{flex:"1"},"(\u5B66\u751F\u5F00\u59CB\u7B54\u9898\u65F6\u95F4)"),n.a.createElement(Ae.a,{flex:"1"},"(\u5B66\u751F\u7ED3\u675F\u7B54\u9898\u65F6\u95F4)"))),n.a.createElement(Ae.a,{span:4}))),yt&&yt.map(function(sa,In){return n.a.createElement(Ae.a,{span:24,key:In},n.a.createElement(me.a,{gutter:[8,16]},n.a.createElement(Ae.a,{span:9},n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,"\u53D1\u5E03\u89C4\u5219 ",In+1),n.a.createElement(Ae.a,{style:{flexBasis:332}},n.a.createElement(nn.a,{allowClear:!0,disabled:Or(sa),className:"ml20",mode:"multiple",size:"large",style:{width:"100%"},value:sa.course_group_id,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",optionFilterProp:"label",onChange:function(dr){yt[In].course_group_id=dr,gn(yt.map(function(ka){return ka.course_group_id}).toString().split(",")),qa(yt.slice()),Ee.course_groups.map(function(ka,kr){dr.map(function(Yr,jr){ka.course_group_id===Yr&&(ka.cilckkey=In,ka.isselect=!0)})}),console.log(Ee,"workSetting")},onDeselect:function(dr){Ee.course_groups.map(function(ka,kr){ka.course_group_id===dr&&ka.cilckkey===In&&(ka.cilckkey=In,ka.isselect=!1)})}},Ee.course_groups&&Ee.course_groups.map(function(cr,dr){return n.a.createElement(On,Object(st.a)({key:dr,disabled:(cr==null?void 0:cr.isselect)&&cr.cilckkey!=In,label:cr.course_group_name,value:cr.course_group_id},"key",cr.course_group_id),cr.course_group_name)}))))),n.a.createElement(Ae.a,{span:1}),n.a.createElement(Ae.a,{span:9},n.a.createElement(pn,{disabled:za(sa),disabledDate:$r,style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],showTime:{format:"HH:mm",defaultValue:[pe()(Object(F.d)(),"HH:mm"),pe()(Object(F.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",size:"large",value:sa.publish_time&&[pe()(sa.publish_time),sa.end_time&&pe()(sa.end_time)],onChange:function(dr,ka){Or(sa)||(yt[In].publish_time=ka[0]),yt[In].end_time=ka[1],qa(Object(t.a)(yt))}})),!Ke&&n.a.createElement(Ae.a,{span:4},In>0&&(sa==null?void 0:sa.new)&&n.a.createElement(ra.a,{onClick:function(){yt=yt.filter(function(dr,ka){return In!==ka}),qa(Object(t.a)(yt))}}),n.a.createElement(Fn.a,{className:"c-green ml20",onClick:function(){qa(yt.concat({new:!0}))}}))))})),n.a.createElement(Fe.a,null),((Be==null?void 0:Be.exercise_status)===3||Tt.open_make_up)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(jn,{data:Tt,disabled:Ke,updata:pr}),n.a.createElement(Fe.a,null)),n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement("strong",null,"\u7B54\u9898\u8BBE\u7F6E")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement("span",null,"\u7B54\u9898\u65F6\u957F\uFF1A"),n.a.createElement($.a,{size:"large",disabled:Ke,min:1,value:Tt.time===-1?null:Tt.time,onChange:function(In){Tt.time=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"ml10"},"\u5206\u949F"),n.a.createElement("span",{className:"c-grey-c font12 ml10"},"(\u7A7A\u503C\uFF0C\u4EE3\u8868\u4E0D\u9650\u65F6\u957F\uFF1B\u975E\u7A7A\u503C\uFF0C\u4EE3\u8868\u9650\u5236\u65F6\u957F\uFF0C\u4ECE\u5B66\u751F\u9996\u6B21\u7B54\u9898\u5F00\u59CB\u6301\u7EED\u8BA1\u65F6)")),!(Be!=null&&Be.is_random)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.question_random,disabled:Ke,onChange:function(In){Tt.question_random=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u9898\u76EE\u987A\u5E8F\u968F\u673A\u6253\u4E71")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9898\u76EE\u987A\u5E8F\u6309\u7167\u9898\u578B\u968F\u673A\u663E\u793A)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.choice_random,disabled:Ke,onChange:function(In){Tt.choice_random=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u9009\u9879\u987A\u5E8F\u968F\u673A\u6253\u4E71")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9009\u9879\u987A\u5E8F\u968F\u673A\u663E\u793A)"))),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.enable_last_times,disabled:Ke,onChange:function(In){Tt.enable_last_times=In.target.checked,pr(Object.assign({},Tt))}}),n.a.createElement("span",{className:"ml10 mr10"},"\u8003\u8BD5\u5F00\u59CB\u540E"),n.a.createElement($.a,{precision:0,size:"large",value:Tt==null?void 0:Tt.last_times,disabled:Ke||!Tt.enable_last_times,min:1,onChange:function(In){Tt.last_times=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"ml10"},"\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u8003\u8BD5"),n.a.createElement("span",{className:"c-grey-c font12 ml10"},"(\u9009\u4E2D\uFF0C\u5219\u8D85\u8FC7\u65F6\u95F4\u540E\uFF0C\u5B66\u751F\u65E0\u6CD5\u8FDB\u5165\u8003\u8BD5)"))),n.a.createElement(Fe.a,null),n.a.createElement(n.a.Fragment,null,n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement("strong",null,"\u9632\u4F5C\u5F0A\u8BBE\u7F6E")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.open_camera,disabled:Ke,onChange:function(In){if(!Tt.time){d.b.error("\u4E0D\u9650\u65F6\u957F\u7684\u8003\u8BD5\u4E0D\u53EF\u5F00\u542F\u6444\u50CF\u5934\uFF0C\u8BF7\u586B\u5199\u8003\u8BD5\u65F6\u957F");return}Tt.open_camera=In.target.checked,Tt.photo_count=Tt.photo_count||5,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u8003\u8BD5\u4E2D\u542F\u7528\u62CD\u7167\u76D1\u8003")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53C2\u52A0\u8003\u8BD5\u65F6\u5C06\u4F1A\u8981\u6C42\u8C03\u7528\u6444\u50CF\u5934)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement("span",null,"\u672C\u573A\u8003\u8BD5\u6700\u591A\u62CD\u6444\uFF1A"),n.a.createElement($.a,{size:"large",disabled:Ke||!Tt.open_camera,min:1,defaultValue:5,max:Object(Je.v)()?1e3:10,value:Tt.photo_count,onChange:function(In){Tt.photo_count=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"ml10"},"(\u6B21)"),n.a.createElement("span",{className:"c-grey-c font12 ml10"},"(\u8BF7\u586B\u5199\u4E0D\u5927\u4E8E10\u7684\u6B63\u6574\u6570)")),n.a.createElement(Ae.a,{className:"c-grey-c font12 pl30 mt10"},"\u5982\u5F00\u542F\u9632\u4F5C\u5F0A\u8BBE\u7F6E\uFF0C\u5B66\u751F\u5FC5\u987B\u540C\u610F\u624D\u53EF\u4EE5\u53C2\u52A0\u8003\u8BD5\u3002"),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.screen_open,disabled:Ke,onChange:function(In){Tt.screen_open=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5207\u5C4F\u540E\u5F3A\u5236\u4EA4\u5377"))),Tt.screen_open&&n.a.createElement(Ae.a,{span:24,className:"mt15 pl30 font14"},n.a.createElement("span",{className:"c-grey-333 mr10"},"\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u5207\u6362\u9875\u9762\u8D85\u8FC7"),n.a.createElement($.a,{size:"large",disabled:Ke,min:0,defaultValue:3,max:10,value:Tt.screen_num,onChange:function(In){Tt.screen_num=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"c-grey-333 mr10"},"\uFF08\u6B21\uFF09\u540E\u5C06\u88AB\u5F3A\u5236\u4EA4\u5377\uFF0C\u5207\u6362\u5230\u5176\u4ED6\u9875\u9762"),n.a.createElement($.a,{size:"large",disabled:Ke,min:0,defaultValue:5,max:60,value:Tt.screen_sec,onChange:function(In){Tt.screen_sec=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"c-grey-333"},"\uFF08\u79D2\uFF09\u540E\u5373\u5224\u5B9A\u4E3A\u5207\u5C4F\u3002")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.ip_limit!=="no",disabled:Ke,onChange:function(In){Tt.ip_limit==="no"?Tt.ip_limit="pub":Tt.ip_limit="no",pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP"),n.a.createElement("span",{className:"font12 c-grey-c"},"\uFF08\u4E0D\u5728IP\u8303\u56F4\u4E2D\u7684\u5C06\u65E0\u6CD5\u53C2\u52A0\u6B64\u8003\u8BD5\uFF09"))),Tt.ip_limit!=="no"&&n.a.createElement(Ae.a,{className:"mt15 ml50"},n.a.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u8981\u6C42\u5B66\u751F\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),n.a.createElement("a",{className:"c-blue",target:"_blank",href:"https://www.educoder.net/forums/4478"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))),Tt.ip_limit!=="no"&&n.a.createElement(n.a.Fragment,null,n.a.createElement(me.a,{className:"mt15 ml50 ".concat(wt.a.ipWrp)},n.a.createElement(Ae.a,null,n.a.createElement("span",null,"\u516C\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A")),n.a.createElement(Ae.a,null,!((Dn=Tt.public_ip)!==null&&Dn!==void 0&&Dn.length)&&n.a.createElement("span",null,"\u5F53\u524D\u8FD8\u672A\u8BBE\u7F6EIP\u8303\u56F4"),(ma=Tt.public_ip)===null||ma===void 0?void 0:ma.map(function(sa,In){return n.a.createElement("span",{className:wt.a.ipItem},n.a.createElement("i",null,sa," "),!Ke&&n.a.createElement(da.a,{onClick:function(){i.a.confirm({okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:function(){Tt.public_ip.splice(In,1),pr(Object(l.a)({},Tt))}})},className:" c-grey-c",size:20}))}),Object(Je.c)()&&!Ke&&n.a.createElement("span",{onClick:function(){pt({type:"exercise/setActionTabs",payload:{key:"addIp",type:"public_ip"}})},className:"font14 c-blue ml10"}," ",n.a.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0"))),n.a.createElement(me.a,{className:"mt15 ml50 ".concat(wt.a.ipWrp)},n.a.createElement(Ae.a,null,n.a.createElement("span",null,"\u5185\u7F51IP\u5730\u5740\u8303\u56F4\uFF1A")),n.a.createElement(Ae.a,null,!((ga=Tt.inner_ip)!==null&&ga!==void 0&&ga.length)&&n.a.createElement("span",null,"\u5F53\u524D\u8FD8\u672A\u8BBE\u7F6EIP\u8303\u56F4"),(ja=Tt.inner_ip)===null||ja===void 0?void 0:ja.map(function(sa,In){return n.a.createElement("span",{className:wt.a.ipItem},n.a.createElement("i",null,sa," "),!Ke&&n.a.createElement(da.a,{onClick:function(){Ke||i.a.confirm({title:"\u786E\u5B9A\u5220\u9664\u8BE5IP\u5417\uFF1F",onOk:function(){Tt.inner_ip.splice(In,1),pr(Object(l.a)({},Tt))}})},className:" c-grey-c",size:20}))}),Object(Je.c)()&&!Ke&&n.a.createElement("span",{className:"font14 c-blue ml10",onClick:function(){pt({type:"exercise/setActionTabs",payload:{key:"addIp",type:"inner_ip"}})}}," ",n.a.createElement("i",{className:"iconfont icon-xuanyong font14"})," \u6DFB\u52A0")))),n.a.createElement(me.a,null,n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.ip_bind,disabled:Ke,onChange:function(In){Tt.ip_bind=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"IP\u7ED1\u5B9A"),n.a.createElement("span",{className:"font12 c-grey-c"},"\uFF08\u8003\u8BD5\u5F00\u59CB\u540E\uFF0C\u5B66\u751F\u7684\u8D26\u53F7\u5C06\u81EA\u52A8\u4E0E\u673A\u5668IP\u7ED1\u5B9A\u3002\u5982\u9047\u7279\u6B8A\u60C5\u51B5\uFF0C\u6559\u5E08/\u52A9\u6559\u53EF\u4EE5\u89E3\u9664\u5B66\u751F\u7684IP\u7ED1\u5B9A\uFF09")))),n.a.createElement(Fe.a,null)),n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement("strong",null,"\u5C5E\u6027\u8BBE\u7F6E")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.score_open,disabled:Ke,onChange:function(In){Tt.score_open=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u516C\u5F00\u6210\u7EE9")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5176\u5B83\u5B66\u751F\u7684\u6210\u7EE9\uFF0C\u5426\u5219\u53EA\u80FD\u67E5\u770B\u81EA\u5DF1\u7684\u6210\u7EE9\uFF1B\u4F46\u672A\u9009\u4E2D\u201C\u67E5\u770B\u603B\u6210\u7EE9\u201D\u65F6\u81EA\u5DF1\u548C\u5176\u4ED6\u540C\u5B66\u6210\u7EE9\u5747\u4E0D\u53EF\u89C1)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.answer_open,disabled:Ke,onChange:function(In){Tt.answer_open=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u516C\u5F00\u7B54\u6848")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u8BD5\u5377\u9898\u76EE\u7684\u7B54\u6848\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30 "},n.a.createElement(Se.a,{checked:Tt.show_statistic,disabled:Ke,onChange:function(In){Tt.show_statistic=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u516C\u5F00\u7EDF\u8BA1")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u8BD5\u5377\u622A\u6B62\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u7B54\u9898\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u7B54\u9898\u7EDF\u8BA1\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.open_total_score,disabled:Ke,onChange:function(In){Tt.open_total_score=In.target.checked,In.target.checked===!1&&(Tt.open_score=In.target.checked),pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u67E5\u770B\u603B\u6210\u7EE9")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u770B\u5230\u81EA\u5DF1\u7684\u603B\u6210\u7EE9\u53CA\u6BCF\u4E2A\u5C0F\u9898\u7684\u5F97\u5206\uFF0C\u5426\u5219\u603B\u6210\u7EE9\u548C\u5C0F\u9898\u5F97\u5206\u5747\u4E0D\u80FD\u67E5\u770B)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.open_score,disabled:Tt.open_total_score?Ke:!0,onChange:function(In){Tt.open_score=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u67E5\u770B\u5C0F\u9898\u5F97\u5206")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u770B\u5230\u81EA\u5DF1\u6BCF\u4E2A\u5C0F\u9898\u7684\u5F97\u5206\u8BE6\u60C5\uFF0C\u5426\u5219\u4E0D\u80FD\u67E5\u770B\u3002\u9009\u4E2D\u672C\u9879\u524D\u5FC5\u987B\u5148\u9009\u4E2D\u201C\u67E5\u770B\u603B\u6210\u7EE9\u201D)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.answered_open,disabled:Ke,onChange:function(In){Tt.answered_open=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u67E5\u770B\u5DF2\u7B54\u8BD5\u5377")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u4EA4\u5377\u540E\u80FD\u67E5\u770B\u8BD5\u5377\u548C\u6210\u7EE9\uFF1B\u5426\u5219\u53EA\u80FD\u67E5\u770B\u6210\u7EE9\uFF0C\u4E0D\u80FD\u67E5\u770B\u8BD5\u5377)")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30 pb40"},n.a.createElement(Se.a,{checked:Tt.assistant_auth,disabled:Ke,onChange:function(In){Tt.assistant_auth=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u52A9\u6559\u67E5\u770B\u7B54\u6848")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u52A9\u6559\u67E5\u770B\u7B54\u6848)"))),n.a.createElement(Fe.a,null),Object(Je.c)()&&n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"600px"},n.a.createElement(me.a,null,n.a.createElement(Ae.a,null,n.a.createElement("strong",null,"\u8BD5\u5377\u5BFC\u51FA\u683C\u5F0F\u8BBE\u7F6E")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement("strong",null,"\u5377\u5934\u5DE6\u89D2\u6807"),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u4F4D\u4E8E\u9996\u9875\u5DE6\u4E0A\u89D2\uFF0C\u8BF7\u4EE5\u56FE\u7247\u4E0A\u4F20\uFF1B\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7200k\uFF0C\u5C3A\u5BF8\u4E3A700x500\uFF09")),n.a.createElement("div",{className:"mt15 pl30"},n.a.createElement(aa.a,La,!((Xa=Tt.file_list)!==null&&Xa!==void 0&&Xa.length)&&n.a.createElement("div",null,n.a.createElement(Ta.a,null),n.a.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")))),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.show_title,disabled:Ke,onChange:function(In){Tt.show_title=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5C55\u793A\u8BD5\u5377\u6807\u9898")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u8BD5\u5377\u6807\u9898\uFF09")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30 "},n.a.createElement(Se.a,{checked:Tt.show_body,disabled:Ke,onChange:function(In){Tt.show_body=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5C55\u793A\u8003\u8BD5\u5185\u5BB9")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u8003\u8BD5\u5185\u5BB9\uFF0C\u5373\u672C\u8BD5\u5377\u6240\u5C5E\u8BFE\u7A0B\u540D\u79F0\uFF09")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.show_info,disabled:Ke,onChange:function(In){Tt.show_info=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u5728\u5377\u5934\u5C55\u793A\u9898\u91CF\u3001\u5206\u503C\u3001\u8003\u8BD5\u65F6\u957F\u4FE1\u606F\uFF09")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.show_table,disabled:Ke,onChange:function(In){Tt.show_table=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5C55\u793A\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5219\u7ED9\u51FA\u5B66\u751F\u7684\u5F97\u5206\u3001\u8BC4\u5206\u8868\u683C\uFF09")),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement("strong",null,"\u5BC6\u5C01\u7EBF\u533A\u57DF\u8BBE\u7F6E"),n.a.createElement(Se.a,{className:"pl8",checked:Tt.show_user,disabled:Ke,onChange:function(In){Tt.show_user=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u59D3\u540D")),n.a.createElement(Se.a,{checked:Tt.show_no,disabled:Ke,onChange:function(In){Tt.show_no=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u5B66\u53F7")),n.a.createElement(Se.a,{checked:Tt.show_group,disabled:Ke,onChange:function(In){Tt.show_group=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u4E13\u4E1A\u73ED\u7EA7"))),Object(Je.o)()&&n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement("span",null,"\u6BCF\u9875\u5BFC\u51FA\u6700\u5927\u8BD5\u9898\u6570\uFF1A"),n.a.createElement($.a,{size:"large",min:1,value:Tt.export_page_num?Tt.export_page_num:40,onChange:function(In){Tt.export_page_num=In,pr(Object(l.a)({},Tt))}}),n.a.createElement("span",{className:"ml10"},"\u9898")),n.a.createElement("span",{className:"c-grey-c font12 pl30 pt10"},"\uFF08\u52FE\u9009\u9879\u5C06\u4F1A\u51FA\u73B0\u5728\u9996\u9875\u5DE6\u4FA7\u5BC6\u5C01\u7EBF\u5185\uFF0C\u4E0D\u9009\u5219\u4EE3\u8868\u4E0D\u8BBE\u7F6E\u5BC6\u5C01\u533A\uFF09"),n.a.createElement(Ae.a,{span:24,className:"mt15 pl30"},n.a.createElement(Se.a,{checked:Tt.show_desc,disabled:Ke,onChange:function(In){Tt.show_desc=In.target.checked,pr(Object.assign({},Tt))}},n.a.createElement("strong",null,"\u8003\u8BD5\u8BF4\u660E")),n.a.createElement("span",{className:"c-grey-c font12"},"\uFF08\u9009\u4E2D\u5F00\u542F\u6587\u672C\u7F16\u8F91\u5668\uFF0C\u53EF\u8F93\u5165500\u5B57\u4EE5\u5185\u7684\u8003\u8BD5\u8BF4\u660E\uFF09")),Tt.show_desc&&n.a.createElement("div",{className:"mt15 pl30 pb40"},Ke?n.a.createElement(yn,{style:{height:150,width:550},disabled:!0,value:Tt.description}):n.a.createElement(Et.a,{width:550,height:150,defaultValue:Tt.description,id:"exercise-detail-config-exam-description-id",onChange:function(In){Tt.description=In,pr(Object.assign({},Tt))}})))),n.a.createElement(Ae.a,{flex:1,className:"pt40 mb20"},n.a.createElement("div",{className:"pb10"},"\u793A\u4F8B\u56FE\u7247\u9884\u89C8\uFF1A"),n.a.createElement("img",{src:bn.m}))),!Ke&&n.a.createElement(Ae.a,{className:"mb50 pb10 btn-w120"},n.a.createElement(p.a,{type:"primary",size:"large",onClick:function(){return Xr()}},"\u63D0\u4EA4"),n.a.createElement(p.a,{onClick:function(){St(!0),wr()},type:"primary",size:"large",ghost:!0,className:"ml20"},"\u53D6\u6D88")),n.a.createElement(hn.a,null),n.a.createElement(lt,null))},sn=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading,Ra=Ln.globalSetting;return{exercise:Wt,loading:Rn.effects,globalSetting:Ra}})(cn),En=y("MXD1"),Pn=y("CFYs"),Kn=y("9Bee"),Vn=y("51gm"),ua=y.n(Vn),xa={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u4E3B\u89C2\u9898",5:"\u5B9E\u8BAD\u9898",7:"\u7EC4\u5408\u9898"},rn={1:"\u6EE1\u5206\u4F5C\u7B54",2:"\u90E8\u5206\u5F97\u5206\u4F5C\u7B54",3:"\u96F6\u5206\u4F5C\u7B54",4:"\u672A\u6279"},Vt=function(Wt){var Rn,Ra,la=Wt.exercise,Mn=Wt.loading,Ca=Wt.dispatch,Dn=Object(h.i)(),ma=Object(v.useState)(Object(l.a)(Object(l.a)({},Dn),{sort:"asc",page:1,limit:10})),ga=Object(s.a)(ma,2),ja=ga[0],Xa=ga[1],Cn=Object(h.h)(),nr=la.statisticsList,$e=Object(v.useState)({}),pt=Object(s.a)($e,2),_t=pt[0],Xe=pt[1],Ee=Object(v.useState)([]),Be=Object(s.a)(Ee,2),Ce=Be[0],Ze=Be[1],Ke=Object(v.useState)(""),St=Object(s.a)(Ke,2),it=St[0],Pt=St[1],an=Object(v.useState)(""),gn=Object(s.a)(an,2),bt=gn[0],Qn=gn[1],wa=dt.a.useForm(),tr=Object(s.a)(wa,1),Ya=tr[0],ar=function(){var _a=Object.assign({},Ya.getFieldValue());Object.keys(_a).map(function(ur){_a[ur].includes("all")?(delete ja[ur],Ya.setFieldsValue(Object(st.a)({},ur,"all"))):(ja[ur]=_a[ur],Ya.setFieldsValue(Object(st.a)({},ur,ja[ur])))}),ja.page=1,ja.limit=10,sr()},Ar=function(_a,ur){ja.page=_a,ja.limit=20,Ca({type:"exercise/getExerciseStatistics",payload:Object(l.a)({},ja)})},hr=[{title:"\u63D0\u4EA4\u7387",dataIndex:"commit_percent",align:"center",render:function(_a){return n.a.createElement("span",null,_a===0?0:(_a*100).toFixed(2),"%")}},{title:"\u6700\u4F4E\u5206",dataIndex:"min_score",align:"center",render:function(_a){return n.a.createElement("span",null,_a,"\u5206")}},{title:"\u6700\u9AD8\u5206",dataIndex:"max_score",align:"center",render:function(_a){return n.a.createElement("span",{className:"c-orange"},_a,"\u5206")}},{title:"\u5E73\u5747\u5206",dataIndex:"average_score",align:"center",render:function(_a){return n.a.createElement("span",null,_a,"\u5206")}},{title:"\u4E0D\u53CA\u683C\uFF08\u5F97\u5206 \u4F4E\u4E8E60%\uFF09",dataIndex:"fail_counts",align:"center",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u53CA\u683C\uFF08\u5F97\u520660%~70%\uFF09",dataIndex:"pass_counts",align:"center",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u826F\u597D\uFF08\u5F97\u520670%~90%\uFF09",dataIndex:"good_counts",align:"center",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u4F18\u79C0\uFF08\u5F97\u520690%~100%\uFF09",dataIndex:"best_counts",align:"center",render:function(_a){return n.a.createElement("span",{className:"c-orange"},_a,"\u4EBA")}}],sr=function(){var va=Object(c.a)(C.a.mark(function _a(){var ur;return C.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Ca({type:"exercise/getExerciseStatistics",payload:Object(l.a)({},ja)});case 2:ur=oa.sent,ur!=null&&ur.exercise_counts&&Ze([ur.exercise_counts]);case 4:case"end":return oa.stop()}},_a)}));return function(){return va.apply(this,arguments)}}();return Object(v.useEffect)(function(){sr()},[ja.coursesId]),n.a.createElement(n.a.Fragment,null,n.a.createElement("section",{className:"minH500 bg-white"},n.a.createElement("aside",{className:"pt20"},n.a.createElement(dt.a,{form:Ya,onChange:ar,initialValues:(Rn={},Object(st.a)(Rn,"commit_status","all"),Object(st.a)(Rn,"exercise_group_id","all"),Object(st.a)(Rn,"review","all"),Rn)},n.a.createElement(dt.a.Item,{name:"exercise_group_id"},n.a.createElement(Se.a.Group,{style:{width:"100%"}},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{value:"all",checked:!_t.course_group},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1",className:ua.a.wrap},nr.course_groups&&nr.course_groups.map(function(va,_a){return n.a.createElement(Se.a,{value:va.exercise_group_id,key:_a},va.exercise_group_name,"(",va.exercise_group_students,")")}))))))),n.a.createElement(W.a,{className:"mt30",loading:Mn["exercise/getExerciseStatistics"],pagination:!1,dataSource:Ce,columns:hr}),n.a.createElement("div",{className:ua.a.title},n.a.createElement(me.a,{align:"middle",style:{height:"100%"},className:"ml5 mr5"},n.a.createElement(Ae.a,{flex:1,className:"font16"},"\u7EDF\u8BA1\u8BE6\u60C5"),n.a.createElement(Ae.a,{className:"font16"},n.a.createElement("span",{className:"current",onClick:function(){ja.sort=ja.sort==="desc"?"asc":"desc",console.log("xx params.sort: ",ja.sort),Xa(Object(l.a)({},ja)),sr()}},n.a.createElement("span",null,"\u6B63\u786E\u7387"),n.a.createElement("p",{className:"edu-sorter current ".concat(ja.sort)},n.a.createElement("span",{className:"iconfont icon-sanjiaoxing-up"}),n.a.createElement("span",{className:"iconfont icon-sanjiaoxing-down"})))))),n.a.createElement(Y.a,{spinning:Mn["exercise/getExerciseStatistics"]},n.a.createElement("div",{className:"minH200"},nr==null||((Ra=nr.commit_results)===null||Ra===void 0)?void 0:Ra.map(function(va,_a){var ur;return n.a.createElement("aside",{key:_a,className:"font14 c-black mt30"},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:1},va.ques_position,".",xa[va.ques_type]),n.a.createElement(Ae.a,null,"\u6B63\u786E\u7387",n.a.createElement("span",{className:"c-orange"},va.right_percent,"%"))),n.a.createElement("div",null,n.a.createElement(Kn.a,{value:va.ques_title})),n.a.createElement("div",{className:"mt20",style:{display:va.ques_type===5?"none":""}},n.a.createElement(me.a,{className:"c-light-black ",gutter:[24,20]},n.a.createElement(Ae.a,{flex:1},"\u9009\u9879"),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},"\u5C0F\u8BA1"),n.a.createElement(Ae.a,{flex:"200px"},"\u767E\u5206\u6BD4"))),n.a.createElement(Fe.a,{style:{margin:0,marginBottom:20,display:va.ques_type===5?"none":""}}),(va==null?void 0:va.ques_type)===7&&(va==null?void 0:va.sub_exercise_questions.map(function(Ba,oa){var Ua;return n.a.createElement("div",{key:oa},n.a.createElement("div",{style:{marginBottom:10,display:"flex",justifyContent:"space-between"}},n.a.createElement(Ae.a,null,n.a.createElement("span",null,Ba.ques_title)),n.a.createElement(Ae.a,null,"\u6B63\u786E\u7387",n.a.createElement("span",{className:"c-orange"},Ba.right_percent,"%"))),Ba==null||((Ua=Ba.ques_details)===null||Ua===void 0)?void 0:Ua.map(function(Er,Ka){return n.a.createElement(me.a,{key:Ka,gutter:[24,24],className:"font14 c-black"},n.a.createElement(Ae.a,{flex:1},n.a.createElement(me.a,{style:{alignItems:"center"}},va.ques_type===2||va.ques_type===3||va.ques_type===4?"":n.a.createElement(Ae.a,null,F.o[Ka],". "),va.ques_type===4?n.a.createElement(Ae.a,{flex:1,className:"ml10"},n.a.createElement(Kn.a,{value:rn[Er.choice_text]})):n.a.createElement(Ae.a,{flex:1,className:"ml10"},n.a.createElement(Kn.a,{value:Er.choice_text==="wrong"?"\u586B\u5199\u4E86\u9519\u8BEF\u7B54\u6848":Er.choice_text})))),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},n.a.createElement("span",{className:Er.choice_right_boolean&&"c-green"},Er.choice_users_count||0)),n.a.createElement(Ae.a,{flex:"200px"},n.a.createElement(Pn.a,{status:"active",strokeColor:"#2abd8b",percent:(Er.choice_percent*100).toFixed(),width:200})))}),n.a.createElement(Fe.a,{style:{margin:0,marginBottom:20}}))})),(va==null?void 0:va.ques_type)<7&&(va==null||((ur=va.ques_details)===null||ur===void 0)?void 0:ur.map(function(Ba,oa){return va.ques_type===5?n.a.createElement("div",{className:"mt20",key:oa},n.a.createElement(me.a,{gutter:[24,24],className:"font14 c-black"},n.a.createElement(Ae.a,{flex:1},Ba.challenge_position,".",Ba.challenge_name),n.a.createElement(Ae.a,null,"\u6B63\u786E\u7387",n.a.createElement("span",{className:"c-orange"},Ba.challenge_percent,"%"))),n.a.createElement("div",null,n.a.createElement(me.a,{className:"c-light-black ",gutter:[24,20]},n.a.createElement(Ae.a,{flex:1},"\u9009\u9879"),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},"\u5C0F\u8BA1"),n.a.createElement(Ae.a,{flex:"200px"},"\u767E\u5206\u6BD4"))),n.a.createElement(Fe.a,{style:{margin:0,marginBottom:20}}),Ba==null?void 0:Ba.challenge_details.map(function(Ua,Er){return n.a.createElement(me.a,{key:Er,gutter:[24,24],className:"font14 c-black"},n.a.createElement(Ae.a,{flex:1},n.a.createElement(me.a,null,n.a.createElement(Ae.a,{flex:1,className:"ml10"},n.a.createElement(Kn.a,{value:rn[Ua.choice_text]})))),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},n.a.createElement("span",{className:Ua.choice_right_boolean?"c-green":""},Ua.choice_users_count||0)),n.a.createElement(Ae.a,{flex:"200px"},n.a.createElement(Pn.a,{status:"active",strokeColor:"#2abd8b",percent:(Ua.choice_percent*100).toFixed(),width:200})))}),n.a.createElement(me.a,{className:"",gutter:[24,20]},n.a.createElement(Ae.a,{className:"ml10",flex:1},"\u6709\u6548\u586B\u5199\u91CF"),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},va.effictive_counts),n.a.createElement(Ae.a,{flex:"200px"})),n.a.createElement(Fe.a,{style:{margin:0,marginBottom:20}})):n.a.createElement(me.a,{key:oa,gutter:[24,24],className:"font14 c-black"},n.a.createElement(Ae.a,{flex:1},n.a.createElement(me.a,null,va.ques_type===2||va.ques_type===3||va.ques_type===4||va.ques_type===6?"":n.a.createElement(Ae.a,null,F.o[oa],". "),va.ques_type===4||va.ques_type===6?n.a.createElement(Ae.a,{flex:1,className:"ml10"},n.a.createElement(Kn.a,{value:rn[Ba.choice_text]})):n.a.createElement(Ae.a,{flex:1,className:"ml10"},n.a.createElement(Kn.a,{value:Ba.choice_text==="wrong"?"\u586B\u5199\u4E86\u9519\u8BEF\u7B54\u6848":Ba.choice_text})))),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},n.a.createElement("span",{className:Ba.choice_right_boolean?"c-green":""},Ba.choice_users_count||0)),n.a.createElement(Ae.a,{flex:"200px"},n.a.createElement(Pn.a,{status:"active",strokeColor:"#2abd8b",percent:(Ba.choice_percent*100).toFixed(),width:200})))})),n.a.createElement(me.a,{style:{display:va.ques_type===5?"none":""},className:"",gutter:[24,20]},n.a.createElement(Ae.a,{className:va.ques_type===2||va.ques_type===3||va.ques_type===4?"ml10":"",flex:1},"\u6709\u6548\u586B\u5199\u91CF"),n.a.createElement(Ae.a,{flex:"60px",className:"tc"},va.effictive_counts),n.a.createElement(Ae.a,{flex:"200px"})))})))),n.a.createElement("div",{className:"tc mt30 mb50"},n.a.createElement(G.a,{hideOnSinglePage:!1,total:nr==null?void 0:nr.questions_count,current:ja.page||1,pageSize:ja.limit,onChange:function(_a,ur){ja.page=_a,ja.limit=ur,sr()}})))},Dt=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading;return{exercise:Wt,loading:Rn.effects}})(Vt),zt=y("cVA7"),xt=y.n(zt),ln={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898",5:"\u5B9E\u8BAD\u9898",6:"\u7F16\u7A0B\u9898",7:"\u7EC4\u5408\u9898"},Kt=function(Wt){var Rn,Ra=Wt.exercise,la=Wt.loading,Mn=Wt.dispatch,Ca=Object(h.i)(),Dn=Object(h.h)(),ma=Ra.statisticsList,ga=Object(v.useState)({}),ja=Object(s.a)(ga,2),Xa=ja[0],Cn=ja[1],nr=Object(v.useState)([]),$e=Object(s.a)(nr,2),pt=$e[0],_t=$e[1],Xe=Object(v.useState)(""),Ee=Object(s.a)(Xe,2),Be=Ee[0],Ce=Ee[1],Ze=Object(v.useState)(""),Ke=Object(s.a)(Ze,2),St=Ke[0],it=Ke[1],Pt=Object(v.useState)({}),an=Object(s.a)(Pt,2),gn=an[0],bt=an[1],Qn=dt.a.useForm(),wa=Object(s.a)(Qn,1),tr=wa[0];Ca.sort="asc";var Ya=function(_a){return{title:{text:"\u300E \u5B66\u751F\u6B63\u786E\u7387\u5206\u5E03\u56FE \u300F",left:"center"},tooltip:{trigger:"item",formatter:"{b} : {c} \u4EBA"},legend:{bottom:0,icon:"circle",left:"center",itemWidth:6,itemHeight:6,data:["100%","90%-100%","70%-90%","60%-70%","60%\u4EE5\u4E0B"].reverse()},series:[{type:"pie",radius:"55%",minAngle:15,center:["50%","50%"],selectedMode:"single",label:{show:!0,position:"outer",normal:{formatter:`{b} + {c}\u4EBA`,color:"#5c5c5c",lineHeight:20}},labelLine:{normal:{length:20,length2:20,lineStyle:{color:"rgba(0,0,0,.45)"}}},data:[{value:_a.details[0].full_count,name:"100%"},{value:_a.details[0].best_count,name:"90%-100%"},{value:_a.details[0].good_count,name:"70%-90%"},{value:_a.details[0].pass_count,name:"60%-70%"},{value:_a.details[0].fails_count,name:"60%\u4EE5\u4E0B"}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},normal:{color:function(Ba){var oa=["#99B8FB","#80E0B9","#8190AA","#F7C739","#EB7E65"];return oa[Ba.dataIndex]}}},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}},ar=function(){var _a=Object.assign({},tr.getFieldValue());Object.keys(_a).map(function(ur){_a[ur].includes("all")?(delete Ca[ur],tr.setFieldsValue(Object(st.a)({},ur,"all"))):(Ca[ur]=_a[ur],tr.setFieldsValue(Object(st.a)({},ur,Ca[ur])))}),Mn({type:"exercise/getExerciseStatistics",payload:Ca})},Ar=function(_a,ur){Ca.page=_a,Ca.limit=20,Mn({type:"exercise/getExerciseStatistics",payload:Object(l.a)({},Ca)})},hr=[{title:"\u63D0\u4EA4\u7387",dataIndex:"commit_percent",render:function(_a){return n.a.createElement("span",null,_a*100,"%")}},{title:"\u6700\u4F4E\u5206",dataIndex:"min_score",render:function(_a){return n.a.createElement("span",null,_a,"\u5206")}},{title:"\u6700\u9AD8\u5206",dataIndex:"max_score",render:function(_a){return n.a.createElement("span",{className:"c-orange"},_a,"\u5206")}},{title:"\u5E73\u5747\u5206",dataIndex:"average_score",render:function(_a){return n.a.createElement("span",null,_a,"\u5206")}},{title:"\u4E0D\u53CA\u683C\uFF08\u5F97\u5206 \u4F4E\u4E8E60%\uFF09",dataIndex:"fail_counts",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u53CA\u683C\uFF08\u5F97\u520660%~70%\uFF09",dataIndex:"pass_counts",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u826F\u597D\uFF08\u5F97\u520670%~90%\uFF09",dataIndex:"good_counts",render:function(_a){return n.a.createElement("span",null,_a,"\u4EBA")}},{title:"\u4F18\u79C0\uFF08\u5F97\u520690%~100%\uFF09",dataIndex:"best_counts",render:function(_a){return n.a.createElement("span",{className:"c-orange"},_a,"\u4EBA")}}],sr=function(){var va=Object(c.a)(C.a.mark(function _a(){var ur;return C.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Mn({type:"exercise/getExerciseStatistics",payload:Object(l.a)({},Ca)});case 2:ur=oa.sent,ur!=null&&ur.exercise_counts&&_t([ur.exercise_counts]);case 4:case"end":return oa.stop()}},_a)}));return function(){return va.apply(this,arguments)}}();return Object(v.useEffect)(function(){sr()},[Ca.coursesId]),n.a.createElement("section",{className:"minH500 ",style:{padding:0}},n.a.createElement("aside",{className:"bg-white inline-block w100 th-bg-white"},n.a.createElement(W.a,{className:"mt10 bg-white",loading:la["exercise/getExerciseStatistics"],pagination:!1,dataSource:pt,columns:hr})),n.a.createElement("aside",{className:"mt20"},n.a.createElement("span",{className:"bold c-black font16 ml20"},"\u5DF2\u4EA4\u5377\u5B66\u751F\u7B54\u9898\u8BE6\u60C5")),n.a.createElement("aside",null,ma==null||((Rn=ma.commit_results)===null||Rn===void 0)?void 0:Rn.map(function(va,_a){return n.a.createElement("div",{key:_a,className:"bg-white pl20 pt20 pr20 pb20 mt20"},n.a.createElement("div",{style:{fontSize:14,color:"#0152d9",fontWeight:500}},_a+1,"\u3001",ln[va.question_type],n.a.createElement("span",{style:{color:"#999",paddingLeft:10}},"(\u5171",va.question_count,"\u5C0F\u9898\uFF0C",va.question_score,"\u5206)"),n.a.createElement("span",{style:{color:"#000",float:"right"}},"\u5168\u73ED\u6B63\u786E\u7387\uFF1A",va.right_percent*100,"%")),n.a.createElement(xt.a,{option:Ya(va),style:{height:370},opts:{renderer:"svg"}}))})))},Xn=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading;return{exercise:Wt,loading:Rn.effects}})(Kt),ha=y("oUNq"),Jn=function(Wt){var Rn=Wt.exercise,Ra=Wt.dispatch,la=Rn.actionTabs.params||{},Mn=la.value,Ca=Object(v.useState)(!1),Dn=Object(s.a)(Ca,2),ma=Dn[0],ga=Dn[1],ja=Object(h.i)(),Xa=ja.categoryId,Cn=ja.coursesId,nr=function(){var $e=Object(c.a)(C.a.mark(function pt(){var _t,Xe,Ee;return C.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(ga(!0),!(Mn!=null&&Mn.is_wrong)){Ce.next=7;break}return Ce.next=4,Object(ha.e)(Xa,{exercise_question_id:Mn==null?void 0:Mn.question_id});case 4:Xe=Ce.sent,Ce.next=10;break;case 7:return Ce.next=9,Object(ha.vb)(Xa,{exercise_question_id:Mn==null?void 0:Mn.question_id});case 9:Xe=Ce.sent;case 10:((_t=Xe)===null||_t===void 0?void 0:_t.status)===0&&(d.b.success((Ee=Xe)===null||Ee===void 0?void 0:Ee.message),Ra({type:"exercise/editExercise",payload:{categoryId:Xa,coursesId:Cn}}),Ra({type:"exercise/setActionTabs",payload:{}})),ga(!1);case 12:case"end":return Ce.stop()}},pt)}));return function(){return $e.apply(this,arguments)}}();return n.a.createElement(i.a,{title:"\u63D0\u793A",width:600,centered:!0,visible:Rn.actionTabs.key==="\u6807\u8BB0\u9519\u9898",confirmLoading:ma,onCancel:function(){return Ra({type:"exercise/setActionTabs",payload:{}})},onOk:nr},n.a.createElement("p",null,Mn!=null&&Mn.is_wrong?"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u9053\u8BD5\u9898\u53D6\u6D88\u6807\u8BB0\u4E3A\u9519\u9898\uFF1F":"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u9053\u8BD5\u9898\u6807\u8BB0\u4E3A\u9519\u9898\uFF1F"),Mn!=null&&Mn.is_wrong?n.a.createElement("p",null,"\u53D6\u6D88\u6807\u8BB0\u540E\u5C06\u6309\u7167\u5B66\u751F\u5B9E\u9645\u7B54\u9898\u60C5\u51B5\u91CD\u65B0\u8BA1\u7B97\u5B66\u751F\u672C\u9053\u8BD5\u9898\u5F97\u5206\u3002"):n.a.createElement("p",null,"\u6807\u8BB0\u540E\u5C06\u91CD\u65B0\u8BA1\u7B97\u5DF2\u4EA4\u5377\u5B66\u751F\u6210\u7EE9\uFF0C\u5C06\u5DF2\u4EA4\u5377\u5B66\u751F\u672C\u9053\u8BD5\u9898\u5F97\u5206\u8C03\u6574\u4E3A",Mn==null?void 0:Mn.question_score,"\u5206\u3002"))},Aa=Object(x.a)(function(Ln){var Wt=Ln.exercise;return{exercise:Wt}})(Jn),Zn=y("RQ0A"),ea=y.n(Zn),er=function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return console.log("---",Wt,Rn,Ra),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["\u7B49\u7EA7A","\u7B49\u7EA7B","\u7B49\u7EA7C","\u7B49\u7EA7D","\u7B49\u7EA7E"]}],yAxis:[{type:"value"}],series:[{name:"\u7F3A\u9677",type:"bar",stack:"Ad",color:["#5c9ef7"],emphasis:{focus:"series"},data:Ra},{name:"\u6F0F\u6D1E",type:"bar",stack:"Ad",color:["#75c87c"],emphasis:{focus:"series"},data:Rn},{name:"\u4EE3\u7801\u89C4\u8303\u6027",type:"bar",stack:"Ad",color:["#f3d460"],emphasis:{focus:"series"},data:Wt}]}},Ha=function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return{dataset:[{source:Wt}],tooltip:{show:!0,formatter:function(Ra){return Ra.value[2]+":"+Ra.value[1]+"\u5206"}},xAxis:{splitLine:{lineStyle:{type:"dashed"}},show:!1},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"scatter",type:"scatter",datasetIndex:0},{name:"line",type:"line",smooth:!0,datasetIndex:1,symbolSize:.1,symbol:"circle",label:{show:!0,fontSize:16},labelLayout:{dx:-20},encode:{label:2,tooltip:1}}]}},Sr=function(Wt){var Rn,Ra,la,Mn,Ca=Wt.shixunHomeworks,Dn=Wt.loading,ma=Wt.dispatch,ga=Object(h.i)(),ja=Object(v.useState)(Object(l.a)(Object(l.a)({},{sort_by:"student_id",sort_direction:"desc"}),ga)),Xa=Object(s.a)(ja,2),Cn=Xa[0],nr=Xa[1],$e=Object(v.useState)(),pt=Object(s.a)($e,2),_t=pt[0],Xe=pt[1],Ee=Object(v.useState)([]),Be=Object(s.a)(Ee,2),Ce=Be[0],Ze=Be[1],Ke=Object(v.useRef)(),St=Object(v.useState)(1),it=Object(s.a)(St,2),Pt=it[0],an=it[1],gn=Object(v.useState)(!1),bt=Object(s.a)(gn,2),Qn=bt[0],wa=bt[1],tr=Object(v.useState)(10),Ya=Object(s.a)(tr,2),ar=Ya[0],Ar=Ya[1],hr=Object(v.useState)([]),sr=Object(s.a)(hr,2),va=sr[0],_a=sr[1];Object(v.useEffect)(function(){Ba()},[]);var ur=[{title:"\u5B66\u53F7",dataIndex:"student_number",sorter:!0,showSorterTooltip:!1,sortOrder:Cn.sort_by==="student_number"?Cn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED",dataIndex:"group_course_name"},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u7F3A\u9677",children:[{title:"\u963B\u65AD",dataIndex:"bug",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"bug",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.critical)}},{title:"\u4E3B\u8981",dataIndex:"bug",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.major)}},{title:"\u6B21\u8981",dataIndex:"bug",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"bug",sorter:!1,showSorterTooltip:!1,sortOrder:Cn.sort_by==="bug"?Cn.sort_direction==="desc"?"descend":"ascend":null,render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.grade)}}]},{title:"\u6F0F\u6D1E",children:[{title:"\u963B\u65AD",dataIndex:"vulnerability",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"vulnerability",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.critical)}},{title:"\u4E3B\u8981",dataIndex:"vulnerability",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.major)}},{title:"\u6B21\u8981",dataIndex:"vulnerability",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"vulnerability",sorter:!1,showSorterTooltip:!1,sortOrder:Cn.sort_by==="vulnerability"?Cn.sort_direction==="desc"?"descend":"ascend":null,render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.grade)}}]},{title:"\u4EE3\u7801\u89C4\u8303\u6027",children:[{title:"\u963B\u65AD",dataIndex:"specification",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"specification",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.critical)}},{title:"\u4E3B\u8981",dataIndex:"specification",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.major)}},{title:"\u6B21\u8981",dataIndex:"specification",render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"specification",sorter:!1,showSorterTooltip:!1,sortOrder:Cn.sort_by==="specification"?Cn.sort_direction==="desc"?"descend":"ascend":null,render:function(yt){return n.a.createElement("span",{className:"current"},yt==null?void 0:yt.grade)}}]},{title:"\u590D\u6742\u4EE3\u7801",dataIndex:"complexity",sorter:!0,showSorterTooltip:!1,sortOrder:Cn.sort_by==="complexity"?Cn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u4EE3\u7801\u884C\u6570",dataIndex:"total_row_number",sorter:!0,showSorterTooltip:!1,sortOrder:Cn.sort_by==="total_row_number"?Cn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8D28\u91CF\u8BC4\u5206",dataIndex:"quality_score",sorter:!0,showSorterTooltip:!1,sortOrder:Cn.sort_by==="quality_score"?Cn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",render:function(yt,qa){return n.a.createElement("a",{target:"_blank",href:"/classrooms/".concat(ga.coursesId,"/exercise/").concat(ga.categoryId,"/analysis/").concat(qa.id),className:"current c-light-primary"},"\u8BE6\u7EC6\u5206\u6790")}}];Object(v.useEffect)(function(){return _t===2&&(Ke.current=setInterval(function(){Ba()},6e4)),function(){clearTimeout(Ke.current)}},[_t]);function Ba(){return oa.apply(this,arguments)}function oa(){return oa=Object(c.a)(C.a.mark(function Ka(){var yt;return C.a.wrap(function(Lr){for(;;)switch(Lr.prev=Lr.next){case 0:return Lr.next=2,Object(_.a)("/api/exercises/".concat(Cn.categoryId,"/check_status.json"),{method:"GET"});case 2:yt=Lr.sent,Xe(yt.status),yt.status!=2&&yt.status!=-1&&(Ua({page:1,limit:10}),clearTimeout(Ke.current));case 5:case"end":return Lr.stop()}},Ka)})),oa.apply(this,arguments)}function Ua(Ka){return Er.apply(this,arguments)}function Er(){return Er=Object(c.a)(C.a.mark(function Ka(yt){var qa;return C.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return an(yt==null?void 0:yt.page),Ar(yt==null?void 0:yt.limit),_r.next=4,Object(_.a)("/api/exercises/".concat(Cn.categoryId,"/code_quality_analysis_index.json"),{method:"GET",params:Object(l.a)({},yt)});case 4:qa=_r.sent,Ze(qa);case 6:case"end":return _r.stop()}},Ka)})),Er.apply(this,arguments)}return console.log("-------",ga),n.a.createElement("section",{style:{paddingBottom:"10px"},className:"minH500 bg-white pt10"},(_t===0||_t===1)&&n.a.createElement("div",null,n.a.createElement("p",{style:{display:"flex"}},n.a.createElement("span",{style:{flex:"1"}},n.a.createElement("label",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A",Ce==null?void 0:Ce.created_at)),n.a.createElement(p.a,{onClick:function(){ma({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B"}})}},"\u91CD\u65B0\u68C0\u6D4B")),n.a.createElement("p",{style:{display:"flex"}},n.a.createElement(me.a,{style:{width:"100%"}},n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement("label",null,"\u5206\u73ED\u60C5\u51B5:")),n.a.createElement(Ae.a,{flex:"80px"},n.a.createElement(Se.a,{checked:(va==null?void 0:va.length)===0,onChange:function(yt){yt.target.checked&&(_a([]),Ua({page:Pt,limit:ar}))},style:{fontSize:"14px"},value:"all"},"\u5168\u90E8")),n.a.createElement(Ae.a,{flex:"1"},n.a.createElement(Se.a.Group,{value:va,onChange:function(){var Ka=Object(c.a)(C.a.mark(function yt(qa){return C.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:_a(Object(t.a)(qa)),Ua({page:Pt,limit:ar,group_course_ids:qa});case 2:case"end":return _r.stop()}},yt)}));return function(yt){return Ka.apply(this,arguments)}}(),style:{width:"100%",fontSize:"14px"}},Ce==null||((Rn=Ce.course_groups)===null||Rn===void 0)?void 0:Rn.map(function(Ka,yt){return n.a.createElement(Se.a,{style:{fontSize:"14px"},value:Ka==null?void 0:Ka.id},Ka==null?void 0:Ka.name,"(",Ka==null?void 0:Ka.count,")")}))))),n.a.createElement("p",{style:{display:"flex"}},n.a.createElement("span",null,n.a.createElement("label",{style:{color:"red"}},"\u6CE8\u610F\uFF1A")),"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u5B8C\u6210\u68C0\u6D4B\u7684\u5206\u73ED"),n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},n.a.createElement("div",null,n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u7B49\u7EA7\u5206\u6790"),(Ce==null?void 0:Ce.grade_statistics)&&n.a.createElement(xt.a,{option:er(Ce==null||((Ra=Ce.grade_statistics)===null||Ra===void 0)?void 0:Ra.map(function(Ka){return Ka.specification_count}),Ce==null||((la=Ce.grade_statistics)===null||la===void 0)?void 0:la.map(function(Ka){return Ka.vulnerability_count}),Ce==null||((Mn=Ce.grade_statistics)===null||Mn===void 0)?void 0:Mn.map(function(Ka){return Ka.bug_count})),style:{height:400,width:600},opts:{renderer:"svg"}})),n.a.createElement("div",null,n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u8D28\u91CF\u5206\u5E03"),(Ce==null?void 0:Ce.quality_scores)&&n.a.createElement(xt.a,{option:Ha(Ce==null?void 0:Ce.quality_scores.map(function(Ka,yt){return[yt+1,Ka==null?void 0:Ka.quality_score,Ka==null?void 0:Ka.user_name]})),style:{height:400,width:600},opts:{renderer:"svg"}}))),n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500,flex:"1"}},"\u8BE6\u7EC6\u5217\u8868"),n.a.createElement(le.a.Search,{size:"large",onSearch:function(yt){Ua({page:1,limit:ar,search:yt})},style:{width:"300px"},enterButton:"\u641C\u7D22"})),n.a.createElement(W.a,{columns:ur,dataSource:Ce==null?void 0:Ce.analysis,bordered:!0,scroll:{x:"calc(800px + 50%)"},pagination:!1,onChange:function(yt,qa,Lr){Lr.field&&(Cn.sort_by=Lr.field),Lr.order||(Cn.sort_direction="asc"),Lr.order==="ascend"&&(Cn.sort_direction="asc"),Lr.order==="descend"&&(Cn.sort_direction="desc"),Lr.order||(Cn.sort_direction="asc"),Ua(Object(l.a)({page:1,limit:ar},Cn))}}),n.a.createElement(G.a,{current:Pt,total:Ce==null?void 0:Ce.total_count,pageSizeOptions:["10","20","50","100","200"],pageSize:ar,style:{textAlign:"center",marginTop:"20px",marginBottom:"20px"},onChange:function(yt,qa){an(yt),Ar(qa),Ua({page:yt,limit:qa,group_course_ids:va})}}))),_t===2&&n.a.createElement("div",{style:{textAlign:"center",margin:"100px 0px",paddingBottom:"100px"}},n.a.createElement("img",{src:ea.a}),n.a.createElement("br",null),n.a.createElement(p.a,{type:"primary",style:{width:"120px",height:"40px"},onClick:function(){Ba()}},"\u5237\u65B0\u9875\u9762")),n.a.createElement(ht,null),n.a.createElement(i.a,{centered:!0,width:1200,title:"\u8BE6\u7EC6\u5206\u6790",destroyOnClose:!0,visible:!!Qn,footer:null,onCancel:function(){return wa(!1)}},n.a.createElement("div",{style:{height:500,overflow:"hidden"}},!!Qn&&n.a.createElement("iframe",{style:{height:"100%",width:"100%"},src:"https://sonar.educoder.net/project/issues?id=".concat(ga==null?void 0:ga.categoryId,"-").concat(Qn==null?void 0:Qn.student_number,"&resolved=false"),frameBorder:"0"}))))},Va=Object(x.a)(function(Ln){var Wt=Ln.shixunHomeworks,Rn=Ln.loading;return{shixunHomeworks:Wt,loading:Rn.effects}})(Sr),Za=y("tf39"),pa=y.n(Za),Ja=function(Wt){var Rn,Ra,la,Mn,Ca,Dn,ma,ga,ja,Xa,Cn,nr,$e=Wt.exercise,pt=Wt.globalSetting,_t=Wt.loading,Xe=Wt.dispatch,Ee=Wt.user,Be=Wt.match,Ce=Object(w.a)(Wt,["exercise","globalSetting","loading","dispatch","user","match"]),Ze=Object(h.i)(),Ke=Object(h.h)(),St=Object(v.useState)([]),it=Object(s.a)(St,2),Pt=it[0],an=it[1],gn=$e.exerciseList,bt=$e.commonHeader,Qn=$e.checkDomain,wa=Object(v.useState)(Ke.query.tabs||0),tr=Object(s.a)(wa,2),Ya=tr[0],ar=tr[1],Ar=Object(v.useState)(pe()(new Date).valueOf()),hr=Object(s.a)(Ar,2),sr=hr[0],va=hr[1],_a=Object(v.useState)(),ur=Object(s.a)(_a,2),Ba=ur[0],oa=ur[1],Ua=Object(v.useState)(!1),Er=Object(s.a)(Ua,2),Ka=Er[0],yt=Er[1],qa=Ee.userInfo,Lr=Object(h.g)();Ze.category=Ke.query.category_id;var _r=!Qn||Qn&&(qa==null||((Rn=qa.course)===null||Rn===void 0)?void 0:Rn.course_identity)<3;Object(v.useEffect)(function(){Xe({type:"exercise/getCommonHeader",payload:Object(l.a)({},Ze)})},[Ze.coursesId]);var Tt=function(){var sa;Object(F.ab)({inner_ip:bt.inner_ip,public_ip:bt.public_ip,ip_limit:bt.ip_limit,ip_bind:bt.ip_bind,open_camera:bt.open_camera,exercise_tips:[bt.open_camera?"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A":""],exerciseId:bt.id,screen_open:bt.screen_open,screen_num:bt.screen_num,coursesId:Ze.coursesId,login:qa.login,history:Ce.history,identity_verify:bt.identity_verify,current_status:bt==null||((sa=bt.user_permission)===null||sa===void 0)?void 0:sa.current_status,open_phone_video_recording:bt==null?void 0:bt.open_phone_video_recording})},pr=function(){Xe({type:"exercise/getExerciseList",payload:Object(l.a)({},Ze)})},Yn=function(){Xe({type:"exercise/getCommonHeader",payload:Object(l.a)({},Ze)});var sa={0:function(){Xe({type:"exercise/getExerciseList",payload:Object(l.a)({},Ze)})},3:function(){Xe({type:"exercise/getWorkSetting",payload:Object(l.a)({},Ze)})}};sa[Ya]&&sa[Ya]()};function vr(La){oa(Object(l.a)({},La))}var wr=[{name:"\u7B54\u9898\u5217\u8868",id:0,compontent:n.a.createElement(qe,{getparams:vr,checkDomainAuthority:_r})},{name:"\u8BD5\u5377\u9884\u89C8",id:2,compontent:n.a.createElement(ae,{activeTabs:Ya})},{name:"\u7EDF\u8BA1\u7ED3\u679C",id:1,compontent:n.a.createElement(Dt,null)},{name:"\u8D28\u91CF\u68C0\u6D4B",id:7,compontent:n.a.createElement(Va,null)},{name:"\u4EE3\u7801\u67E5\u91CD",id:4,compontent:n.a.createElement(at,{key:sr})},{name:"\u89C4\u5219\u8BBE\u7F6E",id:3,compontent:n.a.createElement(sn,null)},{name:"\u4EBA\u8138\u5BA1\u6838",id:5,compontent:n.a.createElement(Gn,null)},{name:"\u6444\u50CF\u76D1\u63A7",id:6,compontent:n.a.createElement(J,null)}].filter(function(La){return bt!=null&&bt.is_random&&(La.name==="\u7EDF\u8BA1\u7ED3\u679C"&&(La.compontent=n.a.createElement(Xn,null)),La.name==="\u8BD5\u5377\u9884\u89C8"&&(La.compontent=n.a.createElement(Qa.default,null))),!0}).filter(function(La){return Object(Je.k)()&&bt!==null&&bt!==void 0&&bt.assistant_auth||Object(Je.c)()?!0:bt!=null&&bt.show_statistic&&(bt==null?void 0:bt.exercise_status)===3?La.name!=="\u8BD5\u5377\u9884\u89C8":La.name==="\u7B54\u9898\u5217\u8868"||La.name==="\u89C4\u5219\u8BBE\u7F6E"}).filter(function(La){return Object(Je.s)()||bt.exercise_status===1||!bt.exist_program?La.name!=="\u4EE3\u7801\u67E5\u91CD":!0}).filter(function(La){return bt.identity_verify?!0:La.name!=="\u4EBA\u8138\u5BA1\u6838"}).filter(function(La){return bt.open_phone_video_recording?!0:La.name!=="\u6444\u50CF\u76D1\u63A7"}).filter(function(La){return Object(F.M)()&&!Object(Je.o)()?La.name!=="\u8BD5\u5377\u9884\u89C8"&&La.name!=="\u7EDF\u8BA1\u7ED3\u679C":!0}).filter(function(La){return _r?!0:La.name!=="\u7EDF\u8BA1\u7ED3\u679C"&&La.name!=="\u8BD5\u5377\u9884\u89C8"&&La.name!=="\u89C4\u5219\u8BBE\u7F6E"}).filter(function(La){return bt!=null&&bt.open_code_quality_analysis?!0:La.name!=="\u8D28\u91CF\u68C0\u6D4B"}).filter(function(La){return!!La});(bt==null?void 0:bt.exercise_status)&&(bt==null?void 0:bt.exercise_status)===1&&wr.splice.apply(wr,[0,1].concat(Object(t.a)(wr.splice(1,1,wr[0])))),Object(v.useEffect)(function(){(bt==null?void 0:bt.exercise_status)&&(bt==null?void 0:bt.exercise_status)===1&&ar("2")},[bt==null?void 0:bt.exercise_status]);var Xr="YYYY-MM-DD",ai=pe()("2020-11-15",Xr),$r=function(){return i.a.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:n.a.createElement(n.a.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")})},ei=function(){return n.a.createElement(o.a,{onClick:function(){var sa=Object(c.a)(C.a.mark(function In(cr){var dr;return C.a.wrap(function(kr){for(;;)switch(kr.prev=kr.next){case 0:kr.t0=cr.key,kr.next=kr.t0==="1"?3:8;break;case 3:return kr.next=5,Object(U.o)(Object(l.a)(Object(l.a)({},Ze),Ba));case 5:return dr=kr.sent,dr.status===0&&Object(P.i)(Object(l.a)(Object(l.a)({},Ze),Ba)),kr.abrupt("break",8);case 8:case"end":return kr.stop()}},In)}));return function(In){return sa.apply(this,arguments)}}()},n.a.createElement(o.a.Item,{key:"1"},"\u5B66\u751F\u6210\u7EE9"),n.a.createElement(o.a.Item,{key:"2"},n.a.createElement("a",{target:"_blank",href:"/classrooms/".concat(Ze.coursesId,"/exercise/").concat(Ze.categoryId,"/export_blank")},"\u5BFC\u51FA\u8BD5\u5377")),n.a.createElement(o.a.Item,{key:"3"},n.a.createElement(g.a,{to:"/classrooms/".concat(Ze.coursesId,"/exportlist/exercise_score")},"\u5386\u53F2\u5BFC\u51FA")))},Or=function(){var La=Object(c.a)(C.a.mark(function sa(In){var cr;return C.a.wrap(function(ka){for(;;)switch(ka.prev=ka.next){case 0:return ka.next=2,Object(_.a)("/api/courses/".concat(Ze==null?void 0:Ze.coursesId,"/exercises/exercise_code_repeat.json"),{method:"post",body:{group_ids:In,id:Ze==null?void 0:Ze.categoryId}});case 2:if(cr=ka.sent,!(cr.status===0)){ka.next=8;break}return ar(4),va(pe()(new Date).valueOf()),Xe({type:"exercise/setActionTabs",payload:{}}),ka.abrupt("return");case 8:cr.status<-2&&d.b.error(cr==null?void 0:cr.message);case 9:case"end":return ka.stop()}},sa)}));return function(In){return La.apply(this,arguments)}}(),za=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u963B\u65AD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u963B\u65AD\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}];return Object(Je.h)()?n.a.createElement("section",{className:pa.a.bg},n.a.createElement("div",{className:"edu-container"},qa.username&&n.a.createElement("section",{className:"animated fadeIn"},n.a.createElement("aside",{className:"mt10"},n.a.createElement(b.a,{separator:">"},n.a.createElement(b.a.Item,null,n.a.createElement(g.a,{to:"/classrooms/".concat(Ze.coursesId,"/exercise")},Ee==null||((Ra=Ee.userInfo)===null||Ra===void 0||((la=Ra.course)===null||la===void 0))?void 0:la.course_name)),n.a.createElement(b.a.Item,null,n.a.createElement(g.a,{to:"/classrooms/".concat(Ze.coursesId,"/exercise")},"\u5728\u7EBF\u8003\u8BD5")),n.a.createElement(b.a.Item,null,"\u8BD5\u5377\u8BE6\u60C5"))),n.a.createElement("aside",{className:[pa.a.title,"mt20"].join(" ")},n.a.createElement(g.a,{to:"/classrooms/".concat(Ze.coursesId,"/exercise")},n.a.createElement(T.a,{className:"font16 c-black"})),Object(F.A)(bt==null?void 0:bt.exercise_status),n.a.createElement("strong",{className:"font20 ml5"},bt==null?void 0:bt.exercise_name),Ya==="7"&&n.a.createElement("span",{className:"iconfont icon-a-wenhaobeifen2",onClick:function(){yt(!0)},style:{fontWeight:800,color:"#0152d9",textAlign:"end",flex:1,cursor:"pointer"}},"\u89C4\u5219\u8BF4\u660E"))),n.a.createElement("aside",{className:"mt30 relative"},n.a.createElement("div",{className:pa.a.export},!Object(Je.s)()&&_r&&bt.exercise_status>1&&bt.exist_program&&n.a.createElement(p.a,{onClick:function(sa){sa.preventDefault(),Xe({type:"exercise/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Ze}})}},n.a.createElement("span",{className:"iconfont icon-daimachazhong font14 mr5"}),"\u4EE3\u7801\u67E5\u91CD"),Object(Je.c)()&&_r&&(bt==null||((Mn=bt.user_permission)===null||Mn===void 0)?void 0:Mn.user_commit_counts)>0&&(bt==null?void 0:bt.exercise_status)===2&&n.a.createElement(p.a,{onClick:function(sa){sa.preventDefault(),Xe({type:"exercise/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",params:Ze}})}},n.a.createElement("span",{className:"iconfont icon-dahuizhongzuo3x font14 mr5"}),"\u6253\u56DE\u91CD\u505A"),Object(Je.c)()&&_r&&(bt==null||((Ca=bt.user_permission)===null||Ca===void 0)?void 0:Ca.exercise_unpublish_count)>0&&n.a.createElement(p.a,{onClick:function(sa){sa.preventDefault();var In=pe()(bt==null?void 0:bt.created_at,Xr),cr=pe()(ai).diff(pe()(In),"days");if(cr>0&&bt!==null&&bt!==void 0&&bt.is_random){$r();return}Xe({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Ze.categoryId],unified_setting:bt==null?void 0:bt.unified_setting,params:Ze,disabled:(bt==null?void 0:bt.exercise_status)!==1,type:2,cb:Yn}})}},n.a.createElement("span",{className:"iconfont icon-fabuzhiwei font14 mr5"}),"\u53D1\u5E03\u8003\u8BD5"),Object(Je.c)()&&_r&&(bt==null||((Dn=bt.user_permission)===null||Dn===void 0)?void 0:Dn.exercise_publish_count)>0&&n.a.createElement(p.a,{onClick:function(sa){sa.preventDefault(),Xe({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[Ze.categoryId],params:Ze,cb:Yn}})}},n.a.createElement("span",{className:"iconfont icon-lijijiezhi mr5 font14"}),"\u7ED3\u675F\u8003\u8BD5"),Object(Je.s)()&&(bt==null||((ma=bt.user_permission)===null||ma===void 0)?void 0:ma.current_status)===2&&bt.exercise_status>1&&n.a.createElement(p.a,{style:{color:(gn==null||((ga=gn.exercise_types)===null||ga===void 0)?void 0:ga.is_redo)&&"red"},onClick:Tt},n.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),gn!=null&&(ja=gn.exercise_types)!==null&&ja!==void 0&&ja.is_redo?"\u91CD\u65B0\u8003\u8BD5":"\u5F00\u59CB\u8003\u8BD5"),Object(Je.s)()&&(bt==null||((Xa=bt.user_permission)===null||Xa===void 0)?void 0:Xa.current_status)===0&&bt.exercise_status>1&&n.a.createElement(p.a,{onClick:Tt},n.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7EE7\u7EED\u8003\u8BD5"),(pt==null?void 0:pt.setting.hide_quality_analysis)&&(bt==null?void 0:bt.show_analysis_detail)&&n.a.createElement(p.a,{onClick:function(){Object(F.S)("/classrooms/".concat(Ze.coursesId,"/exercise/").concat(Ze.categoryId,"/analysis/").concat(bt==null?void 0:bt.analysis_id))}},n.a.createElement("span",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),Object(Je.c)()&&_r&&(Object(Je.k)()&&(bt==null?void 0:bt.assistant_auth)||!Object(Je.k)())&&n.a.createElement(p.a,{onClick:function(){var sa=pe()(bt==null?void 0:bt.created_at,Xr),In=pe()(ai).diff(pe()(sa),"days");if(In>0&&bt!==null&&bt!==void 0&&bt.is_random){$r();return}else x.d.push(bt!=null&&bt.is_random?"/classrooms/".concat(Ze.coursesId,"/exercise/").concat(Ze.categoryId,"/random/edit?random=true"):"/classrooms/".concat(Ze.coursesId,"/exercise/").concat(Ze.categoryId,"/edit?random=false"))}},n.a.createElement("span",{className:"iconfont icon-bianjizuoye mr5 font14"}),"\u7F16\u8F91\u8BD5\u5377"),Object(Je.c)()&&_r&&n.a.createElement(R.a,{overlay:ei},n.a.createElement(p.a,null,n.a.createElement(S.a,null),"\u5BFC\u51FA",n.a.createElement(E.a,null)))),n.a.createElement(B.a,{activeKey:String(Ya),className:pa.a.tabs,onChange:function(sa){var In=pe()(bt==null?void 0:bt.created_at,Xr),cr=pe()(ai).diff(pe()(In),"days");if(cr>0&&parseInt(sa)===3&&bt!==null&&bt!==void 0&&bt.is_random){$r();return}ar(sa)}},wr.map(function(La,sa){return n.a.createElement(B.a.TabPane,{tab:La.name,key:La.id})})),n.a.createElement("section",{className:bt!=null&&bt.is_random&&Ya==="2"?"":"pl25 pr25 bg-white"},(Cn=wr.filter(function(La){return La.id==Ya}))===null||Cn===void 0||((nr=Cn[0])===null||nr===void 0)?void 0:nr.compontent))),n.a.createElement(ir.a,null),n.a.createElement(Jt,{onOk:Or}),n.a.createElement(Rt.a,null),n.a.createElement(gr,{cb:function(){return pr()}}),n.a.createElement(Aa,null),n.a.createElement(i.a,{visible:Ka,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:function(){yt(!1)}},n.a.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),n.a.createElement("p",{style:{marginLeft:"10px"}},n.a.createElement(W.a,{dataSource:za,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),n.a.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),n.a.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),n.a.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),n.a.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u963B\u65AD\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002"))):""},or=re.default=Object(x.a)(function(Ln){var Wt=Ln.exercise,Rn=Ln.loading,Ra=Ln.user,la=Ln.globalSetting;return{exercise:Wt,globalSetting:la,user:Ra,loading:Rn.effects}})(Ja)},JWDV:function(Ge,re,y){Ge.exports=y.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(Ge,re,y){"use strict";y.d(re,"a",function(){return Q});var Q;(function(W){function k(s){return s&&typeof s=="object"&&typeof s[Symbol.iterator]=="function"}W.is=k;const B=Object.freeze([]);function O(){return B}W.empty=O;function*R(s){yield s}W.single=R;function M(s){return s||B}W.from=M;function p(s){return!s||s[Symbol.iterator]().next().done===!0}W.isEmpty=p;function a(s){return s[Symbol.iterator]().next().value}W.first=a;function b(s,w){for(const D of s)if(w(D))return!0;return!1}W.some=b;function u(s,w){for(const D of s)if(w(D))return D;return}W.find=u;function*d(s,w){for(const D of s)w(D)&&(yield D)}W.filter=d;function*m(s,w){let D=0;for(const C of s)yield w(C,D++)}W.map=m;function*o(...s){for(const w of s)for(const D of w)yield D}W.concat=o;function*c(s){for(const w of s)for(const D of w)yield D}W.concatNested=c;function f(s,w,D){let C=D;for(const v of s)C=w(C,v);return C}W.reduce=f;function*i(s,w,D=s.length){for(w<0&&(w+=s.length),D<0?D+=s.length:D>s.length&&(D=s.length);wC===v){const C=s[Symbol.iterator](),v=w[Symbol.iterator]();for(;;){const n=C.next(),_=v.next();if(n.done!==_.done)return!1;if(n.done)return!0;if(!D(n.value,_.value))return!1}}W.equals=l})(Q||(Q={}))},JeFH:function(Ge,re){Ge.exports="data:image/png;base64,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"},Jq4h:function(Ge,re,y){Ge.exports=y.p+"static/qrcode.2267e4d5.png"},K2GJ:function(Ge,re,y){var Q=y("fW2E"),W=y("gut8"),k=W.ContextCachedBy,B=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],O=function(d){this.extendFrom(d,!1)};function R(d,m,o){var c=m.x==null?0:m.x,f=m.x2==null?1:m.x2,i=m.y==null?0:m.y,t=m.y2==null?0:m.y2;m.global||(c=c*o.width+o.x,f=f*o.width+o.x,i=i*o.height+o.y,t=t*o.height+o.y),c=isNaN(c)?0:c,f=isNaN(f)?1:f,i=isNaN(i)?0:i,t=isNaN(t)?0:t;var l=d.createLinearGradient(c,i,f,t);return l}function M(d,m,o){var c=o.width,f=o.height,i=Math.min(c,f),t=m.x==null?.5:m.x,l=m.y==null?.5:m.y,s=m.r==null?.5:m.r;m.global||(t=t*c+o.x,l=l*f+o.y,s=s*i);var w=d.createRadialGradient(t,l,0,t,l,s);return w}O.prototype={constructor:O,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(d,m,o){var c=this,f=o&&o.style,i=!f||d.__attrCachedBy!==k.STYLE_BIND;d.__attrCachedBy=k.STYLE_BIND;for(var t=0;t0},extendFrom:function(d,m){if(d)for(var o in d)d.hasOwnProperty(o)&&(m===!0||(m===!1?!this.hasOwnProperty(o):d[o]!=null))&&(this[o]=d[o])},set:function(d,m){typeof d=="string"?this[d]=m:this.extendFrom(d,!0)},clone:function(){var d=new this.constructor;return d.extendFrom(this,!0),d},getGradient:function(d,m,o){for(var c=m.type==="radial"?M:R,f=c(d,m,o),i=m.colorStops,t=0;t=0)continue;if(!Object.prototype.hasOwnProperty.call(d,c))continue;o[c]=d[c]}return o}function p(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function a(d,m){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:d}function b(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);d.prototype=Object.create(m&&m.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(d,m):d.__proto__=m)}var u=function(d){b(m,d);function m(o){p(this,m);var c=a(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,o));return c.scrollListener=c.scrollListener.bind(c),c.eventListenerOptions=c.eventListenerOptions.bind(c),c.mousewheelListener=c.mousewheelListener.bind(c),c}return Q(m,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var c=this.getParentElement(this.scrollComponent);c.scrollTop=c.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var c=!1,f={get passive(){c=!0}};try{document.addEventListener("test",null,f),document.removeEventListener("test",null,f)}catch(i){}return c}},{key:"eventListenerOptions",value:function(){var c=this.props.useCapture;return this.isPassiveSupported()&&(c={useCapture:this.props.useCapture,passive:!0}),c}},{key:"setDefaultLoader",value:function(c){this.defaultLoader=c}},{key:"detachMousewheelListener",value:function(){var c=window;this.props.useWindow===!1&&(c=this.scrollComponent.parentNode),c.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var c=window;this.props.useWindow===!1&&(c=this.getParentElement(this.scrollComponent)),c.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),c.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(c){var f=this.props.getScrollParent&&this.props.getScrollParent();return f!=null?f:c&&c.parentNode}},{key:"filterProps",value:function(c){return c}},{key:"attachScrollListener",value:function(){var c=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!c)return;var f=window;this.props.useWindow===!1&&(f=c),f.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),f.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),f.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(c){c.deltaY===1&&!this.isPassiveSupported()&&c.preventDefault()}},{key:"scrollListener",value:function(){var c=this.scrollComponent,f=window,i=this.getParentElement(c),t=void 0;if(this.props.useWindow){var l=document.documentElement||document.body.parentNode||document.body,s=f.pageYOffset!==void 0?f.pageYOffset:l.scrollTop;this.props.isReverse?t=s:t=this.calculateOffset(c,s)}else this.props.isReverse?t=i.scrollTop:t=c.scrollHeight-i.scrollTop-i.clientHeight;t1&&t.a.createElement("span",null,t.a.createElement(T.a,{checked:Fn,onChange:function(Cn){return da(Cn.target.checked)},className:"".concat(le.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),t.a.createElement("span",{className:"".concat(le.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:fr,onChange:function(Cn){return gr(Cn)}}),t.a.createElement("p",{className:""},t.a.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:wt,max:1e4,min:0,onChange:function(Cn){Et(Cn)}})," ","\u5206 \xA0"," ",!!wt&&!!wn&&t.a.createElement("span",{style:{color:"red"}},"(\u6839\u636E\u5747\u5206\u89C4\u5219\uFF0C\u672C\u9898\u6BCF\u7A7A",(wt/wn).toFixed(1),"\u5206)"),t.a.createElement("span",{style:{marginLeft:"30px"},className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:rn,onChange:function(Cn){Vt(Cn.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:Kn,selectvalues:at==null?void 0:at.tag_discipline_ids,onChange:Vn,subId:(ga=ve.editData)===null||ga===void 0||((ja=ga.exercise)===null||ja===void 0)?void 0:ja.sub_discipline_id,knowledgeOptions:Aa,onAddKnowledgeFinish:ea})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:xt,onChange:function(Cn){ln(Cn)}}))),t.a.createElement("aside",{className:"tr"},(Ht!==-1||at.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){fa(),yn(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){Ha()}},"\u4FDD\u5B58")))},Wt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(la){var Mn,Ca;return(ve==null||((Mn=ve.editData)===null||Mn===void 0||((Ca=Mn.exercise)===null||Ca===void 0))?void 0:Ca.exercise_status)===1?la:la.id!=="del"&&la.id!=="add"}),Rn=function(){var la=Object(Q.a)(f.a.mark(function Mn(Ca){return f.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:if(!(Ht!==-1)){ma.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),ma.abrupt("return");case 3:ma.t0=Ca.id,ma.next=ma.t0==="del"?6:ma.t0==="up"||ma.t0==="down"?8:ma.t0==="edit"?12:ma.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function ja(){return f.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(N.n)({id:at.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},Xn)});case 3:case"end":return Cn.stop()}},ja)}))()}}),ma.abrupt("break",17);case 8:return ma.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:at.question_id,opr:Ca.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},Xn)}),ma.abrupt("break",17);case 12:return Un(at.dragKey),yn(!0),ma.abrupt("break",17);case 15:return z({key:at.key,insert_id:at==null?void 0:at.question_id,question_type:3}),ma.abrupt("break",17);case 17:case"end":return ma.stop()}},Mn)}));return function(Ca){return la.apply(this,arguments)}}(),Ra=function(){var Mn;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(at!=null&&at.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},at.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",at.question_score,"\u5206\uFF09")),at!=null&&at.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},at.key,"."),t.a.createElement(de.a,{value:at.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",at.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:at.question_title})),t.a.createElement("div",{className:le.a.questionChoices},at==null||((Mn=at.standard_answer)===null||Mn===void 0)?void 0:Mn.map(function(Ca,Dn){return t.a.createElement(a.a,{key:Dn,align:"middle"},t.a.createElement(v.a,null,"\u7B54\u6848\uFF08\u586B\u7A7A",Ca.choice_id,"\uFF09\uFF1A"),t.a.createElement(v.a,{flex:"1"},t.a.createElement(a.a,{align:"middle",gutter:[1,1]},Ca.answer_text.map(function(ma,ga){return t.a.createElement(v.a,{span:24,key:ga},t.a.createElement(D.a,{key:Dn,checked:at.standard_answer.includes(Dn),disabled:!0,value:ma}))}))))})),t.a.createElement("div",{className:le.a.action},!at.hideAction&&Wt.map(function(Ca,Dn){return Ca.id==="up"&&at.key===1||Ca.id==="down"&&at.key===at.len?null:t.a.createElement(s.a,{key:Dn,placement:"bottom",title:Ca.name},t.a.createElement("span",{onClick:function(){return Rn(Ca)},className:Ca.icon}))})))};return t.a.createElement("section",{className:le.a.wrap},!$t&&Ra(),$t&&Ln())},me=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.exercise,Re=q.globalSetting;return{problemset:Z,globalSetting:Re,exercise:Oe,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(je)),fe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ae=function(Z,oe){var Oe=Z.problemset,Re=Z.globalSetting,ve=Z.exercise,bn=Z.loading,kt=Z.dispatch,at=Z.onRef,Ht=at===void 0?function(){}:at,Fe=Z.editData,Un=Z.editKey,Fa=Z.setEditKey,fa=Fa===void 0?function(){}:Fa,ae=Z.cancelAdd,z=ae===void 0?function(){}:ae,Y=Z.reload,te=Y===void 0?function(){}:Y,_e=Z.addCallback,se=_e===void 0?function(){}:_e,ut=Z.setIsClaer,vn=ut===void 0?function(){}:ut,Wn=Object(F.a)(Z,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","editKey","setEditKey","cancelAdd","reload","addCallback","setIsClaer"]),Oa=Object(i.useState)(),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(""),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(!1),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)(),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)([]),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)([]),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(1),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useState)(!1),fn=Object(o.a)(wn,2),zn=fn[0],jn=fn[1],$t=Object(i.useState)(""),yn=Object(o.a)($t,2),pn=yn[0],On=yn[1],cn=Object(i.useRef)(!1),sn=function(Dt){ft([].concat(Object(U.a)(lt),[Object(d.a)({},Dt)]))},En=Object(P.i)();Object(i.useEffect)(function(){if(cn.current)return;if(!(Fe!=null&&Fe.question_choices)){Jt(!0),Qa(""),ra(2),ya("");return}jn(!(Fe!=null&&Fe.repeat_answer)),Qa(Fe==null?void 0:Fe.question_title),ra(Fe==null?void 0:Fe.question_score),Yt(Fe==null?void 0:Fe.difficulty),ya(Fe.standard_answer[0]+""),Wa(Fe.tag_discipline_ids),On(Fe==null?void 0:Fe.analysis)},[Fe,Ma]),Object(i.useEffect)(function(){Ma&&Vt();function Vt(){return Dt.apply(this,arguments)}function Dt(){return Dt=Object(Q.a)(f.a.mark(function zt(){var xt,ln,Kt;return f.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.next=2,Object(N.I)({sub_discipline_id:(xt=ve.editData)===null||xt===void 0||((ln=xt.exercise)===null||ln===void 0)?void 0:ln.sub_discipline_id});case 2:Kt=ha.sent,ft(Kt.tag_disciplines);case 4:case"end":return ha.stop()}},zt)})),Dt.apply(this,arguments)}},[Ma]),Object(i.useImperativeHandle)(oe,function(){return{onSave:Kn,isEdit:Ma}}),Object(i.useEffect)(function(){var Vt,Dt=ve!=null&&(Vt=ve.tagDisciplineData)!==null&&Vt!==void 0&&Vt.tag_disciplines&&Array.isArray(ve.tagDisciplineData.tag_disciplines)?ve.tagDisciplineData.tag_disciplines:[];ft(Dt)},[ve.tagDisciplineData]);var Pn=function(Dt){(Dt==null?void 0:Dt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Jt(!1),fa(-1),cn.current=!1,te())},Kn=function(){var Vt=Object(Q.a)(f.a.mark(function Dt(){var zt,xt,ln,Kt,Xn,ha;return f.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:if(ir){Aa.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Aa.abrupt("return",!1);case 3:if(Tn){Aa.next=6;break}return E.b.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),Aa.abrupt("return",!1);case 6:if(zt=[{choice_text:"\u6B63\u786E",is_answer:Tn==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Tn==="2"?2:0}],cn.current=!0,!Fe.question_id){Aa.next=19;break}if(!((Fe==null?void 0:Fe.is_my)===1)){Aa.next=13;break}O.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:function(){var Zn=Object(Q.a)(f.a.mark(function er(){var Ha,Sr;return f.a.wrap(function(Za){for(;;)switch(Za.prev=Za.next){case 0:return Za.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:ir,question_type:2,question_score:aa,question_choices:zt.map(function(pa){return pa.choice_text}),standard_answers:zt.filter(function(pa){return pa.is_answer}).map(function(pa){return pa.is_answer}),tag_discipline_ids:Ta,sub_discipline_id:(Ha=ve.editData)===null||Ha===void 0||((Sr=Ha.exercise)===null||Sr===void 0)?void 0:Sr.sub_discipline_id,difficulty:jt,is_cover:1,repeat_answer:!zn,analysis:pn}});case 2:xt=Za.sent,Pn(xt);case 4:case"end":return Za.stop()}},er)}));function ea(){return Zn.apply(this,arguments)}return ea}(),onCancel:function(){var Zn=Object(Q.a)(f.a.mark(function er(){var Ha,Sr;return f.a.wrap(function(Za){for(;;)switch(Za.prev=Za.next){case 0:return Za.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:ir,question_type:2,question_score:aa,question_choices:zt.map(function(pa){return pa.choice_text}),standard_answers:zt.filter(function(pa){return pa.is_answer}).map(function(pa){return pa.is_answer}),tag_discipline_ids:Ta,sub_discipline_id:(Ha=ve.editData)===null||Ha===void 0||((Sr=Ha.exercise)===null||Sr===void 0)?void 0:Sr.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:pn}});case 2:xt=Za.sent,Pn(xt);case 4:case"end":return Za.stop()}},er)}));function ea(){return Zn.apply(this,arguments)}return ea}()}),Aa.next=17;break;case 13:return Aa.next=15,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:ir,question_type:2,question_score:aa,question_choices:zt.map(function(Zn){return Zn.choice_text}),standard_answers:zt.filter(function(Zn){return Zn.is_answer}).map(function(Zn){return Zn.is_answer}),tag_discipline_ids:Ta,sub_discipline_id:(ln=ve.editData)===null||ln===void 0||((Kt=ln.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:pn}});case 15:xt=Aa.sent,Pn(xt);case 17:Aa.next=23;break;case 19:return Aa.next=21,kt({type:"exercise/addExerciseQuestion",payload:{insert_id:Fe==null?void 0:Fe.insert_id,categoryId:En.categoryId,question_title:ir,question_type:2,question_score:aa,question_choices:zt.map(function(Zn){return Zn.choice_text}),standard_answers:zt.filter(function(Zn){return Zn.is_answer}).map(function(Zn){return Zn.is_answer}),tag_discipline_ids:Ta,sub_discipline_id:(Xn=ve.editData)===null||Xn===void 0||((ha=Xn.exercise)===null||ha===void 0)?void 0:ha.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:pn}});case 21:xt=Aa.sent,Pn(xt);case 23:return Aa.abrupt("return",{name:ir,choices:zt});case 24:case"end":return Aa.stop()}},Dt)}));return function(){return Vt.apply(this,arguments)}}(),Vn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Vt){var Dt,zt;return(ve==null||((Dt=ve.editData)===null||Dt===void 0||((zt=Dt.exercise)===null||zt===void 0))?void 0:zt.exercise_status)===1?Vt:Vt.id!=="del"&&Vt.id!=="add"}),ua=function(){var Vt=Object(Q.a)(f.a.mark(function Dt(zt){return f.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:if(!(Un!==-1)){ln.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),ln.abrupt("return");case 3:ln.t0=zt.id,ln.next=ln.t0==="del"?6:ln.t0==="up"||ln.t0==="down"?8:ln.t0==="edit"?12:ln.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Xn(){return f.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:return Jn.next=2,Object(N.n)({id:Fe.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},En)});case 3:case"end":return Jn.stop()}},Xn)}))()}}),ln.abrupt("break",17);case 8:return ln.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:Fe.question_id,opr:zt.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},En)}),ln.abrupt("break",17);case 12:return fa(Fe.dragKey),Jt(!0),ln.abrupt("break",17);case 15:return se({key:Fe.key,insert_id:Fe==null?void 0:Fe.question_id,question_type:2}),ln.abrupt("break",17);case 17:case"end":return ln.stop()}},Dt)}));return function(zt){return Vt.apply(this,arguments)}}(),xa=function(){var Dt;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(Fe!=null&&Fe.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09")),Fe!=null&&Fe.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,"."),t.a.createElement(de.a,{value:Fe.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Fe.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Fe.question_title})),t.a.createElement("div",{className:le.a.questionChoices},Fe==null||((Dt=Fe.question_choices)===null||Dt===void 0)?void 0:Dt.map(function(zt,xt){return t.a.createElement(g.a,{key:xt,checked:Fe.standard_answer.includes(xt+1),disabled:!0},fe[xt],"."," ",t.a.createElement("span",{className:"c-black font14"},zt.choice_text))})),t.a.createElement("div",{className:le.a.action},!Fe.hideAction&&Vn.map(function(zt,xt){return zt.id==="up"&&Fe.key===1||zt.id==="down"&&Fe.key===Fe.len?null:t.a.createElement(s.a,{key:xt,placement:"bottom",title:zt.name},t.a.createElement("span",{onClick:function(){return ua(zt)},className:zt.icon}))})))},rn=function(){var Dt,zt;return t.a.createElement("aside",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ir,onChange:function(ln){return Qa(ln)}}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),t.a.createElement(g.a.Group,{buttonStyle:"solid",value:Tn,onChange:function(ln){return ya(ln.target.value)}},t.a.createElement(g.a.Button,{value:"1",className:"".concat(le.a.radio," mr40")},"\u6B63\u786E"),t.a.createElement(g.a.Button,{value:"2",className:le.a.radio},"\u9519\u8BEF")),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:pn,onChange:function(ln){return On(ln)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:aa,max:1e4,min:0,onChange:function(ln){ra(ln)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:jt,onChange:function(ln){Yt(ln.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:Ta,selectvalues:Fe==null?void 0:Fe.tag_discipline_ids,onChange:Wa,subId:(Dt=ve.editData)===null||Dt===void 0||((zt=Dt.exercise)===null||zt===void 0)?void 0:zt.sub_discipline_id,knowledgeOptions:lt,onAddKnowledgeFinish:sn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:zn,onChange:function(ln){jn(ln)}}))),t.a.createElement("aside",{className:"tr"},(Un!==-1||Fe.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){z(),Jt(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){Kn()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:le.a.wrap},!Ma&&xa(),Ma&&rn())},he=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.exercise,Re=q.globalSetting;return{problemset:Z,globalSetting:Re,exercise:Oe,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Ae)),Ue=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],st=Object(i.forwardRef)(function(q,Z){var oe=q.problemset,Oe=q.globalSetting,Re=q.exercise,ve=q.loading,bn=q.dispatch,kt=q.onRef,at=kt===void 0?function(){}:kt,Ht=q.editData,Fe=q.cancelAdd,Un=Fe===void 0?function(){}:Fe,Fa=q.editKey,fa=q.setEditKey,ae=fa===void 0?function(){}:fa,z=q.setIsClaer,Y=z===void 0?function(){}:z,te=q.addCallback,_e=te===void 0?function(ha){}:te,se=q.reload,ut=se===void 0?function(){}:se,vn=Object(F.a)(q,["problemset","globalSetting","exercise","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback","reload"]),Wn=Object(i.useState)([]),Oa=Object(o.a)(Wn,2),dn=Oa[0],Tn=Oa[1],ya=Object(i.useState)(),fr=Object(o.a)(ya,2),gr=fr[0],ir=fr[1],Qa=Object(i.useState)([]),ba=Object(o.a)(Qa,2),Na=ba[0],Ma=ba[1],Jt=Object(i.useState)(""),Rt=Object(o.a)(Jt,2),An=Rt[0],aa=Rt[1],ra=Object(i.useState)(),Fn=Object(o.a)(ra,2),da=Fn[0],Ta=Fn[1],Wa=Object(i.useState)(!1),ue=Object(o.a)(Wa,2),ot=ue[0],lt=ue[1],ft=Object(i.useState)([]),wt=Object(o.a)(ft,2),Et=wt[0],jt=wt[1],Yt=Object(i.useState)(1),wn=Object(o.a)(Yt,2),fn=wn[0],zn=wn[1],jn=Object(i.useState)(!1),$t=Object(o.a)(jn,2),yn=$t[0],pn=$t[1],On=Object(i.useState)(""),cn=Object(o.a)(On,2),sn=cn[0],En=cn[1],Pn=Object(i.useState)([]),Kn=Object(o.a)(Pn,2),Vn=Kn[0],ua=Kn[1],xa=Object(i.useRef)(!1),rn=function(Jn){ua([].concat(Object(U.a)(Vn),[Object(d.a)({},Jn)]))},Vt=Object(P.i)();Object(i.useEffect)(function(){Tn(["","","",""])},[]),Object(i.useEffect)(function(){if(xa.current)return;if(!(Ht!=null&&Ht.question_choices)){lt(!0),aa(""),Ta(5),Tn(["","","",""]),Ma([]);return}aa(Ht==null?void 0:Ht.question_title),Ta(Ht==null?void 0:Ht.question_score),pn(!(Ht!=null&&Ht.repeat_answer)),zn(Ht==null?void 0:Ht.difficulty),Tn(Ht==null?void 0:Ht.question_choices.map(function(Jn){return Jn.choice_text}));var ha=[];Ht==null||Ht.standard_answer.map(function(Jn,Aa){ha.push(Jn-1)}),Ma(ha),jt(Ht.tag_discipline_ids),En(Ht==null?void 0:Ht.analysis)},[Ht,ot]),Object(i.useEffect)(function(){ot&&ha();function ha(){return Jn.apply(this,arguments)}function Jn(){return Jn=Object(Q.a)(f.a.mark(function Aa(){var Zn,ea,er;return f.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:return Sr.next=2,Object(N.I)({sub_discipline_id:(Zn=Re.editData)===null||Zn===void 0||((ea=Zn.exercise)===null||ea===void 0)?void 0:ea.sub_discipline_id});case 2:er=Sr.sent,ua(er.tag_disciplines);case 4:case"end":return Sr.stop()}},Aa)})),Jn.apply(this,arguments)}},[ot]),Object(i.useImperativeHandle)(Z,function(){return{onSave:zt,isEdit:ot}}),Object(i.useEffect)(function(){var ha,Jn=Re!=null&&(ha=Re.tagDisciplineData)!==null&&ha!==void 0&&ha.tag_disciplines&&Array.isArray(Re.tagDisciplineData.tag_disciplines)?Re.tagDisciplineData.tag_disciplines:[];ua(Jn)},[Re.tagDisciplineData]);var Dt=function(Jn){(Jn==null?void 0:Jn.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),lt(!1),ae(-1),xa.current=!1,ut())},zt=function(){var ha=Object(Q.a)(f.a.mark(function Jn(){var Aa,Zn,ea,er,Ha,Sr,Va;return f.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:if(An){pa.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),pa.abrupt("return",!1);case 3:if(Aa=dn.findIndex(function(Ja){return!Ja}),!(Aa>-1)){pa.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Ue[Aa]," \u9009\u9879\u7684\u5185\u5BB9")),pa.abrupt("return",!1);case 7:if(Na.length){pa.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),pa.abrupt("return",!1);case 10:if(!(Na.length<1)){pa.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),pa.abrupt("return",!1);case 13:if(Zn=dn.map(function(Ja,or){return{choice_text:Ja,is_answer:Na.includes(or)?or+1:0}}),xa.current=!0,!Ht.question_id){pa.next=26;break}if(!((Ht==null?void 0:Ht.is_my)===1)){pa.next=20;break}O.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:function(){var Ja=Object(Q.a)(f.a.mark(function Ln(){var Wt,Rn;return f.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return la.next=2,bn({type:"exercise/editExerciseQuestion",payload:{id:Ht.question_id,question_title:An,question_type:1,question_score:da,question_choices:Zn.map(function(Mn){return Mn.choice_text}),standard_answers:Zn.filter(function(Mn){return Mn.is_answer}).map(function(Mn){return Mn.is_answer}),tag_discipline_ids:Et,sub_discipline_id:(Wt=Re.editData)===null||Wt===void 0||((Rn=Wt.exercise)===null||Rn===void 0)?void 0:Rn.sub_discipline_id,difficulty:fn,is_cover:1,repeat_answer:!yn,analysis:sn}});case 2:ea=la.sent,Dt(ea);case 4:case"end":return la.stop()}},Ln)}));function or(){return Ja.apply(this,arguments)}return or}(),onCancel:function(){var Ja=Object(Q.a)(f.a.mark(function Ln(){var Wt,Rn;return f.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return la.next=2,bn({type:"exercise/editExerciseQuestion",payload:{id:Ht.question_id,question_title:An,question_type:1,question_score:da,question_choices:Zn.map(function(Mn){return Mn.choice_text}),standard_answers:Zn.filter(function(Mn){return Mn.is_answer}).map(function(Mn){return Mn.is_answer}),tag_discipline_ids:Et,sub_discipline_id:(Wt=Re.editData)===null||Wt===void 0||((Rn=Wt.exercise)===null||Rn===void 0)?void 0:Rn.sub_discipline_id,difficulty:fn,repeat_answer:!yn,analysis:sn}});case 2:ea=la.sent,Dt(ea);case 4:case"end":return la.stop()}},Ln)}));function or(){return Ja.apply(this,arguments)}return or}()}),pa.next=24;break;case 20:return pa.next=22,bn({type:"exercise/editExerciseQuestion",payload:{id:Ht.question_id,question_title:An,question_type:1,question_score:da,question_choices:Zn.map(function(Ja){return Ja.choice_text}),standard_answers:Zn.filter(function(Ja){return Ja.is_answer}).map(function(Ja){return Ja.is_answer}),tag_discipline_ids:Et,sub_discipline_id:(er=Re.editData)===null||er===void 0||((Ha=er.exercise)===null||Ha===void 0)?void 0:Ha.sub_discipline_id,difficulty:fn,repeat_answer:!yn,analysis:sn}});case 22:ea=pa.sent,Dt(ea);case 24:pa.next=30;break;case 26:return pa.next=28,bn({type:"exercise/addExerciseQuestion",payload:{insert_id:Ht==null?void 0:Ht.insert_id,categoryId:Vt.categoryId,question_title:An,question_type:1,question_score:da,question_choices:Zn.map(function(Ja){return Ja.choice_text}),standard_answers:Zn.filter(function(Ja){return Ja.is_answer}).map(function(Ja){return Ja.is_answer}),tag_discipline_ids:Et,sub_discipline_id:(Sr=Re.editData)===null||Sr===void 0||((Va=Sr.exercise)===null||Va===void 0)?void 0:Va.sub_discipline_id,difficulty:fn,repeat_answer:!yn,analysis:sn}});case 28:ea=pa.sent,Dt(ea);case 30:case"end":return pa.stop()}},Jn)}));return function(){return ha.apply(this,arguments)}}(),xt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(ha){var Jn,Aa;return(Re==null||((Jn=Re.editData)===null||Jn===void 0||((Aa=Jn.exercise)===null||Aa===void 0))?void 0:Aa.exercise_status)===1?ha:ha.id!=="del"&&ha.id!=="add"}),ln=function(){var ha=Object(Q.a)(f.a.mark(function Jn(Aa){return f.a.wrap(function(ea){for(;;)switch(ea.prev=ea.next){case 0:if(!(Fa!==-1)){ea.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),ea.abrupt("return");case 3:ea.t0=Aa.id,ea.next=ea.t0==="del"?6:ea.t0==="up"||ea.t0==="down"?8:ea.t0==="edit"?12:ea.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Ha(){return f.a.wrap(function(Va){for(;;)switch(Va.prev=Va.next){case 0:return Va.next=2,Object(N.n)({id:Ht.question_id});case 2:bn({type:"exercise/editExercise",payload:Object(d.a)({},Vt)});case 3:case"end":return Va.stop()}},Ha)}))()}}),ea.abrupt("break",17);case 8:return ea.next=10,bn({type:"exercise/exeriseMoveUpDown",payload:{id:Ht.question_id,opr:Aa.id}});case 10:return bn({type:"exercise/editExercise",payload:Object(d.a)({},Vt)}),ea.abrupt("break",17);case 12:return ae(Ht.dragKey),lt(!0),ea.abrupt("break",17);case 15:return _e({key:Ht.key,insert_id:Ht==null?void 0:Ht.question_id,question_type:1}),ea.abrupt("break",17);case 17:case"end":return ea.stop()}},Jn)}));return function(Aa){return ha.apply(this,arguments)}}(),Kt=function(){var Jn;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(Ht!=null&&Ht.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Ht.key,"\u3001\u591A\u9009\u9898"),"\uFF08",Ht.question_score,"\u5206\uFF09")),Ht!=null&&Ht.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Ht.key,"."),t.a.createElement(de.a,{value:Ht.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Ht.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Ht.question_title})),t.a.createElement("div",{className:le.a.questionChoices},Ht==null||((Jn=Ht.question_choices)===null||Jn===void 0)?void 0:Jn.map(function(Aa,Zn){return t.a.createElement(a.a,{key:Zn},t.a.createElement(v.a,null,t.a.createElement(T.a,{key:Zn,checked:Ht.standard_answer.includes(Zn+1),disabled:!0},Ue[Zn],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:Aa.choice_text}))))})),t.a.createElement("div",{className:le.a.action},!Ht.hideAction&&xt.map(function(Aa,Zn){return Aa.id==="up"&&Ht.key===1||Aa.id==="down"&&Ht.key===Ht.len?null:t.a.createElement(s.a,{key:Zn,placement:"bottom",title:Aa.name},t.a.createElement("span",{onClick:function(){return ln(Aa)},className:Aa.icon}))})))},Xn=function(){var Jn,Aa;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:An,onChange:function(ea){return aa(ea)}}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),dn.map(function(Zn,ea){var er,Ha;return t.a.createElement("div",{className:le.a.choiceWrap,key:ea},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(le.a.answer," ").concat(Na.includes(ea)?le.a.activeAnswer:""),onClick:function(){Na.includes(ea)?Ma(Na.filter(function(Va){return Va!==ea})):Ma([].concat(Object(U.a)(Na),[ea]))}},Ue[ea])),t.a.createElement("div",{className:le.a.editorWrap},gr===ea?t.a.createElement(A.a,{id:"single-question-option-".concat(ea),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Zn,onChange:function(Va){dn[ea]=Va,Tn(dn)}}):t.a.createElement("div",{className:le.a.htmlWrap,onClick:function(){return ir(ea)}},t.a.createElement(de.a,{value:Zn}))),((er=Re.editData)===null||er===void 0||((Ha=er.exercise)===null||Ha===void 0)?void 0:Ha.exercise_status)===1&&t.a.createElement(t.a.Fragment,null,ea>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(le.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return Tn(dn.filter(function(Va,Za){return Za!==ea}))}})),ea<7&&ea===dn.length-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(le.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Tn([].concat(Object(U.a)(dn),[""]))}}))))}),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:sn,onChange:function(ea){return En(ea)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:da,max:1e4,min:0,onChange:function(ea){Ta(ea)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:fn,onChange:function(ea){zn(ea.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:Et,selectvalues:Ht==null?void 0:Ht.tag_discipline_ids,onChange:jt,subId:(Jn=Re.editData)===null||Jn===void 0||((Aa=Jn.exercise)===null||Aa===void 0)?void 0:Aa.sub_discipline_id,knowledgeOptions:Vn,onAddKnowledgeFinish:rn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:yn,onChange:function(ea){pn(ea)}}))),t.a.createElement("aside",{className:"tr"},(Fa!==-1||Ht.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Un(),lt(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){zt()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:le.a.wrap},!ot&&Kt(),ot&&Xn())}),Ve=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.exercise,Re=q.globalSetting;return{problemset:Z,globalSetting:Re,exercise:Oe,loading:oe.effects}},null,null,{forwardRef:!0})(st),dt=y("55Ip"),Qe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],pe=function(Z,oe){var Oe=Z.problemset,Re=Z.globalSetting,ve=Z.exercise,bn=Z.loading,kt=Z.dispatch,at=Z.editData,Ht=Z.cancelAdd,Fe=Ht===void 0?function(){}:Ht,Un=Z.editKey,Fa=Z.setEditKey,fa=Fa===void 0?function(){}:Fa,ae=Z.addCallback,z=ae===void 0?function(){}:ae,Y=Z.reload,te=Y===void 0?function(){}:Y,_e=Z.setIsClaer,se=_e===void 0?function(){}:_e,ut=Object(F.a)(Z,["problemset","globalSetting","exercise","loading","dispatch","editData","cancelAdd","editKey","setEditKey","addCallback","reload","setIsClaer"]),vn=Object(i.useState)(""),Wn=Object(o.a)(vn,2),Oa=Wn[0],dn=Wn[1],Tn=Object(i.useState)(""),ya=Object(o.a)(Tn,2),fr=ya[0],gr=ya[1],ir=Object(i.useState)(""),Qa=Object(o.a)(ir,2),ba=Qa[0],Na=Qa[1],Ma=Object(i.useState)([]),Jt=Object(o.a)(Ma,2),Rt=Jt[0],An=Jt[1],aa=Object(i.useState)(""),ra=Object(o.a)(aa,2),Fn=ra[0],da=ra[1],Ta=Object(i.useState)(),Wa=Object(o.a)(Ta,2),ue=Wa[0],ot=Wa[1],lt=Object(i.useState)(!1),ft=Object(o.a)(lt,2),wt=ft[0],Et=ft[1],jt=Object(i.useState)([]),Yt=Object(o.a)(jt,2),wn=Yt[0],fn=Yt[1],zn=Object(i.useState)(!1),jn=Object(o.a)(zn,2),$t=jn[0],yn=jn[1],pn=Object(i.useState)(!1),On=Object(o.a)(pn,2),cn=On[0],sn=On[1],En=Object(P.i)(),Pn=Object(i.useRef)(!1);Object(i.useEffect)(function(){var Dt;if(Pn.current)return;at.edit&&(yn(!0),gr(""),dn(""),fn([])),dn(at.shixun_name),gr(at.question_title);var zt=[];(Dt=at.shixun)===null||Dt===void 0||Dt.map(function(xt){zt.push(xt.challenge_score)}),fn(zt)},[at]),Object(i.useEffect)(function(){Et(!1)},[$t]),Object(i.useImperativeHandle)(oe,function(){return{onSave:Vn,isEdit:$t}});var Kn=function(zt){(zt==null?void 0:zt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),yn(!1),fa(-1),Pn.current=!1,te())},Vn=function(){var Dt=Object(Q.a)(f.a.mark(function zt(){var xt,ln,Kt;return f.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:if(xt=[],ln=!1,!ln){ha.next=4;break}return ha.abrupt("return",!1);case 4:if(Pn.current=!0,sn(!0),!at.question_id){ha.next=12;break}return ha.next=9,kt({type:"exercise/editExerciseQuestion",payload:{id:at.question_id,question_title:fr,shixun_name:Oa,shixun_id:at.shixun_id,question_type:5,question_scores:wn}});case 9:Kt=ha.sent,ha.next=15;break;case 12:return ha.next=14,kt({type:"exercise/addExerciseQuestion",payload:{insert_id:at==null?void 0:at.insert_id,categoryId:En.categoryId,question_title:fr,shixun_name:Oa,shixun_id:at.shixun_id,question_type:5,question_scores:wn,is_copy:at.is_copy}});case 14:Kt=ha.sent;case 15:return Kn(Kt),sn(!1),ha.abrupt("return",{name:fr,analysis:ba,standard_answers:xt,is_ordered:ue});case 18:case"end":return ha.stop()}},zt)}));return function(){return Dt.apply(this,arguments)}}(),ua=function(){var zt;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),t.a.createElement("div",{className:"mt10"},t.a.createElement(D.a,{defaultValue:Oa,onChange:function(ln){dn(ln.target.value)}})),t.a.createElement("div",{className:"mt10"},t.a.createElement(A.a,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:fr,onChange:function(ln){gr(ln)}})),t.a.createElement("div",{className:"mt20"},(zt=at.shixun)===null||zt===void 0?void 0:zt.map(function(xt,ln){return t.a.createElement(a.a,{gutter:[20,20]},t.a.createElement(v.a,{flex:"1"},ln+1,".",xt.challenge_name),t.a.createElement(v.a,null,t.a.createElement(k.a,{defaultValue:wn[ln],onChange:function(Xn){wn[ln]=Xn,fn(wn),console.log("srore:L",wn[ln])}})," ","\u5206"))})),t.a.createElement("div",{className:"mt20"},Rt.length>1&&t.a.createElement("span",null,t.a.createElement(T.a,{checked:ue,onChange:function(ln){return ot(ln.target.checked)},className:"".concat(le.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),t.a.createElement("span",{className:"".concat(le.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),t.a.createElement("aside",{className:"tr"},(Un!==-1||!(at!=null&&at.edit))&&t.a.createElement(u.a,{type:"default",onClick:function(){Fe(),yn(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{loading:cn,className:"ml20",type:"primary",onClick:function(){Vn()}},"\u4FDD\u5B58")))},xa=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5B9E\u8BAD\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Dt){var zt,xt;return(ve==null||((zt=ve.editData)===null||zt===void 0||((xt=zt.exercise)===null||xt===void 0))?void 0:xt.exercise_status)===1?Dt:Dt.id!=="del"&&Dt.id!=="add"}),rn=function(){var Dt=Object(Q.a)(f.a.mark(function zt(xt){return f.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(!(Un!==-1)){Kt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Kt.abrupt("return");case 3:Kt.t0=xt.id,Kt.next=Kt.t0==="del"?6:Kt.t0==="up"||Kt.t0==="down"?8:Kt.t0==="edit"?12:Kt.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function ha(){return f.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return Aa.next=2,Object(N.n)({id:at.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},En)});case 3:case"end":return Aa.stop()}},ha)}))()}}),Kt.abrupt("break",17);case 8:return Kt.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:at.question_id,opr:xt.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},En)}),Kt.abrupt("break",17);case 12:return fa(at.dragKey),yn(!0),Kt.abrupt("break",17);case 15:return kt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",editData:{key:at.key,insert_id:at==null?void 0:at.question_id,question_type:5}}}),Kt.abrupt("break",17);case 17:case"end":return Kt.stop()}},zt)}));return function(xt){return Dt.apply(this,arguments)}}(),Vt=function(){var zt,xt;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(at!=null&&at.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},at.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",at.question_score,"\u5206\uFF09")),at!=null&&at.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},at.key,"."),t.a.createElement(de.a,{value:at.shixun_name}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",at.question_score,"\u5206\uFF09"),!!((zt=at.schools)!==null&&zt!==void 0&&zt.length)&&t.a.createElement(s.a,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},t.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 font18 line24 c-orange"}))):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:at.shixun_name})),t.a.createElement("div",{className:"mt30"}),(xt=at.shixun)===null||xt===void 0?void 0:xt.map(function(ln,Kt){return t.a.createElement("div",{key:Kt},"\u7B2C",Kt+1,"\u5173"," ",t.a.createElement("span",{className:"ml10"},ln.challenge_name)," ",t.a.createElement("span",{className:"ml10"},ln.challenge_score," \u5206"))}),t.a.createElement("div",{className:le.a.action},t.a.createElement(dt.a,{target:"_blank",to:"/shixuns/".concat(at.shixun_identifier,"/challenges?exercise=true")},"\u5B9E\u8BAD\u8BE6\u60C5"),!at.hideAction&&xa.map(function(ln,Kt){return ln.id==="up"&&at.key===1||ln.id==="down"&&at.key===at.len?null:t.a.createElement(s.a,{key:Kt,placement:"bottom",title:ln.name},t.a.createElement("span",{onClick:function(){return rn(ln)},className:ln.icon}))})))};return t.a.createElement("section",{className:le.a.wrap},!$t&&Vt(),$t&&ua())},xe=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.globalSetting,Re=q.exercise;return{problemset:Z,globalSetting:Oe,exercise:Re,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(pe)),Le=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ye=function(Z,oe){var Oe=Z.problemset,Re=Z.exercise,ve=Z.globalSetting,bn=Z.loading,kt=Z.dispatch,at=Z.onRef,Ht=at===void 0?function(){}:at,Fe=Z.editData,Un=Z.cancelAdd,Fa=Un===void 0?function(){}:Un,fa=Z.editKey,ae=Z.setEditKey,z=ae===void 0?function(){}:ae,Y=Z.setIsClaer,te=Y===void 0?function(){}:Y,_e=Z.reload,se=_e===void 0?function(){}:_e,ut=Z.addCallback,vn=ut===void 0?function(Aa){}:ut,Wn=Object(F.a)(Z,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","reload","addCallback"]),Oa=Object(i.useState)([]),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)([]),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)(""),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)([]),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(!1),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useState)(1),fn=Object(o.a)(wn,2),zn=fn[0],jn=fn[1],$t=Object(i.useState)(!1),yn=Object(o.a)($t,2),pn=yn[0],On=yn[1],cn=Object(i.useState)(""),sn=Object(o.a)(cn,2),En=sn[0],Pn=sn[1],Kn=Object(P.i)(),Vn=Object(i.useRef)(null),ua=Object(i.useRef)(!1),xa=Object(i.useState)([]),rn=Object(o.a)(xa,2),Vt=rn[0],Dt=rn[1],zt=function(Zn){Dt([].concat(Object(U.a)(Vt),[Object(d.a)({},Zn)]))};Object(i.useEffect)(function(){ya(["","","",""])},[]),Object(i.useEffect)(function(){if(ua.current)return;if(!(Fe!=null&&Fe.question_choices)){Yt(!0),ra(""),Wa(5),ya(["","","",""]),Jt([]);return}ra(Fe==null?void 0:Fe.question_title),Wa(Fe==null?void 0:Fe.question_score),On(!(Fe!=null&&Fe.repeat_answer)),Pn(Fe==null?void 0:Fe.analysis),jn(Fe==null?void 0:Fe.difficulty),ya(Fe==null?void 0:Fe.question_choices.map(function(Zn){return Zn.choice_text}));var Aa=[];Fe==null||Fe.standard_answer.map(function(Zn,ea){Aa.push(Zn-1)}),ft(Fe.tag_discipline_ids),Jt(Aa)},[Fe,jt]),Object(i.useEffect)(function(){jt&&Aa();function Aa(){return Zn.apply(this,arguments)}function Zn(){return Zn=Object(Q.a)(f.a.mark(function ea(){var er,Ha,Sr;return f.a.wrap(function(Za){for(;;)switch(Za.prev=Za.next){case 0:return Za.next=2,Object(N.I)({sub_discipline_id:(er=Re.editData)===null||er===void 0||((Ha=er.exercise)===null||Ha===void 0)?void 0:Ha.sub_discipline_id});case 2:Sr=Za.sent,Dt(Sr.tag_disciplines);case 4:case"end":return Za.stop()}},ea)})),Zn.apply(this,arguments)}},[jt]),Object(i.useEffect)(function(){var Aa,Zn=Re!=null&&(Aa=Re.tagDisciplineData)!==null&&Aa!==void 0&&Aa.tag_disciplines&&Array.isArray(Re.tagDisciplineData.tag_disciplines)?Re.tagDisciplineData.tag_disciplines:[];Dt(Zn)},[Re.tagDisciplineData]),Object(i.useImperativeHandle)(oe,function(){return{onSave:ln,isEdit:jt}});var xt=function(Zn){(Zn==null?void 0:Zn.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Yt(!1),z(-1),ua.current=!1,se())},ln=function(){var Aa=Object(Q.a)(f.a.mark(function Zn(){var ea,er,Ha,Sr,Va,Za,pa;return f.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:if(aa){or.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),or.abrupt("return",!1);case 3:if(ea=Tn.findIndex(function(Ln){return!Ln}),!(ea>-1)){or.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Le[ea]," \u9009\u9879\u7684\u5185\u5BB9")),or.abrupt("return",!1);case 7:if(Ma.length){or.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),or.abrupt("return",!1);case 10:if(!(Ma.length<1)){or.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),or.abrupt("return",!1);case 13:if(er=Tn.map(function(Ln,Wt){return{choice_text:Ln,is_answer:Ma.includes(Wt)?Wt+1:0}}),ua.current=!0,!Fe.question_id){or.next=26;break}if(!((Fe==null?void 0:Fe.is_my)===1)){or.next=20;break}O.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:function(){var Ln=Object(Q.a)(f.a.mark(function Rn(){var Ra,la;return f.a.wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:return Ca.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:aa,question_type:1,question_score:Ta,question_choices:er.map(function(Dn){return Dn.choice_text}),standard_answers:er.filter(function(Dn){return Dn.is_answer}).map(function(Dn){return Dn.is_answer}),tag_discipline_ids:lt,sub_discipline_id:(Ra=Re.editData)===null||Ra===void 0||((la=Ra.exercise)===null||la===void 0)?void 0:la.sub_discipline_id,difficulty:zn,is_cover:1,repeat_answer:!pn,analysis:En}});case 2:Ha=Ca.sent,xt(Ha);case 4:case"end":return Ca.stop()}},Rn)}));function Wt(){return Ln.apply(this,arguments)}return Wt}(),onCancel:function(){var Ln=Object(Q.a)(f.a.mark(function Rn(){var Ra,la;return f.a.wrap(function(Ca){for(;;)switch(Ca.prev=Ca.next){case 0:return Ca.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:aa,question_type:1,question_score:Ta,question_choices:er.map(function(Dn){return Dn.choice_text}),standard_answers:er.filter(function(Dn){return Dn.is_answer}).map(function(Dn){return Dn.is_answer}),tag_discipline_ids:lt,sub_discipline_id:(Ra=Re.editData)===null||Ra===void 0||((la=Ra.exercise)===null||la===void 0)?void 0:la.sub_discipline_id,difficulty:zn,repeat_answer:!pn,analysis:En}});case 2:Ha=Ca.sent,xt(Ha);case 4:case"end":return Ca.stop()}},Rn)}));function Wt(){return Ln.apply(this,arguments)}return Wt}()}),or.next=24;break;case 20:return or.next=22,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:aa,question_type:1,question_score:Ta,question_choices:er.map(function(Ln){return Ln.choice_text}),standard_answers:er.filter(function(Ln){return Ln.is_answer}).map(function(Ln){return Ln.is_answer}),tag_discipline_ids:lt,sub_discipline_id:(Sr=Re.editData)===null||Sr===void 0||((Va=Sr.exercise)===null||Va===void 0)?void 0:Va.sub_discipline_id,difficulty:zn,repeat_answer:!pn,analysis:En}});case 22:Ha=or.sent,xt(Ha);case 24:or.next=30;break;case 26:return or.next=28,kt({type:"exercise/addExerciseQuestion",payload:{insert_id:Fe==null?void 0:Fe.insert_id,categoryId:Kn.categoryId,question_title:aa,question_type:1,question_score:Ta,question_choices:er.map(function(Ln){return Ln.choice_text}),standard_answers:er.filter(function(Ln){return Ln.is_answer}).map(function(Ln){return Ln.is_answer}),tag_discipline_ids:lt,sub_discipline_id:(Za=Re.editData)===null||Za===void 0||((pa=Za.exercise)===null||pa===void 0)?void 0:pa.sub_discipline_id,difficulty:zn,repeat_answer:!pn,analysis:En}});case 28:Ha=or.sent,xt(Ha);case 30:case"end":return or.stop()}},Zn)}));return function(){return Aa.apply(this,arguments)}}(),Kt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(Aa){var Zn,ea;return(Re==null||((Zn=Re.editData)===null||Zn===void 0||((ea=Zn.exercise)===null||ea===void 0))?void 0:ea.exercise_status)===1?Aa:Aa.id!=="del"&&Aa.id!=="add"}),Xn=function(){var Aa=Object(Q.a)(f.a.mark(function Zn(ea){return f.a.wrap(function(Ha){for(;;)switch(Ha.prev=Ha.next){case 0:if(!(fa!==-1)){Ha.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Ha.abrupt("return");case 3:Ha.t0=ea.id,Ha.next=Ha.t0==="del"?6:Ha.t0==="up"||Ha.t0==="down"?8:Ha.t0==="edit"?12:Ha.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Va(){return f.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:return pa.next=2,Object(N.n)({id:Fe.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},Kn)});case 3:case"end":return pa.stop()}},Va)}))()}}),Ha.abrupt("break",17);case 8:return Ha.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:Fe.question_id,opr:ea.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},Kn)}),Ha.abrupt("break",17);case 12:return z(Fe.dragKey),Yt(!0),Ha.abrupt("break",17);case 15:return vn({key:Fe.key,insert_id:Fe==null?void 0:Fe.question_id,question_type:0}),Ha.abrupt("break",17);case 17:case"end":return Ha.stop()}},Zn)}));return function(ea){return Aa.apply(this,arguments)}}(),ha=function(){var Zn;return t.a.createElement("aside",{ref:Vn},t.a.createElement("div",{className:le.a.questionType},!(Fe!=null&&Fe.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u5355\u9009\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09")),Fe!=null&&Fe.isPreview?t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,"."),t.a.createElement(de.a,{value:Fe.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Fe.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Fe.question_title})),t.a.createElement("div",{className:le.a.questionChoices},Fe==null||((Zn=Fe.question_choices)===null||Zn===void 0)?void 0:Zn.map(function(ea,er){return t.a.createElement(a.a,{key:er},t.a.createElement(v.a,null,t.a.createElement(g.a,{key:er,checked:Fe.standard_answer.includes(er+1),disabled:!0},Le[er],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:ea.choice_text}))))})),t.a.createElement("div",{className:le.a.action},!Fe.hideAction&&Kt.map(function(ea,er){return ea.id==="up"&&Fe.key===1||ea.id==="down"&&Fe.key===Fe.len?null:t.a.createElement(s.a,{key:er,placement:"bottom",title:ea.name},t.a.createElement("span",{onClick:function(){return Xn(ea)},className:ea.icon}))})))},Jn=function(){var Zn,ea;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:aa,onChange:function(Ha){return ra(Ha)}}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Tn.map(function(er,Ha){var Sr,Va;return t.a.createElement("div",{className:le.a.choiceWrap,key:Ha},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(le.a.answer," ").concat(Ma.includes(Ha)?le.a.activeAnswer:""),onClick:function(){Ma.includes(Ha)?Jt(Ma.filter(function(pa){return pa!==Ha})):Jt([].concat(Object(U.a)(Ma),[Ha]))}},Le[Ha])),t.a.createElement("div",{className:le.a.editorWrap},ir===Ha?t.a.createElement(A.a,{id:"single-question-option-".concat(Ha),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:er,onChange:function(pa){Tn[Ha]=pa,ya(Tn)}}):t.a.createElement("div",{className:le.a.htmlWrap,onClick:function(){return Qa(Ha)}},t.a.createElement(de.a,{value:er}))),((Sr=Re.editData)===null||Sr===void 0||((Va=Sr.exercise)===null||Va===void 0)?void 0:Va.exercise_status)===1&&t.a.createElement(t.a.Fragment,null,Ha>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(le.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return ya(Tn.filter(function(pa,Ja){return Ja!==Ha}))}})),Ha<7&&Ha===Tn.length-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(le.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return ya([].concat(Object(U.a)(Tn),[""]))}}))))}),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:En,onChange:function(Ha){return Pn(Ha)}}),t.a.createElement("div",{style:{marginBottom:14}},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:Ta,max:1e4,min:0,onChange:function(Ha){Wa(Ha)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:zn,onChange:function(Ha){jn(Ha.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("div",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{selectvalues:Fe==null?void 0:Fe.tag_discipline_ids,value:lt,onChange:ft,subId:(Zn=Re.editData)===null||Zn===void 0||((ea=Zn.exercise)===null||ea===void 0)?void 0:ea.sub_discipline_id,knowledgeOptions:Vt,onAddKnowledgeFinish:zt})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:pn,onChange:function(Ha){On(Ha)}}))),t.a.createElement("aside",{className:"tr"},(fa!==-1||Fe.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Fa(),Yt(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){ln()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:le.a.wrap},!jt&&ha(),jt&&Jn())},gt=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.globalSetting,Re=q.exercise;return{problemset:Z,globalSetting:Oe,exercise:Re,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Ye)),Ct=y("Z9P2"),tn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Zt=function(Z,oe){var Oe=Z.problemset,Re=Z.exercise,ve=Z.globalSetting,bn=Z.loading,kt=Z.dispatch,at=Z.onRef,Ht=at===void 0?function(){}:at,Fe=Z.editData,Un=Z.cancelAdd,Fa=Un===void 0?function(){}:Un,fa=Z.editKey,ae=Z.setEditKey,z=ae===void 0?function(){}:ae,Y=Z.reload,te=Y===void 0?function(){}:Y,_e=Z.addCallback,se=_e===void 0?function(){}:_e,ut=Z.setIsClaer,vn=ut===void 0?function(){}:ut,Wn=Object(F.a)(Z,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","reload","addCallback","setIsClaer"]),Oa=Object(i.useState)(""),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(""),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(""),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)(),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(!1),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)([]),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(1),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useState)(!1),fn=Object(o.a)(wn,2),zn=fn[0],jn=fn[1],$t=Object(i.useState)([[],[]]),yn=Object(o.a)($t,2),pn=yn[0],On=yn[1],cn=Object(i.useRef)(!1),sn=Object(P.i)(),En=Object(i.useState)([]),Pn=Object(o.a)(En,2),Kn=Pn[0],Vn=Pn[1],ua=function(Kt){Vn([].concat(Object(U.a)(Kn),[Object(d.a)({},Kt)]))};Object(i.useEffect)(function(){var ln;if(cn.current)return;if(!(Fe!=null&&Fe.question_title)){Wa(!0),ya(""),Jt(""),ra(10);return}jn(!(Fe!=null&&Fe.repeat_answer)),ya(Fe==null?void 0:Fe.question_title),Jt(Fe==null||((ln=Fe.standard_answer)===null||ln===void 0)?void 0:ln[0]),ra(Fe==null?void 0:Fe.question_score),ft(Fe.tag_discipline_ids),Yt(Fe==null?void 0:Fe.difficulty),Qa(Fe==null?void 0:Fe.analysis),On([Fe==null?void 0:Fe.normal_keywords,Fe==null?void 0:Fe.main_keywords])},[Oe.editData,Ta]),Object(i.useEffect)(function(){var ln,Kt=Re!=null&&(ln=Re.tagDisciplineData)!==null&&ln!==void 0&&ln.tag_disciplines&&Array.isArray(Re.tagDisciplineData.tag_disciplines)?Re.tagDisciplineData.tag_disciplines:[];Vn(Kt)},[Re.tagDisciplineData]),Object(i.useEffect)(function(){Ta&&ln();function ln(){return Kt.apply(this,arguments)}function Kt(){return Kt=Object(Q.a)(f.a.mark(function Xn(){var ha,Jn,Aa;return f.a.wrap(function(ea){for(;;)switch(ea.prev=ea.next){case 0:return ea.next=2,Object(N.I)({sub_discipline_id:(ha=Re.editData)===null||ha===void 0||((Jn=ha.exercise)===null||Jn===void 0)?void 0:Jn.sub_discipline_id});case 2:Aa=ea.sent,Vn(Aa.tag_disciplines);case 4:case"end":return ea.stop()}},Xn)})),Kt.apply(this,arguments)}},[Ta]),Object(i.useImperativeHandle)(oe,function(){return{onSave:rn,isEdit:Ta}});var xa=function(Kt){(Kt==null?void 0:Kt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Wa(!1),z(-1),cn.current=!1,te())},rn=function(){var ln=Object(Q.a)(f.a.mark(function Kt(){var Xn,ha,Jn,Aa,Zn,ea,er;return f.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(Tn){Sr.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Sr.abrupt("return",!1);case 3:if(Xn=pn[0],ha=pn[1],cn.current=!0,!Fe.question_id){Sr.next=17;break}if(!((Fe==null?void 0:Fe.is_my)===1)){Sr.next=11;break}O.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:function(){var Va=Object(Q.a)(f.a.mark(function pa(){var Ja,or;return f.a.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:return Wt.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:Tn,question_type:4,question_score:aa,standard_answers:[Ma],tag_discipline_ids:lt,sub_discipline_id:(Ja=Re.editData)===null||Ja===void 0||((or=Ja.exercise)===null||or===void 0)?void 0:or.sub_discipline_id,difficulty:jt,is_cover:1,repeat_answer:!zn,analysis:ir,normal_keywords:Xn,main_keywords:ha}});case 2:Jn=Wt.sent,xa(Jn);case 4:case"end":return Wt.stop()}},pa)}));function Za(){return Va.apply(this,arguments)}return Za}(),onCancel:function(){var Va=Object(Q.a)(f.a.mark(function pa(){var Ja,or;return f.a.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:return Wt.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:Tn,question_type:4,question_score:aa,standard_answers:[Ma],tag_discipline_ids:lt,sub_discipline_id:(Ja=Re.editData)===null||Ja===void 0||((or=Ja.exercise)===null||or===void 0)?void 0:or.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:ir,normal_keywords:Xn,main_keywords:ha}});case 2:Jn=Wt.sent,xa(Jn);case 4:case"end":return Wt.stop()}},pa)}));function Za(){return Va.apply(this,arguments)}return Za}()}),Sr.next=15;break;case 11:return Sr.next=13,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:Tn,question_type:4,question_score:aa,standard_answers:[Ma],tag_discipline_ids:lt,sub_discipline_id:(Aa=Re.editData)===null||Aa===void 0||((Zn=Aa.exercise)===null||Zn===void 0)?void 0:Zn.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:ir,normal_keywords:Xn,main_keywords:ha}});case 13:Jn=Sr.sent,xa(Jn);case 15:Sr.next=21;break;case 17:return Sr.next=19,kt({type:"exercise/addExerciseQuestion",payload:{insert_id:Fe==null?void 0:Fe.insert_id,categoryId:sn.categoryId,exercise_bank_id:sn.categoryId,question_title:Tn,question_type:4,question_score:aa,standard_answers:[Ma],tag_discipline_ids:lt,sub_discipline_id:(ea=Re.editData)===null||ea===void 0||((er=ea.exercise)===null||er===void 0)?void 0:er.sub_discipline_id,difficulty:jt,repeat_answer:!zn,analysis:ir,normal_keywords:Xn,main_keywords:ha}});case 19:Jn=Sr.sent,xa(Jn);case 21:return Sr.abrupt("return",{name:Tn,answer_texts:[Ma],analysis:ir,normal_keywords:Xn,main_keywords:ha});case 22:case"end":return Sr.stop()}},Kt)}));return function(){return ln.apply(this,arguments)}}(),Vt=function(){var Kt,Xn;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Tn,onChange:function(Jn){return ya(Jn)}}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),t.a.createElement(A.a,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Ma,onChange:function(Jn){return Jt(Jn)}}),t.a.createElement(Ct.a,{value:pn,onChange:On}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ir,onChange:function(Jn){return Qa(Jn)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:aa,max:1e4,min:0,onChange:function(Jn){ra(Jn)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:jt,onChange:function(Jn){Yt(Jn.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:lt,selectvalues:Fe==null?void 0:Fe.tag_discipline_ids,onChange:ft,subId:(Kt=Re.editData)===null||Kt===void 0||((Xn=Kt.exercise)===null||Xn===void 0)?void 0:Xn.sub_discipline_id,knowledgeOptions:Kn,onAddKnowledgeFinish:ua})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:zn,onChange:function(Jn){jn(Jn)}}))),t.a.createElement("aside",{className:"tr"},(fa!==-1||Fe.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Fa(),Wa(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){rn()}},"\u4FDD\u5B58")))},Dt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(ln){var Kt,Xn;return(Re==null||((Kt=Re.editData)===null||Kt===void 0||((Xn=Kt.exercise)===null||Xn===void 0))?void 0:Xn.exercise_status)===1?ln:ln.id!=="del"&&ln.id!=="add"}),zt=function(){var ln=Object(Q.a)(f.a.mark(function Kt(Xn){return f.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(!(fa!==-1)){Jn.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Jn.abrupt("return");case 3:Jn.t0=Xn.id,Jn.next=Jn.t0==="del"?6:Jn.t0==="up"||Jn.t0==="down"?8:Jn.t0==="edit"?12:Jn.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Zn(){return f.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,Object(N.n)({id:Fe.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},sn)});case 3:case"end":return er.stop()}},Zn)}))()}}),Jn.abrupt("break",17);case 8:return Jn.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:Fe.question_id,opr:Xn.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},sn)}),Jn.abrupt("break",17);case 12:return z(Fe.dragKey),Wa(!0),Jn.abrupt("break",17);case 15:return se({key:Fe.key,insert_id:Fe==null?void 0:Fe.question_id,question_type:4}),Jn.abrupt("break",17);case 17:case"end":return Jn.stop()}},Kt)}));return function(Xn){return ln.apply(this,arguments)}}(),xt=function(){return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(Fe!=null&&Fe.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09")),Fe!=null&&Fe.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,"."),t.a.createElement(de.a,{value:Fe.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Fe.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Fe.question_title})),t.a.createElement("div",{className:le.a.questionChoices},t.a.createElement("p",null,t.a.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),t.a.createElement(de.a,{value:Ma||""})),t.a.createElement("div",{className:le.a.action},!Fe.hideAction&&Dt.map(function(Kt,Xn){return Kt.id==="up"&&Fe.key===1||Kt.id==="down"&&Fe.key===Fe.len?null:t.a.createElement(s.a,{key:Xn,placement:"bottom",title:Kt.name},t.a.createElement("span",{onClick:function(){return zt(Kt)},className:Kt.icon}))})))};return t.a.createElement("section",{className:le.a.wrap},!Ta&&xt(),Ta&&Vt())},Hn=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.exercise,Re=q.globalSetting;return{problemset:Z,globalSetting:Re,exercise:Oe,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Zt)),ia=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],vt=function(Z,oe){var Oe=Z.problemset,Re=Z.exercise,ve=Z.globalSetting,bn=Z.loading,kt=Z.dispatch,at=Z.onRef,Ht=at===void 0?function(){}:at,Fe=Z.editData,Un=Z.cancelAdd,Fa=Un===void 0?function(){}:Un,fa=Z.editKey,ae=Z.setEditKey,z=ae===void 0?function(){}:ae,Y=Z.addCallback,te=Y===void 0?function(){}:Y,_e=Z.setIsClaer,se=_e===void 0?function(){}:_e,ut=Object(F.a)(Z,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","addCallback","setIsClaer"]),vn=Object(i.useState)([]),Wn=Object(o.a)(vn,2),Oa=Wn[0],dn=Wn[1],Tn=Object(i.useState)(),ya=Object(o.a)(Tn,2),fr=ya[0],gr=ya[1],ir=Object(i.useState)([]),Qa=Object(o.a)(ir,2),ba=Qa[0],Na=Qa[1],Ma=Object(i.useState)(""),Jt=Object(o.a)(Ma,2),Rt=Jt[0],An=Jt[1],aa=Object(i.useState)(5),ra=Object(o.a)(aa,2),Fn=ra[0],da=ra[1],Ta=Object(i.useState)(!1),Wa=Object(o.a)(Ta,2),ue=Wa[0],ot=Wa[1],lt=Object(P.g)(),ft=Object(P.i)();Object(i.useEffect)(function(){dn(["","","",""])},[]),Object(i.useEffect)(function(){if(!(Fe!=null&&Fe.question_choices)){ot(!0),An(""),da(5),dn(["","","",""]),Na([]);return}An(Fe==null?void 0:Fe.question_title),da(Fe==null?void 0:Fe.question_score),dn(Fe==null?void 0:Fe.question_choices.map(function(zn){return zn.choice_text}));var fn=[];Fe==null||Fe.standard_answer.map(function(zn,jn){fn.push(zn-1)}),Na(fn)},[Fe]),Object(i.useImperativeHandle)(oe,function(){return{onSave:wt,isEdit:ue}});var wt=function(){var fn=Object(Q.a)(f.a.mark(function zn(){var jn,$t,yn;return f.a.wrap(function(On){for(;;)switch(On.prev=On.next){case 0:if(Rt){On.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),On.abrupt("return",!1);case 3:if(jn=Oa.findIndex(function(cn){return!cn}),!(jn>-1)){On.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(ia[jn]," \u9009\u9879\u7684\u5185\u5BB9")),On.abrupt("return",!1);case 7:if(ba.length){On.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),On.abrupt("return",!1);case 10:if(!(ba.length<1)){On.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),On.abrupt("return",!1);case 13:if($t=Oa.map(function(cn,sn){return{choice_text:cn,is_answer:ba.includes(sn)?sn+1:0}}),!Fe.question_id){On.next=20;break}return On.next=17,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:Rt,question_type:1,question_score:Fn,question_choices:$t.map(function(cn){return cn.choice_text}),standard_answers:$t.filter(function(cn){return cn.is_answer}).map(function(cn){return cn.is_answer})}});case 17:yn=On.sent,On.next=23;break;case 20:return On.next=22,kt({type:"exercise/addExerciseQuestion",payload:{insert_id:Fe==null?void 0:Fe.insert_id,categoryId:ft.categoryId,question_title:Rt,question_type:1,question_score:"5.0",question_choices:$t.map(function(cn){return cn.choice_text}),standard_answers:$t.filter(function(cn){return cn.is_answer}).map(function(cn){return cn.is_answer})}});case 22:yn=On.sent;case 23:yn.status===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),ot(!1),kt({type:"exercise/editExercise",payload:Object(d.a)({},ft)}));case 24:case"end":return On.stop()}},zn)}));return function(){return fn.apply(this,arguments)}}(),Et=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(fn){var zn,jn;return(Re==null||((zn=Re.editData)===null||zn===void 0||((jn=zn.exercise)===null||jn===void 0))?void 0:jn.exercise_status)===1?fn:fn.id!=="del"&&fn.id!=="add"}),jt=function(){var fn=Object(Q.a)(f.a.mark(function zn(jn){return f.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:if(!(fa!==-1)){yn.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),yn.abrupt("return");case 3:yn.t0=jn.id,yn.next=yn.t0==="del"?6:yn.t0==="up"||yn.t0==="down"?8:yn.t0==="edit"?12:yn.t0==="add"?14:16;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function On(){return f.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:return sn.next=2,Object(N.n)({id:Fe.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},ft)});case 3:case"end":return sn.stop()}},On)}))()}}),yn.abrupt("break",16);case 8:return yn.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:Fe.question_id,opr:jn.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},ft)}),yn.abrupt("break",16);case 12:return lt.push("/problems/".concat(Fe==null?void 0:Fe.hack_identifier,"/edit?type=exercises&express_id=").concat(ft.categoryId,"&question_id=").concat(Fe==null?void 0:Fe.question_id,"&score=").concat(Fe==null?void 0:Fe.question_score,"&exercise=true&callback_url=").concat(location.pathname)),yn.abrupt("break",16);case 14:return te({key:Fe.key,insert_id:Fe==null?void 0:Fe.question_id,question_type:6}),yn.abrupt("break",16);case 16:case"end":return yn.stop()}},zn)}));return function(jn){return fn.apply(this,arguments)}}(),Yt=function(){var fn=Object(Q.a)(f.a.mark(function zn(jn){var $t;return f.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:return jn.preventDefault(),pn.next=3,Object(N.X)({id:Fe==null?void 0:Fe.hack_identifier});case 3:$t=pn.sent,$t.status===0&&Object($.S)("/myproblems/".concat($t==null?void 0:$t.identifier));case 5:case"end":return pn.stop()}},zn)}));return function(jn){return fn.apply(this,arguments)}}(),wn=function(){return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},!(Fe!=null&&Fe.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u7F16\u7A0B\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09")),Fe!=null&&Fe.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,"."),t.a.createElement(de.a,{value:Fe.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Fe.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Fe.question_title})),t.a.createElement("div",{className:le.a.questionChoices},t.a.createElement(de.a,{value:Fe.description||""})),t.a.createElement("div",{className:le.a.action},!Fe.hideAction&&Et.map(function(zn,jn){return zn.id==="up"&&Fe.key===1||zn.id==="down"&&Fe.key===Fe.len?null:t.a.createElement(s.a,{key:jn,placement:"bottom",title:zn.name},t.a.createElement("span",{onClick:function(){return jt(zn)},className:zn.icon}))})))};return t.a.createElement("section",{className:le.a.wrap},wn())},mt=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.globalSetting,Re=q.exercise;return{problemset:Z,globalSetting:Oe,exercise:Re,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(vt)),on=y("LvDl"),hn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ot=function(Z,oe){var Oe=Z.problemset,Re=Z.exercise,ve=Z.globalSetting,bn=Z.loading,kt=Z.dispatch,at=Z.onRef,Ht=at===void 0?function(){}:at,Fe=Z.editData,Un=Z.cancelAdd,Fa=Un===void 0?function(){}:Un,fa=Z.editKey,ae=Z.setEditKey,z=ae===void 0?function(){}:ae,Y=Z.setIsClaer,te=Y===void 0?function(){}:Y,_e=Z.addCallback,se=_e===void 0?function(rn){}:_e,ut=Z.reload,vn=ut===void 0?function(){}:ut,Wn=Object(F.a)(Z,["problemset","exercise","globalSetting","loading","dispatch","onRef","editData","cancelAdd","editKey","setEditKey","setIsClaer","addCallback","reload"]),Oa=Object(i.useState)([]),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(!1),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(!0),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)(1),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(!1),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)([]),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(P.i)(),Et=Object(i.useRef)(null),jt=Object(i.useState)(""),Yt=Object(o.a)(jt,2),wn=Yt[0],fn=Yt[1],zn=Object(i.useState)([]),jn=Object(o.a)(zn,2),$t=jn[0],yn=jn[1],pn=Object(i.useRef)(!1),On=function(Vt){ft([].concat(Object(U.a)(lt),[Object(d.a)({},Vt)]))};Object(i.useEffect)(function(){var rn;if(pn.current)return;if(!(Fe!=null&&Fe.question_title)){Qa(!0),fn("");return}fn(Fe==null?void 0:Fe.question_title),Wa(!(Fe!=null&&Fe.repeat_answer)),ra(Fe==null?void 0:Fe.difficulty),ya(Fe.tag_discipline_ids);var Vt=Fe==null||((rn=Fe.sub_exercise_questions)===null||rn===void 0)?void 0:rn.map(function(Dt){var zt,xt,ln;return Object(d.a)(Object(d.a)({},Dt),{},{id:Dt.question_id,name:Dt.question_title,open:!1,score:Dt.question_score,qusList:Dt==null||((zt=Dt.question_choices)===null||zt===void 0)?void 0:zt.map(function(Kt){return Kt.choice_text}),activeQusEditor:null,qusAnswer:(xt=[Dt==null||((ln=Dt.question_choices)===null||ln===void 0)?void 0:ln.findIndex(function(Kt){return Kt.standard_boolean})])===null||xt===void 0?void 0:xt.filter(function(Kt){return Kt!==-1})})});yn(Vt)},[Fe,ir]),Object(i.useEffect)(function(){ir&&rn();function rn(){return Vt.apply(this,arguments)}function Vt(){return Vt=Object(Q.a)(f.a.mark(function Dt(){var zt,xt,ln;return f.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.next=2,Object(N.I)({sub_discipline_id:(zt=Re.editData)===null||zt===void 0||((xt=zt.exercise)===null||xt===void 0)?void 0:xt.sub_discipline_id});case 2:ln=Xn.sent,ft(ln.tag_disciplines);case 4:case"end":return Xn.stop()}},Dt)})),Vt.apply(this,arguments)}},[ir]),Object(i.useEffect)(function(){var rn,Vt=Re!=null&&(rn=Re.tagDisciplineData)!==null&&rn!==void 0&&rn.tag_disciplines&&Array.isArray(Re.tagDisciplineData.tag_disciplines)?Re.tagDisciplineData.tag_disciplines:[];ft(Vt)},[Re.tagDisciplineData]),Object(i.useImperativeHandle)(oe,function(){return{onSave:sn,isEdit:ir}});var cn=function(Vt){(Vt==null?void 0:Vt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Qa(!1),z(-1),pn.current=!1,vn())},sn=function(){var rn=Object(Q.a)(f.a.mark(function Vt(){var Dt,zt,xt,ln,Kt,Xn,ha,Jn;return f.a.wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:if(wn){Zn.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Zn.abrupt("return",!1);case 3:if(!($t.length===0)){Zn.next=6;break}return E.b.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),Zn.abrupt("return",!1);case 6:Dt=0;case 7:if(!(Dt<$t.length)){Zn.next=25;break}if(xt=$t[Dt],xt!=null&&xt.name){Zn.next=12;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u7B2C".concat(Dt+1,"\u5C0F\u9898\u9898\u5E72")),Zn.abrupt("return",!1);case 12:if(xt!=null&&xt.score){Zn.next=15;break}return E.b.info("\u7B2C".concat(Dt+1,"\u5C0F\u9898\u5206\u6570\u4E0D\u80FD\u4E3A0\u6216\u7A7A")),Zn.abrupt("return",!1);case 15:if(ln=xt==null||((zt=xt.qusList)===null||zt===void 0)?void 0:zt.findIndex(function(ea){return!ea}),!(ln>-1)){Zn.next=19;break}return E.b.info("\u8BF7\u5148\u8F93\u5165\u7B2C".concat(Dt+1,"\u5C0F\u9898").concat(hn[ln],"\u9009\u9879\u7684\u5185\u5BB9")),Zn.abrupt("return",!1);case 19:if(xt!=null&&xt.qusAnswer.length){Zn.next=22;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u7B2C".concat(Dt+1,"\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E")),Zn.abrupt("return",!1);case 22:Dt++,Zn.next=7;break;case 25:if(Kt=$t.map(function(ea){var er;return{id:ea.id>1?ea.id:null,question_title:ea.name,question_type:1,question_choices:ea.qusList,question_score:ea.score,standard_answers:[((er=ea.qusAnswer)===null||er===void 0?void 0:er[0])+1]}}),pn.current=!0,!Fe.question_id){Zn.next=36;break}if(!((Fe==null?void 0:Fe.is_my)===1)){Zn.next=32;break}O.a.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:function(){var ea=Object(Q.a)(f.a.mark(function Ha(){var Sr,Va;return f.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:return pa.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:wn,question_type:7,sub_questions:Kt,tag_discipline_ids:Tn,sub_discipline_id:(Sr=Re.editData)===null||Sr===void 0||((Va=Sr.exercise)===null||Va===void 0)?void 0:Va.sub_discipline_id,difficulty:aa,is_cover:1,repeat_answer:!Ta}});case 2:Xn=pa.sent,cn(Xn);case 4:case"end":return pa.stop()}},Ha)}));function er(){return ea.apply(this,arguments)}return er}(),onCancel:function(){var ea=Object(Q.a)(f.a.mark(function Ha(){var Sr,Va;return f.a.wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:return pa.next=2,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:wn,question_type:7,sub_questions:Kt,tag_discipline_ids:Tn,sub_discipline_id:(Sr=Re.editData)===null||Sr===void 0||((Va=Sr.exercise)===null||Va===void 0)?void 0:Va.sub_discipline_id,difficulty:aa,repeat_answer:!Ta}});case 2:Xn=pa.sent,cn(Xn);case 4:case"end":return pa.stop()}},Ha)}));function er(){return ea.apply(this,arguments)}return er}()}),Zn.next=36;break;case 32:return Zn.next=34,kt({type:"exercise/editExerciseQuestion",payload:{id:Fe.question_id,question_title:wn,question_type:7,sub_questions:Kt,tag_discipline_ids:Tn,sub_discipline_id:(ha=Re.editData)===null||ha===void 0||((Jn=ha.exercise)===null||Jn===void 0)?void 0:Jn.sub_discipline_id,difficulty:aa,repeat_answer:!Ta}});case 34:Xn=Zn.sent,cn(Xn);case 36:case"end":return Zn.stop()}},Vt)}));return function(){return rn.apply(this,arguments)}}(),En=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}].filter(function(rn){var Vt,Dt;return(Re==null||((Vt=Re.editData)===null||Vt===void 0||((Dt=Vt.exercise)===null||Dt===void 0))?void 0:Dt.exercise_status)===1?rn:rn.id!=="del"&&rn.id!=="add"}),Pn=function(){var rn=Object(Q.a)(f.a.mark(function Vt(Dt){return f.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!(fa!==-1)){xt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),xt.abrupt("return");case 3:xt.t0=Dt.id,xt.next=xt.t0==="del"?6:xt.t0==="up"||xt.t0==="down"?8:xt.t0==="edit"?12:xt.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Kt(){return f.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.next=2,Object(N.n)({id:Fe.question_id});case 2:kt({type:"exercise/editExercise",payload:Object(d.a)({},wt)});case 3:case"end":return ha.stop()}},Kt)}))()}}),xt.abrupt("break",17);case 8:return xt.next=10,kt({type:"exercise/exeriseMoveUpDown",payload:{id:Fe.question_id,opr:Dt.id}});case 10:return kt({type:"exercise/editExercise",payload:Object(d.a)({},wt)}),xt.abrupt("break",17);case 12:return z(Fe.dragKey),Qa(!0),xt.abrupt("break",17);case 15:return se({key:Fe.key,insert_id:Fe==null?void 0:Fe.question_id,question_type:0}),xt.abrupt("break",17);case 17:case"end":return xt.stop()}},Vt)}));return function(Dt){return rn.apply(this,arguments)}}(),Kn=function(){var Vt;return t.a.createElement("aside",{ref:Et},t.a.createElement("div",{className:le.a.questionType},!(Fe!=null&&Fe.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u7EC4\u5408\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09")),Fe!=null&&Fe.isPreview?t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,"."),t.a.createElement(de.a,{value:Fe.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08\u5171",Fe==null?void 0:Fe.sub_q_count,"\u5C0F\u9898\uFF0C",Fe.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Fe.question_title})),t.a.createElement("div",{style:{display:Ma?"block":"none"},className:le.a.questionChoices},Fe==null||((Vt=Fe.sub_exercise_questions)===null||Vt===void 0)?void 0:Vt.map(function(Dt,zt){var xt;return t.a.createElement("div",{key:zt},t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Fe.key,".",zt+1,"\uFF08\u5355\u9009\u9898\uFF09"),t.a.createElement(de.a,{value:Dt.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Dt.question_score,"\u5206\uFF09")),Dt==null||((xt=Dt.question_choices)===null||xt===void 0)?void 0:xt.map(function(ln,Kt){return t.a.createElement(a.a,{key:Kt},t.a.createElement(v.a,null,t.a.createElement(g.a,{key:Kt,checked:Dt.standard_answer.includes(Kt+1),disabled:!0},hn[Kt],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:ln.choice_text}))))}))})),t.a.createElement("div",{className:le.a.action},t.a.createElement("span",{className:"c-light-primary current",onClick:function(){return Jt(!Ma)},style:{}},Ma?"\u6536\u8D77":"\u5C55\u5F00"),!Fe.hideAction&&En.map(function(Dt,zt){return Dt.id==="up"&&Fe.key===1||Dt.id==="down"&&Fe.key===Fe.len?null:t.a.createElement(s.a,{key:zt,placement:"bottom",title:Dt.name},t.a.createElement("span",{onClick:function(){return Pn(Dt)},className:Dt.icon}))})))},Vn=function(){var Vt,Dt;return t.a.createElement("aside",null,t.a.createElement("div",{className:le.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("section",{className:le.a.wrap,style:{padding:0}},t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:wn,onChange:function(xt){return fn(xt)}}),t.a.createElement("p",null,"\u5C0F\u9898\u6570\uFF1A",$t==null?void 0:$t.length),$t==null?void 0:$t.map(function(zt,xt){var ln;return t.a.createElement("div",{className:le.a.fold,key:zt.id},t.a.createElement("div",{onClick:function(){return xa("open",xt)},className:le.a.head},t.a.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:zt.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),t.a.createElement("span",null,"\u7B2C",xt+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),t.a.createElement("b",{onClick:function(Xn){Xn.stopPropagation(),xa("delete",xt)},className:"iconfont icon-shanchu8"})),t.a.createElement("div",{className:"mb10",style:{display:zt.open?"block":"none"}},t.a.createElement(A.a,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:zt==null?void 0:zt.name,onChange:function(Xn){return xa("value",xt,Xn)}}),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:le.a.required},"*"),t.a.createElement("span",{className:le.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),zt==null||((ln=zt.qusList)===null||ln===void 0)?void 0:ln.map(function(Kt,Xn){var ha,Jn;return t.a.createElement("div",{className:le.a.choiceWrap,key:Xn},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(le.a.answer," ").concat(zt!=null&&(ha=zt.qusAnswer)!==null&&ha!==void 0&&ha.includes(Xn)?le.a.activeAnswer:""),onClick:function(){return xa("answer",xt,Xn)}},hn[Xn])),t.a.createElement("div",{className:le.a.editorWrap},(zt==null?void 0:zt.activeQusEditor)===Xn?t.a.createElement(A.a,{id:"single-question-option-".concat(Xn),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Kt,onChange:function(Zn){return xa("details",xt,Zn)}}):t.a.createElement("div",{className:le.a.htmlWrap,onClick:function(){return xa("edit",xt,Xn)}},t.a.createElement(de.a,{value:Kt}))),Xn>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(le.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return xa("deleteQus",xt,Xn)}})),Xn<7&&Xn===(zt==null||((Jn=zt.qusList)===null||Jn===void 0)?void 0:Jn.length)-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(le.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return xa("addQus",xt)}})))}),t.a.createElement("p",{className:"mt10"},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:zt.score,max:1e4,min:0,onChange:function(Xn){return xa("score",xt,Xn)}})," ","\u5206")))}),$t.length<20&&t.a.createElement(u.a,{type:"primary",onClick:ua},t.a.createElement("i",{className:"iconfont icon-tianjiatimu mr5 font14"}),"\u6DFB\u52A0\u5C0F\u9898")),t.a.createElement("p",{className:"mt10"},t.a.createElement("span",{className:le.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:aa,onChange:function(xt){ra(xt.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:le.a.titleWrap},t.a.createElement("span",{className:"".concat(le.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:le.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{selectvalues:Fe==null?void 0:Fe.tag_discipline_ids,value:Tn,onChange:ya,subId:(Vt=Re.editData)===null||Vt===void 0||((Dt=Vt.exercise)===null||Dt===void 0)?void 0:Dt.sub_discipline_id,knowledgeOptions:lt,onAddKnowledgeFinish:On}))),t.a.createElement("aside",{className:"tr"},(fa!==-1||Fe.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Fa(),Qa(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){sn()}},"\u4FDD\u5B58")))},ua=function(){var Vt={id:Math.random(),item_type:"SINGLE",open:!1,name:"",qusList:["","","",""],activeQusEditor:null,qusAnswer:[],analysis:""};yn($t.concat(Vt))},xa=function(Vt,Dt,zt){var xt=Object(on.cloneDeep)($t);if(Vt==="open"&&(xt[Dt].open=!xt[Dt].open),Vt==="delete"&&xt.splice(Dt,1),Vt==="value"&&(xt[Dt].name=zt),Vt==="answer"&&(xt[Dt].qusAnswer=[zt]),Vt==="edit"&&(xt[Dt].activeQusEditor=zt),Vt==="details"&&(xt[Dt].qusList[xt[Dt].activeQusEditor]=zt),Vt==="addQus"&&(xt[Dt].qusList=xt[Dt].qusList.concat("")),Vt==="deleteQus"){var ln;xt[Dt].qusList=xt[Dt].qusList.filter(function(Kt,Xn){return Xn!==zt}),xt[Dt].qusAnswer=(ln=xt[Dt].qusAnswer)===null||ln===void 0?void 0:ln.filter(function(Kt){return Kt!==zt})}Vt==="analysis"&&(xt[Dt].analysis=zt),Vt==="score"&&(xt[Dt].score=zt),yn(xt)};return t.a.createElement("section",{className:le.a.wrap},!ir&&Kn(),ir&&Vn())},Xt=Object(H.a)(function(q){var Z=q.problemset,oe=q.loading,Oe=q.globalSetting,Re=q.exercise;return{problemset:Z,globalSetting:Oe,exercise:Re,loading:oe.effects}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Ot)),ht=y("ngQI"),Je=y("loLm"),rt=y.n(Je),Te=y("ErOA"),Me=y("vCeJ"),Ie=y("Nog9"),be=y.n(Ie),qe=y("hQp1"),Lt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],nn=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.cancelAdd,kt=bn===void 0?function(){}:bn,at=Z.editKey,Ht=Z.setEditKey,Fe=Ht===void 0?function(){}:Ht,Un=Z.reload,Fa=Un===void 0?function(){}:Un,fa=Z.addCallback,ae=fa===void 0?function(Dt){}:fa,z=Object(i.useState)([]),Y=Object(o.a)(z,2),te=Y[0],_e=Y[1],se=Object(i.useState)(),ut=Object(o.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(i.useState)([]),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(""),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)([]),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(!1),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)(1),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(!1),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useState)(""),fn=Object(o.a)(wn,2),zn=fn[0],jn=fn[1],$t=Object(P.i)(),yn=Object(i.useRef)(null),pn=Object(i.useRef)(!1),On=Object(i.useState)([]),cn=Object(o.a)(On,2),sn=cn[0],En=cn[1],Pn=function(zt){En([].concat(Object(U.a)(sn),[Object(d.a)({},zt)]))};Object(i.useEffect)(function(){_e(["","","",""])},[]),Object(i.useEffect)(function(){if(pn.current)return;if(!(ve!=null&&ve.question_choices)){Wa(!0),Qa(""),Jt(5),_e(["","","",""]),ya([]);return}Qa(ve==null?void 0:ve.question_title),Jt(ve==null?void 0:ve.question_score),Yt(!(ve!=null&&ve.repeat_answer)),jn(ve==null?void 0:ve.analysis),ft(ve==null?void 0:ve.difficulty),_e(ve==null?void 0:ve.question_choices.map(function(zt){return zt.choice_text}));var Dt=[];ve==null||ve.standard_answer.map(function(zt,xt){Dt.push(zt-1)}),ra(ve.tag_discipline_ids),ya(Dt)},[ve,Ta]),Object(i.useEffect)(function(){Ta&&Dt();function Dt(){return zt.apply(this,arguments)}function zt(){return zt=Object(Q.a)(f.a.mark(function xt(){var ln,Kt,Xn;return f.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:return Jn.next=2,Object(N.I)({sub_discipline_id:(ln=Oe.editData)===null||ln===void 0||((Kt=ln.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id});case 2:Xn=Jn.sent,En(Xn.tag_disciplines);case 4:case"end":return Jn.stop()}},xt)})),zt.apply(this,arguments)}},[Ta]),Object(i.useEffect)(function(){var Dt,zt=Oe!=null&&(Dt=Oe.tagDisciplineData)!==null&&Dt!==void 0&&Dt.tag_disciplines&&Array.isArray(Oe.tagDisciplineData.tag_disciplines)?Oe.tagDisciplineData.tag_disciplines:[];En(zt)},[Oe.tagDisciplineData]),Object(i.useImperativeHandle)(oe,function(){return{onSave:Vn,isEdit:Ta}});var Kn=function(zt){(zt==null?void 0:zt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Wa(!1),Fe(-1),pn.current=!1,Fa())},Vn=function(){var Dt=Object(Q.a)(f.a.mark(function zt(){var xt,ln,Kt,Xn,ha,Jn,Aa;return f.a.wrap(function(ea){for(;;)switch(ea.prev=ea.next){case 0:if(ir){ea.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),ea.abrupt("return",!1);case 3:if(xt=te.findIndex(function(er){return!er}),!(xt>-1)){ea.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Lt[xt]," \u9009\u9879\u7684\u5185\u5BB9")),ea.abrupt("return",!1);case 7:if(Tn.length){ea.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),ea.abrupt("return",!1);case 10:if(!(Tn.length<1)){ea.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),ea.abrupt("return",!1);case 13:if(ln=te.map(function(er,Ha){return{choice_text:er,is_answer:Tn.includes(Ha)?1:0}}),pn.current=!0,!ve.question_id){ea.next=22;break}return ea.next=18,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:$t.id,question_id:ve.question_id,name:ir,item_type:Tn.length>1?qe.a.Multiple:qe.a.Single,question_score:Ma,choices:ln,tag_discipline_ids:aa,sub_discipline_id:(Xn=Oe.editData)===null||Xn===void 0||((ha=Xn.exercise)===null||ha===void 0)?void 0:ha.sub_discipline_id,difficulty:lt,repeat_answer:!jt,analysis:zn}});case 18:Kt=ea.sent,Kn(Kt),ea.next=26;break;case 22:return ea.next=24,Re({type:"newExercisePaper/addExerciseQuestion",payload:{insert_id:ve==null?void 0:ve.insert_id,id:$t.id,name:ir,item_type:Tn.length>1?qe.a.Multiple:qe.a.Single,question_score:Ma,choices:ln,tag_discipline_ids:aa,sub_discipline_id:(Jn=Oe.editData)===null||Jn===void 0||((Aa=Jn.exercise)===null||Aa===void 0)?void 0:Aa.sub_discipline_id,difficulty:lt,repeat_answer:!jt,analysis:zn}});case 24:Kt=ea.sent,Kn(Kt);case 26:case"end":return ea.stop()}},zt)}));return function(){return Dt.apply(this,arguments)}}(),ua=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5355\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],xa=function(){var Dt=Object(Q.a)(f.a.mark(function zt(xt){return f.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(!(at!==-1)){Kt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Kt.abrupt("return");case 3:Kt.t0=xt.id,Kt.next=Kt.t0==="del"?6:Kt.t0==="edit"?8:Kt.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function ha(){return f.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return Aa.next=2,Object(Me.g)({exam_id:$t.id,question_id:ve.question_id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},$t)});case 3:case"end":return Aa.stop()}},ha)}))()}}),Kt.abrupt("break",13);case 8:return Fe(ve.dragKey),Wa(!0),Kt.abrupt("break",13);case 11:return ae({key:ve.key,insert_id:ve==null?void 0:ve.question_id,question_type:0}),Kt.abrupt("break",13);case 13:case"end":return Kt.stop()}},zt)}));return function(xt){return Dt.apply(this,arguments)}}(),rn=function(){var zt;return t.a.createElement("aside",{ref:yn},t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u5355\u9009\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{className:be.a.questionChoices},ve==null||((zt=ve.question_choices)===null||zt===void 0)?void 0:zt.map(function(xt,ln){return t.a.createElement(a.a,{key:ln},t.a.createElement(v.a,null,t.a.createElement(g.a,{key:ln,checked:ve.standard_answer.includes(ln+1),disabled:!0},Lt[ln],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:xt.choice_text}))))})),t.a.createElement("div",{className:be.a.action},!ve.hideAction&&ua.map(function(xt,ln){return t.a.createElement(s.a,{key:ln,placement:"bottom",title:xt.name},t.a.createElement("span",{onClick:function(){return xa(xt)},className:xt.icon}))})))},Vt=function(){var zt,xt;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ir,onChange:function(Kt){return Qa(Kt)}}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),te.map(function(ln,Kt){return t.a.createElement("div",{className:be.a.choiceWrap,key:Kt},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(be.a.answer," ").concat(Tn.includes(Kt)?be.a.activeAnswer:""),onClick:function(){Tn.includes(Kt)?ya(function(ha){return ha.filter(function(Jn){return Jn!==Kt})}):ya(function(ha){return[].concat(Object(U.a)(ha),[Kt])})}},Lt[Kt])),t.a.createElement("div",{className:be.a.editorWrap},vn===Kt?t.a.createElement(A.a,{id:"single-question-option-".concat(Kt),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ln,onChange:function(ha){te[Kt]=ha,_e(te)}}):t.a.createElement("div",{className:be.a.htmlWrap,onClick:function(){return Wn(Kt)}},t.a.createElement(de.a,{value:ln}))),t.a.createElement(t.a.Fragment,null,Kt>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(be.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return _e(te.filter(function(ha,Jn){return Jn!==Kt}))}})),Kt<7&&Kt===te.length-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(be.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return _e([].concat(Object(U.a)(te),[""]))}}))))}),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:zn,onChange:function(Kt){return jn(Kt)}}),t.a.createElement("div",{style:{marginBottom:14}},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:Ma,max:1e4,min:0,onChange:function(Kt){Jt(Kt)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:lt,onChange:function(Kt){ft(Kt.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("div",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{selectvalues:ve==null?void 0:ve.tag_discipline_ids,value:aa,onChange:ra,subId:(zt=Oe.editData)===null||zt===void 0||((xt=zt.exercise)===null||xt===void 0)?void 0:xt.sub_discipline_id,knowledgeOptions:sn,onAddKnowledgeFinish:Pn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:jt,onChange:function(Kt){Yt(Kt)}}))),t.a.createElement("aside",{className:"tr"},(at!==-1||ve.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){kt(),Wa(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){Vn()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:be.a.wrap},!Ta&&rn(),Ta&&Vt())},$n=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(nn)),ta=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Sa=Object(i.forwardRef)(function(q,Z){var oe=q.newExercisePaper,Oe=q.dispatch,Re=q.editData,ve=q.cancelAdd,bn=ve===void 0?function(){}:ve,kt=q.editKey,at=q.setEditKey,Ht=at===void 0?function(){}:at,Fe=q.addCallback,Un=Fe===void 0?function(rn){}:Fe,Fa=q.reload,fa=Fa===void 0?function(){}:Fa,ae=Object(i.useState)([]),z=Object(o.a)(ae,2),Y=z[0],te=z[1],_e=Object(i.useState)(),se=Object(o.a)(_e,2),ut=se[0],vn=se[1],Wn=Object(i.useState)([]),Oa=Object(o.a)(Wn,2),dn=Oa[0],Tn=Oa[1],ya=Object(i.useState)(""),fr=Object(o.a)(ya,2),gr=fr[0],ir=fr[1],Qa=Object(i.useState)(),ba=Object(o.a)(Qa,2),Na=ba[0],Ma=ba[1],Jt=Object(i.useState)(!1),Rt=Object(o.a)(Jt,2),An=Rt[0],aa=Rt[1],ra=Object(i.useState)([]),Fn=Object(o.a)(ra,2),da=Fn[0],Ta=Fn[1],Wa=Object(i.useState)(1),ue=Object(o.a)(Wa,2),ot=ue[0],lt=ue[1],ft=Object(i.useState)(!1),wt=Object(o.a)(ft,2),Et=wt[0],jt=wt[1],Yt=Object(i.useState)(""),wn=Object(o.a)(Yt,2),fn=wn[0],zn=wn[1],jn=Object(i.useState)([]),$t=Object(o.a)(jn,2),yn=$t[0],pn=$t[1],On=Object(i.useRef)(!1),cn=function(Vt){pn([].concat(Object(U.a)(yn),[Object(d.a)({},Vt)]))},sn=Object(P.i)();Object(i.useEffect)(function(){te(["","","",""])},[]),Object(i.useEffect)(function(){if(On.current)return;if(!(Re!=null&&Re.question_choices)){aa(!0),ir(""),Ma(5),te(["","","",""]),Tn([]);return}ir(Re==null?void 0:Re.question_title),Ma(Re==null?void 0:Re.question_score),jt(!(Re!=null&&Re.repeat_answer)),lt(Re==null?void 0:Re.difficulty),te(Re==null?void 0:Re.question_choices.map(function(Vt){return Vt.choice_text}));var rn=[];Re==null||Re.standard_answer.map(function(Vt,Dt){rn.push(Vt-1)}),Tn(rn),Ta(Re.tag_discipline_ids),zn(Re==null?void 0:Re.analysis)},[Re,An]),Object(i.useEffect)(function(){An&&rn();function rn(){return Vt.apply(this,arguments)}function Vt(){return Vt=Object(Q.a)(f.a.mark(function Dt(){var zt,xt,ln;return f.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:return Xn.next=2,Object(N.I)({sub_discipline_id:(zt=oe.editData)===null||zt===void 0||((xt=zt.exercise)===null||xt===void 0)?void 0:xt.sub_discipline_id});case 2:ln=Xn.sent,pn(ln.tag_disciplines);case 4:case"end":return Xn.stop()}},Dt)})),Vt.apply(this,arguments)}},[An]),Object(i.useImperativeHandle)(Z,function(){return{onSave:Pn,isEdit:An}}),Object(i.useEffect)(function(){var rn,Vt=oe!=null&&(rn=oe.tagDisciplineData)!==null&&rn!==void 0&&rn.tag_disciplines&&Array.isArray(oe.tagDisciplineData.tag_disciplines)?oe.tagDisciplineData.tag_disciplines:[];pn(Vt)},[oe.tagDisciplineData]);var En=function(Vt){(Vt==null?void 0:Vt.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),aa(!1),Ht(-1),On.current=!1,fa())},Pn=function(){var rn=Object(Q.a)(f.a.mark(function Vt(){var Dt,zt,xt,ln,Kt,Xn,ha;return f.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:if(gr){Aa.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),Aa.abrupt("return",!1);case 3:if(Dt=Y.findIndex(function(Zn){return!Zn}),!(Dt>-1)){Aa.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(ta[Dt]," \u9009\u9879\u7684\u5185\u5BB9")),Aa.abrupt("return",!1);case 7:if(dn.length){Aa.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),Aa.abrupt("return",!1);case 10:if(!(dn.length<1)){Aa.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),Aa.abrupt("return",!1);case 13:if(zt=Y.map(function(Zn,ea){return{choice_text:Zn,is_answer:dn.includes(ea)?1:0}}),On.current=!0,!Re.question_id){Aa.next=22;break}return Aa.next=18,Oe({type:"newExercisePaper/editExerciseQuestion",payload:{id:sn.id,question_id:Re.question_id,name:gr,item_type:dn.length>1?qe.a.Multiple:qe.a.Single,question_score:Na,choices:zt,tag_discipline_ids:da,sub_discipline_id:(ln=oe.editData)===null||ln===void 0||((Kt=ln.exercise)===null||Kt===void 0)?void 0:Kt.sub_discipline_id,difficulty:ot,repeat_answer:!Et,analysis:fn}});case 18:xt=Aa.sent,En(xt),Aa.next=26;break;case 22:return Aa.next=24,Oe({type:"newExercisePaper/addExerciseQuestion",payload:{insert_id:Re==null?void 0:Re.insert_id,id:sn.id,name:gr,item_type:dn.length>1?qe.a.Multiple:qe.a.Single,question_score:Na,choices:zt,tag_discipline_ids:da,sub_discipline_id:(Xn=oe.editData)===null||Xn===void 0||((ha=Xn.exercise)===null||ha===void 0)?void 0:ha.sub_discipline_id,difficulty:ot,repeat_answer:!Et,analysis:fn}});case 24:xt=Aa.sent,En(xt);case 26:case"end":return Aa.stop()}},Vt)}));return function(){return rn.apply(this,arguments)}}(),Kn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u591A\u9009\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],Vn=function(){var rn=Object(Q.a)(f.a.mark(function Vt(Dt){return f.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(!(kt!==-1)){xt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),xt.abrupt("return");case 3:xt.t0=Dt.id,xt.next=xt.t0==="del"?6:xt.t0==="edit"?8:xt.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Kt(){return f.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:return ha.next=2,Object(Me.g)({question_id:Re.question_id,exam_id:sn.id});case 2:Oe({type:"newExercisePaper/editExercise",payload:Object(d.a)({},sn)});case 3:case"end":return ha.stop()}},Kt)}))()}}),xt.abrupt("break",13);case 8:return Ht(Re.dragKey),aa(!0),xt.abrupt("break",13);case 11:return Un({key:Re.key,insert_id:Re==null?void 0:Re.question_id,question_type:1}),xt.abrupt("break",13);case 13:case"end":return xt.stop()}},Vt)}));return function(Dt){return rn.apply(this,arguments)}}(),ua=function(){var Vt;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(Re!=null&&Re.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u591A\u9009\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09")),Re!=null&&Re.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Re.key,"."),t.a.createElement(de.a,{value:Re.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Re.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Re.question_title})),t.a.createElement("div",{className:be.a.questionChoices},Re==null||((Vt=Re.question_choices)===null||Vt===void 0)?void 0:Vt.map(function(Dt,zt){return t.a.createElement(a.a,{key:zt},t.a.createElement(v.a,null,t.a.createElement(T.a,{key:zt,checked:Re.standard_answer.includes(zt+1),disabled:!0},ta[zt],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:Dt.choice_text}))))})),t.a.createElement("div",{className:be.a.action},!Re.hideAction&&Kn.map(function(Dt,zt){return t.a.createElement(s.a,{key:zt,placement:"bottom",title:Dt.name},t.a.createElement("span",{onClick:function(){return Vn(Dt)},className:Dt.icon}))})))},xa=function(){var Vt,Dt;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:gr,onChange:function(xt){return ir(xt)}}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Y.map(function(zt,xt){var ln,Kt;return t.a.createElement("div",{className:be.a.choiceWrap,key:xt},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(be.a.answer," ").concat(dn.includes(xt)?be.a.activeAnswer:""),onClick:function(){dn.includes(xt)?Tn(dn.filter(function(ha){return ha!==xt})):Tn([].concat(Object(U.a)(dn),[xt]))}},ta[xt])),t.a.createElement("div",{className:be.a.editorWrap},ut===xt?t.a.createElement(A.a,{id:"single-question-option-".concat(xt),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:zt,onChange:function(ha){Y[xt]=ha,te(Y)}}):t.a.createElement("div",{className:be.a.htmlWrap,onClick:function(){return vn(xt)}},t.a.createElement(de.a,{value:zt}))),((ln=oe.editData)===null||ln===void 0||((Kt=ln.exercise)===null||Kt===void 0)?void 0:Kt.exercise_status)===1&&t.a.createElement(t.a.Fragment,null,xt>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(be.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return te(Y.filter(function(ha,Jn){return Jn!==xt}))}})),xt<7&&xt===Y.length-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(be.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return te([].concat(Object(U.a)(Y),[""]))}}))))}),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:fn,onChange:function(xt){return zn(xt)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:Na,max:1e4,min:0,onChange:function(xt){Ma(xt)}}),"\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:ot,onChange:function(xt){lt(xt.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:da,selectvalues:Re==null?void 0:Re.tag_discipline_ids,onChange:Ta,subId:(Vt=oe.editData)===null||Vt===void 0||((Dt=Vt.exercise)===null||Dt===void 0)?void 0:Dt.sub_discipline_id,knowledgeOptions:yn,onAddKnowledgeFinish:cn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:Et,onChange:function(xt){jt(xt)}}))),t.a.createElement("aside",{className:"tr"},(kt!==-1||Re.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){bn(),aa(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){Pn()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:be.a.wrap},!An&&ua(),An&&xa())}),_n=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Sa),Bt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],mn=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.editKey,kt=Z.setEditKey,at=kt===void 0?function(){}:kt,Ht=Z.cancelAdd,Fe=Ht===void 0?function(){}:Ht,Un=Z.reload,Fa=Un===void 0?function(){}:Un,fa=Z.addCallback,ae=fa===void 0?function(){}:fa,z=Object(i.useState)(),Y=Object(o.a)(z,2),te=Y[0],_e=Y[1],se=Object(i.useState)(""),ut=Object(o.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(i.useState)(!1),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)([]),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)([]),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(1),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)(!1),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(""),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useRef)(!1),fn=function(En){ra([].concat(Object(U.a)(aa),[Object(d.a)({},En)]))},zn=Object(P.i)();Object(i.useEffect)(function(){if(wn.current)return;if(!(ve!=null&&ve.question_choices)){ya(!0),Wn(""),Qa(2),_e("");return}ft(!(ve!=null&&ve.repeat_answer)),Wn(ve==null?void 0:ve.question_title),Qa(ve==null?void 0:ve.question_score),Wa(ve==null?void 0:ve.difficulty),_e(ve.standard_answer[0]+""),Jt(ve.tag_discipline_ids),Yt(ve==null?void 0:ve.analysis)},[ve,Tn]),Object(i.useEffect)(function(){Tn&&sn();function sn(){return En.apply(this,arguments)}function En(){return En=Object(Q.a)(f.a.mark(function Pn(){var Kn,Vn,ua;return f.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.next=2,Object(N.I)({sub_discipline_id:(Kn=Oe.editData)===null||Kn===void 0||((Vn=Kn.exercise)===null||Vn===void 0)?void 0:Vn.sub_discipline_id});case 2:ua=rn.sent,ra(ua.tag_disciplines);case 4:case"end":return rn.stop()}},Pn)})),En.apply(this,arguments)}},[Tn]),Object(i.useImperativeHandle)(oe,function(){return{onSave:$t,isEdit:Tn}}),Object(i.useEffect)(function(){var sn,En=Oe!=null&&(sn=Oe.tagDisciplineData)!==null&&sn!==void 0&&sn.tag_disciplines&&Array.isArray(Oe.tagDisciplineData.tag_disciplines)?Oe.tagDisciplineData.tag_disciplines:[];ra(En)},[Oe.tagDisciplineData]);var jn=function(En){(En==null?void 0:En.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),ya(!1),at(-1),wn.current=!1,Fa())},$t=function(){var sn=Object(Q.a)(f.a.mark(function En(){var Pn,Kn,Vn,ua,xa,rn;return f.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(vn){Dt.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Dt.abrupt("return",!1);case 3:if(te){Dt.next=6;break}return E.b.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),Dt.abrupt("return",!1);case 6:if(Pn=[{choice_text:"\u6B63\u786E",is_answer:te==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:te==="2"?1:0}],wn.current=!0,!ve.question_id){Dt.next=15;break}return Dt.next=11,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:zn.id,question_id:ve.question_id,name:vn,item_type:qe.a.Judge,question_score:ir,choices:Pn,tag_discipline_ids:Ma,sub_discipline_id:(Vn=Oe.editData)===null||Vn===void 0||((ua=Vn.exercise)===null||ua===void 0)?void 0:ua.sub_discipline_id,difficulty:Ta,repeat_answer:!lt,analysis:jt}});case 11:Kn=Dt.sent,jn(Kn),Dt.next=19;break;case 15:return Dt.next=17,Re({type:"newExercisePaper/addExerciseQuestion",payload:{id:zn.id,insert_id:ve==null?void 0:ve.insert_id,name:vn,item_type:qe.a.Judge,question_score:ir,choices:Pn,tag_discipline_ids:Ma,sub_discipline_id:(xa=Oe.editData)===null||xa===void 0||((rn=xa.exercise)===null||rn===void 0)?void 0:rn.sub_discipline_id,difficulty:Ta,repeat_answer:!lt,analysis:jt}});case 17:Kn=Dt.sent,jn(Kn);case 19:return Dt.abrupt("return",{name:vn,choices:Pn});case 20:case"end":return Dt.stop()}},En)}));return function(){return sn.apply(this,arguments)}}(),yn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5224\u65AD\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],pn=function(){var sn=Object(Q.a)(f.a.mark(function En(Pn){return f.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:if(!(bn!==-1)){Vn.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Vn.abrupt("return");case 3:Vn.t0=Pn.id,Vn.next=Vn.t0==="del"?6:Vn.t0==="edit"?8:Vn.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function xa(){return f.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Vt.next=2,Object(Me.g)({question_id:ve.question_id,exam_id:zn.id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},zn)});case 3:case"end":return Vt.stop()}},xa)}))()}}),Vn.abrupt("break",13);case 8:return at(ve.dragKey),ya(!0),Vn.abrupt("break",13);case 11:return ae({key:ve.key,insert_id:ve==null?void 0:ve.question_id,question_type:2}),Vn.abrupt("break",13);case 13:case"end":return Vn.stop()}},En)}));return function(Pn){return sn.apply(this,arguments)}}(),On=function(){var En;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{className:be.a.questionChoices},ve==null||((En=ve.question_choices)===null||En===void 0)?void 0:En.map(function(Pn,Kn){return t.a.createElement(g.a,{key:Kn,checked:ve.standard_answer.includes(Kn+1),disabled:!0},Bt[Kn],"."," ",t.a.createElement("span",{className:"c-black font14"},Pn.choice_text))})),t.a.createElement("div",{className:be.a.action},!ve.hideAction&&yn.map(function(Pn,Kn){return t.a.createElement(s.a,{key:Kn,placement:"bottom",title:Pn.name},t.a.createElement("span",{onClick:function(){return pn(Pn)},className:Pn.icon}))})))},cn=function(){var En,Pn;return t.a.createElement("aside",null,t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:vn,onChange:function(Vn){return Wn(Vn)}}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),t.a.createElement(g.a.Group,{buttonStyle:"solid",value:te,onChange:function(Vn){return _e(Vn.target.value)}},t.a.createElement(g.a.Button,{value:"1",className:"".concat(be.a.radio," mr40")},"\u6B63\u786E"),t.a.createElement(g.a.Button,{value:"2",className:be.a.radio},"\u9519\u8BEF")),t.a.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:jt,onChange:function(Vn){return Yt(Vn)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:ir,max:1e4,min:0,onChange:function(Vn){Qa(Vn)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:Ta,onChange:function(Vn){Wa(Vn.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:Ma,selectvalues:ve==null?void 0:ve.tag_discipline_ids,onChange:Jt,subId:(En=Oe.editData)===null||En===void 0||((Pn=En.exercise)===null||Pn===void 0)?void 0:Pn.sub_discipline_id,knowledgeOptions:aa,onAddKnowledgeFinish:fn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:lt,onChange:function(Vn){ft(Vn)}}))),t.a.createElement("aside",{className:"tr"},(bn!==-1||ve.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Fe(),ya(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){$t()}},"\u4FDD\u5B58")))};return t.a.createElement("section",{className:be.a.wrap},!Tn&&On(),Tn&&cn())},Gt=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(mn)),ze=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.editKey,kt=Z.setEditKey,at=kt===void 0?function(){}:kt,Ht=Z.cancelAdd,Fe=Ht===void 0?function(){}:Ht,Un=Z.addCallback,Fa=Un===void 0?function(){}:Un,fa=Z.reload,ae=fa===void 0?function(){}:fa,z=Object(i.useState)(""),Y=Object(o.a)(z,2),te=Y[0],_e=Y[1],se=Object(i.useState)(""),ut=Object(o.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(i.useState)([]),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(""),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)(!1),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)(0),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)(!1),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useState)(!1),fn=Object(o.a)(wn,2),zn=fn[0],jn=fn[1],$t=Object(i.useState)([]),yn=Object(o.a)($t,2),pn=yn[0],On=yn[1],cn=Object(i.useState)(1),sn=Object(o.a)(cn,2),En=sn[0],Pn=sn[1],Kn=Object(i.useState)(!1),Vn=Object(o.a)(Kn,2),ua=Vn[0],xa=Vn[1],rn=Object(i.useRef)(!1),Vt=Object(P.i)(),Dt=Object(i.useState)([]),zt=Object(o.a)(Dt,2),xt=zt[0],ln=zt[1],Kt=function(Ja){ln([].concat(Object(U.a)(xt),[Object(d.a)({},Ja)]))};Object(i.useEffect)(function(){if(rn.current)return;if(!(ve!=null&&ve.question_title)){Yt(!0),_e(""),Jt(!1),Wa(2),ya([]),Qa(""),ra(!1);return}_e(ve==null?void 0:ve.question_title),Jt(ve==null?void 0:ve.is_ordered),Pn(ve==null?void 0:ve.difficulty),xa(!(ve!=null&&ve.repeat_answer)),Wa(ve==null?void 0:ve.question_score);var pa=ve==null?void 0:ve.standard_answer.map(function(Ja){return Ja.answer_text});ya(Object(U.a)(pa)),On(ve.tag_discipline_ids),Wn(ve==null?void 0:ve.analysis)},[ve,jt]),Object(i.useEffect)(function(){ra(!1),jt&&pa();function pa(){return Ja.apply(this,arguments)}function Ja(){return Ja=Object(Q.a)(f.a.mark(function or(){var Ln,Wt,Rn;return f.a.wrap(function(la){for(;;)switch(la.prev=la.next){case 0:return la.next=2,Object(N.I)({sub_discipline_id:(Ln=Oe.editData)===null||Ln===void 0||((Wt=Ln.exercise)===null||Wt===void 0)?void 0:Wt.sub_discipline_id});case 2:Rn=la.sent,ln(Rn.tag_disciplines);case 4:case"end":return la.stop()}},or)})),Ja.apply(this,arguments)}},[jt]),Object(i.useImperativeHandle)(oe,function(){return{onSave:ha,isEdit:jt}}),Object(i.useEffect)(function(){var pa,Ja=Oe!=null&&(pa=Oe.tagDisciplineData)!==null&&pa!==void 0&&pa.tag_disciplines&&Array.isArray(Oe.tagDisciplineData.tag_disciplines)?Oe.tagDisciplineData.tag_disciplines:[];ln(Ja)},[Oe.tagDisciplineData]);var Xn=function(Ja){(Ja==null?void 0:Ja.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Yt(!1),at(-1),rn.current=!1,ae())},ha=function(){var pa=Object(Q.a)(f.a.mark(function Ja(){var or,Ln,Wt,Rn,Ra,la,Mn;return f.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(or=[],Ln=!1,jn(!0),Tn.forEach(function(ma,ga){or.push({position:ga+1,answer_text:[]}),ma.forEach(function(ja,Xa){or[ga].answer_text.push(ja),(!ja||!Object($.db)(ja,1e4))&&(Qa("".concat(ga,"-").concat(Xa)),E.b.info(ja?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Ln=!0)})}),!Ln){Dn.next=7;break}return jn(!1),Dn.abrupt("return",!1);case 7:if(rn.current=!0,!ve.question_id){Dn.next=15;break}return Dn.next=11,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:Vt.id,question_id:ve.question_id,name:te,item_type:3,question_score:Ta,is_ordered:Ma,standard_answers:or,tag_discipline_ids:pn,sub_discipline_id:(Rn=Oe.editData)===null||Rn===void 0||((Ra=Rn.exercise)===null||Ra===void 0)?void 0:Ra.sub_discipline_id,difficulty:En,repeat_answer:!ua,analysis:vn}});case 11:Wt=Dn.sent,Xn(Wt),Dn.next=19;break;case 15:return Dn.next=17,Re({type:"newExercisePaper/addExerciseQuestion",payload:{insert_id:ve==null?void 0:ve.insert_id,id:Vt.id,name:te,item_type:3,question_score:Ta,is_ordered:Ma,standard_answers:or,tag_discipline_ids:pn,sub_discipline_id:(la=Oe.editData)===null||la===void 0||((Mn=la.exercise)===null||Mn===void 0)?void 0:Mn.sub_discipline_id,difficulty:En,repeat_answer:!ua,analysis:vn}});case 17:Wt=Dn.sent,Xn(Wt);case 19:return jn(!1),Dn.abrupt("return",{name:te,analysis:vn,standard_answers:or,is_ordered:Ma});case 21:case"end":return Dn.stop()}},Ja)}));return function(){return pa.apply(this,arguments)}}(),Jn=function(Ja,or,Ln){var Wt=Tn.slice();if(or&&Wt.splice(Ja,or),Ln&&aa||!ve.question_id)for(var Rn=0;Rn1&&t.a.createElement("span",null,t.a.createElement(T.a,{checked:Ma,onChange:function(Wt){return Jt(Wt.target.checked)},className:"".concat(be.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),t.a.createElement("span",{className:"".concat(be.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:vn,onChange:function(Wt){return Wn(Wt)}}),t.a.createElement("p",{className:""},t.a.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:Ta,max:1e4,min:0,onChange:function(Wt){Wa(Wt)}})," ","\u5206 \xA0"," ",!!Ta&&!!lt&&t.a.createElement("span",{style:{color:"red"}},"(\u6839\u636E\u5747\u5206\u89C4\u5219\uFF0C\u672C\u9898\u6BCF\u7A7A",(Ta/lt).toFixed(1),"\u5206)"),t.a.createElement("span",{style:{marginLeft:"30px"},className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:En,onChange:function(Wt){Pn(Wt.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:pn,selectvalues:ve==null?void 0:ve.tag_discipline_ids,onChange:On,subId:(Ja=Oe.editData)===null||Ja===void 0||((or=Ja.exercise)===null||or===void 0)?void 0:or.sub_discipline_id,knowledgeOptions:xt,onAddKnowledgeFinish:Kt})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:ua,onChange:function(Wt){xa(Wt)}}))),t.a.createElement("aside",{className:"tr"},(bn!==-1||ve.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){Fe(),Yt(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){ha()}},"\u4FDD\u5B58")))},Sr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u586B\u7A7A\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],Va=function(){var pa=Object(Q.a)(f.a.mark(function Ja(or){return f.a.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(!(bn!==-1)){Wt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Wt.abrupt("return");case 3:Wt.t0=or.id,Wt.next=Wt.t0==="del"?6:Wt.t0==="edit"?8:Wt.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Ra(){return f.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.next=2,Object(Me.g)({question_id:ve.question_id,exam_id:Vt.id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Vt)});case 3:case"end":return Mn.stop()}},Ra)}))()}}),Wt.abrupt("break",13);case 8:return at(ve.dragKey),Yt(!0),Wt.abrupt("break",13);case 11:return Fa({key:ve.key,insert_id:ve==null?void 0:ve.question_id,question_type:3}),Wt.abrupt("break",13);case 13:case"end":return Wt.stop()}},Ja)}));return function(or){return pa.apply(this,arguments)}}(),Za=function(){var Ja;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{className:be.a.questionChoices},ve==null||((Ja=ve.standard_answer)===null||Ja===void 0)?void 0:Ja.map(function(or,Ln){return t.a.createElement(a.a,{key:Ln,align:"middle"},t.a.createElement(v.a,null,"\u7B54\u6848\uFF08\u586B\u7A7A",or.choice_id,"\uFF09\uFF1A"),t.a.createElement(v.a,{flex:"1"},t.a.createElement(a.a,{align:"middle",gutter:[1,1]},or.answer_text.map(function(Wt,Rn){return t.a.createElement(v.a,{span:24,key:Rn},t.a.createElement(D.a,{key:Ln,checked:ve.standard_answer.includes(Ln),disabled:!0,value:Wt}))}))))})),t.a.createElement("div",{className:be.a.action},!ve.hideAction&&Sr.map(function(or,Ln){return or.id==="up"&&ve.key===1||or.id==="down"&&ve.key===ve.len?null:t.a.createElement(s.a,{key:Ln,placement:"bottom",title:or.name},t.a.createElement("span",{onClick:function(){return Va(or)},className:or.icon}))})))};return t.a.createElement("section",{className:be.a.wrap},!jt&&Za(),jt&&Ha())},ct=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(ze)),Sn=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.cancelAdd,kt=bn===void 0?function(){}:bn,at=Z.editKey,Ht=Z.setEditKey,Fe=Ht===void 0?function(){}:Ht,Un=Z.reload,Fa=Un===void 0?function(){}:Un,fa=Z.addCallback,ae=fa===void 0?function(){}:fa,z=Object(i.useState)(""),Y=Object(o.a)(z,2),te=Y[0],_e=Y[1],se=Object(i.useState)(""),ut=Object(o.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(i.useState)(""),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(!1),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)([]),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(i.useState)(1),da=Object(o.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(i.useState)(!1),ot=Object(o.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(i.useState)([[],[]]),Et=Object(o.a)(wt,2),jt=Et[0],Yt=Et[1],wn=Object(i.useRef)(!1),fn=Object(P.i)(),zn=Object(i.useState)([]),jn=Object(o.a)(zn,2),$t=jn[0],yn=jn[1],pn=function(ua){yn([].concat(Object(U.a)($t),[Object(d.a)({},ua)]))};Object(i.useEffect)(function(){var Vn;if(wn.current)return;if(!(ve!=null&&ve.question_title)){Jt(!0),_e(""),ya(""),Qa(10);return}ft(!(ve!=null&&ve.repeat_answer)),_e(ve==null?void 0:ve.question_title),ya(ve==null||((Vn=ve.standard_answer)===null||Vn===void 0)?void 0:Vn[0]),Qa(ve==null?void 0:ve.question_score),ra(ve.tag_discipline_ids),Wa(ve==null?void 0:ve.difficulty),Wn(ve==null?void 0:ve.analysis),Yt([ve==null?void 0:ve.normal_keywords,ve==null?void 0:ve.main_keywords])},[Oe.editData,Ma]),Object(i.useEffect)(function(){var Vn,ua=Oe!=null&&(Vn=Oe.tagDisciplineData)!==null&&Vn!==void 0&&Vn.tag_disciplines&&Array.isArray(Oe.tagDisciplineData.tag_disciplines)?Oe.tagDisciplineData.tag_disciplines:[];yn(ua)},[Oe.tagDisciplineData]),Object(i.useEffect)(function(){Ma&&Vn();function Vn(){return ua.apply(this,arguments)}function ua(){return ua=Object(Q.a)(f.a.mark(function xa(){var rn,Vt,Dt;return f.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:return xt.next=2,Object(N.I)({sub_discipline_id:(rn=Oe.editData)===null||rn===void 0||((Vt=rn.exercise)===null||Vt===void 0)?void 0:Vt.sub_discipline_id});case 2:Dt=xt.sent,yn(Dt.tag_disciplines);case 4:case"end":return xt.stop()}},xa)})),ua.apply(this,arguments)}},[Ma]),Object(i.useImperativeHandle)(oe,function(){return{onSave:cn,isEdit:Ma}});var On=function(ua){(ua==null?void 0:ua.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Jt(!1),Fe(-1),wn.current=!1,Fa())},cn=function(){var Vn=Object(Q.a)(f.a.mark(function ua(){var xa,rn,Vt,Dt,zt,xt,ln;return f.a.wrap(function(Xn){for(;;)switch(Xn.prev=Xn.next){case 0:if(te){Xn.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Xn.abrupt("return",!1);case 3:if(xa=jt[0],rn=jt[1],wn.current=!0,!ve.question_id){Xn.next=13;break}return Xn.next=9,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:fn.id,question_id:ve.question_id,name:te,item_type:4,question_score:ir,answer_texts:[Tn],tag_discipline_ids:aa,sub_discipline_id:(Dt=Oe.editData)===null||Dt===void 0||((zt=Dt.exercise)===null||zt===void 0)?void 0:zt.sub_discipline_id,difficulty:Ta,repeat_answer:!lt,analysis:vn,normal_keywords:xa,main_keywords:rn}});case 9:Vt=Xn.sent,On(Vt),Xn.next=17;break;case 13:return Xn.next=15,Re({type:"newExercisePaper/addExerciseQuestion",payload:{insert_id:ve==null?void 0:ve.insert_id,id:fn.id,name:te,item_type:4,question_score:ir,answer_texts:[Tn],tag_discipline_ids:aa,sub_discipline_id:(xt=Oe.editData)===null||xt===void 0||((ln=xt.exercise)===null||ln===void 0)?void 0:ln.sub_discipline_id,difficulty:Ta,repeat_answer:!lt,analysis:vn,normal_keywords:xa,main_keywords:rn}});case 15:Vt=Xn.sent,On(Vt);case 17:return Xn.abrupt("return",{name:te,answer_texts:[Tn],analysis:vn,normal_keywords:xa,main_keywords:rn});case 18:case"end":return Xn.stop()}},ua)}));return function(){return Vn.apply(this,arguments)}}(),sn=function(){var ua,xa;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:te,onChange:function(Vt){return _e(Vt)}}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),t.a.createElement(A.a,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Tn,onChange:function(Vt){return ya(Vt)}}),t.a.createElement(Ct.a,{value:jt,onChange:Yt}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),t.a.createElement(A.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:vn,onChange:function(Vt){return Wn(Vt)}}),t.a.createElement("p",{className:""},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:ir,max:1e4,min:0,onChange:function(Vt){Qa(Vt)}})," ","\u5206",t.a.createElement("span",{style:{marginLeft:"30px"},className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:Ta,onChange:function(Vt){Wa(Vt.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{value:aa,selectvalues:ve==null?void 0:ve.tag_discipline_ids,onChange:ra,subId:(ua=Oe.editData)===null||ua===void 0||((xa=ua.exercise)===null||xa===void 0)?void 0:xa.sub_discipline_id,knowledgeOptions:$t,onAddKnowledgeFinish:pn})),t.a.createElement("div",{style:{marginTop:10}},t.a.createElement("span",{style:{marginRight:10}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898"),t.a.createElement(_.a,{checked:lt,onChange:function(Vt){ft(Vt)}}))),t.a.createElement("aside",{className:"tr"},(at!==-1||ve.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){kt(),Jt(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){cn()}},"\u4FDD\u5B58")))},En=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u7B80\u7B54\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],Pn=function(){var Vn=Object(Q.a)(f.a.mark(function ua(xa){return f.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!(at!==-1)){Vt.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Vt.abrupt("return");case 3:Vt.t0=xa.id,Vt.next=Vt.t0==="del"?6:Vt.t0==="up"||Vt.t0==="down"?8:Vt.t0==="edit"?12:Vt.t0==="add"?15:17;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function zt(){return f.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return ln.next=2,Object(Me.g)({question_id:ve.question_id,exam_id:fn.id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},fn)});case 3:case"end":return ln.stop()}},zt)}))()}}),Vt.abrupt("break",17);case 8:return Vt.next=10,Re({type:"newExercisePaper/exeriseMoveUpDown",payload:{id:ve.question_id,opr:xa.id}});case 10:return Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},fn)}),Vt.abrupt("break",17);case 12:return Fe(ve.dragKey),Jt(!0),Vt.abrupt("break",17);case 15:return ae({key:ve.key,insert_id:ve==null?void 0:ve.question_id,question_type:4}),Vt.abrupt("break",17);case 17:case"end":return Vt.stop()}},ua)}));return function(xa){return Vn.apply(this,arguments)}}(),Kn=function(){return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{className:be.a.questionChoices},t.a.createElement("p",null,t.a.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),t.a.createElement(de.a,{value:Tn||""})),t.a.createElement("div",{className:be.a.action},!ve.hideAction&&En.map(function(ua,xa){return t.a.createElement(s.a,{key:xa,placement:"bottom",title:ua.name},t.a.createElement("span",{onClick:function(){return Pn(ua)},className:ua.icon}))})))};return t.a.createElement("section",{className:be.a.wrap},!Ma&&Kn(),Ma&&sn())},qt=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Sn)),Gn=function(Z,oe){var Oe=Z.dispatch,Re=Z.editData,ve=Z.cancelAdd,bn=ve===void 0?function(){}:ve,kt=Z.editKey,at=Z.setEditKey,Ht=at===void 0?function(){}:at,Fe=Z.reload,Un=Fe===void 0?function(){}:Fe,Fa=Object(i.useState)(""),fa=Object(o.a)(Fa,2),ae=fa[0],z=fa[1],Y=Object(i.useState)(""),te=Object(o.a)(Y,2),_e=te[0],se=te[1],ut=Object(i.useState)(""),vn=Object(o.a)(ut,2),Wn=vn[0],Oa=vn[1],dn=Object(i.useState)([]),Tn=Object(o.a)(dn,2),ya=Tn[0],fr=Tn[1],gr=Object(i.useState)(),ir=Object(o.a)(gr,2),Qa=ir[0],ba=ir[1],Na=Object(i.useState)(!1),Ma=Object(o.a)(Na,2),Jt=Ma[0],Rt=Ma[1],An=Object(i.useState)([]),aa=Object(o.a)(An,2),ra=aa[0],Fn=aa[1],da=Object(i.useState)(!1),Ta=Object(o.a)(da,2),Wa=Ta[0],ue=Ta[1],ot=Object(i.useState)(!1),lt=Object(o.a)(ot,2),ft=lt[0],wt=lt[1],Et=Object(P.i)(),jt=Object(i.useRef)(!1);Object(i.useEffect)(function(){var yn;if(jt.current)return;Re.edit&&(ue(!0),se(""),z(""),Fn([])),z(Re.shixun_name),se(Re.question_title);var pn=[];(yn=Re.shixun)===null||yn===void 0||yn.map(function(On){pn.push(On.challenge_score)}),Fn(pn)},[Re]),Object(i.useEffect)(function(){Rt(!1)},[Wa]),Object(i.useImperativeHandle)(oe,function(){return{onSave:wn,isEdit:Wa}});var Yt=function(pn){(pn==null?void 0:pn.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),ue(!1),Ht(-1),jt.current=!1,Un())},wn=function(){var yn=Object(Q.a)(f.a.mark(function pn(){var On,cn,sn;return f.a.wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:if(On=[],cn=!1,!cn){Pn.next=4;break}return Pn.abrupt("return",!1);case 4:if(jt.current=!0,wt(!0),!Re.question_id){Pn.next=12;break}return Pn.next=9,Oe({type:"newExercisePaper/editExerciseQuestion",payload:{id:Et.id,question_id:Re.question_id,name:_e,shixun_name:ae,shixun_id:Re.shixun_id,item_type:5,question_scores:ra}});case 9:sn=Pn.sent,Pn.next=15;break;case 12:return Pn.next=14,Oe({type:"newExercisePaper/addExerciseQuestion",payload:{id:Et.id,insert_id:Re==null?void 0:Re.insert_id,name:_e,shixun_name:ae,shixun_id:Re.shixun_id,item_type:5,question_scores:ra,is_copy:Re.is_copy}});case 14:sn=Pn.sent;case 15:return Yt(sn),wt(!1),Pn.abrupt("return",{name:_e,analysis:Wn,standard_answers:On,is_ordered:Qa});case 18:case"end":return Pn.stop()}},pn)}));return function(){return yn.apply(this,arguments)}}(),fn=function(){var pn;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),t.a.createElement("div",{className:"mt10"},t.a.createElement(D.a,{defaultValue:ae,onChange:function(cn){z(cn.target.value)}})),t.a.createElement("div",{className:"mt10"},t.a.createElement(A.a,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:_e,onChange:function(cn){se(cn)}})),t.a.createElement("div",{className:"mt20"},(pn=Re.shixun)===null||pn===void 0?void 0:pn.map(function(On,cn){return t.a.createElement(a.a,{gutter:[20,20]},t.a.createElement(v.a,{flex:"1"},cn+1,".",On.challenge_name),t.a.createElement(v.a,null,t.a.createElement(k.a,{defaultValue:ra[cn],onChange:function(En){ra[cn]=En,Fn(ra)}})," ","\u5206"))})),t.a.createElement("div",{className:"mt20"},ya.length>1&&t.a.createElement("span",null,t.a.createElement(T.a,{checked:Qa,onChange:function(cn){return ba(cn.target.checked)},className:"".concat(be.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),t.a.createElement("span",{className:"".concat(be.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),t.a.createElement("aside",{className:"tr"},(kt!==-1||!(Re!=null&&Re.edit))&&t.a.createElement(u.a,{type:"default",onClick:function(){bn(),ue(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{loading:ft,className:"ml20",type:"primary",onClick:function(){wn()}},"\u4FDD\u5B58")))},zn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u5B9E\u8BAD\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],jn=function(){var yn=Object(Q.a)(f.a.mark(function pn(On){return f.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:if(!(kt!==-1)){sn.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),sn.abrupt("return");case 3:sn.t0=On.id,sn.next=sn.t0==="del"?6:sn.t0==="edit"?8:sn.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function Pn(){return f.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Vn.next=2,Object(Me.g)({question_id:Re.question_id,exam_id:Et.id});case 2:Oe({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Et)});case 3:case"end":return Vn.stop()}},Pn)}))()}}),sn.abrupt("break",13);case 8:return Ht(Re.dragKey),ue(!0),sn.abrupt("break",13);case 11:return Oe({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",editData:{key:Re.key,insert_id:Re==null?void 0:Re.question_id,question_type:5}}}),sn.abrupt("break",13);case 13:case"end":return sn.stop()}},pn)}));return function(On){return yn.apply(this,arguments)}}(),$t=function(){var pn,On;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(Re!=null&&Re.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09")),Re!=null&&Re.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},Re.key,"."),t.a.createElement(de.a,{value:Re.shixun_name}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Re.question_score,"\u5206\uFF09"),!!((pn=Re.schools)!==null&&pn!==void 0&&pn.length)&&t.a.createElement(s.a,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},t.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 font18 line24 c-orange"}))):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:Re.shixun_name})),t.a.createElement("div",{className:"mt30"}),(On=Re.shixun)===null||On===void 0?void 0:On.map(function(cn,sn){return t.a.createElement("div",{key:sn},"\u7B2C",sn+1,"\u5173"," ",t.a.createElement("span",{className:"ml10"},cn.challenge_name)," ",t.a.createElement("span",{className:"ml10"},cn.challenge_score," \u5206"))}),t.a.createElement("div",{className:be.a.action},t.a.createElement(dt.a,{target:"_blank",to:"/shixuns/".concat(Re.shixun_identifier,"/challenges?exercise=true")},"\u5B9E\u8BAD\u8BE6\u60C5"),!Re.hideAction&&zn.map(function(cn,sn){return t.a.createElement(s.a,{key:sn,placement:"bottom",title:cn.name},t.a.createElement("span",{onClick:function(){return jn(cn)},className:cn.icon}))})))};return t.a.createElement("section",{className:be.a.wrap},!Wa&&$t(),Wa&&fn())},qn=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Gn)),Mt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Nn=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.editKey,kt=Z.addCallback,at=kt===void 0?function(){}:kt,Ht=Object(i.useState)([]),Fe=Object(o.a)(Ht,2),Un=Fe[0],Fa=Fe[1],fa=Object(i.useState)(),ae=Object(o.a)(fa,2),z=ae[0],Y=ae[1],te=Object(i.useState)([]),_e=Object(o.a)(te,2),se=_e[0],ut=_e[1],vn=Object(i.useState)(""),Wn=Object(o.a)(vn,2),Oa=Wn[0],dn=Wn[1],Tn=Object(i.useState)(5),ya=Object(o.a)(Tn,2),fr=ya[0],gr=ya[1],ir=Object(i.useState)(!1),Qa=Object(o.a)(ir,2),ba=Qa[0],Na=Qa[1],Ma=Object(P.i)();Object(i.useEffect)(function(){Fa(["","","",""])},[]),Object(i.useEffect)(function(){if(!(ve!=null&&ve.question_choices)){Na(!0),dn(""),gr(5),Fa(["","","",""]),ut([]);return}dn(ve==null?void 0:ve.question_title),gr(ve==null?void 0:ve.question_score),Fa(ve==null?void 0:ve.question_choices.map(function(da){return da.choice_text}));var Fn=[];ve==null||ve.standard_answer.map(function(da,Ta){Fn.push(da-1)}),ut(Fn)},[ve]),Object(i.useImperativeHandle)(oe,function(){return{onSave:Jt,isEdit:ba}});var Jt=function(){var Fn=Object(Q.a)(f.a.mark(function da(){var Ta,Wa,ue;return f.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(Oa){lt.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),lt.abrupt("return",!1);case 3:if(Ta=Un.findIndex(function(ft){return!ft}),!(Ta>-1)){lt.next=7;break}return E.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Mt[Ta]," \u9009\u9879\u7684\u5185\u5BB9")),lt.abrupt("return",!1);case 7:if(se.length){lt.next=10;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),lt.abrupt("return",!1);case 10:if(!(se.length<1)){lt.next=13;break}return E.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),lt.abrupt("return",!1);case 13:if(Wa=Un.map(function(ft,wt){return{choice_text:ft,is_answer:se.includes(wt)?wt+1:0}}),!ve.question_id){lt.next=20;break}return lt.next=17,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:ve.question_id,question_title:Oa,question_type:1,question_score:fr,question_choices:Wa.map(function(ft){return ft.choice_text}),standard_answers:Wa.filter(function(ft){return ft.is_answer}).map(function(ft){return ft.is_answer})}});case 17:ue=lt.sent,lt.next=23;break;case 20:return lt.next=22,Re({type:"newExercisePaper/addExerciseQuestion",payload:{insert_id:ve==null?void 0:ve.insert_id,categoryId:Ma.categoryId,question_title:Oa,question_type:1,question_score:"5.0",question_choices:Wa.map(function(ft){return ft.choice_text}),standard_answers:Wa.filter(function(ft){return ft.is_answer}).map(function(ft){return ft.is_answer})}});case 22:ue=lt.sent;case 23:ue.status===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Na(!1),Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Ma)}));case 24:case"end":return lt.stop()}},da)}));return function(){return Fn.apply(this,arguments)}}(),Rt=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"(\u5411\u4E0B\u63D2\u5165\u7F16\u7A0B\u9898)",icon:"iconfont c-light-primary ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],An=function(){var Fn=Object(Q.a)(f.a.mark(function da(Ta){return f.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(!(bn!==-1)){ue.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),ue.abrupt("return");case 3:ue.t0=Ta.id,ue.next=ue.t0==="del"?6:ue.t0==="edit"?8:ue.t0==="add"?10:12;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function lt(){return f.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Object(Me.g)({exam_id:Ma.id,question_id:ve.question_id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Ma)});case 3:case"end":return wt.stop()}},lt)}))()}}),ue.abrupt("break",12);case 8:return H.d.push("/problems/".concat(ve==null?void 0:ve.hack_identifier,"/edit?type=exercises&express_id=").concat(Ma.id,"&question_id=").concat(ve==null?void 0:ve.question_id,"&score=").concat(ve==null?void 0:ve.question_score,"&exercise=true&callback_url=").concat(location.pathname)),ue.abrupt("break",12);case 10:return at({key:ve.key,insert_id:ve==null?void 0:ve.question_id,question_type:6}),ue.abrupt("break",12);case 12:case"end":return ue.stop()}},da)}));return function(Ta){return Fn.apply(this,arguments)}}(),aa=function(){var Fn=Object(Q.a)(f.a.mark(function da(Ta){var Wa;return f.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return Ta.preventDefault(),ot.next=3,Object(N.X)({id:ve==null?void 0:ve.hack_identifier});case 3:Wa=ot.sent,Wa.status===0&&Object($.S)("/myproblems/".concat(Wa==null?void 0:Wa.identifier));case 5:case"end":return ot.stop()}},da)}));return function(Ta){return Fn.apply(this,arguments)}}(),ra=function(){return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u7F16\u7A0B\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{className:be.a.questionChoices},t.a.createElement(de.a,{value:ve.description||""})),t.a.createElement("div",{className:be.a.action},!ve.hideAction&&Rt.map(function(da,Ta){return t.a.createElement(s.a,{key:Ta,placement:"bottom",title:da.name},t.a.createElement("span",{onClick:function(){return An(da)},className:da.icon}))})))};return t.a.createElement("section",{className:be.a.wrap},ra())},Bn=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Nn)),na=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ea=function(Z,oe){var Oe=Z.newExercisePaper,Re=Z.dispatch,ve=Z.editData,bn=Z.cancelAdd,kt=bn===void 0?function(){}:bn,at=Z.editKey,Ht=Z.setEditKey,Fe=Ht===void 0?function(){}:Ht,Un=Z.addCallback,Fa=Un===void 0?function(cn){}:Un,fa=Z.reload,ae=fa===void 0?function(){}:fa,z=Object(i.useState)([]),Y=Object(o.a)(z,2),te=Y[0],_e=Y[1],se=Object(i.useState)(!1),ut=Object(o.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(i.useState)(!0),dn=Object(o.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(i.useState)(1),gr=Object(o.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(i.useState)(!1),Na=Object(o.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(i.useState)([]),An=Object(o.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(P.i)(),da=Object(i.useRef)(null),Ta=Object(i.useState)(""),Wa=Object(o.a)(Ta,2),ue=Wa[0],ot=Wa[1],lt=Object(i.useState)([]),ft=Object(o.a)(lt,2),wt=ft[0],Et=ft[1],jt=Object(i.useRef)(!1),Yt=function(sn){ra([].concat(Object(U.a)(aa),[Object(d.a)({},sn)]))};Object(i.useEffect)(function(){var cn;if(jt.current)return;if(!(ve!=null&&ve.question_title)){Wn(!0),ot("");return}ot(ve==null?void 0:ve.question_title),Jt(!(ve!=null&&ve.repeat_answer)),Qa(ve==null?void 0:ve.difficulty),_e(ve.tag_discipline_ids);var sn=ve==null||((cn=ve.sub_exercise_questions)===null||cn===void 0)?void 0:cn.map(function(En){return Object(d.a)(Object(d.a)({},En),{},{id:En.question_id,name:En.question_title,open:!1,question_score:En.question_score,choices:En==null?void 0:En.question_choices.map(function(Pn){return{choice_text:Pn.choice_text,is_answer:Pn.standard_boolean?1:0}}),activeQusEditor:null})});Et(sn)},[ve,vn]),Object(i.useEffect)(function(){vn&&cn();function cn(){return sn.apply(this,arguments)}function sn(){return sn=Object(Q.a)(f.a.mark(function En(){var Pn,Kn,Vn;return f.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,Object(N.I)({sub_discipline_id:(Pn=Oe.editData)===null||Pn===void 0||((Kn=Pn.exercise)===null||Kn===void 0)?void 0:Kn.sub_discipline_id});case 2:Vn=xa.sent,ra(Vn.tag_disciplines);case 4:case"end":return xa.stop()}},En)})),sn.apply(this,arguments)}},[vn]),Object(i.useEffect)(function(){var cn,sn=Oe!=null&&(cn=Oe.tagDisciplineData)!==null&&cn!==void 0&&cn.tag_disciplines&&Array.isArray(Oe.tagDisciplineData.tag_disciplines)?Oe.tagDisciplineData.tag_disciplines:[];ra(sn)},[Oe.tagDisciplineData]),Object(i.useImperativeHandle)(oe,function(){return{onSave:fn,isEdit:vn}});var wn=function(sn){(sn==null?void 0:sn.status)===0&&(E.b.success("\u4FDD\u5B58\u6210\u529F"),Wn(!1),Fe(-1),jt.current=!1,ae())},fn=function(){var cn=Object(Q.a)(f.a.mark(function sn(){var En,Pn,Kn,Vn,ua,xa,rn,Vt,Dt,zt,xt;return f.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(ue){Kt.next=3;break}return E.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),Kt.abrupt("return",!1);case 3:if(!(wt.length===0)){Kt.next=6;break}return E.b.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),Kt.abrupt("return",!1);case 6:En=0;case 7:if(!(En-1)){Kt.next=19;break}return E.b.info("\u8BF7\u5148\u8F93\u5165\u7B2C".concat(En+1,"\u5C0F\u9898").concat(na[Vn],"\u9009\u9879\u7684\u5185\u5BB9")),Kt.abrupt("return",!1);case 19:if(!(Kn.choices.findIndex(function(Xn){return Xn.is_answer===1})===-1)){Kt.next=22;break}return E.b.info("\u8BF7\u8BBE\u7F6E\u7B2C".concat(En+1,"\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E")),Kt.abrupt("return",!1);case 22:En++,Kt.next=7;break;case 25:if(ua=wt.map(function(Xn){return{id:Xn.id>1?Xn.id:null,name:Xn.name,item_type:qe.a.Single,choices:Xn.choices,question_score:Xn.question_score}}),jt.current=!0,!ve.question_id){Kt.next=34;break}return Kt.next=30,Re({type:"newExercisePaper/editExerciseQuestion",payload:{id:Fn.id,question_id:ve.question_id,name:ue,item_type:qe.a.Combine,sub_item_banks:ua,tag_discipline_ids:te,sub_discipline_id:(rn=Oe.editData)===null||rn===void 0||((Vt=rn.exercise)===null||Vt===void 0)?void 0:Vt.sub_discipline_id,difficulty:ir,repeat_answer:!Ma}});case 30:xa=Kt.sent,wn(xa),Kt.next=38;break;case 34:return Kt.next=36,Re({type:"newExercisePaper/addExerciseQuestion",payload:{id:Fn.id,insert_id:ve==null?void 0:ve.insert_id,name:ue,item_type:qe.a.Combine,tag_discipline_ids:te,sub_discipline_id:(Dt=Oe.editData)===null||Dt===void 0||((zt=Dt.exercise)===null||zt===void 0)?void 0:zt.sub_discipline_id,difficulty:ir,repeat_answer:!Ma,sub_item_banks:ua}});case 36:xa=Kt.sent,((xt=xa)===null||xt===void 0?void 0:xt.status)===0&&(Fe(-1),E.b.success("\u4FDD\u5B58\u6210\u529F"),Wn(!1),Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Fn)}));case 38:case"end":return Kt.stop()}},sn)}));return function(){return cn.apply(this,arguments)}}(),zn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u7F16\u8F91",icon:"iconfont c-light-primary ml30 icon-bianjishijuan3x current",id:"edit"}],jn=function(){var cn=Object(Q.a)(f.a.mark(function sn(En){return f.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(!(at!==-1)){Kn.next=3;break}return E.b.error("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u95EE\u9898\u3002"),Kn.abrupt("return");case 3:Kn.t0=En.id,Kn.next=Kn.t0==="del"?6:Kn.t0==="edit"?8:Kn.t0==="add"?11:13;break;case 6:return O.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",onOk:function(){return Object(Q.a)(f.a.mark(function ua(){return f.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return rn.next=2,Object(Me.g)({question_id:ve.question_id,exam_id:Fn.id});case 2:Re({type:"newExercisePaper/editExercise",payload:Object(d.a)({},Fn)});case 3:case"end":return rn.stop()}},ua)}))()}}),Kn.abrupt("break",13);case 8:return Fe(ve.dragKey),Wn(!0),Kn.abrupt("break",13);case 11:return Fa({key:ve.key,insert_id:ve==null?void 0:ve.question_id,item_type:qe.a.Single}),Kn.abrupt("break",13);case 13:case"end":return Kn.stop()}},sn)}));return function(En){return cn.apply(this,arguments)}}(),$t=function(){var sn;return t.a.createElement("aside",{ref:da},t.a.createElement("div",{className:be.a.questionType},!(ve!=null&&ve.isPreview)&&t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},ve.key,"\u3001\u7EC4\u5408\u9898"),"\uFF08",ve.question_score,"\u5206\uFF09")),ve!=null&&ve.isPreview?t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,"."),t.a.createElement(de.a,{value:ve.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08\u5171",ve==null?void 0:ve.sub_q_count,"\u5C0F\u9898\uFF0C",ve.question_score,"\u5206\uFF09")):t.a.createElement("div",{className:"mt5"},t.a.createElement(de.a,{value:ve.question_title})),t.a.createElement("div",{style:{display:Tn?"block":"none"},className:be.a.questionChoices},ve==null||((sn=ve.sub_exercise_questions)===null||sn===void 0)?void 0:sn.map(function(En,Pn){var Kn;return t.a.createElement("div",{key:Pn},t.a.createElement("div",{style:{display:"flex",alignItems:"flex-start"}},t.a.createElement("span",{style:{flexShrink:0},className:"font18"},ve.key,".",Pn+1,"\uFF08\u5355\u9009\u9898\uFF09"),t.a.createElement(de.a,{value:En.question_title}),t.a.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",En.question_score,"\u5206\uFF09")),En==null||((Kn=En.question_choices)===null||Kn===void 0)?void 0:Kn.map(function(Vn,ua){return t.a.createElement(a.a,{key:ua},t.a.createElement(v.a,null,t.a.createElement(g.a,{key:ua,checked:Vn.standard_boolean,disabled:!0},na[ua],".")),t.a.createElement(v.a,{flex:"1"},t.a.createElement("span",{className:"c-black font14"},t.a.createElement(de.a,{value:Vn.choice_text}))))}))})),t.a.createElement("div",{className:be.a.action},t.a.createElement("span",{className:"c-light-primary current",onClick:function(){return ya(!Tn)},style:{}},Tn?"\u6536\u8D77":"\u5C55\u5F00"),!ve.hideAction&&zn.map(function(En,Pn){return t.a.createElement(s.a,{key:Pn,placement:"bottom",title:En.name},t.a.createElement("span",{onClick:function(){return jn(En)},className:En.icon}))})))},yn=function(){var sn,En;return t.a.createElement("aside",null,t.a.createElement("div",{className:be.a.questionType},t.a.createElement("div",null,t.a.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),t.a.createElement("section",{className:be.a.wrap,style:{padding:0}},t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u9898\u5E72\uFF1A")),t.a.createElement(A.a,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ue,onChange:function(Kn){return ot(Kn)}}),t.a.createElement("p",null,"\u5C0F\u9898\u6570\uFF1A",wt==null?void 0:wt.length),wt==null?void 0:wt.map(function(Pn,Kn){var Vn;return t.a.createElement("div",{className:be.a.fold,key:Pn.id},t.a.createElement("div",{onClick:function(){return On("open",Kn)},className:be.a.head},t.a.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:Pn.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),t.a.createElement("span",null,"\u7B2C",Kn+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),t.a.createElement("b",{onClick:function(xa){xa.stopPropagation(),On("delete",Kn)},className:"iconfont icon-shanchu8"})),t.a.createElement("div",{className:"mb10",style:{display:Pn.open?"block":"none"}},t.a.createElement(A.a,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Pn==null?void 0:Pn.name,onChange:function(xa){return On("value",Kn,xa)}}),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:be.a.required},"*"),t.a.createElement("span",{className:be.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Pn==null||((Vn=Pn.choices)===null||Vn===void 0)?void 0:Vn.map(function(ua,xa){var rn;return t.a.createElement("div",{className:be.a.choiceWrap,key:xa},t.a.createElement(s.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},t.a.createElement("div",{className:"".concat(be.a.answer," ").concat(ua.is_answer===1?be.a.activeAnswer:""),onClick:function(){return On("answer",Kn,xa)}},na[xa])),t.a.createElement("div",{className:be.a.editorWrap},(Pn==null?void 0:Pn.activeQusEditor)===xa?t.a.createElement(A.a,{id:"single-question-option-".concat(xa),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ua.choice_text,onChange:function(Dt){return On("details",Kn,Dt)}}):t.a.createElement("div",{className:be.a.htmlWrap,onClick:function(){return On("edit",Kn,xa)}},t.a.createElement(de.a,{value:ua.choice_text}))),xa>1&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("i",{className:"".concat(be.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return On("deleteQus",Kn,xa)}})),xa<7&&xa===(Pn==null||((rn=Pn.choices)===null||rn===void 0)?void 0:rn.length)-1&&t.a.createElement(s.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},t.a.createElement("i",{className:"".concat(be.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return On("addQus",Kn)}})))}),t.a.createElement("p",{className:"mt10"},"\u5206\u503C\uFF1A",t.a.createElement(k.a,{value:Pn.question_score,max:1e4,min:0,onChange:function(xa){return On("score",Kn,xa)}}),"\u5206")))}),wt.length<20&&t.a.createElement(u.a,{type:"primary",onClick:pn},t.a.createElement("i",{className:"iconfont icon-tianjiatimu mr5 font14"}),"\u6DFB\u52A0\u5C0F\u9898")),t.a.createElement("p",{className:"mt10"},t.a.createElement("span",{className:be.a.difficult},t.a.createElement("label",{style:{color:"red"}},"*")," \u96BE\u5EA6\uFF1A",t.a.createElement(g.a.Group,{value:ir,onChange:function(Kn){Qa(Kn.target.value)}},t.a.createElement(g.a.Button,{value:1},"\u7B80\u5355"),t.a.createElement(g.a.Button,{value:2},"\u9002\u4E2D"),t.a.createElement(g.a.Button,{value:3},"\u56F0\u96BE")))),t.a.createElement("p",{className:be.a.titleWrap},t.a.createElement("span",{className:"".concat(be.a.title)},"\u77E5\u8BC6\u70B9\uFF1A",t.a.createElement("span",{className:be.a.colorGray},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),t.a.createElement("div",{className:"mt5"},t.a.createElement(Se.a,{selectvalues:ve==null?void 0:ve.tag_discipline_ids,value:te,onChange:_e,subId:(sn=Oe.editData)===null||sn===void 0||((En=sn.exercise)===null||En===void 0)?void 0:En.sub_discipline_id,knowledgeOptions:aa,onAddKnowledgeFinish:Yt}))),t.a.createElement("aside",{className:"tr"},(at!==-1||ve.question_id)&&t.a.createElement(u.a,{type:"default",onClick:function(){kt(),Wn(!1)}},"\u53D6\u6D88"),t.a.createElement(u.a,{className:"ml20",type:"primary",onClick:function(){fn()}},"\u4FDD\u5B58")))},pn=function(){var sn={id:Math.random(),item_type:"SINGLE",open:!1,name:"",choices:Array.from({length:4},function(){return{choice_text:"",is_answer:0}}),activeQusEditor:null,analysis:""};Et(wt.concat(sn))},On=function(sn,En,Pn){var Kn=Object(on.cloneDeep)(wt);sn==="open"&&(Kn[En].open=!Kn[En].open),sn==="delete"&&Kn.splice(En,1),sn==="value"&&(Kn[En].name=Pn),sn==="answer"&&Kn[En].choices.forEach(function(Vn,ua){Vn.is_answer=Pn===ua?1:0}),sn==="edit"&&(Kn[En].activeQusEditor=Pn),sn==="details"&&(Kn[En].choices[Kn[En].activeQusEditor].choice_text=Pn),sn==="addQus"&&(Kn[En].choices=Kn[En].choices.concat({choice_text:"",is_answer:0})),sn==="deleteQus"&&(Kn[En].choices=Kn[En].choices.filter(function(Vn,ua){return ua!==Pn})),sn==="analysis"&&(Kn[En].analysis=Pn),sn==="score"&&(Kn[En].question_score=Pn),Et(Kn)};return t.a.createElement("section",{className:be.a.wrap},!vn&&$t(),vn&&yn())},Pe=Object(H.a)(function(q){var Z=q.newExercisePaper;return{newExercisePaper:Z}},null,null,{forwardRef:!0})(Object(i.forwardRef)(Ea)),ye=function(Z){var oe=Z.data,Oe=Z.isDragDisabled,Re=Oe===void 0?!1:Oe,ve=Z.editorProps,bn=ve===void 0?{}:ve,kt=Z.onDragEnd,at=kt===void 0?function(){}:kt,Ht=Z.dispatch,Fe=Z.markBtnVisible,Un=Fe===void 0?!1:Fe,Fa=Z.batchScore,fa=Fa===void 0?[]:Fa,ae=Z.reload,z=ae===void 0?function(){}:ae,Y=Z.inNewPaperLibrary,te=Y===void 0?!1:Y,_e=Object(i.useRef)(),se=Object(P.i)(),ut=function(){var ba,Na,Ma,Jt,Rt,An,aa,ra,Fn,da,Ta,Wa,ue,ot,lt,ft,wt=[{name:"\u5355\u9009\u9898",type:0,count:oe==null||((ba=oe.exercise_types)===null||ba===void 0)?void 0:ba.q_singles,score:oe==null||((Na=oe.exercise_types)===null||Na===void 0)?void 0:Na.q_singles_scores,items:[]},{name:"\u591A\u9009\u9898",type:1,count:oe==null||((Ma=oe.exercise_types)===null||Ma===void 0)?void 0:Ma.q_doubles,score:oe==null||((Jt=oe.exercise_types)===null||Jt===void 0)?void 0:Jt.q_doubles_scores,items:[]},{name:"\u5224\u65AD\u9898",type:2,count:oe==null||((Rt=oe.exercise_types)===null||Rt===void 0)?void 0:Rt.q_judges,score:oe==null||((An=oe.exercise_types)===null||An===void 0)?void 0:An.q_judges_scores,items:[]},{name:"\u586B\u7A7A\u9898",type:3,count:oe==null||((aa=oe.exercise_types)===null||aa===void 0)?void 0:aa.q_nulls,score:oe==null||((ra=oe.exercise_types)===null||ra===void 0)?void 0:ra.q_nulls_scores,items:[]},{name:"\u7B80\u7B54\u9898",type:4,count:oe==null||((Fn=oe.exercise_types)===null||Fn===void 0)?void 0:Fn.q_mains,score:oe==null||((da=oe.exercise_types)===null||da===void 0)?void 0:da.q_mains_scores,items:[]},{name:"\u5B9E\u8BAD\u9898",type:5,count:oe==null||((Ta=oe.exercise_types)===null||Ta===void 0)?void 0:Ta.q_shixuns,score:oe==null||((Wa=oe.exercise_types)===null||Wa===void 0)?void 0:Wa.q_shixuns_scores,items:[]},{name:"\u7F16\u7A0B\u9898",type:6,count:oe==null||((ue=oe.exercise_types)===null||ue===void 0)?void 0:ue.q_pros,score:oe==null||((ot=oe.exercise_types)===null||ot===void 0)?void 0:ot.q_pros_scores,items:[]},{name:"\u7EC4\u5408\u9898",type:7,count:oe==null||((lt=oe.exercise_types)===null||lt===void 0)?void 0:lt.q_combinations,score:oe==null||((ft=oe.exercise_types)===null||ft===void 0)?void 0:ft.q_combination_scores,items:[]}];return wt},vn=function(ba,Na,Ma){var Jt=Array.from(ba),Rt=Jt.splice(Na,1),An=Object(o.a)(Rt,1),aa=An[0];return Jt.splice(Ma,0,aa),Jt},Wn=function(ba,Na,Ma){if(!ba.destination)return;var Jt=vn(Na,ba.source.index,ba.destination.index);te?at(ba,Jt,Ma):at(Jt,Ma)},Oa=function(ba){Ht({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:ba}})},dn=function(ba,Na){if(Na===0)return te?t.a.createElement($n,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(gt,Object(m.a)({reload:z,editData:ba},ba));if(Na===1)return te?t.a.createElement(_n,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(Ve,Object(m.a)({reload:z,editData:ba},ba));if(Na===2)return te?t.a.createElement(Gt,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(he,Object(m.a)({reload:z,editData:ba},ba));if(Na===3)return te?t.a.createElement(ct,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(me,Object(m.a)({reload:z,editData:ba},ba));if(Na===4)return te?t.a.createElement(qt,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(Hn,Object(m.a)({reload:z,editData:ba},ba));if(Na===5)return te?t.a.createElement(qn,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(xe,Object(m.a)({reload:z,editData:ba},ba));if(Na===6)return te?t.a.createElement(Bn,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(mt,Object(m.a)({editData:ba},ba));if(Na===7)return te?t.a.createElement(Pe,Object(m.a)({reload:z,editData:ba},ba)):t.a.createElement(Xt,Object(m.a)({reload:z,editData:ba},ba))},Tn=function(ba,Na,Ma){return t.a.createElement(ht.a,{onDragEnd:function(Rt){return Wn(Rt,ba,Na)}},t.a.createElement(ht.c,{droppableId:"droppable"},function(Jt,Rt){return t.a.createElement("div",Object(m.a)({ref:Jt.innerRef},Jt.droppableProps,{style:{width:"100%"}}),ba==null?void 0:ba.map(function(An,aa){var ra,Fn=Object(d.a)(Object(d.a)({},An),{},{key:aa+1,hideAction:!0,isPreview:!0,dragKey:Na+"-"+aa},bn);return t.a.createElement(ht.b,{key:Fn==null?void 0:Fn.question_id,draggableId:Fn==null||((ra=Fn.question_id)===null||ra===void 0)?void 0:ra.toString(),index:aa,isDragDisabled:Re},function(da,Ta){return t.a.createElement("aside",Object(m.a)({ref:da.innerRef},da.draggableProps,da.dragHandleProps),t.a.createElement("div",{className:rt.a.posWarp,id:Fn.dragKey},dn(Fn,Na),Un&&t.a.createElement(a.a,{className:rt.a.markWrongBtnWrapper},t.a.createElement(u.a,{onClick:function(){return Oa({value:Fn,type:Na})}},Fn!=null&&Fn.is_wrong?"\u53D6\u6D88\u6807\u8BB0\u9519\u9898":"\u6807\u8BB0\u9519\u9898")),t.a.createElement(M.a,null),!Re&&t.a.createElement("div",{className:rt.a.pos},t.a.createElement("div",{className:rt.a.tips},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u8BD5\u9898\u663E\u793A\u987A\u5E8F"))))})}))}))},ya=function(ba){var Na=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Ma=["","\u5341","\u767E","\u5343","\u4E07"];ba=parseInt(ba);var Jt=function(ra){for(var Fn=ra.toString().split("").reverse(),da="",Ta=0;Ta0&&Fn[Ta]==0&&Fn[Ta-1]==0?"":Na[Fn[Ta]]+(Fn[Ta]==0?Ma[0]:Ma[Ta]))+da;return da},Rt=Math.floor(ba/1e4),An=ba%1e4;return An.toString().length<4&&(An="0"+An),Rt?Jt(Rt)+"\u4E07"+Jt(An):Jt(ba)},fr=function(ba){var Na={\u5355\u9009\u9898:2,\u591A\u9009\u9898:5,\u586B\u7A7A\u9898:2,\u5224\u65AD\u9898:2,\u7B80\u7B54\u9898:10,\u7F16\u7A0B\u9898:10,\u5B9E\u8BAD\u9898:5,\u7EC4\u5408\u9898:10};return Na[ba]||0},gr=function(ba,Na){_e.current=fr(Na),O.a.confirm({centered:!0,title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u6570",content:t.a.createElement("div",{className:""},t.a.createElement("span",null,Na==="\u7EC4\u5408\u9898"?"\u7EC4\u5408\u9898\u4E2D\u7684\u6BCF\u5C0F\u9898":Na,"\uFF1A"),t.a.createElement(k.a,{min:1,defaultValue:_e.current,onChange:function(Jt){_e.current=Jt}}),t.a.createElement("span",{className:"ml5"},"\u5206/\u9898"),t.a.createElement("br",null),Na==="\u586B\u7A7A\u9898"&&t.a.createElement("div",{style:{color:"rgb(255, 0, 0)"}},"\u6BCF\u7A7A\u5206\u503C\u6309\u6BCF\u9898\u5206\u503C\u53D6\u5E73\u5747\u5206\u8BA1\u7B97")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Ma=Object(Q.a)(f.a.mark(function Rt(){var An,aa;return f.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:if(!te){Fn.next=6;break}return Fn.next=3,Object(Me.t)(se.id,{question_type:ba,score:_e.current});case 3:return An=Fn.sent,An.status===0&&z(),Fn.abrupt("return");case 6:return Fn.next=8,Object(Te.a)("/api/exercises/".concat(se.categoryId,"/batch_set_score.json"),{method:"post",body:{question_type:ba,score:_e.current}});case 8:aa=Fn.sent,aa.status!==-1&&z();case 10:case"end":return Fn.stop()}},Rt)}));function Jt(){return Ma.apply(this,arguments)}return Jt}()})},ir=function(){var ba,Na=ut();oe==null||((ba=oe.exercise_questions)===null||ba===void 0)||ba.forEach(function(Jt,Rt){if(Jt.question_type===0){var An,aa;(An=Na[Jt.question_type])===null||An===void 0||((aa=An.items)===null||aa===void 0)||aa.push(Jt)}if(Jt.question_type===1){var ra,Fn;(ra=Na[Jt.question_type])===null||ra===void 0||((Fn=ra.items)===null||Fn===void 0)||Fn.push(Jt)}if(Jt.question_type===2){var da,Ta;(da=Na[Jt.question_type])===null||da===void 0||((Ta=da.items)===null||Ta===void 0)||Ta.push(Jt)}if(Jt.question_type===3){var Wa,ue;(Wa=Na[Jt.question_type])===null||Wa===void 0||((ue=Wa.items)===null||ue===void 0)||ue.push(Jt)}if(Jt.question_type===4){var ot,lt;(ot=Na[Jt.question_type])===null||ot===void 0||((lt=ot.items)===null||lt===void 0)||lt.push(Jt)}if(Jt.question_type===5){var ft,wt;(ft=Na[Jt.question_type])===null||ft===void 0||((wt=ft.items)===null||wt===void 0)||wt.push(Jt)}if(Jt.question_type===6){var Et,jt;(Et=Na[Jt.question_type])===null||Et===void 0||((jt=Et.items)===null||jt===void 0)||jt.push(Jt)}if(Jt.question_type===7){var Yt,wn;(Yt=Na[Jt.question_type])===null||Yt===void 0||((wn=Yt.items)===null||wn===void 0)||wn.push(Jt)}});var Ma=oe==null?void 0:oe.map(function(Jt,Rt){return t.a.createElement(t.a.Fragment,{key:Rt},t.a.createElement("div",{className:"pl20"},t.a.createElement("span",{className:"font16 c-light-primary"},ya(Rt+1),"\u3001",Jt.name),t.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",Jt.count,"\u9898",(Jt==null?void 0:Jt.question_type)===7?"\uFF0C\u5305\u542B".concat(Jt.sub_count,"\u5C0F\u9898"):"","\uFF1B\u5171",Jt.score,"\u5206\uFF09"),(fa==null?void 0:fa.includes(Jt==null?void 0:Jt.name))&&t.a.createElement(u.a,{onClick:function(){return gr(Jt==null?void 0:Jt.question_type,Jt==null?void 0:Jt.name)},style:{float:"right"},type:"primary",ghost:!0},"\u6279\u91CF\u8BBE\u7F6E\u5F97\u5206")),Tn(Jt.items,Jt==null?void 0:Jt.question_type,Jt==null?void 0:Jt.name))});return Ma};return t.a.createElement("div",null," ",ir()," ")},J=re.a=Object(H.a)()(ye)},LdHM:function(Ge,re,y){"use strict";y.d(re,"b",function(){return s}),y.d(re,"a",function(){return D});var Q=y("1OyB"),W=y("vuIU"),k=y("Ji7U"),B=y("LK+K"),O=y("q1tI"),R=y("rePB"),M=y("Ff2n"),p=y("ODXe"),a=y("4IlW"),b=y("bX4T"),u=y("YrtM"),d=y("TSYQ"),m=y.n(d),o=y("+nKL"),c=y("8OUc"),f=function(G,K){var $=G.prefixCls,ie=G.id,le=G.flattenOptions,de=G.childrenAsData,Se=G.values,He=G.searchValue,et=G.multiple,je=G.defaultActiveFirstOption,me=G.height,fe=G.itemHeight,Ae=G.notFoundContent,he=G.open,Ue=G.menuItemSelectedIcon,st=G.virtual,Ve=G.onSelect,dt=G.onToggleOpen,Qe=G.onActiveValue,pe=G.onScroll,xe=G.onMouseEnter,Le="".concat($,"-item"),Ye=Object(u.a)(function(){return le},[he,le],function(Xt,ht){return ht[0]&&Xt[1]!==ht[1]}),gt=O.useRef(null),Ct=function(ht){ht.preventDefault()},tn=function(ht){gt.current&>.current.scrollTo({index:ht})},Zt=function(ht){for(var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,rt=Ye.length,Te=0;Te1&&arguments[1]!==void 0?arguments[1]:!1;return Object(v.a)(A).map(function(K,$){if(!O.isValidElement(K)||!K.type)return null;var ie=K.type.isSelectOptGroup,le=K.key,de=K.props,Se=de.children,He=Object(M.a)(de,["children"]);return G||!ie?n(K):Object(C.a)(Object(C.a)({key:"__RC_SELECT_GRP__".concat(le===null?$:le,"__"),label:le},He),{},{options:_(Se)})}).filter(function(K){return K})}var h=y("2Qr1"),g=y("qNPg"),x=y("U8pU"),T=y("Kwbf"),S=y("WKfj");function E(A){var G=A.mode,K=A.options,$=A.children,ie=A.backfill,le=A.allowClear,de=A.placeholder,Se=A.getInputElement,He=A.showSearch,et=A.onSearch,je=A.defaultOpen,me=A.autoFocus,fe=A.labelInValue,Ae=A.value,he=A.inputValue,Ue=A.optionLabelProp,st=G==="multiple"||G==="tags",Ve=He!==void 0?He:st||G==="combobox",dt=K||_($);if(Object(T.a)(G!=="tags"||dt.every(function(Le){return!Le.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),G==="tags"||G==="combobox"){var Qe=dt.some(function(Le){return Le.options?Le.options.some(function(Ye){return typeof("value"in Ye?Ye.value:Ye.key)=="number"}):typeof("value"in Le?Le.value:Le.key)=="number"});Object(T.a)(!Qe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(T.a)(G!=="combobox"||!Ue,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(T.a)(G==="combobox"||!ie,"`backfill` only works with `combobox` mode."),Object(T.a)(G==="combobox"||!Se,"`getInputElement` only work with `combobox` mode."),Object(T.b)(G!=="combobox"||!Se||!le||!de,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),et&&!Ve&&G!=="combobox"&&G!=="tags"&&Object(T.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(T.b)(!je||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ae!=null){var pe=Object(S.d)(Ae);Object(T.a)(!fe||pe.every(function(Le){return Object(x.a)(Le)==="object"&&("key"in Le||"value"in Le)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(T.a)(!st||Array.isArray(Ae),"`value` should be array when `mode` is `multiple` or `tags`")}if($){var xe=null;Object(v.a)($).some(function(Le){if(!O.isValidElement(Le)||!Le.type)return!1;var Ye=Le.type;if(Ye.isSelectOption)return!1;if(Ye.isSelectOptGroup){var gt=Object(v.a)(Le.props.children).every(function(Ct){return!O.isValidElement(Ct)||!Le.type||Ct.type.isSelectOption?!0:(xe=Ct.type,!1)});return!gt}return xe=Ye,!0}),xe&&Object(T.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(xe.displayName||xe.name||xe,"`.")),Object(T.a)(he===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var U=E,F=Object(g.a)({prefixCls:"rc-select",components:{optionList:t},convertChildrenToData:_,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:U,fillOptionsWithMissingValue:h.a}),P=function(A){Object(k.a)(K,A);var G=Object(B.a)(K);function K(){var $;return Object(Q.a)(this,K),$=G.apply(this,arguments),$.selectRef=O.createRef(),$.focus=function(){$.selectRef.current.focus()},$.blur=function(){$.selectRef.current.blur()},$}return Object(W.a)(K,[{key:"render",value:function(){return O.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),K}(O.Component);P.Option=s,P.OptGroup=D;var H=P,N=re.c=H},M8RZ:function(Ge,re,y){"use strict";y.d(re,"a",function(){return a});var Q=y("fWQN"),W=y("mtLc"),k=y("yKVA"),B=y("879j"),O=y("q1tI"),R=y.n(O),M=y("i8i4"),p=y.n(M),a=function(b){Object(k.a)(d,b);var u=Object(B.a)(d);function d(m){var o;Object(Q.a)(this,d),o=u.call(this,m);var c=window.document;return o.node=c.createElement("div"),c.body.appendChild(o.node),o}return Object(W.a)(d,[{key:"render",value:function(){var o=this.props.children;return Object(M.createPortal)(o,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),d}(R.a.Component)},MEGo:function(Ge,re,y){var Q=y("4fz+"),W=y("Dagg"),k=y("dqUG"),B=y("2fw6"),O=y("x6Kt"),R=y("rmlV"),M=y("yxFR"),p=y("y+Vt"),a=y("h7HQ"),b=y("1Jh7"),u=y("SKnc"),d=y("K2GJ"),m=y("Fofx"),o=y("NC18"),c=o.createFromString,f=y("bYtY"),i=f.isString,t=f.extend,l=f.defaults,s=f.trim,w=f.each,D=/[\s,]+/;function C(K){if(i(K)){var $=new DOMParser;K=$.parseFromString(K,"text/xml")}for(K.nodeType===9&&(K=K.firstChild);K.nodeName.toLowerCase()!=="svg"||K.nodeType!==1;)K=K.nextSibling;return K}function v(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}v.prototype.parse=function(K,$){$=$||{};var ie=C(K);if(!ie)throw new Error("Illegal svg");var le=new Q;this._root=le;var de=ie.getAttribute("viewBox")||"",Se=parseFloat(ie.getAttribute("width")||$.width),He=parseFloat(ie.getAttribute("height")||$.height);isNaN(Se)&&(Se=null),isNaN(He)&&(He=null),S(ie,le,null,!0);for(var et=ie.firstChild;et;)this._parseNode(et,le),et=et.nextSibling;var je,me;if(de){var fe=s(de).split(D);fe.length>=4&&(je={x:parseFloat(fe[0]||0),y:parseFloat(fe[1]||0),width:parseFloat(fe[2]),height:parseFloat(fe[3])})}if(je&&Se!=null&&He!=null&&(me=A(je,Se,He),!$.ignoreViewBox)){var Ae=le;le=new Q,le.add(Ae),Ae.scale=me.scale.slice(),Ae.position=me.position.slice()}return!$.ignoreRootClip&&Se!=null&&He!=null&&le.setClipPath(new O({shape:{x:0,y:0,width:Se,height:He}})),{root:le,width:Se,height:He,viewBoxRect:je,viewBoxTransform:me}},v.prototype._parseNode=function(K,$){var ie=K.nodeName.toLowerCase();ie==="defs"?this._isDefine=!0:ie==="text"&&(this._isText=!0);var le;if(this._isDefine){var de=_[ie];if(de){var Se=de.call(this,K),He=K.getAttribute("id");He&&(this._defs[He]=Se)}}else{var de=n[ie];de&&(le=de.call(this,K,$),$.add(le))}for(var et=K.firstChild;et;)et.nodeType===1&&this._parseNode(et,le),et.nodeType===3&&this._isText&&this._parseText(et,le),et=et.nextSibling;ie==="defs"?this._isDefine=!1:ie==="text"&&(this._isText=!1)},v.prototype._parseText=function(K,$){if(K.nodeType===1){var ie=K.getAttribute("dx")||0,le=K.getAttribute("dy")||0;this._textX+=parseFloat(ie),this._textY+=parseFloat(le)}var de=new k({style:{text:K.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});g($,de),S(K,de,this._defs);var Se=de.style.fontSize;Se&&Se<9&&(de.style.fontSize=9,de.scale=de.scale||[1,1],de.scale[0]*=Se/9,de.scale[1]*=Se/9);var He=de.getBoundingRect();return this._textX+=He.width,$.add(de),de};var n={g:function(K,$){var ie=new Q;return g($,ie),S(K,ie,this._defs),ie},rect:function(K,$){var ie=new O;return g($,ie),S(K,ie,this._defs),ie.setShape({x:parseFloat(K.getAttribute("x")||0),y:parseFloat(K.getAttribute("y")||0),width:parseFloat(K.getAttribute("width")||0),height:parseFloat(K.getAttribute("height")||0)}),ie},circle:function(K,$){var ie=new B;return g($,ie),S(K,ie,this._defs),ie.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),r:parseFloat(K.getAttribute("r")||0)}),ie},line:function(K,$){var ie=new M;return g($,ie),S(K,ie,this._defs),ie.setShape({x1:parseFloat(K.getAttribute("x1")||0),y1:parseFloat(K.getAttribute("y1")||0),x2:parseFloat(K.getAttribute("x2")||0),y2:parseFloat(K.getAttribute("y2")||0)}),ie},ellipse:function(K,$){var ie=new R;return g($,ie),S(K,ie,this._defs),ie.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),rx:parseFloat(K.getAttribute("rx")||0),ry:parseFloat(K.getAttribute("ry")||0)}),ie},polygon:function(K,$){var ie=K.getAttribute("points");ie&&(ie=x(ie));var le=new a({shape:{points:ie||[]}});return g($,le),S(K,le,this._defs),le},polyline:function(K,$){var ie=new p;g($,ie),S(K,ie,this._defs);var le=K.getAttribute("points");le&&(le=x(le));var de=new b({shape:{points:le||[]}});return de},image:function(K,$){var ie=new W;return g($,ie),S(K,ie,this._defs),ie.setStyle({image:K.getAttribute("xlink:href"),x:K.getAttribute("x"),y:K.getAttribute("y"),width:K.getAttribute("width"),height:K.getAttribute("height")}),ie},text:function(K,$){var ie=K.getAttribute("x")||0,le=K.getAttribute("y")||0,de=K.getAttribute("dx")||0,Se=K.getAttribute("dy")||0;this._textX=parseFloat(ie)+parseFloat(de),this._textY=parseFloat(le)+parseFloat(Se);var He=new Q;return g($,He),S(K,He,this._defs),He},tspan:function(K,$){var ie=K.getAttribute("x"),le=K.getAttribute("y");ie!=null&&(this._textX=parseFloat(ie)),le!=null&&(this._textY=parseFloat(le));var de=K.getAttribute("dx")||0,Se=K.getAttribute("dy")||0,He=new Q;return g($,He),S(K,He,this._defs),this._textX+=de,this._textY+=Se,He},path:function(K,$){var ie=K.getAttribute("d")||"",le=c(ie);return g($,le),S(K,le,this._defs),le}},_={lineargradient:function(K){var $=parseInt(K.getAttribute("x1")||0,10),ie=parseInt(K.getAttribute("y1")||0,10),le=parseInt(K.getAttribute("x2")||10,10),de=parseInt(K.getAttribute("y2")||0,10),Se=new u($,ie,le,de);return h(K,Se),Se},radialgradient:function(K){}};function h(K,$){for(var ie=K.firstChild;ie;){if(ie.nodeType===1){var le=ie.getAttribute("offset");le.indexOf("%")>0?le=parseInt(le,10)/100:le?le=parseFloat(le):le=0;var de=ie.getAttribute("stop-color")||"#000000";$.addColorStop(le,de)}ie=ie.nextSibling}}function g(K,$){K&&K.__inheritedStyle&&($.__inheritedStyle||($.__inheritedStyle={}),l($.__inheritedStyle,K.__inheritedStyle))}function x(K){for(var $=s(K).split(D),ie=[],le=0;le<$.length;le+=2){var de=parseFloat($[le]),Se=parseFloat($[le+1]);ie.push([de,Se])}return ie}var T={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function S(K,$,ie,le){var de=$.__inheritedStyle||{},Se=$.type==="text";if(K.nodeType===1&&(P(K,$),t(de,N(K)),!le)){for(var He in T)if(T.hasOwnProperty(He)){var et=K.getAttribute(He);et!=null&&(de[T[He]]=et)}}var je=Se?"textFill":"fill",me=Se?"textStroke":"stroke";$.style=$.style||new d;var fe=$.style;de.fill!=null&&fe.set(je,U(de.fill,ie)),de.stroke!=null&&fe.set(me,U(de.stroke,ie)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Ae){var he=Ae==="lineWidth"&&Se?"textStrokeWidth":Ae;de[Ae]!=null&&fe.set(he,parseFloat(de[Ae]))}),(!de.textBaseline||de.textBaseline==="auto")&&(de.textBaseline="alphabetic"),de.textBaseline==="alphabetic"&&(de.textBaseline="bottom"),de.textAlign==="start"&&(de.textAlign="left"),de.textAlign==="end"&&(de.textAlign="right"),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Ae){de[Ae]!=null&&fe.set(Ae,de[Ae])}),de.lineDash&&($.style.lineDash=s(de.lineDash).split(D)),fe[me]&&fe[me]!=="none"&&($[me]=!0),$.__inheritedStyle=de}var E=/url\(\s*#(.*?)\)/;function U(K,$){var ie=$&&K&&K.match(E);if(ie){var le=s(ie[1]),de=$[le];return de}return K}var F=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function P(K,$){var ie=K.getAttribute("transform");if(ie){ie=ie.replace(/,/g," ");var le=null,de=[];ie.replace(F,function(je,me,fe){de.push(me,fe)});for(var Se=de.length-1;Se>0;Se-=2){var He=de[Se],et=de[Se-1];le=le||m.create();switch(et){case"translate":He=s(He).split(D),m.translate(le,le,[parseFloat(He[0]),parseFloat(He[1]||0)]);break;case"scale":He=s(He).split(D),m.scale(le,le,[parseFloat(He[0]),parseFloat(He[1]||He[0])]);break;case"rotate":He=s(He).split(D),m.rotate(le,le,parseFloat(He[0]));break;case"skew":He=s(He).split(D),console.warn("Skew transform is not supported yet");break;case"matrix":var He=s(He).split(D);le[0]=parseFloat(He[0]),le[1]=parseFloat(He[1]),le[2]=parseFloat(He[2]),le[3]=parseFloat(He[3]),le[4]=parseFloat(He[4]),le[5]=parseFloat(He[5]);break}}$.setLocalTransform(le)}}var H=/([^\s:;]+)\s*:\s*([^:;]+)/g;function N(K){var $=K.getAttribute("style"),ie={};if(!$)return ie;var le={};H.lastIndex=0;for(var de;(de=H.exec($))!=null;)le[de[1]]=de[2];for(var Se in T)T.hasOwnProperty(Se)&&le[Se]!=null&&(ie[T[Se]]=le[Se]);return ie}function A(K,$,ie){var le=$/K.width,de=ie/K.height,Se=Math.min(le,de),He=[Se,Se],et=[-(K.x+K.width/2)*Se+$/2,-(K.y+K.height/2)*Se+ie/2];return{scale:He,position:et}}function G(K,$){var ie=new v;return ie.parse(K,$)}re.parseXML=C,re.makeViewBoxTransform=A,re.parseSVG=G},MI8n:function(Ge,re,y){"use strict";y.d(re,"c",function(){return O}),y.d(re,"b",function(){return a}),y.d(re,"e",function(){return b}),y.d(re,"a",function(){return u}),y.d(re,"d",function(){return d}),y.d(re,"f",function(){return m});var Q=y("/cxE"),W=y("pmY6"),k=y("24hK"),B=y("5Y4S"),O;(function(o){o.None=()=>W.a.None;function c(E){return(U,F=null,P)=>{let H=!1,N;return N=E(A=>H?void 0:(N?N.dispose():H=!0,U.call(F,A)),null,P),H&&N.dispose(),N}}o.once=c;function f(E,U){return D((F,P=null,H)=>E(N=>F.call(P,U(N)),null,H))}o.map=f;function i(E,U){return D((F,P=null,H)=>E(N=>{U(N),F.call(P,N)},null,H))}o.forEach=i;function t(E,U){return D((F,P=null,H)=>E(N=>U(N)&&F.call(P,N),null,H))}o.filter=t;function l(E){return E}o.signal=l;function s(...E){return(U,F=null,P)=>Object(W.e)(...E.map(H=>H(N=>U.call(F,N),null,P)))}o.any=s;function w(E,U,F){let P=F;return f(E,H=>(P=U(P,H),P))}o.reduce=w;function D(E){let U;const F=new a({onFirstListenerAdd(){U=E(F.fire,F)},onLastListenerRemove(){U.dispose()}});return F.event}function C(E,U,F=100,P=!1,H){let N,A,G,K=0;const $=new a({leakWarningThreshold:H,onFirstListenerAdd(){N=E(ie=>{K++,A=U(A,ie),P&&!G&&($.fire(A),A=void 0),clearTimeout(G),G=setTimeout(()=>{const le=A;A=void 0,G=void 0,(!P||K>1)&&$.fire(le),K=0},F)})},onLastListenerRemove(){N.dispose()}});return $.event}o.debounce=C;function v(E,U=(F,P)=>F===P){let F=!0,P;return t(E,H=>{const N=F||!U(H,P);return F=!1,P=H,N})}o.latch=v;function n(E,U){return[o.filter(E,U),o.filter(E,F=>!U(F))]}o.split=n;function _(E,U=!1,F=[]){let P=F.slice(),H=E(G=>{P?P.push(G):A.fire(G)});const N=()=>{P&&P.forEach(G=>A.fire(G)),P=null},A=new a({onFirstListenerAdd(){H||(H=E(G=>A.fire(G)))},onFirstListenerDidAdd(){P&&(U?setTimeout(N):N())},onLastListenerRemove(){H&&H.dispose(),H=null}});return A.event}o.buffer=_;class h{constructor(E){this.event=E}map(E){return new h(f(this.event,E))}forEach(E){return new h(i(this.event,E))}filter(E){return new h(t(this.event,E))}reduce(E,U){return new h(w(this.event,E,U))}latch(){return new h(v(this.event))}debounce(E,U=100,F=!1,P){return new h(C(this.event,E,U,F,P))}on(E,U,F){return this.event(E,U,F)}once(E,U,F){return c(this.event)(E,U,F)}}function g(E){return new h(E)}o.chain=g;function x(E,U,F=P=>P){const P=(...G)=>A.fire(F(...G)),H=()=>E.on(U,P),N=()=>E.removeListener(U,P),A=new a({onFirstListenerAdd:H,onLastListenerRemove:N});return A.event}o.fromNodeEventEmitter=x;function T(E,U,F=P=>P){const P=(...G)=>A.fire(F(...G)),H=()=>E.addEventListener(U,P),N=()=>E.removeEventListener(U,P),A=new a({onFirstListenerAdd:H,onLastListenerRemove:N});return A.event}o.fromDOMEventEmitter=T;function S(E){return new Promise(U=>c(E)(U))}o.toPromise=S})(O||(O={}));class R{constructor(o){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${o}_${R._idPool++}`}start(o){this._stopWatch=new B.a(!0),this._listenerCount=o}stop(){if(this._stopWatch){const o=this._stopWatch.elapsed();this._elapsedOverall+=o,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${o.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}R._idPool=0;let M=-1;class p{constructor(o,c=Math.random().toString(18).slice(2,5)){this.customThreshold=o,this.name=c,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(o){let c=M;if(typeof this.customThreshold=="number"&&(c=this.customThreshold),c<=0||o{const t=this._stacks.get(f)||0;this._stacks.set(f,t-1)}}}class a{constructor(o){var c;this._disposed=!1,this._options=o,this._leakageMon=M>0?new p(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((c=this._options)===null||c===void 0?void 0:c._profName)?new R(this._options._profName):void 0}get event(){return this._event||(this._event=(o,c,f)=>{var i;this._listeners||(this._listeners=new k.a);const t=this._listeners.isEmpty();t&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const l=this._listeners.push(c?[o,c]:o);t&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,o,c);const s=(i=this._leakageMon)===null||i===void 0?void 0:i.check(this._listeners.size),w=Object(W.i)(()=>{if(s&&s(),!this._disposed&&(l(),this._options&&this._options.onLastListenerRemove)){const D=this._listeners&&!this._listeners.isEmpty();D||this._options.onLastListenerRemove(this)}});return f instanceof W.b?f.add(w):Array.isArray(f)&&f.push(w),w}),this._event}fire(o){var c,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new k.a);for(let i of this._listeners)this._deliveryQueue.push([i,o]);for((c=this._perfMon)===null||c===void 0||c.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[i,t]=this._deliveryQueue.shift();try{typeof i=="function"?i.call(void 0,t):i[0].call(i[1],t)}catch(l){Object(Q.f)(l)}}(f=this._perfMon)===null||f===void 0||f.stop()}}dispose(){var o,c,f,i,t;this._disposed||(this._disposed=!0,(o=this._listeners)===null||o===void 0||o.clear(),(c=this._deliveryQueue)===null||c===void 0||c.clear(),(i=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||i===void 0||i.call(f),(t=this._leakageMon)===null||t===void 0||t.dispose())}}class b extends a{constructor(o){super(o);this._isPaused=0,this._eventQueue=new k.a,this._mergeFn=o==null?void 0:o.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const o=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(o))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(o){this._listeners&&(this._isPaused!==0?this._eventQueue.push(o):super.fire(o))}}class u extends b{constructor(o){var c;super(o);this._delay=(c=o.delay)!==null&&c!==void 0?c:100}fire(o){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(o)}}class d{constructor(){this.buffers=[]}wrapEvent(o){return(c,f,i)=>o(t=>{const l=this.buffers[this.buffers.length-1];l?l.push(()=>c.call(f,t)):c.call(f,t)},void 0,i)}bufferEvents(o){const c=[];this.buffers.push(c);const f=o();return this.buffers.pop(),c.forEach(i=>i()),f}}class m{constructor(){this.listening=!1,this.inputEvent=O.None,this.inputEventListener=W.a.None,this.emitter=new a({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(o){this.inputEvent=o,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=o(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MKOG:function(Ge,re,y){var Q=y("bYtY"),W=y("YH21"),k=W.Dispatcher,B=y("mLcG"),O=y("Bq2U"),R=function(p){p=p||{},this.stage=p.stage||{},this.onframe=p.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,k.call(this)};R.prototype={constructor:R,addClip:function(p){this._clips.push(p)},addAnimator:function(p){p.animation=this;for(var a=p.getClips(),b=0;b=0&&this._clips.splice(a,1)},removeAnimator:function(p){for(var a=p.getClips(),b=0;b=0,R=c.indexOf("Macintosh")>=0,u=(c.indexOf("Macintosh")>=0||c.indexOf("iPad")>=0||c.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,M=c.indexOf("Linux")>=0,b=!0,d=navigator.language,m=d;else if(typeof i=="object"){O=i.platform==="win32",R=i.platform==="darwin",M=i.platform==="linux",p=M&&!!i.env.SNAP&&!!i.env.SNAP_REVISION,d=B,m=B;const E=i.env.VSCODE_NLS_CONFIG;if(E)try{const U=JSON.parse(E),F=U.availableLanguages["*"];d=U.locale,m=F||B,o=U._translationsConfigFile}catch(U){}a=!0}else console.error("Unable to resolve platform.");let l=0;R?l=1:O?l=3:M&&(l=2);const s=O,w=R,D=M,C=a,v=b,n=u,_=c,h=function(){if(f.setImmediate)return f.setImmediate.bind(f);if(typeof f.postMessage=="function"&&!f.importScripts){let F=[];f.addEventListener("message",H=>{if(H.data&&H.data.vscodeSetImmediateId)for(let N=0,A=F.length;N{const N=++P;F.push({id:N,callback:H}),f.postMessage({vscodeSetImmediateId:N},"*")}}if(typeof(i==null?void 0:i.nextTick)=="function")return i.nextTick.bind(i);const U=Promise.resolve();return F=>U.then(F)}(),g=R||u?2:O?1:3;let x=!0,T=!1;function S(){if(!T){T=!0;const E=new Uint8Array(2);E[0]=1,E[1]=2;const U=new Uint16Array(E.buffer);x=U[0]===(2<<8)+1}return x}}).call(this,y("IyRk"),y("Q2Ig"))},N0LK:function(Ge,re,y){"use strict";y.d(re,"C",function(){return Q}),y.d(re,"v",function(){return k}),y.d(re,"s",function(){return B}),y.d(re,"t",function(){return O}),y.d(re,"U",function(){return R}),y.d(re,"J",function(){return M}),y.d(re,"O",function(){return p}),y.d(re,"p",function(){return a}),y.d(re,"T",function(){return b}),y.d(re,"q",function(){return u}),y.d(re,"N",function(){return d}),y.d(re,"M",function(){return m}),y.d(re,"Q",function(){return o}),y.d(re,"u",function(){return c}),y.d(re,"x",function(){return f}),y.d(re,"I",function(){return i}),y.d(re,"f",function(){return t}),y.d(re,"h",function(){return l}),y.d(re,"g",function(){return s}),y.d(re,"i",function(){return w}),y.d(re,"G",function(){return D}),y.d(re,"H",function(){return C}),y.d(re,"r",function(){return v}),y.d(re,"R",function(){return n}),y.d(re,"d",function(){return _}),y.d(re,"e",function(){return h}),y.d(re,"E",function(){return g}),y.d(re,"F",function(){return x}),y.d(re,"j",function(){return T}),y.d(re,"z",function(){return S}),y.d(re,"K",function(){return U}),y.d(re,"L",function(){return F}),y.d(re,"m",function(){return H}),y.d(re,"k",function(){return A}),y.d(re,"A",function(){return K}),y.d(re,"a",function(){return $}),y.d(re,"n",function(){return ie}),y.d(re,"l",function(){return le}),y.d(re,"D",function(){return de}),y.d(re,"B",function(){return Se}),y.d(re,"b",function(){return He}),y.d(re,"S",function(){return et}),y.d(re,"o",function(){return je}),y.d(re,"P",function(){return me}),y.d(re,"w",function(){return fe}),y.d(re,"c",function(){return Ae}),y.d(re,"y",function(){return st});function Q(pe){return!pe||typeof pe!="string"?!0:pe.trim().length===0}const W=/{(\d+)}/g;function k(pe,...xe){return xe.length===0?pe:pe.replace(W,function(Le,Ye){const gt=parseInt(Ye,10);return isNaN(gt)||gt<0||gt>=xe.length?Le:xe[gt]})}function B(pe){return pe.replace(/[<>&]/g,function(xe){switch(xe){case"<":return"<";case">":return">";case"&":return"&";default:return xe}})}function O(pe){return pe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function R(pe,xe=" "){const Le=M(pe,xe);return p(Le,xe)}function M(pe,xe){if(!pe||!xe)return pe;const Le=xe.length;if(Le===0||pe.length===0)return pe;let Ye=0;for(;pe.indexOf(xe,Ye)===Ye;)Ye=Ye+Le;return pe.substring(Ye)}function p(pe,xe){if(!pe||!xe)return pe;const Le=xe.length,Ye=pe.length;if(Le===0||Ye===0)return pe;let gt=Ye,Ct=-1;for(;!(Ct=pe.lastIndexOf(xe,gt-1),Ct===-1||Ct+Le!==gt);){if(Ct===0)return"";gt=Ct}return pe.substring(0,gt)}function a(pe){return pe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function b(pe){return pe.replace(/\*/g,"")}function u(pe,xe,Le={}){if(!pe)throw new Error("Cannot create regex from empty string");xe||(pe=O(pe)),Le.wholeWord&&(/\B/.test(pe.charAt(0))||(pe="\\b"+pe),/\B/.test(pe.charAt(pe.length-1))||(pe=pe+"\\b"));let Ye="";return Le.global&&(Ye+="g"),Le.matchCase||(Ye+="i"),Le.multiline&&(Ye+="m"),Le.unicode&&(Ye+="u"),new RegExp(pe,Ye)}function d(pe){if(pe.source==="^"||pe.source==="^$"||pe.source==="$"||pe.source==="^\\s*$")return!1;const xe=pe.exec("");return!!(xe&&pe.lastIndex===0)}function m(pe){return(pe.global?"g":"")+(pe.ignoreCase?"i":"")+(pe.multiline?"m":"")+(pe.unicode?"u":"")}function o(pe){return pe.split(/\r\n|\r|\n/)}function c(pe){for(let xe=0,Le=pe.length;xe=0;Le--){const Ye=pe.charCodeAt(Le);if(Ye!==32&&Ye!==9)return Le}return-1}function t(pe,xe){return pexe?1:0}function l(pe,xe,Le=0,Ye=pe.length,gt=0,Ct=xe.length){for(;Leia)return 1}const tn=Ye-Le,Zt=Ct-gt;return tnZt?1:0}function s(pe,xe){return w(pe,xe,0,pe.length,0,xe.length)}function w(pe,xe,Le=0,Ye=pe.length,gt=0,Ct=xe.length){for(;Le=128||ia>=128)return l(pe.toLowerCase(),xe.toLowerCase(),Le,Ye,gt,Ct);D(Hn)&&(Hn-=32),D(ia)&&(ia-=32);const mt=Hn-ia;if(mt===0)continue;return mt}const tn=Ye-Le,Zt=Ct-gt;return tnZt?1:0}function D(pe){return pe>=97&&pe<=122}function C(pe){return pe>=65&&pe<=90}function v(pe,xe){return pe.length===xe.length&&w(pe,xe)===0}function n(pe,xe){const Le=xe.length;return xe.length>pe.length?!1:w(pe,xe,0,Le)===0}function _(pe,xe){let Le,Ye=Math.min(pe.length,xe.length);for(Le=0;Le1){const Ye=pe.charCodeAt(xe-2);if(g(Ye))return T(Ye,Le)}return Le}function U(pe,xe){const Le=he.getInstance(),Ye=xe,gt=pe.length,Ct=S(pe,gt,xe);xe+=Ct>=65536?2:1;let tn=Le.getGraphemeBreakType(Ct);for(;xe=65536?2:1,tn=Hn}return xe-Ye}function F(pe,xe){const Le=he.getInstance(),Ye=xe,gt=E(pe,xe);xe-=gt>=65536?2:1;let Ct=Le.getGraphemeBreakType(gt);for(;xe>0;){const tn=E(pe,xe),Zt=Le.getGraphemeBreakType(tn);if(Ae(Zt,Ct))break;xe-=tn>=65536?2:1,Ct=Zt}return Ye-xe}const P=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function H(pe){return P.test(pe)}const N=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function A(pe){return N.test(pe)}const G=/^[\t\n\r\x20-\x7E]*$/;function K(pe){return G.test(pe)}const $=/[\u2028\u2029]/;function ie(pe){return $.test(pe)}function le(pe){for(let xe=0,Le=pe.length;xe=11904&&pe<=55215||pe>=63744&&pe<=64255||pe>=65281&&pe<=65374}function Se(pe){return pe>=127462&&pe<=127487||pe===8986||pe===8987||pe===9200||pe===9203||pe>=9728&&pe<=10175||pe===11088||pe===11093||pe>=127744&&pe<=128591||pe>=128640&&pe<=128764||pe>=128992&&pe<=129003||pe>=129280&&pe<=129535||pe>=129648&&pe<=129750}const He=String.fromCharCode(65279);function et(pe){return!!(pe&&pe.length>0&&pe.charCodeAt(0)===65279)}function je(pe,xe=!1){return pe?(xe&&(pe=pe.replace(/\\./g,"")),pe.toLowerCase()!==pe):!1}function me(pe){const xe=90-65+1;return pe=pe%(2*xe),pexe[3*Ye+1])Ye=2*Ye+1;else return xe[3*Ye+2];return 0}}he._INSTANCE=null;function Ue(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function st(pe,xe){if(pe===0)return 0;const Le=Ve(pe,xe);if(Le!==void 0)return Le;const Ye=E(xe,pe);return pe-=dt(Ye),pe}function Ve(pe,xe){let Le=E(xe,pe);for(pe-=dt(Le);Qe(Le)||Le===65039||Le===8419;){if(pe===0)return;Le=E(xe,pe),pe-=dt(Le)}if(!Se(Le))return;if(pe>=0){const Ye=E(xe,pe);Ye===8205&&(pe-=dt(Ye))}return pe}function dt(pe){return pe>=65536?2:1}function Qe(pe){return 127995<=pe&&pe<=127999}},NC18:function(Ge,re,y){var Q=y("y+Vt"),W=y("IMiH"),k=y("7oTu"),B=Math.sqrt,O=Math.sin,R=Math.cos,M=Math.PI,p=function(l){return Math.sqrt(l[0]*l[0]+l[1]*l[1])},a=function(l,s){return(l[0]*s[0]+l[1]*s[1])/(p(l)*p(s))},b=function(l,s){return(l[0]*s[1]1&&(n*=B(U),_*=B(U));var F=(C===v?-1:1)*B((n*n*(_*_)-n*n*(E*E)-_*_*(S*S))/(n*n*(E*E)+_*_*(S*S)))||0,P=F*n*E/_,H=F*-_*S/n,N=(l+w)/2+R(T)*P-O(T)*H,A=(s+D)/2+O(T)*P+R(T)*H,G=b([1,0],[(S-P)/n,(E-H)/_]),K=[(S-P)/n,(E-H)/_],$=[(-1*S-P)/n,(-1*E-H)/_],ie=b(K,$);a(K,$)<=-1&&(ie=M),a(K,$)>=1&&(ie=0),v===0&&ie>0&&(ie=ie-2*M),v===1&&ie<0&&(ie=ie+2*M),x.addData(g,N,A,n,_,G,ie,T,v)}var d=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,m=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function o(l){if(!l)return new W;for(var s=0,w=0,D=s,C=w,v,n=new W,_=W.CMD,h=l.match(d),g=0;g1&&arguments[1]!==void 0?arguments[1]:60,O=null;return function(){for(var R=this,M=arguments.length,p=new Array(M),a=0;a=0;f-=1){var i=p.get(f)||new Set;i.forEach(function(t){var l=t.parent,s=t.node;if(b(s)||!t.parent||c.has(t.parent.key))return;if(b(t.parent.node)){c.add(l.key);return}var w=!0,D=!1;(l.children||[]).filter(function(C){return!b(C.node)}).forEach(function(C){var v=C.key,n=u.has(v);w&&!n&&(w=!1),!D&&(n||d.has(v))&&(D=!0)}),w&&u.add(l.key),D&&d.add(l.key),c.add(l.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(W(d,u))}}function O(M,p,a,b,u){for(var d=new Set(M),m=new Set(p),o=0;o<=b;o+=1){var c=a.get(o)||new Set;c.forEach(function(l){var s=l.key,w=l.node,D=l.children,C=D===void 0?[]:D;!d.has(s)&&!m.has(s)&&!u(w)&&C.filter(function(v){return!u(v.node)}).forEach(function(v){d.delete(v.key)})})}m=new Set;for(var f=new Set,i=b;i>=0;i-=1){var t=a.get(i)||new Set;t.forEach(function(l){var s=l.parent,w=l.node;if(u(w)||!l.parent||f.has(l.parent.key))return;if(u(l.parent.node)){f.add(s.key);return}var D=!0,C=!1;(s.children||[]).filter(function(v){return!u(v.node)}).forEach(function(v){var n=v.key,_=d.has(n);D&&!_&&(D=!1),!C&&(_||m.has(n))&&(C=!0)}),D||d.delete(s.key),C&&m.add(s.key),f.add(s.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(W(m,d))}}function R(M,p,a,b){var u=[],d;b?d=b:d=k;var m=new Set(M.filter(function(i){var t=!!a[i];return t||u.push(i),t})),o=new Map,c=0;Object.keys(a).forEach(function(i){var t=a[i],l=t.level,s=o.get(l);s||(s=new Set,o.set(l,s)),s.add(t),c=Math.max(c,l)}),Object(Q.a)(!u.length,"Tree missing follow keys: ".concat(u.slice(0,100).map(function(i){return"'".concat(i,"'")}).join(", ")));var f;return p===!0?f=B(m,o,c,d):f=O(m,p.halfCheckedKeys,o,c,d),f}},O2Wb:function(Ge,re,y){Ge.exports={flex:"flex___2gmSR",flex1:"flex1___3Tu1g",color666:"color666___2uyGL",error:"error___yJ86W",deleteIcon:"deleteIcon___1D2tg",addIcon:"addIcon___2VIYB"}},OLES:function(Ge,re,y){"use strict";var Q=y("U8pU"),W=y("VTBJ"),k=y("Ff2n"),B=y("q1tI"),O=y("uciX"),R=y("7ixt"),M=function(m){var o=m.overlay,c=m.prefixCls,f=m.id,i=m.overlayInnerStyle;return B.createElement("div",{className:"".concat(c,"-inner"),id:f,role:"tooltip",style:i},typeof o=="function"?o():o)},p=M,a=function(m,o){var c=m.overlayClassName,f=m.trigger,i=f===void 0?["hover"]:f,t=m.mouseEnterDelay,l=t===void 0?0:t,s=m.mouseLeaveDelay,w=s===void 0?.1:s,D=m.overlayStyle,C=m.prefixCls,v=C===void 0?"rc-tooltip":C,n=m.children,_=m.onVisibleChange,h=m.afterVisibleChange,g=m.transitionName,x=m.animation,T=m.placement,S=T===void 0?"right":T,E=m.align,U=E===void 0?{}:E,F=m.destroyTooltipOnHide,P=F===void 0?!1:F,H=m.defaultVisible,N=m.getTooltipContainer,A=m.overlayInnerStyle,G=Object(k.a)(m,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),K=Object(B.useRef)(null);Object(B.useImperativeHandle)(o,function(){return K.current});var $=Object(W.a)({},G);"visible"in m&&($.popupVisible=m.visible);var ie=function(){var et=m.arrowContent,je=et===void 0?null:et,me=m.overlay,fe=m.id;return[B.createElement("div",{className:"".concat(v,"-arrow"),key:"arrow"},je),B.createElement(p,{key:"content",prefixCls:v,id:fe,overlay:me,overlayInnerStyle:A})]},le=!1,de=!1;if(typeof P=="boolean")le=P;else if(P&&Object(Q.a)(P)==="object"){var Se=P.keepParent;le=Se===!0,de=Se===!1}return B.createElement(O.a,Object.assign({popupClassName:c,prefixCls:v,popup:ie,action:i,builtinPlacements:R.a,popupPlacement:S,ref:K,popupAlign:U,getPopupContainer:N,onPopupVisibleChange:_,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:x,defaultPopupVisible:H,destroyPopupOnHide:le,autoDestroy:de,mouseLeaveDelay:w,popupStyle:D,mouseEnterDelay:l},$),n)},b=Object(B.forwardRef)(a),u=re.a=b},OS9S:function(Ge,re,y){var Q=y("bYtY"),W=Q.inherits,k=y("Gev7"),B=y("mFDi");function O(p){k.call(this,p),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}O.prototype.incremental=!0,O.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},O.prototype.addDisplayable=function(p,a){a?this._temporaryDisplayables.push(p):this._displayables.push(p),this.dirty()},O.prototype.addDisplayables=function(p,a){a=a||!1;for(var b=0;b=0&&n.splice(_,1),n}function u(C,v){var n=C.slice();return n.indexOf(v)===-1&&n.push(v),n}function d(C){return C.split("-")}function m(C,v){return"".concat(C,"-").concat(v)}function o(C){return C&&C.type&&C.type.isTreeNode}function c(C,v){var n=[C],_=v[C];function h(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];g.forEach(function(x){var T=x.key,S=x.children;n.push(T),h(S)})}return h(_.children),n}function f(C,v){var n=C.clientY,_=v.selectHandle.getBoundingClientRect(),h=_.top,g=_.bottom,x=_.height,T=Math.max(x*p,a);return n<=h+T?-1:n>=g-T?1:0}function i(C,v){if(!C)return;var n=v.multiple;return n?C.slice():C.length?[C[0]]:C}var t=function(v){return v};function l(C,v){if(!C)return[];var n=v||{},_=n.processProps,h=_===void 0?t:_,g=Array.isArray(C)?C:[C];return g.map(function(x){var T=x.children,S=Object(k.a)(x,["children"]),E=l(T,v);return O.a.createElement(M.a,Object.assign({},h(S)),E)})}function s(C){if(!C)return null;var v;if(Array.isArray(C))v={checkedKeys:C,halfCheckedKeys:void 0};else if(Object(W.a)(C)==="object")v={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return Object(R.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function w(C,v){var n=new Set;function _(h){if(n.has(h))return;var g=v[h];if(!g)return;n.add(h);var x=g.parent,T=g.node;if(T.disabled)return;x&&_(x.key)}return(C||[]).forEach(function(h){_(h)}),Object(Q.a)(n)}function D(C){var v={};return Object.keys(C).forEach(function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(v[n]=C[n])}),v}},Ohmc:function(Ge,re,y){Ge.exports=y.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(Ge,re,y){"use strict";var Q=y("2qtc"),W=y("kLXV"),k=y("rAM+"),B=y("miYZ"),O=y("tsqr"),R=y("9og8"),M=y("tJVT"),p=y("jrin"),a=y("WmNS"),b=y.n(a),u=y("q1tI"),d=y.n(u),m=y("VrN/"),o=y.n(m),c=y("bdgK"),f=y("p77/"),i=y("Bd2K"),t=y("ELLl"),l=y("19Vz"),s=y("lZu9"),w=y("+NIl"),D=y("kSUc"),C=y("9Bee"),v=function(qe){var Lt=qe.value,nn=Lt===void 0?"":Lt,$n=qe.className,ta=qe.showTextOnly,Sa=qe.showLines,_n=qe.style,Bt=_n===void 0?{}:_n,mn=Object(u.useMemo)(function(){return""},[nn]);return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{dangerouslySetInnerHTML:{__html:mn}}))},n=y("0Owb"),_=y("dejd"),h=y("C+DQ"),g=y("1vsH"),x=y("m3rI"),T=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function S(qe){var Lt=qe.onActionCallback,nn=qe.title,$n=qe.icon,ta=qe.actionName,Sa=qe.className,_n=Sa===void 0?"":Sa,Bt=qe.children;function mn(){Lt(ta)}return d.a.createElement("a",{title:nn,className:_n,onClick:mn},d.a.createElement("i",{className:"md-iconfont ".concat($n)}),Bt)}var E=function(qe){var Lt=qe.watch,nn=qe.showNullButton,$n=qe.onActionCallback,ta=qe.fullScreen,Sa=qe.insertTemp,_n=qe.hidetoolBar,Bt=qe.uuid,mn=qe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(g.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(g.F)("_educoder_session"),"&key=").concat(Bt,"&api=").concat(encodeURIComponent(x.a.PROXY_SERVER)));var Gt=[].concat(T,[{title:"".concat(Lt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Lt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return d.a.createElement("ul",{className:"markdown-toolbar-container"},!_n&&Gt.map(function(ze,ct){return d.a.createElement("li",{key:ct},ze.actionName?d.a.createElement(S,Object(n.a)({},ze,{onActionCallback:$n})):d.a.createElement("span",{className:"v-line"}))}),nn?d.a.createElement("li",null,d.a.createElement(S,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$n},d.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Sa&&d.a.createElement("li",null,d.a.createElement(S,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Sa),onActionCallback:$n},d.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),d.a.createElement("li",{className:"btn-full-screen"},d.a.createElement(S,{icon:"".concat(ta?"icon-shrink":"icon-enlarge"),title:ta?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:$n})))},U=y("M8RZ"),F=y("+L6B"),P=y("2/Rp"),H=y("y8nQ"),N=y("Vl3Y"),A=y("5NDa"),G=y("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},$=function(qe){var Lt=qe.callback,nn=qe.onCancel;function $n(ta){Lt(ta)}return d.a.createElement(N.a,Object(n.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$n}),d.a.createElement(N.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},d.a.createElement(G.a,null)),d.a.createElement(N.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},d.a.createElement(G.a,null)),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(P.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(P.a,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},ie=y("7ahc"),le=y("HmJG"),de=y("BjJ7"),Se=N.a.useForm,He={width:280,marginRight:10},et={labelCol:{span:5},wrapperCol:{span:19}},je=function(qe){var Lt=qe.callback,nn=qe.onCancel,$n=Se(),ta=Object(M.a)($n,1),Sa=ta[0];function _n(Gt){Lt(Gt)}function Bt(Gt,ze){if(Gt.status===-1){O.b.error(Gt.message);return}Sa.setFieldsValue({src:"/api/attachments/".concat(Gt.id),type:ze.type})}function mn(Gt){var ze=Gt.target.files[0];fe(ze,Bt)}return d.a.createElement(N.a,Object(n.a)({form:Sa},et,{className:"upload-image-panel",onFinish:_n}),d.a.createElement(N.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},d.a.createElement("div",{className:"flex-container"},d.a.createElement(N.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},d.a.createElement(G.a,{style:He})),d.a.createElement(me,{onFileChange:mn}))),d.a.createElement(N.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},d.a.createElement(G.a,{style:{width:264}})),d.a.createElement(N.a.Item,{style:{textAlign:"right"}},d.a.createElement(P.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(P.a,{type:"ghost",onClick:nn},"\u53D6\u6D88")))};function me(qe){var Lt=qe.onFileChange;return d.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",d.a.createElement("input",{type:"file",onChange:Lt}))}function fe(qe,Lt){if(!qe)throw new String("\u6CA1\u6709\u6587\u4EF6");var nn=new FormData;nn.append("editormd-image-file",qe),nn.append("file_param_name","editormd-image-file"),nn.append("byxhr","true");var $n=new window.XMLHttpRequest;$n.withCredentials=!0,$n.addEventListener("load",function(ta){Lt(JSON.parse(ta.target.responseText),qe)},!1),$n.addEventListener("error",function(ta){console.error(ta)},!1),$n.open("POST","".concat(de.a,"/api/attachments.json")),$n.send(nn)}var Ae=y("giR+"),he=y("fyUT"),Ue=y("7Kak"),st=y("9yH6"),Ve=st.a.Group,dt={margin:"0 8px"},Qe=function(qe){var Lt=qe.callback,nn=qe.onCancel;function $n(ta){Lt(ta)}return d.a.createElement(N.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$n},d.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},d.a.createElement("span",{style:dt},"\u5355\u5143\u683C\u6570\uFF1A"),d.a.createElement("span",{style:dt},"\u884C\u6570"),d.a.createElement(N.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},d.a.createElement(he.a,null)),d.a.createElement("span",{style:dt},"\u5217\u6570"),d.a.createElement(N.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},d.a.createElement(he.a,null))),d.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},d.a.createElement("span",{style:dt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),d.a.createElement(N.a.Item,{name:"align"},d.a.createElement(Ve,null,d.a.createElement(st.a,{value:"default"},d.a.createElement("i",{className:"fa fa-align-justify"})),d.a.createElement(st.a,{value:"left"},d.a.createElement("i",{className:"fa fa-align-left"})),d.a.createElement(st.a,{value:"center"},d.a.createElement("i",{className:"fa fa-align-center"})),d.a.createElement(st.a,{value:"right"},d.a.createElement("i",{className:"fa fa-align-right"}))))),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(P.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(P.a,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},pe=y("ErOA"),xe=y("7Cbv"),Le="link",Ye="upload-image",gt="code-block",Ct="add-table",tn="------------",Zt={default:tn,left:":".concat(tn),center:":".concat(tn,":"),right:"".concat(tn,":")},Hn=y("9VGf"),ia,mt;function pt(){}var on=0,hn=1e4,Ot="\u2581",Xt=` +`),i=this._stacks.get(f)||0;if(this._stacks.set(f,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=c*.5;let t,l=0;for(const[s,w]of this._stacks)(!t||l{const t=this._stacks.get(f)||0;this._stacks.set(f,t-1)}}}class a{constructor(o){var c;this._disposed=!1,this._options=o,this._leakageMon=M>0?new p(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((c=this._options)===null||c===void 0?void 0:c._profName)?new R(this._options._profName):void 0}get event(){return this._event||(this._event=(o,c,f)=>{var i;this._listeners||(this._listeners=new k.a);const t=this._listeners.isEmpty();t&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const l=this._listeners.push(c?[o,c]:o);t&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,o,c);const s=(i=this._leakageMon)===null||i===void 0?void 0:i.check(this._listeners.size),w=Object(W.i)(()=>{if(s&&s(),!this._disposed&&(l(),this._options&&this._options.onLastListenerRemove)){const D=this._listeners&&!this._listeners.isEmpty();D||this._options.onLastListenerRemove(this)}});return f instanceof W.b?f.add(w):Array.isArray(f)&&f.push(w),w}),this._event}fire(o){var c,f;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new k.a);for(let i of this._listeners)this._deliveryQueue.push([i,o]);for((c=this._perfMon)===null||c===void 0||c.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[i,t]=this._deliveryQueue.shift();try{typeof i=="function"?i.call(void 0,t):i[0].call(i[1],t)}catch(l){Object(Q.f)(l)}}(f=this._perfMon)===null||f===void 0||f.stop()}}dispose(){var o,c,f,i,t;this._disposed||(this._disposed=!0,(o=this._listeners)===null||o===void 0||o.clear(),(c=this._deliveryQueue)===null||c===void 0||c.clear(),(i=(f=this._options)===null||f===void 0?void 0:f.onLastListenerRemove)===null||i===void 0||i.call(f),(t=this._leakageMon)===null||t===void 0||t.dispose())}}class b extends a{constructor(o){super(o);this._isPaused=0,this._eventQueue=new k.a,this._mergeFn=o==null?void 0:o.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const o=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(o))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(o){this._listeners&&(this._isPaused!==0?this._eventQueue.push(o):super.fire(o))}}class u extends b{constructor(o){var c;super(o);this._delay=(c=o.delay)!==null&&c!==void 0?c:100}fire(o){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(o)}}class d{constructor(){this.buffers=[]}wrapEvent(o){return(c,f,i)=>o(t=>{const l=this.buffers[this.buffers.length-1];l?l.push(()=>c.call(f,t)):c.call(f,t)},void 0,i)}bufferEvents(o){const c=[];this.buffers.push(c);const f=o();return this.buffers.pop(),c.forEach(i=>i()),f}}class m{constructor(){this.listening=!1,this.inputEvent=O.None,this.inputEventListener=W.a.None,this.emitter=new a({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(o){this.inputEvent=o,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=o(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MKOG:function(Ge,re,y){var Q=y("bYtY"),W=y("YH21"),k=W.Dispatcher,B=y("mLcG"),O=y("Bq2U"),R=function(p){p=p||{},this.stage=p.stage||{},this.onframe=p.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,k.call(this)};R.prototype={constructor:R,addClip:function(p){this._clips.push(p)},addAnimator:function(p){p.animation=this;for(var a=p.getClips(),b=0;b=0&&this._clips.splice(a,1)},removeAnimator:function(p){for(var a=p.getClips(),b=0;b=0,R=c.indexOf("Macintosh")>=0,u=(c.indexOf("Macintosh")>=0||c.indexOf("iPad")>=0||c.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,M=c.indexOf("Linux")>=0,b=!0,d=navigator.language,m=d;else if(typeof i=="object"){O=i.platform==="win32",R=i.platform==="darwin",M=i.platform==="linux",p=M&&!!i.env.SNAP&&!!i.env.SNAP_REVISION,d=B,m=B;const E=i.env.VSCODE_NLS_CONFIG;if(E)try{const U=JSON.parse(E),F=U.availableLanguages["*"];d=U.locale,m=F||B,o=U._translationsConfigFile}catch(U){}a=!0}else console.error("Unable to resolve platform.");let l=0;R?l=1:O?l=3:M&&(l=2);const s=O,w=R,D=M,C=a,v=b,n=u,_=c,h=function(){if(f.setImmediate)return f.setImmediate.bind(f);if(typeof f.postMessage=="function"&&!f.importScripts){let F=[];f.addEventListener("message",H=>{if(H.data&&H.data.vscodeSetImmediateId)for(let N=0,A=F.length;N{const N=++P;F.push({id:N,callback:H}),f.postMessage({vscodeSetImmediateId:N},"*")}}if(typeof(i==null?void 0:i.nextTick)=="function")return i.nextTick.bind(i);const U=Promise.resolve();return F=>U.then(F)}(),g=R||u?2:O?1:3;let x=!0,T=!1;function S(){if(!T){T=!0;const E=new Uint8Array(2);E[0]=1,E[1]=2;const U=new Uint16Array(E.buffer);x=U[0]===(2<<8)+1}return x}}).call(this,y("IyRk"),y("Q2Ig"))},N0LK:function(Ge,re,y){"use strict";y.d(re,"C",function(){return Q}),y.d(re,"v",function(){return k}),y.d(re,"s",function(){return B}),y.d(re,"t",function(){return O}),y.d(re,"U",function(){return R}),y.d(re,"J",function(){return M}),y.d(re,"O",function(){return p}),y.d(re,"p",function(){return a}),y.d(re,"T",function(){return b}),y.d(re,"q",function(){return u}),y.d(re,"N",function(){return d}),y.d(re,"M",function(){return m}),y.d(re,"Q",function(){return o}),y.d(re,"u",function(){return c}),y.d(re,"x",function(){return f}),y.d(re,"I",function(){return i}),y.d(re,"f",function(){return t}),y.d(re,"h",function(){return l}),y.d(re,"g",function(){return s}),y.d(re,"i",function(){return w}),y.d(re,"G",function(){return D}),y.d(re,"H",function(){return C}),y.d(re,"r",function(){return v}),y.d(re,"R",function(){return n}),y.d(re,"d",function(){return _}),y.d(re,"e",function(){return h}),y.d(re,"E",function(){return g}),y.d(re,"F",function(){return x}),y.d(re,"j",function(){return T}),y.d(re,"z",function(){return S}),y.d(re,"K",function(){return U}),y.d(re,"L",function(){return F}),y.d(re,"m",function(){return H}),y.d(re,"k",function(){return A}),y.d(re,"A",function(){return K}),y.d(re,"a",function(){return $}),y.d(re,"n",function(){return ie}),y.d(re,"l",function(){return le}),y.d(re,"D",function(){return de}),y.d(re,"B",function(){return Se}),y.d(re,"b",function(){return He}),y.d(re,"S",function(){return et}),y.d(re,"o",function(){return je}),y.d(re,"P",function(){return me}),y.d(re,"w",function(){return fe}),y.d(re,"c",function(){return Ae}),y.d(re,"y",function(){return st});function Q(pe){return!pe||typeof pe!="string"?!0:pe.trim().length===0}const W=/{(\d+)}/g;function k(pe,...xe){return xe.length===0?pe:pe.replace(W,function(Le,Ye){const gt=parseInt(Ye,10);return isNaN(gt)||gt<0||gt>=xe.length?Le:xe[gt]})}function B(pe){return pe.replace(/[<>&]/g,function(xe){switch(xe){case"<":return"<";case">":return">";case"&":return"&";default:return xe}})}function O(pe){return pe.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function R(pe,xe=" "){const Le=M(pe,xe);return p(Le,xe)}function M(pe,xe){if(!pe||!xe)return pe;const Le=xe.length;if(Le===0||pe.length===0)return pe;let Ye=0;for(;pe.indexOf(xe,Ye)===Ye;)Ye=Ye+Le;return pe.substring(Ye)}function p(pe,xe){if(!pe||!xe)return pe;const Le=xe.length,Ye=pe.length;if(Le===0||Ye===0)return pe;let gt=Ye,Ct=-1;for(;!(Ct=pe.lastIndexOf(xe,gt-1),Ct===-1||Ct+Le!==gt);){if(Ct===0)return"";gt=Ct}return pe.substring(0,gt)}function a(pe){return pe.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function b(pe){return pe.replace(/\*/g,"")}function u(pe,xe,Le={}){if(!pe)throw new Error("Cannot create regex from empty string");xe||(pe=O(pe)),Le.wholeWord&&(/\B/.test(pe.charAt(0))||(pe="\\b"+pe),/\B/.test(pe.charAt(pe.length-1))||(pe=pe+"\\b"));let Ye="";return Le.global&&(Ye+="g"),Le.matchCase||(Ye+="i"),Le.multiline&&(Ye+="m"),Le.unicode&&(Ye+="u"),new RegExp(pe,Ye)}function d(pe){if(pe.source==="^"||pe.source==="^$"||pe.source==="$"||pe.source==="^\\s*$")return!1;const xe=pe.exec("");return!!(xe&&pe.lastIndex===0)}function m(pe){return(pe.global?"g":"")+(pe.ignoreCase?"i":"")+(pe.multiline?"m":"")+(pe.unicode?"u":"")}function o(pe){return pe.split(/\r\n|\r|\n/)}function c(pe){for(let xe=0,Le=pe.length;xe=0;Le--){const Ye=pe.charCodeAt(Le);if(Ye!==32&&Ye!==9)return Le}return-1}function t(pe,xe){return pexe?1:0}function l(pe,xe,Le=0,Ye=pe.length,gt=0,Ct=xe.length){for(;Leia)return 1}const tn=Ye-Le,Zt=Ct-gt;return tnZt?1:0}function s(pe,xe){return w(pe,xe,0,pe.length,0,xe.length)}function w(pe,xe,Le=0,Ye=pe.length,gt=0,Ct=xe.length){for(;Le=128||ia>=128)return l(pe.toLowerCase(),xe.toLowerCase(),Le,Ye,gt,Ct);D(Hn)&&(Hn-=32),D(ia)&&(ia-=32);const vt=Hn-ia;if(vt===0)continue;return vt}const tn=Ye-Le,Zt=Ct-gt;return tnZt?1:0}function D(pe){return pe>=97&&pe<=122}function C(pe){return pe>=65&&pe<=90}function v(pe,xe){return pe.length===xe.length&&w(pe,xe)===0}function n(pe,xe){const Le=xe.length;return xe.length>pe.length?!1:w(pe,xe,0,Le)===0}function _(pe,xe){let Le,Ye=Math.min(pe.length,xe.length);for(Le=0;Le1){const Ye=pe.charCodeAt(xe-2);if(g(Ye))return T(Ye,Le)}return Le}function U(pe,xe){const Le=he.getInstance(),Ye=xe,gt=pe.length,Ct=S(pe,gt,xe);xe+=Ct>=65536?2:1;let tn=Le.getGraphemeBreakType(Ct);for(;xe=65536?2:1,tn=Hn}return xe-Ye}function F(pe,xe){const Le=he.getInstance(),Ye=xe,gt=E(pe,xe);xe-=gt>=65536?2:1;let Ct=Le.getGraphemeBreakType(gt);for(;xe>0;){const tn=E(pe,xe),Zt=Le.getGraphemeBreakType(tn);if(Ae(Zt,Ct))break;xe-=tn>=65536?2:1,Ct=Zt}return Ye-xe}const P=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function H(pe){return P.test(pe)}const N=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function A(pe){return N.test(pe)}const G=/^[\t\n\r\x20-\x7E]*$/;function K(pe){return G.test(pe)}const $=/[\u2028\u2029]/;function ie(pe){return $.test(pe)}function le(pe){for(let xe=0,Le=pe.length;xe=11904&&pe<=55215||pe>=63744&&pe<=64255||pe>=65281&&pe<=65374}function Se(pe){return pe>=127462&&pe<=127487||pe===8986||pe===8987||pe===9200||pe===9203||pe>=9728&&pe<=10175||pe===11088||pe===11093||pe>=127744&&pe<=128591||pe>=128640&&pe<=128764||pe>=128992&&pe<=129003||pe>=129280&&pe<=129535||pe>=129648&&pe<=129750}const He=String.fromCharCode(65279);function et(pe){return!!(pe&&pe.length>0&&pe.charCodeAt(0)===65279)}function je(pe,xe=!1){return pe?(xe&&(pe=pe.replace(/\\./g,"")),pe.toLowerCase()!==pe):!1}function me(pe){const xe=90-65+1;return pe=pe%(2*xe),pexe[3*Ye+1])Ye=2*Ye+1;else return xe[3*Ye+2];return 0}}he._INSTANCE=null;function Ue(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function st(pe,xe){if(pe===0)return 0;const Le=Ve(pe,xe);if(Le!==void 0)return Le;const Ye=E(xe,pe);return pe-=dt(Ye),pe}function Ve(pe,xe){let Le=E(xe,pe);for(pe-=dt(Le);Qe(Le)||Le===65039||Le===8419;){if(pe===0)return;Le=E(xe,pe),pe-=dt(Le)}if(!Se(Le))return;if(pe>=0){const Ye=E(xe,pe);Ye===8205&&(pe-=dt(Ye))}return pe}function dt(pe){return pe>=65536?2:1}function Qe(pe){return 127995<=pe&&pe<=127999}},NC18:function(Ge,re,y){var Q=y("y+Vt"),W=y("IMiH"),k=y("7oTu"),B=Math.sqrt,O=Math.sin,R=Math.cos,M=Math.PI,p=function(l){return Math.sqrt(l[0]*l[0]+l[1]*l[1])},a=function(l,s){return(l[0]*s[0]+l[1]*s[1])/(p(l)*p(s))},b=function(l,s){return(l[0]*s[1]1&&(n*=B(U),_*=B(U));var F=(C===v?-1:1)*B((n*n*(_*_)-n*n*(E*E)-_*_*(S*S))/(n*n*(E*E)+_*_*(S*S)))||0,P=F*n*E/_,H=F*-_*S/n,N=(l+w)/2+R(T)*P-O(T)*H,A=(s+D)/2+O(T)*P+R(T)*H,G=b([1,0],[(S-P)/n,(E-H)/_]),K=[(S-P)/n,(E-H)/_],$=[(-1*S-P)/n,(-1*E-H)/_],ie=b(K,$);a(K,$)<=-1&&(ie=M),a(K,$)>=1&&(ie=0),v===0&&ie>0&&(ie=ie-2*M),v===1&&ie<0&&(ie=ie+2*M),x.addData(g,N,A,n,_,G,ie,T,v)}var d=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,m=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function o(l){if(!l)return new W;for(var s=0,w=0,D=s,C=w,v,n=new W,_=W.CMD,h=l.match(d),g=0;g1&&arguments[1]!==void 0?arguments[1]:60,O=null;return function(){for(var R=this,M=arguments.length,p=new Array(M),a=0;a=0;f-=1){var i=p.get(f)||new Set;i.forEach(function(t){var l=t.parent,s=t.node;if(b(s)||!t.parent||c.has(t.parent.key))return;if(b(t.parent.node)){c.add(l.key);return}var w=!0,D=!1;(l.children||[]).filter(function(C){return!b(C.node)}).forEach(function(C){var v=C.key,n=u.has(v);w&&!n&&(w=!1),!D&&(n||d.has(v))&&(D=!0)}),w&&u.add(l.key),D&&d.add(l.key),c.add(l.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(W(d,u))}}function O(M,p,a,b,u){for(var d=new Set(M),m=new Set(p),o=0;o<=b;o+=1){var c=a.get(o)||new Set;c.forEach(function(l){var s=l.key,w=l.node,D=l.children,C=D===void 0?[]:D;!d.has(s)&&!m.has(s)&&!u(w)&&C.filter(function(v){return!u(v.node)}).forEach(function(v){d.delete(v.key)})})}m=new Set;for(var f=new Set,i=b;i>=0;i-=1){var t=a.get(i)||new Set;t.forEach(function(l){var s=l.parent,w=l.node;if(u(w)||!l.parent||f.has(l.parent.key))return;if(u(l.parent.node)){f.add(s.key);return}var D=!0,C=!1;(s.children||[]).filter(function(v){return!u(v.node)}).forEach(function(v){var n=v.key,_=d.has(n);D&&!_&&(D=!1),!C&&(_||m.has(n))&&(C=!0)}),D||d.delete(s.key),C&&m.add(s.key),f.add(s.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(W(m,d))}}function R(M,p,a,b){var u=[],d;b?d=b:d=k;var m=new Set(M.filter(function(i){var t=!!a[i];return t||u.push(i),t})),o=new Map,c=0;Object.keys(a).forEach(function(i){var t=a[i],l=t.level,s=o.get(l);s||(s=new Set,o.set(l,s)),s.add(t),c=Math.max(c,l)}),Object(Q.a)(!u.length,"Tree missing follow keys: ".concat(u.slice(0,100).map(function(i){return"'".concat(i,"'")}).join(", ")));var f;return p===!0?f=B(m,o,c,d):f=O(m,p.halfCheckedKeys,o,c,d),f}},O2Wb:function(Ge,re,y){Ge.exports={flex:"flex___2gmSR",flex1:"flex1___3Tu1g",color666:"color666___2uyGL",error:"error___yJ86W",deleteIcon:"deleteIcon___1D2tg",addIcon:"addIcon___2VIYB"}},OLES:function(Ge,re,y){"use strict";var Q=y("U8pU"),W=y("VTBJ"),k=y("Ff2n"),B=y("q1tI"),O=y("uciX"),R=y("7ixt"),M=function(m){var o=m.overlay,c=m.prefixCls,f=m.id,i=m.overlayInnerStyle;return B.createElement("div",{className:"".concat(c,"-inner"),id:f,role:"tooltip",style:i},typeof o=="function"?o():o)},p=M,a=function(m,o){var c=m.overlayClassName,f=m.trigger,i=f===void 0?["hover"]:f,t=m.mouseEnterDelay,l=t===void 0?0:t,s=m.mouseLeaveDelay,w=s===void 0?.1:s,D=m.overlayStyle,C=m.prefixCls,v=C===void 0?"rc-tooltip":C,n=m.children,_=m.onVisibleChange,h=m.afterVisibleChange,g=m.transitionName,x=m.animation,T=m.placement,S=T===void 0?"right":T,E=m.align,U=E===void 0?{}:E,F=m.destroyTooltipOnHide,P=F===void 0?!1:F,H=m.defaultVisible,N=m.getTooltipContainer,A=m.overlayInnerStyle,G=Object(k.a)(m,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),K=Object(B.useRef)(null);Object(B.useImperativeHandle)(o,function(){return K.current});var $=Object(W.a)({},G);"visible"in m&&($.popupVisible=m.visible);var ie=function(){var et=m.arrowContent,je=et===void 0?null:et,me=m.overlay,fe=m.id;return[B.createElement("div",{className:"".concat(v,"-arrow"),key:"arrow"},je),B.createElement(p,{key:"content",prefixCls:v,id:fe,overlay:me,overlayInnerStyle:A})]},le=!1,de=!1;if(typeof P=="boolean")le=P;else if(P&&Object(Q.a)(P)==="object"){var Se=P.keepParent;le=Se===!0,de=Se===!1}return B.createElement(O.a,Object.assign({popupClassName:c,prefixCls:v,popup:ie,action:i,builtinPlacements:R.a,popupPlacement:S,ref:K,popupAlign:U,getPopupContainer:N,onPopupVisibleChange:_,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:x,defaultPopupVisible:H,destroyPopupOnHide:le,autoDestroy:de,mouseLeaveDelay:w,popupStyle:D,mouseEnterDelay:l},$),n)},b=Object(B.forwardRef)(a),u=re.a=b},OS9S:function(Ge,re,y){var Q=y("bYtY"),W=Q.inherits,k=y("Gev7"),B=y("mFDi");function O(p){k.call(this,p),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}O.prototype.incremental=!0,O.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},O.prototype.addDisplayable=function(p,a){a?this._temporaryDisplayables.push(p):this._displayables.push(p),this.dirty()},O.prototype.addDisplayables=function(p,a){a=a||!1;for(var b=0;b=0&&n.splice(_,1),n}function u(C,v){var n=C.slice();return n.indexOf(v)===-1&&n.push(v),n}function d(C){return C.split("-")}function m(C,v){return"".concat(C,"-").concat(v)}function o(C){return C&&C.type&&C.type.isTreeNode}function c(C,v){var n=[C],_=v[C];function h(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];g.forEach(function(x){var T=x.key,S=x.children;n.push(T),h(S)})}return h(_.children),n}function f(C,v){var n=C.clientY,_=v.selectHandle.getBoundingClientRect(),h=_.top,g=_.bottom,x=_.height,T=Math.max(x*p,a);return n<=h+T?-1:n>=g-T?1:0}function i(C,v){if(!C)return;var n=v.multiple;return n?C.slice():C.length?[C[0]]:C}var t=function(v){return v};function l(C,v){if(!C)return[];var n=v||{},_=n.processProps,h=_===void 0?t:_,g=Array.isArray(C)?C:[C];return g.map(function(x){var T=x.children,S=Object(k.a)(x,["children"]),E=l(T,v);return O.a.createElement(M.a,Object.assign({},h(S)),E)})}function s(C){if(!C)return null;var v;if(Array.isArray(C))v={checkedKeys:C,halfCheckedKeys:void 0};else if(Object(W.a)(C)==="object")v={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return Object(R.a)(!1,"`checkedKeys` is not an array or an object"),null;return v}function w(C,v){var n=new Set;function _(h){if(n.has(h))return;var g=v[h];if(!g)return;n.add(h);var x=g.parent,T=g.node;if(T.disabled)return;x&&_(x.key)}return(C||[]).forEach(function(h){_(h)}),Object(Q.a)(n)}function D(C){var v={};return Object.keys(C).forEach(function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(v[n]=C[n])}),v}},Ohmc:function(Ge,re,y){Ge.exports=y.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(Ge,re,y){"use strict";var Q=y("2qtc"),W=y("kLXV"),k=y("rAM+"),B=y("miYZ"),O=y("tsqr"),R=y("9og8"),M=y("tJVT"),p=y("jrin"),a=y("WmNS"),b=y.n(a),u=y("q1tI"),d=y.n(u),m=y("VrN/"),o=y.n(m),c=y("bdgK"),f=y("p77/"),i=y("Bd2K"),t=y("ELLl"),l=y("19Vz"),s=y("lZu9"),w=y("+NIl"),D=y("kSUc"),C=y("9Bee"),v=function(qe){var Lt=qe.value,nn=Lt===void 0?"":Lt,$n=qe.className,ta=qe.showTextOnly,Sa=qe.showLines,_n=qe.style,Bt=_n===void 0?{}:_n,mn=Object(u.useMemo)(function(){return""},[nn]);return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{dangerouslySetInnerHTML:{__html:mn}}))},n=y("0Owb"),_=y("dejd"),h=y("C+DQ"),g=y("1vsH"),x=y("m3rI"),T=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function S(qe){var Lt=qe.onActionCallback,nn=qe.title,$n=qe.icon,ta=qe.actionName,Sa=qe.className,_n=Sa===void 0?"":Sa,Bt=qe.children;function mn(){Lt(ta)}return d.a.createElement("a",{title:nn,className:_n,onClick:mn},d.a.createElement("i",{className:"md-iconfont ".concat($n)}),Bt)}var E=function(qe){var Lt=qe.watch,nn=qe.showNullButton,$n=qe.onActionCallback,ta=qe.fullScreen,Sa=qe.insertTemp,_n=qe.hidetoolBar,Bt=qe.uuid,mn=qe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(g.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(g.F)("_educoder_session"),"&key=").concat(Bt,"&api=").concat(encodeURIComponent(x.a.PROXY_SERVER)));var Gt=[].concat(T,[{title:"".concat(Lt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Lt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return d.a.createElement("ul",{className:"markdown-toolbar-container"},!_n&&Gt.map(function(ze,ct){return d.a.createElement("li",{key:ct},ze.actionName?d.a.createElement(S,Object(n.a)({},ze,{onActionCallback:$n})):d.a.createElement("span",{className:"v-line"}))}),nn?d.a.createElement("li",null,d.a.createElement(S,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$n},d.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Sa&&d.a.createElement("li",null,d.a.createElement(S,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Sa),onActionCallback:$n},d.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),d.a.createElement("li",{className:"btn-full-screen"},d.a.createElement(S,{icon:"".concat(ta?"icon-shrink":"icon-enlarge"),title:ta?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:$n})))},U=y("M8RZ"),F=y("+L6B"),P=y("2/Rp"),H=y("y8nQ"),N=y("Vl3Y"),A=y("5NDa"),G=y("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},$=function(qe){var Lt=qe.callback,nn=qe.onCancel;function $n(ta){Lt(ta)}return d.a.createElement(N.a,Object(n.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$n}),d.a.createElement(N.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},d.a.createElement(G.a,null)),d.a.createElement(N.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},d.a.createElement(G.a,null)),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(P.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(P.a,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},ie=y("7ahc"),le=y("HmJG"),de=y("BjJ7"),Se=N.a.useForm,He={width:280,marginRight:10},et={labelCol:{span:5},wrapperCol:{span:19}},je=function(qe){var Lt=qe.callback,nn=qe.onCancel,$n=Se(),ta=Object(M.a)($n,1),Sa=ta[0];function _n(Gt){Lt(Gt)}function Bt(Gt,ze){if(Gt.status===-1){O.b.error(Gt.message);return}Sa.setFieldsValue({src:"/api/attachments/".concat(Gt.id),type:ze.type})}function mn(Gt){var ze=Gt.target.files[0];fe(ze,Bt)}return d.a.createElement(N.a,Object(n.a)({form:Sa},et,{className:"upload-image-panel",onFinish:_n}),d.a.createElement(N.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},d.a.createElement("div",{className:"flex-container"},d.a.createElement(N.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},d.a.createElement(G.a,{style:He})),d.a.createElement(me,{onFileChange:mn}))),d.a.createElement(N.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},d.a.createElement(G.a,{style:{width:264}})),d.a.createElement(N.a.Item,{style:{textAlign:"right"}},d.a.createElement(P.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(P.a,{type:"ghost",onClick:nn},"\u53D6\u6D88")))};function me(qe){var Lt=qe.onFileChange;return d.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",d.a.createElement("input",{type:"file",onChange:Lt}))}function fe(qe,Lt){if(!qe)throw new String("\u6CA1\u6709\u6587\u4EF6");var nn=new FormData;nn.append("editormd-image-file",qe),nn.append("file_param_name","editormd-image-file"),nn.append("byxhr","true");var $n=new window.XMLHttpRequest;$n.withCredentials=!0,$n.addEventListener("load",function(ta){Lt(JSON.parse(ta.target.responseText),qe)},!1),$n.addEventListener("error",function(ta){console.error(ta)},!1),$n.open("POST","".concat(de.a,"/api/attachments.json")),$n.send(nn)}var Ae=y("giR+"),he=y("fyUT"),Ue=y("7Kak"),st=y("9yH6"),Ve=st.a.Group,dt={margin:"0 8px"},Qe=function(qe){var Lt=qe.callback,nn=qe.onCancel;function $n(ta){Lt(ta)}return d.a.createElement(N.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$n},d.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},d.a.createElement("span",{style:dt},"\u5355\u5143\u683C\u6570\uFF1A"),d.a.createElement("span",{style:dt},"\u884C\u6570"),d.a.createElement(N.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},d.a.createElement(he.a,null)),d.a.createElement("span",{style:dt},"\u5217\u6570"),d.a.createElement(N.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},d.a.createElement(he.a,null))),d.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},d.a.createElement("span",{style:dt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),d.a.createElement(N.a.Item,{name:"align"},d.a.createElement(Ve,null,d.a.createElement(st.a,{value:"default"},d.a.createElement("i",{className:"fa fa-align-justify"})),d.a.createElement(st.a,{value:"left"},d.a.createElement("i",{className:"fa fa-align-left"})),d.a.createElement(st.a,{value:"center"},d.a.createElement("i",{className:"fa fa-align-center"})),d.a.createElement(st.a,{value:"right"},d.a.createElement("i",{className:"fa fa-align-right"}))))),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(P.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(P.a,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},pe=y("ErOA"),xe=y("7Cbv"),Le="link",Ye="upload-image",gt="code-block",Ct="add-table",tn="------------",Zt={default:tn,left:":".concat(tn),center:":".concat(tn,":"),right:"".concat(tn,":")},Hn=y("9VGf"),ia,vt;function mt(){}var on=0,hn=1e4,Ot="\u2581",Xt=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function ht(qe){return/^\d+$/.test(qe)?"".concat(qe,"px"):qe}var Je=navigator.platform.toUpperCase().indexOf("MAC")>=0,rt=Je?"Cmd":"Ctrl",Te=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Me=(ia={},Object(p.a)(ia,rt+"-B","bold"),Object(p.a)(ia,rt+"-I","italic"),ia),Ie=(mt={},Object(p.a)(mt,Le,"\u6DFB\u52A0\u94FE\u63A5"),Object(p.a)(mt,gt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(p.a)(mt,Ye,"\u6DFB\u52A0\u6587\u4EF6"),Object(p.a)(mt,Ct,"\u6DFB\u52A0\u8868\u683C"),mt),be=re.a=function(qe){var Lt=qe.defaultValue,nn=Lt===void 0?"":Lt,$n=qe.onChange,ta=qe.width,Sa=ta===void 0?"100%":ta,_n=qe.height,Bt=_n===void 0?400:_n,mn=qe.miniToolbar,Gt=mn===void 0?!1:mn,ze=qe.isFocus,ct=ze===void 0?!1:ze,Sn=qe.watch,qt=qe.insertTemp,Gn=qe.mode,qn=Gn===void 0?"markdown":Gn,Mt=qe.id,Nn=Mt===void 0?"markdown-editor-id":Mt,Bn=qe.showResizeBar,na=Bn===void 0?!1:Bn,Ea=qe.noStorage,Pe=Ea===void 0?!1:Ea,ye=qe.showNullButton,J=ye===void 0?!1:ye,q=qe.hidetoolBar,Z=q===void 0?!1:q,oe=qe.fullScreen,Oe=oe===void 0?!1:oe,Re=qe.onBlur,ve=qe.onCMBeforeChange,bn=qe.onFullScreen,kt=qe.className,at=kt===void 0?"":kt,Ht=qe.disablePaste,Fe=Ht===void 0?!1:Ht,Un=qe.placeholder,Fa=Un===void 0?"":Un,fa=qe.values,ae=fa===void 0?"":fa,z=Object(u.useState)(null),Y=Object(M.a)(z,2),te=Y[0],_e=Y[1],se=Object(u.useState)(nn),ut=Object(M.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(u.useState)(Sn),dn=Object(M.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(u.useState)(Oe),gr=Object(M.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(u.useState)(""),Na=Object(M.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(u.useState)(0),An=Object(M.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(u.useState)(Bt),da=Object(M.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(u.useState)(!1),ot=Object(M.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(u.useRef)(Object(xe.a)()),Et=Object(u.useRef)(!1),jt=Object(u.useRef)(),Yt=Object(u.useRef)(),wn=Object(u.useRef)(),fn=Object(u.useRef)(),zn=Object(u.useRef)(),jn=function(){var rn=Object(R.a)(b.a.mark(function Vt(){var Dt,zt;return b.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return ln.next=2,Object(pe.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:wt.current}});case 2:zt=ln.sent,zt!=null&&(Dt=zt.attachments)!==null&&Dt!==void 0&&Dt.length&&(console.log("cm:",te,Yt),zt.attachments.map(function(Kt){Kt.content_type.indexOf("image")>-1?te.replaceSelection("![,](/api/attachments/".concat(Kt.id,"?type=").concat(Kt.content_type,")")):Kt.content_type.indexOf("video")>-1?te.replaceSelection('')):Kt.content_type.indexOf("pdf")>-1?te.replaceSelection('
').concat(Kt.name,"")):te.replaceSelection("[".concat(Kt.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(Kt.id,"?type=").concat(Kt.content_type,")"))}));case 4:case"end":return ln.stop()}},Vt)}));return function(){return rn.apply(this,arguments)}}();Object(u.useEffect)(function(){Wn(ae),te==null||te.setValue(ae)},[ae]),Object(u.useEffect)(function(){bn==null||bn(ir)},[ir]),Object(u.useEffect)(function(){if(Yt.current){var rn=o.a.fromTextArea(Yt.current,{mode:qn,lineNumbers:!Gt,lineWrapping:!0,value:nn,autoCloseTags:!0,autoCloseBrackets:!0});ct&&rn.focus();function Vt(Dt,zt){if(Fe){zt.preventDefault();return}var xt=zt.clipboardData;if(xt){var ln=xt.types.toString(),Kt=xt.items;if(ln==="Files"||xt.types.indexOf("Files")>-1){if(zt.preventDefault(),qn=="stex")return;try{var Xn,ha=Kt[1];((Xn=Kt[0])===null||Xn===void 0?void 0:Xn.kind)==="file"&&(ha=Kt[0]);var Jn=ha.getAsFile(),Aa=Jn.name.split(".").pop();fe(Jn,function(Zn){if(Zn.id){var ea,er,Ha;(Jn==null||((ea=Jn.type)===null||ea===void 0)?void 0:ea.indexOf("image"))>-1?rn.replaceSelection("![,](/api/attachments/".concat(Zn.id,"?type=").concat(Zn.content_type,")")):(Jn==null||((er=Jn.type)===null||er===void 0)?void 0:er.indexOf("video"))>-1?rn.replaceSelection('')):(Jn==null||((Ha=Jn.type)===null||Ha===void 0)?void 0:Ha.indexOf("pdf"))>-1?rn.replaceSelection('').concat(Jn.name,"")):Te.includes(Aa)?rn.replaceSelection('').concat(Jn.name,"")):rn.replaceSelection("[".concat(Jn.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(Zn.id,"?type=").concat(Zn.content_type,")"))}else(Zn==null?void 0:Zn.status)===401&&(document.location.href="/user/login")})}catch(Zn){O.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return rn.on("paste",Vt),rn.on("dragleave",function(Dt,zt){wn.current.classList.remove("mouse-hover-md")}),rn.on("dragover",function(Dt,zt){wn.current.classList.add("mouse-hover-md")}),rn.on("drop",function(Dt,zt){wn.current.classList.add("mouse-hover-md");var xt;if(xt=zt.dataTransfer.files,xt.length>0){zt.preventDefault(),zt.stopPropagation();for(var ln=function(ha){var Jn=xt[ha],Aa=Jn.name.split(".").pop();fe(Jn,function(Zn){if(Zn.id){var ea,er,Ha;(Jn==null||((ea=Jn.type)===null||ea===void 0)?void 0:ea.indexOf("image"))>-1?rn.replaceSelection("![,](/api/attachments/".concat(Zn.id,"?type=").concat(Zn.content_type,")")):(Jn==null||((er=Jn.type)===null||er===void 0)?void 0:er.indexOf("video"))>-1?rn.replaceSelection('')):(Jn==null||((Ha=Jn.type)===null||Ha===void 0)?void 0:Ha.indexOf("pdf"))>-1?rn.replaceSelection('').concat(Jn.name,"")):Te.includes(Aa)?rn.replaceSelection('').concat(Jn.name,"")):rn.replaceSelection("[".concat(Jn.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(Zn.id,"?type=").concat(Zn.content_type,")"))}else(Zn==null?void 0:Zn.status)===401&&(document.location.href="/user/login")})},Kt=0;Kt0||Kt.target.offsetWidth>0)&&($t(),te.setSize("100%","100%"),te.refresh())}}catch(Xn){xt.e(Xn)}finally{xt.f()}});return Dt.observe(Yt.current.parentElement),Dt}if(te){var Vt=rn();return function(){Vt.unobserve(Yt.current.parentElement)}}},[te,$t]),Object(u.useEffect)(function(){if(te){for(var rn=[],Vt=function(){var Kt=zt[Dt];xt=Object(M.a)(Kt,2);var Xn=xt[0],ha=xt[1],Jn=Object(p.a)({},Xn,function(){yn(ha)});rn.push(Jn),te.addKeyMap(Jn)},Dt=0,zt=Object.entries(Me);Dt0){var rn=new Date().getTime(),Vt=window.sessionStorage.getItem(Nn);rn>=aa+hn&&(!Vt||Vt!==vn)&&(window.sessionStorage.setItem(Nn,vn),ft(!0))}},hn),Object(u.useEffect)(function(){ya(Sn)},[te,Sn]),Object(u.useEffect)(function(){te&&(ct&&te.focus())},[te,ct]),Object(u.useEffect)(function(){if(Tn&&te){var rn=te.getScrollerElement();function Vt(Dt){var zt=Dt.target;if(zn.current){var xt=zt.scrollTop/zt.scrollHeight;zn.current.scrollTop=zn.current.scrollHeight*xt}}return rn.addEventListener("scroll",Vt),function(){rn.removeEventListener("scroll",Vt)}}},[te,Tn]),Object(u.useEffect)(function(){if(te&&ve){function rn(Vt,Dt){ve(Vt,Dt)}return te.on("beforeChange",rn),function(){te.off("beforeChange",rn)}}},[te,ve]),Object(u.useEffect)(function(){if(te&&Re){function rn(){Re(te.getValue())}return te.on("blur",rn),function(){te.off("blur",rn)}}},[te,Re]),Object(u.useEffect)(function(){if(te){function rn(Vt){var Dt=Vt.getValue();Wn(Dt),ra(new Date().getTime()),Vt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$n&&$n(Dt)}return te.on("change",rn),function(){te.off("change",rn)}}},[te,$n]),Object(u.useEffect)(function(){te&&(nn==null?(te.setValue(""),Wn("")):nn!==te.getValue()&&(te.setValue(nn),Wn(nn),te.setCursor(te.lineCount(),0)))},[te,nn]);var yn=Object(u.useCallback)(function(rn){var Vt=te.getCursor(),Dt=te.getSelection(),zt=Dt.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function ht(qe){return/^\d+$/.test(qe)?"".concat(qe,"px"):qe}var Je=navigator.platform.toUpperCase().indexOf("MAC")>=0,rt=Je?"Cmd":"Ctrl",Te=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Me=(ia={},Object(p.a)(ia,rt+"-B","bold"),Object(p.a)(ia,rt+"-I","italic"),ia),Ie=(vt={},Object(p.a)(vt,Le,"\u6DFB\u52A0\u94FE\u63A5"),Object(p.a)(vt,gt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(p.a)(vt,Ye,"\u6DFB\u52A0\u6587\u4EF6"),Object(p.a)(vt,Ct,"\u6DFB\u52A0\u8868\u683C"),vt),be=re.a=function(qe){var Lt=qe.defaultValue,nn=Lt===void 0?"":Lt,$n=qe.onChange,ta=qe.width,Sa=ta===void 0?"100%":ta,_n=qe.height,Bt=_n===void 0?400:_n,mn=qe.miniToolbar,Gt=mn===void 0?!1:mn,ze=qe.isFocus,ct=ze===void 0?!1:ze,Sn=qe.watch,qt=qe.insertTemp,Gn=qe.mode,qn=Gn===void 0?"markdown":Gn,Mt=qe.id,Nn=Mt===void 0?"markdown-editor-id":Mt,Bn=qe.showResizeBar,na=Bn===void 0?!1:Bn,Ea=qe.noStorage,Pe=Ea===void 0?!1:Ea,ye=qe.showNullButton,J=ye===void 0?!1:ye,q=qe.hidetoolBar,Z=q===void 0?!1:q,oe=qe.fullScreen,Oe=oe===void 0?!1:oe,Re=qe.onBlur,ve=qe.onCMBeforeChange,bn=qe.onFullScreen,kt=qe.className,at=kt===void 0?"":kt,Ht=qe.disablePaste,Fe=Ht===void 0?!1:Ht,Un=qe.placeholder,Fa=Un===void 0?"":Un,fa=qe.values,ae=fa===void 0?"":fa,z=Object(u.useState)(null),Y=Object(M.a)(z,2),te=Y[0],_e=Y[1],se=Object(u.useState)(nn),ut=Object(M.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(u.useState)(Sn),dn=Object(M.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=Object(u.useState)(Oe),gr=Object(M.a)(fr,2),ir=gr[0],Qa=gr[1],ba=Object(u.useState)(""),Na=Object(M.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=Object(u.useState)(0),An=Object(M.a)(Rt,2),aa=An[0],ra=An[1],Fn=Object(u.useState)(Bt),da=Object(M.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(u.useState)(!1),ot=Object(M.a)(ue,2),lt=ot[0],ft=ot[1],wt=Object(u.useRef)(Object(xe.a)()),Et=Object(u.useRef)(!1),jt=Object(u.useRef)(),Yt=Object(u.useRef)(),wn=Object(u.useRef)(),fn=Object(u.useRef)(),zn=Object(u.useRef)(),jn=function(){var rn=Object(R.a)(b.a.mark(function Vt(){var Dt,zt;return b.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return ln.next=2,Object(pe.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:wt.current}});case 2:zt=ln.sent,zt!=null&&(Dt=zt.attachments)!==null&&Dt!==void 0&&Dt.length&&(console.log("cm:",te,Yt),zt.attachments.map(function(Kt){Kt.content_type.indexOf("image")>-1?te.replaceSelection("![,](/api/attachments/".concat(Kt.id,"?type=").concat(Kt.content_type,")")):Kt.content_type.indexOf("video")>-1?te.replaceSelection('')):Kt.content_type.indexOf("pdf")>-1?te.replaceSelection('').concat(Kt.name,"")):te.replaceSelection("[".concat(Kt.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(Kt.id,"?type=").concat(Kt.content_type,")"))}));case 4:case"end":return ln.stop()}},Vt)}));return function(){return rn.apply(this,arguments)}}();Object(u.useEffect)(function(){Wn(ae),te==null||te.setValue(ae)},[ae]),Object(u.useEffect)(function(){bn==null||bn(ir)},[ir]),Object(u.useEffect)(function(){if(Yt.current){var rn=o.a.fromTextArea(Yt.current,{mode:qn,lineNumbers:!Gt,lineWrapping:!0,value:nn,autoCloseTags:!0,autoCloseBrackets:!0});ct&&rn.focus();function Vt(Dt,zt){if(Fe){zt.preventDefault();return}var xt=zt.clipboardData;if(xt){var ln=xt.types.toString(),Kt=xt.items;if(ln==="Files"||xt.types.indexOf("Files")>-1){if(zt.preventDefault(),qn=="stex")return;try{var Xn,ha=Kt[1];((Xn=Kt[0])===null||Xn===void 0?void 0:Xn.kind)==="file"&&(ha=Kt[0]);var Jn=ha.getAsFile(),Aa=Jn.name.split(".").pop();fe(Jn,function(Zn){if(Zn.id){var ea,er,Ha;(Jn==null||((ea=Jn.type)===null||ea===void 0)?void 0:ea.indexOf("image"))>-1?rn.replaceSelection("![,](/api/attachments/".concat(Zn.id,"?type=").concat(Zn.content_type,")")):(Jn==null||((er=Jn.type)===null||er===void 0)?void 0:er.indexOf("video"))>-1?rn.replaceSelection('')):(Jn==null||((Ha=Jn.type)===null||Ha===void 0)?void 0:Ha.indexOf("pdf"))>-1?rn.replaceSelection('').concat(Jn.name,"")):Te.includes(Aa)?rn.replaceSelection('').concat(Jn.name,"")):rn.replaceSelection("[".concat(Jn.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(Zn.id,"?type=").concat(Zn.content_type,")"))}else(Zn==null?void 0:Zn.status)===401&&(document.location.href="/user/login")})}catch(Zn){O.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return rn.on("paste",Vt),rn.on("dragleave",function(Dt,zt){wn.current.classList.remove("mouse-hover-md")}),rn.on("dragover",function(Dt,zt){wn.current.classList.add("mouse-hover-md")}),rn.on("drop",function(Dt,zt){wn.current.classList.add("mouse-hover-md");var xt;if(xt=zt.dataTransfer.files,xt.length>0){zt.preventDefault(),zt.stopPropagation();for(var ln=function(ha){var Jn=xt[ha],Aa=Jn.name.split(".").pop();fe(Jn,function(Zn){if(Zn.id){var ea,er,Ha;(Jn==null||((ea=Jn.type)===null||ea===void 0)?void 0:ea.indexOf("image"))>-1?rn.replaceSelection("![,](/api/attachments/".concat(Zn.id,"?type=").concat(Zn.content_type,")")):(Jn==null||((er=Jn.type)===null||er===void 0)?void 0:er.indexOf("video"))>-1?rn.replaceSelection('')):(Jn==null||((Ha=Jn.type)===null||Ha===void 0)?void 0:Ha.indexOf("pdf"))>-1?rn.replaceSelection('').concat(Jn.name,"")):Te.includes(Aa)?rn.replaceSelection('').concat(Jn.name,"")):rn.replaceSelection("[".concat(Jn.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(Zn.id,"?type=").concat(Zn.content_type,")"))}else(Zn==null?void 0:Zn.status)===401&&(document.location.href="/user/login")})},Kt=0;Kt0||Kt.target.offsetWidth>0)&&($t(),te.setSize("100%","100%"),te.refresh())}}catch(Xn){xt.e(Xn)}finally{xt.f()}});return Dt.observe(Yt.current.parentElement),Dt}if(te){var Vt=rn();return function(){Vt.unobserve(Yt.current.parentElement)}}},[te,$t]),Object(u.useEffect)(function(){if(te){for(var rn=[],Vt=function(){var Kt=zt[Dt];xt=Object(M.a)(Kt,2);var Xn=xt[0],ha=xt[1],Jn=Object(p.a)({},Xn,function(){yn(ha)});rn.push(Jn),te.addKeyMap(Jn)},Dt=0,zt=Object.entries(Me);Dt0){var rn=new Date().getTime(),Vt=window.sessionStorage.getItem(Nn);rn>=aa+hn&&(!Vt||Vt!==vn)&&(window.sessionStorage.setItem(Nn,vn),ft(!0))}},hn),Object(u.useEffect)(function(){ya(Sn)},[te,Sn]),Object(u.useEffect)(function(){te&&(ct&&te.focus())},[te,ct]),Object(u.useEffect)(function(){if(Tn&&te){var rn=te.getScrollerElement();function Vt(Dt){var zt=Dt.target;if(zn.current){var xt=zt.scrollTop/zt.scrollHeight;zn.current.scrollTop=zn.current.scrollHeight*xt}}return rn.addEventListener("scroll",Vt),function(){rn.removeEventListener("scroll",Vt)}}},[te,Tn]),Object(u.useEffect)(function(){if(te&&ve){function rn(Vt,Dt){ve(Vt,Dt)}return te.on("beforeChange",rn),function(){te.off("beforeChange",rn)}}},[te,ve]),Object(u.useEffect)(function(){if(te&&Re){function rn(){Re(te.getValue())}return te.on("blur",rn),function(){te.off("blur",rn)}}},[te,Re]),Object(u.useEffect)(function(){if(te){function rn(Vt){var Dt=Vt.getValue();Wn(Dt),ra(new Date().getTime()),Vt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$n&&$n(Dt)}return te.on("change",rn),function(){te.off("change",rn)}}},[te,$n]),Object(u.useEffect)(function(){te&&(nn==null?(te.setValue(""),Wn("")):nn!==te.getValue()&&(te.setValue(nn),Wn(nn),te.setCursor(te.lineCount(),0)))},[te,nn]);var yn=Object(u.useCallback)(function(rn){var Vt=te.getCursor(),Dt=te.getSelection(),zt=Dt.split(` `);switch(rn){case"bold":return te.replaceSelection("**"+Dt+"**"),Dt===""&&te.setCursor(Vt.line,Vt.ch+2),te.focus();case"italic":return te.replaceSelection("*"+Dt+"*"),Dt===""&&te.setCursor(Vt.line,Vt.ch+1),te.focus();case"code":return te.replaceSelection("`"+Dt+"`"),Dt===""&&te.setCursor(Vt.line,Vt.ch+1),te.focus();case"inline-latex":return te.replaceSelection("`$$"+Dt+"$$`"),Dt===""&&te.setCursor(Vt.line,Vt.ch+3),te.focus();case"latex":return te.replaceSelection("```latex\n"+Dt+"\n```"),te.setCursor(Vt.line+1,Dt.length+1),te.focus();case"line-break":return te.replaceSelection(`
`),te.focus();case"list-ul":return Dt===""?te.replaceSelection("- "+Dt):te.replaceSelection(zt.map(function(xt){return xt===""?"":"- ".concat(xt)}).join(` `)),te.focus();case"list-ol":return Dt===""?te.replaceSelection("1. "+Dt):te.replaceSelection(zt.map(function(xt,ln){return xt===""?"":"".concat(ln+1,". ").concat(xt)}).join(` @@ -322,7 +322,7 @@ Please report this to https://github.com/markedjs/marked.`,Je.silent)return"

A `,Zn=0;Zn300&&(Xn=300);var ha=Bt+Xn+"px";Wa(ha)}}return rn.addEventListener("mousedown",zt),document.addEventListener("mousemove",ln),document.addEventListener("mouseup",xt),function(){rn.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",ln),document.removeEventListener("mouseup",xt)}}},[te,fn]),Object(u.useEffect)(function(){Wa(Bt)},[Bt]);var sn=ht(Sa),En=ht(Ta),Pn={width:sn,height:En},Kn=Object(u.useMemo)(function(){if(aa){var rn=new Date(aa),Vt=rn.getHours(),Dt=rn.getMinutes(),zt=rn.getSeconds();return Vt=Vt<10?"0"+Vt:Vt,Dt=Dt<10?"0"+Dt:Dt,zt=zt<10?"0"+zt:zt,"".concat(Vt,":").concat(Dt,":").concat(zt)}return 0},[aa]);function Vn(){window.sessionStorage.removeItem(Nn),ft(!1),ra(0)}function ua(){ft(!1),ra(0),te.setValue(window.sessionStorage.getItem(Nn))}function xa(rn,Vt){var Dt=te.getValue();Dt=Dt.replace(rn,Vt),Wn(Dt),te==null||te.setValue(Dt)}return d.a.createElement(u.Fragment,null,d.a.createElement("div",{className:"markdown-editor-wrapper",ref:wn},d.a.createElement("div",{className:"markdown-editor-container ".concat(at," ").concat(Tn?"on-preview":""," ").concat(Gt?"mini":""," ").concat(ir?"full-screen":""),style:Pn},d.a.createElement(E,{insertTemp:qt,watch:Tn,fullScreen:ir,showNullButton:J,onActionCallback:yn,hidetoolBar:Z,uuid:wt.current,setOpenPhones:function(){Et.current=!0}}),d.a.createElement("div",{className:"markdown-editor-body"},d.a.createElement("div",{className:"codemirror-container"},d.a.createElement("textarea",{ref:Yt,placeholder:Fa})),Tn?d.a.createElement("div",{ref:zn,className:"preview-container"},qn==="stex"&&d.a.createElement(v,{value:vn}),qn!=="stex"&&d.a.createElement(C.a,{edit:!0,value:vn,replaces:xa})):null))),na?d.a.createElement("a",{ref:fn,className:"editor-resize"}):null,d.a.createElement(U.a,null,Ie[Ma]?d.a.createElement(W.a,{centered:!0,title:Ie[Ma],visible:!0,onCancel:cn,footer:null,className:"markdown-popup-form"},On):null))}},P47w:function(Ge,re,y){var Q=y("hydK"),W=Q.createElement,k=y("IMiH"),B=y("mFDi"),O=y("Fofx"),R=y("6GrX"),M=y("pzxd"),p=y("dqUG"),a=k.CMD,b=Array.prototype.join,u="none",d=Math.round,m=Math.sin,o=Math.cos,c=Math.PI,f=Math.PI*2,i=180/c,t=1e-4;function l(K){return d(K*1e4)/1e4}function s(K){return K-t}function w(K,$){var ie=$?K.textFill:K.fill;return ie!=null&&ie!==u}function D(K,$){var ie=$?K.textStroke:K.stroke;return ie!=null&&ie!==u}function C(K,$){$&&v(K,"transform","matrix("+b.call($,",")+")")}function v(K,$,ie){(!ie||ie.type!=="linear"&&ie.type!=="radial")&&K.setAttribute($,ie)}function n(K,$,ie){K.setAttributeNS("http://www.w3.org/1999/xlink",$,ie)}function _(K,$,ie,le){if(w($,ie)){var de=ie?$.textFill:$.fill;de=de==="transparent"?u:de,v(K,"fill",de),v(K,"fill-opacity",$.fillOpacity!=null?$.fillOpacity*$.opacity:$.opacity)}else v(K,"fill",u);if(D($,ie)){var Se=ie?$.textStroke:$.stroke;Se=Se==="transparent"?u:Se,v(K,"stroke",Se);var He=ie?$.textStrokeWidth:$.lineWidth,et=!ie&&$.strokeNoScale?le.getLineScale():1;v(K,"stroke-width",He/et),v(K,"paint-order",ie?"stroke":"fill"),v(K,"stroke-opacity",$.strokeOpacity!=null?$.strokeOpacity:$.opacity);var je=$.lineDash;je?(v(K,"stroke-dasharray",$.lineDash.join(",")),v(K,"stroke-dashoffset",d($.lineDashOffset||0))):v(K,"stroke-dasharray",""),$.lineCap&&v(K,"stroke-linecap",$.lineCap),$.lineJoin&&v(K,"stroke-linejoin",$.lineJoin),$.miterLimit&&v(K,"stroke-miterlimit",$.miterLimit)}else v(K,"stroke",u)}function h(K){for(var $=[],ie=K.data,le=K.len(),de=0;de=f:-Ue>=f),pe=Ue>0?Ue%f:Ue%f+f,xe=!1;Qe?xe=!0:s(dt)?xe=!1:xe=pe>=c===!!Ve;var Le=l(je+fe*o(he)),Ye=l(me+Ae*m(he));Qe&&(Ve?Ue=f-1e-4:Ue=-f+1e-4,xe=!0,de===9&&$.push("M",Le,Ye));var gt=l(je+fe*o(he+Ue)),Ct=l(me+Ae*m(he+Ue));$.push("A",l(fe),l(Ae),d(st*i),+xe,+Ve,gt,Ct);break;case a.Z:He="Z";break;case a.R:var gt=l(ie[de++]),Ct=l(ie[de++]),tn=l(ie[de++]),Zt=l(ie[de++]);$.push("M",gt,Ct,"L",gt+tn,Ct,"L",gt+tn,Ct+Zt,"L",gt,Ct+Zt,"L",gt,Ct);break}He&&$.push(He);for(var Hn=0;Hnia){for(;Zt255?255:h}function B(h){return h=Math.round(h),h<0?0:h>360?360:h}function O(h){return h<0?0:h>1?1:h}function R(h){return h.length&&h.charAt(h.length-1)==="%"?k(parseFloat(h)/100*255):k(parseInt(h,10))}function M(h){return h.length&&h.charAt(h.length-1)==="%"?O(parseFloat(h)/100):O(parseFloat(h))}function p(h,g,x){return x<0?x+=1:x>1&&(x-=1),x*6<1?h+(g-h)*x*6:x*2<1?g:x*3<2?h+(g-h)*(2/3-x)*6:h}function a(h,g,x){return h+(g-h)*x}function b(h,g,x,T,S){return h[0]=g,h[1]=x,h[2]=T,h[3]=S,h}function u(h,g){return h[0]=g[0],h[1]=g[1],h[2]=g[2],h[3]=g[3],h}var d=new Q(20),m=null;function o(h,g){m&&u(m,g),m=d.put(h,m||g.slice())}function c(h,g){if(!h)return;g=g||[];var x=d.get(h);if(x)return u(g,x);h=h+"";var T=h.replace(/ /g,"").toLowerCase();if(T in W)return u(g,W[T]),o(h,g),g;if(T.charAt(0)==="#"){if(T.length===4){var S=parseInt(T.substr(1),16);if(!(S>=0&&S<=4095)){b(g,0,0,0,1);return}return b(g,(S&3840)>>4|(S&3840)>>8,S&240|(S&240)>>4,S&15|(S&15)<<4,1),o(h,g),g}else if(T.length===7){var S=parseInt(T.substr(1),16);if(!(S>=0&&S<=16777215)){b(g,0,0,0,1);return}return b(g,(S&16711680)>>16,(S&65280)>>8,S&255,1),o(h,g),g}return}var E=T.indexOf("("),U=T.indexOf(")");if(E!==-1&&U+1===T.length){var F=T.substr(0,E),P=T.substr(E+1,U-(E+1)).split(","),H=1;switch(F){case"rgba":if(P.length!==4){b(g,0,0,0,1);return}H=M(P.pop());case"rgb":if(P.length!==3){b(g,0,0,0,1);return}return b(g,R(P[0]),R(P[1]),R(P[2]),H),o(h,g),g;case"hsla":if(P.length!==4){b(g,0,0,0,1);return}return P[3]=M(P[3]),f(P,g),o(h,g),g;case"hsl":if(P.length!==3){b(g,0,0,0,1);return}return f(P,g),o(h,g),g;default:return}}b(g,0,0,0,1);return}function f(h,g){var x=(parseFloat(h[0])%360+360)%360/360,T=M(h[1]),S=M(h[2]),E=S<=.5?S*(T+1):S+T-S*T,U=S*2-E;return g=g||[],b(g,k(p(U,E,x+1/3)*255),k(p(U,E,x)*255),k(p(U,E,x-1/3)*255),1),h.length===4&&(g[3]=h[3]),g}function i(h){if(!h)return;var g=h[0]/255,x=h[1]/255,T=h[2]/255,S=Math.min(g,x,T),E=Math.max(g,x,T),U=E-S,F=(E+S)/2,P,H;if(U===0)P=0,H=0;else{F<.5?H=U/(E+S):H=U/(2-E-S);var N=((E-g)/6+U/2)/U,A=((E-x)/6+U/2)/U,G=((E-T)/6+U/2)/U;g===E?P=G-A:x===E?P=1/3+N-G:T===E&&(P=2/3+A-N),P<0&&(P+=1),P>1&&(P-=1)}var K=[P*360,H,F];return h[3]!=null&&K.push(h[3]),K}function t(h,g){var x=c(h);if(x){for(var T=0;T<3;T++)g<0?x[T]=x[T]*(1-g)|0:x[T]=(255-x[T])*g+x[T]|0,x[T]>255?x[T]=255:h[T]<0&&(x[T]=0);return _(x,x.length===4?"rgba":"rgb")}}function l(h){var g=c(h);if(g)return((1<<24)+(g[0]<<16)+(g[1]<<8)+ +g[2]).toString(16).slice(1)}function s(h,g,x){if(!(g&&g.length)||!(h>=0&&h<=1))return;x=x||[];var T=h*(g.length-1),S=Math.floor(T),E=Math.ceil(T),U=g[S],F=g[E],P=T-S;return x[0]=k(a(U[0],F[0],P)),x[1]=k(a(U[1],F[1],P)),x[2]=k(a(U[2],F[2],P)),x[3]=O(a(U[3],F[3],P)),x}var w=s;function D(h,g,x){if(!(g&&g.length)||!(h>=0&&h<=1))return;var T=h*(g.length-1),S=Math.floor(T),E=Math.ceil(T),U=c(g[S]),F=c(g[E]),P=T-S,H=_([k(a(U[0],F[0],P)),k(a(U[1],F[1],P)),k(a(U[2],F[2],P)),O(a(U[3],F[3],P))],"rgba");return x?{color:H,leftIndex:S,rightIndex:E,value:T}:H}var C=D;function v(h,g,x,T){if(h=c(h),h)return h=i(h),g!=null&&(h[0]=B(g)),x!=null&&(h[1]=M(x)),T!=null&&(h[2]=M(T)),_(f(h),"rgba")}function n(h,g){if(h=c(h),h&&g!=null)return h[3]=O(g),_(h,"rgba")}function _(h,g){if(!h||!h.length)return;var x=h[0]+","+h[1]+","+h[2];return(g==="rgba"||g==="hsva"||g==="hsla")&&(x+=","+h[3]),g+"("+x+")"}re.parse=c,re.lift=t,re.toHex=l,re.fastLerp=s,re.fastMapToColor=w,re.lerp=D,re.mapToColor=C,re.modifyHSL=v,re.modifyAlpha=n,re.stringify=_},QuXc:function(Ge,re){var y=function(W){this.colorStops=W||[]};y.prototype={constructor:y,addColorStop:function(W,k){this.colorStops.push({offset:W,color:k})}};var Q=y;Ge.exports=Q},RDYZ:function(Ge,re,y){var Q=y("dMvE");function W(B){this._target=B.target,this._life=B.life||1e3,this._delay=B.delay||0,this._initialized=!1,this.loop=B.loop==null?!1:B.loop,this.gap=B.gap||0,this.easing=B.easing||"Linear",this.onframe=B.onframe,this.ondestroy=B.ondestroy,this.onrestart=B.onrestart,this._pausedTime=0,this._paused=!1}W.prototype={constructor:W,step:function(B,O){if(this._initialized||(this._startTime=B+this._delay,this._initialized=!0),this._paused){this._pausedTime+=O;return}var R=(B-this._startTime-this._pausedTime)/this._life;if(R<0)return;R=Math.min(R,1);var M=this.easing,p=typeof M=="string"?Q[M]:M,a=typeof p=="function"?p(R):R;return this.fire("frame",a),R===1?this.loop?(this.restart(B),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(B){var O=(B-this._startTime-this._pausedTime)%this._life;this._startTime=B-O+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(B,O){B="on"+B,this[B]&&this[B](this._target,O)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var k=W;Ge.exports=k},RMFE:function(Ge,re){Ge.exports="data:image/png;base64,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"},RQ0A:function(Ge,re,y){Ge.exports=y.p+"static/zwt.3af2a320.png"},RXMa:function(Ge,re,y){var Q=y("y+Vt"),W=Q.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(k,B){var O=B.cx,R=B.cy,M=Math.PI*2;k.moveTo(O+B.r,R),k.arc(O,R,B.r,0,M,!1),k.moveTo(O+B.r0,R),k.arc(O,R,B.r0,0,M,!0)}});Ge.exports=W},"RZ/O":function(Ge,re,y){Ge.exports=y.p+"static/bi.9c9b0364.svg"},RotF:function(Ge,re,y){Ge.exports=y("LSTS")},"SA+Z":function(Ge,re,y){var Q=y("wTVA"),W=y("EbDI"),k=y("ZhPi"),B=y("wkBT");function O(R){return Q(R)||W(R)||k(R)||B()}Ge.exports=O,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},SJMd:function(Ge,re){/** +`),te.focus();default:throw new Error}},[te,Ma]),On=Object(u.useMemo)(function(){switch(Ma){case Le:return d.a.createElement($,{callback:pn,onCancel:cn});case gt:return d.a.createElement(ie.b,{callback:pn,onCancel:cn});case Ye:return d.a.createElement(je,{callback:pn,onCancel:cn});case Ct:return d.a.createElement(Qe,{callback:pn,onCancel:cn});default:return null}},[Ma]);function cn(){Jt("")}Object(u.useEffect)(function(){if(fn.current){var rn=fn.current,Vt=!1,Dt=0;function zt(Kt){Vt=!0,Dt=Kt.pageY}function xt(){Vt=!1}function ln(Kt){if(Vt){var Xn=Kt.pageY-Dt;Xn<0&&(Xn=0),Xn>300&&(Xn=300);var ha=Bt+Xn+"px";Wa(ha)}}return rn.addEventListener("mousedown",zt),document.addEventListener("mousemove",ln),document.addEventListener("mouseup",xt),function(){rn.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",ln),document.removeEventListener("mouseup",xt)}}},[te,fn]),Object(u.useEffect)(function(){Wa(Bt)},[Bt]);var sn=ht(Sa),En=ht(Ta),Pn={width:sn,height:En},Kn=Object(u.useMemo)(function(){if(aa){var rn=new Date(aa),Vt=rn.getHours(),Dt=rn.getMinutes(),zt=rn.getSeconds();return Vt=Vt<10?"0"+Vt:Vt,Dt=Dt<10?"0"+Dt:Dt,zt=zt<10?"0"+zt:zt,"".concat(Vt,":").concat(Dt,":").concat(zt)}return 0},[aa]);function Vn(){window.sessionStorage.removeItem(Nn),ft(!1),ra(0)}function ua(){ft(!1),ra(0),te.setValue(window.sessionStorage.getItem(Nn))}function xa(rn,Vt){var Dt=te.getValue();Dt=Dt.replace(rn,Vt),Wn(Dt),te==null||te.setValue(Dt)}return d.a.createElement(u.Fragment,null,d.a.createElement("div",{className:"markdown-editor-wrapper",ref:wn},d.a.createElement("div",{className:"markdown-editor-container ".concat(at," ").concat(Tn?"on-preview":""," ").concat(Gt?"mini":""," ").concat(ir?"full-screen":""),style:Pn},d.a.createElement(E,{insertTemp:qt,watch:Tn,fullScreen:ir,showNullButton:J,onActionCallback:yn,hidetoolBar:Z,uuid:wt.current,setOpenPhones:function(){Et.current=!0}}),d.a.createElement("div",{className:"markdown-editor-body"},d.a.createElement("div",{className:"codemirror-container"},d.a.createElement("textarea",{ref:Yt,placeholder:Fa})),Tn?d.a.createElement("div",{ref:zn,className:"preview-container"},qn==="stex"&&d.a.createElement(v,{value:vn}),qn!=="stex"&&d.a.createElement(C.a,{edit:!0,value:vn,replaces:xa})):null))),na?d.a.createElement("a",{ref:fn,className:"editor-resize"}):null,d.a.createElement(U.a,null,Ie[Ma]?d.a.createElement(W.a,{centered:!0,title:Ie[Ma],visible:!0,onCancel:cn,footer:null,className:"markdown-popup-form"},On):null))}},P47w:function(Ge,re,y){var Q=y("hydK"),W=Q.createElement,k=y("IMiH"),B=y("mFDi"),O=y("Fofx"),R=y("6GrX"),M=y("pzxd"),p=y("dqUG"),a=k.CMD,b=Array.prototype.join,u="none",d=Math.round,m=Math.sin,o=Math.cos,c=Math.PI,f=Math.PI*2,i=180/c,t=1e-4;function l(K){return d(K*1e4)/1e4}function s(K){return K-t}function w(K,$){var ie=$?K.textFill:K.fill;return ie!=null&&ie!==u}function D(K,$){var ie=$?K.textStroke:K.stroke;return ie!=null&&ie!==u}function C(K,$){$&&v(K,"transform","matrix("+b.call($,",")+")")}function v(K,$,ie){(!ie||ie.type!=="linear"&&ie.type!=="radial")&&K.setAttribute($,ie)}function n(K,$,ie){K.setAttributeNS("http://www.w3.org/1999/xlink",$,ie)}function _(K,$,ie,le){if(w($,ie)){var de=ie?$.textFill:$.fill;de=de==="transparent"?u:de,v(K,"fill",de),v(K,"fill-opacity",$.fillOpacity!=null?$.fillOpacity*$.opacity:$.opacity)}else v(K,"fill",u);if(D($,ie)){var Se=ie?$.textStroke:$.stroke;Se=Se==="transparent"?u:Se,v(K,"stroke",Se);var He=ie?$.textStrokeWidth:$.lineWidth,et=!ie&&$.strokeNoScale?le.getLineScale():1;v(K,"stroke-width",He/et),v(K,"paint-order",ie?"stroke":"fill"),v(K,"stroke-opacity",$.strokeOpacity!=null?$.strokeOpacity:$.opacity);var je=$.lineDash;je?(v(K,"stroke-dasharray",$.lineDash.join(",")),v(K,"stroke-dashoffset",d($.lineDashOffset||0))):v(K,"stroke-dasharray",""),$.lineCap&&v(K,"stroke-linecap",$.lineCap),$.lineJoin&&v(K,"stroke-linejoin",$.lineJoin),$.miterLimit&&v(K,"stroke-miterlimit",$.miterLimit)}else v(K,"stroke",u)}function h(K){for(var $=[],ie=K.data,le=K.len(),de=0;de=f:-Ue>=f),pe=Ue>0?Ue%f:Ue%f+f,xe=!1;Qe?xe=!0:s(dt)?xe=!1:xe=pe>=c===!!Ve;var Le=l(je+fe*o(he)),Ye=l(me+Ae*m(he));Qe&&(Ve?Ue=f-1e-4:Ue=-f+1e-4,xe=!0,de===9&&$.push("M",Le,Ye));var gt=l(je+fe*o(he+Ue)),Ct=l(me+Ae*m(he+Ue));$.push("A",l(fe),l(Ae),d(st*i),+xe,+Ve,gt,Ct);break;case a.Z:He="Z";break;case a.R:var gt=l(ie[de++]),Ct=l(ie[de++]),tn=l(ie[de++]),Zt=l(ie[de++]);$.push("M",gt,Ct,"L",gt+tn,Ct,"L",gt+tn,Ct+Zt,"L",gt,Ct+Zt,"L",gt,Ct);break}He&&$.push(He);for(var Hn=0;Hnia){for(;Zt255?255:h}function B(h){return h=Math.round(h),h<0?0:h>360?360:h}function O(h){return h<0?0:h>1?1:h}function R(h){return h.length&&h.charAt(h.length-1)==="%"?k(parseFloat(h)/100*255):k(parseInt(h,10))}function M(h){return h.length&&h.charAt(h.length-1)==="%"?O(parseFloat(h)/100):O(parseFloat(h))}function p(h,g,x){return x<0?x+=1:x>1&&(x-=1),x*6<1?h+(g-h)*x*6:x*2<1?g:x*3<2?h+(g-h)*(2/3-x)*6:h}function a(h,g,x){return h+(g-h)*x}function b(h,g,x,T,S){return h[0]=g,h[1]=x,h[2]=T,h[3]=S,h}function u(h,g){return h[0]=g[0],h[1]=g[1],h[2]=g[2],h[3]=g[3],h}var d=new Q(20),m=null;function o(h,g){m&&u(m,g),m=d.put(h,m||g.slice())}function c(h,g){if(!h)return;g=g||[];var x=d.get(h);if(x)return u(g,x);h=h+"";var T=h.replace(/ /g,"").toLowerCase();if(T in W)return u(g,W[T]),o(h,g),g;if(T.charAt(0)==="#"){if(T.length===4){var S=parseInt(T.substr(1),16);if(!(S>=0&&S<=4095)){b(g,0,0,0,1);return}return b(g,(S&3840)>>4|(S&3840)>>8,S&240|(S&240)>>4,S&15|(S&15)<<4,1),o(h,g),g}else if(T.length===7){var S=parseInt(T.substr(1),16);if(!(S>=0&&S<=16777215)){b(g,0,0,0,1);return}return b(g,(S&16711680)>>16,(S&65280)>>8,S&255,1),o(h,g),g}return}var E=T.indexOf("("),U=T.indexOf(")");if(E!==-1&&U+1===T.length){var F=T.substr(0,E),P=T.substr(E+1,U-(E+1)).split(","),H=1;switch(F){case"rgba":if(P.length!==4){b(g,0,0,0,1);return}H=M(P.pop());case"rgb":if(P.length!==3){b(g,0,0,0,1);return}return b(g,R(P[0]),R(P[1]),R(P[2]),H),o(h,g),g;case"hsla":if(P.length!==4){b(g,0,0,0,1);return}return P[3]=M(P[3]),f(P,g),o(h,g),g;case"hsl":if(P.length!==3){b(g,0,0,0,1);return}return f(P,g),o(h,g),g;default:return}}b(g,0,0,0,1);return}function f(h,g){var x=(parseFloat(h[0])%360+360)%360/360,T=M(h[1]),S=M(h[2]),E=S<=.5?S*(T+1):S+T-S*T,U=S*2-E;return g=g||[],b(g,k(p(U,E,x+1/3)*255),k(p(U,E,x)*255),k(p(U,E,x-1/3)*255),1),h.length===4&&(g[3]=h[3]),g}function i(h){if(!h)return;var g=h[0]/255,x=h[1]/255,T=h[2]/255,S=Math.min(g,x,T),E=Math.max(g,x,T),U=E-S,F=(E+S)/2,P,H;if(U===0)P=0,H=0;else{F<.5?H=U/(E+S):H=U/(2-E-S);var N=((E-g)/6+U/2)/U,A=((E-x)/6+U/2)/U,G=((E-T)/6+U/2)/U;g===E?P=G-A:x===E?P=1/3+N-G:T===E&&(P=2/3+A-N),P<0&&(P+=1),P>1&&(P-=1)}var K=[P*360,H,F];return h[3]!=null&&K.push(h[3]),K}function t(h,g){var x=c(h);if(x){for(var T=0;T<3;T++)g<0?x[T]=x[T]*(1-g)|0:x[T]=(255-x[T])*g+x[T]|0,x[T]>255?x[T]=255:h[T]<0&&(x[T]=0);return _(x,x.length===4?"rgba":"rgb")}}function l(h){var g=c(h);if(g)return((1<<24)+(g[0]<<16)+(g[1]<<8)+ +g[2]).toString(16).slice(1)}function s(h,g,x){if(!(g&&g.length)||!(h>=0&&h<=1))return;x=x||[];var T=h*(g.length-1),S=Math.floor(T),E=Math.ceil(T),U=g[S],F=g[E],P=T-S;return x[0]=k(a(U[0],F[0],P)),x[1]=k(a(U[1],F[1],P)),x[2]=k(a(U[2],F[2],P)),x[3]=O(a(U[3],F[3],P)),x}var w=s;function D(h,g,x){if(!(g&&g.length)||!(h>=0&&h<=1))return;var T=h*(g.length-1),S=Math.floor(T),E=Math.ceil(T),U=c(g[S]),F=c(g[E]),P=T-S,H=_([k(a(U[0],F[0],P)),k(a(U[1],F[1],P)),k(a(U[2],F[2],P)),O(a(U[3],F[3],P))],"rgba");return x?{color:H,leftIndex:S,rightIndex:E,value:T}:H}var C=D;function v(h,g,x,T){if(h=c(h),h)return h=i(h),g!=null&&(h[0]=B(g)),x!=null&&(h[1]=M(x)),T!=null&&(h[2]=M(T)),_(f(h),"rgba")}function n(h,g){if(h=c(h),h&&g!=null)return h[3]=O(g),_(h,"rgba")}function _(h,g){if(!h||!h.length)return;var x=h[0]+","+h[1]+","+h[2];return(g==="rgba"||g==="hsva"||g==="hsla")&&(x+=","+h[3]),g+"("+x+")"}re.parse=c,re.lift=t,re.toHex=l,re.fastLerp=s,re.fastMapToColor=w,re.lerp=D,re.mapToColor=C,re.modifyHSL=v,re.modifyAlpha=n,re.stringify=_},QuXc:function(Ge,re){var y=function(W){this.colorStops=W||[]};y.prototype={constructor:y,addColorStop:function(W,k){this.colorStops.push({offset:W,color:k})}};var Q=y;Ge.exports=Q},RDYZ:function(Ge,re,y){var Q=y("dMvE");function W(B){this._target=B.target,this._life=B.life||1e3,this._delay=B.delay||0,this._initialized=!1,this.loop=B.loop==null?!1:B.loop,this.gap=B.gap||0,this.easing=B.easing||"Linear",this.onframe=B.onframe,this.ondestroy=B.ondestroy,this.onrestart=B.onrestart,this._pausedTime=0,this._paused=!1}W.prototype={constructor:W,step:function(B,O){if(this._initialized||(this._startTime=B+this._delay,this._initialized=!0),this._paused){this._pausedTime+=O;return}var R=(B-this._startTime-this._pausedTime)/this._life;if(R<0)return;R=Math.min(R,1);var M=this.easing,p=typeof M=="string"?Q[M]:M,a=typeof p=="function"?p(R):R;return this.fire("frame",a),R===1?this.loop?(this.restart(B),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(B){var O=(B-this._startTime-this._pausedTime)%this._life;this._startTime=B-O+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(B,O){B="on"+B,this[B]&&this[B](this._target,O)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var k=W;Ge.exports=k},RMFE:function(Ge,re){Ge.exports="data:image/png;base64,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"},RQ0A:function(Ge,re,y){Ge.exports=y.p+"static/zwt.3af2a320.png"},RXMa:function(Ge,re,y){var Q=y("y+Vt"),W=Q.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(k,B){var O=B.cx,R=B.cy,M=Math.PI*2;k.moveTo(O+B.r,R),k.arc(O,R,B.r,0,M,!1),k.moveTo(O+B.r0,R),k.arc(O,R,B.r0,0,M,!0)}});Ge.exports=W},"RZ/O":function(Ge,re,y){Ge.exports=y.p+"static/bi.9c9b0364.svg"},RotF:function(Ge,re,y){Ge.exports=y("LSTS")},"SA+Z":function(Ge,re,y){var Q=y("wTVA"),W=y("EbDI"),k=y("ZhPi"),B=y("wkBT");function O(R){return Q(R)||W(R)||k(R)||B()}Ge.exports=O,Ge.exports.__esModule=!0,Ge.exports.default=Ge.exports},SJMd:function(Ge,re){/** * @license * Copyright (C) 2006 Google Inc. * @@ -337,12 +337,12 @@ Please report this to https://github.com/markedjs/marked.`,Je.silent)return"

A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var y,Q,W,k=!1,B,O;window.PR_SHOULD_USE_CONTINUATION=!0;var R,M;(function(){var p=window,a=["break,continue,do,else,for,if,return,while"],b=[a,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],u=[b,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],d=[u,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],m=[u,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],o=[u,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],c="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",f=[u,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],i="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",t=[a,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],l=[a,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],s=[a,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],w=[d,o,m,f,i,t,l,s],D=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C="str",v="kwd",n="com",_="typ",h="lit",g="pun",x="pln",T="tag",S="dec",E="src",U="atn",F="atv",P="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function N(Ve){for(var dt=0,Qe=!1,pe=!1,xe=0,Le=Ve.length;xe122||(Te<65||rt>90||on.push([Math.max(65,rt)|32,Math.min(Te,90)|32]),Te<97||rt>122||on.push([Math.max(97,rt)&~32,Math.min(Te,122)&~32]))}}on.sort(function(qe,Lt){return qe[0]-Lt[0]||Lt[1]-qe[1]});for(var Me=[],Ie=[],Xt=0;Xtbe[0]&&(be[1]+1>be[0]&&Ot.push("-"),Ot.push(tn(be[1])))}return Ot.push("]"),Ot.join("")}function Hn(mt){for(var pt=mt.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),on=pt.length,hn=[],Ot=0,Xt=0;Ot=2&&rt==="["?pt[Ot]=Zt(ht):rt!=="\\"&&(pt[Ot]=ht.replace(/[a-zA-Z]/g,function(Ie){var be=Ie.charCodeAt(0);return"["+String.fromCharCode(be&~32,be|32)+"]"}))}return pt.join("")}for(var ia=[],xe=0,Le=Ve.length;xe|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function N(Ve){for(var dt=0,Qe=!1,pe=!1,xe=0,Le=Ve.length;xe122||(Te<65||rt>90||on.push([Math.max(65,rt)|32,Math.min(Te,90)|32]),Te<97||rt>122||on.push([Math.max(97,rt)&~32,Math.min(Te,122)&~32]))}}on.sort(function(qe,Lt){return qe[0]-Lt[0]||Lt[1]-qe[1]});for(var Me=[],Ie=[],Xt=0;Xtbe[0]&&(be[1]+1>be[0]&&Ot.push("-"),Ot.push(tn(be[1])))}return Ot.push("]"),Ot.join("")}function Hn(vt){for(var mt=vt.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),on=mt.length,hn=[],Ot=0,Xt=0;Ot=2&&rt==="["?mt[Ot]=Zt(ht):rt!=="\\"&&(mt[Ot]=ht.replace(/[a-zA-Z]/g,function(Ie){var be=Ie.charCodeAt(0);return"["+String.fromCharCode(be&~32,be|32)+"]"}))}return mt.join("")}for(var ia=[],xe=0,Le=Ve.length;xe=0;)Qe[ia.charAt(mt)]=Hn;var pt=Hn[1],on=""+pt;Ct.hasOwnProperty(on)||(gt.push(pt),Ct[on]=null)}gt.push(/[\0-\uffff]/),pe=N(gt)})();var xe=dt.length,Le=function(Ye){for(var gt=Ye.sourceCode,Ct=Ye.basePos,tn=Ye.sourceNode,Zt=[Ct,x],Hn=0,ia=gt.match(pe)||[],mt={},pt=0,on=ia.length;pt=5&&Ot.substring(0,5)==="lang-",ht&&!(Xt&&typeof Xt[1]=="string")&&(ht=!1,Ot=E),ht||(mt[hn]=Ot)}var Te=Hn;if(Hn+=hn.length,!ht)Zt.push(Ct+Te,Ot);else{var Me=Xt[1],Ie=hn.indexOf(Me),be=Ie+Me.length;Xt[2]&&(be=hn.length-Xt[2].length,Ie=be-Me.length);var qe=Ot.substring(5);G(tn,Ct+Te,hn.substring(0,Ie),Le,Zt),G(tn,Ct+Te+Ie,Me,me(qe,Me),Zt),G(tn,Ct+Te+be,hn.substring(be),Le,Zt)}}Ye.decorations=Zt};return Le}function le(Ve){var dt=[],Qe=[];Ve.tripleQuotedStrings?dt.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ve.multiLineStrings?dt.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):dt.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ve.verbatimStrings&&Qe.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var pe=Ve.hashComments;pe&&(Ve.cStyleComments?(pe>1?dt.push([n,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):dt.push([n,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Qe.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):dt.push([n,/^#[^\r\n]*/,null,"#"])),Ve.cStyleComments&&(Qe.push([n,/^\/\/[^\r\n]*/,null]),Qe.push([n,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var xe=Ve.regexLiterals;if(xe){var Le=xe>1?"":` +`):ia=ia.replace(/[ \t\r\n]+/g," "),pe[Ye]=ia,Le[Ye<<1]=xe,xe+=ia.length,Le[Ye++<<1|1]=Ct)}}return gt(Ve),{sourceCode:pe.join("").replace(/\n$/,""),spans:Le}}function G(Ve,dt,Qe,pe,xe){if(!Qe)return;var Le={sourceNode:Ve,pre:1,langExtension:null,numberLines:null,sourceCode:Qe,spans:null,basePos:dt,decorations:null};pe(Le),xe.push.apply(xe,Le.decorations)}var K=/\S/;function $(Ve){for(var dt=void 0,Qe=Ve.firstChild;Qe;Qe=Qe.nextSibling){var pe=Qe.nodeType;dt=pe===1?dt?Ve:Qe:pe===3&&K.test(Qe.nodeValue)?Ve:dt}return dt===Ve?void 0:dt}function ie(Ve,dt){var Qe={},pe;(function(){for(var Ye=Ve.concat(dt),gt=[],Ct={},tn=0,Zt=Ye.length;tn=0;)Qe[ia.charAt(vt)]=Hn;var mt=Hn[1],on=""+mt;Ct.hasOwnProperty(on)||(gt.push(mt),Ct[on]=null)}gt.push(/[\0-\uffff]/),pe=N(gt)})();var xe=dt.length,Le=function(Ye){for(var gt=Ye.sourceCode,Ct=Ye.basePos,tn=Ye.sourceNode,Zt=[Ct,x],Hn=0,ia=gt.match(pe)||[],vt={},mt=0,on=ia.length;mt=5&&Ot.substring(0,5)==="lang-",ht&&!(Xt&&typeof Xt[1]=="string")&&(ht=!1,Ot=E),ht||(vt[hn]=Ot)}var Te=Hn;if(Hn+=hn.length,!ht)Zt.push(Ct+Te,Ot);else{var Me=Xt[1],Ie=hn.indexOf(Me),be=Ie+Me.length;Xt[2]&&(be=hn.length-Xt[2].length,Ie=be-Me.length);var qe=Ot.substring(5);G(tn,Ct+Te,hn.substring(0,Ie),Le,Zt),G(tn,Ct+Te+Ie,Me,me(qe,Me),Zt),G(tn,Ct+Te+be,hn.substring(be),Le,Zt)}}Ye.decorations=Zt};return Le}function le(Ve){var dt=[],Qe=[];Ve.tripleQuotedStrings?dt.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Ve.multiLineStrings?dt.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):dt.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Ve.verbatimStrings&&Qe.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var pe=Ve.hashComments;pe&&(Ve.cStyleComments?(pe>1?dt.push([n,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):dt.push([n,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Qe.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):dt.push([n,/^#[^\r\n]*/,null,"#"])),Ve.cStyleComments&&(Qe.push([n,/^\/\/[^\r\n]*/,null]),Qe.push([n,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var xe=Ve.regexLiterals;if(xe){var Le=xe>1?"":` \r`,Ye=Le?".":"[\\S\\s]",gt="/(?=[^/*"+Le+"])(?:[^/\\x5B\\x5C"+Le+"]|\\x5C"+Ye+"|\\x5B(?:[^\\x5C\\x5D"+Le+"]|\\x5C"+Ye+")*(?:\\x5D|$))+/";Qe.push(["lang-regex",RegExp("^"+H+"("+gt+")")])}var Ct=Ve.types;Ct&&Qe.push([_,Ct]);var tn=(""+Ve.keywords).replace(/^ | $/g,"");tn.length&&Qe.push([v,new RegExp("^(?:"+tn.replace(/[\s,]+/g,"|")+")\\b"),null]),dt.push([x,/^\s+/,null,` \r - \xA0`]);var Zt="^.[^\\s\\w.$@'\"`/\\\\]*";return Ve.regexLiterals&&(Zt+="(?!s*/)"),Qe.push([h,/^@[a-z_$][a-z_$@0-9]*/i,null],[_,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[x,/^[a-z_$][a-z_$@0-9]*/i,null],[h,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[x,/^\\[\s\S]?/,null],[g,new RegExp(Zt),null]),ie(dt,Qe)}var de=le({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Se(Ve,dt,Qe){for(var pe=/(?:^|\s)nocode(?:\s|$)/,xe=/\r\n?|\n/,Le=Ve.ownerDocument,Ye=Le.createElement("li");Ve.firstChild;)Ye.appendChild(Ve.firstChild);var gt=[Ye];function Ct(pt){var on=pt.nodeType;if(on==1&&!pe.test(pt.className))if(pt.nodeName==="br")tn(pt),pt.parentNode&&pt.parentNode.removeChild(pt);else for(var hn=pt.firstChild;hn;hn=hn.nextSibling)Ct(hn);else if((on==3||on==4)&&Qe){var Ot=pt.nodeValue,Xt=Ot.match(xe);if(Xt){var ht=Ot.substring(0,Xt.index);pt.nodeValue=ht;var Je=Ot.substring(Xt.index+Xt[0].length);if(Je){var rt=pt.parentNode;rt.insertBefore(Le.createTextNode(Je),pt.nextSibling)}tn(pt),ht||pt.parentNode.removeChild(pt)}}}function tn(pt){for(;!pt.nextSibling;)if(pt=pt.parentNode,!pt)return;function on(Xt,ht){var Je=ht?Xt.cloneNode(!1):Xt,rt=Xt.parentNode;if(rt){var Te=on(rt,1),Me=Xt.nextSibling;Te.appendChild(Je);for(var Ie=Me;Ie;Ie=Me)Me=Ie.nextSibling,Te.appendChild(Ie)}return Je}for(var hn=on(pt.nextSibling,0),Ot;(Ot=hn.parentNode)&&Ot.nodeType===1;)hn=Ot;gt.push(hn)}for(var Zt=0;Zt=rt&&(Ct+=2),Le>=Te&&(Hn+=2)}}finally{Ot&&(Ot.style.display=Xt)}}var et={};function je(Ve,dt){for(var Qe=dt.length;--Qe>=0;){var pe=dt[Qe];et.hasOwnProperty(pe)?p.console&&console.warn("cannot override language handler %s",pe):et[pe]=Ve}}function me(Ve,dt){return Ve&&et.hasOwnProperty(Ve)||(Ve=/^\s*]*(?:>|$)/],[n,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[g,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),je(ie([[x,/^[\s]+/,null,` \r -`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[T,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[U,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[g,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),je(ie([],[[F,/^[\s\S]+/]]),["uq.val"]),je(le({keywords:d,hashComments:!0,cStyleComments:!0,types:D}),["c","cc","cpp","cxx","cyc","m"]),je(le({keywords:"null,true,false"}),["json"]),je(le({keywords:o,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:D}),["cs"]),je(le({keywords:m,cStyleComments:!0}),["java"]),je(le({keywords:s,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),je(le({keywords:t,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),je(le({keywords:i,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),je(le({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),je(le({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),je(le({keywords:c,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),je(ie([],[[C,/^[\s\S]+/]]),["regex"]);function fe(Ve){var dt=Ve.langExtension;try{var Qe=A(Ve.sourceNode,Ve.pre),pe=Qe.sourceCode;Ve.sourceCode=pe,Ve.spans=Qe.spans,Ve.basePos=0,me(dt,pe)(Ve),He(Ve)}catch(xe){p.console&&console.log(xe&&xe.stack||xe)}}function Ae(Ve,dt,Qe){var pe=Qe||!1,xe=dt||null,Le=document.createElement("div");Le.innerHTML="

"+Ve+"
",Le=Le.firstChild,pe&&Se(Le,pe,!0);var Ye={langExtension:xe,numberLines:pe,sourceNode:Le,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return fe(Ye),Le.innerHTML}function he(Ve,dt){var Qe=dt||document.body,pe=Qe.ownerDocument||document;function xe(Je){return Qe.getElementsByTagName(Je)}for(var Le=[xe("pre"),xe("code"),xe("xmp")],Ye=[],gt=0;gt-R&&hR||h<-R}function c(h,g,x,T,S){var E=1-S;return E*E*(E*h+3*S*g)+S*S*(S*T+3*E*x)}function f(h,g,x,T,S){var E=1-S;return 3*(((g-h)*E+2*(x-g)*S)*E+(T-x)*S*S)}function i(h,g,x,T,S,E){var U=T+3*(g-x)-h,F=3*(x-g*2+h),P=3*(g-h),H=h-S,N=F*F-3*U*P,A=F*P-9*U*H,G=P*P-3*F*H,K=0;if(m(N)&&m(A))if(m(F))E[0]=0;else{var $=-P/F;$>=0&&$<=1&&(E[K++]=$)}else{var ie=A*A-4*N*G;if(m(ie)){var le=A/N,$=-F/U+le,de=-le/2;$>=0&&$<=1&&(E[K++]=$),de>=0&&de<=1&&(E[K++]=de)}else if(ie>0){var Se=O(ie),He=N*F+1.5*U*(-A+Se),et=N*F+1.5*U*(-A-Se);He<0?He=-B(-He,a):He=B(He,a),et<0?et=-B(-et,a):et=B(et,a);var $=(-F-(He+et))/(3*U);$>=0&&$<=1&&(E[K++]=$)}else{var je=(2*N*F-3*U*A)/(2*O(N*N*N)),me=Math.acos(je)/3,fe=O(N),Ae=Math.cos(me),$=(-F-2*fe*Ae)/(3*U),de=(-F+fe*(Ae+p*Math.sin(me)))/(3*U),he=(-F+fe*(Ae-p*Math.sin(me)))/(3*U);$>=0&&$<=1&&(E[K++]=$),de>=0&&de<=1&&(E[K++]=de),he>=0&&he<=1&&(E[K++]=he)}}return K}function t(h,g,x,T,S){var E=6*x-12*g+6*h,U=9*g+3*T-3*h-9*x,F=3*g-3*h,P=0;if(m(U)){if(o(E)){var H=-F/E;H>=0&&H<=1&&(S[P++]=H)}}else{var N=E*E-4*U*F;if(m(N))S[0]=-E/(2*U);else if(N>0){var A=O(N),H=(-E+A)/(2*U),G=(-E-A)/(2*U);H>=0&&H<=1&&(S[P++]=H),G>=0&&G<=1&&(S[P++]=G)}}return P}function l(h,g,x,T,S,E){var U=(g-h)*S+h,F=(x-g)*S+g,P=(T-x)*S+x,H=(F-U)*S+U,N=(P-F)*S+F,A=(N-H)*S+H;E[0]=h,E[1]=U,E[2]=H,E[3]=A,E[4]=A,E[5]=N,E[6]=P,E[7]=T}function s(h,g,x,T,S,E,U,F,P,H,N){var A,G=.005,K=Infinity,$,ie,le,de;b[0]=P,b[1]=H;for(var Se=0;Se<1;Se+=.05)u[0]=c(h,x,S,U,Se),u[1]=c(g,T,E,F,Se),le=k(b,u),le=0&&le=0&&H<=1&&(S[P++]=H)}}else{var N=U*U-4*E*F;if(m(N)){var H=-U/(2*E);H>=0&&H<=1&&(S[P++]=H)}else if(N>0){var A=O(N),H=(-U+A)/(2*E),G=(-U-A)/(2*E);H>=0&&H<=1&&(S[P++]=H),G>=0&&G<=1&&(S[P++]=G)}}return P}function v(h,g,x){var T=h+x-2*g;return T===0?.5:(h-g)/T}function n(h,g,x,T,S){var E=(g-h)*T+h,U=(x-g)*T+g,F=(U-E)*T+E;S[0]=h,S[1]=E,S[2]=F,S[3]=F,S[4]=U,S[5]=x}function _(h,g,x,T,S,E,U,F,P){var H,N=.005,A=Infinity;b[0]=U,b[1]=F;for(var G=0;G<1;G+=.05){u[0]=w(h,x,S,G),u[1]=w(g,T,E,G);var K=k(b,u);K=0&&K=0;--s)if(l[s]===t)return!0;return!1}),i):null:i[0]},m.prototype.update=function(c,f){if(!c)return;var i=this.getDefs(!1);if(c[this._domName]&&i.contains(c[this._domName]))typeof f=="function"&&f(c);else{var t=this.add(c);t&&(c[this._domName]=t)}},m.prototype.addDom=function(c){var f=this.getDefs(!0);f.appendChild(c)},m.prototype.removeDom=function(c){var f=this.getDefs(!1);f&&c[this._domName]&&(f.removeChild(c[this._domName]),c[this._domName]=null)},m.prototype.getDoms=function(){var c=this.getDefs(!1);if(!c)return[];var f=[];return k.each(this._tagNames,function(i){var t=c.getElementsByTagName(i);f=f.concat([].slice.call(t))}),f},m.prototype.markAllUnused=function(){var c=this.getDoms(),f=this;k.each(c,function(i){i[f._markLabel]=u})},m.prototype.markUsed=function(c){c&&(c[this._markLabel]=d)},m.prototype.removeUnused=function(){var c=this.getDefs(!1);if(!c)return;var f=this.getDoms(),i=this;k.each(f,function(t){t[i._markLabel]!==d&&c.removeChild(t)})},m.prototype.getSvgProxy=function(c){return c instanceof B?p:c instanceof O?a:c instanceof R?b:p},m.prototype.getTextSvgElement=function(c){return c.__textSvgEl},m.prototype.getSvgElement=function(c){return c.__svgEl};var o=m;Ge.exports=o},T1X5:function(Ge,re){Ge.exports="data:image/png;base64,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"},T6xi:function(Ge,re,y){var Q=y("YgsL"),W=y("nCxF");function k(B,O,R){var M=O.points,p=O.smooth;if(M&&M.length>=2){if(p&&p!=="spline"){var a=W(M,p,R,O.smoothConstraint);B.moveTo(M[0][0],M[0][1]);for(var b=M.length,u=0;u<(R?b:b-1);u++){var d=a[u*2],m=a[u*2+1],o=M[(u+1)%b];B.bezierCurveTo(d[0],d[1],m[0],m[1],o[0],o[1])}}else{p==="spline"&&(M=Q(M,R)),B.moveTo(M[0][0],M[0][1]);for(var u=1,c=M.length;u=0),O.set("isFirefox",B.indexOf("Firefox")>=0),O.set("isChrome",B.indexOf("Chrome")>=0),O.set("isSafari",B.indexOf("Safari")>=0);const R=Object.prototype.hasOwnProperty;class M{static has(P){return d.create(P)}static equals(P,H){return m.create(P,H)}static regex(P,H){return C.create(P,H)}static not(P){return i.create(P)}static and(...P){return _.create(P,null)}static or(...P){return h.create(P,null,!0)}static deserialize(P,H=!1){return P?this._deserializeOrExpression(P,H):void 0}static _deserializeOrExpression(P,H){let N=P.split("||");return h.create(N.map(A=>this._deserializeAndExpression(A,H)),null,!0)}static _deserializeAndExpression(P,H){let N=P.split("&&");return _.create(N.map(A=>this._deserializeOne(A,H)),null)}static _deserializeOne(P,H){if(P=P.trim(),P.indexOf("!=")>=0){let N=P.split("!=");return f.create(N[0].trim(),this._deserializeValue(N[1],H))}if(P.indexOf("==")>=0){let N=P.split("==");return m.create(N[0].trim(),this._deserializeValue(N[1],H))}if(P.indexOf("=~")>=0){let N=P.split("=~");return C.create(N[0].trim(),this._deserializeRegexValue(N[1],H))}if(P.indexOf(" in ")>=0){let N=P.split(" in ");return o.create(N[0].trim(),N[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(P)){const N=P.split(">=");return s.create(N[0].trim(),N[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(P)){const N=P.split(">");return l.create(N[0].trim(),N[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(P)){const N=P.split("<=");return D.create(N[0].trim(),N[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(P)){const N=P.split("<");return w.create(N[0].trim(),N[1].trim())}return/^\!\s*/.test(P)?i.create(P.substr(1).trim()):d.create(P)}static _deserializeValue(P,H){if(P=P.trim(),P==="true")return!0;if(P==="false")return!1;let N=/^'([^']*)'$/.exec(P);return N?N[1].trim():P}static _deserializeRegexValue(P,H){if(Object(W.C)(P)){if(H)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let N=P.indexOf("/"),A=P.lastIndexOf("/");if(N===A||N<0){if(H)throw new Error(`bad regexp-value '${P}', missing /-enclosure`);return console.warn(`bad regexp-value '${P}', missing /-enclosure`),null}let G=P.slice(N+1,A),K=P[A+1]==="i"?"i":"";try{return new RegExp(G,K)}catch($){if(H)throw new Error(`bad regexp-value '${P}', parse error: ${$}`);return console.warn(`bad regexp-value '${P}', parse error: ${$}`),null}}}function p(P,H){const N=P?P.substituteConstants():void 0,A=H?H.substituteConstants():void 0;return!N&&!A?!0:!N||!A?!1:N.equals(A)}function a(P,H){return P.cmp(H)}class b{constructor(){this.type=0}cmp(P){return this.type-P.type}equals(P){return P.type===this.type}substituteConstants(){return this}evaluate(P){return!1}serialize(){return"false"}keys(){return[]}negate(){return u.INSTANCE}}b.INSTANCE=new b;class u{constructor(){this.type=1}cmp(P){return this.type-P.type}equals(P){return P.type===this.type}substituteConstants(){return this}evaluate(P){return!0}serialize(){return"true"}keys(){return[]}negate(){return b.INSTANCE}}u.INSTANCE=new u;class d{constructor(P,H){this.key=P,this.negated=H,this.type=2}static create(P,H=null){const N=O.get(P);return typeof N=="boolean"?N?u.INSTANCE:b.INSTANCE:new d(P,H)}cmp(P){return P.type!==this.type?this.type-P.type:S(this.key,P.key)}equals(P){return P.type===this.type?this.key===P.key:!1}substituteConstants(){const P=O.get(this.key);return typeof P=="boolean"?P?u.INSTANCE:b.INSTANCE:this}evaluate(P){return!!P.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=i.create(this.key,this)),this.negated}}class m{constructor(P,H,N){this.key=P,this.value=H,this.negated=N,this.type=4}static create(P,H,N=null){if(typeof H=="boolean")return H?d.create(P,N):i.create(P,N);const A=O.get(P);if(typeof A=="boolean"){const G=A?"true":"false";return H===G?u.INSTANCE:b.INSTANCE}return new m(P,H,N)}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){const P=O.get(this.key);if(typeof P=="boolean"){const H=P?"true":"false";return this.value===H?u.INSTANCE:b.INSTANCE}return this}evaluate(P){return P.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class o{constructor(P,H){this.key=P,this.valueKey=H,this.type=10,this.negated=null}static create(P,H){return new o(P,H)}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.valueKey,P.key,P.valueKey)}equals(P){return P.type===this.type?this.key===P.key&&this.valueKey===P.valueKey:!1}substituteConstants(){return this}evaluate(P){const H=P.getValue(this.valueKey),N=P.getValue(this.key);return Array.isArray(H)?H.indexOf(N)>=0:typeof N=="string"&&typeof H=="object"&&H!==null?R.call(H,N):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=c.create(this)),this.negated}}class c{constructor(P){this._actual=P,this.type=11}static create(P){return new c(P)}cmp(P){return P.type!==this.type?this.type-P.type:this._actual.cmp(P._actual)}equals(P){return P.type===this.type?this._actual.equals(P._actual):!1}substituteConstants(){return this}evaluate(P){return!this._actual.evaluate(P)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class f{constructor(P,H,N){this.key=P,this.value=H,this.negated=N,this.type=5}static create(P,H,N=null){if(typeof H=="boolean")return H?i.create(P,N):d.create(P,N);const A=O.get(P);if(typeof A=="boolean"){const G=A?"true":"false";return H===G?b.INSTANCE:u.INSTANCE}return new f(P,H,N)}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){const P=O.get(this.key);if(typeof P=="boolean"){const H=P?"true":"false";return this.value===H?b.INSTANCE:u.INSTANCE}return this}evaluate(P){return P.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this.value,this)),this.negated}}class i{constructor(P,H){this.key=P,this.negated=H,this.type=3}static create(P,H=null){const N=O.get(P);return typeof N=="boolean"?N?b.INSTANCE:u.INSTANCE:new i(P,H)}cmp(P){return P.type!==this.type?this.type-P.type:S(this.key,P.key)}equals(P){return P.type===this.type?this.key===P.key:!1}substituteConstants(){const P=O.get(this.key);return typeof P=="boolean"?P?b.INSTANCE:u.INSTANCE:this}evaluate(P){return!P.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=d.create(this.key,this)),this.negated}}function t(P,H){if(typeof P=="string"){const N=parseFloat(P);isNaN(N)||(P=N)}return typeof P=="string"||typeof P=="number"?H(P):b.INSTANCE}class l{constructor(P,H,N){this.key=P,this.value=H,this.negated=N,this.type=12}static create(P,H,N=null){return t(H,A=>new l(P,A,N))}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}class s{constructor(P,H,N){this.key=P,this.value=H,this.negated=N,this.type=13}static create(P,H,N=null){return t(H,A=>new s(P,A,N))}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class w{constructor(P,H,N){this.key=P,this.value=H,this.negated=N,this.type=14}static create(P,H,N=null){return t(H,A=>new w(P,A,N))}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.getValue(this.key))new D(P,A,N))}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this.value,this)),this.negated}}class C{constructor(P,H){this.key=P,this.regexp=H,this.type=7,this.negated=null}static create(P,H){return new C(P,H)}cmp(P){if(P.type!==this.type)return this.type-P.type;if(this.keyP.key)return 1;const H=this.regexp?this.regexp.source:"",N=P.regexp?P.regexp.source:"";return HN?1:0}equals(P){if(P.type===this.type){const H=this.regexp?this.regexp.source:"",N=P.regexp?P.regexp.source:"";return this.key===P.key&&H===N}return!1}substituteConstants(){return this}evaluate(P){let H=P.getValue(this.key);return this.regexp?this.regexp.test(H):!1}serialize(){const P=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${P}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this)),this.negated}}class v{constructor(P){this._actual=P,this.type=8}static create(P){return new v(P)}cmp(P){return P.type!==this.type?this.type-P.type:this._actual.cmp(P._actual)}equals(P){return P.type===this.type?this._actual.equals(P._actual):!1}substituteConstants(){return this}evaluate(P){return!this._actual.evaluate(P)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function n(P){let H=null;for(let N=0,A=P.length;NP.expr.length)return 1;for(let H=0,N=this.expr.length;H1;){const G=N[N.length-1];if(G.type!==9)break;N.pop();const K=N.pop(),$=N.length===0,ie=h.create(G.expr.map(le=>_.create([le,K],null)),null,$);ie&&(N.push(ie),N.sort(a))}return N.length===1?N[0]:new _(N,H)}serialize(){return this.expr.map(P=>P.serialize()).join(" && ")}keys(){const P=[];for(let H of this.expr)P.push(...H.keys());return P}negate(){if(!this.negated){const P=[];for(let H of this.expr)P.push(H.negate());this.negated=h.create(P,this,!0)}return this.negated}}class h{constructor(P,H){this.expr=P,this.negated=H,this.type=9}static create(P,H,N){return h._normalizeArr(P,H,N)}cmp(P){if(P.type!==this.type)return this.type-P.type;if(this.expr.lengthP.expr.length)return 1;for(let H=0,N=this.expr.length;HP.serialize()).join(" || ")}keys(){const P=[];for(let H of this.expr)P.push(...H.keys());return P}negate(){if(!this.negated){let P=[];for(let H of this.expr)P.push(H.negate());for(;P.length>1;){const H=P.shift(),N=P.shift(),A=[];for(const K of F(H))for(const $ of F(N))A.push(_.create([K,$],null));const G=P.length===0;P.unshift(h.create(A,null,G))}this.negated=P[0]}return this.negated}}class g extends d{constructor(P,H,N){super(P,null);this._defaultValue=H,typeof N=="object"?g._info.push(Object.assign(Object.assign({},N),{key:P})):N!==!0&&g._info.push({key:P,description:N,type:H!=null?typeof H:void 0})}static all(){return g._info.values()}bindTo(P){return P.createKey(this.key,this._defaultValue)}getValue(P){return P.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(P){return m.create(this.key,P)}}g._info=[];const x=Object(k.c)("contextKeyService"),T="setContext";function S(P,H){return PH?1:0}function E(P,H,N,A){return PN?1:HA?1:0}function U(P,H){if(H.type===6&&P.type!==9&&P.type!==6){for(const G of H.expr)if(P.equals(G))return!0}const N=P.negate(),A=F(N).concat(F(H));A.sort(a);for(let G=0;G=0;o--)if(this.__items[o].match(m))return!0;return!1},b.prototype.set_indent=function(m,o){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=o||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},b.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},b.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},b.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},b.prototype.is_empty=function(){return this.__items.length===0},b.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},b.prototype.push=function(m){this.__items.push(m);var o=m.lastIndexOf(` + \xA0`]);var Zt="^.[^\\s\\w.$@'\"`/\\\\]*";return Ve.regexLiterals&&(Zt+="(?!s*/)"),Qe.push([h,/^@[a-z_$][a-z_$@0-9]*/i,null],[_,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[x,/^[a-z_$][a-z_$@0-9]*/i,null],[h,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[x,/^\\[\s\S]?/,null],[g,new RegExp(Zt),null]),ie(dt,Qe)}var de=le({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Se(Ve,dt,Qe){for(var pe=/(?:^|\s)nocode(?:\s|$)/,xe=/\r\n?|\n/,Le=Ve.ownerDocument,Ye=Le.createElement("li");Ve.firstChild;)Ye.appendChild(Ve.firstChild);var gt=[Ye];function Ct(mt){var on=mt.nodeType;if(on==1&&!pe.test(mt.className))if(mt.nodeName==="br")tn(mt),mt.parentNode&&mt.parentNode.removeChild(mt);else for(var hn=mt.firstChild;hn;hn=hn.nextSibling)Ct(hn);else if((on==3||on==4)&&Qe){var Ot=mt.nodeValue,Xt=Ot.match(xe);if(Xt){var ht=Ot.substring(0,Xt.index);mt.nodeValue=ht;var Je=Ot.substring(Xt.index+Xt[0].length);if(Je){var rt=mt.parentNode;rt.insertBefore(Le.createTextNode(Je),mt.nextSibling)}tn(mt),ht||mt.parentNode.removeChild(mt)}}}function tn(mt){for(;!mt.nextSibling;)if(mt=mt.parentNode,!mt)return;function on(Xt,ht){var Je=ht?Xt.cloneNode(!1):Xt,rt=Xt.parentNode;if(rt){var Te=on(rt,1),Me=Xt.nextSibling;Te.appendChild(Je);for(var Ie=Me;Ie;Ie=Me)Me=Ie.nextSibling,Te.appendChild(Ie)}return Je}for(var hn=on(mt.nextSibling,0),Ot;(Ot=hn.parentNode)&&Ot.nodeType===1;)hn=Ot;gt.push(hn)}for(var Zt=0;Zt=rt&&(Ct+=2),Le>=Te&&(Hn+=2)}}finally{Ot&&(Ot.style.display=Xt)}}var et={};function je(Ve,dt){for(var Qe=dt.length;--Qe>=0;){var pe=dt[Qe];et.hasOwnProperty(pe)?p.console&&console.warn("cannot override language handler %s",pe):et[pe]=Ve}}function me(Ve,dt){return Ve&&et.hasOwnProperty(Ve)||(Ve=/^\s*]*(?:>|$)/],[n,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[g,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),je(ie([[x,/^[\s]+/,null,` \r +`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[T,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[U,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[g,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),je(ie([],[[F,/^[\s\S]+/]]),["uq.val"]),je(le({keywords:d,hashComments:!0,cStyleComments:!0,types:D}),["c","cc","cpp","cxx","cyc","m"]),je(le({keywords:"null,true,false"}),["json"]),je(le({keywords:o,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:D}),["cs"]),je(le({keywords:m,cStyleComments:!0}),["java"]),je(le({keywords:s,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),je(le({keywords:t,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),je(le({keywords:i,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),je(le({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),je(le({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),je(le({keywords:c,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),je(ie([],[[C,/^[\s\S]+/]]),["regex"]);function fe(Ve){var dt=Ve.langExtension;try{var Qe=A(Ve.sourceNode,Ve.pre),pe=Qe.sourceCode;Ve.sourceCode=pe,Ve.spans=Qe.spans,Ve.basePos=0,me(dt,pe)(Ve),He(Ve)}catch(xe){p.console&&console.log(xe&&xe.stack||xe)}}function Ae(Ve,dt,Qe){var pe=Qe||!1,xe=dt||null,Le=document.createElement("div");Le.innerHTML="
"+Ve+"
",Le=Le.firstChild,pe&&Se(Le,pe,!0);var Ye={langExtension:xe,numberLines:pe,sourceNode:Le,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return fe(Ye),Le.innerHTML}function he(Ve,dt){var Qe=dt||document.body,pe=Qe.ownerDocument||document;function xe(Je){return Qe.getElementsByTagName(Je)}for(var Le=[xe("pre"),xe("code"),xe("xmp")],Ye=[],gt=0;gt-R&&hR||h<-R}function c(h,g,x,T,S){var E=1-S;return E*E*(E*h+3*S*g)+S*S*(S*T+3*E*x)}function f(h,g,x,T,S){var E=1-S;return 3*(((g-h)*E+2*(x-g)*S)*E+(T-x)*S*S)}function i(h,g,x,T,S,E){var U=T+3*(g-x)-h,F=3*(x-g*2+h),P=3*(g-h),H=h-S,N=F*F-3*U*P,A=F*P-9*U*H,G=P*P-3*F*H,K=0;if(m(N)&&m(A))if(m(F))E[0]=0;else{var $=-P/F;$>=0&&$<=1&&(E[K++]=$)}else{var ie=A*A-4*N*G;if(m(ie)){var le=A/N,$=-F/U+le,de=-le/2;$>=0&&$<=1&&(E[K++]=$),de>=0&&de<=1&&(E[K++]=de)}else if(ie>0){var Se=O(ie),He=N*F+1.5*U*(-A+Se),et=N*F+1.5*U*(-A-Se);He<0?He=-B(-He,a):He=B(He,a),et<0?et=-B(-et,a):et=B(et,a);var $=(-F-(He+et))/(3*U);$>=0&&$<=1&&(E[K++]=$)}else{var je=(2*N*F-3*U*A)/(2*O(N*N*N)),me=Math.acos(je)/3,fe=O(N),Ae=Math.cos(me),$=(-F-2*fe*Ae)/(3*U),de=(-F+fe*(Ae+p*Math.sin(me)))/(3*U),he=(-F+fe*(Ae-p*Math.sin(me)))/(3*U);$>=0&&$<=1&&(E[K++]=$),de>=0&&de<=1&&(E[K++]=de),he>=0&&he<=1&&(E[K++]=he)}}return K}function t(h,g,x,T,S){var E=6*x-12*g+6*h,U=9*g+3*T-3*h-9*x,F=3*g-3*h,P=0;if(m(U)){if(o(E)){var H=-F/E;H>=0&&H<=1&&(S[P++]=H)}}else{var N=E*E-4*U*F;if(m(N))S[0]=-E/(2*U);else if(N>0){var A=O(N),H=(-E+A)/(2*U),G=(-E-A)/(2*U);H>=0&&H<=1&&(S[P++]=H),G>=0&&G<=1&&(S[P++]=G)}}return P}function l(h,g,x,T,S,E){var U=(g-h)*S+h,F=(x-g)*S+g,P=(T-x)*S+x,H=(F-U)*S+U,N=(P-F)*S+F,A=(N-H)*S+H;E[0]=h,E[1]=U,E[2]=H,E[3]=A,E[4]=A,E[5]=N,E[6]=P,E[7]=T}function s(h,g,x,T,S,E,U,F,P,H,N){var A,G=.005,K=Infinity,$,ie,le,de;b[0]=P,b[1]=H;for(var Se=0;Se<1;Se+=.05)u[0]=c(h,x,S,U,Se),u[1]=c(g,T,E,F,Se),le=k(b,u),le=0&&le=0&&H<=1&&(S[P++]=H)}}else{var N=U*U-4*E*F;if(m(N)){var H=-U/(2*E);H>=0&&H<=1&&(S[P++]=H)}else if(N>0){var A=O(N),H=(-U+A)/(2*E),G=(-U-A)/(2*E);H>=0&&H<=1&&(S[P++]=H),G>=0&&G<=1&&(S[P++]=G)}}return P}function v(h,g,x){var T=h+x-2*g;return T===0?.5:(h-g)/T}function n(h,g,x,T,S){var E=(g-h)*T+h,U=(x-g)*T+g,F=(U-E)*T+E;S[0]=h,S[1]=E,S[2]=F,S[3]=F,S[4]=U,S[5]=x}function _(h,g,x,T,S,E,U,F,P){var H,N=.005,A=Infinity;b[0]=U,b[1]=F;for(var G=0;G<1;G+=.05){u[0]=w(h,x,S,G),u[1]=w(g,T,E,G);var K=k(b,u);K=0&&K=0;--s)if(l[s]===t)return!0;return!1}),i):null:i[0]},m.prototype.update=function(c,f){if(!c)return;var i=this.getDefs(!1);if(c[this._domName]&&i.contains(c[this._domName]))typeof f=="function"&&f(c);else{var t=this.add(c);t&&(c[this._domName]=t)}},m.prototype.addDom=function(c){var f=this.getDefs(!0);f.appendChild(c)},m.prototype.removeDom=function(c){var f=this.getDefs(!1);f&&c[this._domName]&&(f.removeChild(c[this._domName]),c[this._domName]=null)},m.prototype.getDoms=function(){var c=this.getDefs(!1);if(!c)return[];var f=[];return k.each(this._tagNames,function(i){var t=c.getElementsByTagName(i);f=f.concat([].slice.call(t))}),f},m.prototype.markAllUnused=function(){var c=this.getDoms(),f=this;k.each(c,function(i){i[f._markLabel]=u})},m.prototype.markUsed=function(c){c&&(c[this._markLabel]=d)},m.prototype.removeUnused=function(){var c=this.getDefs(!1);if(!c)return;var f=this.getDoms(),i=this;k.each(f,function(t){t[i._markLabel]!==d&&c.removeChild(t)})},m.prototype.getSvgProxy=function(c){return c instanceof B?p:c instanceof O?a:c instanceof R?b:p},m.prototype.getTextSvgElement=function(c){return c.__textSvgEl},m.prototype.getSvgElement=function(c){return c.__svgEl};var o=m;Ge.exports=o},T1X5:function(Ge,re){Ge.exports="data:image/png;base64,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"},T6xi:function(Ge,re,y){var Q=y("YgsL"),W=y("nCxF");function k(B,O,R){var M=O.points,p=O.smooth;if(M&&M.length>=2){if(p&&p!=="spline"){var a=W(M,p,R,O.smoothConstraint);B.moveTo(M[0][0],M[0][1]);for(var b=M.length,u=0;u<(R?b:b-1);u++){var d=a[u*2],m=a[u*2+1],o=M[(u+1)%b];B.bezierCurveTo(d[0],d[1],m[0],m[1],o[0],o[1])}}else{p==="spline"&&(M=Q(M,R)),B.moveTo(M[0][0],M[0][1]);for(var u=1,c=M.length;u=0),O.set("isFirefox",B.indexOf("Firefox")>=0),O.set("isChrome",B.indexOf("Chrome")>=0),O.set("isSafari",B.indexOf("Safari")>=0);const R=Object.prototype.hasOwnProperty;class M{static has(P){return d.create(P)}static equals(P,H){return m.create(P,H)}static regex(P,H){return C.create(P,H)}static not(P){return i.create(P)}static and(...P){return _.create(P,null)}static or(...P){return h.create(P,null,!0)}static deserialize(P,H=!1){return P?this._deserializeOrExpression(P,H):void 0}static _deserializeOrExpression(P,H){let N=P.split("||");return h.create(N.map(A=>this._deserializeAndExpression(A,H)),null,!0)}static _deserializeAndExpression(P,H){let N=P.split("&&");return _.create(N.map(A=>this._deserializeOne(A,H)),null)}static _deserializeOne(P,H){if(P=P.trim(),P.indexOf("!=")>=0){let N=P.split("!=");return f.create(N[0].trim(),this._deserializeValue(N[1],H))}if(P.indexOf("==")>=0){let N=P.split("==");return m.create(N[0].trim(),this._deserializeValue(N[1],H))}if(P.indexOf("=~")>=0){let N=P.split("=~");return C.create(N[0].trim(),this._deserializeRegexValue(N[1],H))}if(P.indexOf(" in ")>=0){let N=P.split(" in ");return o.create(N[0].trim(),N[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(P)){const N=P.split(">=");return s.create(N[0].trim(),N[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(P)){const N=P.split(">");return l.create(N[0].trim(),N[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(P)){const N=P.split("<=");return D.create(N[0].trim(),N[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(P)){const N=P.split("<");return w.create(N[0].trim(),N[1].trim())}return/^\!\s*/.test(P)?i.create(P.substr(1).trim()):d.create(P)}static _deserializeValue(P,H){if(P=P.trim(),P==="true")return!0;if(P==="false")return!1;let N=/^'([^']*)'$/.exec(P);return N?N[1].trim():P}static _deserializeRegexValue(P,H){if(Object(W.C)(P)){if(H)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let N=P.indexOf("/"),A=P.lastIndexOf("/");if(N===A||N<0){if(H)throw new Error(`bad regexp-value '${P}', missing /-enclosure`);return console.warn(`bad regexp-value '${P}', missing /-enclosure`),null}let G=P.slice(N+1,A),K=P[A+1]==="i"?"i":"";try{return new RegExp(G,K)}catch($){if(H)throw new Error(`bad regexp-value '${P}', parse error: ${$}`);return console.warn(`bad regexp-value '${P}', parse error: ${$}`),null}}}function p(P,H){const N=P?P.substituteConstants():void 0,A=H?H.substituteConstants():void 0;return!N&&!A?!0:!N||!A?!1:N.equals(A)}function a(P,H){return P.cmp(H)}class b{constructor(){this.type=0}cmp(P){return this.type-P.type}equals(P){return P.type===this.type}substituteConstants(){return this}evaluate(P){return!1}serialize(){return"false"}keys(){return[]}negate(){return u.INSTANCE}}b.INSTANCE=new b;class u{constructor(){this.type=1}cmp(P){return this.type-P.type}equals(P){return P.type===this.type}substituteConstants(){return this}evaluate(P){return!0}serialize(){return"true"}keys(){return[]}negate(){return b.INSTANCE}}u.INSTANCE=new u;class d{constructor(P,H){this.key=P,this.negated=H,this.type=2}static create(P,H=null){const N=O.get(P);return typeof N=="boolean"?N?u.INSTANCE:b.INSTANCE:new d(P,H)}cmp(P){return P.type!==this.type?this.type-P.type:S(this.key,P.key)}equals(P){return P.type===this.type?this.key===P.key:!1}substituteConstants(){const P=O.get(this.key);return typeof P=="boolean"?P?u.INSTANCE:b.INSTANCE:this}evaluate(P){return!!P.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=i.create(this.key,this)),this.negated}}class m{constructor(P,H,N){this.key=P,this.value=H,this.negated=N,this.type=4}static create(P,H,N=null){if(typeof H=="boolean")return H?d.create(P,N):i.create(P,N);const A=O.get(P);if(typeof A=="boolean"){const G=A?"true":"false";return H===G?u.INSTANCE:b.INSTANCE}return new m(P,H,N)}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){const P=O.get(this.key);if(typeof P=="boolean"){const H=P?"true":"false";return this.value===H?u.INSTANCE:b.INSTANCE}return this}evaluate(P){return P.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class o{constructor(P,H){this.key=P,this.valueKey=H,this.type=10,this.negated=null}static create(P,H){return new o(P,H)}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.valueKey,P.key,P.valueKey)}equals(P){return P.type===this.type?this.key===P.key&&this.valueKey===P.valueKey:!1}substituteConstants(){return this}evaluate(P){const H=P.getValue(this.valueKey),N=P.getValue(this.key);return Array.isArray(H)?H.indexOf(N)>=0:typeof N=="string"&&typeof H=="object"&&H!==null?R.call(H,N):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=c.create(this)),this.negated}}class c{constructor(P){this._actual=P,this.type=11}static create(P){return new c(P)}cmp(P){return P.type!==this.type?this.type-P.type:this._actual.cmp(P._actual)}equals(P){return P.type===this.type?this._actual.equals(P._actual):!1}substituteConstants(){return this}evaluate(P){return!this._actual.evaluate(P)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class f{constructor(P,H,N){this.key=P,this.value=H,this.negated=N,this.type=5}static create(P,H,N=null){if(typeof H=="boolean")return H?i.create(P,N):d.create(P,N);const A=O.get(P);if(typeof A=="boolean"){const G=A?"true":"false";return H===G?b.INSTANCE:u.INSTANCE}return new f(P,H,N)}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){const P=O.get(this.key);if(typeof P=="boolean"){const H=P?"true":"false";return this.value===H?b.INSTANCE:u.INSTANCE}return this}evaluate(P){return P.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this.value,this)),this.negated}}class i{constructor(P,H){this.key=P,this.negated=H,this.type=3}static create(P,H=null){const N=O.get(P);return typeof N=="boolean"?N?b.INSTANCE:u.INSTANCE:new i(P,H)}cmp(P){return P.type!==this.type?this.type-P.type:S(this.key,P.key)}equals(P){return P.type===this.type?this.key===P.key:!1}substituteConstants(){const P=O.get(this.key);return typeof P=="boolean"?P?b.INSTANCE:u.INSTANCE:this}evaluate(P){return!P.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=d.create(this.key,this)),this.negated}}function t(P,H){if(typeof P=="string"){const N=parseFloat(P);isNaN(N)||(P=N)}return typeof P=="string"||typeof P=="number"?H(P):b.INSTANCE}class l{constructor(P,H,N){this.key=P,this.value=H,this.negated=N,this.type=12}static create(P,H,N=null){return t(H,A=>new l(P,A,N))}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}class s{constructor(P,H,N){this.key=P,this.value=H,this.negated=N,this.type=13}static create(P,H,N=null){return t(H,A=>new s(P,A,N))}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class w{constructor(P,H,N){this.key=P,this.value=H,this.negated=N,this.type=14}static create(P,H,N=null){return t(H,A=>new w(P,A,N))}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.getValue(this.key))new D(P,A,N))}cmp(P){return P.type!==this.type?this.type-P.type:E(this.key,this.value,P.key,P.value)}equals(P){return P.type===this.type?this.key===P.key&&this.value===P.value:!1}substituteConstants(){return this}evaluate(P){return typeof this.value=="string"?!1:parseFloat(P.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this.value,this)),this.negated}}class C{constructor(P,H){this.key=P,this.regexp=H,this.type=7,this.negated=null}static create(P,H){return new C(P,H)}cmp(P){if(P.type!==this.type)return this.type-P.type;if(this.keyP.key)return 1;const H=this.regexp?this.regexp.source:"",N=P.regexp?P.regexp.source:"";return HN?1:0}equals(P){if(P.type===this.type){const H=this.regexp?this.regexp.source:"",N=P.regexp?P.regexp.source:"";return this.key===P.key&&H===N}return!1}substituteConstants(){return this}evaluate(P){let H=P.getValue(this.key);return this.regexp?this.regexp.test(H):!1}serialize(){const P=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${P}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this)),this.negated}}class v{constructor(P){this._actual=P,this.type=8}static create(P){return new v(P)}cmp(P){return P.type!==this.type?this.type-P.type:this._actual.cmp(P._actual)}equals(P){return P.type===this.type?this._actual.equals(P._actual):!1}substituteConstants(){return this}evaluate(P){return!this._actual.evaluate(P)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function n(P){let H=null;for(let N=0,A=P.length;NP.expr.length)return 1;for(let H=0,N=this.expr.length;H1;){const G=N[N.length-1];if(G.type!==9)break;N.pop();const K=N.pop(),$=N.length===0,ie=h.create(G.expr.map(le=>_.create([le,K],null)),null,$);ie&&(N.push(ie),N.sort(a))}return N.length===1?N[0]:new _(N,H)}serialize(){return this.expr.map(P=>P.serialize()).join(" && ")}keys(){const P=[];for(let H of this.expr)P.push(...H.keys());return P}negate(){if(!this.negated){const P=[];for(let H of this.expr)P.push(H.negate());this.negated=h.create(P,this,!0)}return this.negated}}class h{constructor(P,H){this.expr=P,this.negated=H,this.type=9}static create(P,H,N){return h._normalizeArr(P,H,N)}cmp(P){if(P.type!==this.type)return this.type-P.type;if(this.expr.lengthP.expr.length)return 1;for(let H=0,N=this.expr.length;HP.serialize()).join(" || ")}keys(){const P=[];for(let H of this.expr)P.push(...H.keys());return P}negate(){if(!this.negated){let P=[];for(let H of this.expr)P.push(H.negate());for(;P.length>1;){const H=P.shift(),N=P.shift(),A=[];for(const K of F(H))for(const $ of F(N))A.push(_.create([K,$],null));const G=P.length===0;P.unshift(h.create(A,null,G))}this.negated=P[0]}return this.negated}}class g extends d{constructor(P,H,N){super(P,null);this._defaultValue=H,typeof N=="object"?g._info.push(Object.assign(Object.assign({},N),{key:P})):N!==!0&&g._info.push({key:P,description:N,type:H!=null?typeof H:void 0})}static all(){return g._info.values()}bindTo(P){return P.createKey(this.key,this._defaultValue)}getValue(P){return P.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(P){return m.create(this.key,P)}}g._info=[];const x=Object(k.c)("contextKeyService"),T="setContext";function S(P,H){return PH?1:0}function E(P,H,N,A){return PN?1:HA?1:0}function U(P,H){if(H.type===6&&P.type!==9&&P.type!==6){for(const G of H.expr)if(P.equals(G))return!0}const N=P.negate(),A=F(N).concat(F(H));A.sort(a);for(let G=0;G=0;o--)if(this.__items[o].match(m))return!0;return!1},b.prototype.set_indent=function(m,o){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=o||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},b.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},b.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},b.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},b.prototype.is_empty=function(){return this.__items.length===0},b.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},b.prototype.push=function(m){this.__items.push(m);var o=m.lastIndexOf(` `);o!==-1?this.__character_count=m.length-o:this.__character_count+=m.length},b.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},b.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},b.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},b.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},b.prototype.toString=function(){var m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function u(m,o){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),o=o||"",m.indent_level>0&&(o=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=o,this.__base_string_length=o.length}u.prototype.get_indent_size=function(m,o){var c=this.__base_string_length;return o=o||0,m<0&&(c=0),c+=m*this.__indent_size,c+=o,c},u.prototype.get_indent_string=function(m,o){var c=this.__base_string;return o=o||0,m<0&&(m=0,c=""),o+=m*this.__indent_size,this.__ensure_cache(o),c+=this.__cache[o],c},u.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var m=this.__cache.length,o=0,c="";this.__indent_size&&m>=this.__indent_size&&(o=Math.floor(m/this.__indent_size),m-=o*this.__indent_size,c=new Array(o+1).join(this.__indent_string)),m&&(c+=new Array(m+1).join(" ")),this.__cache.push(c)};function d(m,o){this.__indent_cache=new u(m,o),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new b(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}d.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},d.prototype.get_line_number=function(){return this.__lines.length},d.prototype.get_indent_string=function(m,o){return this.__indent_cache.get_indent_string(m,o)},d.prototype.get_indent_size=function(m,o){return this.__indent_cache.get_indent_size(m,o)},d.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},d.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},d.prototype.get_code=function(m){this.trim(!0);var o=this.current_line.pop();o&&(o[o.length-1]===` `&&(o=o.replace(/\n+$/g,"")),this.current_line.push(o)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(` `);return m!==` @@ -356,30 +356,30 @@ You passed in: '`+this.raw_options[m]+"'");return f},b.prototype._is_valid_selec `&&((_===0||_0&&this._indentLevel--},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v=this._source_text,n=this._options.eol;n==="auto"&&(n=` `,v&&i.test(v||"")&&(n=v.match(i)[0])),v=v.replace(t,` `);var _=v.match(/^[\t ]*/)[0];this._output=new m(this._options,_),this._input=new o(v),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var h=0,g=!1,x=!1,T=!1,S=!1,E=!1,U=!1,F=this._ch,P=!1,H,N,A;H=this._input.read(s),N=H!=="",A=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),F=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var G=this._input.read(w),K=f.get_directives(G);K&&K.ignore==="start"&&(G+=f.readIgnored(this._input)),this.print_string(G),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(D)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(N),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var $=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);$.match(/[ :]$/)&&($=this.eatString(": ").replace(/\s$/,""),this.print_string($),this._output.space_before_token=!0),$=$.replace(/\s$/,""),$==="extend"?S=!0:$==="import"&&(E=!0),$ in this.NESTED_AT_RULE?(this._nestedLevel+=1,$ in this.CONDITIONAL_GROUP_RULE&&(T=!0)):!g&&h===0&&$.indexOf(":")!==-1&&(x=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(N),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")x&&(x=!1,this.outdent()),T?(T=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(A==="("?this._output.space_before_token=!1:A!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),A==="{"&&this._output.trim(!0),E=!1,S=!1,x&&(this.outdent(),x=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var ie=0;ie"||this._ch==="+"||this._ch==="~")&&!x&&h===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&l.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(N),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),l.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Se=A==='"'||A==="'";this.preserveSingleSpace(Se||N),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` -`&&P&&this._output.add_new_line()}var He=this._output.get_code(n);return He},a.exports.Beautifier=C},function(a,b,u){var d=u(6).Options;function m(o){d.call(this,o,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var c=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||c;var f=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var i=0;i` ${u} `).trim():""}class M{constructor(a,b,u){this.id=a,this.definition=b,this.description=u,k.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var p;(function(a){a.iconNameSegment="[A-Za-z0-9]+",a.iconNameExpression="[A-Za-z0-9\\-]+",a.iconModifierExpression="~[A-Za-z]+";const b=new RegExp(`^(${a.iconNameExpression})(${a.iconModifierExpression})?$`);function u(o){if(o instanceof M)return["codicon","codicon-"+o.id];const c=b.exec(o.id);if(!c)return u(M.error);let[,f,i]=c;const t=["codicon","codicon-"+f];return i&&t.push("codicon-modifier-"+i.substr(1)),t}a.asClassNameArray=u;function d(o){return u(o).join(" ")}a.asClassName=d;function m(o){return"."+u(o).join(".")}a.asCSSSelector=m})(p||(p={})),function(a){a.add=new a("add",{fontCharacter:"\\ea60"}),a.plus=new a("plus",a.add.definition),a.gistNew=new a("gist-new",a.add.definition),a.repoCreate=new a("repo-create",a.add.definition),a.lightbulb=new a("lightbulb",{fontCharacter:"\\ea61"}),a.lightBulb=new a("light-bulb",{fontCharacter:"\\ea61"}),a.repo=new a("repo",{fontCharacter:"\\ea62"}),a.repoDelete=new a("repo-delete",{fontCharacter:"\\ea62"}),a.gistFork=new a("gist-fork",{fontCharacter:"\\ea63"}),a.repoForked=new a("repo-forked",{fontCharacter:"\\ea63"}),a.gitPullRequest=new a("git-pull-request",{fontCharacter:"\\ea64"}),a.gitPullRequestAbandoned=new a("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),a.recordKeys=new a("record-keys",{fontCharacter:"\\ea65"}),a.keyboard=new a("keyboard",{fontCharacter:"\\ea65"}),a.tag=new a("tag",{fontCharacter:"\\ea66"}),a.tagAdd=new a("tag-add",{fontCharacter:"\\ea66"}),a.tagRemove=new a("tag-remove",{fontCharacter:"\\ea66"}),a.person=new a("person",{fontCharacter:"\\ea67"}),a.personFollow=new a("person-follow",{fontCharacter:"\\ea67"}),a.personOutline=new a("person-outline",{fontCharacter:"\\ea67"}),a.personFilled=new a("person-filled",{fontCharacter:"\\ea67"}),a.gitBranch=new a("git-branch",{fontCharacter:"\\ea68"}),a.gitBranchCreate=new a("git-branch-create",{fontCharacter:"\\ea68"}),a.gitBranchDelete=new a("git-branch-delete",{fontCharacter:"\\ea68"}),a.sourceControl=new a("source-control",{fontCharacter:"\\ea68"}),a.mirror=new a("mirror",{fontCharacter:"\\ea69"}),a.mirrorPublic=new a("mirror-public",{fontCharacter:"\\ea69"}),a.star=new a("star",{fontCharacter:"\\ea6a"}),a.starAdd=new a("star-add",{fontCharacter:"\\ea6a"}),a.starDelete=new a("star-delete",{fontCharacter:"\\ea6a"}),a.starEmpty=new a("star-empty",{fontCharacter:"\\ea6a"}),a.comment=new a("comment",{fontCharacter:"\\ea6b"}),a.commentAdd=new a("comment-add",{fontCharacter:"\\ea6b"}),a.alert=new a("alert",{fontCharacter:"\\ea6c"}),a.warning=new a("warning",{fontCharacter:"\\ea6c"}),a.search=new a("search",{fontCharacter:"\\ea6d"}),a.searchSave=new a("search-save",{fontCharacter:"\\ea6d"}),a.logOut=new a("log-out",{fontCharacter:"\\ea6e"}),a.signOut=new a("sign-out",{fontCharacter:"\\ea6e"}),a.logIn=new a("log-in",{fontCharacter:"\\ea6f"}),a.signIn=new a("sign-in",{fontCharacter:"\\ea6f"}),a.eye=new a("eye",{fontCharacter:"\\ea70"}),a.eyeUnwatch=new a("eye-unwatch",{fontCharacter:"\\ea70"}),a.eyeWatch=new a("eye-watch",{fontCharacter:"\\ea70"}),a.circleFilled=new a("circle-filled",{fontCharacter:"\\ea71"}),a.primitiveDot=new a("primitive-dot",{fontCharacter:"\\ea71"}),a.closeDirty=new a("close-dirty",{fontCharacter:"\\ea71"}),a.debugBreakpoint=new a("debug-breakpoint",{fontCharacter:"\\ea71"}),a.debugBreakpointDisabled=new a("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),a.debugHint=new a("debug-hint",{fontCharacter:"\\ea71"}),a.primitiveSquare=new a("primitive-square",{fontCharacter:"\\ea72"}),a.edit=new a("edit",{fontCharacter:"\\ea73"}),a.pencil=new a("pencil",{fontCharacter:"\\ea73"}),a.info=new a("info",{fontCharacter:"\\ea74"}),a.issueOpened=new a("issue-opened",{fontCharacter:"\\ea74"}),a.gistPrivate=new a("gist-private",{fontCharacter:"\\ea75"}),a.gitForkPrivate=new a("git-fork-private",{fontCharacter:"\\ea75"}),a.lock=new a("lock",{fontCharacter:"\\ea75"}),a.mirrorPrivate=new a("mirror-private",{fontCharacter:"\\ea75"}),a.close=new a("close",{fontCharacter:"\\ea76"}),a.removeClose=new a("remove-close",{fontCharacter:"\\ea76"}),a.x=new a("x",{fontCharacter:"\\ea76"}),a.repoSync=new a("repo-sync",{fontCharacter:"\\ea77"}),a.sync=new a("sync",{fontCharacter:"\\ea77"}),a.clone=new a("clone",{fontCharacter:"\\ea78"}),a.desktopDownload=new a("desktop-download",{fontCharacter:"\\ea78"}),a.beaker=new a("beaker",{fontCharacter:"\\ea79"}),a.microscope=new a("microscope",{fontCharacter:"\\ea79"}),a.vm=new a("vm",{fontCharacter:"\\ea7a"}),a.deviceDesktop=new a("device-desktop",{fontCharacter:"\\ea7a"}),a.file=new a("file",{fontCharacter:"\\ea7b"}),a.fileText=new a("file-text",{fontCharacter:"\\ea7b"}),a.more=new a("more",{fontCharacter:"\\ea7c"}),a.ellipsis=new a("ellipsis",{fontCharacter:"\\ea7c"}),a.kebabHorizontal=new a("kebab-horizontal",{fontCharacter:"\\ea7c"}),a.mailReply=new a("mail-reply",{fontCharacter:"\\ea7d"}),a.reply=new a("reply",{fontCharacter:"\\ea7d"}),a.organization=new a("organization",{fontCharacter:"\\ea7e"}),a.organizationFilled=new a("organization-filled",{fontCharacter:"\\ea7e"}),a.organizationOutline=new a("organization-outline",{fontCharacter:"\\ea7e"}),a.newFile=new a("new-file",{fontCharacter:"\\ea7f"}),a.fileAdd=new a("file-add",{fontCharacter:"\\ea7f"}),a.newFolder=new a("new-folder",{fontCharacter:"\\ea80"}),a.fileDirectoryCreate=new a("file-directory-create",{fontCharacter:"\\ea80"}),a.trash=new a("trash",{fontCharacter:"\\ea81"}),a.trashcan=new a("trashcan",{fontCharacter:"\\ea81"}),a.history=new a("history",{fontCharacter:"\\ea82"}),a.clock=new a("clock",{fontCharacter:"\\ea82"}),a.folder=new a("folder",{fontCharacter:"\\ea83"}),a.fileDirectory=new a("file-directory",{fontCharacter:"\\ea83"}),a.symbolFolder=new a("symbol-folder",{fontCharacter:"\\ea83"}),a.logoGithub=new a("logo-github",{fontCharacter:"\\ea84"}),a.markGithub=new a("mark-github",{fontCharacter:"\\ea84"}),a.github=new a("github",{fontCharacter:"\\ea84"}),a.terminal=new a("terminal",{fontCharacter:"\\ea85"}),a.console=new a("console",{fontCharacter:"\\ea85"}),a.repl=new a("repl",{fontCharacter:"\\ea85"}),a.zap=new a("zap",{fontCharacter:"\\ea86"}),a.symbolEvent=new a("symbol-event",{fontCharacter:"\\ea86"}),a.error=new a("error",{fontCharacter:"\\ea87"}),a.stop=new a("stop",{fontCharacter:"\\ea87"}),a.variable=new a("variable",{fontCharacter:"\\ea88"}),a.symbolVariable=new a("symbol-variable",{fontCharacter:"\\ea88"}),a.array=new a("array",{fontCharacter:"\\ea8a"}),a.symbolArray=new a("symbol-array",{fontCharacter:"\\ea8a"}),a.symbolModule=new a("symbol-module",{fontCharacter:"\\ea8b"}),a.symbolPackage=new a("symbol-package",{fontCharacter:"\\ea8b"}),a.symbolNamespace=new a("symbol-namespace",{fontCharacter:"\\ea8b"}),a.symbolObject=new a("symbol-object",{fontCharacter:"\\ea8b"}),a.symbolMethod=new a("symbol-method",{fontCharacter:"\\ea8c"}),a.symbolFunction=new a("symbol-function",{fontCharacter:"\\ea8c"}),a.symbolConstructor=new a("symbol-constructor",{fontCharacter:"\\ea8c"}),a.symbolBoolean=new a("symbol-boolean",{fontCharacter:"\\ea8f"}),a.symbolNull=new a("symbol-null",{fontCharacter:"\\ea8f"}),a.symbolNumeric=new a("symbol-numeric",{fontCharacter:"\\ea90"}),a.symbolNumber=new a("symbol-number",{fontCharacter:"\\ea90"}),a.symbolStructure=new a("symbol-structure",{fontCharacter:"\\ea91"}),a.symbolStruct=new a("symbol-struct",{fontCharacter:"\\ea91"}),a.symbolParameter=new a("symbol-parameter",{fontCharacter:"\\ea92"}),a.symbolTypeParameter=new a("symbol-type-parameter",{fontCharacter:"\\ea92"}),a.symbolKey=new a("symbol-key",{fontCharacter:"\\ea93"}),a.symbolText=new a("symbol-text",{fontCharacter:"\\ea93"}),a.symbolReference=new a("symbol-reference",{fontCharacter:"\\ea94"}),a.goToFile=new a("go-to-file",{fontCharacter:"\\ea94"}),a.symbolEnum=new a("symbol-enum",{fontCharacter:"\\ea95"}),a.symbolValue=new a("symbol-value",{fontCharacter:"\\ea95"}),a.symbolRuler=new a("symbol-ruler",{fontCharacter:"\\ea96"}),a.symbolUnit=new a("symbol-unit",{fontCharacter:"\\ea96"}),a.activateBreakpoints=new a("activate-breakpoints",{fontCharacter:"\\ea97"}),a.archive=new a("archive",{fontCharacter:"\\ea98"}),a.arrowBoth=new a("arrow-both",{fontCharacter:"\\ea99"}),a.arrowDown=new a("arrow-down",{fontCharacter:"\\ea9a"}),a.arrowLeft=new a("arrow-left",{fontCharacter:"\\ea9b"}),a.arrowRight=new a("arrow-right",{fontCharacter:"\\ea9c"}),a.arrowSmallDown=new a("arrow-small-down",{fontCharacter:"\\ea9d"}),a.arrowSmallLeft=new a("arrow-small-left",{fontCharacter:"\\ea9e"}),a.arrowSmallRight=new a("arrow-small-right",{fontCharacter:"\\ea9f"}),a.arrowSmallUp=new a("arrow-small-up",{fontCharacter:"\\eaa0"}),a.arrowUp=new a("arrow-up",{fontCharacter:"\\eaa1"}),a.bell=new a("bell",{fontCharacter:"\\eaa2"}),a.bold=new a("bold",{fontCharacter:"\\eaa3"}),a.book=new a("book",{fontCharacter:"\\eaa4"}),a.bookmark=new a("bookmark",{fontCharacter:"\\eaa5"}),a.debugBreakpointConditionalUnverified=new a("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),a.debugBreakpointConditional=new a("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),a.debugBreakpointConditionalDisabled=new a("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),a.debugBreakpointDataUnverified=new a("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),a.debugBreakpointData=new a("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),a.debugBreakpointDataDisabled=new a("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),a.debugBreakpointLogUnverified=new a("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),a.debugBreakpointLog=new a("debug-breakpoint-log",{fontCharacter:"\\eaab"}),a.debugBreakpointLogDisabled=new a("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),a.briefcase=new a("briefcase",{fontCharacter:"\\eaac"}),a.broadcast=new a("broadcast",{fontCharacter:"\\eaad"}),a.browser=new a("browser",{fontCharacter:"\\eaae"}),a.bug=new a("bug",{fontCharacter:"\\eaaf"}),a.calendar=new a("calendar",{fontCharacter:"\\eab0"}),a.caseSensitive=new a("case-sensitive",{fontCharacter:"\\eab1"}),a.check=new a("check",{fontCharacter:"\\eab2"}),a.checklist=new a("checklist",{fontCharacter:"\\eab3"}),a.chevronDown=new a("chevron-down",{fontCharacter:"\\eab4"}),a.dropDownButton=new a("drop-down-button",a.chevronDown.definition),a.chevronLeft=new a("chevron-left",{fontCharacter:"\\eab5"}),a.chevronRight=new a("chevron-right",{fontCharacter:"\\eab6"}),a.chevronUp=new a("chevron-up",{fontCharacter:"\\eab7"}),a.chromeClose=new a("chrome-close",{fontCharacter:"\\eab8"}),a.chromeMaximize=new a("chrome-maximize",{fontCharacter:"\\eab9"}),a.chromeMinimize=new a("chrome-minimize",{fontCharacter:"\\eaba"}),a.chromeRestore=new a("chrome-restore",{fontCharacter:"\\eabb"}),a.circleOutline=new a("circle-outline",{fontCharacter:"\\eabc"}),a.debugBreakpointUnverified=new a("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),a.circleSlash=new a("circle-slash",{fontCharacter:"\\eabd"}),a.circuitBoard=new a("circuit-board",{fontCharacter:"\\eabe"}),a.clearAll=new a("clear-all",{fontCharacter:"\\eabf"}),a.clippy=new a("clippy",{fontCharacter:"\\eac0"}),a.closeAll=new a("close-all",{fontCharacter:"\\eac1"}),a.cloudDownload=new a("cloud-download",{fontCharacter:"\\eac2"}),a.cloudUpload=new a("cloud-upload",{fontCharacter:"\\eac3"}),a.code=new a("code",{fontCharacter:"\\eac4"}),a.collapseAll=new a("collapse-all",{fontCharacter:"\\eac5"}),a.colorMode=new a("color-mode",{fontCharacter:"\\eac6"}),a.commentDiscussion=new a("comment-discussion",{fontCharacter:"\\eac7"}),a.compareChanges=new a("compare-changes",{fontCharacter:"\\eafd"}),a.creditCard=new a("credit-card",{fontCharacter:"\\eac9"}),a.dash=new a("dash",{fontCharacter:"\\eacc"}),a.dashboard=new a("dashboard",{fontCharacter:"\\eacd"}),a.database=new a("database",{fontCharacter:"\\eace"}),a.debugContinue=new a("debug-continue",{fontCharacter:"\\eacf"}),a.debugDisconnect=new a("debug-disconnect",{fontCharacter:"\\ead0"}),a.debugPause=new a("debug-pause",{fontCharacter:"\\ead1"}),a.debugRestart=new a("debug-restart",{fontCharacter:"\\ead2"}),a.debugStart=new a("debug-start",{fontCharacter:"\\ead3"}),a.debugStepInto=new a("debug-step-into",{fontCharacter:"\\ead4"}),a.debugStepOut=new a("debug-step-out",{fontCharacter:"\\ead5"}),a.debugStepOver=new a("debug-step-over",{fontCharacter:"\\ead6"}),a.debugStop=new a("debug-stop",{fontCharacter:"\\ead7"}),a.debug=new a("debug",{fontCharacter:"\\ead8"}),a.deviceCameraVideo=new a("device-camera-video",{fontCharacter:"\\ead9"}),a.deviceCamera=new a("device-camera",{fontCharacter:"\\eada"}),a.deviceMobile=new a("device-mobile",{fontCharacter:"\\eadb"}),a.diffAdded=new a("diff-added",{fontCharacter:"\\eadc"}),a.diffIgnored=new a("diff-ignored",{fontCharacter:"\\eadd"}),a.diffModified=new a("diff-modified",{fontCharacter:"\\eade"}),a.diffRemoved=new a("diff-removed",{fontCharacter:"\\eadf"}),a.diffRenamed=new a("diff-renamed",{fontCharacter:"\\eae0"}),a.diff=new a("diff",{fontCharacter:"\\eae1"}),a.discard=new a("discard",{fontCharacter:"\\eae2"}),a.editorLayout=new a("editor-layout",{fontCharacter:"\\eae3"}),a.emptyWindow=new a("empty-window",{fontCharacter:"\\eae4"}),a.exclude=new a("exclude",{fontCharacter:"\\eae5"}),a.extensions=new a("extensions",{fontCharacter:"\\eae6"}),a.eyeClosed=new a("eye-closed",{fontCharacter:"\\eae7"}),a.fileBinary=new a("file-binary",{fontCharacter:"\\eae8"}),a.fileCode=new a("file-code",{fontCharacter:"\\eae9"}),a.fileMedia=new a("file-media",{fontCharacter:"\\eaea"}),a.filePdf=new a("file-pdf",{fontCharacter:"\\eaeb"}),a.fileSubmodule=new a("file-submodule",{fontCharacter:"\\eaec"}),a.fileSymlinkDirectory=new a("file-symlink-directory",{fontCharacter:"\\eaed"}),a.fileSymlinkFile=new a("file-symlink-file",{fontCharacter:"\\eaee"}),a.fileZip=new a("file-zip",{fontCharacter:"\\eaef"}),a.files=new a("files",{fontCharacter:"\\eaf0"}),a.filter=new a("filter",{fontCharacter:"\\eaf1"}),a.flame=new a("flame",{fontCharacter:"\\eaf2"}),a.foldDown=new a("fold-down",{fontCharacter:"\\eaf3"}),a.foldUp=new a("fold-up",{fontCharacter:"\\eaf4"}),a.fold=new a("fold",{fontCharacter:"\\eaf5"}),a.folderActive=new a("folder-active",{fontCharacter:"\\eaf6"}),a.folderOpened=new a("folder-opened",{fontCharacter:"\\eaf7"}),a.gear=new a("gear",{fontCharacter:"\\eaf8"}),a.gift=new a("gift",{fontCharacter:"\\eaf9"}),a.gistSecret=new a("gist-secret",{fontCharacter:"\\eafa"}),a.gist=new a("gist",{fontCharacter:"\\eafb"}),a.gitCommit=new a("git-commit",{fontCharacter:"\\eafc"}),a.gitCompare=new a("git-compare",{fontCharacter:"\\eafd"}),a.gitMerge=new a("git-merge",{fontCharacter:"\\eafe"}),a.githubAction=new a("github-action",{fontCharacter:"\\eaff"}),a.githubAlt=new a("github-alt",{fontCharacter:"\\eb00"}),a.globe=new a("globe",{fontCharacter:"\\eb01"}),a.grabber=new a("grabber",{fontCharacter:"\\eb02"}),a.graph=new a("graph",{fontCharacter:"\\eb03"}),a.gripper=new a("gripper",{fontCharacter:"\\eb04"}),a.heart=new a("heart",{fontCharacter:"\\eb05"}),a.home=new a("home",{fontCharacter:"\\eb06"}),a.horizontalRule=new a("horizontal-rule",{fontCharacter:"\\eb07"}),a.hubot=new a("hubot",{fontCharacter:"\\eb08"}),a.inbox=new a("inbox",{fontCharacter:"\\eb09"}),a.issueClosed=new a("issue-closed",{fontCharacter:"\\eba4"}),a.issueReopened=new a("issue-reopened",{fontCharacter:"\\eb0b"}),a.issues=new a("issues",{fontCharacter:"\\eb0c"}),a.italic=new a("italic",{fontCharacter:"\\eb0d"}),a.jersey=new a("jersey",{fontCharacter:"\\eb0e"}),a.json=new a("json",{fontCharacter:"\\eb0f"}),a.kebabVertical=new a("kebab-vertical",{fontCharacter:"\\eb10"}),a.key=new a("key",{fontCharacter:"\\eb11"}),a.law=new a("law",{fontCharacter:"\\eb12"}),a.lightbulbAutofix=new a("lightbulb-autofix",{fontCharacter:"\\eb13"}),a.linkExternal=new a("link-external",{fontCharacter:"\\eb14"}),a.link=new a("link",{fontCharacter:"\\eb15"}),a.listOrdered=new a("list-ordered",{fontCharacter:"\\eb16"}),a.listUnordered=new a("list-unordered",{fontCharacter:"\\eb17"}),a.liveShare=new a("live-share",{fontCharacter:"\\eb18"}),a.loading=new a("loading",{fontCharacter:"\\eb19"}),a.location=new a("location",{fontCharacter:"\\eb1a"}),a.mailRead=new a("mail-read",{fontCharacter:"\\eb1b"}),a.mail=new a("mail",{fontCharacter:"\\eb1c"}),a.markdown=new a("markdown",{fontCharacter:"\\eb1d"}),a.megaphone=new a("megaphone",{fontCharacter:"\\eb1e"}),a.mention=new a("mention",{fontCharacter:"\\eb1f"}),a.milestone=new a("milestone",{fontCharacter:"\\eb20"}),a.mortarBoard=new a("mortar-board",{fontCharacter:"\\eb21"}),a.move=new a("move",{fontCharacter:"\\eb22"}),a.multipleWindows=new a("multiple-windows",{fontCharacter:"\\eb23"}),a.mute=new a("mute",{fontCharacter:"\\eb24"}),a.noNewline=new a("no-newline",{fontCharacter:"\\eb25"}),a.note=new a("note",{fontCharacter:"\\eb26"}),a.octoface=new a("octoface",{fontCharacter:"\\eb27"}),a.openPreview=new a("open-preview",{fontCharacter:"\\eb28"}),a.package_=new a("package",{fontCharacter:"\\eb29"}),a.paintcan=new a("paintcan",{fontCharacter:"\\eb2a"}),a.pin=new a("pin",{fontCharacter:"\\eb2b"}),a.play=new a("play",{fontCharacter:"\\eb2c"}),a.run=new a("run",{fontCharacter:"\\eb2c"}),a.plug=new a("plug",{fontCharacter:"\\eb2d"}),a.preserveCase=new a("preserve-case",{fontCharacter:"\\eb2e"}),a.preview=new a("preview",{fontCharacter:"\\eb2f"}),a.project=new a("project",{fontCharacter:"\\eb30"}),a.pulse=new a("pulse",{fontCharacter:"\\eb31"}),a.question=new a("question",{fontCharacter:"\\eb32"}),a.quote=new a("quote",{fontCharacter:"\\eb33"}),a.radioTower=new a("radio-tower",{fontCharacter:"\\eb34"}),a.reactions=new a("reactions",{fontCharacter:"\\eb35"}),a.references=new a("references",{fontCharacter:"\\eb36"}),a.refresh=new a("refresh",{fontCharacter:"\\eb37"}),a.regex=new a("regex",{fontCharacter:"\\eb38"}),a.remoteExplorer=new a("remote-explorer",{fontCharacter:"\\eb39"}),a.remote=new a("remote",{fontCharacter:"\\eb3a"}),a.remove=new a("remove",{fontCharacter:"\\eb3b"}),a.replaceAll=new a("replace-all",{fontCharacter:"\\eb3c"}),a.replace=new a("replace",{fontCharacter:"\\eb3d"}),a.repoClone=new a("repo-clone",{fontCharacter:"\\eb3e"}),a.repoForcePush=new a("repo-force-push",{fontCharacter:"\\eb3f"}),a.repoPull=new a("repo-pull",{fontCharacter:"\\eb40"}),a.repoPush=new a("repo-push",{fontCharacter:"\\eb41"}),a.report=new a("report",{fontCharacter:"\\eb42"}),a.requestChanges=new a("request-changes",{fontCharacter:"\\eb43"}),a.rocket=new a("rocket",{fontCharacter:"\\eb44"}),a.rootFolderOpened=new a("root-folder-opened",{fontCharacter:"\\eb45"}),a.rootFolder=new a("root-folder",{fontCharacter:"\\eb46"}),a.rss=new a("rss",{fontCharacter:"\\eb47"}),a.ruby=new a("ruby",{fontCharacter:"\\eb48"}),a.saveAll=new a("save-all",{fontCharacter:"\\eb49"}),a.saveAs=new a("save-as",{fontCharacter:"\\eb4a"}),a.save=new a("save",{fontCharacter:"\\eb4b"}),a.screenFull=new a("screen-full",{fontCharacter:"\\eb4c"}),a.screenNormal=new a("screen-normal",{fontCharacter:"\\eb4d"}),a.searchStop=new a("search-stop",{fontCharacter:"\\eb4e"}),a.server=new a("server",{fontCharacter:"\\eb50"}),a.settingsGear=new a("settings-gear",{fontCharacter:"\\eb51"}),a.settings=new a("settings",{fontCharacter:"\\eb52"}),a.shield=new a("shield",{fontCharacter:"\\eb53"}),a.smiley=new a("smiley",{fontCharacter:"\\eb54"}),a.sortPrecedence=new a("sort-precedence",{fontCharacter:"\\eb55"}),a.splitHorizontal=new a("split-horizontal",{fontCharacter:"\\eb56"}),a.splitVertical=new a("split-vertical",{fontCharacter:"\\eb57"}),a.squirrel=new a("squirrel",{fontCharacter:"\\eb58"}),a.starFull=new a("star-full",{fontCharacter:"\\eb59"}),a.starHalf=new a("star-half",{fontCharacter:"\\eb5a"}),a.symbolClass=new a("symbol-class",{fontCharacter:"\\eb5b"}),a.symbolColor=new a("symbol-color",{fontCharacter:"\\eb5c"}),a.symbolConstant=new a("symbol-constant",{fontCharacter:"\\eb5d"}),a.symbolEnumMember=new a("symbol-enum-member",{fontCharacter:"\\eb5e"}),a.symbolField=new a("symbol-field",{fontCharacter:"\\eb5f"}),a.symbolFile=new a("symbol-file",{fontCharacter:"\\eb60"}),a.symbolInterface=new a("symbol-interface",{fontCharacter:"\\eb61"}),a.symbolKeyword=new a("symbol-keyword",{fontCharacter:"\\eb62"}),a.symbolMisc=new a("symbol-misc",{fontCharacter:"\\eb63"}),a.symbolOperator=new a("symbol-operator",{fontCharacter:"\\eb64"}),a.symbolProperty=new a("symbol-property",{fontCharacter:"\\eb65"}),a.wrench=new a("wrench",{fontCharacter:"\\eb65"}),a.wrenchSubaction=new a("wrench-subaction",{fontCharacter:"\\eb65"}),a.symbolSnippet=new a("symbol-snippet",{fontCharacter:"\\eb66"}),a.tasklist=new a("tasklist",{fontCharacter:"\\eb67"}),a.telescope=new a("telescope",{fontCharacter:"\\eb68"}),a.textSize=new a("text-size",{fontCharacter:"\\eb69"}),a.threeBars=new a("three-bars",{fontCharacter:"\\eb6a"}),a.thumbsdown=new a("thumbsdown",{fontCharacter:"\\eb6b"}),a.thumbsup=new a("thumbsup",{fontCharacter:"\\eb6c"}),a.tools=new a("tools",{fontCharacter:"\\eb6d"}),a.triangleDown=new a("triangle-down",{fontCharacter:"\\eb6e"}),a.triangleLeft=new a("triangle-left",{fontCharacter:"\\eb6f"}),a.triangleRight=new a("triangle-right",{fontCharacter:"\\eb70"}),a.triangleUp=new a("triangle-up",{fontCharacter:"\\eb71"}),a.twitter=new a("twitter",{fontCharacter:"\\eb72"}),a.unfold=new a("unfold",{fontCharacter:"\\eb73"}),a.unlock=new a("unlock",{fontCharacter:"\\eb74"}),a.unmute=new a("unmute",{fontCharacter:"\\eb75"}),a.unverified=new a("unverified",{fontCharacter:"\\eb76"}),a.verified=new a("verified",{fontCharacter:"\\eb77"}),a.versions=new a("versions",{fontCharacter:"\\eb78"}),a.vmActive=new a("vm-active",{fontCharacter:"\\eb79"}),a.vmOutline=new a("vm-outline",{fontCharacter:"\\eb7a"}),a.vmRunning=new a("vm-running",{fontCharacter:"\\eb7b"}),a.watch=new a("watch",{fontCharacter:"\\eb7c"}),a.whitespace=new a("whitespace",{fontCharacter:"\\eb7d"}),a.wholeWord=new a("whole-word",{fontCharacter:"\\eb7e"}),a.window=new a("window",{fontCharacter:"\\eb7f"}),a.wordWrap=new a("word-wrap",{fontCharacter:"\\eb80"}),a.zoomIn=new a("zoom-in",{fontCharacter:"\\eb81"}),a.zoomOut=new a("zoom-out",{fontCharacter:"\\eb82"}),a.listFilter=new a("list-filter",{fontCharacter:"\\eb83"}),a.listFlat=new a("list-flat",{fontCharacter:"\\eb84"}),a.listSelection=new a("list-selection",{fontCharacter:"\\eb85"}),a.selection=new a("selection",{fontCharacter:"\\eb85"}),a.listTree=new a("list-tree",{fontCharacter:"\\eb86"}),a.debugBreakpointFunctionUnverified=new a("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),a.debugBreakpointFunction=new a("debug-breakpoint-function",{fontCharacter:"\\eb88"}),a.debugBreakpointFunctionDisabled=new a("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),a.debugStackframeActive=new a("debug-stackframe-active",{fontCharacter:"\\eb89"}),a.debugStackframeDot=new a("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),a.debugStackframe=new a("debug-stackframe",{fontCharacter:"\\eb8b"}),a.debugStackframeFocused=new a("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),a.debugBreakpointUnsupported=new a("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),a.symbolString=new a("symbol-string",{fontCharacter:"\\eb8d"}),a.debugReverseContinue=new a("debug-reverse-continue",{fontCharacter:"\\eb8e"}),a.debugStepBack=new a("debug-step-back",{fontCharacter:"\\eb8f"}),a.debugRestartFrame=new a("debug-restart-frame",{fontCharacter:"\\eb90"}),a.callIncoming=new a("call-incoming",{fontCharacter:"\\eb92"}),a.callOutgoing=new a("call-outgoing",{fontCharacter:"\\eb93"}),a.menu=new a("menu",{fontCharacter:"\\eb94"}),a.expandAll=new a("expand-all",{fontCharacter:"\\eb95"}),a.feedback=new a("feedback",{fontCharacter:"\\eb96"}),a.groupByRefType=new a("group-by-ref-type",{fontCharacter:"\\eb97"}),a.ungroupByRefType=new a("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),a.account=new a("account",{fontCharacter:"\\eb99"}),a.bellDot=new a("bell-dot",{fontCharacter:"\\eb9a"}),a.debugConsole=new a("debug-console",{fontCharacter:"\\eb9b"}),a.library=new a("library",{fontCharacter:"\\eb9c"}),a.output=new a("output",{fontCharacter:"\\eb9d"}),a.runAll=new a("run-all",{fontCharacter:"\\eb9e"}),a.syncIgnored=new a("sync-ignored",{fontCharacter:"\\eb9f"}),a.pinned=new a("pinned",{fontCharacter:"\\eba0"}),a.githubInverted=new a("github-inverted",{fontCharacter:"\\eba1"}),a.debugAlt=new a("debug-alt",{fontCharacter:"\\eb91"}),a.serverProcess=new a("server-process",{fontCharacter:"\\eba2"}),a.serverEnvironment=new a("server-environment",{fontCharacter:"\\eba3"}),a.pass=new a("pass",{fontCharacter:"\\eba4"}),a.stopCircle=new a("stop-circle",{fontCharacter:"\\eba5"}),a.playCircle=new a("play-circle",{fontCharacter:"\\eba6"}),a.record=new a("record",{fontCharacter:"\\eba7"}),a.debugAltSmall=new a("debug-alt-small",{fontCharacter:"\\eba8"}),a.vmConnect=new a("vm-connect",{fontCharacter:"\\eba9"}),a.cloud=new a("cloud",{fontCharacter:"\\ebaa"}),a.merge=new a("merge",{fontCharacter:"\\ebab"}),a.exportIcon=new a("export",{fontCharacter:"\\ebac"}),a.graphLeft=new a("graph-left",{fontCharacter:"\\ebad"}),a.magnet=new a("magnet",{fontCharacter:"\\ebae"}),a.notebook=new a("notebook",{fontCharacter:"\\ebaf"}),a.redo=new a("redo",{fontCharacter:"\\ebb0"}),a.checkAll=new a("check-all",{fontCharacter:"\\ebb1"}),a.pinnedDirty=new a("pinned-dirty",{fontCharacter:"\\ebb2"}),a.passFilled=new a("pass-filled",{fontCharacter:"\\ebb3"}),a.circleLargeFilled=new a("circle-large-filled",{fontCharacter:"\\ebb4"}),a.circleLargeOutline=new a("circle-large-outline",{fontCharacter:"\\ebb5"}),a.combine=new a("combine",{fontCharacter:"\\ebb6"}),a.gather=new a("gather",{fontCharacter:"\\ebb6"}),a.table=new a("table",{fontCharacter:"\\ebb7"}),a.variableGroup=new a("variable-group",{fontCharacter:"\\ebb8"}),a.typeHierarchy=new a("type-hierarchy",{fontCharacter:"\\ebb9"}),a.typeHierarchySub=new a("type-hierarchy-sub",{fontCharacter:"\\ebba"}),a.typeHierarchySuper=new a("type-hierarchy-super",{fontCharacter:"\\ebbb"}),a.gitPullRequestCreate=new a("git-pull-request-create",{fontCharacter:"\\ebbc"}),a.runAbove=new a("run-above",{fontCharacter:"\\ebbd"}),a.runBelow=new a("run-below",{fontCharacter:"\\ebbe"}),a.notebookTemplate=new a("notebook-template",{fontCharacter:"\\ebbf"}),a.debugRerun=new a("debug-rerun",{fontCharacter:"\\ebc0"}),a.workspaceTrusted=new a("workspace-trusted",{fontCharacter:"\\ebc1"}),a.workspaceUntrusted=new a("workspace-untrusted",{fontCharacter:"\\ebc2"}),a.workspaceUnspecified=new a("workspace-unspecified",{fontCharacter:"\\ebc3"}),a.terminalCmd=new a("terminal-cmd",{fontCharacter:"\\ebc4"}),a.terminalDebian=new a("terminal-debian",{fontCharacter:"\\ebc5"}),a.terminalLinux=new a("terminal-linux",{fontCharacter:"\\ebc6"}),a.terminalPowershell=new a("terminal-powershell",{fontCharacter:"\\ebc7"}),a.terminalTmux=new a("terminal-tmux",{fontCharacter:"\\ebc8"}),a.terminalUbuntu=new a("terminal-ubuntu",{fontCharacter:"\\ebc9"}),a.terminalBash=new a("terminal-bash",{fontCharacter:"\\ebca"}),a.arrowSwap=new a("arrow-swap",{fontCharacter:"\\ebcb"}),a.copy=new a("copy",{fontCharacter:"\\ebcc"}),a.personAdd=new a("person-add",{fontCharacter:"\\ebcd"}),a.filterFilled=new a("filter-filled",{fontCharacter:"\\ebce"}),a.wand=new a("wand",{fontCharacter:"\\ebcf"}),a.debugLineByLine=new a("debug-line-by-line",{fontCharacter:"\\ebd0"}),a.inspect=new a("inspect",{fontCharacter:"\\ebd1"}),a.layers=new a("layers",{fontCharacter:"\\ebd2"}),a.layersDot=new a("layers-dot",{fontCharacter:"\\ebd3"}),a.layersActive=new a("layers-active",{fontCharacter:"\\ebd4"}),a.compass=new a("compass",{fontCharacter:"\\ebd5"}),a.compassDot=new a("compass-dot",{fontCharacter:"\\ebd6"}),a.compassActive=new a("compass-active",{fontCharacter:"\\ebd7"}),a.azure=new a("azure",{fontCharacter:"\\ebd8"}),a.issueDraft=new a("issue-draft",{fontCharacter:"\\ebd9"}),a.gitPullRequestClosed=new a("git-pull-request-closed",{fontCharacter:"\\ebda"}),a.gitPullRequestDraft=new a("git-pull-request-draft",{fontCharacter:"\\ebdb"}),a.debugAll=new a("debug-all",{fontCharacter:"\\ebdc"}),a.debugCoverage=new a("debug-coverage",{fontCharacter:"\\ebdd"}),a.runErrors=new a("run-errors",{fontCharacter:"\\ebde"}),a.folderLibrary=new a("folder-library",{fontCharacter:"\\ebdf"}),a.debugContinueSmall=new a("debug-continue-small",{fontCharacter:"\\ebe0"}),a.beakerStop=new a("beaker-stop",{fontCharacter:"\\ebe1"}),a.graphLine=new a("graph-line",{fontCharacter:"\\ebe2"}),a.graphScatter=new a("graph-scatter",{fontCharacter:"\\ebe3"}),a.pieChart=new a("pie-chart",{fontCharacter:"\\ebe4"}),a.bracket=new a("bracket",a.json.definition),a.bracketDot=new a("bracket-dot",{fontCharacter:"\\ebe5"}),a.bracketError=new a("bracket-error",{fontCharacter:"\\ebe6"}),a.lockSmall=new a("lock-small",{fontCharacter:"\\ebe7"}),a.azureDevops=new a("azure-devops",{fontCharacter:"\\ebe8"}),a.verifiedFilled=new a("verified-filled",{fontCharacter:"\\ebe9"})}(M||(M={}))},VpOo:function(Ge,re){function y(Q,W){var k=W.x,B=W.y,O=W.width,R=W.height,M=W.r,p,a,b,u;O<0&&(k=k+O,O=-O),R<0&&(B=B+R,R=-R),typeof M=="number"?p=a=b=u=M:M instanceof Array?M.length===1?p=a=b=u=M[0]:M.length===2?(p=b=M[0],a=u=M[1]):M.length===3?(p=M[0],a=u=M[1],b=M[2]):(p=M[0],a=M[1],b=M[2],u=M[3]):p=a=b=u=0;var d;p+a>O&&(d=p+a,p*=O/d,a*=O/d),b+u>O&&(d=b+u,b*=O/d,u*=O/d),a+b>R&&(d=a+b,a*=R/d,b*=R/d),p+u>R&&(d=p+u,p*=R/d,u*=R/d),Q.moveTo(k+p,B),Q.lineTo(k+O-a,B),a!==0&&Q.arc(k+O-a,B+a,a,-Math.PI/2,0),Q.lineTo(k+O,B+R-b),b!==0&&Q.arc(k+O-b,B+R-b,b,0,Math.PI/2),Q.lineTo(k+u,B+R),u!==0&&Q.arc(k+u,B+R-u,u,Math.PI/2,Math.PI),Q.lineTo(k,B+p),p!==0&&Q.arc(k+p,B+p,p,Math.PI,Math.PI*1.5)}re.buildPath=y},"VrN/":function(Ge,re,y){(function(Q,W){Ge.exports=W()})(this,function(){"use strict";var Q=navigator.userAgent,W=navigator.platform,k=/gecko\/\d/i.test(Q),B=/MSIE \d/.test(Q),O=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Q),R=/Edge\/(\d+)/.exec(Q),M=B||O||R,p=M&&(B?document.documentMode||6:+(R||O)[1]),a=!R&&/WebKit\//.test(Q),b=a&&/Qt\/\d+\.\d+/.test(Q),u=!R&&/Chrome\//.test(Q),d=/Opera\//.test(Q),m=/Apple Computer/.test(navigator.vendor),o=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Q),c=/PhantomJS/.test(Q),f=!R&&/AppleWebKit/.test(Q)&&/Mobile\/\w+/.test(Q),i=/Android/.test(Q),t=f||i||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Q),l=f||/Mac/.test(W),s=/\bCrOS\b/.test(Q),w=/win/i.test(W),D=d&&Q.match(/Version\/(\d*\.\d*)/);D&&(D=Number(D[1])),D&&D>=15&&(d=!1,a=!0);var C=l&&(b||d&&(D==null||D<12.11)),v=k||M&&p>=9;function n(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _=function(e,r){var L=e.className,I=n(r).exec(L);if(I){var j=L.slice(I.index+I[0].length);e.className=L.slice(0,I.index)+(j?I[1]+j:"")}};function h(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function g(e,r){return h(e).appendChild(r)}function x(e,r,L,I){var j=document.createElement(e);if(L&&(j.className=L),I&&(j.style.cssText=I),typeof r=="string")j.appendChild(document.createTextNode(r));else if(r)for(var ee=0;ee=r)return ce+(r-ee);ce+=we-ee,ce+=L-ce%L,ee=we+1}}var K=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};K.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},K.prototype.set=function(e,r){this.f=r;var L=+new Date+e;(!this.id||L=r)return I+Math.min(ce,r-j);if(j+=ee-I,j+=L-j%L,I=ee+1,j>=r)return I}}var je=[""];function me(e){for(;je.length<=e;)je.push(fe(je)+" ");return je[e]}function fe(e){return e[e.length-1]}function Ae(e,r){for(var L=[],I=0;I"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Ve.test(e))}function Qe(e,r){return r?r.source.indexOf("\\w")>-1&&dt(e)?!0:r.test(e):dt(e)}function pe(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var xe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Le(e){return e.charCodeAt(0)>=768&&xe.test(e)}function Ye(e,r,L){for(;(L<0?r>0:rL?-1:1;;){if(r==L)return r;var j=(r+L)/2,ee=I<0?Math.ceil(j):Math.floor(j);if(ee==r)return e(ee)?r:L;e(ee)?L=ee:r=ee+I}}function Ct(e,r,L,I){if(!e)return I(r,L,"ltr",0);for(var j=!1,ee=0;eer||r==L&&ce.to==r)&&(I(Math.max(ce.from,r),Math.min(ce.to,L),ce.level==1?"rtl":"ltr",ee),j=!0)}j||I(r,L,"ltr")}var tn=null;function Zt(e,r,L){var I;tn=null;for(var j=0;jr)return j;ee.to==r&&(ee.from!=ee.to&&L=="before"?I=j:tn=j),ee.from==r&&(ee.from!=ee.to&&L!="before"?I=j:tn=j)}return I!=null?I:tn}var Hn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function L(We){return We<=247?e.charAt(We):1424<=We&&We<=1524?"R":1536<=We&&We<=1785?r.charAt(We-1536):1774<=We&&We<=2220?"r":8192<=We&&We<=8203?"w":We==8204?"b":"L"}var I=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,j=/[stwN]/,ee=/[LRr]/,ce=/[Lb1n]/,we=/[1n]/;function De(We,At,Ft){this.level=We,this.from=At,this.to=Ft}return function(We,At){var Ft=At=="ltr"?"L":"R";if(We.length==0||At=="ltr"&&!I.test(We))return!1;for(var kn=We.length,xn=[],Ia=0;Ia-1&&(I[r]=j.slice(0,ee).concat(j.slice(ee+1)))}}}function Ot(e,r){var L=on(e,r);if(!L.length)return;for(var I=Array.prototype.slice.call(arguments,2),j=0;j0}function rt(e){e.prototype.on=function(r,L){pt(this,r,L)},e.prototype.off=function(r,L){hn(this,r,L)}}function Te(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ie(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function be(e){Te(e),Me(e)}function qe(e){return e.target||e.srcElement}function Lt(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),l&&e.ctrlKey&&r==1&&(r=3),r}var nn=function(){if(M&&p<9)return!1;var e=x("div");return"draggable"in e||"dragDrop"in e}(),$n;function ta(e){if($n==null){var r=x("span","\u200B");g(e,x("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&($n=r.offsetWidth<=1&&r.offsetHeight>2&&!(M&&p<8))}var L=$n?x("span","\u200B"):x("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return L.setAttribute("cm-text",""),L}var Sa;function _n(e){if(Sa!=null)return Sa;var r=g(e,document.createTextNode("A\u062EA")),L=S(r,0,1).getBoundingClientRect(),I=S(r,1,2).getBoundingClientRect();return h(e),!L||L.left==L.right?!1:Sa=I.right-L.right<3}var Bt=` +`&&P&&this._output.add_new_line()}var He=this._output.get_code(n);return He},a.exports.Beautifier=C},function(a,b,u){var d=u(6).Options;function m(o){d.call(this,o,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var c=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||c;var f=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var i=0;i` ${u} `).trim():""}class M{constructor(a,b,u){this.id=a,this.definition=b,this.description=u,k.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var p;(function(a){a.iconNameSegment="[A-Za-z0-9]+",a.iconNameExpression="[A-Za-z0-9\\-]+",a.iconModifierExpression="~[A-Za-z]+";const b=new RegExp(`^(${a.iconNameExpression})(${a.iconModifierExpression})?$`);function u(o){if(o instanceof M)return["codicon","codicon-"+o.id];const c=b.exec(o.id);if(!c)return u(M.error);let[,f,i]=c;const t=["codicon","codicon-"+f];return i&&t.push("codicon-modifier-"+i.substr(1)),t}a.asClassNameArray=u;function d(o){return u(o).join(" ")}a.asClassName=d;function m(o){return"."+u(o).join(".")}a.asCSSSelector=m})(p||(p={})),function(a){a.add=new a("add",{fontCharacter:"\\ea60"}),a.plus=new a("plus",a.add.definition),a.gistNew=new a("gist-new",a.add.definition),a.repoCreate=new a("repo-create",a.add.definition),a.lightbulb=new a("lightbulb",{fontCharacter:"\\ea61"}),a.lightBulb=new a("light-bulb",{fontCharacter:"\\ea61"}),a.repo=new a("repo",{fontCharacter:"\\ea62"}),a.repoDelete=new a("repo-delete",{fontCharacter:"\\ea62"}),a.gistFork=new a("gist-fork",{fontCharacter:"\\ea63"}),a.repoForked=new a("repo-forked",{fontCharacter:"\\ea63"}),a.gitPullRequest=new a("git-pull-request",{fontCharacter:"\\ea64"}),a.gitPullRequestAbandoned=new a("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),a.recordKeys=new a("record-keys",{fontCharacter:"\\ea65"}),a.keyboard=new a("keyboard",{fontCharacter:"\\ea65"}),a.tag=new a("tag",{fontCharacter:"\\ea66"}),a.tagAdd=new a("tag-add",{fontCharacter:"\\ea66"}),a.tagRemove=new a("tag-remove",{fontCharacter:"\\ea66"}),a.person=new a("person",{fontCharacter:"\\ea67"}),a.personFollow=new a("person-follow",{fontCharacter:"\\ea67"}),a.personOutline=new a("person-outline",{fontCharacter:"\\ea67"}),a.personFilled=new a("person-filled",{fontCharacter:"\\ea67"}),a.gitBranch=new a("git-branch",{fontCharacter:"\\ea68"}),a.gitBranchCreate=new a("git-branch-create",{fontCharacter:"\\ea68"}),a.gitBranchDelete=new a("git-branch-delete",{fontCharacter:"\\ea68"}),a.sourceControl=new a("source-control",{fontCharacter:"\\ea68"}),a.mirror=new a("mirror",{fontCharacter:"\\ea69"}),a.mirrorPublic=new a("mirror-public",{fontCharacter:"\\ea69"}),a.star=new a("star",{fontCharacter:"\\ea6a"}),a.starAdd=new a("star-add",{fontCharacter:"\\ea6a"}),a.starDelete=new a("star-delete",{fontCharacter:"\\ea6a"}),a.starEmpty=new a("star-empty",{fontCharacter:"\\ea6a"}),a.comment=new a("comment",{fontCharacter:"\\ea6b"}),a.commentAdd=new a("comment-add",{fontCharacter:"\\ea6b"}),a.alert=new a("alert",{fontCharacter:"\\ea6c"}),a.warning=new a("warning",{fontCharacter:"\\ea6c"}),a.search=new a("search",{fontCharacter:"\\ea6d"}),a.searchSave=new a("search-save",{fontCharacter:"\\ea6d"}),a.logOut=new a("log-out",{fontCharacter:"\\ea6e"}),a.signOut=new a("sign-out",{fontCharacter:"\\ea6e"}),a.logIn=new a("log-in",{fontCharacter:"\\ea6f"}),a.signIn=new a("sign-in",{fontCharacter:"\\ea6f"}),a.eye=new a("eye",{fontCharacter:"\\ea70"}),a.eyeUnwatch=new a("eye-unwatch",{fontCharacter:"\\ea70"}),a.eyeWatch=new a("eye-watch",{fontCharacter:"\\ea70"}),a.circleFilled=new a("circle-filled",{fontCharacter:"\\ea71"}),a.primitiveDot=new a("primitive-dot",{fontCharacter:"\\ea71"}),a.closeDirty=new a("close-dirty",{fontCharacter:"\\ea71"}),a.debugBreakpoint=new a("debug-breakpoint",{fontCharacter:"\\ea71"}),a.debugBreakpointDisabled=new a("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),a.debugHint=new a("debug-hint",{fontCharacter:"\\ea71"}),a.primitiveSquare=new a("primitive-square",{fontCharacter:"\\ea72"}),a.edit=new a("edit",{fontCharacter:"\\ea73"}),a.pencil=new a("pencil",{fontCharacter:"\\ea73"}),a.info=new a("info",{fontCharacter:"\\ea74"}),a.issueOpened=new a("issue-opened",{fontCharacter:"\\ea74"}),a.gistPrivate=new a("gist-private",{fontCharacter:"\\ea75"}),a.gitForkPrivate=new a("git-fork-private",{fontCharacter:"\\ea75"}),a.lock=new a("lock",{fontCharacter:"\\ea75"}),a.mirrorPrivate=new a("mirror-private",{fontCharacter:"\\ea75"}),a.close=new a("close",{fontCharacter:"\\ea76"}),a.removeClose=new a("remove-close",{fontCharacter:"\\ea76"}),a.x=new a("x",{fontCharacter:"\\ea76"}),a.repoSync=new a("repo-sync",{fontCharacter:"\\ea77"}),a.sync=new a("sync",{fontCharacter:"\\ea77"}),a.clone=new a("clone",{fontCharacter:"\\ea78"}),a.desktopDownload=new a("desktop-download",{fontCharacter:"\\ea78"}),a.beaker=new a("beaker",{fontCharacter:"\\ea79"}),a.microscope=new a("microscope",{fontCharacter:"\\ea79"}),a.vm=new a("vm",{fontCharacter:"\\ea7a"}),a.deviceDesktop=new a("device-desktop",{fontCharacter:"\\ea7a"}),a.file=new a("file",{fontCharacter:"\\ea7b"}),a.fileText=new a("file-text",{fontCharacter:"\\ea7b"}),a.more=new a("more",{fontCharacter:"\\ea7c"}),a.ellipsis=new a("ellipsis",{fontCharacter:"\\ea7c"}),a.kebabHorizontal=new a("kebab-horizontal",{fontCharacter:"\\ea7c"}),a.mailReply=new a("mail-reply",{fontCharacter:"\\ea7d"}),a.reply=new a("reply",{fontCharacter:"\\ea7d"}),a.organization=new a("organization",{fontCharacter:"\\ea7e"}),a.organizationFilled=new a("organization-filled",{fontCharacter:"\\ea7e"}),a.organizationOutline=new a("organization-outline",{fontCharacter:"\\ea7e"}),a.newFile=new a("new-file",{fontCharacter:"\\ea7f"}),a.fileAdd=new a("file-add",{fontCharacter:"\\ea7f"}),a.newFolder=new a("new-folder",{fontCharacter:"\\ea80"}),a.fileDirectoryCreate=new a("file-directory-create",{fontCharacter:"\\ea80"}),a.trash=new a("trash",{fontCharacter:"\\ea81"}),a.trashcan=new a("trashcan",{fontCharacter:"\\ea81"}),a.history=new a("history",{fontCharacter:"\\ea82"}),a.clock=new a("clock",{fontCharacter:"\\ea82"}),a.folder=new a("folder",{fontCharacter:"\\ea83"}),a.fileDirectory=new a("file-directory",{fontCharacter:"\\ea83"}),a.symbolFolder=new a("symbol-folder",{fontCharacter:"\\ea83"}),a.logoGithub=new a("logo-github",{fontCharacter:"\\ea84"}),a.markGithub=new a("mark-github",{fontCharacter:"\\ea84"}),a.github=new a("github",{fontCharacter:"\\ea84"}),a.terminal=new a("terminal",{fontCharacter:"\\ea85"}),a.console=new a("console",{fontCharacter:"\\ea85"}),a.repl=new a("repl",{fontCharacter:"\\ea85"}),a.zap=new a("zap",{fontCharacter:"\\ea86"}),a.symbolEvent=new a("symbol-event",{fontCharacter:"\\ea86"}),a.error=new a("error",{fontCharacter:"\\ea87"}),a.stop=new a("stop",{fontCharacter:"\\ea87"}),a.variable=new a("variable",{fontCharacter:"\\ea88"}),a.symbolVariable=new a("symbol-variable",{fontCharacter:"\\ea88"}),a.array=new a("array",{fontCharacter:"\\ea8a"}),a.symbolArray=new a("symbol-array",{fontCharacter:"\\ea8a"}),a.symbolModule=new a("symbol-module",{fontCharacter:"\\ea8b"}),a.symbolPackage=new a("symbol-package",{fontCharacter:"\\ea8b"}),a.symbolNamespace=new a("symbol-namespace",{fontCharacter:"\\ea8b"}),a.symbolObject=new a("symbol-object",{fontCharacter:"\\ea8b"}),a.symbolMethod=new a("symbol-method",{fontCharacter:"\\ea8c"}),a.symbolFunction=new a("symbol-function",{fontCharacter:"\\ea8c"}),a.symbolConstructor=new a("symbol-constructor",{fontCharacter:"\\ea8c"}),a.symbolBoolean=new a("symbol-boolean",{fontCharacter:"\\ea8f"}),a.symbolNull=new a("symbol-null",{fontCharacter:"\\ea8f"}),a.symbolNumeric=new a("symbol-numeric",{fontCharacter:"\\ea90"}),a.symbolNumber=new a("symbol-number",{fontCharacter:"\\ea90"}),a.symbolStructure=new a("symbol-structure",{fontCharacter:"\\ea91"}),a.symbolStruct=new a("symbol-struct",{fontCharacter:"\\ea91"}),a.symbolParameter=new a("symbol-parameter",{fontCharacter:"\\ea92"}),a.symbolTypeParameter=new a("symbol-type-parameter",{fontCharacter:"\\ea92"}),a.symbolKey=new a("symbol-key",{fontCharacter:"\\ea93"}),a.symbolText=new a("symbol-text",{fontCharacter:"\\ea93"}),a.symbolReference=new a("symbol-reference",{fontCharacter:"\\ea94"}),a.goToFile=new a("go-to-file",{fontCharacter:"\\ea94"}),a.symbolEnum=new a("symbol-enum",{fontCharacter:"\\ea95"}),a.symbolValue=new a("symbol-value",{fontCharacter:"\\ea95"}),a.symbolRuler=new a("symbol-ruler",{fontCharacter:"\\ea96"}),a.symbolUnit=new a("symbol-unit",{fontCharacter:"\\ea96"}),a.activateBreakpoints=new a("activate-breakpoints",{fontCharacter:"\\ea97"}),a.archive=new a("archive",{fontCharacter:"\\ea98"}),a.arrowBoth=new a("arrow-both",{fontCharacter:"\\ea99"}),a.arrowDown=new a("arrow-down",{fontCharacter:"\\ea9a"}),a.arrowLeft=new a("arrow-left",{fontCharacter:"\\ea9b"}),a.arrowRight=new a("arrow-right",{fontCharacter:"\\ea9c"}),a.arrowSmallDown=new a("arrow-small-down",{fontCharacter:"\\ea9d"}),a.arrowSmallLeft=new a("arrow-small-left",{fontCharacter:"\\ea9e"}),a.arrowSmallRight=new a("arrow-small-right",{fontCharacter:"\\ea9f"}),a.arrowSmallUp=new a("arrow-small-up",{fontCharacter:"\\eaa0"}),a.arrowUp=new a("arrow-up",{fontCharacter:"\\eaa1"}),a.bell=new a("bell",{fontCharacter:"\\eaa2"}),a.bold=new a("bold",{fontCharacter:"\\eaa3"}),a.book=new a("book",{fontCharacter:"\\eaa4"}),a.bookmark=new a("bookmark",{fontCharacter:"\\eaa5"}),a.debugBreakpointConditionalUnverified=new a("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),a.debugBreakpointConditional=new a("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),a.debugBreakpointConditionalDisabled=new a("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),a.debugBreakpointDataUnverified=new a("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),a.debugBreakpointData=new a("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),a.debugBreakpointDataDisabled=new a("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),a.debugBreakpointLogUnverified=new a("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),a.debugBreakpointLog=new a("debug-breakpoint-log",{fontCharacter:"\\eaab"}),a.debugBreakpointLogDisabled=new a("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),a.briefcase=new a("briefcase",{fontCharacter:"\\eaac"}),a.broadcast=new a("broadcast",{fontCharacter:"\\eaad"}),a.browser=new a("browser",{fontCharacter:"\\eaae"}),a.bug=new a("bug",{fontCharacter:"\\eaaf"}),a.calendar=new a("calendar",{fontCharacter:"\\eab0"}),a.caseSensitive=new a("case-sensitive",{fontCharacter:"\\eab1"}),a.check=new a("check",{fontCharacter:"\\eab2"}),a.checklist=new a("checklist",{fontCharacter:"\\eab3"}),a.chevronDown=new a("chevron-down",{fontCharacter:"\\eab4"}),a.dropDownButton=new a("drop-down-button",a.chevronDown.definition),a.chevronLeft=new a("chevron-left",{fontCharacter:"\\eab5"}),a.chevronRight=new a("chevron-right",{fontCharacter:"\\eab6"}),a.chevronUp=new a("chevron-up",{fontCharacter:"\\eab7"}),a.chromeClose=new a("chrome-close",{fontCharacter:"\\eab8"}),a.chromeMaximize=new a("chrome-maximize",{fontCharacter:"\\eab9"}),a.chromeMinimize=new a("chrome-minimize",{fontCharacter:"\\eaba"}),a.chromeRestore=new a("chrome-restore",{fontCharacter:"\\eabb"}),a.circleOutline=new a("circle-outline",{fontCharacter:"\\eabc"}),a.debugBreakpointUnverified=new a("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),a.circleSlash=new a("circle-slash",{fontCharacter:"\\eabd"}),a.circuitBoard=new a("circuit-board",{fontCharacter:"\\eabe"}),a.clearAll=new a("clear-all",{fontCharacter:"\\eabf"}),a.clippy=new a("clippy",{fontCharacter:"\\eac0"}),a.closeAll=new a("close-all",{fontCharacter:"\\eac1"}),a.cloudDownload=new a("cloud-download",{fontCharacter:"\\eac2"}),a.cloudUpload=new a("cloud-upload",{fontCharacter:"\\eac3"}),a.code=new a("code",{fontCharacter:"\\eac4"}),a.collapseAll=new a("collapse-all",{fontCharacter:"\\eac5"}),a.colorMode=new a("color-mode",{fontCharacter:"\\eac6"}),a.commentDiscussion=new a("comment-discussion",{fontCharacter:"\\eac7"}),a.compareChanges=new a("compare-changes",{fontCharacter:"\\eafd"}),a.creditCard=new a("credit-card",{fontCharacter:"\\eac9"}),a.dash=new a("dash",{fontCharacter:"\\eacc"}),a.dashboard=new a("dashboard",{fontCharacter:"\\eacd"}),a.database=new a("database",{fontCharacter:"\\eace"}),a.debugContinue=new a("debug-continue",{fontCharacter:"\\eacf"}),a.debugDisconnect=new a("debug-disconnect",{fontCharacter:"\\ead0"}),a.debugPause=new a("debug-pause",{fontCharacter:"\\ead1"}),a.debugRestart=new a("debug-restart",{fontCharacter:"\\ead2"}),a.debugStart=new a("debug-start",{fontCharacter:"\\ead3"}),a.debugStepInto=new a("debug-step-into",{fontCharacter:"\\ead4"}),a.debugStepOut=new a("debug-step-out",{fontCharacter:"\\ead5"}),a.debugStepOver=new a("debug-step-over",{fontCharacter:"\\ead6"}),a.debugStop=new a("debug-stop",{fontCharacter:"\\ead7"}),a.debug=new a("debug",{fontCharacter:"\\ead8"}),a.deviceCameraVideo=new a("device-camera-video",{fontCharacter:"\\ead9"}),a.deviceCamera=new a("device-camera",{fontCharacter:"\\eada"}),a.deviceMobile=new a("device-mobile",{fontCharacter:"\\eadb"}),a.diffAdded=new a("diff-added",{fontCharacter:"\\eadc"}),a.diffIgnored=new a("diff-ignored",{fontCharacter:"\\eadd"}),a.diffModified=new a("diff-modified",{fontCharacter:"\\eade"}),a.diffRemoved=new a("diff-removed",{fontCharacter:"\\eadf"}),a.diffRenamed=new a("diff-renamed",{fontCharacter:"\\eae0"}),a.diff=new a("diff",{fontCharacter:"\\eae1"}),a.discard=new a("discard",{fontCharacter:"\\eae2"}),a.editorLayout=new a("editor-layout",{fontCharacter:"\\eae3"}),a.emptyWindow=new a("empty-window",{fontCharacter:"\\eae4"}),a.exclude=new a("exclude",{fontCharacter:"\\eae5"}),a.extensions=new a("extensions",{fontCharacter:"\\eae6"}),a.eyeClosed=new a("eye-closed",{fontCharacter:"\\eae7"}),a.fileBinary=new a("file-binary",{fontCharacter:"\\eae8"}),a.fileCode=new a("file-code",{fontCharacter:"\\eae9"}),a.fileMedia=new a("file-media",{fontCharacter:"\\eaea"}),a.filePdf=new a("file-pdf",{fontCharacter:"\\eaeb"}),a.fileSubmodule=new a("file-submodule",{fontCharacter:"\\eaec"}),a.fileSymlinkDirectory=new a("file-symlink-directory",{fontCharacter:"\\eaed"}),a.fileSymlinkFile=new a("file-symlink-file",{fontCharacter:"\\eaee"}),a.fileZip=new a("file-zip",{fontCharacter:"\\eaef"}),a.files=new a("files",{fontCharacter:"\\eaf0"}),a.filter=new a("filter",{fontCharacter:"\\eaf1"}),a.flame=new a("flame",{fontCharacter:"\\eaf2"}),a.foldDown=new a("fold-down",{fontCharacter:"\\eaf3"}),a.foldUp=new a("fold-up",{fontCharacter:"\\eaf4"}),a.fold=new a("fold",{fontCharacter:"\\eaf5"}),a.folderActive=new a("folder-active",{fontCharacter:"\\eaf6"}),a.folderOpened=new a("folder-opened",{fontCharacter:"\\eaf7"}),a.gear=new a("gear",{fontCharacter:"\\eaf8"}),a.gift=new a("gift",{fontCharacter:"\\eaf9"}),a.gistSecret=new a("gist-secret",{fontCharacter:"\\eafa"}),a.gist=new a("gist",{fontCharacter:"\\eafb"}),a.gitCommit=new a("git-commit",{fontCharacter:"\\eafc"}),a.gitCompare=new a("git-compare",{fontCharacter:"\\eafd"}),a.gitMerge=new a("git-merge",{fontCharacter:"\\eafe"}),a.githubAction=new a("github-action",{fontCharacter:"\\eaff"}),a.githubAlt=new a("github-alt",{fontCharacter:"\\eb00"}),a.globe=new a("globe",{fontCharacter:"\\eb01"}),a.grabber=new a("grabber",{fontCharacter:"\\eb02"}),a.graph=new a("graph",{fontCharacter:"\\eb03"}),a.gripper=new a("gripper",{fontCharacter:"\\eb04"}),a.heart=new a("heart",{fontCharacter:"\\eb05"}),a.home=new a("home",{fontCharacter:"\\eb06"}),a.horizontalRule=new a("horizontal-rule",{fontCharacter:"\\eb07"}),a.hubot=new a("hubot",{fontCharacter:"\\eb08"}),a.inbox=new a("inbox",{fontCharacter:"\\eb09"}),a.issueClosed=new a("issue-closed",{fontCharacter:"\\eba4"}),a.issueReopened=new a("issue-reopened",{fontCharacter:"\\eb0b"}),a.issues=new a("issues",{fontCharacter:"\\eb0c"}),a.italic=new a("italic",{fontCharacter:"\\eb0d"}),a.jersey=new a("jersey",{fontCharacter:"\\eb0e"}),a.json=new a("json",{fontCharacter:"\\eb0f"}),a.kebabVertical=new a("kebab-vertical",{fontCharacter:"\\eb10"}),a.key=new a("key",{fontCharacter:"\\eb11"}),a.law=new a("law",{fontCharacter:"\\eb12"}),a.lightbulbAutofix=new a("lightbulb-autofix",{fontCharacter:"\\eb13"}),a.linkExternal=new a("link-external",{fontCharacter:"\\eb14"}),a.link=new a("link",{fontCharacter:"\\eb15"}),a.listOrdered=new a("list-ordered",{fontCharacter:"\\eb16"}),a.listUnordered=new a("list-unordered",{fontCharacter:"\\eb17"}),a.liveShare=new a("live-share",{fontCharacter:"\\eb18"}),a.loading=new a("loading",{fontCharacter:"\\eb19"}),a.location=new a("location",{fontCharacter:"\\eb1a"}),a.mailRead=new a("mail-read",{fontCharacter:"\\eb1b"}),a.mail=new a("mail",{fontCharacter:"\\eb1c"}),a.markdown=new a("markdown",{fontCharacter:"\\eb1d"}),a.megaphone=new a("megaphone",{fontCharacter:"\\eb1e"}),a.mention=new a("mention",{fontCharacter:"\\eb1f"}),a.milestone=new a("milestone",{fontCharacter:"\\eb20"}),a.mortarBoard=new a("mortar-board",{fontCharacter:"\\eb21"}),a.move=new a("move",{fontCharacter:"\\eb22"}),a.multipleWindows=new a("multiple-windows",{fontCharacter:"\\eb23"}),a.mute=new a("mute",{fontCharacter:"\\eb24"}),a.noNewline=new a("no-newline",{fontCharacter:"\\eb25"}),a.note=new a("note",{fontCharacter:"\\eb26"}),a.octoface=new a("octoface",{fontCharacter:"\\eb27"}),a.openPreview=new a("open-preview",{fontCharacter:"\\eb28"}),a.package_=new a("package",{fontCharacter:"\\eb29"}),a.paintcan=new a("paintcan",{fontCharacter:"\\eb2a"}),a.pin=new a("pin",{fontCharacter:"\\eb2b"}),a.play=new a("play",{fontCharacter:"\\eb2c"}),a.run=new a("run",{fontCharacter:"\\eb2c"}),a.plug=new a("plug",{fontCharacter:"\\eb2d"}),a.preserveCase=new a("preserve-case",{fontCharacter:"\\eb2e"}),a.preview=new a("preview",{fontCharacter:"\\eb2f"}),a.project=new a("project",{fontCharacter:"\\eb30"}),a.pulse=new a("pulse",{fontCharacter:"\\eb31"}),a.question=new a("question",{fontCharacter:"\\eb32"}),a.quote=new a("quote",{fontCharacter:"\\eb33"}),a.radioTower=new a("radio-tower",{fontCharacter:"\\eb34"}),a.reactions=new a("reactions",{fontCharacter:"\\eb35"}),a.references=new a("references",{fontCharacter:"\\eb36"}),a.refresh=new a("refresh",{fontCharacter:"\\eb37"}),a.regex=new a("regex",{fontCharacter:"\\eb38"}),a.remoteExplorer=new a("remote-explorer",{fontCharacter:"\\eb39"}),a.remote=new a("remote",{fontCharacter:"\\eb3a"}),a.remove=new a("remove",{fontCharacter:"\\eb3b"}),a.replaceAll=new a("replace-all",{fontCharacter:"\\eb3c"}),a.replace=new a("replace",{fontCharacter:"\\eb3d"}),a.repoClone=new a("repo-clone",{fontCharacter:"\\eb3e"}),a.repoForcePush=new a("repo-force-push",{fontCharacter:"\\eb3f"}),a.repoPull=new a("repo-pull",{fontCharacter:"\\eb40"}),a.repoPush=new a("repo-push",{fontCharacter:"\\eb41"}),a.report=new a("report",{fontCharacter:"\\eb42"}),a.requestChanges=new a("request-changes",{fontCharacter:"\\eb43"}),a.rocket=new a("rocket",{fontCharacter:"\\eb44"}),a.rootFolderOpened=new a("root-folder-opened",{fontCharacter:"\\eb45"}),a.rootFolder=new a("root-folder",{fontCharacter:"\\eb46"}),a.rss=new a("rss",{fontCharacter:"\\eb47"}),a.ruby=new a("ruby",{fontCharacter:"\\eb48"}),a.saveAll=new a("save-all",{fontCharacter:"\\eb49"}),a.saveAs=new a("save-as",{fontCharacter:"\\eb4a"}),a.save=new a("save",{fontCharacter:"\\eb4b"}),a.screenFull=new a("screen-full",{fontCharacter:"\\eb4c"}),a.screenNormal=new a("screen-normal",{fontCharacter:"\\eb4d"}),a.searchStop=new a("search-stop",{fontCharacter:"\\eb4e"}),a.server=new a("server",{fontCharacter:"\\eb50"}),a.settingsGear=new a("settings-gear",{fontCharacter:"\\eb51"}),a.settings=new a("settings",{fontCharacter:"\\eb52"}),a.shield=new a("shield",{fontCharacter:"\\eb53"}),a.smiley=new a("smiley",{fontCharacter:"\\eb54"}),a.sortPrecedence=new a("sort-precedence",{fontCharacter:"\\eb55"}),a.splitHorizontal=new a("split-horizontal",{fontCharacter:"\\eb56"}),a.splitVertical=new a("split-vertical",{fontCharacter:"\\eb57"}),a.squirrel=new a("squirrel",{fontCharacter:"\\eb58"}),a.starFull=new a("star-full",{fontCharacter:"\\eb59"}),a.starHalf=new a("star-half",{fontCharacter:"\\eb5a"}),a.symbolClass=new a("symbol-class",{fontCharacter:"\\eb5b"}),a.symbolColor=new a("symbol-color",{fontCharacter:"\\eb5c"}),a.symbolConstant=new a("symbol-constant",{fontCharacter:"\\eb5d"}),a.symbolEnumMember=new a("symbol-enum-member",{fontCharacter:"\\eb5e"}),a.symbolField=new a("symbol-field",{fontCharacter:"\\eb5f"}),a.symbolFile=new a("symbol-file",{fontCharacter:"\\eb60"}),a.symbolInterface=new a("symbol-interface",{fontCharacter:"\\eb61"}),a.symbolKeyword=new a("symbol-keyword",{fontCharacter:"\\eb62"}),a.symbolMisc=new a("symbol-misc",{fontCharacter:"\\eb63"}),a.symbolOperator=new a("symbol-operator",{fontCharacter:"\\eb64"}),a.symbolProperty=new a("symbol-property",{fontCharacter:"\\eb65"}),a.wrench=new a("wrench",{fontCharacter:"\\eb65"}),a.wrenchSubaction=new a("wrench-subaction",{fontCharacter:"\\eb65"}),a.symbolSnippet=new a("symbol-snippet",{fontCharacter:"\\eb66"}),a.tasklist=new a("tasklist",{fontCharacter:"\\eb67"}),a.telescope=new a("telescope",{fontCharacter:"\\eb68"}),a.textSize=new a("text-size",{fontCharacter:"\\eb69"}),a.threeBars=new a("three-bars",{fontCharacter:"\\eb6a"}),a.thumbsdown=new a("thumbsdown",{fontCharacter:"\\eb6b"}),a.thumbsup=new a("thumbsup",{fontCharacter:"\\eb6c"}),a.tools=new a("tools",{fontCharacter:"\\eb6d"}),a.triangleDown=new a("triangle-down",{fontCharacter:"\\eb6e"}),a.triangleLeft=new a("triangle-left",{fontCharacter:"\\eb6f"}),a.triangleRight=new a("triangle-right",{fontCharacter:"\\eb70"}),a.triangleUp=new a("triangle-up",{fontCharacter:"\\eb71"}),a.twitter=new a("twitter",{fontCharacter:"\\eb72"}),a.unfold=new a("unfold",{fontCharacter:"\\eb73"}),a.unlock=new a("unlock",{fontCharacter:"\\eb74"}),a.unmute=new a("unmute",{fontCharacter:"\\eb75"}),a.unverified=new a("unverified",{fontCharacter:"\\eb76"}),a.verified=new a("verified",{fontCharacter:"\\eb77"}),a.versions=new a("versions",{fontCharacter:"\\eb78"}),a.vmActive=new a("vm-active",{fontCharacter:"\\eb79"}),a.vmOutline=new a("vm-outline",{fontCharacter:"\\eb7a"}),a.vmRunning=new a("vm-running",{fontCharacter:"\\eb7b"}),a.watch=new a("watch",{fontCharacter:"\\eb7c"}),a.whitespace=new a("whitespace",{fontCharacter:"\\eb7d"}),a.wholeWord=new a("whole-word",{fontCharacter:"\\eb7e"}),a.window=new a("window",{fontCharacter:"\\eb7f"}),a.wordWrap=new a("word-wrap",{fontCharacter:"\\eb80"}),a.zoomIn=new a("zoom-in",{fontCharacter:"\\eb81"}),a.zoomOut=new a("zoom-out",{fontCharacter:"\\eb82"}),a.listFilter=new a("list-filter",{fontCharacter:"\\eb83"}),a.listFlat=new a("list-flat",{fontCharacter:"\\eb84"}),a.listSelection=new a("list-selection",{fontCharacter:"\\eb85"}),a.selection=new a("selection",{fontCharacter:"\\eb85"}),a.listTree=new a("list-tree",{fontCharacter:"\\eb86"}),a.debugBreakpointFunctionUnverified=new a("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),a.debugBreakpointFunction=new a("debug-breakpoint-function",{fontCharacter:"\\eb88"}),a.debugBreakpointFunctionDisabled=new a("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),a.debugStackframeActive=new a("debug-stackframe-active",{fontCharacter:"\\eb89"}),a.debugStackframeDot=new a("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),a.debugStackframe=new a("debug-stackframe",{fontCharacter:"\\eb8b"}),a.debugStackframeFocused=new a("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),a.debugBreakpointUnsupported=new a("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),a.symbolString=new a("symbol-string",{fontCharacter:"\\eb8d"}),a.debugReverseContinue=new a("debug-reverse-continue",{fontCharacter:"\\eb8e"}),a.debugStepBack=new a("debug-step-back",{fontCharacter:"\\eb8f"}),a.debugRestartFrame=new a("debug-restart-frame",{fontCharacter:"\\eb90"}),a.callIncoming=new a("call-incoming",{fontCharacter:"\\eb92"}),a.callOutgoing=new a("call-outgoing",{fontCharacter:"\\eb93"}),a.menu=new a("menu",{fontCharacter:"\\eb94"}),a.expandAll=new a("expand-all",{fontCharacter:"\\eb95"}),a.feedback=new a("feedback",{fontCharacter:"\\eb96"}),a.groupByRefType=new a("group-by-ref-type",{fontCharacter:"\\eb97"}),a.ungroupByRefType=new a("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),a.account=new a("account",{fontCharacter:"\\eb99"}),a.bellDot=new a("bell-dot",{fontCharacter:"\\eb9a"}),a.debugConsole=new a("debug-console",{fontCharacter:"\\eb9b"}),a.library=new a("library",{fontCharacter:"\\eb9c"}),a.output=new a("output",{fontCharacter:"\\eb9d"}),a.runAll=new a("run-all",{fontCharacter:"\\eb9e"}),a.syncIgnored=new a("sync-ignored",{fontCharacter:"\\eb9f"}),a.pinned=new a("pinned",{fontCharacter:"\\eba0"}),a.githubInverted=new a("github-inverted",{fontCharacter:"\\eba1"}),a.debugAlt=new a("debug-alt",{fontCharacter:"\\eb91"}),a.serverProcess=new a("server-process",{fontCharacter:"\\eba2"}),a.serverEnvironment=new a("server-environment",{fontCharacter:"\\eba3"}),a.pass=new a("pass",{fontCharacter:"\\eba4"}),a.stopCircle=new a("stop-circle",{fontCharacter:"\\eba5"}),a.playCircle=new a("play-circle",{fontCharacter:"\\eba6"}),a.record=new a("record",{fontCharacter:"\\eba7"}),a.debugAltSmall=new a("debug-alt-small",{fontCharacter:"\\eba8"}),a.vmConnect=new a("vm-connect",{fontCharacter:"\\eba9"}),a.cloud=new a("cloud",{fontCharacter:"\\ebaa"}),a.merge=new a("merge",{fontCharacter:"\\ebab"}),a.exportIcon=new a("export",{fontCharacter:"\\ebac"}),a.graphLeft=new a("graph-left",{fontCharacter:"\\ebad"}),a.magnet=new a("magnet",{fontCharacter:"\\ebae"}),a.notebook=new a("notebook",{fontCharacter:"\\ebaf"}),a.redo=new a("redo",{fontCharacter:"\\ebb0"}),a.checkAll=new a("check-all",{fontCharacter:"\\ebb1"}),a.pinnedDirty=new a("pinned-dirty",{fontCharacter:"\\ebb2"}),a.passFilled=new a("pass-filled",{fontCharacter:"\\ebb3"}),a.circleLargeFilled=new a("circle-large-filled",{fontCharacter:"\\ebb4"}),a.circleLargeOutline=new a("circle-large-outline",{fontCharacter:"\\ebb5"}),a.combine=new a("combine",{fontCharacter:"\\ebb6"}),a.gather=new a("gather",{fontCharacter:"\\ebb6"}),a.table=new a("table",{fontCharacter:"\\ebb7"}),a.variableGroup=new a("variable-group",{fontCharacter:"\\ebb8"}),a.typeHierarchy=new a("type-hierarchy",{fontCharacter:"\\ebb9"}),a.typeHierarchySub=new a("type-hierarchy-sub",{fontCharacter:"\\ebba"}),a.typeHierarchySuper=new a("type-hierarchy-super",{fontCharacter:"\\ebbb"}),a.gitPullRequestCreate=new a("git-pull-request-create",{fontCharacter:"\\ebbc"}),a.runAbove=new a("run-above",{fontCharacter:"\\ebbd"}),a.runBelow=new a("run-below",{fontCharacter:"\\ebbe"}),a.notebookTemplate=new a("notebook-template",{fontCharacter:"\\ebbf"}),a.debugRerun=new a("debug-rerun",{fontCharacter:"\\ebc0"}),a.workspaceTrusted=new a("workspace-trusted",{fontCharacter:"\\ebc1"}),a.workspaceUntrusted=new a("workspace-untrusted",{fontCharacter:"\\ebc2"}),a.workspaceUnspecified=new a("workspace-unspecified",{fontCharacter:"\\ebc3"}),a.terminalCmd=new a("terminal-cmd",{fontCharacter:"\\ebc4"}),a.terminalDebian=new a("terminal-debian",{fontCharacter:"\\ebc5"}),a.terminalLinux=new a("terminal-linux",{fontCharacter:"\\ebc6"}),a.terminalPowershell=new a("terminal-powershell",{fontCharacter:"\\ebc7"}),a.terminalTmux=new a("terminal-tmux",{fontCharacter:"\\ebc8"}),a.terminalUbuntu=new a("terminal-ubuntu",{fontCharacter:"\\ebc9"}),a.terminalBash=new a("terminal-bash",{fontCharacter:"\\ebca"}),a.arrowSwap=new a("arrow-swap",{fontCharacter:"\\ebcb"}),a.copy=new a("copy",{fontCharacter:"\\ebcc"}),a.personAdd=new a("person-add",{fontCharacter:"\\ebcd"}),a.filterFilled=new a("filter-filled",{fontCharacter:"\\ebce"}),a.wand=new a("wand",{fontCharacter:"\\ebcf"}),a.debugLineByLine=new a("debug-line-by-line",{fontCharacter:"\\ebd0"}),a.inspect=new a("inspect",{fontCharacter:"\\ebd1"}),a.layers=new a("layers",{fontCharacter:"\\ebd2"}),a.layersDot=new a("layers-dot",{fontCharacter:"\\ebd3"}),a.layersActive=new a("layers-active",{fontCharacter:"\\ebd4"}),a.compass=new a("compass",{fontCharacter:"\\ebd5"}),a.compassDot=new a("compass-dot",{fontCharacter:"\\ebd6"}),a.compassActive=new a("compass-active",{fontCharacter:"\\ebd7"}),a.azure=new a("azure",{fontCharacter:"\\ebd8"}),a.issueDraft=new a("issue-draft",{fontCharacter:"\\ebd9"}),a.gitPullRequestClosed=new a("git-pull-request-closed",{fontCharacter:"\\ebda"}),a.gitPullRequestDraft=new a("git-pull-request-draft",{fontCharacter:"\\ebdb"}),a.debugAll=new a("debug-all",{fontCharacter:"\\ebdc"}),a.debugCoverage=new a("debug-coverage",{fontCharacter:"\\ebdd"}),a.runErrors=new a("run-errors",{fontCharacter:"\\ebde"}),a.folderLibrary=new a("folder-library",{fontCharacter:"\\ebdf"}),a.debugContinueSmall=new a("debug-continue-small",{fontCharacter:"\\ebe0"}),a.beakerStop=new a("beaker-stop",{fontCharacter:"\\ebe1"}),a.graphLine=new a("graph-line",{fontCharacter:"\\ebe2"}),a.graphScatter=new a("graph-scatter",{fontCharacter:"\\ebe3"}),a.pieChart=new a("pie-chart",{fontCharacter:"\\ebe4"}),a.bracket=new a("bracket",a.json.definition),a.bracketDot=new a("bracket-dot",{fontCharacter:"\\ebe5"}),a.bracketError=new a("bracket-error",{fontCharacter:"\\ebe6"}),a.lockSmall=new a("lock-small",{fontCharacter:"\\ebe7"}),a.azureDevops=new a("azure-devops",{fontCharacter:"\\ebe8"}),a.verifiedFilled=new a("verified-filled",{fontCharacter:"\\ebe9"})}(M||(M={}))},VpOo:function(Ge,re){function y(Q,W){var k=W.x,B=W.y,O=W.width,R=W.height,M=W.r,p,a,b,u;O<0&&(k=k+O,O=-O),R<0&&(B=B+R,R=-R),typeof M=="number"?p=a=b=u=M:M instanceof Array?M.length===1?p=a=b=u=M[0]:M.length===2?(p=b=M[0],a=u=M[1]):M.length===3?(p=M[0],a=u=M[1],b=M[2]):(p=M[0],a=M[1],b=M[2],u=M[3]):p=a=b=u=0;var d;p+a>O&&(d=p+a,p*=O/d,a*=O/d),b+u>O&&(d=b+u,b*=O/d,u*=O/d),a+b>R&&(d=a+b,a*=R/d,b*=R/d),p+u>R&&(d=p+u,p*=R/d,u*=R/d),Q.moveTo(k+p,B),Q.lineTo(k+O-a,B),a!==0&&Q.arc(k+O-a,B+a,a,-Math.PI/2,0),Q.lineTo(k+O,B+R-b),b!==0&&Q.arc(k+O-b,B+R-b,b,0,Math.PI/2),Q.lineTo(k+u,B+R),u!==0&&Q.arc(k+u,B+R-u,u,Math.PI/2,Math.PI),Q.lineTo(k,B+p),p!==0&&Q.arc(k+p,B+p,p,Math.PI,Math.PI*1.5)}re.buildPath=y},"VrN/":function(Ge,re,y){(function(Q,W){Ge.exports=W()})(this,function(){"use strict";var Q=navigator.userAgent,W=navigator.platform,k=/gecko\/\d/i.test(Q),B=/MSIE \d/.test(Q),O=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Q),R=/Edge\/(\d+)/.exec(Q),M=B||O||R,p=M&&(B?document.documentMode||6:+(R||O)[1]),a=!R&&/WebKit\//.test(Q),b=a&&/Qt\/\d+\.\d+/.test(Q),u=!R&&/Chrome\//.test(Q),d=/Opera\//.test(Q),m=/Apple Computer/.test(navigator.vendor),o=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Q),c=/PhantomJS/.test(Q),f=!R&&/AppleWebKit/.test(Q)&&/Mobile\/\w+/.test(Q),i=/Android/.test(Q),t=f||i||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Q),l=f||/Mac/.test(W),s=/\bCrOS\b/.test(Q),w=/win/i.test(W),D=d&&Q.match(/Version\/(\d*\.\d*)/);D&&(D=Number(D[1])),D&&D>=15&&(d=!1,a=!0);var C=l&&(b||d&&(D==null||D<12.11)),v=k||M&&p>=9;function n(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _=function(e,r){var L=e.className,I=n(r).exec(L);if(I){var j=L.slice(I.index+I[0].length);e.className=L.slice(0,I.index)+(j?I[1]+j:"")}};function h(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function g(e,r){return h(e).appendChild(r)}function x(e,r,L,I){var j=document.createElement(e);if(L&&(j.className=L),I&&(j.style.cssText=I),typeof r=="string")j.appendChild(document.createTextNode(r));else if(r)for(var ee=0;ee=r)return ce+(r-ee);ce+=we-ee,ce+=L-ce%L,ee=we+1}}var K=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};K.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},K.prototype.set=function(e,r){this.f=r;var L=+new Date+e;(!this.id||L=r)return I+Math.min(ce,r-j);if(j+=ee-I,j+=L-j%L,I=ee+1,j>=r)return I}}var je=[""];function me(e){for(;je.length<=e;)je.push(fe(je)+" ");return je[e]}function fe(e){return e[e.length-1]}function Ae(e,r){for(var L=[],I=0;I"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Ve.test(e))}function Qe(e,r){return r?r.source.indexOf("\\w")>-1&&dt(e)?!0:r.test(e):dt(e)}function pe(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var xe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Le(e){return e.charCodeAt(0)>=768&&xe.test(e)}function Ye(e,r,L){for(;(L<0?r>0:rL?-1:1;;){if(r==L)return r;var j=(r+L)/2,ee=I<0?Math.ceil(j):Math.floor(j);if(ee==r)return e(ee)?r:L;e(ee)?L=ee:r=ee+I}}function Ct(e,r,L,I){if(!e)return I(r,L,"ltr",0);for(var j=!1,ee=0;eer||r==L&&ce.to==r)&&(I(Math.max(ce.from,r),Math.min(ce.to,L),ce.level==1?"rtl":"ltr",ee),j=!0)}j||I(r,L,"ltr")}var tn=null;function Zt(e,r,L){var I;tn=null;for(var j=0;jr)return j;ee.to==r&&(ee.from!=ee.to&&L=="before"?I=j:tn=j),ee.from==r&&(ee.from!=ee.to&&L!="before"?I=j:tn=j)}return I!=null?I:tn}var Hn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function L(We){return We<=247?e.charAt(We):1424<=We&&We<=1524?"R":1536<=We&&We<=1785?r.charAt(We-1536):1774<=We&&We<=2220?"r":8192<=We&&We<=8203?"w":We==8204?"b":"L"}var I=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,j=/[stwN]/,ee=/[LRr]/,ce=/[Lb1n]/,we=/[1n]/;function De(We,At,Ft){this.level=We,this.from=At,this.to=Ft}return function(We,At){var Ft=At=="ltr"?"L":"R";if(We.length==0||At=="ltr"&&!I.test(We))return!1;for(var kn=We.length,xn=[],Ia=0;Ia-1&&(I[r]=j.slice(0,ee).concat(j.slice(ee+1)))}}}function Ot(e,r){var L=on(e,r);if(!L.length)return;for(var I=Array.prototype.slice.call(arguments,2),j=0;j0}function rt(e){e.prototype.on=function(r,L){mt(this,r,L)},e.prototype.off=function(r,L){hn(this,r,L)}}function Te(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ie(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function be(e){Te(e),Me(e)}function qe(e){return e.target||e.srcElement}function Lt(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),l&&e.ctrlKey&&r==1&&(r=3),r}var nn=function(){if(M&&p<9)return!1;var e=x("div");return"draggable"in e||"dragDrop"in e}(),$n;function ta(e){if($n==null){var r=x("span","\u200B");g(e,x("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&($n=r.offsetWidth<=1&&r.offsetHeight>2&&!(M&&p<8))}var L=$n?x("span","\u200B"):x("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return L.setAttribute("cm-text",""),L}var Sa;function _n(e){if(Sa!=null)return Sa;var r=g(e,document.createTextNode("A\u062EA")),L=S(r,0,1).getBoundingClientRect(),I=S(r,1,2).getBoundingClientRect();return h(e),!L||L.left==L.right?!1:Sa=I.right-L.right<3}var Bt=` b`.split(/\n/).length!=3?function(e){for(var r=0,L=[],I=e.length;r<=I;){var j=e.indexOf(` `,r);j==-1&&(j=e.length);var ee=e.slice(r,e.charAt(j-1)=="\r"?j-1:j),ce=ee.indexOf("\r");ce!=-1?(L.push(ee.slice(0,ce)),r+=ce+1):(L.push(ee),r=j+1)}return L}:function(e){return e.split(/\r\n?|\n/)},mn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(r){return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch(L){}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Gt=function(){var e=x("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ze=null;function ct(e){if(ze!=null)return ze;var r=g(e,x("span","x")),L=r.getBoundingClientRect(),I=S(r,0,1).getBoundingClientRect();return ze=Math.abs(L.left-I.left)>1}var Sn={},qt={};function Gn(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Sn[e]=r}function qn(e,r){qt[e]=r}function Mt(e){if(typeof e=="string"&&qt.hasOwnProperty(e))e=qt[e];else if(e&&typeof e.name=="string"&&qt.hasOwnProperty(e.name)){var r=qt[e.name];typeof r=="string"&&(r={name:r}),e=st(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Mt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Mt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Nn(e,r){r=Mt(r);var L=Sn[r.name];if(!L)return Nn(e,"text/plain");var I=L(e,r);if(Bn.hasOwnProperty(r.name)){var j=Bn[r.name];for(var ee in j){if(!j.hasOwnProperty(ee))continue;I.hasOwnProperty(ee)&&(I["_"+ee]=I[ee]),I[ee]=j[ee]}}if(I.name=r.name,r.helperType&&(I.helperType=r.helperType),r.modeProps)for(var ce in r.modeProps)I[ce]=r.modeProps[ce];return I}var Bn={};function na(e,r){var L=Bn.hasOwnProperty(e)?Bn[e]:Bn[e]={};A(r,L)}function Ea(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var L={};for(var I in r){var j=r[I];j instanceof Array&&(j=j.concat([])),L[I]=j}return L}function Pe(e,r){for(var L;e.innerMode&&!(L=e.innerMode(r),!L||L.mode==e);)r=L.state,e=L.mode;return L||{mode:e,state:r}}function ye(e,r,L){return e.startState?e.startState(r,L):!0}var J=function(e,r,L){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=L};J.prototype.eol=function(){return this.pos>=this.string.length},J.prototype.sol=function(){return this.pos==this.lineStart},J.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},J.prototype.next=function(){if(this.posr},J.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},J.prototype.skipToEnd=function(){this.pos=this.string.length},J.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},J.prototype.backUp=function(e){this.pos-=e},J.prototype.column=function(){return this.lastColumnPos0?null:(ee&&r!==!1&&(this.pos+=ee[0].length),ee)}},J.prototype.current=function(){return this.string.slice(this.start,this.pos)},J.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},J.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},J.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function q(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var L=e;!L.lines;)for(var I=0;;++I){var j=L.children[I],ee=j.chunkSize();if(r=e.first&&rL?at(L,q(e,L).text.length):Y(r,q(e,r.line).text.length)}function Y(e,r){var L=e.ch;return L==null||L>r?at(e.line,r):L<0?at(e.line,0):e}function te(e,r){for(var L=[],I=0;Ithis.maxLookAhead&&(this.maxLookAhead=e),r},se.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},se.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},se.fromSaved=function(e,r,L){return r instanceof _e?new se(e,Ea(e.mode,r.state),L,r.lookAhead):new se(e,Ea(e.mode,r),L)},se.prototype.save=function(e){var r=e!==!1?Ea(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _e(r,this.maxLookAhead):r};function ut(e,r,L,I){var j=[e.state.modeGen],ee={};ir(e,r.text,e.doc.mode,L,function(We,At){return j.push(We,At)},ee,I);for(var ce=L.state,we=function(We){L.baseTokens=j;var At=e.state.overlays[We],Ft=1,kn=0;L.state=!0,ir(e,r.text,At.mode,L,function(xn,Ia){for(var Ga=Ft;knxn&&j.splice(Ft,1,xn,j[Ft+1],lr),Ft+=2,kn=Math.min(xn,lr)}if(!Ia)return;if(At.opaque)j.splice(Ga,Ft-Ga,xn,"overlay "+Ia),Ft=Ga+2;else for(;Gae.options.maxHighlightLength&&Ea(e.doc.mode,I.state),ee=ut(e,r,I);j&&(I.state=j),r.stateAfter=I.save(!j),r.styles=ee.styles,ee.classes?r.styleClasses=ee.classes:r.styleClasses&&(r.styleClasses=null),L===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function Wn(e,r,L){var I=e.doc,j=e.display;if(!I.mode.startState)return new se(I,!0,r);var ee=Qa(e,r,L),ce=ee>I.first&&q(I,ee-1).stateAfter,we=ce?se.fromSaved(I,ce,ee):new se(I,ye(I.mode),ee);return I.iter(ee,r,function(De){Oa(e,De.text,we);var We=we.line;De.stateAfter=We==r-1||We%5==0||We>=j.viewFrom&&Wer.start)return ee}throw new Error("Mode "+e.name+" failed to advance stream.")}var ya=function(e,r,L){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=L};function fr(e,r,L,I){var j=e.doc,ee=j.mode,ce;r=z(j,r);var we=q(j,r.line),De=Wn(e,r.line,L),We=new J(we.text,e.options.tabSize,De),At;for(I&&(At=[]);(I||We.pose.options.maxHighlightLength?(we=!1,ce&&Oa(e,r,I,At.pos),At.pos=r.length,Ft=null):Ft=gr(Tn(L,At,I.state,kn),ee),kn){var xn=kn[0].name;xn&&(Ft="m-"+(Ft?xn+" "+Ft:xn))}if(!we||We!=Ft){for(;Dece;--we){if(we<=ee.first)return ee.first;var De=q(ee,we-1),We=De.stateAfter;if(We&&(!L||we+(We instanceof _e?We.lookAhead:0)<=ee.modeFrontier))return we;var At=G(De.text,null,e.options.tabSize);(j==null||I>At)&&(j=we-1,I=At)}return j}function ba(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),e.highlightFrontierL;I--){var j=q(e,I).stateAfter;if(j&&(!(j instanceof _e)||I+j.lookAhead=r:ee.to>r);(I||(I=[])).push(new An(ce,ee.from,De?null:ee.to))}}return I}function Ta(e,r,L){var I;if(e)for(var j=0;j=r:ee.to>r);if(we||ee.from==r&&ce.type=="bookmark"&&(!L||ee.marker.insertLeft)){var De=ee.from==null||(ce.inclusiveLeft?ee.from<=r:ee.from0&&we)for(var Ur=0;Ur0)continue;var At=[De,1],Ft=Ht(We.from,we.from),kn=Ht(We.to,we.to);(Ft<0||!ce.inclusiveLeft&&!Ft)&&At.push({from:We.from,to:we.from}),(kn>0||!ce.inclusiveRight&&!kn)&&At.push({from:we.to,to:We.to}),j.splice.apply(j,At),De+=At.length-3}return j}function lt(e){var r=e.markedSpans;if(!r)return;for(var L=0;Lr)&&(!I||jt(I,ee.marker)<0)&&(I=ee.marker)}return I}function jn(e,r,L,I,j){var ee=q(e,r),ce=Ma&&ee.markedSpans;if(ce)for(var we=0;we=0&&Ft<=0||At<=0&&Ft>=0)continue;if(At<=0&&(De.marker.inclusiveRight&&j.inclusiveLeft?Ht(We.to,L)>=0:Ht(We.to,L)>0)||At>=0&&(De.marker.inclusiveRight&&j.inclusiveLeft?Ht(We.from,I)<=0:Ht(We.from,I)<0))return!0}}function $t(e){for(var r;r=wn(e);)e=r.find(-1,!0).line;return e}function yn(e){for(var r;r=fn(e);)e=r.find(1,!0).line;return e}function pn(e){for(var r,L;r=fn(e);)e=r.find(1,!0).line,(L||(L=[])).push(e);return L}function On(e,r){var L=q(e,r),I=$t(L);return L==I?r:Re(I)}function cn(e,r){if(r>e.lastLine())return r;var L=q(e,r),I;if(!sn(e,L))return r;for(;I=fn(L);)L=I.find(1,!0).line;return Re(L)+1}function sn(e,r){var L=Ma&&r.markedSpans;if(L)for(var I=void 0,j=0;jr.maxLineLength&&(r.maxLineLength=j,r.maxLine=I)})}var ua=function(e,r,L){this.text=e,ft(this,r),this.height=L?L(this):1};ua.prototype.lineNo=function(){return Re(this)},rt(ua);function xa(e,r,L,I){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),lt(e),ft(e,L);var j=I?I(e):1;j!=e.height&&Oe(e,j)}function rn(e){e.parent=null,lt(e)}var Vt={},Dt={};function zt(e,r){if(!e||/^\s*$/.test(e))return null;var L=r.addModeClass?Dt:Vt;return L[e]||(L[e]=e.replace(/\S+/g,"cm-$&"))}function xt(e,r){var L=T("span",null,null,a?"padding-right: .1px":null),I={pre:T("pre",[L],"CodeMirror-line"),content:L,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var j=0;j<=(r.rest?r.rest.length:0);j++){var ee=j?r.rest[j-1]:r.line,ce=void 0;I.pos=0,I.addToken=Kt,_n(e.display.measure)&&(ce=ia(ee,e.doc.direction))&&(I.addToken=ha(I.addToken,ce)),I.map=[];var we=r!=e.display.externalMeasured&&Re(ee);Aa(ee,I,vn(e,ee,we)),ee.styleClasses&&(ee.styleClasses.bgClass&&(I.bgClass=P(ee.styleClasses.bgClass,I.bgClass||"")),ee.styleClasses.textClass&&(I.textClass=P(ee.styleClasses.textClass,I.textClass||""))),I.map.length==0&&I.map.push(0,0,I.content.appendChild(ta(e.display.measure))),j==0?(r.measure.map=I.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(I.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(a){var De=I.content.lastChild;(/\bcm-tab\b/.test(De.className)||De.querySelector&&De.querySelector(".cm-tab"))&&(I.content.className="cm-tab-wrap-hack")}return Ot(e,"renderLine",e,r.line,I.pre),I.pre.className&&(I.textClass=P(I.pre.className,I.textClass||"")),I}function ln(e){var r=x("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Kt(e,r,L,I,j,ee,ce){if(!r)return;var we=e.splitSpaces?Xn(r,e.trailingSpace):r,De=e.cm.state.specialChars,We=!1,At;if(!De.test(r))e.col+=r.length,At=document.createTextNode(we),e.map.push(e.pos,e.pos+r.length,At),M&&p<9&&(We=!0),e.pos+=r.length;else{At=document.createDocumentFragment();for(var Ft=0;;){De.lastIndex=Ft;var kn=De.exec(r),xn=kn?kn.index-Ft:r.length-Ft;if(xn){var Ia=document.createTextNode(we.slice(Ft,Ft+xn));M&&p<9?At.appendChild(x("span",[Ia])):At.appendChild(Ia),e.map.push(e.pos,e.pos+xn,Ia),e.col+=xn,e.pos+=xn}if(!kn)break;Ft+=xn+1;var Ga=void 0;if(kn[0]==" "){var lr=e.cm.options.tabSize,yr=lr-e.col%lr;Ga=At.appendChild(x("span",me(yr),"cm-tab")),Ga.setAttribute("role","presentation"),Ga.setAttribute("cm-text"," "),e.col+=yr}else kn[0]=="\r"||kn[0]==` -`?(Ga=At.appendChild(x("span",kn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ga.setAttribute("cm-text",kn[0]),e.col+=1):(Ga=e.cm.options.specialCharPlaceholder(kn[0]),Ga.setAttribute("cm-text",kn[0]),M&&p<9?At.appendChild(x("span",[Ga])):At.appendChild(Ga),e.col+=1);e.map.push(e.pos,e.pos+1,Ga),e.pos++}}if(e.trailingSpace=we.charCodeAt(r.length-1)==32,L||I||j||We||ee||ce){var Dr=L||"";I&&(Dr+=I),j&&(Dr+=j);var xr=x("span",[At],Dr,ee);if(ce)for(var Ur in ce)ce.hasOwnProperty(Ur)&&Ur!="style"&&Ur!="class"&&xr.setAttribute(Ur,ce[Ur]);return e.content.appendChild(xr)}e.content.appendChild(At)}function Xn(e,r){if(e.length>1&&!/ /.test(e))return e;for(var L=r,I="",j=0;jWe&&Ft.from<=We);kn++);if(Ft.to>=At)return e(L,I,j,ee,ce,we,De);e(L,I.slice(0,Ft.to-We),j,ee,null,we,De),ee=null,I=I.slice(Ft.to-We),We=Ft.to}}}function Jn(e,r,L,I){var j=!I&&L.widgetNode;j&&e.map.push(e.pos,e.pos+r,j),!I&&e.cm.display.input.needsContentAttribute&&(j||(j=e.content.appendChild(document.createElement("span"))),j.setAttribute("cm-marker",L.id)),j&&(e.cm.display.input.setUneditable(j),e.content.appendChild(j)),e.pos+=r,e.trailingSpace=!1}function Aa(e,r,L){var I=e.markedSpans,j=e.text,ee=0;if(!I){for(var ce=1;ceDe||Zr.collapsed&&Hr.to==De&&Hr.from==De)){if(Hr.to!=null&&Hr.to!=De&&xn>Hr.to&&(xn=Hr.to,Ga=""),Zr.className&&(Ia+=" "+Zr.className),Zr.css&&(kn=(kn?kn+";":"")+Zr.css),Zr.startStyle&&Hr.from==De&&(lr+=" "+Zr.startStyle),Zr.endStyle&&Hr.to==xn&&(Ur||(Ur=[])).push(Zr.endStyle,Hr.to),Zr.title&&((Dr||(Dr={})).title=Zr.title),Zr.attributes)for(var bi in Zr.attributes)(Dr||(Dr={}))[bi]=Zr.attributes[bi];Zr.collapsed&&(!yr||jt(yr.marker,Zr)<0)&&(yr=Hr)}else Hr.from>De&&xn>Hr.from&&(xn=Hr.from)}if(Ur)for(var Gi=0;Gi=we)break;for(var wo=Math.min(we,xn);;){if(At){var mo=De+At.length;if(!yr){var ji=mo>wo?At.slice(0,wo-De):At;r.addToken(r,ji,Ft?Ft+Ia:Ia,lr,De+ji.length==xn?Ga:"",kn,Dr)}if(mo>=wo){At=At.slice(wo-De),De=wo;break}De=mo,lr=""}At=j.slice(ee,ee=L[We++]),Ft=zt(L[We++],r.cm.options)}}}function Zn(e,r,L){this.line=r,this.rest=pn(r),this.size=this.rest?Re(fe(this.rest))-L+1:1,this.node=this.text=null,this.hidden=sn(e,r)}function ea(e,r,L){for(var I=[],j,ee=r;ee2&&ee.push((De.bottom+We.top)/2-L.top)}}ee.push(L.bottom-L.top)}}function Ce(e,r,L){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var I=0;IL)return{map:e.measure.maps[j],cache:e.measure.caches[j],before:!0}}function Ze(e,r){r=$t(r);var L=Re(r),I=e.display.externalMeasured=new Zn(e.doc,r,L);I.lineN=L;var j=I.built=xt(e,I);return I.text=j.pre,g(e.display.lineMeasure,j.pre),I}function Ke(e,r,L,I){return Pt(e,it(e,r),L,I)}function St(e,r){if(r>=e.display.viewFrom&&r=L.lineN&&rr)&&(ee=De-we,j=ee-1,r>=De&&(ce="right")),j!=null){if(I=e[We+2],we==De&&L==(I.insertLeft?"left":"right")&&(ce=L),L=="left"&&j==0)for(;We&&e[We-2]==e[We-3]&&e[We-1].insertLeft;)I=e[(We-=3)+2],ce="left";if(L=="right"&&j==De-we)for(;We=0&&!((L=e[j]).left!=L.right);j--);return L}function Qn(e,r,L,I){var j=gn(r.map,L,I),ee=j.node,ce=j.start,we=j.end,De=j.collapse,We;if(ee.nodeType==3){for(var At=0;At<4;At++){for(;ce&&Le(r.line.text.charAt(j.coverStart+ce));)--ce;for(;j.coverStart+we0&&(De=I="right");var Ft;e.options.lineWrapping&&(Ft=ee.getClientRects()).length>1?We=Ft[I=="right"?Ft.length-1:0]:We=ee.getBoundingClientRect()}if(M&&p<9&&!ce&&(!We||!We.left&&!We.right)){var kn=ee.parentNode.getClientRects()[0];kn?We={left:kn.left,right:kn.left+vr(e.display),top:kn.top,bottom:kn.bottom}:We=an}for(var xn=We.top-r.rect.top,Ia=We.bottom-r.rect.top,Ga=(xn+Ia)/2,lr=r.view.measure.heights,yr=0;yr=I.text.length?(De=I.text.length,We="before"):De<=0&&(De=0,We="after"),!we)return ce(We=="before"?De-1:De,We=="before");function At(Ia,Ga,lr){var yr=we[Ga],Dr=yr.level==1;return ce(lr?Ia-1:Ia,Dr!=lr)}var Ft=Zt(we,De,We),kn=tn,xn=At(De,Ft,We=="before");return kn!=null&&(xn.other=At(De,kn,We!="before")),xn}function oa(e,r){var L=0;r=z(e.doc,r),e.options.lineWrapping||(L=vr(e.display)*r.ch);var I=q(e.doc,r.line),j=Pn(I)+nr(e.display);return{left:L,right:L,top:j,bottom:j+I.height}}function Ua(e,r,L,I,j){var ee=at(e,r,L);return ee.xRel=j,I&&(ee.outside=I),ee}function Er(e,r,L){var I=e.doc;if(L+=e.display.viewOffset,L<0)return Ua(I.first,0,null,-1,-1);var j=ve(I,L),ee=I.first+I.size-1;if(j>ee)return Ua(I.first+I.size-1,q(I,ee).text.length,null,1,1);r<0&&(r=0);for(var ce=q(I,j);;){var we=Lr(e,ce,j,r,L),De=zn(ce,we.ch+(we.xRel>0||we.outside>0?1:0));if(!De)return we;var We=De.find(1);if(We.line==j)return We;ce=q(I,j=We.line)}}function Ka(e,r,L,I){I-=sr(r);var j=r.text.length,ee=gt(function(ce){return Pt(e,L,ce-1).bottom<=I},j,0);return j=gt(function(ce){return Pt(e,L,ce).top>I},ee,j),{begin:ee,end:j}}function yt(e,r,L,I){L||(L=it(e,r));var j=va(e,r,Pt(e,L,I),"line").top;return Ka(e,r,L,j)}function qa(e,r,L,I){return e.bottom<=L?!1:e.top>L?!0:(I?e.left:e.right)>r}function Lr(e,r,L,I,j){j-=Pn(r);var ee=it(e,r),ce=sr(r),we=0,De=r.text.length,We=!0,At=ia(r,e.doc.direction);if(At){var Ft=(e.options.lineWrapping?Tt:_r)(e,r,L,ee,At,I,j);We=Ft.level!=1,we=We?Ft.from:Ft.to-1,De=We?Ft.to:Ft.from-1}var kn=null,xn=null,Ia=gt(function(Gr){var Hr=Pt(e,ee,Gr);return Hr.top+=ce,Hr.bottom+=ce,qa(Hr,I,j,!1)?(Hr.top<=j&&Hr.left<=I&&(kn=Gr,xn=Hr),!0):!1},we,De),Ga,lr,yr=!1;if(xn){var Dr=I-xn.left=Ur.bottom?1:0}return Ia=Ye(r.text,Ia,1),Ua(L,Ia,lr,yr,I-Ga)}function _r(e,r,L,I,j,ee,ce){var we=gt(function(Ft){var kn=j[Ft],xn=kn.level!=1;return qa(Ba(e,at(L,xn?kn.to:kn.from,xn?"before":"after"),"line",r,I),ee,ce,!0)},0,j.length-1),De=j[we];if(we>0){var We=De.level!=1,At=Ba(e,at(L,We?De.from:De.to,We?"after":"before"),"line",r,I);qa(At,ee,ce,!0)&&At.top>ce&&(De=j[we-1])}return De}function Tt(e,r,L,I,j,ee,ce){var we=Ka(e,r,I,ce),De=we.begin,We=we.end;/\s/.test(r.text.charAt(We-1))&&We--;for(var At=null,Ft=null,kn=0;kn=We||xn.to<=De)continue;var Ia=xn.level!=1,Ga=Pt(e,I,Ia?Math.min(We,xn.to)-1:Math.max(De,xn.from)).right,lr=Galr)&&(At=xn,Ft=lr)}return At||(At=j[j.length-1]),At.fromWe&&(At={from:At.from,to:We,level:At.level}),At}var pr;function Yn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(pr==null){pr=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)pr.appendChild(document.createTextNode("x")),pr.appendChild(x("br"));pr.appendChild(document.createTextNode("x"))}g(e.measure,pr);var L=pr.offsetHeight/50;return L>3&&(e.cachedTextHeight=L),h(e.measure),L||1}function vr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=x("span","xxxxxxxxxx"),L=x("pre",[r],"CodeMirror-line-like");g(e.measure,L);var I=r.getBoundingClientRect(),j=(I.right-I.left)/10;return j>2&&(e.cachedCharWidth=j),j||10}function wr(e){for(var r=e.display,L={},I={},j=r.gutters.clientLeft,ee=r.gutters.firstChild,ce=0;ee;ee=ee.nextSibling,++ce){var we=e.display.gutterSpecs[ce].className;L[we]=ee.offsetLeft+ee.clientLeft+j,I[we]=ee.clientWidth}return{fixedPos:Xr(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:L,gutterWidth:I,wrapperWidth:r.wrapper.clientWidth}}function Xr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ai(e){var r=Yn(e.display),L=e.options.lineWrapping,I=L&&Math.max(5,e.display.scroller.clientWidth/vr(e.display)-3);return function(j){if(sn(e.doc,j))return 0;var ee=0;if(j.widgets)for(var ce=0;ce0&&(We=q(e.doc,De.line).text).length==De.ch){var At=G(We,We.length,e.options.tabSize)-We.length;De=at(De.line,Math.max(0,Math.round((ee-vt(e.display).left)/vr(e.display))-At))}return De}function Or(e,r){if(r>=e.display.viewTo)return null;if(r-=e.display.viewFrom,r<0)return null;for(var L=e.display.view,I=0;Ir)&&(j.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=j.viewTo)Ma&&On(e.doc,r)j.viewFrom?sa(e):(j.viewFrom+=I,j.viewTo+=I);else if(r<=j.viewFrom&&L>=j.viewTo)sa(e);else if(r<=j.viewFrom){var ee=In(e,L,L+I,1);ee?(j.view=j.view.slice(ee.index),j.viewFrom=ee.lineN,j.viewTo+=I):sa(e)}else if(L>=j.viewTo){var ce=In(e,r,r,-1);ce?(j.view=j.view.slice(0,ce.index),j.viewTo=ce.lineN):sa(e)}else{var we=In(e,r,r,-1),De=In(e,L,L+I,1);we&&De?(j.view=j.view.slice(0,we.index).concat(ea(e,we.lineN,De.lineN)).concat(j.view.slice(De.index)),j.viewTo+=I):sa(e)}var We=j.externalMeasured;We&&(L=j.lineN&&r=I.viewTo)return;var ee=I.view[Or(e,r)];if(ee.node==null)return;var ce=ee.changes||(ee.changes=[]);$(ce,L)==-1&&ce.push(L)}function sa(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function In(e,r,L,I){var j=Or(e,r),ee,ce=e.display.view;if(!Ma||L==e.doc.first+e.doc.size)return{index:j,lineN:L};for(var we=e.display.viewFrom,De=0;De0){if(j==ce.length-1)return null;ee=we+ce[j].size-r,j++}else ee=we-r;r+=ee,L+=ee}for(;On(e.doc,L)!=L;){if(j==(I<0?0:ce.length-1))return null;L+=I*ce[j-(I<0?1:0)].size,j+=I}return{index:j,lineN:L}}function cr(e,r,L){var I=e.display,j=I.view;j.length==0||r>=I.viewTo||L<=I.viewFrom?(I.view=ea(e,r,L),I.viewFrom=r):(I.viewFrom>r?I.view=ea(e,r,I.viewFrom).concat(I.view):I.viewFromL&&(I.view=I.view.slice(0,Or(e,L)))),I.viewTo=L}function dr(e){for(var r=e.display.view,L=0,I=0;I=e.display.viewTo||we.to().line1&&!/ /.test(e))return e;for(var L=r,I="",j=0;jWe&&Ft.from<=We);kn++);if(Ft.to>=At)return e(L,I,j,ee,ce,we,De);e(L,I.slice(0,Ft.to-We),j,ee,null,we,De),ee=null,I=I.slice(Ft.to-We),We=Ft.to}}}function Jn(e,r,L,I){var j=!I&&L.widgetNode;j&&e.map.push(e.pos,e.pos+r,j),!I&&e.cm.display.input.needsContentAttribute&&(j||(j=e.content.appendChild(document.createElement("span"))),j.setAttribute("cm-marker",L.id)),j&&(e.cm.display.input.setUneditable(j),e.content.appendChild(j)),e.pos+=r,e.trailingSpace=!1}function Aa(e,r,L){var I=e.markedSpans,j=e.text,ee=0;if(!I){for(var ce=1;ceDe||Zr.collapsed&&Hr.to==De&&Hr.from==De)){if(Hr.to!=null&&Hr.to!=De&&xn>Hr.to&&(xn=Hr.to,Ga=""),Zr.className&&(Ia+=" "+Zr.className),Zr.css&&(kn=(kn?kn+";":"")+Zr.css),Zr.startStyle&&Hr.from==De&&(lr+=" "+Zr.startStyle),Zr.endStyle&&Hr.to==xn&&(Ur||(Ur=[])).push(Zr.endStyle,Hr.to),Zr.title&&((Dr||(Dr={})).title=Zr.title),Zr.attributes)for(var bi in Zr.attributes)(Dr||(Dr={}))[bi]=Zr.attributes[bi];Zr.collapsed&&(!yr||jt(yr.marker,Zr)<0)&&(yr=Hr)}else Hr.from>De&&xn>Hr.from&&(xn=Hr.from)}if(Ur)for(var Gi=0;Gi=we)break;for(var wo=Math.min(we,xn);;){if(At){var mo=De+At.length;if(!yr){var ji=mo>wo?At.slice(0,wo-De):At;r.addToken(r,ji,Ft?Ft+Ia:Ia,lr,De+ji.length==xn?Ga:"",kn,Dr)}if(mo>=wo){At=At.slice(wo-De),De=wo;break}De=mo,lr=""}At=j.slice(ee,ee=L[We++]),Ft=zt(L[We++],r.cm.options)}}}function Zn(e,r,L){this.line=r,this.rest=pn(r),this.size=this.rest?Re(fe(this.rest))-L+1:1,this.node=this.text=null,this.hidden=sn(e,r)}function ea(e,r,L){for(var I=[],j,ee=r;ee2&&ee.push((De.bottom+We.top)/2-L.top)}}ee.push(L.bottom-L.top)}}function Ce(e,r,L){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var I=0;IL)return{map:e.measure.maps[j],cache:e.measure.caches[j],before:!0}}function Ze(e,r){r=$t(r);var L=Re(r),I=e.display.externalMeasured=new Zn(e.doc,r,L);I.lineN=L;var j=I.built=xt(e,I);return I.text=j.pre,g(e.display.lineMeasure,j.pre),I}function Ke(e,r,L,I){return Pt(e,it(e,r),L,I)}function St(e,r){if(r>=e.display.viewFrom&&r=L.lineN&&rr)&&(ee=De-we,j=ee-1,r>=De&&(ce="right")),j!=null){if(I=e[We+2],we==De&&L==(I.insertLeft?"left":"right")&&(ce=L),L=="left"&&j==0)for(;We&&e[We-2]==e[We-3]&&e[We-1].insertLeft;)I=e[(We-=3)+2],ce="left";if(L=="right"&&j==De-we)for(;We=0&&!((L=e[j]).left!=L.right);j--);return L}function Qn(e,r,L,I){var j=gn(r.map,L,I),ee=j.node,ce=j.start,we=j.end,De=j.collapse,We;if(ee.nodeType==3){for(var At=0;At<4;At++){for(;ce&&Le(r.line.text.charAt(j.coverStart+ce));)--ce;for(;j.coverStart+we0&&(De=I="right");var Ft;e.options.lineWrapping&&(Ft=ee.getClientRects()).length>1?We=Ft[I=="right"?Ft.length-1:0]:We=ee.getBoundingClientRect()}if(M&&p<9&&!ce&&(!We||!We.left&&!We.right)){var kn=ee.parentNode.getClientRects()[0];kn?We={left:kn.left,right:kn.left+vr(e.display),top:kn.top,bottom:kn.bottom}:We=an}for(var xn=We.top-r.rect.top,Ia=We.bottom-r.rect.top,Ga=(xn+Ia)/2,lr=r.view.measure.heights,yr=0;yr=I.text.length?(De=I.text.length,We="before"):De<=0&&(De=0,We="after"),!we)return ce(We=="before"?De-1:De,We=="before");function At(Ia,Ga,lr){var yr=we[Ga],Dr=yr.level==1;return ce(lr?Ia-1:Ia,Dr!=lr)}var Ft=Zt(we,De,We),kn=tn,xn=At(De,Ft,We=="before");return kn!=null&&(xn.other=At(De,kn,We!="before")),xn}function oa(e,r){var L=0;r=z(e.doc,r),e.options.lineWrapping||(L=vr(e.display)*r.ch);var I=q(e.doc,r.line),j=Pn(I)+nr(e.display);return{left:L,right:L,top:j,bottom:j+I.height}}function Ua(e,r,L,I,j){var ee=at(e,r,L);return ee.xRel=j,I&&(ee.outside=I),ee}function Er(e,r,L){var I=e.doc;if(L+=e.display.viewOffset,L<0)return Ua(I.first,0,null,-1,-1);var j=ve(I,L),ee=I.first+I.size-1;if(j>ee)return Ua(I.first+I.size-1,q(I,ee).text.length,null,1,1);r<0&&(r=0);for(var ce=q(I,j);;){var we=Lr(e,ce,j,r,L),De=zn(ce,we.ch+(we.xRel>0||we.outside>0?1:0));if(!De)return we;var We=De.find(1);if(We.line==j)return We;ce=q(I,j=We.line)}}function Ka(e,r,L,I){I-=sr(r);var j=r.text.length,ee=gt(function(ce){return Pt(e,L,ce-1).bottom<=I},j,0);return j=gt(function(ce){return Pt(e,L,ce).top>I},ee,j),{begin:ee,end:j}}function yt(e,r,L,I){L||(L=it(e,r));var j=va(e,r,Pt(e,L,I),"line").top;return Ka(e,r,L,j)}function qa(e,r,L,I){return e.bottom<=L?!1:e.top>L?!0:(I?e.left:e.right)>r}function Lr(e,r,L,I,j){j-=Pn(r);var ee=it(e,r),ce=sr(r),we=0,De=r.text.length,We=!0,At=ia(r,e.doc.direction);if(At){var Ft=(e.options.lineWrapping?Tt:_r)(e,r,L,ee,At,I,j);We=Ft.level!=1,we=We?Ft.from:Ft.to-1,De=We?Ft.to:Ft.from-1}var kn=null,xn=null,Ia=gt(function(Gr){var Hr=Pt(e,ee,Gr);return Hr.top+=ce,Hr.bottom+=ce,qa(Hr,I,j,!1)?(Hr.top<=j&&Hr.left<=I&&(kn=Gr,xn=Hr),!0):!1},we,De),Ga,lr,yr=!1;if(xn){var Dr=I-xn.left=Ur.bottom?1:0}return Ia=Ye(r.text,Ia,1),Ua(L,Ia,lr,yr,I-Ga)}function _r(e,r,L,I,j,ee,ce){var we=gt(function(Ft){var kn=j[Ft],xn=kn.level!=1;return qa(Ba(e,at(L,xn?kn.to:kn.from,xn?"before":"after"),"line",r,I),ee,ce,!0)},0,j.length-1),De=j[we];if(we>0){var We=De.level!=1,At=Ba(e,at(L,We?De.from:De.to,We?"after":"before"),"line",r,I);qa(At,ee,ce,!0)&&At.top>ce&&(De=j[we-1])}return De}function Tt(e,r,L,I,j,ee,ce){var we=Ka(e,r,I,ce),De=we.begin,We=we.end;/\s/.test(r.text.charAt(We-1))&&We--;for(var At=null,Ft=null,kn=0;kn=We||xn.to<=De)continue;var Ia=xn.level!=1,Ga=Pt(e,I,Ia?Math.min(We,xn.to)-1:Math.max(De,xn.from)).right,lr=Galr)&&(At=xn,Ft=lr)}return At||(At=j[j.length-1]),At.fromWe&&(At={from:At.from,to:We,level:At.level}),At}var pr;function Yn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(pr==null){pr=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)pr.appendChild(document.createTextNode("x")),pr.appendChild(x("br"));pr.appendChild(document.createTextNode("x"))}g(e.measure,pr);var L=pr.offsetHeight/50;return L>3&&(e.cachedTextHeight=L),h(e.measure),L||1}function vr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=x("span","xxxxxxxxxx"),L=x("pre",[r],"CodeMirror-line-like");g(e.measure,L);var I=r.getBoundingClientRect(),j=(I.right-I.left)/10;return j>2&&(e.cachedCharWidth=j),j||10}function wr(e){for(var r=e.display,L={},I={},j=r.gutters.clientLeft,ee=r.gutters.firstChild,ce=0;ee;ee=ee.nextSibling,++ce){var we=e.display.gutterSpecs[ce].className;L[we]=ee.offsetLeft+ee.clientLeft+j,I[we]=ee.clientWidth}return{fixedPos:Xr(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:L,gutterWidth:I,wrapperWidth:r.wrapper.clientWidth}}function Xr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ai(e){var r=Yn(e.display),L=e.options.lineWrapping,I=L&&Math.max(5,e.display.scroller.clientWidth/vr(e.display)-3);return function(j){if(sn(e.doc,j))return 0;var ee=0;if(j.widgets)for(var ce=0;ce0&&(We=q(e.doc,De.line).text).length==De.ch){var At=G(We,We.length,e.options.tabSize)-We.length;De=at(De.line,Math.max(0,Math.round((ee-pt(e.display).left)/vr(e.display))-At))}return De}function Or(e,r){if(r>=e.display.viewTo)return null;if(r-=e.display.viewFrom,r<0)return null;for(var L=e.display.view,I=0;Ir)&&(j.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=j.viewTo)Ma&&On(e.doc,r)j.viewFrom?sa(e):(j.viewFrom+=I,j.viewTo+=I);else if(r<=j.viewFrom&&L>=j.viewTo)sa(e);else if(r<=j.viewFrom){var ee=In(e,L,L+I,1);ee?(j.view=j.view.slice(ee.index),j.viewFrom=ee.lineN,j.viewTo+=I):sa(e)}else if(L>=j.viewTo){var ce=In(e,r,r,-1);ce?(j.view=j.view.slice(0,ce.index),j.viewTo=ce.lineN):sa(e)}else{var we=In(e,r,r,-1),De=In(e,L,L+I,1);we&&De?(j.view=j.view.slice(0,we.index).concat(ea(e,we.lineN,De.lineN)).concat(j.view.slice(De.index)),j.viewTo+=I):sa(e)}var We=j.externalMeasured;We&&(L=j.lineN&&r=I.viewTo)return;var ee=I.view[Or(e,r)];if(ee.node==null)return;var ce=ee.changes||(ee.changes=[]);$(ce,L)==-1&&ce.push(L)}function sa(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function In(e,r,L,I){var j=Or(e,r),ee,ce=e.display.view;if(!Ma||L==e.doc.first+e.doc.size)return{index:j,lineN:L};for(var we=e.display.viewFrom,De=0;De0){if(j==ce.length-1)return null;ee=we+ce[j].size-r,j++}else ee=we-r;r+=ee,L+=ee}for(;On(e.doc,L)!=L;){if(j==(I<0?0:ce.length-1))return null;L+=I*ce[j-(I<0?1:0)].size,j+=I}return{index:j,lineN:L}}function cr(e,r,L){var I=e.display,j=I.view;j.length==0||r>=I.viewTo||L<=I.viewFrom?(I.view=ea(e,r,L),I.viewFrom=r):(I.viewFrom>r?I.view=ea(e,r,I.viewFrom).concat(I.view):I.viewFromL&&(I.view=I.view.slice(0,Or(e,L)))),I.viewTo=L}function dr(e){for(var r=e.display.view,L=0,I=0;I=e.display.viewTo||we.to().line0?r.blinker=setInterval(function(){e.hasFocus()||pi(e),r.cursorDiv.style.visibility=(L=!L)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}function ti(e){e.state.focused||(e.display.input.focus(),hi(e))}function ri(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,pi(e))},100)}function hi(e,r){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Ot(e,"focus",e,r),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),a&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Rr(e)}function pi(e,r){if(e.state.delayingBlurEvent)return;e.state.focused&&(Ot(e,"blur",e,r),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function mi(e){for(var r=e.display,L=r.lineDiv.offsetTop,I=0;I.005||At<-.005)&&(Oe(j.line,ce),Ei(j.line),j.rest))for(var Ft=0;Fte.display.sizerWidth){var kn=Math.ceil(we/vr(e.display));kn>e.display.maxLineLength&&(e.display.maxLineLength=kn,e.display.maxLine=j.line,e.display.maxLineChanged=!0)}}}function Ei(e){if(e.widgets)for(var r=0;r=ce&&(ee=ve(r,Pn(q(r,De))-e.wrapper.clientHeight),ce=De)}return{from:ee,to:Math.max(ce,ee+1)}}function _o(e,r){if(Xt(e,"scrollCursorIntoView"))return;var L=e.display,I=L.sizer.getBoundingClientRect(),j=null;if(r.top+I.top<0?j=!0:r.bottom+I.top>(window.innerHeight||document.documentElement.clientHeight)&&(j=!1),j!=null&&!c){var ee=x("div","\u200B",null,`position: absolute; top: `+(r.top-L.viewOffset-nr(e.display))+`px; height: `+(r.bottom-r.top+_t(e)+L.barHeight)+`px; - left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(ee),ee.scrollIntoView(j),e.display.lineSpace.removeChild(ee)}}function So(e,r,L,I){I==null&&(I=0);var j;!e.options.lineWrapping&&r==L&&(r=r.ch?at(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,L=r.sticky=="before"?at(r.line,r.ch+1,"before"):r);for(var ee=0;ee<5;ee++){var ce=!1,we=Ba(e,r),De=!L||L==r?we:Ba(e,L);j={left:Math.min(we.left,De.left),top:Math.min(we.top,De.top)-I,right:Math.max(we.left,De.left),bottom:Math.max(we.bottom,De.bottom)+I};var We=eo(e,j),At=e.doc.scrollTop,Ft=e.doc.scrollLeft;if(We.scrollTop!=null&&(zi(e,We.scrollTop),Math.abs(e.doc.scrollTop-At)>1&&(ce=!0)),We.scrollLeft!=null&&(gi(e,We.scrollLeft),Math.abs(e.doc.scrollLeft-Ft)>1&&(ce=!0)),!ce)break}return j}function $i(e,r){var L=eo(e,r);L.scrollTop!=null&&zi(e,L.scrollTop),L.scrollLeft!=null&&gi(e,L.scrollLeft)}function eo(e,r){var L=e.display,I=Yn(e.display);r.top<0&&(r.top=0);var j=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:L.scroller.scrollTop,ee=Ee(e),ce={};r.bottom-r.top>ee&&(r.bottom=r.top+ee);var we=e.doc.height+$e(L),De=r.topwe-I;if(r.topj+ee){var At=Math.min(r.top,(We?we:r.bottom)-ee);At!=j&&(ce.scrollTop=At)}var Ft=e.options.fixedGutter?0:L.gutters.offsetWidth,kn=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:L.scroller.scrollLeft-Ft,xn=Xe(e)-L.gutters.offsetWidth,Ia=r.right-r.left>xn;return Ia&&(r.right=r.left+xn),r.left<10?ce.scrollLeft=0:r.leftxn+kn-3&&(ce.scrollLeft=r.right+(Ia?0:10)-xn),ce}function ro(e,r){if(r==null)return;co(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r}function io(e){co(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Yi(e,r,L){(r!=null||L!=null)&&co(e),r!=null&&(e.curOp.scrollLeft=r),L!=null&&(e.curOp.scrollTop=L)}function bo(e,r){co(e),e.curOp.scrollToPos=r}function co(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var L=oa(e,r.from),I=oa(e,r.to);oo(e,L,I,r.margin)}}function oo(e,r,L,I){var j=eo(e,{left:Math.min(r.left,L.left),top:Math.min(r.top,L.top)-I,right:Math.max(r.right,L.right),bottom:Math.max(r.bottom,L.bottom)+I});Yi(e,j.scrollLeft,j.scrollTop)}function zi(e,r){if(Math.abs(e.doc.scrollTop-r)<2)return;k||Ao(e,{top:r}),Xi(e,r,!0),k&&Ao(e),Ri(e,100)}function Xi(e,r,L){if(r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),e.display.scroller.scrollTop==r&&!L)return;e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r)}function gi(e,r,L,I){if(r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(L?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!I)return;e.doc.scrollLeft=r,$a(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r)}function yi(e){var r=e.display,L=r.gutters.offsetWidth,I=Math.round(e.doc.height+$e(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?L:0,docHeight:I,scrollHeight:I+_t(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:L}}var Br=function(e,r,L){this.cm=L;var I=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),j=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");I.tabIndex=j.tabIndex=-1,e(I),e(j),pt(I,"scroll",function(){I.clientHeight&&r(I.scrollTop,"vertical")}),pt(j,"scroll",function(){j.clientWidth&&r(j.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,M&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,L=e.scrollHeight>e.clientHeight+1,I=e.nativeBarWidth;if(L){this.vert.style.display="block",this.vert.style.bottom=r?I+"px":"0";var j=e.viewHeight-(r?I:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+j)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=L?I+"px":"0",this.horiz.style.left=e.barLeft+"px";var ee=e.viewWidth-e.barLeft-(L?I:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(I==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:L?I:0,bottom:r?I:0}},Br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var e=l&&!o?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new K,this.disableVert=new K},Br.prototype.enableZeroWidthBar=function(e,r,L){e.style.pointerEvents="auto";function I(){var j=e.getBoundingClientRect(),ee=L=="vert"?document.elementFromPoint(j.right-1,(j.top+j.bottom)/2):document.elementFromPoint((j.right+j.left)/2,j.bottom-1);ee!=e?e.style.pointerEvents="none":r.set(1e3,I)}r.set(1e3,I)},Br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Nr=function(){};Nr.prototype.update=function(){return{bottom:0,right:0}},Nr.prototype.setScrollLeft=function(){},Nr.prototype.setScrollTop=function(){},Nr.prototype.clear=function(){};function Fr(e,r){r||(r=yi(e));var L=e.display.barWidth,I=e.display.barHeight;ii(e,r);for(var j=0;j<4&&L!=e.display.barWidth||I!=e.display.barHeight;j++)L!=e.display.barWidth&&e.options.lineWrapping&&mi(e),ii(e,yi(e)),L=e.display.barWidth,I=e.display.barHeight}function ii(e,r){var L=e.display,I=L.scrollbars.update(r);L.sizer.style.paddingRight=(L.barWidth=I.right)+"px",L.sizer.style.paddingBottom=(L.barHeight=I.bottom)+"px",L.heightForcer.style.borderBottom=I.bottom+"px solid transparent",I.right&&I.bottom?(L.scrollbarFiller.style.display="block",L.scrollbarFiller.style.height=I.bottom+"px",L.scrollbarFiller.style.width=I.right+"px"):L.scrollbarFiller.style.display="",I.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(L.gutterFiller.style.display="block",L.gutterFiller.style.height=I.bottom+"px",L.gutterFiller.style.width=r.gutterWidth+"px"):L.gutterFiller.style.display=""}var ui={native:Br,null:Nr};function Ai(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ui[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),pt(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,L){L=="horizontal"?gi(e,r):zi(e,r)},e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var fi=0;function Qi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++fi},Ha(e.curOp)}function Eo(e){var r=e.curOp;r&&Va(r,function(L){for(var I=0;I=L.viewTo)||L.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Wi(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Mi(e){e.updatedDisplay=e.mustUpdate&&so(e.cm,e.update)}function ho(e){var r=e.cm,L=r.display;e.updatedDisplay&&mi(r),e.barMeasure=yi(r),L.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=Ke(r,L.maxLine,L.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(L.scroller.clientWidth,L.sizer.offsetLeft+e.adjustWidthTo+_t(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,L.sizer.offsetLeft+e.adjustWidthTo-Xe(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=L.input.prepareSelection())}function Io(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var L=+new Date+e.options.workTime,I=Wn(e,r.highlightFrontier),j=[];r.iter(I.line,Math.min(r.first+r.size,e.display.viewTo+500),function(ee){if(I.line>=e.display.viewFrom){var ce=ee.styles,we=ee.text.length>e.options.maxHighlightLength?Ea(r.mode,I.state):null,De=ut(e,ee,I,!0);we&&(I.state=we),ee.styles=De.styles;var We=ee.styleClasses,At=De.classes;At?ee.styleClasses=At:We&&(ee.styleClasses=null);for(var Ft=!ce||ce.length!=ee.styles.length||We!=At&&(!We||!At||We.bgClass!=At.bgClass||We.textClass!=At.textClass),kn=0;!Ft&&knL)return Ri(e,e.options.workDelay),!0}),r.highlightFrontier=I.line,r.modeFrontier=Math.max(r.modeFrontier,I.line),j.length&&Di(e,function(){for(var ee=0;ee=L.viewFrom&&r.visible.to<=L.viewTo&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo)&&L.renderedView==L.view&&dr(e)==0)return!1;Da(e)&&(sa(e),r.dims=wr(e));var j=I.first+I.size,ee=Math.max(r.visible.from-e.options.viewportMargin,I.first),ce=Math.min(j,r.visible.to+e.options.viewportMargin);L.viewFromce&&L.viewTo-ce<20&&(ce=Math.min(j,L.viewTo)),Ma&&(ee=On(e.doc,ee),ce=cn(e.doc,ce));var we=ee!=L.viewFrom||ce!=L.viewTo||L.lastWrapHeight!=r.wrapperHeight||L.lastWrapWidth!=r.wrapperWidth;cr(e,ee,ce),L.viewOffset=Pn(q(e.doc,L.viewFrom)),e.display.mover.style.top=L.viewOffset+"px";var De=dr(e);if(!we&&De==0&&!r.force&&L.renderedView==L.view&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo))return!1;var We=Do(e);return De>4&&(L.lineDiv.style.display="none"),No(e,L.updateLineNumbers,r.dims),De>4&&(L.lineDiv.style.display=""),L.renderedView=L.view,po(We),h(L.cursorDiv),h(L.selectionDiv),L.gutters.style.height=L.sizer.style.minHeight=0,we&&(L.lastWrapHeight=r.wrapperHeight,L.lastWrapWidth=r.wrapperWidth,Ri(e,400)),L.updateLineNumbers=null,!0}function yo(e,r){for(var L=r.viewport,I=!0;;I=!1){if(!I||!e.options.lineWrapping||r.oldDisplayWidth==Xe(e)){if(L&&L.top!=null&&(L={top:Math.min(e.doc.height+$e(e.display)-Ee(e),L.top)}),r.visible=ao(e.display,e.doc,L),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else I&&(r.visible=ao(e.display,e.doc,L));if(!so(e,r))break;mi(e);var j=yi(e);ka(e),Fr(e,j),Kr(e,j),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ao(e,r){var L=new Wi(e,r);if(so(e,L)){mi(e),yo(e,L);var I=yi(e);ka(e),Fr(e,I),Kr(e,I),L.finish()}}function No(e,r,L){var I=e.display,j=e.options.lineNumbers,ee=I.lineDiv,ce=ee.firstChild;function we(Ia){var Ga=Ia.nextSibling;return a&&l&&e.display.currentWheelTarget==Ia?Ia.style.display="none":Ia.parentNode.removeChild(Ia),Ga}for(var De=I.view,We=I.viewFrom,At=0;At-1&&(xn=!1),or(e,Ft,We,L)),xn&&(h(Ft.lineNumber),Ft.lineNumber.appendChild(document.createTextNode(kt(e.options,We)))),ce=Ft.node.nextSibling}We+=Ft.size}for(;ce;)ce=we(ce)}function Ui(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px"}function Kr(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+_t(e)+"px"}function $a(e){var r=e.display,L=r.view;if(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))return;for(var I=Xr(r)-r.scroller.scrollLeft+e.doc.scrollLeft,j=r.gutters.offsetWidth,ee=I+"px",ce=0;cece.clientWidth,De=ce.scrollHeight>ce.clientHeight;if(!(I&&we||j&&De))return;if(j&&l&&a){e:for(var We=r.target,At=ee.view;We!=ce;We=We.parentNode)for(var Ft=0;Ft=0&&Ht(e,I.to())<=0)return L}return-1};var Jr=function(e,r){this.anchor=e,this.head=r};Jr.prototype.from=function(){return fa(this.anchor,this.head)},Jr.prototype.to=function(){return Fa(this.anchor,this.head)},Jr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Vr(e,r,L){var I=e&&e.options.selectionsMayTouch,j=r[L];r.sort(function(kn,xn){return Ht(kn.from(),xn.from())}),L=$(r,j);for(var ee=1;ee0:De>=0){var We=fa(we.from(),ce.from()),At=Fa(we.to(),ce.to()),Ft=we.empty()?ce.from()==ce.head:we.from()==we.head;ee<=L&&--L,r.splice(--ee,2,new Jr(Ft?At:We,Ft?We:At))}}return new xi(r,L)}function Cr(e,r){return new xi([new Jr(e,r||e)],0)}function Wr(e){return e.text?at(e.from.line+e.text.length-1,fe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Qr(e,r){if(Ht(e,r.from)<0)return e;if(Ht(e,r.to)<=0)return Wr(r);var L=e.line+r.text.length-(r.to.line-r.from.line)-1,I=e.ch;return e.line==r.to.line&&(I+=Wr(r).ch-r.to.ch),at(L,I)}function di(e,r){for(var L=[],I=0;I1&&e.remove(we.line+1,Ia-1),e.insert(we.line+1,yr)}pa(e,"change",e,r)}function Si(e,r,L){function I(j,ee,ce){if(j.linked)for(var we=0;we1&&!e.done[e.done.length-2].ranges)return e.done.pop(),fe(e.done)}function Js(e,r,L,I){var j=e.history;j.undone.length=0;var ee=+new Date,ce,we;if((j.lastOp==I||j.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&j.lastModTime>ee-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(ce=Pl(j,j.lastOp==I)))we=fe(ce.changes),Ht(r.from,r.to)==0&&Ht(r.from,we.to)==0?we.to=Wr(r):ce.changes.push(Ts(e,r));else{var De=fe(j.done);for((!De||!De.ranges)&&ms(e.sel,j.done),ce={changes:[Ts(e,r)],generation:j.generation},j.done.push(ce);j.done.length>j.undoDepth;)j.done.shift(),j.done[0].ranges||j.done.shift()}j.done.push(L),j.generation=++j.maxGeneration,j.lastModTime=j.lastSelTime=ee,j.lastOp=j.lastSelOp=I,j.lastOrigin=j.lastSelOrigin=r.origin,we||Ot(e,"historyAdded")}function Il(e,r,L,I){var j=r.charAt(0);return j=="*"||j=="+"&&L.ranges.length==I.ranges.length&&L.somethingSelected()==I.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ps(e,r,L,I){var j=e.history,ee=I&&I.origin;L==j.lastSelOp||ee&&j.lastSelOrigin==ee&&(j.lastModTime==j.lastSelTime&&j.lastOrigin==ee||Il(e,ee,fe(j.done),r))?j.done[j.done.length-1]=r:ms(r,j.done),j.lastSelTime=+new Date,j.lastSelOrigin=ee,j.lastSelOp=L,I&&I.clearRedo!==!1&&Qs(j.undone)}function ms(e,r){var L=fe(r);L&&L.ranges&&L.equals(e)||r.push(e)}function Ds(e,r,L,I){var j=r["spans_"+e.id],ee=0;e.iter(Math.max(e.first,L),Math.min(e.first+e.size,I),function(ce){ce.markedSpans&&((j||(j=r["spans_"+e.id]={}))[ee]=ce.markedSpans),++ee})}function vs(e){if(!e)return null;for(var r,L=0;L-1&&(fe(we)[Ft]=We[Ft],delete We[Ft]))}}return I}function gs(e,r,L,I){if(I){var j=e.anchor;if(L){var ee=Ht(r,j)<0;ee!=Ht(L,j)<0?(j=r,r=L):ee!=Ht(r,L)<0&&(r=L)}return new Jr(j,r)}else return new Jr(L||r,r)}function _s(e,r,L,I,j){j==null&&(j=e.cm&&(e.cm.display.shift||e.extend)),Ki(e,new xi([gs(e.sel.primary(),r,L,j)],0),I)}function qs(e,r,L){for(var I=[],j=e.cm&&(e.cm.display.shift||e.extend),ee=0;ee=r.ch:we.to>r.ch))){if(j&&(Ot(De,"beforeCursorEnter"),De.explicitlyCleared))if(ee.markedSpans){--ce;continue}else break;if(!De.atomic)continue;if(L){var Ft=De.find(I<0?1:-1),kn=void 0;if((I<0?At:We)&&(Ft=rl(e,Ft,-I,Ft&&Ft.line==r.line?ee:null)),Ft&&Ft.line==r.line&&(kn=Ht(Ft,L))&&(I<0?kn<0:kn>0))return Ko(e,Ft,r,I,j)}var xn=De.find(I<0?-1:1);return(I<0?We:At)&&(xn=rl(e,xn,I,xn.line==r.line?ee:null)),xn?Ko(e,xn,r,I,j):null}}return r}function bs(e,r,L,I,j){var ee=I||1,ce=Ko(e,r,L,ee,j)||!j&&Ko(e,r,L,ee,!0)||Ko(e,r,L,-ee,j)||!j&&Ko(e,r,L,-ee,!0);return ce||(e.cantEdit=!0,at(e.first,0))}function rl(e,r,L,I){return L<0&&r.ch==0?r.line>e.first?z(e,at(r.line-1)):null:L>0&&r.ch==(I||q(e,r.line)).text.length?r.line=0;--j)ol(e,{from:I[j].from,to:I[j].to,text:j?[""]:r.text,origin:r.origin});else ol(e,r)}function ol(e,r){if(r.text.length==1&&r.text[0]==""&&Ht(r.from,r.to)==0)return;var L=di(e,r);Js(e,r,L,e.cm?e.cm.curOp.id:NaN),Vo(e,r,L,Wa(e,r));var I=[];Si(e,function(j,ee){!ee&&$(I,j.history)==-1&&(cl(j.history,r),I.push(j.history)),Vo(j,r,null,Wa(j,r))})}function Es(e,r,L){var I=e.cm&&e.cm.state.suppressEdits;if(I&&!L)return;for(var j=e.history,ee,ce=e.sel,we=r=="undo"?j.done:j.undone,De=r=="undo"?j.undone:j.done,We=0;We=0;--xn){var Ia=kn(xn);if(Ia)return Ia.v}}function sl(e,r){if(r==0)return;if(e.first+=r,e.sel=new xi(Ae(e.sel.ranges,function(j){return new Jr(at(j.anchor.line+r,j.anchor.ch),at(j.head.line+r,j.head.ch))}),e.sel.primIndex),e.cm){za(e.cm,e.first,e.first-r,r);for(var L=e.cm.display,I=L.viewFrom;Ie.lastLine())return;if(r.from.lineee&&(r={from:r.from,to:at(ee,q(e,ee).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Z(e,r.from,r.to),L||(L=di(e,r)),e.cm?Ml(e.cm,r,I):Lo(e,r,I),zo(e,L,de),e.cantEdit&&bs(e,at(e.firstLine(),0))&&(e.cantEdit=!1)}function Ml(e,r,L){var I=e.doc,j=e.display,ee=r.from,ce=r.to,we=!1,De=ee.line;e.options.lineWrapping||(De=Re($t(q(I,ee.line))),I.iter(De,ce.line+1,function(xn){if(xn==j.maxLine)return we=!0,!0})),I.sel.contains(r.from,r.to)>-1&&ht(e),Lo(I,r,L,ai(e)),e.options.lineWrapping||(I.iter(De,ee.line+r.text.length,function(xn){var Ia=Kn(xn);Ia>j.maxLineLength&&(j.maxLine=xn,j.maxLineLength=Ia,j.maxLineChanged=!0,we=!1)}),we&&(e.curOp.updateMaxLine=!0)),ba(I,ee.line),Ri(e,400);var We=r.text.length-(ce.line-ee.line)-1;r.full?za(e):ee.line==ce.line&&r.text.length==1&&!xo(e.doc,r)?La(e,ee.line,"text"):za(e,ee.line,ce.line+1,We);var At=Je(e,"changes"),Ft=Je(e,"change");if(Ft||At){var kn={from:ee,to:ce,text:r.text,removed:r.removed,origin:r.origin};Ft&&pa(e,"change",e,kn),At&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(kn)}e.display.selForContextMenu=null}function Yo(e,r,L,I,j){var ee;I||(I=L),Ht(I,L)<0&&(ee=[I,L],L=ee[0],I=ee[1]),typeof r=="string"&&(r=e.splitLines(r)),Go(e,{from:L,to:I,text:r,origin:j})}function ll(e,r,L,I){L1||!(this.children[0]instanceof Fo))){var we=[];this.collapse(we),this.children=[new Fo(we)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r50){for(var ce=j.lines.length%25+25,we=ce;we10);e.parent.maybeSpill()},iterN:function(e,r,L){for(var I=0;Ie.display.maxLineLength&&(e.display.maxLine=We,e.display.maxLineLength=At,e.display.maxLineChanged=!0)}I!=null&&e&&this.collapsed&&za(e,I,j+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&nl(e.doc)),e&&pa(e,"markerCleared",e,this,I,j),r&&Eo(e),this.parent&&this.parent.clear()},Co.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var L,I,j=0;j0||ce==0&&ee.clearWhenEmpty!==!1)return ee;if(ee.replacedWith&&(ee.collapsed=!0,ee.widgetNode=T("span",[ee.replacedWith],"CodeMirror-widget"),I.handleMouseEvents||ee.widgetNode.setAttribute("cm-ignore-events","true"),I.insertLeft&&(ee.widgetNode.insertLeft=!0)),ee.collapsed){if(jn(e,r.line,r,L,ee)||r.line!=L.line&&jn(e,L.line,r,L,ee))throw new Error("Inserting collapsed marker partially overlapping an existing one");Rt()}ee.addToHistory&&Js(e,{from:r,to:L,origin:"markText"},e.sel,NaN);var we=r.line,De=e.cm,We;if(e.iter(we,L.line+1,function(Ft){De&&ee.collapsed&&!De.options.lineWrapping&&$t(Ft)==De.display.maxLine&&(We=!0),ee.collapsed&&we!=r.line&&Oe(Ft,0),Fn(Ft,new An(ee,we==r.line?r.ch:null,we==L.line?L.ch:null)),++we}),ee.collapsed&&e.iter(r.line,L.line+1,function(Ft){sn(e,Ft)&&Oe(Ft,0)}),ee.clearOnEnter&&pt(ee,"beforeCursorEnter",function(){return ee.clear()}),ee.readOnly&&(Jt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),ee.collapsed&&(ee.id=++fl,ee.atomic=!0),De){if(We&&(De.curOp.updateMaxLine=!0),ee.collapsed)za(De,r.line,L.line+1);else if(ee.className||ee.startStyle||ee.endStyle||ee.css||ee.attributes||ee.title)for(var At=r.line;At<=L.line;At++)La(De,At,"text");ee.atomic&&nl(De.doc),pa(De,"markerAdded",De,ee)}return ee}var Jo=function(e,r){this.markers=e,this.primary=r;for(var L=0;L=0;De--)Go(this,I[De]);we?el(this,we):this.cm&&io(this.cm)}),undo:vi(function(){Es(this,"undo")}),redo:vi(function(){Es(this,"redo")}),undoSelection:vi(function(){Es(this,"undo",!0)}),redoSelection:vi(function(){Es(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,L=0,I=0;I=e.ch)&&r.push(j.marker.parent||j.marker)}return r},findMarks:function(e,r,L){e=z(this,e),r=z(this,r);var I=[],j=e.line;return this.iter(e.line,r.line+1,function(ee){var ce=ee.markedSpans;if(ce)for(var we=0;we=De.to||De.from==null&&j!=e.line||De.from!=null&&j==r.line&&De.from>=r.ch)&&(!L||L(De.marker))&&I.push(De.marker.parent||De.marker)}++j}),I},getAllMarks:function(){var e=[];return this.iter(function(r){var L=r.markedSpans;if(L)for(var I=0;Ie)return r=e,!0;e-=ee,++L}),z(this,at(L,r))},indexFromPos:function(e){e=z(this,e);var r=e.ch;if(e.liner&&(r=e.from),e.to!=null&&e.to-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var At=e.dataTransfer.getData("Text");if(At){var Ft;if(r.state.draggingText&&!r.state.draggingText.copy&&(Ft=r.listSelections()),zo(r.doc,Cr(L,L)),Ft)for(var kn=0;kn=0;we--)Yo(e.doc,"",I[we].from,I[we].to,"+delete");io(e)})}function Us(e,r,L){var I=Ye(e.text,r+L,L);return I<0||I>e.text.length?null:I}function Fs(e,r,L){var I=Us(e,r.ch,L);return I==null?null:new at(r.line,I,L<0?"after":"before")}function js(e,r,L,I,j){if(e){r.doc.direction=="rtl"&&(j=-j);var ee=ia(L,r.doc.direction);if(ee){var ce=j<0?fe(ee):ee[0],we=j<0==(ce.level==1),De=we?"after":"before",We;if(ce.level>0||r.doc.direction=="rtl"){var At=it(r,L);We=j<0?L.text.length-1:0;var Ft=Pt(r,At,We).top;We=gt(function(kn){return Pt(r,At,kn).top==Ft},j<0==(ce.level==1)?ce.from:ce.to-1,We),De=="before"&&(We=Us(L,We,1))}else We=j<0?ce.to:ce.from;return new at(I,We,De)}}return new at(I,j<0?L.text.length:0,j<0?"before":"after")}function Bs(e,r,L,I){var j=ia(r,e.doc.direction);if(!j)return Fs(r,L,I);L.ch>=r.text.length?(L.ch=r.text.length,L.sticky="before"):L.ch<=0&&(L.ch=0,L.sticky="after");var ee=Zt(j,L.ch,L.sticky),ce=j[ee];if(e.doc.direction=="ltr"&&ce.level%2==0&&(I>0?ce.to>L.ch:ce.from=ce.from&&kn>=At.begin)){var xn=Ft?"before":"after";return new at(L.line,kn,xn)}}var Ia=function(yr,Dr,xr){for(var Ur=function(bi,Gi){return Gi?new at(L.line,we(bi,1),"before"):new at(L.line,bi,"after")};yr>=0&&yr0==(Gr.level!=1),Zr=Hr?xr.begin:we(xr.end,-1);if(Gr.from<=Zr&&Zr0?At.end:we(At.begin,-1);return lr!=null&&!(I>0&&lr==r.text.length)&&(Ga=Ia(I>0?0:j.length-1,I,We(lr)),Ga)?Ga:null}var qo={selectAll:il,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),de)},killLine:function(e){return Zo(e,function(r){if(r.empty()){var L=q(e.doc,r.head.line).text.length;return r.head.ch==L&&r.head.line0)j=new at(j.line,j.ch+1),e.replaceRange(ee.charAt(j.ch-1)+ee.charAt(j.ch-2),at(j.line,j.ch-2),j,"+transpose");else if(j.line>e.doc.first){var ce=q(e.doc,j.line-1).text;ce&&(j=new at(j.line,1),e.replaceRange(ee.charAt(0)+e.doc.lineSeparator()+ce.charAt(ce.length-1),at(j.line-1,ce.length-1),j,"+transpose"))}}L.push(new Jr(j,j))}e.setSelections(L)})},newlineAndIndent:function(e){return Di(e,function(){for(var r=e.listSelections(),L=r.length-1;L>=0;L--)e.replaceRange(e.doc.lineSeparator(),r[L].anchor,r[L].head,"+input");r=e.listSelections();for(var I=0;Ie&&Ht(r,this.pos)==0&&L==this.button};var ls,us;function Yl(e,r){var L=+new Date;return us&&us.compare(L,e,r)?(ls=us=null,"triple"):ls&&ls.compare(L,e,r)?(us=new Ks(L,e,r),ls=null,"double"):(ls=new Ks(L,e,r),us=null,"single")}function Gs(e){var r=this,L=r.display;if(Xt(r,e)||L.activeTouch&&L.input.supportsTouch())return;if(L.input.ensurePolled(),L.shift=e.shiftKey,Cn(L,e)){a||(L.scroller.draggable=!1,setTimeout(function(){return L.scroller.draggable=!0},100));return}if(Ys(r,e))return;var I=ei(r,e),j=Lt(e),ee=I?Yl(I,j):"single";if(window.focus(),j==1&&r.state.selectingText&&r.state.selectingText(e),I&&wl(r,j,I,ee,e))return;j==1?I?Ql(r,I,ee,e):qe(e)==L.scroller&&Te(e):j==2?(I&&_s(r.doc,I),setTimeout(function(){return L.input.focus()},20)):j==3&&(v?r.display.input.onContextMenu(e):ri(r))}function wl(e,r,L,I,j){var ee="Click";return I=="double"?ee="Double"+ee:I=="triple"&&(ee="Triple"+ee),ee=(r==1?"Left":r==2?"Middle":"Right")+ee,ss(e,_l(ee,j),j,function(ce){if(typeof ce=="string"&&(ce=qo[ce]),!ce)return!1;var we=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),we=ce(e,L)!=le}finally{e.state.suppressEdits=!1}return we})}function Xl(e,r,L){var I=e.getOption("configureMouse"),j=I?I(e,r,L):{};if(j.unit==null){var ee=s?L.shiftKey&&L.metaKey:L.altKey;j.unit=ee?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(j.extend==null||e.doc.extend)&&(j.extend=e.doc.extend||L.shiftKey),j.addNew==null&&(j.addNew=l?L.metaKey:L.ctrlKey),j.moveOnDrag==null&&(j.moveOnDrag=!(l?L.altKey:L.ctrlKey)),j}function Ql(e,r,L,I){M?setTimeout(N(ti,e),0):e.curOp.focus=U();var j=Xl(e,L,I),ee=e.doc.sel,ce;e.options.dragDrop&&nn&&!e.isReadOnly()&&L=="single"&&(ce=ee.contains(r))>-1&&(Ht((ce=ee.ranges[ce]).from(),r)<0||r.xRel>0)&&(Ht(ce.to(),r)>0||r.xRel<0)?Jl(e,I,r,j):Zl(e,I,r,j)}function Jl(e,r,L,I){var j=e.display,ee=!1,ce=si(e,function(We){a&&(j.scroller.draggable=!1),e.state.draggingText=!1,hn(j.wrapper.ownerDocument,"mouseup",ce),hn(j.wrapper.ownerDocument,"mousemove",we),hn(j.scroller,"dragstart",De),hn(j.scroller,"drop",ce),ee||(Te(We),I.addNew||_s(e.doc,L,null,null,I.extend),a&&!m||M&&p==9?setTimeout(function(){j.wrapper.ownerDocument.body.focus({preventScroll:!0}),j.input.focus()},20):j.input.focus())}),we=function(We){ee=ee||Math.abs(r.clientX-We.clientX)+Math.abs(r.clientY-We.clientY)>=10},De=function(){return ee=!0};a&&(j.scroller.draggable=!0),e.state.draggingText=ce,ce.copy=!I.moveOnDrag,j.scroller.dragDrop&&j.scroller.dragDrop(),pt(j.wrapper.ownerDocument,"mouseup",ce),pt(j.wrapper.ownerDocument,"mousemove",we),pt(j.scroller,"dragstart",De),pt(j.scroller,"drop",ce),ri(e),setTimeout(function(){return j.input.focus()},20)}function Vs(e,r,L){if(L=="char")return new Jr(r,r);if(L=="word")return e.findWordAt(r);if(L=="line")return new Jr(at(r.line,0),z(e.doc,at(r.line+1,0)));var I=L(e,r);return new Jr(I.from,I.to)}function Zl(e,r,L,I){var j=e.display,ee=e.doc;Te(r);var ce,we,De=ee.sel,We=De.ranges;if(I.addNew&&!I.extend?(we=ee.sel.contains(L),we>-1?ce=We[we]:ce=new Jr(L,L)):(ce=ee.sel.primary(),we=ee.sel.primIndex),I.unit=="rectangle")I.addNew||(ce=new Jr(L,L)),L=ei(e,r,!0,!0),we=-1;else{var At=Vs(e,L,I.unit);I.extend?ce=gs(ce,At.anchor,At.head,I.extend):ce=At}I.addNew?we==-1?(we=We.length,Ki(ee,Vr(e,We.concat([ce]),we),{scroll:!1,origin:"*mouse"})):We.length>1&&We[we].empty()&&I.unit=="char"&&!I.extend?(Ki(ee,Vr(e,We.slice(0,we).concat(We.slice(we+1)),0),{scroll:!1,origin:"*mouse"}),De=ee.sel):Uo(ee,we,ce,Se):(we=0,Ki(ee,new xi([ce],0),Se),De=ee.sel);var Ft=L;function kn(xr){if(Ht(Ft,xr)==0)return;if(Ft=xr,I.unit=="rectangle"){for(var Ur=[],Gr=e.options.tabSize,Hr=G(q(ee,L.line).text,L.ch,Gr),Zr=G(q(ee,xr.line).text,xr.ch,Gr),bi=Math.min(Hr,Zr),Gi=Math.max(Hr,Zr),Ii=Math.min(L.line,xr.line),wo=Math.min(e.lastLine(),Math.max(L.line,xr.line));Ii<=wo;Ii++){var mo=q(ee,Ii).text,ji=et(mo,bi,Gr);bi==Gi?Ur.push(new Jr(at(Ii,ji),at(Ii,ji))):mo.length>ji&&Ur.push(new Jr(at(Ii,ji),at(Ii,et(mo,Gi,Gr))))}Ur.length||Ur.push(new Jr(L,L)),Ki(ee,Vr(e,De.ranges.slice(0,we).concat(Ur),we),{origin:"*mouse",scroll:!1}),e.scrollIntoView(xr)}else{var vo=ce,qi=Vs(e,xr,I.unit),Hi=vo.anchor,Bi;Ht(qi.anchor,Hi)>0?(Bi=qi.head,Hi=fa(vo.from(),qi.anchor)):(Bi=qi.anchor,Hi=Fa(vo.to(),qi.head));var Li=De.ranges.slice(0);Li[we]=ql(e,new Jr(z(ee,Hi),Bi)),Ki(ee,Vr(e,Li,we),Se)}}var xn=j.wrapper.getBoundingClientRect(),Ia=0;function Ga(xr){var Ur=++Ia,Gr=ei(e,xr,!0,I.unit=="rectangle");if(!Gr)return;if(Ht(Gr,Ft)!=0){e.curOp.focus=U(),kn(Gr);var Hr=ao(j,ee);(Gr.line>=Hr.to||Gr.linexn.bottom?20:0;Zr&&setTimeout(si(e,function(){if(Ia!=Ur)return;j.scroller.scrollTop+=Zr,Ga(xr)}),50)}}function lr(xr){e.state.selectingText=!1,Ia=Infinity,xr&&(Te(xr),j.input.focus()),hn(j.wrapper.ownerDocument,"mousemove",yr),hn(j.wrapper.ownerDocument,"mouseup",Dr),ee.history.lastSelOrigin=null}var yr=si(e,function(xr){xr.buttons===0||!Lt(xr)?lr(xr):Ga(xr)}),Dr=si(e,lr);e.state.selectingText=Dr,pt(j.wrapper.ownerDocument,"mousemove",yr),pt(j.wrapper.ownerDocument,"mouseup",Dr)}function ql(e,r){var L=r.anchor,I=r.head,j=q(e.doc,L.line);if(Ht(L,I)==0&&L.sticky==I.sticky)return r;var ee=ia(j);if(!ee)return r;var ce=Zt(ee,L.ch,L.sticky),we=ee[ce];if(we.from!=L.ch&&we.to!=L.ch)return r;var De=ce+(we.from==L.ch==(we.level!=1)?0:1);if(De==0||De==ee.length)return r;var We;if(I.line!=L.line)We=(I.line-L.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var At=Zt(ee,I.ch,I.sticky),Ft=At-ce||(I.ch-L.ch)*(we.level==1?-1:1);At==De-1||At==De?We=Ft<0:We=Ft>0}var kn=ee[De+(We?-1:0)],xn=We==(kn.level==1),Ia=xn?kn.from:kn.to,Ga=xn?"after":"before";return L.ch==Ia&&L.sticky==Ga?r:new Jr(new at(L.line,Ia,Ga),I)}function Sl(e,r,L,I){var j,ee;if(r.touches)j=r.touches[0].clientX,ee=r.touches[0].clientY;else try{j=r.clientX,ee=r.clientY}catch(kn){return!1}if(j>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;I&&Te(r);var ce=e.display,we=ce.lineDiv.getBoundingClientRect();if(ee>we.bottom||!Je(e,L))return Ie(r);ee-=we.top-ce.viewOffset;for(var De=0;De=j){var At=ve(e.doc,ee),Ft=e.display.gutterSpecs[De];return Ot(e,L,e,At,Ft.className,r),Ie(r)}}}function Ys(e,r){return Sl(e,r,"gutterClick",!0)}function Al(e,r){if(Cn(e.display,r)||Ol(e,r))return;if(Xt(e,r,"contextmenu"))return;v||e.display.input.onContextMenu(r)}function Ol(e,r){return Je(e,"gutterContextMenu")?Sl(e,r,"gutterContextMenu",!1):!1}function Rl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ar(e)}var $o={toString:function(){return"CodeMirror.Init"}},Ss={},cs={};function $l(e){var r=e.optionHandlers;function L(I,j,ee,ce){e.defaults[I]=j,ee&&(r[I]=ce?function(we,De,We){We!=$o&&ee(we,De,We)}:ee)}e.defineOption=L,e.Init=$o,L("value","",function(I,j){return I.setValue(j)},!0),L("mode",null,function(I,j){I.doc.modeOption=j,Ti(I)},!0),L("indentUnit",2,Ti,!0),L("indentWithTabs",!1),L("smartIndent",!0),L("tabSize",4,function(I){Zi(I),ar(I),za(I)},!0),L("lineSeparator",null,function(I,j){if(I.doc.lineSep=j,!j)return;var ee=[],ce=I.doc.first;I.doc.iter(function(De){for(var We=0;;){var At=De.text.indexOf(j,We);if(At==-1)break;We=At+j.length,ee.push(at(ce,At))}ce++});for(var we=ee.length-1;we>=0;we--)Yo(I.doc,j,ee[we],at(ee[we].line,ee[we].ch+j.length))}),L("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(I,j,ee){I.state.specialChars=new RegExp(j.source+(j.test(" ")?"":"| "),"g"),ee!=$o&&I.refresh()}),L("specialCharPlaceholder",ln,function(I){return I.refresh()},!0),L("electricChars",!0),L("inputStyle",t?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),L("spellcheck",!1,function(I,j){return I.getInputField().spellcheck=j},!0),L("autocorrect",!1,function(I,j){return I.getInputField().autocorrect=j},!0),L("autocapitalize",!1,function(I,j){return I.getInputField().autocapitalize=j},!0),L("rtlMoveVisually",!w),L("wholeLineUpdateBefore",!0),L("theme","default",function(I){Rl(I),li(I)},!0),L("keyMap","default",function(I,j,ee){var ce=os(j),we=ee!=$o&&os(ee);we&&we.detach&&we.detach(I,ce),ce.attach&&ce.attach(I,we||null)}),L("extraKeys",null),L("configureMouse",null),L("lineWrapping",!1,tu,!0),L("gutters",[],function(I,j){I.display.gutterSpecs=Pa(j,I.options.lineNumbers),li(I)},!0),L("fixedGutter",!0,function(I,j){I.display.gutters.style.left=j?Xr(I.display)+"px":"0",I.refresh()},!0),L("coverGutterNextToScrollbar",!1,function(I){return Fr(I)},!0),L("scrollbarStyle","native",function(I){Ai(I),Fr(I),I.display.scrollbars.setScrollTop(I.doc.scrollTop),I.display.scrollbars.setScrollLeft(I.doc.scrollLeft)},!0),L("lineNumbers",!1,function(I,j){I.display.gutterSpecs=Pa(I.options.gutters,j),li(I)},!0),L("firstLineNumber",1,li,!0),L("lineNumberFormatter",function(I){return I},li,!0),L("showCursorWhenSelecting",!1,ka,!0),L("resetSelectionOnContextMenu",!0),L("lineWiseCopyCut",!0),L("pasteLinesPerSelection",!0),L("selectionsMayTouch",!1),L("readOnly",!1,function(I,j){j=="nocursor"&&(pi(I),I.display.input.blur()),I.display.input.readOnlyChanged(j)}),L("screenReaderLabel",null,function(I,j){j=j===""?null:j,I.display.input.screenReaderLabelChanged(j)}),L("disableInput",!1,function(I,j){j||I.display.input.reset()},!0),L("dragDrop",!0,eu),L("allowDropFileTypes",null),L("cursorBlinkRate",530),L("cursorScrollMargin",0),L("cursorHeight",1,ka,!0),L("singleCursorHeightPerLine",!0,ka,!0),L("workTime",100),L("workDelay",100),L("flattenSpans",!0,Zi,!0),L("addModeClass",!1,Zi,!0),L("pollInterval",100),L("undoDepth",200,function(I,j){return I.doc.history.undoDepth=j}),L("historyEventDelay",1250),L("viewportMargin",10,function(I){return I.refresh()},!0),L("maxHighlightLength",1e4,Zi,!0),L("moveInputWithCursor",!0,function(I,j){j||I.display.input.resetPosition()}),L("tabindex",null,function(I,j){return I.display.input.getField().tabIndex=j||""}),L("autofocus",null),L("direction","ltr",function(I,j){return I.doc.setDirection(j)},!0),L("phrases",null)}function eu(e,r,L){var I=L&&L!=$o;if(!r!=!I){var j=e.display.dragFunctions,ee=r?pt:hn;ee(e.display.scroller,"dragstart",j.start),ee(e.display.scroller,"dragenter",j.enter),ee(e.display.scroller,"dragover",j.over),ee(e.display.scroller,"dragleave",j.leave),ee(e.display.scroller,"drop",j.drop)}}function tu(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),Vn(e)),$r(e),za(e),ar(e),setTimeout(function(){return Fr(e)},100)}function Ci(e,r){var L=this;if(!(this instanceof Ci))return new Ci(e,r);this.options=r=r?A(r):{},A(Ss,r,!1);var I=r.value;typeof I=="string"?I=new to(I,r.mode,null,r.lineSeparator,r.direction):r.mode&&(I.modeOption=r.mode),this.doc=I;var j=new Ci.inputStyles[r.inputStyle](this),ee=this.display=new wi(e,I,j,r);ee.wrapper.CodeMirror=this,Rl(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ai(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new K,keySeq:null,specialChars:null},r.autofocus&&!t&&ee.input.focus(),M&&p<11&&setTimeout(function(){return L.display.input.reset(!0)},20),Tl(this),iu(),Qi(this),this.curOp.forceUpdate=!0,Rs(this,I),r.autofocus&&!t||this.hasFocus()?setTimeout(function(){L.hasFocus()&&!L.state.focused&&hi(L)},20):pi(this);for(var ce in cs)cs.hasOwnProperty(ce)&&cs[ce](this,r[ce],$o);Da(this),r.finishInit&&r.finishInit(this);for(var we=0;we20*20}pt(r.scroller,"touchstart",function(De){if(!Xt(e,De)&&!ee(De)&&!Ys(e,De)){r.input.ensurePolled(),clearTimeout(L);var We=+new Date;r.activeTouch={start:We,moved:!1,prev:We-I.end<=300?I:null},De.touches.length==1&&(r.activeTouch.left=De.touches[0].pageX,r.activeTouch.top=De.touches[0].pageY)}}),pt(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),pt(r.scroller,"touchend",function(De){var We=r.activeTouch;if(We&&!Cn(r,De)&&We.left!=null&&!We.moved&&new Date-We.start<300){var At=e.coordsChar(r.activeTouch,"page"),Ft;!We.prev||ce(We,We.prev)?Ft=new Jr(At,At):!We.prev.prev||ce(We,We.prev.prev)?Ft=e.findWordAt(At):Ft=new Jr(at(At.line,0),z(e.doc,at(At.line+1,0))),e.setSelection(Ft.anchor,Ft.head),e.focus(),Te(De)}j()}),pt(r.scroller,"touchcancel",j),pt(r.scroller,"scroll",function(){r.scroller.clientHeight&&(zi(e,r.scroller.scrollTop),gi(e,r.scroller.scrollLeft,!0),Ot(e,"scroll",e))}),pt(r.scroller,"mousewheel",function(De){return Fi(e,De)}),pt(r.scroller,"DOMMouseScroll",function(De){return Fi(e,De)}),pt(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(De){Xt(e,De)||be(De)},over:function(De){Xt(e,De)||(jl(e,De),be(De))},start:function(De){return ml(e,De)},drop:si(e,Fl),leave:function(De){Xt(e,De)||Ms(e)}};var we=r.input.getField();pt(we,"keyup",function(De){return xl.call(e,De)}),pt(we,"keydown",si(e,yl)),pt(we,"keypress",si(e,Cl)),pt(we,"focus",function(De){return hi(e,De)}),pt(we,"blur",function(De){return pi(e,De)})}var V=[];Ci.defineInitHook=function(e){return V.push(e)};function X(e,r,L,I){var j=e.doc,ee;L==null&&(L="add"),L=="smart"&&(j.mode.indent?ee=Wn(e,r).state:L="prev");var ce=e.options.tabSize,we=q(j,r),De=G(we.text,null,ce);we.stateAfter&&(we.stateAfter=null);var We=we.text.match(/^\s*/)[0],At;if(!I&&!/\S/.test(we.text))At=0,L="not";else if(L=="smart"&&(At=j.mode.indent(ee,we.text.slice(We.length),we.text),At==le||At>150)){if(!I)return;L="prev"}L=="prev"?r>j.first?At=G(q(j,r-1).text,null,ce):At=0:L=="add"?At=De+e.options.indentUnit:L=="subtract"?At=De-e.options.indentUnit:typeof L=="number"&&(At=De+L),At=Math.max(0,At);var Ft="",kn=0;if(e.options.indentWithTabs)for(var xn=Math.floor(At/ce);xn;--xn)kn+=ce,Ft+=" ";if(knce,De=Bt(r),We=null;if(we&&I.ranges.length>1)if(ne&&ne.text.join(` + left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(ee),ee.scrollIntoView(j),e.display.lineSpace.removeChild(ee)}}function So(e,r,L,I){I==null&&(I=0);var j;!e.options.lineWrapping&&r==L&&(r=r.ch?at(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,L=r.sticky=="before"?at(r.line,r.ch+1,"before"):r);for(var ee=0;ee<5;ee++){var ce=!1,we=Ba(e,r),De=!L||L==r?we:Ba(e,L);j={left:Math.min(we.left,De.left),top:Math.min(we.top,De.top)-I,right:Math.max(we.left,De.left),bottom:Math.max(we.bottom,De.bottom)+I};var We=eo(e,j),At=e.doc.scrollTop,Ft=e.doc.scrollLeft;if(We.scrollTop!=null&&(zi(e,We.scrollTop),Math.abs(e.doc.scrollTop-At)>1&&(ce=!0)),We.scrollLeft!=null&&(gi(e,We.scrollLeft),Math.abs(e.doc.scrollLeft-Ft)>1&&(ce=!0)),!ce)break}return j}function $i(e,r){var L=eo(e,r);L.scrollTop!=null&&zi(e,L.scrollTop),L.scrollLeft!=null&&gi(e,L.scrollLeft)}function eo(e,r){var L=e.display,I=Yn(e.display);r.top<0&&(r.top=0);var j=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:L.scroller.scrollTop,ee=Ee(e),ce={};r.bottom-r.top>ee&&(r.bottom=r.top+ee);var we=e.doc.height+$e(L),De=r.topwe-I;if(r.topj+ee){var At=Math.min(r.top,(We?we:r.bottom)-ee);At!=j&&(ce.scrollTop=At)}var Ft=e.options.fixedGutter?0:L.gutters.offsetWidth,kn=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:L.scroller.scrollLeft-Ft,xn=Xe(e)-L.gutters.offsetWidth,Ia=r.right-r.left>xn;return Ia&&(r.right=r.left+xn),r.left<10?ce.scrollLeft=0:r.leftxn+kn-3&&(ce.scrollLeft=r.right+(Ia?0:10)-xn),ce}function ro(e,r){if(r==null)return;co(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r}function io(e){co(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Yi(e,r,L){(r!=null||L!=null)&&co(e),r!=null&&(e.curOp.scrollLeft=r),L!=null&&(e.curOp.scrollTop=L)}function bo(e,r){co(e),e.curOp.scrollToPos=r}function co(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var L=oa(e,r.from),I=oa(e,r.to);oo(e,L,I,r.margin)}}function oo(e,r,L,I){var j=eo(e,{left:Math.min(r.left,L.left),top:Math.min(r.top,L.top)-I,right:Math.max(r.right,L.right),bottom:Math.max(r.bottom,L.bottom)+I});Yi(e,j.scrollLeft,j.scrollTop)}function zi(e,r){if(Math.abs(e.doc.scrollTop-r)<2)return;k||Ao(e,{top:r}),Xi(e,r,!0),k&&Ao(e),Ri(e,100)}function Xi(e,r,L){if(r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),e.display.scroller.scrollTop==r&&!L)return;e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r)}function gi(e,r,L,I){if(r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(L?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!I)return;e.doc.scrollLeft=r,$a(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r)}function yi(e){var r=e.display,L=r.gutters.offsetWidth,I=Math.round(e.doc.height+$e(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?L:0,docHeight:I,scrollHeight:I+_t(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:L}}var Br=function(e,r,L){this.cm=L;var I=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),j=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");I.tabIndex=j.tabIndex=-1,e(I),e(j),mt(I,"scroll",function(){I.clientHeight&&r(I.scrollTop,"vertical")}),mt(j,"scroll",function(){j.clientWidth&&r(j.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,M&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,L=e.scrollHeight>e.clientHeight+1,I=e.nativeBarWidth;if(L){this.vert.style.display="block",this.vert.style.bottom=r?I+"px":"0";var j=e.viewHeight-(r?I:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+j)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=L?I+"px":"0",this.horiz.style.left=e.barLeft+"px";var ee=e.viewWidth-e.barLeft-(L?I:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+ee)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(I==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:L?I:0,bottom:r?I:0}},Br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var e=l&&!o?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new K,this.disableVert=new K},Br.prototype.enableZeroWidthBar=function(e,r,L){e.style.pointerEvents="auto";function I(){var j=e.getBoundingClientRect(),ee=L=="vert"?document.elementFromPoint(j.right-1,(j.top+j.bottom)/2):document.elementFromPoint((j.right+j.left)/2,j.bottom-1);ee!=e?e.style.pointerEvents="none":r.set(1e3,I)}r.set(1e3,I)},Br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Nr=function(){};Nr.prototype.update=function(){return{bottom:0,right:0}},Nr.prototype.setScrollLeft=function(){},Nr.prototype.setScrollTop=function(){},Nr.prototype.clear=function(){};function Fr(e,r){r||(r=yi(e));var L=e.display.barWidth,I=e.display.barHeight;ii(e,r);for(var j=0;j<4&&L!=e.display.barWidth||I!=e.display.barHeight;j++)L!=e.display.barWidth&&e.options.lineWrapping&&mi(e),ii(e,yi(e)),L=e.display.barWidth,I=e.display.barHeight}function ii(e,r){var L=e.display,I=L.scrollbars.update(r);L.sizer.style.paddingRight=(L.barWidth=I.right)+"px",L.sizer.style.paddingBottom=(L.barHeight=I.bottom)+"px",L.heightForcer.style.borderBottom=I.bottom+"px solid transparent",I.right&&I.bottom?(L.scrollbarFiller.style.display="block",L.scrollbarFiller.style.height=I.bottom+"px",L.scrollbarFiller.style.width=I.right+"px"):L.scrollbarFiller.style.display="",I.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(L.gutterFiller.style.display="block",L.gutterFiller.style.height=I.bottom+"px",L.gutterFiller.style.width=r.gutterWidth+"px"):L.gutterFiller.style.display=""}var ui={native:Br,null:Nr};function Ai(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ui[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),mt(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,L){L=="horizontal"?gi(e,r):zi(e,r)},e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var fi=0;function Qi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++fi},Ha(e.curOp)}function Eo(e){var r=e.curOp;r&&Va(r,function(L){for(var I=0;I=L.viewTo)||L.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Wi(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Mi(e){e.updatedDisplay=e.mustUpdate&&so(e.cm,e.update)}function ho(e){var r=e.cm,L=r.display;e.updatedDisplay&&mi(r),e.barMeasure=yi(r),L.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=Ke(r,L.maxLine,L.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(L.scroller.clientWidth,L.sizer.offsetLeft+e.adjustWidthTo+_t(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,L.sizer.offsetLeft+e.adjustWidthTo-Xe(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=L.input.prepareSelection())}function Io(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var L=+new Date+e.options.workTime,I=Wn(e,r.highlightFrontier),j=[];r.iter(I.line,Math.min(r.first+r.size,e.display.viewTo+500),function(ee){if(I.line>=e.display.viewFrom){var ce=ee.styles,we=ee.text.length>e.options.maxHighlightLength?Ea(r.mode,I.state):null,De=ut(e,ee,I,!0);we&&(I.state=we),ee.styles=De.styles;var We=ee.styleClasses,At=De.classes;At?ee.styleClasses=At:We&&(ee.styleClasses=null);for(var Ft=!ce||ce.length!=ee.styles.length||We!=At&&(!We||!At||We.bgClass!=At.bgClass||We.textClass!=At.textClass),kn=0;!Ft&&knL)return Ri(e,e.options.workDelay),!0}),r.highlightFrontier=I.line,r.modeFrontier=Math.max(r.modeFrontier,I.line),j.length&&Di(e,function(){for(var ee=0;ee=L.viewFrom&&r.visible.to<=L.viewTo&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo)&&L.renderedView==L.view&&dr(e)==0)return!1;Da(e)&&(sa(e),r.dims=wr(e));var j=I.first+I.size,ee=Math.max(r.visible.from-e.options.viewportMargin,I.first),ce=Math.min(j,r.visible.to+e.options.viewportMargin);L.viewFromce&&L.viewTo-ce<20&&(ce=Math.min(j,L.viewTo)),Ma&&(ee=On(e.doc,ee),ce=cn(e.doc,ce));var we=ee!=L.viewFrom||ce!=L.viewTo||L.lastWrapHeight!=r.wrapperHeight||L.lastWrapWidth!=r.wrapperWidth;cr(e,ee,ce),L.viewOffset=Pn(q(e.doc,L.viewFrom)),e.display.mover.style.top=L.viewOffset+"px";var De=dr(e);if(!we&&De==0&&!r.force&&L.renderedView==L.view&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo))return!1;var We=Do(e);return De>4&&(L.lineDiv.style.display="none"),No(e,L.updateLineNumbers,r.dims),De>4&&(L.lineDiv.style.display=""),L.renderedView=L.view,po(We),h(L.cursorDiv),h(L.selectionDiv),L.gutters.style.height=L.sizer.style.minHeight=0,we&&(L.lastWrapHeight=r.wrapperHeight,L.lastWrapWidth=r.wrapperWidth,Ri(e,400)),L.updateLineNumbers=null,!0}function yo(e,r){for(var L=r.viewport,I=!0;;I=!1){if(!I||!e.options.lineWrapping||r.oldDisplayWidth==Xe(e)){if(L&&L.top!=null&&(L={top:Math.min(e.doc.height+$e(e.display)-Ee(e),L.top)}),r.visible=ao(e.display,e.doc,L),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else I&&(r.visible=ao(e.display,e.doc,L));if(!so(e,r))break;mi(e);var j=yi(e);ka(e),Fr(e,j),Kr(e,j),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ao(e,r){var L=new Wi(e,r);if(so(e,L)){mi(e),yo(e,L);var I=yi(e);ka(e),Fr(e,I),Kr(e,I),L.finish()}}function No(e,r,L){var I=e.display,j=e.options.lineNumbers,ee=I.lineDiv,ce=ee.firstChild;function we(Ia){var Ga=Ia.nextSibling;return a&&l&&e.display.currentWheelTarget==Ia?Ia.style.display="none":Ia.parentNode.removeChild(Ia),Ga}for(var De=I.view,We=I.viewFrom,At=0;At-1&&(xn=!1),or(e,Ft,We,L)),xn&&(h(Ft.lineNumber),Ft.lineNumber.appendChild(document.createTextNode(kt(e.options,We)))),ce=Ft.node.nextSibling}We+=Ft.size}for(;ce;)ce=we(ce)}function Ui(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px"}function Kr(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+_t(e)+"px"}function $a(e){var r=e.display,L=r.view;if(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))return;for(var I=Xr(r)-r.scroller.scrollLeft+e.doc.scrollLeft,j=r.gutters.offsetWidth,ee=I+"px",ce=0;cece.clientWidth,De=ce.scrollHeight>ce.clientHeight;if(!(I&&we||j&&De))return;if(j&&l&&a){e:for(var We=r.target,At=ee.view;We!=ce;We=We.parentNode)for(var Ft=0;Ft=0&&Ht(e,I.to())<=0)return L}return-1};var Jr=function(e,r){this.anchor=e,this.head=r};Jr.prototype.from=function(){return fa(this.anchor,this.head)},Jr.prototype.to=function(){return Fa(this.anchor,this.head)},Jr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Vr(e,r,L){var I=e&&e.options.selectionsMayTouch,j=r[L];r.sort(function(kn,xn){return Ht(kn.from(),xn.from())}),L=$(r,j);for(var ee=1;ee0:De>=0){var We=fa(we.from(),ce.from()),At=Fa(we.to(),ce.to()),Ft=we.empty()?ce.from()==ce.head:we.from()==we.head;ee<=L&&--L,r.splice(--ee,2,new Jr(Ft?At:We,Ft?We:At))}}return new xi(r,L)}function Cr(e,r){return new xi([new Jr(e,r||e)],0)}function Wr(e){return e.text?at(e.from.line+e.text.length-1,fe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Qr(e,r){if(Ht(e,r.from)<0)return e;if(Ht(e,r.to)<=0)return Wr(r);var L=e.line+r.text.length-(r.to.line-r.from.line)-1,I=e.ch;return e.line==r.to.line&&(I+=Wr(r).ch-r.to.ch),at(L,I)}function di(e,r){for(var L=[],I=0;I1&&e.remove(we.line+1,Ia-1),e.insert(we.line+1,yr)}pa(e,"change",e,r)}function Si(e,r,L){function I(j,ee,ce){if(j.linked)for(var we=0;we1&&!e.done[e.done.length-2].ranges)return e.done.pop(),fe(e.done)}function Js(e,r,L,I){var j=e.history;j.undone.length=0;var ee=+new Date,ce,we;if((j.lastOp==I||j.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&j.lastModTime>ee-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(ce=Pl(j,j.lastOp==I)))we=fe(ce.changes),Ht(r.from,r.to)==0&&Ht(r.from,we.to)==0?we.to=Wr(r):ce.changes.push(Ts(e,r));else{var De=fe(j.done);for((!De||!De.ranges)&&ms(e.sel,j.done),ce={changes:[Ts(e,r)],generation:j.generation},j.done.push(ce);j.done.length>j.undoDepth;)j.done.shift(),j.done[0].ranges||j.done.shift()}j.done.push(L),j.generation=++j.maxGeneration,j.lastModTime=j.lastSelTime=ee,j.lastOp=j.lastSelOp=I,j.lastOrigin=j.lastSelOrigin=r.origin,we||Ot(e,"historyAdded")}function Il(e,r,L,I){var j=r.charAt(0);return j=="*"||j=="+"&&L.ranges.length==I.ranges.length&&L.somethingSelected()==I.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ps(e,r,L,I){var j=e.history,ee=I&&I.origin;L==j.lastSelOp||ee&&j.lastSelOrigin==ee&&(j.lastModTime==j.lastSelTime&&j.lastOrigin==ee||Il(e,ee,fe(j.done),r))?j.done[j.done.length-1]=r:ms(r,j.done),j.lastSelTime=+new Date,j.lastSelOrigin=ee,j.lastSelOp=L,I&&I.clearRedo!==!1&&Qs(j.undone)}function ms(e,r){var L=fe(r);L&&L.ranges&&L.equals(e)||r.push(e)}function Ds(e,r,L,I){var j=r["spans_"+e.id],ee=0;e.iter(Math.max(e.first,L),Math.min(e.first+e.size,I),function(ce){ce.markedSpans&&((j||(j=r["spans_"+e.id]={}))[ee]=ce.markedSpans),++ee})}function vs(e){if(!e)return null;for(var r,L=0;L-1&&(fe(we)[Ft]=We[Ft],delete We[Ft]))}}return I}function gs(e,r,L,I){if(I){var j=e.anchor;if(L){var ee=Ht(r,j)<0;ee!=Ht(L,j)<0?(j=r,r=L):ee!=Ht(r,L)<0&&(r=L)}return new Jr(j,r)}else return new Jr(L||r,r)}function _s(e,r,L,I,j){j==null&&(j=e.cm&&(e.cm.display.shift||e.extend)),Ki(e,new xi([gs(e.sel.primary(),r,L,j)],0),I)}function qs(e,r,L){for(var I=[],j=e.cm&&(e.cm.display.shift||e.extend),ee=0;ee=r.ch:we.to>r.ch))){if(j&&(Ot(De,"beforeCursorEnter"),De.explicitlyCleared))if(ee.markedSpans){--ce;continue}else break;if(!De.atomic)continue;if(L){var Ft=De.find(I<0?1:-1),kn=void 0;if((I<0?At:We)&&(Ft=rl(e,Ft,-I,Ft&&Ft.line==r.line?ee:null)),Ft&&Ft.line==r.line&&(kn=Ht(Ft,L))&&(I<0?kn<0:kn>0))return Ko(e,Ft,r,I,j)}var xn=De.find(I<0?-1:1);return(I<0?We:At)&&(xn=rl(e,xn,I,xn.line==r.line?ee:null)),xn?Ko(e,xn,r,I,j):null}}return r}function bs(e,r,L,I,j){var ee=I||1,ce=Ko(e,r,L,ee,j)||!j&&Ko(e,r,L,ee,!0)||Ko(e,r,L,-ee,j)||!j&&Ko(e,r,L,-ee,!0);return ce||(e.cantEdit=!0,at(e.first,0))}function rl(e,r,L,I){return L<0&&r.ch==0?r.line>e.first?z(e,at(r.line-1)):null:L>0&&r.ch==(I||q(e,r.line)).text.length?r.line=0;--j)ol(e,{from:I[j].from,to:I[j].to,text:j?[""]:r.text,origin:r.origin});else ol(e,r)}function ol(e,r){if(r.text.length==1&&r.text[0]==""&&Ht(r.from,r.to)==0)return;var L=di(e,r);Js(e,r,L,e.cm?e.cm.curOp.id:NaN),Vo(e,r,L,Wa(e,r));var I=[];Si(e,function(j,ee){!ee&&$(I,j.history)==-1&&(cl(j.history,r),I.push(j.history)),Vo(j,r,null,Wa(j,r))})}function Es(e,r,L){var I=e.cm&&e.cm.state.suppressEdits;if(I&&!L)return;for(var j=e.history,ee,ce=e.sel,we=r=="undo"?j.done:j.undone,De=r=="undo"?j.undone:j.done,We=0;We=0;--xn){var Ia=kn(xn);if(Ia)return Ia.v}}function sl(e,r){if(r==0)return;if(e.first+=r,e.sel=new xi(Ae(e.sel.ranges,function(j){return new Jr(at(j.anchor.line+r,j.anchor.ch),at(j.head.line+r,j.head.ch))}),e.sel.primIndex),e.cm){za(e.cm,e.first,e.first-r,r);for(var L=e.cm.display,I=L.viewFrom;Ie.lastLine())return;if(r.from.lineee&&(r={from:r.from,to:at(ee,q(e,ee).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Z(e,r.from,r.to),L||(L=di(e,r)),e.cm?Ml(e.cm,r,I):Lo(e,r,I),zo(e,L,de),e.cantEdit&&bs(e,at(e.firstLine(),0))&&(e.cantEdit=!1)}function Ml(e,r,L){var I=e.doc,j=e.display,ee=r.from,ce=r.to,we=!1,De=ee.line;e.options.lineWrapping||(De=Re($t(q(I,ee.line))),I.iter(De,ce.line+1,function(xn){if(xn==j.maxLine)return we=!0,!0})),I.sel.contains(r.from,r.to)>-1&&ht(e),Lo(I,r,L,ai(e)),e.options.lineWrapping||(I.iter(De,ee.line+r.text.length,function(xn){var Ia=Kn(xn);Ia>j.maxLineLength&&(j.maxLine=xn,j.maxLineLength=Ia,j.maxLineChanged=!0,we=!1)}),we&&(e.curOp.updateMaxLine=!0)),ba(I,ee.line),Ri(e,400);var We=r.text.length-(ce.line-ee.line)-1;r.full?za(e):ee.line==ce.line&&r.text.length==1&&!xo(e.doc,r)?La(e,ee.line,"text"):za(e,ee.line,ce.line+1,We);var At=Je(e,"changes"),Ft=Je(e,"change");if(Ft||At){var kn={from:ee,to:ce,text:r.text,removed:r.removed,origin:r.origin};Ft&&pa(e,"change",e,kn),At&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(kn)}e.display.selForContextMenu=null}function Yo(e,r,L,I,j){var ee;I||(I=L),Ht(I,L)<0&&(ee=[I,L],L=ee[0],I=ee[1]),typeof r=="string"&&(r=e.splitLines(r)),Go(e,{from:L,to:I,text:r,origin:j})}function ll(e,r,L,I){L1||!(this.children[0]instanceof Fo))){var we=[];this.collapse(we),this.children=[new Fo(we)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r50){for(var ce=j.lines.length%25+25,we=ce;we10);e.parent.maybeSpill()},iterN:function(e,r,L){for(var I=0;Ie.display.maxLineLength&&(e.display.maxLine=We,e.display.maxLineLength=At,e.display.maxLineChanged=!0)}I!=null&&e&&this.collapsed&&za(e,I,j+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&nl(e.doc)),e&&pa(e,"markerCleared",e,this,I,j),r&&Eo(e),this.parent&&this.parent.clear()},Co.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var L,I,j=0;j0||ce==0&&ee.clearWhenEmpty!==!1)return ee;if(ee.replacedWith&&(ee.collapsed=!0,ee.widgetNode=T("span",[ee.replacedWith],"CodeMirror-widget"),I.handleMouseEvents||ee.widgetNode.setAttribute("cm-ignore-events","true"),I.insertLeft&&(ee.widgetNode.insertLeft=!0)),ee.collapsed){if(jn(e,r.line,r,L,ee)||r.line!=L.line&&jn(e,L.line,r,L,ee))throw new Error("Inserting collapsed marker partially overlapping an existing one");Rt()}ee.addToHistory&&Js(e,{from:r,to:L,origin:"markText"},e.sel,NaN);var we=r.line,De=e.cm,We;if(e.iter(we,L.line+1,function(Ft){De&&ee.collapsed&&!De.options.lineWrapping&&$t(Ft)==De.display.maxLine&&(We=!0),ee.collapsed&&we!=r.line&&Oe(Ft,0),Fn(Ft,new An(ee,we==r.line?r.ch:null,we==L.line?L.ch:null)),++we}),ee.collapsed&&e.iter(r.line,L.line+1,function(Ft){sn(e,Ft)&&Oe(Ft,0)}),ee.clearOnEnter&&mt(ee,"beforeCursorEnter",function(){return ee.clear()}),ee.readOnly&&(Jt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),ee.collapsed&&(ee.id=++fl,ee.atomic=!0),De){if(We&&(De.curOp.updateMaxLine=!0),ee.collapsed)za(De,r.line,L.line+1);else if(ee.className||ee.startStyle||ee.endStyle||ee.css||ee.attributes||ee.title)for(var At=r.line;At<=L.line;At++)La(De,At,"text");ee.atomic&&nl(De.doc),pa(De,"markerAdded",De,ee)}return ee}var Jo=function(e,r){this.markers=e,this.primary=r;for(var L=0;L=0;De--)Go(this,I[De]);we?el(this,we):this.cm&&io(this.cm)}),undo:vi(function(){Es(this,"undo")}),redo:vi(function(){Es(this,"redo")}),undoSelection:vi(function(){Es(this,"undo",!0)}),redoSelection:vi(function(){Es(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,L=0,I=0;I=e.ch)&&r.push(j.marker.parent||j.marker)}return r},findMarks:function(e,r,L){e=z(this,e),r=z(this,r);var I=[],j=e.line;return this.iter(e.line,r.line+1,function(ee){var ce=ee.markedSpans;if(ce)for(var we=0;we=De.to||De.from==null&&j!=e.line||De.from!=null&&j==r.line&&De.from>=r.ch)&&(!L||L(De.marker))&&I.push(De.marker.parent||De.marker)}++j}),I},getAllMarks:function(){var e=[];return this.iter(function(r){var L=r.markedSpans;if(L)for(var I=0;Ie)return r=e,!0;e-=ee,++L}),z(this,at(L,r))},indexFromPos:function(e){e=z(this,e);var r=e.ch;if(e.liner&&(r=e.from),e.to!=null&&e.to-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var At=e.dataTransfer.getData("Text");if(At){var Ft;if(r.state.draggingText&&!r.state.draggingText.copy&&(Ft=r.listSelections()),zo(r.doc,Cr(L,L)),Ft)for(var kn=0;kn=0;we--)Yo(e.doc,"",I[we].from,I[we].to,"+delete");io(e)})}function Us(e,r,L){var I=Ye(e.text,r+L,L);return I<0||I>e.text.length?null:I}function Fs(e,r,L){var I=Us(e,r.ch,L);return I==null?null:new at(r.line,I,L<0?"after":"before")}function js(e,r,L,I,j){if(e){r.doc.direction=="rtl"&&(j=-j);var ee=ia(L,r.doc.direction);if(ee){var ce=j<0?fe(ee):ee[0],we=j<0==(ce.level==1),De=we?"after":"before",We;if(ce.level>0||r.doc.direction=="rtl"){var At=it(r,L);We=j<0?L.text.length-1:0;var Ft=Pt(r,At,We).top;We=gt(function(kn){return Pt(r,At,kn).top==Ft},j<0==(ce.level==1)?ce.from:ce.to-1,We),De=="before"&&(We=Us(L,We,1))}else We=j<0?ce.to:ce.from;return new at(I,We,De)}}return new at(I,j<0?L.text.length:0,j<0?"before":"after")}function Bs(e,r,L,I){var j=ia(r,e.doc.direction);if(!j)return Fs(r,L,I);L.ch>=r.text.length?(L.ch=r.text.length,L.sticky="before"):L.ch<=0&&(L.ch=0,L.sticky="after");var ee=Zt(j,L.ch,L.sticky),ce=j[ee];if(e.doc.direction=="ltr"&&ce.level%2==0&&(I>0?ce.to>L.ch:ce.from=ce.from&&kn>=At.begin)){var xn=Ft?"before":"after";return new at(L.line,kn,xn)}}var Ia=function(yr,Dr,xr){for(var Ur=function(bi,Gi){return Gi?new at(L.line,we(bi,1),"before"):new at(L.line,bi,"after")};yr>=0&&yr0==(Gr.level!=1),Zr=Hr?xr.begin:we(xr.end,-1);if(Gr.from<=Zr&&Zr0?At.end:we(At.begin,-1);return lr!=null&&!(I>0&&lr==r.text.length)&&(Ga=Ia(I>0?0:j.length-1,I,We(lr)),Ga)?Ga:null}var qo={selectAll:il,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),de)},killLine:function(e){return Zo(e,function(r){if(r.empty()){var L=q(e.doc,r.head.line).text.length;return r.head.ch==L&&r.head.line0)j=new at(j.line,j.ch+1),e.replaceRange(ee.charAt(j.ch-1)+ee.charAt(j.ch-2),at(j.line,j.ch-2),j,"+transpose");else if(j.line>e.doc.first){var ce=q(e.doc,j.line-1).text;ce&&(j=new at(j.line,1),e.replaceRange(ee.charAt(0)+e.doc.lineSeparator()+ce.charAt(ce.length-1),at(j.line-1,ce.length-1),j,"+transpose"))}}L.push(new Jr(j,j))}e.setSelections(L)})},newlineAndIndent:function(e){return Di(e,function(){for(var r=e.listSelections(),L=r.length-1;L>=0;L--)e.replaceRange(e.doc.lineSeparator(),r[L].anchor,r[L].head,"+input");r=e.listSelections();for(var I=0;Ie&&Ht(r,this.pos)==0&&L==this.button};var ls,us;function Yl(e,r){var L=+new Date;return us&&us.compare(L,e,r)?(ls=us=null,"triple"):ls&&ls.compare(L,e,r)?(us=new Ks(L,e,r),ls=null,"double"):(ls=new Ks(L,e,r),us=null,"single")}function Gs(e){var r=this,L=r.display;if(Xt(r,e)||L.activeTouch&&L.input.supportsTouch())return;if(L.input.ensurePolled(),L.shift=e.shiftKey,Cn(L,e)){a||(L.scroller.draggable=!1,setTimeout(function(){return L.scroller.draggable=!0},100));return}if(Ys(r,e))return;var I=ei(r,e),j=Lt(e),ee=I?Yl(I,j):"single";if(window.focus(),j==1&&r.state.selectingText&&r.state.selectingText(e),I&&wl(r,j,I,ee,e))return;j==1?I?Ql(r,I,ee,e):qe(e)==L.scroller&&Te(e):j==2?(I&&_s(r.doc,I),setTimeout(function(){return L.input.focus()},20)):j==3&&(v?r.display.input.onContextMenu(e):ri(r))}function wl(e,r,L,I,j){var ee="Click";return I=="double"?ee="Double"+ee:I=="triple"&&(ee="Triple"+ee),ee=(r==1?"Left":r==2?"Middle":"Right")+ee,ss(e,_l(ee,j),j,function(ce){if(typeof ce=="string"&&(ce=qo[ce]),!ce)return!1;var we=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),we=ce(e,L)!=le}finally{e.state.suppressEdits=!1}return we})}function Xl(e,r,L){var I=e.getOption("configureMouse"),j=I?I(e,r,L):{};if(j.unit==null){var ee=s?L.shiftKey&&L.metaKey:L.altKey;j.unit=ee?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(j.extend==null||e.doc.extend)&&(j.extend=e.doc.extend||L.shiftKey),j.addNew==null&&(j.addNew=l?L.metaKey:L.ctrlKey),j.moveOnDrag==null&&(j.moveOnDrag=!(l?L.altKey:L.ctrlKey)),j}function Ql(e,r,L,I){M?setTimeout(N(ti,e),0):e.curOp.focus=U();var j=Xl(e,L,I),ee=e.doc.sel,ce;e.options.dragDrop&&nn&&!e.isReadOnly()&&L=="single"&&(ce=ee.contains(r))>-1&&(Ht((ce=ee.ranges[ce]).from(),r)<0||r.xRel>0)&&(Ht(ce.to(),r)>0||r.xRel<0)?Jl(e,I,r,j):Zl(e,I,r,j)}function Jl(e,r,L,I){var j=e.display,ee=!1,ce=si(e,function(We){a&&(j.scroller.draggable=!1),e.state.draggingText=!1,hn(j.wrapper.ownerDocument,"mouseup",ce),hn(j.wrapper.ownerDocument,"mousemove",we),hn(j.scroller,"dragstart",De),hn(j.scroller,"drop",ce),ee||(Te(We),I.addNew||_s(e.doc,L,null,null,I.extend),a&&!m||M&&p==9?setTimeout(function(){j.wrapper.ownerDocument.body.focus({preventScroll:!0}),j.input.focus()},20):j.input.focus())}),we=function(We){ee=ee||Math.abs(r.clientX-We.clientX)+Math.abs(r.clientY-We.clientY)>=10},De=function(){return ee=!0};a&&(j.scroller.draggable=!0),e.state.draggingText=ce,ce.copy=!I.moveOnDrag,j.scroller.dragDrop&&j.scroller.dragDrop(),mt(j.wrapper.ownerDocument,"mouseup",ce),mt(j.wrapper.ownerDocument,"mousemove",we),mt(j.scroller,"dragstart",De),mt(j.scroller,"drop",ce),ri(e),setTimeout(function(){return j.input.focus()},20)}function Vs(e,r,L){if(L=="char")return new Jr(r,r);if(L=="word")return e.findWordAt(r);if(L=="line")return new Jr(at(r.line,0),z(e.doc,at(r.line+1,0)));var I=L(e,r);return new Jr(I.from,I.to)}function Zl(e,r,L,I){var j=e.display,ee=e.doc;Te(r);var ce,we,De=ee.sel,We=De.ranges;if(I.addNew&&!I.extend?(we=ee.sel.contains(L),we>-1?ce=We[we]:ce=new Jr(L,L)):(ce=ee.sel.primary(),we=ee.sel.primIndex),I.unit=="rectangle")I.addNew||(ce=new Jr(L,L)),L=ei(e,r,!0,!0),we=-1;else{var At=Vs(e,L,I.unit);I.extend?ce=gs(ce,At.anchor,At.head,I.extend):ce=At}I.addNew?we==-1?(we=We.length,Ki(ee,Vr(e,We.concat([ce]),we),{scroll:!1,origin:"*mouse"})):We.length>1&&We[we].empty()&&I.unit=="char"&&!I.extend?(Ki(ee,Vr(e,We.slice(0,we).concat(We.slice(we+1)),0),{scroll:!1,origin:"*mouse"}),De=ee.sel):Uo(ee,we,ce,Se):(we=0,Ki(ee,new xi([ce],0),Se),De=ee.sel);var Ft=L;function kn(xr){if(Ht(Ft,xr)==0)return;if(Ft=xr,I.unit=="rectangle"){for(var Ur=[],Gr=e.options.tabSize,Hr=G(q(ee,L.line).text,L.ch,Gr),Zr=G(q(ee,xr.line).text,xr.ch,Gr),bi=Math.min(Hr,Zr),Gi=Math.max(Hr,Zr),Ii=Math.min(L.line,xr.line),wo=Math.min(e.lastLine(),Math.max(L.line,xr.line));Ii<=wo;Ii++){var mo=q(ee,Ii).text,ji=et(mo,bi,Gr);bi==Gi?Ur.push(new Jr(at(Ii,ji),at(Ii,ji))):mo.length>ji&&Ur.push(new Jr(at(Ii,ji),at(Ii,et(mo,Gi,Gr))))}Ur.length||Ur.push(new Jr(L,L)),Ki(ee,Vr(e,De.ranges.slice(0,we).concat(Ur),we),{origin:"*mouse",scroll:!1}),e.scrollIntoView(xr)}else{var vo=ce,qi=Vs(e,xr,I.unit),Hi=vo.anchor,Bi;Ht(qi.anchor,Hi)>0?(Bi=qi.head,Hi=fa(vo.from(),qi.anchor)):(Bi=qi.anchor,Hi=Fa(vo.to(),qi.head));var Li=De.ranges.slice(0);Li[we]=ql(e,new Jr(z(ee,Hi),Bi)),Ki(ee,Vr(e,Li,we),Se)}}var xn=j.wrapper.getBoundingClientRect(),Ia=0;function Ga(xr){var Ur=++Ia,Gr=ei(e,xr,!0,I.unit=="rectangle");if(!Gr)return;if(Ht(Gr,Ft)!=0){e.curOp.focus=U(),kn(Gr);var Hr=ao(j,ee);(Gr.line>=Hr.to||Gr.linexn.bottom?20:0;Zr&&setTimeout(si(e,function(){if(Ia!=Ur)return;j.scroller.scrollTop+=Zr,Ga(xr)}),50)}}function lr(xr){e.state.selectingText=!1,Ia=Infinity,xr&&(Te(xr),j.input.focus()),hn(j.wrapper.ownerDocument,"mousemove",yr),hn(j.wrapper.ownerDocument,"mouseup",Dr),ee.history.lastSelOrigin=null}var yr=si(e,function(xr){xr.buttons===0||!Lt(xr)?lr(xr):Ga(xr)}),Dr=si(e,lr);e.state.selectingText=Dr,mt(j.wrapper.ownerDocument,"mousemove",yr),mt(j.wrapper.ownerDocument,"mouseup",Dr)}function ql(e,r){var L=r.anchor,I=r.head,j=q(e.doc,L.line);if(Ht(L,I)==0&&L.sticky==I.sticky)return r;var ee=ia(j);if(!ee)return r;var ce=Zt(ee,L.ch,L.sticky),we=ee[ce];if(we.from!=L.ch&&we.to!=L.ch)return r;var De=ce+(we.from==L.ch==(we.level!=1)?0:1);if(De==0||De==ee.length)return r;var We;if(I.line!=L.line)We=(I.line-L.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var At=Zt(ee,I.ch,I.sticky),Ft=At-ce||(I.ch-L.ch)*(we.level==1?-1:1);At==De-1||At==De?We=Ft<0:We=Ft>0}var kn=ee[De+(We?-1:0)],xn=We==(kn.level==1),Ia=xn?kn.from:kn.to,Ga=xn?"after":"before";return L.ch==Ia&&L.sticky==Ga?r:new Jr(new at(L.line,Ia,Ga),I)}function Sl(e,r,L,I){var j,ee;if(r.touches)j=r.touches[0].clientX,ee=r.touches[0].clientY;else try{j=r.clientX,ee=r.clientY}catch(kn){return!1}if(j>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;I&&Te(r);var ce=e.display,we=ce.lineDiv.getBoundingClientRect();if(ee>we.bottom||!Je(e,L))return Ie(r);ee-=we.top-ce.viewOffset;for(var De=0;De=j){var At=ve(e.doc,ee),Ft=e.display.gutterSpecs[De];return Ot(e,L,e,At,Ft.className,r),Ie(r)}}}function Ys(e,r){return Sl(e,r,"gutterClick",!0)}function Al(e,r){if(Cn(e.display,r)||Ol(e,r))return;if(Xt(e,r,"contextmenu"))return;v||e.display.input.onContextMenu(r)}function Ol(e,r){return Je(e,"gutterContextMenu")?Sl(e,r,"gutterContextMenu",!1):!1}function Rl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ar(e)}var $o={toString:function(){return"CodeMirror.Init"}},Ss={},cs={};function $l(e){var r=e.optionHandlers;function L(I,j,ee,ce){e.defaults[I]=j,ee&&(r[I]=ce?function(we,De,We){We!=$o&&ee(we,De,We)}:ee)}e.defineOption=L,e.Init=$o,L("value","",function(I,j){return I.setValue(j)},!0),L("mode",null,function(I,j){I.doc.modeOption=j,Ti(I)},!0),L("indentUnit",2,Ti,!0),L("indentWithTabs",!1),L("smartIndent",!0),L("tabSize",4,function(I){Zi(I),ar(I),za(I)},!0),L("lineSeparator",null,function(I,j){if(I.doc.lineSep=j,!j)return;var ee=[],ce=I.doc.first;I.doc.iter(function(De){for(var We=0;;){var At=De.text.indexOf(j,We);if(At==-1)break;We=At+j.length,ee.push(at(ce,At))}ce++});for(var we=ee.length-1;we>=0;we--)Yo(I.doc,j,ee[we],at(ee[we].line,ee[we].ch+j.length))}),L("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(I,j,ee){I.state.specialChars=new RegExp(j.source+(j.test(" ")?"":"| "),"g"),ee!=$o&&I.refresh()}),L("specialCharPlaceholder",ln,function(I){return I.refresh()},!0),L("electricChars",!0),L("inputStyle",t?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),L("spellcheck",!1,function(I,j){return I.getInputField().spellcheck=j},!0),L("autocorrect",!1,function(I,j){return I.getInputField().autocorrect=j},!0),L("autocapitalize",!1,function(I,j){return I.getInputField().autocapitalize=j},!0),L("rtlMoveVisually",!w),L("wholeLineUpdateBefore",!0),L("theme","default",function(I){Rl(I),li(I)},!0),L("keyMap","default",function(I,j,ee){var ce=os(j),we=ee!=$o&&os(ee);we&&we.detach&&we.detach(I,ce),ce.attach&&ce.attach(I,we||null)}),L("extraKeys",null),L("configureMouse",null),L("lineWrapping",!1,tu,!0),L("gutters",[],function(I,j){I.display.gutterSpecs=Pa(j,I.options.lineNumbers),li(I)},!0),L("fixedGutter",!0,function(I,j){I.display.gutters.style.left=j?Xr(I.display)+"px":"0",I.refresh()},!0),L("coverGutterNextToScrollbar",!1,function(I){return Fr(I)},!0),L("scrollbarStyle","native",function(I){Ai(I),Fr(I),I.display.scrollbars.setScrollTop(I.doc.scrollTop),I.display.scrollbars.setScrollLeft(I.doc.scrollLeft)},!0),L("lineNumbers",!1,function(I,j){I.display.gutterSpecs=Pa(I.options.gutters,j),li(I)},!0),L("firstLineNumber",1,li,!0),L("lineNumberFormatter",function(I){return I},li,!0),L("showCursorWhenSelecting",!1,ka,!0),L("resetSelectionOnContextMenu",!0),L("lineWiseCopyCut",!0),L("pasteLinesPerSelection",!0),L("selectionsMayTouch",!1),L("readOnly",!1,function(I,j){j=="nocursor"&&(pi(I),I.display.input.blur()),I.display.input.readOnlyChanged(j)}),L("screenReaderLabel",null,function(I,j){j=j===""?null:j,I.display.input.screenReaderLabelChanged(j)}),L("disableInput",!1,function(I,j){j||I.display.input.reset()},!0),L("dragDrop",!0,eu),L("allowDropFileTypes",null),L("cursorBlinkRate",530),L("cursorScrollMargin",0),L("cursorHeight",1,ka,!0),L("singleCursorHeightPerLine",!0,ka,!0),L("workTime",100),L("workDelay",100),L("flattenSpans",!0,Zi,!0),L("addModeClass",!1,Zi,!0),L("pollInterval",100),L("undoDepth",200,function(I,j){return I.doc.history.undoDepth=j}),L("historyEventDelay",1250),L("viewportMargin",10,function(I){return I.refresh()},!0),L("maxHighlightLength",1e4,Zi,!0),L("moveInputWithCursor",!0,function(I,j){j||I.display.input.resetPosition()}),L("tabindex",null,function(I,j){return I.display.input.getField().tabIndex=j||""}),L("autofocus",null),L("direction","ltr",function(I,j){return I.doc.setDirection(j)},!0),L("phrases",null)}function eu(e,r,L){var I=L&&L!=$o;if(!r!=!I){var j=e.display.dragFunctions,ee=r?mt:hn;ee(e.display.scroller,"dragstart",j.start),ee(e.display.scroller,"dragenter",j.enter),ee(e.display.scroller,"dragover",j.over),ee(e.display.scroller,"dragleave",j.leave),ee(e.display.scroller,"drop",j.drop)}}function tu(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),Vn(e)),$r(e),za(e),ar(e),setTimeout(function(){return Fr(e)},100)}function Ci(e,r){var L=this;if(!(this instanceof Ci))return new Ci(e,r);this.options=r=r?A(r):{},A(Ss,r,!1);var I=r.value;typeof I=="string"?I=new to(I,r.mode,null,r.lineSeparator,r.direction):r.mode&&(I.modeOption=r.mode),this.doc=I;var j=new Ci.inputStyles[r.inputStyle](this),ee=this.display=new wi(e,I,j,r);ee.wrapper.CodeMirror=this,Rl(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ai(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new K,keySeq:null,specialChars:null},r.autofocus&&!t&&ee.input.focus(),M&&p<11&&setTimeout(function(){return L.display.input.reset(!0)},20),Tl(this),iu(),Qi(this),this.curOp.forceUpdate=!0,Rs(this,I),r.autofocus&&!t||this.hasFocus()?setTimeout(function(){L.hasFocus()&&!L.state.focused&&hi(L)},20):pi(this);for(var ce in cs)cs.hasOwnProperty(ce)&&cs[ce](this,r[ce],$o);Da(this),r.finishInit&&r.finishInit(this);for(var we=0;we20*20}mt(r.scroller,"touchstart",function(De){if(!Xt(e,De)&&!ee(De)&&!Ys(e,De)){r.input.ensurePolled(),clearTimeout(L);var We=+new Date;r.activeTouch={start:We,moved:!1,prev:We-I.end<=300?I:null},De.touches.length==1&&(r.activeTouch.left=De.touches[0].pageX,r.activeTouch.top=De.touches[0].pageY)}}),mt(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),mt(r.scroller,"touchend",function(De){var We=r.activeTouch;if(We&&!Cn(r,De)&&We.left!=null&&!We.moved&&new Date-We.start<300){var At=e.coordsChar(r.activeTouch,"page"),Ft;!We.prev||ce(We,We.prev)?Ft=new Jr(At,At):!We.prev.prev||ce(We,We.prev.prev)?Ft=e.findWordAt(At):Ft=new Jr(at(At.line,0),z(e.doc,at(At.line+1,0))),e.setSelection(Ft.anchor,Ft.head),e.focus(),Te(De)}j()}),mt(r.scroller,"touchcancel",j),mt(r.scroller,"scroll",function(){r.scroller.clientHeight&&(zi(e,r.scroller.scrollTop),gi(e,r.scroller.scrollLeft,!0),Ot(e,"scroll",e))}),mt(r.scroller,"mousewheel",function(De){return Fi(e,De)}),mt(r.scroller,"DOMMouseScroll",function(De){return Fi(e,De)}),mt(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(De){Xt(e,De)||be(De)},over:function(De){Xt(e,De)||(jl(e,De),be(De))},start:function(De){return ml(e,De)},drop:si(e,Fl),leave:function(De){Xt(e,De)||Ms(e)}};var we=r.input.getField();mt(we,"keyup",function(De){return xl.call(e,De)}),mt(we,"keydown",si(e,yl)),mt(we,"keypress",si(e,Cl)),mt(we,"focus",function(De){return hi(e,De)}),mt(we,"blur",function(De){return pi(e,De)})}var V=[];Ci.defineInitHook=function(e){return V.push(e)};function X(e,r,L,I){var j=e.doc,ee;L==null&&(L="add"),L=="smart"&&(j.mode.indent?ee=Wn(e,r).state:L="prev");var ce=e.options.tabSize,we=q(j,r),De=G(we.text,null,ce);we.stateAfter&&(we.stateAfter=null);var We=we.text.match(/^\s*/)[0],At;if(!I&&!/\S/.test(we.text))At=0,L="not";else if(L=="smart"&&(At=j.mode.indent(ee,we.text.slice(We.length),we.text),At==le||At>150)){if(!I)return;L="prev"}L=="prev"?r>j.first?At=G(q(j,r-1).text,null,ce):At=0:L=="add"?At=De+e.options.indentUnit:L=="subtract"?At=De-e.options.indentUnit:typeof L=="number"&&(At=De+L),At=Math.max(0,At);var Ft="",kn=0;if(e.options.indentWithTabs)for(var xn=Math.floor(At/ce);xn;--xn)kn+=ce,Ft+=" ";if(knce,De=Bt(r),We=null;if(we&&I.ranges.length>1)if(ne&&ne.text.join(` `)==r){if(I.ranges.length%ne.text.length==0){We=[];for(var At=0;At=0;kn--){var xn=I.ranges[kn],Ia=xn.from(),Ga=xn.to();xn.empty()&&(L&&L>0?Ia=at(Ia.line,Ia.ch-L):e.state.overwrite&&!we?Ga=at(Ga.line,Math.min(q(ee,Ga.line).text.length,Ga.ch+fe(De).length)):we&&ne&&ne.lineWise&&ne.text.join(` `)==De.join(` `)&&(Ia=Ga=at(Ia.line,0)));var lr={from:Ia,to:Ga,text:We?We[kn%We.length]:De,origin:j||(we?"paste":e.state.cutIncoming>ce?"cut":"+input")};Go(e.doc,lr),pa(e,"inputRead",e,lr)}r&&!we&&tt(e,r),io(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ft),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ne(e,r){var L=e.clipboardData&&e.clipboardData.getData("Text");if(L)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Di(r,function(){return ke(r,L,0,null,"paste")}),!0}function tt(e,r){if(!e.options.electricChars||!e.options.smartIndent)return;for(var L=e.doc.sel,I=L.ranges.length-1;I>=0;I--){var j=L.ranges[I];if(j.head.ch>100||I&&L.ranges[I-1].head.line==j.head.line)continue;var ee=e.getModeAt(j.head),ce=!1;if(ee.electricChars){for(var we=0;we-1){ce=X(e,j.head.line,"smart");break}}else ee.electricInput&&(ee.electricInput.test(q(e.doc,j.head.line).text.slice(0,j.head.ch))&&(ce=X(e,j.head.line,"smart")));ce&&pa(e,"electricInput",e,j.head.line)}}function nt(e){for(var r=[],L=[],I=0;Iee&&(X(this,we.head.line,I,!0),ee=we.head.line,ce==this.doc.sel.primIndex&&io(this));else{var De=we.from(),We=we.to(),At=Math.max(ee,De.line);ee=Math.min(this.lastLine(),We.line-(We.ch?0:1))+1;for(var Ft=At;Ft0&&Uo(this.doc,ce,new Jr(De,kn[ce].to()),de)}}}),getTokenAt:function(I,j){return fr(this,I,j)},getLineTokens:function(I,j){return fr(this,at(I),j,!0)},getTokenTypeAt:function(I){I=z(this.doc,I);var j=vn(this,q(this.doc,I.line)),ee=0,ce=(j.length-1)/2,we=I.ch,De;if(we==0)De=j[2];else for(;;){var We=ee+ce>>1;if((We?j[We*2-1]:0)>=we)ce=We;else if(j[We*2+1]De&&(I=De,ce=!0),we=q(this.doc,I)}else we=I;return va(this,we,{top:0,left:0},j||"page",ee||ce).top+(ce?this.doc.height-Pn(we):0)},defaultTextHeight:function(){return Yn(this.display)},defaultCharWidth:function(){return vr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(I,j,ee,ce,we){var De=this.display;I=Ba(this,z(this.doc,I));var We=I.bottom,At=I.left;if(j.style.position="absolute",j.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(j),De.sizer.appendChild(j),ce=="over")We=I.top;else if(ce=="above"||ce=="near"){var Ft=Math.max(De.wrapper.clientHeight,this.doc.height),kn=Math.max(De.sizer.clientWidth,De.lineSpace.clientWidth);(ce=="above"||I.bottom+j.offsetHeight>Ft)&&I.top>j.offsetHeight?We=I.top-j.offsetHeight:I.bottom+j.offsetHeight<=Ft&&(We=I.bottom),At+j.offsetWidth>kn&&(At=kn-j.offsetWidth)}j.style.top=We+"px",j.style.left=j.style.right="",we=="right"?(At=De.sizer.clientWidth-j.offsetWidth,j.style.right="0px"):(we=="left"?At=0:we=="middle"&&(At=(De.sizer.clientWidth-j.offsetWidth)/2),j.style.left=At+"px"),ee&&$i(this,{left:At,top:We,right:At+j.offsetWidth,bottom:We+j.offsetHeight})},triggerOnKeyDown:Oi(yl),triggerOnKeyPress:Oi(Cl),triggerOnKeyUp:xl,triggerOnMouseDown:Oi(Gs),execCommand:function(I){if(qo.hasOwnProperty(I))return qo[I].call(null,this)},triggerElectric:Oi(function(I){tt(this,I)}),findPosH:function(I,j,ee,ce){var we=1;j<0&&(we=-1,j=-j);for(var De=z(this.doc,I),We=0;We0&&At(ee.charAt(ce-1));)--ce;for(;we.5||this.options.lineWrapping)&&$r(this),Ot(this,"refresh",this)}),swapDoc:Oi(function(I){var j=this.doc;return j.cm=null,this.state.selectingText&&this.state.selectingText(),Rs(this,I),ar(this),this.display.input.reset(),Yi(this,I.scrollLeft,I.scrollTop),this.curOp.forceScroll=!0,pa(this,"swapDoc",this,j),j}),phrase:function(I){var j=this.options.phrases;return j&&Object.prototype.hasOwnProperty.call(j,I)?j[I]:I},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},rt(e),e.registerHelper=function(I,j,ee){L.hasOwnProperty(I)||(L[I]=e[I]={_global:[]}),L[I][j]=ee},e.registerGlobalHelper=function(I,j,ee,ce){e.registerHelper(I,j,ce),L[I]._global.push({pred:ee,val:ce})}}function Ut(e,r,L,I,j){var ee=r,ce=L,we=q(e,r.line),De=j&&e.direction=="rtl"?-L:L;function We(){var Dr=r.line+De;return Dr=e.first+e.size?!1:(r=new at(Dr,r.ch,r.sticky),we=q(e,Dr))}function At(Dr){var xr;if(I=="codepoint"){var Ur=we.text.charCodeAt(r.ch+(I>0?0:-1));isNaN(Ur)?xr=null:xr=new at(r.line,Math.max(0,Math.min(we.text.length,r.ch+L*(Ur>=55296&&Ur<56320?2:1))),-L)}else j?xr=Bs(e.cm,we,r,L):xr=Fs(we,r,L);if(xr==null)if(!Dr&&We())r=js(j,e.cm,we,r.line,De);else return!1;else r=xr;return!0}if(I=="char"||I=="codepoint")At();else if(I=="column")At(!0);else if(I=="word"||I=="group")for(var Ft=null,kn=I=="group",xn=e.cm&&e.cm.getHelper(r,"wordChars"),Ia=!0;!(L<0&&!At(!Ia));Ia=!1){var Ga=we.text.charAt(r.ch)||` `,lr=Qe(Ga,xn)?"w":kn&&Ga==` -`?"n":!kn||/\s/.test(Ga)?null:"p";if(kn&&!Ia&&!lr&&(lr="s"),Ft&&Ft!=lr){L<0&&(L=1,At(),r.sticky="after");break}if(lr&&(Ft=lr),L>0&&!At(!Ia))break}var yr=bs(e,r,ee,ce,!0);return Fe(ee,yr)&&(yr.hitSide=!0),yr}function Nt(e,r,L,I){var j=e.doc,ee=r.left,ce;if(I=="page"){var we=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),De=Math.max(we-.5*Yn(e.display),3);ce=(L>0?r.bottom:r.top)+L*De}else I=="line"&&(ce=L>0?r.bottom+3:r.top-3);for(var We;!(We=Er(e,ee,ce),!We.outside);){if(L<0?ce<=0:ce>=j.height){We.hitSide=!0;break}ce+=L*5}return We}var Qt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new K,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qt.prototype.init=function(e){var r=this,L=this,I=L.cm,j=L.div=e.lineDiv;It(j,I.options.spellcheck,I.options.autocorrect,I.options.autocapitalize);function ee(we){for(var De=we.target;De;De=De.parentNode){if(De==j)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(De.className))break}return!1}pt(j,"paste",function(we){if(!ee(we)||Xt(I,we)||Ne(we,I))return;p<=11&&setTimeout(si(I,function(){return r.updateFromDOM()}),20)}),pt(j,"compositionstart",function(we){r.composing={data:we.data,done:!1}}),pt(j,"compositionupdate",function(we){r.composing||(r.composing={data:we.data,done:!1})}),pt(j,"compositionend",function(we){r.composing&&(we.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),pt(j,"touchstart",function(){return L.forceCompositionEnd()}),pt(j,"input",function(){r.composing||r.readFromDOMSoon()});function ce(we){if(!ee(we)||Xt(I,we))return;if(I.somethingSelected())ge({lineWise:!1,text:I.getSelections()}),we.type=="cut"&&I.replaceSelection("",null,"cut");else if(I.options.lineWiseCopyCut){var De=nt(I);ge({lineWise:!0,text:De.text}),we.type=="cut"&&I.operation(function(){I.setSelections(De.ranges,0,de),I.replaceSelection("",null,"cut")})}else return;if(we.clipboardData){we.clipboardData.clearData();var We=ne.text.join(` +`?"n":!kn||/\s/.test(Ga)?null:"p";if(kn&&!Ia&&!lr&&(lr="s"),Ft&&Ft!=lr){L<0&&(L=1,At(),r.sticky="after");break}if(lr&&(Ft=lr),L>0&&!At(!Ia))break}var yr=bs(e,r,ee,ce,!0);return Fe(ee,yr)&&(yr.hitSide=!0),yr}function Nt(e,r,L,I){var j=e.doc,ee=r.left,ce;if(I=="page"){var we=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),De=Math.max(we-.5*Yn(e.display),3);ce=(L>0?r.bottom:r.top)+L*De}else I=="line"&&(ce=L>0?r.bottom+3:r.top-3);for(var We;!(We=Er(e,ee,ce),!We.outside);){if(L<0?ce<=0:ce>=j.height){We.hitSide=!0;break}ce+=L*5}return We}var Qt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new K,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qt.prototype.init=function(e){var r=this,L=this,I=L.cm,j=L.div=e.lineDiv;It(j,I.options.spellcheck,I.options.autocorrect,I.options.autocapitalize);function ee(we){for(var De=we.target;De;De=De.parentNode){if(De==j)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(De.className))break}return!1}mt(j,"paste",function(we){if(!ee(we)||Xt(I,we)||Ne(we,I))return;p<=11&&setTimeout(si(I,function(){return r.updateFromDOM()}),20)}),mt(j,"compositionstart",function(we){r.composing={data:we.data,done:!1}}),mt(j,"compositionupdate",function(we){r.composing||(r.composing={data:we.data,done:!1})}),mt(j,"compositionend",function(we){r.composing&&(we.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),mt(j,"touchstart",function(){return L.forceCompositionEnd()}),mt(j,"input",function(){r.composing||r.readFromDOMSoon()});function ce(we){if(!ee(we)||Xt(I,we))return;if(I.somethingSelected())ge({lineWise:!1,text:I.getSelections()}),we.type=="cut"&&I.replaceSelection("",null,"cut");else if(I.options.lineWiseCopyCut){var De=nt(I);ge({lineWise:!0,text:De.text}),we.type=="cut"&&I.operation(function(){I.setSelections(De.ranges,0,de),I.replaceSelection("",null,"cut")})}else return;if(we.clipboardData){we.clipboardData.clearData();var We=ne.text.join(` `);if(we.clipboardData.setData("Text",We),we.clipboardData.getData("Text")==We){we.preventDefault();return}}var At=en(),Ft=At.firstChild;I.display.lineSpace.insertBefore(At,I.display.lineSpace.firstChild),Ft.value=ne.text.join(` -`);var kn=document.activeElement;H(Ft),setTimeout(function(){I.display.lineSpace.removeChild(At),kn.focus(),kn==j&&L.showPrimarySelection()},50)}pt(j,"copy",ce),pt(j,"cut",ce)},Qt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Qt.prototype.prepareSelection=function(){var e=kr(this.cm,!1);return e.focus=document.activeElement==this.div,e},Qt.prototype.showSelection=function(e,r){if(!e||!this.cm.display.view.length)return;(e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Qt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qt.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,L=r.doc.sel.primary(),I=L.from(),j=L.to();if(r.display.viewTo==r.display.viewFrom||I.line>=r.display.viewTo||j.line=r.display.viewFrom&&ca(r,I)||{node:we[0].measure.map[2],offset:0},We=j.linee.firstLine()&&(I=at(I.line-1,q(e.doc,I.line-1).length)),j.ch==q(e.doc,j.line).text.length&&j.liner.viewTo-1)return!1;var ee,ce,we;I.line==r.viewFrom||(ee=Or(e,I.line))==0?(ce=Re(r.view[0].line),we=r.view[0].node):(ce=Re(r.view[ee].line),we=r.view[ee-1].node.nextSibling);var De=Or(e,j.line),We,At;if(De==r.view.length-1?(We=r.viewTo-1,At=r.lineDiv.lastChild):(We=Re(r.view[De+1].line)-1,At=r.view[De+1].node.previousSibling),!we)return!1;for(var Ft=e.doc.splitLines(Tr(e,we,At,ce,We)),kn=Z(e.doc,at(ce,0),at(We,q(e.doc,We).text.length));Ft.length>1&&kn.length>1;)if(fe(Ft)==fe(kn))Ft.pop(),kn.pop(),We--;else if(Ft[0]==kn[0])Ft.shift(),kn.shift(),ce++;else break;for(var xn=0,Ia=0,Ga=Ft[0],lr=kn[0],yr=Math.min(Ga.length,lr.length);xnI.ch&&Dr.charCodeAt(Dr.length-Ia-1)==xr.charCodeAt(xr.length-Ia-1);)xn--,Ia++;Ft[Ft.length-1]=Dr.slice(0,Dr.length-Ia).replace(/^\u200b+/,""),Ft[0]=Ft[0].slice(xn).replace(/\u200b+$/,"");var Gr=at(ce,xn),Hr=at(We,kn.length?fe(kn).length-Ia:0);if(Ft.length>1||Ft[0]||Ht(Gr,Hr))return Yo(e.doc,Ft,Gr,Hr,"+input"),!0},Qt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qt.prototype.reset=function(){this.forceCompositionEnd()},Qt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Qt.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Qt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Di(this.cm,function(){return za(e.cm)})},Qt.prototype.setUneditable=function(e){e.contentEditable="false"},Qt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||si(this.cm,ke)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Qt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Qt.prototype.onContextMenu=function(){},Qt.prototype.resetPosition=function(){},Qt.prototype.needsContentAttribute=!0;function ca(e,r){var L=St(e,r.line);if(!L||L.hidden)return null;var I=q(e.doc,r.line),j=Ce(L,I,r.line),ee=ia(I,e.doc.direction),ce="left";if(ee){var we=Zt(ee,r.ch);ce=we%2?"right":"left"}var De=gn(j.map,r.ch,ce);return De.offset=De.collapse=="right"?De.end:De.start,De}function mr(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function br(e,r){return r&&(e.bad=!0),e}function Tr(e,r,L,I,j){var ee="",ce=!1,we=e.doc.lineSeparator(),De=!1;function We(xn){return function(Ia){return Ia.id==xn}}function At(){ce&&(ee+=we,De&&(ee+=we),ce=De=!1)}function Ft(xn){xn&&(At(),ee+=xn)}function kn(xn){if(xn.nodeType==1){var Ia=xn.getAttribute("cm-text");if(Ia){Ft(Ia);return}var Ga=xn.getAttribute("cm-marker"),lr;if(Ga){var yr=e.findMarks(at(I,0),at(j+1,0),We(+Ga));yr.length&&(lr=yr[0].find(0))&&Ft(Z(e.doc,lr.from,lr.to).join(we));return}if(xn.getAttribute("contenteditable")=="false")return;var Dr=/^(pre|div|p|li|table|br)$/i.test(xn.nodeName);if(!/^br$/i.test(xn.nodeName)&&xn.textContent.length==0)return;Dr&&At();for(var xr=0;xr=9&&r.hasSelection&&(r.hasSelection=null),L.poll()}),pt(j,"paste",function(ce){if(Xt(I,ce)||Ne(ce,I))return;I.state.pasteIncoming=+new Date,L.fastPoll()});function ee(ce){if(Xt(I,ce))return;if(I.somethingSelected())ge({lineWise:!1,text:I.getSelections()});else if(I.options.lineWiseCopyCut){var we=nt(I);ge({lineWise:!0,text:we.text}),ce.type=="cut"?I.setSelections(we.ranges,null,de):(L.prevInput="",j.value=we.text.join(` -`),H(j))}else return;ce.type=="cut"&&(I.state.cutIncoming=+new Date)}pt(j,"cut",ee),pt(j,"copy",ee),pt(e.scroller,"paste",function(ce){if(Cn(e,ce)||Xt(I,ce))return;if(!j.dispatchEvent){I.state.pasteIncoming=+new Date,L.focus();return}var we=new Event("paste");we.clipboardData=ce.clipboardData,j.dispatchEvent(we)}),pt(e.lineSpace,"selectstart",function(ce){Cn(e,ce)||Te(ce)}),pt(j,"compositionstart",function(){var ce=I.getCursor("from");L.composing&&L.composing.range.clear(),L.composing={start:ce,range:I.markText(ce,I.getCursor("to"),{className:"CodeMirror-composing"})}}),pt(j,"compositionend",function(){L.composing&&(L.poll(),L.composing.range.clear(),L.composing=null)})},Ir.prototype.createField=function(e){this.wrapper=en(),this.textarea=this.wrapper.firstChild},Ir.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ir.prototype.prepareSelection=function(){var e=this.cm,r=e.display,L=e.doc,I=kr(e);if(e.options.moveInputWithCursor){var j=Ba(e,L.sel.primary().head,"div"),ee=r.wrapper.getBoundingClientRect(),ce=r.lineDiv.getBoundingClientRect();I.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,j.top+ce.top-ee.top)),I.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,j.left+ce.left-ee.left))}return I},Ir.prototype.showSelection=function(e){var r=this.cm,L=r.display;g(L.cursorDiv,e.cursors),g(L.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ir.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var r=this.cm;if(r.somethingSelected()){this.prevInput="";var L=r.getSelection();this.textarea.value=L,r.state.focused&&H(this.textarea),M&&p>=9&&(this.hasSelection=L)}else e||(this.prevInput=this.textarea.value="",M&&p>=9&&(this.hasSelection=null))},Ir.prototype.getField=function(){return this.textarea},Ir.prototype.supportsTouch=function(){return!1},Ir.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!t||U()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ir.prototype.blur=function(){this.textarea.blur()},Ir.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ir.prototype.receivedFocus=function(){this.slowPoll()},Ir.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ir.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function L(){var I=r.poll();!I&&!e?(e=!0,r.polling.set(60,L)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,L)},Ir.prototype.poll=function(){var e=this,r=this.cm,L=this.textarea,I=this.prevInput;if(this.contextMenuPending||!r.state.focused||mn(L)&&!I&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var j=L.value;if(j==I&&!r.somethingSelected())return!1;if(M&&p>=9&&this.hasSelection===j||l&&/[\uf700-\uf7ff]/.test(j))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var ee=j.charCodeAt(0);if(ee==8203&&!I&&(I="\u200B"),ee==8666)return this.reset(),this.cm.execCommand("undo")}for(var ce=0,we=Math.min(I.length,j.length);ce1e3||j.indexOf(` +`);var kn=document.activeElement;H(Ft),setTimeout(function(){I.display.lineSpace.removeChild(At),kn.focus(),kn==j&&L.showPrimarySelection()},50)}mt(j,"copy",ce),mt(j,"cut",ce)},Qt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Qt.prototype.prepareSelection=function(){var e=kr(this.cm,!1);return e.focus=document.activeElement==this.div,e},Qt.prototype.showSelection=function(e,r){if(!e||!this.cm.display.view.length)return;(e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Qt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qt.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,L=r.doc.sel.primary(),I=L.from(),j=L.to();if(r.display.viewTo==r.display.viewFrom||I.line>=r.display.viewTo||j.line=r.display.viewFrom&&ca(r,I)||{node:we[0].measure.map[2],offset:0},We=j.linee.firstLine()&&(I=at(I.line-1,q(e.doc,I.line-1).length)),j.ch==q(e.doc,j.line).text.length&&j.liner.viewTo-1)return!1;var ee,ce,we;I.line==r.viewFrom||(ee=Or(e,I.line))==0?(ce=Re(r.view[0].line),we=r.view[0].node):(ce=Re(r.view[ee].line),we=r.view[ee-1].node.nextSibling);var De=Or(e,j.line),We,At;if(De==r.view.length-1?(We=r.viewTo-1,At=r.lineDiv.lastChild):(We=Re(r.view[De+1].line)-1,At=r.view[De+1].node.previousSibling),!we)return!1;for(var Ft=e.doc.splitLines(Tr(e,we,At,ce,We)),kn=Z(e.doc,at(ce,0),at(We,q(e.doc,We).text.length));Ft.length>1&&kn.length>1;)if(fe(Ft)==fe(kn))Ft.pop(),kn.pop(),We--;else if(Ft[0]==kn[0])Ft.shift(),kn.shift(),ce++;else break;for(var xn=0,Ia=0,Ga=Ft[0],lr=kn[0],yr=Math.min(Ga.length,lr.length);xnI.ch&&Dr.charCodeAt(Dr.length-Ia-1)==xr.charCodeAt(xr.length-Ia-1);)xn--,Ia++;Ft[Ft.length-1]=Dr.slice(0,Dr.length-Ia).replace(/^\u200b+/,""),Ft[0]=Ft[0].slice(xn).replace(/\u200b+$/,"");var Gr=at(ce,xn),Hr=at(We,kn.length?fe(kn).length-Ia:0);if(Ft.length>1||Ft[0]||Ht(Gr,Hr))return Yo(e.doc,Ft,Gr,Hr,"+input"),!0},Qt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qt.prototype.reset=function(){this.forceCompositionEnd()},Qt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Qt.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Qt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Di(this.cm,function(){return za(e.cm)})},Qt.prototype.setUneditable=function(e){e.contentEditable="false"},Qt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||si(this.cm,ke)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Qt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Qt.prototype.onContextMenu=function(){},Qt.prototype.resetPosition=function(){},Qt.prototype.needsContentAttribute=!0;function ca(e,r){var L=St(e,r.line);if(!L||L.hidden)return null;var I=q(e.doc,r.line),j=Ce(L,I,r.line),ee=ia(I,e.doc.direction),ce="left";if(ee){var we=Zt(ee,r.ch);ce=we%2?"right":"left"}var De=gn(j.map,r.ch,ce);return De.offset=De.collapse=="right"?De.end:De.start,De}function mr(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function br(e,r){return r&&(e.bad=!0),e}function Tr(e,r,L,I,j){var ee="",ce=!1,we=e.doc.lineSeparator(),De=!1;function We(xn){return function(Ia){return Ia.id==xn}}function At(){ce&&(ee+=we,De&&(ee+=we),ce=De=!1)}function Ft(xn){xn&&(At(),ee+=xn)}function kn(xn){if(xn.nodeType==1){var Ia=xn.getAttribute("cm-text");if(Ia){Ft(Ia);return}var Ga=xn.getAttribute("cm-marker"),lr;if(Ga){var yr=e.findMarks(at(I,0),at(j+1,0),We(+Ga));yr.length&&(lr=yr[0].find(0))&&Ft(Z(e.doc,lr.from,lr.to).join(we));return}if(xn.getAttribute("contenteditable")=="false")return;var Dr=/^(pre|div|p|li|table|br)$/i.test(xn.nodeName);if(!/^br$/i.test(xn.nodeName)&&xn.textContent.length==0)return;Dr&&At();for(var xr=0;xr=9&&r.hasSelection&&(r.hasSelection=null),L.poll()}),mt(j,"paste",function(ce){if(Xt(I,ce)||Ne(ce,I))return;I.state.pasteIncoming=+new Date,L.fastPoll()});function ee(ce){if(Xt(I,ce))return;if(I.somethingSelected())ge({lineWise:!1,text:I.getSelections()});else if(I.options.lineWiseCopyCut){var we=nt(I);ge({lineWise:!0,text:we.text}),ce.type=="cut"?I.setSelections(we.ranges,null,de):(L.prevInput="",j.value=we.text.join(` +`),H(j))}else return;ce.type=="cut"&&(I.state.cutIncoming=+new Date)}mt(j,"cut",ee),mt(j,"copy",ee),mt(e.scroller,"paste",function(ce){if(Cn(e,ce)||Xt(I,ce))return;if(!j.dispatchEvent){I.state.pasteIncoming=+new Date,L.focus();return}var we=new Event("paste");we.clipboardData=ce.clipboardData,j.dispatchEvent(we)}),mt(e.lineSpace,"selectstart",function(ce){Cn(e,ce)||Te(ce)}),mt(j,"compositionstart",function(){var ce=I.getCursor("from");L.composing&&L.composing.range.clear(),L.composing={start:ce,range:I.markText(ce,I.getCursor("to"),{className:"CodeMirror-composing"})}}),mt(j,"compositionend",function(){L.composing&&(L.poll(),L.composing.range.clear(),L.composing=null)})},Ir.prototype.createField=function(e){this.wrapper=en(),this.textarea=this.wrapper.firstChild},Ir.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ir.prototype.prepareSelection=function(){var e=this.cm,r=e.display,L=e.doc,I=kr(e);if(e.options.moveInputWithCursor){var j=Ba(e,L.sel.primary().head,"div"),ee=r.wrapper.getBoundingClientRect(),ce=r.lineDiv.getBoundingClientRect();I.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,j.top+ce.top-ee.top)),I.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,j.left+ce.left-ee.left))}return I},Ir.prototype.showSelection=function(e){var r=this.cm,L=r.display;g(L.cursorDiv,e.cursors),g(L.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ir.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var r=this.cm;if(r.somethingSelected()){this.prevInput="";var L=r.getSelection();this.textarea.value=L,r.state.focused&&H(this.textarea),M&&p>=9&&(this.hasSelection=L)}else e||(this.prevInput=this.textarea.value="",M&&p>=9&&(this.hasSelection=null))},Ir.prototype.getField=function(){return this.textarea},Ir.prototype.supportsTouch=function(){return!1},Ir.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!t||U()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ir.prototype.blur=function(){this.textarea.blur()},Ir.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ir.prototype.receivedFocus=function(){this.slowPoll()},Ir.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ir.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function L(){var I=r.poll();!I&&!e?(e=!0,r.polling.set(60,L)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,L)},Ir.prototype.poll=function(){var e=this,r=this.cm,L=this.textarea,I=this.prevInput;if(this.contextMenuPending||!r.state.focused||mn(L)&&!I&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var j=L.value;if(j==I&&!r.somethingSelected())return!1;if(M&&p>=9&&this.hasSelection===j||l&&/[\uf700-\uf7ff]/.test(j))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var ee=j.charCodeAt(0);if(ee==8203&&!I&&(I="\u200B"),ee==8666)return this.reset(),this.cm.execCommand("undo")}for(var ce=0,we=Math.min(I.length,j.length);ce1e3||j.indexOf(` `)>-1?L.value=e.prevInput="":e.prevInput=j,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ir.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ir.prototype.onKeyPress=function(){M&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ir.prototype.onContextMenu=function(e){var r=this,L=r.cm,I=L.display,j=r.textarea;r.contextMenuPending&&r.contextMenuPending();var ee=ei(L,e),ce=I.scroller.scrollTop;if(!ee||d)return;var we=L.options.resetSelectionOnContextMenu;we&&L.doc.sel.contains(ee)==-1&&si(L,Ki)(L.doc,Cr(ee),de);var De=j.style.cssText,We=r.wrapper.style.cssText,At=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",j.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-At.top-5)+"px; left: "+(e.clientX-At.left-5)+`px; z-index: 1000; background: `+(M?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ft;a&&(Ft=window.scrollY),I.input.focus(),a&&window.scrollTo(null,Ft),I.input.reset(),L.somethingSelected()||(j.value=r.prevInput=" "),r.contextMenuPending=xn,I.selForContextMenu=L.doc.sel,clearTimeout(I.detectingSelectAll);function kn(){if(j.selectionStart!=null){var Ga=L.somethingSelected(),lr="\u200B"+(Ga?j.value:"");j.value="\u21DA",j.value=lr,r.prevInput=Ga?"":"\u200B",j.selectionStart=1,j.selectionEnd=lr.length,I.selForContextMenu=L.doc.sel}}function xn(){if(r.contextMenuPending!=xn)return;if(r.contextMenuPending=!1,r.wrapper.style.cssText=We,j.style.cssText=De,M&&p<9&&I.scrollbars.setScrollTop(I.scroller.scrollTop=ce),j.selectionStart!=null){(!M||M&&p<9)&&kn();var Ga=0,lr=function(){I.selForContextMenu==L.doc.sel&&j.selectionStart==0&&j.selectionEnd>0&&r.prevInput=="\u200B"?si(L,il)(L):Ga++<10?I.detectingSelectAll=setTimeout(lr,500):(I.selForContextMenu=null,I.input.reset())};I.detectingSelectAll=setTimeout(lr,200)}}if(M&&p>=9&&kn(),v){be(e);var Ia=function(){hn(window,"mouseup",Ia),setTimeout(xn,20)};pt(window,"mouseup",Ia)}else setTimeout(xn,50)},Ir.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ir.prototype.setUneditable=function(){},Ir.prototype.needsContentAttribute=!1;function ni(e,r){if(r=r?A(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var L=U();r.autofocus=L==e||e.getAttribute("autofocus")!=null&&L==document.body}function I(){e.value=we.getValue()}var j;if(e.form&&(pt(e.form,"submit",I),!r.leaveSubmitMethodAlone)){var ee=e.form;j=ee.submit;try{var ce=ee.submit=function(){I(),ee.submit=j,ee.submit(),ee.submit=ce}}catch(De){}}r.finishInit=function(De){De.save=I,De.getTextArea=function(){return e},De.toTextArea=function(){De.toTextArea=isNaN,I(),e.parentNode.removeChild(De.getWrapperElement()),e.style.display="",e.form&&(hn(e.form,"submit",I),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=j))}},e.style.display="none";var we=Ci(function(De){return e.parentNode.insertBefore(De,e.nextSibling)},r);return we}function qr(e){e.off=hn,e.on=pt,e.wheelEventPixels=ki,e.Doc=to,e.splitLines=Bt,e.countColumn=G,e.findColumn=et,e.isWordChar=dt,e.Pass=le,e.signal=Ot,e.Line=ua,e.changeEnd=Wr,e.scrollbarModel=ui,e.Pos=at,e.cmpPos=Ht,e.modes=Sn,e.mimeModes=qt,e.resolveMode=Mt,e.getMode=Nn,e.modeExtensions=Bn,e.extendMode=na,e.copyState=Ea,e.startState=ye,e.innerMode=Pe,e.commands=qo,e.keyMap=Mo,e.keyName=xs,e.isModifierKey=is,e.lookupKey=ko,e.normalizeKeyMap=gl,e.StringStream=J,e.SharedTextMarker=Jo,e.TextMarker=Co,e.LineWidget=ns,e.e_preventDefault=Te,e.e_stopPropagation=Me,e.e_stop=be,e.addClass=F,e.contains=E,e.rmClass=_,e.keyNames=jo}$l(Ci),un(Ci);var _i="iter insert remove copy getEditor constructor".split(" ");for(var Ni in to.prototype)to.prototype.hasOwnProperty(Ni)&&$(_i,Ni)<0&&(Ci.prototype[Ni]=function(e){return function(){return e.apply(this.doc,arguments)}}(to.prototype[Ni]));return rt(to),Ci.inputStyles={textarea:Ir,contenteditable:Qt},Ci.defineMode=function(e){!Ci.defaults.mode&&e!="null"&&(Ci.defaults.mode=e),Gn.apply(this,arguments)},Ci.defineMIME=qn,Ci.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ci.defineMIME("text/plain","null"),Ci.defineExtension=function(e,r){Ci.prototype[e]=r},Ci.defineDocExtension=function(e,r){to.prototype[e]=r},Ci.fromTextArea=ni,qr(Ci),Ci.version="5.58.2",Ci})},W6BS:function(Ge,re){Ge.exports="data:image/png;base64,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"},WaYH:function(Ge,re,y){"use strict";var Q=y("rePB"),W=y("Ff2n"),k=y("VTBJ"),B=y("1OyB"),O=y("vuIU"),R=y("JX7q"),M=y("Ji7U"),p=y("LK+K"),a=y("q1tI"),b=y("TSYQ"),u=y.n(b),d=y("sboe"),m=y("OZM5"),o=function(v){var n=v.prefixCls,_=v.level,h=v.isStart,g=v.isEnd;if(!_)return null;for(var x="".concat(n,"-indent-unit"),T=[],S=0;S<_;S+=1){var E;T.push(a.createElement("span",{key:S,className:u()(x,(E={},Object(Q.a)(E,"".concat(x,"-start"),h[S+1]),Object(Q.a)(E,"".concat(x,"-end"),g[S+1]),Object(Q.a)(E,"".concat(x,"-end-first-level"),!S&&g[0]),E))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},T)},c=o,f=y("815F"),i="open",t="close",l="---",s=function(C){Object(M.a)(n,C);var v=Object(p.a)(n);function n(){var _;return Object(B.a)(this,n),_=v.apply(this,arguments),_.state={dragNodeHighlight:!1},_.onSelectorClick=function(h){var g=_.props.context.onNodeClick;g(h,Object(f.b)(_.props)),_.isSelectable()?_.onSelect(h):_.onCheck(h)},_.onSelectorDoubleClick=function(h){var g=_.props.context.onNodeDoubleClick;g(h,Object(f.b)(_.props))},_.onSelect=function(h){if(_.isDisabled())return;var g=_.props.context.onNodeSelect;h.preventDefault(),g(h,Object(f.b)(_.props))},_.onCheck=function(h){if(_.isDisabled())return;var g=_.props,x=g.disableCheckbox,T=g.checked,S=_.props.context.onNodeCheck;if(!_.isCheckable()||x)return;h.preventDefault();var E=!T;S(h,Object(f.b)(_.props),E)},_.onMouseEnter=function(h){var g=_.props.context.onNodeMouseEnter;g(h,Object(f.b)(_.props))},_.onMouseLeave=function(h){var g=_.props.context.onNodeMouseLeave;g(h,Object(f.b)(_.props))},_.onContextMenu=function(h){var g=_.props.context.onNodeContextMenu;g(h,Object(f.b)(_.props))},_.onDragStart=function(h){var g=_.props.context.onNodeDragStart;h.stopPropagation(),_.setState({dragNodeHighlight:!0}),g(h,Object(R.a)(_));try{h.dataTransfer.setData("text/plain","")}catch(x){}},_.onDragEnter=function(h){var g=_.props.context.onNodeDragEnter;h.preventDefault(),h.stopPropagation(),g(h,Object(R.a)(_))},_.onDragOver=function(h){var g=_.props.context.onNodeDragOver;h.preventDefault(),h.stopPropagation(),g(h,Object(R.a)(_))},_.onDragLeave=function(h){var g=_.props.context.onNodeDragLeave;h.stopPropagation(),g(h,Object(R.a)(_))},_.onDragEnd=function(h){var g=_.props.context.onNodeDragEnd;h.stopPropagation(),_.setState({dragNodeHighlight:!1}),g(h,Object(R.a)(_))},_.onDrop=function(h){var g=_.props.context.onNodeDrop;h.preventDefault(),h.stopPropagation(),_.setState({dragNodeHighlight:!1}),g(h,Object(R.a)(_))},_.onExpand=function(h){var g=_.props.context.onNodeExpand;g(h,Object(f.b)(_.props))},_.setSelectHandle=function(h){_.selectHandle=h},_.getNodeState=function(){var h=_.props.expanded;return _.isLeaf()?null:h?i:t},_.hasChildren=function(){var h=_.props.eventKey,g=_.props.context.keyEntities,x=g[h]||{},T=x.children;return!!(T||[]).length},_.isLeaf=function(){var h=_.props,g=h.isLeaf,x=h.loaded,T=_.props.context.loadData,S=_.hasChildren();return g===!1?!1:g||!T&&!S||T&&x&&!S},_.isDisabled=function(){var h=_.props.disabled,g=_.props.context.disabled;return!!(g||h)},_.isCheckable=function(){var h=_.props.checkable,g=_.props.context.checkable;return!g||h===!1?!1:g},_.syncLoadData=function(h){var g=h.expanded,x=h.loading,T=h.loaded,S=_.props.context,E=S.loadData,U=S.onNodeLoad;if(x)return;E&&g&&!_.isLeaf()&&(!_.hasChildren()&&!T&&U(Object(f.b)(_.props)))},_.renderSwitcher=function(){var h=_.props,g=h.expanded,x=h.switcherIcon,T=_.props.context,S=T.prefixCls,E=T.switcherIcon,U=x||E;if(_.isLeaf())return a.createElement("span",{className:u()("".concat(S,"-switcher"),"".concat(S,"-switcher-noop"))},typeof U=="function"?U(Object(k.a)(Object(k.a)({},_.props),{},{isLeaf:!0})):U);var F=u()("".concat(S,"-switcher"),"".concat(S,"-switcher_").concat(g?i:t));return a.createElement("span",{onClick:_.onExpand,className:F},typeof U=="function"?U(Object(k.a)(Object(k.a)({},_.props),{},{isLeaf:!1})):U)},_.renderCheckbox=function(){var h=_.props,g=h.checked,x=h.halfChecked,T=h.disableCheckbox,S=_.props.context.prefixCls,E=_.isDisabled(),U=_.isCheckable();if(!U)return null;var F=typeof U!="boolean"?U:null;return a.createElement("span",{className:u()("".concat(S,"-checkbox"),g&&"".concat(S,"-checkbox-checked"),!g&&x&&"".concat(S,"-checkbox-indeterminate"),(E||T)&&"".concat(S,"-checkbox-disabled")),onClick:_.onCheck},F)},_.renderIcon=function(){var h=_.props.loading,g=_.props.context.prefixCls;return a.createElement("span",{className:u()("".concat(g,"-iconEle"),"".concat(g,"-icon__").concat(_.getNodeState()||"docu"),h&&"".concat(g,"-icon_loading"))})},_.renderSelector=function(){var h=_.state.dragNodeHighlight,g=_.props,x=g.title,T=g.selected,S=g.icon,E=g.loading,U=g.data,F=_.props.context,P=F.prefixCls,H=F.showIcon,N=F.icon,A=F.draggable,G=F.loadData,K=F.titleRender,$=_.isDisabled(),ie="".concat(P,"-node-content-wrapper"),le;if(H){var de=S||N;le=de?a.createElement("span",{className:u()("".concat(P,"-iconEle"),"".concat(P,"-icon__customize"))},typeof de=="function"?de(_.props):de):_.renderIcon()}else G&&E&&(le=_.renderIcon());var Se;typeof x=="function"?Se=x(U):K?Se=K(U):Se=x;var He=a.createElement("span",{className:"".concat(P,"-title")},Se);return a.createElement("span",{ref:_.setSelectHandle,title:typeof x=="string"?x:"",className:u()("".concat(ie),"".concat(ie,"-").concat(_.getNodeState()||"normal"),!$&&(T||h)&&"".concat(P,"-node-selected"),!$&&A&&"draggable"),draggable:!$&&A||void 0,"aria-grabbed":!$&&A||void 0,onMouseEnter:_.onMouseEnter,onMouseLeave:_.onMouseLeave,onContextMenu:_.onContextMenu,onClick:_.onSelectorClick,onDoubleClick:_.onSelectorDoubleClick,onDragStart:A?_.onDragStart:void 0},le,He)},_}return Object(O.a)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var h=this.props.selectable,g=this.props.context.selectable;return typeof h=="boolean"?h:g}},{key:"render",value:function(){var h,g=this.props,x=g.eventKey,T=g.className,S=g.style,E=g.dragOver,U=g.dragOverGapTop,F=g.dragOverGapBottom,P=g.isLeaf,H=g.isStart,N=g.isEnd,A=g.expanded,G=g.selected,K=g.checked,$=g.halfChecked,ie=g.loading,le=g.domRef,de=g.active,Se=g.onMouseMove,He=Object(W.a)(g,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),et=this.props.context,je=et.prefixCls,me=et.filterTreeNode,fe=et.draggable,Ae=et.keyEntities,he=this.isDisabled(),Ue=Object(m.f)(He),st=Ae[x]||{},Ve=st.level,dt=N[N.length-1];return a.createElement("div",Object.assign({ref:le,className:u()(T,"".concat(je,"-treenode"),(h={},Object(Q.a)(h,"".concat(je,"-treenode-disabled"),he),Object(Q.a)(h,"".concat(je,"-treenode-switcher-").concat(A?"open":"close"),!P),Object(Q.a)(h,"".concat(je,"-treenode-checkbox-checked"),K),Object(Q.a)(h,"".concat(je,"-treenode-checkbox-indeterminate"),$),Object(Q.a)(h,"".concat(je,"-treenode-selected"),G),Object(Q.a)(h,"".concat(je,"-treenode-loading"),ie),Object(Q.a)(h,"".concat(je,"-treenode-active"),de),Object(Q.a)(h,"".concat(je,"-treenode-leaf-last"),dt),Object(Q.a)(h,"drag-over",!he&&E),Object(Q.a)(h,"drag-over-gap-top",!he&&U),Object(Q.a)(h,"drag-over-gap-bottom",!he&&F),Object(Q.a)(h,"filter-node",me&&me(Object(f.b)(this.props))),h)),style:S,onDragEnter:fe?this.onDragEnter:void 0,onDragOver:fe?this.onDragOver:void 0,onDragLeave:fe?this.onDragLeave:void 0,onDrop:fe?this.onDrop:void 0,onDragEnd:fe?this.onDragEnd:void 0,onMouseMove:Se},Ue),a.createElement(c,{prefixCls:je,level:Ve,isStart:H,isEnd:N}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(a.Component),w=function(v){return a.createElement(d.a.Consumer,null,function(n){return a.createElement(s,Object.assign({},v,{context:n}))})};w.displayName="TreeNode",w.defaultProps={title:l},w.isTreeNode=1;var D=re.a=w},XIdC:function(Ge,re,y){"use strict";var Q=y("rePB"),W=y("ODXe"),k=y("Ff2n"),B=y("q1tI"),O=y.n(B),R=y("TSYQ"),M=y.n(R),p=y("6cGi"),a=y("4IlW"),b=B.forwardRef(function(u,d){var m,o=u.prefixCls,c=o===void 0?"rc-switch":o,f=u.className,i=u.checked,t=u.defaultChecked,l=u.disabled,s=u.loadingIcon,w=u.checkedChildren,D=u.unCheckedChildren,C=u.onClick,v=u.onChange,n=u.onKeyDown,_=Object(k.a)(u,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),h=Object(p.a)(!1,{value:i,defaultValue:t}),g=Object(W.a)(h,2),x=g[0],T=g[1];function S(P,H){var N=x;return l||(N=P,T(N),v==null||v(N,H)),N}function E(P){P.which===a.a.LEFT?S(!1,P):P.which===a.a.RIGHT&&S(!0,P),n==null||n(P)}function U(P){var H=S(!x,P);C==null||C(H,P)}var F=M()(c,f,(m={},Object(Q.a)(m,"".concat(c,"-checked"),x),Object(Q.a)(m,"".concat(c,"-disabled"),l),m));return B.createElement("button",Object.assign({},_,{type:"button",role:"switch","aria-checked":x,disabled:l,className:F,ref:d,onKeyDown:E,onClick:U}),s,B.createElement("span",{className:"".concat(c,"-inner")},x?w:D))});b.displayName="Switch",re.a=b},Xmg4:function(Ge,re,y){var Q=y("bYtY"),W=y("LPTA"),k=W.devicePixelRatio,B=y("K2GJ"),O=y("3C/r");function R(){return!1}function M(b,u,d){var m=Q.createCanvas(),o=u.getWidth(),c=u.getHeight(),f=m.style;return f&&(f.position="absolute",f.left=0,f.top=0,f.width=o+"px",f.height=c+"px",m.setAttribute("data-zr-dom-id",b)),m.width=o*d,m.height=c*d,m}var p=function(b,u,d){var m;d=d||k,typeof b=="string"?m=M(b,u,d):Q.isObject(b)&&(m=b,b=m.id),this.id=b,this.dom=m;var o=m.style;o&&(m.onselectstart=R,o["-webkit-user-select"]="none",o["user-select"]="none",o["-webkit-touch-callout"]="none",o["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",o.padding=0,o.margin=0,o["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=u,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=d};p.prototype={constructor:p,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var b=this.dpr;this.domBack=M("back-"+this.id,this.painter,b),this.ctxBack=this.domBack.getContext("2d"),b!==1&&this.ctxBack.scale(b,b)},resize:function(b,u){var d=this.dpr,m=this.dom,o=m.style,c=this.domBack;o&&(o.width=b+"px",o.height=u+"px"),m.width=b*d,m.height=u*d,c&&(c.width=b*d,c.height=u*d,d!==1&&this.ctxBack.scale(d,d))},clear:function(b,u){var d=this.dom,m=this.ctx,o=d.width,c=d.height,u=u||this.clearColor,f=this.motionBlur&&!b,i=this.lastFrameAlpha,t=this.dpr;if(f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(d,0,0,o/t,c/t)),m.clearRect(0,0,o,c),u&&u!=="transparent"){var l;u.colorStops?(l=u.__canvasGradient||B.getGradient(m,u,{x:0,y:0,width:o,height:c}),u.__canvasGradient=l):u.image&&(l=O.prototype.getCanvasPattern.call(u,m)),m.save(),m.fillStyle=l||u,m.fillRect(0,0,o,c),m.restore()}if(f){var s=this.domBack;m.save(),m.globalAlpha=i,m.drawImage(s,0,0,o,c),m.restore()}}};var a=p;Ge.exports=a},Xnb7:function(Ge,re,y){var Q=y("1RvN"),W=new Q(50);function k(M){if(typeof M=="string"){var p=W.get(M);return p&&p.image}else return M}function B(M,p,a,b,u){if(M)if(typeof M=="string"){if(p&&p.__zrImageSrc===M||!a)return p;var d=W.get(M),m={hostEl:a,cb:b,cbPayload:u};return d?(p=d.image,!R(p)&&d.pending.push(m)):(p=new Image,p.onload=p.onerror=O,W.put(M,p.__cachedImgObj={image:p,pending:[m]}),p.src=p.__zrImageSrc=M),p}else return M;else return p}function O(){var M=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var p=0;p0&&r.prevInput=="\u200B"?si(L,il)(L):Ga++<10?I.detectingSelectAll=setTimeout(lr,500):(I.selForContextMenu=null,I.input.reset())};I.detectingSelectAll=setTimeout(lr,200)}}if(M&&p>=9&&kn(),v){be(e);var Ia=function(){hn(window,"mouseup",Ia),setTimeout(xn,20)};mt(window,"mouseup",Ia)}else setTimeout(xn,50)},Ir.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ir.prototype.setUneditable=function(){},Ir.prototype.needsContentAttribute=!1;function ni(e,r){if(r=r?A(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var L=U();r.autofocus=L==e||e.getAttribute("autofocus")!=null&&L==document.body}function I(){e.value=we.getValue()}var j;if(e.form&&(mt(e.form,"submit",I),!r.leaveSubmitMethodAlone)){var ee=e.form;j=ee.submit;try{var ce=ee.submit=function(){I(),ee.submit=j,ee.submit(),ee.submit=ce}}catch(De){}}r.finishInit=function(De){De.save=I,De.getTextArea=function(){return e},De.toTextArea=function(){De.toTextArea=isNaN,I(),e.parentNode.removeChild(De.getWrapperElement()),e.style.display="",e.form&&(hn(e.form,"submit",I),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=j))}},e.style.display="none";var we=Ci(function(De){return e.parentNode.insertBefore(De,e.nextSibling)},r);return we}function qr(e){e.off=hn,e.on=mt,e.wheelEventPixels=ki,e.Doc=to,e.splitLines=Bt,e.countColumn=G,e.findColumn=et,e.isWordChar=dt,e.Pass=le,e.signal=Ot,e.Line=ua,e.changeEnd=Wr,e.scrollbarModel=ui,e.Pos=at,e.cmpPos=Ht,e.modes=Sn,e.mimeModes=qt,e.resolveMode=Mt,e.getMode=Nn,e.modeExtensions=Bn,e.extendMode=na,e.copyState=Ea,e.startState=ye,e.innerMode=Pe,e.commands=qo,e.keyMap=Mo,e.keyName=xs,e.isModifierKey=is,e.lookupKey=ko,e.normalizeKeyMap=gl,e.StringStream=J,e.SharedTextMarker=Jo,e.TextMarker=Co,e.LineWidget=ns,e.e_preventDefault=Te,e.e_stopPropagation=Me,e.e_stop=be,e.addClass=F,e.contains=E,e.rmClass=_,e.keyNames=jo}$l(Ci),un(Ci);var _i="iter insert remove copy getEditor constructor".split(" ");for(var Ni in to.prototype)to.prototype.hasOwnProperty(Ni)&&$(_i,Ni)<0&&(Ci.prototype[Ni]=function(e){return function(){return e.apply(this.doc,arguments)}}(to.prototype[Ni]));return rt(to),Ci.inputStyles={textarea:Ir,contenteditable:Qt},Ci.defineMode=function(e){!Ci.defaults.mode&&e!="null"&&(Ci.defaults.mode=e),Gn.apply(this,arguments)},Ci.defineMIME=qn,Ci.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ci.defineMIME("text/plain","null"),Ci.defineExtension=function(e,r){Ci.prototype[e]=r},Ci.defineDocExtension=function(e,r){to.prototype[e]=r},Ci.fromTextArea=ni,qr(Ci),Ci.version="5.58.2",Ci})},W6BS:function(Ge,re){Ge.exports="data:image/png;base64,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"},WaYH:function(Ge,re,y){"use strict";var Q=y("rePB"),W=y("Ff2n"),k=y("VTBJ"),B=y("1OyB"),O=y("vuIU"),R=y("JX7q"),M=y("Ji7U"),p=y("LK+K"),a=y("q1tI"),b=y("TSYQ"),u=y.n(b),d=y("sboe"),m=y("OZM5"),o=function(v){var n=v.prefixCls,_=v.level,h=v.isStart,g=v.isEnd;if(!_)return null;for(var x="".concat(n,"-indent-unit"),T=[],S=0;S<_;S+=1){var E;T.push(a.createElement("span",{key:S,className:u()(x,(E={},Object(Q.a)(E,"".concat(x,"-start"),h[S+1]),Object(Q.a)(E,"".concat(x,"-end"),g[S+1]),Object(Q.a)(E,"".concat(x,"-end-first-level"),!S&&g[0]),E))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},T)},c=o,f=y("815F"),i="open",t="close",l="---",s=function(C){Object(M.a)(n,C);var v=Object(p.a)(n);function n(){var _;return Object(B.a)(this,n),_=v.apply(this,arguments),_.state={dragNodeHighlight:!1},_.onSelectorClick=function(h){var g=_.props.context.onNodeClick;g(h,Object(f.b)(_.props)),_.isSelectable()?_.onSelect(h):_.onCheck(h)},_.onSelectorDoubleClick=function(h){var g=_.props.context.onNodeDoubleClick;g(h,Object(f.b)(_.props))},_.onSelect=function(h){if(_.isDisabled())return;var g=_.props.context.onNodeSelect;h.preventDefault(),g(h,Object(f.b)(_.props))},_.onCheck=function(h){if(_.isDisabled())return;var g=_.props,x=g.disableCheckbox,T=g.checked,S=_.props.context.onNodeCheck;if(!_.isCheckable()||x)return;h.preventDefault();var E=!T;S(h,Object(f.b)(_.props),E)},_.onMouseEnter=function(h){var g=_.props.context.onNodeMouseEnter;g(h,Object(f.b)(_.props))},_.onMouseLeave=function(h){var g=_.props.context.onNodeMouseLeave;g(h,Object(f.b)(_.props))},_.onContextMenu=function(h){var g=_.props.context.onNodeContextMenu;g(h,Object(f.b)(_.props))},_.onDragStart=function(h){var g=_.props.context.onNodeDragStart;h.stopPropagation(),_.setState({dragNodeHighlight:!0}),g(h,Object(R.a)(_));try{h.dataTransfer.setData("text/plain","")}catch(x){}},_.onDragEnter=function(h){var g=_.props.context.onNodeDragEnter;h.preventDefault(),h.stopPropagation(),g(h,Object(R.a)(_))},_.onDragOver=function(h){var g=_.props.context.onNodeDragOver;h.preventDefault(),h.stopPropagation(),g(h,Object(R.a)(_))},_.onDragLeave=function(h){var g=_.props.context.onNodeDragLeave;h.stopPropagation(),g(h,Object(R.a)(_))},_.onDragEnd=function(h){var g=_.props.context.onNodeDragEnd;h.stopPropagation(),_.setState({dragNodeHighlight:!1}),g(h,Object(R.a)(_))},_.onDrop=function(h){var g=_.props.context.onNodeDrop;h.preventDefault(),h.stopPropagation(),_.setState({dragNodeHighlight:!1}),g(h,Object(R.a)(_))},_.onExpand=function(h){var g=_.props.context.onNodeExpand;g(h,Object(f.b)(_.props))},_.setSelectHandle=function(h){_.selectHandle=h},_.getNodeState=function(){var h=_.props.expanded;return _.isLeaf()?null:h?i:t},_.hasChildren=function(){var h=_.props.eventKey,g=_.props.context.keyEntities,x=g[h]||{},T=x.children;return!!(T||[]).length},_.isLeaf=function(){var h=_.props,g=h.isLeaf,x=h.loaded,T=_.props.context.loadData,S=_.hasChildren();return g===!1?!1:g||!T&&!S||T&&x&&!S},_.isDisabled=function(){var h=_.props.disabled,g=_.props.context.disabled;return!!(g||h)},_.isCheckable=function(){var h=_.props.checkable,g=_.props.context.checkable;return!g||h===!1?!1:g},_.syncLoadData=function(h){var g=h.expanded,x=h.loading,T=h.loaded,S=_.props.context,E=S.loadData,U=S.onNodeLoad;if(x)return;E&&g&&!_.isLeaf()&&(!_.hasChildren()&&!T&&U(Object(f.b)(_.props)))},_.renderSwitcher=function(){var h=_.props,g=h.expanded,x=h.switcherIcon,T=_.props.context,S=T.prefixCls,E=T.switcherIcon,U=x||E;if(_.isLeaf())return a.createElement("span",{className:u()("".concat(S,"-switcher"),"".concat(S,"-switcher-noop"))},typeof U=="function"?U(Object(k.a)(Object(k.a)({},_.props),{},{isLeaf:!0})):U);var F=u()("".concat(S,"-switcher"),"".concat(S,"-switcher_").concat(g?i:t));return a.createElement("span",{onClick:_.onExpand,className:F},typeof U=="function"?U(Object(k.a)(Object(k.a)({},_.props),{},{isLeaf:!1})):U)},_.renderCheckbox=function(){var h=_.props,g=h.checked,x=h.halfChecked,T=h.disableCheckbox,S=_.props.context.prefixCls,E=_.isDisabled(),U=_.isCheckable();if(!U)return null;var F=typeof U!="boolean"?U:null;return a.createElement("span",{className:u()("".concat(S,"-checkbox"),g&&"".concat(S,"-checkbox-checked"),!g&&x&&"".concat(S,"-checkbox-indeterminate"),(E||T)&&"".concat(S,"-checkbox-disabled")),onClick:_.onCheck},F)},_.renderIcon=function(){var h=_.props.loading,g=_.props.context.prefixCls;return a.createElement("span",{className:u()("".concat(g,"-iconEle"),"".concat(g,"-icon__").concat(_.getNodeState()||"docu"),h&&"".concat(g,"-icon_loading"))})},_.renderSelector=function(){var h=_.state.dragNodeHighlight,g=_.props,x=g.title,T=g.selected,S=g.icon,E=g.loading,U=g.data,F=_.props.context,P=F.prefixCls,H=F.showIcon,N=F.icon,A=F.draggable,G=F.loadData,K=F.titleRender,$=_.isDisabled(),ie="".concat(P,"-node-content-wrapper"),le;if(H){var de=S||N;le=de?a.createElement("span",{className:u()("".concat(P,"-iconEle"),"".concat(P,"-icon__customize"))},typeof de=="function"?de(_.props):de):_.renderIcon()}else G&&E&&(le=_.renderIcon());var Se;typeof x=="function"?Se=x(U):K?Se=K(U):Se=x;var He=a.createElement("span",{className:"".concat(P,"-title")},Se);return a.createElement("span",{ref:_.setSelectHandle,title:typeof x=="string"?x:"",className:u()("".concat(ie),"".concat(ie,"-").concat(_.getNodeState()||"normal"),!$&&(T||h)&&"".concat(P,"-node-selected"),!$&&A&&"draggable"),draggable:!$&&A||void 0,"aria-grabbed":!$&&A||void 0,onMouseEnter:_.onMouseEnter,onMouseLeave:_.onMouseLeave,onContextMenu:_.onContextMenu,onClick:_.onSelectorClick,onDoubleClick:_.onSelectorDoubleClick,onDragStart:A?_.onDragStart:void 0},le,He)},_}return Object(O.a)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var h=this.props.selectable,g=this.props.context.selectable;return typeof h=="boolean"?h:g}},{key:"render",value:function(){var h,g=this.props,x=g.eventKey,T=g.className,S=g.style,E=g.dragOver,U=g.dragOverGapTop,F=g.dragOverGapBottom,P=g.isLeaf,H=g.isStart,N=g.isEnd,A=g.expanded,G=g.selected,K=g.checked,$=g.halfChecked,ie=g.loading,le=g.domRef,de=g.active,Se=g.onMouseMove,He=Object(W.a)(g,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),et=this.props.context,je=et.prefixCls,me=et.filterTreeNode,fe=et.draggable,Ae=et.keyEntities,he=this.isDisabled(),Ue=Object(m.f)(He),st=Ae[x]||{},Ve=st.level,dt=N[N.length-1];return a.createElement("div",Object.assign({ref:le,className:u()(T,"".concat(je,"-treenode"),(h={},Object(Q.a)(h,"".concat(je,"-treenode-disabled"),he),Object(Q.a)(h,"".concat(je,"-treenode-switcher-").concat(A?"open":"close"),!P),Object(Q.a)(h,"".concat(je,"-treenode-checkbox-checked"),K),Object(Q.a)(h,"".concat(je,"-treenode-checkbox-indeterminate"),$),Object(Q.a)(h,"".concat(je,"-treenode-selected"),G),Object(Q.a)(h,"".concat(je,"-treenode-loading"),ie),Object(Q.a)(h,"".concat(je,"-treenode-active"),de),Object(Q.a)(h,"".concat(je,"-treenode-leaf-last"),dt),Object(Q.a)(h,"drag-over",!he&&E),Object(Q.a)(h,"drag-over-gap-top",!he&&U),Object(Q.a)(h,"drag-over-gap-bottom",!he&&F),Object(Q.a)(h,"filter-node",me&&me(Object(f.b)(this.props))),h)),style:S,onDragEnter:fe?this.onDragEnter:void 0,onDragOver:fe?this.onDragOver:void 0,onDragLeave:fe?this.onDragLeave:void 0,onDrop:fe?this.onDrop:void 0,onDragEnd:fe?this.onDragEnd:void 0,onMouseMove:Se},Ue),a.createElement(c,{prefixCls:je,level:Ve,isStart:H,isEnd:N}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(a.Component),w=function(v){return a.createElement(d.a.Consumer,null,function(n){return a.createElement(s,Object.assign({},v,{context:n}))})};w.displayName="TreeNode",w.defaultProps={title:l},w.isTreeNode=1;var D=re.a=w},XIdC:function(Ge,re,y){"use strict";var Q=y("rePB"),W=y("ODXe"),k=y("Ff2n"),B=y("q1tI"),O=y.n(B),R=y("TSYQ"),M=y.n(R),p=y("6cGi"),a=y("4IlW"),b=B.forwardRef(function(u,d){var m,o=u.prefixCls,c=o===void 0?"rc-switch":o,f=u.className,i=u.checked,t=u.defaultChecked,l=u.disabled,s=u.loadingIcon,w=u.checkedChildren,D=u.unCheckedChildren,C=u.onClick,v=u.onChange,n=u.onKeyDown,_=Object(k.a)(u,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),h=Object(p.a)(!1,{value:i,defaultValue:t}),g=Object(W.a)(h,2),x=g[0],T=g[1];function S(P,H){var N=x;return l||(N=P,T(N),v==null||v(N,H)),N}function E(P){P.which===a.a.LEFT?S(!1,P):P.which===a.a.RIGHT&&S(!0,P),n==null||n(P)}function U(P){var H=S(!x,P);C==null||C(H,P)}var F=M()(c,f,(m={},Object(Q.a)(m,"".concat(c,"-checked"),x),Object(Q.a)(m,"".concat(c,"-disabled"),l),m));return B.createElement("button",Object.assign({},_,{type:"button",role:"switch","aria-checked":x,disabled:l,className:F,ref:d,onKeyDown:E,onClick:U}),s,B.createElement("span",{className:"".concat(c,"-inner")},x?w:D))});b.displayName="Switch",re.a=b},Xmg4:function(Ge,re,y){var Q=y("bYtY"),W=y("LPTA"),k=W.devicePixelRatio,B=y("K2GJ"),O=y("3C/r");function R(){return!1}function M(b,u,d){var m=Q.createCanvas(),o=u.getWidth(),c=u.getHeight(),f=m.style;return f&&(f.position="absolute",f.left=0,f.top=0,f.width=o+"px",f.height=c+"px",m.setAttribute("data-zr-dom-id",b)),m.width=o*d,m.height=c*d,m}var p=function(b,u,d){var m;d=d||k,typeof b=="string"?m=M(b,u,d):Q.isObject(b)&&(m=b,b=m.id),this.id=b,this.dom=m;var o=m.style;o&&(m.onselectstart=R,o["-webkit-user-select"]="none",o["user-select"]="none",o["-webkit-touch-callout"]="none",o["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",o.padding=0,o.margin=0,o["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=u,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=d};p.prototype={constructor:p,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var b=this.dpr;this.domBack=M("back-"+this.id,this.painter,b),this.ctxBack=this.domBack.getContext("2d"),b!==1&&this.ctxBack.scale(b,b)},resize:function(b,u){var d=this.dpr,m=this.dom,o=m.style,c=this.domBack;o&&(o.width=b+"px",o.height=u+"px"),m.width=b*d,m.height=u*d,c&&(c.width=b*d,c.height=u*d,d!==1&&this.ctxBack.scale(d,d))},clear:function(b,u){var d=this.dom,m=this.ctx,o=d.width,c=d.height,u=u||this.clearColor,f=this.motionBlur&&!b,i=this.lastFrameAlpha,t=this.dpr;if(f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(d,0,0,o/t,c/t)),m.clearRect(0,0,o,c),u&&u!=="transparent"){var l;u.colorStops?(l=u.__canvasGradient||B.getGradient(m,u,{x:0,y:0,width:o,height:c}),u.__canvasGradient=l):u.image&&(l=O.prototype.getCanvasPattern.call(u,m)),m.save(),m.fillStyle=l||u,m.fillRect(0,0,o,c),m.restore()}if(f){var s=this.domBack;m.save(),m.globalAlpha=i,m.drawImage(s,0,0,o,c),m.restore()}}};var a=p;Ge.exports=a},Xnb7:function(Ge,re,y){var Q=y("1RvN"),W=new Q(50);function k(M){if(typeof M=="string"){var p=W.get(M);return p&&p.image}else return M}function B(M,p,a,b,u){if(M)if(typeof M=="string"){if(p&&p.__zrImageSrc===M||!a)return p;var d=W.get(M),m={hostEl:a,cb:b,cbPayload:u};return d?(p=d.image,!R(p)&&d.pending.push(m)):(p=new Image,p.onload=p.onerror=O,W.put(M,p.__cachedImgObj={image:p,pending:[m]}),p.src=p.__zrImageSrc=M),p}else return M;else return p}function O(){var M=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var p=0;p",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},i={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` -`)}]},t=y("5VLF"),l=y.n(t),s={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},w=function(G,K){return K.map(function($){return{label:$,kind:G.languages.CompletionItemKind.Keyword,insertText:$}})},D=function(G){return Object.keys(s.tables).map(function(K){return{label:K,kind:G.languages.CompletionItemKind.Variable,insertText:K}})},C=function(G,K){var $=s.tables[G];return $?$.map(function(ie){return{label:ie,kind:K.languages.CompletionItemKind.Field,insertText:ie}}):[]};function v(A,G,K,$,ie){var le=G.getWordUntilPosition(K),de={startLineNumber:K.lineNumber,endLineNumber:K.lineNumber,startColumn:le.startColumn,endColumn:le.endColumn},Se=$.map(function(He){return{label:He,kind:A.languages.CompletionItemKind.Keyword,insertText:He,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:de}});return ie.map(function(He){Se.push(Object(Q.a)(Object(Q.a)({},He),{},{range:de}))}),Se}var n=function(A){s.languages.map(function(ie){return A.languages.registerDocumentFormattingEditProvider(ie,{provideDocumentFormattingEdits:function(de,Se,He){return Object(u.a)(m.a.mark(function et(){var je;return m.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return je=l()(de.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),fe.abrupt("return",[{range:de.getFullModelRange(),text:je}]);case 2:case"end":return fe.stop()}},et)}))()}}),ie});var G=f.quickKey.map(function(ie){return{label:ie.label,kind:A.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),K=i.quickKey.map(function(ie){return{label:ie.label,kind:A.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),$=c.quickKey.map(function(ie){return{label:ie.label,kind:A.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet}});A.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(le,de){var Se=le.getWordUntilPosition(de),He={startLineNumber:de.lineNumber,endLineNumber:de.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},et=le.getLineContent(de.lineNumber).substring(Se.startColumn-2,Se.endColumn);return{suggestions:[].concat(Object(W.a)(f.keywords.map(function(je){return{label:je,kind:A.languages.CompletionItemKind.Function,documentation:je,insertText:je,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}})),Object(W.a)(f.quickKey.map(function(je){return{label:je.label,kind:A.languages.CompletionItemKind.Function,documentation:je.content,insertText:et.startsWith("#")?je.content.replace(/#/,""):je.content,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}})))}}}),A.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(le,de){var Se=le.getWordUntilPosition(de),He={startLineNumber:de.lineNumber,endLineNumber:de.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn};return{suggestions:Object(W.a)(o.keywords.map(function(et){return{label:et,kind:A.languages.CompletionItemKind.Function,documentation:et,insertText:et,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}}))}}}),A.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(le,de){var Se=le.getWordUntilPosition(de),He={startLineNumber:de.lineNumber,endLineNumber:de.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},et=le.getLineContent(de.lineNumber).substring(Se.startColumn-2,Se.endColumn);return{suggestions:[].concat(Object(W.a)(c.keywords.map(function(je){return{label:je,kind:A.languages.CompletionItemKind.Function,documentation:je,insertText:je,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}})),Object(W.a)(c.quickKey.map(function(je){return{label:je.label,kind:A.languages.CompletionItemKind.Function,documentation:je.content,insertText:et.startsWith("#")?je.content.replace(/#/,""):je.content,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}})))}}}),A.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(le,de){var Se=le.getWordUntilPosition(de),He={startLineNumber:de.lineNumber,endLineNumber:de.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},et=le.getLineContent(de.lineNumber).substring(Se.startColumn-2,Se.endColumn);return{suggestions:[].concat(Object(W.a)(i.keywords.map(function(je){return{label:je,kind:A.languages.CompletionItemKind.Function,documentation:je,insertText:je,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}})),Object(W.a)(i.quickKey.map(function(je){return{label:je.label,kind:A.languages.CompletionItemKind.Function,documentation:je.content,insertText:et.startsWith("#")?je.content.replace(/#/,""):je.content,insertTextRules:A.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}})))}}})},_="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",h=y("fjLI"),g=y("LvDl"),x=y("+ua5");function T(A){return/^\d+$/.test(A)?"".concat(A,"px"):A}function S(){}var E=!1,U={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function F(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],G=A;if(Array.isArray(A)){for(var K=0;K0||ye.target.offsetWidth>0)&&Xt.current.instance.layout()}}catch(J){Ea.e(J)}finally{Ea.f()}}),Bn.observe(Ot.current)),Bn}function nn(){B.b.warn(decodeURIComponent(_))}var $n=function(){var na=Xt.current.instance;if(le!=null&&na&&be){var Ea=na.getModel();Ea&&le!==Ea.getValue()&&(E=!0,Ea.setValue(le),na.layout(),E=!1)}};Object(p.useEffect)(function(){Je.current&&clearTimeout(Je.current),Je.current=setTimeout(function(){$n()},500)},[le,be,Xt.current]),Object(p.useEffect)(function(){if(mt&&Xt.current&&Xt.current.instance){var Bn=Xt.current.instance;Bn.changeViewZones(function(Ea){var Pe=document.createElement("div");Pe.style.padding="10px 20px",Pe.style.width="calc(100% - 20px)",Pe.className="my-error-line-wrp",Pe.innerHTML=on,Ea.addZone({afterLineNumber:mt||11,heightInLines:3,domNode:Pe})});var na={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Bn.addOverlayWidget(na),Bn.revealPositionInCenter({lineNumber:20,column:1})}},[mt,Xt.current,be]);function ta(){var Bn=Xt.current.instance;if(Bn){var na=Bn.getSelection(),Ea=Xt.current.pastePos||{},Pe=new P.Range(Ea.startLineNumber||na.endLineNumber,Ea.startColumn||na.endColumn,Ea.endLineNumber||na.endLineNumber,Ea.endColumn||na.endColumn);setTimeout(function(){Bn.executeEdits("",[{range:Pe,text:""}])},300)}}function Sa(Bn){(window.navigator.platform.match("Mac")?Bn.metaKey:Bn.ctrlKey)&&Bn.keyCode==83&&(Bn.preventDefault(),Ve())}var _n=function(){if(Qe&&Xt.current.instance){var na=Xt.current.instance.getContentHeight();Mt(na0||gt.target.offsetWidth>0)&&Qe.layout()}}catch(Ct){Le.e(Ct)}finally{Le.f()}}),pe.observe(je.current)),pe}Object(p.useEffect)(function(){je.current&&Promise.all([y.e(15),y.e(27)]).then(y.t.bind(null,"M/lh",7)).then(function(Qe){P=Qe;var pe=P.editor.createDiffEditor(je.current,Object(Q.a)(Object(Q.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},et),{},{wordWrap:!0}));he(pe);var xe=Ue(pe);return function(){pe.dispose();var Le=pe.getModel();Le&&Le.dispose(),xe.unobserve(je.current)}})},[]),Object(p.useEffect)(function(){Ae&&Ae.setModel({original:P.editor.createModel(le,Se),modified:P.editor.createModel(de,Se)})},[le,de,Se,Ae]);var st=T(K),Ve=T(ie),dt={width:st,height:Ve};return a.a.createElement("div",{className:"my-diff-editor",ref:je,style:dt})}},ZWs3:function(Ge,re,y){"use strict";y.d(re,"a",function(){return u});var Q=y("+L6B"),W=y("2/Rp"),k=y("0Owb"),B=y("9og8"),O=y("tJVT"),R=y("PpiC"),M=y("WmNS"),p=y.n(M),a=y("q1tI"),b=y.n(a),u=function(m){var o=m.children,c=Object(R.a)(m,["children"]),f=Object(a.useState)(!1),i=Object(O.a)(f,2),t=i[0],l=i[1];return b.a.createElement(W.a,Object(k.a)({},c,{loading:t,onClick:function(){var s=Object(B.a)(p.a.mark(function w(D){return p.a.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,l(!0),v.next=4,c.onClick(D);case 4:l(!1),v.next=10;break;case 7:v.prev=7,v.t0=v.catch(0),l(!1);case 10:case"end":return v.stop()}},w,null,[[0,7]])}));return function(w){return s.apply(this,arguments)}}()}),o)}},Ze12:function(Ge,re,y){var Q=y("ItGF"),W=y("hOwI"),k=W.buildTransformer,B="___zrEVENTSAVED",O=[];function R(u,d,m,o,c){return M(O,d,o,c,!0)&&M(u,m,O[0],O[1])}function M(u,d,m,o,c){if(d.getBoundingClientRect&&Q.domSupported&&!b(d)){var f=d[B]||(d[B]={}),i=p(d,f),t=a(i,f,c);if(t)return t(u,m,o),!0}return!1}function p(u,d){var m=d.markers;if(m)return m;m=d.markers=[];for(var o=["left","right"],c=["top","bottom"],f=0;f<4;f++){var i=document.createElement("div"),t=i.style,l=f%2,s=(f>>1)%2;t.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[l]+":0",c[s]+":0",o[1-l]+":auto",c[1-s]+":auto",""].join("!important;"),u.appendChild(i),m.push(i)}return m}function a(u,d,m){for(var o=m?"invTrans":"trans",c=d[o],f=d.srcCoords,i=!0,t=[],l=[],s=0;s<4;s++){var w=u[s].getBoundingClientRect(),D=2*s,C=w.left,v=w.top;t.push(C,v),i=i&&f&&C===f[D]&&v===f[D+1],l.push(u[s].offsetLeft,u[s].offsetTop)}return i&&c?c:(d.srcCoords=t,d[o]=m?k(l,t):k(t,l))}function b(u){return u.nodeName.toUpperCase()==="CANVAS"}re.transformLocalCoord=R,re.transformCoordWithViewport=M,re.isCanvasEl=b},ZpRC:function(Ge,re,y){"use strict";function Q(u){return typeof u=="object"&&u!=null&&u.nodeType===1}function W(u,d){return(!d||u!=="hidden")&&u!=="visible"&&u!=="clip"}function k(u,d){if(u.clientHeightd||f>u&&i=d&&t>=m?f-u-o:i>d&&tm?i-d+c:0}var O=function(u,d){var m=window,o=d.scrollMode,c=d.block,f=d.inline,i=d.boundary,t=d.skipOverflowHiddenElements,l=typeof i=="function"?i:function(Qe){return Qe!==i};if(!Q(u))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,w=[],D=u;Q(D)&&l(D);){if((D=D.parentElement)===s){w.push(D);break}D!=null&&D===document.body&&k(D)&&!k(document.documentElement)||D!=null&&k(D,t)&&w.push(D)}for(var C=m.visualViewport?m.visualViewport.width:innerWidth,v=m.visualViewport?m.visualViewport.height:innerHeight,n=window.scrollX||pageXOffset,_=window.scrollY||pageYOffset,h=u.getBoundingClientRect(),g=h.height,x=h.width,T=h.top,S=h.right,E=h.bottom,U=h.left,F=c==="start"||c==="nearest"?T:c==="end"?E:T+g/2,P=f==="center"?U+x/2:f==="end"?S:U,H=[],N=0;N=0&&U>=0&&E<=v&&S<=C&&T>=ie&&E<=de&&U>=Se&&S<=le)return H;var He=getComputedStyle(A),et=parseInt(He.borderLeftWidth,10),je=parseInt(He.borderTopWidth,10),me=parseInt(He.borderRightWidth,10),fe=parseInt(He.borderBottomWidth,10),Ae=0,he=0,Ue="offsetWidth"in A?A.offsetWidth-A.clientWidth-et-me:0,st="offsetHeight"in A?A.offsetHeight-A.clientHeight-je-fe:0;if(s===A)Ae=c==="start"?F:c==="end"?F-v:c==="nearest"?B(_,_+v,v,je,fe,_+F,_+F+g,g):F-v/2,he=f==="start"?P:f==="center"?P-C/2:f==="end"?P-C:B(n,n+C,C,et,me,n+P,n+P+x,x),Ae=Math.max(0,Ae+_),he=Math.max(0,he+n);else{Ae=c==="start"?F-ie-je:c==="end"?F-de+fe+st:c==="nearest"?B(ie,de,K,je,fe+st,F,F+g,g):F-(ie+K/2)+st/2,he=f==="start"?P-Se-et:f==="center"?P-(Se+$/2)+Ue/2:f==="end"?P-le+me+Ue:B(Se,le,$,et,me+Ue,P,P+x,x);var Ve=A.scrollLeft,dt=A.scrollTop;F+=dt-(Ae=Math.max(0,Math.min(dt+Ae,A.scrollHeight-K+st))),P+=Ve-(he=Math.max(0,Math.min(Ve+he,A.scrollWidth-$+Ue)))}H.push({el:A,top:Ae,left:he})}return H};function R(u){return u===Object(u)&&Object.keys(u).length!==0}function M(u,d){d===void 0&&(d="auto");var m="scrollBehavior"in document.body.style;u.forEach(function(o){var c=o.el,f=o.top,i=o.left;c.scroll&&m?c.scroll({top:f,left:i,behavior:d}):(c.scrollTop=f,c.scrollLeft=i)})}function p(u){return u===!1?{block:"end",inline:"nearest"}:R(u)?u:{block:"start",inline:"nearest"}}function a(u,d){var m=!u.ownerDocument.documentElement.contains(u);if(R(d)&&typeof d.behavior=="function")return d.behavior(m?[]:O(u,d));if(m)return;var o=p(d);return M(O(u,o),o.behavior)}var b=re.a=a},Zss7:function(Ge,re,y){var Q;(function(W){var k=/^\s+/,B=/\s+$/,O=0,R=W.round,M=W.min,p=W.max,a=W.random;function b(fe,Ae){if(fe=fe||"",Ae=Ae||{},fe instanceof b)return fe;if(!(this instanceof b))return new b(fe,Ae);var he=u(fe);this._originalInput=fe,this._r=he.r,this._g=he.g,this._b=he.b,this._a=he.a,this._roundA=R(100*this._a)/100,this._format=Ae.format||he.format,this._gradientType=Ae.gradientType,this._r<1&&(this._r=R(this._r)),this._g<1&&(this._g=R(this._g)),this._b<1&&(this._b=R(this._b)),this._ok=he.ok,this._tc_id=O++}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var fe=this.toRgb();return(fe.r*299+fe.g*587+fe.b*114)/1e3},getLuminance:function(){var fe=this.toRgb(),Ae,he,Ue,st,Ve,dt;return Ae=fe.r/255,he=fe.g/255,Ue=fe.b/255,Ae<=.03928?st=Ae/12.92:st=W.pow((Ae+.055)/1.055,2.4),he<=.03928?Ve=he/12.92:Ve=W.pow((he+.055)/1.055,2.4),Ue<=.03928?dt=Ue/12.92:dt=W.pow((Ue+.055)/1.055,2.4),.2126*st+.7152*Ve+.0722*dt},setAlpha:function(fe){return this._a=H(fe),this._roundA=R(100*this._a)/100,this},toHsv:function(){var fe=c(this._r,this._g,this._b);return{h:fe.h*360,s:fe.s,v:fe.v,a:this._a}},toHsvString:function(){var fe=c(this._r,this._g,this._b),Ae=R(fe.h*360),he=R(fe.s*100),Ue=R(fe.v*100);return this._a==1?"hsv("+Ae+", "+he+"%, "+Ue+"%)":"hsva("+Ae+", "+he+"%, "+Ue+"%, "+this._roundA+")"},toHsl:function(){var fe=m(this._r,this._g,this._b);return{h:fe.h*360,s:fe.s,l:fe.l,a:this._a}},toHslString:function(){var fe=m(this._r,this._g,this._b),Ae=R(fe.h*360),he=R(fe.s*100),Ue=R(fe.l*100);return this._a==1?"hsl("+Ae+", "+he+"%, "+Ue+"%)":"hsla("+Ae+", "+he+"%, "+Ue+"%, "+this._roundA+")"},toHex:function(fe){return i(this._r,this._g,this._b,fe)},toHexString:function(fe){return"#"+this.toHex(fe)},toHex8:function(fe){return t(this._r,this._g,this._b,this._a,fe)},toHex8String:function(fe){return"#"+this.toHex8(fe)},toRgb:function(){return{r:R(this._r),g:R(this._g),b:R(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+R(this._r)+", "+R(this._g)+", "+R(this._b)+")":"rgba("+R(this._r)+", "+R(this._g)+", "+R(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:R(N(this._r,255)*100)+"%",g:R(N(this._g,255)*100)+"%",b:R(N(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+R(N(this._r,255)*100)+"%, "+R(N(this._g,255)*100)+"%, "+R(N(this._b,255)*100)+"%)":"rgba("+R(N(this._r,255)*100)+"%, "+R(N(this._g,255)*100)+"%, "+R(N(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[i(this._r,this._g,this._b,!0)]||!1},toFilter:function(fe){var Ae="#"+l(this._r,this._g,this._b,this._a),he=Ae,Ue=this._gradientType?"GradientType = 1, ":"";if(fe){var st=b(fe);he="#"+l(st._r,st._g,st._b,st._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ue+"startColorstr="+Ae+",endColorstr="+he+")"},toString:function(fe){var Ae=!!fe;fe=fe||this._format;var he=!1,Ue=this._a<1&&this._a>=0,st=!Ae&&Ue&&(fe==="hex"||fe==="hex6"||fe==="hex3"||fe==="hex4"||fe==="hex8"||fe==="name");return st?fe==="name"&&this._a===0?this.toName():this.toRgbString():(fe==="rgb"&&(he=this.toRgbString()),fe==="prgb"&&(he=this.toPercentageRgbString()),(fe==="hex"||fe==="hex6")&&(he=this.toHexString()),fe==="hex3"&&(he=this.toHexString(!0)),fe==="hex4"&&(he=this.toHex8String(!0)),fe==="hex8"&&(he=this.toHex8String()),fe==="name"&&(he=this.toName()),fe==="hsl"&&(he=this.toHslString()),fe==="hsv"&&(he=this.toHsvString()),he||this.toHexString())},clone:function(){return b(this.toString())},_applyModification:function(fe,Ae){var he=fe.apply(null,[this].concat([].slice.call(Ae)));return this._r=he._r,this._g=he._g,this._b=he._b,this.setAlpha(he._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(n,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(D,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(fe,Ae){return fe.apply(null,[this].concat([].slice.call(Ae)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(g,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},b.fromRatio=function(fe,Ae){if(typeof fe=="object"){var he={};for(var Ue in fe)fe.hasOwnProperty(Ue)&&(Ue==="a"?he[Ue]=fe[Ue]:he[Ue]=le(fe[Ue]));fe=he}return b(fe,Ae)};function u(fe){var Ae={r:0,g:0,b:0},he=1,Ue=null,st=null,Ve=null,dt=!1,Qe=!1;return typeof fe=="string"&&(fe=je(fe)),typeof fe=="object"&&(et(fe.r)&&et(fe.g)&&et(fe.b)?(Ae=d(fe.r,fe.g,fe.b),dt=!0,Qe=String(fe.r).substr(-1)==="%"?"prgb":"rgb"):et(fe.h)&&et(fe.s)&&et(fe.v)?(Ue=le(fe.s),st=le(fe.v),Ae=f(fe.h,Ue,st),dt=!0,Qe="hsv"):et(fe.h)&&et(fe.s)&&et(fe.l)&&(Ue=le(fe.s),Ve=le(fe.l),Ae=o(fe.h,Ue,Ve),dt=!0,Qe="hsl"),fe.hasOwnProperty("a")&&(he=fe.a)),he=H(he),{ok:dt,format:fe.format||Qe,r:M(255,p(Ae.r,0)),g:M(255,p(Ae.g,0)),b:M(255,p(Ae.b,0)),a:he}}function d(fe,Ae,he){return{r:N(fe,255)*255,g:N(Ae,255)*255,b:N(he,255)*255}}function m(fe,Ae,he){fe=N(fe,255),Ae=N(Ae,255),he=N(he,255);var Ue=p(fe,Ae,he),st=M(fe,Ae,he),Ve,dt,Qe=(Ue+st)/2;if(Ue==st)Ve=dt=0;else{var pe=Ue-st;dt=Qe>.5?pe/(2-Ue-st):pe/(Ue+st);switch(Ue){case fe:Ve=(Ae-he)/pe+(Ae1&&(Ye-=1),Ye<1/6?xe+(Le-xe)*6*Ye:Ye<1/2?Le:Ye<2/3?xe+(Le-xe)*(2/3-Ye)*6:xe}if(Ae===0)Ue=st=Ve=he;else{var Qe=he<.5?he*(1+Ae):he+Ae-he*Ae,pe=2*he-Qe;Ue=dt(pe,Qe,fe+1/3),st=dt(pe,Qe,fe),Ve=dt(pe,Qe,fe-1/3)}return{r:Ue*255,g:st*255,b:Ve*255}}function c(fe,Ae,he){fe=N(fe,255),Ae=N(Ae,255),he=N(he,255);var Ue=p(fe,Ae,he),st=M(fe,Ae,he),Ve,dt,Qe=Ue,pe=Ue-st;if(dt=Ue===0?0:pe/Ue,Ue==st)Ve=0;else{switch(Ue){case fe:Ve=(Ae-he)/pe+(Ae>1)+720)%360;--Ae;)Ue.h=(Ue.h+st)%360,Ve.push(b(Ue));return Ve}function E(fe,Ae){Ae=Ae||6;for(var he=b(fe).toHsv(),Ue=he.h,st=he.s,Ve=he.v,dt=[],Qe=1/Ae;Ae--;)dt.push(b({h:Ue,s:st,v:Ve})),Ve=(Ve+Qe)%1;return dt}b.mix=function(fe,Ae,he){he=he===0?0:he||50;var Ue=b(fe).toRgb(),st=b(Ae).toRgb(),Ve=he/100,dt={r:(st.r-Ue.r)*Ve+Ue.r,g:(st.g-Ue.g)*Ve+Ue.g,b:(st.b-Ue.b)*Ve+Ue.b,a:(st.a-Ue.a)*Ve+Ue.a};return b(dt)},b.readability=function(fe,Ae){var he=b(fe),Ue=b(Ae);return(W.max(he.getLuminance(),Ue.getLuminance())+.05)/(W.min(he.getLuminance(),Ue.getLuminance())+.05)},b.isReadable=function(fe,Ae,he){var Ue=b.readability(fe,Ae),st,Ve;Ve=!1,st=me(he);switch(st.level+st.size){case"AAsmall":case"AAAlarge":Ve=Ue>=4.5;break;case"AAlarge":Ve=Ue>=3;break;case"AAAsmall":Ve=Ue>=7;break}return Ve},b.mostReadable=function(fe,Ae,he){var Ue=null,st=0,Ve,dt,Qe,pe;he=he||{},dt=he.includeFallbackColors,Qe=he.level,pe=he.size;for(var xe=0;xest&&(st=Ve,Ue=b(Ae[xe]));return b.isReadable(fe,Ue,{level:Qe,size:pe})||!dt?Ue:(he.includeFallbackColors=!1,b.mostReadable(fe,["#fff","#000"],he))};var U=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=b.hexNames=P(U);function P(fe){var Ae={};for(var he in fe)fe.hasOwnProperty(he)&&(Ae[fe[he]]=he);return Ae}function H(fe){return fe=parseFloat(fe),(isNaN(fe)||fe<0||fe>1)&&(fe=1),fe}function N(fe,Ae){K(fe)&&(fe="100%");var he=$(fe);return fe=M(Ae,p(0,parseFloat(fe))),he&&(fe=parseInt(fe*Ae,10)/100),W.abs(fe-Ae)<1e-6?1:fe%Ae/parseFloat(Ae)}function A(fe){return M(1,p(0,fe))}function G(fe){return parseInt(fe,16)}function K(fe){return typeof fe=="string"&&fe.indexOf(".")!=-1&&parseFloat(fe)===1}function $(fe){return typeof fe=="string"&&fe.indexOf("%")!=-1}function ie(fe){return fe.length==1?"0"+fe:""+fe}function le(fe){return fe<=1&&(fe=fe*100+"%"),fe}function de(fe){return W.round(parseFloat(fe)*255).toString(16)}function Se(fe){return G(fe)/255}var He=function(){var fe="[-\\+]?\\d+%?",Ae="[-\\+]?\\d*\\.\\d+%?",he="(?:"+Ae+")|(?:"+fe+")",Ue="[\\s|\\(]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")\\s*\\)?",st="[\\s|\\(]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")\\s*\\)?";return{CSS_UNIT:new RegExp(he),rgb:new RegExp("rgb"+Ue),rgba:new RegExp("rgba"+st),hsl:new RegExp("hsl"+Ue),hsla:new RegExp("hsla"+st),hsv:new RegExp("hsv"+Ue),hsva:new RegExp("hsva"+st),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function et(fe){return!!He.CSS_UNIT.exec(fe)}function je(fe){fe=fe.replace(k,"").replace(B,"").toLowerCase();var Ae=!1;if(U[fe])fe=U[fe],Ae=!0;else if(fe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var he;return(he=He.rgb.exec(fe))?{r:he[1],g:he[2],b:he[3]}:(he=He.rgba.exec(fe))?{r:he[1],g:he[2],b:he[3],a:he[4]}:(he=He.hsl.exec(fe))?{h:he[1],s:he[2],l:he[3]}:(he=He.hsla.exec(fe))?{h:he[1],s:he[2],l:he[3],a:he[4]}:(he=He.hsv.exec(fe))?{h:he[1],s:he[2],v:he[3]}:(he=He.hsva.exec(fe))?{h:he[1],s:he[2],v:he[3],a:he[4]}:(he=He.hex8.exec(fe))?{r:G(he[1]),g:G(he[2]),b:G(he[3]),a:Se(he[4]),format:Ae?"name":"hex8"}:(he=He.hex6.exec(fe))?{r:G(he[1]),g:G(he[2]),b:G(he[3]),format:Ae?"name":"hex"}:(he=He.hex4.exec(fe))?{r:G(he[1]+""+he[1]),g:G(he[2]+""+he[2]),b:G(he[3]+""+he[3]),a:Se(he[4]+""+he[4]),format:Ae?"name":"hex8"}:(he=He.hex3.exec(fe))?{r:G(he[1]+""+he[1]),g:G(he[2]+""+he[2]),b:G(he[3]+""+he[3]),format:Ae?"name":"hex"}:!1}function me(fe){var Ae,he;return fe=fe||{level:"AA",size:"small"},Ae=(fe.level||"AA").toUpperCase(),he=(fe.size||"small").toLowerCase(),Ae!=="AA"&&Ae!=="AAA"&&(Ae="AA"),he!=="small"&&he!=="large"&&(he="small"),{level:Ae,size:he}}Ge.exports?Ge.exports=b:!(Q=function(){return b}.call(re,y,re,Ge),Q!==void 0&&(Ge.exports=Q))})(Math)},aKvl:function(Ge,re,y){var Q=y("Sj9i"),W=Q.quadraticProjectPoint;function k(B,O,R,M,p,a,b,u,d){if(b===0)return!1;var m=b;if(d>O+m&&d>M+m&&d>a+m||dB+m&&u>R+m&&u>p+m||u0&&arguments[0]!==void 0?arguments[0]:[],G=A;if(Array.isArray(A)){for(var K=0;K0||ye.target.offsetWidth>0)&&Xt.current.instance.layout()}}catch(J){Ea.e(J)}finally{Ea.f()}}),Bn.observe(Ot.current)),Bn}function nn(){B.b.warn(decodeURIComponent(_))}var $n=function(){var na=Xt.current.instance;if(le!=null&&na&&be){var Ea=na.getModel();Ea&&le!==Ea.getValue()&&(E=!0,Ea.setValue(le),na.layout(),E=!1)}};Object(p.useEffect)(function(){Je.current&&clearTimeout(Je.current),Je.current=setTimeout(function(){$n()},500)},[le,be,Xt.current]),Object(p.useEffect)(function(){if(vt&&Xt.current&&Xt.current.instance){var Bn=Xt.current.instance;Bn.changeViewZones(function(Ea){var Pe=document.createElement("div");Pe.style.padding="10px 20px",Pe.style.width="calc(100% - 20px)",Pe.className="my-error-line-wrp",Pe.innerHTML=on,Ea.addZone({afterLineNumber:vt||11,heightInLines:3,domNode:Pe})});var na={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Bn.addOverlayWidget(na),Bn.revealPositionInCenter({lineNumber:20,column:1})}},[vt,Xt.current,be]);function ta(){var Bn=Xt.current.instance;if(Bn){var na=Bn.getSelection(),Ea=Xt.current.pastePos||{},Pe=new P.Range(Ea.startLineNumber||na.endLineNumber,Ea.startColumn||na.endColumn,Ea.endLineNumber||na.endLineNumber,Ea.endColumn||na.endColumn);setTimeout(function(){Bn.executeEdits("",[{range:Pe,text:""}])},300)}}function Sa(Bn){(window.navigator.platform.match("Mac")?Bn.metaKey:Bn.ctrlKey)&&Bn.keyCode==83&&(Bn.preventDefault(),Ve())}var _n=function(){if(Qe&&Xt.current.instance){var na=Xt.current.instance.getContentHeight();Mt(na0||gt.target.offsetWidth>0)&&Qe.layout()}}catch(Ct){Le.e(Ct)}finally{Le.f()}}),pe.observe(je.current)),pe}Object(p.useEffect)(function(){je.current&&Promise.all([y.e(15),y.e(27)]).then(y.t.bind(null,"M/lh",7)).then(function(Qe){P=Qe;var pe=P.editor.createDiffEditor(je.current,Object(Q.a)(Object(Q.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},et),{},{wordWrap:!0}));he(pe);var xe=Ue(pe);return function(){pe.dispose();var Le=pe.getModel();Le&&Le.dispose(),xe.unobserve(je.current)}})},[]),Object(p.useEffect)(function(){Ae&&Ae.setModel({original:P.editor.createModel(le,Se),modified:P.editor.createModel(de,Se)})},[le,de,Se,Ae]);var st=T(K),Ve=T(ie),dt={width:st,height:Ve};return a.a.createElement("div",{className:"my-diff-editor",ref:je,style:dt})}},ZWs3:function(Ge,re,y){"use strict";y.d(re,"a",function(){return u});var Q=y("+L6B"),W=y("2/Rp"),k=y("0Owb"),B=y("9og8"),O=y("tJVT"),R=y("PpiC"),M=y("WmNS"),p=y.n(M),a=y("q1tI"),b=y.n(a),u=function(m){var o=m.children,c=Object(R.a)(m,["children"]),f=Object(a.useState)(!1),i=Object(O.a)(f,2),t=i[0],l=i[1];return b.a.createElement(W.a,Object(k.a)({},c,{loading:t,onClick:function(){var s=Object(B.a)(p.a.mark(function w(D){return p.a.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,l(!0),v.next=4,c.onClick(D);case 4:l(!1),v.next=10;break;case 7:v.prev=7,v.t0=v.catch(0),l(!1);case 10:case"end":return v.stop()}},w,null,[[0,7]])}));return function(w){return s.apply(this,arguments)}}()}),o)}},Ze12:function(Ge,re,y){var Q=y("ItGF"),W=y("hOwI"),k=W.buildTransformer,B="___zrEVENTSAVED",O=[];function R(u,d,m,o,c){return M(O,d,o,c,!0)&&M(u,m,O[0],O[1])}function M(u,d,m,o,c){if(d.getBoundingClientRect&&Q.domSupported&&!b(d)){var f=d[B]||(d[B]={}),i=p(d,f),t=a(i,f,c);if(t)return t(u,m,o),!0}return!1}function p(u,d){var m=d.markers;if(m)return m;m=d.markers=[];for(var o=["left","right"],c=["top","bottom"],f=0;f<4;f++){var i=document.createElement("div"),t=i.style,l=f%2,s=(f>>1)%2;t.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[l]+":0",c[s]+":0",o[1-l]+":auto",c[1-s]+":auto",""].join("!important;"),u.appendChild(i),m.push(i)}return m}function a(u,d,m){for(var o=m?"invTrans":"trans",c=d[o],f=d.srcCoords,i=!0,t=[],l=[],s=0;s<4;s++){var w=u[s].getBoundingClientRect(),D=2*s,C=w.left,v=w.top;t.push(C,v),i=i&&f&&C===f[D]&&v===f[D+1],l.push(u[s].offsetLeft,u[s].offsetTop)}return i&&c?c:(d.srcCoords=t,d[o]=m?k(l,t):k(t,l))}function b(u){return u.nodeName.toUpperCase()==="CANVAS"}re.transformLocalCoord=R,re.transformCoordWithViewport=M,re.isCanvasEl=b},ZpRC:function(Ge,re,y){"use strict";function Q(u){return typeof u=="object"&&u!=null&&u.nodeType===1}function W(u,d){return(!d||u!=="hidden")&&u!=="visible"&&u!=="clip"}function k(u,d){if(u.clientHeightd||f>u&&i=d&&t>=m?f-u-o:i>d&&tm?i-d+c:0}var O=function(u,d){var m=window,o=d.scrollMode,c=d.block,f=d.inline,i=d.boundary,t=d.skipOverflowHiddenElements,l=typeof i=="function"?i:function(Qe){return Qe!==i};if(!Q(u))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,w=[],D=u;Q(D)&&l(D);){if((D=D.parentElement)===s){w.push(D);break}D!=null&&D===document.body&&k(D)&&!k(document.documentElement)||D!=null&&k(D,t)&&w.push(D)}for(var C=m.visualViewport?m.visualViewport.width:innerWidth,v=m.visualViewport?m.visualViewport.height:innerHeight,n=window.scrollX||pageXOffset,_=window.scrollY||pageYOffset,h=u.getBoundingClientRect(),g=h.height,x=h.width,T=h.top,S=h.right,E=h.bottom,U=h.left,F=c==="start"||c==="nearest"?T:c==="end"?E:T+g/2,P=f==="center"?U+x/2:f==="end"?S:U,H=[],N=0;N=0&&U>=0&&E<=v&&S<=C&&T>=ie&&E<=de&&U>=Se&&S<=le)return H;var He=getComputedStyle(A),et=parseInt(He.borderLeftWidth,10),je=parseInt(He.borderTopWidth,10),me=parseInt(He.borderRightWidth,10),fe=parseInt(He.borderBottomWidth,10),Ae=0,he=0,Ue="offsetWidth"in A?A.offsetWidth-A.clientWidth-et-me:0,st="offsetHeight"in A?A.offsetHeight-A.clientHeight-je-fe:0;if(s===A)Ae=c==="start"?F:c==="end"?F-v:c==="nearest"?B(_,_+v,v,je,fe,_+F,_+F+g,g):F-v/2,he=f==="start"?P:f==="center"?P-C/2:f==="end"?P-C:B(n,n+C,C,et,me,n+P,n+P+x,x),Ae=Math.max(0,Ae+_),he=Math.max(0,he+n);else{Ae=c==="start"?F-ie-je:c==="end"?F-de+fe+st:c==="nearest"?B(ie,de,K,je,fe+st,F,F+g,g):F-(ie+K/2)+st/2,he=f==="start"?P-Se-et:f==="center"?P-(Se+$/2)+Ue/2:f==="end"?P-le+me+Ue:B(Se,le,$,et,me+Ue,P,P+x,x);var Ve=A.scrollLeft,dt=A.scrollTop;F+=dt-(Ae=Math.max(0,Math.min(dt+Ae,A.scrollHeight-K+st))),P+=Ve-(he=Math.max(0,Math.min(Ve+he,A.scrollWidth-$+Ue)))}H.push({el:A,top:Ae,left:he})}return H};function R(u){return u===Object(u)&&Object.keys(u).length!==0}function M(u,d){d===void 0&&(d="auto");var m="scrollBehavior"in document.body.style;u.forEach(function(o){var c=o.el,f=o.top,i=o.left;c.scroll&&m?c.scroll({top:f,left:i,behavior:d}):(c.scrollTop=f,c.scrollLeft=i)})}function p(u){return u===!1?{block:"end",inline:"nearest"}:R(u)?u:{block:"start",inline:"nearest"}}function a(u,d){var m=!u.ownerDocument.documentElement.contains(u);if(R(d)&&typeof d.behavior=="function")return d.behavior(m?[]:O(u,d));if(m)return;var o=p(d);return M(O(u,o),o.behavior)}var b=re.a=a},Zss7:function(Ge,re,y){var Q;(function(W){var k=/^\s+/,B=/\s+$/,O=0,R=W.round,M=W.min,p=W.max,a=W.random;function b(fe,Ae){if(fe=fe||"",Ae=Ae||{},fe instanceof b)return fe;if(!(this instanceof b))return new b(fe,Ae);var he=u(fe);this._originalInput=fe,this._r=he.r,this._g=he.g,this._b=he.b,this._a=he.a,this._roundA=R(100*this._a)/100,this._format=Ae.format||he.format,this._gradientType=Ae.gradientType,this._r<1&&(this._r=R(this._r)),this._g<1&&(this._g=R(this._g)),this._b<1&&(this._b=R(this._b)),this._ok=he.ok,this._tc_id=O++}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var fe=this.toRgb();return(fe.r*299+fe.g*587+fe.b*114)/1e3},getLuminance:function(){var fe=this.toRgb(),Ae,he,Ue,st,Ve,dt;return Ae=fe.r/255,he=fe.g/255,Ue=fe.b/255,Ae<=.03928?st=Ae/12.92:st=W.pow((Ae+.055)/1.055,2.4),he<=.03928?Ve=he/12.92:Ve=W.pow((he+.055)/1.055,2.4),Ue<=.03928?dt=Ue/12.92:dt=W.pow((Ue+.055)/1.055,2.4),.2126*st+.7152*Ve+.0722*dt},setAlpha:function(fe){return this._a=H(fe),this._roundA=R(100*this._a)/100,this},toHsv:function(){var fe=c(this._r,this._g,this._b);return{h:fe.h*360,s:fe.s,v:fe.v,a:this._a}},toHsvString:function(){var fe=c(this._r,this._g,this._b),Ae=R(fe.h*360),he=R(fe.s*100),Ue=R(fe.v*100);return this._a==1?"hsv("+Ae+", "+he+"%, "+Ue+"%)":"hsva("+Ae+", "+he+"%, "+Ue+"%, "+this._roundA+")"},toHsl:function(){var fe=m(this._r,this._g,this._b);return{h:fe.h*360,s:fe.s,l:fe.l,a:this._a}},toHslString:function(){var fe=m(this._r,this._g,this._b),Ae=R(fe.h*360),he=R(fe.s*100),Ue=R(fe.l*100);return this._a==1?"hsl("+Ae+", "+he+"%, "+Ue+"%)":"hsla("+Ae+", "+he+"%, "+Ue+"%, "+this._roundA+")"},toHex:function(fe){return i(this._r,this._g,this._b,fe)},toHexString:function(fe){return"#"+this.toHex(fe)},toHex8:function(fe){return t(this._r,this._g,this._b,this._a,fe)},toHex8String:function(fe){return"#"+this.toHex8(fe)},toRgb:function(){return{r:R(this._r),g:R(this._g),b:R(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+R(this._r)+", "+R(this._g)+", "+R(this._b)+")":"rgba("+R(this._r)+", "+R(this._g)+", "+R(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:R(N(this._r,255)*100)+"%",g:R(N(this._g,255)*100)+"%",b:R(N(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+R(N(this._r,255)*100)+"%, "+R(N(this._g,255)*100)+"%, "+R(N(this._b,255)*100)+"%)":"rgba("+R(N(this._r,255)*100)+"%, "+R(N(this._g,255)*100)+"%, "+R(N(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[i(this._r,this._g,this._b,!0)]||!1},toFilter:function(fe){var Ae="#"+l(this._r,this._g,this._b,this._a),he=Ae,Ue=this._gradientType?"GradientType = 1, ":"";if(fe){var st=b(fe);he="#"+l(st._r,st._g,st._b,st._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ue+"startColorstr="+Ae+",endColorstr="+he+")"},toString:function(fe){var Ae=!!fe;fe=fe||this._format;var he=!1,Ue=this._a<1&&this._a>=0,st=!Ae&&Ue&&(fe==="hex"||fe==="hex6"||fe==="hex3"||fe==="hex4"||fe==="hex8"||fe==="name");return st?fe==="name"&&this._a===0?this.toName():this.toRgbString():(fe==="rgb"&&(he=this.toRgbString()),fe==="prgb"&&(he=this.toPercentageRgbString()),(fe==="hex"||fe==="hex6")&&(he=this.toHexString()),fe==="hex3"&&(he=this.toHexString(!0)),fe==="hex4"&&(he=this.toHex8String(!0)),fe==="hex8"&&(he=this.toHex8String()),fe==="name"&&(he=this.toName()),fe==="hsl"&&(he=this.toHslString()),fe==="hsv"&&(he=this.toHsvString()),he||this.toHexString())},clone:function(){return b(this.toString())},_applyModification:function(fe,Ae){var he=fe.apply(null,[this].concat([].slice.call(Ae)));return this._r=he._r,this._g=he._g,this._b=he._b,this.setAlpha(he._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(n,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(D,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(fe,Ae){return fe.apply(null,[this].concat([].slice.call(Ae)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(g,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},b.fromRatio=function(fe,Ae){if(typeof fe=="object"){var he={};for(var Ue in fe)fe.hasOwnProperty(Ue)&&(Ue==="a"?he[Ue]=fe[Ue]:he[Ue]=le(fe[Ue]));fe=he}return b(fe,Ae)};function u(fe){var Ae={r:0,g:0,b:0},he=1,Ue=null,st=null,Ve=null,dt=!1,Qe=!1;return typeof fe=="string"&&(fe=je(fe)),typeof fe=="object"&&(et(fe.r)&&et(fe.g)&&et(fe.b)?(Ae=d(fe.r,fe.g,fe.b),dt=!0,Qe=String(fe.r).substr(-1)==="%"?"prgb":"rgb"):et(fe.h)&&et(fe.s)&&et(fe.v)?(Ue=le(fe.s),st=le(fe.v),Ae=f(fe.h,Ue,st),dt=!0,Qe="hsv"):et(fe.h)&&et(fe.s)&&et(fe.l)&&(Ue=le(fe.s),Ve=le(fe.l),Ae=o(fe.h,Ue,Ve),dt=!0,Qe="hsl"),fe.hasOwnProperty("a")&&(he=fe.a)),he=H(he),{ok:dt,format:fe.format||Qe,r:M(255,p(Ae.r,0)),g:M(255,p(Ae.g,0)),b:M(255,p(Ae.b,0)),a:he}}function d(fe,Ae,he){return{r:N(fe,255)*255,g:N(Ae,255)*255,b:N(he,255)*255}}function m(fe,Ae,he){fe=N(fe,255),Ae=N(Ae,255),he=N(he,255);var Ue=p(fe,Ae,he),st=M(fe,Ae,he),Ve,dt,Qe=(Ue+st)/2;if(Ue==st)Ve=dt=0;else{var pe=Ue-st;dt=Qe>.5?pe/(2-Ue-st):pe/(Ue+st);switch(Ue){case fe:Ve=(Ae-he)/pe+(Ae1&&(Ye-=1),Ye<1/6?xe+(Le-xe)*6*Ye:Ye<1/2?Le:Ye<2/3?xe+(Le-xe)*(2/3-Ye)*6:xe}if(Ae===0)Ue=st=Ve=he;else{var Qe=he<.5?he*(1+Ae):he+Ae-he*Ae,pe=2*he-Qe;Ue=dt(pe,Qe,fe+1/3),st=dt(pe,Qe,fe),Ve=dt(pe,Qe,fe-1/3)}return{r:Ue*255,g:st*255,b:Ve*255}}function c(fe,Ae,he){fe=N(fe,255),Ae=N(Ae,255),he=N(he,255);var Ue=p(fe,Ae,he),st=M(fe,Ae,he),Ve,dt,Qe=Ue,pe=Ue-st;if(dt=Ue===0?0:pe/Ue,Ue==st)Ve=0;else{switch(Ue){case fe:Ve=(Ae-he)/pe+(Ae>1)+720)%360;--Ae;)Ue.h=(Ue.h+st)%360,Ve.push(b(Ue));return Ve}function E(fe,Ae){Ae=Ae||6;for(var he=b(fe).toHsv(),Ue=he.h,st=he.s,Ve=he.v,dt=[],Qe=1/Ae;Ae--;)dt.push(b({h:Ue,s:st,v:Ve})),Ve=(Ve+Qe)%1;return dt}b.mix=function(fe,Ae,he){he=he===0?0:he||50;var Ue=b(fe).toRgb(),st=b(Ae).toRgb(),Ve=he/100,dt={r:(st.r-Ue.r)*Ve+Ue.r,g:(st.g-Ue.g)*Ve+Ue.g,b:(st.b-Ue.b)*Ve+Ue.b,a:(st.a-Ue.a)*Ve+Ue.a};return b(dt)},b.readability=function(fe,Ae){var he=b(fe),Ue=b(Ae);return(W.max(he.getLuminance(),Ue.getLuminance())+.05)/(W.min(he.getLuminance(),Ue.getLuminance())+.05)},b.isReadable=function(fe,Ae,he){var Ue=b.readability(fe,Ae),st,Ve;Ve=!1,st=me(he);switch(st.level+st.size){case"AAsmall":case"AAAlarge":Ve=Ue>=4.5;break;case"AAlarge":Ve=Ue>=3;break;case"AAAsmall":Ve=Ue>=7;break}return Ve},b.mostReadable=function(fe,Ae,he){var Ue=null,st=0,Ve,dt,Qe,pe;he=he||{},dt=he.includeFallbackColors,Qe=he.level,pe=he.size;for(var xe=0;xest&&(st=Ve,Ue=b(Ae[xe]));return b.isReadable(fe,Ue,{level:Qe,size:pe})||!dt?Ue:(he.includeFallbackColors=!1,b.mostReadable(fe,["#fff","#000"],he))};var U=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=b.hexNames=P(U);function P(fe){var Ae={};for(var he in fe)fe.hasOwnProperty(he)&&(Ae[fe[he]]=he);return Ae}function H(fe){return fe=parseFloat(fe),(isNaN(fe)||fe<0||fe>1)&&(fe=1),fe}function N(fe,Ae){K(fe)&&(fe="100%");var he=$(fe);return fe=M(Ae,p(0,parseFloat(fe))),he&&(fe=parseInt(fe*Ae,10)/100),W.abs(fe-Ae)<1e-6?1:fe%Ae/parseFloat(Ae)}function A(fe){return M(1,p(0,fe))}function G(fe){return parseInt(fe,16)}function K(fe){return typeof fe=="string"&&fe.indexOf(".")!=-1&&parseFloat(fe)===1}function $(fe){return typeof fe=="string"&&fe.indexOf("%")!=-1}function ie(fe){return fe.length==1?"0"+fe:""+fe}function le(fe){return fe<=1&&(fe=fe*100+"%"),fe}function de(fe){return W.round(parseFloat(fe)*255).toString(16)}function Se(fe){return G(fe)/255}var He=function(){var fe="[-\\+]?\\d+%?",Ae="[-\\+]?\\d*\\.\\d+%?",he="(?:"+Ae+")|(?:"+fe+")",Ue="[\\s|\\(]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")\\s*\\)?",st="[\\s|\\(]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")\\s*\\)?";return{CSS_UNIT:new RegExp(he),rgb:new RegExp("rgb"+Ue),rgba:new RegExp("rgba"+st),hsl:new RegExp("hsl"+Ue),hsla:new RegExp("hsla"+st),hsv:new RegExp("hsv"+Ue),hsva:new RegExp("hsva"+st),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function et(fe){return!!He.CSS_UNIT.exec(fe)}function je(fe){fe=fe.replace(k,"").replace(B,"").toLowerCase();var Ae=!1;if(U[fe])fe=U[fe],Ae=!0;else if(fe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var he;return(he=He.rgb.exec(fe))?{r:he[1],g:he[2],b:he[3]}:(he=He.rgba.exec(fe))?{r:he[1],g:he[2],b:he[3],a:he[4]}:(he=He.hsl.exec(fe))?{h:he[1],s:he[2],l:he[3]}:(he=He.hsla.exec(fe))?{h:he[1],s:he[2],l:he[3],a:he[4]}:(he=He.hsv.exec(fe))?{h:he[1],s:he[2],v:he[3]}:(he=He.hsva.exec(fe))?{h:he[1],s:he[2],v:he[3],a:he[4]}:(he=He.hex8.exec(fe))?{r:G(he[1]),g:G(he[2]),b:G(he[3]),a:Se(he[4]),format:Ae?"name":"hex8"}:(he=He.hex6.exec(fe))?{r:G(he[1]),g:G(he[2]),b:G(he[3]),format:Ae?"name":"hex"}:(he=He.hex4.exec(fe))?{r:G(he[1]+""+he[1]),g:G(he[2]+""+he[2]),b:G(he[3]+""+he[3]),a:Se(he[4]+""+he[4]),format:Ae?"name":"hex8"}:(he=He.hex3.exec(fe))?{r:G(he[1]+""+he[1]),g:G(he[2]+""+he[2]),b:G(he[3]+""+he[3]),format:Ae?"name":"hex"}:!1}function me(fe){var Ae,he;return fe=fe||{level:"AA",size:"small"},Ae=(fe.level||"AA").toUpperCase(),he=(fe.size||"small").toLowerCase(),Ae!=="AA"&&Ae!=="AAA"&&(Ae="AA"),he!=="small"&&he!=="large"&&(he="small"),{level:Ae,size:he}}Ge.exports?Ge.exports=b:!(Q=function(){return b}.call(re,y,re,Ge),Q!==void 0&&(Ge.exports=Q))})(Math)},aKvl:function(Ge,re,y){var Q=y("Sj9i"),W=Q.quadraticProjectPoint;function k(B,O,R,M,p,a,b,u,d){if(b===0)return!1;var m=b;if(d>O+m&&d>M+m&&d>a+m||dB+m&&u>R+m&&u>p+m||u1?$-1:0),le=1;le<$;le++)ie[le-1]=arguments[le];N.apply(void 0,[P].concat(ie))}},E.onKeyUp=function(P){var H=E.props.onKeyUp;if(E.stop(),E.recordCursorPosition(),H){for(var N=arguments.length,A=new Array(N>1?N-1:0),G=1;G=0)return parseInt(H.slice(H.indexOf("e-")+2),10);var N=0;return H.indexOf(".")>=0&&(N=H.length-H.indexOf(".")-1),N},E.getInputDisplayValue=function(P){var H=P||E.state,N=H.focused,A=H.inputValue,G=H.value,K;N?K=A:K=E.toPrecisionAsStep(G),K==null&&(K="");var $=E.formatWrapper(K);return C(E.props.decimalSeparator)&&($=$.toString().replace(".",E.props.decimalSeparator)),$},E.recordCursorPosition=function(){try{E.cursorStart=E.input.selectionStart,E.cursorEnd=E.input.selectionEnd,E.currentValue=E.input.value,E.cursorBefore=E.input.value.substring(0,E.cursorStart),E.cursorAfter=E.input.value.substring(E.cursorEnd)}catch(P){}},E.restoreByAfter=function(P){if(P===void 0)return!1;var H=E.input.value,N=H.lastIndexOf(P);if(N===-1)return!1;var A=E.cursorBefore.length;return E.lastKeyCode===d.a.DELETE&&E.cursorBefore.charAt(A-1)===P[0]?(E.fixCaret(A,A),!0):N+P.length===H.length?(E.fixCaret(N,N),!0):!1},E.partRestoreByAfter=function(P){return P===void 0?!1:Array.prototype.some.call(P,function(H,N){var A=P.substring(N);return E.restoreByAfter(A)})},E.isNotCompleteNumber=function(P){return isNaN(P)||P===""||P===null||P&&P.toString().indexOf(".")===P.toString().length-1},E.stop=function(){E.autoStepTimer&&clearTimeout(E.autoStepTimer)},E.down=function(P,H,N){E.pressingUpOrDown=!0,E.step("down",P,H,N)},E.up=function(P,H,N){E.pressingUpOrDown=!0,E.step("up",P,H,N)},E.saveInput=function(P){E.input=P};var U=S.value;U===void 0&&(U=S.defaultValue),E.state={focused:S.autoFocus};var F=E.getValidValue(E.toNumber(U));return E.state=o(o({},E.state),{},{inputValue:E.toPrecisionAsStep(F),value:F}),E}return Object(B.a)(T,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(E){var U=this.props,F=U.value,P=U.onChange,H=U.max,N=U.min,A=this.state.focused;if(E){if(!v(E.value,F)||!v(E.max,H)||!v(E.min,N)){var G=A?F:this.getValidValue(F),K;this.pressingUpOrDown?K=G:this.inputting?K=this.rawInput:K=this.toPrecisionAsStep(G),this.setState({value:G,inputValue:K})}var $="value"in this.props?F:this.state.value;"max"in this.props&&E.max!==H&&typeof $=="number"&&$>H&&P&&P(H),"min"in this.props&&E.min!==N&&typeof $=="number"&&$1&&arguments[1]!==void 0?arguments[1]:this.props.min,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,P=parseFloat(E);return isNaN(P)?E:(PF&&(P=F),P)}},{key:"setValue",value:function(E,U){var F=this.props.precision,P=this.isNotCompleteNumber(parseFloat(E))?null:parseFloat(E),H=this.state.value,N=H===void 0?null:H,A=this.state.inputValue,G=A===void 0?null:A,K=typeof P=="number"?P.toFixed(F):"".concat(P),$=P!==N||K!=="".concat(G);return"value"in this.props?(G=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:G},U)):this.setState({value:P,inputValue:this.toPrecisionAsStep(E)},U),$&&this.props.onChange(P),P}},{key:"getMaxPrecision",value:function(E){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.props,P=F.precision,H=F.step;if(C(P))return P;var N=this.getPrecision(U),A=this.getPrecision(H),G=this.getPrecision(E);return E?Math.max(G,N+A):N+A}},{key:"getPrecisionFactor",value:function(E){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.getMaxPrecision(E,U);return Math.pow(10,F)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(E){return this.props.formatter?this.props.formatter(E):E}},{key:"toPrecisionAsStep",value:function(E){if(this.isNotCompleteNumber(E)||E==="")return E;var U=Math.abs(this.getMaxPrecision(E));return isNaN(U)?E.toString():Number(E).toFixed(U)}},{key:"toNumber",value:function(E){var U=this.props.precision,F=this.state.focused,P=E&&E.length>16&&F;return this.isNotCompleteNumber(E)||P?E:C(U)?Math.round(E*Math.pow(10,U))/Math.pow(10,U):Number(E)}},{key:"upStep",value:function(E,U){var F=this.props.step,P=this.getPrecisionFactor(E,U),H=Math.abs(this.getMaxPrecision(E,U)),N=((P*E+P*F*U)/P).toFixed(H);return this.toNumber(N)}},{key:"downStep",value:function(E,U){var F=this.props.step,P=this.getPrecisionFactor(E,U),H=Math.abs(this.getMaxPrecision(E,U)),N=((P*E-P*F*U)/P).toFixed(H);return this.toNumber(N)}},{key:"step",value:function(E,U){var F=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=arguments.length>3?arguments[3]:void 0;this.stop(),U&&(U.persist(),U.preventDefault());var N=this.props;if(N.disabled)return;var A=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(A))return;var G=this["".concat(E,"Step")](A,P),K=G>N.max||GN.max?G=N.max:G=ie),Xt=(Hn||Hn===0)&&(isNaN(Hn)||Number(Hn)<=le),ht=Ot||P||H,Je=Xt||P||H,rt=u()("".concat(F,"-handler"),"".concat(F,"-handler-up"),Object(W.a)({},"".concat(F,"-handler-up-disabled"),ht)),Te=u()("".concat(F,"-handler"),"".concat(F,"-handler-down"),Object(W.a)({},"".concat(F,"-handler-down-disabled"),Je)),Me=N?{onTouchStart:ht?i:this.up,onTouchEnd:this.stop}:{onMouseDown:ht?i:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ie=N?{onTouchStart:Je?i:this.down,onTouchEnd:this.stop}:{onMouseDown:Je?i:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return a.a.createElement("div",{className:mt,style:de,title:Se,onMouseEnter:He,onMouseLeave:et,onMouseOver:je,onMouseOut:me,onFocus:function(){return null},onBlur:function(){return null}},a.a.createElement("div",{className:"".concat(F,"-handler-wrap")},a.a.createElement("span",Object.assign({unselectable:"on"},Me,{role:"button","aria-label":"Increase Value","aria-disabled":ht,className:rt}),G||a.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-up-inner"),onClick:t})),a.a.createElement("span",Object.assign({unselectable:"on"},Ie,{role:"button","aria-label":"Decrease Value","aria-disabled":Je,className:Te}),K||a.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-down-inner"),onClick:t}))),a.a.createElement("div",{className:"".concat(F,"-input-wrap")},a.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":le,"aria-valuemax":ie,"aria-valuenow":Hn,required:fe,type:Ue,placeholder:st,onPaste:gt,onClick:Ae,onMouseUp:this.onMouseUp,className:"".concat(F,"-input"),tabIndex:he,autoComplete:A,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:on?this.onKeyDown:i,onKeyUp:on?this.onKeyUp:i,autoFocus:Le,maxLength:xe,readOnly:H,disabled:P,max:ie,min:le,step:pe,name:Ye,title:Se,id:Ve,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(hn),pattern:Qe,inputMode:dt,onInput:Ct},pt))))}}]),T}(a.a.Component);n.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:D,min:-D,step:1,style:{},onChange:i,onKeyDown:i,onPressEnter:i,onFocus:i,onBlur:i,parser:l,required:!1,autoComplete:"off"};var _=n,h=re.a=_},dqUG:function(Ge,re,y){var Q=y("Gev7"),W=y("bYtY"),k=y("6GrX"),B=y("pzxd"),O=y("gut8"),R=O.ContextCachedBy,M=function(a){Q.call(this,a)};M.prototype={constructor:M,type:"text",brush:function(a,b){var u=this.style;this.__dirty&&B.normalizeTextStyle(u,!0),u.fill=u.stroke=u.shadowBlur=u.shadowColor=u.shadowOffsetX=u.shadowOffsetY=null;var d=u.text;if(d!=null&&(d+=""),!B.needDrawText(d,u)){a.__attrCachedBy=R.NONE;return}this.setTransform(a),B.renderText(this,a,d,u,null,b),this.restoreTransform(a)},getBoundingRect:function(){var a=this.style;if(this.__dirty&&B.normalizeTextStyle(a,!0),!this._rect){var b=a.text;b!=null?b+="":b="";var u=k.getBoundingRect(a.text+"",a.font,a.textAlign,a.textVerticalAlign,a.textPadding,a.textLineHeight,a.rich);if(u.x+=a.x||0,u.y+=a.y||0,B.getStroke(a.textStroke,a.textStrokeWidth)){var d=a.textStrokeWidth;u.x-=d/2,u.y-=d/2,u.width+=d,u.height+=d}this._rect=u}return this._rect}},W.inherits(M,Q);var p=M;Ge.exports=p},fW2E:function(Ge,re){var y={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function Q(W,k,B){return y.hasOwnProperty(k)?B*=W.dpr:B}Ge.exports=Q},fjLI:function(Ge,re,y){"use strict";y.d(re,"f",function(){return m}),y.d(re,"b",function(){return o}),y.d(re,"a",function(){return c}),y.d(re,"d",function(){return f}),y.d(re,"e",function(){return i}),y.d(re,"c",function(){return t});var Q=y("8HAY"),W=y("Vhoy"),k=y("MI8n"),B=y("JYp7"),O=y("pmY6"),R=y("24hK"),M=y("nnTU"),p=y("T8No"),a=y("Cg/j"),b=y("t9D7"),u=function(l,s,w,D){var C=arguments.length,v=C<3?s:D===null?D=Object.getOwnPropertyDescriptor(s,w):D,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(l,s,w,D);else for(var _=l.length-1;_>=0;_--)(n=l[_])&&(v=(C<3?n(v):C>3?n(s,w,v):n(s,w))||v);return C>3&&v&&Object.defineProperty(s,w,v),v},d=function(l,s){return function(w,D){s(w,D,l)}};function m(l){return l.command!==void 0}class o{constructor(l){this.id=o._idPool++,this._debugName=l}}o._idPool=0,o.CommandPalette=new o("CommandPalette"),o.EditorContext=new o("EditorContext"),o.SimpleEditorContext=new o("SimpleEditorContext"),o.EditorContextCopy=new o("EditorContextCopy"),o.EditorContextPeek=new o("EditorContextPeek"),o.MenubarEditMenu=new o("MenubarEditMenu"),o.MenubarCopy=new o("MenubarCopy"),o.MenubarGoMenu=new o("MenubarGoMenu"),o.MenubarSelectionMenu=new o("MenubarSelectionMenu"),o.InlineCompletionsActions=new o("InlineCompletionsActions");const c=Object(a.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new k.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:l=>l===o.CommandPalette}}addCommand(l){return this.addCommands(B.a.single(l))}addCommands(l){for(const s of l)this._commands.set(s.id,s);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(O.i)(()=>{let s=!1;for(const w of l)s=this._commands.delete(w.id)||s;s&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(l){return this._commands.get(l)}getCommands(){const l=new Map;return this._commands.forEach((s,w)=>l.set(w,s)),l}appendMenuItem(l,s){return this.appendMenuItems(B.a.single({id:l,item:s}))}appendMenuItems(l){const s=new Set,w=new R.a;for(const{id:D,item:C}of l){let v=this._menuItems.get(D);v||(v=new R.a,this._menuItems.set(D,v)),w.push(v.push(C)),s.add(D)}return this._onDidChangeMenu.fire(s),Object(O.i)(()=>{if(w.size>0){for(let D of w)D();this._onDidChangeMenu.fire(s),w.clear()}})}getMenuItems(l){let s;return this._menuItems.has(l)?s=[...this._menuItems.get(l)]:s=[],l===o.CommandPalette&&this._appendImplicitItems(s),s}_appendImplicitItems(l){const s=new Set;for(const w of l)m(w)&&(s.add(w.command.id),w.alt&&s.add(w.alt.id));this._commands.forEach((w,D)=>{s.has(D)||l.push({command:w})})}};class i extends Q.e{constructor(l,s,w,D){super(`submenuitem.${l.submenu.id}`,typeof l.title=="string"?l.title:l.title.value,[],"submenu");this.item=l,this._menuService=s,this._contextKeyService=w,this._options=D}get actions(){const l=[],s=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=s.getActions(this._options);s.dispose();for(const[,D]of w)D.length>0&&(l.push(...D),l.push(new Q.d));return l.length&&l.pop(),l}}let t=class l{constructor(s,w,D,C,v){var n,_;if(this._commandService=v,this.id=s.id,this.label=(D==null?void 0:D.renderShortTitle)&&s.shortTitle?typeof s.shortTitle=="string"?s.shortTitle:s.shortTitle.value:typeof s.title=="string"?s.title:s.title.value,this.tooltip=(_=typeof s.tooltip=="string"?s.tooltip:(n=s.tooltip)===null||n===void 0?void 0:n.value)!==null&&_!==void 0?_:"",this.enabled=!s.precondition||C.contextMatchesRules(s.precondition),this.checked=void 0,s.toggled){const h=s.toggled.condition?s.toggled:{condition:s.toggled};this.checked=C.contextMatchesRules(h.condition),this.checked&&h.tooltip&&(this.tooltip=typeof h.tooltip=="string"?h.tooltip:h.tooltip.value),h.title&&(this.label=typeof h.title=="string"?h.title:h.title.value)}this.item=s,this.alt=w?new l(w,void 0,D,C,v):void 0,this._options=D,b.d.isThemeIcon(s.icon)&&(this.class=W.a.asClassName(s.icon))}dispose(){}run(...s){var w,D;let C=[];return((w=this._options)===null||w===void 0?void 0:w.arg)&&(C=[...C,this._options.arg]),((D=this._options)===null||D===void 0?void 0:D.shouldForwardArgs)&&(C=[...C,...s]),this._commandService.executeCommand(this.id,...C)}};t=u([d(3,p.b),d(4,M.b)],t)},fyJ8:function(Ge,re,y){"use strict";var Q=y("rePB"),W=y("VTBJ"),k=y("Ff2n"),B=y("U8pU"),O=y("q1tI"),R=y.n(O),M=y("TSYQ"),p=y.n(M),a=y("c+Xe"),b=y("sR1s");function u(f){return f&&Object(B.a)(f)==="object"&&!Array.isArray(f)&&!O.isValidElement(f)}function d(f){return typeof f=="string"?!0:Object(a.c)(f)}function m(f,i){var t,l=f.prefixCls,s=f.className,w=f.record,D=f.index,C=f.dataIndex,v=f.render,n=f.children,_=f.component,h=_===void 0?"td":_,g=f.colSpan,x=f.rowSpan,T=f.fixLeft,S=f.fixRight,E=f.firstFixLeft,U=f.lastFixLeft,F=f.firstFixRight,P=f.lastFixRight,H=f.appendNode,N=f.additionalProps,A=N===void 0?{}:N,G=f.ellipsis,K=f.align,$=f.rowType,ie=f.isSticky,le="".concat(l,"-cell"),de,Se;if(n)Se=n;else{var He=Object(b.b)(w,C);if(Se=He,v){var et=v(He,w,D);u(et)?(Se=et.children,de=et.props):Se=et}}Object(B.a)(Se)==="object"&&!Array.isArray(Se)&&!O.isValidElement(Se)&&(Se=null),G&&(U||F)&&(Se=O.createElement("span",{className:"".concat(le,"-content")},Se));var je=de||{},me=je.colSpan,fe=je.rowSpan,Ae=je.style,he=je.className,Ue=Object(k.a)(je,["colSpan","rowSpan","style","className"]),st=me!==void 0?me:g,Ve=fe!==void 0?fe:x;if(st===0||Ve===0)return null;var dt={},Qe=typeof T=="number",pe=typeof S=="number";Qe&&(dt.position="sticky",dt.left=T),pe&&(dt.position="sticky",dt.right=S);var xe={};K&&(xe.textAlign=K);var Le,Ye=G===!0?{showTitle:!0}:G;Ye&&(Ye.showTitle||$==="header")&&(typeof Se=="string"||typeof Se=="number"?Le=Se.toString():O.isValidElement(Se)&&typeof Se.props.children=="string"&&(Le=Se.props.children));var gt=Object(W.a)(Object(W.a)(Object(W.a)({title:Le},Ue),A),{},{colSpan:st&&st!==1?st:null,rowSpan:Ve&&Ve!==1?Ve:null,className:p()(le,s,(t={},Object(Q.a)(t,"".concat(le,"-fix-left"),Qe),Object(Q.a)(t,"".concat(le,"-fix-left-first"),E),Object(Q.a)(t,"".concat(le,"-fix-left-last"),U),Object(Q.a)(t,"".concat(le,"-fix-right"),pe),Object(Q.a)(t,"".concat(le,"-fix-right-first"),F),Object(Q.a)(t,"".concat(le,"-fix-right-last"),P),Object(Q.a)(t,"".concat(le,"-ellipsis"),G),Object(Q.a)(t,"".concat(le,"-with-append"),H),Object(Q.a)(t,"".concat(le,"-fix-sticky"),(Qe||pe)&&ie),t),A.className,he),style:Object(W.a)(Object(W.a)(Object(W.a)(Object(W.a)({},A.style),xe),dt),Ae),ref:d(h)?i:null});return O.createElement(h,Object.assign({},gt),H,Se)}var o=O.forwardRef(m);o.displayName="Cell";var c=O.memo(o,function(f,i){return i.shouldCellUpdate?!i.shouldCellUpdate(i.record,f.record):!1});re.a=c},gut8:function(Ge,re){var y={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Q=9;re.ContextCachedBy=y,re.WILL_BE_RESTORED=Q},h78n:function(Ge,re,y){"use strict";y.d(re,"a",function(){return E});var Q=y("q1tI"),W=y.n(Q),k=y("TSYQ"),B=y.n(k),O={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},R=function(P){var H=P.map(function(){return Object(Q.useRef)()}),N=Object(Q.useRef)();return Object(Q.useEffect)(function(){var A=Date.now(),G=!1;Object.keys(H).forEach(function(K){var $=H[K].current;if(!$)return;G=!0;var ie=$.style;ie.transitionDuration=".3s, .3s, .3s, .06s",N.current&&A-N.current<100&&(ie.transitionDuration="0s, 0s")}),G&&(N.current=Date.now())}),[H]};function M(){return M=Object.assign||function(F){for(var P=1;P1?$-1:0),le=1;le<$;le++)ie[le-1]=arguments[le];N.apply(void 0,[P].concat(ie))}},E.onKeyUp=function(P){var H=E.props.onKeyUp;if(E.stop(),E.recordCursorPosition(),H){for(var N=arguments.length,A=new Array(N>1?N-1:0),G=1;G=0)return parseInt(H.slice(H.indexOf("e-")+2),10);var N=0;return H.indexOf(".")>=0&&(N=H.length-H.indexOf(".")-1),N},E.getInputDisplayValue=function(P){var H=P||E.state,N=H.focused,A=H.inputValue,G=H.value,K;N?K=A:K=E.toPrecisionAsStep(G),K==null&&(K="");var $=E.formatWrapper(K);return C(E.props.decimalSeparator)&&($=$.toString().replace(".",E.props.decimalSeparator)),$},E.recordCursorPosition=function(){try{E.cursorStart=E.input.selectionStart,E.cursorEnd=E.input.selectionEnd,E.currentValue=E.input.value,E.cursorBefore=E.input.value.substring(0,E.cursorStart),E.cursorAfter=E.input.value.substring(E.cursorEnd)}catch(P){}},E.restoreByAfter=function(P){if(P===void 0)return!1;var H=E.input.value,N=H.lastIndexOf(P);if(N===-1)return!1;var A=E.cursorBefore.length;return E.lastKeyCode===d.a.DELETE&&E.cursorBefore.charAt(A-1)===P[0]?(E.fixCaret(A,A),!0):N+P.length===H.length?(E.fixCaret(N,N),!0):!1},E.partRestoreByAfter=function(P){return P===void 0?!1:Array.prototype.some.call(P,function(H,N){var A=P.substring(N);return E.restoreByAfter(A)})},E.isNotCompleteNumber=function(P){return isNaN(P)||P===""||P===null||P&&P.toString().indexOf(".")===P.toString().length-1},E.stop=function(){E.autoStepTimer&&clearTimeout(E.autoStepTimer)},E.down=function(P,H,N){E.pressingUpOrDown=!0,E.step("down",P,H,N)},E.up=function(P,H,N){E.pressingUpOrDown=!0,E.step("up",P,H,N)},E.saveInput=function(P){E.input=P};var U=S.value;U===void 0&&(U=S.defaultValue),E.state={focused:S.autoFocus};var F=E.getValidValue(E.toNumber(U));return E.state=o(o({},E.state),{},{inputValue:E.toPrecisionAsStep(F),value:F}),E}return Object(B.a)(T,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(E){var U=this.props,F=U.value,P=U.onChange,H=U.max,N=U.min,A=this.state.focused;if(E){if(!v(E.value,F)||!v(E.max,H)||!v(E.min,N)){var G=A?F:this.getValidValue(F),K;this.pressingUpOrDown?K=G:this.inputting?K=this.rawInput:K=this.toPrecisionAsStep(G),this.setState({value:G,inputValue:K})}var $="value"in this.props?F:this.state.value;"max"in this.props&&E.max!==H&&typeof $=="number"&&$>H&&P&&P(H),"min"in this.props&&E.min!==N&&typeof $=="number"&&$1&&arguments[1]!==void 0?arguments[1]:this.props.min,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,P=parseFloat(E);return isNaN(P)?E:(PF&&(P=F),P)}},{key:"setValue",value:function(E,U){var F=this.props.precision,P=this.isNotCompleteNumber(parseFloat(E))?null:parseFloat(E),H=this.state.value,N=H===void 0?null:H,A=this.state.inputValue,G=A===void 0?null:A,K=typeof P=="number"?P.toFixed(F):"".concat(P),$=P!==N||K!=="".concat(G);return"value"in this.props?(G=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:G},U)):this.setState({value:P,inputValue:this.toPrecisionAsStep(E)},U),$&&this.props.onChange(P),P}},{key:"getMaxPrecision",value:function(E){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.props,P=F.precision,H=F.step;if(C(P))return P;var N=this.getPrecision(U),A=this.getPrecision(H),G=this.getPrecision(E);return E?Math.max(G,N+A):N+A}},{key:"getPrecisionFactor",value:function(E){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.getMaxPrecision(E,U);return Math.pow(10,F)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(E){return this.props.formatter?this.props.formatter(E):E}},{key:"toPrecisionAsStep",value:function(E){if(this.isNotCompleteNumber(E)||E==="")return E;var U=Math.abs(this.getMaxPrecision(E));return isNaN(U)?E.toString():Number(E).toFixed(U)}},{key:"toNumber",value:function(E){var U=this.props.precision,F=this.state.focused,P=E&&E.length>16&&F;return this.isNotCompleteNumber(E)||P?E:C(U)?Math.round(E*Math.pow(10,U))/Math.pow(10,U):Number(E)}},{key:"upStep",value:function(E,U){var F=this.props.step,P=this.getPrecisionFactor(E,U),H=Math.abs(this.getMaxPrecision(E,U)),N=((P*E+P*F*U)/P).toFixed(H);return this.toNumber(N)}},{key:"downStep",value:function(E,U){var F=this.props.step,P=this.getPrecisionFactor(E,U),H=Math.abs(this.getMaxPrecision(E,U)),N=((P*E-P*F*U)/P).toFixed(H);return this.toNumber(N)}},{key:"step",value:function(E,U){var F=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=arguments.length>3?arguments[3]:void 0;this.stop(),U&&(U.persist(),U.preventDefault());var N=this.props;if(N.disabled)return;var A=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(A))return;var G=this["".concat(E,"Step")](A,P),K=G>N.max||GN.max?G=N.max:G=ie),Xt=(Hn||Hn===0)&&(isNaN(Hn)||Number(Hn)<=le),ht=Ot||P||H,Je=Xt||P||H,rt=u()("".concat(F,"-handler"),"".concat(F,"-handler-up"),Object(W.a)({},"".concat(F,"-handler-up-disabled"),ht)),Te=u()("".concat(F,"-handler"),"".concat(F,"-handler-down"),Object(W.a)({},"".concat(F,"-handler-down-disabled"),Je)),Me=N?{onTouchStart:ht?i:this.up,onTouchEnd:this.stop}:{onMouseDown:ht?i:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ie=N?{onTouchStart:Je?i:this.down,onTouchEnd:this.stop}:{onMouseDown:Je?i:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return a.a.createElement("div",{className:vt,style:de,title:Se,onMouseEnter:He,onMouseLeave:et,onMouseOver:je,onMouseOut:me,onFocus:function(){return null},onBlur:function(){return null}},a.a.createElement("div",{className:"".concat(F,"-handler-wrap")},a.a.createElement("span",Object.assign({unselectable:"on"},Me,{role:"button","aria-label":"Increase Value","aria-disabled":ht,className:rt}),G||a.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-up-inner"),onClick:t})),a.a.createElement("span",Object.assign({unselectable:"on"},Ie,{role:"button","aria-label":"Decrease Value","aria-disabled":Je,className:Te}),K||a.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-down-inner"),onClick:t}))),a.a.createElement("div",{className:"".concat(F,"-input-wrap")},a.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":le,"aria-valuemax":ie,"aria-valuenow":Hn,required:fe,type:Ue,placeholder:st,onPaste:gt,onClick:Ae,onMouseUp:this.onMouseUp,className:"".concat(F,"-input"),tabIndex:he,autoComplete:A,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:on?this.onKeyDown:i,onKeyUp:on?this.onKeyUp:i,autoFocus:Le,maxLength:xe,readOnly:H,disabled:P,max:ie,min:le,step:pe,name:Ye,title:Se,id:Ve,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(hn),pattern:Qe,inputMode:dt,onInput:Ct},mt))))}}]),T}(a.a.Component);n.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:D,min:-D,step:1,style:{},onChange:i,onKeyDown:i,onPressEnter:i,onFocus:i,onBlur:i,parser:l,required:!1,autoComplete:"off"};var _=n,h=re.a=_},dqUG:function(Ge,re,y){var Q=y("Gev7"),W=y("bYtY"),k=y("6GrX"),B=y("pzxd"),O=y("gut8"),R=O.ContextCachedBy,M=function(a){Q.call(this,a)};M.prototype={constructor:M,type:"text",brush:function(a,b){var u=this.style;this.__dirty&&B.normalizeTextStyle(u,!0),u.fill=u.stroke=u.shadowBlur=u.shadowColor=u.shadowOffsetX=u.shadowOffsetY=null;var d=u.text;if(d!=null&&(d+=""),!B.needDrawText(d,u)){a.__attrCachedBy=R.NONE;return}this.setTransform(a),B.renderText(this,a,d,u,null,b),this.restoreTransform(a)},getBoundingRect:function(){var a=this.style;if(this.__dirty&&B.normalizeTextStyle(a,!0),!this._rect){var b=a.text;b!=null?b+="":b="";var u=k.getBoundingRect(a.text+"",a.font,a.textAlign,a.textVerticalAlign,a.textPadding,a.textLineHeight,a.rich);if(u.x+=a.x||0,u.y+=a.y||0,B.getStroke(a.textStroke,a.textStrokeWidth)){var d=a.textStrokeWidth;u.x-=d/2,u.y-=d/2,u.width+=d,u.height+=d}this._rect=u}return this._rect}},W.inherits(M,Q);var p=M;Ge.exports=p},fW2E:function(Ge,re){var y={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function Q(W,k,B){return y.hasOwnProperty(k)?B*=W.dpr:B}Ge.exports=Q},fjLI:function(Ge,re,y){"use strict";y.d(re,"f",function(){return m}),y.d(re,"b",function(){return o}),y.d(re,"a",function(){return c}),y.d(re,"d",function(){return f}),y.d(re,"e",function(){return i}),y.d(re,"c",function(){return t});var Q=y("8HAY"),W=y("Vhoy"),k=y("MI8n"),B=y("JYp7"),O=y("pmY6"),R=y("24hK"),M=y("nnTU"),p=y("T8No"),a=y("Cg/j"),b=y("t9D7"),u=function(l,s,w,D){var C=arguments.length,v=C<3?s:D===null?D=Object.getOwnPropertyDescriptor(s,w):D,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(l,s,w,D);else for(var _=l.length-1;_>=0;_--)(n=l[_])&&(v=(C<3?n(v):C>3?n(s,w,v):n(s,w))||v);return C>3&&v&&Object.defineProperty(s,w,v),v},d=function(l,s){return function(w,D){s(w,D,l)}};function m(l){return l.command!==void 0}class o{constructor(l){this.id=o._idPool++,this._debugName=l}}o._idPool=0,o.CommandPalette=new o("CommandPalette"),o.EditorContext=new o("EditorContext"),o.SimpleEditorContext=new o("SimpleEditorContext"),o.EditorContextCopy=new o("EditorContextCopy"),o.EditorContextPeek=new o("EditorContextPeek"),o.MenubarEditMenu=new o("MenubarEditMenu"),o.MenubarCopy=new o("MenubarCopy"),o.MenubarGoMenu=new o("MenubarGoMenu"),o.MenubarSelectionMenu=new o("MenubarSelectionMenu"),o.InlineCompletionsActions=new o("InlineCompletionsActions");const c=Object(a.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new k.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:l=>l===o.CommandPalette}}addCommand(l){return this.addCommands(B.a.single(l))}addCommands(l){for(const s of l)this._commands.set(s.id,s);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(O.i)(()=>{let s=!1;for(const w of l)s=this._commands.delete(w.id)||s;s&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(l){return this._commands.get(l)}getCommands(){const l=new Map;return this._commands.forEach((s,w)=>l.set(w,s)),l}appendMenuItem(l,s){return this.appendMenuItems(B.a.single({id:l,item:s}))}appendMenuItems(l){const s=new Set,w=new R.a;for(const{id:D,item:C}of l){let v=this._menuItems.get(D);v||(v=new R.a,this._menuItems.set(D,v)),w.push(v.push(C)),s.add(D)}return this._onDidChangeMenu.fire(s),Object(O.i)(()=>{if(w.size>0){for(let D of w)D();this._onDidChangeMenu.fire(s),w.clear()}})}getMenuItems(l){let s;return this._menuItems.has(l)?s=[...this._menuItems.get(l)]:s=[],l===o.CommandPalette&&this._appendImplicitItems(s),s}_appendImplicitItems(l){const s=new Set;for(const w of l)m(w)&&(s.add(w.command.id),w.alt&&s.add(w.alt.id));this._commands.forEach((w,D)=>{s.has(D)||l.push({command:w})})}};class i extends Q.e{constructor(l,s,w,D){super(`submenuitem.${l.submenu.id}`,typeof l.title=="string"?l.title:l.title.value,[],"submenu");this.item=l,this._menuService=s,this._contextKeyService=w,this._options=D}get actions(){const l=[],s=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=s.getActions(this._options);s.dispose();for(const[,D]of w)D.length>0&&(l.push(...D),l.push(new Q.d));return l.length&&l.pop(),l}}let t=class l{constructor(s,w,D,C,v){var n,_;if(this._commandService=v,this.id=s.id,this.label=(D==null?void 0:D.renderShortTitle)&&s.shortTitle?typeof s.shortTitle=="string"?s.shortTitle:s.shortTitle.value:typeof s.title=="string"?s.title:s.title.value,this.tooltip=(_=typeof s.tooltip=="string"?s.tooltip:(n=s.tooltip)===null||n===void 0?void 0:n.value)!==null&&_!==void 0?_:"",this.enabled=!s.precondition||C.contextMatchesRules(s.precondition),this.checked=void 0,s.toggled){const h=s.toggled.condition?s.toggled:{condition:s.toggled};this.checked=C.contextMatchesRules(h.condition),this.checked&&h.tooltip&&(this.tooltip=typeof h.tooltip=="string"?h.tooltip:h.tooltip.value),h.title&&(this.label=typeof h.title=="string"?h.title:h.title.value)}this.item=s,this.alt=w?new l(w,void 0,D,C,v):void 0,this._options=D,b.d.isThemeIcon(s.icon)&&(this.class=W.a.asClassName(s.icon))}dispose(){}run(...s){var w,D;let C=[];return((w=this._options)===null||w===void 0?void 0:w.arg)&&(C=[...C,this._options.arg]),((D=this._options)===null||D===void 0?void 0:D.shouldForwardArgs)&&(C=[...C,...s]),this._commandService.executeCommand(this.id,...C)}};t=u([d(3,p.b),d(4,M.b)],t)},fyJ8:function(Ge,re,y){"use strict";var Q=y("rePB"),W=y("VTBJ"),k=y("Ff2n"),B=y("U8pU"),O=y("q1tI"),R=y.n(O),M=y("TSYQ"),p=y.n(M),a=y("c+Xe"),b=y("sR1s");function u(f){return f&&Object(B.a)(f)==="object"&&!Array.isArray(f)&&!O.isValidElement(f)}function d(f){return typeof f=="string"?!0:Object(a.c)(f)}function m(f,i){var t,l=f.prefixCls,s=f.className,w=f.record,D=f.index,C=f.dataIndex,v=f.render,n=f.children,_=f.component,h=_===void 0?"td":_,g=f.colSpan,x=f.rowSpan,T=f.fixLeft,S=f.fixRight,E=f.firstFixLeft,U=f.lastFixLeft,F=f.firstFixRight,P=f.lastFixRight,H=f.appendNode,N=f.additionalProps,A=N===void 0?{}:N,G=f.ellipsis,K=f.align,$=f.rowType,ie=f.isSticky,le="".concat(l,"-cell"),de,Se;if(n)Se=n;else{var He=Object(b.b)(w,C);if(Se=He,v){var et=v(He,w,D);u(et)?(Se=et.children,de=et.props):Se=et}}Object(B.a)(Se)==="object"&&!Array.isArray(Se)&&!O.isValidElement(Se)&&(Se=null),G&&(U||F)&&(Se=O.createElement("span",{className:"".concat(le,"-content")},Se));var je=de||{},me=je.colSpan,fe=je.rowSpan,Ae=je.style,he=je.className,Ue=Object(k.a)(je,["colSpan","rowSpan","style","className"]),st=me!==void 0?me:g,Ve=fe!==void 0?fe:x;if(st===0||Ve===0)return null;var dt={},Qe=typeof T=="number",pe=typeof S=="number";Qe&&(dt.position="sticky",dt.left=T),pe&&(dt.position="sticky",dt.right=S);var xe={};K&&(xe.textAlign=K);var Le,Ye=G===!0?{showTitle:!0}:G;Ye&&(Ye.showTitle||$==="header")&&(typeof Se=="string"||typeof Se=="number"?Le=Se.toString():O.isValidElement(Se)&&typeof Se.props.children=="string"&&(Le=Se.props.children));var gt=Object(W.a)(Object(W.a)(Object(W.a)({title:Le},Ue),A),{},{colSpan:st&&st!==1?st:null,rowSpan:Ve&&Ve!==1?Ve:null,className:p()(le,s,(t={},Object(Q.a)(t,"".concat(le,"-fix-left"),Qe),Object(Q.a)(t,"".concat(le,"-fix-left-first"),E),Object(Q.a)(t,"".concat(le,"-fix-left-last"),U),Object(Q.a)(t,"".concat(le,"-fix-right"),pe),Object(Q.a)(t,"".concat(le,"-fix-right-first"),F),Object(Q.a)(t,"".concat(le,"-fix-right-last"),P),Object(Q.a)(t,"".concat(le,"-ellipsis"),G),Object(Q.a)(t,"".concat(le,"-with-append"),H),Object(Q.a)(t,"".concat(le,"-fix-sticky"),(Qe||pe)&&ie),t),A.className,he),style:Object(W.a)(Object(W.a)(Object(W.a)(Object(W.a)({},A.style),xe),dt),Ae),ref:d(h)?i:null});return O.createElement(h,Object.assign({},gt),H,Se)}var o=O.forwardRef(m);o.displayName="Cell";var c=O.memo(o,function(f,i){return i.shouldCellUpdate?!i.shouldCellUpdate(i.record,f.record):!1});re.a=c},gut8:function(Ge,re){var y={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Q=9;re.ContextCachedBy=y,re.WILL_BE_RESTORED=Q},h78n:function(Ge,re,y){"use strict";y.d(re,"a",function(){return E});var Q=y("q1tI"),W=y.n(Q),k=y("TSYQ"),B=y.n(k),O={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},R=function(P){var H=P.map(function(){return Object(Q.useRef)()}),N=Object(Q.useRef)();return Object(Q.useEffect)(function(){var A=Date.now(),G=!1;Object.keys(H).forEach(function(K){var $=H[K].current;if(!$)return;G=!0;var ie=$.style;ie.transitionDuration=".3s, .3s, .3s, .06s",N.current&&A-N.current<100&&(ie.transitionDuration="0s, 0s")}),G&&(N.current=Date.now())}),[H]};function M(){return M=Object.assign||function(F){for(var P=1;PF.length)&&(P=F.length);for(var H=0,N=new Array(P);H=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,N))continue;H[N]=F[N]}}return H}function c(F,P){if(F==null)return{};var H={},N=Object.keys(F),A,G;for(G=0;G=0)continue;H[A]=F[A]}return H}var f=function(P){var H=P.className,N=P.percent,A=P.prefixCls,G=P.strokeColor,K=P.strokeLinecap,$=P.strokeWidth,ie=P.style,le=P.trailColor,de=P.trailWidth,Se=P.transition,He=o(P,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete He.gapPosition;var et=Array.isArray(N)?N:[N],je=Array.isArray(G)?G:[G],me=R(et),fe=p(me,1),Ae=fe[0],he=$/2,Ue=100-$/2,st="M ".concat(K==="round"?he:0,",").concat(he,` L `).concat(K==="round"?Ue:100,",").concat(he),Ve="0 0 100 ".concat($),dt=0;return W.a.createElement("svg",M({className:B()("".concat(A,"-line"),H),viewBox:Ve,preserveAspectRatio:"none",style:ie},He),W.a.createElement("path",{className:"".concat(A,"-line-trail"),d:st,strokeLinecap:K,stroke:le,strokeWidth:de||$,fillOpacity:"0"}),et.map(function(Qe,pe){var xe={strokeDasharray:"".concat(Qe,"px, 100px"),strokeDashoffset:"-".concat(dt,"px"),transition:Se||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Le=je[pe]||je[je.length-1];return dt+=Qe,W.a.createElement("path",{key:pe,className:"".concat(A,"-line-path"),d:st,strokeLinecap:K,stroke:Le,strokeWidth:$,fillOpacity:"0",ref:Ae[pe],style:xe})}))};f.defaultProps=O;var i=f;function t(){return t=Object.assign||function(F){for(var P=1;PF.length)&&(P=F.length);for(var H=0,N=new Array(P);H=0)continue;if(!Object.prototype.propertyIsEnumerable.call(F,N))continue;H[N]=F[N]}}return H}function _(F,P){if(F==null)return{};var H={},N=Object.keys(F),A,G;for(G=0;G=0)continue;H[A]=F[A]}return H}var h=0;function g(F){return+F.replace("%","")}function x(F){return Array.isArray(F)?F:[F]}function T(F,P,H,N){var A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,G=arguments.length>5?arguments[5]:void 0,K=50-N/2,$=0,ie=-K,le=0,de=-2*K;switch(G){case"left":$=-K,ie=0,le=2*K,de=0;break;case"right":$=K,ie=0,le=-2*K,de=0;break;case"bottom":ie=K,de=2*K;break;default:}var Se="M 50,50 m ".concat($,",").concat(ie,` a `).concat(K,",").concat(K," 0 1 1 ").concat(le,",").concat(-de,` - a `).concat(K,",").concat(K," 0 1 1 ").concat(-le,",").concat(de),He=Math.PI*2*K,et={stroke:H,strokeDasharray:"".concat(P/100*(He-A),"px ").concat(He,"px"),strokeDashoffset:"-".concat(A/2+F/100*(He-A),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Se,pathStyle:et}}var S=function(P){var H=P.prefixCls,N=P.strokeWidth,A=P.trailWidth,G=P.gapDegree,K=P.gapPosition,$=P.trailColor,ie=P.strokeLinecap,le=P.style,de=P.className,Se=P.strokeColor,He=P.percent,et=n(P,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),je=Object(Q.useMemo)(function(){return h+=1,h},[]),me=T(0,100,$,N,G,K),fe=me.pathString,Ae=me.pathStyle,he=x(He),Ue=x(Se),st=Ue.find(function(xe){return Object.prototype.toString.call(xe)==="[object Object]"}),Ve=R(he),dt=l(Ve,1),Qe=dt[0],pe=function(){var Le=0;return he.map(function(Ye,gt){var Ct=Ue[gt]||Ue[Ue.length-1],tn=Object.prototype.toString.call(Ct)==="[object Object]"?"url(#".concat(H,"-gradient-").concat(je,")"):"",Zt=T(Le,Ye,Ct,N,G,K);return Le+=Ye,W.a.createElement("path",{key:gt,className:"".concat(H,"-circle-path"),d:Zt.pathString,stroke:tn,strokeLinecap:ie,strokeWidth:N,opacity:Ye===0?0:1,fillOpacity:"0",style:Zt.pathStyle,ref:Qe[gt]})})};return W.a.createElement("svg",t({className:B()("".concat(H,"-circle"),de),viewBox:"0 0 100 100",style:le},et),st&&W.a.createElement("defs",null,W.a.createElement("linearGradient",{id:"".concat(H,"-gradient-").concat(je),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(st).sort(function(xe,Le){return g(xe)-g(Le)}).map(function(xe,Le){return W.a.createElement("stop",{key:Le,offset:xe,stopColor:st[xe]})}))),W.a.createElement("path",{className:"".concat(H,"-circle-trail"),d:fe,stroke:$,strokeLinecap:ie,strokeWidth:A||N,fillOpacity:"0",style:Ae}),pe().reverse())};S.defaultProps=O;var E=S,U={Line:i,Circle:E}},h7HQ:function(Ge,re,y){var Q=y("y+Vt"),W=y("T6xi"),k=Q.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(B,O){W.buildPath(B,O,!0)}});Ge.exports=k},hOwI:function(Ge,re){var y=Math.log(2);function Q(k,B,O,R,M,p){var a=R+"-"+M,b=k.length;if(p.hasOwnProperty(a))return p[a];if(B===1){var u=Math.round(Math.log((1<W&&R>B||RO?M:0}Ge.exports=y},i58Z:function(Ge,re,y){Ge.exports={wrap:"wrap___Yg2Z9",addKnowledge:"addKnowledge___2FlI0",disabled:"disabled___1_wxN"}},iXp4:function(Ge,re,y){var Q=y("ItGF"),W=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function k(B){return Q.browser.ie&&Q.browser.version>=11?function(){var O=this.__clipPaths,R=this.style,M;if(O)for(var p=0;p0&&d.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},d.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},G.map(function(me,fe){return d.a.createElement(W.a,{justify:"space-between",style:{marginTop:"10px"},key:me.course_group_id},d.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},me.name),d.a.createElement("img",{src:f.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(P.filter(function(he){return"".concat(he.course_group_name)!="".concat(me.course_group_name)}))}}))})))))};re.a=t},juDX:function(Ge,re,y){y("P47w");var Q=y("aX58"),W=Q.registerPainter,k=y("3CBa");W("svg",k)},k3GJ:function(Ge,re,y){"use strict";y.d(re,"a",function(){return Dn});var Q=y("rePB"),W=y("ODXe"),k=y("Ff2n"),B=y("VTBJ"),O=y("q1tI"),R=y("TSYQ"),M=y.n(R),p=y("Zm9Q"),a=y("6cGi"),b=y("KQm4"),u=y("xEkU"),d=y.n(u),m=y("t23M");function o($e){var vt=Object(O.useRef)(),_t=Object(O.useRef)(!1);function Xe(){for(var Ee=arguments.length,Be=new Array(Ee),Ce=0;CePt&&(bt=Pt-gn),Object(O.useMemo)(function(){if(!Be.length)return[0,0];for(var Qn=Be.length,wa=Qn,tr=0;trit+bt){wa=tr-1;break}}for(var ar=0,Ar=Qn-1;Ar>=0;Ar-=1){var hr=$e.get(Be[Ar].key)||w;if(hr[St]1&&arguments[1]!==void 0?arguments[1]:!1,Xe=vt&&typeof vt.getBoundingClientRect=="function"&&vt.getBoundingClientRect().width;if(Xe){if(_t){var Ee=getComputedStyle(vt),Be=Ee.marginLeft,Ce=Ee.marginRight;Xe+=+Be.replace("px","")+ +Ce.replace("px","")}Xe=+Xe.toFixed(6)}return Xe||0},Le=function(vt,_t,Xe){vt&&Object(F.a)(vt.style)==="object"&&(vt.style[_t]=Xe)},Ye=function(){return he.any},gt=y("bdgK"),Ct=y("i8i4"),tn=y.n(Ct),Zt=y("wgJM"),Hn=y("l4aY"),ia=y("m+aA"),mt=y("c+Xe"),pt=y("zT1h"),on=y("QC+M");function hn($e,vt,_t){return _t?$e[0]===vt[0]:$e[0]===vt[0]&&$e[1]===vt[1]}function Ot($e,vt,_t){var Xe=$e[vt]||{};return Object(B.a)(Object(B.a)({},Xe),_t)}function Xt($e,vt,_t,Xe){for(var Ee=_t.points,Be=Object.keys($e),Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:2;vt();var Be=Object(Zt.a)(function(){Ee<=1?Xe({isCanceled:function(){return Be!==$e.current}}):_t(Xe,Ee-1)});$e.current=Be}return O.useEffect(function(){return function(){vt()}},[]),[_t,vt]},Pe=[qt,Gn,qn,Mt],ye=!1,J=!0;function q($e){return $e===qn||$e===Mt}var Z=function($e,vt){var _t=O.useState(Sn),Xe=Object(W.a)(_t,2),Ee=Xe[0],Be=Xe[1],Ce=Ea(),Ze=Object(W.a)(Ce,2),Ke=Ze[0],St=Ze[1];function it(){Be(qt)}return na(function(){if(Ee!==Sn&&Ee!==Mt){var Pt=Pe.indexOf(Ee),an=Pe[Pt+1],gn=vt(Ee);gn===ye?Be(an):Ke(function(bt){function Qn(){if(bt.isCanceled())return;Be(an)}gn===!0?Qn():Promise.resolve(gn).then(Qn)})}},[$e,Ee]),O.useEffect(function(){return function(){St()}},[]),[it,Ee]},oe=function($e){var vt=Object(O.useRef)(),_t=Object(O.useRef)($e);_t.current=$e;var Xe=O.useCallback(function(Ce){_t.current(Ce)},[]);function Ee(Ce){Ce&&(Ce.removeEventListener(_n,Xe),Ce.removeEventListener(Sa,Xe))}function Be(Ce){vt.current&&vt.current!==Ce&&Ee(vt.current),Ce&&Ce!==vt.current&&(Ce.addEventListener(_n,Xe),Ce.addEventListener(Sa,Xe),vt.current=Ce)}return O.useEffect(function(){return function(){Ee(vt.current)}},[]),[Be,Ee]};function Oe($e,vt,_t,Xe){var Ee=Xe.motionEnter,Be=Ee===void 0?!0:Ee,Ce=Xe.motionAppear,Ze=Ce===void 0?!0:Ce,Ke=Xe.motionLeave,St=Ke===void 0?!0:Ke,it=Xe.motionDeadline,Pt=Xe.motionLeaveImmediately,an=Xe.onAppearPrepare,gn=Xe.onEnterPrepare,bt=Xe.onLeavePrepare,Qn=Xe.onAppearStart,wa=Xe.onEnterStart,tr=Xe.onLeaveStart,Ya=Xe.onAppearActive,ar=Xe.onEnterActive,Ar=Xe.onLeaveActive,hr=Xe.onAppearEnd,sr=Xe.onEnterEnd,va=Xe.onLeaveEnd,_a=Xe.onVisibleChanged,ur=Nn(),Ba=Object(W.a)(ur,2),oa=Ba[0],Ua=Ba[1],Er=Nn(mn),Ka=Object(W.a)(Er,2),yt=Ka[0],qa=Ka[1],Lr=Nn(null),_r=Object(W.a)(Lr,2),Tt=_r[0],pr=_r[1],Yn=Object(O.useRef)(!1),vr=Object(O.useRef)(null),wr=Object(O.useRef)(!1),Xr=Object(O.useRef)(null);function ai(){var jr=_t();return jr||Xr.current}var $r=Object(O.useRef)(!1);function ei(jr){var rr=ai();if(jr&&!jr.deadline&&jr.target!==rr)return;var Rr;yt===Gt&&$r.current?Rr=hr==null?void 0:hr(rr,jr):yt===ze&&$r.current?Rr=sr==null?void 0:sr(rr,jr):yt===ct&&$r.current&&(Rr=va==null?void 0:va(rr,jr)),Rr!==!1&&!wr.current&&(qa(mn),pr(null))}var Or=oe(ei),za=Object(W.a)(Or,1),La=za[0],sa=O.useMemo(function(){var jr,rr,Rr;switch(yt){case"appear":return jr={},Object(Q.a)(jr,qt,an),Object(Q.a)(jr,Gn,Qn),Object(Q.a)(jr,qn,Ya),jr;case"enter":return rr={},Object(Q.a)(rr,qt,gn),Object(Q.a)(rr,Gn,wa),Object(Q.a)(rr,qn,ar),rr;case"leave":return Rr={},Object(Q.a)(Rr,qt,bt),Object(Q.a)(Rr,Gn,tr),Object(Q.a)(Rr,qn,Ar),Rr;default:return{}}},[yt]),In=Z(yt,function(jr){if(jr===qt){var rr=sa[qt];return rr?rr(ai()):ye}if(ka in sa){var Rr;pr(((Rr=sa[ka])===null||Rr===void 0?void 0:Rr.call(sa,ai(),null))||null)}return ka===qn&&(La(ai()),it>0&&(clearTimeout(vr.current),vr.current=setTimeout(function(){ei({deadline:!0})},it))),J}),cr=Object(W.a)(In,2),dr=cr[0],ka=cr[1],kr=q(ka);$r.current=kr,na(function(){Ua(vt);var jr=Yn.current;if(Yn.current=!0,!$e)return;var rr;!jr&&vt&&Ze&&(rr=Gt),jr&&vt&&Be&&(rr=ze),(jr&&!vt&&St||!jr&&Pt&&!vt&&St)&&(rr=ct),rr&&(qa(rr),dr())},[vt]),Object(O.useEffect)(function(){(yt===Gt&&!Ze||yt===ze&&!Be||yt===ct&&!St)&&qa(mn)},[Ze,Be,St]),Object(O.useEffect)(function(){return function(){clearTimeout(vr.current),wr.current=!0}},[]),Object(O.useEffect)(function(){oa!==void 0&&yt===mn&&(_a==null||_a(oa))},[oa,yt]);var Yr=Tt;return sa[qt]&&ka===Gn&&(Yr=Object(B.a)({transition:"none"},Yr)),[yt,ka,Yr,oa!=null?oa:vt]}var Re=function($e){Object(h.a)(_t,$e);var vt=Object(g.a)(_t);function _t(){return Object(v.a)(this,_t),vt.apply(this,arguments)}return Object(n.a)(_t,[{key:"render",value:function(){return this.props.children}}]),_t}(O.Component),ve=Re;function bn($e){var vt=$e;Object(F.a)($e)==="object"&&(vt=$e.transitionSupport);function _t(Ee){return!!(Ee.motionName&&vt)}var Xe=O.forwardRef(function(Ee,Be){var Ce=Ee.visible,Ze=Ce===void 0?!0:Ce,Ke=Ee.removeOnLeave,St=Ke===void 0?!0:Ke,it=Ee.forceRender,Pt=Ee.children,an=Ee.motionName,gn=Ee.leavedClassName,bt=Ee.eventProps,Qn=_t(Ee),wa=Object(O.useRef)(),tr=Object(O.useRef)();function Ya(){try{return Object(ia.a)(wa.current||tr.current)}catch(qa){return null}}var ar=Oe(Qn,Ze,Ya,Ee),Ar=Object(W.a)(ar,4),hr=Ar[0],sr=Ar[1],va=Ar[2],_a=Ar[3],ur=O.useRef(_a);_a&&(ur.current=!0);var Ba=Object(O.useRef)(Be);Ba.current=Be;var oa=O.useCallback(function(qa){wa.current=qa,Object(mt.b)(Ba.current,qa)},[]),Ua,Er=Object(B.a)(Object(B.a)({},bt),{},{visible:Ze});if(!Pt)Ua=null;else if(hr===mn||!_t(Ee))_a?Ua=Pt(Object(B.a)({},Er),oa):!St&&ur.current?Ua=Pt(Object(B.a)(Object(B.a)({},Er),{},{className:gn}),oa):it?Ua=Pt(Object(B.a)(Object(B.a)({},Er),{},{style:{display:"none"}}),oa):Ua=null;else{var Ka,yt;sr===qt?yt="prepare":q(sr)?yt="active":sr===Gn&&(yt="start"),Ua=Pt(Object(B.a)(Object(B.a)({},Er),{},{className:M()(Bt(an,hr),(Ka={},Object(Q.a)(Ka,Bt(an,"".concat(hr,"-").concat(yt)),yt),Object(Q.a)(Ka,an,typeof an=="string"),Ka)),style:va}),oa)}return O.createElement(ve,{ref:tr},Ua)});return Xe.displayName="CSSMotion",Xe}var kt=bn(ta),at="add",Ht="keep",Fe="remove",Un="removed";function Fa($e){var vt;return $e&&Object(F.a)($e)==="object"&&"key"in $e?vt=$e:vt={key:$e},Object(B.a)(Object(B.a)({},vt),{},{key:String(vt.key)})}function fa(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $e.map(Fa)}function ae(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_t=[],Xe=0,Ee=vt.length,Be=fa($e),Ce=fa(vt);Be.forEach(function(St){for(var it=!1,Pt=Xe;Pt1});return Ke.forEach(function(St){_t=_t.filter(function(it){var Pt=it.key,an=it.status;return Pt!==St||an!==Fe}),_t.forEach(function(it){it.key===St&&(it.status=Ht)})}),_t}var z=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Y($e){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kt,_t=function(Xe){Object(h.a)(Be,Xe);var Ee=Object(g.a)(Be);function Be(){var Ce;return Object(v.a)(this,Be),Ce=Ee.apply(this,arguments),Ce.state={keyEntities:[]},Ce.removeKey=function(Ze){Ce.setState(function(Ke){var St=Ke.keyEntities;return{keyEntities:St.map(function(it){return it.key!==Ze?it:Object(B.a)(Object(B.a)({},it),{},{status:Un})})}})},Ce}return Object(n.a)(Be,[{key:"render",value:function(){var Ze=this,Ke=this.state.keyEntities,St=this.props,it=St.component,Pt=St.children,an=St.onVisibleChanged,gn=Object(k.a)(St,["component","children","onVisibleChanged"]),bt=it||O.Fragment,Qn={};return z.forEach(function(wa){Qn[wa]=gn[wa],delete gn[wa]}),delete gn.keys,O.createElement(bt,gn,Ke.map(function(wa){var tr=wa.status,Ya=Object(k.a)(wa,["status"]),ar=tr===at||tr===Ht;return O.createElement(vt,Object(C.a)({},Qn,{key:Ya.key,visible:ar,eventProps:Ya,onVisibleChanged:function(hr){an==null||an(hr,{key:Ya.key}),hr||Ze.removeKey(Ya.key)}}),Pt)}))}}],[{key:"getDerivedStateFromProps",value:function(Ze,Ke){var St=Ze.keys,it=Ke.keyEntities,Pt=fa(St),an=ae(it,Pt);return{keyEntities:an.filter(function(gn){var bt=it.find(function(Qn){var wa=Qn.key;return gn.key===wa});return!(bt&&bt.status===Un&&gn.status===Fe)})}}}]),Be}(O.Component);return _t.defaultProps={component:"div"},_t}var te=Y(ta),_e=kt;function se($e){var vt=$e.prefixCls,_t=$e.motion,Xe=$e.animation,Ee=$e.transitionName;return _t||(Xe?{motionName:"".concat(vt,"-").concat(Xe)}:Ee?{motionName:Ee}:null)}function ut($e){var vt=$e.prefixCls,_t=$e.visible,Xe=$e.zIndex,Ee=$e.mask,Be=$e.maskMotion,Ce=$e.maskAnimation,Ze=$e.maskTransitionName;if(!Ee)return null;var Ke={};return(Be||Ze||Ce)&&(Ke=Object(B.a)({motionAppear:!0},se({motion:Be,prefixCls:vt,transitionName:Ze,animation:Ce}))),O.createElement(_e,Object(C.a)({},Ke,{visible:_t,removeOnLeave:!0}),function(St){var it=St.className;return O.createElement("div",{style:{zIndex:Xe},className:M()("".concat(vt,"-mask"),it)})})}var vn=y("9mu1"),Wn=y("o0o1"),Oa=y.n(Wn),dn=y("HaE+"),Tn=["measure","align",null,"motion"],ya=function($e,vt){var _t=Object(O.useState)(null),Xe=Object(W.a)(_t,2),Ee=Xe[0],Be=Xe[1],Ce=Object(O.useRef)(),Ze=Object(O.useRef)(!1);function Ke(Pt){Ze.current||Be(Pt)}function St(){Zt.a.cancel(Ce.current)}function it(Pt){St(),Ce.current=Object(Zt.a)(function(){Ke(function(an){switch(Ee){case"align":return"motion";case"motion":return"stable";default:}return an}),Pt==null||Pt()})}return Object(O.useEffect)(function(){Ke("measure")},[$e]),Object(O.useEffect)(function(){switch(Ee){case"measure":vt();break;default:}Ee&&(Ce.current=Object(Zt.a)(Object(dn.a)(Oa.a.mark(function Pt(){var an,gn;return Oa.a.wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:an=Tn.indexOf(Ee),gn=Tn[an+1],gn&&an!==-1&&Ke(gn);case 3:case"end":return Qn.stop()}},Pt)}))))},[Ee]),Object(O.useEffect)(function(){return function(){Ze.current=!0,St()}},[]),[Ee,it]},fr=function($e){var vt=O.useState({width:0,height:0}),_t=Object(W.a)(vt,2),Xe=_t[0],Ee=_t[1];function Be(Ze){Ee({width:Ze.offsetWidth,height:Ze.offsetHeight})}var Ce=O.useMemo(function(){var Ze={};if($e){var Ke=Xe.width,St=Xe.height;$e.indexOf("height")!==-1&&St?Ze.height=St:$e.indexOf("minHeight")!==-1&&St&&(Ze.minHeight=St),$e.indexOf("width")!==-1&&Ke?Ze.width=Ke:$e.indexOf("minWidth")!==-1&&Ke&&(Ze.minWidth=Ke)}return Ze},[$e,Xe]);return[Ce,Be]},gr=O.forwardRef(function($e,vt){var _t=$e.visible,Xe=$e.prefixCls,Ee=$e.className,Be=$e.style,Ce=$e.children,Ze=$e.zIndex,Ke=$e.stretch,St=$e.destroyPopupOnHide,it=$e.forceRender,Pt=$e.align,an=$e.point,gn=$e.getRootDomNode,bt=$e.getClassNameFromAlign,Qn=$e.onAlign,wa=$e.onMouseEnter,tr=$e.onMouseLeave,Ya=$e.onMouseDown,ar=$e.onTouchStart,Ar=Object(O.useRef)(),hr=Object(O.useRef)(),sr=Object(O.useState)(),va=Object(W.a)(sr,2),_a=va[0],ur=va[1],Ba=fr(Ke),oa=Object(W.a)(Ba,2),Ua=oa[0],Er=oa[1];function Ka(){Ke&&Er(gn())}var yt=ya(_t,Ka),qa=Object(W.a)(yt,2),Lr=qa[0],_r=qa[1],Tt=Object(O.useRef)();function pr(){return an||gn}function Yn(){var Or;(Or=Ar.current)===null||Or===void 0||Or.forceAlign()}function vr(Or,za){var La=bt(za);_a!==La&&ur(La),Lr==="align"&&(_a!==La?Promise.resolve().then(function(){Yn()}):_r(function(){var sa;(sa=Tt.current)===null||sa===void 0||sa.call(Tt)}),Qn==null||Qn(Or,za))}var wr=Object(B.a)({},se($e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Or){var za=wr[Or];wr[Or]=function(La,sa){return _r(),za==null?void 0:za(La,sa)}});function Xr(){return new Promise(function(Or){Tt.current=Or})}O.useEffect(function(){!wr.motionName&&Lr==="motion"&&_r()},[wr.motionName,Lr]),O.useImperativeHandle(vt,function(){return{forceAlign:Yn,getElement:function(){return hr.current}}});var ai=Object(B.a)(Object(B.a)({},Ua),{},{zIndex:Ze,opacity:Lr==="motion"||Lr==="stable"||!_t?void 0:0,pointerEvents:Lr==="stable"?void 0:"none"},Be),$r=!0;(Pt==null?void 0:Pt.points)&&(Lr==="align"||Lr==="stable")&&($r=!1);var ei=Ce;return O.Children.count(Ce)>1&&(ei=O.createElement("div",{className:"".concat(Xe,"-content")},Ce)),O.createElement(_e,Object(C.a)({visible:_t,ref:hr,leavedClassName:"".concat(Xe,"-hidden")},wr,{onAppearPrepare:Xr,onEnterPrepare:Xr,removeOnLeave:St,forceRender:it}),function(Or,za){var La=Or.className,sa=Or.style,In=M()(Xe,Ee,_a,La);return O.createElement(vn.a,{target:pr(),key:"popup",ref:Ar,monitorWindowResize:!0,disabled:$r,align:Pt,onAlign:vr},O.createElement("div",{ref:za,className:In,onMouseEnter:wa,onMouseLeave:tr,onMouseDownCapture:Ya,onTouchStartCapture:ar,style:Object(B.a)(Object(B.a)({},sa),ai)},ei))})});gr.displayName="PopupInner";var ir=gr,Qa=O.forwardRef(function($e,vt){var _t=$e.prefixCls,Xe=$e.visible,Ee=$e.zIndex,Be=$e.children,Ce=$e.mobile;Ce=Ce===void 0?{}:Ce;var Ze=Ce.popupClassName,Ke=Ce.popupStyle,St=Ce.popupMotion,it=St===void 0?{}:St,Pt=Ce.popupRender,an=O.useRef();O.useImperativeHandle(vt,function(){return{forceAlign:function(){},getElement:function(){return an.current}}});var gn=Object(B.a)({zIndex:Ee},Ke),bt=Be;return O.Children.count(Be)>1&&(bt=O.createElement("div",{className:"".concat(_t,"-content")},Be)),Pt&&(bt=Pt(bt)),O.createElement(_e,Object(C.a)({visible:Xe,ref:an,removeOnLeave:!0},it),function(Qn,wa){var tr=Qn.className,Ya=Qn.style,ar=M()(_t,Ze,tr);return O.createElement("div",{ref:wa,className:ar,style:Object(B.a)(Object(B.a)({},Ya),gn)},bt)})});Qa.displayName="MobilePopupInner";var ba=Qa,Na=["visible","mobile"],Ma=O.forwardRef(function($e,vt){var _t=$e.visible,Xe=$e.mobile,Ee=Object(k.a)($e,Na),Be=Object(O.useState)(_t),Ce=Object(W.a)(Be,2),Ze=Ce[0],Ke=Ce[1],St=Object(O.useState)(!1),it=Object(W.a)(St,2),Pt=it[0],an=it[1],gn=Object(B.a)(Object(B.a)({},Ee),{},{visible:Ze});Object(O.useEffect)(function(){Ke(_t),_t&&Xe&&an(ht())},[_t,Xe]);var bt=Pt?O.createElement(ba,Object(C.a)({},gn,{mobile:Xe,ref:vt})):O.createElement(ir,Object(C.a)({},gn,{ref:vt}));return O.createElement("div",null,O.createElement(ut,gn),bt)});Ma.displayName="Popup";var Jt=Ma,Rt=O.createContext(null),An=Rt;function aa(){}function ra(){return""}function Fn($e){return $e?$e.ownerDocument:window.document}var da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ta($e){var vt=function(_t){Object(h.a)(Ee,_t);var Xe=Object(g.a)(Ee);function Ee(Be){var Ce;Object(v.a)(this,Ee),Ce=Xe.call(this,Be),Ce.popupRef=O.createRef(),Ce.triggerRef=O.createRef(),Ce.attachId=void 0,Ce.clickOutsideHandler=void 0,Ce.touchOutsideHandler=void 0,Ce.contextMenuOutsideHandler1=void 0,Ce.contextMenuOutsideHandler2=void 0,Ce.mouseDownTimeout=void 0,Ce.focusTime=void 0,Ce.preClickTime=void 0,Ce.preTouchTime=void 0,Ce.delayTimer=void 0,Ce.hasPopupMouseDown=void 0,Ce.onMouseEnter=function(Ke){var St=Ce.props.mouseEnterDelay;Ce.fireEvents("onMouseEnter",Ke),Ce.delaySetPopupVisible(!0,St,St?null:Ke)},Ce.onMouseMove=function(Ke){Ce.fireEvents("onMouseMove",Ke),Ce.setPoint(Ke)},Ce.onMouseLeave=function(Ke){Ce.fireEvents("onMouseLeave",Ke),Ce.delaySetPopupVisible(!1,Ce.props.mouseLeaveDelay)},Ce.onPopupMouseEnter=function(){Ce.clearDelayTimer()},Ce.onPopupMouseLeave=function(Ke){var St;if(Ke.relatedTarget&&!Ke.relatedTarget.setTimeout&&Object(Hn.a)((St=Ce.popupRef.current)===null||St===void 0?void 0:St.getElement(),Ke.relatedTarget))return;Ce.delaySetPopupVisible(!1,Ce.props.mouseLeaveDelay)},Ce.onFocus=function(Ke){Ce.fireEvents("onFocus",Ke),Ce.clearDelayTimer(),Ce.isFocusToShow()&&(Ce.focusTime=Date.now(),Ce.delaySetPopupVisible(!0,Ce.props.focusDelay))},Ce.onMouseDown=function(Ke){Ce.fireEvents("onMouseDown",Ke),Ce.preClickTime=Date.now()},Ce.onTouchStart=function(Ke){Ce.fireEvents("onTouchStart",Ke),Ce.preTouchTime=Date.now()},Ce.onBlur=function(Ke){Ce.fireEvents("onBlur",Ke),Ce.clearDelayTimer(),Ce.isBlurToHide()&&Ce.delaySetPopupVisible(!1,Ce.props.blurDelay)},Ce.onContextMenu=function(Ke){Ke.preventDefault(),Ce.fireEvents("onContextMenu",Ke),Ce.setPopupVisible(!0,Ke)},Ce.onContextMenuClose=function(){Ce.isContextMenuToShow()&&Ce.close()},Ce.onClick=function(Ke){if(Ce.fireEvents("onClick",Ke),Ce.focusTime){var St;if(Ce.preClickTime&&Ce.preTouchTime?St=Math.min(Ce.preClickTime,Ce.preTouchTime):Ce.preClickTime?St=Ce.preClickTime:Ce.preTouchTime&&(St=Ce.preTouchTime),Math.abs(St-Ce.focusTime)<20)return;Ce.focusTime=0}Ce.preClickTime=0,Ce.preTouchTime=0,Ce.isClickToShow()&&(Ce.isClickToHide()||Ce.isBlurToHide())&&Ke&&Ke.preventDefault&&Ke.preventDefault();var it=!Ce.state.popupVisible;(Ce.isClickToHide()&&!it||it&&Ce.isClickToShow())&&Ce.setPopupVisible(!Ce.state.popupVisible,Ke)},Ce.onPopupMouseDown=function(){if(Ce.hasPopupMouseDown=!0,clearTimeout(Ce.mouseDownTimeout),Ce.mouseDownTimeout=window.setTimeout(function(){Ce.hasPopupMouseDown=!1},0),Ce.context){var Ke;(Ke=Ce.context).onPopupMouseDown.apply(Ke,arguments)}},Ce.onDocumentClick=function(Ke){if(Ce.props.mask&&!Ce.props.maskClosable)return;var St=Ke.target,it=Ce.getRootDomNode(),Pt=Ce.getPopupDomNode();(!Object(Hn.a)(it,St)||Ce.isContextMenuOnly())&&!Object(Hn.a)(Pt,St)&&!Ce.hasPopupMouseDown&&Ce.close()},Ce.getRootDomNode=function(){var Ke=Ce.props.getTriggerDOMNode;if(Ke)return Ke(Ce.triggerRef.current);try{var St=Object(ia.a)(Ce.triggerRef.current);if(St)return St}catch(it){}return tn.a.findDOMNode(Object(_.a)(Ce))},Ce.getPopupClassNameFromAlign=function(Ke){var St=[],it=Ce.props,Pt=it.popupPlacement,an=it.builtinPlacements,gn=it.prefixCls,bt=it.alignPoint,Qn=it.getPopupClassNameFromAlign;return Pt&&an&&St.push(Xt(an,gn,Ke,bt)),Qn&&St.push(Qn(Ke)),St.join(" ")},Ce.getComponent=function(){var Ke=Ce.props,St=Ke.prefixCls,it=Ke.destroyPopupOnHide,Pt=Ke.popupClassName,an=Ke.onPopupAlign,gn=Ke.popupMotion,bt=Ke.popupAnimation,Qn=Ke.popupTransitionName,wa=Ke.popupStyle,tr=Ke.mask,Ya=Ke.maskAnimation,ar=Ke.maskTransitionName,Ar=Ke.maskMotion,hr=Ke.zIndex,sr=Ke.popup,va=Ke.stretch,_a=Ke.alignPoint,ur=Ke.mobile,Ba=Ke.forceRender,oa=Ce.state,Ua=oa.popupVisible,Er=oa.point,Ka=Ce.getPopupAlign(),yt={};return Ce.isMouseEnterToShow()&&(yt.onMouseEnter=Ce.onPopupMouseEnter),Ce.isMouseLeaveToHide()&&(yt.onMouseLeave=Ce.onPopupMouseLeave),yt.onMouseDown=Ce.onPopupMouseDown,yt.onTouchStart=Ce.onPopupMouseDown,O.createElement(Jt,Object(C.a)({prefixCls:St,destroyPopupOnHide:it,visible:Ua,point:_a&&Er,className:Pt,align:Ka,onAlign:an,animation:bt,getClassNameFromAlign:Ce.getPopupClassNameFromAlign},yt,{stretch:va,getRootDomNode:Ce.getRootDomNode,style:wa,mask:tr,zIndex:hr,transitionName:Qn,maskAnimation:Ya,maskTransitionName:ar,maskMotion:Ar,ref:Ce.popupRef,motion:gn,mobile:ur,forceRender:Ba}),typeof sr=="function"?sr():sr)},Ce.attachParent=function(Ke){Zt.a.cancel(Ce.attachId);var St=Ce.props,it=St.getPopupContainer,Pt=St.getDocument,an=Ce.getRootDomNode(),gn;it?(an||it.length===0)&&(gn=it(an)):gn=Pt(Ce.getRootDomNode()).body,gn?gn.appendChild(Ke):Ce.attachId=Object(Zt.a)(function(){Ce.attachParent(Ke)})},Ce.getContainer=function(){var Ke=Ce.props.getDocument,St=Ke(Ce.getRootDomNode()).createElement("div");return St.style.position="absolute",St.style.top="0",St.style.left="0",St.style.width="100%",Ce.attachParent(St),St},Ce.setPoint=function(Ke){var St=Ce.props.alignPoint;if(!St||!Ke)return;Ce.setState({point:{pageX:Ke.pageX,pageY:Ke.pageY}})},Ce.handlePortalUpdate=function(){Ce.state.prevPopupVisible!==Ce.state.popupVisible&&Ce.props.afterPopupVisibleChange(Ce.state.popupVisible)},Ce.triggerContextValue={onPopupMouseDown:Ce.onPopupMouseDown};var Ze;return"popupVisible"in Be?Ze=!!Be.popupVisible:Ze=!!Be.defaultPopupVisible,Ce.state={prevPopupVisible:Ze,popupVisible:Ze},da.forEach(function(Ke){Ce["fire".concat(Ke)]=function(St){Ce.fireEvents(Ke,St)}}),Ce}return Object(n.a)(Ee,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ce=this.props,Ze=this.state;if(Ze.popupVisible){var Ke;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ke=Ce.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(pt.a)(Ke,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ke=Ke||Ce.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(pt.a)(Ke,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ke=Ke||Ce.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(pt.a)(Ke,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(pt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Zt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Ce;return((Ce=this.popupRef.current)===null||Ce===void 0?void 0:Ce.getElement())||null}},{key:"getPopupAlign",value:function(){var Ce=this.props,Ze=Ce.popupPlacement,Ke=Ce.popupAlign,St=Ce.builtinPlacements;return Ze&&St?Ot(St,Ze,Ke):Ke}},{key:"setPopupVisible",value:function(Ce,Ze){var Ke=this.props.alignPoint,St=this.state.popupVisible;this.clearDelayTimer(),St!==Ce&&("popupVisible"in this.props||this.setState({popupVisible:Ce,prevPopupVisible:St}),this.props.onPopupVisibleChange(Ce)),Ke&&Ze&&Ce&&this.setPoint(Ze)}},{key:"delaySetPopupVisible",value:function(Ce,Ze,Ke){var St=this,it=Ze*1e3;if(this.clearDelayTimer(),it){var Pt=Ke?{pageX:Ke.pageX,pageY:Ke.pageY}:null;this.delayTimer=window.setTimeout(function(){St.setPopupVisible(Ce,Pt),St.clearDelayTimer()},it)}else this.setPopupVisible(Ce,Ke)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Ce){var Ze=this.props.children.props,Ke=this.props;return Ze[Ce]&&Ke[Ce]?this["fire".concat(Ce)]:Ze[Ce]||Ke[Ce]}},{key:"isClickToShow",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.showAction;return Ze.indexOf("click")!==-1||Ke.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Ce=this.props.action;return Ce==="contextMenu"||Ce.length===1&&Ce[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.showAction;return Ze.indexOf("contextMenu")!==-1||Ke.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.hideAction;return Ze.indexOf("click")!==-1||Ke.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.showAction;return Ze.indexOf("hover")!==-1||Ke.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.hideAction;return Ze.indexOf("hover")!==-1||Ke.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.showAction;return Ze.indexOf("focus")!==-1||Ke.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.hideAction;return Ze.indexOf("focus")!==-1||Ke.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Ce;(Ce=this.popupRef.current)===null||Ce===void 0||Ce.forceAlign()}}},{key:"fireEvents",value:function(Ce,Ze){var Ke=this.props.children.props[Ce];Ke&&Ke(Ze);var St=this.props[Ce];St&&St(Ze)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ce=this.state.popupVisible,Ze=this.props,Ke=Ze.children,St=Ze.forceRender,it=Ze.alignPoint,Pt=Ze.className,an=Ze.autoDestroy,gn=O.Children.only(Ke),bt={key:"trigger"};this.isContextMenuToShow()?bt.onContextMenu=this.onContextMenu:bt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(bt.onClick=this.onClick,bt.onMouseDown=this.onMouseDown,bt.onTouchStart=this.onTouchStart):(bt.onClick=this.createTwoChains("onClick"),bt.onMouseDown=this.createTwoChains("onMouseDown"),bt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(bt.onMouseEnter=this.onMouseEnter,it&&(bt.onMouseMove=this.onMouseMove)):bt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?bt.onMouseLeave=this.onMouseLeave:bt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(bt.onFocus=this.onFocus,bt.onBlur=this.onBlur):(bt.onFocus=this.createTwoChains("onFocus"),bt.onBlur=this.createTwoChains("onBlur"));var Qn=M()(gn&&gn.props&&gn.props.className,Pt);Qn&&(bt.className=Qn);var wa=Object(B.a)({},bt);Object(mt.c)(gn)&&(wa.ref=Object(mt.a)(this.triggerRef,gn.ref));var tr=O.cloneElement(gn,wa),Ya;return(Ce||this.popupRef.current||St)&&(Ya=O.createElement($e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ce&&an&&(Ya=null),O.createElement(An.Provider,{value:this.triggerContextValue},tr,Ya)}}],[{key:"getDerivedStateFromProps",value:function(Ce,Ze){var Ke=Ce.popupVisible,St={};return Ke!==void 0&&Ze.popupVisible!==Ke&&(St.popupVisible=Ke,St.prevPopupVisible=Ze.popupVisible),St}}]),Ee}(O.Component);return vt.contextType=An,vt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ra,getDocument:Fn,onPopupVisibleChange:aa,afterPopupVisibleChange:aa,onPopupAlign:aa,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},vt}var Wa=Ta(on.a),ue={adjustX:1,adjustY:1},ot={topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ue,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ue,offset:[4,0]}},lt={topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ue,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ue,offset:[4,0]}},ft=ot,wt=0,Et={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},jt=function(vt,_t,Xe){var Ee=Ve(_t),Be=vt.getState();vt.setState({defaultActiveFirst:Object(B.a)(Object(B.a)({},Be.defaultActiveFirst),{},Object(Q.a)({},Ee,Xe))})},Yt=function($e){Object(h.a)(_t,$e);var vt=Object(g.a)(_t);function _t(Xe){var Ee;Object(v.a)(this,_t),Ee=vt.call(this,Xe),Ee.onDestroy=function(it){Ee.props.onDestroy(it)},Ee.onKeyDown=function(it){var Pt=it.keyCode,an=Ee.menuInstance,gn=Ee.props.store,bt=Ee.getVisible();if(Pt===f.a.ENTER)return Ee.onTitleClick(it),jt(gn,Ee.props.eventKey,!0),!0;if(Pt===f.a.RIGHT)return bt?an.onKeyDown(it):(Ee.triggerOpenChange(!0),jt(gn,Ee.props.eventKey,!0)),!0;if(Pt===f.a.LEFT){var Qn;if(bt)Qn=an.onKeyDown(it);else return;return Qn||(Ee.triggerOpenChange(!1),Qn=!0),Qn}return bt&&(Pt===f.a.UP||Pt===f.a.DOWN)?an.onKeyDown(it):void 0},Ee.onOpenChange=function(it){Ee.props.onOpenChange(it)},Ee.onPopupVisibleChange=function(it){Ee.triggerOpenChange(it,it?"mouseenter":"mouseleave")},Ee.onMouseEnter=function(it){var Pt=Ee.props,an=Pt.eventKey,gn=Pt.onMouseEnter,bt=Pt.store;jt(bt,Ee.props.eventKey,!1),gn({key:an,domEvent:it})},Ee.onMouseLeave=function(it){var Pt=Ee.props,an=Pt.parentMenu,gn=Pt.eventKey,bt=Pt.onMouseLeave;an.subMenuInstance=Object(_.a)(Ee),bt({key:gn,domEvent:it})},Ee.onTitleMouseEnter=function(it){var Pt=Ee.props,an=Pt.eventKey,gn=Pt.onItemHover,bt=Pt.onTitleMouseEnter;gn({key:an,hover:!0}),bt({key:an,domEvent:it})},Ee.onTitleMouseLeave=function(it){var Pt=Ee.props,an=Pt.parentMenu,gn=Pt.eventKey,bt=Pt.onItemHover,Qn=Pt.onTitleMouseLeave;an.subMenuInstance=Object(_.a)(Ee),bt({key:gn,hover:!1}),Qn({key:gn,domEvent:it})},Ee.onTitleClick=function(it){var Pt=Object(_.a)(Ee),an=Pt.props;if(an.onTitleClick({key:an.eventKey,domEvent:it}),an.triggerSubMenuAction==="hover")return;Ee.triggerOpenChange(!Ee.getVisible(),"click"),jt(an.store,Ee.props.eventKey,!1)},Ee.onSubMenuClick=function(it){typeof Ee.props.onClick=="function"&&Ee.props.onClick(Ee.addKeyPath(it))},Ee.onSelect=function(it){Ee.props.onSelect(it)},Ee.onDeselect=function(it){Ee.props.onDeselect(it)},Ee.getPrefixCls=function(){return"".concat(Ee.props.rootPrefixCls,"-submenu")},Ee.getActiveClassName=function(){return"".concat(Ee.getPrefixCls(),"-active")},Ee.getDisabledClassName=function(){return"".concat(Ee.getPrefixCls(),"-disabled")},Ee.getSelectedClassName=function(){return"".concat(Ee.getPrefixCls(),"-selected")},Ee.getOpenClassName=function(){return"".concat(Ee.props.rootPrefixCls,"-submenu-open")},Ee.getVisible=function(){return Ee.state.isOpen},Ee.getMode=function(){return Ee.state.mode},Ee.saveMenuInstance=function(it){Ee.menuInstance=it},Ee.addKeyPath=function(it){return Object(B.a)(Object(B.a)({},it),{},{keyPath:(it.keyPath||[]).concat(Ee.props.eventKey)})},Ee.triggerOpenChange=function(it,Pt){var an=Ee.props.eventKey,gn=function(){Ee.onOpenChange({key:an,item:Object(_.a)(Ee),trigger:Pt,open:it})};Pt==="mouseenter"?Ee.mouseenterTimeout=setTimeout(function(){gn()},0):gn()},Ee.isChildrenSelected=function(){var it={find:!1};return Qe(Ee.props.children,Ee.props.selectedKeys,it),it.find},Ee.isInlineMode=function(){return Ee.getMode()==="inline"},Ee.adjustWidth=function(){if(!Ee.subMenuTitle||!Ee.menuInstance)return;var it=Ct.findDOMNode(Ee.menuInstance);if(it.offsetWidth>=Ee.subMenuTitle.offsetWidth)return;it.style.minWidth="".concat(Ee.subMenuTitle.offsetWidth,"px")},Ee.saveSubMenuTitle=function(it){Ee.subMenuTitle=it},Ee.getBaseProps=function(){var it=Object(_.a)(Ee),Pt=it.props,an=Ee.getMode();return{mode:an==="horizontal"?"vertical":an,visible:Ee.getVisible(),level:Pt.level+1,inlineIndent:Pt.inlineIndent,focusable:!1,onClick:Ee.onSubMenuClick,onSelect:Ee.onSelect,onDeselect:Ee.onDeselect,onDestroy:Ee.onDestroy,selectedKeys:Pt.selectedKeys,eventKey:"".concat(Pt.eventKey,"-menu-"),openKeys:Pt.openKeys,motion:Pt.motion,onOpenChange:Ee.onOpenChange,subMenuOpenDelay:Pt.subMenuOpenDelay,parentMenu:Object(_.a)(Ee),subMenuCloseDelay:Pt.subMenuCloseDelay,forceSubMenuRender:Pt.forceSubMenuRender,triggerSubMenuAction:Pt.triggerSubMenuAction,builtinPlacements:Pt.builtinPlacements,defaultActiveFirst:Pt.store.getState().defaultActiveFirst[Ve(Pt.eventKey)],multiple:Pt.multiple,prefixCls:Pt.rootPrefixCls,id:Ee.internalMenuId,manualRef:Ee.saveMenuInstance,itemIcon:Pt.itemIcon,expandIcon:Pt.expandIcon,direction:Pt.direction}},Ee.getMotion=function(it,Pt){var an=Object(_.a)(Ee),gn=an.haveRendered,bt=Ee.props,Qn=bt.motion,wa=bt.rootPrefixCls,tr=Object(B.a)(Object(B.a)({},Qn),{},{leavedClassName:"".concat(wa,"-hidden"),removeOnLeave:!1,motionAppear:gn||!Pt||it!=="inline"});return tr};var Be=Xe.store,Ce=Xe.eventKey,Ze=Be.getState(),Ke=Ze.defaultActiveFirst;Ee.isRootMenu=!1;var St=!1;return Ke&&(St=Ke[Ce]),jt(Be,Ce,St),Ee.state={mode:Xe.mode,isOpen:Xe.isOpen},Ee}return Object(n.a)(_t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ee=this,Be=this.props,Ce=Be.mode,Ze=Be.parentMenu,Ke=Be.manualRef,St=Be.isOpen,it=function(){Ee.setState({mode:Ce,isOpen:St})},Pt=St!==this.state.isOpen,an=Ce!==this.state.mode;if((an||Pt)&&(Zt.a.cancel(this.updateStateRaf),an?this.updateStateRaf=Object(Zt.a)(it):it()),Ke&&Ke(this),Ce!=="horizontal"||!(Ze==null?void 0:Ze.isRootMenu)||!St)return;this.minWidthTimeout=setTimeout(function(){return Ee.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ee=this.props,Be=Ee.onDestroy,Ce=Ee.eventKey;Be&&Be(Ce),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Zt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Ee,Be){var Ce=this.getBaseProps();return O.createElement(Vn,Object(C.a)({},Ce,{id:this.internalMenuId,className:Ee,style:Be}),this.props.children)}},{key:"renderChildren",value:function(){var Ee=this,Be=this.getBaseProps(),Ce=Be.mode,Ze=Be.visible,Ke=Be.forceSubMenuRender,St=Be.direction,it=this.getMotion(Ce,Ze);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ze||Ke,!this.haveOpened)return O.createElement("div",null);var Pt=M()("".concat(Be.prefixCls,"-sub"),Object(Q.a)({},"".concat(Be.prefixCls,"-rtl"),St==="rtl"));return this.isInlineMode()?O.createElement(_e,Object(C.a)({visible:Be.visible,forceRender:Ke},it),function(an){var gn=an.className,bt=an.style,Qn=M()(Pt,gn);return Ee.renderPopupMenu(Qn,bt)}):this.renderPopupMenu(Pt)}},{key:"render",value:function(){var Ee,Be,Ce,Ze=Object(B.a)({},this.props),Ke=this.getVisible(),St=this.getPrefixCls(),it=this.isInlineMode(),Pt=this.getMode(),an=M()(St,"".concat(St,"-").concat(Pt),(Ee={},Object(Q.a)(Ee,Ze.className,!!Ze.className),Object(Q.a)(Ee,this.getOpenClassName(),Ke),Object(Q.a)(Ee,this.getActiveClassName(),Ze.active||Ke&&!it),Object(Q.a)(Ee,this.getDisabledClassName(),Ze.disabled),Object(Q.a)(Ee,this.getSelectedClassName(),this.isChildrenSelected()),Ee));this.internalMenuId||(Ze.eventKey?this.internalMenuId="".concat(Ze.eventKey,"$Menu"):(wt+=1,this.internalMenuId="$__$".concat(wt,"$Menu")));var gn={},bt={},Qn={};Ze.disabled||(gn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},bt={onClick:this.onTitleClick},Qn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var wa={},tr=Ze.direction,Ya=tr==="rtl";it&&(Ya?wa.paddingRight=Ze.inlineIndent*Ze.level:wa.paddingLeft=Ze.inlineIndent*Ze.level);var ar={};this.getVisible()&&(ar={"aria-owns":this.internalMenuId});var Ar=null;Pt!=="horizontal"&&(Ar=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ar=O.createElement(this.props.expandIcon,Object(B.a)({},this.props))));var hr=O.createElement("div",Object(C.a)({ref:this.saveSubMenuTitle,style:wa,className:"".concat(St,"-title"),role:"button"},Qn,bt,{"aria-expanded":Ke},ar,{"aria-haspopup":"true",title:typeof Ze.title=="string"?Ze.title:void 0}),Ze.title,Ar||O.createElement("i",{className:"".concat(St,"-arrow")})),sr=this.renderChildren(),va=((Be=Ze.parentMenu)===null||Be===void 0?void 0:Be.isRootMenu)?Ze.parentMenu.props.getPopupContainer:function(pr){return pr.parentNode},_a=Et[Pt],ur=Ze.popupOffset?{offset:Ze.popupOffset}:{},Ba=M()((Ce={},Object(Q.a)(Ce,Ze.popupClassName,Ze.popupClassName&&!it),Object(Q.a)(Ce,"".concat(St,"-rtl"),Ya),Ce)),oa=Ze.disabled,Ua=Ze.triggerSubMenuAction,Er=Ze.subMenuOpenDelay,Ka=Ze.forceSubMenuRender,yt=Ze.subMenuCloseDelay,qa=Ze.builtinPlacements;pe.forEach(function(pr){return delete Ze[pr]}),delete Ze.onClick;var Lr=Ya?Object(B.a)(Object(B.a)({},lt),qa):Object(B.a)(Object(B.a)({},ot),qa);delete Ze.direction;var _r=this.getBaseProps(),Tt=it?null:this.getMotion(_r.mode,_r.visible);return O.createElement("li",Object(C.a)({},Ze,gn,{className:an,role:"menuitem"}),O.createElement(Wa,{prefixCls:St,popupClassName:M()("".concat(St,"-popup"),Ba),getPopupContainer:va,builtinPlacements:Lr,popupPlacement:_a,popupVisible:it?!1:Ke,popupAlign:ur,popup:it?null:sr,action:oa||it?[]:[Ua],mouseEnterDelay:Er,mouseLeaveDelay:yt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ka,popupMotion:Tt},hr),it?sr:null)}}]),_t}(O.Component);Yt.defaultProps={onMouseEnter:Ue,onMouseLeave:Ue,onTitleMouseEnter:Ue,onTitleMouseLeave:Ue,onTitleClick:Ue,manualRef:Ue,mode:"vertical",title:""};var wn=Object(x.b)(function($e,vt){var _t=$e.openKeys,Xe=$e.activeKey,Ee=$e.selectedKeys,Be=vt.eventKey,Ce=vt.subMenuKey;return{isOpen:_t.indexOf(Be)>-1,active:Xe[Ce]===Be,selectedKeys:Ee}})(Yt);wn.isSubMenu=!0;var fn=wn,zn="menuitem-overflowed",jn=.5,$t=function($e){Object(h.a)(_t,$e);var vt=Object(g.a)(_t);function _t(){var Xe;return Object(v.a)(this,_t),Xe=vt.apply(this,arguments),Xe.resizeObserver=null,Xe.mutationObserver=null,Xe.originalTotalWidth=0,Xe.overflowedItems=[],Xe.menuItemSizes=[],Xe.cancelFrameId=null,Xe.state={lastVisibleIndex:void 0},Xe.childRef=O.createRef(),Xe.getMenuItemNodes=function(){var Ee=Xe.props.prefixCls,Be=Xe.childRef.current;return Be?[].slice.call(Be.children).filter(function(Ce){return Ce.className.split(" ").indexOf("".concat(Ee,"-overflowed-submenu"))<0}):[]},Xe.getOverflowedSubMenuItem=function(Ee,Be,Ce){var Ze=Xe.props,Ke=Ze.overflowedIndicator,St=Ze.level,it=Ze.mode,Pt=Ze.prefixCls,an=Ze.theme;if(St!==1||it!=="horizontal")return null;var gn=Xe.props.children[0],bt=gn.props,Qn=bt.children,wa=bt.title,tr=bt.style,Ya=Object(k.a)(bt,["children","title","style"]),ar=Object(B.a)({},tr),Ar="".concat(Ee,"-overflowed-indicator"),hr="".concat(Ee,"-overflowed-indicator");Be.length===0&&Ce!==!0?ar=Object(B.a)(Object(B.a)({},ar),{},{display:"none"}):Ce&&(ar=Object(B.a)(Object(B.a)({},ar),{},{visibility:"hidden",position:"absolute"}),Ar="".concat(Ar,"-placeholder"),hr="".concat(hr,"-placeholder"));var sr=an?"".concat(Pt,"-").concat(an):"",va={};return pe.forEach(function(_a){Ya[_a]!==void 0&&(va[_a]=Ya[_a])}),O.createElement(fn,Object(C.a)({title:Ke,className:"".concat(Pt,"-overflowed-submenu"),popupClassName:sr},va,{key:Ar,eventKey:hr,disabled:!1,style:ar}),Be)},Xe.setChildrenWidthAndResize=function(){if(Xe.props.mode!=="horizontal")return;var Ee=Xe.childRef.current;if(!Ee)return;var Be=Ee.children;if(!Be||Be.length===0)return;var Ce=Ee.children[Be.length-1];Le(Ce,"display","inline-block");var Ze=Xe.getMenuItemNodes(),Ke=Ze.filter(function(St){return St.className.split(" ").indexOf(zn)>=0});Ke.forEach(function(St){Le(St,"display","inline-block")}),Xe.menuItemSizes=Ze.map(function(St){return xe(St,!0)}),Ke.forEach(function(St){Le(St,"display","none")}),Xe.overflowedIndicatorWidth=xe(Ee.children[Ee.children.length-1],!0),Xe.originalTotalWidth=Xe.menuItemSizes.reduce(function(St,it){return St+it},0),Xe.handleResize(),Le(Ce,"display","none")},Xe.handleResize=function(){if(Xe.props.mode!=="horizontal")return;var Ee=Xe.childRef.current;if(!Ee)return;var Be=xe(Ee);Xe.overflowedItems=[];var Ce=0,Ze;Xe.originalTotalWidth>Be+jn&&(Ze=-1,Xe.menuItemSizes.forEach(function(Ke){Ce+=Ke,Ce+Xe.overflowedIndicatorWidth<=Be&&(Ze+=1)})),Xe.setState({lastVisibleIndex:Ze})},Xe}return Object(n.a)(_t,[{key:"componentDidMount",value:function(){var Ee=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Be=this.childRef.current;if(!Be)return;this.resizeObserver=new gt.default(function(Ce){Ce.forEach(function(){var Ze=Ee.cancelFrameId;cancelAnimationFrame(Ze),Ee.cancelFrameId=requestAnimationFrame(Ee.setChildrenWidthAndResize)})}),[].slice.call(Be.children).concat(Be).forEach(function(Ce){Ee.resizeObserver.observe(Ce)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ee.resizeObserver.disconnect(),[].slice.call(Be.children).concat(Be).forEach(function(Ce){Ee.resizeObserver.observe(Ce)}),Ee.setChildrenWidthAndResize()}),this.mutationObserver.observe(Be,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Ee){var Be=this,Ce=this.state.lastVisibleIndex;return(Ee||[]).reduce(function(Ze,Ke,St){var it=Ke;if(Be.props.mode==="horizontal"){var Pt=Be.getOverflowedSubMenuItem(Ke.props.eventKey,[]);Ce!==void 0&&Be.props.className.indexOf("".concat(Be.props.prefixCls,"-root"))!==-1&&(St>Ce&&(it=O.cloneElement(Ke,{style:{display:"none"},eventKey:"".concat(Ke.props.eventKey,"-hidden"),className:"".concat(zn)})),St===Ce+1&&(Be.overflowedItems=Ee.slice(Ce+1).map(function(gn){return O.cloneElement(gn,{key:gn.props.eventKey,mode:"vertical-left"})}),Pt=Be.getOverflowedSubMenuItem(Ke.props.eventKey,Be.overflowedItems)));var an=[].concat(Object(b.a)(Ze),[Pt,it]);return St===Ee.length-1&&an.push(Be.getOverflowedSubMenuItem(Ke.props.eventKey,[],!0)),an}return[].concat(Object(b.a)(Ze),[it])},[])}},{key:"render",value:function(){var Ee=this.props,Be=Ee.visible,Ce=Ee.prefixCls,Ze=Ee.overflowedIndicator,Ke=Ee.mode,St=Ee.level,it=Ee.tag,Pt=Ee.children,an=Ee.theme,gn=Object(k.a)(Ee,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),bt=it;return O.createElement(bt,Object(C.a)({ref:this.childRef},gn),this.renderChildren(Pt))}}]),_t}(O.Component);$t.defaultProps={tag:"div",className:""};var yn=$t;function pn($e){return $e.length?$e.every(function(vt){return!!vt.props.disabled}):!0}function On($e,vt,_t){var Xe=$e.getState();$e.setState({activeKey:Object(B.a)(Object(B.a)({},Xe.activeKey),{},Object(Q.a)({},vt,_t))})}function cn($e){return $e.eventKey||"0-menu-"}function sn($e,vt){var _t=vt,Xe=$e.children,Ee=$e.eventKey;if(_t){var Be;if(dt(Xe,function(Ce,Ze){Ce&&Ce.props&&!Ce.props.disabled&&_t===st(Ce,Ee,Ze)&&(Be=!0)}),Be)return _t}return _t=null,$e.defaultActiveFirst&&dt(Xe,function(Ce,Ze){!_t&&Ce&&!Ce.props.disabled&&(_t=st(Ce,Ee,Ze))}),_t}function En($e){if(!$e)return;var vt=this.instanceArray.indexOf($e);vt!==-1?this.instanceArray[vt]=$e:this.instanceArray.push($e)}var Pn=function($e){Object(h.a)(_t,$e);var vt=Object(g.a)(_t);function _t(Xe){var Ee;return Object(v.a)(this,_t),Ee=vt.call(this,Xe),Ee.onKeyDown=function(Be,Ce){var Ze=Be.keyCode,Ke;if(Ee.getFlatInstanceArray().forEach(function(it){it&&it.props.active&&it.onKeyDown&&(Ke=it.onKeyDown(Be))}),Ke)return 1;var St=null;return(Ze===f.a.UP||Ze===f.a.DOWN)&&(St=Ee.step(Ze===f.a.UP?-1:1)),St?(Be.preventDefault(),On(Ee.props.store,cn(Ee.props),St.props.eventKey),typeof Ce=="function"&&Ce(St),1):void 0},Ee.onItemHover=function(Be){var Ce=Be.key,Ze=Be.hover;On(Ee.props.store,cn(Ee.props),Ze?Ce:null)},Ee.onDeselect=function(Be){Ee.props.onDeselect(Be)},Ee.onSelect=function(Be){Ee.props.onSelect(Be)},Ee.onClick=function(Be){Ee.props.onClick(Be)},Ee.onOpenChange=function(Be){Ee.props.onOpenChange(Be)},Ee.onDestroy=function(Be){Ee.props.onDestroy(Be)},Ee.getFlatInstanceArray=function(){return Ee.instanceArray},Ee.step=function(Be){var Ce=Ee.getFlatInstanceArray(),Ze=Ee.props.store.getState().activeKey[cn(Ee.props)],Ke=Ce.length;if(!Ke)return null;Be<0&&(Ce=Ce.concat().reverse());var St=-1;if(Ce.every(function(gn,bt){return gn&&gn.props.eventKey===Ze?(St=bt,!1):!0}),!Ee.props.defaultActiveFirst&&St!==-1&&pn(Ce.slice(St,Ke-1)))return;var it=(St+1)%Ke,Pt=it;do{var an=Ce[Pt];if(!an||an.props.disabled)Pt=(Pt+1)%Ke;else return an}while(Pt!==it);return null},Ee.renderCommonMenuItem=function(Be,Ce,Ze){var Ke=Ee.props.store.getState(),St=Object(_.a)(Ee),it=St.props,Pt=st(Be,it.eventKey,Ce),an=Be.props;if(!an||typeof Be.type=="string")return Be;var gn=Pt===Ke.activeKey,bt=Object(B.a)(Object(B.a)({mode:an.mode||it.mode,level:it.level,inlineIndent:it.inlineIndent,renderMenuItem:Ee.renderMenuItem,rootPrefixCls:it.prefixCls,index:Ce,parentMenu:it.parentMenu,manualRef:an.disabled?void 0:Object(S.a)(Be.ref,En.bind(Object(_.a)(Ee))),eventKey:Pt,active:!an.disabled&&gn,multiple:it.multiple,onClick:function(wa){(an.onClick||Ue)(wa),Ee.onClick(wa)},onItemHover:Ee.onItemHover,motion:it.motion,subMenuOpenDelay:it.subMenuOpenDelay,subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,onOpenChange:Ee.onOpenChange,onDeselect:Ee.onDeselect,onSelect:Ee.onSelect,builtinPlacements:it.builtinPlacements,itemIcon:an.itemIcon||Ee.props.itemIcon,expandIcon:an.expandIcon||Ee.props.expandIcon},Ze),{},{direction:it.direction});return(it.mode==="inline"||Ye())&&(bt.triggerSubMenuAction="click"),O.cloneElement(Be,Object(B.a)(Object(B.a)({},bt),{},{key:Pt||Ce}))},Ee.renderMenuItem=function(Be,Ce,Ze){if(!Be)return null;var Ke=Ee.props.store.getState(),St={openKeys:Ke.openKeys,selectedKeys:Ke.selectedKeys,triggerSubMenuAction:Ee.props.triggerSubMenuAction,subMenuKey:Ze};return Ee.renderCommonMenuItem(Be,Ce,St)},Xe.store.setState({activeKey:Object(B.a)(Object(B.a)({},Xe.store.getState().activeKey),{},Object(Q.a)({},Xe.eventKey,sn(Xe,Xe.activeKey)))}),Ee.instanceArray=[],Ee}return Object(n.a)(_t,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ee){return this.props.visible||Ee.visible||this.props.className!==Ee.className||!U()(this.props.style,Ee.style)}},{key:"componentDidUpdate",value:function(Ee){var Be=this.props,Ce="activeKey"in Be?Be.activeKey:Be.store.getState().activeKey[cn(Be)],Ze=sn(Be,Ce);if(Ze!==Ce)On(Be.store,cn(Be),Ze);else if("activeKey"in Ee){var Ke=sn(Ee,Ee.activeKey);Ze!==Ke&&On(Be.store,cn(Be),Ze)}}},{key:"render",value:function(){var Ee=this,Be=Object(C.a)({},this.props);this.instanceArray=[];var Ce=M()(Be.prefixCls,Be.className,"".concat(Be.prefixCls,"-").concat(Be.mode)),Ze={className:Ce,role:Be.role||"menu"};Be.id&&(Ze.id=Be.id),Be.focusable&&(Ze.tabIndex=0,Ze.onKeyDown=this.onKeyDown);var Ke=Be.prefixCls,St=Be.eventKey,it=Be.visible,Pt=Be.level,an=Be.mode,gn=Be.overflowedIndicator,bt=Be.theme;return pe.forEach(function(Qn){return delete Be[Qn]}),delete Be.onClick,O.createElement(yn,Object(C.a)({},Be,{prefixCls:Ke,mode:an,tag:"ul",level:Pt,theme:bt,visible:it,overflowedIndicator:gn},Ze),Object(p.a)(Be.children).map(function(Qn,wa){return Ee.renderMenuItem(Qn,wa,St||"0-menu-")}))}}]),_t}(O.Component);Pn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ue};var Kn=Object(x.b)()(Pn),Vn=Kn,ua=y("Kwbf");function xa($e,vt,_t){var Xe=$e.prefixCls,Ee=$e.motion,Be=$e.defaultMotions,Ce=Be===void 0?{}:Be,Ze=$e.openAnimation,Ke=$e.openTransitionName,St=vt.switchingModeFromInline;if(Ee)return Ee;if(Object(F.a)(Ze)==="object"&&Ze)Object(ua.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ze=="string")return{motionName:"".concat(Xe,"-open-").concat(Ze)};if(Ke)return{motionName:Ke};var it=Ce[_t];return it||(St?null:Ce.other)}var rn=function($e){Object(h.a)(_t,$e);var vt=Object(g.a)(_t);function _t(Xe){var Ee;Object(v.a)(this,_t),Ee=vt.call(this,Xe),Ee.onSelect=function(Ze){var Ke=Object(_.a)(Ee),St=Ke.props;if(St.selectable){var it=Ee.store.getState(),Pt=it.selectedKeys,an=Ze.key;St.multiple?Pt=Pt.concat([an]):Pt=[an],"selectedKeys"in St||Ee.store.setState({selectedKeys:Pt}),St.onSelect(Object(B.a)(Object(B.a)({},Ze),{},{selectedKeys:Pt}))}},Ee.onClick=function(Ze){var Ke=Ee.getRealMenuMode(),St=Object(_.a)(Ee),it=St.store,Pt=St.props.onOpenChange;Ke!=="inline"&&!("openKeys"in Ee.props)&&(it.setState({openKeys:[]}),Pt([])),Ee.props.onClick(Ze)},Ee.onKeyDown=function(Ze,Ke){Ee.innerMenu.getWrappedInstance().onKeyDown(Ze,Ke)},Ee.onOpenChange=function(Ze){var Ke=Object(_.a)(Ee),St=Ke.props,it=Ee.store.getState().openKeys.concat(),Pt=!1,an=function(bt){var Qn=!1;if(bt.open)Qn=it.indexOf(bt.key)===-1,Qn&&it.push(bt.key);else{var wa=it.indexOf(bt.key);Qn=wa!==-1,Qn&&it.splice(wa,1)}Pt=Pt||Qn};Array.isArray(Ze)?Ze.forEach(an):an(Ze),Pt&&("openKeys"in Ee.props||Ee.store.setState({openKeys:it}),St.onOpenChange(it))},Ee.onDeselect=function(Ze){var Ke=Object(_.a)(Ee),St=Ke.props;if(St.selectable){var it=Ee.store.getState().selectedKeys.concat(),Pt=Ze.key,an=it.indexOf(Pt);an!==-1&&it.splice(an,1),"selectedKeys"in St||Ee.store.setState({selectedKeys:it}),St.onDeselect(Object(B.a)(Object(B.a)({},Ze),{},{selectedKeys:it}))}},Ee.onMouseEnter=function(Ze){Ee.restoreModeVerticalFromInline();var Ke=Ee.props.onMouseEnter;Ke&&Ke(Ze)},Ee.onTransitionEnd=function(Ze){var Ke=Ze.propertyName==="width"&&Ze.target===Ze.currentTarget,St=Ze.target.className,it=Object.prototype.toString.call(St)==="[object SVGAnimatedString]"?St.animVal:St,Pt=Ze.propertyName==="font-size"&&it.indexOf("anticon")>=0;(Ke||Pt)&&Ee.restoreModeVerticalFromInline()},Ee.setInnerMenu=function(Ze){Ee.innerMenu=Ze},Ee.isRootMenu=!0;var Be=Xe.defaultSelectedKeys,Ce=Xe.defaultOpenKeys;return"selectedKeys"in Xe&&(Be=Xe.selectedKeys||[]),"openKeys"in Xe&&(Ce=Xe.openKeys||[]),Ee.store=Object(x.c)({selectedKeys:Be,openKeys:Ce,activeKey:{"0-menu-":sn(Xe,Xe.activeKey)}}),Ee.state={switchingModeFromInline:!1,prevProps:Xe,inlineOpenKeys:[],store:Ee.store},Ee}return Object(n.a)(_t,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ee){var Be=this.props,Ce=Be.siderCollapsed,Ze=Be.inlineCollapsed,Ke=Be.onOpenChange;(!Ee.inlineCollapsed&&Ze||!Ee.siderCollapsed&&Ce)&&Ke([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Ee=this.props.collapsedWidth,Be=this.store,Ce=this.prevOpenKeys,Ze=this.getInlineCollapsed()&&(Ee===0||Ee==="0"||Ee==="0px");Ze?(this.prevOpenKeys=Be.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ce&&(this.store.setState({openKeys:Ce}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ee=this.props.mode,Be=this.state.switchingModeFromInline,Ce=this.getInlineCollapsed();return Be&&Ce?"inline":Ce?"vertical":Ee}},{key:"getInlineCollapsed",value:function(){var Ee=this.props,Be=Ee.inlineCollapsed,Ce=Ee.siderCollapsed;return Ce!==void 0?Ce:Be}},{key:"restoreModeVerticalFromInline",value:function(){var Ee=this.state.switchingModeFromInline;Ee&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Ee=Object(B.a)({},Object(T.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Be=this.getRealMenuMode();return Ee.className+=" ".concat(Ee.prefixCls,"-root"),Ee.direction==="rtl"&&(Ee.className+=" ".concat(Ee.prefixCls,"-rtl")),Ee=Object(B.a)(Object(B.a)({},Ee),{},{mode:Be,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:xa(this.props,this.state,Be)}),delete Ee.openAnimation,delete Ee.openTransitionName,O.createElement(x.a,{store:this.store},O.createElement(Vn,Object(C.a)({},Ee,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Ee,Be){var Ce=Be.prevProps,Ze=Be.store,Ke=Ze.getState(),St={},it={prevProps:Ee};return Ce.mode==="inline"&&Ee.mode!=="inline"&&(it.switchingModeFromInline=!0),"openKeys"in Ee?St.openKeys=Ee.openKeys||[]:((Ee.inlineCollapsed&&!Ce.inlineCollapsed||Ee.siderCollapsed&&!Ce.siderCollapsed)&&(it.switchingModeFromInline=!0,it.inlineOpenKeys=Ke.openKeys,St.openKeys=[]),(!Ee.inlineCollapsed&&Ce.inlineCollapsed||!Ee.siderCollapsed&&Ce.siderCollapsed)&&(St.openKeys=Be.inlineOpenKeys,it.inlineOpenKeys=[])),Object.keys(St).length&&Ze.setState(St),it}}]),_t}(O.Component);rn.defaultProps={selectable:!0,onClick:Ue,onSelect:Ue,onOpenChange:Ue,onDeselect:Ue,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:O.createElement("span",null,"\xB7\xB7\xB7")};var Vt=rn,Dt=function($e){Object(h.a)(_t,$e);var vt=Object(g.a)(_t);function _t(){var Xe;return Object(v.a)(this,_t),Xe=vt.apply(this,arguments),Xe.onKeyDown=function(Ee){var Be=Ee.keyCode;return Be===f.a.ENTER?(Xe.onClick(Ee),!0):void 0},Xe.onMouseLeave=function(Ee){var Be=Xe.props,Ce=Be.eventKey,Ze=Be.onItemHover,Ke=Be.onMouseLeave;Ze({key:Ce,hover:!1}),Ke({key:Ce,domEvent:Ee})},Xe.onMouseEnter=function(Ee){var Be=Xe.props,Ce=Be.eventKey,Ze=Be.onItemHover,Ke=Be.onMouseEnter;Ze({key:Ce,hover:!0}),Ke({key:Ce,domEvent:Ee})},Xe.onClick=function(Ee){var Be=Xe.props,Ce=Be.eventKey,Ze=Be.multiple,Ke=Be.onClick,St=Be.onSelect,it=Be.onDeselect,Pt=Be.isSelected,an={key:Ce,keyPath:[Ce],item:Object(_.a)(Xe),domEvent:Ee};Ke(an),Ze?Pt?it(an):St(an):Pt||St(an)},Xe.saveNode=function(Ee){Xe.node=Ee},Xe}return Object(n.a)(_t,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ee=this.props;Ee.onDestroy&&Ee.onDestroy(Ee.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Ee,Be=Object(B.a)({},this.props),Ce=M()(this.getPrefixCls(),Be.className,(Ee={},Object(Q.a)(Ee,this.getActiveClassName(),!Be.disabled&&Be.active),Object(Q.a)(Ee,this.getSelectedClassName(),Be.isSelected),Object(Q.a)(Ee,this.getDisabledClassName(),Be.disabled),Ee)),Ze=Object(B.a)(Object(B.a)({},Be.attribute),{},{title:typeof Be.title=="string"?Be.title:void 0,className:Ce,role:Be.role||"menuitem","aria-disabled":Be.disabled});Be.role==="option"?Ze=Object(B.a)(Object(B.a)({},Ze),{},{role:"option","aria-selected":Be.isSelected}):(Be.role===null||Be.role==="none")&&(Ze.role="none");var Ke={onClick:Be.disabled?null:this.onClick,onMouseLeave:Be.disabled?null:this.onMouseLeave,onMouseEnter:Be.disabled?null:this.onMouseEnter},St=Object(B.a)({},Be.style);Be.mode==="inline"&&(Be.direction==="rtl"?St.paddingRight=Be.inlineIndent*Be.level:St.paddingLeft=Be.inlineIndent*Be.level),pe.forEach(function(Pt){return delete Be[Pt]}),delete Be.direction;var it=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(it=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object(C.a)({},Object(T.a)(Be,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ze,Ke,{style:St,ref:this.saveNode}),Be.children,it)}}]),_t}(O.Component);Dt.isMenuItem=!0,Dt.defaultProps={onSelect:Ue,onMouseEnter:Ue,onMouseLeave:Ue,manualRef:Ue};var zt=Object(x.b)(function($e,vt){var _t=$e.activeKey,Xe=$e.selectedKeys,Ee=vt.eventKey,Be=vt.subMenuKey;return{active:_t[Be]===Ee,isSelected:Array.isArray(Xe)?Xe.indexOf(Ee)!==-1:Xe===Ee}})(Dt),xt=zt,ln=function($e){Object(h.a)(_t,$e);var vt=Object(g.a)(_t);function _t(){var Xe;return Object(v.a)(this,_t),Xe=vt.apply(this,arguments),Xe.renderInnerMenuItem=function(Ee){var Be=Xe.props,Ce=Be.renderMenuItem,Ze=Be.index;return Ce(Ee,Ze,Xe.props.subMenuKey)},Xe}return Object(n.a)(_t,[{key:"render",value:function(){var Ee=Object(C.a)({},this.props),Be=Ee.className,Ce=Be===void 0?"":Be,Ze=Ee.rootPrefixCls,Ke="".concat(Ze,"-item-group-title"),St="".concat(Ze,"-item-group-list"),it=Ee.title,Pt=Ee.children;return pe.forEach(function(an){return delete Ee[an]}),delete Ee.direction,O.createElement("li",Object(C.a)({},Ee,{onClick:function(gn){return gn.stopPropagation()},className:"".concat(Ce," ").concat(Ze,"-item-group")}),O.createElement("div",{className:Ke,title:typeof it=="string"?it:void 0},it),O.createElement("ul",{className:St},O.Children.map(Pt,this.renderInnerMenuItem)))}}]),_t}(O.Component);ln.isMenuItemGroup=!0,ln.defaultProps={disabled:!0};var Kt=ln,Xn=function(vt){var _t=vt.className,Xe=vt.rootPrefixCls,Ee=vt.style;return O.createElement("li",{className:"".concat(_t," ").concat(Xe,"-item-divider"),style:Ee})};Xn.defaultProps={disabled:!0,className:"",style:{}};var ha=Xn,Jn=Vt,Aa=y("eDIo");function Zn($e,vt){var _t=$e.prefixCls,Xe=$e.editable,Ee=$e.locale,Be=$e.style;return!Xe||Xe.showAdd===!1?null:O.createElement("button",{ref:vt,type:"button",className:"".concat(_t,"-nav-add"),style:Be,"aria-label":(Ee==null?void 0:Ee.addAriaLabel)||"Add tab",onClick:function(Ze){Xe.onEdit("add",{event:Ze})}},Xe.addIcon||"+")}var ea=O.forwardRef(Zn);function er($e,vt){var _t=$e.prefixCls,Xe=$e.id,Ee=$e.tabs,Be=$e.locale,Ce=$e.mobile,Ze=$e.moreIcon,Ke=Ze===void 0?"More":Ze,St=$e.moreTransitionName,it=$e.style,Pt=$e.className,an=$e.editable,gn=$e.tabBarGutter,bt=$e.rtl,Qn=$e.onTabClick,wa=Object(O.useState)(!1),tr=Object(W.a)(wa,2),Ya=tr[0],ar=tr[1],Ar=Object(O.useState)(null),hr=Object(W.a)(Ar,2),sr=hr[0],va=hr[1],_a="".concat(Xe,"-more-popup"),ur="".concat(_t,"-dropdown"),Ba=sr!==null?"".concat(_a,"-").concat(sr):null,oa=Be==null?void 0:Be.dropdownAriaLabel,Ua=O.createElement(Jn,{onClick:function(Tt){var pr=Tt.key,Yn=Tt.domEvent;Qn(pr,Yn),ar(!1)},id:_a,tabIndex:-1,role:"listbox","aria-activedescendant":Ba,selectedKeys:[sr],"aria-label":oa!==void 0?oa:"expanded dropdown"},Ee.map(function(_r){return O.createElement(xt,{key:_r.key,id:"".concat(_a,"-").concat(_r.key),role:"option","aria-controls":Xe&&"".concat(Xe,"-panel-").concat(_r.key),disabled:_r.disabled},_r.tab)}));function Er(_r){for(var Tt=Ee.filter(function(Xr){return!Xr.disabled}),pr=Tt.findIndex(function(Xr){return Xr.key===sr})||0,Yn=Tt.length,vr=0;vrqa?(Ka=Ua,_a.current="x"):(Ka=Er,_a.current="y");var Lr=Date.now();Lr-sr.current>100&&(va.current=!1),(vt(-Ka,-Ka)||va.current)&&(oa.preventDefault(),va.current=!0),sr.current=Lr}var Ba=Object(O.useRef)(null);Ba.current={onTouchStart:ar,onTouchMove:Ar,onTouchEnd:hr,onWheel:ur},O.useEffect(function(){function oa(yt){Ba.current.onTouchStart(yt)}function Ua(yt){Ba.current.onTouchMove(yt)}function Er(yt){Ba.current.onTouchEnd(yt)}function Ka(yt){Ba.current.onWheel(yt)}return document.addEventListener("touchmove",Ua,{passive:!1}),document.addEventListener("touchend",Er,{passive:!1}),$e.current.addEventListener("touchstart",oa,{passive:!1}),$e.current.addEventListener("wheel",Ka),function(){document.removeEventListener("touchmove",Ua),document.removeEventListener("touchend",Er)}},[])}function Wt(){var $e=Object(O.useRef)(new Map);function vt(Xe){return $e.current.has(Xe)||$e.current.set(Xe,O.createRef()),$e.current.get(Xe)}function _t(Xe){$e.current.delete(Xe)}return[vt,_t]}function Rn($e,vt){var _t=O.useRef($e),Xe=O.useState({}),Ee=Object(W.a)(Xe,2),Be=Ee[1];function Ce(Ze){var Ke=typeof Ze=="function"?Ze(_t.current):Ze;Ke!==_t.current&&vt(Ke,_t.current),_t.current=Ke,Be({})}return[_t.current,Ce]}var Ra=function(vt){var _t=vt.position,Xe=vt.prefixCls,Ee=vt.extra;if(!Ee)return null;var Be,Ce=Ee;return _t==="right"&&(Be=Ce.right||!Ce.left&&Ce||null),_t==="left"&&(Be=Ce.left||null),Be?O.createElement("div",{className:"".concat(Xe,"-extra-content")},Be):null};function la($e,vt){var _t,Xe=O.useContext(Sr),Ee=Xe.prefixCls,Be=Xe.tabs,Ce=$e.className,Ze=$e.style,Ke=$e.id,St=$e.animated,it=$e.activeKey,Pt=$e.rtl,an=$e.extra,gn=$e.editable,bt=$e.locale,Qn=$e.tabPosition,wa=$e.tabBarGutter,tr=$e.children,Ya=$e.onTabClick,ar=$e.onTabScroll,Ar=Object(O.useRef)(),hr=Object(O.useRef)(),sr=Object(O.useRef)(),va=Object(O.useRef)(),_a=Wt(),ur=Object(W.a)(_a,2),Ba=ur[0],oa=ur[1],Ua=Qn==="top"||Qn==="bottom",Er=Rn(0,function(Kr,$a){Ua&&ar&&ar({direction:Kr>$a?"left":"right"})}),Ka=Object(W.a)(Er,2),yt=Ka[0],qa=Ka[1],Lr=Rn(0,function(Kr,$a){!Ua&&ar&&ar({direction:Kr>$a?"top":"bottom"})}),_r=Object(W.a)(Lr,2),Tt=_r[0],pr=_r[1],Yn=Object(O.useState)(0),vr=Object(W.a)(Yn,2),wr=vr[0],Xr=vr[1],ai=Object(O.useState)(0),$r=Object(W.a)(ai,2),ei=$r[0],Or=$r[1],za=Object(O.useState)(0),La=Object(W.a)(za,2),sa=La[0],In=La[1],cr=Object(O.useState)(0),dr=Object(W.a)(cr,2),ka=dr[0],kr=dr[1],Yr=Object(O.useState)(null),jr=Object(W.a)(Yr,2),rr=jr[0],Rr=jr[1],ti=Object(O.useState)(null),ri=Object(W.a)(ti,2),hi=ri[0],pi=ri[1],mi=Object(O.useState)(0),Ei=Object(W.a)(mi,2),ao=Ei[0],_o=Ei[1],So=Object(O.useState)(0),$i=Object(W.a)(So,2),eo=$i[0],ro=$i[1],io=c(new Map),Yi=Object(W.a)(io,2),bo=Yi[0],co=Yi[1],oo=s(Be,bo,wr),zi="".concat(Ee,"-nav-operations-hidden"),Xi=0,gi=0;Ua?Pt?(Xi=0,gi=Math.max(0,wr-rr)):(Xi=Math.min(0,rr-wr),gi=0):(Xi=Math.min(0,hi-ei),gi=0);function yi(Kr){return Krgi?[gi,!1]:[Kr,!0]}var Br=Object(O.useRef)(),Nr=Object(O.useState)(),Fr=Object(W.a)(Nr,2),ii=Fr[0],ui=Fr[1];function Ai(){ui(Date.now())}function fi(){window.clearTimeout(Br.current)}Ln(Ar,function(Kr,$a){var Da=!1;function Pa(Pr,li){Pr(function(wi){var oi=yi(wi+li),ci=Object(W.a)(oi,2),Pi=ci[0],ki=ci[1];return Da=ki,Pi})}if(Ua){if(rr>=wr)return Da;Pa(qa,Kr)}else{if(hi>=ei)return Da;Pa(pr,$a)}return fi(),Ai(),Da}),Object(O.useEffect)(function(){return fi(),ii&&(Br.current=window.setTimeout(function(){ui(0)},100)),fi},[ii]);function Qi(){var Kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:it,$a=oo.get(Kr);if(!$a)return;if(Ua){var Da=yt;Pt?$a.rightyt+rr&&(Da=$a.right+$a.width-rr):$a.left<-yt?Da=-$a.left:$a.left+$a.width>-yt+rr&&(Da=-($a.left+$a.width-rr)),pr(0),qa(yi(Da)[0])}else{var Pa=Tt;$a.top<-Tt?Pa=-$a.top:$a.top+$a.height>-Tt+hi&&(Pa=-($a.top+$a.height-hi)),qa(0),pr(yi(Pa)[0])}}var Eo=D(oo,{width:rr,height:hi,left:yt,top:Tt},{width:sa,height:ka},{width:ao,height:eo},Object(B.a)(Object(B.a)({},$e),{},{tabs:Be})),Po=Object(W.a)(Eo,2),fo=Po[0],Mi=Po[1],ho=Be.map(function(Kr){var $a=Kr.key;return O.createElement(t,{id:Ke,prefixCls:Ee,key:$a,rtl:Pt,tab:Kr,closable:Kr.closable,editable:gn,active:$a===it,tabPosition:Qn,tabBarGutter:wa,renderWrapper:tr,removeAriaLabel:bt==null?void 0:bt.removeAriaLabel,ref:Ba($a),onClick:function(Pa){Ya($a,Pa)},onRemove:function(){oa($a)},onFocus:function(){Qi($a),Ai(),Pt||(Ar.current.scrollLeft=0),Ar.current.scrollTop=0}})}),Io=o(function(){var Kr,$a,Da,Pa,Pr,li,wi,oi,ci,Pi=((Kr=Ar.current)===null||Kr===void 0?void 0:Kr.offsetWidth)||0,ki=(($a=Ar.current)===null||$a===void 0?void 0:$a.offsetHeight)||0,Fi=((Da=va.current)===null||Da===void 0?void 0:Da.offsetWidth)||0,xi=((Pa=va.current)===null||Pa===void 0?void 0:Pa.offsetHeight)||0,Jr=((Pr=sr.current)===null||Pr===void 0?void 0:Pr.offsetWidth)||0,Vr=((li=sr.current)===null||li===void 0?void 0:li.offsetHeight)||0;Rr(Pi),pi(ki),_o(Fi),ro(xi);var Cr=(((wi=hr.current)===null||wi===void 0?void 0:wi.offsetWidth)||0)-Fi,Wr=(((oi=hr.current)===null||oi===void 0?void 0:oi.offsetHeight)||0)-xi;Xr(Cr),Or(Wr);var Qr=(ci=sr.current)===null||ci===void 0?void 0:ci.className.includes(zi);In(Cr-(Qr?0:Jr)),kr(Wr-(Qr?0:Vr)),co(function(){var di=new Map;return Be.forEach(function(Ji){var lo=Ji.key,Ti=Ba(lo).current;Ti&&di.set(lo,{width:Ti.offsetWidth,height:Ti.offsetHeight,left:Ti.offsetLeft,top:Ti.offsetTop})}),di})}),Oo=Be.slice(0,fo),Di=Be.slice(Mi+1),si=[].concat(Object(b.a)(Oo),Object(b.a)(Di)),Oi=Object(O.useState)(),vi=Object(W.a)(Oi,2),Ri=vi[0],Ro=vi[1],Wi=oo.get(it),To=Object(O.useRef)();function Do(){d.a.cancel(To.current)}Object(O.useEffect)(function(){var Kr={};return Wi&&(Ua?(Pt?Kr.right=Wi.right:Kr.left=Wi.left,Kr.width=Wi.width):(Kr.top=Wi.top,Kr.height=Wi.height)),Do(),To.current=d()(function(){Ro(Kr)}),Do},[Wi,Ua,Pt]),Object(O.useEffect)(function(){Qi()},[it,Wi,oo,Ua]),Object(O.useEffect)(function(){Io()},[Pt,wa,it,Be.map(function(Kr){return Kr.key}).join("_")]);var po=!!si.length,so="".concat(Ee,"-nav-wrap"),yo,Ao,No,Ui;return Ua?Pt?(Ao=yt>0,yo=yt+rr-1?"".concat(G==null?void 0:G.time,"\u5206\u949F"):"\u4E0D\u9650","\u3011"),(Ue==null?void 0:Ue.show_desc)&&b.a.createElement("div",{className:"mt10"},b.a.createElement("p",{className:"font16"},"\u8003\u8BD5\u8BF4\u660E\uFF1A"),b.a.createElement(f.a,{value:G==null?void 0:G.description})),(Ue==null?void 0:Ue.show_table)&&b.a.createElement("div",{className:"mt10"},b.a.createElement(W.a,{className:o.a.table,columns:Ae,dataSource:Object(B.a)(le||[]),bordered:!0,pagination:!1}))))};re.a=Object(d.a)(function(l){var s=l.exercise,w=l.loading,D=l.user,C=l.globalSetting;return{exercise:s,globalSetting:C,user:D,loading:w.effects}})(t)},kPWJ:function(Ge,re,y){Ge.exports=y.p+"static/question.cb52bef9.gif"},kPYp:function(Ge,re){Ge.exports="data:image/png;base64,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"},kSUc:function(Ge,re,y){},"kaH+":function(Ge,re,y){"use strict";var Q=y("+L6B"),W=y("2/Rp"),k=y("tJVT"),B=y("q1tI"),O=y.n(B),R=y("UZu5"),M=y.n(R),p=y("dhSg"),a=y("rLCj"),b=y("dF/Y"),u=y("4i/N");re.a=function(){var d=Object(B.useState)(""),m=Object(k.a)(d,2),o=m[0],c=m[1],f=Object(B.useState)(0),i=Object(k.a)(f,2),t=i[0],l=i[1],s=Object(B.useRef)("");Object(B.useEffect)(function(){var h=p.a.subscribe("preview-image",function(g){c(g),document.body.style.overflow="hidden"});return h},[]),Object(B.useEffect)(function(){return document.addEventListener("keydown",w),function(){document.removeEventListener("keydown",w)}},[]),Object(B.useEffect)(function(){s.current=o},[o]);function w(h){h.keyCode==27&&s.current&&D()}function D(){document.body.style.overflow="auto",c("")}function C(){l(t+90)}var v=Object(B.useRef)(),n=Object(B.useRef)(),_=function(g){(g.nativeEvent.target===v.current||g.nativeEvent.target===n.current)&&D()};return O.a.createElement(B.Fragment,null,o?O.a.createElement("div",{className:"image-preview-container",ref:v,onClick:_},O.a.createElement("div",{className:"button-group"},O.a.createElement(W.a,{onClick:C},"\u65CB\u8F6C",O.a.createElement(a.a,null)),O.a.createElement(W.a,{href:o},"\u4E0B\u8F7D",O.a.createElement(b.a,null)),O.a.createElement(W.a,{onClick:D},"\u5173\u95ED",O.a.createElement(u.a,null))),O.a.createElement("div",{className:"preview-wrp-group",ref:n},O.a.createElement("img",{className:"image-preview",src:o,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(t,"deg)")}}))):null)}},kqOp:function(Ge,re,y){"use strict";y.d(re,"a",function(){return b});var Q=y("0Owb"),W=y("fWQN"),k=y("mtLc"),B=y("yKVA"),O=y("879j"),R=y("q1tI"),M=y.n(R),p=y("Ot1p"),a="\u2581",b=function(u){Object(B.a)(m,u);var d=Object(O.a)(m);function m(){var o;Object(W.a)(this,m);for(var c=arguments.length,f=new Array(c),i=0;i` "'(~:]+/,c=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,i=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,t=" ";function l(N,A,G){return A.f=A.inline=G,G(N,A)}function s(N,A,G){return A.f=A.block=G,G(N,A)}function w(N){return!N||!/\S/.test(N.string)}function D(N){if(N.linkTitle=!1,N.linkHref=!1,N.linkText=!1,N.em=!1,N.strong=!1,N.strikethrough=!1,N.quote=0,N.indentedCode=!1,N.f==v){var A=O;if(!A){var G=Q.innerMode(B,N.htmlState);A=G.mode.name=="xml"&&G.state.tagStart===null&&!G.state.context&&G.state.tokenize.isInText}A&&(N.f=g,N.block=C,N.htmlState=null)}return N.trailingSpace=0,N.trailingSpaceNewLine=!1,N.prevLine=N.thisLine,N.thisLine={stream:null},null}function C(N,A){var G=N.column()===A.indentation,K=w(A.prevLine.stream),$=A.indentedCode,ie=A.prevLine.hr,le=A.list!==!1,de=(A.listStack[A.listStack.length-1]||0)+3;A.indentedCode=!1;var Se=A.indentation;if(A.indentationDiff===null&&(A.indentationDiff=A.indentation,le)){for(A.list=null;Se=4&&($||A.prevLine.fencedCodeEnd||A.prevLine.header||K))return N.skipToEnd(),A.indentedCode=!0,M.code;if(N.eatSpace())return null;if(G&&A.indentation<=de&&(je=N.match(d))&&je[1].length<=6)return A.quote=0,A.header=je[1].length,A.thisLine.header=!0,k.highlightFormatting&&(A.formatting="header"),A.f=A.inline,_(A);if(A.indentation<=de&&N.eat(">"))return A.quote=G?1:A.quote+1,k.highlightFormatting&&(A.formatting="quote"),N.eatSpace(),_(A);if(!et&&!A.setext&&G&&A.indentation<=de&&(je=N.match(b))){var me=je[1]?"ol":"ul";return A.indentation=Se+N.current().length,A.list=!0,A.quote=0,A.listStack.push(A.indentation),A.em=!1,A.strong=!1,A.code=!1,A.strikethrough=!1,k.taskLists&&N.match(u,!1)&&(A.taskList=!0),A.f=A.inline,k.highlightFormatting&&(A.formatting=["list","list-"+me]),_(A)}else{if(G&&A.indentation<=de&&(je=N.match(c,!0)))return A.quote=0,A.fencedEndRE=new RegExp(je[1]+"+ *$"),A.localMode=k.fencedCodeBlockHighlighting&&R(je[2]||k.fencedCodeBlockDefaultMode),A.localMode&&(A.localState=Q.startState(A.localMode)),A.f=A.block=n,k.highlightFormatting&&(A.formatting="code-block"),A.code=-1,_(A);if(A.setext||(!He||!le)&&!A.quote&&A.list===!1&&!A.code&&!et&&!f.test(N.string)&&(je=N.lookAhead(1))&&(je=je.match(m)))return A.setext?(A.header=A.setext,A.setext=0,N.skipToEnd(),k.highlightFormatting&&(A.formatting="header")):(A.header=je[0].charAt(0)=="="?1:2,A.setext=A.header),A.thisLine.header=!0,A.f=A.inline,_(A);if(et)return N.skipToEnd(),A.hr=!0,A.thisLine.hr=!0,M.hr;if(N.peek()==="[")return l(N,A,U)}return l(N,A,A.inline)}function v(N,A){var G=B.token(N,A.htmlState);if(!O){var K=Q.innerMode(B,A.htmlState);(K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText||A.md_inside&&N.current().indexOf(">")>-1)&&(A.f=g,A.block=C,A.htmlState=null)}return G}function n(N,A){var G=A.listStack[A.listStack.length-1]||0,K=A.indentation=N.quote?A.push(M.formatting+"-"+N.formatting[G]+"-"+N.quote):A.push("error"))}if(N.taskOpen)return A.push("meta"),A.length?A.join(" "):null;if(N.taskClosed)return A.push("property"),A.length?A.join(" "):null;if(N.linkHref?A.push(M.linkHref,"url"):(N.strong&&A.push(M.strong),N.em&&A.push(M.em),N.strikethrough&&A.push(M.strikethrough),N.emoji&&A.push(M.emoji),N.linkText&&A.push(M.linkText),N.code&&A.push(M.code),N.image&&A.push(M.image),N.imageAltText&&A.push(M.imageAltText,"link"),N.imageMarker&&A.push(M.imageMarker)),N.header&&A.push(M.header,M.header+"-"+N.header),N.quote&&(A.push(M.quote),!k.maxBlockquoteDepth||k.maxBlockquoteDepth>=N.quote?A.push(M.quote+"-"+N.quote):A.push(M.quote+"-"+k.maxBlockquoteDepth)),N.list!==!1){var K=(N.listStack.length-1)%3;K?K===1?A.push(M.list2):A.push(M.list3):A.push(M.list1)}return N.trailingSpaceNewLine?A.push("trailing-space-new-line"):N.trailingSpace&&A.push("trailing-space-"+(N.trailingSpace%2?"a":"b")),A.length?A.join(" "):null}function h(N,A){return N.match(o,!0)?_(A):void 0}function g(N,A){var G=A.text(N,A);if(typeof G!="undefined")return G;if(A.list)return A.list=null,_(A);if(A.taskList){var K=N.match(u,!0)[1]===" ";return K?A.taskOpen=!0:A.taskClosed=!0,k.highlightFormatting&&(A.formatting="task"),A.taskList=!1,_(A)}if(A.taskOpen=!1,A.taskClosed=!1,A.header&&N.match(/^#+$/,!0))return k.highlightFormatting&&(A.formatting="header"),_(A);var $=N.next();if(A.linkTitle){A.linkTitle=!1;var ie=$;$==="("&&(ie=")"),ie=(ie+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var le="^\\s*(?:[^"+ie+"\\\\]+|\\\\\\\\|\\\\.)"+ie;if(N.match(new RegExp(le),!0))return M.linkHref}if($==="`"){var de=A.formatting;k.highlightFormatting&&(A.formatting="code"),N.eatWhile("`");var Se=N.current().length;if(A.code==0&&(!A.quote||Se==1))return A.code=Se,_(A);if(Se==A.code){var He=_(A);return A.code=0,He}else return A.formatting=de,_(A)}else if(A.code)return _(A);if($==="\\"&&(N.next(),k.highlightFormatting)){var et=_(A),je=M.formatting+"-escape";return et?et+" "+je:je}if($==="!"&&N.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return A.imageMarker=!0,A.image=!0,k.highlightFormatting&&(A.formatting="image"),_(A);if($==="["&&A.imageMarker&&N.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return A.imageMarker=!1,A.imageAltText=!0,k.highlightFormatting&&(A.formatting="image"),_(A);if($==="]"&&A.imageAltText){k.highlightFormatting&&(A.formatting="image");var et=_(A);return A.imageAltText=!1,A.image=!1,A.inline=A.f=T,et}if($==="["&&!A.image)return A.linkText&&N.match(/^.*?\]/)||(A.linkText=!0,k.highlightFormatting&&(A.formatting="link")),_(A);if($==="]"&&A.linkText){k.highlightFormatting&&(A.formatting="link");var et=_(A);return A.linkText=!1,A.inline=A.f=N.match(/\(.*?\)| ?\[.*?\]/,!1)?T:g,et}if($==="<"&&N.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){A.f=A.inline=x,k.highlightFormatting&&(A.formatting="link");var et=_(A);return et?et+=" ":et="",et+M.linkInline}if($==="<"&&N.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){A.f=A.inline=x,k.highlightFormatting&&(A.formatting="link");var et=_(A);return et?et+=" ":et="",et+M.linkEmail}if(k.xml&&$==="<"&&N.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var me=N.string.indexOf(">",N.pos);if(me!=-1){var fe=N.string.substring(N.start,me);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(fe)&&(A.md_inside=!0)}return N.backUp(1),A.htmlState=Q.startState(B),s(N,A,v)}if(k.xml&&$==="<"&&N.match(/^\/\w*?>/))return A.md_inside=!1,"tag";if($==="*"||$==="_"){for(var Ae=1,he=N.pos==1?" ":N.string.charAt(N.pos-2);Ae<3&&N.eat($);)Ae++;var Ue=N.peek()||" ",st=!/\s/.test(Ue)&&(!i.test(Ue)||/\s/.test(he)||i.test(he)),Ve=!/\s/.test(he)&&(!i.test(he)||/\s/.test(Ue)||i.test(Ue)),dt=null,Qe=null;if(Ae%2&&(!A.em&&st&&($==="*"||!Ve||i.test(he))?dt=!0:A.em==$&&Ve&&($==="*"||!st||i.test(Ue))&&(dt=!1)),Ae>1&&(!A.strong&&st&&($==="*"||!Ve||i.test(he))?Qe=!0:A.strong==$&&Ve&&($==="*"||!st||i.test(Ue))&&(Qe=!1)),Qe!=null||dt!=null){k.highlightFormatting&&(A.formatting=dt==null?"strong":Qe==null?"em":"strong em"),dt===!0&&(A.em=$),Qe===!0&&(A.strong=$);var He=_(A);return dt===!1&&(A.em=!1),Qe===!1&&(A.strong=!1),He}}else if($===" "&&(N.eat("*")||N.eat("_"))){if(N.peek()===" ")return _(A);N.backUp(1)}if(k.strikethrough){if($==="~"&&N.eatWhile($)){if(A.strikethrough){k.highlightFormatting&&(A.formatting="strikethrough");var He=_(A);return A.strikethrough=!1,He}else if(N.match(/^[^\s]/,!1))return A.strikethrough=!0,k.highlightFormatting&&(A.formatting="strikethrough"),_(A)}else if($===" "&&N.match(/^~~/,!0)){if(N.peek()===" ")return _(A);N.backUp(2)}}if(k.emoji&&$===":"&&N.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){A.emoji=!0,k.highlightFormatting&&(A.formatting="emoji");var pe=_(A);return A.emoji=!1,pe}return $===" "&&(N.match(/^ +$/,!1)?A.trailingSpace++:A.trailingSpace&&(A.trailingSpaceNewLine=!0)),_(A)}function x(N,A){var G=N.next();if(G===">"){A.f=A.inline=g,k.highlightFormatting&&(A.formatting="link");var K=_(A);return K?K+=" ":K="",K+M.linkInline}return N.match(/^[^>]+/,!0),M.linkInline}function T(N,A){if(N.eatSpace())return null;var G=N.next();return G==="("||G==="["?(A.f=A.inline=E(G==="("?")":"]"),k.highlightFormatting&&(A.formatting="link-string"),A.linkHref=!0,_(A)):"error"}var S={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function E(N){return function(A,G){var K=A.next();if(K===N){G.f=G.inline=g,k.highlightFormatting&&(G.formatting="link-string");var $=_(G);return G.linkHref=!1,$}return A.match(S[N]),G.linkHref=!0,_(G)}}function U(N,A){return N.match(/^([^\]\\]|\\.)*\]:/,!1)?(A.f=F,N.next(),k.highlightFormatting&&(A.formatting="link"),A.linkText=!0,_(A)):l(N,A,g)}function F(N,A){if(N.match(/^\]:/,!0)){A.f=A.inline=P,k.highlightFormatting&&(A.formatting="link");var G=_(A);return A.linkText=!1,G}return N.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function P(N,A){return N.eatSpace()?null:(N.match(/^[^\s]+/,!0),N.peek()===void 0?A.linkTitle=!0:N.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),A.f=A.inline=g,M.linkHref+" url")}var H={startState:function(){return{f:C,prevLine:{stream:null},thisLine:{stream:null},block:C,htmlState:null,indentation:0,inline:g,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(N){return{f:N.f,prevLine:N.prevLine,thisLine:N.thisLine,block:N.block,htmlState:N.htmlState&&Q.copyState(B,N.htmlState),indentation:N.indentation,localMode:N.localMode,localState:N.localMode?Q.copyState(N.localMode,N.localState):null,inline:N.inline,text:N.text,formatting:!1,linkText:N.linkText,linkTitle:N.linkTitle,linkHref:N.linkHref,code:N.code,em:N.em,strong:N.strong,strikethrough:N.strikethrough,emoji:N.emoji,header:N.header,setext:N.setext,hr:N.hr,taskList:N.taskList,list:N.list,listStack:N.listStack.slice(0),quote:N.quote,indentedCode:N.indentedCode,trailingSpace:N.trailingSpace,trailingSpaceNewLine:N.trailingSpaceNewLine,md_inside:N.md_inside,fencedEndRE:N.fencedEndRE}},token:function(N,A){if(A.formatting=!1,N!=A.thisLine.stream){if(A.header=0,A.hr=!1,N.match(/^\s*$/,!0))return D(A),null;if(A.prevLine=A.thisLine,A.thisLine={stream:N},A.taskList=!1,A.trailingSpace=0,A.trailingSpaceNewLine=!1,!A.localState&&(A.f=A.block,A.f!=v)){var G=N.match(/^\s*/,!0)[0].replace(/\t/g,t).length;if(A.indentation=G,A.indentationDiff=null,G>0)return null}}return A.f(N,A)},innerMode:function(N){return N.block==v?{state:N.htmlState,mode:B}:N.localState?{state:N.localState,mode:N.localMode}:{state:N,mode:H}},indent:function(N,A,G){return N.block==v&&B.indent?B.indent(N.htmlState,A,G):N.localState&&N.localMode.indent?N.localMode.indent(N.localState,A,G):Q.Pass},blankLine:D,getType:_,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),Q.defineMIME("text/markdown","markdown"),Q.defineMIME("text/x-markdown","markdown")})},loD1:function(Ge,re){function y(Q,W,k,B,O,R,M){if(O===0)return!1;var p=O,a=0,b=Q;if(M>W+p&&M>B+p||MQ+p&&R>k+p||R=b.x&&p<=b.x+b.width&&a>=b.y&&a<=b.y+b.height},clone:function(){return new R(this.x,this.y,this.width,this.height)},copy:function(p){this.x=p.x,this.y=p.y,this.width=p.width,this.height=p.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},R.create=function(p){return new R(p.x,p.y,p.width,p.height)};var M=R;Ge.exports=M},mLcG:function(Ge,re){var y=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Q){setTimeout(Q,16)};Ge.exports=y},mgmH:function(Ge,re,y){"use strict";y.d(re,"d",function(){return m}),y.d(re,"b",function(){return o}),y.d(re,"e",function(){return c}),y.d(re,"c",function(){return f}),y.d(re,"n",function(){return i}),y.d(re,"g",function(){return t}),y.d(re,"h",function(){return l}),y.d(re,"j",function(){return w}),y.d(re,"a",function(){return D}),y.d(re,"l",function(){return C}),y.d(re,"f",function(){return v}),y.d(re,"k",function(){return n}),y.d(re,"m",function(){return _}),y.d(re,"i",function(){return h}),y.d(re,"o",function(){return g}),y.d(re,"t",function(){return x}),y.d(re,"s",function(){return T}),y.d(re,"p",function(){return S}),y.d(re,"q",function(){return E}),y.d(re,"r",function(){return U}),y.d(re,"v",function(){return F}),y.d(re,"u",function(){return P});var Q=y("miYZ"),W=y("tsqr"),k=y("k1fw"),B=y("9og8"),O=y("WmNS"),R=y.n(O),M=y("oUNq"),p=y("9kvl"),a=y("1vsH"),b=y("m3rI"),u=function(){Object(p.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},d=function(){Object(p.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},m=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return u(),$.next=3,Object(M.t)(Object(k.a)({},A));case 3:if(G=$.sent,!(G.status===0)){$.next=7;break}return $.next=7,Object(a.w)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/".concat(A.coursesId,"/export_couser_info.json"),query:A}));case 7:d();case 8:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),o=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.r)(Object(k.a)({},A));case 2:if(G=$.sent,!(G.status===0)){$.next=8;break}W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_member_act_score")),$.next=13;break;case 8:if(!(G.status===-2)){$.next=12;break}return $.abrupt("return",G);case 12:G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),c=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.u)(Object(k.a)({},A));case 2:if(G=$.sent,!(G.status===0)){$.next=8;break}W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_score")),$.next=13;break;case 8:if(!(G.status===-2)){$.next=12;break}return $.abrupt("return",G);case 12:G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_score")));case 13:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),f=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.s)(Object(k.a)({},A));case 2:if(G=$.sent,!(G.status===0)){$.next=8;break}W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_exercise_and_other")),$.next=13;break;case 8:if(!(G.status===-2)){$.next=12;break}return $.abrupt("return",G);case 12:G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),i=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.z)(Object(k.a)({},A));case 2:if(G=$.sent,!(G.status===0)){$.next=8;break}W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_exercise_and_other")),$.next=13;break;case 8:if(!(G.status===-2)){$.next=12;break}return $.abrupt("return",G);case 12:G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),t=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.v)(Object(k.a)({},A));case 2:if(G=$.sent,!(G.status===0)){$.next=8;break}W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_homework")),$.next=13;break;case 8:if(!(G.status===-2)){$.next=12;break}return $.abrupt("return",G);case 12:G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),l=function(){var H=Object(B.a)(R.a.mark(function N(A,G){var K;return R.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Object(M.x)(Object(k.a)({},A));case 2:K=ie.sent,K.status===0?(W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/").concat(G))):K.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/").concat(G)));case 4:case"end":return ie.stop()}},N)}));return function(A,G){return H.apply(this,arguments)}}(),s=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return u(),$.next=3,Object(M.w)(Object(k.a)({},A));case 3:if(G=$.sent,!(G.status===0)){$.next=7;break}return $.next=7,Object(a.w)("",Object(a.Y)({url:b.a.API_SERVER+"/api/homework_commons/".concat(A.categoryId,"/works_list.zip"),query:A}));case 7:d();case 8:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),w=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return u(),$.next=3,Object(M.A)(Object(k.a)({},A));case 3:if(G=$.sent,!(G.status===0)){$.next=7;break}return $.next=7,Object(a.w)("",Object(a.Y)({url:b.a.API_SERVER+"/api/polls/".concat(A.categoryId,"/commit_result.xlsx"),query:A}));case 7:d();case 8:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),D=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/".concat(A.coursesId,"/attendances/export_xlsx_data.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),C=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/".concat(A.coursesId,"/video_study_statics.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),v=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/".concat(A.coursesId,"/export_course_students_info.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),n=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/item_banks/export.xlsx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),_=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),h=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.y)(Object(k.a)({},A));case 2:G=$.sent,G.status===0?(W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/exercise_score"))):G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/exercise_score")));case 4:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),g=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),K.next=3,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/export_records/".concat(A.id,".xlsx"),query:A}));case 3:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),x=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),T=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(A==null?void 0:A.ec_year_id,"/ec_training_objectives.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),S=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)(A==null?void 0:A.name,Object(a.Y)({url:b.a.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),E=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(A==null?void 0:A.ec_year_id,"/ec_courses.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),U=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(A==null?void 0:A.ec_year_id,"/ec_graduation_requirements.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),F=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/rank_list.xlsx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),P=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/question_rank_list.xlsx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}()},mxOx:function(Ge,re,y){Ge.exports={flex_box_center:"flex_box_center___1OKqY",flex_space_between:"flex_space_between___9LtA4",flex_box_vertical_center:"flex_box_vertical_center___1eoO3",flex_box_center_end:"flex_box_center_end___2z5cA",flex_box_column:"flex_box_column___EmE-R",wrap:"wrap___1KKiW",control:"control___1QLLH",btn:"btn___2uv5p",customTable:"customTable___1j8g4",bgH:"bgH___38VTN",cusModal:"cusModal___3m_hn",imgWrap:"imgWrap___1V_Vd",img:"img___3YaEG",iBtn:"iBtn___2kloF",text:"text___3R4ja",no:"no___1ION1",textP:"textP___1nOEX",video:"video___TW5nF",sys:"sys___lyOTD",li:"li___1BzVB",d1:"d1___fIaVJ",b1:"b1____gBjv",es:"es___2kUwZ"}},n1HI:function(Ge,re,y){var Q=y("hX1E"),W=Q.normalizeRadian,k=Math.PI*2;function B(O,R,M,p,a,b,u,d,m){if(u===0)return!1;var o=u;d-=O,m-=R;var c=Math.sqrt(d*d+m*m);if(c-o>M||c+oa&&(a+=k);var i=Math.atan2(m,d);return i<0&&(i+=k),i>=p&&i<=a||i+k>=p&&i+k<=a}re.containStroke=B},n6Mw:function(Ge,re,y){var Q=y("SrGk"),W=y("bYtY"),k=y("Fofx");function B(R,M){Q.call(this,R,M,"clipPath","__clippath_in_use__")}W.inherits(B,Q),B.prototype.update=function(R){var M=this.getSvgElement(R);M&&this.updateDom(M,R.__clipPaths,!1);var p=this.getTextSvgElement(R);p&&this.updateDom(p,R.__clipPaths,!0),this.markUsed(R)},B.prototype.updateDom=function(R,M,p){if(M&&M.length>0){var a=this.getDefs(!0),b=M[0],u,d,m=p?"_textDom":"_dom";b[m]?(d=b[m].getAttribute("id"),u=b[m],a.contains(u)||a.appendChild(u)):(d="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,u=this.createElement("clipPath"),u.setAttribute("id",d),a.appendChild(u),b[m]=u);var o=this.getSvgProxy(b);if(b.transform&&b.parent.invTransform&&!p){var c=Array.prototype.slice.call(b.transform);k.mul(b.transform,b.parent.invTransform,b.transform),o.brush(b),b.transform=c}else o.brush(b);var f=this.getSvgElement(b);u.innerHTML="",u.appendChild(f.cloneNode()),R.setAttribute("clip-path","url(#"+d+")"),M.length>1&&this.updateDom(u,M.slice(1),p)}else R&&R.setAttribute("clip-path","none")},B.prototype.markUsed=function(R){var M=this;R.__clipPaths&&W.each(R.__clipPaths,function(p){p._dom&&Q.prototype.markUsed.call(M,p._dom),p._textDom&&Q.prototype.markUsed.call(M,p._textDom)})};var O=B;Ge.exports=O},n6Qo:function(Ge,re,y){"use strict";y.d(re,"a",function(){return p});var Q=y("q1tI"),W=y("biw7"),k=y("fyJ8");function B(a){var b=a.className,u=a.index,d=a.children,m=a.colSpan,o=a.rowSpan,c=Q.useContext(W.a),f=c.prefixCls,i=c.fixedInfoList,t=i[u];return Q.createElement(k.a,Object.assign({className:b,index:u,component:"td",prefixCls:f,record:null,dataIndex:null,render:function(){return{children:d,props:{colSpan:m,rowSpan:o}}}},t))}function O(a){return Q.createElement("tr",Object.assign({},a))}function R(a){var b=a.children,u=Q.useContext(W.a),d=u.prefixCls;return Q.createElement("tfoot",{className:"".concat(d,"-summary")},b)}var M=re.b=R,p={Cell:B,Row:O}},nCxF:function(Ge,re,y){var Q=y("QBsz"),W=Q.min,k=Q.max,B=Q.scale,O=Q.distance,R=Q.add,M=Q.clone,p=Q.sub;function a(b,u,d,m){var o=[],c=[],f=[],i=[],t,l,s,w;if(m){s=[Infinity,Infinity],w=[-Infinity,-Infinity];for(var D=0,C=b.length;DW&&R>B||RO?M:0}Ge.exports=y},i58Z:function(Ge,re,y){Ge.exports={wrap:"wrap___Yg2Z9",addKnowledge:"addKnowledge___2FlI0",disabled:"disabled___1_wxN"}},iXp4:function(Ge,re,y){var Q=y("ItGF"),W=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function k(B){return Q.browser.ie&&Q.browser.version>=11?function(){var O=this.__clipPaths,R=this.style,M;if(O)for(var p=0;p0&&d.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},d.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},G.map(function(me,fe){return d.a.createElement(W.a,{justify:"space-between",style:{marginTop:"10px"},key:me.course_group_id},d.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},me.name),d.a.createElement("img",{src:f.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(P.filter(function(he){return"".concat(he.course_group_name)!="".concat(me.course_group_name)}))}}))})))))};re.a=t},juDX:function(Ge,re,y){y("P47w");var Q=y("aX58"),W=Q.registerPainter,k=y("3CBa");W("svg",k)},k3GJ:function(Ge,re,y){"use strict";y.d(re,"a",function(){return Dn});var Q=y("rePB"),W=y("ODXe"),k=y("Ff2n"),B=y("VTBJ"),O=y("q1tI"),R=y("TSYQ"),M=y.n(R),p=y("Zm9Q"),a=y("6cGi"),b=y("KQm4"),u=y("xEkU"),d=y.n(u),m=y("t23M");function o($e){var pt=Object(O.useRef)(),_t=Object(O.useRef)(!1);function Xe(){for(var Ee=arguments.length,Be=new Array(Ee),Ce=0;CePt&&(bt=Pt-gn),Object(O.useMemo)(function(){if(!Be.length)return[0,0];for(var Qn=Be.length,wa=Qn,tr=0;trit+bt){wa=tr-1;break}}for(var ar=0,Ar=Qn-1;Ar>=0;Ar-=1){var hr=$e.get(Be[Ar].key)||w;if(hr[St]1&&arguments[1]!==void 0?arguments[1]:!1,Xe=pt&&typeof pt.getBoundingClientRect=="function"&&pt.getBoundingClientRect().width;if(Xe){if(_t){var Ee=getComputedStyle(pt),Be=Ee.marginLeft,Ce=Ee.marginRight;Xe+=+Be.replace("px","")+ +Ce.replace("px","")}Xe=+Xe.toFixed(6)}return Xe||0},Le=function(pt,_t,Xe){pt&&Object(F.a)(pt.style)==="object"&&(pt.style[_t]=Xe)},Ye=function(){return he.any},gt=y("bdgK"),Ct=y("i8i4"),tn=y.n(Ct),Zt=y("wgJM"),Hn=y("l4aY"),ia=y("m+aA"),vt=y("c+Xe"),mt=y("zT1h"),on=y("QC+M");function hn($e,pt,_t){return _t?$e[0]===pt[0]:$e[0]===pt[0]&&$e[1]===pt[1]}function Ot($e,pt,_t){var Xe=$e[pt]||{};return Object(B.a)(Object(B.a)({},Xe),_t)}function Xt($e,pt,_t,Xe){for(var Ee=_t.points,Be=Object.keys($e),Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:2;pt();var Be=Object(Zt.a)(function(){Ee<=1?Xe({isCanceled:function(){return Be!==$e.current}}):_t(Xe,Ee-1)});$e.current=Be}return O.useEffect(function(){return function(){pt()}},[]),[_t,pt]},Pe=[qt,Gn,qn,Mt],ye=!1,J=!0;function q($e){return $e===qn||$e===Mt}var Z=function($e,pt){var _t=O.useState(Sn),Xe=Object(W.a)(_t,2),Ee=Xe[0],Be=Xe[1],Ce=Ea(),Ze=Object(W.a)(Ce,2),Ke=Ze[0],St=Ze[1];function it(){Be(qt)}return na(function(){if(Ee!==Sn&&Ee!==Mt){var Pt=Pe.indexOf(Ee),an=Pe[Pt+1],gn=pt(Ee);gn===ye?Be(an):Ke(function(bt){function Qn(){if(bt.isCanceled())return;Be(an)}gn===!0?Qn():Promise.resolve(gn).then(Qn)})}},[$e,Ee]),O.useEffect(function(){return function(){St()}},[]),[it,Ee]},oe=function($e){var pt=Object(O.useRef)(),_t=Object(O.useRef)($e);_t.current=$e;var Xe=O.useCallback(function(Ce){_t.current(Ce)},[]);function Ee(Ce){Ce&&(Ce.removeEventListener(_n,Xe),Ce.removeEventListener(Sa,Xe))}function Be(Ce){pt.current&&pt.current!==Ce&&Ee(pt.current),Ce&&Ce!==pt.current&&(Ce.addEventListener(_n,Xe),Ce.addEventListener(Sa,Xe),pt.current=Ce)}return O.useEffect(function(){return function(){Ee(pt.current)}},[]),[Be,Ee]};function Oe($e,pt,_t,Xe){var Ee=Xe.motionEnter,Be=Ee===void 0?!0:Ee,Ce=Xe.motionAppear,Ze=Ce===void 0?!0:Ce,Ke=Xe.motionLeave,St=Ke===void 0?!0:Ke,it=Xe.motionDeadline,Pt=Xe.motionLeaveImmediately,an=Xe.onAppearPrepare,gn=Xe.onEnterPrepare,bt=Xe.onLeavePrepare,Qn=Xe.onAppearStart,wa=Xe.onEnterStart,tr=Xe.onLeaveStart,Ya=Xe.onAppearActive,ar=Xe.onEnterActive,Ar=Xe.onLeaveActive,hr=Xe.onAppearEnd,sr=Xe.onEnterEnd,va=Xe.onLeaveEnd,_a=Xe.onVisibleChanged,ur=Nn(),Ba=Object(W.a)(ur,2),oa=Ba[0],Ua=Ba[1],Er=Nn(mn),Ka=Object(W.a)(Er,2),yt=Ka[0],qa=Ka[1],Lr=Nn(null),_r=Object(W.a)(Lr,2),Tt=_r[0],pr=_r[1],Yn=Object(O.useRef)(!1),vr=Object(O.useRef)(null),wr=Object(O.useRef)(!1),Xr=Object(O.useRef)(null);function ai(){var jr=_t();return jr||Xr.current}var $r=Object(O.useRef)(!1);function ei(jr){var rr=ai();if(jr&&!jr.deadline&&jr.target!==rr)return;var Rr;yt===Gt&&$r.current?Rr=hr==null?void 0:hr(rr,jr):yt===ze&&$r.current?Rr=sr==null?void 0:sr(rr,jr):yt===ct&&$r.current&&(Rr=va==null?void 0:va(rr,jr)),Rr!==!1&&!wr.current&&(qa(mn),pr(null))}var Or=oe(ei),za=Object(W.a)(Or,1),La=za[0],sa=O.useMemo(function(){var jr,rr,Rr;switch(yt){case"appear":return jr={},Object(Q.a)(jr,qt,an),Object(Q.a)(jr,Gn,Qn),Object(Q.a)(jr,qn,Ya),jr;case"enter":return rr={},Object(Q.a)(rr,qt,gn),Object(Q.a)(rr,Gn,wa),Object(Q.a)(rr,qn,ar),rr;case"leave":return Rr={},Object(Q.a)(Rr,qt,bt),Object(Q.a)(Rr,Gn,tr),Object(Q.a)(Rr,qn,Ar),Rr;default:return{}}},[yt]),In=Z(yt,function(jr){if(jr===qt){var rr=sa[qt];return rr?rr(ai()):ye}if(ka in sa){var Rr;pr(((Rr=sa[ka])===null||Rr===void 0?void 0:Rr.call(sa,ai(),null))||null)}return ka===qn&&(La(ai()),it>0&&(clearTimeout(vr.current),vr.current=setTimeout(function(){ei({deadline:!0})},it))),J}),cr=Object(W.a)(In,2),dr=cr[0],ka=cr[1],kr=q(ka);$r.current=kr,na(function(){Ua(pt);var jr=Yn.current;if(Yn.current=!0,!$e)return;var rr;!jr&&pt&&Ze&&(rr=Gt),jr&&pt&&Be&&(rr=ze),(jr&&!pt&&St||!jr&&Pt&&!pt&&St)&&(rr=ct),rr&&(qa(rr),dr())},[pt]),Object(O.useEffect)(function(){(yt===Gt&&!Ze||yt===ze&&!Be||yt===ct&&!St)&&qa(mn)},[Ze,Be,St]),Object(O.useEffect)(function(){return function(){clearTimeout(vr.current),wr.current=!0}},[]),Object(O.useEffect)(function(){oa!==void 0&&yt===mn&&(_a==null||_a(oa))},[oa,yt]);var Yr=Tt;return sa[qt]&&ka===Gn&&(Yr=Object(B.a)({transition:"none"},Yr)),[yt,ka,Yr,oa!=null?oa:pt]}var Re=function($e){Object(h.a)(_t,$e);var pt=Object(g.a)(_t);function _t(){return Object(v.a)(this,_t),pt.apply(this,arguments)}return Object(n.a)(_t,[{key:"render",value:function(){return this.props.children}}]),_t}(O.Component),ve=Re;function bn($e){var pt=$e;Object(F.a)($e)==="object"&&(pt=$e.transitionSupport);function _t(Ee){return!!(Ee.motionName&&pt)}var Xe=O.forwardRef(function(Ee,Be){var Ce=Ee.visible,Ze=Ce===void 0?!0:Ce,Ke=Ee.removeOnLeave,St=Ke===void 0?!0:Ke,it=Ee.forceRender,Pt=Ee.children,an=Ee.motionName,gn=Ee.leavedClassName,bt=Ee.eventProps,Qn=_t(Ee),wa=Object(O.useRef)(),tr=Object(O.useRef)();function Ya(){try{return Object(ia.a)(wa.current||tr.current)}catch(qa){return null}}var ar=Oe(Qn,Ze,Ya,Ee),Ar=Object(W.a)(ar,4),hr=Ar[0],sr=Ar[1],va=Ar[2],_a=Ar[3],ur=O.useRef(_a);_a&&(ur.current=!0);var Ba=Object(O.useRef)(Be);Ba.current=Be;var oa=O.useCallback(function(qa){wa.current=qa,Object(vt.b)(Ba.current,qa)},[]),Ua,Er=Object(B.a)(Object(B.a)({},bt),{},{visible:Ze});if(!Pt)Ua=null;else if(hr===mn||!_t(Ee))_a?Ua=Pt(Object(B.a)({},Er),oa):!St&&ur.current?Ua=Pt(Object(B.a)(Object(B.a)({},Er),{},{className:gn}),oa):it?Ua=Pt(Object(B.a)(Object(B.a)({},Er),{},{style:{display:"none"}}),oa):Ua=null;else{var Ka,yt;sr===qt?yt="prepare":q(sr)?yt="active":sr===Gn&&(yt="start"),Ua=Pt(Object(B.a)(Object(B.a)({},Er),{},{className:M()(Bt(an,hr),(Ka={},Object(Q.a)(Ka,Bt(an,"".concat(hr,"-").concat(yt)),yt),Object(Q.a)(Ka,an,typeof an=="string"),Ka)),style:va}),oa)}return O.createElement(ve,{ref:tr},Ua)});return Xe.displayName="CSSMotion",Xe}var kt=bn(ta),at="add",Ht="keep",Fe="remove",Un="removed";function Fa($e){var pt;return $e&&Object(F.a)($e)==="object"&&"key"in $e?pt=$e:pt={key:$e},Object(B.a)(Object(B.a)({},pt),{},{key:String(pt.key)})}function fa(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $e.map(Fa)}function ae(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_t=[],Xe=0,Ee=pt.length,Be=fa($e),Ce=fa(pt);Be.forEach(function(St){for(var it=!1,Pt=Xe;Pt1});return Ke.forEach(function(St){_t=_t.filter(function(it){var Pt=it.key,an=it.status;return Pt!==St||an!==Fe}),_t.forEach(function(it){it.key===St&&(it.status=Ht)})}),_t}var z=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Y($e){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kt,_t=function(Xe){Object(h.a)(Be,Xe);var Ee=Object(g.a)(Be);function Be(){var Ce;return Object(v.a)(this,Be),Ce=Ee.apply(this,arguments),Ce.state={keyEntities:[]},Ce.removeKey=function(Ze){Ce.setState(function(Ke){var St=Ke.keyEntities;return{keyEntities:St.map(function(it){return it.key!==Ze?it:Object(B.a)(Object(B.a)({},it),{},{status:Un})})}})},Ce}return Object(n.a)(Be,[{key:"render",value:function(){var Ze=this,Ke=this.state.keyEntities,St=this.props,it=St.component,Pt=St.children,an=St.onVisibleChanged,gn=Object(k.a)(St,["component","children","onVisibleChanged"]),bt=it||O.Fragment,Qn={};return z.forEach(function(wa){Qn[wa]=gn[wa],delete gn[wa]}),delete gn.keys,O.createElement(bt,gn,Ke.map(function(wa){var tr=wa.status,Ya=Object(k.a)(wa,["status"]),ar=tr===at||tr===Ht;return O.createElement(pt,Object(C.a)({},Qn,{key:Ya.key,visible:ar,eventProps:Ya,onVisibleChanged:function(hr){an==null||an(hr,{key:Ya.key}),hr||Ze.removeKey(Ya.key)}}),Pt)}))}}],[{key:"getDerivedStateFromProps",value:function(Ze,Ke){var St=Ze.keys,it=Ke.keyEntities,Pt=fa(St),an=ae(it,Pt);return{keyEntities:an.filter(function(gn){var bt=it.find(function(Qn){var wa=Qn.key;return gn.key===wa});return!(bt&&bt.status===Un&&gn.status===Fe)})}}}]),Be}(O.Component);return _t.defaultProps={component:"div"},_t}var te=Y(ta),_e=kt;function se($e){var pt=$e.prefixCls,_t=$e.motion,Xe=$e.animation,Ee=$e.transitionName;return _t||(Xe?{motionName:"".concat(pt,"-").concat(Xe)}:Ee?{motionName:Ee}:null)}function ut($e){var pt=$e.prefixCls,_t=$e.visible,Xe=$e.zIndex,Ee=$e.mask,Be=$e.maskMotion,Ce=$e.maskAnimation,Ze=$e.maskTransitionName;if(!Ee)return null;var Ke={};return(Be||Ze||Ce)&&(Ke=Object(B.a)({motionAppear:!0},se({motion:Be,prefixCls:pt,transitionName:Ze,animation:Ce}))),O.createElement(_e,Object(C.a)({},Ke,{visible:_t,removeOnLeave:!0}),function(St){var it=St.className;return O.createElement("div",{style:{zIndex:Xe},className:M()("".concat(pt,"-mask"),it)})})}var vn=y("9mu1"),Wn=y("o0o1"),Oa=y.n(Wn),dn=y("HaE+"),Tn=["measure","align",null,"motion"],ya=function($e,pt){var _t=Object(O.useState)(null),Xe=Object(W.a)(_t,2),Ee=Xe[0],Be=Xe[1],Ce=Object(O.useRef)(),Ze=Object(O.useRef)(!1);function Ke(Pt){Ze.current||Be(Pt)}function St(){Zt.a.cancel(Ce.current)}function it(Pt){St(),Ce.current=Object(Zt.a)(function(){Ke(function(an){switch(Ee){case"align":return"motion";case"motion":return"stable";default:}return an}),Pt==null||Pt()})}return Object(O.useEffect)(function(){Ke("measure")},[$e]),Object(O.useEffect)(function(){switch(Ee){case"measure":pt();break;default:}Ee&&(Ce.current=Object(Zt.a)(Object(dn.a)(Oa.a.mark(function Pt(){var an,gn;return Oa.a.wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:an=Tn.indexOf(Ee),gn=Tn[an+1],gn&&an!==-1&&Ke(gn);case 3:case"end":return Qn.stop()}},Pt)}))))},[Ee]),Object(O.useEffect)(function(){return function(){Ze.current=!0,St()}},[]),[Ee,it]},fr=function($e){var pt=O.useState({width:0,height:0}),_t=Object(W.a)(pt,2),Xe=_t[0],Ee=_t[1];function Be(Ze){Ee({width:Ze.offsetWidth,height:Ze.offsetHeight})}var Ce=O.useMemo(function(){var Ze={};if($e){var Ke=Xe.width,St=Xe.height;$e.indexOf("height")!==-1&&St?Ze.height=St:$e.indexOf("minHeight")!==-1&&St&&(Ze.minHeight=St),$e.indexOf("width")!==-1&&Ke?Ze.width=Ke:$e.indexOf("minWidth")!==-1&&Ke&&(Ze.minWidth=Ke)}return Ze},[$e,Xe]);return[Ce,Be]},gr=O.forwardRef(function($e,pt){var _t=$e.visible,Xe=$e.prefixCls,Ee=$e.className,Be=$e.style,Ce=$e.children,Ze=$e.zIndex,Ke=$e.stretch,St=$e.destroyPopupOnHide,it=$e.forceRender,Pt=$e.align,an=$e.point,gn=$e.getRootDomNode,bt=$e.getClassNameFromAlign,Qn=$e.onAlign,wa=$e.onMouseEnter,tr=$e.onMouseLeave,Ya=$e.onMouseDown,ar=$e.onTouchStart,Ar=Object(O.useRef)(),hr=Object(O.useRef)(),sr=Object(O.useState)(),va=Object(W.a)(sr,2),_a=va[0],ur=va[1],Ba=fr(Ke),oa=Object(W.a)(Ba,2),Ua=oa[0],Er=oa[1];function Ka(){Ke&&Er(gn())}var yt=ya(_t,Ka),qa=Object(W.a)(yt,2),Lr=qa[0],_r=qa[1],Tt=Object(O.useRef)();function pr(){return an||gn}function Yn(){var Or;(Or=Ar.current)===null||Or===void 0||Or.forceAlign()}function vr(Or,za){var La=bt(za);_a!==La&&ur(La),Lr==="align"&&(_a!==La?Promise.resolve().then(function(){Yn()}):_r(function(){var sa;(sa=Tt.current)===null||sa===void 0||sa.call(Tt)}),Qn==null||Qn(Or,za))}var wr=Object(B.a)({},se($e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Or){var za=wr[Or];wr[Or]=function(La,sa){return _r(),za==null?void 0:za(La,sa)}});function Xr(){return new Promise(function(Or){Tt.current=Or})}O.useEffect(function(){!wr.motionName&&Lr==="motion"&&_r()},[wr.motionName,Lr]),O.useImperativeHandle(pt,function(){return{forceAlign:Yn,getElement:function(){return hr.current}}});var ai=Object(B.a)(Object(B.a)({},Ua),{},{zIndex:Ze,opacity:Lr==="motion"||Lr==="stable"||!_t?void 0:0,pointerEvents:Lr==="stable"?void 0:"none"},Be),$r=!0;(Pt==null?void 0:Pt.points)&&(Lr==="align"||Lr==="stable")&&($r=!1);var ei=Ce;return O.Children.count(Ce)>1&&(ei=O.createElement("div",{className:"".concat(Xe,"-content")},Ce)),O.createElement(_e,Object(C.a)({visible:_t,ref:hr,leavedClassName:"".concat(Xe,"-hidden")},wr,{onAppearPrepare:Xr,onEnterPrepare:Xr,removeOnLeave:St,forceRender:it}),function(Or,za){var La=Or.className,sa=Or.style,In=M()(Xe,Ee,_a,La);return O.createElement(vn.a,{target:pr(),key:"popup",ref:Ar,monitorWindowResize:!0,disabled:$r,align:Pt,onAlign:vr},O.createElement("div",{ref:za,className:In,onMouseEnter:wa,onMouseLeave:tr,onMouseDownCapture:Ya,onTouchStartCapture:ar,style:Object(B.a)(Object(B.a)({},sa),ai)},ei))})});gr.displayName="PopupInner";var ir=gr,Qa=O.forwardRef(function($e,pt){var _t=$e.prefixCls,Xe=$e.visible,Ee=$e.zIndex,Be=$e.children,Ce=$e.mobile;Ce=Ce===void 0?{}:Ce;var Ze=Ce.popupClassName,Ke=Ce.popupStyle,St=Ce.popupMotion,it=St===void 0?{}:St,Pt=Ce.popupRender,an=O.useRef();O.useImperativeHandle(pt,function(){return{forceAlign:function(){},getElement:function(){return an.current}}});var gn=Object(B.a)({zIndex:Ee},Ke),bt=Be;return O.Children.count(Be)>1&&(bt=O.createElement("div",{className:"".concat(_t,"-content")},Be)),Pt&&(bt=Pt(bt)),O.createElement(_e,Object(C.a)({visible:Xe,ref:an,removeOnLeave:!0},it),function(Qn,wa){var tr=Qn.className,Ya=Qn.style,ar=M()(_t,Ze,tr);return O.createElement("div",{ref:wa,className:ar,style:Object(B.a)(Object(B.a)({},Ya),gn)},bt)})});Qa.displayName="MobilePopupInner";var ba=Qa,Na=["visible","mobile"],Ma=O.forwardRef(function($e,pt){var _t=$e.visible,Xe=$e.mobile,Ee=Object(k.a)($e,Na),Be=Object(O.useState)(_t),Ce=Object(W.a)(Be,2),Ze=Ce[0],Ke=Ce[1],St=Object(O.useState)(!1),it=Object(W.a)(St,2),Pt=it[0],an=it[1],gn=Object(B.a)(Object(B.a)({},Ee),{},{visible:Ze});Object(O.useEffect)(function(){Ke(_t),_t&&Xe&&an(ht())},[_t,Xe]);var bt=Pt?O.createElement(ba,Object(C.a)({},gn,{mobile:Xe,ref:pt})):O.createElement(ir,Object(C.a)({},gn,{ref:pt}));return O.createElement("div",null,O.createElement(ut,gn),bt)});Ma.displayName="Popup";var Jt=Ma,Rt=O.createContext(null),An=Rt;function aa(){}function ra(){return""}function Fn($e){return $e?$e.ownerDocument:window.document}var da=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ta($e){var pt=function(_t){Object(h.a)(Ee,_t);var Xe=Object(g.a)(Ee);function Ee(Be){var Ce;Object(v.a)(this,Ee),Ce=Xe.call(this,Be),Ce.popupRef=O.createRef(),Ce.triggerRef=O.createRef(),Ce.attachId=void 0,Ce.clickOutsideHandler=void 0,Ce.touchOutsideHandler=void 0,Ce.contextMenuOutsideHandler1=void 0,Ce.contextMenuOutsideHandler2=void 0,Ce.mouseDownTimeout=void 0,Ce.focusTime=void 0,Ce.preClickTime=void 0,Ce.preTouchTime=void 0,Ce.delayTimer=void 0,Ce.hasPopupMouseDown=void 0,Ce.onMouseEnter=function(Ke){var St=Ce.props.mouseEnterDelay;Ce.fireEvents("onMouseEnter",Ke),Ce.delaySetPopupVisible(!0,St,St?null:Ke)},Ce.onMouseMove=function(Ke){Ce.fireEvents("onMouseMove",Ke),Ce.setPoint(Ke)},Ce.onMouseLeave=function(Ke){Ce.fireEvents("onMouseLeave",Ke),Ce.delaySetPopupVisible(!1,Ce.props.mouseLeaveDelay)},Ce.onPopupMouseEnter=function(){Ce.clearDelayTimer()},Ce.onPopupMouseLeave=function(Ke){var St;if(Ke.relatedTarget&&!Ke.relatedTarget.setTimeout&&Object(Hn.a)((St=Ce.popupRef.current)===null||St===void 0?void 0:St.getElement(),Ke.relatedTarget))return;Ce.delaySetPopupVisible(!1,Ce.props.mouseLeaveDelay)},Ce.onFocus=function(Ke){Ce.fireEvents("onFocus",Ke),Ce.clearDelayTimer(),Ce.isFocusToShow()&&(Ce.focusTime=Date.now(),Ce.delaySetPopupVisible(!0,Ce.props.focusDelay))},Ce.onMouseDown=function(Ke){Ce.fireEvents("onMouseDown",Ke),Ce.preClickTime=Date.now()},Ce.onTouchStart=function(Ke){Ce.fireEvents("onTouchStart",Ke),Ce.preTouchTime=Date.now()},Ce.onBlur=function(Ke){Ce.fireEvents("onBlur",Ke),Ce.clearDelayTimer(),Ce.isBlurToHide()&&Ce.delaySetPopupVisible(!1,Ce.props.blurDelay)},Ce.onContextMenu=function(Ke){Ke.preventDefault(),Ce.fireEvents("onContextMenu",Ke),Ce.setPopupVisible(!0,Ke)},Ce.onContextMenuClose=function(){Ce.isContextMenuToShow()&&Ce.close()},Ce.onClick=function(Ke){if(Ce.fireEvents("onClick",Ke),Ce.focusTime){var St;if(Ce.preClickTime&&Ce.preTouchTime?St=Math.min(Ce.preClickTime,Ce.preTouchTime):Ce.preClickTime?St=Ce.preClickTime:Ce.preTouchTime&&(St=Ce.preTouchTime),Math.abs(St-Ce.focusTime)<20)return;Ce.focusTime=0}Ce.preClickTime=0,Ce.preTouchTime=0,Ce.isClickToShow()&&(Ce.isClickToHide()||Ce.isBlurToHide())&&Ke&&Ke.preventDefault&&Ke.preventDefault();var it=!Ce.state.popupVisible;(Ce.isClickToHide()&&!it||it&&Ce.isClickToShow())&&Ce.setPopupVisible(!Ce.state.popupVisible,Ke)},Ce.onPopupMouseDown=function(){if(Ce.hasPopupMouseDown=!0,clearTimeout(Ce.mouseDownTimeout),Ce.mouseDownTimeout=window.setTimeout(function(){Ce.hasPopupMouseDown=!1},0),Ce.context){var Ke;(Ke=Ce.context).onPopupMouseDown.apply(Ke,arguments)}},Ce.onDocumentClick=function(Ke){if(Ce.props.mask&&!Ce.props.maskClosable)return;var St=Ke.target,it=Ce.getRootDomNode(),Pt=Ce.getPopupDomNode();(!Object(Hn.a)(it,St)||Ce.isContextMenuOnly())&&!Object(Hn.a)(Pt,St)&&!Ce.hasPopupMouseDown&&Ce.close()},Ce.getRootDomNode=function(){var Ke=Ce.props.getTriggerDOMNode;if(Ke)return Ke(Ce.triggerRef.current);try{var St=Object(ia.a)(Ce.triggerRef.current);if(St)return St}catch(it){}return tn.a.findDOMNode(Object(_.a)(Ce))},Ce.getPopupClassNameFromAlign=function(Ke){var St=[],it=Ce.props,Pt=it.popupPlacement,an=it.builtinPlacements,gn=it.prefixCls,bt=it.alignPoint,Qn=it.getPopupClassNameFromAlign;return Pt&&an&&St.push(Xt(an,gn,Ke,bt)),Qn&&St.push(Qn(Ke)),St.join(" ")},Ce.getComponent=function(){var Ke=Ce.props,St=Ke.prefixCls,it=Ke.destroyPopupOnHide,Pt=Ke.popupClassName,an=Ke.onPopupAlign,gn=Ke.popupMotion,bt=Ke.popupAnimation,Qn=Ke.popupTransitionName,wa=Ke.popupStyle,tr=Ke.mask,Ya=Ke.maskAnimation,ar=Ke.maskTransitionName,Ar=Ke.maskMotion,hr=Ke.zIndex,sr=Ke.popup,va=Ke.stretch,_a=Ke.alignPoint,ur=Ke.mobile,Ba=Ke.forceRender,oa=Ce.state,Ua=oa.popupVisible,Er=oa.point,Ka=Ce.getPopupAlign(),yt={};return Ce.isMouseEnterToShow()&&(yt.onMouseEnter=Ce.onPopupMouseEnter),Ce.isMouseLeaveToHide()&&(yt.onMouseLeave=Ce.onPopupMouseLeave),yt.onMouseDown=Ce.onPopupMouseDown,yt.onTouchStart=Ce.onPopupMouseDown,O.createElement(Jt,Object(C.a)({prefixCls:St,destroyPopupOnHide:it,visible:Ua,point:_a&&Er,className:Pt,align:Ka,onAlign:an,animation:bt,getClassNameFromAlign:Ce.getPopupClassNameFromAlign},yt,{stretch:va,getRootDomNode:Ce.getRootDomNode,style:wa,mask:tr,zIndex:hr,transitionName:Qn,maskAnimation:Ya,maskTransitionName:ar,maskMotion:Ar,ref:Ce.popupRef,motion:gn,mobile:ur,forceRender:Ba}),typeof sr=="function"?sr():sr)},Ce.attachParent=function(Ke){Zt.a.cancel(Ce.attachId);var St=Ce.props,it=St.getPopupContainer,Pt=St.getDocument,an=Ce.getRootDomNode(),gn;it?(an||it.length===0)&&(gn=it(an)):gn=Pt(Ce.getRootDomNode()).body,gn?gn.appendChild(Ke):Ce.attachId=Object(Zt.a)(function(){Ce.attachParent(Ke)})},Ce.getContainer=function(){var Ke=Ce.props.getDocument,St=Ke(Ce.getRootDomNode()).createElement("div");return St.style.position="absolute",St.style.top="0",St.style.left="0",St.style.width="100%",Ce.attachParent(St),St},Ce.setPoint=function(Ke){var St=Ce.props.alignPoint;if(!St||!Ke)return;Ce.setState({point:{pageX:Ke.pageX,pageY:Ke.pageY}})},Ce.handlePortalUpdate=function(){Ce.state.prevPopupVisible!==Ce.state.popupVisible&&Ce.props.afterPopupVisibleChange(Ce.state.popupVisible)},Ce.triggerContextValue={onPopupMouseDown:Ce.onPopupMouseDown};var Ze;return"popupVisible"in Be?Ze=!!Be.popupVisible:Ze=!!Be.defaultPopupVisible,Ce.state={prevPopupVisible:Ze,popupVisible:Ze},da.forEach(function(Ke){Ce["fire".concat(Ke)]=function(St){Ce.fireEvents(Ke,St)}}),Ce}return Object(n.a)(Ee,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ce=this.props,Ze=this.state;if(Ze.popupVisible){var Ke;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ke=Ce.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(mt.a)(Ke,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ke=Ke||Ce.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(mt.a)(Ke,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ke=Ke||Ce.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(mt.a)(Ke,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(mt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Zt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Ce;return((Ce=this.popupRef.current)===null||Ce===void 0?void 0:Ce.getElement())||null}},{key:"getPopupAlign",value:function(){var Ce=this.props,Ze=Ce.popupPlacement,Ke=Ce.popupAlign,St=Ce.builtinPlacements;return Ze&&St?Ot(St,Ze,Ke):Ke}},{key:"setPopupVisible",value:function(Ce,Ze){var Ke=this.props.alignPoint,St=this.state.popupVisible;this.clearDelayTimer(),St!==Ce&&("popupVisible"in this.props||this.setState({popupVisible:Ce,prevPopupVisible:St}),this.props.onPopupVisibleChange(Ce)),Ke&&Ze&&Ce&&this.setPoint(Ze)}},{key:"delaySetPopupVisible",value:function(Ce,Ze,Ke){var St=this,it=Ze*1e3;if(this.clearDelayTimer(),it){var Pt=Ke?{pageX:Ke.pageX,pageY:Ke.pageY}:null;this.delayTimer=window.setTimeout(function(){St.setPopupVisible(Ce,Pt),St.clearDelayTimer()},it)}else this.setPopupVisible(Ce,Ke)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Ce){var Ze=this.props.children.props,Ke=this.props;return Ze[Ce]&&Ke[Ce]?this["fire".concat(Ce)]:Ze[Ce]||Ke[Ce]}},{key:"isClickToShow",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.showAction;return Ze.indexOf("click")!==-1||Ke.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Ce=this.props.action;return Ce==="contextMenu"||Ce.length===1&&Ce[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.showAction;return Ze.indexOf("contextMenu")!==-1||Ke.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.hideAction;return Ze.indexOf("click")!==-1||Ke.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.showAction;return Ze.indexOf("hover")!==-1||Ke.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.hideAction;return Ze.indexOf("hover")!==-1||Ke.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.showAction;return Ze.indexOf("focus")!==-1||Ke.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ce=this.props,Ze=Ce.action,Ke=Ce.hideAction;return Ze.indexOf("focus")!==-1||Ke.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Ce;(Ce=this.popupRef.current)===null||Ce===void 0||Ce.forceAlign()}}},{key:"fireEvents",value:function(Ce,Ze){var Ke=this.props.children.props[Ce];Ke&&Ke(Ze);var St=this.props[Ce];St&&St(Ze)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ce=this.state.popupVisible,Ze=this.props,Ke=Ze.children,St=Ze.forceRender,it=Ze.alignPoint,Pt=Ze.className,an=Ze.autoDestroy,gn=O.Children.only(Ke),bt={key:"trigger"};this.isContextMenuToShow()?bt.onContextMenu=this.onContextMenu:bt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(bt.onClick=this.onClick,bt.onMouseDown=this.onMouseDown,bt.onTouchStart=this.onTouchStart):(bt.onClick=this.createTwoChains("onClick"),bt.onMouseDown=this.createTwoChains("onMouseDown"),bt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(bt.onMouseEnter=this.onMouseEnter,it&&(bt.onMouseMove=this.onMouseMove)):bt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?bt.onMouseLeave=this.onMouseLeave:bt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(bt.onFocus=this.onFocus,bt.onBlur=this.onBlur):(bt.onFocus=this.createTwoChains("onFocus"),bt.onBlur=this.createTwoChains("onBlur"));var Qn=M()(gn&&gn.props&&gn.props.className,Pt);Qn&&(bt.className=Qn);var wa=Object(B.a)({},bt);Object(vt.c)(gn)&&(wa.ref=Object(vt.a)(this.triggerRef,gn.ref));var tr=O.cloneElement(gn,wa),Ya;return(Ce||this.popupRef.current||St)&&(Ya=O.createElement($e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ce&&an&&(Ya=null),O.createElement(An.Provider,{value:this.triggerContextValue},tr,Ya)}}],[{key:"getDerivedStateFromProps",value:function(Ce,Ze){var Ke=Ce.popupVisible,St={};return Ke!==void 0&&Ze.popupVisible!==Ke&&(St.popupVisible=Ke,St.prevPopupVisible=Ze.popupVisible),St}}]),Ee}(O.Component);return pt.contextType=An,pt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ra,getDocument:Fn,onPopupVisibleChange:aa,afterPopupVisibleChange:aa,onPopupAlign:aa,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},pt}var Wa=Ta(on.a),ue={adjustX:1,adjustY:1},ot={topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ue,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ue,offset:[4,0]}},lt={topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ue,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ue,offset:[4,0]}},ft=ot,wt=0,Et={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},jt=function(pt,_t,Xe){var Ee=Ve(_t),Be=pt.getState();pt.setState({defaultActiveFirst:Object(B.a)(Object(B.a)({},Be.defaultActiveFirst),{},Object(Q.a)({},Ee,Xe))})},Yt=function($e){Object(h.a)(_t,$e);var pt=Object(g.a)(_t);function _t(Xe){var Ee;Object(v.a)(this,_t),Ee=pt.call(this,Xe),Ee.onDestroy=function(it){Ee.props.onDestroy(it)},Ee.onKeyDown=function(it){var Pt=it.keyCode,an=Ee.menuInstance,gn=Ee.props.store,bt=Ee.getVisible();if(Pt===f.a.ENTER)return Ee.onTitleClick(it),jt(gn,Ee.props.eventKey,!0),!0;if(Pt===f.a.RIGHT)return bt?an.onKeyDown(it):(Ee.triggerOpenChange(!0),jt(gn,Ee.props.eventKey,!0)),!0;if(Pt===f.a.LEFT){var Qn;if(bt)Qn=an.onKeyDown(it);else return;return Qn||(Ee.triggerOpenChange(!1),Qn=!0),Qn}return bt&&(Pt===f.a.UP||Pt===f.a.DOWN)?an.onKeyDown(it):void 0},Ee.onOpenChange=function(it){Ee.props.onOpenChange(it)},Ee.onPopupVisibleChange=function(it){Ee.triggerOpenChange(it,it?"mouseenter":"mouseleave")},Ee.onMouseEnter=function(it){var Pt=Ee.props,an=Pt.eventKey,gn=Pt.onMouseEnter,bt=Pt.store;jt(bt,Ee.props.eventKey,!1),gn({key:an,domEvent:it})},Ee.onMouseLeave=function(it){var Pt=Ee.props,an=Pt.parentMenu,gn=Pt.eventKey,bt=Pt.onMouseLeave;an.subMenuInstance=Object(_.a)(Ee),bt({key:gn,domEvent:it})},Ee.onTitleMouseEnter=function(it){var Pt=Ee.props,an=Pt.eventKey,gn=Pt.onItemHover,bt=Pt.onTitleMouseEnter;gn({key:an,hover:!0}),bt({key:an,domEvent:it})},Ee.onTitleMouseLeave=function(it){var Pt=Ee.props,an=Pt.parentMenu,gn=Pt.eventKey,bt=Pt.onItemHover,Qn=Pt.onTitleMouseLeave;an.subMenuInstance=Object(_.a)(Ee),bt({key:gn,hover:!1}),Qn({key:gn,domEvent:it})},Ee.onTitleClick=function(it){var Pt=Object(_.a)(Ee),an=Pt.props;if(an.onTitleClick({key:an.eventKey,domEvent:it}),an.triggerSubMenuAction==="hover")return;Ee.triggerOpenChange(!Ee.getVisible(),"click"),jt(an.store,Ee.props.eventKey,!1)},Ee.onSubMenuClick=function(it){typeof Ee.props.onClick=="function"&&Ee.props.onClick(Ee.addKeyPath(it))},Ee.onSelect=function(it){Ee.props.onSelect(it)},Ee.onDeselect=function(it){Ee.props.onDeselect(it)},Ee.getPrefixCls=function(){return"".concat(Ee.props.rootPrefixCls,"-submenu")},Ee.getActiveClassName=function(){return"".concat(Ee.getPrefixCls(),"-active")},Ee.getDisabledClassName=function(){return"".concat(Ee.getPrefixCls(),"-disabled")},Ee.getSelectedClassName=function(){return"".concat(Ee.getPrefixCls(),"-selected")},Ee.getOpenClassName=function(){return"".concat(Ee.props.rootPrefixCls,"-submenu-open")},Ee.getVisible=function(){return Ee.state.isOpen},Ee.getMode=function(){return Ee.state.mode},Ee.saveMenuInstance=function(it){Ee.menuInstance=it},Ee.addKeyPath=function(it){return Object(B.a)(Object(B.a)({},it),{},{keyPath:(it.keyPath||[]).concat(Ee.props.eventKey)})},Ee.triggerOpenChange=function(it,Pt){var an=Ee.props.eventKey,gn=function(){Ee.onOpenChange({key:an,item:Object(_.a)(Ee),trigger:Pt,open:it})};Pt==="mouseenter"?Ee.mouseenterTimeout=setTimeout(function(){gn()},0):gn()},Ee.isChildrenSelected=function(){var it={find:!1};return Qe(Ee.props.children,Ee.props.selectedKeys,it),it.find},Ee.isInlineMode=function(){return Ee.getMode()==="inline"},Ee.adjustWidth=function(){if(!Ee.subMenuTitle||!Ee.menuInstance)return;var it=Ct.findDOMNode(Ee.menuInstance);if(it.offsetWidth>=Ee.subMenuTitle.offsetWidth)return;it.style.minWidth="".concat(Ee.subMenuTitle.offsetWidth,"px")},Ee.saveSubMenuTitle=function(it){Ee.subMenuTitle=it},Ee.getBaseProps=function(){var it=Object(_.a)(Ee),Pt=it.props,an=Ee.getMode();return{mode:an==="horizontal"?"vertical":an,visible:Ee.getVisible(),level:Pt.level+1,inlineIndent:Pt.inlineIndent,focusable:!1,onClick:Ee.onSubMenuClick,onSelect:Ee.onSelect,onDeselect:Ee.onDeselect,onDestroy:Ee.onDestroy,selectedKeys:Pt.selectedKeys,eventKey:"".concat(Pt.eventKey,"-menu-"),openKeys:Pt.openKeys,motion:Pt.motion,onOpenChange:Ee.onOpenChange,subMenuOpenDelay:Pt.subMenuOpenDelay,parentMenu:Object(_.a)(Ee),subMenuCloseDelay:Pt.subMenuCloseDelay,forceSubMenuRender:Pt.forceSubMenuRender,triggerSubMenuAction:Pt.triggerSubMenuAction,builtinPlacements:Pt.builtinPlacements,defaultActiveFirst:Pt.store.getState().defaultActiveFirst[Ve(Pt.eventKey)],multiple:Pt.multiple,prefixCls:Pt.rootPrefixCls,id:Ee.internalMenuId,manualRef:Ee.saveMenuInstance,itemIcon:Pt.itemIcon,expandIcon:Pt.expandIcon,direction:Pt.direction}},Ee.getMotion=function(it,Pt){var an=Object(_.a)(Ee),gn=an.haveRendered,bt=Ee.props,Qn=bt.motion,wa=bt.rootPrefixCls,tr=Object(B.a)(Object(B.a)({},Qn),{},{leavedClassName:"".concat(wa,"-hidden"),removeOnLeave:!1,motionAppear:gn||!Pt||it!=="inline"});return tr};var Be=Xe.store,Ce=Xe.eventKey,Ze=Be.getState(),Ke=Ze.defaultActiveFirst;Ee.isRootMenu=!1;var St=!1;return Ke&&(St=Ke[Ce]),jt(Be,Ce,St),Ee.state={mode:Xe.mode,isOpen:Xe.isOpen},Ee}return Object(n.a)(_t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ee=this,Be=this.props,Ce=Be.mode,Ze=Be.parentMenu,Ke=Be.manualRef,St=Be.isOpen,it=function(){Ee.setState({mode:Ce,isOpen:St})},Pt=St!==this.state.isOpen,an=Ce!==this.state.mode;if((an||Pt)&&(Zt.a.cancel(this.updateStateRaf),an?this.updateStateRaf=Object(Zt.a)(it):it()),Ke&&Ke(this),Ce!=="horizontal"||!(Ze==null?void 0:Ze.isRootMenu)||!St)return;this.minWidthTimeout=setTimeout(function(){return Ee.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ee=this.props,Be=Ee.onDestroy,Ce=Ee.eventKey;Be&&Be(Ce),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Zt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Ee,Be){var Ce=this.getBaseProps();return O.createElement(Vn,Object(C.a)({},Ce,{id:this.internalMenuId,className:Ee,style:Be}),this.props.children)}},{key:"renderChildren",value:function(){var Ee=this,Be=this.getBaseProps(),Ce=Be.mode,Ze=Be.visible,Ke=Be.forceSubMenuRender,St=Be.direction,it=this.getMotion(Ce,Ze);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ze||Ke,!this.haveOpened)return O.createElement("div",null);var Pt=M()("".concat(Be.prefixCls,"-sub"),Object(Q.a)({},"".concat(Be.prefixCls,"-rtl"),St==="rtl"));return this.isInlineMode()?O.createElement(_e,Object(C.a)({visible:Be.visible,forceRender:Ke},it),function(an){var gn=an.className,bt=an.style,Qn=M()(Pt,gn);return Ee.renderPopupMenu(Qn,bt)}):this.renderPopupMenu(Pt)}},{key:"render",value:function(){var Ee,Be,Ce,Ze=Object(B.a)({},this.props),Ke=this.getVisible(),St=this.getPrefixCls(),it=this.isInlineMode(),Pt=this.getMode(),an=M()(St,"".concat(St,"-").concat(Pt),(Ee={},Object(Q.a)(Ee,Ze.className,!!Ze.className),Object(Q.a)(Ee,this.getOpenClassName(),Ke),Object(Q.a)(Ee,this.getActiveClassName(),Ze.active||Ke&&!it),Object(Q.a)(Ee,this.getDisabledClassName(),Ze.disabled),Object(Q.a)(Ee,this.getSelectedClassName(),this.isChildrenSelected()),Ee));this.internalMenuId||(Ze.eventKey?this.internalMenuId="".concat(Ze.eventKey,"$Menu"):(wt+=1,this.internalMenuId="$__$".concat(wt,"$Menu")));var gn={},bt={},Qn={};Ze.disabled||(gn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},bt={onClick:this.onTitleClick},Qn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var wa={},tr=Ze.direction,Ya=tr==="rtl";it&&(Ya?wa.paddingRight=Ze.inlineIndent*Ze.level:wa.paddingLeft=Ze.inlineIndent*Ze.level);var ar={};this.getVisible()&&(ar={"aria-owns":this.internalMenuId});var Ar=null;Pt!=="horizontal"&&(Ar=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ar=O.createElement(this.props.expandIcon,Object(B.a)({},this.props))));var hr=O.createElement("div",Object(C.a)({ref:this.saveSubMenuTitle,style:wa,className:"".concat(St,"-title"),role:"button"},Qn,bt,{"aria-expanded":Ke},ar,{"aria-haspopup":"true",title:typeof Ze.title=="string"?Ze.title:void 0}),Ze.title,Ar||O.createElement("i",{className:"".concat(St,"-arrow")})),sr=this.renderChildren(),va=((Be=Ze.parentMenu)===null||Be===void 0?void 0:Be.isRootMenu)?Ze.parentMenu.props.getPopupContainer:function(pr){return pr.parentNode},_a=Et[Pt],ur=Ze.popupOffset?{offset:Ze.popupOffset}:{},Ba=M()((Ce={},Object(Q.a)(Ce,Ze.popupClassName,Ze.popupClassName&&!it),Object(Q.a)(Ce,"".concat(St,"-rtl"),Ya),Ce)),oa=Ze.disabled,Ua=Ze.triggerSubMenuAction,Er=Ze.subMenuOpenDelay,Ka=Ze.forceSubMenuRender,yt=Ze.subMenuCloseDelay,qa=Ze.builtinPlacements;pe.forEach(function(pr){return delete Ze[pr]}),delete Ze.onClick;var Lr=Ya?Object(B.a)(Object(B.a)({},lt),qa):Object(B.a)(Object(B.a)({},ot),qa);delete Ze.direction;var _r=this.getBaseProps(),Tt=it?null:this.getMotion(_r.mode,_r.visible);return O.createElement("li",Object(C.a)({},Ze,gn,{className:an,role:"menuitem"}),O.createElement(Wa,{prefixCls:St,popupClassName:M()("".concat(St,"-popup"),Ba),getPopupContainer:va,builtinPlacements:Lr,popupPlacement:_a,popupVisible:it?!1:Ke,popupAlign:ur,popup:it?null:sr,action:oa||it?[]:[Ua],mouseEnterDelay:Er,mouseLeaveDelay:yt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ka,popupMotion:Tt},hr),it?sr:null)}}]),_t}(O.Component);Yt.defaultProps={onMouseEnter:Ue,onMouseLeave:Ue,onTitleMouseEnter:Ue,onTitleMouseLeave:Ue,onTitleClick:Ue,manualRef:Ue,mode:"vertical",title:""};var wn=Object(x.b)(function($e,pt){var _t=$e.openKeys,Xe=$e.activeKey,Ee=$e.selectedKeys,Be=pt.eventKey,Ce=pt.subMenuKey;return{isOpen:_t.indexOf(Be)>-1,active:Xe[Ce]===Be,selectedKeys:Ee}})(Yt);wn.isSubMenu=!0;var fn=wn,zn="menuitem-overflowed",jn=.5,$t=function($e){Object(h.a)(_t,$e);var pt=Object(g.a)(_t);function _t(){var Xe;return Object(v.a)(this,_t),Xe=pt.apply(this,arguments),Xe.resizeObserver=null,Xe.mutationObserver=null,Xe.originalTotalWidth=0,Xe.overflowedItems=[],Xe.menuItemSizes=[],Xe.cancelFrameId=null,Xe.state={lastVisibleIndex:void 0},Xe.childRef=O.createRef(),Xe.getMenuItemNodes=function(){var Ee=Xe.props.prefixCls,Be=Xe.childRef.current;return Be?[].slice.call(Be.children).filter(function(Ce){return Ce.className.split(" ").indexOf("".concat(Ee,"-overflowed-submenu"))<0}):[]},Xe.getOverflowedSubMenuItem=function(Ee,Be,Ce){var Ze=Xe.props,Ke=Ze.overflowedIndicator,St=Ze.level,it=Ze.mode,Pt=Ze.prefixCls,an=Ze.theme;if(St!==1||it!=="horizontal")return null;var gn=Xe.props.children[0],bt=gn.props,Qn=bt.children,wa=bt.title,tr=bt.style,Ya=Object(k.a)(bt,["children","title","style"]),ar=Object(B.a)({},tr),Ar="".concat(Ee,"-overflowed-indicator"),hr="".concat(Ee,"-overflowed-indicator");Be.length===0&&Ce!==!0?ar=Object(B.a)(Object(B.a)({},ar),{},{display:"none"}):Ce&&(ar=Object(B.a)(Object(B.a)({},ar),{},{visibility:"hidden",position:"absolute"}),Ar="".concat(Ar,"-placeholder"),hr="".concat(hr,"-placeholder"));var sr=an?"".concat(Pt,"-").concat(an):"",va={};return pe.forEach(function(_a){Ya[_a]!==void 0&&(va[_a]=Ya[_a])}),O.createElement(fn,Object(C.a)({title:Ke,className:"".concat(Pt,"-overflowed-submenu"),popupClassName:sr},va,{key:Ar,eventKey:hr,disabled:!1,style:ar}),Be)},Xe.setChildrenWidthAndResize=function(){if(Xe.props.mode!=="horizontal")return;var Ee=Xe.childRef.current;if(!Ee)return;var Be=Ee.children;if(!Be||Be.length===0)return;var Ce=Ee.children[Be.length-1];Le(Ce,"display","inline-block");var Ze=Xe.getMenuItemNodes(),Ke=Ze.filter(function(St){return St.className.split(" ").indexOf(zn)>=0});Ke.forEach(function(St){Le(St,"display","inline-block")}),Xe.menuItemSizes=Ze.map(function(St){return xe(St,!0)}),Ke.forEach(function(St){Le(St,"display","none")}),Xe.overflowedIndicatorWidth=xe(Ee.children[Ee.children.length-1],!0),Xe.originalTotalWidth=Xe.menuItemSizes.reduce(function(St,it){return St+it},0),Xe.handleResize(),Le(Ce,"display","none")},Xe.handleResize=function(){if(Xe.props.mode!=="horizontal")return;var Ee=Xe.childRef.current;if(!Ee)return;var Be=xe(Ee);Xe.overflowedItems=[];var Ce=0,Ze;Xe.originalTotalWidth>Be+jn&&(Ze=-1,Xe.menuItemSizes.forEach(function(Ke){Ce+=Ke,Ce+Xe.overflowedIndicatorWidth<=Be&&(Ze+=1)})),Xe.setState({lastVisibleIndex:Ze})},Xe}return Object(n.a)(_t,[{key:"componentDidMount",value:function(){var Ee=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Be=this.childRef.current;if(!Be)return;this.resizeObserver=new gt.default(function(Ce){Ce.forEach(function(){var Ze=Ee.cancelFrameId;cancelAnimationFrame(Ze),Ee.cancelFrameId=requestAnimationFrame(Ee.setChildrenWidthAndResize)})}),[].slice.call(Be.children).concat(Be).forEach(function(Ce){Ee.resizeObserver.observe(Ce)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ee.resizeObserver.disconnect(),[].slice.call(Be.children).concat(Be).forEach(function(Ce){Ee.resizeObserver.observe(Ce)}),Ee.setChildrenWidthAndResize()}),this.mutationObserver.observe(Be,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Ee){var Be=this,Ce=this.state.lastVisibleIndex;return(Ee||[]).reduce(function(Ze,Ke,St){var it=Ke;if(Be.props.mode==="horizontal"){var Pt=Be.getOverflowedSubMenuItem(Ke.props.eventKey,[]);Ce!==void 0&&Be.props.className.indexOf("".concat(Be.props.prefixCls,"-root"))!==-1&&(St>Ce&&(it=O.cloneElement(Ke,{style:{display:"none"},eventKey:"".concat(Ke.props.eventKey,"-hidden"),className:"".concat(zn)})),St===Ce+1&&(Be.overflowedItems=Ee.slice(Ce+1).map(function(gn){return O.cloneElement(gn,{key:gn.props.eventKey,mode:"vertical-left"})}),Pt=Be.getOverflowedSubMenuItem(Ke.props.eventKey,Be.overflowedItems)));var an=[].concat(Object(b.a)(Ze),[Pt,it]);return St===Ee.length-1&&an.push(Be.getOverflowedSubMenuItem(Ke.props.eventKey,[],!0)),an}return[].concat(Object(b.a)(Ze),[it])},[])}},{key:"render",value:function(){var Ee=this.props,Be=Ee.visible,Ce=Ee.prefixCls,Ze=Ee.overflowedIndicator,Ke=Ee.mode,St=Ee.level,it=Ee.tag,Pt=Ee.children,an=Ee.theme,gn=Object(k.a)(Ee,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),bt=it;return O.createElement(bt,Object(C.a)({ref:this.childRef},gn),this.renderChildren(Pt))}}]),_t}(O.Component);$t.defaultProps={tag:"div",className:""};var yn=$t;function pn($e){return $e.length?$e.every(function(pt){return!!pt.props.disabled}):!0}function On($e,pt,_t){var Xe=$e.getState();$e.setState({activeKey:Object(B.a)(Object(B.a)({},Xe.activeKey),{},Object(Q.a)({},pt,_t))})}function cn($e){return $e.eventKey||"0-menu-"}function sn($e,pt){var _t=pt,Xe=$e.children,Ee=$e.eventKey;if(_t){var Be;if(dt(Xe,function(Ce,Ze){Ce&&Ce.props&&!Ce.props.disabled&&_t===st(Ce,Ee,Ze)&&(Be=!0)}),Be)return _t}return _t=null,$e.defaultActiveFirst&&dt(Xe,function(Ce,Ze){!_t&&Ce&&!Ce.props.disabled&&(_t=st(Ce,Ee,Ze))}),_t}function En($e){if(!$e)return;var pt=this.instanceArray.indexOf($e);pt!==-1?this.instanceArray[pt]=$e:this.instanceArray.push($e)}var Pn=function($e){Object(h.a)(_t,$e);var pt=Object(g.a)(_t);function _t(Xe){var Ee;return Object(v.a)(this,_t),Ee=pt.call(this,Xe),Ee.onKeyDown=function(Be,Ce){var Ze=Be.keyCode,Ke;if(Ee.getFlatInstanceArray().forEach(function(it){it&&it.props.active&&it.onKeyDown&&(Ke=it.onKeyDown(Be))}),Ke)return 1;var St=null;return(Ze===f.a.UP||Ze===f.a.DOWN)&&(St=Ee.step(Ze===f.a.UP?-1:1)),St?(Be.preventDefault(),On(Ee.props.store,cn(Ee.props),St.props.eventKey),typeof Ce=="function"&&Ce(St),1):void 0},Ee.onItemHover=function(Be){var Ce=Be.key,Ze=Be.hover;On(Ee.props.store,cn(Ee.props),Ze?Ce:null)},Ee.onDeselect=function(Be){Ee.props.onDeselect(Be)},Ee.onSelect=function(Be){Ee.props.onSelect(Be)},Ee.onClick=function(Be){Ee.props.onClick(Be)},Ee.onOpenChange=function(Be){Ee.props.onOpenChange(Be)},Ee.onDestroy=function(Be){Ee.props.onDestroy(Be)},Ee.getFlatInstanceArray=function(){return Ee.instanceArray},Ee.step=function(Be){var Ce=Ee.getFlatInstanceArray(),Ze=Ee.props.store.getState().activeKey[cn(Ee.props)],Ke=Ce.length;if(!Ke)return null;Be<0&&(Ce=Ce.concat().reverse());var St=-1;if(Ce.every(function(gn,bt){return gn&&gn.props.eventKey===Ze?(St=bt,!1):!0}),!Ee.props.defaultActiveFirst&&St!==-1&&pn(Ce.slice(St,Ke-1)))return;var it=(St+1)%Ke,Pt=it;do{var an=Ce[Pt];if(!an||an.props.disabled)Pt=(Pt+1)%Ke;else return an}while(Pt!==it);return null},Ee.renderCommonMenuItem=function(Be,Ce,Ze){var Ke=Ee.props.store.getState(),St=Object(_.a)(Ee),it=St.props,Pt=st(Be,it.eventKey,Ce),an=Be.props;if(!an||typeof Be.type=="string")return Be;var gn=Pt===Ke.activeKey,bt=Object(B.a)(Object(B.a)({mode:an.mode||it.mode,level:it.level,inlineIndent:it.inlineIndent,renderMenuItem:Ee.renderMenuItem,rootPrefixCls:it.prefixCls,index:Ce,parentMenu:it.parentMenu,manualRef:an.disabled?void 0:Object(S.a)(Be.ref,En.bind(Object(_.a)(Ee))),eventKey:Pt,active:!an.disabled&&gn,multiple:it.multiple,onClick:function(wa){(an.onClick||Ue)(wa),Ee.onClick(wa)},onItemHover:Ee.onItemHover,motion:it.motion,subMenuOpenDelay:it.subMenuOpenDelay,subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,onOpenChange:Ee.onOpenChange,onDeselect:Ee.onDeselect,onSelect:Ee.onSelect,builtinPlacements:it.builtinPlacements,itemIcon:an.itemIcon||Ee.props.itemIcon,expandIcon:an.expandIcon||Ee.props.expandIcon},Ze),{},{direction:it.direction});return(it.mode==="inline"||Ye())&&(bt.triggerSubMenuAction="click"),O.cloneElement(Be,Object(B.a)(Object(B.a)({},bt),{},{key:Pt||Ce}))},Ee.renderMenuItem=function(Be,Ce,Ze){if(!Be)return null;var Ke=Ee.props.store.getState(),St={openKeys:Ke.openKeys,selectedKeys:Ke.selectedKeys,triggerSubMenuAction:Ee.props.triggerSubMenuAction,subMenuKey:Ze};return Ee.renderCommonMenuItem(Be,Ce,St)},Xe.store.setState({activeKey:Object(B.a)(Object(B.a)({},Xe.store.getState().activeKey),{},Object(Q.a)({},Xe.eventKey,sn(Xe,Xe.activeKey)))}),Ee.instanceArray=[],Ee}return Object(n.a)(_t,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ee){return this.props.visible||Ee.visible||this.props.className!==Ee.className||!U()(this.props.style,Ee.style)}},{key:"componentDidUpdate",value:function(Ee){var Be=this.props,Ce="activeKey"in Be?Be.activeKey:Be.store.getState().activeKey[cn(Be)],Ze=sn(Be,Ce);if(Ze!==Ce)On(Be.store,cn(Be),Ze);else if("activeKey"in Ee){var Ke=sn(Ee,Ee.activeKey);Ze!==Ke&&On(Be.store,cn(Be),Ze)}}},{key:"render",value:function(){var Ee=this,Be=Object(C.a)({},this.props);this.instanceArray=[];var Ce=M()(Be.prefixCls,Be.className,"".concat(Be.prefixCls,"-").concat(Be.mode)),Ze={className:Ce,role:Be.role||"menu"};Be.id&&(Ze.id=Be.id),Be.focusable&&(Ze.tabIndex=0,Ze.onKeyDown=this.onKeyDown);var Ke=Be.prefixCls,St=Be.eventKey,it=Be.visible,Pt=Be.level,an=Be.mode,gn=Be.overflowedIndicator,bt=Be.theme;return pe.forEach(function(Qn){return delete Be[Qn]}),delete Be.onClick,O.createElement(yn,Object(C.a)({},Be,{prefixCls:Ke,mode:an,tag:"ul",level:Pt,theme:bt,visible:it,overflowedIndicator:gn},Ze),Object(p.a)(Be.children).map(function(Qn,wa){return Ee.renderMenuItem(Qn,wa,St||"0-menu-")}))}}]),_t}(O.Component);Pn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ue};var Kn=Object(x.b)()(Pn),Vn=Kn,ua=y("Kwbf");function xa($e,pt,_t){var Xe=$e.prefixCls,Ee=$e.motion,Be=$e.defaultMotions,Ce=Be===void 0?{}:Be,Ze=$e.openAnimation,Ke=$e.openTransitionName,St=pt.switchingModeFromInline;if(Ee)return Ee;if(Object(F.a)(Ze)==="object"&&Ze)Object(ua.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ze=="string")return{motionName:"".concat(Xe,"-open-").concat(Ze)};if(Ke)return{motionName:Ke};var it=Ce[_t];return it||(St?null:Ce.other)}var rn=function($e){Object(h.a)(_t,$e);var pt=Object(g.a)(_t);function _t(Xe){var Ee;Object(v.a)(this,_t),Ee=pt.call(this,Xe),Ee.onSelect=function(Ze){var Ke=Object(_.a)(Ee),St=Ke.props;if(St.selectable){var it=Ee.store.getState(),Pt=it.selectedKeys,an=Ze.key;St.multiple?Pt=Pt.concat([an]):Pt=[an],"selectedKeys"in St||Ee.store.setState({selectedKeys:Pt}),St.onSelect(Object(B.a)(Object(B.a)({},Ze),{},{selectedKeys:Pt}))}},Ee.onClick=function(Ze){var Ke=Ee.getRealMenuMode(),St=Object(_.a)(Ee),it=St.store,Pt=St.props.onOpenChange;Ke!=="inline"&&!("openKeys"in Ee.props)&&(it.setState({openKeys:[]}),Pt([])),Ee.props.onClick(Ze)},Ee.onKeyDown=function(Ze,Ke){Ee.innerMenu.getWrappedInstance().onKeyDown(Ze,Ke)},Ee.onOpenChange=function(Ze){var Ke=Object(_.a)(Ee),St=Ke.props,it=Ee.store.getState().openKeys.concat(),Pt=!1,an=function(bt){var Qn=!1;if(bt.open)Qn=it.indexOf(bt.key)===-1,Qn&&it.push(bt.key);else{var wa=it.indexOf(bt.key);Qn=wa!==-1,Qn&&it.splice(wa,1)}Pt=Pt||Qn};Array.isArray(Ze)?Ze.forEach(an):an(Ze),Pt&&("openKeys"in Ee.props||Ee.store.setState({openKeys:it}),St.onOpenChange(it))},Ee.onDeselect=function(Ze){var Ke=Object(_.a)(Ee),St=Ke.props;if(St.selectable){var it=Ee.store.getState().selectedKeys.concat(),Pt=Ze.key,an=it.indexOf(Pt);an!==-1&&it.splice(an,1),"selectedKeys"in St||Ee.store.setState({selectedKeys:it}),St.onDeselect(Object(B.a)(Object(B.a)({},Ze),{},{selectedKeys:it}))}},Ee.onMouseEnter=function(Ze){Ee.restoreModeVerticalFromInline();var Ke=Ee.props.onMouseEnter;Ke&&Ke(Ze)},Ee.onTransitionEnd=function(Ze){var Ke=Ze.propertyName==="width"&&Ze.target===Ze.currentTarget,St=Ze.target.className,it=Object.prototype.toString.call(St)==="[object SVGAnimatedString]"?St.animVal:St,Pt=Ze.propertyName==="font-size"&&it.indexOf("anticon")>=0;(Ke||Pt)&&Ee.restoreModeVerticalFromInline()},Ee.setInnerMenu=function(Ze){Ee.innerMenu=Ze},Ee.isRootMenu=!0;var Be=Xe.defaultSelectedKeys,Ce=Xe.defaultOpenKeys;return"selectedKeys"in Xe&&(Be=Xe.selectedKeys||[]),"openKeys"in Xe&&(Ce=Xe.openKeys||[]),Ee.store=Object(x.c)({selectedKeys:Be,openKeys:Ce,activeKey:{"0-menu-":sn(Xe,Xe.activeKey)}}),Ee.state={switchingModeFromInline:!1,prevProps:Xe,inlineOpenKeys:[],store:Ee.store},Ee}return Object(n.a)(_t,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ee){var Be=this.props,Ce=Be.siderCollapsed,Ze=Be.inlineCollapsed,Ke=Be.onOpenChange;(!Ee.inlineCollapsed&&Ze||!Ee.siderCollapsed&&Ce)&&Ke([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Ee=this.props.collapsedWidth,Be=this.store,Ce=this.prevOpenKeys,Ze=this.getInlineCollapsed()&&(Ee===0||Ee==="0"||Ee==="0px");Ze?(this.prevOpenKeys=Be.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ce&&(this.store.setState({openKeys:Ce}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ee=this.props.mode,Be=this.state.switchingModeFromInline,Ce=this.getInlineCollapsed();return Be&&Ce?"inline":Ce?"vertical":Ee}},{key:"getInlineCollapsed",value:function(){var Ee=this.props,Be=Ee.inlineCollapsed,Ce=Ee.siderCollapsed;return Ce!==void 0?Ce:Be}},{key:"restoreModeVerticalFromInline",value:function(){var Ee=this.state.switchingModeFromInline;Ee&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Ee=Object(B.a)({},Object(T.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Be=this.getRealMenuMode();return Ee.className+=" ".concat(Ee.prefixCls,"-root"),Ee.direction==="rtl"&&(Ee.className+=" ".concat(Ee.prefixCls,"-rtl")),Ee=Object(B.a)(Object(B.a)({},Ee),{},{mode:Be,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:xa(this.props,this.state,Be)}),delete Ee.openAnimation,delete Ee.openTransitionName,O.createElement(x.a,{store:this.store},O.createElement(Vn,Object(C.a)({},Ee,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Ee,Be){var Ce=Be.prevProps,Ze=Be.store,Ke=Ze.getState(),St={},it={prevProps:Ee};return Ce.mode==="inline"&&Ee.mode!=="inline"&&(it.switchingModeFromInline=!0),"openKeys"in Ee?St.openKeys=Ee.openKeys||[]:((Ee.inlineCollapsed&&!Ce.inlineCollapsed||Ee.siderCollapsed&&!Ce.siderCollapsed)&&(it.switchingModeFromInline=!0,it.inlineOpenKeys=Ke.openKeys,St.openKeys=[]),(!Ee.inlineCollapsed&&Ce.inlineCollapsed||!Ee.siderCollapsed&&Ce.siderCollapsed)&&(St.openKeys=Be.inlineOpenKeys,it.inlineOpenKeys=[])),Object.keys(St).length&&Ze.setState(St),it}}]),_t}(O.Component);rn.defaultProps={selectable:!0,onClick:Ue,onSelect:Ue,onOpenChange:Ue,onDeselect:Ue,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:O.createElement("span",null,"\xB7\xB7\xB7")};var Vt=rn,Dt=function($e){Object(h.a)(_t,$e);var pt=Object(g.a)(_t);function _t(){var Xe;return Object(v.a)(this,_t),Xe=pt.apply(this,arguments),Xe.onKeyDown=function(Ee){var Be=Ee.keyCode;return Be===f.a.ENTER?(Xe.onClick(Ee),!0):void 0},Xe.onMouseLeave=function(Ee){var Be=Xe.props,Ce=Be.eventKey,Ze=Be.onItemHover,Ke=Be.onMouseLeave;Ze({key:Ce,hover:!1}),Ke({key:Ce,domEvent:Ee})},Xe.onMouseEnter=function(Ee){var Be=Xe.props,Ce=Be.eventKey,Ze=Be.onItemHover,Ke=Be.onMouseEnter;Ze({key:Ce,hover:!0}),Ke({key:Ce,domEvent:Ee})},Xe.onClick=function(Ee){var Be=Xe.props,Ce=Be.eventKey,Ze=Be.multiple,Ke=Be.onClick,St=Be.onSelect,it=Be.onDeselect,Pt=Be.isSelected,an={key:Ce,keyPath:[Ce],item:Object(_.a)(Xe),domEvent:Ee};Ke(an),Ze?Pt?it(an):St(an):Pt||St(an)},Xe.saveNode=function(Ee){Xe.node=Ee},Xe}return Object(n.a)(_t,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ee=this.props;Ee.onDestroy&&Ee.onDestroy(Ee.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Ee,Be=Object(B.a)({},this.props),Ce=M()(this.getPrefixCls(),Be.className,(Ee={},Object(Q.a)(Ee,this.getActiveClassName(),!Be.disabled&&Be.active),Object(Q.a)(Ee,this.getSelectedClassName(),Be.isSelected),Object(Q.a)(Ee,this.getDisabledClassName(),Be.disabled),Ee)),Ze=Object(B.a)(Object(B.a)({},Be.attribute),{},{title:typeof Be.title=="string"?Be.title:void 0,className:Ce,role:Be.role||"menuitem","aria-disabled":Be.disabled});Be.role==="option"?Ze=Object(B.a)(Object(B.a)({},Ze),{},{role:"option","aria-selected":Be.isSelected}):(Be.role===null||Be.role==="none")&&(Ze.role="none");var Ke={onClick:Be.disabled?null:this.onClick,onMouseLeave:Be.disabled?null:this.onMouseLeave,onMouseEnter:Be.disabled?null:this.onMouseEnter},St=Object(B.a)({},Be.style);Be.mode==="inline"&&(Be.direction==="rtl"?St.paddingRight=Be.inlineIndent*Be.level:St.paddingLeft=Be.inlineIndent*Be.level),pe.forEach(function(Pt){return delete Be[Pt]}),delete Be.direction;var it=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(it=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object(C.a)({},Object(T.a)(Be,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ze,Ke,{style:St,ref:this.saveNode}),Be.children,it)}}]),_t}(O.Component);Dt.isMenuItem=!0,Dt.defaultProps={onSelect:Ue,onMouseEnter:Ue,onMouseLeave:Ue,manualRef:Ue};var zt=Object(x.b)(function($e,pt){var _t=$e.activeKey,Xe=$e.selectedKeys,Ee=pt.eventKey,Be=pt.subMenuKey;return{active:_t[Be]===Ee,isSelected:Array.isArray(Xe)?Xe.indexOf(Ee)!==-1:Xe===Ee}})(Dt),xt=zt,ln=function($e){Object(h.a)(_t,$e);var pt=Object(g.a)(_t);function _t(){var Xe;return Object(v.a)(this,_t),Xe=pt.apply(this,arguments),Xe.renderInnerMenuItem=function(Ee){var Be=Xe.props,Ce=Be.renderMenuItem,Ze=Be.index;return Ce(Ee,Ze,Xe.props.subMenuKey)},Xe}return Object(n.a)(_t,[{key:"render",value:function(){var Ee=Object(C.a)({},this.props),Be=Ee.className,Ce=Be===void 0?"":Be,Ze=Ee.rootPrefixCls,Ke="".concat(Ze,"-item-group-title"),St="".concat(Ze,"-item-group-list"),it=Ee.title,Pt=Ee.children;return pe.forEach(function(an){return delete Ee[an]}),delete Ee.direction,O.createElement("li",Object(C.a)({},Ee,{onClick:function(gn){return gn.stopPropagation()},className:"".concat(Ce," ").concat(Ze,"-item-group")}),O.createElement("div",{className:Ke,title:typeof it=="string"?it:void 0},it),O.createElement("ul",{className:St},O.Children.map(Pt,this.renderInnerMenuItem)))}}]),_t}(O.Component);ln.isMenuItemGroup=!0,ln.defaultProps={disabled:!0};var Kt=ln,Xn=function(pt){var _t=pt.className,Xe=pt.rootPrefixCls,Ee=pt.style;return O.createElement("li",{className:"".concat(_t," ").concat(Xe,"-item-divider"),style:Ee})};Xn.defaultProps={disabled:!0,className:"",style:{}};var ha=Xn,Jn=Vt,Aa=y("eDIo");function Zn($e,pt){var _t=$e.prefixCls,Xe=$e.editable,Ee=$e.locale,Be=$e.style;return!Xe||Xe.showAdd===!1?null:O.createElement("button",{ref:pt,type:"button",className:"".concat(_t,"-nav-add"),style:Be,"aria-label":(Ee==null?void 0:Ee.addAriaLabel)||"Add tab",onClick:function(Ze){Xe.onEdit("add",{event:Ze})}},Xe.addIcon||"+")}var ea=O.forwardRef(Zn);function er($e,pt){var _t=$e.prefixCls,Xe=$e.id,Ee=$e.tabs,Be=$e.locale,Ce=$e.mobile,Ze=$e.moreIcon,Ke=Ze===void 0?"More":Ze,St=$e.moreTransitionName,it=$e.style,Pt=$e.className,an=$e.editable,gn=$e.tabBarGutter,bt=$e.rtl,Qn=$e.onTabClick,wa=Object(O.useState)(!1),tr=Object(W.a)(wa,2),Ya=tr[0],ar=tr[1],Ar=Object(O.useState)(null),hr=Object(W.a)(Ar,2),sr=hr[0],va=hr[1],_a="".concat(Xe,"-more-popup"),ur="".concat(_t,"-dropdown"),Ba=sr!==null?"".concat(_a,"-").concat(sr):null,oa=Be==null?void 0:Be.dropdownAriaLabel,Ua=O.createElement(Jn,{onClick:function(Tt){var pr=Tt.key,Yn=Tt.domEvent;Qn(pr,Yn),ar(!1)},id:_a,tabIndex:-1,role:"listbox","aria-activedescendant":Ba,selectedKeys:[sr],"aria-label":oa!==void 0?oa:"expanded dropdown"},Ee.map(function(_r){return O.createElement(xt,{key:_r.key,id:"".concat(_a,"-").concat(_r.key),role:"option","aria-controls":Xe&&"".concat(Xe,"-panel-").concat(_r.key),disabled:_r.disabled},_r.tab)}));function Er(_r){for(var Tt=Ee.filter(function(Xr){return!Xr.disabled}),pr=Tt.findIndex(function(Xr){return Xr.key===sr})||0,Yn=Tt.length,vr=0;vrqa?(Ka=Ua,_a.current="x"):(Ka=Er,_a.current="y");var Lr=Date.now();Lr-sr.current>100&&(va.current=!1),(pt(-Ka,-Ka)||va.current)&&(oa.preventDefault(),va.current=!0),sr.current=Lr}var Ba=Object(O.useRef)(null);Ba.current={onTouchStart:ar,onTouchMove:Ar,onTouchEnd:hr,onWheel:ur},O.useEffect(function(){function oa(yt){Ba.current.onTouchStart(yt)}function Ua(yt){Ba.current.onTouchMove(yt)}function Er(yt){Ba.current.onTouchEnd(yt)}function Ka(yt){Ba.current.onWheel(yt)}return document.addEventListener("touchmove",Ua,{passive:!1}),document.addEventListener("touchend",Er,{passive:!1}),$e.current.addEventListener("touchstart",oa,{passive:!1}),$e.current.addEventListener("wheel",Ka),function(){document.removeEventListener("touchmove",Ua),document.removeEventListener("touchend",Er)}},[])}function Wt(){var $e=Object(O.useRef)(new Map);function pt(Xe){return $e.current.has(Xe)||$e.current.set(Xe,O.createRef()),$e.current.get(Xe)}function _t(Xe){$e.current.delete(Xe)}return[pt,_t]}function Rn($e,pt){var _t=O.useRef($e),Xe=O.useState({}),Ee=Object(W.a)(Xe,2),Be=Ee[1];function Ce(Ze){var Ke=typeof Ze=="function"?Ze(_t.current):Ze;Ke!==_t.current&&pt(Ke,_t.current),_t.current=Ke,Be({})}return[_t.current,Ce]}var Ra=function(pt){var _t=pt.position,Xe=pt.prefixCls,Ee=pt.extra;if(!Ee)return null;var Be,Ce=Ee;return _t==="right"&&(Be=Ce.right||!Ce.left&&Ce||null),_t==="left"&&(Be=Ce.left||null),Be?O.createElement("div",{className:"".concat(Xe,"-extra-content")},Be):null};function la($e,pt){var _t,Xe=O.useContext(Sr),Ee=Xe.prefixCls,Be=Xe.tabs,Ce=$e.className,Ze=$e.style,Ke=$e.id,St=$e.animated,it=$e.activeKey,Pt=$e.rtl,an=$e.extra,gn=$e.editable,bt=$e.locale,Qn=$e.tabPosition,wa=$e.tabBarGutter,tr=$e.children,Ya=$e.onTabClick,ar=$e.onTabScroll,Ar=Object(O.useRef)(),hr=Object(O.useRef)(),sr=Object(O.useRef)(),va=Object(O.useRef)(),_a=Wt(),ur=Object(W.a)(_a,2),Ba=ur[0],oa=ur[1],Ua=Qn==="top"||Qn==="bottom",Er=Rn(0,function(Kr,$a){Ua&&ar&&ar({direction:Kr>$a?"left":"right"})}),Ka=Object(W.a)(Er,2),yt=Ka[0],qa=Ka[1],Lr=Rn(0,function(Kr,$a){!Ua&&ar&&ar({direction:Kr>$a?"top":"bottom"})}),_r=Object(W.a)(Lr,2),Tt=_r[0],pr=_r[1],Yn=Object(O.useState)(0),vr=Object(W.a)(Yn,2),wr=vr[0],Xr=vr[1],ai=Object(O.useState)(0),$r=Object(W.a)(ai,2),ei=$r[0],Or=$r[1],za=Object(O.useState)(0),La=Object(W.a)(za,2),sa=La[0],In=La[1],cr=Object(O.useState)(0),dr=Object(W.a)(cr,2),ka=dr[0],kr=dr[1],Yr=Object(O.useState)(null),jr=Object(W.a)(Yr,2),rr=jr[0],Rr=jr[1],ti=Object(O.useState)(null),ri=Object(W.a)(ti,2),hi=ri[0],pi=ri[1],mi=Object(O.useState)(0),Ei=Object(W.a)(mi,2),ao=Ei[0],_o=Ei[1],So=Object(O.useState)(0),$i=Object(W.a)(So,2),eo=$i[0],ro=$i[1],io=c(new Map),Yi=Object(W.a)(io,2),bo=Yi[0],co=Yi[1],oo=s(Be,bo,wr),zi="".concat(Ee,"-nav-operations-hidden"),Xi=0,gi=0;Ua?Pt?(Xi=0,gi=Math.max(0,wr-rr)):(Xi=Math.min(0,rr-wr),gi=0):(Xi=Math.min(0,hi-ei),gi=0);function yi(Kr){return Krgi?[gi,!1]:[Kr,!0]}var Br=Object(O.useRef)(),Nr=Object(O.useState)(),Fr=Object(W.a)(Nr,2),ii=Fr[0],ui=Fr[1];function Ai(){ui(Date.now())}function fi(){window.clearTimeout(Br.current)}Ln(Ar,function(Kr,$a){var Da=!1;function Pa(Pr,li){Pr(function(wi){var oi=yi(wi+li),ci=Object(W.a)(oi,2),Pi=ci[0],ki=ci[1];return Da=ki,Pi})}if(Ua){if(rr>=wr)return Da;Pa(qa,Kr)}else{if(hi>=ei)return Da;Pa(pr,$a)}return fi(),Ai(),Da}),Object(O.useEffect)(function(){return fi(),ii&&(Br.current=window.setTimeout(function(){ui(0)},100)),fi},[ii]);function Qi(){var Kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:it,$a=oo.get(Kr);if(!$a)return;if(Ua){var Da=yt;Pt?$a.rightyt+rr&&(Da=$a.right+$a.width-rr):$a.left<-yt?Da=-$a.left:$a.left+$a.width>-yt+rr&&(Da=-($a.left+$a.width-rr)),pr(0),qa(yi(Da)[0])}else{var Pa=Tt;$a.top<-Tt?Pa=-$a.top:$a.top+$a.height>-Tt+hi&&(Pa=-($a.top+$a.height-hi)),qa(0),pr(yi(Pa)[0])}}var Eo=D(oo,{width:rr,height:hi,left:yt,top:Tt},{width:sa,height:ka},{width:ao,height:eo},Object(B.a)(Object(B.a)({},$e),{},{tabs:Be})),Po=Object(W.a)(Eo,2),fo=Po[0],Mi=Po[1],ho=Be.map(function(Kr){var $a=Kr.key;return O.createElement(t,{id:Ke,prefixCls:Ee,key:$a,rtl:Pt,tab:Kr,closable:Kr.closable,editable:gn,active:$a===it,tabPosition:Qn,tabBarGutter:wa,renderWrapper:tr,removeAriaLabel:bt==null?void 0:bt.removeAriaLabel,ref:Ba($a),onClick:function(Pa){Ya($a,Pa)},onRemove:function(){oa($a)},onFocus:function(){Qi($a),Ai(),Pt||(Ar.current.scrollLeft=0),Ar.current.scrollTop=0}})}),Io=o(function(){var Kr,$a,Da,Pa,Pr,li,wi,oi,ci,Pi=((Kr=Ar.current)===null||Kr===void 0?void 0:Kr.offsetWidth)||0,ki=(($a=Ar.current)===null||$a===void 0?void 0:$a.offsetHeight)||0,Fi=((Da=va.current)===null||Da===void 0?void 0:Da.offsetWidth)||0,xi=((Pa=va.current)===null||Pa===void 0?void 0:Pa.offsetHeight)||0,Jr=((Pr=sr.current)===null||Pr===void 0?void 0:Pr.offsetWidth)||0,Vr=((li=sr.current)===null||li===void 0?void 0:li.offsetHeight)||0;Rr(Pi),pi(ki),_o(Fi),ro(xi);var Cr=(((wi=hr.current)===null||wi===void 0?void 0:wi.offsetWidth)||0)-Fi,Wr=(((oi=hr.current)===null||oi===void 0?void 0:oi.offsetHeight)||0)-xi;Xr(Cr),Or(Wr);var Qr=(ci=sr.current)===null||ci===void 0?void 0:ci.className.includes(zi);In(Cr-(Qr?0:Jr)),kr(Wr-(Qr?0:Vr)),co(function(){var di=new Map;return Be.forEach(function(Ji){var lo=Ji.key,Ti=Ba(lo).current;Ti&&di.set(lo,{width:Ti.offsetWidth,height:Ti.offsetHeight,left:Ti.offsetLeft,top:Ti.offsetTop})}),di})}),Oo=Be.slice(0,fo),Di=Be.slice(Mi+1),si=[].concat(Object(b.a)(Oo),Object(b.a)(Di)),Oi=Object(O.useState)(),vi=Object(W.a)(Oi,2),Ri=vi[0],Ro=vi[1],Wi=oo.get(it),To=Object(O.useRef)();function Do(){d.a.cancel(To.current)}Object(O.useEffect)(function(){var Kr={};return Wi&&(Ua?(Pt?Kr.right=Wi.right:Kr.left=Wi.left,Kr.width=Wi.width):(Kr.top=Wi.top,Kr.height=Wi.height)),Do(),To.current=d()(function(){Ro(Kr)}),Do},[Wi,Ua,Pt]),Object(O.useEffect)(function(){Qi()},[it,Wi,oo,Ua]),Object(O.useEffect)(function(){Io()},[Pt,wa,it,Be.map(function(Kr){return Kr.key}).join("_")]);var po=!!si.length,so="".concat(Ee,"-nav-wrap"),yo,Ao,No,Ui;return Ua?Pt?(Ao=yt>0,yo=yt+rr-1?"".concat(G==null?void 0:G.time,"\u5206\u949F"):"\u4E0D\u9650","\u3011"),(Ue==null?void 0:Ue.show_desc)&&b.a.createElement("div",{className:"mt10"},b.a.createElement("p",{className:"font16"},"\u8003\u8BD5\u8BF4\u660E\uFF1A"),b.a.createElement(f.a,{value:G==null?void 0:G.description})),(Ue==null?void 0:Ue.show_table)&&b.a.createElement("div",{className:"mt10"},b.a.createElement(W.a,{className:o.a.table,columns:Ae,dataSource:Object(B.a)(le||[]),bordered:!0,pagination:!1}))))};re.a=Object(d.a)(function(l){var s=l.exercise,w=l.loading,D=l.user,C=l.globalSetting;return{exercise:s,globalSetting:C,user:D,loading:w.effects}})(t)},kPWJ:function(Ge,re,y){Ge.exports=y.p+"static/question.cb52bef9.gif"},kPYp:function(Ge,re){Ge.exports="data:image/png;base64,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"},kSUc:function(Ge,re,y){},"kaH+":function(Ge,re,y){"use strict";var Q=y("+L6B"),W=y("2/Rp"),k=y("tJVT"),B=y("q1tI"),O=y.n(B),R=y("UZu5"),M=y.n(R),p=y("dhSg"),a=y("rLCj"),b=y("dF/Y"),u=y("4i/N");re.a=function(){var d=Object(B.useState)(""),m=Object(k.a)(d,2),o=m[0],c=m[1],f=Object(B.useState)(0),i=Object(k.a)(f,2),t=i[0],l=i[1],s=Object(B.useRef)("");Object(B.useEffect)(function(){var h=p.a.subscribe("preview-image",function(g){c(g),document.body.style.overflow="hidden"});return h},[]),Object(B.useEffect)(function(){return document.addEventListener("keydown",w),function(){document.removeEventListener("keydown",w)}},[]),Object(B.useEffect)(function(){s.current=o},[o]);function w(h){h.keyCode==27&&s.current&&D()}function D(){document.body.style.overflow="auto",c("")}function C(){l(t+90)}var v=Object(B.useRef)(),n=Object(B.useRef)(),_=function(g){(g.nativeEvent.target===v.current||g.nativeEvent.target===n.current)&&D()};return O.a.createElement(B.Fragment,null,o?O.a.createElement("div",{className:"image-preview-container",ref:v,onClick:_},O.a.createElement("div",{className:"button-group"},O.a.createElement(W.a,{onClick:C},"\u65CB\u8F6C",O.a.createElement(a.a,null)),O.a.createElement(W.a,{href:o},"\u4E0B\u8F7D",O.a.createElement(b.a,null)),O.a.createElement(W.a,{onClick:D},"\u5173\u95ED",O.a.createElement(u.a,null))),O.a.createElement("div",{className:"preview-wrp-group",ref:n},O.a.createElement("img",{className:"image-preview",src:o,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(t,"deg)")}}))):null)}},kqOp:function(Ge,re,y){"use strict";y.d(re,"a",function(){return b});var Q=y("0Owb"),W=y("fWQN"),k=y("mtLc"),B=y("yKVA"),O=y("879j"),R=y("q1tI"),M=y.n(R),p=y("Ot1p"),a="\u2581",b=function(u){Object(B.a)(m,u);var d=Object(O.a)(m);function m(){var o;Object(W.a)(this,m);for(var c=arguments.length,f=new Array(c),i=0;i` "'(~:]+/,c=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,i=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,t=" ";function l(N,A,G){return A.f=A.inline=G,G(N,A)}function s(N,A,G){return A.f=A.block=G,G(N,A)}function w(N){return!N||!/\S/.test(N.string)}function D(N){if(N.linkTitle=!1,N.linkHref=!1,N.linkText=!1,N.em=!1,N.strong=!1,N.strikethrough=!1,N.quote=0,N.indentedCode=!1,N.f==v){var A=O;if(!A){var G=Q.innerMode(B,N.htmlState);A=G.mode.name=="xml"&&G.state.tagStart===null&&!G.state.context&&G.state.tokenize.isInText}A&&(N.f=g,N.block=C,N.htmlState=null)}return N.trailingSpace=0,N.trailingSpaceNewLine=!1,N.prevLine=N.thisLine,N.thisLine={stream:null},null}function C(N,A){var G=N.column()===A.indentation,K=w(A.prevLine.stream),$=A.indentedCode,ie=A.prevLine.hr,le=A.list!==!1,de=(A.listStack[A.listStack.length-1]||0)+3;A.indentedCode=!1;var Se=A.indentation;if(A.indentationDiff===null&&(A.indentationDiff=A.indentation,le)){for(A.list=null;Se=4&&($||A.prevLine.fencedCodeEnd||A.prevLine.header||K))return N.skipToEnd(),A.indentedCode=!0,M.code;if(N.eatSpace())return null;if(G&&A.indentation<=de&&(je=N.match(d))&&je[1].length<=6)return A.quote=0,A.header=je[1].length,A.thisLine.header=!0,k.highlightFormatting&&(A.formatting="header"),A.f=A.inline,_(A);if(A.indentation<=de&&N.eat(">"))return A.quote=G?1:A.quote+1,k.highlightFormatting&&(A.formatting="quote"),N.eatSpace(),_(A);if(!et&&!A.setext&&G&&A.indentation<=de&&(je=N.match(b))){var me=je[1]?"ol":"ul";return A.indentation=Se+N.current().length,A.list=!0,A.quote=0,A.listStack.push(A.indentation),A.em=!1,A.strong=!1,A.code=!1,A.strikethrough=!1,k.taskLists&&N.match(u,!1)&&(A.taskList=!0),A.f=A.inline,k.highlightFormatting&&(A.formatting=["list","list-"+me]),_(A)}else{if(G&&A.indentation<=de&&(je=N.match(c,!0)))return A.quote=0,A.fencedEndRE=new RegExp(je[1]+"+ *$"),A.localMode=k.fencedCodeBlockHighlighting&&R(je[2]||k.fencedCodeBlockDefaultMode),A.localMode&&(A.localState=Q.startState(A.localMode)),A.f=A.block=n,k.highlightFormatting&&(A.formatting="code-block"),A.code=-1,_(A);if(A.setext||(!He||!le)&&!A.quote&&A.list===!1&&!A.code&&!et&&!f.test(N.string)&&(je=N.lookAhead(1))&&(je=je.match(m)))return A.setext?(A.header=A.setext,A.setext=0,N.skipToEnd(),k.highlightFormatting&&(A.formatting="header")):(A.header=je[0].charAt(0)=="="?1:2,A.setext=A.header),A.thisLine.header=!0,A.f=A.inline,_(A);if(et)return N.skipToEnd(),A.hr=!0,A.thisLine.hr=!0,M.hr;if(N.peek()==="[")return l(N,A,U)}return l(N,A,A.inline)}function v(N,A){var G=B.token(N,A.htmlState);if(!O){var K=Q.innerMode(B,A.htmlState);(K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText||A.md_inside&&N.current().indexOf(">")>-1)&&(A.f=g,A.block=C,A.htmlState=null)}return G}function n(N,A){var G=A.listStack[A.listStack.length-1]||0,K=A.indentation=N.quote?A.push(M.formatting+"-"+N.formatting[G]+"-"+N.quote):A.push("error"))}if(N.taskOpen)return A.push("meta"),A.length?A.join(" "):null;if(N.taskClosed)return A.push("property"),A.length?A.join(" "):null;if(N.linkHref?A.push(M.linkHref,"url"):(N.strong&&A.push(M.strong),N.em&&A.push(M.em),N.strikethrough&&A.push(M.strikethrough),N.emoji&&A.push(M.emoji),N.linkText&&A.push(M.linkText),N.code&&A.push(M.code),N.image&&A.push(M.image),N.imageAltText&&A.push(M.imageAltText,"link"),N.imageMarker&&A.push(M.imageMarker)),N.header&&A.push(M.header,M.header+"-"+N.header),N.quote&&(A.push(M.quote),!k.maxBlockquoteDepth||k.maxBlockquoteDepth>=N.quote?A.push(M.quote+"-"+N.quote):A.push(M.quote+"-"+k.maxBlockquoteDepth)),N.list!==!1){var K=(N.listStack.length-1)%3;K?K===1?A.push(M.list2):A.push(M.list3):A.push(M.list1)}return N.trailingSpaceNewLine?A.push("trailing-space-new-line"):N.trailingSpace&&A.push("trailing-space-"+(N.trailingSpace%2?"a":"b")),A.length?A.join(" "):null}function h(N,A){return N.match(o,!0)?_(A):void 0}function g(N,A){var G=A.text(N,A);if(typeof G!="undefined")return G;if(A.list)return A.list=null,_(A);if(A.taskList){var K=N.match(u,!0)[1]===" ";return K?A.taskOpen=!0:A.taskClosed=!0,k.highlightFormatting&&(A.formatting="task"),A.taskList=!1,_(A)}if(A.taskOpen=!1,A.taskClosed=!1,A.header&&N.match(/^#+$/,!0))return k.highlightFormatting&&(A.formatting="header"),_(A);var $=N.next();if(A.linkTitle){A.linkTitle=!1;var ie=$;$==="("&&(ie=")"),ie=(ie+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var le="^\\s*(?:[^"+ie+"\\\\]+|\\\\\\\\|\\\\.)"+ie;if(N.match(new RegExp(le),!0))return M.linkHref}if($==="`"){var de=A.formatting;k.highlightFormatting&&(A.formatting="code"),N.eatWhile("`");var Se=N.current().length;if(A.code==0&&(!A.quote||Se==1))return A.code=Se,_(A);if(Se==A.code){var He=_(A);return A.code=0,He}else return A.formatting=de,_(A)}else if(A.code)return _(A);if($==="\\"&&(N.next(),k.highlightFormatting)){var et=_(A),je=M.formatting+"-escape";return et?et+" "+je:je}if($==="!"&&N.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return A.imageMarker=!0,A.image=!0,k.highlightFormatting&&(A.formatting="image"),_(A);if($==="["&&A.imageMarker&&N.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return A.imageMarker=!1,A.imageAltText=!0,k.highlightFormatting&&(A.formatting="image"),_(A);if($==="]"&&A.imageAltText){k.highlightFormatting&&(A.formatting="image");var et=_(A);return A.imageAltText=!1,A.image=!1,A.inline=A.f=T,et}if($==="["&&!A.image)return A.linkText&&N.match(/^.*?\]/)||(A.linkText=!0,k.highlightFormatting&&(A.formatting="link")),_(A);if($==="]"&&A.linkText){k.highlightFormatting&&(A.formatting="link");var et=_(A);return A.linkText=!1,A.inline=A.f=N.match(/\(.*?\)| ?\[.*?\]/,!1)?T:g,et}if($==="<"&&N.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){A.f=A.inline=x,k.highlightFormatting&&(A.formatting="link");var et=_(A);return et?et+=" ":et="",et+M.linkInline}if($==="<"&&N.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){A.f=A.inline=x,k.highlightFormatting&&(A.formatting="link");var et=_(A);return et?et+=" ":et="",et+M.linkEmail}if(k.xml&&$==="<"&&N.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var me=N.string.indexOf(">",N.pos);if(me!=-1){var fe=N.string.substring(N.start,me);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(fe)&&(A.md_inside=!0)}return N.backUp(1),A.htmlState=Q.startState(B),s(N,A,v)}if(k.xml&&$==="<"&&N.match(/^\/\w*?>/))return A.md_inside=!1,"tag";if($==="*"||$==="_"){for(var Ae=1,he=N.pos==1?" ":N.string.charAt(N.pos-2);Ae<3&&N.eat($);)Ae++;var Ue=N.peek()||" ",st=!/\s/.test(Ue)&&(!i.test(Ue)||/\s/.test(he)||i.test(he)),Ve=!/\s/.test(he)&&(!i.test(he)||/\s/.test(Ue)||i.test(Ue)),dt=null,Qe=null;if(Ae%2&&(!A.em&&st&&($==="*"||!Ve||i.test(he))?dt=!0:A.em==$&&Ve&&($==="*"||!st||i.test(Ue))&&(dt=!1)),Ae>1&&(!A.strong&&st&&($==="*"||!Ve||i.test(he))?Qe=!0:A.strong==$&&Ve&&($==="*"||!st||i.test(Ue))&&(Qe=!1)),Qe!=null||dt!=null){k.highlightFormatting&&(A.formatting=dt==null?"strong":Qe==null?"em":"strong em"),dt===!0&&(A.em=$),Qe===!0&&(A.strong=$);var He=_(A);return dt===!1&&(A.em=!1),Qe===!1&&(A.strong=!1),He}}else if($===" "&&(N.eat("*")||N.eat("_"))){if(N.peek()===" ")return _(A);N.backUp(1)}if(k.strikethrough){if($==="~"&&N.eatWhile($)){if(A.strikethrough){k.highlightFormatting&&(A.formatting="strikethrough");var He=_(A);return A.strikethrough=!1,He}else if(N.match(/^[^\s]/,!1))return A.strikethrough=!0,k.highlightFormatting&&(A.formatting="strikethrough"),_(A)}else if($===" "&&N.match(/^~~/,!0)){if(N.peek()===" ")return _(A);N.backUp(2)}}if(k.emoji&&$===":"&&N.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){A.emoji=!0,k.highlightFormatting&&(A.formatting="emoji");var pe=_(A);return A.emoji=!1,pe}return $===" "&&(N.match(/^ +$/,!1)?A.trailingSpace++:A.trailingSpace&&(A.trailingSpaceNewLine=!0)),_(A)}function x(N,A){var G=N.next();if(G===">"){A.f=A.inline=g,k.highlightFormatting&&(A.formatting="link");var K=_(A);return K?K+=" ":K="",K+M.linkInline}return N.match(/^[^>]+/,!0),M.linkInline}function T(N,A){if(N.eatSpace())return null;var G=N.next();return G==="("||G==="["?(A.f=A.inline=E(G==="("?")":"]"),k.highlightFormatting&&(A.formatting="link-string"),A.linkHref=!0,_(A)):"error"}var S={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function E(N){return function(A,G){var K=A.next();if(K===N){G.f=G.inline=g,k.highlightFormatting&&(G.formatting="link-string");var $=_(G);return G.linkHref=!1,$}return A.match(S[N]),G.linkHref=!0,_(G)}}function U(N,A){return N.match(/^([^\]\\]|\\.)*\]:/,!1)?(A.f=F,N.next(),k.highlightFormatting&&(A.formatting="link"),A.linkText=!0,_(A)):l(N,A,g)}function F(N,A){if(N.match(/^\]:/,!0)){A.f=A.inline=P,k.highlightFormatting&&(A.formatting="link");var G=_(A);return A.linkText=!1,G}return N.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function P(N,A){return N.eatSpace()?null:(N.match(/^[^\s]+/,!0),N.peek()===void 0?A.linkTitle=!0:N.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),A.f=A.inline=g,M.linkHref+" url")}var H={startState:function(){return{f:C,prevLine:{stream:null},thisLine:{stream:null},block:C,htmlState:null,indentation:0,inline:g,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(N){return{f:N.f,prevLine:N.prevLine,thisLine:N.thisLine,block:N.block,htmlState:N.htmlState&&Q.copyState(B,N.htmlState),indentation:N.indentation,localMode:N.localMode,localState:N.localMode?Q.copyState(N.localMode,N.localState):null,inline:N.inline,text:N.text,formatting:!1,linkText:N.linkText,linkTitle:N.linkTitle,linkHref:N.linkHref,code:N.code,em:N.em,strong:N.strong,strikethrough:N.strikethrough,emoji:N.emoji,header:N.header,setext:N.setext,hr:N.hr,taskList:N.taskList,list:N.list,listStack:N.listStack.slice(0),quote:N.quote,indentedCode:N.indentedCode,trailingSpace:N.trailingSpace,trailingSpaceNewLine:N.trailingSpaceNewLine,md_inside:N.md_inside,fencedEndRE:N.fencedEndRE}},token:function(N,A){if(A.formatting=!1,N!=A.thisLine.stream){if(A.header=0,A.hr=!1,N.match(/^\s*$/,!0))return D(A),null;if(A.prevLine=A.thisLine,A.thisLine={stream:N},A.taskList=!1,A.trailingSpace=0,A.trailingSpaceNewLine=!1,!A.localState&&(A.f=A.block,A.f!=v)){var G=N.match(/^\s*/,!0)[0].replace(/\t/g,t).length;if(A.indentation=G,A.indentationDiff=null,G>0)return null}}return A.f(N,A)},innerMode:function(N){return N.block==v?{state:N.htmlState,mode:B}:N.localState?{state:N.localState,mode:N.localMode}:{state:N,mode:H}},indent:function(N,A,G){return N.block==v&&B.indent?B.indent(N.htmlState,A,G):N.localState&&N.localMode.indent?N.localMode.indent(N.localState,A,G):Q.Pass},blankLine:D,getType:_,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),Q.defineMIME("text/markdown","markdown"),Q.defineMIME("text/x-markdown","markdown")})},loD1:function(Ge,re){function y(Q,W,k,B,O,R,M){if(O===0)return!1;var p=O,a=0,b=Q;if(M>W+p&&M>B+p||MQ+p&&R>k+p||R=b.x&&p<=b.x+b.width&&a>=b.y&&a<=b.y+b.height},clone:function(){return new R(this.x,this.y,this.width,this.height)},copy:function(p){this.x=p.x,this.y=p.y,this.width=p.width,this.height=p.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},R.create=function(p){return new R(p.x,p.y,p.width,p.height)};var M=R;Ge.exports=M},mLcG:function(Ge,re){var y=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Q){setTimeout(Q,16)};Ge.exports=y},mgmH:function(Ge,re,y){"use strict";y.d(re,"d",function(){return m}),y.d(re,"b",function(){return o}),y.d(re,"e",function(){return c}),y.d(re,"c",function(){return f}),y.d(re,"n",function(){return i}),y.d(re,"g",function(){return t}),y.d(re,"h",function(){return l}),y.d(re,"j",function(){return w}),y.d(re,"a",function(){return D}),y.d(re,"l",function(){return C}),y.d(re,"f",function(){return v}),y.d(re,"k",function(){return n}),y.d(re,"m",function(){return _}),y.d(re,"i",function(){return h}),y.d(re,"o",function(){return g}),y.d(re,"t",function(){return x}),y.d(re,"s",function(){return T}),y.d(re,"p",function(){return S}),y.d(re,"q",function(){return E}),y.d(re,"r",function(){return U}),y.d(re,"v",function(){return F}),y.d(re,"u",function(){return P});var Q=y("miYZ"),W=y("tsqr"),k=y("k1fw"),B=y("9og8"),O=y("WmNS"),R=y.n(O),M=y("oUNq"),p=y("9kvl"),a=y("1vsH"),b=y("m3rI"),u=function(){Object(p.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},d=function(){Object(p.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},m=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return u(),$.next=3,Object(M.t)(Object(k.a)({},A));case 3:if(G=$.sent,!(G.status===0)){$.next=7;break}return $.next=7,Object(a.w)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/".concat(A.coursesId,"/export_couser_info.json"),query:A}));case 7:d();case 8:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),o=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.r)(Object(k.a)({},A));case 2:if(G=$.sent,!(G.status===0)){$.next=8;break}W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_member_act_score")),$.next=13;break;case 8:if(!(G.status===-2)){$.next=12;break}return $.abrupt("return",G);case 12:G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),c=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.u)(Object(k.a)({},A));case 2:if(G=$.sent,!(G.status===0)){$.next=8;break}W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_score")),$.next=13;break;case 8:if(!(G.status===-2)){$.next=12;break}return $.abrupt("return",G);case 12:G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_score")));case 13:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),f=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.s)(Object(k.a)({},A));case 2:if(G=$.sent,!(G.status===0)){$.next=8;break}W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_exercise_and_other")),$.next=13;break;case 8:if(!(G.status===-2)){$.next=12;break}return $.abrupt("return",G);case 12:G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),i=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.z)(Object(k.a)({},A));case 2:if(G=$.sent,!(G.status===0)){$.next=8;break}W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_exercise_and_other")),$.next=13;break;case 8:if(!(G.status===-2)){$.next=12;break}return $.abrupt("return",G);case 12:G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),t=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.v)(Object(k.a)({},A));case 2:if(G=$.sent,!(G.status===0)){$.next=8;break}W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_homework")),$.next=13;break;case 8:if(!(G.status===-2)){$.next=12;break}return $.abrupt("return",G);case 12:G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),l=function(){var H=Object(B.a)(R.a.mark(function N(A,G){var K;return R.a.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,Object(M.x)(Object(k.a)({},A));case 2:K=ie.sent,K.status===0?(W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/").concat(G))):K.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/").concat(G)));case 4:case"end":return ie.stop()}},N)}));return function(A,G){return H.apply(this,arguments)}}(),s=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return u(),$.next=3,Object(M.w)(Object(k.a)({},A));case 3:if(G=$.sent,!(G.status===0)){$.next=7;break}return $.next=7,Object(a.w)("",Object(a.Y)({url:b.a.API_SERVER+"/api/homework_commons/".concat(A.categoryId,"/works_list.zip"),query:A}));case 7:d();case 8:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),w=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return u(),$.next=3,Object(M.A)(Object(k.a)({},A));case 3:if(G=$.sent,!(G.status===0)){$.next=7;break}return $.next=7,Object(a.w)("",Object(a.Y)({url:b.a.API_SERVER+"/api/polls/".concat(A.categoryId,"/commit_result.xlsx"),query:A}));case 7:d();case 8:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),D=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/".concat(A.coursesId,"/attendances/export_xlsx_data.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),C=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/".concat(A.coursesId,"/video_study_statics.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),v=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/".concat(A.coursesId,"/export_course_students_info.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),n=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/item_banks/export.xlsx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),_=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),h=function(){var H=Object(B.a)(R.a.mark(function N(A){var G;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(M.y)(Object(k.a)({},A));case 2:G=$.sent,G.status===0?(W.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/exercise_score"))):G.status===-3&&(Object(p.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),p.d.push("/classrooms/".concat(A.coursesId,"/exportlist/exercise_score")));case 4:case"end":return $.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),g=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),K.next=3,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/export_records/".concat(A.id,".xlsx"),query:A}));case 3:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),x=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),T=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(A==null?void 0:A.ec_year_id,"/ec_training_objectives.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),S=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)(A==null?void 0:A.name,Object(a.Y)({url:b.a.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),E=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(A==null?void 0:A.ec_year_id,"/ec_courses.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),U=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(A==null?void 0:A.ec_year_id,"/ec_graduation_requirements.xlsx"),query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),F=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/rank_list.xlsx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}(),P=function(){var H=Object(B.a)(R.a.mark(function N(A){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(a.v)("",Object(a.Y)({url:b.a.API_SERVER+"/api/courses/question_rank_list.xlsx",query:A}));case 2:case"end":return K.stop()}},N)}));return function(A){return H.apply(this,arguments)}}()},mxOx:function(Ge,re,y){Ge.exports={flex_box_center:"flex_box_center___1OKqY",flex_space_between:"flex_space_between___9LtA4",flex_box_vertical_center:"flex_box_vertical_center___1eoO3",flex_box_center_end:"flex_box_center_end___2z5cA",flex_box_column:"flex_box_column___EmE-R",wrap:"wrap___1KKiW",control:"control___1QLLH",btn:"btn___2uv5p",customTable:"customTable___1j8g4",bgH:"bgH___38VTN",cusModal:"cusModal___3m_hn",imgWrap:"imgWrap___1V_Vd",img:"img___3YaEG",iBtn:"iBtn___2kloF",text:"text___3R4ja",no:"no___1ION1",textP:"textP___1nOEX",video:"video___TW5nF",sys:"sys___lyOTD",li:"li___1BzVB",d1:"d1___fIaVJ",b1:"b1____gBjv",es:"es___2kUwZ"}},n1HI:function(Ge,re,y){var Q=y("hX1E"),W=Q.normalizeRadian,k=Math.PI*2;function B(O,R,M,p,a,b,u,d,m){if(u===0)return!1;var o=u;d-=O,m-=R;var c=Math.sqrt(d*d+m*m);if(c-o>M||c+oa&&(a+=k);var i=Math.atan2(m,d);return i<0&&(i+=k),i>=p&&i<=a||i+k>=p&&i+k<=a}re.containStroke=B},n6Mw:function(Ge,re,y){var Q=y("SrGk"),W=y("bYtY"),k=y("Fofx");function B(R,M){Q.call(this,R,M,"clipPath","__clippath_in_use__")}W.inherits(B,Q),B.prototype.update=function(R){var M=this.getSvgElement(R);M&&this.updateDom(M,R.__clipPaths,!1);var p=this.getTextSvgElement(R);p&&this.updateDom(p,R.__clipPaths,!0),this.markUsed(R)},B.prototype.updateDom=function(R,M,p){if(M&&M.length>0){var a=this.getDefs(!0),b=M[0],u,d,m=p?"_textDom":"_dom";b[m]?(d=b[m].getAttribute("id"),u=b[m],a.contains(u)||a.appendChild(u)):(d="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,u=this.createElement("clipPath"),u.setAttribute("id",d),a.appendChild(u),b[m]=u);var o=this.getSvgProxy(b);if(b.transform&&b.parent.invTransform&&!p){var c=Array.prototype.slice.call(b.transform);k.mul(b.transform,b.parent.invTransform,b.transform),o.brush(b),b.transform=c}else o.brush(b);var f=this.getSvgElement(b);u.innerHTML="",u.appendChild(f.cloneNode()),R.setAttribute("clip-path","url(#"+d+")"),M.length>1&&this.updateDom(u,M.slice(1),p)}else R&&R.setAttribute("clip-path","none")},B.prototype.markUsed=function(R){var M=this;R.__clipPaths&&W.each(R.__clipPaths,function(p){p._dom&&Q.prototype.markUsed.call(M,p._dom),p._textDom&&Q.prototype.markUsed.call(M,p._textDom)})};var O=B;Ge.exports=O},n6Qo:function(Ge,re,y){"use strict";y.d(re,"a",function(){return p});var Q=y("q1tI"),W=y("biw7"),k=y("fyJ8");function B(a){var b=a.className,u=a.index,d=a.children,m=a.colSpan,o=a.rowSpan,c=Q.useContext(W.a),f=c.prefixCls,i=c.fixedInfoList,t=i[u];return Q.createElement(k.a,Object.assign({className:b,index:u,component:"td",prefixCls:f,record:null,dataIndex:null,render:function(){return{children:d,props:{colSpan:m,rowSpan:o}}}},t))}function O(a){return Q.createElement("tr",Object.assign({},a))}function R(a){var b=a.children,u=Q.useContext(W.a),d=u.prefixCls;return Q.createElement("tfoot",{className:"".concat(d,"-summary")},b)}var M=re.b=R,p={Cell:B,Row:O}},nCxF:function(Ge,re,y){var Q=y("QBsz"),W=Q.min,k=Q.max,B=Q.scale,O=Q.distance,R=Q.add,M=Q.clone,p=Q.sub;function a(b,u,d,m){var o=[],c=[],f=[],i=[],t,l,s,w;if(m){s=[Infinity,Infinity],w=[-Infinity,-Infinity];for(var D=0,C=b.length;DV.bottom,en=ge.leftV.right,un=It&&en;if(un)return!0;var Ut=It&&tt||en&&Ne;return Ut}},Bn=function(V){var X=Mt(V.top,V.bottom),ne=Mt(V.left,V.right);return function(ge){var ke=X(ge.top)&&X(ge.bottom)&&ne(ge.left)&&ne(ge.right);return ke}},na={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Ea={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Pe=function(V){return function(X){var ne=Mt(X.top,X.bottom),ge=Mt(X.left,X.right);return function(ke){return V===na?ne(ke.top)&&ne(ke.bottom):ge(ke.left)&&ge(ke.right)}}},ye=function(X,ne){var ge=ne.frame?ne.frame.scroll.diff.displacement:Ye;return hn(X,ge)},J=function(X,ne,ge){return ne.subject.active?ge(ne.subject.active)(X):!1},q=function(X,ne,ge){return ge(ne)(X)},Z=function(X){var ne=X.target,ge=X.destination,ke=X.viewport,Ne=X.withDroppableDisplacement,tt=X.isVisibleThroughFrameFn,nt=Ne?ye(ne,ge):ne;return J(nt,ge,tt)&&q(nt,ke,tt)},oe=function(X){return Z(Object(B.a)({},X,{isVisibleThroughFrameFn:Nn}))},Oe=function(X){return Z(Object(B.a)({},X,{isVisibleThroughFrameFn:Bn}))},Re=function(X){return Z(Object(B.a)({},X,{isVisibleThroughFrameFn:Pe(X.destination.axis)}))},ve=function(X,ne,ge){if(typeof ge=="boolean")return ge;if(!ne)return!0;var ke=ne.invisible,Ne=ne.visible;if(ke[X])return!1;var tt=Ne[X];return tt?tt.shouldAnimate:!0};function bn(V,X){var ne=V.page.marginBox,ge={top:X.point.y,right:0,bottom:0,left:X.point.x};return m(o(ne,ge))}function kt(V){var X=V.afterDragging,ne=V.destination,ge=V.displacedBy,ke=V.viewport,Ne=V.forceShouldAnimate,tt=V.last;return X.reduce(function(It,en){var un=bn(en,ge),Ut=en.descriptor.id;It.all.push(Ut);var Nt=oe({target:un,destination:ne,viewport:ke,withDroppableDisplacement:!0});if(!Nt)return It.invisible[en.descriptor.id]=!0,It;var Qt=ve(Ut,tt,Ne),ca={draggableId:Ut,shouldAnimate:Qt};return It.visible[Ut]=ca,It},{all:[],visible:{},invisible:{}})}function at(V,X){if(!V.length)return 0;var ne=V[V.length-1].descriptor.index;return X.inHomeList?ne:ne+1}function Ht(V){var X=V.insideDestination,ne=V.inHomeList,ge=V.displacedBy,ke=V.destination,Ne=at(X,{inHomeList:ne});return{displaced:Gn,displacedBy:ge,at:{type:"REORDER",destination:{droppableId:ke.descriptor.id,index:Ne}}}}function Fe(V){var X=V.draggable,ne=V.insideDestination,ge=V.destination,ke=V.viewport,Ne=V.displacedBy,tt=V.last,nt=V.index,It=V.forceShouldAnimate,en=Sn(X,ge);if(nt==null)return Ht({insideDestination:ne,inHomeList:en,displacedBy:Ne,destination:ge});var un=Lt(ne,function(mr){return mr.descriptor.index===nt});if(!un)return Ht({insideDestination:ne,inHomeList:en,displacedBy:Ne,destination:ge});var Ut=ze(X,ne),Nt=ne.indexOf(un),Qt=Ut.slice(Nt),ca=kt({afterDragging:Qt,destination:ge,displacedBy:Ne,last:tt,viewport:ke.frame,forceShouldAnimate:It});return{displaced:ca,displacedBy:Ne,at:{type:"REORDER",destination:{droppableId:ge.descriptor.id,index:nt}}}}function Un(V,X){return Boolean(X.effected[V])}var Fa=function(V){var X=V.isMovingForward,ne=V.destination,ge=V.draggables,ke=V.combine,Ne=V.afterCritical;if(!ne.isCombineEnabled)return null;var tt=ke.draggableId,nt=ge[tt],It=nt.descriptor.index,en=Un(tt,Ne);return en?X?It:It-1:X?It+1:It},fa=function(V){var X=V.isMovingForward,ne=V.isInHomeList,ge=V.insideDestination,ke=V.location;if(!ge.length)return null;var Ne=ke.index,tt=X?Ne+1:Ne-1,nt=ge[0].descriptor.index,It=ge[ge.length-1].descriptor.index,en=ne?It:It+1;return tten?null:tt},ae=function(V){var X=V.isMovingForward,ne=V.isInHomeList,ge=V.draggable,ke=V.draggables,Ne=V.destination,tt=V.insideDestination,nt=V.previousImpact,It=V.viewport,en=V.afterCritical,un=nt.at;if(un||fe(!1),un.type==="REORDER"){var Ut=fa({isMovingForward:X,isInHomeList:ne,location:un.destination,insideDestination:tt});return Ut==null?null:Fe({draggable:ge,insideDestination:tt,destination:Ne,viewport:It,last:nt.displaced,displacedBy:nt.displacedBy,index:Ut})}var Nt=Fa({isMovingForward:X,destination:Ne,displaced:nt.displaced,draggables:ke,combine:un.combine,afterCritical:en});return Nt==null?null:Fe({draggable:ge,insideDestination:tt,destination:Ne,viewport:It,last:nt.displaced,displacedBy:nt.displacedBy,index:Nt})},z=function(V){var X=V.displaced,ne=V.afterCritical,ge=V.combineWith,ke=V.displacedBy,Ne=Boolean(X.visible[ge]||X.invisible[ge]);return Un(ge,ne)?Ne?Ye:Zt(ke.point):Ne?ke.point:Ye},Y=function(V){var X=V.afterCritical,ne=V.impact,ge=V.draggables,ke=Gt(ne);ke||fe(!1);var Ne=ke.draggableId,tt=ge[Ne].page.borderBox.center,nt=z({displaced:ne.displaced,afterCritical:X,combineWith:Ne,displacedBy:ne.displacedBy});return gt(tt,nt)},te=function(X,ne){return ne.margin[X.start]+ne.borderBox[X.size]/2},_e=function(X,ne){return ne.margin[X.end]+ne.borderBox[X.size]/2},se=function(X,ne,ge){return ne[X.crossAxisStart]+ge.margin[X.crossAxisStart]+ge.borderBox[X.crossAxisSize]/2},ut=function(X){var ne=X.axis,ge=X.moveRelativeTo,ke=X.isMoving;return Hn(ne.line,ge.marginBox[ne.end]+te(ne,ke),se(ne,ge.marginBox,ke))},vn=function(X){var ne=X.axis,ge=X.moveRelativeTo,ke=X.isMoving;return Hn(ne.line,ge.marginBox[ne.start]-_e(ne,ke),se(ne,ge.marginBox,ke))},Wn=function(X){var ne=X.axis,ge=X.moveInto,ke=X.isMoving;return Hn(ne.line,ge.contentBox[ne.start]+te(ne,ke),se(ne,ge.contentBox,ke))},Oa=function(V){var X=V.impact,ne=V.draggable,ge=V.draggables,ke=V.droppable,Ne=V.afterCritical,tt=Bt(ke.descriptor.id,ge),nt=ne.page,It=ke.axis;if(!tt.length)return Wn({axis:It,moveInto:ke.page,isMoving:nt});var en=X.displaced,un=X.displacedBy,Ut=en.all[0];if(Ut){var Nt=ge[Ut];if(Un(Ut,Ne))return vn({axis:It,moveRelativeTo:Nt.page,isMoving:nt});var Qt=w(Nt.page,un.point);return vn({axis:It,moveRelativeTo:Qt,isMoving:nt})}var ca=tt[tt.length-1];if(ca.descriptor.id===ne.descriptor.id)return nt.borderBox.center;if(Un(ca.descriptor.id,Ne)){var mr=w(ca.page,Zt(Ne.displacedBy.point));return ut({axis:It,moveRelativeTo:mr,isMoving:nt})}return ut({axis:It,moveRelativeTo:ca.page,isMoving:nt})},dn=function(V,X){var ne=V.frame;return ne?gt(X,ne.scroll.diff.displacement):X},Tn=function(X){var ne=X.impact,ge=X.draggable,ke=X.droppable,Ne=X.draggables,tt=X.afterCritical,nt=ge.page.borderBox.center,It=ne.at;return ke&&It?It.type==="REORDER"?Oa({impact:ne,draggable:ge,draggables:Ne,droppable:ke,afterCritical:tt}):Y({impact:ne,draggables:Ne,afterCritical:tt}):nt},ya=function(V){var X=Tn(V),ne=V.droppable,ge=ne?dn(ne,X):X;return ge},fr=function(V,X){var ne=Ct(X,V.scroll.initial),ge=Zt(ne),ke=m({top:X.y,bottom:X.y+V.frame.height,left:X.x,right:X.x+V.frame.width}),Ne={frame:ke,scroll:{initial:V.scroll.initial,max:V.scroll.max,current:X,diff:{value:ne,displacement:ge}}};return Ne};function gr(V,X){return V.map(function(ne){return X[ne]})}function ir(V,X){for(var ne=0;ne1?un.sort(function(Ut,Nt){return Rt(Ut)[nt.start]-Rt(Nt)[nt.start]})[0]:en.sort(function(Ut,Nt){var Qt=mt(ne,Ot(Rt(Ut))),ca=mt(ne,Ot(Rt(Nt)));return Qt!==ca?Qt-ca:Rt(Ut)[nt.start]-Rt(Nt)[nt.start]})[0]},aa=function(X,ne){var ge=X.page.borderBox.center;return Un(X.descriptor.id,ne)?Ct(ge,ne.displacedBy.point):ge},ra=function(X,ne){var ge=X.page.borderBox;return Un(X.descriptor.id,ne)?hn(ge,Zt(ne.displacedBy.point)):ge},Fn=function(V){var X=V.pageBorderBoxCenter,ne=V.viewport,ge=V.destination,ke=V.insideDestination,Ne=V.afterCritical,tt=ke.filter(function(nt){return Oe({target:ra(nt,Ne),destination:ge,viewport:ne.frame,withDroppableDisplacement:!0})}).sort(function(nt,It){var en=ia(X,dn(ge,aa(nt,Ne))),un=ia(X,dn(ge,aa(It,Ne)));return enX.left&&V.topX.top}function zn(V){var X=V.pageBorderBox,ne=V.draggable,ge=V.candidates,ke=ne.page.borderBox.center,Ne=ge.map(function(tt){var nt=tt.axis,It=Hn(tt.axis.line,X.center[nt.line],tt.page.borderBox.center[nt.crossAxisLine]);return{id:tt.descriptor.id,distance:ia(ke,It)}}).sort(function(tt,nt){return nt.distance-tt.distance});return Ne[0]?Ne[0].id:null}function jn(V){var X=V.pageBorderBox,ne=V.draggable,ge=V.droppables,ke=Sa(ge).filter(function(Ne){if(!Ne.isEnabled)return!1;var tt=Ne.subject.active;if(!tt)return!1;if(!fn(X,tt))return!1;if(wn(tt)(X.center))return!0;var nt=Ne.axis,It=tt.center[nt.crossAxisLine],en=X[nt.crossAxisStart],un=X[nt.crossAxisEnd],Ut=Mt(tt[nt.crossAxisStart],tt[nt.crossAxisEnd]),Nt=Ut(en),Qt=Ut(un);return!Nt&&!Qt?!0:Nt?enIt});return ke.length?ke.length===1?ke[0].descriptor.id:zn({pageBorderBox:X,draggable:ne,candidates:ke}):null}var $t=function(X,ne){return m(hn(X,ne))},yn=function(V,X){var ne=V.frame;return ne?$t(X,ne.scroll.diff.value):X};function pn(V){var X=V.displaced,ne=V.id;return Boolean(X.visible[ne]||X.invisible[ne])}function On(V){var X=V.draggable,ne=V.closest,ge=V.inHomeList;return ne?ge&&ne.descriptor.index>X.descriptor.index?ne.descriptor.index-1:ne.descriptor.index:null}var cn=function(V){var X=V.pageBorderBoxWithDroppableScroll,ne=V.draggable,ge=V.destination,ke=V.insideDestination,Ne=V.last,tt=V.viewport,nt=V.afterCritical,It=ge.axis,en=da(ge.axis,ne.displaceBy),un=en.value,Ut=X[It.start],Nt=X[It.end],Qt=ze(ne,ke),ca=Lt(Qt,function(br){var Tr=br.descriptor.id,Mr=br.page.borderBox.center[It.line],zr=Un(Tr,nt),Ir=pn({displaced:Ne,id:Tr});return zr?Ir?Nt<=Mr:UtTr[nt.start]+zr&&UtTr[nt.start]-en+zr&&unTr[nt.start]+en+zr&&UtTr[nt.start]+zr&&un=Ya)return wa;var Ne=ke/Ya,tt=Qn+tr*Ne,nt=ge==="CANCEL"?tt*ar:tt;return Number(nt.toFixed(2))},hr=function(V){var X=V.impact,ne=V.draggable,ge=V.dimensions,ke=V.viewport,Ne=V.afterCritical,tt=ge.draggables,nt=ge.droppables,It=wt(X),en=It?nt[It]:null,un=nt[ne.descriptor.droppableId],Ut=Dt({impact:X,draggable:ne,draggables:tt,afterCritical:Ne,droppable:en||un,viewport:ke}),Nt=Ct(Ut,ne.client.borderBox.center);return Nt},sr=function(V){var X=V.draggables,ne=V.reason,ge=V.lastImpact,ke=V.home,Ne=V.viewport,tt=V.onLiftImpact;if(!ge.at||ne!=="DROP"){var nt=Vt({draggables:X,impact:tt,destination:ke,viewport:Ne,forceShouldAnimate:!0});return{impact:nt,didDropInsideDroppable:!1}}if(ge.at.type==="REORDER")return{impact:ge,didDropInsideDroppable:!0};var It=Object(B.a)({},ge,{displaced:Gn});return{impact:It,didDropInsideDroppable:!0}},va=function(V){var X=V.getState,ne=V.dispatch;return function(ge){return function(ke){if(ke.type!=="DROP"){ge(ke);return}var Ne=X(),tt=ke.payload.reason;if(Ne.phase==="COLLECTING"){ne(_t({reason:tt}));return}if(Ne.phase==="IDLE")return;var nt=Ne.phase==="DROP_PENDING"&&Ne.isWaiting;nt&&fe(!1),Ne.phase==="DRAGGING"||Ne.phase==="DROP_PENDING"||fe(!1);var It=Ne.critical,en=Ne.dimensions,un=en.draggables[Ne.critical.draggable.id],Ut=sr({reason:tt,lastImpact:Ne.impact,afterCritical:Ne.afterCritical,onLiftImpact:Ne.onLiftImpact,home:Ne.dimensions.droppables[Ne.critical.droppable.id],viewport:Ne.viewport,draggables:Ne.dimensions.draggables}),Nt=Ut.impact,Qt=Ut.didDropInsideDroppable,ca=Qt?mn(Nt):null,mr=Qt?Gt(Nt):null,br={index:It.draggable.index,droppableId:It.droppable.id},Tr={draggableId:un.descriptor.id,type:un.descriptor.type,source:br,reason:tt,mode:Ne.movementMode,destination:ca,combine:mr},Mr=hr({impact:Nt,draggable:un,dimensions:en,viewport:Ne.viewport,afterCritical:Ne.afterCritical}),zr={critical:Ne.critical,afterCritical:Ne.afterCritical,result:Tr,impact:Nt},Ir=!tn(Ne.current.client.offset,Mr)||Boolean(Tr.combine);if(!Ir){ne($e({completed:zr}));return}var ni=Ar({current:Ne.current.client.offset,destination:Mr,reason:tt}),qr={newHomeClientOffset:Mr,dropDuration:ni,completed:zr};ne(nr(qr))}}},_a=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ur(V){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ne){if(ne.target!==window&&ne.target!==window.document)return;V()}}}function Ba(V){var X=V.onWindowScroll;function ne(){X(_a())}var ge=S(ne),ke=ur(ge),Ne=de;function tt(){return Ne!==de}function nt(){tt()&&fe(!1),Ne=He(window,[ke])}function It(){tt()||fe(!1),ge.cancel(),Ne(),Ne=de}return{start:nt,stop:It,isActive:tt}}var oa=function(X){return X.type==="DROP_COMPLETE"||X.type==="DROP_ANIMATE"||X.type==="FLUSH"},Ua=function(V){var X=Ba({onWindowScroll:function(ge){V.dispatch(Ca({newScroll:ge}))}});return function(ne){return function(ge){!X.isActive()&&ge.type==="INITIAL_PUBLISH"&&X.start(),X.isActive()&&oa(ge)&&X.stop(),ne(ge)}}},Er=function(V){var X=!1,ne=!1,ge=setTimeout(function(){ne=!0}),ke=function(tt){if(X)return;if(ne)return;X=!0,V(tt),clearTimeout(ge)};return ke.wasCalled=function(){return X},ke},Ka=function(){var V=[],X=function(Ne){var tt=qe(V,function(en){return en.timerId===Ne});tt!==-1||fe(!1);var nt=V.splice(tt,1),It=nt[0];It.callback()},ne=function(Ne){var tt=setTimeout(function(){return X(tt)}),nt={timerId:tt,callback:Ne};V.push(nt)},ge=function(){if(!V.length)return;var Ne=[].concat(V);V.length=0,Ne.forEach(function(tt){clearTimeout(tt.timerId),tt.callback()})};return{add:ne,flush:ge}},yt=function(X,ne){return X==null&&ne==null?!0:X==null||ne==null?!1:X.droppableId===ne.droppableId&&X.index===ne.index},qa=function(X,ne){return X==null&&ne==null?!0:X==null||ne==null?!1:X.draggableId===ne.draggableId&&X.droppableId===ne.droppableId},Lr=function(X,ne){if(X===ne)return!0;var ge=X.draggable.id===ne.draggable.id&&X.draggable.droppableId===ne.draggable.droppableId&&X.draggable.type===ne.draggable.type&&X.draggable.index===ne.draggable.index,ke=X.droppable.id===ne.droppable.id&&X.droppable.type===ne.droppable.type;return ge&&ke},_r=function(X,ne){Xn(),ne(),ha()},Tt=function(X,ne){return{draggableId:X.draggable.id,type:X.droppable.type,source:{droppableId:X.droppable.id,index:X.draggable.index},mode:ne}},pr=function(X,ne,ge,ke){if(!X){ge(ke(ne));return}var Ne=Er(ge),tt={announce:Ne};X(ne,tt),Ne.wasCalled()||ge(ke(ne))},Yn=function(V,X){var ne=Ka(),ge=null,ke=function(Nt,Qt){ge&&fe(!1),_r("onBeforeCapture",function(){var ca=V().onBeforeCapture;if(ca){var mr={draggableId:Nt,mode:Qt};ca(mr)}})},Ne=function(Nt,Qt){ge&&fe(!1),_r("onBeforeDragStart",function(){var ca=V().onBeforeDragStart;ca&&ca(Tt(Nt,Qt))})},tt=function(Nt,Qt){ge&&fe(!1);var ca=Tt(Nt,Qt);ge={mode:Qt,lastCritical:Nt,lastLocation:ca.source,lastCombine:null},ne.add(function(){_r("onDragStart",function(){return pr(V().onDragStart,ca,X,Le.onDragStart)})})},nt=function(Nt,Qt){var ca=mn(Qt),mr=Gt(Qt);ge||fe(!1);var br=!Lr(Nt,ge.lastCritical);br&&(ge.lastCritical=Nt);var Tr=!yt(ge.lastLocation,ca);Tr&&(ge.lastLocation=ca);var Mr=!qa(ge.lastCombine,mr);if(Mr&&(ge.lastCombine=mr),!br&&!Tr&&!Mr)return;var zr=Object(B.a)({},Tt(Nt,ge.mode),{combine:mr,destination:ca});ne.add(function(){_r("onDragUpdate",function(){return pr(V().onDragUpdate,zr,X,Le.onDragUpdate)})})},It=function(){ge||fe(!1),ne.flush()},en=function(Nt){ge||fe(!1),ge=null,_r("onDragEnd",function(){return pr(V().onDragEnd,Nt,X,Le.onDragEnd)})},un=function(){if(!ge)return;var Nt=Object(B.a)({},Tt(ge.lastCritical,ge.mode),{combine:null,destination:null,reason:"CANCEL"});en(Nt)};return{beforeCapture:ke,beforeStart:Ne,start:tt,update:nt,flush:It,drop:en,abort:un}},vr=function(V,X){var ne=Yn(V,X);return function(ge){return function(ke){return function(Ne){if(Ne.type==="BEFORE_INITIAL_CAPTURE"){ne.beforeCapture(Ne.payload.draggableId,Ne.payload.movementMode);return}if(Ne.type==="INITIAL_PUBLISH"){var tt=Ne.payload.critical;ne.beforeStart(tt,Ne.payload.movementMode),ke(Ne),ne.start(tt,Ne.payload.movementMode);return}if(Ne.type==="DROP_COMPLETE"){var nt=Ne.payload.completed.result;ne.flush(),ke(Ne),ne.drop(nt);return}if(ke(Ne),Ne.type==="FLUSH"){ne.abort();return}var It=ge.getState();It.phase==="DRAGGING"&&ne.update(It.critical,It.impact)}}}},wr=function(V){return function(X){return function(ne){if(ne.type!=="DROP_ANIMATION_FINISHED"){X(ne);return}var ge=V.getState();ge.phase==="DROP_ANIMATING"||fe(!1),V.dispatch($e({completed:ge.completed}))}}},Xr=function(V){var X=null,ne=null;function ge(){ne&&(cancelAnimationFrame(ne),ne=null),X&&(X(),X=null)}return function(ke){return function(Ne){if((Ne.type==="FLUSH"||Ne.type==="DROP_COMPLETE"||Ne.type==="DROP_ANIMATION_FINISHED")&&ge(),ke(Ne),Ne.type!=="DROP_ANIMATE")return;var tt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var It=V.getState();It.phase==="DROP_ANIMATING"&&V.dispatch(Xe())}};ne=requestAnimationFrame(function(){ne=null,X=He(window,[tt])})}}},ai=function(V){return function(){return function(X){return function(ne){(ne.type==="DROP_COMPLETE"||ne.type==="FLUSH"||ne.type==="DROP_ANIMATE")&&V.stopPublishing(),X(ne)}}}},$r=function(V){var X=!1;return function(){return function(ne){return function(ge){if(ge.type==="INITIAL_PUBLISH"){X=!0,V.tryRecordFocus(ge.payload.critical.draggable.id),ne(ge),V.tryRestoreFocusRecorded();return}if(ne(ge),!X)return;if(ge.type==="FLUSH"){X=!1,V.tryRestoreFocusRecorded();return}if(ge.type==="DROP_COMPLETE"){X=!1;var ke=ge.payload.completed.result;ke.combine&&V.tryShiftRecord(ke.draggableId,ke.combine.draggableId),V.tryRestoreFocusRecorded()}}}}},ei=function(X){return X.type==="DROP_COMPLETE"||X.type==="DROP_ANIMATE"||X.type==="FLUSH"},Or=function(V){return function(X){return function(ne){return function(ge){if(ei(ge)){V.stop(),ne(ge);return}if(ge.type==="INITIAL_PUBLISH"){ne(ge);var ke=X.getState();ke.phase==="DRAGGING"||fe(!1),V.start(ke);return}ne(ge),V.scroll(X.getState())}}}},za=function(V){return function(X){return function(ne){if(X(ne),ne.type!=="PUBLISH_WHILE_DRAGGING")return;var ge=V.getState();if(ge.phase!=="DROP_PENDING")return;if(ge.isWaiting)return;V.dispatch(vt({reason:ge.reason}))}}},La=O.d,sa=function(V){var X=V.dimensionMarshal,ne=V.focusMarshal,ge=V.styleMarshal,ke=V.getResponders,Ne=V.announce,tt=V.autoScroller;return Object(O.e)(Za,La(Object(O.a)(Ze(ge),ai(X),Ce(X),va,wr,Xr,za,Or(tt),Ua,$r(ne),vr(ke,Ne))))},In=function(){return{additions:{},removals:{},modified:{}}};function cr(V){var X=V.registry,ne=V.callbacks,ge=In(),ke=null,Ne=function(){if(ke)return;ne.collectionStarting(),ke=requestAnimationFrame(function(){ke=null,Xn();var un=ge,Ut=un.additions,Nt=un.removals,Qt=un.modified,ca=Object.keys(Ut).map(function(Tr){return X.draggable.getById(Tr).getDimension(Ye)}).sort(function(Tr,Mr){return Tr.descriptor.index-Mr.descriptor.index}),mr=Object.keys(Qt).map(function(Tr){var Mr=X.droppable.getById(Tr),zr=Mr.callbacks.getScrollWhileDragging();return{droppableId:Tr,scroll:zr}}),br={additions:ca,removals:Object.keys(Nt),modified:mr};ge=In(),ha(),ne.publish(br)})},tt=function(un){var Ut=un.descriptor.id;ge.additions[Ut]=un,ge.modified[un.descriptor.droppableId]=!0,ge.removals[Ut]&&delete ge.removals[Ut],Ne()},nt=function(un){var Ut=un.descriptor;ge.removals[Ut.id]=!0,ge.modified[Ut.droppableId]=!0,ge.additions[Ut.id]&&delete ge.additions[Ut.id],Ne()},It=function(){if(!ke)return;cancelAnimationFrame(ke),ke=null,ge=In()};return{add:tt,remove:nt,stop:It}}var dr=function(V){var X=V.scrollHeight,ne=V.scrollWidth,ge=V.height,ke=V.width,Ne=Ct({x:ne,y:X},{x:ke,y:ge}),tt={x:Math.max(0,Ne.x),y:Math.max(0,Ne.y)};return tt},ka=function(){var V=document.documentElement;return V||fe(!1),V},kr=function(){var V=ka(),X=dr({scrollHeight:V.scrollHeight,scrollWidth:V.scrollWidth,width:V.clientWidth,height:V.clientHeight});return X},Yr=function(){var V=_a(),X=kr(),ne=V.y,ge=V.x,ke=ka(),Ne=ke.clientWidth,tt=ke.clientHeight,nt=ge+Ne,It=ne+tt,en=m({top:ne,left:ge,right:nt,bottom:It}),un={frame:en,scroll:{initial:V,current:V,max:X,diff:{value:Ye,displacement:Ye}}};return un},jr=function(V){var X=V.critical,ne=V.scrollOptions,ge=V.registry;Xn();var ke=Yr(),Ne=ke.scroll.current,tt=X.droppable,nt=ge.droppable.getAllByType(tt.type).map(function(Ut){return Ut.callbacks.getDimensionAndWatchScroll(Ne,ne)}),It=ge.draggable.getAllByType(X.draggable.type).map(function(Ut){return Ut.getDimension(Ne)}),en={draggables:ta(It),droppables:$n(nt)};ha();var un={dimensions:en,critical:X,viewport:ke};return un};function rr(V,X,ne){if(ne.descriptor.id===X.id)return!1;if(ne.descriptor.type!==X.type)return!1;var ge=V.droppable.getById(ne.descriptor.droppableId);return!(ge.descriptor.mode!=="virtual")}var Rr=function(V,X){var ne=null,ge=cr({callbacks:{publish:X.publishWhileDragging,collectionStarting:X.collectionStarting},registry:V}),ke=function(Qt,ca){if(V.droppable.exists(Qt)||fe(!1),!ne)return;X.updateDroppableIsEnabled({id:Qt,isEnabled:ca})},Ne=function(Qt,ca){if(!ne)return;V.droppable.exists(Qt)||fe(!1),X.updateDroppableIsCombineEnabled({id:Qt,isCombineEnabled:ca})},tt=function(Qt,ca){if(!ne)return;V.droppable.exists(Qt)||fe(!1),X.updateDroppableScroll({id:Qt,newScroll:ca})},nt=function(Qt,ca){if(!ne)return;V.droppable.getById(Qt).callbacks.scroll(ca)},It=function(){if(!ne)return;ge.stop();var Qt=ne.critical.droppable;V.droppable.getAllByType(Qt.type).forEach(function(ca){return ca.callbacks.dragStopped()}),ne.unsubscribe(),ne=null},en=function(Qt){ne||fe(!1);var ca=ne.critical.draggable;Qt.type==="ADDITION"&&(rr(V,ca,Qt.value)&&ge.add(Qt.value)),Qt.type==="REMOVAL"&&(rr(V,ca,Qt.value)&&ge.remove(Qt.value))},un=function(Qt){ne&&fe(!1);var ca=V.draggable.getById(Qt.draggableId),mr=V.droppable.getById(ca.descriptor.droppableId),br={draggable:ca.descriptor,droppable:mr.descriptor},Tr=V.subscribe(en);return ne={critical:br,unsubscribe:Tr},jr({critical:br,registry:V,scrollOptions:Qt.scrollOptions})},Ut={updateDroppableIsEnabled:ke,updateDroppableIsCombineEnabled:Ne,scrollDroppable:nt,updateDroppableScroll:tt,startPublishing:un,stopPublishing:It};return Ut},ti=function(V,X){return V.phase==="IDLE"?!0:V.phase!=="DROP_ANIMATING"||V.completed.result.draggableId===X?!1:V.completed.result.reason==="DROP"},ri=function(V){window.scrollBy(V.x,V.y)},hi=x(function(V){return Sa(V).filter(function(X){return X.isEnabled?!!X.frame:!1})}),pi=function(X,ne){var ge=Lt(hi(ne),function(ke){return ke.frame||fe(!1),wn(ke.frame.pageMarginBox)(X)});return ge},mi=function(V){var X=V.center,ne=V.destination,ge=V.droppables;if(ne){var ke=ge[ne];return ke.frame?ke:null}var Ne=pi(X,ge);return Ne},Ei={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(X){return Math.pow(X,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ao=function(V,X){var ne=V[X.size]*Ei.startFromPercentage,ge=V[X.size]*Ei.maxScrollAtPercentage,ke={startScrollingFrom:ne,maxScrollValueAt:ge};return ke},_o=function(V){var X=V.startOfRange,ne=V.endOfRange,ge=V.current,ke=ne-X;if(ke===0)return 0;var Ne=ge-X,tt=Ne/ke;return tt},So=1,$i=function(V,X){if(V>X.startScrollingFrom)return 0;if(V<=X.maxScrollValueAt)return Ei.maxPixelScroll;if(V===X.startScrollingFrom)return So;var ne=_o({startOfRange:X.maxScrollValueAt,endOfRange:X.startScrollingFrom,current:V}),ge=1-ne,ke=Ei.maxPixelScroll*Ei.ease(ge);return Math.ceil(ke)},eo=Ei.durationDampening.accelerateAt,ro=Ei.durationDampening.stopDampeningAt,io=function(V,X){var ne=X,ge=ro,ke=Date.now(),Ne=ke-ne;if(Ne>=ro)return V;if(NeX.height,Ne=ne.width>X.width;return!Ne&&!ke?ge:Ne&&ke?null:{x:Ne?0:ge.x,y:ke?0:ge.y}},oo=pt(function(V){return V===0?0:V}),zi=function(V){var X=V.dragStartTime,ne=V.container,ge=V.subject,ke=V.center,Ne=V.shouldUseTimeDampening,tt={top:ke.y-ne.top,right:ne.right-ke.x,bottom:ne.bottom-ke.y,left:ke.x-ne.left},nt=bo({container:ne,distanceToEdges:tt,dragStartTime:X,axis:na,shouldUseTimeDampening:Ne}),It=bo({container:ne,distanceToEdges:tt,dragStartTime:X,axis:Ea,shouldUseTimeDampening:Ne}),en=oo({x:It,y:nt});if(tn(en,Ye))return null;var un=co({container:ne,subject:ge,proposedScroll:en});return un?tn(un,Ye)?null:un:null},Xi=pt(function(V){return V===0?0:V>0?1:-1}),gi=function(){var V=function(ne,ge){return ne<0?ne:ne>ge?ne-ge:0};return function(X){var ne=X.current,ge=X.max,ke=X.change,Ne=gt(ne,ke),tt={x:V(Ne.x,ge.x),y:V(Ne.y,ge.y)};return tn(tt,Ye)?null:tt}}(),yi=function(X){var ne=X.max,ge=X.current,ke=X.change,Ne={x:Math.max(ge.x,ne.x),y:Math.max(ge.y,ne.y)},tt=Xi(ke),nt=gi({max:Ne,current:ge,change:tt});return nt?tt.x!==0&&nt.x===0?!0:tt.y!==0&&nt.y===0:!0},Br=function(X,ne){return yi({current:X.scroll.current,max:X.scroll.max,change:ne})},Nr=function(X,ne){if(!Br(X,ne))return null;var ge=X.scroll.max,ke=X.scroll.current;return gi({current:ke,max:ge,change:ne})},Fr=function(X,ne){var ge=X.frame;return ge?yi({current:ge.scroll.current,max:ge.scroll.max,change:ne}):!1},ii=function(X,ne){var ge=X.frame;return ge&&Fr(X,ne)?gi({current:ge.scroll.current,max:ge.scroll.max,change:ne}):null},ui=function(V){var X=V.viewport,ne=V.subject,ge=V.center,ke=V.dragStartTime,Ne=V.shouldUseTimeDampening,tt=zi({dragStartTime:ke,container:X.frame,subject:ne,center:ge,shouldUseTimeDampening:Ne});return tt&&Br(X,tt)?tt:null},Ai=function(V){var X=V.droppable,ne=V.subject,ge=V.center,ke=V.dragStartTime,Ne=V.shouldUseTimeDampening,tt=X.frame;if(!tt)return null;var nt=zi({dragStartTime:ke,container:tt.pageMarginBox,subject:ne,center:ge,shouldUseTimeDampening:Ne});return nt&&Fr(X,nt)?nt:null},fi=function(V){var X=V.state,ne=V.dragStartTime,ge=V.shouldUseTimeDampening,ke=V.scrollWindow,Ne=V.scrollDroppable,tt=X.current.page.borderBoxCenter,nt=X.dimensions.draggables[X.critical.draggable.id],It=nt.page.marginBox;if(X.isWindowScrollAllowed){var en=X.viewport,un=ui({dragStartTime:ne,viewport:en,subject:It,center:tt,shouldUseTimeDampening:ge});if(un){ke(un);return}}var Ut=mi({center:tt,destination:wt(X.impact),droppables:X.dimensions.droppables});if(!Ut)return;var Nt=Ai({dragStartTime:ne,droppable:Ut,subject:It,center:tt,shouldUseTimeDampening:ge});Nt&&Ne(Ut.descriptor.id,Nt)},Qi=function(V){var X=V.scrollWindow,ne=V.scrollDroppable,ge=S(X),ke=S(ne),Ne=null,tt=function(un){Ne||fe(!1);var Ut=Ne,Nt=Ut.shouldUseTimeDampening,Qt=Ut.dragStartTime;fi({state:un,scrollWindow:ge,scrollDroppable:ke,dragStartTime:Qt,shouldUseTimeDampening:Nt})},nt=function(un){Xn(),Ne&&fe(!1);var Ut=Date.now(),Nt=!1,Qt=function(){Nt=!0};fi({state:un,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Qt,scrollDroppable:Qt}),Ne={dragStartTime:Ut,shouldUseTimeDampening:Nt},ha(),Nt&&tt(un)},It=function(){if(!Ne)return;ge.cancel(),ke.cancel(),Ne=null};return{start:nt,stop:It,scroll:tt}},Eo=function(V){var X=V.move,ne=V.scrollDroppable,ge=V.scrollWindow,ke=function(en,un){var Ut=gt(en.current.client.selection,un);X({client:Ut})},Ne=function(en,un){if(!Fr(en,un))return un;var Ut=ii(en,un);if(!Ut)return ne(en.descriptor.id,un),null;var Nt=Ct(un,Ut);ne(en.descriptor.id,Nt);var Qt=Ct(un,Nt);return Qt},tt=function(en,un,Ut){if(!en)return Ut;if(!Br(un,Ut))return Ut;var Nt=Nr(un,Ut);if(!Nt)return ge(Ut),null;var Qt=Ct(Ut,Nt);ge(Qt);var ca=Ct(Ut,Qt);return ca},nt=function(en){var un=en.scrollJumpRequest;if(!un)return;var Ut=wt(en.impact);Ut||fe(!1);var Nt=Ne(en.dimensions.droppables[Ut],un);if(!Nt)return;var Qt=en.viewport,ca=tt(en.isWindowScrollAllowed,Qt,Nt);if(!ca)return;ke(en,ca)};return nt},Po=function(V){var X=V.scrollDroppable,ne=V.scrollWindow,ge=V.move,ke=Qi({scrollWindow:ne,scrollDroppable:X}),Ne=Eo({move:ge,scrollWindow:ne,scrollDroppable:X}),tt=function(en){if(en.phase!=="DRAGGING")return;if(en.movementMode==="FLUID"){ke.scroll(en);return}if(!en.scrollJumpRequest)return;Ne(en)},nt={scroll:tt,start:ke.start,stop:ke.stop};return nt},fo="data-rbd",Mi=function(){var V=fo+"-drag-handle";return{base:V,draggableId:V+"-draggable-id",contextId:V+"-context-id"}}(),ho=function(){var V=fo+"-draggable";return{base:V,contextId:V+"-context-id",id:V+"-id"}}(),Io=function(){var V=fo+"-droppable";return{base:V,contextId:V+"-context-id",id:V+"-id"}}(),Oo={contextId:fo+"-scroll-container-context-id"},Di=function(X){return function(ne){return"["+ne+'="'+X+'"]'}},si=function(X,ne){return X.map(function(ge){var ke=ge.styles[ne];return ke?ge.selector+" { "+ke+" }":""}).join(" ")},Oi="pointer-events: none;",vi=function(V){var X=Di(V),ne=function(){var nt=` + `},Le={dragHandleUsageInstructions:he,onDragStart:st,onDragUpdate:Qe,onDragEnd:xe},Ye={x:0,y:0},gt=function(X,ne){return{x:X.x+ne.x,y:X.y+ne.y}},Ct=function(X,ne){return{x:X.x-ne.x,y:X.y-ne.y}},tn=function(X,ne){return X.x===ne.x&&X.y===ne.y},Zt=function(X){return{x:X.x!==0?-X.x:0,y:X.y!==0?-X.y:0}},Hn=function(X,ne,ge){var ke;return ge===void 0&&(ge=0),ke={},ke[X]=ne,ke[X==="x"?"y":"x"]=ge,ke},ia=function(X,ne){return Math.sqrt(Math.pow(ne.x-X.x,2)+Math.pow(ne.y-X.y,2))},vt=function(X,ne){return Math.min.apply(Math,ne.map(function(ge){return ia(X,ge)}))},mt=function(X){return function(ne){return{x:X(ne.x),y:X(ne.y)}}},on=function(V,X){var ne=m({top:Math.max(X.top,V.top),right:Math.min(X.right,V.right),bottom:Math.min(X.bottom,V.bottom),left:Math.max(X.left,V.left)});return ne.width<=0||ne.height<=0?null:ne},hn=function(X,ne){return{top:X.top+ne.y,left:X.left+ne.x,bottom:X.bottom+ne.y,right:X.right+ne.x}},Ot=function(X){return[{x:X.left,y:X.top},{x:X.right,y:X.top},{x:X.left,y:X.bottom},{x:X.right,y:X.bottom}]},Xt={top:0,right:0,bottom:0,left:0},ht=function(X,ne){return ne?hn(X,ne.scroll.diff.displacement):X},Je=function(X,ne,ge){if(ge&&ge.increasedBy){var ke;return Object(B.a)({},X,(ke={},ke[ne.end]=X[ne.end]+ge.increasedBy[ne.line],ke))}return X},rt=function(X,ne){return ne&&ne.shouldClipSubject?on(ne.pageMarginBox,X):m(X)},Te=function(V){var X=V.page,ne=V.withPlaceholder,ge=V.axis,ke=V.frame,Ne=ht(X.marginBox,ke),tt=Je(Ne,ge,ne),nt=rt(tt,ke);return{page:X,withPlaceholder:ne,active:nt}},Me=function(V,X){V.frame||fe(!1);var ne=V.frame,ge=Ct(X,ne.scroll.initial),ke=Zt(ge),Ne=Object(B.a)({},ne,{scroll:{initial:ne.scroll.initial,current:X,diff:{value:ge,displacement:ke},max:ne.scroll.max}}),tt=Te({page:V.subject.page,withPlaceholder:V.subject.withPlaceholder,axis:V.axis,frame:Ne}),nt=Object(B.a)({},V,{frame:Ne,subject:tt});return nt};function Ie(V){return Number.isInteger?Number.isInteger(V):typeof V=="number"&&isFinite(V)&&Math.floor(V)===V}function be(V){return Object.values?Object.values(V):Object.keys(V).map(function(X){return V[X]})}function qe(V,X){if(V.findIndex)return V.findIndex(X);for(var ne=0;neV.bottom,en=ge.leftV.right,un=It&&en;if(un)return!0;var Ut=It&&tt||en&&Ne;return Ut}},Bn=function(V){var X=Mt(V.top,V.bottom),ne=Mt(V.left,V.right);return function(ge){var ke=X(ge.top)&&X(ge.bottom)&&ne(ge.left)&&ne(ge.right);return ke}},na={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Ea={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Pe=function(V){return function(X){var ne=Mt(X.top,X.bottom),ge=Mt(X.left,X.right);return function(ke){return V===na?ne(ke.top)&&ne(ke.bottom):ge(ke.left)&&ge(ke.right)}}},ye=function(X,ne){var ge=ne.frame?ne.frame.scroll.diff.displacement:Ye;return hn(X,ge)},J=function(X,ne,ge){return ne.subject.active?ge(ne.subject.active)(X):!1},q=function(X,ne,ge){return ge(ne)(X)},Z=function(X){var ne=X.target,ge=X.destination,ke=X.viewport,Ne=X.withDroppableDisplacement,tt=X.isVisibleThroughFrameFn,nt=Ne?ye(ne,ge):ne;return J(nt,ge,tt)&&q(nt,ke,tt)},oe=function(X){return Z(Object(B.a)({},X,{isVisibleThroughFrameFn:Nn}))},Oe=function(X){return Z(Object(B.a)({},X,{isVisibleThroughFrameFn:Bn}))},Re=function(X){return Z(Object(B.a)({},X,{isVisibleThroughFrameFn:Pe(X.destination.axis)}))},ve=function(X,ne,ge){if(typeof ge=="boolean")return ge;if(!ne)return!0;var ke=ne.invisible,Ne=ne.visible;if(ke[X])return!1;var tt=Ne[X];return tt?tt.shouldAnimate:!0};function bn(V,X){var ne=V.page.marginBox,ge={top:X.point.y,right:0,bottom:0,left:X.point.x};return m(o(ne,ge))}function kt(V){var X=V.afterDragging,ne=V.destination,ge=V.displacedBy,ke=V.viewport,Ne=V.forceShouldAnimate,tt=V.last;return X.reduce(function(It,en){var un=bn(en,ge),Ut=en.descriptor.id;It.all.push(Ut);var Nt=oe({target:un,destination:ne,viewport:ke,withDroppableDisplacement:!0});if(!Nt)return It.invisible[en.descriptor.id]=!0,It;var Qt=ve(Ut,tt,Ne),ca={draggableId:Ut,shouldAnimate:Qt};return It.visible[Ut]=ca,It},{all:[],visible:{},invisible:{}})}function at(V,X){if(!V.length)return 0;var ne=V[V.length-1].descriptor.index;return X.inHomeList?ne:ne+1}function Ht(V){var X=V.insideDestination,ne=V.inHomeList,ge=V.displacedBy,ke=V.destination,Ne=at(X,{inHomeList:ne});return{displaced:Gn,displacedBy:ge,at:{type:"REORDER",destination:{droppableId:ke.descriptor.id,index:Ne}}}}function Fe(V){var X=V.draggable,ne=V.insideDestination,ge=V.destination,ke=V.viewport,Ne=V.displacedBy,tt=V.last,nt=V.index,It=V.forceShouldAnimate,en=Sn(X,ge);if(nt==null)return Ht({insideDestination:ne,inHomeList:en,displacedBy:Ne,destination:ge});var un=Lt(ne,function(mr){return mr.descriptor.index===nt});if(!un)return Ht({insideDestination:ne,inHomeList:en,displacedBy:Ne,destination:ge});var Ut=ze(X,ne),Nt=ne.indexOf(un),Qt=Ut.slice(Nt),ca=kt({afterDragging:Qt,destination:ge,displacedBy:Ne,last:tt,viewport:ke.frame,forceShouldAnimate:It});return{displaced:ca,displacedBy:Ne,at:{type:"REORDER",destination:{droppableId:ge.descriptor.id,index:nt}}}}function Un(V,X){return Boolean(X.effected[V])}var Fa=function(V){var X=V.isMovingForward,ne=V.destination,ge=V.draggables,ke=V.combine,Ne=V.afterCritical;if(!ne.isCombineEnabled)return null;var tt=ke.draggableId,nt=ge[tt],It=nt.descriptor.index,en=Un(tt,Ne);return en?X?It:It-1:X?It+1:It},fa=function(V){var X=V.isMovingForward,ne=V.isInHomeList,ge=V.insideDestination,ke=V.location;if(!ge.length)return null;var Ne=ke.index,tt=X?Ne+1:Ne-1,nt=ge[0].descriptor.index,It=ge[ge.length-1].descriptor.index,en=ne?It:It+1;return tten?null:tt},ae=function(V){var X=V.isMovingForward,ne=V.isInHomeList,ge=V.draggable,ke=V.draggables,Ne=V.destination,tt=V.insideDestination,nt=V.previousImpact,It=V.viewport,en=V.afterCritical,un=nt.at;if(un||fe(!1),un.type==="REORDER"){var Ut=fa({isMovingForward:X,isInHomeList:ne,location:un.destination,insideDestination:tt});return Ut==null?null:Fe({draggable:ge,insideDestination:tt,destination:Ne,viewport:It,last:nt.displaced,displacedBy:nt.displacedBy,index:Ut})}var Nt=Fa({isMovingForward:X,destination:Ne,displaced:nt.displaced,draggables:ke,combine:un.combine,afterCritical:en});return Nt==null?null:Fe({draggable:ge,insideDestination:tt,destination:Ne,viewport:It,last:nt.displaced,displacedBy:nt.displacedBy,index:Nt})},z=function(V){var X=V.displaced,ne=V.afterCritical,ge=V.combineWith,ke=V.displacedBy,Ne=Boolean(X.visible[ge]||X.invisible[ge]);return Un(ge,ne)?Ne?Ye:Zt(ke.point):Ne?ke.point:Ye},Y=function(V){var X=V.afterCritical,ne=V.impact,ge=V.draggables,ke=Gt(ne);ke||fe(!1);var Ne=ke.draggableId,tt=ge[Ne].page.borderBox.center,nt=z({displaced:ne.displaced,afterCritical:X,combineWith:Ne,displacedBy:ne.displacedBy});return gt(tt,nt)},te=function(X,ne){return ne.margin[X.start]+ne.borderBox[X.size]/2},_e=function(X,ne){return ne.margin[X.end]+ne.borderBox[X.size]/2},se=function(X,ne,ge){return ne[X.crossAxisStart]+ge.margin[X.crossAxisStart]+ge.borderBox[X.crossAxisSize]/2},ut=function(X){var ne=X.axis,ge=X.moveRelativeTo,ke=X.isMoving;return Hn(ne.line,ge.marginBox[ne.end]+te(ne,ke),se(ne,ge.marginBox,ke))},vn=function(X){var ne=X.axis,ge=X.moveRelativeTo,ke=X.isMoving;return Hn(ne.line,ge.marginBox[ne.start]-_e(ne,ke),se(ne,ge.marginBox,ke))},Wn=function(X){var ne=X.axis,ge=X.moveInto,ke=X.isMoving;return Hn(ne.line,ge.contentBox[ne.start]+te(ne,ke),se(ne,ge.contentBox,ke))},Oa=function(V){var X=V.impact,ne=V.draggable,ge=V.draggables,ke=V.droppable,Ne=V.afterCritical,tt=Bt(ke.descriptor.id,ge),nt=ne.page,It=ke.axis;if(!tt.length)return Wn({axis:It,moveInto:ke.page,isMoving:nt});var en=X.displaced,un=X.displacedBy,Ut=en.all[0];if(Ut){var Nt=ge[Ut];if(Un(Ut,Ne))return vn({axis:It,moveRelativeTo:Nt.page,isMoving:nt});var Qt=w(Nt.page,un.point);return vn({axis:It,moveRelativeTo:Qt,isMoving:nt})}var ca=tt[tt.length-1];if(ca.descriptor.id===ne.descriptor.id)return nt.borderBox.center;if(Un(ca.descriptor.id,Ne)){var mr=w(ca.page,Zt(Ne.displacedBy.point));return ut({axis:It,moveRelativeTo:mr,isMoving:nt})}return ut({axis:It,moveRelativeTo:ca.page,isMoving:nt})},dn=function(V,X){var ne=V.frame;return ne?gt(X,ne.scroll.diff.displacement):X},Tn=function(X){var ne=X.impact,ge=X.draggable,ke=X.droppable,Ne=X.draggables,tt=X.afterCritical,nt=ge.page.borderBox.center,It=ne.at;return ke&&It?It.type==="REORDER"?Oa({impact:ne,draggable:ge,draggables:Ne,droppable:ke,afterCritical:tt}):Y({impact:ne,draggables:Ne,afterCritical:tt}):nt},ya=function(V){var X=Tn(V),ne=V.droppable,ge=ne?dn(ne,X):X;return ge},fr=function(V,X){var ne=Ct(X,V.scroll.initial),ge=Zt(ne),ke=m({top:X.y,bottom:X.y+V.frame.height,left:X.x,right:X.x+V.frame.width}),Ne={frame:ke,scroll:{initial:V.scroll.initial,max:V.scroll.max,current:X,diff:{value:ne,displacement:ge}}};return Ne};function gr(V,X){return V.map(function(ne){return X[ne]})}function ir(V,X){for(var ne=0;ne1?un.sort(function(Ut,Nt){return Rt(Ut)[nt.start]-Rt(Nt)[nt.start]})[0]:en.sort(function(Ut,Nt){var Qt=vt(ne,Ot(Rt(Ut))),ca=vt(ne,Ot(Rt(Nt)));return Qt!==ca?Qt-ca:Rt(Ut)[nt.start]-Rt(Nt)[nt.start]})[0]},aa=function(X,ne){var ge=X.page.borderBox.center;return Un(X.descriptor.id,ne)?Ct(ge,ne.displacedBy.point):ge},ra=function(X,ne){var ge=X.page.borderBox;return Un(X.descriptor.id,ne)?hn(ge,Zt(ne.displacedBy.point)):ge},Fn=function(V){var X=V.pageBorderBoxCenter,ne=V.viewport,ge=V.destination,ke=V.insideDestination,Ne=V.afterCritical,tt=ke.filter(function(nt){return Oe({target:ra(nt,Ne),destination:ge,viewport:ne.frame,withDroppableDisplacement:!0})}).sort(function(nt,It){var en=ia(X,dn(ge,aa(nt,Ne))),un=ia(X,dn(ge,aa(It,Ne)));return enX.left&&V.topX.top}function zn(V){var X=V.pageBorderBox,ne=V.draggable,ge=V.candidates,ke=ne.page.borderBox.center,Ne=ge.map(function(tt){var nt=tt.axis,It=Hn(tt.axis.line,X.center[nt.line],tt.page.borderBox.center[nt.crossAxisLine]);return{id:tt.descriptor.id,distance:ia(ke,It)}}).sort(function(tt,nt){return nt.distance-tt.distance});return Ne[0]?Ne[0].id:null}function jn(V){var X=V.pageBorderBox,ne=V.draggable,ge=V.droppables,ke=Sa(ge).filter(function(Ne){if(!Ne.isEnabled)return!1;var tt=Ne.subject.active;if(!tt)return!1;if(!fn(X,tt))return!1;if(wn(tt)(X.center))return!0;var nt=Ne.axis,It=tt.center[nt.crossAxisLine],en=X[nt.crossAxisStart],un=X[nt.crossAxisEnd],Ut=Mt(tt[nt.crossAxisStart],tt[nt.crossAxisEnd]),Nt=Ut(en),Qt=Ut(un);return!Nt&&!Qt?!0:Nt?enIt});return ke.length?ke.length===1?ke[0].descriptor.id:zn({pageBorderBox:X,draggable:ne,candidates:ke}):null}var $t=function(X,ne){return m(hn(X,ne))},yn=function(V,X){var ne=V.frame;return ne?$t(X,ne.scroll.diff.value):X};function pn(V){var X=V.displaced,ne=V.id;return Boolean(X.visible[ne]||X.invisible[ne])}function On(V){var X=V.draggable,ne=V.closest,ge=V.inHomeList;return ne?ge&&ne.descriptor.index>X.descriptor.index?ne.descriptor.index-1:ne.descriptor.index:null}var cn=function(V){var X=V.pageBorderBoxWithDroppableScroll,ne=V.draggable,ge=V.destination,ke=V.insideDestination,Ne=V.last,tt=V.viewport,nt=V.afterCritical,It=ge.axis,en=da(ge.axis,ne.displaceBy),un=en.value,Ut=X[It.start],Nt=X[It.end],Qt=ze(ne,ke),ca=Lt(Qt,function(br){var Tr=br.descriptor.id,Mr=br.page.borderBox.center[It.line],zr=Un(Tr,nt),Ir=pn({displaced:Ne,id:Tr});return zr?Ir?Nt<=Mr:UtTr[nt.start]+zr&&UtTr[nt.start]-en+zr&&unTr[nt.start]+en+zr&&UtTr[nt.start]+zr&&un=Ya)return wa;var Ne=ke/Ya,tt=Qn+tr*Ne,nt=ge==="CANCEL"?tt*ar:tt;return Number(nt.toFixed(2))},hr=function(V){var X=V.impact,ne=V.draggable,ge=V.dimensions,ke=V.viewport,Ne=V.afterCritical,tt=ge.draggables,nt=ge.droppables,It=wt(X),en=It?nt[It]:null,un=nt[ne.descriptor.droppableId],Ut=Dt({impact:X,draggable:ne,draggables:tt,afterCritical:Ne,droppable:en||un,viewport:ke}),Nt=Ct(Ut,ne.client.borderBox.center);return Nt},sr=function(V){var X=V.draggables,ne=V.reason,ge=V.lastImpact,ke=V.home,Ne=V.viewport,tt=V.onLiftImpact;if(!ge.at||ne!=="DROP"){var nt=Vt({draggables:X,impact:tt,destination:ke,viewport:Ne,forceShouldAnimate:!0});return{impact:nt,didDropInsideDroppable:!1}}if(ge.at.type==="REORDER")return{impact:ge,didDropInsideDroppable:!0};var It=Object(B.a)({},ge,{displaced:Gn});return{impact:It,didDropInsideDroppable:!0}},va=function(V){var X=V.getState,ne=V.dispatch;return function(ge){return function(ke){if(ke.type!=="DROP"){ge(ke);return}var Ne=X(),tt=ke.payload.reason;if(Ne.phase==="COLLECTING"){ne(_t({reason:tt}));return}if(Ne.phase==="IDLE")return;var nt=Ne.phase==="DROP_PENDING"&&Ne.isWaiting;nt&&fe(!1),Ne.phase==="DRAGGING"||Ne.phase==="DROP_PENDING"||fe(!1);var It=Ne.critical,en=Ne.dimensions,un=en.draggables[Ne.critical.draggable.id],Ut=sr({reason:tt,lastImpact:Ne.impact,afterCritical:Ne.afterCritical,onLiftImpact:Ne.onLiftImpact,home:Ne.dimensions.droppables[Ne.critical.droppable.id],viewport:Ne.viewport,draggables:Ne.dimensions.draggables}),Nt=Ut.impact,Qt=Ut.didDropInsideDroppable,ca=Qt?mn(Nt):null,mr=Qt?Gt(Nt):null,br={index:It.draggable.index,droppableId:It.droppable.id},Tr={draggableId:un.descriptor.id,type:un.descriptor.type,source:br,reason:tt,mode:Ne.movementMode,destination:ca,combine:mr},Mr=hr({impact:Nt,draggable:un,dimensions:en,viewport:Ne.viewport,afterCritical:Ne.afterCritical}),zr={critical:Ne.critical,afterCritical:Ne.afterCritical,result:Tr,impact:Nt},Ir=!tn(Ne.current.client.offset,Mr)||Boolean(Tr.combine);if(!Ir){ne($e({completed:zr}));return}var ni=Ar({current:Ne.current.client.offset,destination:Mr,reason:tt}),qr={newHomeClientOffset:Mr,dropDuration:ni,completed:zr};ne(nr(qr))}}},_a=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ur(V){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ne){if(ne.target!==window&&ne.target!==window.document)return;V()}}}function Ba(V){var X=V.onWindowScroll;function ne(){X(_a())}var ge=S(ne),ke=ur(ge),Ne=de;function tt(){return Ne!==de}function nt(){tt()&&fe(!1),Ne=He(window,[ke])}function It(){tt()||fe(!1),ge.cancel(),Ne(),Ne=de}return{start:nt,stop:It,isActive:tt}}var oa=function(X){return X.type==="DROP_COMPLETE"||X.type==="DROP_ANIMATE"||X.type==="FLUSH"},Ua=function(V){var X=Ba({onWindowScroll:function(ge){V.dispatch(Ca({newScroll:ge}))}});return function(ne){return function(ge){!X.isActive()&&ge.type==="INITIAL_PUBLISH"&&X.start(),X.isActive()&&oa(ge)&&X.stop(),ne(ge)}}},Er=function(V){var X=!1,ne=!1,ge=setTimeout(function(){ne=!0}),ke=function(tt){if(X)return;if(ne)return;X=!0,V(tt),clearTimeout(ge)};return ke.wasCalled=function(){return X},ke},Ka=function(){var V=[],X=function(Ne){var tt=qe(V,function(en){return en.timerId===Ne});tt!==-1||fe(!1);var nt=V.splice(tt,1),It=nt[0];It.callback()},ne=function(Ne){var tt=setTimeout(function(){return X(tt)}),nt={timerId:tt,callback:Ne};V.push(nt)},ge=function(){if(!V.length)return;var Ne=[].concat(V);V.length=0,Ne.forEach(function(tt){clearTimeout(tt.timerId),tt.callback()})};return{add:ne,flush:ge}},yt=function(X,ne){return X==null&&ne==null?!0:X==null||ne==null?!1:X.droppableId===ne.droppableId&&X.index===ne.index},qa=function(X,ne){return X==null&&ne==null?!0:X==null||ne==null?!1:X.draggableId===ne.draggableId&&X.droppableId===ne.droppableId},Lr=function(X,ne){if(X===ne)return!0;var ge=X.draggable.id===ne.draggable.id&&X.draggable.droppableId===ne.draggable.droppableId&&X.draggable.type===ne.draggable.type&&X.draggable.index===ne.draggable.index,ke=X.droppable.id===ne.droppable.id&&X.droppable.type===ne.droppable.type;return ge&&ke},_r=function(X,ne){Xn(),ne(),ha()},Tt=function(X,ne){return{draggableId:X.draggable.id,type:X.droppable.type,source:{droppableId:X.droppable.id,index:X.draggable.index},mode:ne}},pr=function(X,ne,ge,ke){if(!X){ge(ke(ne));return}var Ne=Er(ge),tt={announce:Ne};X(ne,tt),Ne.wasCalled()||ge(ke(ne))},Yn=function(V,X){var ne=Ka(),ge=null,ke=function(Nt,Qt){ge&&fe(!1),_r("onBeforeCapture",function(){var ca=V().onBeforeCapture;if(ca){var mr={draggableId:Nt,mode:Qt};ca(mr)}})},Ne=function(Nt,Qt){ge&&fe(!1),_r("onBeforeDragStart",function(){var ca=V().onBeforeDragStart;ca&&ca(Tt(Nt,Qt))})},tt=function(Nt,Qt){ge&&fe(!1);var ca=Tt(Nt,Qt);ge={mode:Qt,lastCritical:Nt,lastLocation:ca.source,lastCombine:null},ne.add(function(){_r("onDragStart",function(){return pr(V().onDragStart,ca,X,Le.onDragStart)})})},nt=function(Nt,Qt){var ca=mn(Qt),mr=Gt(Qt);ge||fe(!1);var br=!Lr(Nt,ge.lastCritical);br&&(ge.lastCritical=Nt);var Tr=!yt(ge.lastLocation,ca);Tr&&(ge.lastLocation=ca);var Mr=!qa(ge.lastCombine,mr);if(Mr&&(ge.lastCombine=mr),!br&&!Tr&&!Mr)return;var zr=Object(B.a)({},Tt(Nt,ge.mode),{combine:mr,destination:ca});ne.add(function(){_r("onDragUpdate",function(){return pr(V().onDragUpdate,zr,X,Le.onDragUpdate)})})},It=function(){ge||fe(!1),ne.flush()},en=function(Nt){ge||fe(!1),ge=null,_r("onDragEnd",function(){return pr(V().onDragEnd,Nt,X,Le.onDragEnd)})},un=function(){if(!ge)return;var Nt=Object(B.a)({},Tt(ge.lastCritical,ge.mode),{combine:null,destination:null,reason:"CANCEL"});en(Nt)};return{beforeCapture:ke,beforeStart:Ne,start:tt,update:nt,flush:It,drop:en,abort:un}},vr=function(V,X){var ne=Yn(V,X);return function(ge){return function(ke){return function(Ne){if(Ne.type==="BEFORE_INITIAL_CAPTURE"){ne.beforeCapture(Ne.payload.draggableId,Ne.payload.movementMode);return}if(Ne.type==="INITIAL_PUBLISH"){var tt=Ne.payload.critical;ne.beforeStart(tt,Ne.payload.movementMode),ke(Ne),ne.start(tt,Ne.payload.movementMode);return}if(Ne.type==="DROP_COMPLETE"){var nt=Ne.payload.completed.result;ne.flush(),ke(Ne),ne.drop(nt);return}if(ke(Ne),Ne.type==="FLUSH"){ne.abort();return}var It=ge.getState();It.phase==="DRAGGING"&&ne.update(It.critical,It.impact)}}}},wr=function(V){return function(X){return function(ne){if(ne.type!=="DROP_ANIMATION_FINISHED"){X(ne);return}var ge=V.getState();ge.phase==="DROP_ANIMATING"||fe(!1),V.dispatch($e({completed:ge.completed}))}}},Xr=function(V){var X=null,ne=null;function ge(){ne&&(cancelAnimationFrame(ne),ne=null),X&&(X(),X=null)}return function(ke){return function(Ne){if((Ne.type==="FLUSH"||Ne.type==="DROP_COMPLETE"||Ne.type==="DROP_ANIMATION_FINISHED")&&ge(),ke(Ne),Ne.type!=="DROP_ANIMATE")return;var tt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var It=V.getState();It.phase==="DROP_ANIMATING"&&V.dispatch(Xe())}};ne=requestAnimationFrame(function(){ne=null,X=He(window,[tt])})}}},ai=function(V){return function(){return function(X){return function(ne){(ne.type==="DROP_COMPLETE"||ne.type==="FLUSH"||ne.type==="DROP_ANIMATE")&&V.stopPublishing(),X(ne)}}}},$r=function(V){var X=!1;return function(){return function(ne){return function(ge){if(ge.type==="INITIAL_PUBLISH"){X=!0,V.tryRecordFocus(ge.payload.critical.draggable.id),ne(ge),V.tryRestoreFocusRecorded();return}if(ne(ge),!X)return;if(ge.type==="FLUSH"){X=!1,V.tryRestoreFocusRecorded();return}if(ge.type==="DROP_COMPLETE"){X=!1;var ke=ge.payload.completed.result;ke.combine&&V.tryShiftRecord(ke.draggableId,ke.combine.draggableId),V.tryRestoreFocusRecorded()}}}}},ei=function(X){return X.type==="DROP_COMPLETE"||X.type==="DROP_ANIMATE"||X.type==="FLUSH"},Or=function(V){return function(X){return function(ne){return function(ge){if(ei(ge)){V.stop(),ne(ge);return}if(ge.type==="INITIAL_PUBLISH"){ne(ge);var ke=X.getState();ke.phase==="DRAGGING"||fe(!1),V.start(ke);return}ne(ge),V.scroll(X.getState())}}}},za=function(V){return function(X){return function(ne){if(X(ne),ne.type!=="PUBLISH_WHILE_DRAGGING")return;var ge=V.getState();if(ge.phase!=="DROP_PENDING")return;if(ge.isWaiting)return;V.dispatch(pt({reason:ge.reason}))}}},La=O.d,sa=function(V){var X=V.dimensionMarshal,ne=V.focusMarshal,ge=V.styleMarshal,ke=V.getResponders,Ne=V.announce,tt=V.autoScroller;return Object(O.e)(Za,La(Object(O.a)(Ze(ge),ai(X),Ce(X),va,wr,Xr,za,Or(tt),Ua,$r(ne),vr(ke,Ne))))},In=function(){return{additions:{},removals:{},modified:{}}};function cr(V){var X=V.registry,ne=V.callbacks,ge=In(),ke=null,Ne=function(){if(ke)return;ne.collectionStarting(),ke=requestAnimationFrame(function(){ke=null,Xn();var un=ge,Ut=un.additions,Nt=un.removals,Qt=un.modified,ca=Object.keys(Ut).map(function(Tr){return X.draggable.getById(Tr).getDimension(Ye)}).sort(function(Tr,Mr){return Tr.descriptor.index-Mr.descriptor.index}),mr=Object.keys(Qt).map(function(Tr){var Mr=X.droppable.getById(Tr),zr=Mr.callbacks.getScrollWhileDragging();return{droppableId:Tr,scroll:zr}}),br={additions:ca,removals:Object.keys(Nt),modified:mr};ge=In(),ha(),ne.publish(br)})},tt=function(un){var Ut=un.descriptor.id;ge.additions[Ut]=un,ge.modified[un.descriptor.droppableId]=!0,ge.removals[Ut]&&delete ge.removals[Ut],Ne()},nt=function(un){var Ut=un.descriptor;ge.removals[Ut.id]=!0,ge.modified[Ut.droppableId]=!0,ge.additions[Ut.id]&&delete ge.additions[Ut.id],Ne()},It=function(){if(!ke)return;cancelAnimationFrame(ke),ke=null,ge=In()};return{add:tt,remove:nt,stop:It}}var dr=function(V){var X=V.scrollHeight,ne=V.scrollWidth,ge=V.height,ke=V.width,Ne=Ct({x:ne,y:X},{x:ke,y:ge}),tt={x:Math.max(0,Ne.x),y:Math.max(0,Ne.y)};return tt},ka=function(){var V=document.documentElement;return V||fe(!1),V},kr=function(){var V=ka(),X=dr({scrollHeight:V.scrollHeight,scrollWidth:V.scrollWidth,width:V.clientWidth,height:V.clientHeight});return X},Yr=function(){var V=_a(),X=kr(),ne=V.y,ge=V.x,ke=ka(),Ne=ke.clientWidth,tt=ke.clientHeight,nt=ge+Ne,It=ne+tt,en=m({top:ne,left:ge,right:nt,bottom:It}),un={frame:en,scroll:{initial:V,current:V,max:X,diff:{value:Ye,displacement:Ye}}};return un},jr=function(V){var X=V.critical,ne=V.scrollOptions,ge=V.registry;Xn();var ke=Yr(),Ne=ke.scroll.current,tt=X.droppable,nt=ge.droppable.getAllByType(tt.type).map(function(Ut){return Ut.callbacks.getDimensionAndWatchScroll(Ne,ne)}),It=ge.draggable.getAllByType(X.draggable.type).map(function(Ut){return Ut.getDimension(Ne)}),en={draggables:ta(It),droppables:$n(nt)};ha();var un={dimensions:en,critical:X,viewport:ke};return un};function rr(V,X,ne){if(ne.descriptor.id===X.id)return!1;if(ne.descriptor.type!==X.type)return!1;var ge=V.droppable.getById(ne.descriptor.droppableId);return!(ge.descriptor.mode!=="virtual")}var Rr=function(V,X){var ne=null,ge=cr({callbacks:{publish:X.publishWhileDragging,collectionStarting:X.collectionStarting},registry:V}),ke=function(Qt,ca){if(V.droppable.exists(Qt)||fe(!1),!ne)return;X.updateDroppableIsEnabled({id:Qt,isEnabled:ca})},Ne=function(Qt,ca){if(!ne)return;V.droppable.exists(Qt)||fe(!1),X.updateDroppableIsCombineEnabled({id:Qt,isCombineEnabled:ca})},tt=function(Qt,ca){if(!ne)return;V.droppable.exists(Qt)||fe(!1),X.updateDroppableScroll({id:Qt,newScroll:ca})},nt=function(Qt,ca){if(!ne)return;V.droppable.getById(Qt).callbacks.scroll(ca)},It=function(){if(!ne)return;ge.stop();var Qt=ne.critical.droppable;V.droppable.getAllByType(Qt.type).forEach(function(ca){return ca.callbacks.dragStopped()}),ne.unsubscribe(),ne=null},en=function(Qt){ne||fe(!1);var ca=ne.critical.draggable;Qt.type==="ADDITION"&&(rr(V,ca,Qt.value)&&ge.add(Qt.value)),Qt.type==="REMOVAL"&&(rr(V,ca,Qt.value)&&ge.remove(Qt.value))},un=function(Qt){ne&&fe(!1);var ca=V.draggable.getById(Qt.draggableId),mr=V.droppable.getById(ca.descriptor.droppableId),br={draggable:ca.descriptor,droppable:mr.descriptor},Tr=V.subscribe(en);return ne={critical:br,unsubscribe:Tr},jr({critical:br,registry:V,scrollOptions:Qt.scrollOptions})},Ut={updateDroppableIsEnabled:ke,updateDroppableIsCombineEnabled:Ne,scrollDroppable:nt,updateDroppableScroll:tt,startPublishing:un,stopPublishing:It};return Ut},ti=function(V,X){return V.phase==="IDLE"?!0:V.phase!=="DROP_ANIMATING"||V.completed.result.draggableId===X?!1:V.completed.result.reason==="DROP"},ri=function(V){window.scrollBy(V.x,V.y)},hi=x(function(V){return Sa(V).filter(function(X){return X.isEnabled?!!X.frame:!1})}),pi=function(X,ne){var ge=Lt(hi(ne),function(ke){return ke.frame||fe(!1),wn(ke.frame.pageMarginBox)(X)});return ge},mi=function(V){var X=V.center,ne=V.destination,ge=V.droppables;if(ne){var ke=ge[ne];return ke.frame?ke:null}var Ne=pi(X,ge);return Ne},Ei={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(X){return Math.pow(X,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ao=function(V,X){var ne=V[X.size]*Ei.startFromPercentage,ge=V[X.size]*Ei.maxScrollAtPercentage,ke={startScrollingFrom:ne,maxScrollValueAt:ge};return ke},_o=function(V){var X=V.startOfRange,ne=V.endOfRange,ge=V.current,ke=ne-X;if(ke===0)return 0;var Ne=ge-X,tt=Ne/ke;return tt},So=1,$i=function(V,X){if(V>X.startScrollingFrom)return 0;if(V<=X.maxScrollValueAt)return Ei.maxPixelScroll;if(V===X.startScrollingFrom)return So;var ne=_o({startOfRange:X.maxScrollValueAt,endOfRange:X.startScrollingFrom,current:V}),ge=1-ne,ke=Ei.maxPixelScroll*Ei.ease(ge);return Math.ceil(ke)},eo=Ei.durationDampening.accelerateAt,ro=Ei.durationDampening.stopDampeningAt,io=function(V,X){var ne=X,ge=ro,ke=Date.now(),Ne=ke-ne;if(Ne>=ro)return V;if(NeX.height,Ne=ne.width>X.width;return!Ne&&!ke?ge:Ne&&ke?null:{x:Ne?0:ge.x,y:ke?0:ge.y}},oo=mt(function(V){return V===0?0:V}),zi=function(V){var X=V.dragStartTime,ne=V.container,ge=V.subject,ke=V.center,Ne=V.shouldUseTimeDampening,tt={top:ke.y-ne.top,right:ne.right-ke.x,bottom:ne.bottom-ke.y,left:ke.x-ne.left},nt=bo({container:ne,distanceToEdges:tt,dragStartTime:X,axis:na,shouldUseTimeDampening:Ne}),It=bo({container:ne,distanceToEdges:tt,dragStartTime:X,axis:Ea,shouldUseTimeDampening:Ne}),en=oo({x:It,y:nt});if(tn(en,Ye))return null;var un=co({container:ne,subject:ge,proposedScroll:en});return un?tn(un,Ye)?null:un:null},Xi=mt(function(V){return V===0?0:V>0?1:-1}),gi=function(){var V=function(ne,ge){return ne<0?ne:ne>ge?ne-ge:0};return function(X){var ne=X.current,ge=X.max,ke=X.change,Ne=gt(ne,ke),tt={x:V(Ne.x,ge.x),y:V(Ne.y,ge.y)};return tn(tt,Ye)?null:tt}}(),yi=function(X){var ne=X.max,ge=X.current,ke=X.change,Ne={x:Math.max(ge.x,ne.x),y:Math.max(ge.y,ne.y)},tt=Xi(ke),nt=gi({max:Ne,current:ge,change:tt});return nt?tt.x!==0&&nt.x===0?!0:tt.y!==0&&nt.y===0:!0},Br=function(X,ne){return yi({current:X.scroll.current,max:X.scroll.max,change:ne})},Nr=function(X,ne){if(!Br(X,ne))return null;var ge=X.scroll.max,ke=X.scroll.current;return gi({current:ke,max:ge,change:ne})},Fr=function(X,ne){var ge=X.frame;return ge?yi({current:ge.scroll.current,max:ge.scroll.max,change:ne}):!1},ii=function(X,ne){var ge=X.frame;return ge&&Fr(X,ne)?gi({current:ge.scroll.current,max:ge.scroll.max,change:ne}):null},ui=function(V){var X=V.viewport,ne=V.subject,ge=V.center,ke=V.dragStartTime,Ne=V.shouldUseTimeDampening,tt=zi({dragStartTime:ke,container:X.frame,subject:ne,center:ge,shouldUseTimeDampening:Ne});return tt&&Br(X,tt)?tt:null},Ai=function(V){var X=V.droppable,ne=V.subject,ge=V.center,ke=V.dragStartTime,Ne=V.shouldUseTimeDampening,tt=X.frame;if(!tt)return null;var nt=zi({dragStartTime:ke,container:tt.pageMarginBox,subject:ne,center:ge,shouldUseTimeDampening:Ne});return nt&&Fr(X,nt)?nt:null},fi=function(V){var X=V.state,ne=V.dragStartTime,ge=V.shouldUseTimeDampening,ke=V.scrollWindow,Ne=V.scrollDroppable,tt=X.current.page.borderBoxCenter,nt=X.dimensions.draggables[X.critical.draggable.id],It=nt.page.marginBox;if(X.isWindowScrollAllowed){var en=X.viewport,un=ui({dragStartTime:ne,viewport:en,subject:It,center:tt,shouldUseTimeDampening:ge});if(un){ke(un);return}}var Ut=mi({center:tt,destination:wt(X.impact),droppables:X.dimensions.droppables});if(!Ut)return;var Nt=Ai({dragStartTime:ne,droppable:Ut,subject:It,center:tt,shouldUseTimeDampening:ge});Nt&&Ne(Ut.descriptor.id,Nt)},Qi=function(V){var X=V.scrollWindow,ne=V.scrollDroppable,ge=S(X),ke=S(ne),Ne=null,tt=function(un){Ne||fe(!1);var Ut=Ne,Nt=Ut.shouldUseTimeDampening,Qt=Ut.dragStartTime;fi({state:un,scrollWindow:ge,scrollDroppable:ke,dragStartTime:Qt,shouldUseTimeDampening:Nt})},nt=function(un){Xn(),Ne&&fe(!1);var Ut=Date.now(),Nt=!1,Qt=function(){Nt=!0};fi({state:un,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Qt,scrollDroppable:Qt}),Ne={dragStartTime:Ut,shouldUseTimeDampening:Nt},ha(),Nt&&tt(un)},It=function(){if(!Ne)return;ge.cancel(),ke.cancel(),Ne=null};return{start:nt,stop:It,scroll:tt}},Eo=function(V){var X=V.move,ne=V.scrollDroppable,ge=V.scrollWindow,ke=function(en,un){var Ut=gt(en.current.client.selection,un);X({client:Ut})},Ne=function(en,un){if(!Fr(en,un))return un;var Ut=ii(en,un);if(!Ut)return ne(en.descriptor.id,un),null;var Nt=Ct(un,Ut);ne(en.descriptor.id,Nt);var Qt=Ct(un,Nt);return Qt},tt=function(en,un,Ut){if(!en)return Ut;if(!Br(un,Ut))return Ut;var Nt=Nr(un,Ut);if(!Nt)return ge(Ut),null;var Qt=Ct(Ut,Nt);ge(Qt);var ca=Ct(Ut,Qt);return ca},nt=function(en){var un=en.scrollJumpRequest;if(!un)return;var Ut=wt(en.impact);Ut||fe(!1);var Nt=Ne(en.dimensions.droppables[Ut],un);if(!Nt)return;var Qt=en.viewport,ca=tt(en.isWindowScrollAllowed,Qt,Nt);if(!ca)return;ke(en,ca)};return nt},Po=function(V){var X=V.scrollDroppable,ne=V.scrollWindow,ge=V.move,ke=Qi({scrollWindow:ne,scrollDroppable:X}),Ne=Eo({move:ge,scrollWindow:ne,scrollDroppable:X}),tt=function(en){if(en.phase!=="DRAGGING")return;if(en.movementMode==="FLUID"){ke.scroll(en);return}if(!en.scrollJumpRequest)return;Ne(en)},nt={scroll:tt,start:ke.start,stop:ke.stop};return nt},fo="data-rbd",Mi=function(){var V=fo+"-drag-handle";return{base:V,draggableId:V+"-draggable-id",contextId:V+"-context-id"}}(),ho=function(){var V=fo+"-draggable";return{base:V,contextId:V+"-context-id",id:V+"-id"}}(),Io=function(){var V=fo+"-droppable";return{base:V,contextId:V+"-context-id",id:V+"-id"}}(),Oo={contextId:fo+"-scroll-container-context-id"},Di=function(X){return function(ne){return"["+ne+'="'+X+'"]'}},si=function(X,ne){return X.map(function(ge){var ke=ge.styles[ne];return ke?ge.selector+" { "+ke+" }":""}).join(" ")},Oi="pointer-events: none;",vi=function(V){var X=Di(V),ne=function(){var nt=` cursor: -webkit-grab; cursor: grab; `;return{selector:X(Mi.contextId),styles:{always:` @@ -489,7 +489,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho A setup problem was encountered. > `+ne.message+` - `)}},X)})}function lo(){Ji(function(){Cr(Fi.react,W.a.version),Qr(document)},[])}function Ti(V){var X=Object(Q.useRef)(V);return Object(Q.useEffect)(function(){X.current=V}),X}function Zi(){var V=null;function X(){return Boolean(V)}function ne(tt){return tt===V}function ge(tt){V&&fe(!1);var nt={abandon:tt};return V=nt,nt}function ke(){V||fe(!1),V=null}function Ne(){V&&(V.abandon(),ke())}return{isClaimed:X,isActive:ne,claim:ge,release:ke,tryAbandon:Ne}}var xo=9,Lo=13,Si=27,Rs=32,Xs=33,Dl=34,hs=35,Ts=36,Qs=37,Pl=38,Js=39,Il=40,ps,ms=(ps={},ps[Lo]=!0,ps[xo]=!0,ps),Ds=function(V){ms[V.keyCode]&&V.preventDefault()},vs=function(){var V="visibilitychange";if(typeof document=="undefined")return V;var X=[V,"ms"+V,"webkit"+V,"moz"+V,"o"+V],ne=Lt(X,function(ge){return"on"+ge in document});return ne||V}(),Zs=0,Ps=5;function Ho(V,X){return Math.abs(X.x-V.x)>=Ps||Math.abs(X.y-V.y)>=Ps}var gs={type:"IDLE"};function _s(V){var X=V.cancel,ne=V.completed,ge=V.getPhase,ke=V.setPhase;return[{eventName:"mousemove",fn:function(tt){var nt=tt.button,It=tt.clientX,en=tt.clientY;if(nt!==Zs)return;var un={x:It,y:en},Ut=ge();if(Ut.type==="DRAGGING"){tt.preventDefault(),Ut.actions.move(un);return}Ut.type==="PENDING"||fe(!1);var Nt=Ut.point;if(!Ho(Nt,un))return;tt.preventDefault();var Qt=Ut.actions.fluidLift(un);ke({type:"DRAGGING",actions:Qt})}},{eventName:"mouseup",fn:function(tt){var nt=ge();if(nt.type!=="DRAGGING"){X();return}tt.preventDefault(),nt.actions.drop({shouldBlockNextClick:!0}),ne()}},{eventName:"mousedown",fn:function(tt){ge().type==="DRAGGING"&&tt.preventDefault(),X()}},{eventName:"keydown",fn:function(tt){var nt=ge();if(nt.type==="PENDING"){X();return}if(tt.keyCode===Si){tt.preventDefault(),X();return}Ds(tt)}},{eventName:"resize",fn:X},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ge().type==="PENDING"&&X()}},{eventName:"webkitmouseforcedown",fn:function(tt){var nt=ge();if(nt.type!=="IDLE"||fe(!1),nt.actions.shouldRespectForcePress()){X();return}tt.preventDefault()}},{eventName:vs,fn:X}]}function qs(V){var X=Object(Q.useRef)(gs),ne=Object(Q.useRef)(de),ge=b(function(){return{eventName:"mousedown",fn:function(Ut){if(Ut.defaultPrevented)return;if(Ut.button!==Zs)return;if(Ut.ctrlKey||Ut.metaKey||Ut.shiftKey||Ut.altKey)return;var Nt=V.findClosestDraggableId(Ut);if(!Nt)return;var Qt=V.tryGetLock(Nt,tt,{sourceEvent:Ut});if(!Qt)return;Ut.preventDefault();var ca={x:Ut.clientX,y:Ut.clientY};ne.current(),en(Qt,ca)}}},[V]),ke=b(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ut){if(Ut.defaultPrevented)return;var Nt=V.findClosestDraggableId(Ut);if(!Nt)return;var Qt=V.findOptionsForDraggable(Nt);if(!Qt)return;if(Qt.shouldRespectForcePress)return;if(!V.canGetLock(Nt))return;Ut.preventDefault()}}},[V]),Ne=u(function(){var Ut={passive:!1,capture:!0};ne.current=He(window,[ke,ge],Ut)},[ke,ge]),tt=u(function(){var un=X.current;if(un.type==="IDLE")return;X.current=gs,ne.current(),Ne()},[Ne]),nt=u(function(){var un=X.current;tt(),un.type==="DRAGGING"&&un.actions.cancel({shouldBlockNextClick:!0}),un.type==="PENDING"&&un.actions.abort()},[tt]),It=u(function(){var Ut={capture:!0,passive:!1},Nt=_s({cancel:nt,completed:tt,getPhase:function(){return X.current},setPhase:function(ca){X.current=ca}});ne.current=He(window,Nt,Ut)},[nt,tt]),en=u(function(Ut,Nt){X.current.type==="IDLE"||fe(!1),X.current={type:"PENDING",point:Nt,actions:Ut},It()},[It]);Ri(function(){return Ne(),function(){ne.current()}},[Ne])}var Uo;function $s(){}var Ll=(Uo={},Uo[Dl]=!0,Uo[Xs]=!0,Uo[Ts]=!0,Uo[hs]=!0,Uo);function el(V,X){function ne(){X(),V.cancel()}function ge(){X(),V.drop()}return[{eventName:"keydown",fn:function(Ne){if(Ne.keyCode===Si){Ne.preventDefault(),ne();return}if(Ne.keyCode===Rs){Ne.preventDefault(),ge();return}if(Ne.keyCode===Il){Ne.preventDefault(),V.moveDown();return}if(Ne.keyCode===Pl){Ne.preventDefault(),V.moveUp();return}if(Ne.keyCode===Js){Ne.preventDefault(),V.moveRight();return}if(Ne.keyCode===Qs){Ne.preventDefault(),V.moveLeft();return}if(Ll[Ne.keyCode]){Ne.preventDefault();return}Ds(Ne)}},{eventName:"mousedown",fn:ne},{eventName:"mouseup",fn:ne},{eventName:"click",fn:ne},{eventName:"touchstart",fn:ne},{eventName:"resize",fn:ne},{eventName:"wheel",fn:ne,options:{passive:!0}},{eventName:vs,fn:ne}]}function Ki(V){var X=Object(Q.useRef)($s),ne=b(function(){return{eventName:"keydown",fn:function(Ne){if(Ne.defaultPrevented)return;if(Ne.keyCode!==Rs)return;var tt=V.findClosestDraggableId(Ne);if(!tt)return;var nt=V.tryGetLock(tt,un,{sourceEvent:Ne});if(!nt)return;Ne.preventDefault();var It=!0,en=nt.snapLift();X.current();function un(){It||fe(!1),It=!1,X.current(),ge()}X.current=He(window,el(en,un),{capture:!0,passive:!1})}}},[V]),ge=u(function(){var Ne={passive:!1,capture:!0};X.current=He(window,[ne],Ne)},[ne]);Ri(function(){return ge(),function(){X.current()}},[ge])}var zo={type:"IDLE"},tl=120,nl=.15;function al(V){var X=V.cancel,ne=V.getPhase;return[{eventName:"orientationchange",fn:X},{eventName:"resize",fn:X},{eventName:"contextmenu",fn:function(ke){ke.preventDefault()}},{eventName:"keydown",fn:function(ke){if(ne().type!=="DRAGGING"){X();return}ke.keyCode===Si&&ke.preventDefault(),X()}},{eventName:vs,fn:X}]}function Ko(V){var X=V.cancel,ne=V.completed,ge=V.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ne){var tt=ge();if(tt.type!=="DRAGGING"){X();return}tt.hasMoved=!0;var nt=Ne.touches[0],It=nt.clientX,en=nt.clientY,un={x:It,y:en};Ne.preventDefault(),tt.actions.move(un)}},{eventName:"touchend",fn:function(Ne){var tt=ge();if(tt.type!=="DRAGGING"){X();return}Ne.preventDefault(),tt.actions.drop({shouldBlockNextClick:!0}),ne()}},{eventName:"touchcancel",fn:function(Ne){if(ge().type!=="DRAGGING"){X();return}Ne.preventDefault(),X()}},{eventName:"touchforcechange",fn:function(Ne){var tt=ge();tt.type!=="IDLE"||fe(!1);var nt=Ne.touches[0];if(!nt)return;var It=nt.force>=nl;if(!It)return;var en=tt.actions.shouldRespectForcePress();if(tt.type==="PENDING"){en&&X();return}if(en){if(tt.hasMoved){Ne.preventDefault();return}X();return}Ne.preventDefault()}},{eventName:vs,fn:X}]}function bs(V){var X=Object(Q.useRef)(zo),ne=Object(Q.useRef)(de),ge=u(function(){return X.current},[]),ke=u(function(Qt){X.current=Qt},[]),Ne=b(function(){return{eventName:"touchstart",fn:function(Qt){if(Qt.defaultPrevented)return;var ca=V.findClosestDraggableId(Qt);if(!ca)return;var mr=V.tryGetLock(ca,nt,{sourceEvent:Qt});if(!mr)return;var br=Qt.touches[0],Tr=br.clientX,Mr=br.clientY,zr={x:Tr,y:Mr};ne.current(),Ut(mr,zr)}}},[V]),tt=u(function(){var Qt={capture:!0,passive:!1};ne.current=He(window,[Ne],Qt)},[Ne]),nt=u(function(){var Nt=X.current;if(Nt.type==="IDLE")return;Nt.type==="PENDING"&&clearTimeout(Nt.longPressTimerId),ke(zo),ne.current(),tt()},[tt,ke]),It=u(function(){var Nt=X.current;nt(),Nt.type==="DRAGGING"&&Nt.actions.cancel({shouldBlockNextClick:!0}),Nt.type==="PENDING"&&Nt.actions.abort()},[nt]),en=u(function(){var Qt={capture:!0,passive:!1},ca={cancel:It,completed:nt,getPhase:ge},mr=He(window,Ko(ca),Qt),br=He(window,al(ca),Qt);ne.current=function(){mr(),br()}},[It,ge,nt]),un=u(function(){var Qt=ge();Qt.type==="PENDING"||fe(!1);var ca=Qt.actions.fluidLift(Qt.point);ke({type:"DRAGGING",actions:ca,hasMoved:!1})},[ge,ke]),Ut=u(function(Qt,ca){ge().type==="IDLE"||fe(!1);var mr=setTimeout(un,tl);ke({type:"PENDING",point:ca,actions:Qt,longPressTimerId:mr}),en()},[en,ge,ke,un]);Ri(function(){return tt(),function(){ne.current();var ca=ge();ca.type==="PENDING"&&(clearTimeout(ca.longPressTimerId),ke(zo))}},[ge,tt,ke]),Ri(function(){var Qt=He(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Qt},[])}function rl(V){di(function(){var X=Ti(V);Ji(function(){X.current.length===V.length||fe(!1)})})}var il={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Is(V,X){if(X==null)return!1;var ne=Boolean(il[X.tagName.toLowerCase()]);if(ne)return!0;var ge=X.getAttribute("contenteditable");return ge==="true"||ge===""?!0:X===V?!1:Is(V,X.parentElement)}function Go(V,X){var ne=X.target;return po(ne)?Is(V,ne):!1}var ol=function(V){return m(V.getBoundingClientRect()).center};function Es(V){return V instanceof Do(V).Element}var sl=function(){var V="matches";if(typeof document=="undefined")return V;var X=[V,"msMatchesSelector","webkitMatchesSelector"],ne=Lt(X,function(ge){return ge in Element.prototype});return ne||V}();function Vo(V,X){return V==null?null:V[sl](X)?V:Vo(V.parentElement,X)}function Ml(V,X){return V.closest?V.closest(X):Vo(V,X)}function Yo(V){return"["+Mi.contextId+'="'+V+'"]'}function ll(V,X){var ne=X.target;if(!Es(ne))return null;var ge=Yo(V),ke=Ml(ne,ge);return ke&&po(ke)?ke:null}function ul(V,X){var ne=ll(V,X);return ne?ne.getAttribute(Mi.draggableId):null}function cl(V,X){var ne="["+ho.contextId+'="'+V+'"]',ge=nn(document.querySelectorAll(ne)),ke=Lt(ge,function(Ne){return Ne.getAttribute(ho.id)===X});return ke&&po(ke)?ke:null}function ts(V){V.preventDefault()}function Fo(V){var X=V.expected,ne=V.phase,ge=V.isLockActive,ke=V.shouldWarn;return ge()?!(X!==ne):!1}function Xo(V){var X=V.lockAPI,ne=V.store,ge=V.registry,ke=V.draggableId;if(X.isClaimed())return!1;var Ne=ge.draggable.findById(ke);return Ne&&Ne.options.isEnabled?!!ti(ne.getState(),ke):!1}function ns(V){var X=V.lockAPI,ne=V.contextId,ge=V.store,ke=V.registry,Ne=V.draggableId,tt=V.forceSensorStop,nt=V.sourceEvent,It=Xo({lockAPI:X,store:ge,registry:ke,draggableId:Ne});if(!It)return null;var en=ke.draggable.getById(Ne),un=cl(ne,en.descriptor.id);if(!un)return null;if(nt&&!en.options.canDragInteractiveElements&&Go(un,nt))return null;var Ut=X.claim(tt||de),Nt="PRE_DRAG";function Qt(){return en.options.shouldRespectForcePress}function ca(){return X.isActive(Ut)}function mr(qr,_i){Fo({expected:qr,phase:Nt,isLockActive:ca,shouldWarn:!0})&&ge.dispatch(_i())}var br=mr.bind(null,"DRAGGING");function Tr(qr){function _i(){X.release(),Nt="COMPLETED"}Nt!=="PRE_DRAG"&&(_i(),Nt==="PRE_DRAG"||fe(!1)),ge.dispatch(Ja(qr.liftActionArgs)),Nt="DRAGGING";function Ni(e,r){if(r===void 0&&(r={shouldBlockNextClick:!1}),qr.cleanup(),r.shouldBlockNextClick){var L=He(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(L)}_i(),ge.dispatch(vt({reason:e}))}return Object(B.a)({isActive:function(){return Fo({expected:"DRAGGING",phase:Nt,isLockActive:ca,shouldWarn:!1})},shouldRespectForcePress:Qt,drop:function(r){return Ni("DROP",r)},cancel:function(r){return Ni("CANCEL",r)}},qr.actions)}function Mr(qr){var _i=S(function(e){br(function(){return Mn({client:e})})}),Ni=Tr({liftActionArgs:{id:Ne,clientSelection:qr,movementMode:"FLUID"},cleanup:function(){return _i.cancel()},actions:{move:_i}});return Object(B.a)({},Ni,{move:_i})}function zr(){var qr={moveUp:function(){return br(ma)},moveRight:function(){return br(ja)},moveDown:function(){return br(ga)},moveLeft:function(){return br(Xa)}};return Tr({liftActionArgs:{id:Ne,clientSelection:ol(un),movementMode:"SNAP"},cleanup:de,actions:qr})}function Ir(){var qr=Fo({expected:"PRE_DRAG",phase:Nt,isLockActive:ca,shouldWarn:!0});qr&&X.release()}var ni={isActive:function(){return Fo({expected:"PRE_DRAG",phase:Nt,isLockActive:ca,shouldWarn:!1})},shouldRespectForcePress:Qt,fluidLift:Mr,snapLift:zr,abort:Ir};return ni}var dl=[qs,Ki,bs];function kl(V){var X=V.contextId,ne=V.store,ge=V.registry,ke=V.customSensors,Ne=V.enableDefaultSensors,tt=[].concat(Ne?dl:[],ke||[]),nt=Object(Q.useState)(function(){return Zi()})[0],It=u(function(Mr,zr){Mr.isDragging&&!zr.isDragging&&nt.tryAbandon()},[nt]);Ri(function(){var Mr=ne.getState(),zr=ne.subscribe(function(){var Ir=ne.getState();It(Mr,Ir),Mr=Ir});return zr},[nt,ne,It]),Ri(function(){return nt.tryAbandon},[nt.tryAbandon]);var en=u(function(Tr){return Xo({lockAPI:nt,registry:ge,store:ne,draggableId:Tr})},[nt,ge,ne]),un=u(function(Tr,Mr,zr){return ns({lockAPI:nt,registry:ge,contextId:X,store:ne,draggableId:Tr,forceSensorStop:Mr,sourceEvent:zr&&zr.sourceEvent?zr.sourceEvent:null})},[X,nt,ge,ne]),Ut=u(function(Tr){return ul(X,Tr)},[X]),Nt=u(function(Tr){var Mr=ge.draggable.findById(Tr);return Mr?Mr.options:null},[ge.draggable]),Qt=u(function(){if(!nt.isClaimed())return;nt.tryAbandon(),ne.getState().phase!=="IDLE"&&ne.dispatch(Cn())},[nt,ne]),ca=u(nt.isClaimed,[nt]),mr=b(function(){return{canGetLock:en,tryGetLock:un,findClosestDraggableId:Ut,findOptionsForDraggable:Nt,tryReleaseLock:Qt,isLockClaimed:ca}},[en,un,Ut,Nt,Qt,ca]);rl(tt);for(var br=0;br{m();const c=this._commands.get(u);(c==null?void 0:c.isEmpty())&&this._commands.delete(u)});return this._onDidRegisterCommand.fire(u),o}registerCommandAlias(a,b){return p.registerCommand(a,(u,...d)=>u.get(M).executeCommand(b,...d))}getCommand(a){const b=this._commands.get(a);return!b||b.isEmpty()?void 0:W.a.first(b)}getCommands(){const a=new Map;for(const b of this._commands.keys()){const u=this.getCommand(b);u&&a.set(b,u)}return a}};p.registerCommand("noop",()=>{})},nukY:function(Ge,re){Ge.exports="data:image/png;base64,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"},ogmK:function(Ge,re,y){"use strict";y.d(re,"a",function(){return Ta});var Q=y("1OyB"),W=y("vuIU"),k=y("Ji7U"),B=y("LK+K"),O=y("rePB"),R=y("VTBJ"),M=y("ODXe"),p=y("q1tI"),a=y("TSYQ"),b=y.n(a),u=y("Kwbf"),d=y("6cGi"),m=y("U8pU"),o=y("4IlW"),c=p.createContext({}),f=c,i={visibility:"hidden"};function t(ue){var ot=ue.prefixCls,lt=ue.prevIcon,ft=lt===void 0?"\u2039":lt,wt=ue.nextIcon,Et=wt===void 0?"\u203A":wt,jt=ue.superPrevIcon,Yt=jt===void 0?"\xAB":jt,wn=ue.superNextIcon,fn=wn===void 0?"\xBB":wn,zn=ue.onSuperPrev,jn=ue.onSuperNext,$t=ue.onPrev,yn=ue.onNext,pn=ue.children,On=p.useContext(f),cn=On.hideNextBtn,sn=On.hidePrevBtn;return p.createElement("div",{className:ot},zn&&p.createElement("button",{type:"button",onClick:zn,tabIndex:-1,className:"".concat(ot,"-super-prev-btn"),style:sn?i:{}},Yt),$t&&p.createElement("button",{type:"button",onClick:$t,tabIndex:-1,className:"".concat(ot,"-prev-btn"),style:sn?i:{}},ft),p.createElement("div",{className:"".concat(ot,"-view")},pn),yn&&p.createElement("button",{type:"button",onClick:yn,tabIndex:-1,className:"".concat(ot,"-next-btn"),style:cn?i:{}},Et),jn&&p.createElement("button",{type:"button",onClick:jn,tabIndex:-1,className:"".concat(ot,"-super-next-btn"),style:cn?i:{}},fn))}var l=t;function s(ue){var ot=p.useContext(f),lt=ot.hideHeader;if(lt)return null;var ft=ue.prefixCls,wt=ue.generateConfig,Et=ue.locale,jt=ue.value,Yt=ue.format,wn="".concat(ft,"-header");return p.createElement(l,{prefixCls:wn},jt?wt.locale.format(Et.locale,jt,Yt):"\xA0")}var w=s,D=y("YrtM"),C=y("KQm4"),v=new Map;function n(ue,ot,lt){if(v.get(ue)&&cancelAnimationFrame(v.get(ue)),lt<=0){v.set(ue,requestAnimationFrame(function(){ue.scrollTop=ot}));return}var ft=ot-ue.scrollTop,wt=ft/lt*10;v.set(ue,requestAnimationFrame(function(){ue.scrollTop+=wt,ue.scrollTop!==ot&&n(ue,ot,lt-10)}))}function _(ue,ot){var lt=ot.onLeftRight,ft=ot.onCtrlLeftRight,wt=ot.onUpDown,Et=ot.onPageUpDown,jt=ot.onEnter,Yt=ue.which,wn=ue.ctrlKey,fn=ue.metaKey;switch(Yt){case o.a.LEFT:if(wn||fn){if(ft)return ft(-1),!0}else if(lt)return lt(-1),!0;break;case o.a.RIGHT:if(wn||fn){if(ft)return ft(1),!0}else if(lt)return lt(1),!0;break;case o.a.UP:if(wt)return wt(-1),!0;break;case o.a.DOWN:if(wt)return wt(1),!0;break;case o.a.PAGE_UP:if(Et)return Et(-1),!0;break;case o.a.PAGE_DOWN:if(Et)return Et(1),!0;break;case o.a.ENTER:if(jt)return jt(),!0;break}return!1}function h(ue,ot,lt,ft){var wt=ue;if(!wt)switch(ot){case"time":wt=ft?"hh:mm:ss a":"HH:mm:ss";break;case"week":wt="gggg-wo";break;case"month":wt="YYYY-MM";break;case"quarter":wt="YYYY-[Q]Q";break;case"year":wt="YYYY";break;default:wt=lt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return wt}function g(ue,ot){var lt=ue==="time"?8:10;return Math.max(lt,ot.length)+2}var x=null,T=new Set;function S(ue){return!x&&typeof window!="undefined"&&window.addEventListener&&(x=function(lt){Object(C.a)(T).forEach(function(ft){ft(lt)})},window.addEventListener("mousedown",x)),T.add(ue),function(){T.delete(ue),T.size===0&&(window.removeEventListener("mousedown",x),x=null)}}var E=function(ot){return ot==="month"||ot==="date"?"year":ot},U=function(ot){return ot==="date"?"month":ot},F=function(ot){return ot==="month"||ot==="date"?"quarter":ot},P=function(ot){return ot==="date"?"week":ot},H={year:E,month:U,quarter:F,week:P,time:null,date:null};function N(ue,ot){return ue.some(function(lt){return lt&<.contains(ot)})}function A(ue){var ot=ue.prefixCls,lt=ue.units,ft=ue.onSelect,wt=ue.value,Et=ue.active,jt=ue.hideDisabledOptions,Yt="".concat(ot,"-cell"),wn=p.useContext(f),fn=wn.open,zn=p.useRef(null),jn=p.useRef(new Map);return p.useLayoutEffect(function(){var $t=jn.current.get(wt);$t&&fn!==!1&&n(zn.current,$t.offsetTop,120)},[wt]),p.useLayoutEffect(function(){if(fn){var $t=jn.current.get(wt);$t&&n(zn.current,$t.offsetTop,0)}},[fn]),p.createElement("ul",{className:b()("".concat(ot,"-column"),Object(O.a)({},"".concat(ot,"-column-active"),Et)),ref:zn,style:{position:"relative"}},lt.map(function($t){var yn;return jt&&$t.disabled?null:p.createElement("li",{key:$t.value,ref:function(On){jn.current.set($t.value,On)},className:b()(Yt,(yn={},Object(O.a)(yn,"".concat(Yt,"-disabled"),$t.disabled),Object(O.a)(yn,"".concat(Yt,"-selected"),wt===$t.value),yn)),onClick:function(){if($t.disabled)return;ft($t.value)}},p.createElement("div",{className:"".concat(Yt,"-inner")},$t.label))}))}var G=A;function K(ue,ot){for(var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",ft=String(ue);ft.length=12,Vt%=12);var Xn=p.useMemo(function(){if(!fn)return[!1,!1];var Va=[!0,!0];return Kt.forEach(function(Za){var pa=Za.disabled,Ja=Za.value;if(pa)return;Ja>=12?Va[1]=!1:Va[0]=!1}),Va},[fn,Kt]),ha=Object(M.a)(Xn,2),Jn=ha[0],Aa=ha[1],Zn=p.useMemo(function(){return fn?Kt.filter(rn?function(Va){return Va.value>=12}:function(Va){return Va.value<12}).map(function(Va){var Za=Va.value%12,pa=Za===0?"12":K(Za,2);return Object(R.a)(Object(R.a)({},Va),{},{label:pa,value:Za})}):Kt},[fn,Kt]),ea=me(0,59,yn,sn&&sn(Vt)),er=me(0,59,On,En&&En(Vt,Dt));ft.current={onUpDown:function(Za){var pa=Vn[wt];if(pa)for(var Ja=pa.units.findIndex(function(Rn){return Rn.value===pa.value}),or=pa.units.length,Ln=1;Ln1&&(jt=ot.addDate(jt,-7)),jt}function mt(ue,ot,lt){var ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ot){case"year":return lt.addYear(ue,ft*10);case"quarter":case"month":return lt.addYear(ue,ft);default:return lt.addMonth(ue,ft)}}var pt=p.createContext({}),on=pt;function hn(ue){var ot=ue.cellPrefixCls,lt=ue.generateConfig,ft=ue.rangedValue,wt=ue.hoverRangedValue,Et=ue.isInView,jt=ue.isSameCell,Yt=ue.offsetCell,wn=ue.today,fn=ue.value;function zn(jn){var $t,yn=Yt(jn,-1),pn=Yt(jn,1),On=de(ft,0),cn=de(ft,1),sn=de(wt,0),En=de(wt,1),Pn=Hn(lt,sn,En,jn);function Kn(Dt){return jt(On,Dt)}function Vn(Dt){return jt(cn,Dt)}var ua=jt(sn,jn),xa=jt(En,jn),rn=(Pn||xa)&&(!Et(yn)||Vn(yn)),Vt=(Pn||ua)&&(!Et(pn)||Kn(pn));return $t={},Object(O.a)($t,"".concat(ot,"-in-view"),Et(jn)),Object(O.a)($t,"".concat(ot,"-in-range"),Hn(lt,On,cn,jn)),Object(O.a)($t,"".concat(ot,"-range-start"),Kn(jn)),Object(O.a)($t,"".concat(ot,"-range-end"),Vn(jn)),Object(O.a)($t,"".concat(ot,"-range-start-single"),Kn(jn)&&!cn),Object(O.a)($t,"".concat(ot,"-range-end-single"),Vn(jn)&&!On),Object(O.a)($t,"".concat(ot,"-range-start-near-hover"),Kn(jn)&&(jt(yn,sn)||Hn(lt,sn,En,yn))),Object(O.a)($t,"".concat(ot,"-range-end-near-hover"),Vn(jn)&&(jt(pn,En)||Hn(lt,sn,En,pn))),Object(O.a)($t,"".concat(ot,"-range-hover"),Pn),Object(O.a)($t,"".concat(ot,"-range-hover-start"),ua),Object(O.a)($t,"".concat(ot,"-range-hover-end"),xa),Object(O.a)($t,"".concat(ot,"-range-hover-edge-start"),rn),Object(O.a)($t,"".concat(ot,"-range-hover-edge-end"),Vt),Object(O.a)($t,"".concat(ot,"-range-hover-edge-start-near-range"),rn&&jt(yn,cn)),Object(O.a)($t,"".concat(ot,"-range-hover-edge-end-near-range"),Vt&&jt(pn,On)),Object(O.a)($t,"".concat(ot,"-today"),jt(wn,jn)),Object(O.a)($t,"".concat(ot,"-selected"),jt(fn,jn)),$t}return zn}function Ot(ue){for(var ot=ue.prefixCls,lt=ue.disabledDate,ft=ue.onSelect,wt=ue.rowNum,Et=ue.colNum,jt=ue.prefixColumn,Yt=ue.rowClassName,wn=ue.baseDate,fn=ue.getCellClassName,zn=ue.getCellText,jn=ue.getCellNode,$t=ue.getCellDate,yn=ue.titleCell,pn=ue.headerCells,On=p.useContext(f),cn=On.onDateMouseEnter,sn=On.onDateMouseLeave,En="".concat(ot,"-cell"),Pn=[],Kn=0;Kn2&&arguments[2]!==void 0?arguments[2]:!1;(Ze===On||Er)&&(Cn(oa),xa&&xa(oa),or&&or(oa,Ua),rn&&!Zt(Yt,oa,Xa)&&rn(oa))},Qn=function(oa){return Dn.current&&Dn.current.onKeyDown?([o.a.LEFT,o.a.RIGHT,o.a.UP,o.a.DOWN,o.a.PAGE_UP,o.a.PAGE_DOWN,o.a.ENTER].includes(oa.which)&&oa.preventDefault(),Dn.current.onKeyDown(oa)):(Object(u.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},wa=function(oa){Dn.current&&Dn.current.onBlur&&Dn.current.onBlur(oa)};pa&&la!=="right"&&(pa.current={onKeyDown:Qn,onClose:function(){Dn.current&&Dn.current.onClose&&Dn.current.onClose()}}),p.useEffect(function(){wn&&!ma.current&&_t(wn)},[wn]),p.useEffect(function(){ma.current=!1},[]);var tr,Ya=Object(R.a)(Object(R.a)({},ue),{},{operationRef:Dn,prefixCls:ft,viewDate:vt,value:Xa,onViewDateChange:Xe,sourceMode:Pt,onPanelChange:gn,disabledDate:Ze!=="decade"?$t:void 0});delete Ya.onChange,delete Ya.onSelect;switch(Ze){case"decade":tr=p.createElement(z,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;case"year":tr=p.createElement(ve,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;case"month":tr=p.createElement(Sn,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;case"quarter":tr=p.createElement(Ea,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;case"week":tr=p.createElement(ta,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;case"time":delete Ya.showTime,tr=p.createElement(st,Object.assign({},Ya,Object(m.a)(Pn)==="object"?Pn:null,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;default:Pn?tr=p.createElement(nn,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}})):tr=p.createElement(Ie,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}))}var ar,Ar,hr=function(){var oa=Yt.getNow(),Ua=et(Yt.getHour(oa),Yt.getMinute(oa),Yt.getSecond(oa),Ha?ha:1,Sr?Aa:1,Va?ea:1),Er=He(Yt,oa,Ua[0],Ua[1],Ua[2]);bt(Er,"submit")};Ln||(ar=Y(ft,Ze,Vn),Ar=te({prefixCls:ft,components:ln,needConfirmButton:er,okDisabled:!Xa||$t&&$t(Xa),locale:jt,showNow:En,onNow:er&&hr,onOk:function(){Xa&&(bt(Xa,"submit",!0),xt&&xt(Xa))}}));var sr;if(Kn&&Ze==="date"&&On==="date"&&!Pn){var va=Yt.getNow(),_a="".concat(ft,"-today-btn"),ur=$t&&$t(va);sr=p.createElement("a",{className:b()(_a,ur&&"".concat(_a,"-disabled")),"aria-disabled":ur,onClick:function(){ur||bt(va,"mouse",!0)}},jt.today)}return p.createElement(f.Provider,{value:Object(R.a)(Object(R.a)({},Za),{},{hideHeader:"hideHeader"in ue?ua:Za.hideHeader,hidePrevBtn:Ra&&la==="right",hideNextBtn:Ra&&la==="left"})},p.createElement("div",{tabIndex:sn,className:b()("".concat(ft,"-panel"),wt,(ot={},Object(O.a)(ot,"".concat(ft,"-panel-has-range"),Mn&&Mn[0]&&Mn[1]),Object(O.a)(ot,"".concat(ft,"-panel-has-range-hover"),Ca&&Ca[0]&&Ca[1]),Object(O.a)(ot,"".concat(ft,"-panel-rtl"),Kt==="rtl"),ot)),style:Et,onKeyDown:Qn,onBlur:wa,onMouseDown:Dt,ref:Ja},tr,ar||Ar||sr?p.createElement("div",{className:"".concat(ft,"-footer")},ar,Ar,sr):null))}var se=_e,ut=y("uciX"),vn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Wn(ue){var ot,lt=ue.prefixCls,ft=ue.popupElement,wt=ue.popupStyle,Et=ue.visible,jt=ue.dropdownClassName,Yt=ue.dropdownAlign,wn=ue.transitionName,fn=ue.getPopupContainer,zn=ue.children,jn=ue.range,$t=ue.popupPlacement,yn=ue.direction,pn="".concat(lt,"-dropdown"),On=function(){return $t!==void 0?$t:yn==="rtl"?"bottomRight":"bottomLeft"};return p.createElement(ut.a,{showAction:[],hideAction:[],popupPlacement:On(),builtinPlacements:vn,prefixCls:pn,popupTransitionName:wn,popup:ft,popupAlign:Yt,popupVisible:Et,popupClassName:b()(jt,(ot={},Object(O.a)(ot,"".concat(pn,"-range"),jn),Object(O.a)(ot,"".concat(pn,"-rtl"),yn==="rtl"),ot)),popupStyle:wt,getPopupContainer:fn},zn)}var Oa=Wn;function dn(ue){var ot=ue.open,lt=ue.value,ft=ue.isClickOutside,wt=ue.triggerOpen,Et=ue.forwardKeyDown,jt=ue.blurToCancel,Yt=ue.onSubmit,wn=ue.onCancel,fn=ue.onFocus,zn=ue.onBlur,jn=Object(p.useState)(!1),$t=Object(M.a)(jn,2),yn=$t[0],pn=$t[1],On=Object(p.useState)(!1),cn=Object(M.a)(On,2),sn=cn[0],En=cn[1],Pn=Object(p.useRef)(!1),Kn=Object(p.useRef)(!1),Vn={onMouseDown:function(){pn(!0),wt(!0)},onKeyDown:function(xa){switch(xa.which){case o.a.ENTER:{ot?Yt()!==!1&&pn(!0):wt(!0),xa.preventDefault();return}case o.a.TAB:{yn&&ot&&!xa.shiftKey?(pn(!1),xa.preventDefault()):!yn&&ot&&(!Et(xa)&&xa.shiftKey&&(pn(!0),xa.preventDefault()));return}case o.a.ESC:{pn(!0),wn();return}}!ot&&![o.a.SHIFT].includes(xa.which)?wt(!0):yn||Et(xa)},onFocus:function(xa){pn(!0),En(!0),fn&&fn(xa)},onBlur:function(xa){if(Pn.current||!ft(document.activeElement)){Pn.current=!1;return}jt?setTimeout(function(){ft(document.activeElement)&&wn()},0):ot&&(wt(!1),Kn.current&&Yt()),En(!1),zn&&zn(xa)}};return Object(p.useEffect)(function(){Kn.current=!1},[ot]),Object(p.useEffect)(function(){Kn.current=!0},[lt]),Object(p.useEffect)(function(){return S(function(ua){var xa=ua.target;ot&&(ft(xa)?sn||wt(!1):(Pn.current=!0,requestAnimationFrame(function(){Pn.current=!1})))})}),[Vn,{focused:sn,typing:yn}]}function Tn(ue){var ot=ue.valueTexts,lt=ue.onTextChange,ft=p.useState(""),wt=Object(M.a)(ft,2),Et=wt[0],jt=wt[1],Yt=p.useRef([]);Yt.current=ot;function wn(zn){jt(zn),lt(zn)}function fn(){jt(Yt.current[0])}return p.useEffect(function(){ot.every(function(zn){return zn!==Et})&&fn()},[ot.join("||")]),[Et,wn,fn]}var ya=y("Gytx"),fr=y.n(ya);function gr(ue,ot){var lt=ot.formatList,ft=ot.generateConfig,wt=ot.locale;return Object(D.a)(function(){if(!ue)return[[""],""];for(var Et="",jt=[],Yt=0;Yt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(fn.current),sn){wn(cn);return}fn.current=requestAnimationFrame(function(){wn(cn)})}var jn=gr(Yt,{formatList:lt,generateConfig:ft,locale:wt}),$t=Object(M.a)(jn,2),yn=$t[1];function pn(cn){zn(cn)}function On(){var cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;zn(null,cn)}return Object(p.useEffect)(function(){On(!0)},[ue]),Object(p.useEffect)(function(){return function(){return cancelAnimationFrame(fn.current)}},[]),[yn,pn,On]}function Qa(ue){var ot,lt=ue.prefixCls,ft=lt===void 0?"rc-picker":lt,wt=ue.id,Et=ue.tabIndex,jt=ue.style,Yt=ue.className,wn=ue.dropdownClassName,fn=ue.dropdownAlign,zn=ue.popupStyle,jn=ue.transitionName,$t=ue.generateConfig,yn=ue.locale,pn=ue.inputReadOnly,On=ue.allowClear,cn=ue.autoFocus,sn=ue.showTime,En=ue.picker,Pn=En===void 0?"date":En,Kn=ue.format,Vn=ue.use12Hours,ua=ue.value,xa=ue.defaultValue,rn=ue.open,Vt=ue.defaultOpen,Dt=ue.defaultOpenValue,zt=ue.suffixIcon,xt=ue.clearIcon,ln=ue.disabled,Kt=ue.disabledDate,Xn=ue.placeholder,ha=ue.getPopupContainer,Jn=ue.pickerRef,Aa=ue.panelRender,Zn=ue.onChange,ea=ue.onOpenChange,er=ue.onFocus,Ha=ue.onBlur,Sr=ue.onMouseDown,Va=ue.onMouseUp,Za=ue.onMouseEnter,pa=ue.onMouseLeave,Ja=ue.onContextMenu,or=ue.onClick,Ln=ue.direction,Wt=ue.autoComplete,Rn=Wt===void 0?"off":Wt,Ra=p.useRef(null),la=Pn==="date"&&!!sn||Pn==="time",Mn=ie(h(Kn,Pn,sn,Vn)),Ca=p.useRef(null),Dn=p.useRef(null),ma=Object(d.a)(null,{value:ua,defaultValue:xa}),ga=Object(M.a)(ma,2),ja=ga[0],Xa=ga[1],Cn=p.useState(ja),nr=Object(M.a)(Cn,2),$e=nr[0],vt=nr[1],_t=p.useRef(null),Xe=Object(d.a)(!1,{value:rn,defaultValue:Vt,postState:function(wr){return ln?!1:wr},onChange:function(wr){ea&&ea(wr),!wr&&_t.current&&_t.current.onClose&&_t.current.onClose()}}),Ee=Object(M.a)(Xe,2),Be=Ee[0],Ce=Ee[1],Ze=gr($e,{formatList:Mn,generateConfig:$t,locale:yn}),Ke=Object(M.a)(Ze,2),St=Ke[0],it=Ke[1],Pt=Tn({valueTexts:St,onTextChange:function(wr){var Xr=$t.locale.parse(yn.locale,wr,Mn);Xr&&(!Kt||!Kt(Xr))&&vt(Xr)}}),an=Object(M.a)(Pt,3),gn=an[0],bt=an[1],Qn=an[2],wa=function(wr){vt(wr),Xa(wr),Zn&&!Zt($t,ja,wr)&&Zn(wr,wr?$t.locale.format(yn.locale,wr,Mn[0]):"")},tr=function(wr){if(ln&&wr)return;Ce(wr)},Ya=function(wr){return Be&&_t.current&&_t.current.onKeyDown?_t.current.onKeyDown(wr):(Object(u.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ar=function(){Va&&Va.apply(void 0,arguments),Ra.current&&(Ra.current.focus(),tr(!0))},Ar=dn({blurToCancel:la,open:Be,value:gn,triggerOpen:tr,forwardKeyDown:Ya,isClickOutside:function(wr){return!N([Ca.current,Dn.current],wr)},onSubmit:function(){return Kt&&Kt($e)?!1:(wa($e),tr(!1),Qn(),!0)},onCancel:function(){tr(!1),vt(ja),Qn()},onFocus:er,onBlur:Ha}),hr=Object(M.a)(Ar,2),sr=hr[0],va=hr[1],_a=va.focused,ur=va.typing;p.useEffect(function(){Be||(vt(ja),!St.length||St[0]===""?bt(""):it!==gn&&Qn())},[Be,St]),p.useEffect(function(){Be||Qn()},[Pn]),p.useEffect(function(){vt(ja)},[ja]),Jn&&(Jn.current={focus:function(){Ra.current&&Ra.current.focus()},blur:function(){Ra.current&&Ra.current.blur()}});var Ba=Object(R.a)(Object(R.a)({},ue),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),oa=p.createElement(se,Object.assign({},Ba,{generateConfig:$t,className:b()(Object(O.a)({},"".concat(ft,"-panel-focused"),!ur)),value:$e,locale:yn,tabIndex:-1,onChange:vt,direction:Ln}));Aa&&(oa=Aa(oa));var Ua=p.createElement("div",{className:"".concat(ft,"-panel-container"),onMouseDown:function(wr){wr.preventDefault()}},oa),Er;zt&&(Er=p.createElement("span",{className:"".concat(ft,"-suffix")},zt));var Ka;On&&ja&&!ln&&(Ka=p.createElement("span",{onMouseDown:function(wr){wr.preventDefault(),wr.stopPropagation()},onMouseUp:function(wr){wr.preventDefault(),wr.stopPropagation(),wa(null),tr(!1)},className:"".concat(ft,"-clear")},xt||p.createElement("span",{className:"".concat(ft,"-clear-btn")})));var yt=function(wr,Xr){(Xr==="submit"||Xr!=="key"&&!la)&&(wa(wr),tr(!1))},qa=Ln==="rtl"?"bottomRight":"bottomLeft",Lr=ir(gn,{formatList:Mn,generateConfig:$t,locale:yn}),_r=Object(M.a)(Lr,3),Tt=_r[0],pr=_r[1],Yn=_r[2];return p.createElement(f.Provider,{value:{operationRef:_t,hideHeader:Pn==="time",panelRef:Ca,onSelect:yt,open:Be,defaultOpenValue:Dt,onDateMouseEnter:pr,onDateMouseLeave:Yn}},p.createElement(Oa,{visible:Be,popupElement:Ua,popupStyle:zn,prefixCls:ft,dropdownClassName:wn,dropdownAlign:fn,getPopupContainer:ha,transitionName:jn,popupPlacement:qa,direction:Ln},p.createElement("div",{className:b()(ft,Yt,(ot={},Object(O.a)(ot,"".concat(ft,"-disabled"),ln),Object(O.a)(ot,"".concat(ft,"-focused"),_a),Object(O.a)(ot,"".concat(ft,"-rtl"),Ln==="rtl"),ot)),style:jt,onMouseDown:Sr,onMouseUp:ar,onMouseEnter:Za,onMouseLeave:pa,onContextMenu:Ja,onClick:or},p.createElement("div",{className:b()("".concat(ft,"-input"),Object(O.a)({},"".concat(ft,"-input-placeholder"),!!Tt)),ref:Dn},p.createElement("input",Object.assign({id:wt,tabIndex:Et,disabled:ln,readOnly:pn||!ur,value:Tt||gn,onChange:function(wr){bt(wr.target.value)},autoFocus:cn,placeholder:Xn,ref:Ra,title:gn},sr,{size:g(Pn,Mn[0])},le(ue),{autoComplete:Rn})),Er,Ka))))}var ba=function(ue){Object(k.a)(lt,ue);var ot=Object(B.a)(lt);function lt(){var ft;return Object(Q.a)(this,lt),ft=ot.apply(this,arguments),ft.pickerRef=p.createRef(),ft.focus=function(){ft.pickerRef.current&&ft.pickerRef.current.focus()},ft.blur=function(){ft.pickerRef.current&&ft.pickerRef.current.blur()},ft}return Object(W.a)(lt,[{key:"render",value:function(){return p.createElement(Qa,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),lt}(p.Component),Na=ba;function Ma(ue,ot,lt){var ft=ue.picker,wt=ue.locale,Et=ue.selectedValue,jt=ue.disabledDate,Yt=ue.disabled,wn=ue.generateConfig,fn=de(Et,0),zn=de(Et,1);function jn(cn){var sn=wn.getYear(cn),En=wn.locale.getWeek(wt.locale,cn);return sn*100+En}function $t(cn){var sn=wn.getYear(cn),En=wn.getMonth(cn);return sn*100+En}function yn(cn){var sn=wn.getYear(cn),En=xe(wn,cn);return sn*10+En}var pn=p.useCallback(function(cn){if(jt&&jt(cn))return!0;if(Yt[1]&&zn)return!gt(wn,cn,zn)&&wn.isAfter(cn,zn);if(ot&&zn)switch(ft){case"quarter":return yn(cn)>yn(zn);case"month":return $t(cn)>$t(zn);case"week":return jn(cn)>jn(zn);default:return!gt(wn,cn,zn)&&wn.isAfter(cn,zn)}return!1},[jt,Yt[1],zn,ot]),On=p.useCallback(function(cn){if(jt&&jt(cn))return!0;if(Yt[0]&&fn)return!gt(wn,cn,zn)&&wn.isAfter(fn,cn);if(lt&&fn)switch(ft){case"quarter":return yn(cn)0&&arguments[0]!==void 0?arguments[0]:!1,Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wr=null;Yn&&gi&&gi[0]&&gi[1]&&pn.isAfter(gi[1],gi[0])&&(Wr=gi);var Qr=ua;if(ua&&Object(m.a)(ua)==="object"&&ua.defaultValue){var di=ua.defaultValue;Qr=Object(R.a)(Object(R.a)({},ua),{},{defaultValue:de(di,it)||void 0})}var Ji=null;return Jn&&(Ji=function(Ti,Zi){return Jn(Ti,Zi,{range:it?"end":"start"})}),p.createElement(on.Provider,{value:{inRange:!0,panelPosition:Vr,rangedValue:co||_a,hoverRangedValue:Wr}},p.createElement(se,Object.assign({},ue,Cr,{dateRender:Ji,showTime:Qr,mode:Ua[it],generateConfig:pn,style:void 0,direction:ma,disabledDate:it===0?Lr:_r,disabledTime:function(Ti){return ha?ha(Ti,it===0?"start":"end"):!1},className:b()(Object(O.a)({},"".concat(Et,"-panel-focused"),it===0?!vi:!po)),value:de(_a,it),locale:On,tabIndex:-1,onPanelChange:function(Ti,Zi){Ka(Se(Ua,Zi,it),Se(_a,Ti,it));var xo=Ti;Vr==="right"&&Ua[it]===Zi&&(xo=mt(xo,Zi,pn,-1)),hr(xo,it)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Da=0,Pa=0;it&&_t.current&&Ee.current&&vt.current&&(Da=_t.current.offsetWidth+Ee.current.offsetWidth,vt.current.offsetWidth&&Da>vt.current.offsetWidth&&(Pa=Da));var Pr=ma==="rtl"?{right:Da}:{left:Da};function li(){var Vr,Cr=Y(Et,Ua[it],Ja),Wr=te({prefixCls:Et,components:Ca,needConfirmButton:Cn,okDisabled:!de(_a,it)||Xn&&Xn(_a[it]),locale:On,rangeList:Kr,onOk:function(){de(_a,it)&&(In(_a,it),Mn&&Mn(_a))}});if(Vn!=="time"&&!ua){var Qr=Ar(it),di=mt(Qr,Vn,pn),Ji=Ua[it],lo=Ji===Vn,Ti=$a(lo?"left":!1,{pickerValue:Qr,onPickerValueChange:function(Si){hr(Si,it)}}),Zi=$a("right",{pickerValue:di,onPickerValueChange:function(Si){hr(mt(Si,Vn,pn,-1),it)}});ma==="rtl"?Vr=p.createElement(p.Fragment,null,Zi,lo&&Ti):Vr=p.createElement(p.Fragment,null,Ti,lo&&Zi)}else Vr=$a();var xo=p.createElement(p.Fragment,null,p.createElement("div",{className:"".concat(Et,"-panels")},Vr),(Cr||Wr)&&p.createElement("div",{className:"".concat(Et,"-footer")},Cr,Wr));return Aa&&(xo=Aa(xo)),p.createElement("div",{className:"".concat(Et,"-panel-container"),style:{marginLeft:Pa},ref:vt,onMouseDown:function(Si){Si.preventDefault()}},xo)}var wi=p.createElement("div",{className:b()("".concat(Et,"-range-wrapper"),"".concat(Et,"-").concat(Vn,"-range-wrapper")),style:{minWidth:ei}},p.createElement("div",{className:"".concat(Et,"-range-arrow"),style:Pr}),li()),oi;Ha&&(oi=p.createElement("span",{className:"".concat(Et,"-suffix")},Ha));var ci;er&&(de(wa,0)&&!gn[0]||de(wa,1)&&!gn[1])&&(ci=p.createElement("span",{onMouseDown:function(Cr){Cr.preventDefault(),Cr.stopPropagation()},onMouseUp:function(Cr){Cr.preventDefault(),Cr.stopPropagation();var Wr=wa;gn[0]||(Wr=Se(Wr,null,0)),gn[1]||(Wr=Se(Wr,null,1)),In(Wr,null),La(!1,it)},className:"".concat(Et,"-clear")},Sr||p.createElement("span",{className:"".concat(Et,"-clear-btn")})));var Pi={size:g(Vn,Ze[0])},ki=0,Fi=0;_t.current&&Xe.current&&Ee.current&&(it===0?Fi=_t.current.offsetWidth:(ki=Da,Fi=Xe.current.offsetWidth));var xi=ma==="rtl"?{right:ki}:{left:ki},Jr=function(Cr,Wr){var Qr=Se(_a,Cr,it);Wr==="submit"||Wr!=="key"&&!Cn?(In(Qr,it),it===0?ui():Po()):ur(Qr)};return p.createElement(f.Provider,{value:{operationRef:an,hideHeader:Vn==="time",onDateMouseEnter:fo,onDateMouseLeave:Mi,hideRanges:!0,onSelect:Jr,open:Yn}},p.createElement(Oa,{visible:Yn,popupElement:wi,popupStyle:fn,prefixCls:Et,dropdownClassName:zn,dropdownAlign:$t,getPopupContainer:yn,transitionName:jn,range:!0,direction:ma},p.createElement("div",Object.assign({ref:$e,className:b()(Et,"".concat(Et,"-range"),wn,(ot={},Object(O.a)(ot,"".concat(Et,"-disabled"),gn[0]&&gn[1]),Object(O.a)(ot,"".concat(Et,"-focused"),it===0?Oi:Do),Object(O.a)(ot,"".concat(Et,"-rtl"),ma==="rtl"),ot)),style:Yt,onClick:so,onMouseDown:yo},le(ue)),p.createElement("div",{className:b()("".concat(Et,"-input"),(lt={},Object(O.a)(lt,"".concat(Et,"-input-active"),it===0),Object(O.a)(lt,"".concat(Et,"-input-placeholder"),!!Fr),lt)),ref:_t},p.createElement("input",Object.assign({id:jt,disabled:gn[0],readOnly:Za||!vi,value:Fr||Ei,onChange:function(Cr){ao(Cr.target.value)},autoFocus:sn,placeholder:de(cn,0)||"",ref:Be},Di,Pi,{autoComplete:Xa}))),p.createElement("div",{className:"".concat(Et,"-range-separator"),ref:Ee},Vt),p.createElement("div",{className:b()("".concat(Et,"-input"),(ft={},Object(O.a)(ft,"".concat(Et,"-input-active"),it===1),Object(O.a)(ft,"".concat(Et,"-input-placeholder"),!!Qi),ft)),ref:Xe},p.createElement("input",Object.assign({disabled:gn[1],readOnly:Za||!po,value:Qi||eo,onChange:function(Cr){ro(Cr.target.value)},placeholder:de(cn,1)||"",ref:Ce},Wi,Pi,{autoComplete:Xa}))),p.createElement("div",{className:"".concat(Et,"-active-bar"),style:Object(R.a)(Object(R.a)({},xi),{},{width:Fi,position:"absolute"})}),oi,ci)))}var da=function(ue){Object(k.a)(lt,ue);var ot=Object(B.a)(lt);function lt(){var ft;return Object(Q.a)(this,lt),ft=ot.apply(this,arguments),ft.pickerRef=p.createRef(),ft.focus=function(){ft.pickerRef.current&&ft.pickerRef.current.focus()},ft.blur=function(){ft.pickerRef.current&&ft.pickerRef.current.blur()},ft}return Object(W.a)(lt,[{key:"render",value:function(){return p.createElement(Fn,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),lt}(p.Component),Ta=da,Wa=re.b=Na},onxn:function(Ge,re){Ge.exports="data:image/png;base64,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"},osHv:function(Ge,re,y){(function(Q){Q(y("VrN/"))})(function(Q){"use strict";var W=Q.Pos;function k(i,t){return i.line-t.line||i.ch-t.ch}var B="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",O=B+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",R=new RegExp("<(/?)(["+B+"]["+O+"]*)","g");function M(i,t,l,s){this.line=t,this.ch=l,this.cm=i,this.text=i.getLine(t),this.min=s?Math.max(s.from,i.firstLine()):i.firstLine(),this.max=s?Math.min(s.to-1,i.lastLine()):i.lastLine()}function p(i,t){var l=i.cm.getTokenTypeAt(W(i.line,t));return l&&/\btag\b/.test(l)}function a(i){return i.line>=i.max?void 0:(i.ch=0,i.text=i.cm.getLine(++i.line),!0)}function b(i){return i.line<=i.min?void 0:(i.text=i.cm.getLine(--i.line),i.ch=i.text.length,!0)}function u(i){for(;;){var t=i.text.indexOf(">",i.ch);if(t==-1){if(a(i))continue;return}if(!p(i,t+1)){i.ch=t+1;continue}var l=i.text.lastIndexOf("/",t),s=l>-1&&!/\S/.test(i.text.slice(l+1,t));return i.ch=t+1,s?"selfClose":"regular"}}function d(i){for(;;){var t=i.ch?i.text.lastIndexOf("<",i.ch-1):-1;if(t==-1){if(b(i))continue;return}if(!p(i,t+1)){i.ch=t;continue}R.lastIndex=t,i.ch=t;var l=R.exec(i.text);if(l&&l.index==t)return l}}function m(i){for(;;){R.lastIndex=i.ch;var t=R.exec(i.text);if(!t){if(a(i))continue;return}if(!p(i,t.index+1)){i.ch=t.index+1;continue}return i.ch=t.index+t[0].length,t}}function o(i){for(;;){var t=i.ch?i.text.lastIndexOf(">",i.ch-1):-1;if(t==-1){if(b(i))continue;return}if(!p(i,t+1)){i.ch=t;continue}var l=i.text.lastIndexOf("/",t),s=l>-1&&!/\S/.test(i.text.slice(l+1,t));return i.ch=t+1,s?"selfClose":"regular"}}function c(i,t){for(var l=[];;){var s=m(i),w,D=i.line,C=i.ch-(s?s[0].length:0);if(!s||!(w=u(i)))return;if(w=="selfClose")continue;if(s[1]){for(var v=l.length-1;v>=0;--v)if(l[v]==s[2]){l.length=v;break}if(v<0&&(!t||t==s[2]))return{tag:s[2],from:W(D,C),to:W(i.line,i.ch)}}else l.push(s[2])}}function f(i,t){for(var l=[];;){var s=o(i);if(!s)return;if(s=="selfClose"){d(i);continue}var w=i.line,D=i.ch,C=d(i);if(!C)return;if(C[1])l.push(C[2]);else{for(var v=l.length-1;v>=0;--v)if(l[v]==C[2]){l.length=v;break}if(v<0&&(!t||t==C[2]))return{tag:C[2],from:W(i.line,i.ch),to:W(w,D)}}}}Q.registerHelper("fold","xml",function(i,t){for(var l=new M(i,t.line,0);;){var s=m(l);if(!s||l.line!=t.line)return;var w=u(l);if(!w)return;if(!s[1]&&w!="selfClose"){var D=W(l.line,l.ch),C=c(l,s[2]);return C&&k(C.from,D)>0?{from:D,to:C.from}:null}}}),Q.findMatchingTag=function(i,t,l){var s=new M(i,t.line,t.ch,l);if(s.text.indexOf(">")==-1&&s.text.indexOf("<")==-1)return;var w=u(s),D=w&&W(s.line,s.ch),C=w&&d(s);if(!w||!C||k(s,t)>0)return;var v={from:W(s.line,s.ch),to:D,tag:C[2]};return w=="selfClose"?{open:v,close:null,at:"open"}:C[1]?{open:f(s,C[2]),close:v,at:"close"}:(s=new M(i,D.line,D.ch,l),{open:v,close:c(s,C[2]),at:"open"})},Q.findEnclosingTag=function(i,t,l,s){for(var w=new M(i,t.line,t.ch,l);;){var D=f(w,s);if(!D)break;var C=new M(i,t.line,t.ch,l),v=c(C,D.tag);if(v)return{open:D,close:v}}},Q.scanForClosingTag=function(i,t,l,s){var w=new M(i,t.line,t.ch,s?{from:0,to:s}:null);return c(w,l)}})},p5ED:function(Ge,re,y){"use strict";var Q=y("+L6B"),W=y("2/Rp"),k=y("5Dmo"),B=y("3S7+"),O=y("k1fw"),R=y("tJVT"),M=y("q1tI"),p=y.n(M),a=y("vHTk"),b=y.n(a),u=y("yEEn"),d=y("ZW9T"),m=y("1vsH");re.a=function(o){var c=o.name,f=o.data,i=o.theme,t=o.type,l=o.filename,s=o.monacoEditor,w=o.className,D=o.style,C=o.close,v=o.onClose,n=o.hasMask,_=Object(M.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),h=Object(R.a)(_,2),g=h[0],x=h[1],T=Object(M.useState)(""),S=Object(R.a)(T,2),E=S[0],U=S[1],F,P=1024*1024,H=10*P,N=Object(M.useRef)();t==="office"&&(F=Object(m.T)(f).filesize,F>H&&(t="other")),l&&(s.filename=l),Object(M.useEffect)(function(){var K,$,ie=(K=document.cookie)===null||K===void 0||(($=K.replace(/\s/g,""))===null||$===void 0)?void 0:$.split(";");ie==null||ie.map(function(le){var de=le.split("=");de[0]==="_educoder_session"&&U(de[1])})},[]);var A=function(){if(f.startsWith("http")||f.startsWith("/")){G();return}Object(m.z)(l||"educoder",f,l)},G=function(){Object(m.x)(l||c,f)};return console.log("data:",f,"fileanme:",l," name:",c),p.a.createElement("div",{style:Object(O.a)({},D||{}),className:"".concat(n&&b.a.bgBlack," ").concat(t?b.a.wrp:"hide")},C&&p.a.createElement("div",{className:b.a.close,ref:N},p.a.createElement(B.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return N.current}},p.a.createElement("span",{onClick:G},p.a.createElement("i",{className:"icon-quxiaozhiding"}))),p.a.createElement(B.a,{title:"\u5173\u95ED",getPopupContainer:function(){return N.current}},p.a.createElement("span",{className:"",onClick:v},p.a.createElement("i",{className:"icon-guanbi1"})))),p.a.createElement("div",{className:"".concat(b.a[w]," ").concat(w," ").concat(b.a.monaco," ").concat(t==="txt"?"show":"hide")},t==="txt"&&p.a.createElement(d.b,s)),t==="audio"&&p.a.createElement("audio",{src:"".concat(f!=null&&f.startsWith("/")||(f==null?void 0:f.indexOf("https://"))>-1?f:"data:audio/mp3;base64,").concat(f),autoPlay:!0}),t==="video"&&p.a.createElement(p.a.Fragment,null,f!=null&&f.startsWith("/")?p.a.createElement("video",{controls:!0,src:"".concat(f),autoPlay:!0}):p.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(f),autoPlay:!0})),t==="html"&&p.a.createElement("iframe",{src:f+"&disposition=inline"}),t==="pdf"&&p.a.createElement("embed",{className:b.a.embed,src:f}),t==="image"&&p.a.createElement(p.a.Fragment,null,p.a.createElement("img",{src:"".concat(f!=null&&f.startsWith("/")||(f==null?void 0:f.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(f)})),t==="other"&&p.a.createElement("div",null,p.a.createElement(W.a,{type:"primary",size:"large",onClick:A},p.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(t==="download"||t==="office")&&p.a.createElement(W.a,{type:"primary",size:"large",onClick:A},p.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Ge,re,y){},pmY6:function(Ge,re,y){"use strict";y.d(re,"h",function(){return b}),y.d(re,"g",function(){return d}),y.d(re,"f",function(){return m}),y.d(re,"e",function(){return o}),y.d(re,"i",function(){return c}),y.d(re,"b",function(){return f}),y.d(re,"a",function(){return i}),y.d(re,"d",function(){return t}),y.d(re,"c",function(){return l});var Q=y("C/vA"),W=y("JYp7");const k=!1;let B=null;function O(s){B=s}if(k){const s="__is_disposable_tracked__";O(new class{trackDisposable(w){const D=new Error("Potentially leaked disposable").stack;setTimeout(()=>{w[s]||console.log(D)},3e3)}setParent(w,D){if(w&&w!==i.None)try{w[s]=!0}catch(C){}}markAsDisposed(w){if(w&&w!==i.None)try{w[s]=!0}catch(D){}}markAsSingleton(w){}})}function R(s){return B==null||B.trackDisposable(s),s}function M(s){B==null||B.markAsDisposed(s)}function p(s,w){B==null||B.setParent(s,w)}function a(s,w){if(!B)return;for(const D of s)B.setParent(D,w)}function b(s){return B==null||B.markAsSingleton(s),s}class u extends Error{constructor(s){super(`Encountered errors while disposing of store. Errors: [${s.join(", ")}]`);this.errors=s}}function d(s){return typeof s.dispose=="function"&&s.dispose.length===0}function m(s){if(W.a.is(s)){let w=[];for(const D of s)if(D)try{D.dispose()}catch(C){w.push(C)}if(w.length===1)throw w[0];if(w.length>1)throw new u(w);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}function o(...s){const w=c(()=>m(s));return a(s,w),w}function c(s){const w=R({dispose:Object(Q.a)(()=>{M(w),s()})});return w}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,R(this)}dispose(){if(this._isDisposed)return;M(this),this._isDisposed=!0,this.clear()}clear(){try{m(this._toDispose.values())}finally{this._toDispose.clear()}}add(s){if(!s)return s;if(s===this)throw new Error("Cannot register a disposable on itself!");return p(s,this),this._isDisposed?f.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(s),s}}f.DISABLE_DISPOSED_WARNING=!1;class i{constructor(){this._store=new f,R(this),p(this._store,this)}dispose(){M(this),this._store.dispose()}_register(s){if(s===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(s)}}i.None=Object.freeze({dispose(){}});class t{constructor(){this._isDisposed=!1,R(this)}get value(){return this._isDisposed?void 0:this._value}set value(s){var w;if(this._isDisposed||s===this._value)return;(w=this._value)===null||w===void 0||w.dispose(),s&&p(s,this),this._value=s}clear(){this.value=void 0}dispose(){var s;this._isDisposed=!0,M(this),(s=this._value)===null||s===void 0||s.dispose(),this._value=void 0}clearAndLeak(){const s=this._value;return this._value=void 0,s&&p(s,null),s}}class l{constructor(s){this.object=s}dispose(){}}},psGv:function(Ge,re,y){var Q,W;(function(){var k;(function(){"use strict";var M=[,,function(u){function d(c){this.__parent=c,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}d.prototype.clone_empty=function(){var c=new d(this.__parent);return c.set_indent(this.__indent_count,this.__alignment_count),c},d.prototype.item=function(c){return c<0?this.__items[this.__items.length+c]:this.__items[c]},d.prototype.has_match=function(c){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(c))return!0;return!1},d.prototype.set_indent=function(c,f){this.is_empty()&&(this.__indent_count=c||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},d.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},d.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},d.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var c=this.__parent.current_line;return c.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),c.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),c.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,c.__items[0]===" "&&(c.__items.splice(0,1),c.__character_count-=1),!0}return!1},d.prototype.is_empty=function(){return this.__items.length===0},d.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},d.prototype.push=function(c){this.__items.push(c);var f=c.lastIndexOf(` + `)}},X)})}function lo(){Ji(function(){Cr(Fi.react,W.a.version),Qr(document)},[])}function Ti(V){var X=Object(Q.useRef)(V);return Object(Q.useEffect)(function(){X.current=V}),X}function Zi(){var V=null;function X(){return Boolean(V)}function ne(tt){return tt===V}function ge(tt){V&&fe(!1);var nt={abandon:tt};return V=nt,nt}function ke(){V||fe(!1),V=null}function Ne(){V&&(V.abandon(),ke())}return{isClaimed:X,isActive:ne,claim:ge,release:ke,tryAbandon:Ne}}var xo=9,Lo=13,Si=27,Rs=32,Xs=33,Dl=34,hs=35,Ts=36,Qs=37,Pl=38,Js=39,Il=40,ps,ms=(ps={},ps[Lo]=!0,ps[xo]=!0,ps),Ds=function(V){ms[V.keyCode]&&V.preventDefault()},vs=function(){var V="visibilitychange";if(typeof document=="undefined")return V;var X=[V,"ms"+V,"webkit"+V,"moz"+V,"o"+V],ne=Lt(X,function(ge){return"on"+ge in document});return ne||V}(),Zs=0,Ps=5;function Ho(V,X){return Math.abs(X.x-V.x)>=Ps||Math.abs(X.y-V.y)>=Ps}var gs={type:"IDLE"};function _s(V){var X=V.cancel,ne=V.completed,ge=V.getPhase,ke=V.setPhase;return[{eventName:"mousemove",fn:function(tt){var nt=tt.button,It=tt.clientX,en=tt.clientY;if(nt!==Zs)return;var un={x:It,y:en},Ut=ge();if(Ut.type==="DRAGGING"){tt.preventDefault(),Ut.actions.move(un);return}Ut.type==="PENDING"||fe(!1);var Nt=Ut.point;if(!Ho(Nt,un))return;tt.preventDefault();var Qt=Ut.actions.fluidLift(un);ke({type:"DRAGGING",actions:Qt})}},{eventName:"mouseup",fn:function(tt){var nt=ge();if(nt.type!=="DRAGGING"){X();return}tt.preventDefault(),nt.actions.drop({shouldBlockNextClick:!0}),ne()}},{eventName:"mousedown",fn:function(tt){ge().type==="DRAGGING"&&tt.preventDefault(),X()}},{eventName:"keydown",fn:function(tt){var nt=ge();if(nt.type==="PENDING"){X();return}if(tt.keyCode===Si){tt.preventDefault(),X();return}Ds(tt)}},{eventName:"resize",fn:X},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ge().type==="PENDING"&&X()}},{eventName:"webkitmouseforcedown",fn:function(tt){var nt=ge();if(nt.type!=="IDLE"||fe(!1),nt.actions.shouldRespectForcePress()){X();return}tt.preventDefault()}},{eventName:vs,fn:X}]}function qs(V){var X=Object(Q.useRef)(gs),ne=Object(Q.useRef)(de),ge=b(function(){return{eventName:"mousedown",fn:function(Ut){if(Ut.defaultPrevented)return;if(Ut.button!==Zs)return;if(Ut.ctrlKey||Ut.metaKey||Ut.shiftKey||Ut.altKey)return;var Nt=V.findClosestDraggableId(Ut);if(!Nt)return;var Qt=V.tryGetLock(Nt,tt,{sourceEvent:Ut});if(!Qt)return;Ut.preventDefault();var ca={x:Ut.clientX,y:Ut.clientY};ne.current(),en(Qt,ca)}}},[V]),ke=b(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ut){if(Ut.defaultPrevented)return;var Nt=V.findClosestDraggableId(Ut);if(!Nt)return;var Qt=V.findOptionsForDraggable(Nt);if(!Qt)return;if(Qt.shouldRespectForcePress)return;if(!V.canGetLock(Nt))return;Ut.preventDefault()}}},[V]),Ne=u(function(){var Ut={passive:!1,capture:!0};ne.current=He(window,[ke,ge],Ut)},[ke,ge]),tt=u(function(){var un=X.current;if(un.type==="IDLE")return;X.current=gs,ne.current(),Ne()},[Ne]),nt=u(function(){var un=X.current;tt(),un.type==="DRAGGING"&&un.actions.cancel({shouldBlockNextClick:!0}),un.type==="PENDING"&&un.actions.abort()},[tt]),It=u(function(){var Ut={capture:!0,passive:!1},Nt=_s({cancel:nt,completed:tt,getPhase:function(){return X.current},setPhase:function(ca){X.current=ca}});ne.current=He(window,Nt,Ut)},[nt,tt]),en=u(function(Ut,Nt){X.current.type==="IDLE"||fe(!1),X.current={type:"PENDING",point:Nt,actions:Ut},It()},[It]);Ri(function(){return Ne(),function(){ne.current()}},[Ne])}var Uo;function $s(){}var Ll=(Uo={},Uo[Dl]=!0,Uo[Xs]=!0,Uo[Ts]=!0,Uo[hs]=!0,Uo);function el(V,X){function ne(){X(),V.cancel()}function ge(){X(),V.drop()}return[{eventName:"keydown",fn:function(Ne){if(Ne.keyCode===Si){Ne.preventDefault(),ne();return}if(Ne.keyCode===Rs){Ne.preventDefault(),ge();return}if(Ne.keyCode===Il){Ne.preventDefault(),V.moveDown();return}if(Ne.keyCode===Pl){Ne.preventDefault(),V.moveUp();return}if(Ne.keyCode===Js){Ne.preventDefault(),V.moveRight();return}if(Ne.keyCode===Qs){Ne.preventDefault(),V.moveLeft();return}if(Ll[Ne.keyCode]){Ne.preventDefault();return}Ds(Ne)}},{eventName:"mousedown",fn:ne},{eventName:"mouseup",fn:ne},{eventName:"click",fn:ne},{eventName:"touchstart",fn:ne},{eventName:"resize",fn:ne},{eventName:"wheel",fn:ne,options:{passive:!0}},{eventName:vs,fn:ne}]}function Ki(V){var X=Object(Q.useRef)($s),ne=b(function(){return{eventName:"keydown",fn:function(Ne){if(Ne.defaultPrevented)return;if(Ne.keyCode!==Rs)return;var tt=V.findClosestDraggableId(Ne);if(!tt)return;var nt=V.tryGetLock(tt,un,{sourceEvent:Ne});if(!nt)return;Ne.preventDefault();var It=!0,en=nt.snapLift();X.current();function un(){It||fe(!1),It=!1,X.current(),ge()}X.current=He(window,el(en,un),{capture:!0,passive:!1})}}},[V]),ge=u(function(){var Ne={passive:!1,capture:!0};X.current=He(window,[ne],Ne)},[ne]);Ri(function(){return ge(),function(){X.current()}},[ge])}var zo={type:"IDLE"},tl=120,nl=.15;function al(V){var X=V.cancel,ne=V.getPhase;return[{eventName:"orientationchange",fn:X},{eventName:"resize",fn:X},{eventName:"contextmenu",fn:function(ke){ke.preventDefault()}},{eventName:"keydown",fn:function(ke){if(ne().type!=="DRAGGING"){X();return}ke.keyCode===Si&&ke.preventDefault(),X()}},{eventName:vs,fn:X}]}function Ko(V){var X=V.cancel,ne=V.completed,ge=V.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ne){var tt=ge();if(tt.type!=="DRAGGING"){X();return}tt.hasMoved=!0;var nt=Ne.touches[0],It=nt.clientX,en=nt.clientY,un={x:It,y:en};Ne.preventDefault(),tt.actions.move(un)}},{eventName:"touchend",fn:function(Ne){var tt=ge();if(tt.type!=="DRAGGING"){X();return}Ne.preventDefault(),tt.actions.drop({shouldBlockNextClick:!0}),ne()}},{eventName:"touchcancel",fn:function(Ne){if(ge().type!=="DRAGGING"){X();return}Ne.preventDefault(),X()}},{eventName:"touchforcechange",fn:function(Ne){var tt=ge();tt.type!=="IDLE"||fe(!1);var nt=Ne.touches[0];if(!nt)return;var It=nt.force>=nl;if(!It)return;var en=tt.actions.shouldRespectForcePress();if(tt.type==="PENDING"){en&&X();return}if(en){if(tt.hasMoved){Ne.preventDefault();return}X();return}Ne.preventDefault()}},{eventName:vs,fn:X}]}function bs(V){var X=Object(Q.useRef)(zo),ne=Object(Q.useRef)(de),ge=u(function(){return X.current},[]),ke=u(function(Qt){X.current=Qt},[]),Ne=b(function(){return{eventName:"touchstart",fn:function(Qt){if(Qt.defaultPrevented)return;var ca=V.findClosestDraggableId(Qt);if(!ca)return;var mr=V.tryGetLock(ca,nt,{sourceEvent:Qt});if(!mr)return;var br=Qt.touches[0],Tr=br.clientX,Mr=br.clientY,zr={x:Tr,y:Mr};ne.current(),Ut(mr,zr)}}},[V]),tt=u(function(){var Qt={capture:!0,passive:!1};ne.current=He(window,[Ne],Qt)},[Ne]),nt=u(function(){var Nt=X.current;if(Nt.type==="IDLE")return;Nt.type==="PENDING"&&clearTimeout(Nt.longPressTimerId),ke(zo),ne.current(),tt()},[tt,ke]),It=u(function(){var Nt=X.current;nt(),Nt.type==="DRAGGING"&&Nt.actions.cancel({shouldBlockNextClick:!0}),Nt.type==="PENDING"&&Nt.actions.abort()},[nt]),en=u(function(){var Qt={capture:!0,passive:!1},ca={cancel:It,completed:nt,getPhase:ge},mr=He(window,Ko(ca),Qt),br=He(window,al(ca),Qt);ne.current=function(){mr(),br()}},[It,ge,nt]),un=u(function(){var Qt=ge();Qt.type==="PENDING"||fe(!1);var ca=Qt.actions.fluidLift(Qt.point);ke({type:"DRAGGING",actions:ca,hasMoved:!1})},[ge,ke]),Ut=u(function(Qt,ca){ge().type==="IDLE"||fe(!1);var mr=setTimeout(un,tl);ke({type:"PENDING",point:ca,actions:Qt,longPressTimerId:mr}),en()},[en,ge,ke,un]);Ri(function(){return tt(),function(){ne.current();var ca=ge();ca.type==="PENDING"&&(clearTimeout(ca.longPressTimerId),ke(zo))}},[ge,tt,ke]),Ri(function(){var Qt=He(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Qt},[])}function rl(V){di(function(){var X=Ti(V);Ji(function(){X.current.length===V.length||fe(!1)})})}var il={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Is(V,X){if(X==null)return!1;var ne=Boolean(il[X.tagName.toLowerCase()]);if(ne)return!0;var ge=X.getAttribute("contenteditable");return ge==="true"||ge===""?!0:X===V?!1:Is(V,X.parentElement)}function Go(V,X){var ne=X.target;return po(ne)?Is(V,ne):!1}var ol=function(V){return m(V.getBoundingClientRect()).center};function Es(V){return V instanceof Do(V).Element}var sl=function(){var V="matches";if(typeof document=="undefined")return V;var X=[V,"msMatchesSelector","webkitMatchesSelector"],ne=Lt(X,function(ge){return ge in Element.prototype});return ne||V}();function Vo(V,X){return V==null?null:V[sl](X)?V:Vo(V.parentElement,X)}function Ml(V,X){return V.closest?V.closest(X):Vo(V,X)}function Yo(V){return"["+Mi.contextId+'="'+V+'"]'}function ll(V,X){var ne=X.target;if(!Es(ne))return null;var ge=Yo(V),ke=Ml(ne,ge);return ke&&po(ke)?ke:null}function ul(V,X){var ne=ll(V,X);return ne?ne.getAttribute(Mi.draggableId):null}function cl(V,X){var ne="["+ho.contextId+'="'+V+'"]',ge=nn(document.querySelectorAll(ne)),ke=Lt(ge,function(Ne){return Ne.getAttribute(ho.id)===X});return ke&&po(ke)?ke:null}function ts(V){V.preventDefault()}function Fo(V){var X=V.expected,ne=V.phase,ge=V.isLockActive,ke=V.shouldWarn;return ge()?!(X!==ne):!1}function Xo(V){var X=V.lockAPI,ne=V.store,ge=V.registry,ke=V.draggableId;if(X.isClaimed())return!1;var Ne=ge.draggable.findById(ke);return Ne&&Ne.options.isEnabled?!!ti(ne.getState(),ke):!1}function ns(V){var X=V.lockAPI,ne=V.contextId,ge=V.store,ke=V.registry,Ne=V.draggableId,tt=V.forceSensorStop,nt=V.sourceEvent,It=Xo({lockAPI:X,store:ge,registry:ke,draggableId:Ne});if(!It)return null;var en=ke.draggable.getById(Ne),un=cl(ne,en.descriptor.id);if(!un)return null;if(nt&&!en.options.canDragInteractiveElements&&Go(un,nt))return null;var Ut=X.claim(tt||de),Nt="PRE_DRAG";function Qt(){return en.options.shouldRespectForcePress}function ca(){return X.isActive(Ut)}function mr(qr,_i){Fo({expected:qr,phase:Nt,isLockActive:ca,shouldWarn:!0})&&ge.dispatch(_i())}var br=mr.bind(null,"DRAGGING");function Tr(qr){function _i(){X.release(),Nt="COMPLETED"}Nt!=="PRE_DRAG"&&(_i(),Nt==="PRE_DRAG"||fe(!1)),ge.dispatch(Ja(qr.liftActionArgs)),Nt="DRAGGING";function Ni(e,r){if(r===void 0&&(r={shouldBlockNextClick:!1}),qr.cleanup(),r.shouldBlockNextClick){var L=He(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(L)}_i(),ge.dispatch(pt({reason:e}))}return Object(B.a)({isActive:function(){return Fo({expected:"DRAGGING",phase:Nt,isLockActive:ca,shouldWarn:!1})},shouldRespectForcePress:Qt,drop:function(r){return Ni("DROP",r)},cancel:function(r){return Ni("CANCEL",r)}},qr.actions)}function Mr(qr){var _i=S(function(e){br(function(){return Mn({client:e})})}),Ni=Tr({liftActionArgs:{id:Ne,clientSelection:qr,movementMode:"FLUID"},cleanup:function(){return _i.cancel()},actions:{move:_i}});return Object(B.a)({},Ni,{move:_i})}function zr(){var qr={moveUp:function(){return br(ma)},moveRight:function(){return br(ja)},moveDown:function(){return br(ga)},moveLeft:function(){return br(Xa)}};return Tr({liftActionArgs:{id:Ne,clientSelection:ol(un),movementMode:"SNAP"},cleanup:de,actions:qr})}function Ir(){var qr=Fo({expected:"PRE_DRAG",phase:Nt,isLockActive:ca,shouldWarn:!0});qr&&X.release()}var ni={isActive:function(){return Fo({expected:"PRE_DRAG",phase:Nt,isLockActive:ca,shouldWarn:!1})},shouldRespectForcePress:Qt,fluidLift:Mr,snapLift:zr,abort:Ir};return ni}var dl=[qs,Ki,bs];function kl(V){var X=V.contextId,ne=V.store,ge=V.registry,ke=V.customSensors,Ne=V.enableDefaultSensors,tt=[].concat(Ne?dl:[],ke||[]),nt=Object(Q.useState)(function(){return Zi()})[0],It=u(function(Mr,zr){Mr.isDragging&&!zr.isDragging&&nt.tryAbandon()},[nt]);Ri(function(){var Mr=ne.getState(),zr=ne.subscribe(function(){var Ir=ne.getState();It(Mr,Ir),Mr=Ir});return zr},[nt,ne,It]),Ri(function(){return nt.tryAbandon},[nt.tryAbandon]);var en=u(function(Tr){return Xo({lockAPI:nt,registry:ge,store:ne,draggableId:Tr})},[nt,ge,ne]),un=u(function(Tr,Mr,zr){return ns({lockAPI:nt,registry:ge,contextId:X,store:ne,draggableId:Tr,forceSensorStop:Mr,sourceEvent:zr&&zr.sourceEvent?zr.sourceEvent:null})},[X,nt,ge,ne]),Ut=u(function(Tr){return ul(X,Tr)},[X]),Nt=u(function(Tr){var Mr=ge.draggable.findById(Tr);return Mr?Mr.options:null},[ge.draggable]),Qt=u(function(){if(!nt.isClaimed())return;nt.tryAbandon(),ne.getState().phase!=="IDLE"&&ne.dispatch(Cn())},[nt,ne]),ca=u(nt.isClaimed,[nt]),mr=b(function(){return{canGetLock:en,tryGetLock:un,findClosestDraggableId:Ut,findOptionsForDraggable:Nt,tryReleaseLock:Qt,isLockClaimed:ca}},[en,un,Ut,Nt,Qt,ca]);rl(tt);for(var br=0;br{m();const c=this._commands.get(u);(c==null?void 0:c.isEmpty())&&this._commands.delete(u)});return this._onDidRegisterCommand.fire(u),o}registerCommandAlias(a,b){return p.registerCommand(a,(u,...d)=>u.get(M).executeCommand(b,...d))}getCommand(a){const b=this._commands.get(a);return!b||b.isEmpty()?void 0:W.a.first(b)}getCommands(){const a=new Map;for(const b of this._commands.keys()){const u=this.getCommand(b);u&&a.set(b,u)}return a}};p.registerCommand("noop",()=>{})},nukY:function(Ge,re){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog0Zs41WN0UWcAS96K9vI6J3mHl+inTXqmTIAq5Ahz1yudxHDcN4k5mbM2QfrWpKLOAa9CLsB4ioLSW6azUyZAFPoBdh/w4RvZYhG2lVU2ABz6AXYf8FEb2cAv21ChmxgC/Qu7q6moeHh/9KRB/JiJ20mnVuAV+gQ+fu7u4FQ0ND/yGiLXVuAy1+BizgG/Ri2HEjEZ1k5kUZsJVWsY4tEAh06N3e3v7B8fHxt4hoWh3bIRbRm5qaaHx83NOzDcMg/DCz+RNlamhoMKtXSkX5mJrUHRh0SCml/CIzn8D+mJpInYKHNDY20p49e2hoaIguX75MIyMjrrRatWoVLVu2jJ48eUJnzpxxVcZPpunTp9POnTvNot3d3TQ8POynmsSUCQ1MIcSrzPx6YjSrIMiSJUvM3jCK9PTpU3r48KHrqhcvXkxr166lQqFAp06dMn+7SRp0N1Z6Nk+orS6E+Bkzf8WfKNGX2rdvH6EnjSINDAxQb2+v66p37NhBM2bMoNu3b9PVq1ddl9OguzbVpIyhgs7MTUKIvxDR8/7EibbU1q1byfI7w3pSc3MzTZkyhbyADsABOnzsrq4uwmhgJYw406ZVn+4sXbqUFi1aZLo8fX19VdUYHR2dNEqsWbOG5sxxf0ISckydOtWsH/J5mQ88ePCArl+/HpaJQ6knVNAhkRBiLjP/m4jedfBSntatW2eC5wV0QAc3CkBcuHBhkoWslyCo2S5dukT37t2bqGbTpk00b968oNW6Ko/n4vlJSqGDDuXy+fza4tbeZUlSNgpZvIKOSMvu3btNF+rs2bP0+PHjmoA+e/Zsc+RxmzBSwU1CunbtGmGEcJswAgwODrrNXpN8kYBehP29SincFTOjJprE9BCvoK9evZrgfgBwgG4lRDkA4/37923dhJUrV5qjAUA6d+5cVa0REvTibpRXpKMuHoDK5XKfMQzj17gNzEOxSLMi2oFGBCj9/f2Bn+UFdPSSu3btMiM/PT09pp9tpS1btpg+NEC/ePFiVbn0ZNRfk0XWo1viSCm/oZT6gT/xwi+1ceNGmj9/vum/huFHegHdylv+bPTkmCijF8bk1M5NCAo63Be87E4JLhZGDqQ7d+64WtiCXl5cHCcZwvz/kYMOYXO53DEiag1TcL91xQU6IilYgLFgHhsbM1VA775t2zaaOXMm3bp1y/SH7VJQ0MOa7FaSsdKcw287hV2uJqAzc6OU8nfM/KmwFfBaXxygoxcFzAjXwWXCD/4G/HBnADu2AnR2dpohQfw33KtKCf79woULzZXKauFF9KrVthaUgo4Frmp+PCbLVjjy0aNHtgtaGCGRMg86jNDV1TVreHj4bSLa5xXOMPPHBfrevXtt1cA2gLt375p58BIgMuM3YVTA6FAplYLe0dFB1shSntftZBTrEvv379eglxown8+vKBQKuMj03bhVDMkCHT1ntUb2IhZ6a/R+TnF0PBe9J0Jv2NeC3wsWLJiIoGByaiUNupcWcJe3Jq5LGex7C4XCP4lotjsRw81lgR5ureQIeqUec/v27aabgs1Z5XHnICu4drsNdY8edsvb1CelfEkp9fsaPnLiURboiGNbrkIYcmB0KF/8sasXkGMC6nWvS1BZNehBLeihvJTy+0qpb3ooElrWsH10P4JhQomFI7gwp0+frul+71LQ8aJX6/0RXsSkFwnrDXb75qEPkp6MltAgpXxZKYXD1bGkuEFHL46YOVwWgIF95aUJ/jn8d4AGWb0mLDjZjVQ6vOjVoj7ySymfU0rhQwOxnUaKE3RMXOGyIKRoRUbwN8J41g8gx8QU/46DGV6TUyweMlg9cKW6EfLE5i+EKCEDkvU3wpF2B0TwgpXuxPQqe5T5azYZ7ejoWDI6Oiri/nRMXKADGjwbPTr8eUADuK2tsFYj49/Pnz8/CfQbN244Roiw2one2gl0O5gwiuBFxG/E6LHjEQn77NevX2/G0vESej3+FyXAbuuuCehCCGybe4uZP+xWsKjyRQ06lvkBK8KNpYsxGzZsMMOJ5Qk+MtwX5Ec5q0cs7dGxkOTUU1rbcP2CDlcK+22wHQFbIxAFKj1Kh7g6dMCEG5vJgmwYi6pt7eqtFeg/YubDcShY/swoQUc8HaeYkDDJLN20hYkdXgIAi3/HyiZ+A5xKE8Jago5QJiCGy2KNKJUWjHD0DyMHZMao4/b4XxLaPXLQpZRfVUr9NAnKQoYoQS9d6ClfdbRO77s9UV8r0OGmbN682XSpADDcFMhYbWUULgxeWvjqyOs00iSl3SMFHVdhFAoFfEggMTfwRgn63LlzTWgwrEspfbWxdXgbk0ZrMhqV6zJr1izT98YLCvcJLon1ItptAbBsCF/9ypUr5tbipKfIQC8u96O1E3XKKErQcQ0FdhfCLcEVEW4TelW8JHAdMEHFSincgqhAh4sFOXEEEC9WJVfEDnSUwXFAa7sv3B3s1QljS4Vbm3nNFwnovb29UwcGBt5m5vd7FSjq/NbQiyEXPWWYCfFxTOawwGJ3cBm9NVwFREkANv4uvYYDL0kUoOMZmBDjlJIVOqw2eXWzqQsvCoCHj4/e/ebNm+be9SROVCMBXQjxc2b+cpgQhVXX8uXLzYZGQiMDyqCHBQCFtUEL9QLy0tNL6EFxiAFA46fS2U1MTHFYGr0jRoRSHx2ugdPEzwpVVgIXgANKjDhWOBNgIrpS7S4aN6BDV7ysGCWtemFLAI9DGEkCPnTQhRBfZ+YfhgVm2PWgQRA2C7Jpyk4mDN84JVQKJsAu36aLfPCL4TYAtvKXLcwFoxUrVhB+kAAfXhwsWNm5Gm5BR52wJerHQpQ1MiH2j5+kpFBBx+dfiAjXSSf6q9PwhzHkli/WBGkUAARocRlRpevbcPDCOnQBwJ1GkVLQnfaaQG7499CnUo8OEPFyA2zI5+aEvhfQLbuhDEKQSNjekMoeHVdcKKVEPd2sC5cCvW3Qa+qsfeZhNmzY4UXo6WWy6Ad0C3jY1cnVCtKp+CkbSo8uhJhRvLToPX6E0GUqW8Dy5d0ACrjQcwMwt7F6O7sHuakrie0ZCui5XO4EEX0piQpqmbQFYIHAoOdyuW8R0fe0ObUFkmyBQKBLKT/JzH9O0gVFSTa2li0+C/gGXUq5iZn/p78mHV/j6Se7t4Av0ItXV5zMyo257s2pcybVAp5Bx+dbpJS4T/GzSVVKy6UtUG4Bz6BLKV9TSuHr0TppC9SNBTyBXrwd9zf6o1x1075a0KIFXIMupdyulMItW7FcPKRbTFsgiAVcgd7e3j6vUCggwrI5yMN0WW2BuCzgCDpi5EKIPxLRi3EJqZ+rLRDUAo6gCyFeZ+ZXgz5Il9cWiNMCtqBLKb+glPplnALqZ2sLhGGBqqDn8/m9Sql30v6xrTCMqOtIvgUqgt7T07NwcHAQe8vXJV8FLaG2gLMFngEdX3+WUr7JzB9zLq5zaAvUhwWeAV0I8QYzv1If4msptQXcWWAS6Llc7gARtbkrqnNpC9SPBSZAb29vf9/4+Dg+phXblc71YzYtab1ZwAS9s7Nz6cjICK50ju0jWvVmOC1vfVnAKF7pjPsRP1RfomtptQXcWwB7y3+slDrkvojOqS1QfxZw3AJQfyppibNkgWPHjrGDvsowjMMa9CxRkUJdHUAfNwzjQGtr6wkNegobP0sq2YD+1DCMz7e2tv4B9tCgZ4mKFOpaBfTBxsbGTx85cuRvlsoa9BQ2fpZUqgD6w4aGhhdbWlpwS8VE0qBniYoU6loKumEYdxobG184fPhwR7mqGvQUNn6WVCoB/VpDQ8PzLS0tZyvpr0HPEhUp1LUI+gUi+vjRo0cvV1NRg57Cxs+SSsePH+9qamr6xKFDh27a6a1BzxIVKdS1ra1t4cGDB/udVPs/YIoD4AHLutsAAAAASUVORK5CYII="},ogmK:function(Ge,re,y){"use strict";y.d(re,"a",function(){return Ta});var Q=y("1OyB"),W=y("vuIU"),k=y("Ji7U"),B=y("LK+K"),O=y("rePB"),R=y("VTBJ"),M=y("ODXe"),p=y("q1tI"),a=y("TSYQ"),b=y.n(a),u=y("Kwbf"),d=y("6cGi"),m=y("U8pU"),o=y("4IlW"),c=p.createContext({}),f=c,i={visibility:"hidden"};function t(ue){var ot=ue.prefixCls,lt=ue.prevIcon,ft=lt===void 0?"\u2039":lt,wt=ue.nextIcon,Et=wt===void 0?"\u203A":wt,jt=ue.superPrevIcon,Yt=jt===void 0?"\xAB":jt,wn=ue.superNextIcon,fn=wn===void 0?"\xBB":wn,zn=ue.onSuperPrev,jn=ue.onSuperNext,$t=ue.onPrev,yn=ue.onNext,pn=ue.children,On=p.useContext(f),cn=On.hideNextBtn,sn=On.hidePrevBtn;return p.createElement("div",{className:ot},zn&&p.createElement("button",{type:"button",onClick:zn,tabIndex:-1,className:"".concat(ot,"-super-prev-btn"),style:sn?i:{}},Yt),$t&&p.createElement("button",{type:"button",onClick:$t,tabIndex:-1,className:"".concat(ot,"-prev-btn"),style:sn?i:{}},ft),p.createElement("div",{className:"".concat(ot,"-view")},pn),yn&&p.createElement("button",{type:"button",onClick:yn,tabIndex:-1,className:"".concat(ot,"-next-btn"),style:cn?i:{}},Et),jn&&p.createElement("button",{type:"button",onClick:jn,tabIndex:-1,className:"".concat(ot,"-super-next-btn"),style:cn?i:{}},fn))}var l=t;function s(ue){var ot=p.useContext(f),lt=ot.hideHeader;if(lt)return null;var ft=ue.prefixCls,wt=ue.generateConfig,Et=ue.locale,jt=ue.value,Yt=ue.format,wn="".concat(ft,"-header");return p.createElement(l,{prefixCls:wn},jt?wt.locale.format(Et.locale,jt,Yt):"\xA0")}var w=s,D=y("YrtM"),C=y("KQm4"),v=new Map;function n(ue,ot,lt){if(v.get(ue)&&cancelAnimationFrame(v.get(ue)),lt<=0){v.set(ue,requestAnimationFrame(function(){ue.scrollTop=ot}));return}var ft=ot-ue.scrollTop,wt=ft/lt*10;v.set(ue,requestAnimationFrame(function(){ue.scrollTop+=wt,ue.scrollTop!==ot&&n(ue,ot,lt-10)}))}function _(ue,ot){var lt=ot.onLeftRight,ft=ot.onCtrlLeftRight,wt=ot.onUpDown,Et=ot.onPageUpDown,jt=ot.onEnter,Yt=ue.which,wn=ue.ctrlKey,fn=ue.metaKey;switch(Yt){case o.a.LEFT:if(wn||fn){if(ft)return ft(-1),!0}else if(lt)return lt(-1),!0;break;case o.a.RIGHT:if(wn||fn){if(ft)return ft(1),!0}else if(lt)return lt(1),!0;break;case o.a.UP:if(wt)return wt(-1),!0;break;case o.a.DOWN:if(wt)return wt(1),!0;break;case o.a.PAGE_UP:if(Et)return Et(-1),!0;break;case o.a.PAGE_DOWN:if(Et)return Et(1),!0;break;case o.a.ENTER:if(jt)return jt(),!0;break}return!1}function h(ue,ot,lt,ft){var wt=ue;if(!wt)switch(ot){case"time":wt=ft?"hh:mm:ss a":"HH:mm:ss";break;case"week":wt="gggg-wo";break;case"month":wt="YYYY-MM";break;case"quarter":wt="YYYY-[Q]Q";break;case"year":wt="YYYY";break;default:wt=lt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return wt}function g(ue,ot){var lt=ue==="time"?8:10;return Math.max(lt,ot.length)+2}var x=null,T=new Set;function S(ue){return!x&&typeof window!="undefined"&&window.addEventListener&&(x=function(lt){Object(C.a)(T).forEach(function(ft){ft(lt)})},window.addEventListener("mousedown",x)),T.add(ue),function(){T.delete(ue),T.size===0&&(window.removeEventListener("mousedown",x),x=null)}}var E=function(ot){return ot==="month"||ot==="date"?"year":ot},U=function(ot){return ot==="date"?"month":ot},F=function(ot){return ot==="month"||ot==="date"?"quarter":ot},P=function(ot){return ot==="date"?"week":ot},H={year:E,month:U,quarter:F,week:P,time:null,date:null};function N(ue,ot){return ue.some(function(lt){return lt&<.contains(ot)})}function A(ue){var ot=ue.prefixCls,lt=ue.units,ft=ue.onSelect,wt=ue.value,Et=ue.active,jt=ue.hideDisabledOptions,Yt="".concat(ot,"-cell"),wn=p.useContext(f),fn=wn.open,zn=p.useRef(null),jn=p.useRef(new Map);return p.useLayoutEffect(function(){var $t=jn.current.get(wt);$t&&fn!==!1&&n(zn.current,$t.offsetTop,120)},[wt]),p.useLayoutEffect(function(){if(fn){var $t=jn.current.get(wt);$t&&n(zn.current,$t.offsetTop,0)}},[fn]),p.createElement("ul",{className:b()("".concat(ot,"-column"),Object(O.a)({},"".concat(ot,"-column-active"),Et)),ref:zn,style:{position:"relative"}},lt.map(function($t){var yn;return jt&&$t.disabled?null:p.createElement("li",{key:$t.value,ref:function(On){jn.current.set($t.value,On)},className:b()(Yt,(yn={},Object(O.a)(yn,"".concat(Yt,"-disabled"),$t.disabled),Object(O.a)(yn,"".concat(Yt,"-selected"),wt===$t.value),yn)),onClick:function(){if($t.disabled)return;ft($t.value)}},p.createElement("div",{className:"".concat(Yt,"-inner")},$t.label))}))}var G=A;function K(ue,ot){for(var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",ft=String(ue);ft.length=12,Vt%=12);var Xn=p.useMemo(function(){if(!fn)return[!1,!1];var Va=[!0,!0];return Kt.forEach(function(Za){var pa=Za.disabled,Ja=Za.value;if(pa)return;Ja>=12?Va[1]=!1:Va[0]=!1}),Va},[fn,Kt]),ha=Object(M.a)(Xn,2),Jn=ha[0],Aa=ha[1],Zn=p.useMemo(function(){return fn?Kt.filter(rn?function(Va){return Va.value>=12}:function(Va){return Va.value<12}).map(function(Va){var Za=Va.value%12,pa=Za===0?"12":K(Za,2);return Object(R.a)(Object(R.a)({},Va),{},{label:pa,value:Za})}):Kt},[fn,Kt]),ea=me(0,59,yn,sn&&sn(Vt)),er=me(0,59,On,En&&En(Vt,Dt));ft.current={onUpDown:function(Za){var pa=Vn[wt];if(pa)for(var Ja=pa.units.findIndex(function(Rn){return Rn.value===pa.value}),or=pa.units.length,Ln=1;Ln1&&(jt=ot.addDate(jt,-7)),jt}function vt(ue,ot,lt){var ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ot){case"year":return lt.addYear(ue,ft*10);case"quarter":case"month":return lt.addYear(ue,ft);default:return lt.addMonth(ue,ft)}}var mt=p.createContext({}),on=mt;function hn(ue){var ot=ue.cellPrefixCls,lt=ue.generateConfig,ft=ue.rangedValue,wt=ue.hoverRangedValue,Et=ue.isInView,jt=ue.isSameCell,Yt=ue.offsetCell,wn=ue.today,fn=ue.value;function zn(jn){var $t,yn=Yt(jn,-1),pn=Yt(jn,1),On=de(ft,0),cn=de(ft,1),sn=de(wt,0),En=de(wt,1),Pn=Hn(lt,sn,En,jn);function Kn(Dt){return jt(On,Dt)}function Vn(Dt){return jt(cn,Dt)}var ua=jt(sn,jn),xa=jt(En,jn),rn=(Pn||xa)&&(!Et(yn)||Vn(yn)),Vt=(Pn||ua)&&(!Et(pn)||Kn(pn));return $t={},Object(O.a)($t,"".concat(ot,"-in-view"),Et(jn)),Object(O.a)($t,"".concat(ot,"-in-range"),Hn(lt,On,cn,jn)),Object(O.a)($t,"".concat(ot,"-range-start"),Kn(jn)),Object(O.a)($t,"".concat(ot,"-range-end"),Vn(jn)),Object(O.a)($t,"".concat(ot,"-range-start-single"),Kn(jn)&&!cn),Object(O.a)($t,"".concat(ot,"-range-end-single"),Vn(jn)&&!On),Object(O.a)($t,"".concat(ot,"-range-start-near-hover"),Kn(jn)&&(jt(yn,sn)||Hn(lt,sn,En,yn))),Object(O.a)($t,"".concat(ot,"-range-end-near-hover"),Vn(jn)&&(jt(pn,En)||Hn(lt,sn,En,pn))),Object(O.a)($t,"".concat(ot,"-range-hover"),Pn),Object(O.a)($t,"".concat(ot,"-range-hover-start"),ua),Object(O.a)($t,"".concat(ot,"-range-hover-end"),xa),Object(O.a)($t,"".concat(ot,"-range-hover-edge-start"),rn),Object(O.a)($t,"".concat(ot,"-range-hover-edge-end"),Vt),Object(O.a)($t,"".concat(ot,"-range-hover-edge-start-near-range"),rn&&jt(yn,cn)),Object(O.a)($t,"".concat(ot,"-range-hover-edge-end-near-range"),Vt&&jt(pn,On)),Object(O.a)($t,"".concat(ot,"-today"),jt(wn,jn)),Object(O.a)($t,"".concat(ot,"-selected"),jt(fn,jn)),$t}return zn}function Ot(ue){for(var ot=ue.prefixCls,lt=ue.disabledDate,ft=ue.onSelect,wt=ue.rowNum,Et=ue.colNum,jt=ue.prefixColumn,Yt=ue.rowClassName,wn=ue.baseDate,fn=ue.getCellClassName,zn=ue.getCellText,jn=ue.getCellNode,$t=ue.getCellDate,yn=ue.titleCell,pn=ue.headerCells,On=p.useContext(f),cn=On.onDateMouseEnter,sn=On.onDateMouseLeave,En="".concat(ot,"-cell"),Pn=[],Kn=0;Kn2&&arguments[2]!==void 0?arguments[2]:!1;(Ze===On||Er)&&(Cn(oa),xa&&xa(oa),or&&or(oa,Ua),rn&&!Zt(Yt,oa,Xa)&&rn(oa))},Qn=function(oa){return Dn.current&&Dn.current.onKeyDown?([o.a.LEFT,o.a.RIGHT,o.a.UP,o.a.DOWN,o.a.PAGE_UP,o.a.PAGE_DOWN,o.a.ENTER].includes(oa.which)&&oa.preventDefault(),Dn.current.onKeyDown(oa)):(Object(u.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},wa=function(oa){Dn.current&&Dn.current.onBlur&&Dn.current.onBlur(oa)};pa&&la!=="right"&&(pa.current={onKeyDown:Qn,onClose:function(){Dn.current&&Dn.current.onClose&&Dn.current.onClose()}}),p.useEffect(function(){wn&&!ma.current&&_t(wn)},[wn]),p.useEffect(function(){ma.current=!1},[]);var tr,Ya=Object(R.a)(Object(R.a)({},ue),{},{operationRef:Dn,prefixCls:ft,viewDate:pt,value:Xa,onViewDateChange:Xe,sourceMode:Pt,onPanelChange:gn,disabledDate:Ze!=="decade"?$t:void 0});delete Ya.onChange,delete Ya.onSelect;switch(Ze){case"decade":tr=p.createElement(z,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;case"year":tr=p.createElement(ve,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;case"month":tr=p.createElement(Sn,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;case"quarter":tr=p.createElement(Ea,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;case"week":tr=p.createElement(ta,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;case"time":delete Ya.showTime,tr=p.createElement(st,Object.assign({},Ya,Object(m.a)(Pn)==="object"?Pn:null,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}));break;default:Pn?tr=p.createElement(nn,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}})):tr=p.createElement(Ie,Object.assign({},Ya,{onSelect:function(oa,Ua){Xe(oa),bt(oa,Ua)}}))}var ar,Ar,hr=function(){var oa=Yt.getNow(),Ua=et(Yt.getHour(oa),Yt.getMinute(oa),Yt.getSecond(oa),Ha?ha:1,Sr?Aa:1,Va?ea:1),Er=He(Yt,oa,Ua[0],Ua[1],Ua[2]);bt(Er,"submit")};Ln||(ar=Y(ft,Ze,Vn),Ar=te({prefixCls:ft,components:ln,needConfirmButton:er,okDisabled:!Xa||$t&&$t(Xa),locale:jt,showNow:En,onNow:er&&hr,onOk:function(){Xa&&(bt(Xa,"submit",!0),xt&&xt(Xa))}}));var sr;if(Kn&&Ze==="date"&&On==="date"&&!Pn){var va=Yt.getNow(),_a="".concat(ft,"-today-btn"),ur=$t&&$t(va);sr=p.createElement("a",{className:b()(_a,ur&&"".concat(_a,"-disabled")),"aria-disabled":ur,onClick:function(){ur||bt(va,"mouse",!0)}},jt.today)}return p.createElement(f.Provider,{value:Object(R.a)(Object(R.a)({},Za),{},{hideHeader:"hideHeader"in ue?ua:Za.hideHeader,hidePrevBtn:Ra&&la==="right",hideNextBtn:Ra&&la==="left"})},p.createElement("div",{tabIndex:sn,className:b()("".concat(ft,"-panel"),wt,(ot={},Object(O.a)(ot,"".concat(ft,"-panel-has-range"),Mn&&Mn[0]&&Mn[1]),Object(O.a)(ot,"".concat(ft,"-panel-has-range-hover"),Ca&&Ca[0]&&Ca[1]),Object(O.a)(ot,"".concat(ft,"-panel-rtl"),Kt==="rtl"),ot)),style:Et,onKeyDown:Qn,onBlur:wa,onMouseDown:Dt,ref:Ja},tr,ar||Ar||sr?p.createElement("div",{className:"".concat(ft,"-footer")},ar,Ar,sr):null))}var se=_e,ut=y("uciX"),vn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Wn(ue){var ot,lt=ue.prefixCls,ft=ue.popupElement,wt=ue.popupStyle,Et=ue.visible,jt=ue.dropdownClassName,Yt=ue.dropdownAlign,wn=ue.transitionName,fn=ue.getPopupContainer,zn=ue.children,jn=ue.range,$t=ue.popupPlacement,yn=ue.direction,pn="".concat(lt,"-dropdown"),On=function(){return $t!==void 0?$t:yn==="rtl"?"bottomRight":"bottomLeft"};return p.createElement(ut.a,{showAction:[],hideAction:[],popupPlacement:On(),builtinPlacements:vn,prefixCls:pn,popupTransitionName:wn,popup:ft,popupAlign:Yt,popupVisible:Et,popupClassName:b()(jt,(ot={},Object(O.a)(ot,"".concat(pn,"-range"),jn),Object(O.a)(ot,"".concat(pn,"-rtl"),yn==="rtl"),ot)),popupStyle:wt,getPopupContainer:fn},zn)}var Oa=Wn;function dn(ue){var ot=ue.open,lt=ue.value,ft=ue.isClickOutside,wt=ue.triggerOpen,Et=ue.forwardKeyDown,jt=ue.blurToCancel,Yt=ue.onSubmit,wn=ue.onCancel,fn=ue.onFocus,zn=ue.onBlur,jn=Object(p.useState)(!1),$t=Object(M.a)(jn,2),yn=$t[0],pn=$t[1],On=Object(p.useState)(!1),cn=Object(M.a)(On,2),sn=cn[0],En=cn[1],Pn=Object(p.useRef)(!1),Kn=Object(p.useRef)(!1),Vn={onMouseDown:function(){pn(!0),wt(!0)},onKeyDown:function(xa){switch(xa.which){case o.a.ENTER:{ot?Yt()!==!1&&pn(!0):wt(!0),xa.preventDefault();return}case o.a.TAB:{yn&&ot&&!xa.shiftKey?(pn(!1),xa.preventDefault()):!yn&&ot&&(!Et(xa)&&xa.shiftKey&&(pn(!0),xa.preventDefault()));return}case o.a.ESC:{pn(!0),wn();return}}!ot&&![o.a.SHIFT].includes(xa.which)?wt(!0):yn||Et(xa)},onFocus:function(xa){pn(!0),En(!0),fn&&fn(xa)},onBlur:function(xa){if(Pn.current||!ft(document.activeElement)){Pn.current=!1;return}jt?setTimeout(function(){ft(document.activeElement)&&wn()},0):ot&&(wt(!1),Kn.current&&Yt()),En(!1),zn&&zn(xa)}};return Object(p.useEffect)(function(){Kn.current=!1},[ot]),Object(p.useEffect)(function(){Kn.current=!0},[lt]),Object(p.useEffect)(function(){return S(function(ua){var xa=ua.target;ot&&(ft(xa)?sn||wt(!1):(Pn.current=!0,requestAnimationFrame(function(){Pn.current=!1})))})}),[Vn,{focused:sn,typing:yn}]}function Tn(ue){var ot=ue.valueTexts,lt=ue.onTextChange,ft=p.useState(""),wt=Object(M.a)(ft,2),Et=wt[0],jt=wt[1],Yt=p.useRef([]);Yt.current=ot;function wn(zn){jt(zn),lt(zn)}function fn(){jt(Yt.current[0])}return p.useEffect(function(){ot.every(function(zn){return zn!==Et})&&fn()},[ot.join("||")]),[Et,wn,fn]}var ya=y("Gytx"),fr=y.n(ya);function gr(ue,ot){var lt=ot.formatList,ft=ot.generateConfig,wt=ot.locale;return Object(D.a)(function(){if(!ue)return[[""],""];for(var Et="",jt=[],Yt=0;Yt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(fn.current),sn){wn(cn);return}fn.current=requestAnimationFrame(function(){wn(cn)})}var jn=gr(Yt,{formatList:lt,generateConfig:ft,locale:wt}),$t=Object(M.a)(jn,2),yn=$t[1];function pn(cn){zn(cn)}function On(){var cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;zn(null,cn)}return Object(p.useEffect)(function(){On(!0)},[ue]),Object(p.useEffect)(function(){return function(){return cancelAnimationFrame(fn.current)}},[]),[yn,pn,On]}function Qa(ue){var ot,lt=ue.prefixCls,ft=lt===void 0?"rc-picker":lt,wt=ue.id,Et=ue.tabIndex,jt=ue.style,Yt=ue.className,wn=ue.dropdownClassName,fn=ue.dropdownAlign,zn=ue.popupStyle,jn=ue.transitionName,$t=ue.generateConfig,yn=ue.locale,pn=ue.inputReadOnly,On=ue.allowClear,cn=ue.autoFocus,sn=ue.showTime,En=ue.picker,Pn=En===void 0?"date":En,Kn=ue.format,Vn=ue.use12Hours,ua=ue.value,xa=ue.defaultValue,rn=ue.open,Vt=ue.defaultOpen,Dt=ue.defaultOpenValue,zt=ue.suffixIcon,xt=ue.clearIcon,ln=ue.disabled,Kt=ue.disabledDate,Xn=ue.placeholder,ha=ue.getPopupContainer,Jn=ue.pickerRef,Aa=ue.panelRender,Zn=ue.onChange,ea=ue.onOpenChange,er=ue.onFocus,Ha=ue.onBlur,Sr=ue.onMouseDown,Va=ue.onMouseUp,Za=ue.onMouseEnter,pa=ue.onMouseLeave,Ja=ue.onContextMenu,or=ue.onClick,Ln=ue.direction,Wt=ue.autoComplete,Rn=Wt===void 0?"off":Wt,Ra=p.useRef(null),la=Pn==="date"&&!!sn||Pn==="time",Mn=ie(h(Kn,Pn,sn,Vn)),Ca=p.useRef(null),Dn=p.useRef(null),ma=Object(d.a)(null,{value:ua,defaultValue:xa}),ga=Object(M.a)(ma,2),ja=ga[0],Xa=ga[1],Cn=p.useState(ja),nr=Object(M.a)(Cn,2),$e=nr[0],pt=nr[1],_t=p.useRef(null),Xe=Object(d.a)(!1,{value:rn,defaultValue:Vt,postState:function(wr){return ln?!1:wr},onChange:function(wr){ea&&ea(wr),!wr&&_t.current&&_t.current.onClose&&_t.current.onClose()}}),Ee=Object(M.a)(Xe,2),Be=Ee[0],Ce=Ee[1],Ze=gr($e,{formatList:Mn,generateConfig:$t,locale:yn}),Ke=Object(M.a)(Ze,2),St=Ke[0],it=Ke[1],Pt=Tn({valueTexts:St,onTextChange:function(wr){var Xr=$t.locale.parse(yn.locale,wr,Mn);Xr&&(!Kt||!Kt(Xr))&&pt(Xr)}}),an=Object(M.a)(Pt,3),gn=an[0],bt=an[1],Qn=an[2],wa=function(wr){pt(wr),Xa(wr),Zn&&!Zt($t,ja,wr)&&Zn(wr,wr?$t.locale.format(yn.locale,wr,Mn[0]):"")},tr=function(wr){if(ln&&wr)return;Ce(wr)},Ya=function(wr){return Be&&_t.current&&_t.current.onKeyDown?_t.current.onKeyDown(wr):(Object(u.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ar=function(){Va&&Va.apply(void 0,arguments),Ra.current&&(Ra.current.focus(),tr(!0))},Ar=dn({blurToCancel:la,open:Be,value:gn,triggerOpen:tr,forwardKeyDown:Ya,isClickOutside:function(wr){return!N([Ca.current,Dn.current],wr)},onSubmit:function(){return Kt&&Kt($e)?!1:(wa($e),tr(!1),Qn(),!0)},onCancel:function(){tr(!1),pt(ja),Qn()},onFocus:er,onBlur:Ha}),hr=Object(M.a)(Ar,2),sr=hr[0],va=hr[1],_a=va.focused,ur=va.typing;p.useEffect(function(){Be||(pt(ja),!St.length||St[0]===""?bt(""):it!==gn&&Qn())},[Be,St]),p.useEffect(function(){Be||Qn()},[Pn]),p.useEffect(function(){pt(ja)},[ja]),Jn&&(Jn.current={focus:function(){Ra.current&&Ra.current.focus()},blur:function(){Ra.current&&Ra.current.blur()}});var Ba=Object(R.a)(Object(R.a)({},ue),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),oa=p.createElement(se,Object.assign({},Ba,{generateConfig:$t,className:b()(Object(O.a)({},"".concat(ft,"-panel-focused"),!ur)),value:$e,locale:yn,tabIndex:-1,onChange:pt,direction:Ln}));Aa&&(oa=Aa(oa));var Ua=p.createElement("div",{className:"".concat(ft,"-panel-container"),onMouseDown:function(wr){wr.preventDefault()}},oa),Er;zt&&(Er=p.createElement("span",{className:"".concat(ft,"-suffix")},zt));var Ka;On&&ja&&!ln&&(Ka=p.createElement("span",{onMouseDown:function(wr){wr.preventDefault(),wr.stopPropagation()},onMouseUp:function(wr){wr.preventDefault(),wr.stopPropagation(),wa(null),tr(!1)},className:"".concat(ft,"-clear")},xt||p.createElement("span",{className:"".concat(ft,"-clear-btn")})));var yt=function(wr,Xr){(Xr==="submit"||Xr!=="key"&&!la)&&(wa(wr),tr(!1))},qa=Ln==="rtl"?"bottomRight":"bottomLeft",Lr=ir(gn,{formatList:Mn,generateConfig:$t,locale:yn}),_r=Object(M.a)(Lr,3),Tt=_r[0],pr=_r[1],Yn=_r[2];return p.createElement(f.Provider,{value:{operationRef:_t,hideHeader:Pn==="time",panelRef:Ca,onSelect:yt,open:Be,defaultOpenValue:Dt,onDateMouseEnter:pr,onDateMouseLeave:Yn}},p.createElement(Oa,{visible:Be,popupElement:Ua,popupStyle:zn,prefixCls:ft,dropdownClassName:wn,dropdownAlign:fn,getPopupContainer:ha,transitionName:jn,popupPlacement:qa,direction:Ln},p.createElement("div",{className:b()(ft,Yt,(ot={},Object(O.a)(ot,"".concat(ft,"-disabled"),ln),Object(O.a)(ot,"".concat(ft,"-focused"),_a),Object(O.a)(ot,"".concat(ft,"-rtl"),Ln==="rtl"),ot)),style:jt,onMouseDown:Sr,onMouseUp:ar,onMouseEnter:Za,onMouseLeave:pa,onContextMenu:Ja,onClick:or},p.createElement("div",{className:b()("".concat(ft,"-input"),Object(O.a)({},"".concat(ft,"-input-placeholder"),!!Tt)),ref:Dn},p.createElement("input",Object.assign({id:wt,tabIndex:Et,disabled:ln,readOnly:pn||!ur,value:Tt||gn,onChange:function(wr){bt(wr.target.value)},autoFocus:cn,placeholder:Xn,ref:Ra,title:gn},sr,{size:g(Pn,Mn[0])},le(ue),{autoComplete:Rn})),Er,Ka))))}var ba=function(ue){Object(k.a)(lt,ue);var ot=Object(B.a)(lt);function lt(){var ft;return Object(Q.a)(this,lt),ft=ot.apply(this,arguments),ft.pickerRef=p.createRef(),ft.focus=function(){ft.pickerRef.current&&ft.pickerRef.current.focus()},ft.blur=function(){ft.pickerRef.current&&ft.pickerRef.current.blur()},ft}return Object(W.a)(lt,[{key:"render",value:function(){return p.createElement(Qa,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),lt}(p.Component),Na=ba;function Ma(ue,ot,lt){var ft=ue.picker,wt=ue.locale,Et=ue.selectedValue,jt=ue.disabledDate,Yt=ue.disabled,wn=ue.generateConfig,fn=de(Et,0),zn=de(Et,1);function jn(cn){var sn=wn.getYear(cn),En=wn.locale.getWeek(wt.locale,cn);return sn*100+En}function $t(cn){var sn=wn.getYear(cn),En=wn.getMonth(cn);return sn*100+En}function yn(cn){var sn=wn.getYear(cn),En=xe(wn,cn);return sn*10+En}var pn=p.useCallback(function(cn){if(jt&&jt(cn))return!0;if(Yt[1]&&zn)return!gt(wn,cn,zn)&&wn.isAfter(cn,zn);if(ot&&zn)switch(ft){case"quarter":return yn(cn)>yn(zn);case"month":return $t(cn)>$t(zn);case"week":return jn(cn)>jn(zn);default:return!gt(wn,cn,zn)&&wn.isAfter(cn,zn)}return!1},[jt,Yt[1],zn,ot]),On=p.useCallback(function(cn){if(jt&&jt(cn))return!0;if(Yt[0]&&fn)return!gt(wn,cn,zn)&&wn.isAfter(fn,cn);if(lt&&fn)switch(ft){case"quarter":return yn(cn)0&&arguments[0]!==void 0?arguments[0]:!1,Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wr=null;Yn&&gi&&gi[0]&&gi[1]&&pn.isAfter(gi[1],gi[0])&&(Wr=gi);var Qr=ua;if(ua&&Object(m.a)(ua)==="object"&&ua.defaultValue){var di=ua.defaultValue;Qr=Object(R.a)(Object(R.a)({},ua),{},{defaultValue:de(di,it)||void 0})}var Ji=null;return Jn&&(Ji=function(Ti,Zi){return Jn(Ti,Zi,{range:it?"end":"start"})}),p.createElement(on.Provider,{value:{inRange:!0,panelPosition:Vr,rangedValue:co||_a,hoverRangedValue:Wr}},p.createElement(se,Object.assign({},ue,Cr,{dateRender:Ji,showTime:Qr,mode:Ua[it],generateConfig:pn,style:void 0,direction:ma,disabledDate:it===0?Lr:_r,disabledTime:function(Ti){return ha?ha(Ti,it===0?"start":"end"):!1},className:b()(Object(O.a)({},"".concat(Et,"-panel-focused"),it===0?!vi:!po)),value:de(_a,it),locale:On,tabIndex:-1,onPanelChange:function(Ti,Zi){Ka(Se(Ua,Zi,it),Se(_a,Ti,it));var xo=Ti;Vr==="right"&&Ua[it]===Zi&&(xo=vt(xo,Zi,pn,-1)),hr(xo,it)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Da=0,Pa=0;it&&_t.current&&Ee.current&&pt.current&&(Da=_t.current.offsetWidth+Ee.current.offsetWidth,pt.current.offsetWidth&&Da>pt.current.offsetWidth&&(Pa=Da));var Pr=ma==="rtl"?{right:Da}:{left:Da};function li(){var Vr,Cr=Y(Et,Ua[it],Ja),Wr=te({prefixCls:Et,components:Ca,needConfirmButton:Cn,okDisabled:!de(_a,it)||Xn&&Xn(_a[it]),locale:On,rangeList:Kr,onOk:function(){de(_a,it)&&(In(_a,it),Mn&&Mn(_a))}});if(Vn!=="time"&&!ua){var Qr=Ar(it),di=vt(Qr,Vn,pn),Ji=Ua[it],lo=Ji===Vn,Ti=$a(lo?"left":!1,{pickerValue:Qr,onPickerValueChange:function(Si){hr(Si,it)}}),Zi=$a("right",{pickerValue:di,onPickerValueChange:function(Si){hr(vt(Si,Vn,pn,-1),it)}});ma==="rtl"?Vr=p.createElement(p.Fragment,null,Zi,lo&&Ti):Vr=p.createElement(p.Fragment,null,Ti,lo&&Zi)}else Vr=$a();var xo=p.createElement(p.Fragment,null,p.createElement("div",{className:"".concat(Et,"-panels")},Vr),(Cr||Wr)&&p.createElement("div",{className:"".concat(Et,"-footer")},Cr,Wr));return Aa&&(xo=Aa(xo)),p.createElement("div",{className:"".concat(Et,"-panel-container"),style:{marginLeft:Pa},ref:pt,onMouseDown:function(Si){Si.preventDefault()}},xo)}var wi=p.createElement("div",{className:b()("".concat(Et,"-range-wrapper"),"".concat(Et,"-").concat(Vn,"-range-wrapper")),style:{minWidth:ei}},p.createElement("div",{className:"".concat(Et,"-range-arrow"),style:Pr}),li()),oi;Ha&&(oi=p.createElement("span",{className:"".concat(Et,"-suffix")},Ha));var ci;er&&(de(wa,0)&&!gn[0]||de(wa,1)&&!gn[1])&&(ci=p.createElement("span",{onMouseDown:function(Cr){Cr.preventDefault(),Cr.stopPropagation()},onMouseUp:function(Cr){Cr.preventDefault(),Cr.stopPropagation();var Wr=wa;gn[0]||(Wr=Se(Wr,null,0)),gn[1]||(Wr=Se(Wr,null,1)),In(Wr,null),La(!1,it)},className:"".concat(Et,"-clear")},Sr||p.createElement("span",{className:"".concat(Et,"-clear-btn")})));var Pi={size:g(Vn,Ze[0])},ki=0,Fi=0;_t.current&&Xe.current&&Ee.current&&(it===0?Fi=_t.current.offsetWidth:(ki=Da,Fi=Xe.current.offsetWidth));var xi=ma==="rtl"?{right:ki}:{left:ki},Jr=function(Cr,Wr){var Qr=Se(_a,Cr,it);Wr==="submit"||Wr!=="key"&&!Cn?(In(Qr,it),it===0?ui():Po()):ur(Qr)};return p.createElement(f.Provider,{value:{operationRef:an,hideHeader:Vn==="time",onDateMouseEnter:fo,onDateMouseLeave:Mi,hideRanges:!0,onSelect:Jr,open:Yn}},p.createElement(Oa,{visible:Yn,popupElement:wi,popupStyle:fn,prefixCls:Et,dropdownClassName:zn,dropdownAlign:$t,getPopupContainer:yn,transitionName:jn,range:!0,direction:ma},p.createElement("div",Object.assign({ref:$e,className:b()(Et,"".concat(Et,"-range"),wn,(ot={},Object(O.a)(ot,"".concat(Et,"-disabled"),gn[0]&&gn[1]),Object(O.a)(ot,"".concat(Et,"-focused"),it===0?Oi:Do),Object(O.a)(ot,"".concat(Et,"-rtl"),ma==="rtl"),ot)),style:Yt,onClick:so,onMouseDown:yo},le(ue)),p.createElement("div",{className:b()("".concat(Et,"-input"),(lt={},Object(O.a)(lt,"".concat(Et,"-input-active"),it===0),Object(O.a)(lt,"".concat(Et,"-input-placeholder"),!!Fr),lt)),ref:_t},p.createElement("input",Object.assign({id:jt,disabled:gn[0],readOnly:Za||!vi,value:Fr||Ei,onChange:function(Cr){ao(Cr.target.value)},autoFocus:sn,placeholder:de(cn,0)||"",ref:Be},Di,Pi,{autoComplete:Xa}))),p.createElement("div",{className:"".concat(Et,"-range-separator"),ref:Ee},Vt),p.createElement("div",{className:b()("".concat(Et,"-input"),(ft={},Object(O.a)(ft,"".concat(Et,"-input-active"),it===1),Object(O.a)(ft,"".concat(Et,"-input-placeholder"),!!Qi),ft)),ref:Xe},p.createElement("input",Object.assign({disabled:gn[1],readOnly:Za||!po,value:Qi||eo,onChange:function(Cr){ro(Cr.target.value)},placeholder:de(cn,1)||"",ref:Ce},Wi,Pi,{autoComplete:Xa}))),p.createElement("div",{className:"".concat(Et,"-active-bar"),style:Object(R.a)(Object(R.a)({},xi),{},{width:Fi,position:"absolute"})}),oi,ci)))}var da=function(ue){Object(k.a)(lt,ue);var ot=Object(B.a)(lt);function lt(){var ft;return Object(Q.a)(this,lt),ft=ot.apply(this,arguments),ft.pickerRef=p.createRef(),ft.focus=function(){ft.pickerRef.current&&ft.pickerRef.current.focus()},ft.blur=function(){ft.pickerRef.current&&ft.pickerRef.current.blur()},ft}return Object(W.a)(lt,[{key:"render",value:function(){return p.createElement(Fn,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),lt}(p.Component),Ta=da,Wa=re.b=Na},onxn:function(Ge,re){Ge.exports="data:image/png;base64,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"},osHv:function(Ge,re,y){(function(Q){Q(y("VrN/"))})(function(Q){"use strict";var W=Q.Pos;function k(i,t){return i.line-t.line||i.ch-t.ch}var B="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",O=B+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",R=new RegExp("<(/?)(["+B+"]["+O+"]*)","g");function M(i,t,l,s){this.line=t,this.ch=l,this.cm=i,this.text=i.getLine(t),this.min=s?Math.max(s.from,i.firstLine()):i.firstLine(),this.max=s?Math.min(s.to-1,i.lastLine()):i.lastLine()}function p(i,t){var l=i.cm.getTokenTypeAt(W(i.line,t));return l&&/\btag\b/.test(l)}function a(i){return i.line>=i.max?void 0:(i.ch=0,i.text=i.cm.getLine(++i.line),!0)}function b(i){return i.line<=i.min?void 0:(i.text=i.cm.getLine(--i.line),i.ch=i.text.length,!0)}function u(i){for(;;){var t=i.text.indexOf(">",i.ch);if(t==-1){if(a(i))continue;return}if(!p(i,t+1)){i.ch=t+1;continue}var l=i.text.lastIndexOf("/",t),s=l>-1&&!/\S/.test(i.text.slice(l+1,t));return i.ch=t+1,s?"selfClose":"regular"}}function d(i){for(;;){var t=i.ch?i.text.lastIndexOf("<",i.ch-1):-1;if(t==-1){if(b(i))continue;return}if(!p(i,t+1)){i.ch=t;continue}R.lastIndex=t,i.ch=t;var l=R.exec(i.text);if(l&&l.index==t)return l}}function m(i){for(;;){R.lastIndex=i.ch;var t=R.exec(i.text);if(!t){if(a(i))continue;return}if(!p(i,t.index+1)){i.ch=t.index+1;continue}return i.ch=t.index+t[0].length,t}}function o(i){for(;;){var t=i.ch?i.text.lastIndexOf(">",i.ch-1):-1;if(t==-1){if(b(i))continue;return}if(!p(i,t+1)){i.ch=t;continue}var l=i.text.lastIndexOf("/",t),s=l>-1&&!/\S/.test(i.text.slice(l+1,t));return i.ch=t+1,s?"selfClose":"regular"}}function c(i,t){for(var l=[];;){var s=m(i),w,D=i.line,C=i.ch-(s?s[0].length:0);if(!s||!(w=u(i)))return;if(w=="selfClose")continue;if(s[1]){for(var v=l.length-1;v>=0;--v)if(l[v]==s[2]){l.length=v;break}if(v<0&&(!t||t==s[2]))return{tag:s[2],from:W(D,C),to:W(i.line,i.ch)}}else l.push(s[2])}}function f(i,t){for(var l=[];;){var s=o(i);if(!s)return;if(s=="selfClose"){d(i);continue}var w=i.line,D=i.ch,C=d(i);if(!C)return;if(C[1])l.push(C[2]);else{for(var v=l.length-1;v>=0;--v)if(l[v]==C[2]){l.length=v;break}if(v<0&&(!t||t==C[2]))return{tag:C[2],from:W(i.line,i.ch),to:W(w,D)}}}}Q.registerHelper("fold","xml",function(i,t){for(var l=new M(i,t.line,0);;){var s=m(l);if(!s||l.line!=t.line)return;var w=u(l);if(!w)return;if(!s[1]&&w!="selfClose"){var D=W(l.line,l.ch),C=c(l,s[2]);return C&&k(C.from,D)>0?{from:D,to:C.from}:null}}}),Q.findMatchingTag=function(i,t,l){var s=new M(i,t.line,t.ch,l);if(s.text.indexOf(">")==-1&&s.text.indexOf("<")==-1)return;var w=u(s),D=w&&W(s.line,s.ch),C=w&&d(s);if(!w||!C||k(s,t)>0)return;var v={from:W(s.line,s.ch),to:D,tag:C[2]};return w=="selfClose"?{open:v,close:null,at:"open"}:C[1]?{open:f(s,C[2]),close:v,at:"close"}:(s=new M(i,D.line,D.ch,l),{open:v,close:c(s,C[2]),at:"open"})},Q.findEnclosingTag=function(i,t,l,s){for(var w=new M(i,t.line,t.ch,l);;){var D=f(w,s);if(!D)break;var C=new M(i,t.line,t.ch,l),v=c(C,D.tag);if(v)return{open:D,close:v}}},Q.scanForClosingTag=function(i,t,l,s){var w=new M(i,t.line,t.ch,s?{from:0,to:s}:null);return c(w,l)}})},p5ED:function(Ge,re,y){"use strict";var Q=y("+L6B"),W=y("2/Rp"),k=y("5Dmo"),B=y("3S7+"),O=y("k1fw"),R=y("tJVT"),M=y("q1tI"),p=y.n(M),a=y("vHTk"),b=y.n(a),u=y("yEEn"),d=y("ZW9T"),m=y("1vsH");re.a=function(o){var c=o.name,f=o.data,i=o.theme,t=o.type,l=o.filename,s=o.monacoEditor,w=o.className,D=o.style,C=o.close,v=o.onClose,n=o.hasMask,_=Object(M.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),h=Object(R.a)(_,2),g=h[0],x=h[1],T=Object(M.useState)(""),S=Object(R.a)(T,2),E=S[0],U=S[1],F,P=1024*1024,H=10*P,N=Object(M.useRef)();t==="office"&&(F=Object(m.T)(f).filesize,F>H&&(t="other")),l&&(s.filename=l),Object(M.useEffect)(function(){var K,$,ie=(K=document.cookie)===null||K===void 0||(($=K.replace(/\s/g,""))===null||$===void 0)?void 0:$.split(";");ie==null||ie.map(function(le){var de=le.split("=");de[0]==="_educoder_session"&&U(de[1])})},[]);var A=function(){if(f.startsWith("http")||f.startsWith("/")){G();return}Object(m.z)(l||"educoder",f,l)},G=function(){Object(m.x)(l||c,f)};return console.log("data:",f,"fileanme:",l," name:",c),p.a.createElement("div",{style:Object(O.a)({},D||{}),className:"".concat(n&&b.a.bgBlack," ").concat(t?b.a.wrp:"hide")},C&&p.a.createElement("div",{className:b.a.close,ref:N},p.a.createElement(B.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return N.current}},p.a.createElement("span",{onClick:G},p.a.createElement("i",{className:"icon-quxiaozhiding"}))),p.a.createElement(B.a,{title:"\u5173\u95ED",getPopupContainer:function(){return N.current}},p.a.createElement("span",{className:"",onClick:v},p.a.createElement("i",{className:"icon-guanbi1"})))),p.a.createElement("div",{className:"".concat(b.a[w]," ").concat(w," ").concat(b.a.monaco," ").concat(t==="txt"?"show":"hide")},t==="txt"&&p.a.createElement(d.b,s)),t==="audio"&&p.a.createElement("audio",{src:"".concat(f!=null&&f.startsWith("/")||(f==null?void 0:f.indexOf("https://"))>-1?f:"data:audio/mp3;base64,").concat(f),autoPlay:!0}),t==="video"&&p.a.createElement(p.a.Fragment,null,f!=null&&f.startsWith("/")?p.a.createElement("video",{controls:!0,src:"".concat(f),autoPlay:!0}):p.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(f),autoPlay:!0})),t==="html"&&p.a.createElement("iframe",{src:f+"&disposition=inline"}),t==="pdf"&&p.a.createElement("embed",{className:b.a.embed,src:f}),t==="image"&&p.a.createElement(p.a.Fragment,null,p.a.createElement("img",{src:"".concat(f!=null&&f.startsWith("/")||(f==null?void 0:f.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(f)})),t==="other"&&p.a.createElement("div",null,p.a.createElement(W.a,{type:"primary",size:"large",onClick:A},p.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(t==="download"||t==="office")&&p.a.createElement(W.a,{type:"primary",size:"large",onClick:A},p.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Ge,re,y){},pmY6:function(Ge,re,y){"use strict";y.d(re,"h",function(){return b}),y.d(re,"g",function(){return d}),y.d(re,"f",function(){return m}),y.d(re,"e",function(){return o}),y.d(re,"i",function(){return c}),y.d(re,"b",function(){return f}),y.d(re,"a",function(){return i}),y.d(re,"d",function(){return t}),y.d(re,"c",function(){return l});var Q=y("C/vA"),W=y("JYp7");const k=!1;let B=null;function O(s){B=s}if(k){const s="__is_disposable_tracked__";O(new class{trackDisposable(w){const D=new Error("Potentially leaked disposable").stack;setTimeout(()=>{w[s]||console.log(D)},3e3)}setParent(w,D){if(w&&w!==i.None)try{w[s]=!0}catch(C){}}markAsDisposed(w){if(w&&w!==i.None)try{w[s]=!0}catch(D){}}markAsSingleton(w){}})}function R(s){return B==null||B.trackDisposable(s),s}function M(s){B==null||B.markAsDisposed(s)}function p(s,w){B==null||B.setParent(s,w)}function a(s,w){if(!B)return;for(const D of s)B.setParent(D,w)}function b(s){return B==null||B.markAsSingleton(s),s}class u extends Error{constructor(s){super(`Encountered errors while disposing of store. Errors: [${s.join(", ")}]`);this.errors=s}}function d(s){return typeof s.dispose=="function"&&s.dispose.length===0}function m(s){if(W.a.is(s)){let w=[];for(const D of s)if(D)try{D.dispose()}catch(C){w.push(C)}if(w.length===1)throw w[0];if(w.length>1)throw new u(w);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}function o(...s){const w=c(()=>m(s));return a(s,w),w}function c(s){const w=R({dispose:Object(Q.a)(()=>{M(w),s()})});return w}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1,R(this)}dispose(){if(this._isDisposed)return;M(this),this._isDisposed=!0,this.clear()}clear(){try{m(this._toDispose.values())}finally{this._toDispose.clear()}}add(s){if(!s)return s;if(s===this)throw new Error("Cannot register a disposable on itself!");return p(s,this),this._isDisposed?f.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(s),s}}f.DISABLE_DISPOSED_WARNING=!1;class i{constructor(){this._store=new f,R(this),p(this._store,this)}dispose(){M(this),this._store.dispose()}_register(s){if(s===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(s)}}i.None=Object.freeze({dispose(){}});class t{constructor(){this._isDisposed=!1,R(this)}get value(){return this._isDisposed?void 0:this._value}set value(s){var w;if(this._isDisposed||s===this._value)return;(w=this._value)===null||w===void 0||w.dispose(),s&&p(s,this),this._value=s}clear(){this.value=void 0}dispose(){var s;this._isDisposed=!0,M(this),(s=this._value)===null||s===void 0||s.dispose(),this._value=void 0}clearAndLeak(){const s=this._value;return this._value=void 0,s&&p(s,null),s}}class l{constructor(s){this.object=s}dispose(){}}},psGv:function(Ge,re,y){var Q,W;(function(){var k;(function(){"use strict";var M=[,,function(u){function d(c){this.__parent=c,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}d.prototype.clone_empty=function(){var c=new d(this.__parent);return c.set_indent(this.__indent_count,this.__alignment_count),c},d.prototype.item=function(c){return c<0?this.__items[this.__items.length+c]:this.__items[c]},d.prototype.has_match=function(c){for(var f=this.__items.length-1;f>=0;f--)if(this.__items[f].match(c))return!0;return!1},d.prototype.set_indent=function(c,f){this.is_empty()&&(this.__indent_count=c||0,this.__alignment_count=f||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},d.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},d.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},d.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var c=this.__parent.current_line;return c.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),c.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),c.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,c.__items[0]===" "&&(c.__items.splice(0,1),c.__character_count-=1),!0}return!1},d.prototype.is_empty=function(){return this.__items.length===0},d.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},d.prototype.push=function(c){this.__items.push(c);var f=c.lastIndexOf(` `);f!==-1?this.__character_count=c.length-f:this.__character_count+=c.length},d.prototype.pop=function(){var c=null;return this.is_empty()||(c=this.__items.pop(),this.__character_count-=c.length),c},d.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},d.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},d.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},d.prototype.toString=function(){var c="";return this.is_empty()?this.__parent.indent_empty_lines&&(c=this.__parent.get_indent_string(this.__indent_count)):(c=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),c+=this.__items.join("")),c};function m(c,f){this.__cache=[""],this.__indent_size=c.indent_size,this.__indent_string=c.indent_char,c.indent_with_tabs||(this.__indent_string=new Array(c.indent_size+1).join(c.indent_char)),f=f||"",c.indent_level>0&&(f=new Array(c.indent_level+1).join(this.__indent_string)),this.__base_string=f,this.__base_string_length=f.length}m.prototype.get_indent_size=function(c,f){var i=this.__base_string_length;return f=f||0,c<0&&(i=0),i+=c*this.__indent_size,i+=f,i},m.prototype.get_indent_string=function(c,f){var i=this.__base_string;return f=f||0,c<0&&(c=0,i=""),f+=c*this.__indent_size,this.__ensure_cache(f),i+=this.__cache[f],i},m.prototype.__ensure_cache=function(c){for(;c>=this.__cache.length;)this.__add_column()},m.prototype.__add_column=function(){var c=this.__cache.length,f=0,i="";this.__indent_size&&c>=this.__indent_size&&(f=Math.floor(c/this.__indent_size),c-=f*this.__indent_size,i=new Array(f+1).join(this.__indent_string)),c&&(i+=new Array(c+1).join(" ")),this.__cache.push(i)};function o(c,f){this.__indent_cache=new m(c,f),this.raw=!1,this._end_with_newline=c.end_with_newline,this.indent_size=c.indent_size,this.wrap_line_length=c.wrap_line_length,this.indent_empty_lines=c.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new d(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(c,f){return this.__indent_cache.get_indent_string(c,f)},o.prototype.get_indent_size=function(c,f){return this.__indent_cache.get_indent_size(c,f)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(c){return this.is_empty()||!c&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(c){this.trim(!0);var f=this.current_line.pop();f&&(f[f.length-1]===` `&&(f=f.replace(/\n+$/g,"")),this.current_line.push(f)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(` `);return c!==` @@ -508,9 +508,9 @@ You passed in: '`+this.raw_options[c]+"'");return t},d.prototype._is_valid_selec `)),F=G+F.replace(/\n/g,` `+G)}N&&(F?F=N+F+` `+A:F=N+A),T.print_newline(!1),F&&(S.text=F,S.whitespace_before="",S.newlines=0,T.add_raw_token(S),T.print_newline(!0))}},_.prototype._handle_tag_open=function(T,S,E,U){var F=this._get_tag_open_token(S);return(E.is_unformatted||E.is_content_unformatted)&&!E.is_empty_element&&S.type===i.TAG_OPEN&&S.text.indexOf("]*)/),this.tag_check=E?E[1]:""):(E=S.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=E?E[1]:"",(S.text.startsWith("{{#>")||S.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&S.next!==null?this.tag_check=S.next.text.split(" ")[0]:this.tag_check=S.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),S.type===i.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||S.closed&&S.closed.text==="/>";var U=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(U=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(U)))}};_.prototype._get_tag_open_token=function(T){var S=new h(this._tag_stack.get_parser_token(),T);return S.alignment_size=this._options.wrap_attributes_indent_size,S.is_end_tag=S.is_end_tag||C(S.tag_check,this._options.void_elements),S.is_empty_element=S.tag_complete||S.is_start_tag&&S.is_end_tag,S.is_unformatted=!S.tag_complete&&C(S.tag_check,this._options.unformatted),S.is_content_unformatted=!S.is_empty_element&&C(S.tag_check,this._options.content_unformatted),S.is_inline_element=C(S.tag_name,this._options.inline)||S.tag_name.includes("-")||S.tag_start_char==="{",S},_.prototype._set_tag_position=function(T,S,E,U,F){if(E.is_empty_element||(E.is_end_tag?E.start_tag_token=this._tag_stack.try_pop(E.tag_name):(this._do_optional_end_element(E)&&(E.is_inline_element||T.print_newline(!1)),this._tag_stack.record_tag(E),(E.tag_name==="script"||E.tag_name==="style")&&!(E.is_unformatted||E.is_content_unformatted)&&(E.custom_beautifier_name=D(E.tag_check,S)))),C(E.tag_check,this._options.extra_liners)&&(T.print_newline(!1),T._output.just_added_blankline()||T.print_newline(!0)),E.is_empty_element){if(E.tag_start_char==="{"&&E.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),E.indent_content=!0;var P=T.current_line_has_match(/{{#if/);P||T.print_newline(!1)}E.tag_name==="!--"&&F.type===i.TAG_CLOSE&&U.is_end_tag&&E.text.indexOf(` -`)===-1||(E.is_inline_element||E.is_unformatted||T.print_newline(!1),this._calcluate_parent_multiline(T,E))}else if(E.is_end_tag){var H=!1;H=E.start_tag_token&&E.start_tag_token.multiline_content,H=H||!E.is_inline_element&&!(U.is_inline_element||U.is_unformatted)&&!(F.type===i.TAG_CLOSE&&E.start_tag_token===U)&&F.type!=="TK_CONTENT",(E.is_content_unformatted||E.is_unformatted)&&(H=!1),H&&T.print_newline(!1)}else E.indent_content=!E.custom_beautifier_name,E.tag_start_char==="<"&&(E.tag_name==="html"?E.indent_content=this._options.indent_inner_html:E.tag_name==="head"?E.indent_content=this._options.indent_head_inner_html:E.tag_name==="body"&&(E.indent_content=this._options.indent_body_inner_html)),!(E.is_inline_element||E.is_unformatted)&&(F.type!=="TK_CONTENT"||E.is_content_unformatted)&&T.print_newline(!1),this._calcluate_parent_multiline(T,E)},_.prototype._calcluate_parent_multiline=function(T,S){S.parent&&T._output.just_added_newline()&&!((S.is_inline_element||S.is_unformatted)&&S.parent.is_inline_element)&&(S.parent.multiline_content=!0)};var g=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],x=["a","audio","del","ins","map","noscript","video"];_.prototype._do_optional_end_element=function(T){var S=null;if(T.is_empty_element||!T.is_start_tag||!T.parent)return;if(T.tag_name==="body")S=S||this._tag_stack.try_pop("head");else if(T.tag_name==="li")S=S||this._tag_stack.try_pop("li",["ol","ul"]);else if(T.tag_name==="dd"||T.tag_name==="dt")S=S||this._tag_stack.try_pop("dt",["dl"]),S=S||this._tag_stack.try_pop("dd",["dl"]);else if(T.parent.tag_name==="p"&&g.indexOf(T.tag_name)!==-1){var E=T.parent.parent;(!E||x.indexOf(E.tag_name)===-1)&&(S=S||this._tag_stack.try_pop("p"))}else T.tag_name==="rp"||T.tag_name==="rt"?(S=S||this._tag_stack.try_pop("rt",["ruby","rtc"]),S=S||this._tag_stack.try_pop("rp",["ruby","rtc"])):T.tag_name==="optgroup"?S=S||this._tag_stack.try_pop("optgroup",["select"]):T.tag_name==="option"?S=S||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):T.tag_name==="colgroup"?S=S||this._tag_stack.try_pop("caption",["table"]):T.tag_name==="thead"?(S=S||this._tag_stack.try_pop("caption",["table"]),S=S||this._tag_stack.try_pop("colgroup",["table"])):T.tag_name==="tbody"||T.tag_name==="tfoot"?(S=S||this._tag_stack.try_pop("caption",["table"]),S=S||this._tag_stack.try_pop("colgroup",["table"]),S=S||this._tag_stack.try_pop("thead",["table"]),S=S||this._tag_stack.try_pop("tbody",["table"])):T.tag_name==="tr"?(S=S||this._tag_stack.try_pop("caption",["table"]),S=S||this._tag_stack.try_pop("colgroup",["table"]),S=S||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(T.tag_name==="th"||T.tag_name==="td")&&(S=S||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),S=S||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return T.parent=this._tag_stack.get_parser_token(),S},u.exports.Beautifier=_},function(u,d,m){var o=m(6).Options;function c(f){o.call(this,f,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}c.prototype=new o,u.exports.Options=c},function(u,d,m){var o=m(9).Tokenizer,c=m(9).TOKEN,f=m(13).Directives,i=m(14).TemplatablePattern,t=m(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:c.START,RAW:c.RAW,EOF:c.EOF},s=new f(/<\!--/,/-->/),w=function(D,C){o.call(this,D,C),this._current_tag_name="";var v=new i(this._input).read_options(this._options),n=new t(this._input);if(this.__patterns={word:v.until(/[\n\r\t <]/),single_quote:v.until_after(/'/),double_quote:v.until_after(/"/),attribute:v.until(/[\n\r\t =>]|\/>/),element_name:v.until(/[\n\r\t >\/]/),handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),handlebars_open:n.until(/[\n\r\t }]/),handlebars_raw_close:n.until(/}}/),comment:n.starting_with(//),cdata:n.starting_with(//),conditional_comment:n.starting_with(//),processing:n.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var _=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=n.matching(_).until_after(_)}};w.prototype=new o,w.prototype._is_comment=function(D){return!1},w.prototype._is_opening=function(D){return D.type===l.TAG_OPEN},w.prototype._is_closing=function(D,C){return D.type===l.TAG_CLOSE&&C&&((D.text===">"||D.text==="/>")&&C.text[0]==="<"||D.text==="}}"&&C.text[0]==="{"&&C.text[1]==="{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(D,C){var v=null;this._readWhitespace();var n=this._input.peek();return n===null?this._create_token(l.EOF,""):(v=v||this._read_open_handlebars(n,C),v=v||this._read_attribute(n,D,C),v=v||this._read_close(n,C),v=v||this._read_raw_content(n,D,C),v=v||this._read_content_word(n),v=v||this._read_comment_or_cdata(n),v=v||this._read_processing(n),v=v||this._read_open(n,C),v=v||this._create_token(l.UNKNOWN,this._input.next()),v)},w.prototype._read_comment_or_cdata=function(D){var C=null,v=null,n=null;if(D==="<"){var _=this._input.peek(1);_==="!"&&(v=this.__patterns.comment.read(),v?(n=s.get_directives(v),n&&n.ignore==="start"&&(v+=s.readIgnored(this._input))):v=this.__patterns.cdata.read()),v&&(C=this._create_token(l.COMMENT,v),C.directives=n)}return C},w.prototype._read_processing=function(D){var C=null,v=null,n=null;if(D==="<"){var _=this._input.peek(1);(_==="!"||_==="?")&&(v=this.__patterns.conditional_comment.read(),v=v||this.__patterns.processing.read()),v&&(C=this._create_token(l.COMMENT,v),C.directives=n)}return C},w.prototype._read_open=function(D,C){var v=null,n=null;return C||D==="<"&&(v=this._input.next(),this._input.peek()==="/"&&(v+=this._input.next()),v+=this.__patterns.element_name.read(),n=this._create_token(l.TAG_OPEN,v)),n},w.prototype._read_open_handlebars=function(D,C){var v=null,n=null;return C||this._options.indent_handlebars&&D==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(v=this.__patterns.handlebars_comment.read(),v=v||this.__patterns.handlebars.read(),n=this._create_token(l.COMMENT,v)):(v=this.__patterns.handlebars_open.read(),n=this._create_token(l.TAG_OPEN,v))),n},w.prototype._read_close=function(D,C){var v=null,n=null;return C&&(C.text[0]==="<"&&(D===">"||D==="/"&&this._input.peek(1)===">")?(v=this._input.next(),D==="/"&&(v+=this._input.next()),n=this._create_token(l.TAG_CLOSE,v)):C.text[0]==="{"&&D==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),n=this._create_token(l.TAG_CLOSE,"}}"))),n},w.prototype._read_attribute=function(D,C,v){var n=null,_="";if(v&&v.text[0]==="<")if(D==="=")n=this._create_token(l.EQUALS,this._input.next());else if(D==='"'||D==="'"){var h=this._input.next();D==='"'?h+=this.__patterns.double_quote.read():h+=this.__patterns.single_quote.read(),n=this._create_token(l.VALUE,h)}else _=this.__patterns.attribute.read(),_&&(C.type===l.EQUALS?n=this._create_token(l.VALUE,_):n=this._create_token(l.ATTRIBUTE,_));return n},w.prototype._is_content_unformatted=function(D){return this._options.void_elements.indexOf(D)===-1&&(this._options.content_unformatted.indexOf(D)!==-1||this._options.unformatted.indexOf(D)!==-1)},w.prototype._read_raw_content=function(D,C,v){var n="";if(v&&v.text[0]==="{")n=this.__patterns.handlebars_raw_close.read();else if(C.type===l.TAG_CLOSE&&C.opened.text[0]==="<"&&C.text[0]!=="/"){var _=C.opened.text.substr(1).toLowerCase();if(_==="script"||_==="style"){var h=this._read_comment_or_cdata(D);if(h)return h.type=l.TEXT,h;n=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(_)&&(n=this._input.readUntil(new RegExp("","ig")))}return n?this._create_token(l.TEXT,n):null},w.prototype._read_content_word=function(D){var C="";if(this._options.unformatted_content_delimiter&&(D===this._options.unformatted_content_delimiter[0]&&(C=this.__patterns.unformatted_content_delimiter.read())),C||(C=this.__patterns.word.read()),C)return this._create_token(l.TEXT,C)},u.exports.Tokenizer=w,u.exports.TOKEN=l}],p={};function a(u){var d=p[u];if(d!==void 0)return d.exports;var m=p[u]={exports:{}};return M[u](m,m.exports,a),m.exports}var b=a(18);k=b})();var B=k;if(!0)!(Q=[y,y("6UM0"),y("TXwP")],W=function(M){var p=y("6UM0"),a=y("TXwP");return{html_beautify:function(b,u){return B(b,u,p.js_beautify,a.css_beautify)}}}.apply(re,Q),W!==void 0&&(Ge.exports=W));else var O,R})()},pzxd:function(Ge,re,y){var Q=y("bYtY"),W=Q.retrieve2,k=Q.retrieve3,B=Q.each,O=Q.normalizeCssArray,R=Q.isString,M=Q.isObject,p=y("6GrX"),a=y("VpOo"),b=y("Xnb7"),u=y("fW2E"),d=y("gut8"),m=d.ContextCachedBy,o=d.WILL_BE_RESTORED,c=p.DEFAULT_FONT,f={left:1,right:1,center:1},i={top:1,bottom:1,middle:1},t=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],l={},s={};function w(G){return D(G),B(G.rich,D),G}function D(G){if(G){G.font=p.makeFont(G);var K=G.textAlign;K==="middle"&&(K="center"),G.textAlign=K==null||f[K]?K:"left";var $=G.textVerticalAlign||G.textBaseline;$==="center"&&($="middle"),G.textVerticalAlign=$==null||i[$]?$:"top";var ie=G.textPadding;ie&&(G.textPadding=O(G.textPadding))}}function C(G,K,$,ie,le,de){ie.rich?n(G,K,$,ie,le,de):v(G,K,$,ie,le,de)}function v(G,K,$,ie,le,de){"use strict";var Se=x(ie),He,et=!1,je=K.__attrCachedBy===m.PLAIN_TEXT;de!==o?(de&&(He=de.style,et=!Se&&je&&He),K.__attrCachedBy=Se?m.NONE:m.PLAIN_TEXT):je&&(K.__attrCachedBy=m.NONE);var me=ie.font||c;(!et||me!==(He.font||c))&&(K.font=me);var fe=G.__computedFont;G.__styleFont!==me&&(G.__styleFont=me,fe=G.__computedFont=K.font);var Ae=ie.textPadding,he=ie.textLineHeight,Ue=G.__textCotentBlock;(!Ue||G.__dirtyText)&&(Ue=G.__textCotentBlock=p.parsePlainText($,fe,Ae,he,ie.truncate));var st=Ue.outerHeight,Ve=Ue.lines,dt=Ue.lineHeight,Qe=E(s,G,ie,le),pe=Qe.baseX,xe=Qe.baseY,Le=Qe.textAlign||"left",Ye=Qe.textVerticalAlign;h(K,ie,le,pe,xe);var gt=p.adjustTextY(xe,st,Ye),Ct=pe,tn=gt;if(Se||Ae){var Zt=p.getWidth($,fe),Hn=Zt;Ae&&(Hn+=Ae[1]+Ae[3]);var ia=p.adjustTextX(pe,Hn,Le);Se&&T(G,K,ie,ia,gt,Hn,st),Ae&&(Ct=N(pe,Le,Ae),tn+=Ae[0])}K.textAlign=Le,K.textBaseline="middle",K.globalAlpha=ie.opacity||1;for(var mt=0;mt=0&&(mt=Le[ia],mt.textAlign==="right");)g(G,K,mt,ie,gt,dt,Hn,"right"),Ct-=mt.width,Hn-=mt.width,ia--;for(Zt+=(de-(Zt-Ve)-(Qe-Hn)-Ct)/2;tn<=ia;)mt=Le[tn],g(G,K,mt,ie,gt,dt,Zt+mt.width/2,"center"),Zt+=mt.width,tn++;dt+=gt}}function h(G,K,$,ie,le){if($&&K.textRotation){var de=K.textOrigin;de==="center"?(ie=$.width/2+$.x,le=$.height/2+$.y):de&&(ie=de[0]+$.x,le=de[1]+$.y),G.translate(ie,le),G.rotate(-K.textRotation),G.translate(-ie,-le)}}function g(G,K,$,ie,le,de,Se,He){var et=ie.rich[$.styleName]||{};et.text=$.text;var je=$.textVerticalAlign,me=de+le/2;je==="top"?me=de+$.height/2:je==="bottom"&&(me=de+le-$.height/2),!$.isLineHolder&&x(et)&&T(G,K,et,He==="right"?Se-$.width:He==="center"?Se-$.width/2:Se,me-$.height/2,$.width,$.height);var fe=$.textPadding;fe&&(Se=N(Se,He,fe),me-=$.height/2-fe[2]-$.textHeight/2),U(K,"shadowBlur",k(et.textShadowBlur,ie.textShadowBlur,0)),U(K,"shadowColor",et.textShadowColor||ie.textShadowColor||"transparent"),U(K,"shadowOffsetX",k(et.textShadowOffsetX,ie.textShadowOffsetX,0)),U(K,"shadowOffsetY",k(et.textShadowOffsetY,ie.textShadowOffsetY,0)),U(K,"textAlign",He),U(K,"textBaseline","middle"),U(K,"font",$.font||c);var Ae=F(et.textStroke||ie.textStroke,Ue),he=P(et.textFill||ie.textFill),Ue=W(et.textStrokeWidth,ie.textStrokeWidth);Ae&&(U(K,"lineWidth",Ue),U(K,"strokeStyle",Ae),K.strokeText($.text,Se,me)),he&&(U(K,"fillStyle",he),K.fillText($.text,Se,me))}function x(G){return!!(G.textBackgroundColor||G.textBorderWidth&&G.textBorderColor)}function T(G,K,$,ie,le,de,Se){var He=$.textBackgroundColor,et=$.textBorderWidth,je=$.textBorderColor,me=R(He);if(U(K,"shadowBlur",$.textBoxShadowBlur||0),U(K,"shadowColor",$.textBoxShadowColor||"transparent"),U(K,"shadowOffsetX",$.textBoxShadowOffsetX||0),U(K,"shadowOffsetY",$.textBoxShadowOffsetY||0),me||et&&je){K.beginPath();var fe=$.textBorderRadius;fe?a.buildPath(K,{x:ie,y:le,width:de,height:Se,r:fe}):K.rect(ie,le,de,Se),K.closePath()}if(me)if(U(K,"fillStyle",He),$.fillOpacity!=null){var Ae=K.globalAlpha;K.globalAlpha=$.fillOpacity*$.opacity,K.fill(),K.globalAlpha=Ae}else K.fill();else if(M(He)){var he=He.image;he=b.createOrUpdateImage(he,null,G,S,He),he&&b.isImageReady(he)&&K.drawImage(he,ie,le,de,Se)}if(et&&je)if(U(K,"lineWidth",et),U(K,"strokeStyle",je),$.strokeOpacity!=null){var Ae=K.globalAlpha;K.globalAlpha=$.strokeOpacity*$.opacity,K.stroke(),K.globalAlpha=Ae}else K.stroke()}function S(G,K){K.image=G}function E(G,K,$,ie){var le=$.x||0,de=$.y||0,Se=$.textAlign,He=$.textVerticalAlign;if(ie){var et=$.textPosition;if(et instanceof Array)le=ie.x+H(et[0],ie.width),de=ie.y+H(et[1],ie.height);else{var je=K&&K.calculateTextPosition?K.calculateTextPosition(l,$,ie):p.calculateTextPosition(l,$,ie);le=je.x,de=je.y,Se=Se||je.textAlign,He=He||je.textVerticalAlign}var me=$.textOffset;me&&(le+=me[0],de+=me[1])}return G=G||{},G.baseX=le,G.baseY=de,G.textAlign=Se,G.textVerticalAlign=He,G}function U(G,K,$){return G[K]=u(G,K,$),G[K]}function F(G,K){return G==null||K<=0||G==="transparent"||G==="none"?null:G.image||G.colorStops?"#000":G}function P(G){return G==null||G==="none"?null:G.image||G.colorStops?"#000":G}function H(G,K){return typeof G=="string"?G.lastIndexOf("%")>=0?parseFloat(G)/100*K:parseFloat(G):G}function N(G,K,$){return K==="right"?G-$[1]:K==="center"?G+$[3]/2-$[1]/2:G+$[3]}function A(G,K){return G!=null&&(G||K.textBackgroundColor||K.textBorderWidth&&K.textBorderColor||K.textPadding)}re.normalizeTextStyle=w,re.renderText=C,re.getBoxPosition=E,re.getStroke=F,re.getFill=P,re.parsePercent=H,re.needDrawText=A},qH13:function(Ge,re,y){var Q=y("ItGF"),W=y("QBsz"),k=W.applyTransform,B=y("mFDi"),O=y("Qe9p"),R=y("6GrX"),M=y("pzxd"),p=y("ni6a"),a=y("Gev7"),b=y("Dagg"),u=y("dqUG"),d=y("y+Vt"),m=y("IMiH"),o=y("QuXc"),c=y("06Qe"),f=m.CMD,i=Math.round,t=Math.sqrt,l=Math.abs,s=Math.cos,w=Math.sin,D=Math.max;if(!Q.canvasSupported){var C=",",v="progid:DXImageTransform.Microsoft",n=21600,_=n/2,h=1e5,g=1e3,x=function(pe){pe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",pe.coordsize=n+","+n,pe.coordorigin="0,0"},T=function(pe){return String(pe).replace(/&/g,"&").replace(/"/g,""")},S=function(pe,xe,Le){return"rgb("+[pe,xe,Le].join(",")+")"},E=function(pe,xe){xe&&pe&&xe.parentNode!==pe&&pe.appendChild(xe)},U=function(pe,xe){xe&&pe&&xe.parentNode===pe&&pe.removeChild(xe)},F=function(pe,xe,Le){return(parseFloat(pe)||0)*h+(parseFloat(xe)||0)*g+Le},P=M.parsePercent,H=function(pe,xe,Le){var Ye=O.parse(xe);Le=+Le,isNaN(Le)&&(Le=1),Ye&&(pe.color=S(Ye[0],Ye[1],Ye[2]),pe.opacity=Le*Ye[3])},N=function(pe){var xe=O.parse(pe);return[S(xe[0],xe[1],xe[2]),xe[3]]},A=function(pe,xe,Le){var Ye=xe.fill;if(Ye!=null)if(Ye instanceof o){var gt,Ct=0,tn=[0,0],Zt=0,Hn=1,ia=Le.getBoundingRect(),mt=ia.width,pt=ia.height;if(Ye.type==="linear"){gt="gradient";var on=Le.transform,hn=[Ye.x*mt,Ye.y*pt],Ot=[Ye.x2*mt,Ye.y2*pt];on&&(k(hn,hn,on),k(Ot,Ot,on));var Xt=Ot[0]-hn[0],ht=Ot[1]-hn[1];Ct=Math.atan2(Xt,ht)*180/Math.PI,Ct<0&&(Ct+=360),Ct<1e-6&&(Ct=0)}else{gt="gradientradial";var hn=[Ye.x*mt,Ye.y*pt],on=Le.transform,Je=Le.scale,rt=mt,Te=pt;tn=[(hn[0]-ia.x)/rt,(hn[1]-ia.y)/Te],on&&k(hn,hn,on),rt/=Je[0]*n,Te/=Je[1]*n;var Me=D(rt,Te);Zt=2*0/Me,Hn=2*Ye.r/Me-Zt}var Ie=Ye.colorStops.slice();Ie.sort(function(Gt,ze){return Gt.offset-ze.offset});for(var be=Ie.length,qe=[],Lt=[],nn=0;nn=2){var Sa=qe[0][0],_n=qe[1][0],Bt=qe[0][1]*xe.opacity,mn=qe[1][1]*xe.opacity;pe.type=gt,pe.method="none",pe.focus="100%",pe.angle=Ct,pe.color=Sa,pe.color2=_n,pe.colors=Lt.join(","),pe.opacity=mn,pe.opacity2=Bt}gt==="radial"&&(pe.focusposition=tn.join(","))}else H(pe,Ye,xe.opacity)},G=function(pe,xe){xe.lineDash&&(pe.dashstyle=xe.lineDash.join(" ")),xe.stroke!=null&&!(xe.stroke instanceof o)&&H(pe,xe.stroke,xe.opacity)},K=function(pe,xe,Le,Ye){var gt=xe==="fill",Ct=pe.getElementsByTagName(xe)[0];Le[xe]!=null&&Le[xe]!=="none"&&(gt||!gt&&Le.lineWidth)?(pe[gt?"filled":"stroked"]="true",Le[xe]instanceof o&&U(pe,Ct),Ct||(Ct=c.createNode(xe)),gt?A(Ct,Le,Ye):G(Ct,Le),E(pe,Ct)):(pe[gt?"filled":"stroked"]="false",U(pe,Ct))},$=[[],[],[]],ie=function(pe,xe){var Le=f.M,Ye=f.C,gt=f.L,Ct=f.A,tn=f.Q,Zt=[],Hn,ia,mt,pt,on,hn,Ot=pe.data,Xt=pe.len();for(pt=0;pt.01?ze&&(ct+=270/n):Math.abs(Sn-Sa)<1e-4?ze&&ctta?Je-=270/n:Je+=270/n:ze&&SnSa?ht+=270/n:ht-=270/n),Zt.push(qt,i(((ta-_n)*Lt+be)*n-_),C,i(((Sa-Bt)*nn+qe)*n-_),C,i(((ta+_n)*Lt+be)*n-_),C,i(((Sa+Bt)*nn+qe)*n-_),C,i((ct*Lt+be)*n-_),C,i((Sn*nn+qe)*n-_),C,i((ht*Lt+be)*n-_),C,i((Je*nn+qe)*n-_)),on=ht,hn=Je;break;case f.R:var Gn=$[0],qn=$[1];Gn[0]=Ot[pt++],Gn[1]=Ot[pt++],qn[0]=Gn[0]+Ot[pt++],qn[1]=Gn[1]+Ot[pt++],xe&&(k(Gn,Gn,xe),k(qn,qn,xe)),Gn[0]=i(Gn[0]*n-_),qn[0]=i(qn[0]*n-_),Gn[1]=i(Gn[1]*n-_),qn[1]=i(qn[1]*n-_),Zt.push(" m ",Gn[0],C,Gn[1]," l ",qn[0],C,Gn[1]," l ",qn[0],C,qn[1]," l ",Gn[0],C,qn[1]);break;case f.Z:Zt.push(" x ")}if(Hn>0){Zt.push(ia);for(var Mt=0;Mtet&&(He=0,Se={});var Le=je.style,Ye;try{Le.font=pe,Ye=Le.fontFamily.split(",")[0]}catch(gt){}xe={style:Le.fontStyle||de,variant:Le.fontVariant||de,weight:Le.fontWeight||de,size:parseFloat(Le.fontSize||12)|0,family:Ye||"Microsoft YaHei"},Se[pe]=xe,He++}return xe},fe;R.$override("measureText",function(pe,xe){var Le=c.doc;fe||(fe=Le.createElement("div"),fe.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",c.doc.body.appendChild(fe));try{fe.style.font=xe}catch(Ye){}return fe.innerHTML="",fe.appendChild(Le.createTextNode(pe)),{width:fe.offsetWidth}});for(var Ae=new B,he=function(pe,xe,Le,Ye){var gt=this.style;this.__dirty&&M.normalizeTextStyle(gt,!0);var Ct=gt.text;if(Ct!=null&&(Ct+=""),!Ct)return;if(gt.rich){var tn=R.parseRichText(Ct,gt);Ct=[];for(var Zt=0;Zt=0&&(this.delFromStorage(p),this._roots.splice(d,1),p instanceof k&&p.delChildrenFromStorage(this))},addToStorage:function(p){return p&&(p.__storage=this,p.dirty(!1)),this},delFromStorage:function(p){return p&&(p.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:O};var M=R;Ge.exports=M},rA99:function(Ge,re,y){var Q=y("y+Vt"),W=y("QBsz"),k=y("Sj9i"),B=k.quadraticSubdivide,O=k.cubicSubdivide,R=k.quadraticAt,M=k.cubicAt,p=k.quadraticDerivativeAt,a=k.cubicDerivativeAt,b=[];function u(m,o,c){var f=m.cpx2,i=m.cpy2;return f===null||i===null?[(c?a:M)(m.x1,m.cpx1,m.cpx2,m.x2,o),(c?a:M)(m.y1,m.cpy1,m.cpy2,m.y2,o)]:[(c?p:R)(m.x1,m.cpx1,m.x2,o),(c?p:R)(m.y1,m.cpy1,m.y2,o)]}var d=Q.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(m,o){var c=o.x1,f=o.y1,i=o.x2,t=o.y2,l=o.cpx1,s=o.cpy1,w=o.cpx2,D=o.cpy2,C=o.percent;if(C===0)return;m.moveTo(c,f),w==null||D==null?(C<1&&(B(c,l,i,C,b),l=b[1],i=b[2],B(f,s,t,C,b),s=b[1],t=b[2]),m.quadraticCurveTo(l,s,i,t)):(C<1&&(O(c,l,w,i,C,b),l=b[1],w=b[2],i=b[3],O(f,s,D,t,C,b),s=b[1],D=b[2],t=b[3]),m.bezierCurveTo(l,s,w,D,i,t))},pointAt:function(m){return u(this.shape,m,!1)},tangentAt:function(m){var o=u(this.shape,m,!0);return W.normalize(o,o)}});Ge.exports=d},"rAM+":function(Ge,re,y){"use strict";y.d(re,"a",function(){return W});var Q=y("Qw5x");function W(k,B){var O;if(typeof Symbol=="undefined"||k[Symbol.iterator]==null){if(Array.isArray(k)||(O=Object(Q.a)(k))||B&&k&&typeof k.length=="number"){O&&(k=O);var R=0,M=function(){};return{s:M,n:function(){return R>=k.length?{done:!0}:{done:!1,value:k[R++]}},e:function(d){throw d},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,a=!1,b;return{s:function(){O=k[Symbol.iterator]()},n:function(){var d=O.next();return p=d.done,d},e:function(d){a=!0,b=d},f:function(){try{!p&&O.return!=null&&O.return()}finally{if(a)throw b}}}}},rUJ1:function(Ge,re){const y=/[&<>"']/,Q=/[&<>"']/g,W=/[<>"']|&(?!#?\w+;)/,k=/[<>"']|&(?!#?\w+;)/g,B={"&":"&","<":"<",">":">",'"':""","'":"'"},O=n=>B[n];function R(n,_){if(_){if(y.test(n))return n.replace(Q,O)}else if(W.test(n))return n.replace(k,O);return n}const M=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function p(n){return n.replace(M,(_,h)=>(h=h.toLowerCase(),h==="colon"?":":h.charAt(0)==="#"?h.charAt(1)==="x"?String.fromCharCode(parseInt(h.substring(2),16)):String.fromCharCode(+h.substring(1)):""))}const a=/(^|[^\[])\^/g;function b(n,_){n=n.source||n,_=_||"";const h={replace:(g,x)=>(x=x.source||x,x=x.replace(a,"$1"),n=n.replace(g,x),h),getRegex:()=>new RegExp(n,_)};return h}const u=/[^\w:]/g,d=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(n,_,h){if(n){let g;try{g=decodeURIComponent(p(h)).replace(u,"").toLowerCase()}catch(x){return null}if(g.indexOf("javascript:")===0||g.indexOf("vbscript:")===0||g.indexOf("data:")===0)return null}_&&!d.test(h)&&(h=t(_,h));try{h=encodeURI(h).replace(/%25/g,"%")}catch(g){return null}return h}const o={},c=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,i=/^([^:]+:\/*[^/]*)[\s\S]*$/;function t(n,_){o[" "+n]||(c.test(n)?o[" "+n]=n+"/":o[" "+n]=D(n,"/",!0)),n=o[" "+n];const h=n.indexOf(":")===-1;return _.substring(0,2)==="//"?h?_:n.replace(f,"$1")+_:_.charAt(0)==="/"?h?_:n.replace(i,"$1")+_:n+_}const l={exec:function(){}};function s(n){let _=1,h,g;for(;_{let U=!1,F=S;for(;--F>=0&&E[F]==="\\";)U=!U;return U?"|":" |"}),g=h.split(/ \|/);let x=0;if(g.length>_)g.splice(_);else for(;g.length<_;)g.push("");for(;x0&&xe[0]!==void 0?xe[0]:0,console.log(et),Ye.next=4,Object(c.a)("/api/exercises/".concat(et.categoryId,"/preview_random_exercise.json"),{method:"get",params:{num:Qe}});case 4:pe=Ye.sent,A(!1),He(fe(pe));case 7:case"end":return Ye.stop()}},dt)}));return function(){return Ve.apply(this,arguments)}}(),fe=function(dt){var Qe={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!dt)return;var pe=dt||{},xe=pe.exam,Le=pe.single_questions,Ye=pe.multiple_questions,gt=pe.judgement_questions,Ct=pe.program_questions,tn=pe.completion_questions,Zt=pe.subjective_questions,Hn=pe.practical_questions,ia=pe.combination_questions,mt=[Object(k.a)({type:"SINGLE",name:"\u5355\u9009\u9898"},Le),Object(k.a)({type:"MULTIPLE",name:"\u591A\u9009\u9898"},Ye),Object(k.a)({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},tn),Object(k.a)({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},gt),Object(k.a)({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},Zt),Object(k.a)({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},Ct),Object(k.a)({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},Hn),Object(k.a)({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},ia)],pt=[],on=0,hn=0,Ot=mt.filter(function(Xt){return Xt.questions_count>0}).map(function(Xt,ht){var Je;return(Je=Xt.questions)===null||Je===void 0||Je.forEach(function(rt){pt.push(rt.id),on=on+rt.score,hn=hn+1}),Object(k.a)(Object(k.a)({},Xt),{number:Qe[ht+1]})});return{all_questions_count:hn,all_score:on,questionList:Ot,ids:pt,exam:xe}},Ae=function(){u.d.push("/classrooms/".concat(et.coursesId,"/exercise"))},he=function(){alert("\u4FDD\u5B58")},Ue=function(){var Ve=Object(B.a)(M.a.mark(function dt(Qe,pe){var xe,Le,Ye;return M.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(c.a)("/api/exercises/".concat(et.categoryId,"/toggle_random_question.json"),{method:"post",body:{question_id:Qe==null?void 0:Qe.single_question_id}});case 2:xe=Ct.sent,xe!=null&&xe.question&&(Ye=Object(f.cloneDeep)(Se),Ye.questionList=Ye==null||((Le=Ye.questionList)===null||Le===void 0)?void 0:Le.map(function(tn){if(tn.type===pe.type){var Zt=Object(f.cloneDeep)(tn==null?void 0:tn.questions);return Zt.splice(pe.index,1,xe==null?void 0:xe.question),Object(k.a)(Object(k.a)({},tn),{},{questions:Zt})}return tn}),He(Ye));case 4:case"end":return Ct.stop()}},dt)}));return function(Qe,pe){return Ve.apply(this,arguments)}}(),st=function(){var Ve=Object(B.a)(M.a.mark(function dt(Qe){return M.a.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:document.body.scrollIntoView(),me(Qe),ie(Qe);case 3:case"end":return xe.stop()}},dt)}));return function(Qe){return Ve.apply(this,arguments)}}();return console.log(Object(b.h)(),"location333"),a.a.createElement("section",{className:m.a.wrap},a.a.createElement(W.a,{loading:N,active:!0,paragraph:{rows:5}},((D=Object(b.h)())===null||D===void 0||((C=D.pathname)===null||C===void 0)?void 0:C.includes("preview"))&&a.a.createElement("div",{className:m.a.crumbs},a.a.createElement("b",null),a.a.createElement("span",{className:"current",onClick:function(){return u.d.push("/classrooms/".concat(et.coursesId,"/exercise"))}},"".concat(je==null||((v=je.course)===null||v===void 0)?void 0:v.course_name,">")),a.a.createElement("span",{className:"current",onClick:function(){return u.d.push("/classrooms/".concat(et.coursesId,"/exercise"))}},"\u8BD5\u5377\u5217\u8868>"),a.a.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),a.a.createElement(o.a,{loading:U,submit:he,goBack:Ae,data:Se,selectValue:$,editPreview:!0,onExchange:Ue,onSkipExamination:st})))};re.default=Object(u.a)(function(l){var s=l.paperlibrary,w=l.user,D=l.globalSetting;return{paperlibrary:s,user:w,globalSetting:D}})(t)},sR1s:function(Ge,re,y){"use strict";y.d(re,"b",function(){return B}),y.d(re,"a",function(){return O}),y.d(re,"c",function(){return R}),y.d(re,"d",function(){return M});var Q=y("U8pU"),W="RC_TABLE_KEY";function k(p){return p==null?[]:Array.isArray(p)?p:[p]}function B(p,a){if(!a&&typeof a!="number")return p;for(var b=k(a),u=p,d=0;d-1)){var o=B.parse(m)[3],c=B.toHex(m);d.setAttribute("stop-color","#"+c),d.setAttribute("stop-opacity",o)}else d.setAttribute("stop-color",a[b].color);p.appendChild(d)}M._dom=p},O.prototype.markUsed=function(M){if(M.style){var p=M.style.fill;p&&p._dom&&Q.prototype.markUsed.call(this,p._dom),p=M.style.stroke,p&&p._dom&&Q.prototype.markUsed.call(this,p._dom)}};var R=O;Ge.exports=R},sbIO:function(Ge,re,y){"use strict";var Q=y("DjyN"),W=y("NUBc"),k=y("5Dmo"),B=y("3S7+"),O=y("/zsF"),R=y("PArb"),M=y("Q9mQ"),p=y("diRs"),a=y("+L6B"),b=y("2/Rp"),u=y("5NDa"),d=y("5rEg"),m=y("miYZ"),o=y("tsqr"),c=y("9og8"),f=y("giR+"),i=y("fyUT"),t=y("2qtc"),l=y("kLXV"),s=y("tJVT"),w=y("WmNS"),D=y.n(w),C=y("q1tI"),v=y.n(C),n=y("PsQE"),_=y.n(n),h=y("0eGx"),g=y.n(h),x=y("9Bee"),T=y("Ty5D"),S=y("9kvl"),E=y("ErOA"),U=y("+yhJ"),F=y.n(U),P=y("RZ/O"),H=y.n(P),N=y("LvDl"),A=y("6K3P"),G=y.n(A),K=y("sRBo"),$=y("kaz8"),ie=y("oBTY"),le=y("PpiC"),de=y("Ot1p"),Se=y("kqOp"),He=y("7qnI"),et=y("1vsH"),je=y("PGNT"),me=y.n(je),fe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ae=function(Ie,be){var qe=Ie.globalSetting,Lt=Ie.loading,nn=Ie.dispatch,$n=Ie.isEdit,ta=Ie.editData,Sa=Object(le.a)(Ie,["globalSetting","loading","dispatch","isEdit","editData"]),_n=Object(C.useState)(""),Bt=Object(s.a)(_n,2),mn=Bt[0],Gt=Bt[1],ze=Object(C.useState)(""),ct=Object(s.a)(ze,2),Sn=ct[0],qt=ct[1],Gn=Object(C.useState)([]),qn=Object(s.a)(Gn,2),Mt=qn[0],Nn=qn[1],Bn=Object(C.useState)(""),na=Object(s.a)(Bn,2),Ea=na[0],Pe=na[1],ye=Object(C.useState)(),J=Object(s.a)(ye,2),q=J[0],Z=J[1],oe=Object(C.useState)(!1),Oe=Object(s.a)(oe,2),Re=Oe[0],ve=Oe[1];Object(C.useEffect)(function(){if(!ta||!$n)return;Gt(ta==null?void 0:ta.name),qt(ta==null?void 0:ta.analysis),Z(ta==null?void 0:ta.is_ordered),ve(!0)},[ta]),Object(C.useEffect)(function(){if(!Re)return;var fa=ta==null?void 0:ta.standard_answer.map(function(ae){return ae.answer_text});Nn(fa),ve(!1)},[Re]),Object(C.useImperativeHandle)(be,function(){return{onSave:bn,Clear:kt}});var bn=function(){var ae=[],z=!1;return mn?(Mt.forEach(function(Y,te){ae.push({position:te+1,answer_text:[]}),Y.forEach(function(_e,se){ae[te].answer_text.push(_e),(!_e||!Object(et.db)(_e,1e4))&&(Pe("".concat(te,"-").concat(se)),o.b.info(_e?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),z=!0)})}),z?!1:(ae==null?void 0:ae.length)>20?(o.b.warn("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:mn,analysis:Sn,standard_answers:ae,is_ordered:q}):(o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},kt=function(){Gt(""),qt(""),Nn([]),Z(!1)},at=function(ae,z,Y){var te=Mt.slice();if(z&&te.splice(ae,z),Y)for(var _e=0;_e1&&v.a.createElement("span",null,v.a.createElement($.a,{checked:q,onChange:function(ae){return Z(ae.target.checked)},className:"".concat(me.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),v.a.createElement("span",{className:"".concat(me.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Sn,onChange:function(ae){return qt(ae)}}))},he=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(Ae)),Ue=y("7Kak"),st=y("9yH6"),Ve=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],dt=function(Ie,be){var qe=Ie.globalSetting,Lt=Ie.loading,nn=Ie.editData,$n=Ie.dispatch,ta=Ie.onRef,Sa=ta===void 0?function(){}:ta,_n=Ie.isEdit,Bt=Object(le.a)(Ie,["globalSetting","loading","editData","dispatch","onRef","isEdit"]),mn=Object(C.useState)(),Gt=Object(s.a)(mn,2),ze=Gt[0],ct=Gt[1],Sn=Object(C.useState)(""),qt=Object(s.a)(Sn,2),Gn=qt[0],qn=qt[1],Mt=Object(C.useState)(""),Nn=Object(s.a)(Mt,2),Bn=Nn[0],na=Nn[1];Object(C.useEffect)(function(){if(!nn||!_n)return;qn(nn==null?void 0:nn.name),na(nn==null?void 0:nn.analysis);var ye=nn==null?void 0:nn.choices.find(function(J){return J.is_answer});ct(ye.choice_text==="\u6B63\u786E"?"0":"1")},[nn]),Object(C.useImperativeHandle)(be,function(){return{onSave:Ea,Clear:Pe}});var Ea=function(){if(!Gn)return o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!ze)return o.b.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;var J=[{choice_text:"\u6B63\u786E",is_answer:ze==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:ze==="1"?1:0}];return{name:Gn,choices:J,analysis:Bn}},Pe=function(){qn(""),na(""),ct("")};return v.a.createElement("section",{className:me.a.wrap},v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u9898\u5E72\uFF1A")),v.a.createElement(de.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Gn,onChange:function(J){return qn(J)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",v.a.createElement("span",{className:me.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),v.a.createElement(st.a.Group,{buttonStyle:"solid",value:ze,onChange:function(J){return ct(J.target.value)}},v.a.createElement(st.a.Button,{value:"0",className:"".concat(me.a.radio," mr40")},"\u6B63\u786E"),v.a.createElement(st.a.Button,{value:"1",className:me.a.radio},"\u9519\u8BEF")),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Bn,onChange:function(J){return na(J)}}))},Qe=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(dt)),pe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],xe=function(Ie,be){var qe=Ie.editData,Lt=Ie.globalSetting,nn=Ie.loading,$n=Ie.dispatch,ta=Ie.onRef,Sa=ta===void 0?function(){}:ta,_n=Ie.isEdit,Bt=Object(le.a)(Ie,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),mn=Object(C.useState)([]),Gt=Object(s.a)(mn,2),ze=Gt[0],ct=Gt[1],Sn=Object(C.useState)(),qt=Object(s.a)(Sn,2),Gn=qt[0],qn=qt[1],Mt=Object(C.useState)([]),Nn=Object(s.a)(Mt,2),Bn=Nn[0],na=Nn[1],Ea=Object(C.useState)(""),Pe=Object(s.a)(Ea,2),ye=Pe[0],J=Pe[1],q=Object(C.useState)(""),Z=Object(s.a)(q,2),oe=Z[0],Oe=Z[1];Object(C.useEffect)(function(){ct(["","","",""])},[]),Object(C.useEffect)(function(){if(!qe||!_n)return;J(qe==null?void 0:qe.name),Oe(qe==null?void 0:qe.analysis),ct(qe==null?void 0:qe.choices.map(function(kt){return kt.choice_text}));var bn=[];qe==null||qe.choices.map(function(kt,at){kt.is_answer&&bn.push(at)}),na(bn)},[qe]),Object(C.useImperativeHandle)(be,function(){return{onSave:Re,Clear:ve}});var Re=function(){if(!ye)return o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;var kt=ze.findIndex(function(Ht){return!Ht});if(kt>-1)return o.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(pe[kt]," \u9009\u9879\u7684\u5185\u5BB9")),!1;if(!Bn.length)return o.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Bn.length<2)return o.b.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;var at=ze.map(function(Ht,Fe){return{choice_text:Ht,is_answer:Bn.includes(Fe)?1:0}});return{name:ye,choices:at,analysis:oe}},ve=function(){ct(["","","",""]),J(""),Oe(""),na("")};return v.a.createElement("section",{className:me.a.wrap},v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u9898\u5E72\uFF1A")),v.a.createElement(de.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ye,onChange:function(kt){return J(kt)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",v.a.createElement("span",{className:me.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ze.map(function(bn,kt){return v.a.createElement("div",{className:me.a.choiceWrap,key:kt},v.a.createElement(B.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},v.a.createElement("div",{className:"".concat(me.a.answer," ").concat(Bn.includes(kt)?me.a.activeAnswer:""),onClick:function(){Bn.includes(kt)?na(Bn.filter(function(Ht){return Ht!==kt})):na([].concat(Object(ie.a)(Bn),[kt]))}},pe[kt])),v.a.createElement("div",{className:me.a.editorWrap},Gn===kt?v.a.createElement(de.a,{id:"single-question-option-".concat(kt),watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:bn,onChange:function(Ht){ze[kt]=Ht,ct(ze)}}):v.a.createElement("div",{className:me.a.htmlWrap,onClick:function(){return qn(kt)}},v.a.createElement(x.a,{value:bn}))),kt>1&&v.a.createElement(B.a,{title:"\u5220\u9664"},v.a.createElement("i",{className:"".concat(me.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){ct(ze.filter(function(Ht,Fe){return Fe!==kt})),Bn.includes(kt)?na(Bn.filter(function(Ht){return Ht!==kt})):na([].concat(Object(ie.a)(Bn),[kt]))}})),kt<7&&kt===ze.length-1&&v.a.createElement(B.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},v.a.createElement("i",{className:"".concat(me.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return ct([].concat(Object(ie.a)(ze),[""]))}})))}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:oe,onChange:function(kt){return Oe(kt)}}))},Le=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(xe)),Ye=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],gt=function(Ie,be){var qe=Ie.editData,Lt=Ie.globalSetting,nn=Ie.loading,$n=Ie.dispatch,ta=Ie.onRef,Sa=ta===void 0?function(){}:ta,_n=Ie.isEdit,Bt=Object(le.a)(Ie,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),mn=Object(C.useState)([]),Gt=Object(s.a)(mn,2),ze=Gt[0],ct=Gt[1],Sn=Object(C.useState)(),qt=Object(s.a)(Sn,2),Gn=qt[0],qn=qt[1],Mt=Object(C.useState)(),Nn=Object(s.a)(Mt,2),Bn=Nn[0],na=Nn[1],Ea=Object(C.useState)(""),Pe=Object(s.a)(Ea,2),ye=Pe[0],J=Pe[1],q=Object(C.useState)(""),Z=Object(s.a)(q,2),oe=Z[0],Oe=Z[1];Object(C.useEffect)(function(){ct(["","","",""])},[]),Object(C.useEffect)(function(){if(!qe||!_n)return;J(qe==null?void 0:qe.name),Oe(qe==null?void 0:qe.analysis),ct(qe==null?void 0:qe.choices.map(function(bn){return bn.choice_text})),na(qe==null?void 0:qe.choices.findIndex(function(bn){return bn.is_answer}))},[qe]),Object(C.useImperativeHandle)(be,function(){return{onSave:Re,Clear:ve}});var Re=function(){if(!ye)return o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;var kt=ze.findIndex(function(Ht){return!Ht});if(kt>-1)return o.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Ye[kt]," \u9009\u9879\u7684\u5185\u5BB9")),!1;if(console.log("activeAnswer: ",Bn),!(typeof Bn=="number"))return o.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;var at=ze.map(function(Ht,Fe){return{choice_text:Ht,is_answer:Bn===Fe?1:0}});return{name:ye,choices:at,analysis:oe}},ve=function(){ct(["","","",""]),J(""),Oe(""),na("")};return v.a.createElement("section",{className:me.a.wrap},v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u9898\u5E72\uFF1A")),v.a.createElement(de.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ye,onChange:function(kt){return J(kt)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",v.a.createElement("span",{className:me.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ze.map(function(bn,kt){return v.a.createElement("div",{className:me.a.choiceWrap,key:kt},v.a.createElement(B.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},v.a.createElement("div",{className:"".concat(me.a.answer," ").concat(Bn===kt?me.a.activeAnswer:""),onClick:function(){return na(kt)}},Ye[kt])),v.a.createElement("div",{className:me.a.editorWrap},Gn===kt?v.a.createElement(de.a,{id:"single-question-option-".concat(kt),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:bn,onChange:function(Ht){ze[kt]=Ht,ct(ze)}}):v.a.createElement("div",{className:me.a.htmlWrap,onClick:function(){return qn(kt)}},v.a.createElement(x.a,{value:bn}))),kt>1&&v.a.createElement(B.a,{title:"\u5220\u9664"},v.a.createElement("i",{className:"".concat(me.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){ct(ze.filter(function(Ht,Fe){return Fe!==kt})),kt===Bn&&na(null)}})),kt<7&&kt===ze.length-1&&v.a.createElement(B.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},v.a.createElement("i",{className:"".concat(me.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return ct([].concat(Object(ie.a)(ze),[""]))}})))}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:oe,onChange:function(kt){return Oe(kt)}}))},Ct=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(gt)),tn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Zt=function(Ie,be){var qe=Ie.editData,Lt=Ie.globalSetting,nn=Ie.loading,$n=Ie.dispatch,ta=Ie.onRef,Sa=ta===void 0?function(){}:ta,_n=Ie.isEdit,Bt=Object(le.a)(Ie,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),mn=Object(C.useState)(""),Gt=Object(s.a)(mn,2),ze=Gt[0],ct=Gt[1],Sn=Object(C.useState)(""),qt=Object(s.a)(Sn,2),Gn=qt[0],qn=qt[1],Mt=Object(C.useState)(""),Nn=Object(s.a)(Mt,2),Bn=Nn[0],na=Nn[1];Object(C.useEffect)(function(){var ye;if(!qe||!_n)return;ct(qe==null?void 0:qe.name),qn(qe==null?void 0:qe.analysis),na(qe==null||((ye=qe.answer_texts)===null||ye===void 0)?void 0:ye[0])},[qe]),Object(C.useImperativeHandle)(be,function(){return{onSave:Ea,Clear:Pe}});var Ea=function(){return ze?Bn?{name:ze,answer_texts:[Bn],analysis:Gn}:(o.b.info("\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848"),!1):(o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},Pe=function(){ct(""),qn(""),na("")};return v.a.createElement("section",{className:me.a.wrap},v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u9898\u5E72\uFF1A")),v.a.createElement(de.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ze,onChange:function(J){return ct(J)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),v.a.createElement(de.a,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Bn,onChange:function(J){return na(J)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Gn,onChange:function(J){return qn(J)}}))},Hn=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(Zt)),ia=y("k1fw"),mt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],pt=function(Ie,be){var qe=Ie.globalSetting,Lt=Ie.loading,nn=Ie.dispatch,$n=Ie.editData,ta=Ie.onRef,Sa=ta===void 0?function(){}:ta,_n=Ie.isEdit,Bt=Object(le.a)(Ie,["globalSetting","loading","dispatch","editData","onRef","isEdit"]),mn=Object(C.useState)(""),Gt=Object(s.a)(mn,2),ze=Gt[0],ct=Gt[1],Sn=Object(C.useState)([]),qt=Object(s.a)(Sn,2),Gn=qt[0],qn=qt[1];console.log(Gn),Object(C.useEffect)(function(){var Ea;if(!$n||!_n)return;ct($n==null?void 0:$n.name);var Pe=$n==null||((Ea=$n.sub_item_banks)===null||Ea===void 0)?void 0:Ea.map(function(ye){var J,q,Z;return Object(ia.a)(Object(ia.a)({},ye),{},{id:ye.id,open:!1,qusList:ye==null||((J=ye.choices)===null||J===void 0)?void 0:J.map(function(oe){return oe.choice_text}),activeQusEditor:null,qusAnswer:(q=[ye==null||((Z=ye.choices)===null||Z===void 0)?void 0:Z.findIndex(function(oe){return oe.is_answer})])===null||q===void 0?void 0:q.filter(function(oe){return oe!==-1})})});qn(Pe)},[$n]),Object(C.useImperativeHandle)(be,function(){return{onSave:Mt,Clear:Nn}});var Mt=function(){if(!ze)return o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(Gn.length===0)return o.b.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),!1;for(var Pe=0;Pe-1)return o.b.info("\u8BF7\u5148\u8F93\u5165\u7B2C".concat(Pe+1,"\u5C0F\u9898").concat(mt[q],"\u9009\u9879\u7684\u5185\u5BB9")),!1;if(!(J!=null&&J.qusAnswer.length))return o.b.info("\u8BF7\u8BBE\u7F6E\u7B2C".concat(Pe+1,"\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E")),!1}var Z=Gn.map(function(oe){return{id:oe.id>1?oe.id:null,name:oe.name,item_type:oe.item_type,analysis:oe.analysis,choices:oe.qusList.map(function(Oe,Re){return{choice_text:Oe,is_answer:oe.qusAnswer[0]===Re?1:0}})}});return{name:ze,sub_item_banks:Z}},Nn=function(){ct(""),qn([])},Bn=function(){var Pe={id:Math.random(),item_type:"SINGLE",open:!1,name:"",qusList:["","","",""],activeQusEditor:null,qusAnswer:[],analysis:""};qn(Gn.concat(Pe))},na=function(Pe,ye,J){var q=Object(N.cloneDeep)(Gn);if(Pe==="open"&&(q[ye].open=!q[ye].open),Pe==="delete"&&q.splice(ye,1),Pe==="value"&&(q[ye].name=J),Pe==="answer"&&(q[ye].qusAnswer=[J]),Pe==="edit"&&(q[ye].activeQusEditor=J),Pe==="details"&&(q[ye].qusList[q[ye].activeQusEditor]=J),Pe==="addQus"&&(q[ye].qusList=q[ye].qusList.concat("")),Pe==="deleteQus"){var Z;q[ye].qusList=q[ye].qusList.filter(function(oe,Oe){return Oe!==J}),q[ye].qusAnswer=(Z=q[ye].qusAnswer)===null||Z===void 0?void 0:Z.filter(function(oe){return oe!==J})}Pe==="analysis"&&(q[ye].analysis=J),qn(q)};return v.a.createElement("section",{className:me.a.wrap},v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u9898\u5E72\uFF1A")),v.a.createElement(de.a,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ze,onChange:function(Pe){return ct(Pe)}}),Gn==null?void 0:Gn.map(function(Ea,Pe){var ye;return v.a.createElement("div",{className:me.a.fold,key:Ea.id},v.a.createElement("div",{onClick:function(){return na("open",Pe)},className:me.a.head},v.a.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:Ea.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),v.a.createElement("span",null,"\u7B2C",Pe+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),v.a.createElement("b",{style:{visibility:"hidden"},onClick:function(q){q.stopPropagation(),na("delete",Pe)},className:"iconfont icon-shanchu8"})),v.a.createElement("div",{className:"mb10",style:{display:Ea.open?"block":"none"}},v.a.createElement(de.a,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Ea==null?void 0:Ea.name,onChange:function(q){return na("value",Pe,q)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",v.a.createElement("span",{className:me.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Ea==null||((ye=Ea.qusList)===null||ye===void 0)?void 0:ye.map(function(J,q){var Z,oe;return v.a.createElement("div",{className:me.a.choiceWrap,key:q},v.a.createElement(B.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},v.a.createElement("div",{className:"".concat(me.a.answer," ").concat(Ea!=null&&(Z=Ea.qusAnswer)!==null&&Z!==void 0&&Z.includes(q)?me.a.activeAnswer:""),onClick:function(){return na("answer",Pe,q)}},mt[q])),v.a.createElement("div",{className:me.a.editorWrap},(Ea==null?void 0:Ea.activeQusEditor)===q?v.a.createElement(de.a,{id:"single-question-option-".concat(q),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:J,onChange:function(Re){return na("details",Pe,Re)}}):v.a.createElement("div",{className:me.a.htmlWrap,onClick:function(){return na("edit",Pe,q)}},v.a.createElement(x.a,{value:J}))),q>1&&v.a.createElement(B.a,{title:"\u5220\u9664"},v.a.createElement("i",{className:"".concat(me.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return na("deleteQus",Pe,q)}})),q<7&&q===(Ea==null||((oe=Ea.qusList)===null||oe===void 0)?void 0:oe.length)-1&&v.a.createElement(B.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},v.a.createElement("i",{className:"".concat(me.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return na("addQus",Pe)}})))}),v.a.createElement("p",{className:"mb10 mt10"},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Ea.analysis,onChange:function(q){return na("analysis",Pe,q)}})))}))},on=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(pt)),hn=y("14J3"),Ot=y("BMrR"),Xt=y("ZWs3"),ht=function(Ie){var be=Ie.visible,qe=Ie.onCancel,Lt=Ie.onRandomExchange,nn=Ie.selectFromProblemSet;return v.a.createElement(l.a,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",visible:be,onCancel:qe,centered:!0,maskClosable:!0,footer:null},v.a.createElement(Ot.a,{justify:"center"},v.a.createElement(Xt.a,{onClick:Lt},"\u968F\u673A\u66F4\u6362"),v.a.createElement(b.a,{style:{marginLeft:24},onClick:nn},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")))},Je=ht,rt=function(Ie){var be,qe,Lt,nn,$n,ta,Sa,_n,Bt=Ie.data,mn=Ie.submit,Gt=Ie.goBack,ze=Ie.loading,ct=Ie.onTypeScore,Sn=Ie.editPreview,qt=Sn===void 0?!1:Sn,Gn=Ie.onSkipExamination,qn=Ie.selectValue,Mt=Ie.onExchange,Nn=Object(C.useRef)(),Bn=Object(C.useRef)(Object(N.debounce)(function(){return fa()},100,{leading:!0,trailing:!0})),na=Object(C.useState)(null),Ea=Object(s.a)(na,2),Pe=Ea[0],ye=Ea[1],J=Object(C.useState)(!1),q=Object(s.a)(J,2),Z=q[0],oe=q[1],Oe=Object(C.useState)(!1),Re=Object(s.a)(Oe,2),ve=Re[0],bn=Re[1],kt=Object(C.useRef)(),at=Object(T.i)();Object(C.useEffect)(function(){return window.addEventListener("scroll",Bn==null?void 0:Bn.current),function(){window.removeEventListener("scroll",Bn==null?void 0:Bn.current)}},[]),Object(C.useEffect)(function(){oe(!0)},[]),Object(C.useEffect)(function(){var Jt,Rt,An,aa,ra=(Jt=document.getElementById("examName"))===null||Jt===void 0||((Rt=Jt.getElementsByClassName("ant-pagination-options-quick-jumper"))===null||Rt===void 0||((An=Rt[0])===null||An===void 0||((aa=An.childNodes)===null||aa===void 0)))?void 0:aa[2];ra&&(ra.nodeValue="\u4EFD")},[Bt]);var Ht=function(Rt){var An=parseInt(Rt);return isNaN(An)?"":An};function Fe(){var Jt=0,Rt=0,An=0;return document.body&&(Rt=document.body.scrollTop),document.documentElement&&(An=document.documentElement.scrollTop),Jt=Rt-An>0?Rt:An,Jt}function Un(){var Jt=0,Rt=0,An=0;return document.body&&(Rt=document.body.scrollHeight),document.documentElement&&(An=document.documentElement.scrollHeight),Jt=Rt-An>0?Rt:An,Jt}function Fa(){var Jt=0;return document.compatMode=="CSS1Compat"?Jt=document.documentElement.clientHeight:Jt=document.body.clientHeight,Jt}var fa=function(){var Rt=document.getElementById("preview_btns"),An=document.getElementById("preview_btns_else");Fe()+Fa()>=Un()-68?(Rt.style.visibility="hidden",An.style.visibility="visible"):(Rt.style.visibility="visible",An.style.visibility="hidden")},ae=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],z=function(Rt){var An,aa=[];return v.a.createElement(v.a.Fragment,null,v.a.createElement("aside",{className:_.a.single},Rt==null||((An=Rt.choices)===null||An===void 0)?void 0:An.map(function(ra,Fn){return ra.is_answer&&aa.push(ut[Fn]),v.a.createElement("ul",{key:Fn},v.a.createElement("li",null,ut[Fn],"\u3001"),v.a.createElement("li",null,v.a.createElement(x.a,{value:ra.choice_text})))})),v.a.createElement("div",{className:_.a.analysis},v.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",aa.join(""),v.a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",ae[Rt.difficulty])),v.a.createElement("aside",null,v.a.createElement("span",{className:_.a.text},"\u89E3\u6790:"),v.a.createElement(x.a,{value:Rt.analysis?Rt.analysis:"\u6682\u65E0\u89E3\u6790"})),v.a.createElement("ul",null,v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Rt==null?void 0:Rt.discipline_name,"/").concat(Rt==null?void 0:Rt.sub_discipline_name)),v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Rt==null?void 0:Rt.tag_discipline_name))))},Y=function(Rt){var An,aa=Rt==null||((An=Rt.standard_answer)===null||An===void 0)?void 0:An.map(function(ra){var Fn;return"\u7B54\u6848\uFF08\u586B\u7A7A".concat(ra.position,"\uFF09\uFF1A").concat(ra==null||((Fn=ra.answer_text)===null||Fn===void 0)?void 0:Fn.join("\u3001"))});return v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:_.a.analysis},v.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",aa),v.a.createElement("aside",null,v.a.createElement("span",{className:_.a.text},"\u89E3\u6790:"),v.a.createElement(x.a,{value:Rt.analysis?Rt.analysis:"\u6682\u65E0\u89E3\u6790"})),v.a.createElement("ul",null,v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Rt==null?void 0:Rt.discipline_name,"/").concat(Rt==null?void 0:Rt.sub_discipline_name)),v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Rt==null?void 0:Rt.tag_discipline_name))))},te=function(Rt){var An;return v.a.createElement("div",{className:_.a.analysis},v.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Rt==null||((An=Rt.answer_texts)===null||An===void 0)?void 0:An[0]),v.a.createElement("aside",null,v.a.createElement("span",{className:_.a.text},"\u89E3\u6790:"),v.a.createElement(x.a,{value:Rt.analysis?Rt.analysis:"\u6682\u65E0\u89E3\u6790"})),v.a.createElement("ul",null,v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Rt==null?void 0:Rt.discipline_name,"/").concat(Rt==null?void 0:Rt.sub_discipline_name)),v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Rt==null?void 0:Rt.tag_discipline_name)))},_e=function(Rt){var An;return v.a.createElement("div",{className:_.a.analysis},v.a.createElement("aside",null,v.a.createElement("span",{className:_.a.text},"\u9884\u671F\u8F93\u51FA:"),v.a.createElement(x.a,{value:Rt==null||((An=Rt.program_attr)===null||An===void 0)?void 0:An.description})),v.a.createElement("ul",null,v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Rt==null?void 0:Rt.discipline_name,"/").concat(Rt==null?void 0:Rt.sub_discipline_name)),v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Rt==null?void 0:Rt.tag_discipline_name)))},se=function(Rt,An){var aa;return v.a.createElement("div",null,Rt==null||((aa=Rt.sub_item_banks)===null||aa===void 0)?void 0:aa.map(function(ra,Fn){var da,Ta=[];return v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333"}},An+1+"."+(Fn+1),"\uFF08\u5355\u9009\u9898\uFF09",ra.name),v.a.createElement("aside",{className:_.a.single},ra==null||((da=ra.choices)===null||da===void 0)?void 0:da.map(function(Wa,ue){return Wa.is_answer&&Ta.push(ut[ue]),v.a.createElement("ul",{key:ue},v.a.createElement("li",null,ut[ue],"\u3001"),v.a.createElement("li",null,v.a.createElement(x.a,{value:Wa.choice_text})))})),v.a.createElement("div",{className:_.a.analysis},v.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Ta.join(""),v.a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",ae[ra.difficulty])),v.a.createElement("aside",null,v.a.createElement("span",{className:_.a.text},"\u89E3\u6790:"),v.a.createElement(x.a,{value:ra.analysis?ra.analysis:"\u6682\u65E0\u89E3\u6790"})),v.a.createElement("ul",null,v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Rt==null?void 0:Rt.discipline_name,"/").concat(Rt==null?void 0:Rt.sub_discipline_name)),v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Rt==null?void 0:Rt.tag_discipline_name))))}))},ut=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],vn=function(Rt){var An,aa=[];Rt==null||((An=Rt.questions)===null||An===void 0)||An.map(function(Fn){var da;return Fn==null||((da=Fn.sub_item_banks)===null||da===void 0)?void 0:da.map(function(Ta){aa.push(Ta)})});var ra=0;Rt.type==="COMBINATION"?ra=Rt.questions_score/aa.length:ra=Rt.questions_score/Rt.questions_count,l.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:v.a.createElement("div",{className:_.a.modalColumn},v.a.createElement("div",{className:_.a.modalRow,style:{justifyContent:"flex-start"}},v.a.createElement("sup",{className:_.a.sup},"*"),v.a.createElement("span",null,Rt==null?void 0:Rt.name,(Rt==null?void 0:Rt.type)==="COMBINATION"&&"\u4E2D\u7684\u6BCF\u5C0F\u9898","\uFF1A"),v.a.createElement(i.a,{min:1,parser:Ht,defaultValue:ra,onChange:function(da){ra=da}}),v.a.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Fn=Object(c.a)(D.a.mark(function Ta(){var Wa,ue;return D.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(ra){lt.next=3;break}return o.b.warn("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),lt.abrupt("return",Promise.reject());case 3:Rt.type==="COMBINATION"?(Wa={type:Rt==null?void 0:Rt.type,score:ra,scoreTotal:ra*(aa==null?void 0:aa.length)},ct(Wa)):(ue={type:Rt==null?void 0:Rt.type,score:ra,scoreTotal:ra*Rt.questions_count},ct(ue));case 4:case"end":return lt.stop()}},Ta)}));function da(){return Fn.apply(this,arguments)}return da}()})},Wn=function(){var Rt="";l.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:v.a.createElement("div",{className:_.a.modalColumn},v.a.createElement("div",{style:{color:"#676A6C",display:"flex"},className:"font14 mt20"},v.a.createElement("img",{style:{marginRight:5},src:G.a}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),v.a.createElement("div",{className:_.a.modalRow,style:{marginTop:20}},v.a.createElement("sup",{className:_.a.sup},"*"),v.a.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),v.a.createElement(d.a,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Rt,onChange:function(aa){Rt=aa.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var An=Object(c.a)(D.a.mark(function ra(){var Fn,da,Ta,Wa,ue;return D.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(Rt){lt.next=3;break}return o.b.warn("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),lt.abrupt("return",Promise.reject());case 3:return da=[],Ta=[],Wa=[],Bt==null||((Fn=Bt.questionList)===null||Fn===void 0)||Fn.forEach(function(ft){var wt;(wt=ft.questions)===null||wt===void 0||wt.forEach(function(Et){da.push(Et.id),Ta.push(ft.questions_score/ft.questions_count),ft.type==="COMBINATION"&&Wa.push({id:Et.id,sub_item_bank_ids:Et.sub_item_banks.map(function(jt){return jt.id})})})}),console.log("-----",Wa),ue={item_bank_ids:da,item_bank_scores:Ta,name:Rt,combination_item_banks:Wa},lt.next=11,mn(ue);case 11:case"end":return lt.stop()}},ra)}));function aa(){return An.apply(this,arguments)}return aa}()})},Oa=function(Rt,An,aa,ra){var Fn,da="".concat(location.pathname).concat(location.search),Ta=(Fn=ra.questions)===null||Fn===void 0?void 0:Fn.map(function(ue){return ue.id});if(da.includes("exercise"))kt.current={id:Rt,ids:Ta,type:An,index:aa},bn(!0);else var Wa=l.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var ue=Object(c.a)(D.a.mark(function lt(){return D.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return Wa.update({cancelButtonProps:{disabled:!0}}),wt.next=3,Mt({single_question_id:Rt,seleted_item_bank_ids:Ta},{type:An,index:aa});case 3:Wa.update({cancelButtonProps:{disabled:!1}}),o.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898");case 5:case"end":return wt.stop()}},lt)}));function ot(){return ue.apply(this,arguments)}return ot}()})},dn=function(Rt){var An,aa=(An=Rt.questions)===null||An===void 0?void 0:An.map(function(da){return da.id}),ra=Rt.name,Fn=l.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362".concat(ra,"\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F"),cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var da=Object(c.a)(D.a.mark(function Wa(){return D.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return Fn.update({cancelButtonProps:{disabled:!0}}),ot.next=3,Mt({seleted_item_bank_ids:aa},{type:Rt.type});case 3:Fn.update({cancelButtonProps:{disabled:!1}}),o.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210".concat(ra,"\u8BD5\u9898"));case 5:case"end":return ot.stop()}},Wa)}));function Ta(){return da.apply(this,arguments)}return Ta}()})},Tn=function(){var Rt=l.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var An=Object(c.a)(D.a.mark(function ra(){return D.a.wrap(function(da){for(;;)switch(da.prev=da.next){case 0:return Rt.update({cancelButtonProps:{disabled:!0}}),da.next=3,Mt();case 3:Rt.update({cancelButtonProps:{disabled:!1}}),o.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898");case 5:case"end":return da.stop()}},ra)}));function aa(){return An.apply(this,arguments)}return aa}()})},ya=function(Rt){console.log(Rt,"key"),Gn(Rt-1)},fr=function(){return v.a.createElement(v.a.Fragment,null,v.a.createElement(p.a,{color:"#55575D",overlayClassName:_.a.popover,visible:Z,getPopupContainer:function(An){return An==null?void 0:An.parentNode},content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},v.a.createElement(b.a,{onMouseEnter:function(){return oe(!0)},onMouseLeave:function(){return oe(!1)},onClick:function(){Wn()}},"\u4FDD\u5B58")),v.a.createElement(b.a,{onClick:function(){document.body.scrollIntoView(),Gt()}},"\u8FD4\u56DE"),v.a.createElement(b.a,{loading:ze,onClick:function(){return mn()},type:"primary"},"\u63D0\u4EA4"))},gr=function(){var Rt;return v.a.createElement(v.a.Fragment,null,v.a.createElement(b.a,{onClick:Gt},"\u8FD4\u56DE"),qn>0&&v.a.createElement(b.a,{onClick:function(){return ya(qn)},type:"primary"},"\u4E0A\u4E00\u4EFD"),qn<(Bt==null||((Rt=Bt.exam)===null||Rt===void 0)?void 0:Rt.total_num)-1&&v.a.createElement(b.a,{onClick:function(){return ya(qn+2)}},"\u4E0B\u4E00\u4EFD"))},ir=function(Rt,An){if(An==="SINGLE")return v.a.createElement(v.a.Fragment,null,v.a.createElement(Ct,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="MULTIPLE")return v.a.createElement(v.a.Fragment,null,v.a.createElement(Le,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="JUDGMENT")return v.a.createElement(v.a.Fragment,null,v.a.createElement(Qe,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="COMPLETION")return v.a.createElement(v.a.Fragment,null,v.a.createElement(he,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="SUBJECTIVE")return v.a.createElement(v.a.Fragment,null,v.a.createElement(Hn,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="COMBINATION")return v.a.createElement(v.a.Fragment,null,v.a.createElement(on,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="PROGRAM"){var aa;S.d.push("/problems/".concat(Rt==null||((aa=Rt.program_attr)===null||aa===void 0)?void 0:aa.identifier,"/edit?type=exercises&express_id=").concat(at.categoryId,"&question_id=").concat(Rt==null?void 0:Rt.id,"&score=").concat(Rt==null?void 0:Rt.score,"&callback_url=").concat(location.pathname,"&select=").concat(qn,"&exercise=true"))}},Qa=function(){var Jt=Object(c.a)(D.a.mark(function Rt(An,aa){var ra,Fn,da,Ta,Wa,ue,ot,lt,ft,wt;return D.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,(ra=Nn.current)===null||ra===void 0?void 0:ra.onSave();case 2:if(Fn=jt.sent,Fn){jt.next=5;break}return jt.abrupt("return");case 5:return da={question_score:aa.score,analysis:Fn.analysis},(An==="SINGLE"||An==="MULTIPLE"||An==="JUDGMENT")&&(Wa=[],ue=[],da.question_type=An==="JUDGMENT"?2:1,da.question_title=Fn==null?void 0:Fn.name,Fn==null||((Ta=Fn.choices)===null||Ta===void 0)||Ta.forEach(function(Yt,wn){Wa.push(Yt.choice_text),Yt!=null&&Yt.is_answer&&ue.push(wn+1)}),da.question_choices=Wa,da.standard_answers=ue),An==="COMPLETION"&&(da.is_ordered=Fn.is_ordered,da.question_title=Fn==null?void 0:Fn.name,da.question_type=3,lt=[],Fn==null||((ot=Fn.standard_answers)===null||ot===void 0)||ot.forEach(function(Yt,wn){lt.push({choice_id:Yt.position,answer_text:Yt.answer_text})}),da.standard_answers=lt),An==="SUBJECTIVE"&&(da.question_title=Fn==null?void 0:Fn.name,da.question_type=3,da.standard_answers=Fn==null?void 0:Fn.answer_texts),An==="COMBINATION"&&(da.question_title=Fn==null?void 0:Fn.name,da.question_type=7,da.sub_questions=Fn==null||((ft=Fn.sub_item_banks)===null||ft===void 0)?void 0:ft.map(function(Yt,wn){return{id:Yt.id,question_title:Yt.name,question_type:1,question_choices:Yt.choices.map(function(fn){return fn.choice_text}),standard_answers:[Yt.choices.findIndex(function(fn){return fn.is_answer})+1],analysis:Yt.analysis}}),delete da.analysis),jt.next=12,Object(E.a)("/api/exercise_questions/".concat(aa.id,".json"),{method:"put",body:da});case 12:wt=jt.sent,(wt==null?void 0:wt.status)===0&&(o.b.success("\u7F16\u8F91\u6210\u529F"),ya(qn+1)),ye(null);case 15:case"end":return jt.stop()}},Rt)}));return function(An,aa){return Jt.apply(this,arguments)}}(),ba=function(){for(var Rt=[],An=0;An<(Bt==null||((aa=Bt.exam)===null||aa===void 0)?void 0:aa.total_num);An++){var aa;Rt.push({})}return Rt},Na=Bt==null||((be=Bt.questionList)===null||be===void 0)?void 0:be.reduce(function(Jt,Rt){return Jt+Rt.questions_score},0),Ma=qt&&(Bt==null||((qe=Bt.exam)===null||qe===void 0)?void 0:qe.exercise_status)!==1;return v.a.createElement("section",{className:_.a.wrap},v.a.createElement("div",{id:"id_left_preview",className:_.a.left,onMouseEnter:function(Rt){var An=document.getElementById("id_left_preview");An.style.overflowY="auto"},onMouseLeave:function(Rt){var An=document.getElementById("id_left_preview");An.style.overflowY="hidden"}},v.a.createElement("div",{className:_.a.title},v.a.createElement("div",null,v.a.createElement("b",null),v.a.createElement("span",null,"\u7B54\u9898\u5361"))),v.a.createElement("div",{className:_.a.total},v.a.createElement("div",null,v.a.createElement("img",{src:F.a}),v.a.createElement("span",null,"\u9898\u6570(\u9053)"),v.a.createElement("aside",null,Bt==null?void 0:Bt.all_questions_count)),v.a.createElement("div",{className:"mr30 ml30"},v.a.createElement("img",{src:H.a}),v.a.createElement("span",null,"\u603B\u5206(\u5206)"),v.a.createElement("aside",null,Na)),v.a.createElement("div",null,v.a.createElement("img",{src:g.a}),v.a.createElement("span",null,"\u65F6\u957F(\u5206)"),v.a.createElement("aside",null,Bt==null||((Lt=Bt.exam)===null||Lt===void 0)?void 0:Lt.time))),Bt==null||((nn=Bt.questionList)===null||nn===void 0)?void 0:nn.map(function(Jt,Rt){var An;return v.a.createElement("div",{className:_.a.list,key:Rt},v.a.createElement("div",{className:_.a.name},v.a.createElement("b",null),v.a.createElement("span",null,Jt.name)),v.a.createElement("aside",null,v.a.createElement("div",null,"\u5171",v.a.createElement("span",{className:_.a.b},Jt.questions_count),"\u9898"," ",v.a.createElement("span",{className:_.a.l},"|"),"\u5171",v.a.createElement("span",{className:_.a.r},Jt.questions_score),"\u5206"),v.a.createElement("div",{className:_.a.answerSheet},Jt==null||((An=Jt.questions)===null||An===void 0)?void 0:An.map(function(aa,ra){return v.a.createElement("div",{onClick:function(){var da="Anchor_".concat(aa.id),Ta=document.getElementById(da);Ta&&setTimeout(function(){return Ta.scrollIntoView({block:"center",behavior:"smooth"})})},key:aa.id,className:_.a.tag},ra+1)}))))})),v.a.createElement("div",{className:_.a.right},v.a.createElement("div",{className:_.a.examName,id:"examName"},v.a.createElement("div",{className:_.a.name},v.a.createElement(B.a,{title:Bt==null||(($n=Bt.exam)===null||$n===void 0)?void 0:$n.name,getPopupContainer:function(Rt){return Rt.parentNode}},v.a.createElement("span",{className:_.a.t},Bt==null||((ta=Bt.exam)===null||ta===void 0)?void 0:ta.name))),qt?v.a.createElement(W.a,{showTotal:function(Rt){return v.a.createElement("span",{style:{color:"#656F87",fontSize:14}},"\u5171\u8BA1",v.a.createElement("span",{className:"c-light-primary"},Rt),"\u4EFD\u8BD5\u5377")},total:Bt==null||((Sa=Bt.exam)===null||Sa===void 0)?void 0:Sa.total_num,pageSize:1,current:qn+1,showSizeChanger:!1,onChange:ya,showQuickJumper:!0,hideOnSinglePage:!1}):v.a.createElement(b.a,{onClick:Tn,type:"primary"},"\u968F\u673A\u66F4\u6362")),v.a.createElement("div",{className:_.a.topWarp},Bt==null||((_n=Bt.questionList)===null||_n===void 0)?void 0:_n.map(function(Jt,Rt){var An,aa;return v.a.createElement(v.a.Fragment,{key:Rt},v.a.createElement("div",{className:_.a.head,style:Rt===0?{border:0,marginTop:-16}:{}},v.a.createElement("div",{className:_.a.name},v.a.createElement("b",null),v.a.createElement("span",null,Jt.name)),v.a.createElement("div",{className:_.a.so},"\u5171",v.a.createElement("span",{className:_.a.b},Jt.questions_count," "),"\u9898"," ",Jt.type==="COMBINATION"&&"\uFF08\u5305\u542B".concat(Jt==null||((An=Jt.questions)===null||An===void 0)?void 0:An.map(function(ra){var Fn;return ra==null||((Fn=ra.sub_item_banks)===null||Fn===void 0)?void 0:Fn.length}).reduce(function(ra,Fn){return ra+Fn}),"\u5C0F\u9898\uFF09"),v.a.createElement("span",{className:_.a.l},"|"),"\u5171",v.a.createElement("span",{className:_.a.r},Jt.questions_score),"\u5206"),!qt&&v.a.createElement("div",{className:_.a.btn},v.a.createElement(b.a,{onClick:function(){vn(Jt)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),v.a.createElement(b.a,{onClick:function(){return dn(Jt)},type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),Jt==null||((aa=Jt.questions)===null||aa===void 0)?void 0:aa.map(function(ra,Fn){return Pe===ra.id?v.a.createElement("div",{id:"Anchor_".concat(ra.id),className:_.a.content,style:{padding:0,marginTop:10},key:ra.id},v.a.createElement("div",{style:{float:"right",marginTop:-6}},v.a.createElement(b.a,{onClick:function(){return ye(null)},className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),v.a.createElement(b.a,{onClick:function(){return Qa(Jt==null?void 0:Jt.type,ra)},type:"primary"},"\u4FDD\u5B58")),ir(ra,Jt.type)):v.a.createElement("div",{id:"Anchor_".concat(ra.id),className:_.a.content,key:ra.id},v.a.createElement("div",{className:_.a.titleWrap},v.a.createElement(x.a,{style:{paddingRight:10},className:_.a.titleHtml,value:Fn+1+"\u3001"+"".concat((ra==null?void 0:ra.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":"")+ra.name}),qt&&v.a.createElement(b.a,{disabled:Ma,onClick:function(){if(Pe){o.b.warn("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}ye(ra.id)},type:"primary",className:"mr20",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),v.a.createElement(b.a,{disabled:Ma,onClick:function(){return Oa(ra.id,Jt.type,Fn,Jt)},type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Jt.type==="SINGLE"||Jt.type==="JUDGMENT"||Jt.type==="MULTIPLE")&&z(ra),Jt.type==="COMPLETION"&&Y(ra),Jt.type==="SUBJECTIVE"&&te(ra),Jt.type==="PROGRAM"&&_e(ra),Jt.type==="COMBINATION"&&se(ra,Fn),v.a.createElement("div",null))}))})),v.a.createElement("div",{className:_.a.btnsElse,id:"preview_btns_else"},qt?gr():fr()),v.a.createElement("div",{className:_.a.btnsWrap,id:"preview_btns"},v.a.createElement("div",{className:_.a.btns},qt?gr():fr()))),v.a.createElement(Je,{visible:ve,onRandomExchange:Object(c.a)(D.a.mark(function Jt(){var Rt;return D.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:return Rt=kt.current,aa.next=3,Mt({single_question_id:Rt.id,seleted_item_bank_ids:Rt.ids},{type:Rt.type,index:Rt.index});case 3:bn(!1);case 4:case"end":return aa.stop()}},Jt)})),selectFromProblemSet:function(){var Rt=kt.current,An="".concat(location.pathname).concat(location.search);An.includes("exercise")&&S.d.push("/paperlibrary/exchangequestion?type=exercise&qid=".concat(Rt.id,"&qtype=").concat(Rt.type,"&exerciseid=").concat(at.categoryId,"&from=").concat(An))},onCancel:function(){bn(!1)}}))},Te=re.a=rt},sboe:function(Ge,re,y){"use strict";y.d(re,"a",function(){return k});var Q=y("q1tI"),W=y.n(Q),k=Q.createContext(null)},t23M:function(Ge,re,y){"use strict";var Q=y("VTBJ"),W=y("1OyB"),k=y("vuIU"),B=y("Ji7U"),O=y("LK+K"),R=y("q1tI"),M=y.n(R),p=y("m+aA"),a=y("Zm9Q"),b=y("Kwbf"),u=y("c+Xe"),d=y("bdgK"),m="rc-observer-key",o=function(c){Object(B.a)(i,c);var f=Object(O.a)(i);function i(){var t;return Object(W.a)(this,i),t=f.apply(this,arguments),t.resizeObserver=null,t.childNode=null,t.currentElement=null,t.state={width:0,height:0,offsetHeight:0,offsetWidth:0},t.onResize=function(l){var s=t.props.onResize,w=l[0].target,D=w.getBoundingClientRect(),C=D.width,v=D.height,n=w.offsetWidth,_=w.offsetHeight,h=Math.floor(C),g=Math.floor(v);if(t.state.width!==h||t.state.height!==g||t.state.offsetWidth!==n||t.state.offsetHeight!==_){var x={width:h,height:g,offsetWidth:n,offsetHeight:_};t.setState(x),s&&Promise.resolve().then(function(){s(Object(Q.a)(Object(Q.a)({},x),{},{offsetWidth:n,offsetHeight:_}))})}},t.setChildNode=function(l){t.childNode=l},t}return Object(k.a)(i,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var l=this.props.disabled;if(l){this.destroyObserver();return}var s=Object(p.a)(this.childNode||this),w=s!==this.currentElement;w&&(this.destroyObserver(),this.currentElement=s),!this.resizeObserver&&s&&(this.resizeObserver=new d.default(this.onResize),this.resizeObserver.observe(s))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var l=this.props.children,s=Object(a.a)(l);if(s.length>1)Object(b.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(s.length===0)return Object(b.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=s[0];if(R.isValidElement(w)&&Object(u.c)(w)){var D=w.ref;s[0]=R.cloneElement(w,{ref:Object(u.a)(D,this.setChildNode)})}return s.length===1?s[0]:s.map(function(C,v){return!R.isValidElement(C)||"key"in C&&C.key!==null?C:R.cloneElement(C,{key:"".concat(m,"-").concat(v)})})}}]),i}(R.Component);o.displayName="ResizeObserver",re.a=o},t9D7:function(Ge,re,y){"use strict";y.d(re,"b",function(){return M}),y.d(re,"g",function(){return a}),y.d(re,"d",function(){return b}),y.d(re,"e",function(){return u}),y.d(re,"a",function(){return d}),y.d(re,"f",function(){return c}),y.d(re,"c",function(){return f});var Q=y("Vhoy"),W=y("MI8n"),k=y("pmY6"),B=y("Cg/j"),O=y("ic2d"),R=y("nEHx");const M=Object(B.c)("themeService");var p;(function(i){function t(l){return l&&typeof l=="object"&&typeof l.id=="string"}i.isThemeColor=t})(p||(p={}));function a(i){return{id:i}}var b;(function(i){function t(v){return v&&typeof v=="object"&&typeof v.id=="string"&&(typeof v.color=="undefined"||p.isThemeColor(v.color))}i.isThemeIcon=t;const l=new RegExp(`^\\$\\((${Q.a.iconNameExpression}(?:${Q.a.iconModifierExpression})?)\\)$`);function s(v){const n=l.exec(v);if(!n)return;let[,_]=n;return{id:_}}i.fromString=s;function w(v,n){let _=v.id;const h=_.lastIndexOf("~");return h!==-1&&(_=_.substring(0,h)),n&&(_=`${_}~${n}`),{id:_}}i.modify=w;function D(v,n){var _,h;return v.id===n.id&&((_=v.color)===null||_===void 0?void 0:_.id)===((h=n.color)===null||h===void 0?void 0:h.id)}i.isEqual=D;function C(v,n){return{id:v.id,color:n?a(n):void 0}}i.asThemeIcon=C,i.asClassNameArray=Q.a.asClassNameArray,i.asClassName=Q.a.asClassName,i.asCSSSelector=Q.a.asCSSSelector})(b||(b={}));function u(i){switch(i){case R.a.DARK:return"vs-dark";case R.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const d={ThemingContribution:"base.contributions.theming"};class m{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new W.b}onColorThemeChange(i){return this.themingParticipants.push(i),this.onThemingParticipantAddedEmitter.fire(i),Object(k.i)(()=>{const t=this.themingParticipants.indexOf(i);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}}let o=new m;O.a.add(d.ThemingContribution,o);function c(i){return o.onColorThemeChange(i)}class f extends k.a{constructor(i){super();this.themeService=i,this.theme=i.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(t=>this.onThemeChange(t)))}onThemeChange(i){this.theme=i,this.updateStyles()}updateStyles(){}}},tWlo:function(Ge,re){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},tf39:function(Ge,re,y){Ge.exports={flex_box_center:"flex_box_center___15tXk",flex_space_between:"flex_space_between___2JIaf",flex_box_vertical_center:"flex_box_vertical_center___3168W",flex_box_center_end:"flex_box_center_end___16myc",flex_box_column:"flex_box_column___Ye8vh",title:"title___z0esv",export:"export___1cim9",bg:"bg___1nEgJ",tabs:"tabs___1HwEE"}},u2Z1:function(Ge,re,y){"use strict";y.d(re,"a",function(){return D});var Q=y("miYZ"),W=y("tsqr"),k=y("9og8"),B=y("5NDa"),O=y("5rEg"),R=y("2qtc"),M=y("kLXV"),p=y("oBTY"),a=y("tJVT"),b=y("OaEy"),u=y("2fM7"),d=y("WmNS"),m=y.n(d),o=y("q1tI"),c=y.n(o),f=y("ErOA"),i=y("i58Z"),t=y.n(i),l=y("T1X5"),s=y.n(l),w=u.a.Option,D=function(v){var n=v.subId,_=v.value,h=v.selectvalues,g=v.disabled,x=v.knowledgeOptions,T=x===void 0?[]:x,S=v.onChange,E=S===void 0?function(){}:S,U=v.onAddKnowledgeFinish,F=U===void 0?function(){}:U,P=Object(o.useRef)(),H=Object(o.useState)([]),N=Object(a.a)(H,2),A=N[0],G=N[1];_=_||[];var K=function(le,de){le?(G([de.key]),E([de.key])):(G([]),E([]))};Object(o.useEffect)(function(){(h==null?void 0:h.length)>0&&(G(Object(p.a)(h)),E(Object(p.a)(h)))},[T]),Object(o.useEffect)(function(){var ie;((ie=_)===null||ie===void 0?void 0:ie.length)>0&&E(Object(p.a)(_))},[T]);var $=function(le){le.preventDefault(),P.current="",M.a.confirm({centered:!0,width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:c.a.createElement("div",{className:"font14"},c.a.createElement("div",{style:{display:"flex",marginTop:"48px",marginBottom:"36px"}},c.a.createElement("img",{src:s.a,style:{width:"108px",height:"108px",marginRight:"29px"}}),"\u60A8\u586B\u5199\u7684\u77E5\u8BC6\u70B9\u6682\u65F6\u4EC5\u5BF9\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u540E\u5C06\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF1B",c.a.createElement("br",null),"\u5E73\u53F0\u5BA1\u6838\u8FC7\u7A0B\u4E2D\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF08\u5305\u62EC\u4F46\u4E0D\u9650\u4E8E\u9519\u8BEF\u3001\u975E\u6CD5\u3001\u4E0D\u96C5\u3001\u4E0D\u5339\u914D\u5F53\u524D\u8BFE\u7A0B\u7B49\u60C5\u5F62\uFF09\uFF0C\u5220\u9664\u540E\u53EF\u80FD\u5F71\u54CD\u60A8\u7684\u8BD5\u9898\u7684\u6B63\u5E38\u4F7F\u7528\u3002",c.a.createElement("br",null),"\u8BF7\u8BA4\u771F\u586B\u5199\u4E0E\u6559\u5B66\u5185\u5BB9\u76F8\u5173\u7684\u771F\u5B9E\u77E5\u8BC6\u70B9 ",c.a.createElement("br",null)),c.a.createElement(O.a,{className:"mt5",maxLength:20,style:{marginBottom:"42px"},placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:P.current,onChange:function(Se){P.current=Se.target.value}})),onOk:function(){return new Promise(function(){var Se=Object(k.a)(m.a.mark(function He(et,je){var me,fe;return m.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(P.current){he.next=3;break}return W.b.warn("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),he.abrupt("return",je());case 3:if(!(P.current.length>20)){he.next=6;break}return W.b.warn("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),he.abrupt("return",je());case 6:return he.next=8,Object(f.a)("/api/tag_disciplines.json",{method:"post",body:{name:P.current,sub_discipline_id:n}});case 8:return me=he.sent,(me==null?void 0:me.status)===0&&(F({id:me.tag_discipline_id,name:P.current,type:"personal"}),fe=[],fe.push(me.tag_discipline_id),E([].concat(fe)),G([me.tag_discipline_id]),E([].concat(fe))),he.abrupt("return",et());case 11:case"end":return he.stop()}},He)}));return function(He,et){return Se.apply(this,arguments)}}())}})};return c.a.createElement("div",{className:t.a.wrap},c.a.createElement(u.a,{disabled:!n||g,className:"mr5",style:{width:"242px"},onChange:K,showSearch:!0,allowClear:!0,value:T==null?void 0:T.filter(function(ie){return(A==null?void 0:A.includes(ie==null?void 0:ie.id))||(A==null?void 0:A.includes((ie==null?void 0:ie.id)+""))}).map(function(ie){return ie.name})},T==null?void 0:T.map(function(ie){return c.a.createElement(w,{key:ie.id,value:ie.name},c.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},c.a.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ie.name),c.a.createElement("span",null,ie.type==="personal"?"\uFF08\u81EA\u7528\uFF09":"")))})),c.a.createElement("button",{disabled:!n,className:"".concat(t.a.addKnowledge," ").concat(n?"":t.a.disabled),onClick:$},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))}},u3os:function(Ge,re,y){"use strict";Object.defineProperty(re,"__esModule",{value:!0}),re.ver=re.clear=re.bind=void 0;var Q=y("P4Qj"),W=function(R,M){var p=(0,Q.getSensor)(R);return p.bind(M),function(){p.unbind(M)}};re.bind=W;var k=function(R){var M=(0,Q.getSensor)(R);(0,Q.removeSensor)(M)};re.clear=k;var B="1.0.1";re.ver=B},uJ6K:function(Ge,re,y){Ge.exports={wrap:"wrap___1AALq",img:"img___20GEO",table:"table___26NT5",totalScore:"totalScore___1t1Bx",people:"people___BMR7K",glassSeal:"glassSeal___2woZ-"}},ueOF:function(Ge,re,y){Ge.exports={flex_box_center:"flex_box_center___3u1kD",flex_space_between:"flex_space_between___1iSrL",flex_box_vertical_center:"flex_box_vertical_center___18buA",flex_box_center_end:"flex_box_center_end___35UIs",flex_box_column:"flex_box_column___2UKLk",customModal:"customModal___ppNnJ",checking:"checking___3Jkqo",content:"content___1lP2Z",group:"group___29dCl",footer:"footer___3jXcc"}},ulZh:function(Ge,re,y){typeof window!="undefined"&&function(W,k){Ge.exports=k()}(this,function(){return function(Q){var W={};function k(B){if(W[B])return W[B].exports;var O=W[B]={i:B,l:!1,exports:{}};return Q[B].call(O.exports,O,O.exports,k),O.l=!0,O.exports}return k.m=Q,k.c=W,k.d=function(B,O,R){k.o(B,O)||Object.defineProperty(B,O,{enumerable:!0,get:R})},k.r=function(B){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},k.t=function(B,O){if(O&1&&(B=k(B)),O&8)return B;if(O&4&&typeof B=="object"&&B&&B.__esModule)return B;var R=Object.create(null);if(k.r(R),Object.defineProperty(R,"default",{enumerable:!0,value:B}),O&2&&typeof B!="string")for(var M in B)k.d(R,M,function(p){return B[p]}.bind(null,M));return R},k.n=function(B){var O=B&&B.__esModule?function(){return B.default}:function(){return B};return k.d(O,"a",O),O},k.o=function(B,O){return Object.prototype.hasOwnProperty.call(B,O)},k.p="/dist/",k(k.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Q,W,k){"use strict";var B=Object.prototype.hasOwnProperty,O="~";function R(){}Object.create&&(R.prototype=Object.create(null),new R().__proto__||(O=!1));function M(u,d,m){this.fn=u,this.context=d,this.once=m||!1}function p(u,d,m,o,c){if(typeof m!="function")throw new TypeError("The listener must be a function");var f=new M(m,o||u,c),i=O?O+d:d;return u._events[i]?u._events[i].fn?u._events[i]=[u._events[i],f]:u._events[i].push(f):(u._events[i]=f,u._eventsCount++),u}function a(u,d){--u._eventsCount===0?u._events=new R:delete u._events[d]}function b(){this._events=new R,this._eventsCount=0}b.prototype.eventNames=function(){var d=[],m,o;if(this._eventsCount===0)return d;for(o in m=this._events)B.call(m,o)&&d.push(O?o.slice(1):o);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},b.prototype.listeners=function(d){var m=O?O+d:d,o=this._events[m];if(!o)return[];if(o.fn)return[o.fn];for(var c=0,f=o.length,i=new Array(f);c0},!1)}function u(d,m){for(var o={main:[m]},c={main:[]},f={main:{}};b(o);)for(var i=Object.keys(o),t=0;t/),w=function(D,C){o.call(this,D,C),this._current_tag_name="";var v=new i(this._input).read_options(this._options),n=new t(this._input);if(this.__patterns={word:v.until(/[\n\r\t <]/),single_quote:v.until_after(/'/),double_quote:v.until_after(/"/),attribute:v.until(/[\n\r\t =>]|\/>/),element_name:v.until(/[\n\r\t >\/]/),handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),handlebars_open:n.until(/[\n\r\t }]/),handlebars_raw_close:n.until(/}}/),comment:n.starting_with(//),cdata:n.starting_with(//),conditional_comment:n.starting_with(//),processing:n.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var _=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=n.matching(_).until_after(_)}};w.prototype=new o,w.prototype._is_comment=function(D){return!1},w.prototype._is_opening=function(D){return D.type===l.TAG_OPEN},w.prototype._is_closing=function(D,C){return D.type===l.TAG_CLOSE&&C&&((D.text===">"||D.text==="/>")&&C.text[0]==="<"||D.text==="}}"&&C.text[0]==="{"&&C.text[1]==="{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(D,C){var v=null;this._readWhitespace();var n=this._input.peek();return n===null?this._create_token(l.EOF,""):(v=v||this._read_open_handlebars(n,C),v=v||this._read_attribute(n,D,C),v=v||this._read_close(n,C),v=v||this._read_raw_content(n,D,C),v=v||this._read_content_word(n),v=v||this._read_comment_or_cdata(n),v=v||this._read_processing(n),v=v||this._read_open(n,C),v=v||this._create_token(l.UNKNOWN,this._input.next()),v)},w.prototype._read_comment_or_cdata=function(D){var C=null,v=null,n=null;if(D==="<"){var _=this._input.peek(1);_==="!"&&(v=this.__patterns.comment.read(),v?(n=s.get_directives(v),n&&n.ignore==="start"&&(v+=s.readIgnored(this._input))):v=this.__patterns.cdata.read()),v&&(C=this._create_token(l.COMMENT,v),C.directives=n)}return C},w.prototype._read_processing=function(D){var C=null,v=null,n=null;if(D==="<"){var _=this._input.peek(1);(_==="!"||_==="?")&&(v=this.__patterns.conditional_comment.read(),v=v||this.__patterns.processing.read()),v&&(C=this._create_token(l.COMMENT,v),C.directives=n)}return C},w.prototype._read_open=function(D,C){var v=null,n=null;return C||D==="<"&&(v=this._input.next(),this._input.peek()==="/"&&(v+=this._input.next()),v+=this.__patterns.element_name.read(),n=this._create_token(l.TAG_OPEN,v)),n},w.prototype._read_open_handlebars=function(D,C){var v=null,n=null;return C||this._options.indent_handlebars&&D==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(v=this.__patterns.handlebars_comment.read(),v=v||this.__patterns.handlebars.read(),n=this._create_token(l.COMMENT,v)):(v=this.__patterns.handlebars_open.read(),n=this._create_token(l.TAG_OPEN,v))),n},w.prototype._read_close=function(D,C){var v=null,n=null;return C&&(C.text[0]==="<"&&(D===">"||D==="/"&&this._input.peek(1)===">")?(v=this._input.next(),D==="/"&&(v+=this._input.next()),n=this._create_token(l.TAG_CLOSE,v)):C.text[0]==="{"&&D==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),n=this._create_token(l.TAG_CLOSE,"}}"))),n},w.prototype._read_attribute=function(D,C,v){var n=null,_="";if(v&&v.text[0]==="<")if(D==="=")n=this._create_token(l.EQUALS,this._input.next());else if(D==='"'||D==="'"){var h=this._input.next();D==='"'?h+=this.__patterns.double_quote.read():h+=this.__patterns.single_quote.read(),n=this._create_token(l.VALUE,h)}else _=this.__patterns.attribute.read(),_&&(C.type===l.EQUALS?n=this._create_token(l.VALUE,_):n=this._create_token(l.ATTRIBUTE,_));return n},w.prototype._is_content_unformatted=function(D){return this._options.void_elements.indexOf(D)===-1&&(this._options.content_unformatted.indexOf(D)!==-1||this._options.unformatted.indexOf(D)!==-1)},w.prototype._read_raw_content=function(D,C,v){var n="";if(v&&v.text[0]==="{")n=this.__patterns.handlebars_raw_close.read();else if(C.type===l.TAG_CLOSE&&C.opened.text[0]==="<"&&C.text[0]!=="/"){var _=C.opened.text.substr(1).toLowerCase();if(_==="script"||_==="style"){var h=this._read_comment_or_cdata(D);if(h)return h.type=l.TEXT,h;n=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(_)&&(n=this._input.readUntil(new RegExp("","ig")))}return n?this._create_token(l.TEXT,n):null},w.prototype._read_content_word=function(D){var C="";if(this._options.unformatted_content_delimiter&&(D===this._options.unformatted_content_delimiter[0]&&(C=this.__patterns.unformatted_content_delimiter.read())),C||(C=this.__patterns.word.read()),C)return this._create_token(l.TEXT,C)},u.exports.Tokenizer=w,u.exports.TOKEN=l}],p={};function a(u){var d=p[u];if(d!==void 0)return d.exports;var m=p[u]={exports:{}};return M[u](m,m.exports,a),m.exports}var b=a(18);k=b})();var B=k;if(!0)!(Q=[y,y("6UM0"),y("TXwP")],W=function(M){var p=y("6UM0"),a=y("TXwP");return{html_beautify:function(b,u){return B(b,u,p.js_beautify,a.css_beautify)}}}.apply(re,Q),W!==void 0&&(Ge.exports=W));else var O,R})()},pzxd:function(Ge,re,y){var Q=y("bYtY"),W=Q.retrieve2,k=Q.retrieve3,B=Q.each,O=Q.normalizeCssArray,R=Q.isString,M=Q.isObject,p=y("6GrX"),a=y("VpOo"),b=y("Xnb7"),u=y("fW2E"),d=y("gut8"),m=d.ContextCachedBy,o=d.WILL_BE_RESTORED,c=p.DEFAULT_FONT,f={left:1,right:1,center:1},i={top:1,bottom:1,middle:1},t=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],l={},s={};function w(G){return D(G),B(G.rich,D),G}function D(G){if(G){G.font=p.makeFont(G);var K=G.textAlign;K==="middle"&&(K="center"),G.textAlign=K==null||f[K]?K:"left";var $=G.textVerticalAlign||G.textBaseline;$==="center"&&($="middle"),G.textVerticalAlign=$==null||i[$]?$:"top";var ie=G.textPadding;ie&&(G.textPadding=O(G.textPadding))}}function C(G,K,$,ie,le,de){ie.rich?n(G,K,$,ie,le,de):v(G,K,$,ie,le,de)}function v(G,K,$,ie,le,de){"use strict";var Se=x(ie),He,et=!1,je=K.__attrCachedBy===m.PLAIN_TEXT;de!==o?(de&&(He=de.style,et=!Se&&je&&He),K.__attrCachedBy=Se?m.NONE:m.PLAIN_TEXT):je&&(K.__attrCachedBy=m.NONE);var me=ie.font||c;(!et||me!==(He.font||c))&&(K.font=me);var fe=G.__computedFont;G.__styleFont!==me&&(G.__styleFont=me,fe=G.__computedFont=K.font);var Ae=ie.textPadding,he=ie.textLineHeight,Ue=G.__textCotentBlock;(!Ue||G.__dirtyText)&&(Ue=G.__textCotentBlock=p.parsePlainText($,fe,Ae,he,ie.truncate));var st=Ue.outerHeight,Ve=Ue.lines,dt=Ue.lineHeight,Qe=E(s,G,ie,le),pe=Qe.baseX,xe=Qe.baseY,Le=Qe.textAlign||"left",Ye=Qe.textVerticalAlign;h(K,ie,le,pe,xe);var gt=p.adjustTextY(xe,st,Ye),Ct=pe,tn=gt;if(Se||Ae){var Zt=p.getWidth($,fe),Hn=Zt;Ae&&(Hn+=Ae[1]+Ae[3]);var ia=p.adjustTextX(pe,Hn,Le);Se&&T(G,K,ie,ia,gt,Hn,st),Ae&&(Ct=N(pe,Le,Ae),tn+=Ae[0])}K.textAlign=Le,K.textBaseline="middle",K.globalAlpha=ie.opacity||1;for(var vt=0;vt=0&&(vt=Le[ia],vt.textAlign==="right");)g(G,K,vt,ie,gt,dt,Hn,"right"),Ct-=vt.width,Hn-=vt.width,ia--;for(Zt+=(de-(Zt-Ve)-(Qe-Hn)-Ct)/2;tn<=ia;)vt=Le[tn],g(G,K,vt,ie,gt,dt,Zt+vt.width/2,"center"),Zt+=vt.width,tn++;dt+=gt}}function h(G,K,$,ie,le){if($&&K.textRotation){var de=K.textOrigin;de==="center"?(ie=$.width/2+$.x,le=$.height/2+$.y):de&&(ie=de[0]+$.x,le=de[1]+$.y),G.translate(ie,le),G.rotate(-K.textRotation),G.translate(-ie,-le)}}function g(G,K,$,ie,le,de,Se,He){var et=ie.rich[$.styleName]||{};et.text=$.text;var je=$.textVerticalAlign,me=de+le/2;je==="top"?me=de+$.height/2:je==="bottom"&&(me=de+le-$.height/2),!$.isLineHolder&&x(et)&&T(G,K,et,He==="right"?Se-$.width:He==="center"?Se-$.width/2:Se,me-$.height/2,$.width,$.height);var fe=$.textPadding;fe&&(Se=N(Se,He,fe),me-=$.height/2-fe[2]-$.textHeight/2),U(K,"shadowBlur",k(et.textShadowBlur,ie.textShadowBlur,0)),U(K,"shadowColor",et.textShadowColor||ie.textShadowColor||"transparent"),U(K,"shadowOffsetX",k(et.textShadowOffsetX,ie.textShadowOffsetX,0)),U(K,"shadowOffsetY",k(et.textShadowOffsetY,ie.textShadowOffsetY,0)),U(K,"textAlign",He),U(K,"textBaseline","middle"),U(K,"font",$.font||c);var Ae=F(et.textStroke||ie.textStroke,Ue),he=P(et.textFill||ie.textFill),Ue=W(et.textStrokeWidth,ie.textStrokeWidth);Ae&&(U(K,"lineWidth",Ue),U(K,"strokeStyle",Ae),K.strokeText($.text,Se,me)),he&&(U(K,"fillStyle",he),K.fillText($.text,Se,me))}function x(G){return!!(G.textBackgroundColor||G.textBorderWidth&&G.textBorderColor)}function T(G,K,$,ie,le,de,Se){var He=$.textBackgroundColor,et=$.textBorderWidth,je=$.textBorderColor,me=R(He);if(U(K,"shadowBlur",$.textBoxShadowBlur||0),U(K,"shadowColor",$.textBoxShadowColor||"transparent"),U(K,"shadowOffsetX",$.textBoxShadowOffsetX||0),U(K,"shadowOffsetY",$.textBoxShadowOffsetY||0),me||et&&je){K.beginPath();var fe=$.textBorderRadius;fe?a.buildPath(K,{x:ie,y:le,width:de,height:Se,r:fe}):K.rect(ie,le,de,Se),K.closePath()}if(me)if(U(K,"fillStyle",He),$.fillOpacity!=null){var Ae=K.globalAlpha;K.globalAlpha=$.fillOpacity*$.opacity,K.fill(),K.globalAlpha=Ae}else K.fill();else if(M(He)){var he=He.image;he=b.createOrUpdateImage(he,null,G,S,He),he&&b.isImageReady(he)&&K.drawImage(he,ie,le,de,Se)}if(et&&je)if(U(K,"lineWidth",et),U(K,"strokeStyle",je),$.strokeOpacity!=null){var Ae=K.globalAlpha;K.globalAlpha=$.strokeOpacity*$.opacity,K.stroke(),K.globalAlpha=Ae}else K.stroke()}function S(G,K){K.image=G}function E(G,K,$,ie){var le=$.x||0,de=$.y||0,Se=$.textAlign,He=$.textVerticalAlign;if(ie){var et=$.textPosition;if(et instanceof Array)le=ie.x+H(et[0],ie.width),de=ie.y+H(et[1],ie.height);else{var je=K&&K.calculateTextPosition?K.calculateTextPosition(l,$,ie):p.calculateTextPosition(l,$,ie);le=je.x,de=je.y,Se=Se||je.textAlign,He=He||je.textVerticalAlign}var me=$.textOffset;me&&(le+=me[0],de+=me[1])}return G=G||{},G.baseX=le,G.baseY=de,G.textAlign=Se,G.textVerticalAlign=He,G}function U(G,K,$){return G[K]=u(G,K,$),G[K]}function F(G,K){return G==null||K<=0||G==="transparent"||G==="none"?null:G.image||G.colorStops?"#000":G}function P(G){return G==null||G==="none"?null:G.image||G.colorStops?"#000":G}function H(G,K){return typeof G=="string"?G.lastIndexOf("%")>=0?parseFloat(G)/100*K:parseFloat(G):G}function N(G,K,$){return K==="right"?G-$[1]:K==="center"?G+$[3]/2-$[1]/2:G+$[3]}function A(G,K){return G!=null&&(G||K.textBackgroundColor||K.textBorderWidth&&K.textBorderColor||K.textPadding)}re.normalizeTextStyle=w,re.renderText=C,re.getBoxPosition=E,re.getStroke=F,re.getFill=P,re.parsePercent=H,re.needDrawText=A},qH13:function(Ge,re,y){var Q=y("ItGF"),W=y("QBsz"),k=W.applyTransform,B=y("mFDi"),O=y("Qe9p"),R=y("6GrX"),M=y("pzxd"),p=y("ni6a"),a=y("Gev7"),b=y("Dagg"),u=y("dqUG"),d=y("y+Vt"),m=y("IMiH"),o=y("QuXc"),c=y("06Qe"),f=m.CMD,i=Math.round,t=Math.sqrt,l=Math.abs,s=Math.cos,w=Math.sin,D=Math.max;if(!Q.canvasSupported){var C=",",v="progid:DXImageTransform.Microsoft",n=21600,_=n/2,h=1e5,g=1e3,x=function(pe){pe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",pe.coordsize=n+","+n,pe.coordorigin="0,0"},T=function(pe){return String(pe).replace(/&/g,"&").replace(/"/g,""")},S=function(pe,xe,Le){return"rgb("+[pe,xe,Le].join(",")+")"},E=function(pe,xe){xe&&pe&&xe.parentNode!==pe&&pe.appendChild(xe)},U=function(pe,xe){xe&&pe&&xe.parentNode===pe&&pe.removeChild(xe)},F=function(pe,xe,Le){return(parseFloat(pe)||0)*h+(parseFloat(xe)||0)*g+Le},P=M.parsePercent,H=function(pe,xe,Le){var Ye=O.parse(xe);Le=+Le,isNaN(Le)&&(Le=1),Ye&&(pe.color=S(Ye[0],Ye[1],Ye[2]),pe.opacity=Le*Ye[3])},N=function(pe){var xe=O.parse(pe);return[S(xe[0],xe[1],xe[2]),xe[3]]},A=function(pe,xe,Le){var Ye=xe.fill;if(Ye!=null)if(Ye instanceof o){var gt,Ct=0,tn=[0,0],Zt=0,Hn=1,ia=Le.getBoundingRect(),vt=ia.width,mt=ia.height;if(Ye.type==="linear"){gt="gradient";var on=Le.transform,hn=[Ye.x*vt,Ye.y*mt],Ot=[Ye.x2*vt,Ye.y2*mt];on&&(k(hn,hn,on),k(Ot,Ot,on));var Xt=Ot[0]-hn[0],ht=Ot[1]-hn[1];Ct=Math.atan2(Xt,ht)*180/Math.PI,Ct<0&&(Ct+=360),Ct<1e-6&&(Ct=0)}else{gt="gradientradial";var hn=[Ye.x*vt,Ye.y*mt],on=Le.transform,Je=Le.scale,rt=vt,Te=mt;tn=[(hn[0]-ia.x)/rt,(hn[1]-ia.y)/Te],on&&k(hn,hn,on),rt/=Je[0]*n,Te/=Je[1]*n;var Me=D(rt,Te);Zt=2*0/Me,Hn=2*Ye.r/Me-Zt}var Ie=Ye.colorStops.slice();Ie.sort(function(Gt,ze){return Gt.offset-ze.offset});for(var be=Ie.length,qe=[],Lt=[],nn=0;nn=2){var Sa=qe[0][0],_n=qe[1][0],Bt=qe[0][1]*xe.opacity,mn=qe[1][1]*xe.opacity;pe.type=gt,pe.method="none",pe.focus="100%",pe.angle=Ct,pe.color=Sa,pe.color2=_n,pe.colors=Lt.join(","),pe.opacity=mn,pe.opacity2=Bt}gt==="radial"&&(pe.focusposition=tn.join(","))}else H(pe,Ye,xe.opacity)},G=function(pe,xe){xe.lineDash&&(pe.dashstyle=xe.lineDash.join(" ")),xe.stroke!=null&&!(xe.stroke instanceof o)&&H(pe,xe.stroke,xe.opacity)},K=function(pe,xe,Le,Ye){var gt=xe==="fill",Ct=pe.getElementsByTagName(xe)[0];Le[xe]!=null&&Le[xe]!=="none"&&(gt||!gt&&Le.lineWidth)?(pe[gt?"filled":"stroked"]="true",Le[xe]instanceof o&&U(pe,Ct),Ct||(Ct=c.createNode(xe)),gt?A(Ct,Le,Ye):G(Ct,Le),E(pe,Ct)):(pe[gt?"filled":"stroked"]="false",U(pe,Ct))},$=[[],[],[]],ie=function(pe,xe){var Le=f.M,Ye=f.C,gt=f.L,Ct=f.A,tn=f.Q,Zt=[],Hn,ia,vt,mt,on,hn,Ot=pe.data,Xt=pe.len();for(mt=0;mt.01?ze&&(ct+=270/n):Math.abs(Sn-Sa)<1e-4?ze&&ctta?Je-=270/n:Je+=270/n:ze&&SnSa?ht+=270/n:ht-=270/n),Zt.push(qt,i(((ta-_n)*Lt+be)*n-_),C,i(((Sa-Bt)*nn+qe)*n-_),C,i(((ta+_n)*Lt+be)*n-_),C,i(((Sa+Bt)*nn+qe)*n-_),C,i((ct*Lt+be)*n-_),C,i((Sn*nn+qe)*n-_),C,i((ht*Lt+be)*n-_),C,i((Je*nn+qe)*n-_)),on=ht,hn=Je;break;case f.R:var Gn=$[0],qn=$[1];Gn[0]=Ot[mt++],Gn[1]=Ot[mt++],qn[0]=Gn[0]+Ot[mt++],qn[1]=Gn[1]+Ot[mt++],xe&&(k(Gn,Gn,xe),k(qn,qn,xe)),Gn[0]=i(Gn[0]*n-_),qn[0]=i(qn[0]*n-_),Gn[1]=i(Gn[1]*n-_),qn[1]=i(qn[1]*n-_),Zt.push(" m ",Gn[0],C,Gn[1]," l ",qn[0],C,Gn[1]," l ",qn[0],C,qn[1]," l ",Gn[0],C,qn[1]);break;case f.Z:Zt.push(" x ")}if(Hn>0){Zt.push(ia);for(var Mt=0;Mtet&&(He=0,Se={});var Le=je.style,Ye;try{Le.font=pe,Ye=Le.fontFamily.split(",")[0]}catch(gt){}xe={style:Le.fontStyle||de,variant:Le.fontVariant||de,weight:Le.fontWeight||de,size:parseFloat(Le.fontSize||12)|0,family:Ye||"Microsoft YaHei"},Se[pe]=xe,He++}return xe},fe;R.$override("measureText",function(pe,xe){var Le=c.doc;fe||(fe=Le.createElement("div"),fe.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",c.doc.body.appendChild(fe));try{fe.style.font=xe}catch(Ye){}return fe.innerHTML="",fe.appendChild(Le.createTextNode(pe)),{width:fe.offsetWidth}});for(var Ae=new B,he=function(pe,xe,Le,Ye){var gt=this.style;this.__dirty&&M.normalizeTextStyle(gt,!0);var Ct=gt.text;if(Ct!=null&&(Ct+=""),!Ct)return;if(gt.rich){var tn=R.parseRichText(Ct,gt);Ct=[];for(var Zt=0;Zt=0&&(this.delFromStorage(p),this._roots.splice(d,1),p instanceof k&&p.delChildrenFromStorage(this))},addToStorage:function(p){return p&&(p.__storage=this,p.dirty(!1)),this},delFromStorage:function(p){return p&&(p.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:O};var M=R;Ge.exports=M},rA99:function(Ge,re,y){var Q=y("y+Vt"),W=y("QBsz"),k=y("Sj9i"),B=k.quadraticSubdivide,O=k.cubicSubdivide,R=k.quadraticAt,M=k.cubicAt,p=k.quadraticDerivativeAt,a=k.cubicDerivativeAt,b=[];function u(m,o,c){var f=m.cpx2,i=m.cpy2;return f===null||i===null?[(c?a:M)(m.x1,m.cpx1,m.cpx2,m.x2,o),(c?a:M)(m.y1,m.cpy1,m.cpy2,m.y2,o)]:[(c?p:R)(m.x1,m.cpx1,m.x2,o),(c?p:R)(m.y1,m.cpy1,m.y2,o)]}var d=Q.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(m,o){var c=o.x1,f=o.y1,i=o.x2,t=o.y2,l=o.cpx1,s=o.cpy1,w=o.cpx2,D=o.cpy2,C=o.percent;if(C===0)return;m.moveTo(c,f),w==null||D==null?(C<1&&(B(c,l,i,C,b),l=b[1],i=b[2],B(f,s,t,C,b),s=b[1],t=b[2]),m.quadraticCurveTo(l,s,i,t)):(C<1&&(O(c,l,w,i,C,b),l=b[1],w=b[2],i=b[3],O(f,s,D,t,C,b),s=b[1],D=b[2],t=b[3]),m.bezierCurveTo(l,s,w,D,i,t))},pointAt:function(m){return u(this.shape,m,!1)},tangentAt:function(m){var o=u(this.shape,m,!0);return W.normalize(o,o)}});Ge.exports=d},"rAM+":function(Ge,re,y){"use strict";y.d(re,"a",function(){return W});var Q=y("Qw5x");function W(k,B){var O;if(typeof Symbol=="undefined"||k[Symbol.iterator]==null){if(Array.isArray(k)||(O=Object(Q.a)(k))||B&&k&&typeof k.length=="number"){O&&(k=O);var R=0,M=function(){};return{s:M,n:function(){return R>=k.length?{done:!0}:{done:!1,value:k[R++]}},e:function(d){throw d},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,a=!1,b;return{s:function(){O=k[Symbol.iterator]()},n:function(){var d=O.next();return p=d.done,d},e:function(d){a=!0,b=d},f:function(){try{!p&&O.return!=null&&O.return()}finally{if(a)throw b}}}}},rUJ1:function(Ge,re){const y=/[&<>"']/,Q=/[&<>"']/g,W=/[<>"']|&(?!#?\w+;)/,k=/[<>"']|&(?!#?\w+;)/g,B={"&":"&","<":"<",">":">",'"':""","'":"'"},O=n=>B[n];function R(n,_){if(_){if(y.test(n))return n.replace(Q,O)}else if(W.test(n))return n.replace(k,O);return n}const M=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function p(n){return n.replace(M,(_,h)=>(h=h.toLowerCase(),h==="colon"?":":h.charAt(0)==="#"?h.charAt(1)==="x"?String.fromCharCode(parseInt(h.substring(2),16)):String.fromCharCode(+h.substring(1)):""))}const a=/(^|[^\[])\^/g;function b(n,_){n=n.source||n,_=_||"";const h={replace:(g,x)=>(x=x.source||x,x=x.replace(a,"$1"),n=n.replace(g,x),h),getRegex:()=>new RegExp(n,_)};return h}const u=/[^\w:]/g,d=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(n,_,h){if(n){let g;try{g=decodeURIComponent(p(h)).replace(u,"").toLowerCase()}catch(x){return null}if(g.indexOf("javascript:")===0||g.indexOf("vbscript:")===0||g.indexOf("data:")===0)return null}_&&!d.test(h)&&(h=t(_,h));try{h=encodeURI(h).replace(/%25/g,"%")}catch(g){return null}return h}const o={},c=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,i=/^([^:]+:\/*[^/]*)[\s\S]*$/;function t(n,_){o[" "+n]||(c.test(n)?o[" "+n]=n+"/":o[" "+n]=D(n,"/",!0)),n=o[" "+n];const h=n.indexOf(":")===-1;return _.substring(0,2)==="//"?h?_:n.replace(f,"$1")+_:_.charAt(0)==="/"?h?_:n.replace(i,"$1")+_:n+_}const l={exec:function(){}};function s(n){let _=1,h,g;for(;_{let U=!1,F=S;for(;--F>=0&&E[F]==="\\";)U=!U;return U?"|":" |"}),g=h.split(/ \|/);let x=0;if(g.length>_)g.splice(_);else for(;g.length<_;)g.push("");for(;x0&&xe[0]!==void 0?xe[0]:0,console.log(et),Ye.next=4,Object(c.a)("/api/exercises/".concat(et.categoryId,"/preview_random_exercise.json"),{method:"get",params:{num:Qe}});case 4:pe=Ye.sent,A(!1),He(fe(pe));case 7:case"end":return Ye.stop()}},dt)}));return function(){return Ve.apply(this,arguments)}}(),fe=function(dt){var Qe={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D",7:"\u4E03"};if(!dt)return;var pe=dt||{},xe=pe.exam,Le=pe.single_questions,Ye=pe.multiple_questions,gt=pe.judgement_questions,Ct=pe.program_questions,tn=pe.completion_questions,Zt=pe.subjective_questions,Hn=pe.practical_questions,ia=pe.combination_questions,vt=[Object(k.a)({type:"SINGLE",name:"\u5355\u9009\u9898"},Le),Object(k.a)({type:"MULTIPLE",name:"\u591A\u9009\u9898"},Ye),Object(k.a)({type:"COMPLETION",name:"\u586B\u7A7A\u9898"},tn),Object(k.a)({type:"JUDGMENT",name:"\u5224\u65AD\u9898"},gt),Object(k.a)({type:"SUBJECTIVE",name:"\u7B80\u7B54\u9898"},Zt),Object(k.a)({type:"PROGRAM",name:"\u7F16\u7A0B\u9898"},Ct),Object(k.a)({type:"PRACTICAL",name:"\u5B9E\u8BAD\u9898"},Hn),Object(k.a)({type:"COMBINATION",name:"\u7EC4\u5408\u9898"},ia)],mt=[],on=0,hn=0,Ot=vt.filter(function(Xt){return Xt.questions_count>0}).map(function(Xt,ht){var Je;return(Je=Xt.questions)===null||Je===void 0||Je.forEach(function(rt){mt.push(rt.id),on=on+rt.score,hn=hn+1}),Object(k.a)(Object(k.a)({},Xt),{number:Qe[ht+1]})});return{all_questions_count:hn,all_score:on,questionList:Ot,ids:mt,exam:xe}},Ae=function(){u.d.push("/classrooms/".concat(et.coursesId,"/exercise"))},he=function(){alert("\u4FDD\u5B58")},Ue=function(){var Ve=Object(B.a)(M.a.mark(function dt(Qe,pe){var xe,Le,Ye;return M.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(c.a)("/api/exercises/".concat(et.categoryId,"/toggle_random_question.json"),{method:"post",body:{question_id:Qe==null?void 0:Qe.single_question_id}});case 2:xe=Ct.sent,xe!=null&&xe.question&&(Ye=Object(f.cloneDeep)(Se),Ye.questionList=Ye==null||((Le=Ye.questionList)===null||Le===void 0)?void 0:Le.map(function(tn){if(tn.type===pe.type){var Zt=Object(f.cloneDeep)(tn==null?void 0:tn.questions);return Zt.splice(pe.index,1,xe==null?void 0:xe.question),Object(k.a)(Object(k.a)({},tn),{},{questions:Zt})}return tn}),He(Ye));case 4:case"end":return Ct.stop()}},dt)}));return function(Qe,pe){return Ve.apply(this,arguments)}}(),st=function(){var Ve=Object(B.a)(M.a.mark(function dt(Qe){return M.a.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:document.body.scrollIntoView(),me(Qe),ie(Qe);case 3:case"end":return xe.stop()}},dt)}));return function(Qe){return Ve.apply(this,arguments)}}();return console.log(Object(b.h)(),"location333"),a.a.createElement("section",{className:m.a.wrap},a.a.createElement(W.a,{loading:N,active:!0,paragraph:{rows:5}},((D=Object(b.h)())===null||D===void 0||((C=D.pathname)===null||C===void 0)?void 0:C.includes("preview"))&&a.a.createElement("div",{className:m.a.crumbs},a.a.createElement("b",null),a.a.createElement("span",{className:"current",onClick:function(){return u.d.push("/classrooms/".concat(et.coursesId,"/exercise"))}},"".concat(je==null||((v=je.course)===null||v===void 0)?void 0:v.course_name,">")),a.a.createElement("span",{className:"current",onClick:function(){return u.d.push("/classrooms/".concat(et.coursesId,"/exercise"))}},"\u8BD5\u5377\u5217\u8868>"),a.a.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),a.a.createElement(o.a,{loading:U,submit:he,goBack:Ae,data:Se,selectValue:$,editPreview:!0,onExchange:Ue,onSkipExamination:st})))};re.default=Object(u.a)(function(l){var s=l.paperlibrary,w=l.user,D=l.globalSetting;return{paperlibrary:s,user:w,globalSetting:D}})(t)},sR1s:function(Ge,re,y){"use strict";y.d(re,"b",function(){return B}),y.d(re,"a",function(){return O}),y.d(re,"c",function(){return R}),y.d(re,"d",function(){return M});var Q=y("U8pU"),W="RC_TABLE_KEY";function k(p){return p==null?[]:Array.isArray(p)?p:[p]}function B(p,a){if(!a&&typeof a!="number")return p;for(var b=k(a),u=p,d=0;d-1)){var o=B.parse(m)[3],c=B.toHex(m);d.setAttribute("stop-color","#"+c),d.setAttribute("stop-opacity",o)}else d.setAttribute("stop-color",a[b].color);p.appendChild(d)}M._dom=p},O.prototype.markUsed=function(M){if(M.style){var p=M.style.fill;p&&p._dom&&Q.prototype.markUsed.call(this,p._dom),p=M.style.stroke,p&&p._dom&&Q.prototype.markUsed.call(this,p._dom)}};var R=O;Ge.exports=R},sbIO:function(Ge,re,y){"use strict";var Q=y("DjyN"),W=y("NUBc"),k=y("5Dmo"),B=y("3S7+"),O=y("/zsF"),R=y("PArb"),M=y("Q9mQ"),p=y("diRs"),a=y("+L6B"),b=y("2/Rp"),u=y("5NDa"),d=y("5rEg"),m=y("miYZ"),o=y("tsqr"),c=y("9og8"),f=y("giR+"),i=y("fyUT"),t=y("2qtc"),l=y("kLXV"),s=y("tJVT"),w=y("WmNS"),D=y.n(w),C=y("q1tI"),v=y.n(C),n=y("PsQE"),_=y.n(n),h=y("0eGx"),g=y.n(h),x=y("9Bee"),T=y("Ty5D"),S=y("9kvl"),E=y("ErOA"),U=y("+yhJ"),F=y.n(U),P=y("RZ/O"),H=y.n(P),N=y("LvDl"),A=y("6K3P"),G=y.n(A),K=y("sRBo"),$=y("kaz8"),ie=y("oBTY"),le=y("PpiC"),de=y("Ot1p"),Se=y("kqOp"),He=y("7qnI"),et=y("1vsH"),je=y("PGNT"),me=y.n(je),fe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ae=function(Ie,be){var qe=Ie.globalSetting,Lt=Ie.loading,nn=Ie.dispatch,$n=Ie.isEdit,ta=Ie.editData,Sa=Object(le.a)(Ie,["globalSetting","loading","dispatch","isEdit","editData"]),_n=Object(C.useState)(""),Bt=Object(s.a)(_n,2),mn=Bt[0],Gt=Bt[1],ze=Object(C.useState)(""),ct=Object(s.a)(ze,2),Sn=ct[0],qt=ct[1],Gn=Object(C.useState)([]),qn=Object(s.a)(Gn,2),Mt=qn[0],Nn=qn[1],Bn=Object(C.useState)(""),na=Object(s.a)(Bn,2),Ea=na[0],Pe=na[1],ye=Object(C.useState)(),J=Object(s.a)(ye,2),q=J[0],Z=J[1],oe=Object(C.useState)(!1),Oe=Object(s.a)(oe,2),Re=Oe[0],ve=Oe[1];Object(C.useEffect)(function(){if(!ta||!$n)return;Gt(ta==null?void 0:ta.name),qt(ta==null?void 0:ta.analysis),Z(ta==null?void 0:ta.is_ordered),ve(!0)},[ta]),Object(C.useEffect)(function(){if(!Re)return;var fa=ta==null?void 0:ta.standard_answer.map(function(ae){return ae.answer_text});Nn(fa),ve(!1)},[Re]),Object(C.useImperativeHandle)(be,function(){return{onSave:bn,Clear:kt}});var bn=function(){var ae=[],z=!1;return mn?(Mt.forEach(function(Y,te){ae.push({position:te+1,answer_text:[]}),Y.forEach(function(_e,se){ae[te].answer_text.push(_e),(!_e||!Object(et.db)(_e,1e4))&&(Pe("".concat(te,"-").concat(se)),o.b.info(_e?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),z=!0)})}),z?!1:(ae==null?void 0:ae.length)>20?(o.b.warn("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:mn,analysis:Sn,standard_answers:ae,is_ordered:q}):(o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},kt=function(){Gt(""),qt(""),Nn([]),Z(!1)},at=function(ae,z,Y){var te=Mt.slice();if(z&&te.splice(ae,z),Y)for(var _e=0;_e1&&v.a.createElement("span",null,v.a.createElement($.a,{checked:q,onChange:function(ae){return Z(ae.target.checked)},className:"".concat(me.a.color333," font14")},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),v.a.createElement("span",{className:"".concat(me.a.color999," font12")},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Sn,onChange:function(ae){return qt(ae)}}))},he=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(Ae)),Ue=y("7Kak"),st=y("9yH6"),Ve=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],dt=function(Ie,be){var qe=Ie.globalSetting,Lt=Ie.loading,nn=Ie.editData,$n=Ie.dispatch,ta=Ie.onRef,Sa=ta===void 0?function(){}:ta,_n=Ie.isEdit,Bt=Object(le.a)(Ie,["globalSetting","loading","editData","dispatch","onRef","isEdit"]),mn=Object(C.useState)(),Gt=Object(s.a)(mn,2),ze=Gt[0],ct=Gt[1],Sn=Object(C.useState)(""),qt=Object(s.a)(Sn,2),Gn=qt[0],qn=qt[1],Mt=Object(C.useState)(""),Nn=Object(s.a)(Mt,2),Bn=Nn[0],na=Nn[1];Object(C.useEffect)(function(){if(!nn||!_n)return;qn(nn==null?void 0:nn.name),na(nn==null?void 0:nn.analysis);var ye=nn==null?void 0:nn.choices.find(function(J){return J.is_answer});ct(ye.choice_text==="\u6B63\u786E"?"0":"1")},[nn]),Object(C.useImperativeHandle)(be,function(){return{onSave:Ea,Clear:Pe}});var Ea=function(){if(!Gn)return o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!ze)return o.b.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;var J=[{choice_text:"\u6B63\u786E",is_answer:ze==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:ze==="1"?1:0}];return{name:Gn,choices:J,analysis:Bn}},Pe=function(){qn(""),na(""),ct("")};return v.a.createElement("section",{className:me.a.wrap},v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u9898\u5E72\uFF1A")),v.a.createElement(de.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Gn,onChange:function(J){return qn(J)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",v.a.createElement("span",{className:me.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),v.a.createElement(st.a.Group,{buttonStyle:"solid",value:ze,onChange:function(J){return ct(J.target.value)}},v.a.createElement(st.a.Button,{value:"0",className:"".concat(me.a.radio," mr40")},"\u6B63\u786E"),v.a.createElement(st.a.Button,{value:"1",className:me.a.radio},"\u9519\u8BEF")),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Bn,onChange:function(J){return na(J)}}))},Qe=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(dt)),pe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],xe=function(Ie,be){var qe=Ie.editData,Lt=Ie.globalSetting,nn=Ie.loading,$n=Ie.dispatch,ta=Ie.onRef,Sa=ta===void 0?function(){}:ta,_n=Ie.isEdit,Bt=Object(le.a)(Ie,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),mn=Object(C.useState)([]),Gt=Object(s.a)(mn,2),ze=Gt[0],ct=Gt[1],Sn=Object(C.useState)(),qt=Object(s.a)(Sn,2),Gn=qt[0],qn=qt[1],Mt=Object(C.useState)([]),Nn=Object(s.a)(Mt,2),Bn=Nn[0],na=Nn[1],Ea=Object(C.useState)(""),Pe=Object(s.a)(Ea,2),ye=Pe[0],J=Pe[1],q=Object(C.useState)(""),Z=Object(s.a)(q,2),oe=Z[0],Oe=Z[1];Object(C.useEffect)(function(){ct(["","","",""])},[]),Object(C.useEffect)(function(){if(!qe||!_n)return;J(qe==null?void 0:qe.name),Oe(qe==null?void 0:qe.analysis),ct(qe==null?void 0:qe.choices.map(function(kt){return kt.choice_text}));var bn=[];qe==null||qe.choices.map(function(kt,at){kt.is_answer&&bn.push(at)}),na(bn)},[qe]),Object(C.useImperativeHandle)(be,function(){return{onSave:Re,Clear:ve}});var Re=function(){if(!ye)return o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;var kt=ze.findIndex(function(Ht){return!Ht});if(kt>-1)return o.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(pe[kt]," \u9009\u9879\u7684\u5185\u5BB9")),!1;if(!Bn.length)return o.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Bn.length<2)return o.b.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;var at=ze.map(function(Ht,Fe){return{choice_text:Ht,is_answer:Bn.includes(Fe)?1:0}});return{name:ye,choices:at,analysis:oe}},ve=function(){ct(["","","",""]),J(""),Oe(""),na("")};return v.a.createElement("section",{className:me.a.wrap},v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u9898\u5E72\uFF1A")),v.a.createElement(de.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ye,onChange:function(kt){return J(kt)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",v.a.createElement("span",{className:me.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ze.map(function(bn,kt){return v.a.createElement("div",{className:me.a.choiceWrap,key:kt},v.a.createElement(B.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},v.a.createElement("div",{className:"".concat(me.a.answer," ").concat(Bn.includes(kt)?me.a.activeAnswer:""),onClick:function(){Bn.includes(kt)?na(Bn.filter(function(Ht){return Ht!==kt})):na([].concat(Object(ie.a)(Bn),[kt]))}},pe[kt])),v.a.createElement("div",{className:me.a.editorWrap},Gn===kt?v.a.createElement(de.a,{id:"single-question-option-".concat(kt),watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:bn,onChange:function(Ht){ze[kt]=Ht,ct(ze)}}):v.a.createElement("div",{className:me.a.htmlWrap,onClick:function(){return qn(kt)}},v.a.createElement(x.a,{value:bn}))),kt>1&&v.a.createElement(B.a,{title:"\u5220\u9664"},v.a.createElement("i",{className:"".concat(me.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){ct(ze.filter(function(Ht,Fe){return Fe!==kt})),Bn.includes(kt)?na(Bn.filter(function(Ht){return Ht!==kt})):na([].concat(Object(ie.a)(Bn),[kt]))}})),kt<7&&kt===ze.length-1&&v.a.createElement(B.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},v.a.createElement("i",{className:"".concat(me.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return ct([].concat(Object(ie.a)(ze),[""]))}})))}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:oe,onChange:function(kt){return Oe(kt)}}))},Le=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(xe)),Ye=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],gt=function(Ie,be){var qe=Ie.editData,Lt=Ie.globalSetting,nn=Ie.loading,$n=Ie.dispatch,ta=Ie.onRef,Sa=ta===void 0?function(){}:ta,_n=Ie.isEdit,Bt=Object(le.a)(Ie,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),mn=Object(C.useState)([]),Gt=Object(s.a)(mn,2),ze=Gt[0],ct=Gt[1],Sn=Object(C.useState)(),qt=Object(s.a)(Sn,2),Gn=qt[0],qn=qt[1],Mt=Object(C.useState)(),Nn=Object(s.a)(Mt,2),Bn=Nn[0],na=Nn[1],Ea=Object(C.useState)(""),Pe=Object(s.a)(Ea,2),ye=Pe[0],J=Pe[1],q=Object(C.useState)(""),Z=Object(s.a)(q,2),oe=Z[0],Oe=Z[1];Object(C.useEffect)(function(){ct(["","","",""])},[]),Object(C.useEffect)(function(){if(!qe||!_n)return;J(qe==null?void 0:qe.name),Oe(qe==null?void 0:qe.analysis),ct(qe==null?void 0:qe.choices.map(function(bn){return bn.choice_text})),na(qe==null?void 0:qe.choices.findIndex(function(bn){return bn.is_answer}))},[qe]),Object(C.useImperativeHandle)(be,function(){return{onSave:Re,Clear:ve}});var Re=function(){if(!ye)return o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;var kt=ze.findIndex(function(Ht){return!Ht});if(kt>-1)return o.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(Ye[kt]," \u9009\u9879\u7684\u5185\u5BB9")),!1;if(console.log("activeAnswer: ",Bn),!(typeof Bn=="number"))return o.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;var at=ze.map(function(Ht,Fe){return{choice_text:Ht,is_answer:Bn===Fe?1:0}});return{name:ye,choices:at,analysis:oe}},ve=function(){ct(["","","",""]),J(""),Oe(""),na("")};return v.a.createElement("section",{className:me.a.wrap},v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u9898\u5E72\uFF1A")),v.a.createElement(de.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ye,onChange:function(kt){return J(kt)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",v.a.createElement("span",{className:me.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ze.map(function(bn,kt){return v.a.createElement("div",{className:me.a.choiceWrap,key:kt},v.a.createElement(B.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},v.a.createElement("div",{className:"".concat(me.a.answer," ").concat(Bn===kt?me.a.activeAnswer:""),onClick:function(){return na(kt)}},Ye[kt])),v.a.createElement("div",{className:me.a.editorWrap},Gn===kt?v.a.createElement(de.a,{id:"single-question-option-".concat(kt),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:bn,onChange:function(Ht){ze[kt]=Ht,ct(ze)}}):v.a.createElement("div",{className:me.a.htmlWrap,onClick:function(){return qn(kt)}},v.a.createElement(x.a,{value:bn}))),kt>1&&v.a.createElement(B.a,{title:"\u5220\u9664"},v.a.createElement("i",{className:"".concat(me.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){ct(ze.filter(function(Ht,Fe){return Fe!==kt})),kt===Bn&&na(null)}})),kt<7&&kt===ze.length-1&&v.a.createElement(B.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},v.a.createElement("i",{className:"".concat(me.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return ct([].concat(Object(ie.a)(ze),[""]))}})))}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:oe,onChange:function(kt){return Oe(kt)}}))},Ct=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(gt)),tn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Zt=function(Ie,be){var qe=Ie.editData,Lt=Ie.globalSetting,nn=Ie.loading,$n=Ie.dispatch,ta=Ie.onRef,Sa=ta===void 0?function(){}:ta,_n=Ie.isEdit,Bt=Object(le.a)(Ie,["editData","globalSetting","loading","dispatch","onRef","isEdit"]),mn=Object(C.useState)(""),Gt=Object(s.a)(mn,2),ze=Gt[0],ct=Gt[1],Sn=Object(C.useState)(""),qt=Object(s.a)(Sn,2),Gn=qt[0],qn=qt[1],Mt=Object(C.useState)(""),Nn=Object(s.a)(Mt,2),Bn=Nn[0],na=Nn[1];Object(C.useEffect)(function(){var ye;if(!qe||!_n)return;ct(qe==null?void 0:qe.name),qn(qe==null?void 0:qe.analysis),na(qe==null||((ye=qe.answer_texts)===null||ye===void 0)?void 0:ye[0])},[qe]),Object(C.useImperativeHandle)(be,function(){return{onSave:Ea,Clear:Pe}});var Ea=function(){return ze?Bn?{name:ze,answer_texts:[Bn],analysis:Gn}:(o.b.info("\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848"),!1):(o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},Pe=function(){ct(""),qn(""),na("")};return v.a.createElement("section",{className:me.a.wrap},v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u9898\u5E72\uFF1A")),v.a.createElement(de.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ze,onChange:function(J){return ct(J)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),v.a.createElement(de.a,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Bn,onChange:function(J){return na(J)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Gn,onChange:function(J){return qn(J)}}))},Hn=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(Zt)),ia=y("k1fw"),vt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],mt=function(Ie,be){var qe=Ie.globalSetting,Lt=Ie.loading,nn=Ie.dispatch,$n=Ie.editData,ta=Ie.onRef,Sa=ta===void 0?function(){}:ta,_n=Ie.isEdit,Bt=Object(le.a)(Ie,["globalSetting","loading","dispatch","editData","onRef","isEdit"]),mn=Object(C.useState)(""),Gt=Object(s.a)(mn,2),ze=Gt[0],ct=Gt[1],Sn=Object(C.useState)([]),qt=Object(s.a)(Sn,2),Gn=qt[0],qn=qt[1];console.log(Gn),Object(C.useEffect)(function(){var Ea;if(!$n||!_n)return;ct($n==null?void 0:$n.name);var Pe=$n==null||((Ea=$n.sub_item_banks)===null||Ea===void 0)?void 0:Ea.map(function(ye){var J,q,Z;return Object(ia.a)(Object(ia.a)({},ye),{},{id:ye.id,open:!1,qusList:ye==null||((J=ye.choices)===null||J===void 0)?void 0:J.map(function(oe){return oe.choice_text}),activeQusEditor:null,qusAnswer:(q=[ye==null||((Z=ye.choices)===null||Z===void 0)?void 0:Z.findIndex(function(oe){return oe.is_answer})])===null||q===void 0?void 0:q.filter(function(oe){return oe!==-1})})});qn(Pe)},[$n]),Object(C.useImperativeHandle)(be,function(){return{onSave:Mt,Clear:Nn}});var Mt=function(){if(!ze)return o.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(Gn.length===0)return o.b.info("\u8BF7\u60A8\u6DFB\u52A0\u5C0F\u9898"),!1;for(var Pe=0;Pe-1)return o.b.info("\u8BF7\u5148\u8F93\u5165\u7B2C".concat(Pe+1,"\u5C0F\u9898").concat(vt[q],"\u9009\u9879\u7684\u5185\u5BB9")),!1;if(!(J!=null&&J.qusAnswer.length))return o.b.info("\u8BF7\u8BBE\u7F6E\u7B2C".concat(Pe+1,"\u5C0F\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E")),!1}var Z=Gn.map(function(oe){return{id:oe.id>1?oe.id:null,name:oe.name,item_type:oe.item_type,analysis:oe.analysis,choices:oe.qusList.map(function(Oe,Re){return{choice_text:Oe,is_answer:oe.qusAnswer[0]===Re?1:0}})}});return{name:ze,sub_item_banks:Z}},Nn=function(){ct(""),qn([])},Bn=function(){var Pe={id:Math.random(),item_type:"SINGLE",open:!1,name:"",qusList:["","","",""],activeQusEditor:null,qusAnswer:[],analysis:""};qn(Gn.concat(Pe))},na=function(Pe,ye,J){var q=Object(N.cloneDeep)(Gn);if(Pe==="open"&&(q[ye].open=!q[ye].open),Pe==="delete"&&q.splice(ye,1),Pe==="value"&&(q[ye].name=J),Pe==="answer"&&(q[ye].qusAnswer=[J]),Pe==="edit"&&(q[ye].activeQusEditor=J),Pe==="details"&&(q[ye].qusList[q[ye].activeQusEditor]=J),Pe==="addQus"&&(q[ye].qusList=q[ye].qusList.concat("")),Pe==="deleteQus"){var Z;q[ye].qusList=q[ye].qusList.filter(function(oe,Oe){return Oe!==J}),q[ye].qusAnswer=(Z=q[ye].qusAnswer)===null||Z===void 0?void 0:Z.filter(function(oe){return oe!==J})}Pe==="analysis"&&(q[ye].analysis=J),qn(q)};return v.a.createElement("section",{className:me.a.wrap},v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u9898\u5E72\uFF1A")),v.a.createElement(de.a,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ze,onChange:function(Pe){return ct(Pe)}}),Gn==null?void 0:Gn.map(function(Ea,Pe){var ye;return v.a.createElement("div",{className:me.a.fold,key:Ea.id},v.a.createElement("div",{onClick:function(){return na("open",Pe)},className:me.a.head},v.a.createElement("i",{className:"iconfont icon-sanjiaoxing",style:{transform:Ea.open?"initial":"rotate(270deg) translate(2px, 4px)"}}),v.a.createElement("span",null,"\u7B2C",Pe+1,"\u5C0F\u9898\uFF08\u5355\u9009\u9898\uFF09"),v.a.createElement("b",{style:{visibility:"hidden"},onClick:function(q){q.stopPropagation(),na("delete",Pe)},className:"iconfont icon-shanchu8"})),v.a.createElement("div",{className:"mb10",style:{display:Ea.open?"block":"none"}},v.a.createElement(de.a,{watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Ea==null?void 0:Ea.name,onChange:function(q){return na("value",Pe,q)}}),v.a.createElement("p",{className:me.a.titleWrap},v.a.createElement("span",{className:me.a.required},"*"),v.a.createElement("span",{className:me.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",v.a.createElement("span",{className:me.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Ea==null||((ye=Ea.qusList)===null||ye===void 0)?void 0:ye.map(function(J,q){var Z,oe;return v.a.createElement("div",{className:me.a.choiceWrap,key:q},v.a.createElement(B.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},v.a.createElement("div",{className:"".concat(me.a.answer," ").concat(Ea!=null&&(Z=Ea.qusAnswer)!==null&&Z!==void 0&&Z.includes(q)?me.a.activeAnswer:""),onClick:function(){return na("answer",Pe,q)}},vt[q])),v.a.createElement("div",{className:me.a.editorWrap},(Ea==null?void 0:Ea.activeQusEditor)===q?v.a.createElement(de.a,{id:"single-question-option-".concat(q),watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:J,onChange:function(Re){return na("details",Pe,Re)}}):v.a.createElement("div",{className:me.a.htmlWrap,onClick:function(){return na("edit",Pe,q)}},v.a.createElement(x.a,{value:J}))),q>1&&v.a.createElement(B.a,{title:"\u5220\u9664"},v.a.createElement("i",{className:"".concat(me.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return na("deleteQus",Pe,q)}})),q<7&&q===(Ea==null||((oe=Ea.qusList)===null||oe===void 0)?void 0:oe.length)-1&&v.a.createElement(B.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},v.a.createElement("i",{className:"".concat(me.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return na("addQus",Pe)}})))}),v.a.createElement("p",{className:"mb10 mt10"},v.a.createElement("span",{className:me.a.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),v.a.createElement(de.a,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Ea.analysis,onChange:function(q){return na("analysis",Pe,q)}})))}))},on=Object(S.a)(function(Me){var Ie=Me.loading,be=Me.globalSetting;return{globalSetting:be,loading:Ie.effects}},null,null,{forwardRef:!0})(Object(C.forwardRef)(mt)),hn=y("14J3"),Ot=y("BMrR"),Xt=y("ZWs3"),ht=function(Ie){var be=Ie.visible,qe=Ie.onCancel,Lt=Ie.onRandomExchange,nn=Ie.selectFromProblemSet;return v.a.createElement(l.a,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",visible:be,onCancel:qe,centered:!0,maskClosable:!0,footer:null},v.a.createElement(Ot.a,{justify:"center"},v.a.createElement(Xt.a,{onClick:Lt},"\u968F\u673A\u66F4\u6362"),v.a.createElement(b.a,{style:{marginLeft:24},onClick:nn},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")))},Je=ht,rt=function(Ie){var be,qe,Lt,nn,$n,ta,Sa,_n,Bt=Ie.data,mn=Ie.submit,Gt=Ie.goBack,ze=Ie.loading,ct=Ie.onTypeScore,Sn=Ie.editPreview,qt=Sn===void 0?!1:Sn,Gn=Ie.onSkipExamination,qn=Ie.selectValue,Mt=Ie.onExchange,Nn=Object(C.useRef)(),Bn=Object(C.useRef)(Object(N.debounce)(function(){return fa()},100,{leading:!0,trailing:!0})),na=Object(C.useState)(null),Ea=Object(s.a)(na,2),Pe=Ea[0],ye=Ea[1],J=Object(C.useState)(!1),q=Object(s.a)(J,2),Z=q[0],oe=q[1],Oe=Object(C.useState)(!1),Re=Object(s.a)(Oe,2),ve=Re[0],bn=Re[1],kt=Object(C.useRef)(),at=Object(T.i)();Object(C.useEffect)(function(){return window.addEventListener("scroll",Bn==null?void 0:Bn.current),function(){window.removeEventListener("scroll",Bn==null?void 0:Bn.current)}},[]),Object(C.useEffect)(function(){oe(!0)},[]),Object(C.useEffect)(function(){var Jt,Rt,An,aa,ra=(Jt=document.getElementById("examName"))===null||Jt===void 0||((Rt=Jt.getElementsByClassName("ant-pagination-options-quick-jumper"))===null||Rt===void 0||((An=Rt[0])===null||An===void 0||((aa=An.childNodes)===null||aa===void 0)))?void 0:aa[2];ra&&(ra.nodeValue="\u4EFD")},[Bt]);var Ht=function(Rt){var An=parseInt(Rt);return isNaN(An)?"":An};function Fe(){var Jt=0,Rt=0,An=0;return document.body&&(Rt=document.body.scrollTop),document.documentElement&&(An=document.documentElement.scrollTop),Jt=Rt-An>0?Rt:An,Jt}function Un(){var Jt=0,Rt=0,An=0;return document.body&&(Rt=document.body.scrollHeight),document.documentElement&&(An=document.documentElement.scrollHeight),Jt=Rt-An>0?Rt:An,Jt}function Fa(){var Jt=0;return document.compatMode=="CSS1Compat"?Jt=document.documentElement.clientHeight:Jt=document.body.clientHeight,Jt}var fa=function(){var Rt=document.getElementById("preview_btns"),An=document.getElementById("preview_btns_else");Fe()+Fa()>=Un()-68?(Rt.style.visibility="hidden",An.style.visibility="visible"):(Rt.style.visibility="visible",An.style.visibility="hidden")},ae=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],z=function(Rt){var An,aa=[];return v.a.createElement(v.a.Fragment,null,v.a.createElement("aside",{className:_.a.single},Rt==null||((An=Rt.choices)===null||An===void 0)?void 0:An.map(function(ra,Fn){return ra.is_answer&&aa.push(ut[Fn]),v.a.createElement("ul",{key:Fn},v.a.createElement("li",null,ut[Fn],"\u3001"),v.a.createElement("li",null,v.a.createElement(x.a,{value:ra.choice_text})))})),v.a.createElement("div",{className:_.a.analysis},v.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",aa.join(""),v.a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",ae[Rt.difficulty])),v.a.createElement("aside",null,v.a.createElement("span",{className:_.a.text},"\u89E3\u6790:"),v.a.createElement(x.a,{value:Rt.analysis?Rt.analysis:"\u6682\u65E0\u89E3\u6790"})),v.a.createElement("ul",null,v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Rt==null?void 0:Rt.discipline_name,"/").concat(Rt==null?void 0:Rt.sub_discipline_name)),v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Rt==null?void 0:Rt.tag_discipline_name))))},Y=function(Rt){var An,aa=Rt==null||((An=Rt.standard_answer)===null||An===void 0)?void 0:An.map(function(ra){var Fn;return"\u7B54\u6848\uFF08\u586B\u7A7A".concat(ra.position,"\uFF09\uFF1A").concat(ra==null||((Fn=ra.answer_text)===null||Fn===void 0)?void 0:Fn.join("\u3001"))});return v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:_.a.analysis},v.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",aa),v.a.createElement("aside",null,v.a.createElement("span",{className:_.a.text},"\u89E3\u6790:"),v.a.createElement(x.a,{value:Rt.analysis?Rt.analysis:"\u6682\u65E0\u89E3\u6790"})),v.a.createElement("ul",null,v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Rt==null?void 0:Rt.discipline_name,"/").concat(Rt==null?void 0:Rt.sub_discipline_name)),v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Rt==null?void 0:Rt.tag_discipline_name))))},te=function(Rt){var An;return v.a.createElement("div",{className:_.a.analysis},v.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Rt==null||((An=Rt.answer_texts)===null||An===void 0)?void 0:An[0]),v.a.createElement("aside",null,v.a.createElement("span",{className:_.a.text},"\u89E3\u6790:"),v.a.createElement(x.a,{value:Rt.analysis?Rt.analysis:"\u6682\u65E0\u89E3\u6790"})),v.a.createElement("ul",null,v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Rt==null?void 0:Rt.discipline_name,"/").concat(Rt==null?void 0:Rt.sub_discipline_name)),v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Rt==null?void 0:Rt.tag_discipline_name)))},_e=function(Rt){var An;return v.a.createElement("div",{className:_.a.analysis},v.a.createElement("aside",null,v.a.createElement("span",{className:_.a.text},"\u9884\u671F\u8F93\u51FA:"),v.a.createElement(x.a,{value:Rt==null||((An=Rt.program_attr)===null||An===void 0)?void 0:An.description})),v.a.createElement("ul",null,v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Rt==null?void 0:Rt.discipline_name,"/").concat(Rt==null?void 0:Rt.sub_discipline_name)),v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Rt==null?void 0:Rt.tag_discipline_name)))},se=function(Rt,An){var aa;return v.a.createElement("div",null,Rt==null||((aa=Rt.sub_item_banks)===null||aa===void 0)?void 0:aa.map(function(ra,Fn){var da,Ta=[];return v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333"}},An+1+"."+(Fn+1),"\uFF08\u5355\u9009\u9898\uFF09",ra.name),v.a.createElement("aside",{className:_.a.single},ra==null||((da=ra.choices)===null||da===void 0)?void 0:da.map(function(Wa,ue){return Wa.is_answer&&Ta.push(ut[ue]),v.a.createElement("ul",{key:ue},v.a.createElement("li",null,ut[ue],"\u3001"),v.a.createElement("li",null,v.a.createElement(x.a,{value:Wa.choice_text})))})),v.a.createElement("div",{className:_.a.analysis},v.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Ta.join(""),v.a.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",ae[ra.difficulty])),v.a.createElement("aside",null,v.a.createElement("span",{className:_.a.text},"\u89E3\u6790:"),v.a.createElement(x.a,{value:ra.analysis?ra.analysis:"\u6682\u65E0\u89E3\u6790"})),v.a.createElement("ul",null,v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),"".concat(Rt==null?void 0:Rt.discipline_name,"/").concat(Rt==null?void 0:Rt.sub_discipline_name)),v.a.createElement("li",null,v.a.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Rt==null?void 0:Rt.tag_discipline_name))))}))},ut=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],vn=function(Rt){var An,aa=[];Rt==null||((An=Rt.questions)===null||An===void 0)||An.map(function(Fn){var da;return Fn==null||((da=Fn.sub_item_banks)===null||da===void 0)?void 0:da.map(function(Ta){aa.push(Ta)})});var ra=0;Rt.type==="COMBINATION"?ra=Rt.questions_score/aa.length:ra=Rt.questions_score/Rt.questions_count,l.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:v.a.createElement("div",{className:_.a.modalColumn},v.a.createElement("div",{className:_.a.modalRow,style:{justifyContent:"flex-start"}},v.a.createElement("sup",{className:_.a.sup},"*"),v.a.createElement("span",null,Rt==null?void 0:Rt.name,(Rt==null?void 0:Rt.type)==="COMBINATION"&&"\u4E2D\u7684\u6BCF\u5C0F\u9898","\uFF1A"),v.a.createElement(i.a,{min:1,parser:Ht,defaultValue:ra,onChange:function(da){ra=da}}),v.a.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var Fn=Object(c.a)(D.a.mark(function Ta(){var Wa,ue;return D.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(ra){lt.next=3;break}return o.b.warn("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),lt.abrupt("return",Promise.reject());case 3:Rt.type==="COMBINATION"?(Wa={type:Rt==null?void 0:Rt.type,score:ra,scoreTotal:ra*(aa==null?void 0:aa.length)},ct(Wa)):(ue={type:Rt==null?void 0:Rt.type,score:ra,scoreTotal:ra*Rt.questions_count},ct(ue));case 4:case"end":return lt.stop()}},Ta)}));function da(){return Fn.apply(this,arguments)}return da}()})},Wn=function(){var Rt="";l.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:v.a.createElement("div",{className:_.a.modalColumn},v.a.createElement("div",{style:{color:"#676A6C",display:"flex"},className:"font14 mt20"},v.a.createElement("img",{style:{marginRight:5},src:G.a}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),v.a.createElement("div",{className:_.a.modalRow,style:{marginTop:20}},v.a.createElement("sup",{className:_.a.sup},"*"),v.a.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),v.a.createElement(d.a,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Rt,onChange:function(aa){Rt=aa.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var An=Object(c.a)(D.a.mark(function ra(){var Fn,da,Ta,Wa,ue;return D.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(Rt){lt.next=3;break}return o.b.warn("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),lt.abrupt("return",Promise.reject());case 3:return da=[],Ta=[],Wa=[],Bt==null||((Fn=Bt.questionList)===null||Fn===void 0)||Fn.forEach(function(ft){var wt;(wt=ft.questions)===null||wt===void 0||wt.forEach(function(Et){da.push(Et.id),Ta.push(ft.questions_score/ft.questions_count),ft.type==="COMBINATION"&&Wa.push({id:Et.id,sub_item_bank_ids:Et.sub_item_banks.map(function(jt){return jt.id})})})}),console.log("-----",Wa),ue={item_bank_ids:da,item_bank_scores:Ta,name:Rt,combination_item_banks:Wa},lt.next=11,mn(ue);case 11:case"end":return lt.stop()}},ra)}));function aa(){return An.apply(this,arguments)}return aa}()})},Oa=function(Rt,An,aa,ra){var Fn,da="".concat(location.pathname).concat(location.search),Ta=(Fn=ra.questions)===null||Fn===void 0?void 0:Fn.map(function(ue){return ue.id});if(da.includes("exercise"))kt.current={id:Rt,ids:Ta,type:An,index:aa},bn(!0);else var Wa=l.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var ue=Object(c.a)(D.a.mark(function lt(){return D.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return Wa.update({cancelButtonProps:{disabled:!0}}),wt.next=3,Mt({single_question_id:Rt,seleted_item_bank_ids:Ta},{type:An,index:aa});case 3:Wa.update({cancelButtonProps:{disabled:!1}}),o.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898");case 5:case"end":return wt.stop()}},lt)}));function ot(){return ue.apply(this,arguments)}return ot}()})},dn=function(Rt){var An,aa=(An=Rt.questions)===null||An===void 0?void 0:An.map(function(da){return da.id}),ra=Rt.name,Fn=l.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362".concat(ra,"\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F"),cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var da=Object(c.a)(D.a.mark(function Wa(){return D.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return Fn.update({cancelButtonProps:{disabled:!0}}),ot.next=3,Mt({seleted_item_bank_ids:aa},{type:Rt.type});case 3:Fn.update({cancelButtonProps:{disabled:!1}}),o.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210".concat(ra,"\u8BD5\u9898"));case 5:case"end":return ot.stop()}},Wa)}));function Ta(){return da.apply(this,arguments)}return Ta}()})},Tn=function(){var Rt=l.a.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){var An=Object(c.a)(D.a.mark(function ra(){return D.a.wrap(function(da){for(;;)switch(da.prev=da.next){case 0:return Rt.update({cancelButtonProps:{disabled:!0}}),da.next=3,Mt();case 3:Rt.update({cancelButtonProps:{disabled:!1}}),o.b.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898");case 5:case"end":return da.stop()}},ra)}));function aa(){return An.apply(this,arguments)}return aa}()})},ya=function(Rt){console.log(Rt,"key"),Gn(Rt-1)},fr=function(){return v.a.createElement(v.a.Fragment,null,v.a.createElement(p.a,{color:"#55575D",overlayClassName:_.a.popover,visible:Z,getPopupContainer:function(An){return An==null?void 0:An.parentNode},content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},v.a.createElement(b.a,{onMouseEnter:function(){return oe(!0)},onMouseLeave:function(){return oe(!1)},onClick:function(){Wn()}},"\u4FDD\u5B58")),v.a.createElement(b.a,{onClick:function(){document.body.scrollIntoView(),Gt()}},"\u8FD4\u56DE"),v.a.createElement(b.a,{loading:ze,onClick:function(){return mn()},type:"primary"},"\u63D0\u4EA4"))},gr=function(){var Rt;return v.a.createElement(v.a.Fragment,null,v.a.createElement(b.a,{onClick:Gt},"\u8FD4\u56DE"),qn>0&&v.a.createElement(b.a,{onClick:function(){return ya(qn)},type:"primary"},"\u4E0A\u4E00\u4EFD"),qn<(Bt==null||((Rt=Bt.exam)===null||Rt===void 0)?void 0:Rt.total_num)-1&&v.a.createElement(b.a,{onClick:function(){return ya(qn+2)}},"\u4E0B\u4E00\u4EFD"))},ir=function(Rt,An){if(An==="SINGLE")return v.a.createElement(v.a.Fragment,null,v.a.createElement(Ct,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="MULTIPLE")return v.a.createElement(v.a.Fragment,null,v.a.createElement(Le,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="JUDGMENT")return v.a.createElement(v.a.Fragment,null,v.a.createElement(Qe,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="COMPLETION")return v.a.createElement(v.a.Fragment,null,v.a.createElement(he,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="SUBJECTIVE")return v.a.createElement(v.a.Fragment,null,v.a.createElement(Hn,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="COMBINATION")return v.a.createElement(v.a.Fragment,null,v.a.createElement(on,{ref:Nn,editData:Rt,isEdit:!0}),v.a.createElement(R.a,null));if(An==="PROGRAM"){var aa;S.d.push("/problems/".concat(Rt==null||((aa=Rt.program_attr)===null||aa===void 0)?void 0:aa.identifier,"/edit?type=exercises&express_id=").concat(at.categoryId,"&question_id=").concat(Rt==null?void 0:Rt.id,"&score=").concat(Rt==null?void 0:Rt.score,"&callback_url=").concat(location.pathname,"&select=").concat(qn,"&exercise=true"))}},Qa=function(){var Jt=Object(c.a)(D.a.mark(function Rt(An,aa){var ra,Fn,da,Ta,Wa,ue,ot,lt,ft,wt;return D.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,(ra=Nn.current)===null||ra===void 0?void 0:ra.onSave();case 2:if(Fn=jt.sent,Fn){jt.next=5;break}return jt.abrupt("return");case 5:return da={question_score:aa.score,analysis:Fn.analysis},(An==="SINGLE"||An==="MULTIPLE"||An==="JUDGMENT")&&(Wa=[],ue=[],da.question_type=An==="JUDGMENT"?2:1,da.question_title=Fn==null?void 0:Fn.name,Fn==null||((Ta=Fn.choices)===null||Ta===void 0)||Ta.forEach(function(Yt,wn){Wa.push(Yt.choice_text),Yt!=null&&Yt.is_answer&&ue.push(wn+1)}),da.question_choices=Wa,da.standard_answers=ue),An==="COMPLETION"&&(da.is_ordered=Fn.is_ordered,da.question_title=Fn==null?void 0:Fn.name,da.question_type=3,lt=[],Fn==null||((ot=Fn.standard_answers)===null||ot===void 0)||ot.forEach(function(Yt,wn){lt.push({choice_id:Yt.position,answer_text:Yt.answer_text})}),da.standard_answers=lt),An==="SUBJECTIVE"&&(da.question_title=Fn==null?void 0:Fn.name,da.question_type=3,da.standard_answers=Fn==null?void 0:Fn.answer_texts),An==="COMBINATION"&&(da.question_title=Fn==null?void 0:Fn.name,da.question_type=7,da.sub_questions=Fn==null||((ft=Fn.sub_item_banks)===null||ft===void 0)?void 0:ft.map(function(Yt,wn){return{id:Yt.id,question_title:Yt.name,question_type:1,question_choices:Yt.choices.map(function(fn){return fn.choice_text}),standard_answers:[Yt.choices.findIndex(function(fn){return fn.is_answer})+1],analysis:Yt.analysis}}),delete da.analysis),jt.next=12,Object(E.a)("/api/exercise_questions/".concat(aa.id,".json"),{method:"put",body:da});case 12:wt=jt.sent,(wt==null?void 0:wt.status)===0&&(o.b.success("\u7F16\u8F91\u6210\u529F"),ya(qn+1)),ye(null);case 15:case"end":return jt.stop()}},Rt)}));return function(An,aa){return Jt.apply(this,arguments)}}(),ba=function(){for(var Rt=[],An=0;An<(Bt==null||((aa=Bt.exam)===null||aa===void 0)?void 0:aa.total_num);An++){var aa;Rt.push({})}return Rt},Na=Bt==null||((be=Bt.questionList)===null||be===void 0)?void 0:be.reduce(function(Jt,Rt){return Jt+Rt.questions_score},0),Ma=qt&&(Bt==null||((qe=Bt.exam)===null||qe===void 0)?void 0:qe.exercise_status)!==1;return v.a.createElement("section",{className:_.a.wrap},v.a.createElement("div",{id:"id_left_preview",className:_.a.left,onMouseEnter:function(Rt){var An=document.getElementById("id_left_preview");An.style.overflowY="auto"},onMouseLeave:function(Rt){var An=document.getElementById("id_left_preview");An.style.overflowY="hidden"}},v.a.createElement("div",{className:_.a.title},v.a.createElement("div",null,v.a.createElement("b",null),v.a.createElement("span",null,"\u7B54\u9898\u5361"))),v.a.createElement("div",{className:_.a.total},v.a.createElement("div",null,v.a.createElement("img",{src:F.a}),v.a.createElement("span",null,"\u9898\u6570(\u9053)"),v.a.createElement("aside",null,Bt==null?void 0:Bt.all_questions_count)),v.a.createElement("div",{className:"mr30 ml30"},v.a.createElement("img",{src:H.a}),v.a.createElement("span",null,"\u603B\u5206(\u5206)"),v.a.createElement("aside",null,Na)),v.a.createElement("div",null,v.a.createElement("img",{src:g.a}),v.a.createElement("span",null,"\u65F6\u957F(\u5206)"),v.a.createElement("aside",null,Bt==null||((Lt=Bt.exam)===null||Lt===void 0)?void 0:Lt.time))),Bt==null||((nn=Bt.questionList)===null||nn===void 0)?void 0:nn.map(function(Jt,Rt){var An;return v.a.createElement("div",{className:_.a.list,key:Rt},v.a.createElement("div",{className:_.a.name},v.a.createElement("b",null),v.a.createElement("span",null,Jt.name)),v.a.createElement("aside",null,v.a.createElement("div",null,"\u5171",v.a.createElement("span",{className:_.a.b},Jt.questions_count),"\u9898"," ",v.a.createElement("span",{className:_.a.l},"|"),"\u5171",v.a.createElement("span",{className:_.a.r},Jt.questions_score),"\u5206"),v.a.createElement("div",{className:_.a.answerSheet},Jt==null||((An=Jt.questions)===null||An===void 0)?void 0:An.map(function(aa,ra){return v.a.createElement("div",{onClick:function(){var da="Anchor_".concat(aa.id),Ta=document.getElementById(da);Ta&&setTimeout(function(){return Ta.scrollIntoView({block:"center",behavior:"smooth"})})},key:aa.id,className:_.a.tag},ra+1)}))))})),v.a.createElement("div",{className:_.a.right},v.a.createElement("div",{className:_.a.examName,id:"examName"},v.a.createElement("div",{className:_.a.name},v.a.createElement(B.a,{title:Bt==null||(($n=Bt.exam)===null||$n===void 0)?void 0:$n.name,getPopupContainer:function(Rt){return Rt.parentNode}},v.a.createElement("span",{className:_.a.t},Bt==null||((ta=Bt.exam)===null||ta===void 0)?void 0:ta.name))),qt?v.a.createElement(W.a,{showTotal:function(Rt){return v.a.createElement("span",{style:{color:"#656F87",fontSize:14}},"\u5171\u8BA1",v.a.createElement("span",{className:"c-light-primary"},Rt),"\u4EFD\u8BD5\u5377")},total:Bt==null||((Sa=Bt.exam)===null||Sa===void 0)?void 0:Sa.total_num,pageSize:1,current:qn+1,showSizeChanger:!1,onChange:ya,showQuickJumper:!0,hideOnSinglePage:!1}):v.a.createElement(b.a,{onClick:Tn,type:"primary"},"\u968F\u673A\u66F4\u6362")),v.a.createElement("div",{className:_.a.topWarp},Bt==null||((_n=Bt.questionList)===null||_n===void 0)?void 0:_n.map(function(Jt,Rt){var An,aa;return v.a.createElement(v.a.Fragment,{key:Rt},v.a.createElement("div",{className:_.a.head,style:Rt===0?{border:0,marginTop:-16}:{}},v.a.createElement("div",{className:_.a.name},v.a.createElement("b",null),v.a.createElement("span",null,Jt.name)),v.a.createElement("div",{className:_.a.so},"\u5171",v.a.createElement("span",{className:_.a.b},Jt.questions_count," "),"\u9898"," ",Jt.type==="COMBINATION"&&"\uFF08\u5305\u542B".concat(Jt==null||((An=Jt.questions)===null||An===void 0)?void 0:An.map(function(ra){var Fn;return ra==null||((Fn=ra.sub_item_banks)===null||Fn===void 0)?void 0:Fn.length}).reduce(function(ra,Fn){return ra+Fn}),"\u5C0F\u9898\uFF09"),v.a.createElement("span",{className:_.a.l},"|"),"\u5171",v.a.createElement("span",{className:_.a.r},Jt.questions_score),"\u5206"),!qt&&v.a.createElement("div",{className:_.a.btn},v.a.createElement(b.a,{onClick:function(){vn(Jt)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),v.a.createElement(b.a,{onClick:function(){return dn(Jt)},type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),Jt==null||((aa=Jt.questions)===null||aa===void 0)?void 0:aa.map(function(ra,Fn){return Pe===ra.id?v.a.createElement("div",{id:"Anchor_".concat(ra.id),className:_.a.content,style:{padding:0,marginTop:10},key:ra.id},v.a.createElement("div",{style:{float:"right",marginTop:-6}},v.a.createElement(b.a,{onClick:function(){return ye(null)},className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),v.a.createElement(b.a,{onClick:function(){return Qa(Jt==null?void 0:Jt.type,ra)},type:"primary"},"\u4FDD\u5B58")),ir(ra,Jt.type)):v.a.createElement("div",{id:"Anchor_".concat(ra.id),className:_.a.content,key:ra.id},v.a.createElement("div",{className:_.a.titleWrap},v.a.createElement(x.a,{style:{paddingRight:10},className:_.a.titleHtml,value:Fn+1+"\u3001"+"".concat((ra==null?void 0:ra.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":"")+ra.name}),qt&&v.a.createElement(b.a,{disabled:Ma,onClick:function(){if(Pe){o.b.warn("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}ye(ra.id)},type:"primary",className:"mr20",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),v.a.createElement(b.a,{disabled:Ma,onClick:function(){return Oa(ra.id,Jt.type,Fn,Jt)},type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Jt.type==="SINGLE"||Jt.type==="JUDGMENT"||Jt.type==="MULTIPLE")&&z(ra),Jt.type==="COMPLETION"&&Y(ra),Jt.type==="SUBJECTIVE"&&te(ra),Jt.type==="PROGRAM"&&_e(ra),Jt.type==="COMBINATION"&&se(ra,Fn),v.a.createElement("div",null))}))})),v.a.createElement("div",{className:_.a.btnsElse,id:"preview_btns_else"},qt?gr():fr()),v.a.createElement("div",{className:_.a.btnsWrap,id:"preview_btns"},v.a.createElement("div",{className:_.a.btns},qt?gr():fr()))),v.a.createElement(Je,{visible:ve,onRandomExchange:Object(c.a)(D.a.mark(function Jt(){var Rt;return D.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:return Rt=kt.current,aa.next=3,Mt({single_question_id:Rt.id,seleted_item_bank_ids:Rt.ids},{type:Rt.type,index:Rt.index});case 3:bn(!1);case 4:case"end":return aa.stop()}},Jt)})),selectFromProblemSet:function(){var Rt=kt.current,An="".concat(location.pathname).concat(location.search);An.includes("exercise")&&S.d.push("/paperlibrary/exchangequestion?type=exercise&qid=".concat(Rt.id,"&qtype=").concat(Rt.type,"&exerciseid=").concat(at.categoryId,"&from=").concat(An))},onCancel:function(){bn(!1)}}))},Te=re.a=rt},sboe:function(Ge,re,y){"use strict";y.d(re,"a",function(){return k});var Q=y("q1tI"),W=y.n(Q),k=Q.createContext(null)},t23M:function(Ge,re,y){"use strict";var Q=y("VTBJ"),W=y("1OyB"),k=y("vuIU"),B=y("Ji7U"),O=y("LK+K"),R=y("q1tI"),M=y.n(R),p=y("m+aA"),a=y("Zm9Q"),b=y("Kwbf"),u=y("c+Xe"),d=y("bdgK"),m="rc-observer-key",o=function(c){Object(B.a)(i,c);var f=Object(O.a)(i);function i(){var t;return Object(W.a)(this,i),t=f.apply(this,arguments),t.resizeObserver=null,t.childNode=null,t.currentElement=null,t.state={width:0,height:0,offsetHeight:0,offsetWidth:0},t.onResize=function(l){var s=t.props.onResize,w=l[0].target,D=w.getBoundingClientRect(),C=D.width,v=D.height,n=w.offsetWidth,_=w.offsetHeight,h=Math.floor(C),g=Math.floor(v);if(t.state.width!==h||t.state.height!==g||t.state.offsetWidth!==n||t.state.offsetHeight!==_){var x={width:h,height:g,offsetWidth:n,offsetHeight:_};t.setState(x),s&&Promise.resolve().then(function(){s(Object(Q.a)(Object(Q.a)({},x),{},{offsetWidth:n,offsetHeight:_}))})}},t.setChildNode=function(l){t.childNode=l},t}return Object(k.a)(i,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var l=this.props.disabled;if(l){this.destroyObserver();return}var s=Object(p.a)(this.childNode||this),w=s!==this.currentElement;w&&(this.destroyObserver(),this.currentElement=s),!this.resizeObserver&&s&&(this.resizeObserver=new d.default(this.onResize),this.resizeObserver.observe(s))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var l=this.props.children,s=Object(a.a)(l);if(s.length>1)Object(b.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(s.length===0)return Object(b.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=s[0];if(R.isValidElement(w)&&Object(u.c)(w)){var D=w.ref;s[0]=R.cloneElement(w,{ref:Object(u.a)(D,this.setChildNode)})}return s.length===1?s[0]:s.map(function(C,v){return!R.isValidElement(C)||"key"in C&&C.key!==null?C:R.cloneElement(C,{key:"".concat(m,"-").concat(v)})})}}]),i}(R.Component);o.displayName="ResizeObserver",re.a=o},t9D7:function(Ge,re,y){"use strict";y.d(re,"b",function(){return M}),y.d(re,"g",function(){return a}),y.d(re,"d",function(){return b}),y.d(re,"e",function(){return u}),y.d(re,"a",function(){return d}),y.d(re,"f",function(){return c}),y.d(re,"c",function(){return f});var Q=y("Vhoy"),W=y("MI8n"),k=y("pmY6"),B=y("Cg/j"),O=y("ic2d"),R=y("nEHx");const M=Object(B.c)("themeService");var p;(function(i){function t(l){return l&&typeof l=="object"&&typeof l.id=="string"}i.isThemeColor=t})(p||(p={}));function a(i){return{id:i}}var b;(function(i){function t(v){return v&&typeof v=="object"&&typeof v.id=="string"&&(typeof v.color=="undefined"||p.isThemeColor(v.color))}i.isThemeIcon=t;const l=new RegExp(`^\\$\\((${Q.a.iconNameExpression}(?:${Q.a.iconModifierExpression})?)\\)$`);function s(v){const n=l.exec(v);if(!n)return;let[,_]=n;return{id:_}}i.fromString=s;function w(v,n){let _=v.id;const h=_.lastIndexOf("~");return h!==-1&&(_=_.substring(0,h)),n&&(_=`${_}~${n}`),{id:_}}i.modify=w;function D(v,n){var _,h;return v.id===n.id&&((_=v.color)===null||_===void 0?void 0:_.id)===((h=n.color)===null||h===void 0?void 0:h.id)}i.isEqual=D;function C(v,n){return{id:v.id,color:n?a(n):void 0}}i.asThemeIcon=C,i.asClassNameArray=Q.a.asClassNameArray,i.asClassName=Q.a.asClassName,i.asCSSSelector=Q.a.asCSSSelector})(b||(b={}));function u(i){switch(i){case R.a.DARK:return"vs-dark";case R.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const d={ThemingContribution:"base.contributions.theming"};class m{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new W.b}onColorThemeChange(i){return this.themingParticipants.push(i),this.onThemingParticipantAddedEmitter.fire(i),Object(k.i)(()=>{const t=this.themingParticipants.indexOf(i);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}}let o=new m;O.a.add(d.ThemingContribution,o);function c(i){return o.onColorThemeChange(i)}class f extends k.a{constructor(i){super();this.themeService=i,this.theme=i.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(t=>this.onThemeChange(t)))}onThemeChange(i){this.theme=i,this.updateStyles()}updateStyles(){}}},tWlo:function(Ge,re){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},tf39:function(Ge,re,y){Ge.exports={flex_box_center:"flex_box_center___15tXk",flex_space_between:"flex_space_between___2JIaf",flex_box_vertical_center:"flex_box_vertical_center___3168W",flex_box_center_end:"flex_box_center_end___16myc",flex_box_column:"flex_box_column___Ye8vh",title:"title___z0esv",export:"export___1cim9",bg:"bg___1nEgJ",tabs:"tabs___1HwEE"}},u2Z1:function(Ge,re,y){"use strict";y.d(re,"a",function(){return D});var Q=y("miYZ"),W=y("tsqr"),k=y("9og8"),B=y("5NDa"),O=y("5rEg"),R=y("2qtc"),M=y("kLXV"),p=y("oBTY"),a=y("tJVT"),b=y("OaEy"),u=y("2fM7"),d=y("WmNS"),m=y.n(d),o=y("q1tI"),c=y.n(o),f=y("ErOA"),i=y("i58Z"),t=y.n(i),l=y("T1X5"),s=y.n(l),w=u.a.Option,D=function(v){var n=v.subId,_=v.value,h=v.selectvalues,g=v.disabled,x=v.knowledgeOptions,T=x===void 0?[]:x,S=v.onChange,E=S===void 0?function(){}:S,U=v.onAddKnowledgeFinish,F=U===void 0?function(){}:U,P=Object(o.useRef)(),H=Object(o.useState)([]),N=Object(a.a)(H,2),A=N[0],G=N[1];_=_||[];var K=function(le,de){le?(G([de.key]),E([de.key])):(G([]),E([]))};Object(o.useEffect)(function(){(h==null?void 0:h.length)>0&&(G(Object(p.a)(h)),E(Object(p.a)(h)))},[T]),Object(o.useEffect)(function(){var ie;((ie=_)===null||ie===void 0?void 0:ie.length)>0&&E(Object(p.a)(_))},[T]);var $=function(le){le.preventDefault(),P.current="",M.a.confirm({centered:!0,width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:c.a.createElement("div",{className:"font14"},c.a.createElement("div",{style:{display:"flex",marginTop:"48px",marginBottom:"36px"}},c.a.createElement("img",{src:s.a,style:{width:"108px",height:"108px",marginRight:"29px"}}),"\u60A8\u586B\u5199\u7684\u77E5\u8BC6\u70B9\u6682\u65F6\u4EC5\u5BF9\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u540E\u5C06\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF1B",c.a.createElement("br",null),"\u5E73\u53F0\u5BA1\u6838\u8FC7\u7A0B\u4E2D\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF08\u5305\u62EC\u4F46\u4E0D\u9650\u4E8E\u9519\u8BEF\u3001\u975E\u6CD5\u3001\u4E0D\u96C5\u3001\u4E0D\u5339\u914D\u5F53\u524D\u8BFE\u7A0B\u7B49\u60C5\u5F62\uFF09\uFF0C\u5220\u9664\u540E\u53EF\u80FD\u5F71\u54CD\u60A8\u7684\u8BD5\u9898\u7684\u6B63\u5E38\u4F7F\u7528\u3002",c.a.createElement("br",null),"\u8BF7\u8BA4\u771F\u586B\u5199\u4E0E\u6559\u5B66\u5185\u5BB9\u76F8\u5173\u7684\u771F\u5B9E\u77E5\u8BC6\u70B9 ",c.a.createElement("br",null)),c.a.createElement(O.a,{className:"mt5",maxLength:20,style:{marginBottom:"42px"},placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:P.current,onChange:function(Se){P.current=Se.target.value}})),onOk:function(){return new Promise(function(){var Se=Object(k.a)(m.a.mark(function He(et,je){var me,fe;return m.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(P.current){he.next=3;break}return W.b.warn("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),he.abrupt("return",je());case 3:if(!(P.current.length>20)){he.next=6;break}return W.b.warn("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),he.abrupt("return",je());case 6:return he.next=8,Object(f.a)("/api/tag_disciplines.json",{method:"post",body:{name:P.current,sub_discipline_id:n}});case 8:return me=he.sent,(me==null?void 0:me.status)===0&&(F({id:me.tag_discipline_id,name:P.current,type:"personal"}),fe=[],fe.push(me.tag_discipline_id),E([].concat(fe)),G([me.tag_discipline_id]),E([].concat(fe))),he.abrupt("return",et());case 11:case"end":return he.stop()}},He)}));return function(He,et){return Se.apply(this,arguments)}}())}})};return c.a.createElement("div",{className:t.a.wrap},c.a.createElement(u.a,{disabled:!n||g,className:"mr5",style:{width:"242px"},onChange:K,showSearch:!0,allowClear:!0,value:T==null?void 0:T.filter(function(ie){return(A==null?void 0:A.includes(ie==null?void 0:ie.id))||(A==null?void 0:A.includes((ie==null?void 0:ie.id)+""))}).map(function(ie){return ie.name})},T==null?void 0:T.map(function(ie){return c.a.createElement(w,{key:ie.id,value:ie.name},c.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},c.a.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ie.name),c.a.createElement("span",null,ie.type==="personal"?"\uFF08\u81EA\u7528\uFF09":"")))})),c.a.createElement("button",{disabled:!n,className:"".concat(t.a.addKnowledge," ").concat(n?"":t.a.disabled),onClick:$},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))}},u3os:function(Ge,re,y){"use strict";Object.defineProperty(re,"__esModule",{value:!0}),re.ver=re.clear=re.bind=void 0;var Q=y("P4Qj"),W=function(R,M){var p=(0,Q.getSensor)(R);return p.bind(M),function(){p.unbind(M)}};re.bind=W;var k=function(R){var M=(0,Q.getSensor)(R);(0,Q.removeSensor)(M)};re.clear=k;var B="1.0.1";re.ver=B},uJ6K:function(Ge,re,y){Ge.exports={wrap:"wrap___1AALq",img:"img___20GEO",table:"table___26NT5",totalScore:"totalScore___1t1Bx",people:"people___BMR7K",glassSeal:"glassSeal___2woZ-"}},ueOF:function(Ge,re,y){Ge.exports={flex_box_center:"flex_box_center___3u1kD",flex_space_between:"flex_space_between___1iSrL",flex_box_vertical_center:"flex_box_vertical_center___18buA",flex_box_center_end:"flex_box_center_end___35UIs",flex_box_column:"flex_box_column___2UKLk",customModal:"customModal___ppNnJ",checking:"checking___3Jkqo",content:"content___1lP2Z",group:"group___29dCl",footer:"footer___3jXcc"}},ulZh:function(Ge,re,y){typeof window!="undefined"&&function(W,k){Ge.exports=k()}(this,function(){return function(Q){var W={};function k(B){if(W[B])return W[B].exports;var O=W[B]={i:B,l:!1,exports:{}};return Q[B].call(O.exports,O,O.exports,k),O.l=!0,O.exports}return k.m=Q,k.c=W,k.d=function(B,O,R){k.o(B,O)||Object.defineProperty(B,O,{enumerable:!0,get:R})},k.r=function(B){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},k.t=function(B,O){if(O&1&&(B=k(B)),O&8)return B;if(O&4&&typeof B=="object"&&B&&B.__esModule)return B;var R=Object.create(null);if(k.r(R),Object.defineProperty(R,"default",{enumerable:!0,value:B}),O&2&&typeof B!="string")for(var M in B)k.d(R,M,function(p){return B[p]}.bind(null,M));return R},k.n=function(B){var O=B&&B.__esModule?function(){return B.default}:function(){return B};return k.d(O,"a",O),O},k.o=function(B,O){return Object.prototype.hasOwnProperty.call(B,O)},k.p="/dist/",k(k.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Q,W,k){"use strict";var B=Object.prototype.hasOwnProperty,O="~";function R(){}Object.create&&(R.prototype=Object.create(null),new R().__proto__||(O=!1));function M(u,d,m){this.fn=u,this.context=d,this.once=m||!1}function p(u,d,m,o,c){if(typeof m!="function")throw new TypeError("The listener must be a function");var f=new M(m,o||u,c),i=O?O+d:d;return u._events[i]?u._events[i].fn?u._events[i]=[u._events[i],f]:u._events[i].push(f):(u._events[i]=f,u._eventsCount++),u}function a(u,d){--u._eventsCount===0?u._events=new R:delete u._events[d]}function b(){this._events=new R,this._eventsCount=0}b.prototype.eventNames=function(){var d=[],m,o;if(this._eventsCount===0)return d;for(o in m=this._events)B.call(m,o)&&d.push(O?o.slice(1):o);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},b.prototype.listeners=function(d){var m=O?O+d:d,o=this._events[m];if(!o)return[];if(o.fn)return[o.fn];for(var c=0,f=o.length,i=new Array(f);c0},!1)}function u(d,m){for(var o={main:[m]},c={main:[]},f={main:{}};b(o);)for(var i=Object.keys(o),t=0;t=2*v/_||E<=F)return;var P=Number.POSITIVE_INFINITY,H;for(H=i.level-1;H>g;H--){var N=h[H].maxBitrate;if(P=v*N/(8*.8*S),P=E)return;var A=this.bwEstimator.getEstimate();b.logger.warn("Fragment "+i.sn+(t?" part "+t.index:"")+" of level "+i.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+H+` Current BW estimate: `+(Object(B.isFiniteNumber)(A)?(A/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+E.toFixed(3)+` s @@ -521,7 +521,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho trackSwitch: `+P+` contiguous: `+A+` accurateTimeOffset: `+n+` - timeOffset: `+S);var $=new M.TransmuxConfig(s,w,l,v,h);this.configureTransmuxer($)}if(this.frag=D,this.part=C,T)T.postMessage({cmd:"demux",data:t,decryptdata:E,chunkMeta:_,state:K},t instanceof ArrayBuffer?[t]:[]);else if(x){var ie=x.push(t,E,_,K);Object(M.isPromise)(ie)?ie.then(function(le){g.handleTransmuxComplete(le)}):this.handleTransmuxComplete(ie)}},f.flush=function(t){var l=this;t.transmuxing.start=self.performance.now();var s=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:t});else if(s){var D=s.flush(t);Object(M.isPromise)(D)?D.then(function(C){l.handleFlushResult(C,t)}):this.handleFlushResult(D,t)}},f.handleFlushResult=function(t,l){var s=this;t.forEach(function(w){s.handleTransmuxComplete(w)}),this.onFlush(l)},f.onWorkerMessage=function(t){var l=t.data,s=this.hls;switch(l.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(l.data);break}case"flush":{this.onFlush(l.data);break}default:{l.data=l.data||{},l.data.frag=this.frag,l.data.id=this.id,s.trigger(l.event,l.data);break}}},f.configureTransmuxer=function(t){var l=this.worker,s=this.transmuxer;l?l.postMessage({cmd:"configure",config:t}):s&&s.configure(t)},f.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},c}()},"./src/demux/transmuxer-worker.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return a});var B=k("./src/demux/transmuxer.ts"),O=k("./src/events.ts"),R=k("./src/utils/logger.ts"),M=k("./node_modules/eventemitter3/index.js"),p=k.n(M);function a(o){var c=new M.EventEmitter,f=function(t,l){o.postMessage({event:t,data:l})};c.on(O.Events.FRAG_DECRYPTED,f),c.on(O.Events.ERROR,f),o.addEventListener("message",function(i){var t=i.data;switch(t.cmd){case"init":{var l=JSON.parse(t.config);o.transmuxer=new B.default(c,t.typeSupported,l,t.vendor,t.id),Object(R.enableLogs)(l.debug),f("init",null);break}case"configure":{o.transmuxer.configure(t.config);break}case"demux":{var s=o.transmuxer.push(t.data,t.decryptdata,t.chunkMeta,t.state);Object(B.isPromise)(s)?s.then(function(C){b(o,C)}):b(o,s);break}case"flush":{var w=t.chunkMeta,D=o.transmuxer.flush(w);Object(B.isPromise)(D)?D.then(function(C){d(o,C,w)}):d(o,D,w);break}default:break}})}function b(o,c){if(m(c.remuxResult))return;var f=[],i=c.remuxResult,t=i.audio,l=i.video;t&&u(f,t),l&&u(f,l),o.postMessage({event:"transmuxComplete",data:c},f)}function u(o,c){c.data1&&o.push(c.data1.buffer),c.data2&&o.push(c.data2.buffer)}function d(o,c,f){c.forEach(function(i){b(o,i)}),o.postMessage({event:"flush",data:f})}function m(o){return!o.audio&&!o.video&&!o.text&&!o.id3&&!o.initSegment}},"./src/demux/transmuxer.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return l}),k.d(W,"isPromise",function(){return D}),k.d(W,"TransmuxConfig",function(){return C}),k.d(W,"TransmuxState",function(){return v});var B=k("./src/events.ts"),O=k("./src/errors.ts"),R=k("./src/crypt/decrypter.ts"),M=k("./src/demux/aacdemuxer.ts"),p=k("./src/demux/mp4demuxer.ts"),a=k("./src/demux/tsdemuxer.ts"),b=k("./src/demux/mp3demuxer.ts"),u=k("./src/remux/mp4-remuxer.ts"),d=k("./src/remux/passthrough-remuxer.ts"),m=k("./src/demux/chunk-cache.ts"),o=k("./src/utils/mp4-tools.ts"),c=k("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(n){c.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var i=[{demux:a.default,remux:u.default},{demux:p.default,remux:d.default},{demux:M.default,remux:u.default},{demux:b.default,remux:u.default}],t=1024;i.forEach(function(n){var _=n.demux;t=Math.max(t,_.minProbeByteLength)});var l=function(){function n(h,g,x,T,S){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new m.default,this.observer=h,this.typeSupported=g,this.config=x,this.vendor=T,this.id=S}var _=n.prototype;return _.configure=function(g){this.transmuxConfig=g,this.decrypter&&this.decrypter.reset()},_.push=function(g,x,T,S){var E=this,U=T.transmuxing;U.executeStart=f();var F=new Uint8Array(g),P=this.cache,H=this.config,N=this.currentTransmuxState,A=this.transmuxConfig;S&&(this.currentTransmuxState=S);var G=s(F,x);if(G&&G.method==="AES-128"){var K=this.getDecrypter();if(H.enableSoftwareAES){var $=K.softwareDecrypt(F,G.key.buffer,G.iv.buffer);if(!$)return U.executeEnd=f(),w(T);F=new Uint8Array($)}else return this.decryptionPromise=K.webCryptoDecrypt(F,G.key.buffer,G.iv.buffer).then(function(dt){var Qe=E.push(dt,null,T);return E.decryptionPromise=null,Qe}),this.decryptionPromise}var ie=S||N,le=ie.contiguous,de=ie.discontinuity,Se=ie.trackSwitch,He=ie.accurateTimeOffset,et=ie.timeOffset,je=A.audioCodec,me=A.videoCodec,fe=A.defaultInitPts,Ae=A.duration,he=A.initSegmentData;if((de||Se)&&this.resetInitSegment(he,je,me,Ae),de&&this.resetInitialTimestamp(fe),le||this.resetContiguity(),this.needsProbing(F,de,Se)){if(P.dataLength){var Ue=P.flush();F=Object(o.appendUint8Array)(Ue,F)}this.configureTransmuxer(F,A)}var st=this.transmux(F,G,et,He,T),Ve=this.currentTransmuxState;return Ve.contiguous=!0,Ve.discontinuity=!1,Ve.trackSwitch=!1,U.executeEnd=f(),st},_.flush=function(g){var x=this,T=g.transmuxing;T.executeStart=f();var S=this.decrypter,E=this.cache,U=this.currentTransmuxState,F=this.decryptionPromise;if(F)return F.then(function(){return x.flush(g)});var P=[],H=U.timeOffset;if(S){var N=S.flush();N&&P.push(this.push(N,null,g))}var A=E.dataLength;E.reset();var G=this.demuxer,K=this.remuxer;if(!G||!K)return A>=t&&this.observer.emit(B.Events.ERROR,B.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),T.executeEnd=f(),[w(g)];var $=G.flush(H);return D($)?$.then(function(ie){return x.flushRemux(P,ie,g),P}):(this.flushRemux(P,$,g),P)},_.flushRemux=function(g,x,T){var S=x.audioTrack,E=x.avcTrack,U=x.id3Track,F=x.textTrack,P=this.currentTransmuxState,H=P.accurateTimeOffset,N=P.timeOffset;c.logger.log("[transmuxer.ts]: Flushed fragment "+T.sn+(T.part>-1?" p: "+T.part:"")+" of level "+T.level);var A=this.remuxer.remux(S,E,U,F,N,H,!0,this.id);g.push({remuxResult:A,chunkMeta:T}),T.transmuxing.executeEnd=f()},_.resetInitialTimestamp=function(g){var x=this.demuxer,T=this.remuxer;if(!x||!T)return;x.resetTimeStamp(g),T.resetTimeStamp(g)},_.resetContiguity=function(){var g=this.demuxer,x=this.remuxer;if(!g||!x)return;g.resetContiguity(),x.resetNextTimestamp()},_.resetInitSegment=function(g,x,T,S){var E=this.demuxer,U=this.remuxer;if(!E||!U)return;E.resetInitSegment(x,T,S),U.resetInitSegment(g,x,T)},_.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},_.transmux=function(g,x,T,S,E){var U;return x&&x.method==="SAMPLE-AES"?U=this.transmuxSampleAes(g,x,T,S,E):U=this.transmuxUnencrypted(g,T,S,E),U},_.transmuxUnencrypted=function(g,x,T,S){var E=this.demuxer.demux(g,x,!1,!this.config.progressive),U=E.audioTrack,F=E.avcTrack,P=E.id3Track,H=E.textTrack,N=this.remuxer.remux(U,F,P,H,x,T,!1,this.id);return{remuxResult:N,chunkMeta:S}},_.transmuxSampleAes=function(g,x,T,S,E){var U=this;return this.demuxer.demuxSampleAes(g,x,T).then(function(F){var P=U.remuxer.remux(F.audioTrack,F.avcTrack,F.id3Track,F.textTrack,T,S,!1,U.id);return{remuxResult:P,chunkMeta:E}})},_.configureTransmuxer=function(g,x){for(var T=this.config,S=this.observer,E=this.typeSupported,U=this.vendor,F=x.audioCodec,P=x.defaultInitPts,H=x.duration,N=x.initSegmentData,A=x.videoCodec,G,K=0,$=i.length;K<$;K++)if(i[K].demux.probe(g)){G=i[K];break}G||(c.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),G={demux:p.default,remux:d.default});var ie=this.demuxer,le=this.remuxer,de=G.remux,Se=G.demux;(!le||!(le instanceof de))&&(this.remuxer=new de(S,T,E,U)),(!ie||!(ie instanceof Se))&&(this.demuxer=new Se(S,T,E),this.probe=Se.probe),this.resetInitSegment(N,F,A,H),this.resetInitialTimestamp(P)},_.needsProbing=function(g,x,T){return!this.demuxer||!this.remuxer||x||T},_.getDecrypter=function(){var g=this.decrypter;return g||(g=this.decrypter=new R.default(this.observer,this.config)),g},n}();function s(n,_){var h=null;return n.byteLength>0&&_!=null&&_.key!=null&&_.iv!==null&&_.method!=null&&(h=_),h}var w=function(_){return{remuxResult:{},chunkMeta:_}};function D(n){return"then"in n&&n.then instanceof Function}var C=function(_,h,g,x,T){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=_,this.videoCodec=h,this.initSegmentData=g,this.duration=x,this.defaultInitPts=T},v=function(_,h,g,x,T){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=_,this.contiguous=h,this.accurateTimeOffset=g,this.trackSwitch=x,this.timeOffset=T}},"./src/demux/tsdemuxer.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"discardEPB",function(){return w});var B=k("./src/demux/adts.ts"),O=k("./src/demux/mpegaudio.ts"),R=k("./src/demux/exp-golomb.ts"),M=k("./src/demux/id3.ts"),p=k("./src/demux/sample-aes.ts"),a=k("./src/events.ts"),b=k("./src/utils/mp4-tools.ts"),u=k("./src/utils/logger.ts"),d=k("./src/errors.ts"),m={video:1,audio:2,id3:3,text:4},o=function(){function D(v,n,_){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=v,this.config=n,this.typeSupported=_}D.probe=function(n){var _=D.syncOffset(n);return _<0?!1:(_&&u.logger.warn("MPEG2-TS detected but first sync word found @ offset "+_+", junk ahead ?"),!0)},D.syncOffset=function(n){for(var _=Math.min(1e3,n.length-3*188),h=0;h<_;){if(n[h]===71&&n[h+188]===71&&n[h+2*188]===71)return h;h++}return-1},D.createTrack=function(n,_){return{container:n==="video"||n==="audio"?"video/mp2t":void 0,type:n,id:m[n],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:n==="audio"?_:void 0}};var C=D.prototype;return C.resetInitSegment=function(n,_,h){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=D.createTrack("video",h),this._audioTrack=D.createTrack("audio",h),this._id3Track=D.createTrack("id3",h),this._txtTrack=D.createTrack("text",h),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=n,this.videoCodec=_,this._duration=h},C.resetTimeStamp=function(){},C.resetContiguity=function(){var n=this._audioTrack,_=this._avcTrack,h=this._id3Track;n&&(n.pesData=null),_&&(_.pesData=null),h&&(h.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},C.demux=function(n,_,h,g){h===void 0&&(h=!1),g===void 0&&(g=!1),h||(this.sampleAes=null);var x,T=this._avcTrack,S=this._audioTrack,E=this._id3Track,U=T.pid,F=T.pesData,P=S.pid,H=E.pid,N=S.pesData,A=E.pesData,G=!1,K=this.pmtParsed,$=this._pmtId,ie=n.length;if(this.remainderData&&(n=Object(b.appendUint8Array)(this.remainderData,n),ie=n.length,this.remainderData=null),ie<188&&!g)return this.remainderData=n,{audioTrack:S,avcTrack:T,id3Track:E,textTrack:this._txtTrack};var le=Math.max(0,D.syncOffset(n));ie-=(ie+le)%188,ie>4,je=void 0;if(et>1){if(je=de+5+n[de+4],je===de+188)continue}else je=de+4;switch(He){case U:Se&&(F&&(x=t(F))&&this.parseAVCPES(x,!1),F={data:[],size:0}),F&&(F.data.push(n.subarray(je,de+188)),F.size+=de+188-je);break;case P:Se&&(N&&(x=t(N))&&(S.isAAC?this.parseAACPES(x):this.parseMPEGPES(x)),N={data:[],size:0}),N&&(N.data.push(n.subarray(je,de+188)),N.size+=de+188-je);break;case H:Se&&(A&&(x=t(A))&&this.parseID3PES(x),A={data:[],size:0}),A&&(A.data.push(n.subarray(je,de+188)),A.size+=de+188-je);break;case 0:Se&&(je+=n[je]+1),$=this._pmtId=f(n,je);break;case $:{Se&&(je+=n[je]+1);var me=i(n,je,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,h);U=me.avc,U>0&&(T.pid=U),P=me.audio,P>0&&(S.pid=P,S.isAAC=me.isAAC),H=me.id3,H>0&&(E.pid=H),G&&!K&&(u.logger.log("reparse from beginning"),G=!1,de=le-188),K=this.pmtParsed=!0;break}case 17:case 8191:break;default:G=!0;break}}else this.observer.emit(a.Events.ERROR,a.Events.ERROR,{type:d.ErrorTypes.MEDIA_ERROR,details:d.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});T.pesData=F,S.pesData=N,E.pesData=A;var fe={audioTrack:S,avcTrack:T,id3Track:E,textTrack:this._txtTrack};return g&&this.extractRemainingSamples(fe),fe},C.flush=function(){var n=this.remainderData;this.remainderData=null;var _;return n?_=this.demux(n,-1,!1,!0):_={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(_),this.sampleAes?this.decrypt(_,this.sampleAes):_},C.extractRemainingSamples=function(n){var _=n.audioTrack,h=n.avcTrack,g=n.id3Track,x=h.pesData,T=_.pesData,S=g.pesData,E;x&&(E=t(x))?(this.parseAVCPES(E,!0),h.pesData=null):h.pesData=x,T&&(E=t(T))?(_.isAAC?this.parseAACPES(E):this.parseMPEGPES(E),_.pesData=null):(T!=null&&T.size&&u.logger.log("last AAC PES packet truncated,might overlap between fragments"),_.pesData=T),S&&(E=t(S))?(this.parseID3PES(E),g.pesData=null):g.pesData=S},C.demuxSampleAes=function(n,_,h){var g=this.demux(n,h,!0,!this.config.progressive),x=this.sampleAes=new p.default(this.observer,this.config,_);return this.decrypt(g,x)},C.decrypt=function(n,_){return new Promise(function(h){var g=n.audioTrack,x=n.avcTrack;g.samples&&g.isAAC?_.decryptAacSamples(g.samples,0,function(){x.samples?_.decryptAvcSamples(x.samples,0,0,function(){h(n)}):h(n)}):x.samples&&_.decryptAvcSamples(x.samples,0,0,function(){h(n)})})},C.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},C.parseAVCPES=function(n,_){var h=this,g=this._avcTrack,x=this.parseAVCNALu(n.data),T=!1,S=this.avcSample,E,U=!1;n.data=null,S&&x.length&&!g.audFound&&(l(S,g),S=this.avcSample=c(!1,n.pts,n.dts,"")),x.forEach(function(F){switch(F.type){case 1:{E=!0,S||(S=h.avcSample=c(!0,n.pts,n.dts,"")),T&&(S.debug+="NDR "),S.frame=!0;var P=F.data;if(U&&P.length>4){var H=new R.default(P).readSliceType();(H===2||H===4||H===7||H===9)&&(S.key=!0)}break}case 5:E=!0,S||(S=h.avcSample=c(!0,n.pts,n.dts,"")),T&&(S.debug+="IDR "),S.key=!0,S.frame=!0;break;case 6:{E=!0,T&&S&&(S.debug+="SEI ");var N=new R.default(w(F.data));N.readUByte();for(var A=0,G=0,K=!1,$=0;!K&&N.bytesAvailable>1;){A=0;do $=N.readUByte(),A+=$;while($===255);G=0;do $=N.readUByte(),G+=$;while($===255);if(A===4&&N.bytesAvailable!==0){K=!0;var ie=N.readUByte();if(ie===181){var le=N.readUShort();if(le===49){var de=N.readUInt();if(de===1195456820){var Se=N.readUByte();if(Se===3){for(var He=N.readUByte(),et=N.readUByte(),je=31&He,me=[He,et],fe=0;fe16){for(var Ae=[],he=0;he<16;he++)Ae.push(N.readUByte().toString(16)),(he===3||he===5||he===7||he===9)&&Ae.push("-");for(var Ue=G-16,st=new Uint8Array(Ue),Ve=0;Ve=0){var N={data:n.subarray(P,S-g-1),type:H};T.push(N)}else{var A=this.getLastNalUnit();if(A&&(x&&S<=4-x&&(A.state&&(A.data=A.data.subarray(0,A.data.byteLength-x))),U=S-g-1,U>0)){var G=new Uint8Array(A.data.byteLength+U);G.set(A.data,0),G.set(n.subarray(0,U),A.data.byteLength),A.data=G,A.state=0}}S<_?(F=n[S]&31,P=S,H=F,g=0):g=-1}else g=0}if(P>=0&&g>=0){var K={data:n.subarray(P,_),type:H,state:g};T.push(K)}if(T.length===0){var $=this.getLastNalUnit();if($){var ie=new Uint8Array($.data.byteLength+n.byteLength);ie.set($.data,0),ie.set(n,$.data.byteLength),$.data=ie}}return h.naluState=g,T},C.parseAACPES=function(n){var _=0,h=this._audioTrack,g=this.aacOverFlow,x=n.data;if(g){this.aacOverFlow=null;var T=g.sample.unit.byteLength,S=Math.min(g.missing,T),E=T-S;g.sample.unit.set(x.subarray(0,S),E),h.samples.push(g.sample),_=g.missing}var U,F;for(U=_,F=x.length;U1;){var T=new Uint8Array(x[0].length+x[1].length);T.set(x[0]),T.set(x[1],x[0].length),x[0]=T,x.splice(1,1)}v=x[0];var S=(v[0]<<16)+(v[1]<<8)+v[2];if(S===1){if(n=(v[4]<<8)+v[5],n&&n>D.size-6)return null;var E=v[7];E&192&&(h=(v[9]&14)*536870912+(v[10]&255)*4194304+(v[11]&254)*16384+(v[12]&255)*128+(v[13]&254)/2,E&64?(g=(v[14]&14)*536870912+(v[15]&255)*4194304+(v[16]&254)*16384+(v[17]&255)*128+(v[18]&254)/2,h-g>60*9e4&&(u.logger.warn(Math.round((h-g)/9e4)+"s delta between PTS and DTS, align them"),h=g)):g=h),_=v[8];var U=_+9;if(D.size<=U)return null;D.size-=U;for(var F=new Uint8Array(D.size),P=0,H=x.length;PN){U-=N;continue}else v=v.subarray(U),N-=U,U=0;F.set(v,C),C+=N}return n&&(n-=_+3),{data:F,pts:h,dts:g,len:n}}return null}function l(D,C){if(D.units.length&&D.frame){if(D.pts===void 0){var v=C.samples,n=v.length;if(n){var _=v[n-1];D.pts=_.pts,D.dts=_.dts}else{C.dropped++;return}}C.samples.push(D)}D.debug.length&&u.logger.log(D.pts+"/"+D.dts+":"+D.debug)}function s(D,C){var v=D.length;if(v>0){if(C.pts>=D[v-1].pts)D.push(C);else for(var n=v-1;n>=0;n--)if(C.ptsh)return x;return 0}},{key:"maxAutoLevel",get:function(){var _=this.levels,h=this.autoLevelCapping,g;return h===-1&&_&&_.length?g=_.length-1:g=h,g}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(_){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,_)}},{key:"audioTracks",get:function(){var _=this.audioTrackController;return _?_.audioTracks:[]}},{key:"audioTrack",get:function(){var _=this.audioTrackController;return _?_.audioTrack:-1},set:function(_){var h=this.audioTrackController;h&&(h.audioTrack=_)}},{key:"subtitleTracks",get:function(){var _=this.subtitleTrackController;return _?_.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var _=this.subtitleTrackController;return _?_.subtitleTrack:-1},set:function(_){var h=this.subtitleTrackController;h&&(h.subtitleTrack=_)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var _=this.subtitleTrackController;return _?_.subtitleDisplay:!1},set:function(_){var h=this.subtitleTrackController;h&&(h.subtitleDisplay=_)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(_){this.config.lowLatencyMode=_}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return t.Events}},{key:"ErrorTypes",get:function(){return l.ErrorTypes}},{key:"ErrorDetails",get:function(){return l.ErrorDetails}},{key:"DefaultConfig",get:function(){return C.defaultConfig?C.defaultConfig:c.hlsDefaultConfig},set:function(_){C.defaultConfig=_}}]),C}();D.defaultConfig=void 0},"./src/is-supported.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"isSupported",function(){return R}),k.d(W,"changeTypeSupported",function(){return M});var B=k("./src/utils/mediasource-helper.ts");function O(){return self.SourceBuffer||self.WebKitSourceBuffer}function R(){var p=Object(B.getMediaSource)();if(!p)return!1;var a=O(),b=p&&typeof p.isTypeSupported=="function"&&p.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),u=!a||a.prototype&&typeof a.prototype.appendBuffer=="function"&&typeof a.prototype.remove=="function";return!!b&&!!u}function M(){var p,a=O();return typeof(a==null||((p=a.prototype)===null||p===void 0)?void 0:p.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return o}),k.d(W,"LoadError",function(){return f});var B=k("./src/polyfills/number.ts"),O=k("./src/errors.ts");function R(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,u(i,t)}function M(i){var t=typeof Map=="function"?new Map:void 0;return M=function(s){if(s===null||!b(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(s))return t.get(s);t.set(s,w)}function w(){return p(s,arguments,d(this).constructor)}return w.prototype=Object.create(s.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),u(w,s)},M(i)}function p(i,t,l){return a()?p=Reflect.construct:p=function(w,D,C){var v=[null];v.push.apply(v,D);var n=Function.bind.apply(w,v),_=new n;return C&&u(_,C.prototype),_},p.apply(null,arguments)}function a(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function b(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function u(i,t){return u=Object.setPrototypeOf||function(s,w){return s.__proto__=w,s},u(i,t)}function d(i){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},d(i)}var m=Math.pow(2,17),o=function(){function i(l){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=l}var t=i.prototype;return t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t.abort=function(){this.loader&&this.loader.abort()},t.load=function(s,w){var D=this,C=s.url;if(!C)return Promise.reject(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:s,networkDetails:null},"Fragment does not have a "+(C?"part list":"url")));this.abort();var v=this.config,n=v.fLoader,_=v.loader;return new Promise(function(h,g){D.loader&&D.loader.destroy();var x=D.loader=s.loader=n?new n(v):new _(v),T=c(s),S={timeout:v.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:v.fragLoadingMaxRetryTimeout,highWaterMark:m};s.stats=x.stats,x.load(T,S,{onSuccess:function(U,F,P,H){D.resetLoader(s,x),h({frag:s,part:null,payload:U.data,networkDetails:H})},onError:function(U,F,P){D.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:s,response:U,networkDetails:P}))},onAbort:function(U,F,P){D.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:s,networkDetails:P}))},onTimeout:function(U,F,P){D.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:s,networkDetails:P}))},onProgress:function(U,F,P,H){w&&w({frag:s,part:null,payload:P,networkDetails:H})}})})},t.loadPart=function(s,w,D){var C=this;this.abort();var v=this.config,n=v.fLoader,_=v.loader;return new Promise(function(h,g){C.loader&&C.loader.destroy();var x=C.loader=s.loader=n?new n(v):new _(v),T=c(s,w),S={timeout:v.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:v.fragLoadingMaxRetryTimeout,highWaterMark:m};w.stats=x.stats,x.load(T,S,{onSuccess:function(U,F,P,H){C.resetLoader(s,x),C.updateStatsFromPart(s,w);var N={frag:s,part:w,payload:U.data,networkDetails:H};D(N),h(N)},onError:function(U,F,P){C.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:s,part:w,response:U,networkDetails:P}))},onAbort:function(U,F,P){s.stats.aborted=w.stats.aborted,C.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:s,part:w,networkDetails:P}))},onTimeout:function(U,F,P){C.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:s,part:w,networkDetails:P}))}})})},t.updateStatsFromPart=function(s,w){var D=s.stats,C=w.stats,v=C.total;if(D.loaded+=C.loaded,v){var n=Math.round(s.duration/w.duration),_=Math.min(Math.round(D.loaded/v),n),h=n-_,g=h*Math.round(D.loaded/_);D.total=D.loaded+g}else D.total=Math.max(D.loaded,D.total);var x=D.loading,T=C.loading;x.start?x.first+=T.first-T.start:(x.start=T.start,x.first=T.first),x.end=T.end},t.resetLoader=function(s,w){s.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},i}();function c(i,t){t===void 0&&(t=null);var l=t||i,s={frag:i,part:t,responseType:"arraybuffer",url:l.url,headers:{},rangeStart:0,rangeEnd:0},w=l.byteRangeStartOffset,D=l.byteRangeEndOffset;return Object(B.isFiniteNumber)(w)&&Object(B.isFiniteNumber)(D)&&(s.rangeStart=w,s.rangeEnd=D),s}var f=function(i){R(t,i);function t(l){for(var s,w=arguments.length,D=new Array(w>1?w-1:0),C=1;C>8*(15-v)&255;return C},s.setDecryptDataFromLevelKey=function(D,C){var v=D;return(D==null?void 0:D.method)==="AES-128"&&D.uri&&!D.iv&&(v=p.LevelKey.fromURI(D.uri),v.method=D.method,v.iv=this.createInitializationVector(C),v.keyFormat="identity"),v},s.setElementaryStreamInfo=function(D,C,v,n,_,h){h===void 0&&(h=!1);var g=this.elementaryStreams,x=g[D];if(!x){g[D]={startPTS:C,endPTS:v,startDTS:n,endDTS:_,partial:h};return}x.startPTS=Math.min(x.startPTS,C),x.endPTS=Math.max(x.endPTS,v),x.startDTS=Math.min(x.startDTS,n),x.endDTS=Math.max(x.endDTS,_)},s.clearElementaryStreamInfo=function(){var D=this.elementaryStreams;D[o.AUDIO]=null,D[o.VIDEO]=null,D[o.AUDIOVIDEO]=null},m(l,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var D=this.sn;typeof D!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&M.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),D=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,D)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(B.isFiniteNumber)(this.programDateTime))return null;var D=Object(B.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+D*1e3}},{key:"encrypted",get:function(){var D;return!!((D=this.decryptdata)!==null&&D!==void 0&&D.keyFormat&&this.decryptdata.uri)}}]),l}(c),i=function(t){b(l,t);function l(s,w,D,C,v){var n;n=t.call(this,D)||this,n.fragOffset=0,n.duration=0,n.gap=!1,n.independent=!1,n.relurl=void 0,n.fragment=void 0,n.index=void 0,n.stats=new a.LoadStats,n.duration=s.decimalFloatingPoint("DURATION"),n.gap=s.bool("GAP"),n.independent=s.bool("INDEPENDENT"),n.relurl=s.enumeratedString("URI"),n.fragment=w,n.index=C;var _=s.enumeratedString("BYTERANGE");return _&&n.setByteRange(_,v),v&&(n.fragOffset=v.fragOffset+v.duration),n}return m(l,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var w=this.elementaryStreams;return!!(w.audio||w.video||w.audiovideo)}}]),l}(c)},"./src/loader/key-loader.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return M});var B=k("./src/events.ts"),O=k("./src/errors.ts"),R=k("./src/utils/logger.ts"),M=function(){function p(b){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=b,this._registerListeners()}var a=p.prototype;return a._registerListeners=function(){this.hls.on(B.Events.KEY_LOADING,this.onKeyLoading,this)},a._unregisterListeners=function(){this.hls.off(B.Events.KEY_LOADING,this.onKeyLoading)},a.destroy=function(){this._unregisterListeners();for(var u in this.loaders){var d=this.loaders[u];d&&d.destroy()}this.loaders={}},a.onKeyLoading=function(u,d){var m=d.frag,o=m.type,c=this.loaders[o];if(!m.decryptdata){R.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=m.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var i=this.hls.config;if(c&&(R.logger.warn("abort previous key loader for type:"+o),c.abort()),!f){R.logger.warn("key uri is falsy");return}var t=i.loader,l=m.loader=this.loaders[o]=new t(i);this.decrypturl=f,this.decryptkey=null;var s={url:f,frag:m,responseType:"arraybuffer"},w={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:i.fragLoadingRetryDelay,maxRetryDelay:i.fragLoadingMaxRetryTimeout,highWaterMark:0},D={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};l.load(s,w,D)}else this.decryptkey&&(m.decryptdata.key=this.decryptkey,this.hls.trigger(B.Events.KEY_LOADED,{frag:m}))},a.loadsuccess=function(u,d,m){var o=m.frag;if(!o.decryptdata){R.logger.error("after key load, decryptdata unset");return}this.decryptkey=o.decryptdata.key=new Uint8Array(u.data),o.loader=null,delete this.loaders[o.type],this.hls.trigger(B.Events.KEY_LOADED,{frag:o})},a.loaderror=function(u,d){var m=d.frag,o=m.loader;o&&o.abort(),delete this.loaders[m.type],this.hls.trigger(B.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:m,response:u})},a.loadtimeout=function(u,d){var m=d.frag,o=m.loader;o&&o.abort(),delete this.loaders[m.type],this.hls.trigger(B.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:m})},p}()},"./src/loader/level-details.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"LevelDetails",function(){return p});var B=k("./src/polyfills/number.ts");function O(a,b){for(var u=0;ud.endSN||m>0||m===0&&o>0,this.updated||this.advanced?this.misses=Math.floor(d.misses*.6):this.misses=d.misses+1,this.availabilityDelay=d.availabilityDelay},R(a,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(B.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||M}},{key:"drift",get:function(){var d=this.driftEndTime-this.driftStartTime;if(d>0){var m=this.driftEnd-this.driftStart;return m*1e3/d}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var d;return(d=this.partList)!==null&&d!==void 0&&d.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var d;return(d=this.fragments)!==null&&d!==void 0&&d.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var d;return(d=this.partList)!==null&&d!==void 0&&d.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var d;return(d=this.partList)!==null&&d!==void 0&&d.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),a}()},"./src/loader/level-key.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"LevelKey",function(){return p});var B=k("./node_modules/url-toolkit/src/url-toolkit.js"),O=k.n(B);function R(a,b){for(var u=0;u2){var g=h.shift()+".";return g+=parseInt(h.shift()).toString(16),g+=("000"+parseInt(h.shift()).toString(16)).substr(-4),g}return _},v.resolve=function(_,h){return O.buildAbsoluteURL(h,_,{alwaysNormalize:!0})},v.parseMasterPlaylist=function(_,h){var g=[],x={},T=!1;m.lastIndex=0;for(var S;(S=m.exec(_))!=null;)if(S[1]){var E=new b.AttrList(S[1]),U={attrs:E,bitrate:E.decimalInteger("AVERAGE-BANDWIDTH")||E.decimalInteger("BANDWIDTH"),name:E.NAME,url:v.resolve(S[2],h)},F=E.decimalResolution("RESOLUTION");F&&(U.width=F.width,U.height=F.height),s((E.CODECS||"").split(/[ ,]+/).filter(function(H){return H}),U),U.videoCodec&&U.videoCodec.indexOf("avc1")!==-1&&(U.videoCodec=v.convertAVC1ToAVCOTI(U.videoCodec)),g.push(U)}else if(S[3]){var P=new b.AttrList(S[3]);P["DATA-ID"]&&(T=!0,x[P["DATA-ID"]]=P)}return{levels:g,sessionData:T?x:null}},v.parseMasterPlaylistMedia=function(_,h,g,x){x===void 0&&(x=[]);var T,S=[],E=0;for(o.lastIndex=0;(T=o.exec(_))!==null;){var U=new b.AttrList(T[1]);if(U.TYPE===g){var F={attrs:U,bitrate:0,id:E++,groupId:U["GROUP-ID"],instreamId:U["INSTREAM-ID"],name:U.NAME||U.LANGUAGE||"",type:g,default:U.bool("DEFAULT"),autoselect:U.bool("AUTOSELECT"),forced:U.bool("FORCED"),lang:U.LANGUAGE,url:U.URI?v.resolve(U.URI,h):""};if(x.length){var P=v.findGroup(x,F.groupId)||x[0];w(F,P,"audioCodec"),w(F,P,"textCodec")}S.push(F)}}return S},v.parseLevelPlaylist=function(_,h,g,x,T){var S=new p.LevelDetails(h),E=S.fragments,U=null,F=0,P=0,H=0,N=0,A=null,G=new M.Fragment(x,h),K,$,ie,le=-1,de=!1;for(c.lastIndex=0,S.m3u8=_;(K=c.exec(_))!==null;){de&&(de=!1,G=new M.Fragment(x,h),G.start=H,G.sn=F,G.cc=N,G.level=g,U&&(G.initSegment=U,G.rawProgramDateTime=U.rawProgramDateTime));var Se=K[1];if(Se){G.duration=parseFloat(Se);var He=(" "+K[2]).slice(1);G.title=He||null,G.tagList.push(He?["INF",Se,He]:["INF",Se])}else if(K[3])Object(B.isFiniteNumber)(G.duration)&&(G.start=H,ie&&(G.levelkey=ie),G.sn=F,G.level=g,G.cc=N,G.urlId=T,E.push(G),G.relurl=(" "+K[3]).slice(1),C(G,A),A=G,H+=G.duration,F++,P=0,de=!0);else if(K[4]){var et=(" "+K[4]).slice(1);A?G.setByteRange(et,A):G.setByteRange(et)}else if(K[5])G.rawProgramDateTime=(" "+K[5]).slice(1),G.tagList.push(["PROGRAM-DATE-TIME",G.rawProgramDateTime]),le===-1&&(le=E.length);else{if(K=K[0].match(f),!K){u.logger.warn("No matches on slow regex match for level playlist!");continue}for($=1;$-1){u.logger.warn("Keyformat "+gt+" is not supported from the manifest");continue}else if(gt!=="identity")continue;Qe&&(ie=a.LevelKey.fromURL(h,pe),pe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Qe)>=0&&(ie.method=Qe,ie.keyFormat=gt,Ye&&(ie.keyID=Ye),Le&&(ie.keyFormatVersions=Le),ie.iv=xe));break}case"START":{var tn=new b.AttrList(me),Zt=tn.decimalFloatingPoint("TIME-OFFSET");Object(B.isFiniteNumber)(Zt)&&(S.startTimeOffset=Zt);break}case"MAP":{var Hn=new b.AttrList(me);G.relurl=Hn.URI,Hn.BYTERANGE&&G.setByteRange(Hn.BYTERANGE),G.level=g,G.sn="initSegment",ie&&(G.levelkey=ie),G.initSegment=null,U=G,de=!0;break}case"SERVER-CONTROL":{var ia=new b.AttrList(me);S.canBlockReload=ia.bool("CAN-BLOCK-RELOAD"),S.canSkipUntil=ia.optionalFloat("CAN-SKIP-UNTIL",0),S.canSkipDateRanges=S.canSkipUntil>0&&ia.bool("CAN-SKIP-DATERANGES"),S.partHoldBack=ia.optionalFloat("PART-HOLD-BACK",0),S.holdBack=ia.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var mt=new b.AttrList(me);S.partTarget=mt.decimalFloatingPoint("PART-TARGET");break}case"PART":{var pt=S.partList;pt||(pt=S.partList=[]);var on=P>0?pt[pt.length-1]:void 0,hn=P++,Ot=new M.Part(new b.AttrList(me),G,h,hn,on);pt.push(Ot),G.duration+=Ot.duration;break}case"PRELOAD-HINT":{var Xt=new b.AttrList(me);S.preloadHint=Xt;break}case"RENDITION-REPORT":{var ht=new b.AttrList(me);S.renditionReports=S.renditionReports||[],S.renditionReports.push(ht);break}default:u.logger.warn("line parsed but not handled: "+K);break}}}A&&!A.relurl?(E.pop(),H-=A.duration,S.partList&&(S.fragmentHint=A)):S.partList&&(C(G,A),G.cc=N,S.fragmentHint=G);var Je=E.length,rt=E[0],Te=E[Je-1];if(H+=S.skippedSegments*S.targetduration,H>0&&Je&&Te){S.averagetargetduration=H/Je;var Me=Te.sn;S.endSN=Me!=="initSegment"?Me:0,rt&&(S.startCC=rt.cc,rt.initSegment||S.fragments.every(function(Ie){return Ie.relurl&&t(Ie.relurl)})&&(u.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),G=new M.Fragment(x,h),G.relurl=Te.relurl,G.level=g,G.sn="initSegment",rt.initSegment=G,S.needSidxRanges=!0))}else S.endSN=0,S.startCC=0;return S.fragmentHint&&(H+=S.fragmentHint.duration),S.totalduration=H,S.endCC=N,le>0&&D(E,le),S},v}();function s(v,n){["video","audio","text"].forEach(function(_){var h=v.filter(function(x){return Object(d.isCodecType)(x,_)});if(h.length){var g=h.filter(function(x){return x.lastIndexOf("avc1",0)===0||x.lastIndexOf("mp4a",0)===0});n[_+"Codec"]=g.length>0?g[0]:h[0],v=v.filter(function(x){return h.indexOf(x)===-1})}}),n.unknownCodecs=v}function w(v,n,_){var h=n[_];h&&(v[_]=h)}function D(v,n){for(var _=v[n],h=n;h--;){var g=v[h];if(!g)return;g.programDateTime=_.programDateTime-g.duration*1e3,_=g}}function C(v,n){v.rawProgramDateTime?v.programDateTime=Date.parse(v.rawProgramDateTime):n!=null&&n.programDateTime&&(v.programDateTime=n.endProgramDateTime),Object(B.isFiniteNumber)(v.programDateTime)||(v.programDateTime=null,v.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Q,W,k){"use strict";k.r(W);var B=k("./src/polyfills/number.ts"),O=k("./src/events.ts"),R=k("./src/errors.ts"),M=k("./src/utils/logger.ts"),p=k("./src/utils/mp4-tools.ts"),a=k("./src/loader/m3u8-parser.ts"),b=k("./src/types/loader.ts"),u=k("./src/utils/attr-list.ts");function d(c){var f=c.type;switch(f){case b.PlaylistContextType.AUDIO_TRACK:return b.PlaylistLevelType.AUDIO;case b.PlaylistContextType.SUBTITLE_TRACK:return b.PlaylistLevelType.SUBTITLE;default:return b.PlaylistLevelType.MAIN}}function m(c,f){var i=c.url;return(i===void 0||i.indexOf("data:")===0)&&(i=f.url),i}var o=function(){function c(i){this.hls=void 0,this.loaders=Object.create(null),this.hls=i,this.registerListeners()}var f=c.prototype;return f.registerListeners=function(){var t=this.hls;t.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(O.Events.LEVEL_LOADING,this.onLevelLoading,this),t.on(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var t=this.hls;t.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(O.Events.LEVEL_LOADING,this.onLevelLoading,this),t.off(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(t){var l=this.hls.config,s=l.pLoader,w=l.loader,D=s||w,C=new D(l);return t.loader=C,this.loaders[t.type]=C,C},f.getInternalLoader=function(t){return this.loaders[t.type]},f.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},f.destroyInternalLoaders=function(){for(var t in this.loaders){var l=this.loaders[t];l&&l.destroy(),this.resetInternalLoader(t)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(t,l){var s=l.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:b.PlaylistContextType.MANIFEST,url:s,deliveryDirectives:null})},f.onLevelLoading=function(t,l){var s=l.id,w=l.level,D=l.url,C=l.deliveryDirectives;this.load({id:s,groupId:null,level:w,responseType:"text",type:b.PlaylistContextType.LEVEL,url:D,deliveryDirectives:C})},f.onAudioTrackLoading=function(t,l){var s=l.id,w=l.groupId,D=l.url,C=l.deliveryDirectives;this.load({id:s,groupId:w,level:null,responseType:"text",type:b.PlaylistContextType.AUDIO_TRACK,url:D,deliveryDirectives:C})},f.onSubtitleTrackLoading=function(t,l){var s=l.id,w=l.groupId,D=l.url,C=l.deliveryDirectives;this.load({id:s,groupId:w,level:null,responseType:"text",type:b.PlaylistContextType.SUBTITLE_TRACK,url:D,deliveryDirectives:C})},f.load=function(t){var l,s=this.hls.config,w=this.getInternalLoader(t);if(w){var D=w.context;if(D&&D.url===t.url){M.logger.trace("[playlist-loader]: playlist request ongoing");return}M.logger.log("[playlist-loader]: aborting previous loader for type: "+t.type),w.abort()}var C,v,n,_;switch(t.type){case b.PlaylistContextType.MANIFEST:C=s.manifestLoadingMaxRetry,v=s.manifestLoadingTimeOut,n=s.manifestLoadingRetryDelay,_=s.manifestLoadingMaxRetryTimeout;break;case b.PlaylistContextType.LEVEL:case b.PlaylistContextType.AUDIO_TRACK:case b.PlaylistContextType.SUBTITLE_TRACK:C=0,v=s.levelLoadingTimeOut;break;default:C=s.levelLoadingMaxRetry,v=s.levelLoadingTimeOut,n=s.levelLoadingRetryDelay,_=s.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(t),(l=t.deliveryDirectives)!==null&&l!==void 0&&l.part){var h;if(t.type===b.PlaylistContextType.LEVEL&&t.level!==null?h=this.hls.levels[t.level].details:t.type===b.PlaylistContextType.AUDIO_TRACK&&t.id!==null?h=this.hls.audioTracks[t.id].details:t.type===b.PlaylistContextType.SUBTITLE_TRACK&&t.id!==null&&(h=this.hls.subtitleTracks[t.id].details),h){var g=h.partTarget,x=h.targetduration;g&&x&&(v=Math.min(Math.max(g*3,x*.8)*1e3,v))}}var T={timeout:v,maxRetry:C,retryDelay:n,maxRetryDelay:_,highWaterMark:0},S={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(t,T,S)},f.loadsuccess=function(t,l,s,w){if(w===void 0&&(w=null),s.isSidxRequest){this.handleSidxRequest(t,s),this.handlePlaylistLoaded(t,l,s,w);return}this.resetInternalLoader(s.type);var D=t.data;if(D.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(t,s,"no EXTM3U delimiter",w);return}l.parsing.start=performance.now(),D.indexOf("#EXTINF:")>0||D.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(t,l,s,w):this.handleMasterPlaylist(t,l,s,w)},f.loaderror=function(t,l,s){s===void 0&&(s=null),this.handleNetworkError(l,s,!1,t)},f.loadtimeout=function(t,l,s){s===void 0&&(s=null),this.handleNetworkError(l,s,!0)},f.handleMasterPlaylist=function(t,l,s,w){var D=this.hls,C=t.data,v=m(t,s),n=a.default.parseMasterPlaylist(C,v),_=n.levels,h=n.sessionData;if(!_.length){this.handleManifestParsingError(t,s,"no level found in manifest",w);return}var g=_.map(function(F){return{id:F.attrs.AUDIO,audioCodec:F.audioCodec}}),x=_.map(function(F){return{id:F.attrs.SUBTITLES,textCodec:F.textCodec}}),T=a.default.parseMasterPlaylistMedia(C,v,"AUDIO",g),S=a.default.parseMasterPlaylistMedia(C,v,"SUBTITLES",x),E=a.default.parseMasterPlaylistMedia(C,v,"CLOSED-CAPTIONS");if(T.length){var U=T.some(function(F){return!F.url});!U&&_[0].audioCodec&&!_[0].attrs.AUDIO&&(M.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),T.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new u.AttrList({}),bitrate:0,url:""}))}D.trigger(O.Events.MANIFEST_LOADED,{levels:_,audioTracks:T,subtitles:S,captions:E,url:v,stats:l,networkDetails:w,sessionData:h})},f.handleTrackOrLevelPlaylist=function(t,l,s,w){var D=this.hls,C=s.id,v=s.level,n=s.type,_=m(t,s),h=Object(B.isFiniteNumber)(C)?C:0,g=Object(B.isFiniteNumber)(v)?v:h,x=d(s),T=a.default.parseLevelPlaylist(t.data,_,g,x,h);if(!T.fragments.length){D.trigger(O.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:_,reason:"no fragments found in level",level:typeof s.level=="number"?s.level:void 0});return}if(n===b.PlaylistContextType.MANIFEST){var S={attrs:new u.AttrList({}),bitrate:0,details:T,name:"",url:_};D.trigger(O.Events.MANIFEST_LOADED,{levels:[S],audioTracks:[],url:_,stats:l,networkDetails:w,sessionData:null})}if(l.parsing.end=performance.now(),T.needSidxRanges){var E,U=(E=T.fragments[0].initSegment)===null||E===void 0?void 0:E.url;this.load({url:U,isSidxRequest:!0,type:n,level:v,levelDetails:T,id:C,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}s.levelDetails=T,this.handlePlaylistLoaded(t,l,s,w)},f.handleSidxRequest=function(t,l){var s=Object(p.parseSegmentIndex)(new Uint8Array(t.data));if(!s)return;var w=s.references,D=l.levelDetails;w.forEach(function(C,v){var n=C.info,_=D.fragments[v];_.byteRange.length===0&&_.setByteRange(String(1+n.end-n.start)+"@"+String(n.start)),_.initSegment&&_.initSegment.setByteRange(String(s.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(t,l,s,w){this.hls.trigger(O.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:l.type===b.PlaylistContextType.MANIFEST,url:t.url,reason:s,response:t,context:l,networkDetails:w})},f.handleNetworkError=function(t,l,s,w){s===void 0&&(s=!1),M.logger.warn("[playlist-loader]: A network "+(s?"timeout":"error")+" occurred while loading "+t.type+" level: "+t.level+" id: "+t.id+' group-id: "'+t.groupId+'"');var D=R.ErrorDetails.UNKNOWN,C=!1,v=this.getInternalLoader(t);switch(t.type){case b.PlaylistContextType.MANIFEST:D=s?R.ErrorDetails.MANIFEST_LOAD_TIMEOUT:R.ErrorDetails.MANIFEST_LOAD_ERROR,C=!0;break;case b.PlaylistContextType.LEVEL:D=s?R.ErrorDetails.LEVEL_LOAD_TIMEOUT:R.ErrorDetails.LEVEL_LOAD_ERROR,C=!1;break;case b.PlaylistContextType.AUDIO_TRACK:D=s?R.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:R.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,C=!1;break;case b.PlaylistContextType.SUBTITLE_TRACK:D=s?R.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:R.ErrorDetails.SUBTITLE_LOAD_ERROR,C=!1;break}v&&this.resetInternalLoader(t.type);var n={type:R.ErrorTypes.NETWORK_ERROR,details:D,fatal:C,url:t.url,loader:v,context:t,networkDetails:l};w&&(n.response=w),this.hls.trigger(O.Events.ERROR,n)},f.handlePlaylistLoaded=function(t,l,s,w){var D=s.type,C=s.level,v=s.id,n=s.groupId,_=s.loader,h=s.levelDetails,g=s.deliveryDirectives;if(!(h!=null&&h.targetduration)){this.handleManifestParsingError(t,s,"invalid target duration",w);return}if(!_)return;h.live&&(_.getCacheAge&&(h.ageHeader=_.getCacheAge()||0),(!_.getCacheAge||isNaN(h.ageHeader))&&(h.ageHeader=0));switch(D){case b.PlaylistContextType.MANIFEST:case b.PlaylistContextType.LEVEL:this.hls.trigger(O.Events.LEVEL_LOADED,{details:h,level:C||0,id:v||0,stats:l,networkDetails:w,deliveryDirectives:g});break;case b.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(O.Events.AUDIO_TRACK_LOADED,{details:h,id:v||0,groupId:n||"",stats:l,networkDetails:w,deliveryDirectives:g});break;case b.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(O.Events.SUBTITLE_TRACK_LOADED,{details:h,id:v||0,groupId:n||"",stats:l,networkDetails:w,deliveryDirectives:g});break}},c}();W.default=o},"./src/polyfills/number.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"isFiniteNumber",function(){return B}),k.d(W,"MAX_SAFE_INTEGER",function(){return O});var B=Number.isFinite||function(R){return typeof R=="number"&&isFinite(R)},O=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Q,W,k){"use strict";k.r(W);var B=function(){function O(){}return O.getSilentFrame=function(M,p){switch(M){case"mp4a.40.2":if(p===1)return new Uint8Array([0,200,0,128,35,128]);if(p===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(p===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(p===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(p===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(p===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(p===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(p===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(p===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},O}();W.default=B},"./src/remux/mp4-generator.ts":function(Q,W,k){"use strict";k.r(W);var B=Math.pow(2,32)-1,O=function(){function R(){}return R.init=function(){R.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var p;for(p in R.types)R.types.hasOwnProperty(p)&&(R.types[p]=[p.charCodeAt(0),p.charCodeAt(1),p.charCodeAt(2),p.charCodeAt(3)]);var a=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),b=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);R.HDLR_TYPES={video:a,audio:b};var u=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),d=new Uint8Array([0,0,0,0,0,0,0,0]);R.STTS=R.STSC=R.STCO=d,R.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),R.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),R.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var m=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);R.FTYP=R.box(R.types.ftyp,m,c,m,o),R.DINF=R.box(R.types.dinf,R.box(R.types.dref,u))},R.box=function(p){for(var a=8,b=arguments.length,u=new Array(b>1?b-1:0),d=1;d>24&255,c[1]=a>>16&255,c[2]=a>>8&255,c[3]=a&255,c.set(p,4),m=0,a=8;m>24&255,p>>16&255,p>>8&255,p&255,b>>24,b>>16&255,b>>8&255,b&255,u>>24,u>>16&255,u>>8&255,u&255,85,196,0,0]))},R.mdia=function(p){return R.box(R.types.mdia,R.mdhd(p.timescale,p.duration),R.hdlr(p.type),R.minf(p))},R.mfhd=function(p){return R.box(R.types.mfhd,new Uint8Array([0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255]))},R.minf=function(p){return p.type==="audio"?R.box(R.types.minf,R.box(R.types.smhd,R.SMHD),R.DINF,R.stbl(p)):R.box(R.types.minf,R.box(R.types.vmhd,R.VMHD),R.DINF,R.stbl(p))},R.moof=function(p,a,b){return R.box(R.types.moof,R.mfhd(p),R.traf(b,a))},R.moov=function(p){for(var a=p.length,b=[];a--;)b[a]=R.trak(p[a]);return R.box.apply(null,[R.types.moov,R.mvhd(p[0].timescale,p[0].duration)].concat(b).concat(R.mvex(p)))},R.mvex=function(p){for(var a=p.length,b=[];a--;)b[a]=R.trex(p[a]);return R.box.apply(null,[R.types.mvex].concat(b))},R.mvhd=function(p,a){a*=p;var b=Math.floor(a/(B+1)),u=Math.floor(a%(B+1)),d=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,p>>24&255,p>>16&255,p>>8&255,p&255,b>>24,b>>16&255,b>>8&255,b&255,u>>24,u>>16&255,u>>8&255,u&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return R.box(R.types.mvhd,d)},R.sdtp=function(p){var a=p.samples||[],b=new Uint8Array(4+a.length),u,d;for(u=0;u>>8&255),a.push(m&255),a=a.concat(Array.prototype.slice.call(d));for(u=0;u>>8&255),b.push(m&255),b=b.concat(Array.prototype.slice.call(d));var o=R.box(R.types.avcC,new Uint8Array([1,a[3],a[4],a[5],252|3,224|p.sps.length].concat(a).concat([p.pps.length]).concat(b))),c=p.width,f=p.height,i=p.pixelRatio[0],t=p.pixelRatio[1];return R.box(R.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c>>8&255,c&255,f>>8&255,f&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,R.box(R.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),R.box(R.types.pasp,new Uint8Array([i>>24,i>>16&255,i>>8&255,i&255,t>>24,t>>16&255,t>>8&255,t&255])))},R.esds=function(p){var a=p.config.length;return new Uint8Array([0,0,0,0,3,23+a,0,1,0,4,15+a,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([a]).concat(p.config).concat([6,1,2]))},R.mp4a=function(p){var a=p.samplerate;return R.box(R.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,p.channelCount,0,16,0,0,0,0,a>>8&255,a&255,0,0]),R.box(R.types.esds,R.esds(p)))},R.mp3=function(p){var a=p.samplerate;return R.box(R.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,p.channelCount,0,16,0,0,0,0,a>>8&255,a&255,0,0]))},R.stsd=function(p){return p.type==="audio"?!p.isAAC&&p.codec==="mp3"?R.box(R.types.stsd,R.STSD,R.mp3(p)):R.box(R.types.stsd,R.STSD,R.mp4a(p)):R.box(R.types.stsd,R.STSD,R.avc1(p))},R.tkhd=function(p){var a=p.id,b=p.duration*p.timescale,u=p.width,d=p.height,m=Math.floor(b/(B+1)),o=Math.floor(b%(B+1));return R.box(R.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,a>>24&255,a>>16&255,a>>8&255,a&255,0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255,o>>24,o>>16&255,o>>8&255,o&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,u>>8&255,u&255,0,0,d>>8&255,d&255,0,0]))},R.traf=function(p,a){var b=R.sdtp(p),u=p.id,d=Math.floor(a/(B+1)),m=Math.floor(a%(B+1));return R.box(R.types.traf,R.box(R.types.tfhd,new Uint8Array([0,0,0,0,u>>24,u>>16&255,u>>8&255,u&255])),R.box(R.types.tfdt,new Uint8Array([1,0,0,0,d>>24,d>>16&255,d>>8&255,d&255,m>>24,m>>16&255,m>>8&255,m&255])),R.trun(p,b.length+16+20+8+16+8+8),b)},R.trak=function(p){return p.duration=p.duration||4294967295,R.box(R.types.trak,R.tkhd(p),R.mdia(p))},R.trex=function(p){var a=p.id;return R.box(R.types.trex,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},R.trun=function(p,a){var b=p.samples||[],u=b.length,d=12+16*u,m=new Uint8Array(d),o,c,f,i,t,l;for(a+=8+d,m.set([0,0,15,1,u>>>24&255,u>>>16&255,u>>>8&255,u&255,a>>>24&255,a>>>16&255,a>>>8&255,a&255],0),o=0;o>>24&255,f>>>16&255,f>>>8&255,f&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t.isLeading<<2|t.dependsOn,t.isDependedOn<<6|t.hasRedundancy<<4|t.paddingValue<<1|t.isNonSync,t.degradPrio&240<<8,t.degradPrio&15,l>>>24&255,l>>>16&255,l>>>8&255,l&255],12+16*o);return R.box(R.types.trun,m)},R.initSegment=function(p){R.types||R.init();var a=R.moov(p),b=new Uint8Array(R.FTYP.byteLength+a.byteLength);return b.set(R.FTYP),b.set(a,R.FTYP.byteLength),b},R}();O.types=void 0,O.HDLR_TYPES=void 0,O.STTS=void 0,O.STSC=void 0,O.STCO=void 0,O.STSZ=void 0,O.VMHD=void 0,O.SMHD=void 0,O.STSD=void 0,O.FTYP=void 0,O.DINF=void 0,W.default=O},"./src/remux/mp4-remuxer.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return l}),k.d(W,"normalizePts",function(){return s});var B=k("./src/polyfills/number.ts"),O=k("./src/remux/aac-helper.ts"),R=k("./src/remux/mp4-generator.ts"),M=k("./src/events.ts"),p=k("./src/errors.ts"),a=k("./src/utils/logger.ts"),b=k("./src/types/loader.ts"),u=k("./src/utils/timescale-conversion.ts");function d(){return d=Object.assign||function(v){for(var n=1;n0?T:S.pts},h[0].pts);return g&&a.logger.debug("PTS rollover detected"),x},n.remux=function(h,g,x,T,S,E,U,F){var P,H,N,A,G,K,$=S,ie=S,le=h.pid>-1,de=g.pid>-1,Se=g.samples.length,He=h.samples.length>0,et=Se>1,je=(!le||He)&&(!de||et)||this.ISGenerated||U;if(je){this.ISGenerated||(N=this.generateIS(h,g,S));var me=this.isVideoContiguous,fe=-1;if(et&&(fe=w(g.samples),!me&&this.config.forceKeyFrameOnDiscontinuity))if(K=!0,fe>0){a.logger.warn("[mp4-remuxer]: Dropped "+fe+" out of "+Se+" video samples due to a missing keyframe");var Ae=this.getVideoStartPts(g.samples);g.samples=g.samples.slice(fe),g.dropped+=fe,ie+=(g.samples[0].pts-Ae)/(g.timescale||9e4)}else fe===-1&&(a.logger.warn("[mp4-remuxer]: No keyframe found out of "+Se+" video samples"),K=!1);if(this.ISGenerated){if(He&&et){var he=this.getVideoStartPts(g.samples),Ue=s(h.samples[0].pts,he)-he,st=Ue/g.inputTimeScale;$+=Math.max(0,st),ie+=Math.max(0,-st)}if(He){if(h.samplerate||(a.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),N=this.generateIS(h,g,S)),H=this.remuxAudio(h,$,this.isAudioContiguous,E,de||et||F===b.PlaylistLevelType.AUDIO?ie:void 0),et){var Ve=H?H.endPTS-H.startPTS:0;g.inputTimeScale||(a.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),N=this.generateIS(h,g,S)),P=this.remuxVideo(g,ie,me,Ve)}}else et&&(P=this.remuxVideo(g,ie,me,0));P&&(P.firstKeyFrame=fe,P.independent=fe!==-1)}}return this.ISGenerated&&(x.samples.length&&(G=this.remuxID3(x,S)),T.samples.length&&(A=this.remuxText(T,S))),{audio:H,video:P,initSegment:N,independent:K,text:A,id3:G}},n.generateIS=function(h,g,x){var T=h.samples,S=g.samples,E=this.typeSupported,U={},F=!Object(B.isFiniteNumber)(this._initPTS),P="audio/mp4",H,N,A;if(F&&(H=N=Infinity),h.config&&T.length&&(h.timescale=h.samplerate,h.isAAC||(E.mpeg?(P="audio/mpeg",h.codec=""):E.mp3&&(h.codec="mp3")),U.audio={id:"audio",container:P,codec:h.codec,initSegment:!h.isAAC&&E.mpeg?new Uint8Array(0):R.default.initSegment([h]),metadata:{channelCount:h.channelCount}},F&&(A=h.inputTimeScale,H=N=T[0].pts-Math.round(A*x))),g.sps&&g.pps&&S.length&&(g.timescale=g.inputTimeScale,U.video={id:"main",container:"video/mp4",codec:g.codec,initSegment:R.default.initSegment([g]),metadata:{width:g.width,height:g.height}},F)){A=g.inputTimeScale;var G=this.getVideoStartPts(S),K=Math.round(A*x);N=Math.min(N,s(S[0].dts,G)-K),H=Math.min(H,G-K)}if(Object.keys(U).length)return this.ISGenerated=!0,F&&(this._initPTS=H,this._initDTS=N),{tracks:U,initPTS:H,timescale:A}},n.remuxVideo=function(h,g,x,T){var S=h.inputTimeScale,E=h.samples,U=[],F=E.length,P=this._initPTS,H=this.nextAvcDts,N=8,A,G,K,$=Number.POSITIVE_INFINITY,ie=Number.NEGATIVE_INFINITY,le=0,de=!1;if(!x||H===null){var Se=g*S,He=E[0].pts-s(E[0].dts,E[0].pts);H=Se-He}for(var et=0;etje.pts){var me=9e4*.2;le=Math.max(Math.min(le,je.pts-je.dts),-1*me)}je.dts0?et-1:et].dts&&(de=!0)}de&&E.sort(function(_n,Bt){var mn=_n.dts-Bt.dts,Gt=_n.pts-Bt.pts;return mn||Gt}),G=E[0].dts,K=E[E.length-1].dts;var fe=Math.round((K-G)/(F-1));if(le<0){if(lefe,dt=st<-1;if(Ve||dt){Ve?a.logger.warn("AVC: "+Object(u.toMsFromMpegTsClock)(st,!0)+" ms ("+st+"dts) hole between fragments detected, filling it"):a.logger.warn("AVC: "+Object(u.toMsFromMpegTsClock)(-st,!0)+" ms ("+st+"dts) overlapping between fragments detected"),G=H;var Qe=E[0].pts-st;E[0].dts=G,E[0].pts=Qe,a.logger.log("Video: First PTS/DTS adjusted: "+Object(u.toMsFromMpegTsClock)(Qe,!0)+"/"+Object(u.toMsFromMpegTsClock)(G,!0)+", delta: "+Object(u.toMsFromMpegTsClock)(st,!0)+" ms")}}t&&(G=Math.max(0,G));for(var pe=0,xe=0,Le=0;Le0?pt-1:pt].dts;if(Me.stretchShortVideoTrack&&this.nextAudioPts!==null){var be=Math.floor(Me.maxBufferHole*S),qe=(T?$+T*S:this.nextAudioPts)-on.pts;qe>be?(A=qe-Ie,A<0&&(A=Ie),a.logger.log("[mp4-remuxer]: It is approximately "+qe/90+" ms to the next segment; using duration "+A/90+" ms for the last video frame.")):A=Ie}else A=Ie}var Lt=Math.round(on.pts-on.dts);U.push(new D(on.key,A,Ot,Lt))}if(U.length&&f&&f<70){var nn=U[0].flags;nn.dependsOn=2,nn.isNonSync=0}console.assert(A!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=H=K+A,this.isVideoContiguous=!0;var $n=R.default.moof(h.sequenceNumber++,G,d({},h,{samples:U})),ta="video",Sa={data1:$n,data2:ia,startPTS:$/S,endPTS:(ie+A)/S,startDTS:G/S,endDTS:H/S,type:ta,hasAudio:!1,hasVideo:!0,nb:U.length,dropped:h.dropped};return h.samples=[],h.dropped=0,console.assert(ia.length,"MDAT length must not be zero"),Sa},n.remuxAudio=function(h,g,x,T,S){var E=h.inputTimeScale,U=h.samplerate?h.samplerate:E,F=E/U,P=h.isAAC?o:c,H=P*F,N=this._initPTS,A=!h.isAAC&&this.typeSupported.mpeg,G=[],K=h.samples,$=A?0:8,ie=this.nextAudioPts||-1,le=g*E;if(this.isAudioContiguous=x=x||K.length&&ie>0&&(T&&Math.abs(le-ie)<9e3||Math.abs(s(K[0].pts-N,le)-ie)<20*H),K.forEach(function(rt){rt.pts=s(rt.pts-N,le)}),!x||ie<0){if(K=K.filter(function(rt){return rt.pts>=0}),!K.length)return;S===0?ie=0:T?ie=Math.max(0,le):ie=K[0].pts}if(h.isAAC)for(var de=S!==void 0,Se=this.config.maxAudioFramesDrift,He=0,et=ie;He=Se*H&&Ae0){xe+=$;try{pe=new Uint8Array(xe)}catch(rt){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:p.ErrorTypes.MUX_ERROR,details:p.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:xe,reason:"fail allocating audio mdat "+xe});return}if(!A){var ia=new DataView(pe.buffer);ia.setUint32(0,xe),pe.set(R.default.types.mdat,4)}}else return;pe.set(tn,$);var mt=tn.byteLength;$+=mt,G.push(new D(!0,P,mt,0)),Qe=Zt}var pt=G.length;if(!pt)return;var on=G[G.length-1];this.nextAudioPts=ie=Qe+F*on.duration;var hn=A?new Uint8Array(0):R.default.moof(h.sequenceNumber++,dt/F,d({},h,{samples:G}));h.samples=[];var Ot=dt/E,Xt=ie/E,ht="audio",Je={data1:hn,data2:pe,startPTS:Ot,endPTS:Xt,startDTS:Ot,endDTS:Xt,type:ht,hasAudio:!0,hasVideo:!1,nb:pt};return this.isAudioContiguous=!0,console.assert(pe.length,"MDAT length must not be zero"),Je},n.remuxEmptyAudio=function(h,g,x,T){var S=h.inputTimeScale,E=h.samplerate?h.samplerate:S,U=S/E,F=this.nextAudioPts,P=(F!==null?F:T.startDTS*S)+this._initDTS,H=T.endDTS*S+this._initDTS,N=U*o,A=Math.ceil((H-P)/N),G=O.default.getSilentFrame(h.manifestCodec||h.codec,h.channelCount);if(a.logger.warn("[mp4-remuxer]: remux empty Audio"),!G){a.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var K=[],$=0;$4294967296;)v+=_;return v}function w(v){for(var n=0;n0?this.lastEndDTS=h:(M.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var g=!!v.audio,x=!!v.video,T="";g&&(T+="audio"),x&&(T+="video");var S={data1:D,startPTS:_,startDTS:_,endPTS:h,endDTS:h,type:T,hasAudio:g,hasVideo:x,nb:1,dropped:0};return w.audio=S.type==="audio"?S:void 0,w.video=S.type!=="audio"?S:void 0,w.text=i,w.id3=f,w.initSegment=C,w},u}(),a=function(d,m,o){return Object(O.getStartDTS)(d,m)-o};function b(u,d){var m=u==null?void 0:u.codec;return m&&m.length>4?m:m==="hvc1"?"hvc1.1.c.L120.90":m==="av01"?"av01.0.04M.08":m==="avc1"||d===R.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}W.default=p},"./src/task-loop.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return B});var B=function(){function O(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var R=O.prototype;return R.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},R.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},R.onHandlerDestroyed=function(){},R.hasInterval=function(){return!!this._tickInterval},R.hasNextTick=function(){return!!this._tickTimer},R.setInterval=function(p){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,p),!0)},R.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},R.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},R.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},R.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},R.doTick=function(){},O}()},"./src/types/cmcd.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"CMCDVersion",function(){return B}),k.d(W,"CMCDObjectType",function(){return O}),k.d(W,"CMCDStreamingFormat",function(){return R}),k.d(W,"CMCDStreamType",function(){return M});var B=1,O;(function(p){p.MANIFEST="m",p.AUDIO="a",p.VIDEO="v",p.MUXED="av",p.INIT="i",p.CAPTION="c",p.TIMED_TEXT="tt",p.KEY="k",p.OTHER="o"})(O||(O={}));var R;(function(p){p.DASH="d",p.HLS="h",p.SMOOTH="s",p.OTHER="o"})(R||(R={}));var M;(function(p){p.VOD="v",p.LIVE="l"})(M||(M={}))},"./src/types/level.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"HlsSkip",function(){return R}),k.d(W,"getSkipValue",function(){return M}),k.d(W,"HlsUrlParameters",function(){return p}),k.d(W,"Level",function(){return a});function B(b,u){for(var d=0;dNumber.MAX_SAFE_INTEGER?Infinity:u},p.hexadecimalInteger=function(b){if(this[b]){var u=(this[b]||"0x").slice(2);u=(u.length&1?"0":"")+u;for(var d=new Uint8Array(u.length/2),m=0;mNumber.MAX_SAFE_INTEGER?Infinity:u},p.decimalFloatingPoint=function(b){return parseFloat(this[b])},p.optionalFloat=function(b,u){var d=this[b];return d?parseFloat(d):u},p.enumeratedString=function(b){return this[b]},p.bool=function(b){return this[b]==="YES"},p.decimalResolution=function(b){var u=B.exec(this[b]);return u===null?void 0:{width:parseInt(u[1],10),height:parseInt(u[2],10)}},M.parseAttrList=function(b){var u,d={},m='"';for(O.lastIndex=0;(u=O.exec(b))!==null;){var o=u[2];o.indexOf(m)===0&&o.lastIndexOf(m)===o.length-1&&(o=o.slice(1,-1)),d[u[1]]=o}return d},M}()},"./src/utils/binary-search.ts":function(Q,W,k){"use strict";k.r(W);var B={search:function(R,M){for(var p=0,a=R.length-1,b=null,u=null;p<=a;){b=(p+a)/2|0,u=R[b];var d=M(u);if(d>0)p=b+1;else if(d<0)a=b-1;else return u}return null}};W.default=B},"./src/utils/buffer-helper.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"BufferHelper",function(){return R});var B=k("./src/utils/logger.ts"),O={length:0,start:function(){return 0},end:function(){return 0}},R=function(){function M(){}return M.isBuffered=function(a,b){try{if(a){for(var u=M.getBuffered(a),d=0;d=u.start(d)&&b<=u.end(d))return!0}}catch(m){}return!1},M.bufferInfo=function(a,b,u){try{if(a){var d=M.getBuffered(a),m=[],o;for(o=0;oc&&(d[o-1].end=a[m].end):d.push(a[m])}else d.push(a[m])}else d=a;for(var f=0,i,t=b,l=b,s=0;s=w&&b=x&&B.logger.log(this.time+" ["+x+"] "+T)},_}(),f=function(h){for(var g=[],x=0;xp&&(this.logger.log(o.DEBUG,"Too large cursor position "+this.pos),this.pos=p)},h.moveCursor=function(x){var T=this.pos+x;if(x>1)for(var S=this.pos+1;S=144&&this.backSpace();var T=R(x);if(this.pos>=p){this.logger.log(o.ERROR,"Cannot insert "+x.toString(16)+" ("+T+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(T,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(x){var T;for(T=x;T0&&(x?S="["+T.join(" | ")+"]":S=T.join(` + timeOffset: `+S);var $=new M.TransmuxConfig(s,w,l,v,h);this.configureTransmuxer($)}if(this.frag=D,this.part=C,T)T.postMessage({cmd:"demux",data:t,decryptdata:E,chunkMeta:_,state:K},t instanceof ArrayBuffer?[t]:[]);else if(x){var ie=x.push(t,E,_,K);Object(M.isPromise)(ie)?ie.then(function(le){g.handleTransmuxComplete(le)}):this.handleTransmuxComplete(ie)}},f.flush=function(t){var l=this;t.transmuxing.start=self.performance.now();var s=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:t});else if(s){var D=s.flush(t);Object(M.isPromise)(D)?D.then(function(C){l.handleFlushResult(C,t)}):this.handleFlushResult(D,t)}},f.handleFlushResult=function(t,l){var s=this;t.forEach(function(w){s.handleTransmuxComplete(w)}),this.onFlush(l)},f.onWorkerMessage=function(t){var l=t.data,s=this.hls;switch(l.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(l.data);break}case"flush":{this.onFlush(l.data);break}default:{l.data=l.data||{},l.data.frag=this.frag,l.data.id=this.id,s.trigger(l.event,l.data);break}}},f.configureTransmuxer=function(t){var l=this.worker,s=this.transmuxer;l?l.postMessage({cmd:"configure",config:t}):s&&s.configure(t)},f.handleTransmuxComplete=function(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)},c}()},"./src/demux/transmuxer-worker.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return a});var B=k("./src/demux/transmuxer.ts"),O=k("./src/events.ts"),R=k("./src/utils/logger.ts"),M=k("./node_modules/eventemitter3/index.js"),p=k.n(M);function a(o){var c=new M.EventEmitter,f=function(t,l){o.postMessage({event:t,data:l})};c.on(O.Events.FRAG_DECRYPTED,f),c.on(O.Events.ERROR,f),o.addEventListener("message",function(i){var t=i.data;switch(t.cmd){case"init":{var l=JSON.parse(t.config);o.transmuxer=new B.default(c,t.typeSupported,l,t.vendor,t.id),Object(R.enableLogs)(l.debug),f("init",null);break}case"configure":{o.transmuxer.configure(t.config);break}case"demux":{var s=o.transmuxer.push(t.data,t.decryptdata,t.chunkMeta,t.state);Object(B.isPromise)(s)?s.then(function(C){b(o,C)}):b(o,s);break}case"flush":{var w=t.chunkMeta,D=o.transmuxer.flush(w);Object(B.isPromise)(D)?D.then(function(C){d(o,C,w)}):d(o,D,w);break}default:break}})}function b(o,c){if(m(c.remuxResult))return;var f=[],i=c.remuxResult,t=i.audio,l=i.video;t&&u(f,t),l&&u(f,l),o.postMessage({event:"transmuxComplete",data:c},f)}function u(o,c){c.data1&&o.push(c.data1.buffer),c.data2&&o.push(c.data2.buffer)}function d(o,c,f){c.forEach(function(i){b(o,i)}),o.postMessage({event:"flush",data:f})}function m(o){return!o.audio&&!o.video&&!o.text&&!o.id3&&!o.initSegment}},"./src/demux/transmuxer.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return l}),k.d(W,"isPromise",function(){return D}),k.d(W,"TransmuxConfig",function(){return C}),k.d(W,"TransmuxState",function(){return v});var B=k("./src/events.ts"),O=k("./src/errors.ts"),R=k("./src/crypt/decrypter.ts"),M=k("./src/demux/aacdemuxer.ts"),p=k("./src/demux/mp4demuxer.ts"),a=k("./src/demux/tsdemuxer.ts"),b=k("./src/demux/mp3demuxer.ts"),u=k("./src/remux/mp4-remuxer.ts"),d=k("./src/remux/passthrough-remuxer.ts"),m=k("./src/demux/chunk-cache.ts"),o=k("./src/utils/mp4-tools.ts"),c=k("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(n){c.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var i=[{demux:a.default,remux:u.default},{demux:p.default,remux:d.default},{demux:M.default,remux:u.default},{demux:b.default,remux:u.default}],t=1024;i.forEach(function(n){var _=n.demux;t=Math.max(t,_.minProbeByteLength)});var l=function(){function n(h,g,x,T,S){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new m.default,this.observer=h,this.typeSupported=g,this.config=x,this.vendor=T,this.id=S}var _=n.prototype;return _.configure=function(g){this.transmuxConfig=g,this.decrypter&&this.decrypter.reset()},_.push=function(g,x,T,S){var E=this,U=T.transmuxing;U.executeStart=f();var F=new Uint8Array(g),P=this.cache,H=this.config,N=this.currentTransmuxState,A=this.transmuxConfig;S&&(this.currentTransmuxState=S);var G=s(F,x);if(G&&G.method==="AES-128"){var K=this.getDecrypter();if(H.enableSoftwareAES){var $=K.softwareDecrypt(F,G.key.buffer,G.iv.buffer);if(!$)return U.executeEnd=f(),w(T);F=new Uint8Array($)}else return this.decryptionPromise=K.webCryptoDecrypt(F,G.key.buffer,G.iv.buffer).then(function(dt){var Qe=E.push(dt,null,T);return E.decryptionPromise=null,Qe}),this.decryptionPromise}var ie=S||N,le=ie.contiguous,de=ie.discontinuity,Se=ie.trackSwitch,He=ie.accurateTimeOffset,et=ie.timeOffset,je=A.audioCodec,me=A.videoCodec,fe=A.defaultInitPts,Ae=A.duration,he=A.initSegmentData;if((de||Se)&&this.resetInitSegment(he,je,me,Ae),de&&this.resetInitialTimestamp(fe),le||this.resetContiguity(),this.needsProbing(F,de,Se)){if(P.dataLength){var Ue=P.flush();F=Object(o.appendUint8Array)(Ue,F)}this.configureTransmuxer(F,A)}var st=this.transmux(F,G,et,He,T),Ve=this.currentTransmuxState;return Ve.contiguous=!0,Ve.discontinuity=!1,Ve.trackSwitch=!1,U.executeEnd=f(),st},_.flush=function(g){var x=this,T=g.transmuxing;T.executeStart=f();var S=this.decrypter,E=this.cache,U=this.currentTransmuxState,F=this.decryptionPromise;if(F)return F.then(function(){return x.flush(g)});var P=[],H=U.timeOffset;if(S){var N=S.flush();N&&P.push(this.push(N,null,g))}var A=E.dataLength;E.reset();var G=this.demuxer,K=this.remuxer;if(!G||!K)return A>=t&&this.observer.emit(B.Events.ERROR,B.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),T.executeEnd=f(),[w(g)];var $=G.flush(H);return D($)?$.then(function(ie){return x.flushRemux(P,ie,g),P}):(this.flushRemux(P,$,g),P)},_.flushRemux=function(g,x,T){var S=x.audioTrack,E=x.avcTrack,U=x.id3Track,F=x.textTrack,P=this.currentTransmuxState,H=P.accurateTimeOffset,N=P.timeOffset;c.logger.log("[transmuxer.ts]: Flushed fragment "+T.sn+(T.part>-1?" p: "+T.part:"")+" of level "+T.level);var A=this.remuxer.remux(S,E,U,F,N,H,!0,this.id);g.push({remuxResult:A,chunkMeta:T}),T.transmuxing.executeEnd=f()},_.resetInitialTimestamp=function(g){var x=this.demuxer,T=this.remuxer;if(!x||!T)return;x.resetTimeStamp(g),T.resetTimeStamp(g)},_.resetContiguity=function(){var g=this.demuxer,x=this.remuxer;if(!g||!x)return;g.resetContiguity(),x.resetNextTimestamp()},_.resetInitSegment=function(g,x,T,S){var E=this.demuxer,U=this.remuxer;if(!E||!U)return;E.resetInitSegment(x,T,S),U.resetInitSegment(g,x,T)},_.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},_.transmux=function(g,x,T,S,E){var U;return x&&x.method==="SAMPLE-AES"?U=this.transmuxSampleAes(g,x,T,S,E):U=this.transmuxUnencrypted(g,T,S,E),U},_.transmuxUnencrypted=function(g,x,T,S){var E=this.demuxer.demux(g,x,!1,!this.config.progressive),U=E.audioTrack,F=E.avcTrack,P=E.id3Track,H=E.textTrack,N=this.remuxer.remux(U,F,P,H,x,T,!1,this.id);return{remuxResult:N,chunkMeta:S}},_.transmuxSampleAes=function(g,x,T,S,E){var U=this;return this.demuxer.demuxSampleAes(g,x,T).then(function(F){var P=U.remuxer.remux(F.audioTrack,F.avcTrack,F.id3Track,F.textTrack,T,S,!1,U.id);return{remuxResult:P,chunkMeta:E}})},_.configureTransmuxer=function(g,x){for(var T=this.config,S=this.observer,E=this.typeSupported,U=this.vendor,F=x.audioCodec,P=x.defaultInitPts,H=x.duration,N=x.initSegmentData,A=x.videoCodec,G,K=0,$=i.length;K<$;K++)if(i[K].demux.probe(g)){G=i[K];break}G||(c.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),G={demux:p.default,remux:d.default});var ie=this.demuxer,le=this.remuxer,de=G.remux,Se=G.demux;(!le||!(le instanceof de))&&(this.remuxer=new de(S,T,E,U)),(!ie||!(ie instanceof Se))&&(this.demuxer=new Se(S,T,E),this.probe=Se.probe),this.resetInitSegment(N,F,A,H),this.resetInitialTimestamp(P)},_.needsProbing=function(g,x,T){return!this.demuxer||!this.remuxer||x||T},_.getDecrypter=function(){var g=this.decrypter;return g||(g=this.decrypter=new R.default(this.observer,this.config)),g},n}();function s(n,_){var h=null;return n.byteLength>0&&_!=null&&_.key!=null&&_.iv!==null&&_.method!=null&&(h=_),h}var w=function(_){return{remuxResult:{},chunkMeta:_}};function D(n){return"then"in n&&n.then instanceof Function}var C=function(_,h,g,x,T){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=_,this.videoCodec=h,this.initSegmentData=g,this.duration=x,this.defaultInitPts=T},v=function(_,h,g,x,T){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=_,this.contiguous=h,this.accurateTimeOffset=g,this.trackSwitch=x,this.timeOffset=T}},"./src/demux/tsdemuxer.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"discardEPB",function(){return w});var B=k("./src/demux/adts.ts"),O=k("./src/demux/mpegaudio.ts"),R=k("./src/demux/exp-golomb.ts"),M=k("./src/demux/id3.ts"),p=k("./src/demux/sample-aes.ts"),a=k("./src/events.ts"),b=k("./src/utils/mp4-tools.ts"),u=k("./src/utils/logger.ts"),d=k("./src/errors.ts"),m={video:1,audio:2,id3:3,text:4},o=function(){function D(v,n,_){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=v,this.config=n,this.typeSupported=_}D.probe=function(n){var _=D.syncOffset(n);return _<0?!1:(_&&u.logger.warn("MPEG2-TS detected but first sync word found @ offset "+_+", junk ahead ?"),!0)},D.syncOffset=function(n){for(var _=Math.min(1e3,n.length-3*188),h=0;h<_;){if(n[h]===71&&n[h+188]===71&&n[h+2*188]===71)return h;h++}return-1},D.createTrack=function(n,_){return{container:n==="video"||n==="audio"?"video/mp2t":void 0,type:n,id:m[n],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:n==="audio"?_:void 0}};var C=D.prototype;return C.resetInitSegment=function(n,_,h){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=D.createTrack("video",h),this._audioTrack=D.createTrack("audio",h),this._id3Track=D.createTrack("id3",h),this._txtTrack=D.createTrack("text",h),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=n,this.videoCodec=_,this._duration=h},C.resetTimeStamp=function(){},C.resetContiguity=function(){var n=this._audioTrack,_=this._avcTrack,h=this._id3Track;n&&(n.pesData=null),_&&(_.pesData=null),h&&(h.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},C.demux=function(n,_,h,g){h===void 0&&(h=!1),g===void 0&&(g=!1),h||(this.sampleAes=null);var x,T=this._avcTrack,S=this._audioTrack,E=this._id3Track,U=T.pid,F=T.pesData,P=S.pid,H=E.pid,N=S.pesData,A=E.pesData,G=!1,K=this.pmtParsed,$=this._pmtId,ie=n.length;if(this.remainderData&&(n=Object(b.appendUint8Array)(this.remainderData,n),ie=n.length,this.remainderData=null),ie<188&&!g)return this.remainderData=n,{audioTrack:S,avcTrack:T,id3Track:E,textTrack:this._txtTrack};var le=Math.max(0,D.syncOffset(n));ie-=(ie+le)%188,ie>4,je=void 0;if(et>1){if(je=de+5+n[de+4],je===de+188)continue}else je=de+4;switch(He){case U:Se&&(F&&(x=t(F))&&this.parseAVCPES(x,!1),F={data:[],size:0}),F&&(F.data.push(n.subarray(je,de+188)),F.size+=de+188-je);break;case P:Se&&(N&&(x=t(N))&&(S.isAAC?this.parseAACPES(x):this.parseMPEGPES(x)),N={data:[],size:0}),N&&(N.data.push(n.subarray(je,de+188)),N.size+=de+188-je);break;case H:Se&&(A&&(x=t(A))&&this.parseID3PES(x),A={data:[],size:0}),A&&(A.data.push(n.subarray(je,de+188)),A.size+=de+188-je);break;case 0:Se&&(je+=n[je]+1),$=this._pmtId=f(n,je);break;case $:{Se&&(je+=n[je]+1);var me=i(n,je,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,h);U=me.avc,U>0&&(T.pid=U),P=me.audio,P>0&&(S.pid=P,S.isAAC=me.isAAC),H=me.id3,H>0&&(E.pid=H),G&&!K&&(u.logger.log("reparse from beginning"),G=!1,de=le-188),K=this.pmtParsed=!0;break}case 17:case 8191:break;default:G=!0;break}}else this.observer.emit(a.Events.ERROR,a.Events.ERROR,{type:d.ErrorTypes.MEDIA_ERROR,details:d.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});T.pesData=F,S.pesData=N,E.pesData=A;var fe={audioTrack:S,avcTrack:T,id3Track:E,textTrack:this._txtTrack};return g&&this.extractRemainingSamples(fe),fe},C.flush=function(){var n=this.remainderData;this.remainderData=null;var _;return n?_=this.demux(n,-1,!1,!0):_={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(_),this.sampleAes?this.decrypt(_,this.sampleAes):_},C.extractRemainingSamples=function(n){var _=n.audioTrack,h=n.avcTrack,g=n.id3Track,x=h.pesData,T=_.pesData,S=g.pesData,E;x&&(E=t(x))?(this.parseAVCPES(E,!0),h.pesData=null):h.pesData=x,T&&(E=t(T))?(_.isAAC?this.parseAACPES(E):this.parseMPEGPES(E),_.pesData=null):(T!=null&&T.size&&u.logger.log("last AAC PES packet truncated,might overlap between fragments"),_.pesData=T),S&&(E=t(S))?(this.parseID3PES(E),g.pesData=null):g.pesData=S},C.demuxSampleAes=function(n,_,h){var g=this.demux(n,h,!0,!this.config.progressive),x=this.sampleAes=new p.default(this.observer,this.config,_);return this.decrypt(g,x)},C.decrypt=function(n,_){return new Promise(function(h){var g=n.audioTrack,x=n.avcTrack;g.samples&&g.isAAC?_.decryptAacSamples(g.samples,0,function(){x.samples?_.decryptAvcSamples(x.samples,0,0,function(){h(n)}):h(n)}):x.samples&&_.decryptAvcSamples(x.samples,0,0,function(){h(n)})})},C.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},C.parseAVCPES=function(n,_){var h=this,g=this._avcTrack,x=this.parseAVCNALu(n.data),T=!1,S=this.avcSample,E,U=!1;n.data=null,S&&x.length&&!g.audFound&&(l(S,g),S=this.avcSample=c(!1,n.pts,n.dts,"")),x.forEach(function(F){switch(F.type){case 1:{E=!0,S||(S=h.avcSample=c(!0,n.pts,n.dts,"")),T&&(S.debug+="NDR "),S.frame=!0;var P=F.data;if(U&&P.length>4){var H=new R.default(P).readSliceType();(H===2||H===4||H===7||H===9)&&(S.key=!0)}break}case 5:E=!0,S||(S=h.avcSample=c(!0,n.pts,n.dts,"")),T&&(S.debug+="IDR "),S.key=!0,S.frame=!0;break;case 6:{E=!0,T&&S&&(S.debug+="SEI ");var N=new R.default(w(F.data));N.readUByte();for(var A=0,G=0,K=!1,$=0;!K&&N.bytesAvailable>1;){A=0;do $=N.readUByte(),A+=$;while($===255);G=0;do $=N.readUByte(),G+=$;while($===255);if(A===4&&N.bytesAvailable!==0){K=!0;var ie=N.readUByte();if(ie===181){var le=N.readUShort();if(le===49){var de=N.readUInt();if(de===1195456820){var Se=N.readUByte();if(Se===3){for(var He=N.readUByte(),et=N.readUByte(),je=31&He,me=[He,et],fe=0;fe16){for(var Ae=[],he=0;he<16;he++)Ae.push(N.readUByte().toString(16)),(he===3||he===5||he===7||he===9)&&Ae.push("-");for(var Ue=G-16,st=new Uint8Array(Ue),Ve=0;Ve=0){var N={data:n.subarray(P,S-g-1),type:H};T.push(N)}else{var A=this.getLastNalUnit();if(A&&(x&&S<=4-x&&(A.state&&(A.data=A.data.subarray(0,A.data.byteLength-x))),U=S-g-1,U>0)){var G=new Uint8Array(A.data.byteLength+U);G.set(A.data,0),G.set(n.subarray(0,U),A.data.byteLength),A.data=G,A.state=0}}S<_?(F=n[S]&31,P=S,H=F,g=0):g=-1}else g=0}if(P>=0&&g>=0){var K={data:n.subarray(P,_),type:H,state:g};T.push(K)}if(T.length===0){var $=this.getLastNalUnit();if($){var ie=new Uint8Array($.data.byteLength+n.byteLength);ie.set($.data,0),ie.set(n,$.data.byteLength),$.data=ie}}return h.naluState=g,T},C.parseAACPES=function(n){var _=0,h=this._audioTrack,g=this.aacOverFlow,x=n.data;if(g){this.aacOverFlow=null;var T=g.sample.unit.byteLength,S=Math.min(g.missing,T),E=T-S;g.sample.unit.set(x.subarray(0,S),E),h.samples.push(g.sample),_=g.missing}var U,F;for(U=_,F=x.length;U1;){var T=new Uint8Array(x[0].length+x[1].length);T.set(x[0]),T.set(x[1],x[0].length),x[0]=T,x.splice(1,1)}v=x[0];var S=(v[0]<<16)+(v[1]<<8)+v[2];if(S===1){if(n=(v[4]<<8)+v[5],n&&n>D.size-6)return null;var E=v[7];E&192&&(h=(v[9]&14)*536870912+(v[10]&255)*4194304+(v[11]&254)*16384+(v[12]&255)*128+(v[13]&254)/2,E&64?(g=(v[14]&14)*536870912+(v[15]&255)*4194304+(v[16]&254)*16384+(v[17]&255)*128+(v[18]&254)/2,h-g>60*9e4&&(u.logger.warn(Math.round((h-g)/9e4)+"s delta between PTS and DTS, align them"),h=g)):g=h),_=v[8];var U=_+9;if(D.size<=U)return null;D.size-=U;for(var F=new Uint8Array(D.size),P=0,H=x.length;PN){U-=N;continue}else v=v.subarray(U),N-=U,U=0;F.set(v,C),C+=N}return n&&(n-=_+3),{data:F,pts:h,dts:g,len:n}}return null}function l(D,C){if(D.units.length&&D.frame){if(D.pts===void 0){var v=C.samples,n=v.length;if(n){var _=v[n-1];D.pts=_.pts,D.dts=_.dts}else{C.dropped++;return}}C.samples.push(D)}D.debug.length&&u.logger.log(D.pts+"/"+D.dts+":"+D.debug)}function s(D,C){var v=D.length;if(v>0){if(C.pts>=D[v-1].pts)D.push(C);else for(var n=v-1;n>=0;n--)if(C.ptsh)return x;return 0}},{key:"maxAutoLevel",get:function(){var _=this.levels,h=this.autoLevelCapping,g;return h===-1&&_&&_.length?g=_.length-1:g=h,g}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(_){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,_)}},{key:"audioTracks",get:function(){var _=this.audioTrackController;return _?_.audioTracks:[]}},{key:"audioTrack",get:function(){var _=this.audioTrackController;return _?_.audioTrack:-1},set:function(_){var h=this.audioTrackController;h&&(h.audioTrack=_)}},{key:"subtitleTracks",get:function(){var _=this.subtitleTrackController;return _?_.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var _=this.subtitleTrackController;return _?_.subtitleTrack:-1},set:function(_){var h=this.subtitleTrackController;h&&(h.subtitleTrack=_)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var _=this.subtitleTrackController;return _?_.subtitleDisplay:!1},set:function(_){var h=this.subtitleTrackController;h&&(h.subtitleDisplay=_)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(_){this.config.lowLatencyMode=_}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return t.Events}},{key:"ErrorTypes",get:function(){return l.ErrorTypes}},{key:"ErrorDetails",get:function(){return l.ErrorDetails}},{key:"DefaultConfig",get:function(){return C.defaultConfig?C.defaultConfig:c.hlsDefaultConfig},set:function(_){C.defaultConfig=_}}]),C}();D.defaultConfig=void 0},"./src/is-supported.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"isSupported",function(){return R}),k.d(W,"changeTypeSupported",function(){return M});var B=k("./src/utils/mediasource-helper.ts");function O(){return self.SourceBuffer||self.WebKitSourceBuffer}function R(){var p=Object(B.getMediaSource)();if(!p)return!1;var a=O(),b=p&&typeof p.isTypeSupported=="function"&&p.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),u=!a||a.prototype&&typeof a.prototype.appendBuffer=="function"&&typeof a.prototype.remove=="function";return!!b&&!!u}function M(){var p,a=O();return typeof(a==null||((p=a.prototype)===null||p===void 0)?void 0:p.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return o}),k.d(W,"LoadError",function(){return f});var B=k("./src/polyfills/number.ts"),O=k("./src/errors.ts");function R(i,t){i.prototype=Object.create(t.prototype),i.prototype.constructor=i,u(i,t)}function M(i){var t=typeof Map=="function"?new Map:void 0;return M=function(s){if(s===null||!b(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(s))return t.get(s);t.set(s,w)}function w(){return p(s,arguments,d(this).constructor)}return w.prototype=Object.create(s.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),u(w,s)},M(i)}function p(i,t,l){return a()?p=Reflect.construct:p=function(w,D,C){var v=[null];v.push.apply(v,D);var n=Function.bind.apply(w,v),_=new n;return C&&u(_,C.prototype),_},p.apply(null,arguments)}function a(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function b(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function u(i,t){return u=Object.setPrototypeOf||function(s,w){return s.__proto__=w,s},u(i,t)}function d(i){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},d(i)}var m=Math.pow(2,17),o=function(){function i(l){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=l}var t=i.prototype;return t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t.abort=function(){this.loader&&this.loader.abort()},t.load=function(s,w){var D=this,C=s.url;if(!C)return Promise.reject(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:s,networkDetails:null},"Fragment does not have a "+(C?"part list":"url")));this.abort();var v=this.config,n=v.fLoader,_=v.loader;return new Promise(function(h,g){D.loader&&D.loader.destroy();var x=D.loader=s.loader=n?new n(v):new _(v),T=c(s),S={timeout:v.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:v.fragLoadingMaxRetryTimeout,highWaterMark:m};s.stats=x.stats,x.load(T,S,{onSuccess:function(U,F,P,H){D.resetLoader(s,x),h({frag:s,part:null,payload:U.data,networkDetails:H})},onError:function(U,F,P){D.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:s,response:U,networkDetails:P}))},onAbort:function(U,F,P){D.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:s,networkDetails:P}))},onTimeout:function(U,F,P){D.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:s,networkDetails:P}))},onProgress:function(U,F,P,H){w&&w({frag:s,part:null,payload:P,networkDetails:H})}})})},t.loadPart=function(s,w,D){var C=this;this.abort();var v=this.config,n=v.fLoader,_=v.loader;return new Promise(function(h,g){C.loader&&C.loader.destroy();var x=C.loader=s.loader=n?new n(v):new _(v),T=c(s,w),S={timeout:v.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:v.fragLoadingMaxRetryTimeout,highWaterMark:m};w.stats=x.stats,x.load(T,S,{onSuccess:function(U,F,P,H){C.resetLoader(s,x),C.updateStatsFromPart(s,w);var N={frag:s,part:w,payload:U.data,networkDetails:H};D(N),h(N)},onError:function(U,F,P){C.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:s,part:w,response:U,networkDetails:P}))},onAbort:function(U,F,P){s.stats.aborted=w.stats.aborted,C.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:s,part:w,networkDetails:P}))},onTimeout:function(U,F,P){C.resetLoader(s,x),g(new f({type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:s,part:w,networkDetails:P}))}})})},t.updateStatsFromPart=function(s,w){var D=s.stats,C=w.stats,v=C.total;if(D.loaded+=C.loaded,v){var n=Math.round(s.duration/w.duration),_=Math.min(Math.round(D.loaded/v),n),h=n-_,g=h*Math.round(D.loaded/_);D.total=D.loaded+g}else D.total=Math.max(D.loaded,D.total);var x=D.loading,T=C.loading;x.start?x.first+=T.first-T.start:(x.start=T.start,x.first=T.first),x.end=T.end},t.resetLoader=function(s,w){s.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},i}();function c(i,t){t===void 0&&(t=null);var l=t||i,s={frag:i,part:t,responseType:"arraybuffer",url:l.url,headers:{},rangeStart:0,rangeEnd:0},w=l.byteRangeStartOffset,D=l.byteRangeEndOffset;return Object(B.isFiniteNumber)(w)&&Object(B.isFiniteNumber)(D)&&(s.rangeStart=w,s.rangeEnd=D),s}var f=function(i){R(t,i);function t(l){for(var s,w=arguments.length,D=new Array(w>1?w-1:0),C=1;C>8*(15-v)&255;return C},s.setDecryptDataFromLevelKey=function(D,C){var v=D;return(D==null?void 0:D.method)==="AES-128"&&D.uri&&!D.iv&&(v=p.LevelKey.fromURI(D.uri),v.method=D.method,v.iv=this.createInitializationVector(C),v.keyFormat="identity"),v},s.setElementaryStreamInfo=function(D,C,v,n,_,h){h===void 0&&(h=!1);var g=this.elementaryStreams,x=g[D];if(!x){g[D]={startPTS:C,endPTS:v,startDTS:n,endDTS:_,partial:h};return}x.startPTS=Math.min(x.startPTS,C),x.endPTS=Math.max(x.endPTS,v),x.startDTS=Math.min(x.startDTS,n),x.endDTS=Math.max(x.endDTS,_)},s.clearElementaryStreamInfo=function(){var D=this.elementaryStreams;D[o.AUDIO]=null,D[o.VIDEO]=null,D[o.AUDIOVIDEO]=null},m(l,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var D=this.sn;typeof D!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&M.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),D=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,D)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(B.isFiniteNumber)(this.programDateTime))return null;var D=Object(B.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+D*1e3}},{key:"encrypted",get:function(){var D;return!!((D=this.decryptdata)!==null&&D!==void 0&&D.keyFormat&&this.decryptdata.uri)}}]),l}(c),i=function(t){b(l,t);function l(s,w,D,C,v){var n;n=t.call(this,D)||this,n.fragOffset=0,n.duration=0,n.gap=!1,n.independent=!1,n.relurl=void 0,n.fragment=void 0,n.index=void 0,n.stats=new a.LoadStats,n.duration=s.decimalFloatingPoint("DURATION"),n.gap=s.bool("GAP"),n.independent=s.bool("INDEPENDENT"),n.relurl=s.enumeratedString("URI"),n.fragment=w,n.index=C;var _=s.enumeratedString("BYTERANGE");return _&&n.setByteRange(_,v),v&&(n.fragOffset=v.fragOffset+v.duration),n}return m(l,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var w=this.elementaryStreams;return!!(w.audio||w.video||w.audiovideo)}}]),l}(c)},"./src/loader/key-loader.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return M});var B=k("./src/events.ts"),O=k("./src/errors.ts"),R=k("./src/utils/logger.ts"),M=function(){function p(b){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=b,this._registerListeners()}var a=p.prototype;return a._registerListeners=function(){this.hls.on(B.Events.KEY_LOADING,this.onKeyLoading,this)},a._unregisterListeners=function(){this.hls.off(B.Events.KEY_LOADING,this.onKeyLoading)},a.destroy=function(){this._unregisterListeners();for(var u in this.loaders){var d=this.loaders[u];d&&d.destroy()}this.loaders={}},a.onKeyLoading=function(u,d){var m=d.frag,o=m.type,c=this.loaders[o];if(!m.decryptdata){R.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=m.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var i=this.hls.config;if(c&&(R.logger.warn("abort previous key loader for type:"+o),c.abort()),!f){R.logger.warn("key uri is falsy");return}var t=i.loader,l=m.loader=this.loaders[o]=new t(i);this.decrypturl=f,this.decryptkey=null;var s={url:f,frag:m,responseType:"arraybuffer"},w={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:i.fragLoadingRetryDelay,maxRetryDelay:i.fragLoadingMaxRetryTimeout,highWaterMark:0},D={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};l.load(s,w,D)}else this.decryptkey&&(m.decryptdata.key=this.decryptkey,this.hls.trigger(B.Events.KEY_LOADED,{frag:m}))},a.loadsuccess=function(u,d,m){var o=m.frag;if(!o.decryptdata){R.logger.error("after key load, decryptdata unset");return}this.decryptkey=o.decryptdata.key=new Uint8Array(u.data),o.loader=null,delete this.loaders[o.type],this.hls.trigger(B.Events.KEY_LOADED,{frag:o})},a.loaderror=function(u,d){var m=d.frag,o=m.loader;o&&o.abort(),delete this.loaders[m.type],this.hls.trigger(B.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:m,response:u})},a.loadtimeout=function(u,d){var m=d.frag,o=m.loader;o&&o.abort(),delete this.loaders[m.type],this.hls.trigger(B.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:m})},p}()},"./src/loader/level-details.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"LevelDetails",function(){return p});var B=k("./src/polyfills/number.ts");function O(a,b){for(var u=0;ud.endSN||m>0||m===0&&o>0,this.updated||this.advanced?this.misses=Math.floor(d.misses*.6):this.misses=d.misses+1,this.availabilityDelay=d.availabilityDelay},R(a,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(B.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||M}},{key:"drift",get:function(){var d=this.driftEndTime-this.driftStartTime;if(d>0){var m=this.driftEnd-this.driftStart;return m*1e3/d}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var d;return(d=this.partList)!==null&&d!==void 0&&d.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var d;return(d=this.fragments)!==null&&d!==void 0&&d.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var d;return(d=this.partList)!==null&&d!==void 0&&d.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var d;return(d=this.partList)!==null&&d!==void 0&&d.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),a}()},"./src/loader/level-key.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"LevelKey",function(){return p});var B=k("./node_modules/url-toolkit/src/url-toolkit.js"),O=k.n(B);function R(a,b){for(var u=0;u2){var g=h.shift()+".";return g+=parseInt(h.shift()).toString(16),g+=("000"+parseInt(h.shift()).toString(16)).substr(-4),g}return _},v.resolve=function(_,h){return O.buildAbsoluteURL(h,_,{alwaysNormalize:!0})},v.parseMasterPlaylist=function(_,h){var g=[],x={},T=!1;m.lastIndex=0;for(var S;(S=m.exec(_))!=null;)if(S[1]){var E=new b.AttrList(S[1]),U={attrs:E,bitrate:E.decimalInteger("AVERAGE-BANDWIDTH")||E.decimalInteger("BANDWIDTH"),name:E.NAME,url:v.resolve(S[2],h)},F=E.decimalResolution("RESOLUTION");F&&(U.width=F.width,U.height=F.height),s((E.CODECS||"").split(/[ ,]+/).filter(function(H){return H}),U),U.videoCodec&&U.videoCodec.indexOf("avc1")!==-1&&(U.videoCodec=v.convertAVC1ToAVCOTI(U.videoCodec)),g.push(U)}else if(S[3]){var P=new b.AttrList(S[3]);P["DATA-ID"]&&(T=!0,x[P["DATA-ID"]]=P)}return{levels:g,sessionData:T?x:null}},v.parseMasterPlaylistMedia=function(_,h,g,x){x===void 0&&(x=[]);var T,S=[],E=0;for(o.lastIndex=0;(T=o.exec(_))!==null;){var U=new b.AttrList(T[1]);if(U.TYPE===g){var F={attrs:U,bitrate:0,id:E++,groupId:U["GROUP-ID"],instreamId:U["INSTREAM-ID"],name:U.NAME||U.LANGUAGE||"",type:g,default:U.bool("DEFAULT"),autoselect:U.bool("AUTOSELECT"),forced:U.bool("FORCED"),lang:U.LANGUAGE,url:U.URI?v.resolve(U.URI,h):""};if(x.length){var P=v.findGroup(x,F.groupId)||x[0];w(F,P,"audioCodec"),w(F,P,"textCodec")}S.push(F)}}return S},v.parseLevelPlaylist=function(_,h,g,x,T){var S=new p.LevelDetails(h),E=S.fragments,U=null,F=0,P=0,H=0,N=0,A=null,G=new M.Fragment(x,h),K,$,ie,le=-1,de=!1;for(c.lastIndex=0,S.m3u8=_;(K=c.exec(_))!==null;){de&&(de=!1,G=new M.Fragment(x,h),G.start=H,G.sn=F,G.cc=N,G.level=g,U&&(G.initSegment=U,G.rawProgramDateTime=U.rawProgramDateTime));var Se=K[1];if(Se){G.duration=parseFloat(Se);var He=(" "+K[2]).slice(1);G.title=He||null,G.tagList.push(He?["INF",Se,He]:["INF",Se])}else if(K[3])Object(B.isFiniteNumber)(G.duration)&&(G.start=H,ie&&(G.levelkey=ie),G.sn=F,G.level=g,G.cc=N,G.urlId=T,E.push(G),G.relurl=(" "+K[3]).slice(1),C(G,A),A=G,H+=G.duration,F++,P=0,de=!0);else if(K[4]){var et=(" "+K[4]).slice(1);A?G.setByteRange(et,A):G.setByteRange(et)}else if(K[5])G.rawProgramDateTime=(" "+K[5]).slice(1),G.tagList.push(["PROGRAM-DATE-TIME",G.rawProgramDateTime]),le===-1&&(le=E.length);else{if(K=K[0].match(f),!K){u.logger.warn("No matches on slow regex match for level playlist!");continue}for($=1;$-1){u.logger.warn("Keyformat "+gt+" is not supported from the manifest");continue}else if(gt!=="identity")continue;Qe&&(ie=a.LevelKey.fromURL(h,pe),pe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Qe)>=0&&(ie.method=Qe,ie.keyFormat=gt,Ye&&(ie.keyID=Ye),Le&&(ie.keyFormatVersions=Le),ie.iv=xe));break}case"START":{var tn=new b.AttrList(me),Zt=tn.decimalFloatingPoint("TIME-OFFSET");Object(B.isFiniteNumber)(Zt)&&(S.startTimeOffset=Zt);break}case"MAP":{var Hn=new b.AttrList(me);G.relurl=Hn.URI,Hn.BYTERANGE&&G.setByteRange(Hn.BYTERANGE),G.level=g,G.sn="initSegment",ie&&(G.levelkey=ie),G.initSegment=null,U=G,de=!0;break}case"SERVER-CONTROL":{var ia=new b.AttrList(me);S.canBlockReload=ia.bool("CAN-BLOCK-RELOAD"),S.canSkipUntil=ia.optionalFloat("CAN-SKIP-UNTIL",0),S.canSkipDateRanges=S.canSkipUntil>0&&ia.bool("CAN-SKIP-DATERANGES"),S.partHoldBack=ia.optionalFloat("PART-HOLD-BACK",0),S.holdBack=ia.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var vt=new b.AttrList(me);S.partTarget=vt.decimalFloatingPoint("PART-TARGET");break}case"PART":{var mt=S.partList;mt||(mt=S.partList=[]);var on=P>0?mt[mt.length-1]:void 0,hn=P++,Ot=new M.Part(new b.AttrList(me),G,h,hn,on);mt.push(Ot),G.duration+=Ot.duration;break}case"PRELOAD-HINT":{var Xt=new b.AttrList(me);S.preloadHint=Xt;break}case"RENDITION-REPORT":{var ht=new b.AttrList(me);S.renditionReports=S.renditionReports||[],S.renditionReports.push(ht);break}default:u.logger.warn("line parsed but not handled: "+K);break}}}A&&!A.relurl?(E.pop(),H-=A.duration,S.partList&&(S.fragmentHint=A)):S.partList&&(C(G,A),G.cc=N,S.fragmentHint=G);var Je=E.length,rt=E[0],Te=E[Je-1];if(H+=S.skippedSegments*S.targetduration,H>0&&Je&&Te){S.averagetargetduration=H/Je;var Me=Te.sn;S.endSN=Me!=="initSegment"?Me:0,rt&&(S.startCC=rt.cc,rt.initSegment||S.fragments.every(function(Ie){return Ie.relurl&&t(Ie.relurl)})&&(u.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),G=new M.Fragment(x,h),G.relurl=Te.relurl,G.level=g,G.sn="initSegment",rt.initSegment=G,S.needSidxRanges=!0))}else S.endSN=0,S.startCC=0;return S.fragmentHint&&(H+=S.fragmentHint.duration),S.totalduration=H,S.endCC=N,le>0&&D(E,le),S},v}();function s(v,n){["video","audio","text"].forEach(function(_){var h=v.filter(function(x){return Object(d.isCodecType)(x,_)});if(h.length){var g=h.filter(function(x){return x.lastIndexOf("avc1",0)===0||x.lastIndexOf("mp4a",0)===0});n[_+"Codec"]=g.length>0?g[0]:h[0],v=v.filter(function(x){return h.indexOf(x)===-1})}}),n.unknownCodecs=v}function w(v,n,_){var h=n[_];h&&(v[_]=h)}function D(v,n){for(var _=v[n],h=n;h--;){var g=v[h];if(!g)return;g.programDateTime=_.programDateTime-g.duration*1e3,_=g}}function C(v,n){v.rawProgramDateTime?v.programDateTime=Date.parse(v.rawProgramDateTime):n!=null&&n.programDateTime&&(v.programDateTime=n.endProgramDateTime),Object(B.isFiniteNumber)(v.programDateTime)||(v.programDateTime=null,v.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Q,W,k){"use strict";k.r(W);var B=k("./src/polyfills/number.ts"),O=k("./src/events.ts"),R=k("./src/errors.ts"),M=k("./src/utils/logger.ts"),p=k("./src/utils/mp4-tools.ts"),a=k("./src/loader/m3u8-parser.ts"),b=k("./src/types/loader.ts"),u=k("./src/utils/attr-list.ts");function d(c){var f=c.type;switch(f){case b.PlaylistContextType.AUDIO_TRACK:return b.PlaylistLevelType.AUDIO;case b.PlaylistContextType.SUBTITLE_TRACK:return b.PlaylistLevelType.SUBTITLE;default:return b.PlaylistLevelType.MAIN}}function m(c,f){var i=c.url;return(i===void 0||i.indexOf("data:")===0)&&(i=f.url),i}var o=function(){function c(i){this.hls=void 0,this.loaders=Object.create(null),this.hls=i,this.registerListeners()}var f=c.prototype;return f.registerListeners=function(){var t=this.hls;t.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.on(O.Events.LEVEL_LOADING,this.onLevelLoading,this),t.on(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var t=this.hls;t.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(O.Events.LEVEL_LOADING,this.onLevelLoading,this),t.off(O.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(O.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(t){var l=this.hls.config,s=l.pLoader,w=l.loader,D=s||w,C=new D(l);return t.loader=C,this.loaders[t.type]=C,C},f.getInternalLoader=function(t){return this.loaders[t.type]},f.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},f.destroyInternalLoaders=function(){for(var t in this.loaders){var l=this.loaders[t];l&&l.destroy(),this.resetInternalLoader(t)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(t,l){var s=l.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:b.PlaylistContextType.MANIFEST,url:s,deliveryDirectives:null})},f.onLevelLoading=function(t,l){var s=l.id,w=l.level,D=l.url,C=l.deliveryDirectives;this.load({id:s,groupId:null,level:w,responseType:"text",type:b.PlaylistContextType.LEVEL,url:D,deliveryDirectives:C})},f.onAudioTrackLoading=function(t,l){var s=l.id,w=l.groupId,D=l.url,C=l.deliveryDirectives;this.load({id:s,groupId:w,level:null,responseType:"text",type:b.PlaylistContextType.AUDIO_TRACK,url:D,deliveryDirectives:C})},f.onSubtitleTrackLoading=function(t,l){var s=l.id,w=l.groupId,D=l.url,C=l.deliveryDirectives;this.load({id:s,groupId:w,level:null,responseType:"text",type:b.PlaylistContextType.SUBTITLE_TRACK,url:D,deliveryDirectives:C})},f.load=function(t){var l,s=this.hls.config,w=this.getInternalLoader(t);if(w){var D=w.context;if(D&&D.url===t.url){M.logger.trace("[playlist-loader]: playlist request ongoing");return}M.logger.log("[playlist-loader]: aborting previous loader for type: "+t.type),w.abort()}var C,v,n,_;switch(t.type){case b.PlaylistContextType.MANIFEST:C=s.manifestLoadingMaxRetry,v=s.manifestLoadingTimeOut,n=s.manifestLoadingRetryDelay,_=s.manifestLoadingMaxRetryTimeout;break;case b.PlaylistContextType.LEVEL:case b.PlaylistContextType.AUDIO_TRACK:case b.PlaylistContextType.SUBTITLE_TRACK:C=0,v=s.levelLoadingTimeOut;break;default:C=s.levelLoadingMaxRetry,v=s.levelLoadingTimeOut,n=s.levelLoadingRetryDelay,_=s.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(t),(l=t.deliveryDirectives)!==null&&l!==void 0&&l.part){var h;if(t.type===b.PlaylistContextType.LEVEL&&t.level!==null?h=this.hls.levels[t.level].details:t.type===b.PlaylistContextType.AUDIO_TRACK&&t.id!==null?h=this.hls.audioTracks[t.id].details:t.type===b.PlaylistContextType.SUBTITLE_TRACK&&t.id!==null&&(h=this.hls.subtitleTracks[t.id].details),h){var g=h.partTarget,x=h.targetduration;g&&x&&(v=Math.min(Math.max(g*3,x*.8)*1e3,v))}}var T={timeout:v,maxRetry:C,retryDelay:n,maxRetryDelay:_,highWaterMark:0},S={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(t,T,S)},f.loadsuccess=function(t,l,s,w){if(w===void 0&&(w=null),s.isSidxRequest){this.handleSidxRequest(t,s),this.handlePlaylistLoaded(t,l,s,w);return}this.resetInternalLoader(s.type);var D=t.data;if(D.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(t,s,"no EXTM3U delimiter",w);return}l.parsing.start=performance.now(),D.indexOf("#EXTINF:")>0||D.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(t,l,s,w):this.handleMasterPlaylist(t,l,s,w)},f.loaderror=function(t,l,s){s===void 0&&(s=null),this.handleNetworkError(l,s,!1,t)},f.loadtimeout=function(t,l,s){s===void 0&&(s=null),this.handleNetworkError(l,s,!0)},f.handleMasterPlaylist=function(t,l,s,w){var D=this.hls,C=t.data,v=m(t,s),n=a.default.parseMasterPlaylist(C,v),_=n.levels,h=n.sessionData;if(!_.length){this.handleManifestParsingError(t,s,"no level found in manifest",w);return}var g=_.map(function(F){return{id:F.attrs.AUDIO,audioCodec:F.audioCodec}}),x=_.map(function(F){return{id:F.attrs.SUBTITLES,textCodec:F.textCodec}}),T=a.default.parseMasterPlaylistMedia(C,v,"AUDIO",g),S=a.default.parseMasterPlaylistMedia(C,v,"SUBTITLES",x),E=a.default.parseMasterPlaylistMedia(C,v,"CLOSED-CAPTIONS");if(T.length){var U=T.some(function(F){return!F.url});!U&&_[0].audioCodec&&!_[0].attrs.AUDIO&&(M.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),T.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new u.AttrList({}),bitrate:0,url:""}))}D.trigger(O.Events.MANIFEST_LOADED,{levels:_,audioTracks:T,subtitles:S,captions:E,url:v,stats:l,networkDetails:w,sessionData:h})},f.handleTrackOrLevelPlaylist=function(t,l,s,w){var D=this.hls,C=s.id,v=s.level,n=s.type,_=m(t,s),h=Object(B.isFiniteNumber)(C)?C:0,g=Object(B.isFiniteNumber)(v)?v:h,x=d(s),T=a.default.parseLevelPlaylist(t.data,_,g,x,h);if(!T.fragments.length){D.trigger(O.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:_,reason:"no fragments found in level",level:typeof s.level=="number"?s.level:void 0});return}if(n===b.PlaylistContextType.MANIFEST){var S={attrs:new u.AttrList({}),bitrate:0,details:T,name:"",url:_};D.trigger(O.Events.MANIFEST_LOADED,{levels:[S],audioTracks:[],url:_,stats:l,networkDetails:w,sessionData:null})}if(l.parsing.end=performance.now(),T.needSidxRanges){var E,U=(E=T.fragments[0].initSegment)===null||E===void 0?void 0:E.url;this.load({url:U,isSidxRequest:!0,type:n,level:v,levelDetails:T,id:C,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}s.levelDetails=T,this.handlePlaylistLoaded(t,l,s,w)},f.handleSidxRequest=function(t,l){var s=Object(p.parseSegmentIndex)(new Uint8Array(t.data));if(!s)return;var w=s.references,D=l.levelDetails;w.forEach(function(C,v){var n=C.info,_=D.fragments[v];_.byteRange.length===0&&_.setByteRange(String(1+n.end-n.start)+"@"+String(n.start)),_.initSegment&&_.initSegment.setByteRange(String(s.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(t,l,s,w){this.hls.trigger(O.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:l.type===b.PlaylistContextType.MANIFEST,url:t.url,reason:s,response:t,context:l,networkDetails:w})},f.handleNetworkError=function(t,l,s,w){s===void 0&&(s=!1),M.logger.warn("[playlist-loader]: A network "+(s?"timeout":"error")+" occurred while loading "+t.type+" level: "+t.level+" id: "+t.id+' group-id: "'+t.groupId+'"');var D=R.ErrorDetails.UNKNOWN,C=!1,v=this.getInternalLoader(t);switch(t.type){case b.PlaylistContextType.MANIFEST:D=s?R.ErrorDetails.MANIFEST_LOAD_TIMEOUT:R.ErrorDetails.MANIFEST_LOAD_ERROR,C=!0;break;case b.PlaylistContextType.LEVEL:D=s?R.ErrorDetails.LEVEL_LOAD_TIMEOUT:R.ErrorDetails.LEVEL_LOAD_ERROR,C=!1;break;case b.PlaylistContextType.AUDIO_TRACK:D=s?R.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:R.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,C=!1;break;case b.PlaylistContextType.SUBTITLE_TRACK:D=s?R.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:R.ErrorDetails.SUBTITLE_LOAD_ERROR,C=!1;break}v&&this.resetInternalLoader(t.type);var n={type:R.ErrorTypes.NETWORK_ERROR,details:D,fatal:C,url:t.url,loader:v,context:t,networkDetails:l};w&&(n.response=w),this.hls.trigger(O.Events.ERROR,n)},f.handlePlaylistLoaded=function(t,l,s,w){var D=s.type,C=s.level,v=s.id,n=s.groupId,_=s.loader,h=s.levelDetails,g=s.deliveryDirectives;if(!(h!=null&&h.targetduration)){this.handleManifestParsingError(t,s,"invalid target duration",w);return}if(!_)return;h.live&&(_.getCacheAge&&(h.ageHeader=_.getCacheAge()||0),(!_.getCacheAge||isNaN(h.ageHeader))&&(h.ageHeader=0));switch(D){case b.PlaylistContextType.MANIFEST:case b.PlaylistContextType.LEVEL:this.hls.trigger(O.Events.LEVEL_LOADED,{details:h,level:C||0,id:v||0,stats:l,networkDetails:w,deliveryDirectives:g});break;case b.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(O.Events.AUDIO_TRACK_LOADED,{details:h,id:v||0,groupId:n||"",stats:l,networkDetails:w,deliveryDirectives:g});break;case b.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(O.Events.SUBTITLE_TRACK_LOADED,{details:h,id:v||0,groupId:n||"",stats:l,networkDetails:w,deliveryDirectives:g});break}},c}();W.default=o},"./src/polyfills/number.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"isFiniteNumber",function(){return B}),k.d(W,"MAX_SAFE_INTEGER",function(){return O});var B=Number.isFinite||function(R){return typeof R=="number"&&isFinite(R)},O=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Q,W,k){"use strict";k.r(W);var B=function(){function O(){}return O.getSilentFrame=function(M,p){switch(M){case"mp4a.40.2":if(p===1)return new Uint8Array([0,200,0,128,35,128]);if(p===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(p===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(p===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(p===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(p===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(p===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(p===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(p===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},O}();W.default=B},"./src/remux/mp4-generator.ts":function(Q,W,k){"use strict";k.r(W);var B=Math.pow(2,32)-1,O=function(){function R(){}return R.init=function(){R.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var p;for(p in R.types)R.types.hasOwnProperty(p)&&(R.types[p]=[p.charCodeAt(0),p.charCodeAt(1),p.charCodeAt(2),p.charCodeAt(3)]);var a=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),b=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);R.HDLR_TYPES={video:a,audio:b};var u=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),d=new Uint8Array([0,0,0,0,0,0,0,0]);R.STTS=R.STSC=R.STCO=d,R.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),R.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),R.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var m=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);R.FTYP=R.box(R.types.ftyp,m,c,m,o),R.DINF=R.box(R.types.dinf,R.box(R.types.dref,u))},R.box=function(p){for(var a=8,b=arguments.length,u=new Array(b>1?b-1:0),d=1;d>24&255,c[1]=a>>16&255,c[2]=a>>8&255,c[3]=a&255,c.set(p,4),m=0,a=8;m>24&255,p>>16&255,p>>8&255,p&255,b>>24,b>>16&255,b>>8&255,b&255,u>>24,u>>16&255,u>>8&255,u&255,85,196,0,0]))},R.mdia=function(p){return R.box(R.types.mdia,R.mdhd(p.timescale,p.duration),R.hdlr(p.type),R.minf(p))},R.mfhd=function(p){return R.box(R.types.mfhd,new Uint8Array([0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255]))},R.minf=function(p){return p.type==="audio"?R.box(R.types.minf,R.box(R.types.smhd,R.SMHD),R.DINF,R.stbl(p)):R.box(R.types.minf,R.box(R.types.vmhd,R.VMHD),R.DINF,R.stbl(p))},R.moof=function(p,a,b){return R.box(R.types.moof,R.mfhd(p),R.traf(b,a))},R.moov=function(p){for(var a=p.length,b=[];a--;)b[a]=R.trak(p[a]);return R.box.apply(null,[R.types.moov,R.mvhd(p[0].timescale,p[0].duration)].concat(b).concat(R.mvex(p)))},R.mvex=function(p){for(var a=p.length,b=[];a--;)b[a]=R.trex(p[a]);return R.box.apply(null,[R.types.mvex].concat(b))},R.mvhd=function(p,a){a*=p;var b=Math.floor(a/(B+1)),u=Math.floor(a%(B+1)),d=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,p>>24&255,p>>16&255,p>>8&255,p&255,b>>24,b>>16&255,b>>8&255,b&255,u>>24,u>>16&255,u>>8&255,u&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return R.box(R.types.mvhd,d)},R.sdtp=function(p){var a=p.samples||[],b=new Uint8Array(4+a.length),u,d;for(u=0;u>>8&255),a.push(m&255),a=a.concat(Array.prototype.slice.call(d));for(u=0;u>>8&255),b.push(m&255),b=b.concat(Array.prototype.slice.call(d));var o=R.box(R.types.avcC,new Uint8Array([1,a[3],a[4],a[5],252|3,224|p.sps.length].concat(a).concat([p.pps.length]).concat(b))),c=p.width,f=p.height,i=p.pixelRatio[0],t=p.pixelRatio[1];return R.box(R.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c>>8&255,c&255,f>>8&255,f&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,R.box(R.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),R.box(R.types.pasp,new Uint8Array([i>>24,i>>16&255,i>>8&255,i&255,t>>24,t>>16&255,t>>8&255,t&255])))},R.esds=function(p){var a=p.config.length;return new Uint8Array([0,0,0,0,3,23+a,0,1,0,4,15+a,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([a]).concat(p.config).concat([6,1,2]))},R.mp4a=function(p){var a=p.samplerate;return R.box(R.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,p.channelCount,0,16,0,0,0,0,a>>8&255,a&255,0,0]),R.box(R.types.esds,R.esds(p)))},R.mp3=function(p){var a=p.samplerate;return R.box(R.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,p.channelCount,0,16,0,0,0,0,a>>8&255,a&255,0,0]))},R.stsd=function(p){return p.type==="audio"?!p.isAAC&&p.codec==="mp3"?R.box(R.types.stsd,R.STSD,R.mp3(p)):R.box(R.types.stsd,R.STSD,R.mp4a(p)):R.box(R.types.stsd,R.STSD,R.avc1(p))},R.tkhd=function(p){var a=p.id,b=p.duration*p.timescale,u=p.width,d=p.height,m=Math.floor(b/(B+1)),o=Math.floor(b%(B+1));return R.box(R.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,a>>24&255,a>>16&255,a>>8&255,a&255,0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255,o>>24,o>>16&255,o>>8&255,o&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,u>>8&255,u&255,0,0,d>>8&255,d&255,0,0]))},R.traf=function(p,a){var b=R.sdtp(p),u=p.id,d=Math.floor(a/(B+1)),m=Math.floor(a%(B+1));return R.box(R.types.traf,R.box(R.types.tfhd,new Uint8Array([0,0,0,0,u>>24,u>>16&255,u>>8&255,u&255])),R.box(R.types.tfdt,new Uint8Array([1,0,0,0,d>>24,d>>16&255,d>>8&255,d&255,m>>24,m>>16&255,m>>8&255,m&255])),R.trun(p,b.length+16+20+8+16+8+8),b)},R.trak=function(p){return p.duration=p.duration||4294967295,R.box(R.types.trak,R.tkhd(p),R.mdia(p))},R.trex=function(p){var a=p.id;return R.box(R.types.trex,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},R.trun=function(p,a){var b=p.samples||[],u=b.length,d=12+16*u,m=new Uint8Array(d),o,c,f,i,t,l;for(a+=8+d,m.set([0,0,15,1,u>>>24&255,u>>>16&255,u>>>8&255,u&255,a>>>24&255,a>>>16&255,a>>>8&255,a&255],0),o=0;o>>24&255,f>>>16&255,f>>>8&255,f&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t.isLeading<<2|t.dependsOn,t.isDependedOn<<6|t.hasRedundancy<<4|t.paddingValue<<1|t.isNonSync,t.degradPrio&240<<8,t.degradPrio&15,l>>>24&255,l>>>16&255,l>>>8&255,l&255],12+16*o);return R.box(R.types.trun,m)},R.initSegment=function(p){R.types||R.init();var a=R.moov(p),b=new Uint8Array(R.FTYP.byteLength+a.byteLength);return b.set(R.FTYP),b.set(a,R.FTYP.byteLength),b},R}();O.types=void 0,O.HDLR_TYPES=void 0,O.STTS=void 0,O.STSC=void 0,O.STCO=void 0,O.STSZ=void 0,O.VMHD=void 0,O.SMHD=void 0,O.STSD=void 0,O.FTYP=void 0,O.DINF=void 0,W.default=O},"./src/remux/mp4-remuxer.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return l}),k.d(W,"normalizePts",function(){return s});var B=k("./src/polyfills/number.ts"),O=k("./src/remux/aac-helper.ts"),R=k("./src/remux/mp4-generator.ts"),M=k("./src/events.ts"),p=k("./src/errors.ts"),a=k("./src/utils/logger.ts"),b=k("./src/types/loader.ts"),u=k("./src/utils/timescale-conversion.ts");function d(){return d=Object.assign||function(v){for(var n=1;n0?T:S.pts},h[0].pts);return g&&a.logger.debug("PTS rollover detected"),x},n.remux=function(h,g,x,T,S,E,U,F){var P,H,N,A,G,K,$=S,ie=S,le=h.pid>-1,de=g.pid>-1,Se=g.samples.length,He=h.samples.length>0,et=Se>1,je=(!le||He)&&(!de||et)||this.ISGenerated||U;if(je){this.ISGenerated||(N=this.generateIS(h,g,S));var me=this.isVideoContiguous,fe=-1;if(et&&(fe=w(g.samples),!me&&this.config.forceKeyFrameOnDiscontinuity))if(K=!0,fe>0){a.logger.warn("[mp4-remuxer]: Dropped "+fe+" out of "+Se+" video samples due to a missing keyframe");var Ae=this.getVideoStartPts(g.samples);g.samples=g.samples.slice(fe),g.dropped+=fe,ie+=(g.samples[0].pts-Ae)/(g.timescale||9e4)}else fe===-1&&(a.logger.warn("[mp4-remuxer]: No keyframe found out of "+Se+" video samples"),K=!1);if(this.ISGenerated){if(He&&et){var he=this.getVideoStartPts(g.samples),Ue=s(h.samples[0].pts,he)-he,st=Ue/g.inputTimeScale;$+=Math.max(0,st),ie+=Math.max(0,-st)}if(He){if(h.samplerate||(a.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),N=this.generateIS(h,g,S)),H=this.remuxAudio(h,$,this.isAudioContiguous,E,de||et||F===b.PlaylistLevelType.AUDIO?ie:void 0),et){var Ve=H?H.endPTS-H.startPTS:0;g.inputTimeScale||(a.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),N=this.generateIS(h,g,S)),P=this.remuxVideo(g,ie,me,Ve)}}else et&&(P=this.remuxVideo(g,ie,me,0));P&&(P.firstKeyFrame=fe,P.independent=fe!==-1)}}return this.ISGenerated&&(x.samples.length&&(G=this.remuxID3(x,S)),T.samples.length&&(A=this.remuxText(T,S))),{audio:H,video:P,initSegment:N,independent:K,text:A,id3:G}},n.generateIS=function(h,g,x){var T=h.samples,S=g.samples,E=this.typeSupported,U={},F=!Object(B.isFiniteNumber)(this._initPTS),P="audio/mp4",H,N,A;if(F&&(H=N=Infinity),h.config&&T.length&&(h.timescale=h.samplerate,h.isAAC||(E.mpeg?(P="audio/mpeg",h.codec=""):E.mp3&&(h.codec="mp3")),U.audio={id:"audio",container:P,codec:h.codec,initSegment:!h.isAAC&&E.mpeg?new Uint8Array(0):R.default.initSegment([h]),metadata:{channelCount:h.channelCount}},F&&(A=h.inputTimeScale,H=N=T[0].pts-Math.round(A*x))),g.sps&&g.pps&&S.length&&(g.timescale=g.inputTimeScale,U.video={id:"main",container:"video/mp4",codec:g.codec,initSegment:R.default.initSegment([g]),metadata:{width:g.width,height:g.height}},F)){A=g.inputTimeScale;var G=this.getVideoStartPts(S),K=Math.round(A*x);N=Math.min(N,s(S[0].dts,G)-K),H=Math.min(H,G-K)}if(Object.keys(U).length)return this.ISGenerated=!0,F&&(this._initPTS=H,this._initDTS=N),{tracks:U,initPTS:H,timescale:A}},n.remuxVideo=function(h,g,x,T){var S=h.inputTimeScale,E=h.samples,U=[],F=E.length,P=this._initPTS,H=this.nextAvcDts,N=8,A,G,K,$=Number.POSITIVE_INFINITY,ie=Number.NEGATIVE_INFINITY,le=0,de=!1;if(!x||H===null){var Se=g*S,He=E[0].pts-s(E[0].dts,E[0].pts);H=Se-He}for(var et=0;etje.pts){var me=9e4*.2;le=Math.max(Math.min(le,je.pts-je.dts),-1*me)}je.dts0?et-1:et].dts&&(de=!0)}de&&E.sort(function(_n,Bt){var mn=_n.dts-Bt.dts,Gt=_n.pts-Bt.pts;return mn||Gt}),G=E[0].dts,K=E[E.length-1].dts;var fe=Math.round((K-G)/(F-1));if(le<0){if(lefe,dt=st<-1;if(Ve||dt){Ve?a.logger.warn("AVC: "+Object(u.toMsFromMpegTsClock)(st,!0)+" ms ("+st+"dts) hole between fragments detected, filling it"):a.logger.warn("AVC: "+Object(u.toMsFromMpegTsClock)(-st,!0)+" ms ("+st+"dts) overlapping between fragments detected"),G=H;var Qe=E[0].pts-st;E[0].dts=G,E[0].pts=Qe,a.logger.log("Video: First PTS/DTS adjusted: "+Object(u.toMsFromMpegTsClock)(Qe,!0)+"/"+Object(u.toMsFromMpegTsClock)(G,!0)+", delta: "+Object(u.toMsFromMpegTsClock)(st,!0)+" ms")}}t&&(G=Math.max(0,G));for(var pe=0,xe=0,Le=0;Le0?mt-1:mt].dts;if(Me.stretchShortVideoTrack&&this.nextAudioPts!==null){var be=Math.floor(Me.maxBufferHole*S),qe=(T?$+T*S:this.nextAudioPts)-on.pts;qe>be?(A=qe-Ie,A<0&&(A=Ie),a.logger.log("[mp4-remuxer]: It is approximately "+qe/90+" ms to the next segment; using duration "+A/90+" ms for the last video frame.")):A=Ie}else A=Ie}var Lt=Math.round(on.pts-on.dts);U.push(new D(on.key,A,Ot,Lt))}if(U.length&&f&&f<70){var nn=U[0].flags;nn.dependsOn=2,nn.isNonSync=0}console.assert(A!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=H=K+A,this.isVideoContiguous=!0;var $n=R.default.moof(h.sequenceNumber++,G,d({},h,{samples:U})),ta="video",Sa={data1:$n,data2:ia,startPTS:$/S,endPTS:(ie+A)/S,startDTS:G/S,endDTS:H/S,type:ta,hasAudio:!1,hasVideo:!0,nb:U.length,dropped:h.dropped};return h.samples=[],h.dropped=0,console.assert(ia.length,"MDAT length must not be zero"),Sa},n.remuxAudio=function(h,g,x,T,S){var E=h.inputTimeScale,U=h.samplerate?h.samplerate:E,F=E/U,P=h.isAAC?o:c,H=P*F,N=this._initPTS,A=!h.isAAC&&this.typeSupported.mpeg,G=[],K=h.samples,$=A?0:8,ie=this.nextAudioPts||-1,le=g*E;if(this.isAudioContiguous=x=x||K.length&&ie>0&&(T&&Math.abs(le-ie)<9e3||Math.abs(s(K[0].pts-N,le)-ie)<20*H),K.forEach(function(rt){rt.pts=s(rt.pts-N,le)}),!x||ie<0){if(K=K.filter(function(rt){return rt.pts>=0}),!K.length)return;S===0?ie=0:T?ie=Math.max(0,le):ie=K[0].pts}if(h.isAAC)for(var de=S!==void 0,Se=this.config.maxAudioFramesDrift,He=0,et=ie;He=Se*H&&Ae0){xe+=$;try{pe=new Uint8Array(xe)}catch(rt){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:p.ErrorTypes.MUX_ERROR,details:p.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:xe,reason:"fail allocating audio mdat "+xe});return}if(!A){var ia=new DataView(pe.buffer);ia.setUint32(0,xe),pe.set(R.default.types.mdat,4)}}else return;pe.set(tn,$);var vt=tn.byteLength;$+=vt,G.push(new D(!0,P,vt,0)),Qe=Zt}var mt=G.length;if(!mt)return;var on=G[G.length-1];this.nextAudioPts=ie=Qe+F*on.duration;var hn=A?new Uint8Array(0):R.default.moof(h.sequenceNumber++,dt/F,d({},h,{samples:G}));h.samples=[];var Ot=dt/E,Xt=ie/E,ht="audio",Je={data1:hn,data2:pe,startPTS:Ot,endPTS:Xt,startDTS:Ot,endDTS:Xt,type:ht,hasAudio:!0,hasVideo:!1,nb:mt};return this.isAudioContiguous=!0,console.assert(pe.length,"MDAT length must not be zero"),Je},n.remuxEmptyAudio=function(h,g,x,T){var S=h.inputTimeScale,E=h.samplerate?h.samplerate:S,U=S/E,F=this.nextAudioPts,P=(F!==null?F:T.startDTS*S)+this._initDTS,H=T.endDTS*S+this._initDTS,N=U*o,A=Math.ceil((H-P)/N),G=O.default.getSilentFrame(h.manifestCodec||h.codec,h.channelCount);if(a.logger.warn("[mp4-remuxer]: remux empty Audio"),!G){a.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var K=[],$=0;$4294967296;)v+=_;return v}function w(v){for(var n=0;n0?this.lastEndDTS=h:(M.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var g=!!v.audio,x=!!v.video,T="";g&&(T+="audio"),x&&(T+="video");var S={data1:D,startPTS:_,startDTS:_,endPTS:h,endDTS:h,type:T,hasAudio:g,hasVideo:x,nb:1,dropped:0};return w.audio=S.type==="audio"?S:void 0,w.video=S.type!=="audio"?S:void 0,w.text=i,w.id3=f,w.initSegment=C,w},u}(),a=function(d,m,o){return Object(O.getStartDTS)(d,m)-o};function b(u,d){var m=u==null?void 0:u.codec;return m&&m.length>4?m:m==="hvc1"?"hvc1.1.c.L120.90":m==="av01"?"av01.0.04M.08":m==="avc1"||d===R.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}W.default=p},"./src/task-loop.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"default",function(){return B});var B=function(){function O(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var R=O.prototype;return R.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},R.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},R.onHandlerDestroyed=function(){},R.hasInterval=function(){return!!this._tickInterval},R.hasNextTick=function(){return!!this._tickTimer},R.setInterval=function(p){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,p),!0)},R.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},R.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},R.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},R.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},R.doTick=function(){},O}()},"./src/types/cmcd.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"CMCDVersion",function(){return B}),k.d(W,"CMCDObjectType",function(){return O}),k.d(W,"CMCDStreamingFormat",function(){return R}),k.d(W,"CMCDStreamType",function(){return M});var B=1,O;(function(p){p.MANIFEST="m",p.AUDIO="a",p.VIDEO="v",p.MUXED="av",p.INIT="i",p.CAPTION="c",p.TIMED_TEXT="tt",p.KEY="k",p.OTHER="o"})(O||(O={}));var R;(function(p){p.DASH="d",p.HLS="h",p.SMOOTH="s",p.OTHER="o"})(R||(R={}));var M;(function(p){p.VOD="v",p.LIVE="l"})(M||(M={}))},"./src/types/level.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"HlsSkip",function(){return R}),k.d(W,"getSkipValue",function(){return M}),k.d(W,"HlsUrlParameters",function(){return p}),k.d(W,"Level",function(){return a});function B(b,u){for(var d=0;dNumber.MAX_SAFE_INTEGER?Infinity:u},p.hexadecimalInteger=function(b){if(this[b]){var u=(this[b]||"0x").slice(2);u=(u.length&1?"0":"")+u;for(var d=new Uint8Array(u.length/2),m=0;mNumber.MAX_SAFE_INTEGER?Infinity:u},p.decimalFloatingPoint=function(b){return parseFloat(this[b])},p.optionalFloat=function(b,u){var d=this[b];return d?parseFloat(d):u},p.enumeratedString=function(b){return this[b]},p.bool=function(b){return this[b]==="YES"},p.decimalResolution=function(b){var u=B.exec(this[b]);return u===null?void 0:{width:parseInt(u[1],10),height:parseInt(u[2],10)}},M.parseAttrList=function(b){var u,d={},m='"';for(O.lastIndex=0;(u=O.exec(b))!==null;){var o=u[2];o.indexOf(m)===0&&o.lastIndexOf(m)===o.length-1&&(o=o.slice(1,-1)),d[u[1]]=o}return d},M}()},"./src/utils/binary-search.ts":function(Q,W,k){"use strict";k.r(W);var B={search:function(R,M){for(var p=0,a=R.length-1,b=null,u=null;p<=a;){b=(p+a)/2|0,u=R[b];var d=M(u);if(d>0)p=b+1;else if(d<0)a=b-1;else return u}return null}};W.default=B},"./src/utils/buffer-helper.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"BufferHelper",function(){return R});var B=k("./src/utils/logger.ts"),O={length:0,start:function(){return 0},end:function(){return 0}},R=function(){function M(){}return M.isBuffered=function(a,b){try{if(a){for(var u=M.getBuffered(a),d=0;d=u.start(d)&&b<=u.end(d))return!0}}catch(m){}return!1},M.bufferInfo=function(a,b,u){try{if(a){var d=M.getBuffered(a),m=[],o;for(o=0;oc&&(d[o-1].end=a[m].end):d.push(a[m])}else d.push(a[m])}else d=a;for(var f=0,i,t=b,l=b,s=0;s=w&&b=x&&B.logger.log(this.time+" ["+x+"] "+T)},_}(),f=function(h){for(var g=[],x=0;xp&&(this.logger.log(o.DEBUG,"Too large cursor position "+this.pos),this.pos=p)},h.moveCursor=function(x){var T=this.pos+x;if(x>1)for(var S=this.pos+1;S=144&&this.backSpace();var T=R(x);if(this.pos>=p){this.logger.log(o.ERROR,"Cannot insert "+x.toString(16)+" ("+T+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(T,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(x){var T;for(T=x;T0&&(x?S="["+T.join(" | ")+"]":S=T.join(` `)),S},h.getTextAndFormat=function(){return this.rows},_}(),w=function(){function _(g,x,T){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=g,this.outputFilter=x,this.mode=null,this.verbose=0,this.displayedMemory=new s(T),this.nonDisplayedMemory=new s(T),this.lastOutputScreen=new s(T),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=T}var h=_.prototype;return h.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},h.getHandler=function(){return this.outputFilter},h.setHandler=function(x){this.outputFilter=x},h.setPAC=function(x){this.writeScreen.setPAC(x)},h.setBkgData=function(x){this.writeScreen.setBkgData(x)},h.setMode=function(x){if(x===this.mode)return;this.mode=x,this.logger.log(o.INFO,"MODE="+x),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=x},h.insertChars=function(x){for(var T=0;T=46,T.italics)T.foreground="white";else{var S=Math.floor(x/2)-16,E=["white","green","blue","cyan","red","yellow","magenta"];T.foreground=E[S]}this.logger.log(o.INFO,"MIDROW: "+JSON.stringify(T)),this.writeScreen.setPen(T)},h.outputDataUpdate=function(x){x===void 0&&(x=!1);var T=this.logger.time;if(T===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=T:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,T,this.lastOutputScreen),x&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:T),this.lastOutputScreen.copy(this.displayedMemory))},h.cueSplitAtTime=function(x){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,x,this.displayedMemory),this.cueStartTime=x))},_}(),D=function(){function _(g,x,T){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var S=new c;this.channels=[null,new w(g,x,S),new w(g+1,T,S)],this.cmdHistory=n(),this.logger=S}var h=_.prototype;return h.getHandler=function(x){return this.channels[x].getHandler()},h.setHandler=function(x,T){this.channels[x].setHandler(T)},h.addData=function(x,T){var S,E,U,F=!1;this.logger.time=x;for(var P=0;P ("+f([E,U])+")"),S=this.parseCmd(E,U),S||(S=this.parseMidrow(E,U)),S||(S=this.parsePAC(E,U)),S||(S=this.parseBackgroundAttributes(E,U)),!S&&(F=this.parseChars(E,U),F)){var H=this.currentChannel;if(H&&H>0){var N=this.channels[H];N.insertChars(F)}else this.logger.log(o.WARNING,"No channel found yet. TEXT-MODE?")}!S&&!F&&this.logger.log(o.WARNING,"Couldn't parse cleaned data "+f([E,U])+" orig: "+f([T[P],T[P+1]]))}},h.parseCmd=function(x,T){var S=this.cmdHistory,E=(x===20||x===28||x===21||x===29)&&T>=32&&T<=47,U=(x===23||x===31)&&T>=33&&T<=35;if(!(E||U))return!1;if(v(x,T,S))return C(null,null,S),this.logger.log(o.DEBUG,"Repeated command ("+f([x,T])+") is dropped"),!0;var F=x===20||x===21||x===23?1:2,P=this.channels[F];return x===20||x===21||x===28||x===29?T===32?P.ccRCL():T===33?P.ccBS():T===34?P.ccAOF():T===35?P.ccAON():T===36?P.ccDER():T===37?P.ccRU(2):T===38?P.ccRU(3):T===39?P.ccRU(4):T===40?P.ccFON():T===41?P.ccRDC():T===42?P.ccTR():T===43?P.ccRTD():T===44?P.ccEDM():T===45?P.ccCR():T===46?P.ccENM():T===47&&P.ccEOC():P.ccTO(T-32),C(x,T,S),this.currentChannel=F,!0},h.parseMidrow=function(x,T){var S=0;if((x===17||x===25)&&T>=32&&T<=47){if(x===17?S=1:S=2,S!==this.currentChannel)return this.logger.log(o.ERROR,"Mismatch channel in midrow parsing"),!1;var E=this.channels[S];return E?(E.ccMIDROW(T),this.logger.log(o.DEBUG,"MIDROW ("+f([x,T])+")"),!0):!1}return!1},h.parsePAC=function(x,T){var S,E=this.cmdHistory,U=(x>=17&&x<=23||x>=25&&x<=31)&&T>=64&&T<=127,F=(x===16||x===24)&&T>=64&&T<=95;if(!(U||F))return!1;if(v(x,T,E))return C(null,null,E),!0;var P=x<=23?1:2;T>=64&&T<=95?S=P===1?a[x]:u[x]:S=P===1?b[x]:d[x];var H=this.channels[P];return H?(H.setPAC(this.interpretPAC(S,T)),C(x,T,E),this.currentChannel=P,!0):!1},h.interpretPAC=function(x,T){var S,E={color:null,italics:!1,indent:null,underline:!1,row:x};return T>95?S=T-96:S=T-64,E.underline=(S&1)===1,S<=13?E.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(S/2)]:S<=15?(E.italics=!0,E.color="white"):E.indent=Math.floor((S-16)/2)*4,E},h.parseChars=function(x,T){var S,E=null,U=null;if(x>=25?(S=2,U=x-8):(S=1,U=x),U>=17&&U<=19){var F;U===17?F=T+80:U===18?F=T+112:F=T+144,this.logger.log(o.INFO,"Special char '"+R(F)+"' in channel "+S),E=[F]}else x>=32&&x<=127&&(E=T===0?[x]:[x,T]);if(E){var P=f(E);this.logger.log(o.DEBUG,"Char codes = "+P.join(",")),C(x,T,this.cmdHistory)}return E},h.parseBackgroundAttributes=function(x,T){var S=(x===16||x===24)&&T>=32&&T<=47,E=(x===23||x===31)&&T>=45&&T<=47;if(!(S||E))return!1;var U,F={};x===16||x===24?(U=Math.floor((T-32)/2),F.background=m[U],T%2===1&&(F.background=F.background+"_semi")):T===45?F.background="transparent":(F.foreground="black",T===47&&(F.underline=!0));var P=x<=23?1:2,H=this.channels[P];return H.setBkgData(F),C(x,T,this.cmdHistory),!0},h.reset=function(){for(var x=0;x=16?t--:t++;var C=Object(B.fixLineBreaks)(l.trim()),v=Object(O.generateCueId)(u,d,C);(!b||!b.cues||!b.cues.getCueById(v))&&(f=new s(u,d,C),f.id=v,f.line=w+1,f.align="left",f.position=10+Math.min(80,Math.floor(t*8/32)*10),o.push(f))}return b&&o.length&&(o.sort(function(n,_){return n.line==="auto"||_.line==="auto"?0:n.line>8&&_.line>8?_.line-n.line:n.line-_.line}),o.forEach(function(n){return Object(R.addCueToTrack)(b,n)})),o}};W.default=p},"./src/utils/discontinuities.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"findFirstFragWithCC",function(){return M}),k.d(W,"shouldAlignOnDiscontinuities",function(){return p}),k.d(W,"findDiscontinuousReferenceFrag",function(){return a}),k.d(W,"adjustSlidingStart",function(){return u}),k.d(W,"alignStream",function(){return d}),k.d(W,"alignPDT",function(){return o}),k.d(W,"alignFragmentByPDTDelta",function(){return c}),k.d(W,"alignMediaPlaylistByPDT",function(){return f});var B=k("./src/polyfills/number.ts"),O=k("./src/utils/logger.ts"),R=k("./src/controller/level-helper.ts");function M(i,t){for(var l=null,s=0,w=i.length;sl.startCC||i&&i.cc=this.minWeight_},M.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},M.destroy=function(){},R}();W.default=O},"./src/utils/ewma.ts":function(Q,W,k){"use strict";k.r(W);var B=function(){function O(M,p,a){p===void 0&&(p=0),a===void 0&&(a=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=M,this.alpha_=M?Math.exp(Math.log(.5)/M):0,this.estimate_=p,this.totalWeight_=a}var R=O.prototype;return R.sample=function(p,a){var b=Math.pow(this.alpha_,p);this.estimate_=a*(1-b)+b*this.estimate_,this.totalWeight_+=p},R.getTotalWeight=function(){return this.totalWeight_},R.getEstimate=function(){if(this.alpha_){var p=1-Math.pow(this.alpha_,this.totalWeight_);if(p)return this.estimate_/p}return this.estimate_},O}();W.default=B},"./src/utils/fetch-loader.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"fetchSupported",function(){return c});var B=k("./src/polyfills/number.ts"),O=k("./src/loader/load-stats.ts"),R=k("./src/demux/chunk-cache.ts");function M(s,w){s.prototype=Object.create(w.prototype),s.prototype.constructor=s,d(s,w)}function p(s){var w=typeof Map=="function"?new Map:void 0;return p=function(C){if(C===null||!u(C))return C;if(typeof C!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w!="undefined"){if(w.has(C))return w.get(C);w.set(C,v)}function v(){return a(C,arguments,m(this).constructor)}return v.prototype=Object.create(C.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),d(v,C)},p(s)}function a(s,w,D){return b()?a=Reflect.construct:a=function(v,n,_){var h=[null];h.push.apply(h,n);var g=Function.bind.apply(v,h),x=new g;return _&&d(x,_.prototype),x},a.apply(null,arguments)}function b(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(s){return!1}}function u(s){return Function.toString.call(s).indexOf("[native code]")!==-1}function d(s,w){return d=Object.setPrototypeOf||function(C,v){return C.__proto__=v,C},d(s,w)}function m(s){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},m(s)}function o(){return o=Object.assign||function(s){for(var w=1;w=_&&h(v,n,g.flush(),C)):h(v,n,U,C),S()}).catch(function(){return Promise.reject()})};return T()},s}();function i(s,w){var D={method:"GET",mode:"cors",credentials:"same-origin",signal:w,headers:new self.Headers(o({},s.headers))};return s.rangeEnd&&D.headers.set("Range","bytes="+s.rangeStart+"-"+String(s.rangeEnd-1)),D}function t(s,w){return new self.Request(s.url,w)}var l=function(s){M(w,s);function w(D,C,v){var n;return n=s.call(this,D)||this,n.code=void 0,n.details=void 0,n.code=C,n.details=v,n}return w}(p(Error));W.default=f},"./src/utils/imsc1-ttml-parser.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"IMSC1_CODEC",function(){return u}),k.d(W,"parseIMSC1",function(){return c});var B=k("./src/utils/mp4-tools.ts"),O=k("./src/utils/vttparser.ts"),R=k("./src/utils/vttcue.ts"),M=k("./src/demux/id3.ts"),p=k("./src/utils/timescale-conversion.ts"),a=k("./src/utils/webvtt-parser.ts");function b(){return b=Object.assign||function(_){for(var h=1;h"):B}function p(u){for(var d=arguments.length,m=new Array(d>1?d-1:0),o=1;o>24,w[D+1]=C>>16&255,w[D+2]=C>>8&255,w[D+3]=C&255}function d(w,D){var C=[];if(!D.length)return C;var v,n,_;"data"in w?(v=w.data,n=w.start,_=w.end):(v=w,n=0,_=v.byteLength);for(var h=n;h<_;){var g=b(v,h),x=p(v.subarray(h+4,h+8)),T=g>1?h+g:_;if(x===D[0])if(D.length===1)C.push({data:v,start:h+8,end:T});else{var S=d({data:v,start:h+8,end:T},D.slice(1));S.length&&M.apply(C,S)}h=T}return C}function m(w){var D=d(w,["moov"]),C=D[0],v=C?C.end:null,n=d(w,["sidx"]);if(!n||!n[0])return null;var _=[],h=n[0],g=h.data[0],x=g===0?8:16,T=b(h,x);x+=4;var S=0,E=0;g===0?x+=8:x+=16,x+=2;var U=h.end+E,F=a(h,x);x+=2;for(var P=0;P>>31;if(G===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var K=b(h,H);H+=4,_.push({referenceSize:A,subsegmentDuration:K,info:{duration:K/T,start:U,end:U+A-1}}),U+=A,H+=4,x=H}return{earliestPresentationTime:S,timescale:T,version:g,referencesCount:F,references:_,moovEndOffset:v}}function o(w){for(var D=[],C=d(w,["moov","trak"]),v=0;vp)&&(this.startTime=p),this.endTime=a,this.screen=b,this.timelineController.createCaptionsTrack(this.trackName)},R.reset=function(){this.cueRanges=[]},O}()},"./src/utils/texttrack-utils.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"sendAddTrackEvent",function(){return O}),k.d(W,"addCueToTrack",function(){return R}),k.d(W,"clearCurrentCues",function(){return M}),k.d(W,"removeCuesInRange",function(){return p}),k.d(W,"getCuesInRange",function(){return b});var B=k("./src/utils/logger.ts");function O(u,d){var m;try{m=new Event("addtrack")}catch(o){m=document.createEvent("Event"),m.initEvent("addtrack",!1,!1)}m.track=u,d.dispatchEvent(m)}function R(u,d){var m=u.mode;if(m==="disabled"&&(u.mode="hidden"),u.cues&&!u.cues.getCueById(d.id))try{if(u.addCue(d),!u.cues.getCueById(d.id))throw new Error("addCue is failed for: "+d)}catch(c){B.logger.debug("[texttrack-utils]: "+c);var o=new self.TextTrackCue(d.startTime,d.endTime,d.text);o.id=d.id,u.addCue(o)}m==="disabled"&&(u.mode=m)}function M(u){var d=u.mode;if(d==="disabled"&&(u.mode="hidden"),u.cues)for(var m=u.cues.length;m--;)u.removeCue(u.cues[m]);d==="disabled"&&(u.mode=d)}function p(u,d,m){var o=u.mode;if(o==="disabled"&&(u.mode="hidden"),u.cues&&u.cues.length>0)for(var c=b(u.cues,d,m),f=0;fu[m].endTime)return-1;for(var o=0,c=m;o<=c;){var f=Math.floor((c+o)/2);if(du[f].startTime&&o-1)for(var f=c,i=u.length;f=d&&t.endTime<=m)o.push(t);else if(t.startTime>m)return o}return o}},"./src/utils/time-ranges.ts":function(Q,W,k){"use strict";k.r(W);var B={toString:function(R){for(var M="",p=R.length,a=0;a1?d-1:0),o=1;o100)throw new Error("Position must be between 0 and 100.");_=S,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",a({},c,{get:function(){return h},set:function(S){var E=p(S);if(!E)throw new SyntaxError("An invalid or illegal string was specified.");h=E,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",a({},c,{get:function(){return g},set:function(S){if(S<0||S>100)throw new Error("Size must be between 0 and 100.");g=S,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",a({},c,{get:function(){return x},set:function(S){var E=p(S);if(!E)throw new SyntaxError("An invalid or illegal string was specified.");x=E,this.hasBeenReset=!0}})),o.displayState=void 0}return b.prototype.getCueAsHTML=function(){var u=self.WebVTT;return u.convertCueToDOMTree(self,this.text)},b}()},"./src/utils/vttparser.ts":function(Q,W,k){"use strict";k.r(W),k.d(W,"parseTimeStamp",function(){return R}),k.d(W,"fixLineBreaks",function(){return d}),k.d(W,"VTTParser",function(){return m});var B=k("./src/utils/vttcue.ts"),O=function(){function o(){}var c=o.prototype;return c.decode=function(i,t){if(!i)return"";if(typeof i!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(i))},o}();function R(o){function c(i,t,l,s){return(i|0)*3600+(t|0)*60+(l|0)+parseFloat(s||0)}var f=o.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return f?parseFloat(f[2])>59?c(f[2],f[3],0,f[4]):c(f[1],f[2],f[3],f[4]):null}var M=function(){function o(){this.values=Object.create(null)}var c=o.prototype;return c.set=function(i,t){!this.get(i)&&t!==""&&(this.values[i]=t)},c.get=function(i,t,l){return l?this.has(i)?this.values[i]:t[l]:this.has(i)?this.values[i]:t},c.has=function(i){return i in this.values},c.alt=function(i,t,l){for(var s=0;s=0&&l<=100)return this.set(i,l),!0}return!1},o}();function p(o,c,f,i){var t=i?o.split(i):[o];for(var l in t){if(typeof t[l]!="string")continue;var s=t[l].split(f);if(s.length!==2)continue;var w=s[0],D=s[1];c(w,D)}}var a=new B.default(0,0,""),b=a.align==="middle"?"middle":"center";function u(o,c,f){var i=o;function t(){var w=R(o);if(w===null)throw new Error("Malformed timestamp: "+i);return o=o.replace(/^[^\sa-zA-Z-]+/,""),w}function l(w,D){var C=new M;p(w,function(_,h){var g;switch(_){case"region":for(var x=f.length-1;x>=0;x--)if(f[x].id===h){C.set(_,f[x].region);break}break;case"vertical":C.alt(_,h,["rl","lr"]);break;case"line":g=h.split(","),C.integer(_,g[0]),C.percent(_,g[0])&&C.set("snapToLines",!1),C.alt(_,g[0],["auto"]),g.length===2&&C.alt("lineAlign",g[1],["start",b,"end"]);break;case"position":g=h.split(","),C.percent(_,g[0]),g.length===2&&C.alt("positionAlign",g[1],["start",b,"end","line-left","line-right","auto"]);break;case"size":C.percent(_,h);break;case"align":C.alt(_,h,["start",b,"end","left","right"]);break}},/:/,/\s/),D.region=C.get("region",null),D.vertical=C.get("vertical","");var v=C.get("line","auto");v==="auto"&&a.line===-1&&(v=-1),D.line=v,D.lineAlign=C.get("lineAlign","start"),D.snapToLines=C.get("snapToLines",!0),D.size=C.get("size",100),D.align=C.get("align",b);var n=C.get("position","auto");n==="auto"&&a.position===50&&(n=D.align==="start"||D.align==="left"?0:D.align==="end"||D.align==="right"?100:50),D.position=n}function s(){o=o.replace(/^\s+/,"")}if(s(),c.startTime=t(),s(),o.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+i);o=o.substr(3),s(),c.endTime=t(),s(),l(o,c)}function d(o){return o.replace(//gi,` `)}var m=function(){function o(){this.state="INITIAL",this.buffer="",this.decoder=new O,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var c=o.prototype;return c.parse=function(i){var t=this;i&&(t.buffer+=t.decoder.decode(i,{stream:!0}));function l(){var n=t.buffer,_=0;for(n=d(n);_9?parseInt(i.substr(0,i.indexOf(":"))):0;if(!Object(B.isFiniteNumber)(t)||!Object(B.isFiniteNumber)(l)||!Object(B.isFiniteNumber)(s)||!Object(B.isFiniteNumber)(w))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+i);return t+=1e3*l,t+=60*1e3*s,t+=60*60*1e3*w,t},d=function(i){for(var t=5381,l=i.length;l;)t=t*33^i.charCodeAt(--l);return(t>>>0).toString()};function m(f,i,t){return d(f.toString())+d(i.toString())+d(t)}var o=function(i,t,l){var s=i[t],w=i[s.prevCC];if(!w||!w.new&&s.new){i.ccOffset=i.presentationOffset=s.start,s.new=!1;return}for(;(D=w)!==null&&D!==void 0&&D.new;){var D;i.ccOffset+=s.start-w.start,s.new=!1,s=w,w=i[s.prevCC]}i.presentationOffset=l};function c(f,i,t,l,s,w,D,C){var v=new O.VTTParser,n=Object(R.utf8ArrayToStr)(new Uint8Array(f)).trim().replace(a,` `).split(` `),_=[],h=Object(M.toMpegTsClockFromTimescale)(i,t),g="00:00.000",x=0,T=0,S,E=!0,U=!1;v.oncue=function(F){var P=l[s],H=l.ccOffset,N=(x-h)/9e4;if(P!=null&&P.new&&(T!==void 0?H=l.ccOffset=P.start:o(l,s,N)),N&&(H=N-l.presentationOffset),U){var A=F.endTime-F.startTime,G=Object(p.normalizePts)((F.startTime+H-T)*9e4,w*9e4)/9e4;F.startTime=G,F.endTime=G+A}var K=F.text.trim();F.text=decodeURIComponent(encodeURIComponent(K)),F.id||(F.id=m(F.startTime,F.endTime,K)),F.endTime>0&&_.push(F)},v.onparsingerror=function(F){S=F},v.onflush=function(){if(S){C(S);return}D(_)},n.forEach(function(F){if(E)if(b(F,"X-TIMESTAMP-MAP=")){E=!1,U=!0,F.substr(16).split(",").forEach(function(P){b(P,"LOCAL:")?g=P.substr(6):b(P,"MPEGTS:")&&(x=parseInt(P.substr(7)))});try{T=u(g)/1e3}catch(P){U=!1,S=P}return}else F===""&&(E=!1);v.parse(F+` -`)}),v.flush()}},"./src/utils/xhr-loader.ts":function(Q,W,k){"use strict";k.r(W);var B=k("./src/utils/logger.ts"),O=k("./src/loader/load-stats.ts"),R=/^age:\s*[\d.]+\s*$/m,M=function(){function p(b){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=b?b.xhrSetup:null,this.stats=new O.LoadStats,this.retryDelay=0}var a=p.prototype;return a.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},a.abortInternal=function(){var u=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),u&&(u.onreadystatechange=null,u.onprogress=null,u.readyState!==4&&(this.stats.aborted=!0,u.abort()))},a.abort=function(){var u;this.abortInternal(),(u=this.callbacks)!==null&&u!==void 0&&u.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},a.load=function(u,d,m){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=u,this.config=d,this.callbacks=m,this.retryDelay=d.retryDelay,this.loadInternal()},a.loadInternal=function(){var u=this.config,d=this.context;if(!u)return;var m=this.loader=new self.XMLHttpRequest,o=this.stats;o.loading.first=0,o.loaded=0;var c=this.xhrSetup;try{if(c)try{c(m,d.url)}catch(t){m.open("GET",d.url,!0),c(m,d.url)}m.readyState||m.open("GET",d.url,!0);var f=this.context.headers;if(f)for(var i in f)m.setRequestHeader(i,f[i])}catch(t){this.callbacks.onError({code:m.status,text:t.message},d,m);return}d.rangeEnd&&m.setRequestHeader("Range","bytes="+d.rangeStart+"-"+(d.rangeEnd-1)),m.onreadystatechange=this.readystatechange.bind(this),m.onprogress=this.loadprogress.bind(this),m.responseType=d.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),u.timeout),m.send()},a.readystatechange=function(){var u=this.context,d=this.loader,m=this.stats;if(!u||!d)return;var o=d.readyState,c=this.config;if(m.aborted)return;if(o>=2)if(self.clearTimeout(this.requestTimeout),m.loading.first===0&&(m.loading.first=Math.max(self.performance.now(),m.loading.start)),o===4){d.onreadystatechange=null,d.onprogress=null;var f=d.status;if(f>=200&&f<300){m.loading.end=Math.max(self.performance.now(),m.loading.first);var i,t;if(u.responseType==="arraybuffer"?(i=d.response,t=i.byteLength):(i=d.responseText,t=i.length),m.loaded=m.total=t,!this.callbacks)return;var l=this.callbacks.onProgress;if(l&&l(m,u,i,d),!this.callbacks)return;var s={url:d.responseURL,data:i};this.callbacks.onSuccess(s,m,u,d)}else m.retry>=c.maxRetry||f>=400&&f<499?(B.logger.error(f+" while loading "+u.url),this.callbacks.onError({code:f,text:d.statusText},u,d)):(B.logger.warn(f+" while loading "+u.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,c.maxRetryDelay),m.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),c.timeout)},a.loadtimeout=function(){B.logger.warn("timeout while loading "+this.context.url);var u=this.callbacks;u&&(this.abortInternal(),u.onTimeout(this.stats,this.context,this.loader))},a.loadprogress=function(u){var d=this.stats;d.loaded=u.loaded,u.lengthComputable&&(d.total=u.total)},a.getCacheAge=function(){var u=null;if(this.loader&&R.test(this.loader.getAllResponseHeaders())){var d=this.loader.getResponseHeader("age");u=d?parseFloat(d):null}return u},p}();W.default=M}}).default})},vHTk:function(Ge,re,y){Ge.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Ge,re,y){var Q=y("SrGk"),W=y("bYtY");function k(R,M){Q.call(this,R,M,["filter"],"__filter_in_use__","_shadowDom")}W.inherits(k,Q),k.prototype.addWithoutUpdate=function(R,M){if(M&&B(M.style)){var p;if(M._shadowDom){p=M._shadowDom;var a=this.getDefs(!0);a.contains(M._shadowDom)||this.addDom(p)}else p=this.add(M);this.markUsed(M);var b=p.getAttribute("id");R.style.filter="url(#"+b+")"}},k.prototype.add=function(R){var M=this.createElement("filter");return R._shadowDomId=R._shadowDomId||this.nextId++,M.setAttribute("id","zr"+this._zrId+"-shadow-"+R._shadowDomId),this.updateDom(R,M),this.addDom(M),M},k.prototype.update=function(R,M){var p=M.style;if(B(p)){var a=this;Q.prototype.update.call(this,M,function(){a.updateDom(M,M._shadowDom)})}else this.remove(R,M)},k.prototype.remove=function(R,M){M._shadowDomId!=null&&(this.removeDom(R),R.style.filter="")},k.prototype.updateDom=function(R,M){var p=M.getElementsByTagName("feDropShadow");p.length===0?p=this.createElement("feDropShadow"):p=p[0];var a=R.style,b=R.scale&&R.scale[0]||1,u=R.scale&&R.scale[1]||1,d,m,o,c;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)d=a.shadowOffsetX||0,m=a.shadowOffsetY||0,o=a.shadowBlur,c=a.shadowColor;else if(a.textShadowBlur)d=a.textShadowOffsetX||0,m=a.textShadowOffsetY||0,o=a.textShadowBlur,c=a.textShadowColor;else{this.removeDom(M,a);return}p.setAttribute("dx",d/b),p.setAttribute("dy",m/u),p.setAttribute("flood-color",c);var f=o/2/b,i=o/2/u,t=f+" "+i;p.setAttribute("stdDeviation",t),M.setAttribute("x","-100%"),M.setAttribute("y","-100%"),M.setAttribute("width",Math.ceil(o/2*200)+"%"),M.setAttribute("height",Math.ceil(o/2*200)+"%"),M.appendChild(p),R._shadowDom=M},k.prototype.markUsed=function(R){R._shadowDom&&Q.prototype.markUsed.call(this,R._shadowDom)};function B(R){return R&&(R.shadowBlur||R.shadowOffsetX||R.shadowOffsetY||R.textShadowBlur||R.textShadowOffsetX||R.textShadowOffsetY)}var O=k;Ge.exports=O},vWvF:function(Ge,re,y){var Q=y("Bq2U"),W=y("SUKs"),k=y("bYtY"),B=k.isString,O=k.isFunction,R=k.isObject,M=k.isArrayLike,p=k.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(o,c){var f,i=!1,t=this,l=this.__zr;if(o){var s=o.split("."),w=t;i=s[0]==="shape";for(var D=0,C=s.length;D0&&o.animate(c,!1).when(t==null?500:t,w).delay(l||0)}function d(o,c,f,i){if(!c)o.attr(f,i);else{var t={};t[c]={},t[c][f]=i,o.attr(t)}}var m=a;Ge.exports=m},wCXF:function(Ge,re,y){"use strict";y.d(re,"a",function(){return tn});var Q=y("rePB"),W=y("VTBJ"),k=y("KQm4"),B=y("U8pU"),O=y("ODXe"),R=y("q1tI"),M=y("TSYQ"),p=y.n(M),a=y("Gytx"),b=y.n(a),u=y("Kwbf"),d=y("t23M"),m=y("qx4F"),o=y("6eGT"),c=y("IBYe"),f=y("Ff2n"),i=y("c+Xe"),t=y("fyJ8"),l=y("biw7");function s(mt,pt,on,hn,Ot){var Xt=on[mt]||{},ht=on[pt]||{},Je,rt;Xt.fixed==="left"?Je=hn.left[mt]:ht.fixed==="right"&&(rt=hn.right[pt]);var Te=!1,Me=!1,Ie=!1,be=!1,qe=on[pt+1],Lt=on[mt-1];if(Ot==="rtl"){if(Je!==void 0){var nn=Lt&&Lt.fixed==="left";be=!nn}else if(rt!==void 0){var $n=qe&&qe.fixed==="right";Ie=!$n}}else if(Je!==void 0){var ta=qe&&qe.fixed==="left";Te=!ta}else if(rt!==void 0){var Sa=Lt&&Lt.fixed==="right";Me=!Sa}return{fixLeft:Je,fixRight:rt,lastFixLeft:Te,firstFixRight:Me,lastFixRight:Ie,firstFixLeft:be,isSticky:hn.isSticky}}var w=y("sR1s");function D(mt){var pt=mt.cells,on=mt.stickyOffsets,hn=mt.flattenColumns,Ot=mt.rowComponent,Xt=mt.cellComponent,ht=mt.onHeaderRow,Je=mt.index,rt=R.useContext(l.a),Te=rt.prefixCls,Me=rt.direction,Ie;ht&&(Ie=ht(pt.map(function(qe){return qe.column}),Je));var be=Object(w.a)(pt.map(function(qe){return qe.column}));return R.createElement(Ot,Object.assign({},Ie),pt.map(function(qe,Lt){var nn=qe.column,$n=s(qe.colStart,qe.colEnd,hn,on,Me),ta;return nn&&nn.onHeaderCell&&(ta=qe.column.onHeaderCell(nn)),R.createElement(t.a,Object.assign({},qe,{ellipsis:nn.ellipsis,align:nn.align,component:Xt,prefixCls:Te,key:be[Lt]},$n,{additionalProps:ta,rowType:"header"}))}))}D.displayName="HeaderRow";var C=D;function v(mt){var pt=[];function on(ht,Je){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;pt[rt]=pt[rt]||[];var Te=Je,Me=ht.filter(Boolean).map(function(Ie){var be={key:Ie.key,className:Ie.className||"",children:Ie.title,column:Ie,colStart:Te},qe=1,Lt=Ie.children;return Lt&&Lt.length>0&&(qe=on(Lt,Te,rt+1).reduce(function(nn,$n){return nn+$n},0),be.hasSubColumns=!0),"colSpan"in Ie&&(qe=Ie.colSpan),"rowSpan"in Ie&&(be.rowSpan=Ie.rowSpan),be.colSpan=qe,be.colEnd=be.colStart+qe-1,pt[rt].push(be),Te+=qe,qe});return Me}on(mt,0);for(var hn=pt.length,Ot=function(Je){pt[Je].forEach(function(rt){!("rowSpan"in rt)&&!rt.hasSubColumns&&(rt.rowSpan=hn-Je)})},Xt=0;Xt=0;Je-=1){var rt=pt[Je],Te=on&&on[Je],Me=Te&&Te[h.a];(rt||Me||ht)&&(Ot.unshift(R.createElement("col",Object.assign({key:Je,style:{width:rt,minWidth:rt}},Me))),ht=!0)}return R.createElement("colgroup",null,Ot)}var x=g;function T(mt,pt){return Object(R.useMemo)(function(){for(var on=[],hn=0;hn1?te-1:0),se=1;se=Ie&&(Ea=Ie-be),ht({scrollLeft:Ea/Ie*(Me+2)}),Sa.current.x=Mt.pageX},qt=function(){var Mt=Object(pe.b)(Xt.current).top,Nn=Mt+Xt.current.offsetHeight,Bn=document.documentElement.scrollTop+window.innerHeight;Nn-Object(m.a)()<=Bn||Mt>=Bn-Je?ta(function(na){return Object(W.a)(Object(W.a)({},na),{},{isHiddenScrollBar:!0})}):ta(function(na){return Object(W.a)(Object(W.a)({},na),{},{isHiddenScrollBar:!1})})},Gn=function(Mt){ta(function(Nn){return Object(W.a)(Object(W.a)({},Nn),{},{scrollLeft:Mt/Me*Ie||0})})};return R.useImperativeHandle(on,function(){return{setScrollLeft:Gn}}),R.useEffect(function(){var qn=Object(Qe.a)(document.body,"mouseup",ze,!1),Mt=Object(Qe.a)(document.body,"mousemove",Sn,!1);return qt(),function(){qn.remove(),Mt.remove()}},[be,mn]),R.useEffect(function(){var qn=Object(Qe.a)(window,"scroll",qt,!1),Mt=Object(Qe.a)(window,"resize",qt,!1);return function(){qn.remove(),Mt.remove()}},[]),R.useEffect(function(){$n.isHiddenScrollBar||ta(function(qn){var Mt,Nn;return Object(W.a)(Object(W.a)({},qn),{},{scrollLeft:Xt.current.scrollLeft/((Mt=Xt.current)===null||Mt===void 0?void 0:Mt.scrollWidth)*((Nn=Xt.current)===null||Nn===void 0?void 0:Nn.clientWidth)})})},[$n.isHiddenScrollBar]),Me<=Ie||!be||$n.isHiddenScrollBar?null:R.createElement("div",{style:{height:Object(m.a)(),width:Ie,bottom:Je},className:"".concat(Te,"-sticky-scroll")},R.createElement("div",{onMouseDown:ct,ref:qe,className:p()("".concat(Te,"-sticky-scroll-bar"),Object(Q.a)({},"".concat(Te,"-sticky-scroll-bar-active"),mn)),style:{width:"".concat(be,"px"),transform:"translate3d(".concat($n.scrollLeft,"px, 0, 0)")}}))},Le=R.forwardRef(xe);function Ye(mt,pt){return R.useMemo(function(){var on=!!mt;return{isSticky:on,stickyClassName:on?"".concat(pt,"-sticky-header"):"",offsetHeader:Object(B.a)(mt)==="object"&&mt.offsetHeader||0,offsetScroll:Object(B.a)(mt)==="object"&&mt.offsetScroll||0}},[mt,pt])}var gt=[],Ct={},tn="rc-table-internal-hook",Zt=R.memo(function(mt){var pt=mt.children;return pt},function(mt,pt){return b()(mt.props,pt.props)?mt.pingLeft!==pt.pingLeft||mt.pingRight!==pt.pingRight:!1});function Hn(mt){var pt,on=mt.prefixCls,hn=mt.className,Ot=mt.rowClassName,Xt=mt.style,ht=mt.data,Je=mt.rowKey,rt=mt.scroll,Te=mt.tableLayout,Me=mt.direction,Ie=mt.title,be=mt.footer,qe=mt.summary,Lt=mt.id,nn=mt.showHeader,$n=mt.components,ta=mt.emptyText,Sa=mt.onRow,_n=mt.onHeaderRow,Bt=mt.internalHooks,mn=mt.transformColumns,Gt=mt.internalRefs,ze=mt.sticky,ct=ht||gt,Sn=!!ct.length,qt=R.useState(0),Gn=Object(O.a)(qt,2),qn=Gn[0],Mt=Gn[1];R.useEffect(function(){Mt(Object(m.a)())});var Nn=R.useMemo(function(){return Object(w.c)($n,{})},[$n]),Bn=R.useCallback(function(Va,Za){return Object(w.b)(Nn,Va)||Za},[Nn]),na=R.useMemo(function(){return typeof Je=="function"?Je:function(Va){var Za=Va&&Va[Je];return Za}},[Je]),Ea=Object(h.c)(mt),Pe=Ea.expandIcon,ye=Ea.expandedRowKeys,J=Ea.defaultExpandedRowKeys,q=Ea.defaultExpandAllRows,Z=Ea.expandedRowRender,oe=Ea.onExpand,Oe=Ea.onExpandedRowsChange,Re=Ea.expandRowByClick,ve=Ea.rowExpandable,bn=Ea.expandIconColumnIndex,kt=Ea.expandedRowClassName,at=Ea.childrenColumnName,Ht=Ea.indentSize,Fe=Pe||Ve,Un=at||"children",Fa=R.useMemo(function(){return Z?"row":mt.expandable&&Bt===tn&&mt.expandable.__PARENT_RENDER_ICON__||ct.some(function(Va){return Va&&Object(B.a)(Va)==="object"&&Va[Un]})?"nest":!1},[!!Z,ct]),fa=R.useState(function(){return J||(q?dt(ct,na,Un):[])}),ae=Object(O.a)(fa,2),z=ae[0],Y=ae[1],te=R.useMemo(function(){return new Set(ye||z||[])},[ye,z]),_e=R.useCallback(function(Va){var Za=na(Va,ct.indexOf(Va)),pa,Ja=te.has(Za);Ja?(te.delete(Za),pa=Object(k.a)(te)):pa=[].concat(Object(k.a)(te),[Za]),Y(pa),oe&&oe(!Ja,Va),Oe&&Oe(pa)},[na,te,ct,oe,Oe]),se=R.useState(0),ut=Object(O.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(Se.b)(Object(W.a)(Object(W.a)(Object(W.a)({},mt),Ea),{},{expandable:!!Z,expandedKeys:te,getRowKey:na,onTriggerExpand:_e,expandIcon:Fe,expandIconColumnIndex:bn,direction:Me}),Bt===tn?mn:null),dn=Object(O.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=R.useMemo(function(){return{columns:Tn,flattenColumns:ya}},[Tn,ya]),gr=R.useRef(),ir=R.useRef(),Qa=R.useRef(),ba=R.useState(!1),Na=Object(O.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=R.useState(!1),An=Object(O.a)(Rt,2),aa=An[0],ra=An[1],Fn=je(new Map),da=Object(O.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(w.a)(ya),ot=ue.map(function(Va){return Ta.get(Va)}),lt=R.useMemo(function(){return ot},[ot.join("_")]),ft=Ae(lt,ya.length,Me),wt=rt&&Object(w.d)(rt.y),Et=rt&&Object(w.d)(rt.x),jt=Et&&ya.some(function(Va){var Za=Va.fixed;return Za}),Yt=R.useRef(),wn=Ye(ze,on),fn=wn.isSticky,zn=wn.offsetHeader,jn=wn.offsetScroll,$t=wn.stickyClassName,yn,pn,On;wt&&(pn={overflowY:"scroll",maxHeight:rt.y}),Et&&(yn={overflowX:"auto"},wt||(pn={overflowY:"hidden"}),On={width:rt.x===!0?"auto":rt.x,minWidth:"100%"});var cn=R.useCallback(function(Va,Za){Wa(function(pa){var Ja=new Map(pa);return Ja.set(Va,Za),Ja})},[]),sn=me(null),En=Object(O.a)(sn,2),Pn=En[0],Kn=En[1];function Vn(Va,Za){if(!Za)return;typeof Za=="function"?Za(Va):Za.scrollLeft!==Va&&(Za.scrollLeft=Va)}var ua=function(Za){var pa=Za.currentTarget,Ja=Za.scrollLeft,or=typeof Ja=="number"?Ja:pa.scrollLeft,Ln=pa||Ct;if(!Kn()||Kn()===Ln){var Wt;Pn(Ln),Vn(or,ir.current),Vn(or,Qa.current),Vn(or,(Wt=Yt.current)===null||Wt===void 0?void 0:Wt.setScrollLeft)}if(pa){var Rn=pa.scrollWidth,Ra=pa.clientWidth;Jt(or>0),ra(or0?[].concat(Object(W.a)(f),Object(W.a)(u(s).map(function(w){return Object(k.a)({fixed:l},w)}))):[].concat(Object(W.a)(f),[Object(k.a)(Object(k.a)({},i),{},{fixed:l})])},[])}function d(c){for(var f=!0,i=0;i=0;s-=1){var w=c[s];if(l&&w.fixed!=="right")l=!1;else if(!l&&w.fixed==="right"){Object(M.a)(!1,"Index ".concat(s+1," of `columns` missing `fixed='right'` prop."));break}}}function m(c){return c.map(function(f){var i=f.fixed,t=Object(B.a)(f,["fixed"]),l=i;return i==="left"?l="right":i==="right"&&(l="left"),Object(k.a)({fixed:l},t)})}function o(c,f){var i=c.prefixCls,t=c.columns,l=c.children,s=c.expandable,w=c.expandedKeys,D=c.getRowKey,C=c.onTriggerExpand,v=c.expandIcon,n=c.rowExpandable,_=c.expandIconColumnIndex,h=c.direction,g=c.expandRowByClick,x=O.useMemo(function(){return t||b(l)},[t,l]),T=O.useMemo(function(){if(s){var U,F=_||0,P=x[F],H=(U={},Object(Q.a)(U,a.a,{className:"".concat(i,"-expand-icon-col")}),Object(Q.a)(U,"title",""),Object(Q.a)(U,"fixed",P?P.fixed:null),Object(Q.a)(U,"className","".concat(i,"-row-expand-icon-cell")),Object(Q.a)(U,"render",function(G,K,$){var ie=D(K,$),le=w.has(ie),de=n?n(K):!0,Se=v({prefixCls:i,expanded:le,expandable:de,record:K,onExpand:C});return g?O.createElement("span",{onClick:function(et){return et.stopPropagation()}},Se):Se}),U),N=x.slice();return F>=0&&N.splice(F,0,H),N}return x},[s,x,D,w,v,h]),S=O.useMemo(function(){var U=T;return f&&(U=f(U)),U.length||(U=[{render:function(){return null}}]),U},[f,T,h]),E=O.useMemo(function(){return h==="rtl"?m(u(S)):u(S)},[S,h]);return[S,E]}re.b=o},x6Kt:function(Ge,re,y){var Q=y("y+Vt"),W=y("VpOo"),k=y("nPnh"),B=k.subPixelOptimizeRect,O={},R=Q.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(M,p){var a,b,u,d;this.subPixelOptimize?(B(O,p,this.style),a=O.x,b=O.y,u=O.width,d=O.height,O.r=p.r,p=O):(a=p.x,b=p.y,u=p.width,d=p.height),p.r?W.buildPath(M,p):M.rect(a,b,u,d),M.closePath();return}});Ge.exports=R},"y+Vt":function(Ge,re,y){var Q=y("Gev7"),W=y("bYtY"),k=y("IMiH"),B=y("2DNl"),O=y("3C/r"),R=O.prototype.getCanvasPattern,M=Math.abs,p=new k(!0);function a(u){Q.call(this,u),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(u,d){var m=this.style,o=this.path||p,c=m.hasStroke(),f=m.hasFill(),i=m.fill,t=m.stroke,l=f&&!!i.colorStops,s=c&&!!t.colorStops,w=f&&!!i.image,D=c&&!!t.image;if(m.bind(u,this,d),this.setTransform(u),this.__dirty){var C;l&&(C=C||this.getBoundingRect(),this._fillGradient=m.getGradient(u,i,C)),s&&(C=C||this.getBoundingRect(),this._strokeGradient=m.getGradient(u,t,C))}l?u.fillStyle=this._fillGradient:w&&(u.fillStyle=R.call(i,u)),s?u.strokeStyle=this._strokeGradient:D&&(u.strokeStyle=R.call(t,u));var v=m.lineDash,n=m.lineDashOffset,_=!!u.setLineDash,h=this.getGlobalScale();if(o.setScale(h[0],h[1],this.segmentIgnoreThreshold),this.__dirtyPath||v&&!_&&c?(o.beginPath(u),v&&!_&&(o.setLineDash(v),o.setLineDashOffset(n)),this.buildPath(o,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(u.beginPath(),this.path.rebuildPath(u)),f)if(m.fillOpacity!=null){var g=u.globalAlpha;u.globalAlpha=m.fillOpacity*m.opacity,o.fill(u),u.globalAlpha=g}else o.fill(u);if(v&&_&&(u.setLineDash(v),u.lineDashOffset=n),c)if(m.strokeOpacity!=null){var g=u.globalAlpha;u.globalAlpha=m.strokeOpacity*m.opacity,o.stroke(u),u.globalAlpha=g}else o.stroke(u);v&&_&&u.setLineDash([]),m.text!=null&&(this.restoreTransform(u),this.drawRectText(u,this.getBoundingRect()))},buildPath:function(u,d,m){},createPathProxy:function(){this.path=new k},getBoundingRect:function(){var u=this._rect,d=this.style,m=!u;if(m){var o=this.path;o||(o=this.path=new k),this.__dirtyPath&&(o.beginPath(),this.buildPath(o,this.shape,!1)),u=o.getBoundingRect()}if(this._rect=u,d.hasStroke()){var c=this._rectWithStroke||(this._rectWithStroke=u.clone());if(this.__dirty||m){c.copy(u);var f=d.lineWidth,i=d.strokeNoScale?this.getLineScale():1;d.hasFill()||(f=Math.max(f,this.strokeContainThreshold||4)),i>1e-10&&(c.width+=f/i,c.height+=f/i,c.x-=f/i/2,c.y-=f/i/2)}return c}return u},contain:function(u,d){var m=this.transformCoordToLocal(u,d),o=this.getBoundingRect(),c=this.style;if(u=m[0],d=m[1],o.contain(u,d)){var f=this.path.data;if(c.hasStroke()){var i=c.lineWidth,t=c.strokeNoScale?this.getLineScale():1;if(t>1e-10&&(c.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),B.containStroke(f,i/t,u,d)))return!0}if(c.hasFill())return B.contain(f,u,d)}return!1},dirty:function(u){u==null&&(u=!0),u&&(this.__dirtyPath=u,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(u){return this.animate("shape",u)},attrKV:function(u,d){u==="shape"?(this.setShape(d),this.__dirtyPath=!0,this._rect=null):Q.prototype.attrKV.call(this,u,d)},setShape:function(u,d){var m=this.shape;if(m){if(W.isObject(u))for(var o in u)u.hasOwnProperty(o)&&(m[o]=u[o]);else m[u]=d;this.dirty(!0)}return this},getLineScale:function(){var u=this.transform;return u&&M(u[0]-1)>1e-10&&M(u[3]-1)>1e-10?Math.sqrt(M(u[0]*u[3]-u[2]*u[1])):1}},a.extend=function(u){var d=function(o){a.call(this,o),u.style&&this.style.extendFrom(u.style,!1);var c=u.shape;if(c){this.shape=this.shape||{};var f=this.shape;for(var i in c)!f.hasOwnProperty(i)&&c.hasOwnProperty(i)&&(f[i]=c[i])}u.init&&u.init.call(this,o)};W.inherits(d,a);for(var m in u)m!=="style"&&m!=="shape"&&(d.prototype[m]=u[m]);return d},W.inherits(a,Q);var b=a;Ge.exports=b},"y0+3":function(Ge,re,y){"use strict";y.d(re,"a",function(){return u}),y.d(re,"b",function(){return m});var Q=/margin|padding|width|height|max|min|offset/,W={left:!0,top:!0},k={cssFloat:1,styleFloat:1,float:1};function B(o){return o.nodeType===1?o.ownerDocument.defaultView.getComputedStyle(o,null):{}}function O(o,c,f){if(c=c.toLowerCase(),f==="auto"){if(c==="height")return o.offsetHeight;if(c==="width")return o.offsetWidth}return c in W||(W[c]=Q.test(c)),W[c]?parseFloat(f)||0:f}function R(o,c){var f=arguments.length,i=B(o);return c=k[c]?"cssFloat"in o.style?"cssFloat":"styleFloat":c,f===1?i:O(o,c,i[c]||o.style[c])}function M(o,c,f){var i=arguments.length;if(c=k[c]?"cssFloat"in o.style?"cssFloat":"styleFloat":c,i===3)return typeof f=="number"&&Q.test(c)&&(f="".concat(f,"px")),o.style[c]=f,f;for(var t in c)c.hasOwnProperty(t)&&M(o,t,c[t]);return B(o)}function p(o){return o===document.body?document.documentElement.clientWidth:o.offsetWidth}function a(o){return o===document.body?window.innerHeight||document.documentElement.clientHeight:o.offsetHeight}function b(){var o=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),c=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:o,height:c}}function u(){var o=document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight;return{width:o,height:c}}function d(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function m(o){var c=o.getBoundingClientRect(),f=document.documentElement;return{left:c.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:c.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}},y23F:function(Ge,re){function y(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}y.prototype={constructor:y,_dragStart:function(k){for(var B=k.target;B&&!B.draggable;)B=B.parent;B&&(this._draggingTarget=B,B.dragging=!0,this._x=k.offsetX,this._y=k.offsetY,this.dispatchToElement(Q(B,k),"dragstart",k.event))},_drag:function(k){var B=this._draggingTarget;if(B){var O=k.offsetX,R=k.offsetY,M=O-this._x,p=R-this._y;this._x=O,this._y=R,B.drift(M,p,k),this.dispatchToElement(Q(B,k),"drag",k.event);var a=this.findHover(O,R,B).target,b=this._dropTarget;this._dropTarget=a,B!==a&&(b&&a!==b&&this.dispatchToElement(Q(b,k),"dragleave",k.event),a&&a!==b&&this.dispatchToElement(Q(a,k),"dragenter",k.event))}},_dragEnd:function(k){var B=this._draggingTarget;B&&(B.dragging=!1),this.dispatchToElement(Q(B,k),"dragend",k.event),this._dropTarget&&this.dispatchToElement(Q(this._dropTarget,k),"drop",k.event),this._draggingTarget=null,this._dropTarget=null}};function Q(k,B){return{target:k,topTarget:B&&B.topTarget}}var W=y;Ge.exports=W},yslc:function(Ge,re){Ge.exports="data:image/png;base64,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"},yxFR:function(Ge,re,y){var Q=y("y+Vt"),W=y("nPnh"),k=W.subPixelOptimizeLine,B={},O=Q.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(R,M){var p,a,b,u;this.subPixelOptimize?(k(B,M,this.style),p=B.x1,a=B.y1,b=B.x2,u=B.y2):(p=M.x1,a=M.y1,b=M.x2,u=M.y2);var d=M.percent;if(d===0)return;R.moveTo(p,a),d<1&&(b=p*(1-d)+b*d,u=a*(1-d)+u*d),R.lineTo(b,u)},pointAt:function(R){var M=this.shape;return[M.x1*(1-R)+M.x2*R,M.y1*(1-R)+M.y2*R]}});Ge.exports=O},zarK:function(Ge,re,y){var Q=y("YH21"),W=Q.addEventListener,k=Q.removeEventListener,B=Q.normalizeEvent,O=Q.getNativeEvent,R=y("bYtY"),M=y("H6uX"),p=y("ItGF"),a=300,b=p.domSupported,u=function(){var E=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],U=["touchstart","touchend","touchmove"],F={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},P=R.map(E,function(H){var N=H.replace("mouse","pointer");return F.hasOwnProperty(N)?N:H});return{mouse:E,touch:U,pointer:P}}(),d={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function m(E){return E==="mousewheel"&&p.browser.firefox?"DOMMouseScroll":E}function o(E){var U=E.pointerType;return U==="pen"||U==="touch"}function c(E){E.touching=!0,E.touchTimer!=null&&(clearTimeout(E.touchTimer),E.touchTimer=null),E.touchTimer=setTimeout(function(){E.touching=!1,E.touchTimer=null},700)}function f(E){E&&(E.zrByTouch=!0)}function i(E,U){return B(E.dom,new l(E,U),!0)}function t(E,U){for(var F=U,P=!1;F&&F.nodeType!==9&&!(P=F.domBelongToZr||F!==U&&F===E.painterRoot);)F=F.parentNode;return P}function l(E,U){this.type=U.type,this.target=this.currentTarget=E.dom,this.pointerType=U.pointerType,this.clientX=U.clientX,this.clientY=U.clientY}var s=l.prototype;s.stopPropagation=s.stopImmediatePropagation=s.preventDefault=R.noop;var w={mousedown:function(E){E=B(this.dom,E),this._mayPointerCapture=[E.zrX,E.zrY],this.trigger("mousedown",E)},mousemove:function(E){E=B(this.dom,E);var U=this._mayPointerCapture;U&&(E.zrX!==U[0]||E.zrY!==U[1])&&h(this,!0),this.trigger("mousemove",E)},mouseup:function(E){E=B(this.dom,E),h(this,!1),this.trigger("mouseup",E)},mouseout:function(E){E=B(this.dom,E),this._pointerCapturing&&(E.zrEventControl="no_globalout");var U=E.toElement||E.relatedTarget;E.zrIsToLocalDOM=t(this,U),this.trigger("mouseout",E)},touchstart:function(E){E=B(this.dom,E),f(E),this._lastTouchMoment=new Date,this.handler.processGesture(E,"start"),w.mousemove.call(this,E),w.mousedown.call(this,E)},touchmove:function(E){E=B(this.dom,E),f(E),this.handler.processGesture(E,"change"),w.mousemove.call(this,E)},touchend:function(E){E=B(this.dom,E),f(E),this.handler.processGesture(E,"end"),w.mouseup.call(this,E),+new Date-this._lastTouchMoment=2)if(self.clearTimeout(this.requestTimeout),m.loading.first===0&&(m.loading.first=Math.max(self.performance.now(),m.loading.start)),o===4){d.onreadystatechange=null,d.onprogress=null;var f=d.status;if(f>=200&&f<300){m.loading.end=Math.max(self.performance.now(),m.loading.first);var i,t;if(u.responseType==="arraybuffer"?(i=d.response,t=i.byteLength):(i=d.responseText,t=i.length),m.loaded=m.total=t,!this.callbacks)return;var l=this.callbacks.onProgress;if(l&&l(m,u,i,d),!this.callbacks)return;var s={url:d.responseURL,data:i};this.callbacks.onSuccess(s,m,u,d)}else m.retry>=c.maxRetry||f>=400&&f<499?(B.logger.error(f+" while loading "+u.url),this.callbacks.onError({code:f,text:d.statusText},u,d)):(B.logger.warn(f+" while loading "+u.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,c.maxRetryDelay),m.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),c.timeout)},a.loadtimeout=function(){B.logger.warn("timeout while loading "+this.context.url);var u=this.callbacks;u&&(this.abortInternal(),u.onTimeout(this.stats,this.context,this.loader))},a.loadprogress=function(u){var d=this.stats;d.loaded=u.loaded,u.lengthComputable&&(d.total=u.total)},a.getCacheAge=function(){var u=null;if(this.loader&&R.test(this.loader.getAllResponseHeaders())){var d=this.loader.getResponseHeader("age");u=d?parseFloat(d):null}return u},p}();W.default=M}}).default})},vHTk:function(Ge,re,y){Ge.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Ge,re,y){var Q=y("SrGk"),W=y("bYtY");function k(R,M){Q.call(this,R,M,["filter"],"__filter_in_use__","_shadowDom")}W.inherits(k,Q),k.prototype.addWithoutUpdate=function(R,M){if(M&&B(M.style)){var p;if(M._shadowDom){p=M._shadowDom;var a=this.getDefs(!0);a.contains(M._shadowDom)||this.addDom(p)}else p=this.add(M);this.markUsed(M);var b=p.getAttribute("id");R.style.filter="url(#"+b+")"}},k.prototype.add=function(R){var M=this.createElement("filter");return R._shadowDomId=R._shadowDomId||this.nextId++,M.setAttribute("id","zr"+this._zrId+"-shadow-"+R._shadowDomId),this.updateDom(R,M),this.addDom(M),M},k.prototype.update=function(R,M){var p=M.style;if(B(p)){var a=this;Q.prototype.update.call(this,M,function(){a.updateDom(M,M._shadowDom)})}else this.remove(R,M)},k.prototype.remove=function(R,M){M._shadowDomId!=null&&(this.removeDom(R),R.style.filter="")},k.prototype.updateDom=function(R,M){var p=M.getElementsByTagName("feDropShadow");p.length===0?p=this.createElement("feDropShadow"):p=p[0];var a=R.style,b=R.scale&&R.scale[0]||1,u=R.scale&&R.scale[1]||1,d,m,o,c;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)d=a.shadowOffsetX||0,m=a.shadowOffsetY||0,o=a.shadowBlur,c=a.shadowColor;else if(a.textShadowBlur)d=a.textShadowOffsetX||0,m=a.textShadowOffsetY||0,o=a.textShadowBlur,c=a.textShadowColor;else{this.removeDom(M,a);return}p.setAttribute("dx",d/b),p.setAttribute("dy",m/u),p.setAttribute("flood-color",c);var f=o/2/b,i=o/2/u,t=f+" "+i;p.setAttribute("stdDeviation",t),M.setAttribute("x","-100%"),M.setAttribute("y","-100%"),M.setAttribute("width",Math.ceil(o/2*200)+"%"),M.setAttribute("height",Math.ceil(o/2*200)+"%"),M.appendChild(p),R._shadowDom=M},k.prototype.markUsed=function(R){R._shadowDom&&Q.prototype.markUsed.call(this,R._shadowDom)};function B(R){return R&&(R.shadowBlur||R.shadowOffsetX||R.shadowOffsetY||R.textShadowBlur||R.textShadowOffsetX||R.textShadowOffsetY)}var O=k;Ge.exports=O},vWvF:function(Ge,re,y){var Q=y("Bq2U"),W=y("SUKs"),k=y("bYtY"),B=k.isString,O=k.isFunction,R=k.isObject,M=k.isArrayLike,p=k.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(o,c){var f,i=!1,t=this,l=this.__zr;if(o){var s=o.split("."),w=t;i=s[0]==="shape";for(var D=0,C=s.length;D0&&o.animate(c,!1).when(t==null?500:t,w).delay(l||0)}function d(o,c,f,i){if(!c)o.attr(f,i);else{var t={};t[c]={},t[c][f]=i,o.attr(t)}}var m=a;Ge.exports=m},wCXF:function(Ge,re,y){"use strict";y.d(re,"a",function(){return tn});var Q=y("rePB"),W=y("VTBJ"),k=y("KQm4"),B=y("U8pU"),O=y("ODXe"),R=y("q1tI"),M=y("TSYQ"),p=y.n(M),a=y("Gytx"),b=y.n(a),u=y("Kwbf"),d=y("t23M"),m=y("qx4F"),o=y("6eGT"),c=y("IBYe"),f=y("Ff2n"),i=y("c+Xe"),t=y("fyJ8"),l=y("biw7");function s(vt,mt,on,hn,Ot){var Xt=on[vt]||{},ht=on[mt]||{},Je,rt;Xt.fixed==="left"?Je=hn.left[vt]:ht.fixed==="right"&&(rt=hn.right[mt]);var Te=!1,Me=!1,Ie=!1,be=!1,qe=on[mt+1],Lt=on[vt-1];if(Ot==="rtl"){if(Je!==void 0){var nn=Lt&&Lt.fixed==="left";be=!nn}else if(rt!==void 0){var $n=qe&&qe.fixed==="right";Ie=!$n}}else if(Je!==void 0){var ta=qe&&qe.fixed==="left";Te=!ta}else if(rt!==void 0){var Sa=Lt&&Lt.fixed==="right";Me=!Sa}return{fixLeft:Je,fixRight:rt,lastFixLeft:Te,firstFixRight:Me,lastFixRight:Ie,firstFixLeft:be,isSticky:hn.isSticky}}var w=y("sR1s");function D(vt){var mt=vt.cells,on=vt.stickyOffsets,hn=vt.flattenColumns,Ot=vt.rowComponent,Xt=vt.cellComponent,ht=vt.onHeaderRow,Je=vt.index,rt=R.useContext(l.a),Te=rt.prefixCls,Me=rt.direction,Ie;ht&&(Ie=ht(mt.map(function(qe){return qe.column}),Je));var be=Object(w.a)(mt.map(function(qe){return qe.column}));return R.createElement(Ot,Object.assign({},Ie),mt.map(function(qe,Lt){var nn=qe.column,$n=s(qe.colStart,qe.colEnd,hn,on,Me),ta;return nn&&nn.onHeaderCell&&(ta=qe.column.onHeaderCell(nn)),R.createElement(t.a,Object.assign({},qe,{ellipsis:nn.ellipsis,align:nn.align,component:Xt,prefixCls:Te,key:be[Lt]},$n,{additionalProps:ta,rowType:"header"}))}))}D.displayName="HeaderRow";var C=D;function v(vt){var mt=[];function on(ht,Je){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;mt[rt]=mt[rt]||[];var Te=Je,Me=ht.filter(Boolean).map(function(Ie){var be={key:Ie.key,className:Ie.className||"",children:Ie.title,column:Ie,colStart:Te},qe=1,Lt=Ie.children;return Lt&&Lt.length>0&&(qe=on(Lt,Te,rt+1).reduce(function(nn,$n){return nn+$n},0),be.hasSubColumns=!0),"colSpan"in Ie&&(qe=Ie.colSpan),"rowSpan"in Ie&&(be.rowSpan=Ie.rowSpan),be.colSpan=qe,be.colEnd=be.colStart+qe-1,mt[rt].push(be),Te+=qe,qe});return Me}on(vt,0);for(var hn=mt.length,Ot=function(Je){mt[Je].forEach(function(rt){!("rowSpan"in rt)&&!rt.hasSubColumns&&(rt.rowSpan=hn-Je)})},Xt=0;Xt=0;Je-=1){var rt=mt[Je],Te=on&&on[Je],Me=Te&&Te[h.a];(rt||Me||ht)&&(Ot.unshift(R.createElement("col",Object.assign({key:Je,style:{width:rt,minWidth:rt}},Me))),ht=!0)}return R.createElement("colgroup",null,Ot)}var x=g;function T(vt,mt){return Object(R.useMemo)(function(){for(var on=[],hn=0;hn1?te-1:0),se=1;se=Ie&&(Ea=Ie-be),ht({scrollLeft:Ea/Ie*(Me+2)}),Sa.current.x=Mt.pageX},qt=function(){var Mt=Object(pe.b)(Xt.current).top,Nn=Mt+Xt.current.offsetHeight,Bn=document.documentElement.scrollTop+window.innerHeight;Nn-Object(m.a)()<=Bn||Mt>=Bn-Je?ta(function(na){return Object(W.a)(Object(W.a)({},na),{},{isHiddenScrollBar:!0})}):ta(function(na){return Object(W.a)(Object(W.a)({},na),{},{isHiddenScrollBar:!1})})},Gn=function(Mt){ta(function(Nn){return Object(W.a)(Object(W.a)({},Nn),{},{scrollLeft:Mt/Me*Ie||0})})};return R.useImperativeHandle(on,function(){return{setScrollLeft:Gn}}),R.useEffect(function(){var qn=Object(Qe.a)(document.body,"mouseup",ze,!1),Mt=Object(Qe.a)(document.body,"mousemove",Sn,!1);return qt(),function(){qn.remove(),Mt.remove()}},[be,mn]),R.useEffect(function(){var qn=Object(Qe.a)(window,"scroll",qt,!1),Mt=Object(Qe.a)(window,"resize",qt,!1);return function(){qn.remove(),Mt.remove()}},[]),R.useEffect(function(){$n.isHiddenScrollBar||ta(function(qn){var Mt,Nn;return Object(W.a)(Object(W.a)({},qn),{},{scrollLeft:Xt.current.scrollLeft/((Mt=Xt.current)===null||Mt===void 0?void 0:Mt.scrollWidth)*((Nn=Xt.current)===null||Nn===void 0?void 0:Nn.clientWidth)})})},[$n.isHiddenScrollBar]),Me<=Ie||!be||$n.isHiddenScrollBar?null:R.createElement("div",{style:{height:Object(m.a)(),width:Ie,bottom:Je},className:"".concat(Te,"-sticky-scroll")},R.createElement("div",{onMouseDown:ct,ref:qe,className:p()("".concat(Te,"-sticky-scroll-bar"),Object(Q.a)({},"".concat(Te,"-sticky-scroll-bar-active"),mn)),style:{width:"".concat(be,"px"),transform:"translate3d(".concat($n.scrollLeft,"px, 0, 0)")}}))},Le=R.forwardRef(xe);function Ye(vt,mt){return R.useMemo(function(){var on=!!vt;return{isSticky:on,stickyClassName:on?"".concat(mt,"-sticky-header"):"",offsetHeader:Object(B.a)(vt)==="object"&&vt.offsetHeader||0,offsetScroll:Object(B.a)(vt)==="object"&&vt.offsetScroll||0}},[vt,mt])}var gt=[],Ct={},tn="rc-table-internal-hook",Zt=R.memo(function(vt){var mt=vt.children;return mt},function(vt,mt){return b()(vt.props,mt.props)?vt.pingLeft!==mt.pingLeft||vt.pingRight!==mt.pingRight:!1});function Hn(vt){var mt,on=vt.prefixCls,hn=vt.className,Ot=vt.rowClassName,Xt=vt.style,ht=vt.data,Je=vt.rowKey,rt=vt.scroll,Te=vt.tableLayout,Me=vt.direction,Ie=vt.title,be=vt.footer,qe=vt.summary,Lt=vt.id,nn=vt.showHeader,$n=vt.components,ta=vt.emptyText,Sa=vt.onRow,_n=vt.onHeaderRow,Bt=vt.internalHooks,mn=vt.transformColumns,Gt=vt.internalRefs,ze=vt.sticky,ct=ht||gt,Sn=!!ct.length,qt=R.useState(0),Gn=Object(O.a)(qt,2),qn=Gn[0],Mt=Gn[1];R.useEffect(function(){Mt(Object(m.a)())});var Nn=R.useMemo(function(){return Object(w.c)($n,{})},[$n]),Bn=R.useCallback(function(Va,Za){return Object(w.b)(Nn,Va)||Za},[Nn]),na=R.useMemo(function(){return typeof Je=="function"?Je:function(Va){var Za=Va&&Va[Je];return Za}},[Je]),Ea=Object(h.c)(vt),Pe=Ea.expandIcon,ye=Ea.expandedRowKeys,J=Ea.defaultExpandedRowKeys,q=Ea.defaultExpandAllRows,Z=Ea.expandedRowRender,oe=Ea.onExpand,Oe=Ea.onExpandedRowsChange,Re=Ea.expandRowByClick,ve=Ea.rowExpandable,bn=Ea.expandIconColumnIndex,kt=Ea.expandedRowClassName,at=Ea.childrenColumnName,Ht=Ea.indentSize,Fe=Pe||Ve,Un=at||"children",Fa=R.useMemo(function(){return Z?"row":vt.expandable&&Bt===tn&&vt.expandable.__PARENT_RENDER_ICON__||ct.some(function(Va){return Va&&Object(B.a)(Va)==="object"&&Va[Un]})?"nest":!1},[!!Z,ct]),fa=R.useState(function(){return J||(q?dt(ct,na,Un):[])}),ae=Object(O.a)(fa,2),z=ae[0],Y=ae[1],te=R.useMemo(function(){return new Set(ye||z||[])},[ye,z]),_e=R.useCallback(function(Va){var Za=na(Va,ct.indexOf(Va)),pa,Ja=te.has(Za);Ja?(te.delete(Za),pa=Object(k.a)(te)):pa=[].concat(Object(k.a)(te),[Za]),Y(pa),oe&&oe(!Ja,Va),Oe&&Oe(pa)},[na,te,ct,oe,Oe]),se=R.useState(0),ut=Object(O.a)(se,2),vn=ut[0],Wn=ut[1],Oa=Object(Se.b)(Object(W.a)(Object(W.a)(Object(W.a)({},vt),Ea),{},{expandable:!!Z,expandedKeys:te,getRowKey:na,onTriggerExpand:_e,expandIcon:Fe,expandIconColumnIndex:bn,direction:Me}),Bt===tn?mn:null),dn=Object(O.a)(Oa,2),Tn=dn[0],ya=dn[1],fr=R.useMemo(function(){return{columns:Tn,flattenColumns:ya}},[Tn,ya]),gr=R.useRef(),ir=R.useRef(),Qa=R.useRef(),ba=R.useState(!1),Na=Object(O.a)(ba,2),Ma=Na[0],Jt=Na[1],Rt=R.useState(!1),An=Object(O.a)(Rt,2),aa=An[0],ra=An[1],Fn=je(new Map),da=Object(O.a)(Fn,2),Ta=da[0],Wa=da[1],ue=Object(w.a)(ya),ot=ue.map(function(Va){return Ta.get(Va)}),lt=R.useMemo(function(){return ot},[ot.join("_")]),ft=Ae(lt,ya.length,Me),wt=rt&&Object(w.d)(rt.y),Et=rt&&Object(w.d)(rt.x),jt=Et&&ya.some(function(Va){var Za=Va.fixed;return Za}),Yt=R.useRef(),wn=Ye(ze,on),fn=wn.isSticky,zn=wn.offsetHeader,jn=wn.offsetScroll,$t=wn.stickyClassName,yn,pn,On;wt&&(pn={overflowY:"scroll",maxHeight:rt.y}),Et&&(yn={overflowX:"auto"},wt||(pn={overflowY:"hidden"}),On={width:rt.x===!0?"auto":rt.x,minWidth:"100%"});var cn=R.useCallback(function(Va,Za){Wa(function(pa){var Ja=new Map(pa);return Ja.set(Va,Za),Ja})},[]),sn=me(null),En=Object(O.a)(sn,2),Pn=En[0],Kn=En[1];function Vn(Va,Za){if(!Za)return;typeof Za=="function"?Za(Va):Za.scrollLeft!==Va&&(Za.scrollLeft=Va)}var ua=function(Za){var pa=Za.currentTarget,Ja=Za.scrollLeft,or=typeof Ja=="number"?Ja:pa.scrollLeft,Ln=pa||Ct;if(!Kn()||Kn()===Ln){var Wt;Pn(Ln),Vn(or,ir.current),Vn(or,Qa.current),Vn(or,(Wt=Yt.current)===null||Wt===void 0?void 0:Wt.setScrollLeft)}if(pa){var Rn=pa.scrollWidth,Ra=pa.clientWidth;Jt(or>0),ra(or0?[].concat(Object(W.a)(f),Object(W.a)(u(s).map(function(w){return Object(k.a)({fixed:l},w)}))):[].concat(Object(W.a)(f),[Object(k.a)(Object(k.a)({},i),{},{fixed:l})])},[])}function d(c){for(var f=!0,i=0;i=0;s-=1){var w=c[s];if(l&&w.fixed!=="right")l=!1;else if(!l&&w.fixed==="right"){Object(M.a)(!1,"Index ".concat(s+1," of `columns` missing `fixed='right'` prop."));break}}}function m(c){return c.map(function(f){var i=f.fixed,t=Object(B.a)(f,["fixed"]),l=i;return i==="left"?l="right":i==="right"&&(l="left"),Object(k.a)({fixed:l},t)})}function o(c,f){var i=c.prefixCls,t=c.columns,l=c.children,s=c.expandable,w=c.expandedKeys,D=c.getRowKey,C=c.onTriggerExpand,v=c.expandIcon,n=c.rowExpandable,_=c.expandIconColumnIndex,h=c.direction,g=c.expandRowByClick,x=O.useMemo(function(){return t||b(l)},[t,l]),T=O.useMemo(function(){if(s){var U,F=_||0,P=x[F],H=(U={},Object(Q.a)(U,a.a,{className:"".concat(i,"-expand-icon-col")}),Object(Q.a)(U,"title",""),Object(Q.a)(U,"fixed",P?P.fixed:null),Object(Q.a)(U,"className","".concat(i,"-row-expand-icon-cell")),Object(Q.a)(U,"render",function(G,K,$){var ie=D(K,$),le=w.has(ie),de=n?n(K):!0,Se=v({prefixCls:i,expanded:le,expandable:de,record:K,onExpand:C});return g?O.createElement("span",{onClick:function(et){return et.stopPropagation()}},Se):Se}),U),N=x.slice();return F>=0&&N.splice(F,0,H),N}return x},[s,x,D,w,v,h]),S=O.useMemo(function(){var U=T;return f&&(U=f(U)),U.length||(U=[{render:function(){return null}}]),U},[f,T,h]),E=O.useMemo(function(){return h==="rtl"?m(u(S)):u(S)},[S,h]);return[S,E]}re.b=o},x6Kt:function(Ge,re,y){var Q=y("y+Vt"),W=y("VpOo"),k=y("nPnh"),B=k.subPixelOptimizeRect,O={},R=Q.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(M,p){var a,b,u,d;this.subPixelOptimize?(B(O,p,this.style),a=O.x,b=O.y,u=O.width,d=O.height,O.r=p.r,p=O):(a=p.x,b=p.y,u=p.width,d=p.height),p.r?W.buildPath(M,p):M.rect(a,b,u,d),M.closePath();return}});Ge.exports=R},"y+Vt":function(Ge,re,y){var Q=y("Gev7"),W=y("bYtY"),k=y("IMiH"),B=y("2DNl"),O=y("3C/r"),R=O.prototype.getCanvasPattern,M=Math.abs,p=new k(!0);function a(u){Q.call(this,u),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(u,d){var m=this.style,o=this.path||p,c=m.hasStroke(),f=m.hasFill(),i=m.fill,t=m.stroke,l=f&&!!i.colorStops,s=c&&!!t.colorStops,w=f&&!!i.image,D=c&&!!t.image;if(m.bind(u,this,d),this.setTransform(u),this.__dirty){var C;l&&(C=C||this.getBoundingRect(),this._fillGradient=m.getGradient(u,i,C)),s&&(C=C||this.getBoundingRect(),this._strokeGradient=m.getGradient(u,t,C))}l?u.fillStyle=this._fillGradient:w&&(u.fillStyle=R.call(i,u)),s?u.strokeStyle=this._strokeGradient:D&&(u.strokeStyle=R.call(t,u));var v=m.lineDash,n=m.lineDashOffset,_=!!u.setLineDash,h=this.getGlobalScale();if(o.setScale(h[0],h[1],this.segmentIgnoreThreshold),this.__dirtyPath||v&&!_&&c?(o.beginPath(u),v&&!_&&(o.setLineDash(v),o.setLineDashOffset(n)),this.buildPath(o,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(u.beginPath(),this.path.rebuildPath(u)),f)if(m.fillOpacity!=null){var g=u.globalAlpha;u.globalAlpha=m.fillOpacity*m.opacity,o.fill(u),u.globalAlpha=g}else o.fill(u);if(v&&_&&(u.setLineDash(v),u.lineDashOffset=n),c)if(m.strokeOpacity!=null){var g=u.globalAlpha;u.globalAlpha=m.strokeOpacity*m.opacity,o.stroke(u),u.globalAlpha=g}else o.stroke(u);v&&_&&u.setLineDash([]),m.text!=null&&(this.restoreTransform(u),this.drawRectText(u,this.getBoundingRect()))},buildPath:function(u,d,m){},createPathProxy:function(){this.path=new k},getBoundingRect:function(){var u=this._rect,d=this.style,m=!u;if(m){var o=this.path;o||(o=this.path=new k),this.__dirtyPath&&(o.beginPath(),this.buildPath(o,this.shape,!1)),u=o.getBoundingRect()}if(this._rect=u,d.hasStroke()){var c=this._rectWithStroke||(this._rectWithStroke=u.clone());if(this.__dirty||m){c.copy(u);var f=d.lineWidth,i=d.strokeNoScale?this.getLineScale():1;d.hasFill()||(f=Math.max(f,this.strokeContainThreshold||4)),i>1e-10&&(c.width+=f/i,c.height+=f/i,c.x-=f/i/2,c.y-=f/i/2)}return c}return u},contain:function(u,d){var m=this.transformCoordToLocal(u,d),o=this.getBoundingRect(),c=this.style;if(u=m[0],d=m[1],o.contain(u,d)){var f=this.path.data;if(c.hasStroke()){var i=c.lineWidth,t=c.strokeNoScale?this.getLineScale():1;if(t>1e-10&&(c.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),B.containStroke(f,i/t,u,d)))return!0}if(c.hasFill())return B.contain(f,u,d)}return!1},dirty:function(u){u==null&&(u=!0),u&&(this.__dirtyPath=u,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(u){return this.animate("shape",u)},attrKV:function(u,d){u==="shape"?(this.setShape(d),this.__dirtyPath=!0,this._rect=null):Q.prototype.attrKV.call(this,u,d)},setShape:function(u,d){var m=this.shape;if(m){if(W.isObject(u))for(var o in u)u.hasOwnProperty(o)&&(m[o]=u[o]);else m[u]=d;this.dirty(!0)}return this},getLineScale:function(){var u=this.transform;return u&&M(u[0]-1)>1e-10&&M(u[3]-1)>1e-10?Math.sqrt(M(u[0]*u[3]-u[2]*u[1])):1}},a.extend=function(u){var d=function(o){a.call(this,o),u.style&&this.style.extendFrom(u.style,!1);var c=u.shape;if(c){this.shape=this.shape||{};var f=this.shape;for(var i in c)!f.hasOwnProperty(i)&&c.hasOwnProperty(i)&&(f[i]=c[i])}u.init&&u.init.call(this,o)};W.inherits(d,a);for(var m in u)m!=="style"&&m!=="shape"&&(d.prototype[m]=u[m]);return d},W.inherits(a,Q);var b=a;Ge.exports=b},"y0+3":function(Ge,re,y){"use strict";y.d(re,"a",function(){return u}),y.d(re,"b",function(){return m});var Q=/margin|padding|width|height|max|min|offset/,W={left:!0,top:!0},k={cssFloat:1,styleFloat:1,float:1};function B(o){return o.nodeType===1?o.ownerDocument.defaultView.getComputedStyle(o,null):{}}function O(o,c,f){if(c=c.toLowerCase(),f==="auto"){if(c==="height")return o.offsetHeight;if(c==="width")return o.offsetWidth}return c in W||(W[c]=Q.test(c)),W[c]?parseFloat(f)||0:f}function R(o,c){var f=arguments.length,i=B(o);return c=k[c]?"cssFloat"in o.style?"cssFloat":"styleFloat":c,f===1?i:O(o,c,i[c]||o.style[c])}function M(o,c,f){var i=arguments.length;if(c=k[c]?"cssFloat"in o.style?"cssFloat":"styleFloat":c,i===3)return typeof f=="number"&&Q.test(c)&&(f="".concat(f,"px")),o.style[c]=f,f;for(var t in c)c.hasOwnProperty(t)&&M(o,t,c[t]);return B(o)}function p(o){return o===document.body?document.documentElement.clientWidth:o.offsetWidth}function a(o){return o===document.body?window.innerHeight||document.documentElement.clientHeight:o.offsetHeight}function b(){var o=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),c=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:o,height:c}}function u(){var o=document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight;return{width:o,height:c}}function d(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function m(o){var c=o.getBoundingClientRect(),f=document.documentElement;return{left:c.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:c.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}},y23F:function(Ge,re){function y(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}y.prototype={constructor:y,_dragStart:function(k){for(var B=k.target;B&&!B.draggable;)B=B.parent;B&&(this._draggingTarget=B,B.dragging=!0,this._x=k.offsetX,this._y=k.offsetY,this.dispatchToElement(Q(B,k),"dragstart",k.event))},_drag:function(k){var B=this._draggingTarget;if(B){var O=k.offsetX,R=k.offsetY,M=O-this._x,p=R-this._y;this._x=O,this._y=R,B.drift(M,p,k),this.dispatchToElement(Q(B,k),"drag",k.event);var a=this.findHover(O,R,B).target,b=this._dropTarget;this._dropTarget=a,B!==a&&(b&&a!==b&&this.dispatchToElement(Q(b,k),"dragleave",k.event),a&&a!==b&&this.dispatchToElement(Q(a,k),"dragenter",k.event))}},_dragEnd:function(k){var B=this._draggingTarget;B&&(B.dragging=!1),this.dispatchToElement(Q(B,k),"dragend",k.event),this._dropTarget&&this.dispatchToElement(Q(this._dropTarget,k),"drop",k.event),this._draggingTarget=null,this._dropTarget=null}};function Q(k,B){return{target:k,topTarget:B&&B.topTarget}}var W=y;Ge.exports=W},yslc:function(Ge,re){Ge.exports="data:image/png;base64,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"},yxFR:function(Ge,re,y){var Q=y("y+Vt"),W=y("nPnh"),k=W.subPixelOptimizeLine,B={},O=Q.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(R,M){var p,a,b,u;this.subPixelOptimize?(k(B,M,this.style),p=B.x1,a=B.y1,b=B.x2,u=B.y2):(p=M.x1,a=M.y1,b=M.x2,u=M.y2);var d=M.percent;if(d===0)return;R.moveTo(p,a),d<1&&(b=p*(1-d)+b*d,u=a*(1-d)+u*d),R.lineTo(b,u)},pointAt:function(R){var M=this.shape;return[M.x1*(1-R)+M.x2*R,M.y1*(1-R)+M.y2*R]}});Ge.exports=O},zarK:function(Ge,re,y){var Q=y("YH21"),W=Q.addEventListener,k=Q.removeEventListener,B=Q.normalizeEvent,O=Q.getNativeEvent,R=y("bYtY"),M=y("H6uX"),p=y("ItGF"),a=300,b=p.domSupported,u=function(){var E=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],U=["touchstart","touchend","touchmove"],F={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},P=R.map(E,function(H){var N=H.replace("mouse","pointer");return F.hasOwnProperty(N)?N:H});return{mouse:E,touch:U,pointer:P}}(),d={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function m(E){return E==="mousewheel"&&p.browser.firefox?"DOMMouseScroll":E}function o(E){var U=E.pointerType;return U==="pen"||U==="touch"}function c(E){E.touching=!0,E.touchTimer!=null&&(clearTimeout(E.touchTimer),E.touchTimer=null),E.touchTimer=setTimeout(function(){E.touching=!1,E.touchTimer=null},700)}function f(E){E&&(E.zrByTouch=!0)}function i(E,U){return B(E.dom,new l(E,U),!0)}function t(E,U){for(var F=U,P=!1;F&&F.nodeType!==9&&!(P=F.domBelongToZr||F!==U&&F===E.painterRoot);)F=F.parentNode;return P}function l(E,U){this.type=U.type,this.target=this.currentTarget=E.dom,this.pointerType=U.pointerType,this.clientX=U.clientX,this.clientY=U.clientY}var s=l.prototype;s.stopPropagation=s.stopImmediatePropagation=s.preventDefault=R.noop;var w={mousedown:function(E){E=B(this.dom,E),this._mayPointerCapture=[E.zrX,E.zrY],this.trigger("mousedown",E)},mousemove:function(E){E=B(this.dom,E);var U=this._mayPointerCapture;U&&(E.zrX!==U[0]||E.zrY!==U[1])&&h(this,!0),this.trigger("mousemove",E)},mouseup:function(E){E=B(this.dom,E),h(this,!1),this.trigger("mouseup",E)},mouseout:function(E){E=B(this.dom,E),this._pointerCapturing&&(E.zrEventControl="no_globalout");var U=E.toElement||E.relatedTarget;E.zrIsToLocalDOM=t(this,U),this.trigger("mouseout",E)},touchstart:function(E){E=B(this.dom,E),f(E),this._lastTouchMoment=new Date,this.handler.processGesture(E,"start"),w.mousemove.call(this,E),w.mousedown.call(this,E)},touchmove:function(E){E=B(this.dom,E),f(E),this.handler.processGesture(E,"change"),w.mousemove.call(this,E)},touchend:function(E){E=B(this.dom,E),f(E),this.handler.processGesture(E,"end"),w.mouseup.call(this,E),+new Date-this._lastTouchMoment0?a.cmdState[a.cmdState.length-1]:null}function R(a){var i=a.cmdState.pop();i&&i.closeBracket()}function P(a){for(var i=a.cmdState,d=i.length-1;d>=0;d--){var s=i[d];if(s.name=="DEFAULT")continue;return s}return{styleIdentifier:function(){return null}}}function m(a,i,d){return function(){this.name=a,this.bracketNo=0,this.style=i,this.styles=d,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var t={};t.importmodule=m("importmodule","tag",["string","builtin"]),t.documentclass=m("documentclass","tag",["","atom"]),t.usepackage=m("usepackage","tag",["atom"]),t.begin=m("begin","tag",["atom"]),t.end=m("end","tag",["atom"]),t.label=m("label","tag",["atom"]),t.ref=m("ref","tag",["atom"]),t.eqref=m("eqref","tag",["atom"]),t.cite=m("cite","tag",["atom"]),t.bibitem=m("bibitem","tag",["atom"]),t.Bibitem=m("Bibitem","tag",["atom"]),t.RBibitem=m("RBibitem","tag",["atom"]),t.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function b(a,i){a.f=i}function o(a,i){var d;if(a.match(/^\\[a-zA-Z@]+/)){var s=a.current().slice(1);return d=t.hasOwnProperty(s)?t[s]:t.DEFAULT,d=new d,F(i,d),b(i,f),d.style}if(a.match(/^\\[$&%#{}_]/))return"tag";if(a.match(/^\\[,;!\/\\]/))return"tag";if(a.match("\\["))return b(i,function(l,c){return u(l,c,"\\]")}),"keyword";if(a.match("\\("))return b(i,function(l,c){return u(l,c,"\\)")}),"keyword";if(a.match("$$"))return b(i,function(l,c){return u(l,c,"$$")}),"keyword";if(a.match("$"))return b(i,function(l,c){return u(l,c,"$")}),"keyword";var n=a.next();if(n=="%")return a.skipToEnd(),"comment";if(n=="}"||n=="]"){if(d=T(i),d)d.closeBracket(n),b(i,f);else return"error";return"bracket"}else return n=="{"||n=="["?(d=t.DEFAULT,d=new d,F(i,d),"bracket"):/\d/.test(n)?(a.eatWhile(/[\w.%]/),"atom"):(a.eatWhile(/[\w\-_]/),d=P(i),d.name=="begin"&&(d.argument=a.current()),d.styleIdentifier())}function u(a,i,d){if(a.eatSpace())return null;if(d&&a.match(d))return b(i,o),"keyword";if(a.match(/^\\[a-zA-Z@]+/))return"tag";if(a.match(/^[a-zA-Z]+/))return"variable-2";if(a.match(/^\\[$&%#{}_]/))return"tag";if(a.match(/^\\[,;!\/]/))return"tag";if(a.match(/^[\^_&]/))return"tag";if(a.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(a.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var s=a.next();return s=="{"||s=="}"||s=="["||s=="]"||s=="("||s==")"?"bracket":s=="%"?(a.skipToEnd(),"comment"):"error"}function f(a,i){var d=a.peek(),s;return d=="{"||d=="["?(s=T(i),s.openBracket(d),a.eat(d),b(i,o),"bracket"):/[ \t\r]/.test(d)?(a.eat(d),null):(b(i,o),R(i),o(a,i))}return{startState:function(){var a=I.inMathMode?function(i,d){return u(i,d)}:o;return{cmdState:[],f:a}},copyState:function(a){return{cmdState:a.cmdState.slice(),f:a.f}},token:function(a,i){return i.f(a,i)},blankLine:function(a){a.f=o,a.cmdState.length=0},lineComment:"%"}}),Y.defineMIME("text/x-stex","stex"),Y.defineMIME("text/x-latex","stex")})},"+ua5":function(Be,J,L){},"/cxE":function(Be,J,L){"use strict";L.d(J,"f",function(){return I}),L.d(J,"g",function(){return F}),L.d(J,"h",function(){return T}),L.d(J,"e",function(){return P}),L.d(J,"b",function(){return m}),L.d(J,"c",function(){return t}),L.d(J,"d",function(){return b}),L.d(J,"a",function(){return o});class Y{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(u){setTimeout(()=>{throw u.stack?new Error(u.message+` -`+u.stack):u},0)}}emit(u){this.listeners.forEach(f=>{f(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}const B=new Y;function I(u){P(u)||B.onUnexpectedError(u);return}function F(u){P(u)||B.onUnexpectedExternalError(u);return}function T(u){if(u instanceof Error){let{name:f,message:a}=u;const i=u.stacktrace||u.stack;return{$isError:!0,name:f,message:a,stack:i}}return u}const R="Canceled";function P(u){return u instanceof Error&&u.name===R&&u.message===R}function m(){const u=new Error(R);return u.name=u.message,u}function t(u){return u?new Error(`Illegal argument: ${u}`):new Error("Illegal argument")}function b(u){return u?new Error(`Illegal state: ${u}`):new Error("Illegal state")}class o extends Error{constructor(u){super("NotSupported");u&&(this.message=u)}}},"06Qe":function(Be,J,L){var Y=L("ItGF"),B="urn:schemas-microsoft-com:vml",I=typeof window=="undefined"?null:window,F=!1,T=I&&I.document;function R(t){return P(t)}var P;if(T&&!Y.canvasSupported)try{!T.namespaces.zrvml&&T.namespaces.add("zrvml",B),P=function(t){return T.createElement("')}}catch(t){P=function(b){return T.createElement("<"+b+' xmlns="'+B+'" class="zrvml">')}}function m(){if(F||!T)return;F=!0;var t=T.styleSheets;t.length<31?T.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}J.doc=T,J.createNode=R,J.initVML=m},"0s+r":function(Be,J,L){var Y=L("bYtY"),B=L("QBsz"),I=L("y23F"),F=L("H6uX"),T=L("YH21"),R=L("C0SR"),P="silent";function m(d,s,n){return{type:d,event:n,target:s.target,topTarget:s.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:t}}function t(){T.stop(this.event)}function b(){}b.prototype.dispose=function(){};var o=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],u=function(d,s,n,l){F.call(this),this.storage=d,this.painter=s,this.painterRoot=l,n=n||new b,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,I.call(this),this.setHandlerProxy(n)};u.prototype={constructor:u,setHandlerProxy:function(d){this.proxy&&this.proxy.dispose(),d&&(Y.each(o,function(s){d.on&&d.on(s,this[s],this)},this),d.handler=this),this.proxy=d},mousemove:function(d){var s=d.zrX,n=d.zrY,l=a(this,s,n),c=this._hovered,x=c.target;x&&!x.__zr&&(c=this.findHover(c.x,c.y),x=c.target);var A=this._hovered=l?{x:s,y:n}:this.findHover(s,n),C=A.target,k=this.proxy;k.setCursor&&k.setCursor(C?C.cursor:"default"),x&&C!==x&&this.dispatchToElement(c,"mouseout",d),this.dispatchToElement(A,"mousemove",d),C&&C!==x&&this.dispatchToElement(A,"mouseover",d)},mouseout:function(d){var s=d.zrEventControl,n=d.zrIsToLocalDOM;s!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",d),s!=="no_globalout"&&(!n&&this.trigger("globalout",{type:"globalout",event:d}))},resize:function(d){this._hovered={}},dispatch:function(d,s){var n=this[d];n&&n.call(this,s)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(d){var s=this.proxy;s.setCursor&&s.setCursor(d)},dispatchToElement:function(d,s,n){d=d||{};var l=d.target;if(l&&l.silent)return;for(var c="on"+s,x=m(s,d,n);l&&!(l[c]&&(x.cancelBubble=l[c].call(l,x)),l.trigger(s,x),l=l.parent,x.cancelBubble););x.cancelBubble||(this.trigger(s,x),this.painter&&this.painter.eachOtherLayer(function(A){typeof A[c]=="function"&&A[c].call(A,x),A.trigger&&A.trigger(s,x)}))},findHover:function(d,s,n){for(var l=this.storage.getDisplayList(),c={x:d,y:s},x=l.length-1;x>=0;x--){var A;if(l[x]!==n&&!l[x].ignore&&(A=f(l[x],d,s))&&(!c.topTarget&&(c.topTarget=l[x]),A!==P)){c.target=l[x];break}}return c},processGesture:function(d,s){this._gestureMgr||(this._gestureMgr=new R);var n=this._gestureMgr;s==="start"&&n.clear();var l=n.recognize(d,this.findHover(d.zrX,d.zrY,null).target,this.proxy.dom);if(s==="end"&&n.clear(),l){var c=l.type;d.gestureEvent=c,this.dispatchToElement({target:l.target},c,l.event)}}},Y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(d){u.prototype[d]=function(s){var n=s.zrX,l=s.zrY,c=a(this,n,l),x,A;if((d!=="mouseup"||!c)&&(x=this.findHover(n,l),A=x.target),d==="mousedown")this._downEl=A,this._downPoint=[s.zrX,s.zrY],this._upEl=A;else if(d==="mouseup")this._upEl=A;else if(d==="click"){if(this._downEl!==this._upEl||!this._downPoint||B.dist(this._downPoint,[s.zrX,s.zrY])>4)return;this._downPoint=null}this.dispatchToElement(x,d,s)}});function f(d,s,n){if(d[d.rectHover?"rectContain":"contain"](s,n)){for(var l=d,c;l;){if(l.clipPath&&!l.clipPath.contain(s,n))return!1;l.silent&&(c=!0),l=l.parent}return c?P:!0}return!1}function a(d,s,n){var l=d.painter;return s<0||s>l.getWidth()||n<0||n>l.getHeight()}Y.mixin(u,F),Y.mixin(u,I);var i=u;Be.exports=i},"19Vz":function(Be,J,L){(function(Y){Y(L("VrN/"))})(function(Y){Y.defineOption("placeholder","",function(m,t,b){var o=b&&b!=Y.Init;if(t&&!o)m.on("blur",T),m.on("change",R),m.on("swapDoc",R),Y.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){F(m)}),R(m);else if(!t&&o){m.off("blur",T),m.off("change",R),m.off("swapDoc",R),Y.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),B(m);var u=m.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}t&&!m.hasFocus()&&T(m)});function B(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function I(m){B(m);var t=m.state.placeholder=document.createElement("pre");t.style.cssText="height: 0; overflow: visible",t.style.direction=m.getOption("direction"),t.className="CodeMirror-placeholder CodeMirror-line-like";var b=m.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),t.appendChild(b),m.display.lineSpace.insertBefore(t,m.display.lineSpace.firstChild)}function F(m){setTimeout(function(){var t=!1,b=m.getInputField();b.nodeName=="TEXTAREA"?t=!b.value:m.lineCount()==1&&(t=!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)),t?I(m):B(m)},20)}function T(m){P(m)&&I(m)}function R(m){var t=m.getWrapperElement(),b=P(m);t.className=t.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?I(m):B(m)}function P(m){return m.lineCount()===1&&m.getLine(0)===""}})},"1Jh7":function(Be,J,L){var Y=L("y+Vt"),B=L("T6xi"),I=Y.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(F,T){B.buildPath(F,T,!1)}});Be.exports=I},"1MYJ":function(Be,J,L){var Y=L("y+Vt"),B=Y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var I=this.__dirtyPath,F=this.shape.paths,T=0;T=this._maxSize&&o>0){var f=m.head;m.remove(f),delete t[f.key],b=f.value,this._lastRemovedEntry=f}u?u.value=P:u=new B(P),u.key=R,m.insertEntry(u),t[R]=u}return b},F.get=function(R){var P=this._map[R],m=this._list;if(P!=null)return P!==m.tail&&(m.remove(P),m.insertEntry(P)),P.value},F.clear=function(){this._list.clear(),this._map={}};var T=I;Be.exports=T},"1ZF9":function(Be,J,L){Be.exports=L.p+"static/Authorize.cc9c212f.png"},"1bdT":function(Be,J,L){var Y=L("3gBT"),B=L("H6uX"),I=L("DN4a"),F=L("vWvF"),T=L("bYtY"),R=function(m){I.call(this,m),B.call(this,m),F.call(this,m),this.id=m.id||Y()};R.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(m,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":m=0;break}var b=this.transform;b||(b=this.transform=[1,0,0,1,0,0]),b[4]+=m,b[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(m,t){},attrKV:function(m,t){if(m==="position"||m==="scale"||m==="origin"){if(t){var b=this[m];b||(b=this[m]=[]),b[0]=t[0],b[1]=t[1]}}else this[m]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(m,t){if(typeof m=="string")this.attrKV(m,t);else if(T.isObject(m))for(var b in m)m.hasOwnProperty(b)&&this.attrKV(b,m[b]);return this.dirty(!1),this},setClipPath:function(m){var t=this.__zr;t&&m.addSelfToZr(t),this.clipPath&&this.clipPath!==m&&this.removeClipPath(),this.clipPath=m,m.__zr=t,m.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var m=this.clipPath;m&&(m.__zr&&m.removeSelfFromZr(m.__zr),m.__zr=null,m.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(m){this.__zr=m;var t=this.animators;if(t)for(var b=0;b")):null:v.match("--")?E(i("comment","-->")):v.match("DOCTYPE",!0,!0)?(v.eatWhile(/[\w\._\-]/),E(d(1))):null:v.eat("?")?(v.eatWhile(/[\w\._\-]/),_.tokenize=i("meta","?>"),"meta"):(b=v.eat("/")?"closeTag":"openTag",_.tokenize=f,"tag bracket");if(g=="&"){var j;return v.eat("#")?v.eat("x")?j=v.eatWhile(/[a-fA-F\d]/)&&v.eat(";"):j=v.eatWhile(/[\d]/)&&v.eat(";"):j=v.eatWhile(/[\w\.\-:]/)&&v.eat(";"),j?"atom":"error"}else return v.eatWhile(/[^&<]/),null}u.isInText=!0;function f(v,_){var E=v.next();if(E==">"||E=="/"&&v.eat(">"))return _.tokenize=u,b=E==">"?"endTag":"selfcloseTag","tag bracket";if(E=="=")return b="equals",null;if(E=="<"){_.tokenize=u,_.state=c,_.tagName=_.tagStart=null;var g=_.tokenize(v,_);return g?g+" tag error":"tag error"}else return/[\'\"]/.test(E)?(_.tokenize=a(E),_.stringStartCol=v.column(),_.tokenize(v,_)):(v.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function a(v){var _=function(E,g){for(;!E.eol();)if(E.next()==v){g.tokenize=f;break}return"string"};return _.isInAttribute=!0,_}function i(v,_){return function(E,g){for(;!E.eol();){if(E.match(_)){g.tokenize=u;break}E.next()}return v}}function d(v){return function(_,E){for(var g;(g=_.next())!=null;){if(g=="<")return E.tokenize=d(v+1),E.tokenize(_,E);if(g==">")if(v==1){E.tokenize=u;break}else return E.tokenize=d(v-1),E.tokenize(_,E)}return"meta"}}function s(v,_,E){this.prev=v.context,this.tagName=_,this.indent=v.indented,this.startOfLine=E,(P.doNotIndent.hasOwnProperty(_)||v.context&&v.context.noIndent)&&(this.noIndent=!0)}function n(v){v.context&&(v.context=v.context.prev)}function l(v,_){for(var E;;){if(!v.context)return;if(E=v.context.tagName,!P.contextGrabbers.hasOwnProperty(E)||!P.contextGrabbers[E].hasOwnProperty(_))return;n(v)}}function c(v,_,E){return v=="openTag"?(E.tagStart=_.column(),x):v=="closeTag"?A:c}function x(v,_,E){return v=="word"?(E.tagName=_.current(),o="tag",w):P.allowMissingTagName&&v=="endTag"?(o="tag bracket",w(v,_,E)):(o="error",x)}function A(v,_,E){if(v=="word"){var g=_.current();return E.context&&E.context.tagName!=g&&P.implicitlyClosed.hasOwnProperty(E.context.tagName)&&n(E),E.context&&E.context.tagName==g||P.matchClosing===!1?(o="tag",C):(o="tag error",k)}else return P.allowMissingTagName&&v=="endTag"?(o="tag bracket",C(v,_,E)):(o="error",k)}function C(v,_,E){return v!="endTag"?(o="error",C):(n(E),c)}function k(v,_,E){return o="error",C(v,_,E)}function w(v,_,E){if(v=="word")return o="attribute",y;if(v=="endTag"||v=="selfcloseTag"){var g=E.tagName,j=E.tagStart;return E.tagName=E.tagStart=null,v=="selfcloseTag"||P.autoSelfClosers.hasOwnProperty(g)?l(E,g):(l(E,g),E.context=new s(E,g,j==E.indented)),c}return o="error",w}function y(v,_,E){return v=="equals"?h:(P.allowMissing||(o="error"),w(v,_,E))}function h(v,_,E){return v=="string"?p:v=="word"&&P.allowUnquoted?(o="string",w):(o="error",w(v,_,E))}function p(v,_,E){return v=="string"?p:w(v,_,E)}return{startState:function(v){var _={tokenize:u,state:c,indented:v||0,tagName:null,tagStart:null,context:null};return v!=null&&(_.baseIndent=v),_},token:function(v,_){if(!_.tagName&&v.sol()&&(_.indented=v.indentation()),v.eatSpace())return null;b=null;var E=_.tokenize(v,_);return(E||b)&&E!="comment"&&(o=null,_.state=_.state(b||E,v,_),o&&(E=o=="error"?E+" error":o)),E},indent:function(v,_,E){var g=v.context;if(v.tokenize.isInAttribute)return v.tagStart==v.indented?v.stringStartCol+1:v.indented+R;if(g&&g.noIndent)return Y.Pass;if(v.tokenize!=f&&v.tokenize!=u)return E?E.match(/^(\s*)/)[0].length:0;if(v.tagName)return P.multilineTagIndentPastTag!==!1?v.tagStart+v.tagName.length+2:v.tagStart+R*(P.multilineTagIndentFactor||1);if(P.alignCDATA&&/$/,blockCommentStart:"",configuration:P.htmlMode?"html":"xml",helperType:P.htmlMode?"html":"xml",skipAttribute:function(v){v.state==h&&(v.state=w)},xmlCurrentTag:function(v){return v.tagName?{name:v.tagName,close:v.type=="closeTag"}:null},xmlCurrentContext:function(v){for(var _=[],E=v.context;E;E=E.prev)E.tagName&&_.push(E.tagName);return _.reverse()}}}),Y.defineMIME("text/xml","xml"),Y.defineMIME("application/xml","xml"),Y.mimeModes.hasOwnProperty("text/html")||Y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Be,J,L){"use strict";L.d(J,"d",function(){return ct}),L.d(J,"b",function(){return Se}),L.d(J,"c",function(){return Et}),L.d(J,"a",function(){return on});var Y=L("VTBJ"),B=L("1OyB"),I=L("vuIU"),F=L("JX7q"),T=L("Ji7U"),R=L("LK+K"),P=L("q1tI"),m=L("I8Z2"),t=L("BGR+"),b=L("wx14"),o=L("rePB"),u=L("4IlW"),f=L("2GS6"),a=L("Gytx"),i=L.n(a),d=L("TSYQ"),s=L.n(d),n=L("U8pU"),l=L("ODXe"),c=/iPhone/i,x=/iPod/i,A=/iPad/i,C=/\bAndroid(?:.+)Mobile\b/i,k=/Android/i,w=/\bAndroid(?:.+)SD4930UR\b/i,y=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,p=/\bWindows(?:.+)ARM\b/i,v=/BlackBerry/i,_=/BB10/i,E=/Opera Mini/i,g=/\b(CriOS|Chrome)(?:.+)Mobile/i,j=/Mobile(?:.+)Firefox\b/i;function U(Kt,Ot){return Kt.test(Ot)}function S(Kt){var Ot=Kt||(typeof navigator!="undefined"?navigator.userAgent:""),At=Ot.split("[FBAN");if(typeof At[1]!="undefined"){var ft=At,be=Object(l.a)(ft,1);Ot=be[0]}if(At=Ot.split("Twitter"),typeof At[1]!="undefined"){var Fe=At,Nt=Object(l.a)(Fe,1);Ot=Nt[0]}var yt={apple:{phone:U(c,Ot)&&!U(h,Ot),ipod:U(x,Ot),tablet:!U(c,Ot)&&U(A,Ot)&&!U(h,Ot),device:(U(c,Ot)||U(x,Ot)||U(A,Ot))&&!U(h,Ot)},amazon:{phone:U(w,Ot),tablet:!U(w,Ot)&&U(y,Ot),device:U(w,Ot)||U(y,Ot)},android:{phone:!U(h,Ot)&&U(w,Ot)||!U(h,Ot)&&U(C,Ot),tablet:!U(h,Ot)&&!U(w,Ot)&&!U(C,Ot)&&(U(y,Ot)||U(k,Ot)),device:!U(h,Ot)&&(U(w,Ot)||U(y,Ot)||U(C,Ot)||U(k,Ot))||U(/\bokhttp\b/i,Ot)},windows:{phone:U(h,Ot),tablet:U(p,Ot),device:U(h,Ot)||U(p,Ot)},other:{blackberry:U(v,Ot),blackberry10:U(_,Ot),opera:U(E,Ot),firefox:U(j,Ot),chrome:U(g,Ot),device:U(v,Ot)||U(_,Ot)||U(E,Ot)||U(j,Ot)||U(g,Ot)},any:null,phone:null,tablet:null};return yt.any=yt.apple.device||yt.android.device||yt.windows.device||yt.other.device,yt.phone=yt.apple.phone||yt.android.phone||yt.windows.phone,yt.tablet=yt.apple.tablet||yt.android.tablet||yt.windows.tablet,yt}var z=Object(Y.a)(Object(Y.a)({},S()),{},{isMobile:S}),H=z;function M(){}function V(Kt,Ot,At){var ft=Ot||"";return Kt.key||"".concat(ft,"item_").concat(At)}function K(Kt){return"".concat(Kt,"-menu-")}function $(Kt,Ot){var At=-1;P.Children.forEach(Kt,function(ft){At+=1,ft&&ft.type&&ft.type.isMenuItemGroup?P.Children.forEach(ft.props.children,function(be){At+=1,Ot(be,At)}):Ot(ft,At)})}function Z(Kt,Ot,At){if(!Kt||At.find)return;P.Children.forEach(Kt,function(ft){if(ft){var be=ft.type;if(!be||!(be.isSubMenu||be.isMenuItem||be.isMenuItemGroup))return;Ot.indexOf(ft.key)!==-1?At.find=!0:ft.props.children&&Z(ft.props.children,Ot,At)}})}var me=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],oe=function(Ot){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=Ot&&typeof Ot.getBoundingClientRect=="function"&&Ot.getBoundingClientRect().width;if(ft){if(At){var be=getComputedStyle(Ot),Fe=be.marginLeft,Nt=be.marginRight;ft+=+Fe.replace("px","")+ +Nt.replace("px","")}ft=+ft.toFixed(6)}return ft||0},fe=function(Ot,At,ft){Ot&&Object(n.a)(Ot.style)==="object"&&(Ot.style[At]=ft)},ye=function(){return H.any},Ie=L("KQm4"),ve=L("Ff2n"),de=L("i8i4"),Qe=L("bdgK"),Rt=L("uciX"),Ee=L("8XRh"),Me={adjustX:1,adjustY:1},nt={topLeft:{points:["bl","tl"],overflow:Me,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Me,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Me,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Me,offset:[4,0]}},He={topLeft:{points:["bl","tl"],overflow:Me,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Me,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Me,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Me,offset:[4,0]}},ke=nt,ht=0,ie={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},xe=function(Ot,At,ft){var be=K(At),Fe=Ot.getState();Ot.setState({defaultActiveFirst:Object(Y.a)(Object(Y.a)({},Fe.defaultActiveFirst),{},Object(o.a)({},be,ft))})},we=function(Kt){Object(T.a)(At,Kt);var Ot=Object(R.a)(At);function At(ft){var be;Object(B.a)(this,At),be=Ot.call(this,ft),be.onDestroy=function(Ge){be.props.onDestroy(Ge)},be.onKeyDown=function(Ge){var lt=Ge.keyCode,It=be.menuInstance,Wt=be.props,sn=Wt.isOpen,vn=Wt.store;if(lt===u.a.ENTER)return be.onTitleClick(Ge),xe(vn,be.props.eventKey,!0),!0;if(lt===u.a.RIGHT)return sn?It.onKeyDown(Ge):(be.triggerOpenChange(!0),xe(vn,be.props.eventKey,!0)),!0;if(lt===u.a.LEFT){var tr;if(sn)tr=It.onKeyDown(Ge);else return;return tr||(be.triggerOpenChange(!1),tr=!0),tr}return sn&&(lt===u.a.UP||lt===u.a.DOWN)?It.onKeyDown(Ge):void 0},be.onOpenChange=function(Ge){be.props.onOpenChange(Ge)},be.onPopupVisibleChange=function(Ge){be.triggerOpenChange(Ge,Ge?"mouseenter":"mouseleave")},be.onMouseEnter=function(Ge){var lt=be.props,It=lt.eventKey,Wt=lt.onMouseEnter,sn=lt.store;xe(sn,be.props.eventKey,!1),Wt({key:It,domEvent:Ge})},be.onMouseLeave=function(Ge){var lt=be.props,It=lt.parentMenu,Wt=lt.eventKey,sn=lt.onMouseLeave;It.subMenuInstance=Object(F.a)(be),sn({key:Wt,domEvent:Ge})},be.onTitleMouseEnter=function(Ge){var lt=be.props,It=lt.eventKey,Wt=lt.onItemHover,sn=lt.onTitleMouseEnter;Wt({key:It,hover:!0}),sn({key:It,domEvent:Ge})},be.onTitleMouseLeave=function(Ge){var lt=be.props,It=lt.parentMenu,Wt=lt.eventKey,sn=lt.onItemHover,vn=lt.onTitleMouseLeave;It.subMenuInstance=Object(F.a)(be),sn({key:Wt,hover:!1}),vn({key:Wt,domEvent:Ge})},be.onTitleClick=function(Ge){var lt=Object(F.a)(be),It=lt.props;if(It.onTitleClick({key:It.eventKey,domEvent:Ge}),It.triggerSubMenuAction==="hover")return;be.triggerOpenChange(!It.isOpen,"click"),xe(It.store,be.props.eventKey,!1)},be.onSubMenuClick=function(Ge){typeof be.props.onClick=="function"&&be.props.onClick(be.addKeyPath(Ge))},be.onSelect=function(Ge){be.props.onSelect(Ge)},be.onDeselect=function(Ge){be.props.onDeselect(Ge)},be.getPrefixCls=function(){return"".concat(be.props.rootPrefixCls,"-submenu")},be.getActiveClassName=function(){return"".concat(be.getPrefixCls(),"-active")},be.getDisabledClassName=function(){return"".concat(be.getPrefixCls(),"-disabled")},be.getSelectedClassName=function(){return"".concat(be.getPrefixCls(),"-selected")},be.getOpenClassName=function(){return"".concat(be.props.rootPrefixCls,"-submenu-open")},be.saveMenuInstance=function(Ge){be.menuInstance=Ge},be.addKeyPath=function(Ge){return Object(Y.a)(Object(Y.a)({},Ge),{},{keyPath:(Ge.keyPath||[]).concat(be.props.eventKey)})},be.triggerOpenChange=function(Ge,lt){var It=be.props.eventKey,Wt=function(){be.onOpenChange({key:It,item:Object(F.a)(be),trigger:lt,open:Ge})};lt==="mouseenter"?be.mouseenterTimeout=setTimeout(function(){Wt()},0):Wt()},be.isChildrenSelected=function(){var Ge={find:!1};return Z(be.props.children,be.props.selectedKeys,Ge),Ge.find},be.isOpen=function(){return be.props.openKeys.indexOf(be.props.eventKey)!==-1},be.adjustWidth=function(){if(!be.subMenuTitle||!be.menuInstance)return;var Ge=de.findDOMNode(be.menuInstance);if(Ge.offsetWidth>=be.subMenuTitle.offsetWidth)return;Ge.style.minWidth="".concat(be.subMenuTitle.offsetWidth,"px")},be.saveSubMenuTitle=function(Ge){be.subMenuTitle=Ge},be.getBaseProps=function(){var Ge=Object(F.a)(be),lt=Ge.props;return{mode:lt.mode==="horizontal"?"vertical":lt.mode,visible:be.props.isOpen,level:lt.level+1,inlineIndent:lt.inlineIndent,focusable:!1,onClick:be.onSubMenuClick,onSelect:be.onSelect,onDeselect:be.onDeselect,onDestroy:be.onDestroy,selectedKeys:lt.selectedKeys,eventKey:"".concat(lt.eventKey,"-menu-"),openKeys:lt.openKeys,motion:lt.motion,onOpenChange:be.onOpenChange,subMenuOpenDelay:lt.subMenuOpenDelay,parentMenu:Object(F.a)(be),subMenuCloseDelay:lt.subMenuCloseDelay,forceSubMenuRender:lt.forceSubMenuRender,triggerSubMenuAction:lt.triggerSubMenuAction,builtinPlacements:lt.builtinPlacements,defaultActiveFirst:lt.store.getState().defaultActiveFirst[K(lt.eventKey)],multiple:lt.multiple,prefixCls:lt.rootPrefixCls,id:be.internalMenuId,manualRef:be.saveMenuInstance,itemIcon:lt.itemIcon,expandIcon:lt.expandIcon,direction:lt.direction}},be.getMotion=function(Ge,lt){var It=Object(F.a)(be),Wt=It.haveRendered,sn=be.props,vn=sn.motion,tr=sn.rootPrefixCls,Hn=Object(Y.a)(Object(Y.a)({},vn),{},{leavedClassName:"".concat(tr,"-hidden"),removeOnLeave:!1,motionAppear:Wt||!lt||Ge!=="inline"});return Hn};var Fe=ft.store,Nt=ft.eventKey,yt=Fe.getState(),Gt=yt.defaultActiveFirst;be.isRootMenu=!1;var Jt=!1;return Gt&&(Jt=Gt[Nt]),xe(Fe,Nt,Jt),be}return Object(I.a)(At,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var be=this,Fe=this.props,Nt=Fe.mode,yt=Fe.parentMenu,Gt=Fe.manualRef;if(Gt&&Gt(this),Nt!=="horizontal"||!yt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return be.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var be=this.props,Fe=be.onDestroy,Nt=be.eventKey;Fe&&Fe(Nt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(be){var Fe=this,Nt=this.getBaseProps(),yt=this.getMotion(Nt.mode,Nt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Nt.visible||Nt.forceSubMenuRender,!this.haveOpened)return P.createElement("div",null);var Gt=Nt.direction;return P.createElement(Ee.default,Object.assign({visible:Nt.visible},yt),function(Jt){var Ge=Jt.className,lt=Jt.style,It=s()("".concat(Nt.prefixCls,"-sub"),Ge,Object(o.a)({},"".concat(Nt.prefixCls,"-rtl"),Gt==="rtl"));return P.createElement(Ne,Object.assign({},Nt,{id:Fe.internalMenuId,className:It,style:lt}),be)})}},{key:"render",value:function(){var be,Fe=Object(Y.a)({},this.props),Nt=Fe.isOpen,yt=this.getPrefixCls(),Gt=Fe.mode==="inline",Jt=s()(yt,"".concat(yt,"-").concat(Fe.mode),(be={},Object(o.a)(be,Fe.className,!!Fe.className),Object(o.a)(be,this.getOpenClassName(),Nt),Object(o.a)(be,this.getActiveClassName(),Fe.active||Nt&&!Gt),Object(o.a)(be,this.getDisabledClassName(),Fe.disabled),Object(o.a)(be,this.getSelectedClassName(),this.isChildrenSelected()),be));this.internalMenuId||(Fe.eventKey?this.internalMenuId="".concat(Fe.eventKey,"$Menu"):(ht+=1,this.internalMenuId="$__$".concat(ht,"$Menu")));var Ge={},lt={},It={};Fe.disabled||(Ge={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},lt={onClick:this.onTitleClick},It={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Wt={},sn=Fe.direction;Gt&&(sn==="rtl"?Wt.paddingRight=Fe.inlineIndent*Fe.level:Wt.paddingLeft=Fe.inlineIndent*Fe.level);var vn={};this.props.isOpen&&(vn={"aria-owns":this.internalMenuId});var tr=null;Fe.mode!=="horizontal"&&(tr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(tr=P.createElement(this.props.expandIcon,Object(Y.a)({},this.props))));var Hn=P.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Wt,className:"".concat(yt,"-title"),role:"button"},It,lt,{"aria-expanded":Nt},vn,{"aria-haspopup":"true",title:typeof Fe.title=="string"?Fe.title:void 0}),Fe.title,tr||P.createElement("i",{className:"".concat(yt,"-arrow")})),wn=this.renderChildren(Fe.children),xr=Fe.parentMenu.isRootMenu?Fe.parentMenu.props.getPopupContainer:function(Jr){return Jr.parentNode},Er=ie[Fe.mode],rr=Fe.popupOffset?{offset:Fe.popupOffset}:{},ur=Fe.mode==="inline"?"":Fe.popupClassName;ur+=sn==="rtl"?" ".concat(yt,"-rtl"):"";var Ar=Fe.disabled,Kr=Fe.triggerSubMenuAction,ra=Fe.subMenuOpenDelay,pn=Fe.forceSubMenuRender,sr=Fe.subMenuCloseDelay,sa=Fe.builtinPlacements;me.forEach(function(Jr){return delete Fe[Jr]}),delete Fe.onClick;var ya=sn==="rtl"?Object.assign({},He,sa):Object.assign({},nt,sa);return delete Fe.direction,P.createElement("li",Object.assign({},Fe,Ge,{className:Jt,role:"menuitem"}),Gt&&Hn,Gt&&wn,!Gt&&P.createElement(Rt.a,{prefixCls:yt,popupClassName:s()("".concat(yt,"-popup"),ur),getPopupContainer:xr,builtinPlacements:ya,popupPlacement:Er,popupVisible:Nt,popupAlign:rr,popup:wn,action:Ar?[]:[Kr],mouseEnterDelay:ra,mouseLeaveDelay:sr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:pn},Hn))}}]),At}(P.Component);we.defaultProps={onMouseEnter:M,onMouseLeave:M,onTitleMouseEnter:M,onTitleMouseLeave:M,onTitleClick:M,manualRef:M,mode:"vertical",title:""};var $e=Object(m.b)(function(Kt,Ot){var At=Kt.openKeys,ft=Kt.activeKey,be=Kt.selectedKeys,Fe=Ot.eventKey,Nt=Ot.subMenuKey;return{isOpen:At.indexOf(Fe)>-1,active:ft[Nt]===Fe,selectedKeys:be}})(we);$e.isSubMenu=!0;var ct=$e,vt="menuitem-overflowed",Ut=.5,We=function(Kt){Object(T.a)(At,Kt);var Ot=Object(R.a)(At);function At(){var ft;return Object(B.a)(this,At),ft=Ot.apply(this,arguments),ft.resizeObserver=null,ft.mutationObserver=null,ft.originalTotalWidth=0,ft.overflowedItems=[],ft.menuItemSizes=[],ft.cancelFrameId=null,ft.state={lastVisibleIndex:void 0},ft.getMenuItemNodes=function(){var be=ft.props.prefixCls,Fe=de.findDOMNode(Object(F.a)(ft));return Fe?[].slice.call(Fe.children).filter(function(Nt){return Nt.className.split(" ").indexOf("".concat(be,"-overflowed-submenu"))<0}):[]},ft.getOverflowedSubMenuItem=function(be,Fe,Nt){var yt=ft.props,Gt=yt.overflowedIndicator,Jt=yt.level,Ge=yt.mode,lt=yt.prefixCls,It=yt.theme;if(Jt!==1||Ge!=="horizontal")return null;var Wt=ft.props.children[0],sn=Wt.props,vn=sn.children,tr=sn.title,Hn=sn.style,wn=Object(ve.a)(sn,["children","title","style"]),xr=Object(Y.a)({},Hn),Er="".concat(be,"-overflowed-indicator"),rr="".concat(be,"-overflowed-indicator");Fe.length===0&&Nt!==!0?xr=Object(Y.a)(Object(Y.a)({},xr),{},{display:"none"}):Nt&&(xr=Object(Y.a)(Object(Y.a)({},xr),{},{visibility:"hidden",position:"absolute"}),Er="".concat(Er,"-placeholder"),rr="".concat(rr,"-placeholder"));var ur=It?"".concat(lt,"-").concat(It):"",Ar={};return me.forEach(function(Kr){wn[Kr]!==void 0&&(Ar[Kr]=wn[Kr])}),P.createElement(ct,Object.assign({title:Gt,className:"".concat(lt,"-overflowed-submenu"),popupClassName:ur},Ar,{key:Er,eventKey:rr,disabled:!1,style:xr}),Fe)},ft.setChildrenWidthAndResize=function(){if(ft.props.mode!=="horizontal")return;var be=de.findDOMNode(Object(F.a)(ft));if(!be)return;var Fe=be.children;if(!Fe||Fe.length===0)return;var Nt=be.children[Fe.length-1];fe(Nt,"display","inline-block");var yt=ft.getMenuItemNodes(),Gt=yt.filter(function(Jt){return Jt.className.split(" ").indexOf(vt)>=0});Gt.forEach(function(Jt){fe(Jt,"display","inline-block")}),ft.menuItemSizes=yt.map(function(Jt){return oe(Jt,!0)}),Gt.forEach(function(Jt){fe(Jt,"display","none")}),ft.overflowedIndicatorWidth=oe(be.children[be.children.length-1],!0),ft.originalTotalWidth=ft.menuItemSizes.reduce(function(Jt,Ge){return Jt+Ge},0),ft.handleResize(),fe(Nt,"display","none")},ft.handleResize=function(){if(ft.props.mode!=="horizontal")return;var be=de.findDOMNode(Object(F.a)(ft));if(!be)return;var Fe=oe(be);ft.overflowedItems=[];var Nt=0,yt;ft.originalTotalWidth>Fe+Ut&&(yt=-1,ft.menuItemSizes.forEach(function(Gt){Nt+=Gt,Nt+ft.overflowedIndicatorWidth<=Fe&&(yt+=1)})),ft.setState({lastVisibleIndex:yt})},ft}return Object(I.a)(At,[{key:"componentDidMount",value:function(){var be=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Fe=de.findDOMNode(this);if(!Fe)return;this.resizeObserver=new Qe.default(function(Nt){Nt.forEach(function(){var yt=be.cancelFrameId;cancelAnimationFrame(yt),be.cancelFrameId=requestAnimationFrame(be.setChildrenWidthAndResize)})}),[].slice.call(Fe.children).concat(Fe).forEach(function(Nt){be.resizeObserver.observe(Nt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){be.resizeObserver.disconnect(),[].slice.call(Fe.children).concat(Fe).forEach(function(Nt){be.resizeObserver.observe(Nt)}),be.setChildrenWidthAndResize()}),this.mutationObserver.observe(Fe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(be){var Fe=this,Nt=this.state.lastVisibleIndex;return(be||[]).reduce(function(yt,Gt,Jt){var Ge=Gt;if(Fe.props.mode==="horizontal"){var lt=Fe.getOverflowedSubMenuItem(Gt.props.eventKey,[]);Nt!==void 0&&Fe.props.className.indexOf("".concat(Fe.props.prefixCls,"-root"))!==-1&&(Jt>Nt&&(Ge=P.cloneElement(Gt,{style:{display:"none"},eventKey:"".concat(Gt.props.eventKey,"-hidden"),className:"".concat(vt)})),Jt===Nt+1&&(Fe.overflowedItems=be.slice(Nt+1).map(function(Wt){return P.cloneElement(Wt,{key:Wt.props.eventKey,mode:"vertical-left"})}),lt=Fe.getOverflowedSubMenuItem(Gt.props.eventKey,Fe.overflowedItems)));var It=[].concat(Object(Ie.a)(yt),[lt,Ge]);return Jt===be.length-1&&It.push(Fe.getOverflowedSubMenuItem(Gt.props.eventKey,[],!0)),It}return[].concat(Object(Ie.a)(yt),[Ge])},[])}},{key:"render",value:function(){var be=this.props,Fe=be.visible,Nt=be.prefixCls,yt=be.overflowedIndicator,Gt=be.mode,Jt=be.level,Ge=be.tag,lt=be.children,It=be.theme,Wt=Object(ve.a)(be,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),sn=Ge;return P.createElement(sn,Object.assign({},Wt),this.renderChildren(lt))}}]),At}(P.Component);We.defaultProps={tag:"div",className:""};var kt=We;function Zt(Kt){return Kt.length?Kt.every(function(Ot){return!!Ot.props.disabled}):!0}function Le(Kt,Ot,At){var ft=Kt.getState();Kt.setState({activeKey:Object(Y.a)(Object(Y.a)({},ft.activeKey),{},Object(o.a)({},Ot,At))})}function Ae(Kt){return Kt.eventKey||"0-menu-"}function ut(Kt,Ot){var At=Ot,ft=Kt.children,be=Kt.eventKey;if(At){var Fe;if($(ft,function(Nt,yt){Nt&&Nt.props&&!Nt.props.disabled&&At===V(Nt,be,yt)&&(Fe=!0)}),Fe)return At}return At=null,Kt.defaultActiveFirst&&$(ft,function(Nt,yt){!At&&Nt&&!Nt.props.disabled&&(At=V(Nt,be,yt))}),At}function _t(Kt){if(Kt){var Ot=this.instanceArray.indexOf(Kt);Ot!==-1?this.instanceArray[Ot]=Kt:this.instanceArray.push(Kt)}}var Je=function(Kt){Object(T.a)(At,Kt);var Ot=Object(R.a)(At);function At(ft){var be;return Object(B.a)(this,At),be=Ot.call(this,ft),be.onKeyDown=function(Fe,Nt){var yt=Fe.keyCode,Gt;if(be.getFlatInstanceArray().forEach(function(Ge){Ge&&Ge.props.active&&Ge.onKeyDown&&(Gt=Ge.onKeyDown(Fe))}),Gt)return 1;var Jt=null;return(yt===u.a.UP||yt===u.a.DOWN)&&(Jt=be.step(yt===u.a.UP?-1:1)),Jt?(Fe.preventDefault(),Le(be.props.store,Ae(be.props),Jt.props.eventKey),typeof Nt=="function"&&Nt(Jt),1):void 0},be.onItemHover=function(Fe){var Nt=Fe.key,yt=Fe.hover;Le(be.props.store,Ae(be.props),yt?Nt:null)},be.onDeselect=function(Fe){be.props.onDeselect(Fe)},be.onSelect=function(Fe){be.props.onSelect(Fe)},be.onClick=function(Fe){be.props.onClick(Fe)},be.onOpenChange=function(Fe){be.props.onOpenChange(Fe)},be.onDestroy=function(Fe){be.props.onDestroy(Fe)},be.getFlatInstanceArray=function(){return be.instanceArray},be.step=function(Fe){var Nt=be.getFlatInstanceArray(),yt=be.props.store.getState().activeKey[Ae(be.props)],Gt=Nt.length;if(!Gt)return null;Fe<0&&(Nt=Nt.concat().reverse());var Jt=-1;if(Nt.every(function(Wt,sn){return Wt&&Wt.props.eventKey===yt?(Jt=sn,!1):!0}),!be.props.defaultActiveFirst&&Jt!==-1&&Zt(Nt.slice(Jt,Gt-1)))return;var Ge=(Jt+1)%Gt,lt=Ge;do{var It=Nt[lt];if(!It||It.props.disabled)lt=(lt+1)%Gt;else return It}while(lt!==Ge);return null},be.renderCommonMenuItem=function(Fe,Nt,yt){var Gt=be.props.store.getState(),Jt=Object(F.a)(be),Ge=Jt.props,lt=V(Fe,Ge.eventKey,Nt),It=Fe.props;if(!It||typeof Fe.type=="string")return Fe;var Wt=lt===Gt.activeKey,sn=Object(Y.a)(Object(Y.a)({mode:It.mode||Ge.mode,level:Ge.level,inlineIndent:Ge.inlineIndent,renderMenuItem:be.renderMenuItem,rootPrefixCls:Ge.prefixCls,index:Nt,parentMenu:Ge.parentMenu,manualRef:It.disabled?void 0:Object(f.a)(Fe.ref,_t.bind(Object(F.a)(be))),eventKey:lt,active:!It.disabled&&Wt,multiple:Ge.multiple,onClick:function(tr){(It.onClick||M)(tr),be.onClick(tr)},onItemHover:be.onItemHover,motion:Ge.motion,subMenuOpenDelay:Ge.subMenuOpenDelay,subMenuCloseDelay:Ge.subMenuCloseDelay,forceSubMenuRender:Ge.forceSubMenuRender,onOpenChange:be.onOpenChange,onDeselect:be.onDeselect,onSelect:be.onSelect,builtinPlacements:Ge.builtinPlacements,itemIcon:It.itemIcon||be.props.itemIcon,expandIcon:It.expandIcon||be.props.expandIcon},yt),{},{direction:Ge.direction});return(Ge.mode==="inline"||ye())&&(sn.triggerSubMenuAction="click"),P.cloneElement(Fe,sn)},be.renderMenuItem=function(Fe,Nt,yt){if(!Fe)return null;var Gt=be.props.store.getState(),Jt={openKeys:Gt.openKeys,selectedKeys:Gt.selectedKeys,triggerSubMenuAction:be.props.triggerSubMenuAction,subMenuKey:yt};return be.renderCommonMenuItem(Fe,Nt,Jt)},ft.store.setState({activeKey:Object(Y.a)(Object(Y.a)({},ft.store.getState().activeKey),{},Object(o.a)({},ft.eventKey,ut(ft,ft.activeKey)))}),be.instanceArray=[],be}return Object(I.a)(At,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(be){return this.props.visible||be.visible||this.props.className!==be.className||!i()(this.props.style,be.style)}},{key:"componentDidUpdate",value:function(be){var Fe=this.props,Nt="activeKey"in Fe?Fe.activeKey:Fe.store.getState().activeKey[Ae(Fe)],yt=ut(Fe,Nt);if(yt!==Nt)Le(Fe.store,Ae(Fe),yt);else if("activeKey"in be){var Gt=ut(be,be.activeKey);yt!==Gt&&Le(Fe.store,Ae(Fe),yt)}}},{key:"render",value:function(){var be=this,Fe=Object(b.a)({},this.props);this.instanceArray=[];var Nt=s()(Fe.prefixCls,Fe.className,"".concat(Fe.prefixCls,"-").concat(Fe.mode)),yt={className:Nt,role:Fe.role||"menu"};Fe.id&&(yt.id=Fe.id),Fe.focusable&&(yt.tabIndex=0,yt.onKeyDown=this.onKeyDown);var Gt=Fe.prefixCls,Jt=Fe.eventKey,Ge=Fe.visible,lt=Fe.level,It=Fe.mode,Wt=Fe.overflowedIndicator,sn=Fe.theme;return me.forEach(function(vn){return delete Fe[vn]}),delete Fe.onClick,P.createElement(kt,Object.assign({},Fe,{prefixCls:Gt,mode:It,tag:"ul",level:lt,theme:sn,visible:Ge,overflowedIndicator:Wt},yt),P.Children.map(Fe.children,function(vn,tr){return be.renderMenuItem(vn,tr,Jt||"0-menu-")}))}}]),At}(P.Component);Je.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:M};var dt=Object(m.b)()(Je),Ne=dt,Te=L("Kwbf");function Oe(Kt,Ot,At){var ft=Kt.prefixCls,be=Kt.motion,Fe=Kt.defaultMotions,Nt=Fe===void 0?{}:Fe,yt=Kt.openAnimation,Gt=Kt.openTransitionName,Jt=Ot.switchingModeFromInline;if(be)return be;if(Object(n.a)(yt)==="object"&&yt)Object(Te.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof yt=="string")return{motionName:"".concat(ft,"-open-").concat(yt)};if(Gt)return{motionName:Gt};var Ge=Nt[At];return Ge||(Jt?null:Nt.other)}var ae=function(Kt){Object(T.a)(At,Kt);var Ot=Object(R.a)(At);function At(ft){var be;Object(B.a)(this,At),be=Ot.call(this,ft),be.inlineOpenKeys=[],be.onSelect=function(yt){var Gt=Object(F.a)(be),Jt=Gt.props;if(Jt.selectable){var Ge=be.store.getState(),lt=Ge.selectedKeys,It=yt.key;Jt.multiple?lt=lt.concat([It]):lt=[It],"selectedKeys"in Jt||be.store.setState({selectedKeys:lt}),Jt.onSelect(Object(Y.a)(Object(Y.a)({},yt),{},{selectedKeys:lt}))}},be.onClick=function(yt){var Gt=be.getRealMenuMode(),Jt=Object(F.a)(be),Ge=Jt.store,lt=Jt.props.onOpenChange;Gt!=="inline"&&!("openKeys"in be.props)&&(Ge.setState({openKeys:[]}),lt([])),be.props.onClick(yt)},be.onKeyDown=function(yt,Gt){be.innerMenu.getWrappedInstance().onKeyDown(yt,Gt)},be.onOpenChange=function(yt){var Gt=Object(F.a)(be),Jt=Gt.props,Ge=be.store.getState().openKeys.concat(),lt=!1,It=function(sn){var vn=!1;if(sn.open)vn=Ge.indexOf(sn.key)===-1,vn&&Ge.push(sn.key);else{var tr=Ge.indexOf(sn.key);vn=tr!==-1,vn&&Ge.splice(tr,1)}lt=lt||vn};Array.isArray(yt)?yt.forEach(It):It(yt),lt&&("openKeys"in be.props||be.store.setState({openKeys:Ge}),Jt.onOpenChange(Ge))},be.onDeselect=function(yt){var Gt=Object(F.a)(be),Jt=Gt.props;if(Jt.selectable){var Ge=be.store.getState().selectedKeys.concat(),lt=yt.key,It=Ge.indexOf(lt);It!==-1&&Ge.splice(It,1),"selectedKeys"in Jt||be.store.setState({selectedKeys:Ge}),Jt.onDeselect(Object(Y.a)(Object(Y.a)({},yt),{},{selectedKeys:Ge}))}},be.onMouseEnter=function(yt){be.restoreModeVerticalFromInline();var Gt=be.props.onMouseEnter;Gt&&Gt(yt)},be.onTransitionEnd=function(yt){var Gt=yt.propertyName==="width"&&yt.target===yt.currentTarget,Jt=yt.target.className,Ge=Object.prototype.toString.call(Jt)==="[object SVGAnimatedString]"?Jt.animVal:Jt,lt=yt.propertyName==="font-size"&&Ge.indexOf("anticon")>=0;(Gt||lt)&&be.restoreModeVerticalFromInline()},be.setInnerMenu=function(yt){be.innerMenu=yt},be.isRootMenu=!0;var Fe=ft.defaultSelectedKeys,Nt=ft.defaultOpenKeys;return"selectedKeys"in ft&&(Fe=ft.selectedKeys||[]),"openKeys"in ft&&(Nt=ft.openKeys||[]),be.store=Object(m.c)({selectedKeys:Fe,openKeys:Nt,activeKey:{"0-menu-":ut(ft,ft.activeKey)}}),be.state={switchingModeFromInline:!1},be}return Object(I.a)(At,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(be){this.updateOpentKeysWhenSwitchMode(be),this.updateMiniStore();var Fe=this.props,Nt=Fe.siderCollapsed,yt=Fe.inlineCollapsed,Gt=Fe.onOpenChange;(!be.inlineCollapsed&&yt||!be.siderCollapsed&&Nt)&&Gt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(be){var Fe=this.props,Nt=this.store,yt=this.inlineOpenKeys,Gt=Nt.getState(),Jt={};be.mode==="inline"&&Fe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Fe||((Fe.inlineCollapsed&&!be.inlineCollapsed||Fe.siderCollapsed&&!be.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Gt.openKeys.concat(),Jt.openKeys=[]),(!Fe.inlineCollapsed&&be.inlineCollapsed||!Fe.siderCollapsed&&be.siderCollapsed)&&(Jt.openKeys=yt,this.inlineOpenKeys=[])),Object.keys(Jt).length&&Nt.setState(Jt)}},{key:"updateMenuDisplay",value:function(){var be=this.props.collapsedWidth,Fe=this.store,Nt=this.prevOpenKeys,yt=this.getInlineCollapsed()&&(be===0||be==="0"||be==="0px");yt?(this.prevOpenKeys=Fe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Nt&&(this.store.setState({openKeys:Nt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var be=this.props.mode,Fe=this.state.switchingModeFromInline,Nt=this.getInlineCollapsed();return Fe&&Nt?"inline":Nt?"vertical":be}},{key:"getInlineCollapsed",value:function(){var be=this.props,Fe=be.inlineCollapsed,Nt=be.siderCollapsed;return Nt!==void 0?Nt:Fe}},{key:"restoreModeVerticalFromInline",value:function(){var be=this.state.switchingModeFromInline;be&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var be=Object(Y.a)({},Object(t.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Fe=this.getRealMenuMode();return be.className+=" ".concat(be.prefixCls,"-root"),be.direction==="rtl"&&(be.className+=" ".concat(be.prefixCls,"-rtl")),be=Object(Y.a)(Object(Y.a)({},be),{},{mode:Fe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Oe(this.props,this.state,Fe)}),delete be.openAnimation,delete be.openTransitionName,P.createElement(m.a,{store:this.store},P.createElement(Ne,Object.assign({},be,{ref:this.setInnerMenu}),this.props.children))}}]),At}(P.Component);ae.defaultProps={selectable:!0,onClick:M,onSelect:M,onOpenChange:M,onDeselect:M,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:P.createElement("span",null,"\xB7\xB7\xB7")};var le=ae,he=function(Kt){Object(T.a)(At,Kt);var Ot=Object(R.a)(At);function At(){var ft;return Object(B.a)(this,At),ft=Ot.apply(this,arguments),ft.onKeyDown=function(be){var Fe=be.keyCode;return Fe===u.a.ENTER?(ft.onClick(be),!0):void 0},ft.onMouseLeave=function(be){var Fe=ft.props,Nt=Fe.eventKey,yt=Fe.onItemHover,Gt=Fe.onMouseLeave;yt({key:Nt,hover:!1}),Gt({key:Nt,domEvent:be})},ft.onMouseEnter=function(be){var Fe=ft.props,Nt=Fe.eventKey,yt=Fe.onItemHover,Gt=Fe.onMouseEnter;yt({key:Nt,hover:!0}),Gt({key:Nt,domEvent:be})},ft.onClick=function(be){var Fe=ft.props,Nt=Fe.eventKey,yt=Fe.multiple,Gt=Fe.onClick,Jt=Fe.onSelect,Ge=Fe.onDeselect,lt=Fe.isSelected,It={key:Nt,keyPath:[Nt],item:Object(F.a)(ft),domEvent:be};Gt(It),yt?lt?Ge(It):Jt(It):lt||Jt(It)},ft.saveNode=function(be){ft.node=be},ft}return Object(I.a)(At,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var be=this.props;be.onDestroy&&be.onDestroy(be.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var be,Fe=Object(Y.a)({},this.props),Nt=s()(this.getPrefixCls(),Fe.className,(be={},Object(o.a)(be,this.getActiveClassName(),!Fe.disabled&&Fe.active),Object(o.a)(be,this.getSelectedClassName(),Fe.isSelected),Object(o.a)(be,this.getDisabledClassName(),Fe.disabled),be)),yt=Object(Y.a)(Object(Y.a)({},Fe.attribute),{},{title:typeof Fe.title=="string"?Fe.title:void 0,className:Nt,role:Fe.role||"menuitem","aria-disabled":Fe.disabled});Fe.role==="option"?yt=Object(Y.a)(Object(Y.a)({},yt),{},{role:"option","aria-selected":Fe.isSelected}):(Fe.role===null||Fe.role==="none")&&(yt.role="none");var Gt={onClick:Fe.disabled?null:this.onClick,onMouseLeave:Fe.disabled?null:this.onMouseLeave,onMouseEnter:Fe.disabled?null:this.onMouseEnter},Jt=Object(Y.a)({},Fe.style);Fe.mode==="inline"&&(Fe.direction==="rtl"?Jt.paddingRight=Fe.inlineIndent*Fe.level:Jt.paddingLeft=Fe.inlineIndent*Fe.level),me.forEach(function(lt){return delete Fe[lt]}),delete Fe.direction;var Ge=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ge=P.createElement(this.props.itemIcon,this.props)),P.createElement("li",Object.assign({},Object(t.default)(Fe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),yt,Gt,{style:Jt,ref:this.saveNode}),Fe.children,Ge)}}]),At}(P.Component);he.isMenuItem=!0,he.defaultProps={onSelect:M,onMouseEnter:M,onMouseLeave:M,manualRef:M};var _e=Object(m.b)(function(Kt,Ot){var At=Kt.activeKey,ft=Kt.selectedKeys,be=Ot.eventKey,Fe=Ot.subMenuKey;return{active:At[Fe]===be,isSelected:ft.indexOf(be)!==-1}})(he),Se=_e,ze=function(Kt){Object(T.a)(At,Kt);var Ot=Object(R.a)(At);function At(){var ft;return Object(B.a)(this,At),ft=Ot.apply(this,arguments),ft.renderInnerMenuItem=function(be){var Fe=ft.props,Nt=Fe.renderMenuItem,yt=Fe.index;return Nt(be,yt,ft.props.subMenuKey)},ft}return Object(I.a)(At,[{key:"render",value:function(){var be=Object(b.a)({},this.props),Fe=be.className,Nt=Fe===void 0?"":Fe,yt=be.rootPrefixCls,Gt="".concat(yt,"-item-group-title"),Jt="".concat(yt,"-item-group-list"),Ge=be.title,lt=be.children;return me.forEach(function(It){return delete be[It]}),delete be.onClick,delete be.direction,P.createElement("li",Object.assign({},be,{className:"".concat(Nt," ").concat(yt,"-item-group")}),P.createElement("div",{className:Gt,title:typeof Ge=="string"?Ge:void 0},Ge),P.createElement("ul",{className:Jt},P.Children.map(lt,this.renderInnerMenuItem)))}}]),At}(P.Component);ze.isMenuItemGroup=!0,ze.defaultProps={disabled:!0};var Et=ze,$t=function(Ot){var At=Ot.className,ft=Ot.rootPrefixCls,be=Ot.style;return P.createElement("li",{className:"".concat(At," ").concat(ft,"-item-divider"),style:be})};$t.defaultProps={disabled:!0,className:"",style:{}};var on=$t,gt=J.e=le},"24YM":function(Be,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.SensorTabIndex=J.SensorClassName=J.SizeSensorId=void 0;var Y="size-sensor-id";J.SizeSensorId=Y;var B="size-sensor-object";J.SensorClassName=B;var I="-1";J.SensorTabIndex=I},"24hK":function(Be,J,L){"use strict";L.d(J,"a",function(){return B});class Y{constructor(I){this.element=I,this.next=Y.Undefined,this.prev=Y.Undefined}}Y.Undefined=new Y(void 0);class B{constructor(){this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Y.Undefined}clear(){let I=this._first;for(;I!==Y.Undefined;){const F=I.next;I.prev=Y.Undefined,I.next=Y.Undefined,I=F}this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}unshift(I){return this._insert(I,!1)}push(I){return this._insert(I,!0)}_insert(I,F){const T=new Y(I);if(this._first===Y.Undefined)this._first=T,this._last=T;else if(F){const P=this._last;this._last=T,T.prev=P,P.next=T}else{const P=this._first;this._first=T,T.next=P,P.prev=T}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(T))}}shift(){if(this._first===Y.Undefined)return;{const I=this._first.element;return this._remove(this._first),I}}pop(){if(this._last===Y.Undefined)return;{const I=this._last.element;return this._remove(this._last),I}}_remove(I){if(I.prev!==Y.Undefined&&I.next!==Y.Undefined){const F=I.prev;F.next=I.next,I.next.prev=F}else I.prev===Y.Undefined&&I.next===Y.Undefined?(this._first=Y.Undefined,this._last=Y.Undefined):I.next===Y.Undefined?(this._last=this._last.prev,this._last.next=Y.Undefined):I.prev===Y.Undefined&&(this._first=this._first.next,this._first.prev=Y.Undefined);this._size-=1}*[Symbol.iterator](){let I=this._first;for(;I!==Y.Undefined;)yield I.element,I=I.next}}},"2DNl":function(Be,J,L){var Y=L("IMiH"),B=L("loD1"),I=L("59Ip"),F=L("aKvl"),T=L("n1HI"),R=L("hX1E"),P=R.normalizeRadian,m=L("Sj9i"),t=L("hyiK"),b=Y.CMD,o=Math.PI*2,u=1e-4;function f(C,k){return Math.abs(C-k)k&&g>y&&g>p&&g>_||g1&&d(),z=m.cubicAt(k,y,p,_,i[0]),S>1&&(H=m.cubicAt(k,y,p,_,i[1]))),S===2?Vk&&_>y&&_>p||_=0&&g<=1){for(var j=0,U=m.quadraticAt(k,y,p,g),S=0;Sw||_<-w)return 0;var E=Math.sqrt(w*w-_*_);a[0]=-E,a[1]=E;var g=Math.abs(y-h);if(g<1e-4)return 0;if(g%o<1e-4){y=0,h=o;var j=p?1:-1;return v>=a[0]+C&&v<=a[1]+C?j:0}if(p){var E=y;y=P(h),h=P(E)}else y=P(y),h=P(h);y>h&&(h+=o);for(var U=0,S=0;S<2;S++){var z=a[S];if(z+C>v){var H=Math.atan2(_,z),j=p?1:-1;H<0&&(H=o+H),(H>=y&&H<=h||H+o>=y&&H+o<=h)&&(H>Math.PI/2&&H1&&(w||(p+=t(v,_,E,g,y,h))),j===1&&(v=C[j],_=C[j+1],E=v,g=_);switch(U){case b.M:E=C[j++],g=C[j++],v=E,_=g;break;case b.L:if(w){if(B.containStroke(v,_,C[j],C[j+1],k,y,h))return!0}else p+=t(v,_,C[j],C[j+1],y,h)||0;v=C[j++],_=C[j++];break;case b.C:if(w){if(I.containStroke(v,_,C[j++],C[j++],C[j++],C[j++],C[j],C[j+1],k,y,h))return!0}else p+=s(v,_,C[j++],C[j++],C[j++],C[j++],C[j],C[j+1],y,h)||0;v=C[j++],_=C[j++];break;case b.Q:if(w){if(F.containStroke(v,_,C[j++],C[j++],C[j],C[j+1],k,y,h))return!0}else p+=n(v,_,C[j++],C[j++],C[j],C[j+1],y,h)||0;v=C[j++],_=C[j++];break;case b.A:var S=C[j++],z=C[j++],H=C[j++],M=C[j++],V=C[j++],K=C[j++];j+=1;var $=1-C[j++],Z=Math.cos(V)*H+S,me=Math.sin(V)*M+z;j>1?p+=t(v,_,Z,me,y,h):(E=Z,g=me);var oe=(y-S)*M/H+S;if(w){if(T.containStroke(S,z,M,V,V+K,$,k,oe,h))return!0}else p+=l(S,z,M,V,V+K,$,oe,h);v=Math.cos(V+K)*H+S,_=Math.sin(V+K)*M+z;break;case b.R:E=v=C[j++],g=_=C[j++];var fe=C[j++],ye=C[j++],Z=E+fe,me=g+ye;if(w){if(B.containStroke(E,g,Z,g,k,y,h)||B.containStroke(Z,g,Z,me,k,y,h)||B.containStroke(Z,me,E,me,k,y,h)||B.containStroke(E,me,E,g,k,y,h))return!0}else p+=t(Z,g,Z,me,y,h),p+=t(E,me,E,g,y,h);break;case b.Z:if(w){if(B.containStroke(v,_,E,g,k,y,h))return!0}else p+=t(v,_,E,g,y,h);v=E,_=g;break}}return!w&&!f(_,g)&&(p+=t(v,_,E,g,y,h)||0),p!==0}function x(C,k,w){return c(C,0,!1,k,w)}function A(C,k,w,y){return c(C,k,!0,w,y)}J.contain=x,J.containStroke=A},"2fw6":function(Be,J,L){var Y=L("y+Vt"),B=Y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(I,F,T){T&&I.moveTo(F.cx+F.r,F.cy),I.arc(F.cx,F.cy,F.r,0,Math.PI*2,!0)}});Be.exports=B},"3/fG":function(Be,J,L){"use strict";L.d(J,"a",function(){return B});function Y(I,F){let T;return F.length===0?T=I:T=I.replace(/\{(\d+)\}/g,function(R,P){const m=P[0];return typeof F[m]!="undefined"?F[m]:R}),T}function B(I,F,...T){return Y(F,T)}},"3C/r":function(Be,J){var L=function(B,I){this.image=B,this.repeat=I,this.type="pattern"};L.prototype.getCanvasPattern=function(B){return B.createPattern(this.image,this.repeat||"repeat")};var Y=L;Be.exports=Y},"3CBa":function(Be,J,L){var Y=L("hydK"),B=Y.createElement,I=L("bYtY"),F=L("SUKs"),T=L("y+Vt"),R=L("Dagg"),P=L("dqUG"),m=L("DBLp"),t=L("sW+o"),b=L("n6Mw"),o=L("vKoX"),u=L("P47w"),f=u.path,a=u.image,i=u.text;function d(h){return parseInt(h,10)}function s(h){return h instanceof T?f:h instanceof R?a:h instanceof P?i:f}function n(h,p){return p&&h&&p.parentNode!==h}function l(h,p,v){if(n(h,p)&&v){var _=v.nextSibling;_?h.insertBefore(p,_):h.appendChild(p)}}function c(h,p){if(n(h,p)){var v=h.firstChild;v?h.insertBefore(p,v):h.appendChild(p)}}function x(h,p){p&&h&&p.parentNode===h&&h.removeChild(p)}function A(h){return h.__textSvgEl}function C(h){return h.__svgEl}var k=function(h,p,v,_){this.root=h,this.storage=p,this._opts=v=I.extend({},v||{});var E=B("svg");E.setAttribute("xmlns","http://www.w3.org/2000/svg"),E.setAttribute("version","1.1"),E.setAttribute("baseProfile","full"),E.style.cssText="user-select:none;position:absolute;left:0;top:0;";var g=B("g");E.appendChild(g);var j=B("g");E.appendChild(j),this.gradientManager=new t(_,j),this.clipPathManager=new b(_,j),this.shadowManager=new o(_,j);var U=document.createElement("div");U.style.cssText="overflow:hidden;position:relative",this._svgDom=E,this._svgRoot=j,this._backgroundRoot=g,this._viewport=U,h.appendChild(U),U.appendChild(E),this.resize(v.width,v.height),this._visibleList=[]};k.prototype={constructor:k,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var h=this.getViewportRoot();if(h)return{offsetLeft:h.offsetLeft||0,offsetTop:h.offsetTop||0}},refresh:function(){var h=this.storage.getDisplayList(!0);this._paintList(h)},setBackgroundColor:function(h){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var p=B("rect");p.setAttribute("width",this.getWidth()),p.setAttribute("height",this.getHeight()),p.setAttribute("x",0),p.setAttribute("y",0),p.setAttribute("id",0),p.style.fill=h,this._backgroundRoot.appendChild(p),this._backgroundNode=p},_paintList:function(h){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var p=this._svgRoot,v=this._visibleList,_=h.length,E=[],g;for(g=0;g<_;g++){var j=h[g],U=s(j),S=C(j)||A(j);j.invisible||(j.__dirty&&(U&&U.brush(j),this.clipPathManager.update(j),j.style&&(this.gradientManager.update(j.style.fill),this.gradientManager.update(j.style.stroke),this.shadowManager.update(S,j)),j.__dirty=!1),E.push(j))}var z=m(v,E),H;for(g=0;g=0;--j)if(g[j]===E)return!0;return!1}),v}else return null;else return v[0]},resize:function(h,p){var v=this._viewport;v.style.display="none";var _=this._opts;if(h!=null&&(_.width=h),p!=null&&(_.height=p),h=this._getSize(0),p=this._getSize(1),v.style.display="",this._width!==h||this._height!==p){this._width=h,this._height=p;var E=v.style;E.width=h+"px",E.height=p+"px";var g=this._svgDom;g.setAttribute("width",h),g.setAttribute("height",p)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",h),this._backgroundNode.setAttribute("height",p))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(h){var p=this._opts,v=["width","height"][h],_=["clientWidth","clientHeight"][h],E=["paddingLeft","paddingTop"][h],g=["paddingRight","paddingBottom"][h];if(p[v]!=null&&p[v]!=="auto")return parseFloat(p[v]);var j=this.root,U=document.defaultView.getComputedStyle(j);return(j[_]||d(U[v])||d(j.style[v]))-(d(U[E])||0)-(d(U[g])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var h=encodeURIComponent(this._svgDom.outerHTML.replace(/> -\r<`));return"data:image/svg+xml;charset=UTF-8,"+h}};function w(h){return function(){F('In SVG mode painter not support method "'+h+'"')}}I.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(h){k.prototype[h]=w(h)});var y=k;Be.exports=y},"3e3G":function(Be,J,L){var Y=L("bYtY"),B=L("QuXc"),I=function(T,R,P,m,t){this.x=T==null?.5:T,this.y=R==null?.5:R,this.r=P==null?.5:P,this.type="radial",this.global=t||!1,B.call(this,m)};I.prototype={constructor:I},Y.inherits(I,B);var F=I;Be.exports=F},"3gBT":function(Be,J){var L=2311;function Y(){return L++}Be.exports=Y},"4fz+":function(Be,J,L){var Y=L("bYtY"),B=L("1bdT"),I=L("mFDi"),F=function(R){R=R||{},B.call(this,R);for(var P in R)R.hasOwnProperty(P)&&(this[P]=R[P]);this._children=[],this.__storage=null,this.__dirty=!0};F.prototype={constructor:F,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(R){return this._children[R]},childOfName:function(R){for(var P=this._children,m=0;m=0&&(m.splice(t,0,R),this._doAdd(R))}return this},_doAdd:function(R){R.parent&&R.parent.remove(R),R.parent=this;var P=this.__storage,m=this.__zr;P&&P!==R.__storage&&(P.addToStorage(R),R instanceof F&&R.addChildrenToStorage(P)),m&&m.refresh()},remove:function(R){var P=this.__zr,m=this.__storage,t=this._children,b=Y.indexOf(t,R);return b<0?this:(t.splice(b,1),R.parent=null,m&&(m.delFromStorage(R),R instanceof F&&R.delChildrenFromStorage(m)),P&&P.refresh(),this)},removeAll:function(){var R=this._children,P=this.__storage,m,t;for(t=0;t1e-4){w[0]=n-c,w[1]=l-x,y[0]=n+c,y[1]=l+x;return}if(m[0]=R(A)*c+n,m[1]=T(A)*x+l,t[0]=R(C)*c+n,t[1]=T(C)*x+l,h(w,m,t),p(y,m,t),A=A%P,A<0&&(A=A+P),C=C%P,C<0&&(C=C+P),A>C&&!k?C+=P:AA&&(b[0]=R(E)*c+n,b[1]=T(E)*x+l,h(w,b,w),p(y,b,y))}J.fromPoints=o,J.fromLine=u,J.fromCubic=i,J.fromQuadratic=d,J.fromArc=s},"4wi7":function(Be,J,L){"use strict";var Y=L("14J3"),B=L("BMrR"),I=L("sRBo"),F=L("kaz8"),T=L("5NDa"),R=L("5rEg"),P=L("9og8"),m=L("tJVT"),t=L("WmNS"),b=L.n(t),o=L("q1tI"),u=L.n(o),f=L("oOBs"),a=L.n(f),i=L("xOL1"),d=L.n(i),s=L("BdwD"),n=function(c){var x=c.data,A=c.value,C=A===void 0?[]:A,k=c.handleChangePage,w=c.setSelectedRowKeys,y=c.selectedRowKeys,h=c.onChange,p=h===void 0?function(){}:h,v=Object(o.useState)([]),_=Object(m.a)(v,2),E=_[0],g=_[1],j=Object(o.useState)([]),U=Object(m.a)(j,2),S=U[0],z=U[1],H=Object(o.useState)([]),M=Object(m.a)(H,2),V=M[0],K=M[1],$=Object(o.useState)(1),Z=Object(m.a)($,2),me=Z[0],oe=Z[1],fe=Object(o.useState)(),ye=Object(m.a)(fe,2),Ie=ye[0],ve=ye[1];return Object(o.useEffect)(function(){g(x),z([]),K([])},[x]),Object(o.useEffect)(function(){w&&(z(y),K(y))},[y]),u.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},u.a.createElement("div",{className:a.a.leftdiv},u.a.createElement(R.a.Search,{size:"large",onChange:function(){var de=Object(P.a)(b.a.mark(function Qe(Rt){return b.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:g(x.filter(function(nt){var He;return nt==null||((He=nt.name)===null||He===void 0)?void 0:He.includes(Rt.target.value)}));case 1:case"end":return Me.stop()}},Qe)}));return function(Qe){return de.apply(this,arguments)}}(),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),E.length===0&&u.a.createElement(s.a,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),u.a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},u.a.createElement(F.a.Group,{value:S.map(function(de){return"".concat(de.id)}),onChange:function(Qe){w(E.filter(function(Rt){return Qe.includes("".concat(Rt.id))}))},style:{marginTop:"10px"}},E.map(function(de,Qe){return u.a.createElement(B.a,{key:de.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},u.a.createElement(F.a,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:de.is_published,value:"".concat(de.id)},u.a.createElement("div",{className:a.a.listClass},u.a.createElement("span",{className:a.a.spantitle,style:{width:de.is_published?"108px":"170px"}},de.name),de.is_published&&u.a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03"))))})))),u.a.createElement("div",{className:a.a.rightdiv},u.a.createElement(R.a.Search,{onChange:function(Qe){K(S.filter(function(Rt){return Rt.name.includes(Qe.target.value)}))},size:"large",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),V.length===0&&u.a.createElement(s.a,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),V.length>0&&u.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},u.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},V.map(function(de,Qe){return u.a.createElement(B.a,{justify:"space-between",style:{marginTop:"10px"},key:de.id},u.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},de.name),u.a.createElement("img",{src:d.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){w(S.filter(function(Ee){return"".concat(Ee.id)!="".concat(de.id)}))}}))})))))};J.a=n},"55Ip":function(Be,J,L){"use strict";L.d(J,"a",function(){return l});var Y=L("Ty5D"),B=L("dI71"),I=L("q1tI"),F=L.n(I),T=L("YS25"),R=L("17x9"),P=L.n(R),m=L("wx14"),t=L("zLVn"),b=L("9R94"),o=function(h){Object(B.a)(p,h);function p(){for(var _,E=arguments.length,g=new Array(E),j=0;jF+a&&f>R+a&&f>m+a&&f>b+a||fI+a&&u>T+a&&u>P+a&&u>t+a||u=0||E.relatedTarget.className.indexOf("".concat(S,"-next"))>=0))return;h.setState({goInputText:""}),U(h.getValidValue())},h.go=function(E){var g=h.state.goInputText;if(g==="")return;(E.keyCode===a.ENTER||E.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(T.a)(y,[{key:"getValidValue",value:function(){var p=this.state,v=p.goInputText,_=p.current;return!v||isNaN(v)?_:Number(v)}},{key:"getPageSizeOptions",value:function(){var p=this.props,v=p.pageSize,_=p.pageSizeOptions;return _.some(function(E){return E.toString()===v.toString()})?_:_.concat([v.toString()]).sort(function(E,g){var j=isNaN(Number(E))?0:Number(E),U=isNaN(Number(g))?0:Number(g);return j-U})}},{key:"render",value:function(){var p=this,v=this.props,_=v.pageSize,E=v.locale,g=v.rootPrefixCls,j=v.changeSize,U=v.quickGo,S=v.goButton,z=v.selectComponentClass,H=v.buildOptionText,M=v.selectPrefixCls,V=v.disabled,K=this.state.goInputText,$="".concat(g,"-options"),Z=z,me=null,oe=null,fe=null;if(!j&&!U)return null;var ye=this.getPageSizeOptions();if(j&&Z){var Ie=ye.map(function(ve,de){return t.a.createElement(Z.Option,{key:de,value:ve.toString()},(H||p.buildOptionText)(ve))});me=t.a.createElement(Z,{disabled:V,prefixCls:M,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(_||ye[0]).toString(),onChange:this.changeSize,getPopupContainer:function(de){return de.parentNode}},Ie)}return U&&(S&&(fe=typeof S=="boolean"?t.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:V,className:"".concat($,"-quick-jumper-button")},E.jump_to_confirm):t.a.createElement("span",{onClick:this.go,onKeyUp:this.go},S)),oe=t.a.createElement("div",{className:"".concat($,"-quick-jumper")},E.jump_to,t.a.createElement("input",{disabled:V,type:"text",value:K,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),E.page,fe)),t.a.createElement("li",{className:"".concat($)},me,oe)}}]),y}(t.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var d=i,s=L("N2Kk");function n(){}function l(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k}function c(k,w,y){return y}function x(k,w,y){var h=typeof k=="undefined"?w.pageSize:k;return Math.floor((y.total-1)/h)+1}var A=function(k){Object(R.a)(y,k);var w=Object(P.a)(y);function y(h){var p;Object(F.a)(this,y),p=w.call(this,h),p.getJumpPrevPage=function(){return Math.max(1,p.state.current-(p.props.showLessItems?3:5))},p.getJumpNextPage=function(){return Math.min(x(void 0,p.state,p.props),p.state.current+(p.props.showLessItems?3:5))},p.getItemIcon=function(j,U){var S=p.props.prefixCls,z=j||t.a.createElement("button",{type:"button","aria-label":U,className:"".concat(S,"-item-link")});return typeof j=="function"&&(z=t.a.createElement(j,Object(I.a)({},p.props))),z},p.savePaginationNode=function(j){p.paginationNode=j},p.isValid=function(j){return l(j)&&j!==p.state.current},p.shouldDisplayQuickJumper=function(){var j=p.props,U=j.showQuickJumper,S=j.pageSize,z=j.total;return z<=S?!1:U},p.handleKeyDown=function(j){(j.keyCode===a.ARROW_UP||j.keyCode===a.ARROW_DOWN)&&j.preventDefault()},p.handleKeyUp=function(j){var U=p.getValidValue(j),S=p.state.currentInputValue;U!==S&&p.setState({currentInputValue:U}),j.keyCode===a.ENTER?p.handleChange(U):j.keyCode===a.ARROW_UP?p.handleChange(U-1):j.keyCode===a.ARROW_DOWN&&p.handleChange(U+1)},p.changePageSize=function(j){var U=p.state.current,S=x(j,p.state,p.props);U=U>S?S:U,S===0&&(U=p.state.current),typeof j=="number"&&("pageSize"in p.props||p.setState({pageSize:j}),"current"in p.props||p.setState({current:U,currentInputValue:U})),p.props.onShowSizeChange(U,j),"onChange"in p.props&&p.props.onChange&&p.props.onChange(U,j)},p.handleChange=function(j){var U=p.props.disabled,S=j;if(p.isValid(S)&&!U){var z=x(void 0,p.state,p.props);S>z?S=z:S<1&&(S=1),"current"in p.props||p.setState({current:S,currentInputValue:S});var H=p.state.pageSize;return p.props.onChange(S,H),S}return p.state.current},p.prev=function(){p.hasPrev()&&p.handleChange(p.state.current-1)},p.next=function(){p.hasNext()&&p.handleChange(p.state.current+1)},p.jumpPrev=function(){p.handleChange(p.getJumpPrevPage())},p.jumpNext=function(){p.handleChange(p.getJumpNextPage())},p.hasPrev=function(){return p.state.current>1},p.hasNext=function(){return p.state.current2?S-2:0),H=2;H=_?g=_:g=Number(v),g}},{key:"getShowSizeChanger",value:function(){var p=this.props,v=p.showSizeChanger,_=p.total,E=p.totalBoundaryShowSizeChanger;return typeof v!="undefined"?v:_>E}},{key:"renderPrev",value:function(p){var v=this.props,_=v.prevIcon,E=v.itemRender,g=E(p,"prev",this.getItemIcon(_,"prev page")),j=!this.hasPrev();return Object(m.isValidElement)(g)?Object(m.cloneElement)(g,{disabled:j}):g}},{key:"renderNext",value:function(p){var v=this.props,_=v.nextIcon,E=v.itemRender,g=E(p,"next",this.getItemIcon(_,"next page")),j=!this.hasNext();return Object(m.isValidElement)(g)?Object(m.cloneElement)(g,{disabled:j}):g}},{key:"render",value:function(){var p=this,v=this.props,_=v.prefixCls,E=v.className,g=v.style,j=v.disabled,U=v.hideOnSinglePage,S=v.total,z=v.locale,H=v.showQuickJumper,M=v.showLessItems,V=v.showTitle,K=v.showTotal,$=v.simple,Z=v.itemRender,me=v.showPrevNextJumpers,oe=v.jumpPrevIcon,fe=v.jumpNextIcon,ye=v.selectComponentClass,Ie=v.selectPrefixCls,ve=v.pageSizeOptions,de=this.state,Qe=de.current,Rt=de.pageSize,Ee=de.currentInputValue;if(U===!0&&S<=Rt)return null;var Me=x(void 0,this.state,this.props),nt=[],He=null,ke=null,ht=null,ie=null,xe=null,we=H&&H.goButton,$e=M?1:2,ct=Qe-1>0?Qe-1:0,vt=Qe+1=$e*2&&Qe!==1+2&&(nt[0]=Object(m.cloneElement)(nt[0],{className:"".concat(_,"-item-after-jump-prev")}),nt.unshift(He)),Me-Qe>=$e*2&&Qe!==Me-2&&(nt[nt.length-1]=Object(m.cloneElement)(nt[nt.length-1],{className:"".concat(_,"-item-before-jump-next")}),nt.push(ke)),ut!==1&&nt.unshift(ht),_t!==Me&&nt.push(ie)}var Ne=null;K&&(Ne=t.a.createElement("li",{className:"".concat(_,"-total-text")},K(S,[S===0?0:(Qe-1)*Rt+1,Qe*Rt>S?S:Qe*Rt])));var Te=!this.hasPrev()||!Me,Oe=!this.hasNext()||!Me;return t.a.createElement("ul",Object(Y.a)({className:o()(_,E,Object(B.a)({},"".concat(_,"-disabled"),j)),style:g,unselectable:"unselectable",ref:this.savePaginationNode},Ut),Ne,t.a.createElement("li",{title:V?z.prev_page:null,onClick:this.prev,tabIndex:Te?null:0,onKeyPress:this.runIfEnterPrev,className:o()("".concat(_,"-prev"),Object(B.a)({},"".concat(_,"-disabled"),Te)),"aria-disabled":Te},this.renderPrev(ct)),nt,t.a.createElement("li",{title:V?z.next_page:null,onClick:this.next,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterNext,className:o()("".concat(_,"-next"),Object(B.a)({},"".concat(_,"-disabled"),Oe)),"aria-disabled":Oe},this.renderNext(vt)),t.a.createElement(d,{disabled:j,locale:z,rootPrefixCls:_,selectComponentClass:ye,selectPrefixCls:Ie,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Qe,pageSize:Rt,pageSizeOptions:ve,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:we}))}}],[{key:"getDerivedStateFromProps",value:function(p,v){var _={};if("current"in p&&(_.current=p.current,p.current!==v.current&&(_.currentInputValue=_.current)),"pageSize"in p&&p.pageSize!==v.pageSize){var E=v.current,g=x(p.pageSize,v,p);E=E>g?g:E,"current"in p||(_.current=E,_.currentInputValue=E),_.pageSize=p.pageSize}return _}}]),y}(t.a.Component);A.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:s.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var C=A},"6GrX":function(Be,J,L){var Y=L("mFDi"),B=L("Xnb7"),I=L("bYtY"),F=I.getContext,T=I.extend,R=I.retrieve2,P=I.retrieve3,m=I.trim,t={},b=0,o=5e3,u=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,f="12px sans-serif",a={};function i(U,S){a[U]=S}function d(U,S){S=S||f;var z=U+":"+S;if(t[z])return t[z];for(var H=(U+"").split(` +`+u.stack):u},0)}}emit(u){this.listeners.forEach(f=>{f(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}const B=new Y;function I(u){P(u)||B.onUnexpectedError(u);return}function F(u){P(u)||B.onUnexpectedExternalError(u);return}function T(u){if(u instanceof Error){let{name:f,message:a}=u;const i=u.stacktrace||u.stack;return{$isError:!0,name:f,message:a,stack:i}}return u}const R="Canceled";function P(u){return u instanceof Error&&u.name===R&&u.message===R}function m(){const u=new Error(R);return u.name=u.message,u}function t(u){return u?new Error(`Illegal argument: ${u}`):new Error("Illegal argument")}function b(u){return u?new Error(`Illegal state: ${u}`):new Error("Illegal state")}class o extends Error{constructor(u){super("NotSupported");u&&(this.message=u)}}},"06Qe":function(Be,J,L){var Y=L("ItGF"),B="urn:schemas-microsoft-com:vml",I=typeof window=="undefined"?null:window,F=!1,T=I&&I.document;function R(t){return P(t)}var P;if(T&&!Y.canvasSupported)try{!T.namespaces.zrvml&&T.namespaces.add("zrvml",B),P=function(t){return T.createElement("')}}catch(t){P=function(b){return T.createElement("<"+b+' xmlns="'+B+'" class="zrvml">')}}function m(){if(F||!T)return;F=!0;var t=T.styleSheets;t.length<31?T.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}J.doc=T,J.createNode=R,J.initVML=m},"0s+r":function(Be,J,L){var Y=L("bYtY"),B=L("QBsz"),I=L("y23F"),F=L("H6uX"),T=L("YH21"),R=L("C0SR"),P="silent";function m(d,s,n){return{type:d,event:n,target:s.target,topTarget:s.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:t}}function t(){T.stop(this.event)}function b(){}b.prototype.dispose=function(){};var o=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],u=function(d,s,n,l){F.call(this),this.storage=d,this.painter=s,this.painterRoot=l,n=n||new b,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,I.call(this),this.setHandlerProxy(n)};u.prototype={constructor:u,setHandlerProxy:function(d){this.proxy&&this.proxy.dispose(),d&&(Y.each(o,function(s){d.on&&d.on(s,this[s],this)},this),d.handler=this),this.proxy=d},mousemove:function(d){var s=d.zrX,n=d.zrY,l=a(this,s,n),c=this._hovered,x=c.target;x&&!x.__zr&&(c=this.findHover(c.x,c.y),x=c.target);var A=this._hovered=l?{x:s,y:n}:this.findHover(s,n),C=A.target,k=this.proxy;k.setCursor&&k.setCursor(C?C.cursor:"default"),x&&C!==x&&this.dispatchToElement(c,"mouseout",d),this.dispatchToElement(A,"mousemove",d),C&&C!==x&&this.dispatchToElement(A,"mouseover",d)},mouseout:function(d){var s=d.zrEventControl,n=d.zrIsToLocalDOM;s!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",d),s!=="no_globalout"&&(!n&&this.trigger("globalout",{type:"globalout",event:d}))},resize:function(d){this._hovered={}},dispatch:function(d,s){var n=this[d];n&&n.call(this,s)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(d){var s=this.proxy;s.setCursor&&s.setCursor(d)},dispatchToElement:function(d,s,n){d=d||{};var l=d.target;if(l&&l.silent)return;for(var c="on"+s,x=m(s,d,n);l&&!(l[c]&&(x.cancelBubble=l[c].call(l,x)),l.trigger(s,x),l=l.parent,x.cancelBubble););x.cancelBubble||(this.trigger(s,x),this.painter&&this.painter.eachOtherLayer(function(A){typeof A[c]=="function"&&A[c].call(A,x),A.trigger&&A.trigger(s,x)}))},findHover:function(d,s,n){for(var l=this.storage.getDisplayList(),c={x:d,y:s},x=l.length-1;x>=0;x--){var A;if(l[x]!==n&&!l[x].ignore&&(A=f(l[x],d,s))&&(!c.topTarget&&(c.topTarget=l[x]),A!==P)){c.target=l[x];break}}return c},processGesture:function(d,s){this._gestureMgr||(this._gestureMgr=new R);var n=this._gestureMgr;s==="start"&&n.clear();var l=n.recognize(d,this.findHover(d.zrX,d.zrY,null).target,this.proxy.dom);if(s==="end"&&n.clear(),l){var c=l.type;d.gestureEvent=c,this.dispatchToElement({target:l.target},c,l.event)}}},Y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(d){u.prototype[d]=function(s){var n=s.zrX,l=s.zrY,c=a(this,n,l),x,A;if((d!=="mouseup"||!c)&&(x=this.findHover(n,l),A=x.target),d==="mousedown")this._downEl=A,this._downPoint=[s.zrX,s.zrY],this._upEl=A;else if(d==="mouseup")this._upEl=A;else if(d==="click"){if(this._downEl!==this._upEl||!this._downPoint||B.dist(this._downPoint,[s.zrX,s.zrY])>4)return;this._downPoint=null}this.dispatchToElement(x,d,s)}});function f(d,s,n){if(d[d.rectHover?"rectContain":"contain"](s,n)){for(var l=d,c;l;){if(l.clipPath&&!l.clipPath.contain(s,n))return!1;l.silent&&(c=!0),l=l.parent}return c?P:!0}return!1}function a(d,s,n){var l=d.painter;return s<0||s>l.getWidth()||n<0||n>l.getHeight()}Y.mixin(u,F),Y.mixin(u,I);var i=u;Be.exports=i},"19Vz":function(Be,J,L){(function(Y){Y(L("VrN/"))})(function(Y){Y.defineOption("placeholder","",function(m,t,b){var o=b&&b!=Y.Init;if(t&&!o)m.on("blur",T),m.on("change",R),m.on("swapDoc",R),Y.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){F(m)}),R(m);else if(!t&&o){m.off("blur",T),m.off("change",R),m.off("swapDoc",R),Y.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),B(m);var u=m.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}t&&!m.hasFocus()&&T(m)});function B(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function I(m){B(m);var t=m.state.placeholder=document.createElement("pre");t.style.cssText="height: 0; overflow: visible",t.style.direction=m.getOption("direction"),t.className="CodeMirror-placeholder CodeMirror-line-like";var b=m.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),t.appendChild(b),m.display.lineSpace.insertBefore(t,m.display.lineSpace.firstChild)}function F(m){setTimeout(function(){var t=!1,b=m.getInputField();b.nodeName=="TEXTAREA"?t=!b.value:m.lineCount()==1&&(t=!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)),t?I(m):B(m)},20)}function T(m){P(m)&&I(m)}function R(m){var t=m.getWrapperElement(),b=P(m);t.className=t.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?I(m):B(m)}function P(m){return m.lineCount()===1&&m.getLine(0)===""}})},"1Jh7":function(Be,J,L){var Y=L("y+Vt"),B=L("T6xi"),I=Y.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(F,T){B.buildPath(F,T,!1)}});Be.exports=I},"1MYJ":function(Be,J,L){var Y=L("y+Vt"),B=Y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var I=this.__dirtyPath,F=this.shape.paths,T=0;T=this._maxSize&&o>0){var f=m.head;m.remove(f),delete t[f.key],b=f.value,this._lastRemovedEntry=f}u?u.value=P:u=new B(P),u.key=R,m.insertEntry(u),t[R]=u}return b},F.get=function(R){var P=this._map[R],m=this._list;if(P!=null)return P!==m.tail&&(m.remove(P),m.insertEntry(P)),P.value},F.clear=function(){this._list.clear(),this._map={}};var T=I;Be.exports=T},"1ZF9":function(Be,J,L){Be.exports=L.p+"static/Authorize.cc9c212f.png"},"1bdT":function(Be,J,L){var Y=L("3gBT"),B=L("H6uX"),I=L("DN4a"),F=L("vWvF"),T=L("bYtY"),R=function(m){I.call(this,m),B.call(this,m),F.call(this,m),this.id=m.id||Y()};R.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(m,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":m=0;break}var b=this.transform;b||(b=this.transform=[1,0,0,1,0,0]),b[4]+=m,b[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(m,t){},attrKV:function(m,t){if(m==="position"||m==="scale"||m==="origin"){if(t){var b=this[m];b||(b=this[m]=[]),b[0]=t[0],b[1]=t[1]}}else this[m]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(m,t){if(typeof m=="string")this.attrKV(m,t);else if(T.isObject(m))for(var b in m)m.hasOwnProperty(b)&&this.attrKV(b,m[b]);return this.dirty(!1),this},setClipPath:function(m){var t=this.__zr;t&&m.addSelfToZr(t),this.clipPath&&this.clipPath!==m&&this.removeClipPath(),this.clipPath=m,m.__zr=t,m.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var m=this.clipPath;m&&(m.__zr&&m.removeSelfFromZr(m.__zr),m.__zr=null,m.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(m){this.__zr=m;var t=this.animators;if(t)for(var b=0;b")):null:v.match("--")?E(i("comment","-->")):v.match("DOCTYPE",!0,!0)?(v.eatWhile(/[\w\._\-]/),E(d(1))):null:v.eat("?")?(v.eatWhile(/[\w\._\-]/),_.tokenize=i("meta","?>"),"meta"):(b=v.eat("/")?"closeTag":"openTag",_.tokenize=f,"tag bracket");if(g=="&"){var j;return v.eat("#")?v.eat("x")?j=v.eatWhile(/[a-fA-F\d]/)&&v.eat(";"):j=v.eatWhile(/[\d]/)&&v.eat(";"):j=v.eatWhile(/[\w\.\-:]/)&&v.eat(";"),j?"atom":"error"}else return v.eatWhile(/[^&<]/),null}u.isInText=!0;function f(v,_){var E=v.next();if(E==">"||E=="/"&&v.eat(">"))return _.tokenize=u,b=E==">"?"endTag":"selfcloseTag","tag bracket";if(E=="=")return b="equals",null;if(E=="<"){_.tokenize=u,_.state=c,_.tagName=_.tagStart=null;var g=_.tokenize(v,_);return g?g+" tag error":"tag error"}else return/[\'\"]/.test(E)?(_.tokenize=a(E),_.stringStartCol=v.column(),_.tokenize(v,_)):(v.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function a(v){var _=function(E,g){for(;!E.eol();)if(E.next()==v){g.tokenize=f;break}return"string"};return _.isInAttribute=!0,_}function i(v,_){return function(E,g){for(;!E.eol();){if(E.match(_)){g.tokenize=u;break}E.next()}return v}}function d(v){return function(_,E){for(var g;(g=_.next())!=null;){if(g=="<")return E.tokenize=d(v+1),E.tokenize(_,E);if(g==">")if(v==1){E.tokenize=u;break}else return E.tokenize=d(v-1),E.tokenize(_,E)}return"meta"}}function s(v,_,E){this.prev=v.context,this.tagName=_,this.indent=v.indented,this.startOfLine=E,(P.doNotIndent.hasOwnProperty(_)||v.context&&v.context.noIndent)&&(this.noIndent=!0)}function n(v){v.context&&(v.context=v.context.prev)}function l(v,_){for(var E;;){if(!v.context)return;if(E=v.context.tagName,!P.contextGrabbers.hasOwnProperty(E)||!P.contextGrabbers[E].hasOwnProperty(_))return;n(v)}}function c(v,_,E){return v=="openTag"?(E.tagStart=_.column(),x):v=="closeTag"?A:c}function x(v,_,E){return v=="word"?(E.tagName=_.current(),o="tag",w):P.allowMissingTagName&&v=="endTag"?(o="tag bracket",w(v,_,E)):(o="error",x)}function A(v,_,E){if(v=="word"){var g=_.current();return E.context&&E.context.tagName!=g&&P.implicitlyClosed.hasOwnProperty(E.context.tagName)&&n(E),E.context&&E.context.tagName==g||P.matchClosing===!1?(o="tag",C):(o="tag error",k)}else return P.allowMissingTagName&&v=="endTag"?(o="tag bracket",C(v,_,E)):(o="error",k)}function C(v,_,E){return v!="endTag"?(o="error",C):(n(E),c)}function k(v,_,E){return o="error",C(v,_,E)}function w(v,_,E){if(v=="word")return o="attribute",y;if(v=="endTag"||v=="selfcloseTag"){var g=E.tagName,j=E.tagStart;return E.tagName=E.tagStart=null,v=="selfcloseTag"||P.autoSelfClosers.hasOwnProperty(g)?l(E,g):(l(E,g),E.context=new s(E,g,j==E.indented)),c}return o="error",w}function y(v,_,E){return v=="equals"?h:(P.allowMissing||(o="error"),w(v,_,E))}function h(v,_,E){return v=="string"?p:v=="word"&&P.allowUnquoted?(o="string",w):(o="error",w(v,_,E))}function p(v,_,E){return v=="string"?p:w(v,_,E)}return{startState:function(v){var _={tokenize:u,state:c,indented:v||0,tagName:null,tagStart:null,context:null};return v!=null&&(_.baseIndent=v),_},token:function(v,_){if(!_.tagName&&v.sol()&&(_.indented=v.indentation()),v.eatSpace())return null;b=null;var E=_.tokenize(v,_);return(E||b)&&E!="comment"&&(o=null,_.state=_.state(b||E,v,_),o&&(E=o=="error"?E+" error":o)),E},indent:function(v,_,E){var g=v.context;if(v.tokenize.isInAttribute)return v.tagStart==v.indented?v.stringStartCol+1:v.indented+R;if(g&&g.noIndent)return Y.Pass;if(v.tokenize!=f&&v.tokenize!=u)return E?E.match(/^(\s*)/)[0].length:0;if(v.tagName)return P.multilineTagIndentPastTag!==!1?v.tagStart+v.tagName.length+2:v.tagStart+R*(P.multilineTagIndentFactor||1);if(P.alignCDATA&&/$/,blockCommentStart:"",configuration:P.htmlMode?"html":"xml",helperType:P.htmlMode?"html":"xml",skipAttribute:function(v){v.state==h&&(v.state=w)},xmlCurrentTag:function(v){return v.tagName?{name:v.tagName,close:v.type=="closeTag"}:null},xmlCurrentContext:function(v){for(var _=[],E=v.context;E;E=E.prev)E.tagName&&_.push(E.tagName);return _.reverse()}}}),Y.defineMIME("text/xml","xml"),Y.defineMIME("application/xml","xml"),Y.mimeModes.hasOwnProperty("text/html")||Y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Be,J,L){"use strict";L.d(J,"d",function(){return ct}),L.d(J,"b",function(){return Se}),L.d(J,"c",function(){return xt}),L.d(J,"a",function(){return sn});var Y=L("VTBJ"),B=L("1OyB"),I=L("vuIU"),F=L("JX7q"),T=L("Ji7U"),R=L("LK+K"),P=L("q1tI"),m=L("I8Z2"),t=L("BGR+"),b=L("wx14"),o=L("rePB"),u=L("4IlW"),f=L("2GS6"),a=L("Gytx"),i=L.n(a),d=L("TSYQ"),s=L.n(d),n=L("U8pU"),l=L("ODXe"),c=/iPhone/i,x=/iPod/i,A=/iPad/i,C=/\bAndroid(?:.+)Mobile\b/i,k=/Android/i,w=/\bAndroid(?:.+)SD4930UR\b/i,y=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,h=/Windows Phone/i,p=/\bWindows(?:.+)ARM\b/i,v=/BlackBerry/i,_=/BB10/i,E=/Opera Mini/i,g=/\b(CriOS|Chrome)(?:.+)Mobile/i,j=/Mobile(?:.+)Firefox\b/i;function U(zt,Ot){return zt.test(Ot)}function S(zt){var Ot=zt||(typeof navigator!="undefined"?navigator.userAgent:""),At=Ot.split("[FBAN");if(typeof At[1]!="undefined"){var ft=At,be=Object(l.a)(ft,1);Ot=be[0]}if(At=Ot.split("Twitter"),typeof At[1]!="undefined"){var Fe=At,Nt=Object(l.a)(Fe,1);Ot=Nt[0]}var bt={apple:{phone:U(c,Ot)&&!U(h,Ot),ipod:U(x,Ot),tablet:!U(c,Ot)&&U(A,Ot)&&!U(h,Ot),device:(U(c,Ot)||U(x,Ot)||U(A,Ot))&&!U(h,Ot)},amazon:{phone:U(w,Ot),tablet:!U(w,Ot)&&U(y,Ot),device:U(w,Ot)||U(y,Ot)},android:{phone:!U(h,Ot)&&U(w,Ot)||!U(h,Ot)&&U(C,Ot),tablet:!U(h,Ot)&&!U(w,Ot)&&!U(C,Ot)&&(U(y,Ot)||U(k,Ot)),device:!U(h,Ot)&&(U(w,Ot)||U(y,Ot)||U(C,Ot)||U(k,Ot))||U(/\bokhttp\b/i,Ot)},windows:{phone:U(h,Ot),tablet:U(p,Ot),device:U(h,Ot)||U(p,Ot)},other:{blackberry:U(v,Ot),blackberry10:U(_,Ot),opera:U(E,Ot),firefox:U(j,Ot),chrome:U(g,Ot),device:U(v,Ot)||U(_,Ot)||U(E,Ot)||U(j,Ot)||U(g,Ot)},any:null,phone:null,tablet:null};return bt.any=bt.apple.device||bt.android.device||bt.windows.device||bt.other.device,bt.phone=bt.apple.phone||bt.android.phone||bt.windows.phone,bt.tablet=bt.apple.tablet||bt.android.tablet||bt.windows.tablet,bt}var z=Object(Y.a)(Object(Y.a)({},S()),{},{isMobile:S}),H=z;function M(){}function V(zt,Ot,At){var ft=Ot||"";return zt.key||"".concat(ft,"item_").concat(At)}function K(zt){return"".concat(zt,"-menu-")}function $(zt,Ot){var At=-1;P.Children.forEach(zt,function(ft){At+=1,ft&&ft.type&&ft.type.isMenuItemGroup?P.Children.forEach(ft.props.children,function(be){At+=1,Ot(be,At)}):Ot(ft,At)})}function Z(zt,Ot,At){if(!zt||At.find)return;P.Children.forEach(zt,function(ft){if(ft){var be=ft.type;if(!be||!(be.isSubMenu||be.isMenuItem||be.isMenuItemGroup))return;Ot.indexOf(ft.key)!==-1?At.find=!0:ft.props.children&&Z(ft.props.children,Ot,At)}})}var me=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],oe=function(Ot){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=Ot&&typeof Ot.getBoundingClientRect=="function"&&Ot.getBoundingClientRect().width;if(ft){if(At){var be=getComputedStyle(Ot),Fe=be.marginLeft,Nt=be.marginRight;ft+=+Fe.replace("px","")+ +Nt.replace("px","")}ft=+ft.toFixed(6)}return ft||0},fe=function(Ot,At,ft){Ot&&Object(n.a)(Ot.style)==="object"&&(Ot.style[At]=ft)},ye=function(){return H.any},Ie=L("KQm4"),ve=L("Ff2n"),de=L("i8i4"),Je=L("bdgK"),Rt=L("uciX"),Ee=L("8XRh"),Me={adjustX:1,adjustY:1},rt={topLeft:{points:["bl","tl"],overflow:Me,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Me,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Me,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Me,offset:[4,0]}},He={topLeft:{points:["bl","tl"],overflow:Me,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Me,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Me,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Me,offset:[4,0]}},ke=rt,ht=0,ie={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},xe=function(Ot,At,ft){var be=K(At),Fe=Ot.getState();Ot.setState({defaultActiveFirst:Object(Y.a)(Object(Y.a)({},Fe.defaultActiveFirst),{},Object(o.a)({},be,ft))})},we=function(zt){Object(T.a)(At,zt);var Ot=Object(R.a)(At);function At(ft){var be;Object(B.a)(this,At),be=Ot.call(this,ft),be.onDestroy=function(Ge){be.props.onDestroy(Ge)},be.onKeyDown=function(Ge){var lt=Ge.keyCode,Lt=be.menuInstance,Wt=be.props,ln=Wt.isOpen,gn=Wt.store;if(lt===u.a.ENTER)return be.onTitleClick(Ge),xe(gn,be.props.eventKey,!0),!0;if(lt===u.a.RIGHT)return ln?Lt.onKeyDown(Ge):(be.triggerOpenChange(!0),xe(gn,be.props.eventKey,!0)),!0;if(lt===u.a.LEFT){var tr;if(ln)tr=Lt.onKeyDown(Ge);else return;return tr||(be.triggerOpenChange(!1),tr=!0),tr}return ln&&(lt===u.a.UP||lt===u.a.DOWN)?Lt.onKeyDown(Ge):void 0},be.onOpenChange=function(Ge){be.props.onOpenChange(Ge)},be.onPopupVisibleChange=function(Ge){be.triggerOpenChange(Ge,Ge?"mouseenter":"mouseleave")},be.onMouseEnter=function(Ge){var lt=be.props,Lt=lt.eventKey,Wt=lt.onMouseEnter,ln=lt.store;xe(ln,be.props.eventKey,!1),Wt({key:Lt,domEvent:Ge})},be.onMouseLeave=function(Ge){var lt=be.props,Lt=lt.parentMenu,Wt=lt.eventKey,ln=lt.onMouseLeave;Lt.subMenuInstance=Object(F.a)(be),ln({key:Wt,domEvent:Ge})},be.onTitleMouseEnter=function(Ge){var lt=be.props,Lt=lt.eventKey,Wt=lt.onItemHover,ln=lt.onTitleMouseEnter;Wt({key:Lt,hover:!0}),ln({key:Lt,domEvent:Ge})},be.onTitleMouseLeave=function(Ge){var lt=be.props,Lt=lt.parentMenu,Wt=lt.eventKey,ln=lt.onItemHover,gn=lt.onTitleMouseLeave;Lt.subMenuInstance=Object(F.a)(be),ln({key:Wt,hover:!1}),gn({key:Wt,domEvent:Ge})},be.onTitleClick=function(Ge){var lt=Object(F.a)(be),Lt=lt.props;if(Lt.onTitleClick({key:Lt.eventKey,domEvent:Ge}),Lt.triggerSubMenuAction==="hover")return;be.triggerOpenChange(!Lt.isOpen,"click"),xe(Lt.store,be.props.eventKey,!1)},be.onSubMenuClick=function(Ge){typeof be.props.onClick=="function"&&be.props.onClick(be.addKeyPath(Ge))},be.onSelect=function(Ge){be.props.onSelect(Ge)},be.onDeselect=function(Ge){be.props.onDeselect(Ge)},be.getPrefixCls=function(){return"".concat(be.props.rootPrefixCls,"-submenu")},be.getActiveClassName=function(){return"".concat(be.getPrefixCls(),"-active")},be.getDisabledClassName=function(){return"".concat(be.getPrefixCls(),"-disabled")},be.getSelectedClassName=function(){return"".concat(be.getPrefixCls(),"-selected")},be.getOpenClassName=function(){return"".concat(be.props.rootPrefixCls,"-submenu-open")},be.saveMenuInstance=function(Ge){be.menuInstance=Ge},be.addKeyPath=function(Ge){return Object(Y.a)(Object(Y.a)({},Ge),{},{keyPath:(Ge.keyPath||[]).concat(be.props.eventKey)})},be.triggerOpenChange=function(Ge,lt){var Lt=be.props.eventKey,Wt=function(){be.onOpenChange({key:Lt,item:Object(F.a)(be),trigger:lt,open:Ge})};lt==="mouseenter"?be.mouseenterTimeout=setTimeout(function(){Wt()},0):Wt()},be.isChildrenSelected=function(){var Ge={find:!1};return Z(be.props.children,be.props.selectedKeys,Ge),Ge.find},be.isOpen=function(){return be.props.openKeys.indexOf(be.props.eventKey)!==-1},be.adjustWidth=function(){if(!be.subMenuTitle||!be.menuInstance)return;var Ge=de.findDOMNode(be.menuInstance);if(Ge.offsetWidth>=be.subMenuTitle.offsetWidth)return;Ge.style.minWidth="".concat(be.subMenuTitle.offsetWidth,"px")},be.saveSubMenuTitle=function(Ge){be.subMenuTitle=Ge},be.getBaseProps=function(){var Ge=Object(F.a)(be),lt=Ge.props;return{mode:lt.mode==="horizontal"?"vertical":lt.mode,visible:be.props.isOpen,level:lt.level+1,inlineIndent:lt.inlineIndent,focusable:!1,onClick:be.onSubMenuClick,onSelect:be.onSelect,onDeselect:be.onDeselect,onDestroy:be.onDestroy,selectedKeys:lt.selectedKeys,eventKey:"".concat(lt.eventKey,"-menu-"),openKeys:lt.openKeys,motion:lt.motion,onOpenChange:be.onOpenChange,subMenuOpenDelay:lt.subMenuOpenDelay,parentMenu:Object(F.a)(be),subMenuCloseDelay:lt.subMenuCloseDelay,forceSubMenuRender:lt.forceSubMenuRender,triggerSubMenuAction:lt.triggerSubMenuAction,builtinPlacements:lt.builtinPlacements,defaultActiveFirst:lt.store.getState().defaultActiveFirst[K(lt.eventKey)],multiple:lt.multiple,prefixCls:lt.rootPrefixCls,id:be.internalMenuId,manualRef:be.saveMenuInstance,itemIcon:lt.itemIcon,expandIcon:lt.expandIcon,direction:lt.direction}},be.getMotion=function(Ge,lt){var Lt=Object(F.a)(be),Wt=Lt.haveRendered,ln=be.props,gn=ln.motion,tr=ln.rootPrefixCls,Wn=Object(Y.a)(Object(Y.a)({},gn),{},{leavedClassName:"".concat(tr,"-hidden"),removeOnLeave:!1,motionAppear:Wt||!lt||Ge!=="inline"});return Wn};var Fe=ft.store,Nt=ft.eventKey,bt=Fe.getState(),Kt=bt.defaultActiveFirst;be.isRootMenu=!1;var Zt=!1;return Kt&&(Zt=Kt[Nt]),xe(Fe,Nt,Zt),be}return Object(I.a)(At,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var be=this,Fe=this.props,Nt=Fe.mode,bt=Fe.parentMenu,Kt=Fe.manualRef;if(Kt&&Kt(this),Nt!=="horizontal"||!bt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return be.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var be=this.props,Fe=be.onDestroy,Nt=be.eventKey;Fe&&Fe(Nt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(be){var Fe=this,Nt=this.getBaseProps(),bt=this.getMotion(Nt.mode,Nt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Nt.visible||Nt.forceSubMenuRender,!this.haveOpened)return P.createElement("div",null);var Kt=Nt.direction;return P.createElement(Ee.default,Object.assign({visible:Nt.visible},bt),function(Zt){var Ge=Zt.className,lt=Zt.style,Lt=s()("".concat(Nt.prefixCls,"-sub"),Ge,Object(o.a)({},"".concat(Nt.prefixCls,"-rtl"),Kt==="rtl"));return P.createElement(Ne,Object.assign({},Nt,{id:Fe.internalMenuId,className:Lt,style:lt}),be)})}},{key:"render",value:function(){var be,Fe=Object(Y.a)({},this.props),Nt=Fe.isOpen,bt=this.getPrefixCls(),Kt=Fe.mode==="inline",Zt=s()(bt,"".concat(bt,"-").concat(Fe.mode),(be={},Object(o.a)(be,Fe.className,!!Fe.className),Object(o.a)(be,this.getOpenClassName(),Nt),Object(o.a)(be,this.getActiveClassName(),Fe.active||Nt&&!Kt),Object(o.a)(be,this.getDisabledClassName(),Fe.disabled),Object(o.a)(be,this.getSelectedClassName(),this.isChildrenSelected()),be));this.internalMenuId||(Fe.eventKey?this.internalMenuId="".concat(Fe.eventKey,"$Menu"):(ht+=1,this.internalMenuId="$__$".concat(ht,"$Menu")));var Ge={},lt={},Lt={};Fe.disabled||(Ge={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},lt={onClick:this.onTitleClick},Lt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Wt={},ln=Fe.direction;Kt&&(ln==="rtl"?Wt.paddingRight=Fe.inlineIndent*Fe.level:Wt.paddingLeft=Fe.inlineIndent*Fe.level);var gn={};this.props.isOpen&&(gn={"aria-owns":this.internalMenuId});var tr=null;Fe.mode!=="horizontal"&&(tr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(tr=P.createElement(this.props.expandIcon,Object(Y.a)({},this.props))));var Wn=P.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Wt,className:"".concat(bt,"-title"),role:"button"},Lt,lt,{"aria-expanded":Nt},gn,{"aria-haspopup":"true",title:typeof Fe.title=="string"?Fe.title:void 0}),Fe.title,tr||P.createElement("i",{className:"".concat(bt,"-arrow")})),En=this.renderChildren(Fe.children),xr=Fe.parentMenu.isRootMenu?Fe.parentMenu.props.getPopupContainer:function(Jr){return Jr.parentNode},Er=ie[Fe.mode],rr=Fe.popupOffset?{offset:Fe.popupOffset}:{},ur=Fe.mode==="inline"?"":Fe.popupClassName;ur+=ln==="rtl"?" ".concat(bt,"-rtl"):"";var Rr=Fe.disabled,Kr=Fe.triggerSubMenuAction,ra=Fe.subMenuOpenDelay,fn=Fe.forceSubMenuRender,or=Fe.subMenuCloseDelay,sa=Fe.builtinPlacements;me.forEach(function(Jr){return delete Fe[Jr]}),delete Fe.onClick;var ya=ln==="rtl"?Object.assign({},He,sa):Object.assign({},rt,sa);return delete Fe.direction,P.createElement("li",Object.assign({},Fe,Ge,{className:Zt,role:"menuitem"}),Kt&&Wn,Kt&&En,!Kt&&P.createElement(Rt.a,{prefixCls:bt,popupClassName:s()("".concat(bt,"-popup"),ur),getPopupContainer:xr,builtinPlacements:ya,popupPlacement:Er,popupVisible:Nt,popupAlign:rr,popup:En,action:Rr?[]:[Kr],mouseEnterDelay:ra,mouseLeaveDelay:or,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:fn},Wn))}}]),At}(P.Component);we.defaultProps={onMouseEnter:M,onMouseLeave:M,onTitleMouseEnter:M,onTitleMouseLeave:M,onTitleClick:M,manualRef:M,mode:"vertical",title:""};var $e=Object(m.b)(function(zt,Ot){var At=zt.openKeys,ft=zt.activeKey,be=zt.selectedKeys,Fe=Ot.eventKey,Nt=Ot.subMenuKey;return{isOpen:At.indexOf(Fe)>-1,active:ft[Nt]===Fe,selectedKeys:be}})(we);$e.isSubMenu=!0;var ct=$e,yt="menuitem-overflowed",Ut=.5,We=function(zt){Object(T.a)(At,zt);var Ot=Object(R.a)(At);function At(){var ft;return Object(B.a)(this,At),ft=Ot.apply(this,arguments),ft.resizeObserver=null,ft.mutationObserver=null,ft.originalTotalWidth=0,ft.overflowedItems=[],ft.menuItemSizes=[],ft.cancelFrameId=null,ft.state={lastVisibleIndex:void 0},ft.getMenuItemNodes=function(){var be=ft.props.prefixCls,Fe=de.findDOMNode(Object(F.a)(ft));return Fe?[].slice.call(Fe.children).filter(function(Nt){return Nt.className.split(" ").indexOf("".concat(be,"-overflowed-submenu"))<0}):[]},ft.getOverflowedSubMenuItem=function(be,Fe,Nt){var bt=ft.props,Kt=bt.overflowedIndicator,Zt=bt.level,Ge=bt.mode,lt=bt.prefixCls,Lt=bt.theme;if(Zt!==1||Ge!=="horizontal")return null;var Wt=ft.props.children[0],ln=Wt.props,gn=ln.children,tr=ln.title,Wn=ln.style,En=Object(ve.a)(ln,["children","title","style"]),xr=Object(Y.a)({},Wn),Er="".concat(be,"-overflowed-indicator"),rr="".concat(be,"-overflowed-indicator");Fe.length===0&&Nt!==!0?xr=Object(Y.a)(Object(Y.a)({},xr),{},{display:"none"}):Nt&&(xr=Object(Y.a)(Object(Y.a)({},xr),{},{visibility:"hidden",position:"absolute"}),Er="".concat(Er,"-placeholder"),rr="".concat(rr,"-placeholder"));var ur=Lt?"".concat(lt,"-").concat(Lt):"",Rr={};return me.forEach(function(Kr){En[Kr]!==void 0&&(Rr[Kr]=En[Kr])}),P.createElement(ct,Object.assign({title:Kt,className:"".concat(lt,"-overflowed-submenu"),popupClassName:ur},Rr,{key:Er,eventKey:rr,disabled:!1,style:xr}),Fe)},ft.setChildrenWidthAndResize=function(){if(ft.props.mode!=="horizontal")return;var be=de.findDOMNode(Object(F.a)(ft));if(!be)return;var Fe=be.children;if(!Fe||Fe.length===0)return;var Nt=be.children[Fe.length-1];fe(Nt,"display","inline-block");var bt=ft.getMenuItemNodes(),Kt=bt.filter(function(Zt){return Zt.className.split(" ").indexOf(yt)>=0});Kt.forEach(function(Zt){fe(Zt,"display","inline-block")}),ft.menuItemSizes=bt.map(function(Zt){return oe(Zt,!0)}),Kt.forEach(function(Zt){fe(Zt,"display","none")}),ft.overflowedIndicatorWidth=oe(be.children[be.children.length-1],!0),ft.originalTotalWidth=ft.menuItemSizes.reduce(function(Zt,Ge){return Zt+Ge},0),ft.handleResize(),fe(Nt,"display","none")},ft.handleResize=function(){if(ft.props.mode!=="horizontal")return;var be=de.findDOMNode(Object(F.a)(ft));if(!be)return;var Fe=oe(be);ft.overflowedItems=[];var Nt=0,bt;ft.originalTotalWidth>Fe+Ut&&(bt=-1,ft.menuItemSizes.forEach(function(Kt){Nt+=Kt,Nt+ft.overflowedIndicatorWidth<=Fe&&(bt+=1)})),ft.setState({lastVisibleIndex:bt})},ft}return Object(I.a)(At,[{key:"componentDidMount",value:function(){var be=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Fe=de.findDOMNode(this);if(!Fe)return;this.resizeObserver=new Je.default(function(Nt){Nt.forEach(function(){var bt=be.cancelFrameId;cancelAnimationFrame(bt),be.cancelFrameId=requestAnimationFrame(be.setChildrenWidthAndResize)})}),[].slice.call(Fe.children).concat(Fe).forEach(function(Nt){be.resizeObserver.observe(Nt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){be.resizeObserver.disconnect(),[].slice.call(Fe.children).concat(Fe).forEach(function(Nt){be.resizeObserver.observe(Nt)}),be.setChildrenWidthAndResize()}),this.mutationObserver.observe(Fe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(be){var Fe=this,Nt=this.state.lastVisibleIndex;return(be||[]).reduce(function(bt,Kt,Zt){var Ge=Kt;if(Fe.props.mode==="horizontal"){var lt=Fe.getOverflowedSubMenuItem(Kt.props.eventKey,[]);Nt!==void 0&&Fe.props.className.indexOf("".concat(Fe.props.prefixCls,"-root"))!==-1&&(Zt>Nt&&(Ge=P.cloneElement(Kt,{style:{display:"none"},eventKey:"".concat(Kt.props.eventKey,"-hidden"),className:"".concat(yt)})),Zt===Nt+1&&(Fe.overflowedItems=be.slice(Nt+1).map(function(Wt){return P.cloneElement(Wt,{key:Wt.props.eventKey,mode:"vertical-left"})}),lt=Fe.getOverflowedSubMenuItem(Kt.props.eventKey,Fe.overflowedItems)));var Lt=[].concat(Object(Ie.a)(bt),[lt,Ge]);return Zt===be.length-1&&Lt.push(Fe.getOverflowedSubMenuItem(Kt.props.eventKey,[],!0)),Lt}return[].concat(Object(Ie.a)(bt),[Ge])},[])}},{key:"render",value:function(){var be=this.props,Fe=be.visible,Nt=be.prefixCls,bt=be.overflowedIndicator,Kt=be.mode,Zt=be.level,Ge=be.tag,lt=be.children,Lt=be.theme,Wt=Object(ve.a)(be,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ln=Ge;return P.createElement(ln,Object.assign({},Wt),this.renderChildren(lt))}}]),At}(P.Component);We.defaultProps={tag:"div",className:""};var kt=We;function qt(zt){return zt.length?zt.every(function(Ot){return!!Ot.props.disabled}):!0}function Pe(zt,Ot,At){var ft=zt.getState();zt.setState({activeKey:Object(Y.a)(Object(Y.a)({},ft.activeKey),{},Object(o.a)({},Ot,At))})}function Ae(zt){return zt.eventKey||"0-menu-"}function ut(zt,Ot){var At=Ot,ft=zt.children,be=zt.eventKey;if(At){var Fe;if($(ft,function(Nt,bt){Nt&&Nt.props&&!Nt.props.disabled&&At===V(Nt,be,bt)&&(Fe=!0)}),Fe)return At}return At=null,zt.defaultActiveFirst&&$(ft,function(Nt,bt){!At&&Nt&&!Nt.props.disabled&&(At=V(Nt,be,bt))}),At}function Et(zt){if(zt){var Ot=this.instanceArray.indexOf(zt);Ot!==-1?this.instanceArray[Ot]=zt:this.instanceArray.push(zt)}}var Ze=function(zt){Object(T.a)(At,zt);var Ot=Object(R.a)(At);function At(ft){var be;return Object(B.a)(this,At),be=Ot.call(this,ft),be.onKeyDown=function(Fe,Nt){var bt=Fe.keyCode,Kt;if(be.getFlatInstanceArray().forEach(function(Ge){Ge&&Ge.props.active&&Ge.onKeyDown&&(Kt=Ge.onKeyDown(Fe))}),Kt)return 1;var Zt=null;return(bt===u.a.UP||bt===u.a.DOWN)&&(Zt=be.step(bt===u.a.UP?-1:1)),Zt?(Fe.preventDefault(),Pe(be.props.store,Ae(be.props),Zt.props.eventKey),typeof Nt=="function"&&Nt(Zt),1):void 0},be.onItemHover=function(Fe){var Nt=Fe.key,bt=Fe.hover;Pe(be.props.store,Ae(be.props),bt?Nt:null)},be.onDeselect=function(Fe){be.props.onDeselect(Fe)},be.onSelect=function(Fe){be.props.onSelect(Fe)},be.onClick=function(Fe){be.props.onClick(Fe)},be.onOpenChange=function(Fe){be.props.onOpenChange(Fe)},be.onDestroy=function(Fe){be.props.onDestroy(Fe)},be.getFlatInstanceArray=function(){return be.instanceArray},be.step=function(Fe){var Nt=be.getFlatInstanceArray(),bt=be.props.store.getState().activeKey[Ae(be.props)],Kt=Nt.length;if(!Kt)return null;Fe<0&&(Nt=Nt.concat().reverse());var Zt=-1;if(Nt.every(function(Wt,ln){return Wt&&Wt.props.eventKey===bt?(Zt=ln,!1):!0}),!be.props.defaultActiveFirst&&Zt!==-1&&qt(Nt.slice(Zt,Kt-1)))return;var Ge=(Zt+1)%Kt,lt=Ge;do{var Lt=Nt[lt];if(!Lt||Lt.props.disabled)lt=(lt+1)%Kt;else return Lt}while(lt!==Ge);return null},be.renderCommonMenuItem=function(Fe,Nt,bt){var Kt=be.props.store.getState(),Zt=Object(F.a)(be),Ge=Zt.props,lt=V(Fe,Ge.eventKey,Nt),Lt=Fe.props;if(!Lt||typeof Fe.type=="string")return Fe;var Wt=lt===Kt.activeKey,ln=Object(Y.a)(Object(Y.a)({mode:Lt.mode||Ge.mode,level:Ge.level,inlineIndent:Ge.inlineIndent,renderMenuItem:be.renderMenuItem,rootPrefixCls:Ge.prefixCls,index:Nt,parentMenu:Ge.parentMenu,manualRef:Lt.disabled?void 0:Object(f.a)(Fe.ref,Et.bind(Object(F.a)(be))),eventKey:lt,active:!Lt.disabled&&Wt,multiple:Ge.multiple,onClick:function(tr){(Lt.onClick||M)(tr),be.onClick(tr)},onItemHover:be.onItemHover,motion:Ge.motion,subMenuOpenDelay:Ge.subMenuOpenDelay,subMenuCloseDelay:Ge.subMenuCloseDelay,forceSubMenuRender:Ge.forceSubMenuRender,onOpenChange:be.onOpenChange,onDeselect:be.onDeselect,onSelect:be.onSelect,builtinPlacements:Ge.builtinPlacements,itemIcon:Lt.itemIcon||be.props.itemIcon,expandIcon:Lt.expandIcon||be.props.expandIcon},bt),{},{direction:Ge.direction});return(Ge.mode==="inline"||ye())&&(ln.triggerSubMenuAction="click"),P.cloneElement(Fe,ln)},be.renderMenuItem=function(Fe,Nt,bt){if(!Fe)return null;var Kt=be.props.store.getState(),Zt={openKeys:Kt.openKeys,selectedKeys:Kt.selectedKeys,triggerSubMenuAction:be.props.triggerSubMenuAction,subMenuKey:bt};return be.renderCommonMenuItem(Fe,Nt,Zt)},ft.store.setState({activeKey:Object(Y.a)(Object(Y.a)({},ft.store.getState().activeKey),{},Object(o.a)({},ft.eventKey,ut(ft,ft.activeKey)))}),be.instanceArray=[],be}return Object(I.a)(At,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(be){return this.props.visible||be.visible||this.props.className!==be.className||!i()(this.props.style,be.style)}},{key:"componentDidUpdate",value:function(be){var Fe=this.props,Nt="activeKey"in Fe?Fe.activeKey:Fe.store.getState().activeKey[Ae(Fe)],bt=ut(Fe,Nt);if(bt!==Nt)Pe(Fe.store,Ae(Fe),bt);else if("activeKey"in be){var Kt=ut(be,be.activeKey);bt!==Kt&&Pe(Fe.store,Ae(Fe),bt)}}},{key:"render",value:function(){var be=this,Fe=Object(b.a)({},this.props);this.instanceArray=[];var Nt=s()(Fe.prefixCls,Fe.className,"".concat(Fe.prefixCls,"-").concat(Fe.mode)),bt={className:Nt,role:Fe.role||"menu"};Fe.id&&(bt.id=Fe.id),Fe.focusable&&(bt.tabIndex=0,bt.onKeyDown=this.onKeyDown);var Kt=Fe.prefixCls,Zt=Fe.eventKey,Ge=Fe.visible,lt=Fe.level,Lt=Fe.mode,Wt=Fe.overflowedIndicator,ln=Fe.theme;return me.forEach(function(gn){return delete Fe[gn]}),delete Fe.onClick,P.createElement(kt,Object.assign({},Fe,{prefixCls:Kt,mode:Lt,tag:"ul",level:lt,theme:ln,visible:Ge,overflowedIndicator:Wt},bt),P.Children.map(Fe.children,function(gn,tr){return be.renderMenuItem(gn,tr,Zt||"0-menu-")}))}}]),At}(P.Component);Ze.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:M};var dt=Object(m.b)()(Ze),Ne=dt,Te=L("Kwbf");function Oe(zt,Ot,At){var ft=zt.prefixCls,be=zt.motion,Fe=zt.defaultMotions,Nt=Fe===void 0?{}:Fe,bt=zt.openAnimation,Kt=zt.openTransitionName,Zt=Ot.switchingModeFromInline;if(be)return be;if(Object(n.a)(bt)==="object"&&bt)Object(Te.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof bt=="string")return{motionName:"".concat(ft,"-open-").concat(bt)};if(Kt)return{motionName:Kt};var Ge=Nt[At];return Ge||(Zt?null:Nt.other)}var ae=function(zt){Object(T.a)(At,zt);var Ot=Object(R.a)(At);function At(ft){var be;Object(B.a)(this,At),be=Ot.call(this,ft),be.inlineOpenKeys=[],be.onSelect=function(bt){var Kt=Object(F.a)(be),Zt=Kt.props;if(Zt.selectable){var Ge=be.store.getState(),lt=Ge.selectedKeys,Lt=bt.key;Zt.multiple?lt=lt.concat([Lt]):lt=[Lt],"selectedKeys"in Zt||be.store.setState({selectedKeys:lt}),Zt.onSelect(Object(Y.a)(Object(Y.a)({},bt),{},{selectedKeys:lt}))}},be.onClick=function(bt){var Kt=be.getRealMenuMode(),Zt=Object(F.a)(be),Ge=Zt.store,lt=Zt.props.onOpenChange;Kt!=="inline"&&!("openKeys"in be.props)&&(Ge.setState({openKeys:[]}),lt([])),be.props.onClick(bt)},be.onKeyDown=function(bt,Kt){be.innerMenu.getWrappedInstance().onKeyDown(bt,Kt)},be.onOpenChange=function(bt){var Kt=Object(F.a)(be),Zt=Kt.props,Ge=be.store.getState().openKeys.concat(),lt=!1,Lt=function(ln){var gn=!1;if(ln.open)gn=Ge.indexOf(ln.key)===-1,gn&&Ge.push(ln.key);else{var tr=Ge.indexOf(ln.key);gn=tr!==-1,gn&&Ge.splice(tr,1)}lt=lt||gn};Array.isArray(bt)?bt.forEach(Lt):Lt(bt),lt&&("openKeys"in be.props||be.store.setState({openKeys:Ge}),Zt.onOpenChange(Ge))},be.onDeselect=function(bt){var Kt=Object(F.a)(be),Zt=Kt.props;if(Zt.selectable){var Ge=be.store.getState().selectedKeys.concat(),lt=bt.key,Lt=Ge.indexOf(lt);Lt!==-1&&Ge.splice(Lt,1),"selectedKeys"in Zt||be.store.setState({selectedKeys:Ge}),Zt.onDeselect(Object(Y.a)(Object(Y.a)({},bt),{},{selectedKeys:Ge}))}},be.onMouseEnter=function(bt){be.restoreModeVerticalFromInline();var Kt=be.props.onMouseEnter;Kt&&Kt(bt)},be.onTransitionEnd=function(bt){var Kt=bt.propertyName==="width"&&bt.target===bt.currentTarget,Zt=bt.target.className,Ge=Object.prototype.toString.call(Zt)==="[object SVGAnimatedString]"?Zt.animVal:Zt,lt=bt.propertyName==="font-size"&&Ge.indexOf("anticon")>=0;(Kt||lt)&&be.restoreModeVerticalFromInline()},be.setInnerMenu=function(bt){be.innerMenu=bt},be.isRootMenu=!0;var Fe=ft.defaultSelectedKeys,Nt=ft.defaultOpenKeys;return"selectedKeys"in ft&&(Fe=ft.selectedKeys||[]),"openKeys"in ft&&(Nt=ft.openKeys||[]),be.store=Object(m.c)({selectedKeys:Fe,openKeys:Nt,activeKey:{"0-menu-":ut(ft,ft.activeKey)}}),be.state={switchingModeFromInline:!1},be}return Object(I.a)(At,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(be){this.updateOpentKeysWhenSwitchMode(be),this.updateMiniStore();var Fe=this.props,Nt=Fe.siderCollapsed,bt=Fe.inlineCollapsed,Kt=Fe.onOpenChange;(!be.inlineCollapsed&&bt||!be.siderCollapsed&&Nt)&&Kt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(be){var Fe=this.props,Nt=this.store,bt=this.inlineOpenKeys,Kt=Nt.getState(),Zt={};be.mode==="inline"&&Fe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Fe||((Fe.inlineCollapsed&&!be.inlineCollapsed||Fe.siderCollapsed&&!be.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Kt.openKeys.concat(),Zt.openKeys=[]),(!Fe.inlineCollapsed&&be.inlineCollapsed||!Fe.siderCollapsed&&be.siderCollapsed)&&(Zt.openKeys=bt,this.inlineOpenKeys=[])),Object.keys(Zt).length&&Nt.setState(Zt)}},{key:"updateMenuDisplay",value:function(){var be=this.props.collapsedWidth,Fe=this.store,Nt=this.prevOpenKeys,bt=this.getInlineCollapsed()&&(be===0||be==="0"||be==="0px");bt?(this.prevOpenKeys=Fe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Nt&&(this.store.setState({openKeys:Nt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var be=this.props.mode,Fe=this.state.switchingModeFromInline,Nt=this.getInlineCollapsed();return Fe&&Nt?"inline":Nt?"vertical":be}},{key:"getInlineCollapsed",value:function(){var be=this.props,Fe=be.inlineCollapsed,Nt=be.siderCollapsed;return Nt!==void 0?Nt:Fe}},{key:"restoreModeVerticalFromInline",value:function(){var be=this.state.switchingModeFromInline;be&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var be=Object(Y.a)({},Object(t.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Fe=this.getRealMenuMode();return be.className+=" ".concat(be.prefixCls,"-root"),be.direction==="rtl"&&(be.className+=" ".concat(be.prefixCls,"-rtl")),be=Object(Y.a)(Object(Y.a)({},be),{},{mode:Fe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Oe(this.props,this.state,Fe)}),delete be.openAnimation,delete be.openTransitionName,P.createElement(m.a,{store:this.store},P.createElement(Ne,Object.assign({},be,{ref:this.setInnerMenu}),this.props.children))}}]),At}(P.Component);ae.defaultProps={selectable:!0,onClick:M,onSelect:M,onOpenChange:M,onDeselect:M,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:P.createElement("span",null,"\xB7\xB7\xB7")};var le=ae,he=function(zt){Object(T.a)(At,zt);var Ot=Object(R.a)(At);function At(){var ft;return Object(B.a)(this,At),ft=Ot.apply(this,arguments),ft.onKeyDown=function(be){var Fe=be.keyCode;return Fe===u.a.ENTER?(ft.onClick(be),!0):void 0},ft.onMouseLeave=function(be){var Fe=ft.props,Nt=Fe.eventKey,bt=Fe.onItemHover,Kt=Fe.onMouseLeave;bt({key:Nt,hover:!1}),Kt({key:Nt,domEvent:be})},ft.onMouseEnter=function(be){var Fe=ft.props,Nt=Fe.eventKey,bt=Fe.onItemHover,Kt=Fe.onMouseEnter;bt({key:Nt,hover:!0}),Kt({key:Nt,domEvent:be})},ft.onClick=function(be){var Fe=ft.props,Nt=Fe.eventKey,bt=Fe.multiple,Kt=Fe.onClick,Zt=Fe.onSelect,Ge=Fe.onDeselect,lt=Fe.isSelected,Lt={key:Nt,keyPath:[Nt],item:Object(F.a)(ft),domEvent:be};Kt(Lt),bt?lt?Ge(Lt):Zt(Lt):lt||Zt(Lt)},ft.saveNode=function(be){ft.node=be},ft}return Object(I.a)(At,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var be=this.props;be.onDestroy&&be.onDestroy(be.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var be,Fe=Object(Y.a)({},this.props),Nt=s()(this.getPrefixCls(),Fe.className,(be={},Object(o.a)(be,this.getActiveClassName(),!Fe.disabled&&Fe.active),Object(o.a)(be,this.getSelectedClassName(),Fe.isSelected),Object(o.a)(be,this.getDisabledClassName(),Fe.disabled),be)),bt=Object(Y.a)(Object(Y.a)({},Fe.attribute),{},{title:typeof Fe.title=="string"?Fe.title:void 0,className:Nt,role:Fe.role||"menuitem","aria-disabled":Fe.disabled});Fe.role==="option"?bt=Object(Y.a)(Object(Y.a)({},bt),{},{role:"option","aria-selected":Fe.isSelected}):(Fe.role===null||Fe.role==="none")&&(bt.role="none");var Kt={onClick:Fe.disabled?null:this.onClick,onMouseLeave:Fe.disabled?null:this.onMouseLeave,onMouseEnter:Fe.disabled?null:this.onMouseEnter},Zt=Object(Y.a)({},Fe.style);Fe.mode==="inline"&&(Fe.direction==="rtl"?Zt.paddingRight=Fe.inlineIndent*Fe.level:Zt.paddingLeft=Fe.inlineIndent*Fe.level),me.forEach(function(lt){return delete Fe[lt]}),delete Fe.direction;var Ge=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ge=P.createElement(this.props.itemIcon,this.props)),P.createElement("li",Object.assign({},Object(t.default)(Fe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),bt,Kt,{style:Zt,ref:this.saveNode}),Fe.children,Ge)}}]),At}(P.Component);he.isMenuItem=!0,he.defaultProps={onSelect:M,onMouseEnter:M,onMouseLeave:M,manualRef:M};var _e=Object(m.b)(function(zt,Ot){var At=zt.activeKey,ft=zt.selectedKeys,be=Ot.eventKey,Fe=Ot.subMenuKey;return{active:At[Fe]===be,isSelected:ft.indexOf(be)!==-1}})(he),Se=_e,ze=function(zt){Object(T.a)(At,zt);var Ot=Object(R.a)(At);function At(){var ft;return Object(B.a)(this,At),ft=Ot.apply(this,arguments),ft.renderInnerMenuItem=function(be){var Fe=ft.props,Nt=Fe.renderMenuItem,bt=Fe.index;return Nt(be,bt,ft.props.subMenuKey)},ft}return Object(I.a)(At,[{key:"render",value:function(){var be=Object(b.a)({},this.props),Fe=be.className,Nt=Fe===void 0?"":Fe,bt=be.rootPrefixCls,Kt="".concat(bt,"-item-group-title"),Zt="".concat(bt,"-item-group-list"),Ge=be.title,lt=be.children;return me.forEach(function(Lt){return delete be[Lt]}),delete be.onClick,delete be.direction,P.createElement("li",Object.assign({},be,{className:"".concat(Nt," ").concat(bt,"-item-group")}),P.createElement("div",{className:Kt,title:typeof Ge=="string"?Ge:void 0},Ge),P.createElement("ul",{className:Zt},P.Children.map(lt,this.renderInnerMenuItem)))}}]),At}(P.Component);ze.isMenuItemGroup=!0,ze.defaultProps={disabled:!0};var xt=ze,Qt=function(Ot){var At=Ot.className,ft=Ot.rootPrefixCls,be=Ot.style;return P.createElement("li",{className:"".concat(At," ").concat(ft,"-item-divider"),style:be})};Qt.defaultProps={disabled:!0,className:"",style:{}};var sn=Qt,gt=J.e=le},"24YM":function(Be,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.SensorTabIndex=J.SensorClassName=J.SizeSensorId=void 0;var Y="size-sensor-id";J.SizeSensorId=Y;var B="size-sensor-object";J.SensorClassName=B;var I="-1";J.SensorTabIndex=I},"24hK":function(Be,J,L){"use strict";L.d(J,"a",function(){return B});class Y{constructor(I){this.element=I,this.next=Y.Undefined,this.prev=Y.Undefined}}Y.Undefined=new Y(void 0);class B{constructor(){this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Y.Undefined}clear(){let I=this._first;for(;I!==Y.Undefined;){const F=I.next;I.prev=Y.Undefined,I.next=Y.Undefined,I=F}this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}unshift(I){return this._insert(I,!1)}push(I){return this._insert(I,!0)}_insert(I,F){const T=new Y(I);if(this._first===Y.Undefined)this._first=T,this._last=T;else if(F){const P=this._last;this._last=T,T.prev=P,P.next=T}else{const P=this._first;this._first=T,T.next=P,P.prev=T}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(T))}}shift(){if(this._first===Y.Undefined)return;{const I=this._first.element;return this._remove(this._first),I}}pop(){if(this._last===Y.Undefined)return;{const I=this._last.element;return this._remove(this._last),I}}_remove(I){if(I.prev!==Y.Undefined&&I.next!==Y.Undefined){const F=I.prev;F.next=I.next,I.next.prev=F}else I.prev===Y.Undefined&&I.next===Y.Undefined?(this._first=Y.Undefined,this._last=Y.Undefined):I.next===Y.Undefined?(this._last=this._last.prev,this._last.next=Y.Undefined):I.prev===Y.Undefined&&(this._first=this._first.next,this._first.prev=Y.Undefined);this._size-=1}*[Symbol.iterator](){let I=this._first;for(;I!==Y.Undefined;)yield I.element,I=I.next}}},"2DNl":function(Be,J,L){var Y=L("IMiH"),B=L("loD1"),I=L("59Ip"),F=L("aKvl"),T=L("n1HI"),R=L("hX1E"),P=R.normalizeRadian,m=L("Sj9i"),t=L("hyiK"),b=Y.CMD,o=Math.PI*2,u=1e-4;function f(C,k){return Math.abs(C-k)k&&g>y&&g>p&&g>_||g1&&d(),z=m.cubicAt(k,y,p,_,i[0]),S>1&&(H=m.cubicAt(k,y,p,_,i[1]))),S===2?Vk&&_>y&&_>p||_=0&&g<=1){for(var j=0,U=m.quadraticAt(k,y,p,g),S=0;Sw||_<-w)return 0;var E=Math.sqrt(w*w-_*_);a[0]=-E,a[1]=E;var g=Math.abs(y-h);if(g<1e-4)return 0;if(g%o<1e-4){y=0,h=o;var j=p?1:-1;return v>=a[0]+C&&v<=a[1]+C?j:0}if(p){var E=y;y=P(h),h=P(E)}else y=P(y),h=P(h);y>h&&(h+=o);for(var U=0,S=0;S<2;S++){var z=a[S];if(z+C>v){var H=Math.atan2(_,z),j=p?1:-1;H<0&&(H=o+H),(H>=y&&H<=h||H+o>=y&&H+o<=h)&&(H>Math.PI/2&&H1&&(w||(p+=t(v,_,E,g,y,h))),j===1&&(v=C[j],_=C[j+1],E=v,g=_);switch(U){case b.M:E=C[j++],g=C[j++],v=E,_=g;break;case b.L:if(w){if(B.containStroke(v,_,C[j],C[j+1],k,y,h))return!0}else p+=t(v,_,C[j],C[j+1],y,h)||0;v=C[j++],_=C[j++];break;case b.C:if(w){if(I.containStroke(v,_,C[j++],C[j++],C[j++],C[j++],C[j],C[j+1],k,y,h))return!0}else p+=s(v,_,C[j++],C[j++],C[j++],C[j++],C[j],C[j+1],y,h)||0;v=C[j++],_=C[j++];break;case b.Q:if(w){if(F.containStroke(v,_,C[j++],C[j++],C[j],C[j+1],k,y,h))return!0}else p+=n(v,_,C[j++],C[j++],C[j],C[j+1],y,h)||0;v=C[j++],_=C[j++];break;case b.A:var S=C[j++],z=C[j++],H=C[j++],M=C[j++],V=C[j++],K=C[j++];j+=1;var $=1-C[j++],Z=Math.cos(V)*H+S,me=Math.sin(V)*M+z;j>1?p+=t(v,_,Z,me,y,h):(E=Z,g=me);var oe=(y-S)*M/H+S;if(w){if(T.containStroke(S,z,M,V,V+K,$,k,oe,h))return!0}else p+=l(S,z,M,V,V+K,$,oe,h);v=Math.cos(V+K)*H+S,_=Math.sin(V+K)*M+z;break;case b.R:E=v=C[j++],g=_=C[j++];var fe=C[j++],ye=C[j++],Z=E+fe,me=g+ye;if(w){if(B.containStroke(E,g,Z,g,k,y,h)||B.containStroke(Z,g,Z,me,k,y,h)||B.containStroke(Z,me,E,me,k,y,h)||B.containStroke(E,me,E,g,k,y,h))return!0}else p+=t(Z,g,Z,me,y,h),p+=t(E,me,E,g,y,h);break;case b.Z:if(w){if(B.containStroke(v,_,E,g,k,y,h))return!0}else p+=t(v,_,E,g,y,h);v=E,_=g;break}}return!w&&!f(_,g)&&(p+=t(v,_,E,g,y,h)||0),p!==0}function x(C,k,w){return c(C,0,!1,k,w)}function A(C,k,w,y){return c(C,k,!0,w,y)}J.contain=x,J.containStroke=A},"2fw6":function(Be,J,L){var Y=L("y+Vt"),B=Y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(I,F,T){T&&I.moveTo(F.cx+F.r,F.cy),I.arc(F.cx,F.cy,F.r,0,Math.PI*2,!0)}});Be.exports=B},"3/fG":function(Be,J,L){"use strict";L.d(J,"a",function(){return B});function Y(I,F){let T;return F.length===0?T=I:T=I.replace(/\{(\d+)\}/g,function(R,P){const m=P[0];return typeof F[m]!="undefined"?F[m]:R}),T}function B(I,F,...T){return Y(F,T)}},"3C/r":function(Be,J){var L=function(B,I){this.image=B,this.repeat=I,this.type="pattern"};L.prototype.getCanvasPattern=function(B){return B.createPattern(this.image,this.repeat||"repeat")};var Y=L;Be.exports=Y},"3CBa":function(Be,J,L){var Y=L("hydK"),B=Y.createElement,I=L("bYtY"),F=L("SUKs"),T=L("y+Vt"),R=L("Dagg"),P=L("dqUG"),m=L("DBLp"),t=L("sW+o"),b=L("n6Mw"),o=L("vKoX"),u=L("P47w"),f=u.path,a=u.image,i=u.text;function d(h){return parseInt(h,10)}function s(h){return h instanceof T?f:h instanceof R?a:h instanceof P?i:f}function n(h,p){return p&&h&&p.parentNode!==h}function l(h,p,v){if(n(h,p)&&v){var _=v.nextSibling;_?h.insertBefore(p,_):h.appendChild(p)}}function c(h,p){if(n(h,p)){var v=h.firstChild;v?h.insertBefore(p,v):h.appendChild(p)}}function x(h,p){p&&h&&p.parentNode===h&&h.removeChild(p)}function A(h){return h.__textSvgEl}function C(h){return h.__svgEl}var k=function(h,p,v,_){this.root=h,this.storage=p,this._opts=v=I.extend({},v||{});var E=B("svg");E.setAttribute("xmlns","http://www.w3.org/2000/svg"),E.setAttribute("version","1.1"),E.setAttribute("baseProfile","full"),E.style.cssText="user-select:none;position:absolute;left:0;top:0;";var g=B("g");E.appendChild(g);var j=B("g");E.appendChild(j),this.gradientManager=new t(_,j),this.clipPathManager=new b(_,j),this.shadowManager=new o(_,j);var U=document.createElement("div");U.style.cssText="overflow:hidden;position:relative",this._svgDom=E,this._svgRoot=j,this._backgroundRoot=g,this._viewport=U,h.appendChild(U),U.appendChild(E),this.resize(v.width,v.height),this._visibleList=[]};k.prototype={constructor:k,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var h=this.getViewportRoot();if(h)return{offsetLeft:h.offsetLeft||0,offsetTop:h.offsetTop||0}},refresh:function(){var h=this.storage.getDisplayList(!0);this._paintList(h)},setBackgroundColor:function(h){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var p=B("rect");p.setAttribute("width",this.getWidth()),p.setAttribute("height",this.getHeight()),p.setAttribute("x",0),p.setAttribute("y",0),p.setAttribute("id",0),p.style.fill=h,this._backgroundRoot.appendChild(p),this._backgroundNode=p},_paintList:function(h){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var p=this._svgRoot,v=this._visibleList,_=h.length,E=[],g;for(g=0;g<_;g++){var j=h[g],U=s(j),S=C(j)||A(j);j.invisible||(j.__dirty&&(U&&U.brush(j),this.clipPathManager.update(j),j.style&&(this.gradientManager.update(j.style.fill),this.gradientManager.update(j.style.stroke),this.shadowManager.update(S,j)),j.__dirty=!1),E.push(j))}var z=m(v,E),H;for(g=0;g=0;--j)if(g[j]===E)return!0;return!1}),v}else return null;else return v[0]},resize:function(h,p){var v=this._viewport;v.style.display="none";var _=this._opts;if(h!=null&&(_.width=h),p!=null&&(_.height=p),h=this._getSize(0),p=this._getSize(1),v.style.display="",this._width!==h||this._height!==p){this._width=h,this._height=p;var E=v.style;E.width=h+"px",E.height=p+"px";var g=this._svgDom;g.setAttribute("width",h),g.setAttribute("height",p)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",h),this._backgroundNode.setAttribute("height",p))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(h){var p=this._opts,v=["width","height"][h],_=["clientWidth","clientHeight"][h],E=["paddingLeft","paddingTop"][h],g=["paddingRight","paddingBottom"][h];if(p[v]!=null&&p[v]!=="auto")return parseFloat(p[v]);var j=this.root,U=document.defaultView.getComputedStyle(j);return(j[_]||d(U[v])||d(j.style[v]))-(d(U[E])||0)-(d(U[g])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var h=encodeURIComponent(this._svgDom.outerHTML.replace(/> +\r<`));return"data:image/svg+xml;charset=UTF-8,"+h}};function w(h){return function(){F('In SVG mode painter not support method "'+h+'"')}}I.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(h){k.prototype[h]=w(h)});var y=k;Be.exports=y},"3e3G":function(Be,J,L){var Y=L("bYtY"),B=L("QuXc"),I=function(T,R,P,m,t){this.x=T==null?.5:T,this.y=R==null?.5:R,this.r=P==null?.5:P,this.type="radial",this.global=t||!1,B.call(this,m)};I.prototype={constructor:I},Y.inherits(I,B);var F=I;Be.exports=F},"3gBT":function(Be,J){var L=2311;function Y(){return L++}Be.exports=Y},"4fz+":function(Be,J,L){var Y=L("bYtY"),B=L("1bdT"),I=L("mFDi"),F=function(R){R=R||{},B.call(this,R);for(var P in R)R.hasOwnProperty(P)&&(this[P]=R[P]);this._children=[],this.__storage=null,this.__dirty=!0};F.prototype={constructor:F,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(R){return this._children[R]},childOfName:function(R){for(var P=this._children,m=0;m=0&&(m.splice(t,0,R),this._doAdd(R))}return this},_doAdd:function(R){R.parent&&R.parent.remove(R),R.parent=this;var P=this.__storage,m=this.__zr;P&&P!==R.__storage&&(P.addToStorage(R),R instanceof F&&R.addChildrenToStorage(P)),m&&m.refresh()},remove:function(R){var P=this.__zr,m=this.__storage,t=this._children,b=Y.indexOf(t,R);return b<0?this:(t.splice(b,1),R.parent=null,m&&(m.delFromStorage(R),R instanceof F&&R.delChildrenFromStorage(m)),P&&P.refresh(),this)},removeAll:function(){var R=this._children,P=this.__storage,m,t;for(t=0;t1e-4){w[0]=n-c,w[1]=l-x,y[0]=n+c,y[1]=l+x;return}if(m[0]=R(A)*c+n,m[1]=T(A)*x+l,t[0]=R(C)*c+n,t[1]=T(C)*x+l,h(w,m,t),p(y,m,t),A=A%P,A<0&&(A=A+P),C=C%P,C<0&&(C=C+P),A>C&&!k?C+=P:AA&&(b[0]=R(E)*c+n,b[1]=T(E)*x+l,h(w,b,w),p(y,b,y))}J.fromPoints=o,J.fromLine=u,J.fromCubic=i,J.fromQuadratic=d,J.fromArc=s},"4wi7":function(Be,J,L){"use strict";var Y=L("14J3"),B=L("BMrR"),I=L("sRBo"),F=L("kaz8"),T=L("5NDa"),R=L("5rEg"),P=L("9og8"),m=L("tJVT"),t=L("WmNS"),b=L.n(t),o=L("q1tI"),u=L.n(o),f=L("oOBs"),a=L.n(f),i=L("xOL1"),d=L.n(i),s=L("BdwD"),n=function(c){var x=c.data,A=c.value,C=A===void 0?[]:A,k=c.handleChangePage,w=c.setSelectedRowKeys,y=c.selectedRowKeys,h=c.onChange,p=h===void 0?function(){}:h,v=Object(o.useState)([]),_=Object(m.a)(v,2),E=_[0],g=_[1],j=Object(o.useState)([]),U=Object(m.a)(j,2),S=U[0],z=U[1],H=Object(o.useState)([]),M=Object(m.a)(H,2),V=M[0],K=M[1],$=Object(o.useState)(1),Z=Object(m.a)($,2),me=Z[0],oe=Z[1],fe=Object(o.useState)(),ye=Object(m.a)(fe,2),Ie=ye[0],ve=ye[1];return Object(o.useEffect)(function(){g(x),z([]),K([])},[x]),Object(o.useEffect)(function(){w&&(z(y),K(y))},[y]),u.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},u.a.createElement("div",{className:a.a.leftdiv},u.a.createElement(R.a.Search,{size:"large",onChange:function(){var de=Object(P.a)(b.a.mark(function Je(Rt){return b.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:g(x.filter(function(rt){var He;return rt==null||((He=rt.name)===null||He===void 0)?void 0:He.includes(Rt.target.value)}));case 1:case"end":return Me.stop()}},Je)}));return function(Je){return de.apply(this,arguments)}}(),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),E.length===0&&u.a.createElement(s.a,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),u.a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},u.a.createElement(F.a.Group,{value:S.map(function(de){return"".concat(de.id)}),onChange:function(Je){w(E.filter(function(Rt){return Je.includes("".concat(Rt.id))}))},style:{marginTop:"10px"}},E.map(function(de,Je){return u.a.createElement(B.a,{key:de.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},u.a.createElement(F.a,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:de.is_published,value:"".concat(de.id)},u.a.createElement("div",{className:a.a.listClass},u.a.createElement("span",{className:a.a.spantitle,style:{width:de.is_published?"108px":"170px"}},de.name),de.is_published&&u.a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03"))))})))),u.a.createElement("div",{className:a.a.rightdiv},u.a.createElement(R.a.Search,{onChange:function(Je){K(S.filter(function(Rt){return Rt.name.includes(Je.target.value)}))},size:"large",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),V.length===0&&u.a.createElement(s.a,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),V.length>0&&u.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},u.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},V.map(function(de,Je){return u.a.createElement(B.a,{justify:"space-between",style:{marginTop:"10px"},key:de.id},u.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},de.name),u.a.createElement("img",{src:d.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){w(S.filter(function(Ee){return"".concat(Ee.id)!="".concat(de.id)}))}}))})))))};J.a=n},"55Ip":function(Be,J,L){"use strict";L.d(J,"a",function(){return l});var Y=L("Ty5D"),B=L("dI71"),I=L("q1tI"),F=L.n(I),T=L("YS25"),R=L("17x9"),P=L.n(R),m=L("wx14"),t=L("zLVn"),b=L("9R94"),o=function(h){Object(B.a)(p,h);function p(){for(var _,E=arguments.length,g=new Array(E),j=0;jF+a&&f>R+a&&f>m+a&&f>b+a||fI+a&&u>T+a&&u>P+a&&u>t+a||u=0||E.relatedTarget.className.indexOf("".concat(S,"-next"))>=0))return;h.setState({goInputText:""}),U(h.getValidValue())},h.go=function(E){var g=h.state.goInputText;if(g==="")return;(E.keyCode===a.ENTER||E.type==="click")&&(h.setState({goInputText:""}),h.props.quickGo(h.getValidValue()))},h}return Object(T.a)(y,[{key:"getValidValue",value:function(){var p=this.state,v=p.goInputText,_=p.current;return!v||isNaN(v)?_:Number(v)}},{key:"getPageSizeOptions",value:function(){var p=this.props,v=p.pageSize,_=p.pageSizeOptions;return _.some(function(E){return E.toString()===v.toString()})?_:_.concat([v.toString()]).sort(function(E,g){var j=isNaN(Number(E))?0:Number(E),U=isNaN(Number(g))?0:Number(g);return j-U})}},{key:"render",value:function(){var p=this,v=this.props,_=v.pageSize,E=v.locale,g=v.rootPrefixCls,j=v.changeSize,U=v.quickGo,S=v.goButton,z=v.selectComponentClass,H=v.buildOptionText,M=v.selectPrefixCls,V=v.disabled,K=this.state.goInputText,$="".concat(g,"-options"),Z=z,me=null,oe=null,fe=null;if(!j&&!U)return null;var ye=this.getPageSizeOptions();if(j&&Z){var Ie=ye.map(function(ve,de){return t.a.createElement(Z.Option,{key:de,value:ve.toString()},(H||p.buildOptionText)(ve))});me=t.a.createElement(Z,{disabled:V,prefixCls:M,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(_||ye[0]).toString(),onChange:this.changeSize,getPopupContainer:function(de){return de.parentNode}},Ie)}return U&&(S&&(fe=typeof S=="boolean"?t.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:V,className:"".concat($,"-quick-jumper-button")},E.jump_to_confirm):t.a.createElement("span",{onClick:this.go,onKeyUp:this.go},S)),oe=t.a.createElement("div",{className:"".concat($,"-quick-jumper")},E.jump_to,t.a.createElement("input",{disabled:V,type:"text",value:K,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),E.page,fe)),t.a.createElement("li",{className:"".concat($)},me,oe)}}]),y}(t.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var d=i,s=L("N2Kk");function n(){}function l(k){return typeof k=="number"&&isFinite(k)&&Math.floor(k)===k}function c(k,w,y){return y}function x(k,w,y){var h=typeof k=="undefined"?w.pageSize:k;return Math.floor((y.total-1)/h)+1}var A=function(k){Object(R.a)(y,k);var w=Object(P.a)(y);function y(h){var p;Object(F.a)(this,y),p=w.call(this,h),p.getJumpPrevPage=function(){return Math.max(1,p.state.current-(p.props.showLessItems?3:5))},p.getJumpNextPage=function(){return Math.min(x(void 0,p.state,p.props),p.state.current+(p.props.showLessItems?3:5))},p.getItemIcon=function(j,U){var S=p.props.prefixCls,z=j||t.a.createElement("button",{type:"button","aria-label":U,className:"".concat(S,"-item-link")});return typeof j=="function"&&(z=t.a.createElement(j,Object(I.a)({},p.props))),z},p.savePaginationNode=function(j){p.paginationNode=j},p.isValid=function(j){return l(j)&&j!==p.state.current},p.shouldDisplayQuickJumper=function(){var j=p.props,U=j.showQuickJumper,S=j.pageSize,z=j.total;return z<=S?!1:U},p.handleKeyDown=function(j){(j.keyCode===a.ARROW_UP||j.keyCode===a.ARROW_DOWN)&&j.preventDefault()},p.handleKeyUp=function(j){var U=p.getValidValue(j),S=p.state.currentInputValue;U!==S&&p.setState({currentInputValue:U}),j.keyCode===a.ENTER?p.handleChange(U):j.keyCode===a.ARROW_UP?p.handleChange(U-1):j.keyCode===a.ARROW_DOWN&&p.handleChange(U+1)},p.changePageSize=function(j){var U=p.state.current,S=x(j,p.state,p.props);U=U>S?S:U,S===0&&(U=p.state.current),typeof j=="number"&&("pageSize"in p.props||p.setState({pageSize:j}),"current"in p.props||p.setState({current:U,currentInputValue:U})),p.props.onShowSizeChange(U,j),"onChange"in p.props&&p.props.onChange&&p.props.onChange(U,j)},p.handleChange=function(j){var U=p.props.disabled,S=j;if(p.isValid(S)&&!U){var z=x(void 0,p.state,p.props);S>z?S=z:S<1&&(S=1),"current"in p.props||p.setState({current:S,currentInputValue:S});var H=p.state.pageSize;return p.props.onChange(S,H),S}return p.state.current},p.prev=function(){p.hasPrev()&&p.handleChange(p.state.current-1)},p.next=function(){p.hasNext()&&p.handleChange(p.state.current+1)},p.jumpPrev=function(){p.handleChange(p.getJumpPrevPage())},p.jumpNext=function(){p.handleChange(p.getJumpNextPage())},p.hasPrev=function(){return p.state.current>1},p.hasNext=function(){return p.state.current2?S-2:0),H=2;H=_?g=_:g=Number(v),g}},{key:"getShowSizeChanger",value:function(){var p=this.props,v=p.showSizeChanger,_=p.total,E=p.totalBoundaryShowSizeChanger;return typeof v!="undefined"?v:_>E}},{key:"renderPrev",value:function(p){var v=this.props,_=v.prevIcon,E=v.itemRender,g=E(p,"prev",this.getItemIcon(_,"prev page")),j=!this.hasPrev();return Object(m.isValidElement)(g)?Object(m.cloneElement)(g,{disabled:j}):g}},{key:"renderNext",value:function(p){var v=this.props,_=v.nextIcon,E=v.itemRender,g=E(p,"next",this.getItemIcon(_,"next page")),j=!this.hasNext();return Object(m.isValidElement)(g)?Object(m.cloneElement)(g,{disabled:j}):g}},{key:"render",value:function(){var p=this,v=this.props,_=v.prefixCls,E=v.className,g=v.style,j=v.disabled,U=v.hideOnSinglePage,S=v.total,z=v.locale,H=v.showQuickJumper,M=v.showLessItems,V=v.showTitle,K=v.showTotal,$=v.simple,Z=v.itemRender,me=v.showPrevNextJumpers,oe=v.jumpPrevIcon,fe=v.jumpNextIcon,ye=v.selectComponentClass,Ie=v.selectPrefixCls,ve=v.pageSizeOptions,de=this.state,Je=de.current,Rt=de.pageSize,Ee=de.currentInputValue;if(U===!0&&S<=Rt)return null;var Me=x(void 0,this.state,this.props),rt=[],He=null,ke=null,ht=null,ie=null,xe=null,we=H&&H.goButton,$e=M?1:2,ct=Je-1>0?Je-1:0,yt=Je+1=$e*2&&Je!==1+2&&(rt[0]=Object(m.cloneElement)(rt[0],{className:"".concat(_,"-item-after-jump-prev")}),rt.unshift(He)),Me-Je>=$e*2&&Je!==Me-2&&(rt[rt.length-1]=Object(m.cloneElement)(rt[rt.length-1],{className:"".concat(_,"-item-before-jump-next")}),rt.push(ke)),ut!==1&&rt.unshift(ht),Et!==Me&&rt.push(ie)}var Ne=null;K&&(Ne=t.a.createElement("li",{className:"".concat(_,"-total-text")},K(S,[S===0?0:(Je-1)*Rt+1,Je*Rt>S?S:Je*Rt])));var Te=!this.hasPrev()||!Me,Oe=!this.hasNext()||!Me;return t.a.createElement("ul",Object(Y.a)({className:o()(_,E,Object(B.a)({},"".concat(_,"-disabled"),j)),style:g,unselectable:"unselectable",ref:this.savePaginationNode},Ut),Ne,t.a.createElement("li",{title:V?z.prev_page:null,onClick:this.prev,tabIndex:Te?null:0,onKeyPress:this.runIfEnterPrev,className:o()("".concat(_,"-prev"),Object(B.a)({},"".concat(_,"-disabled"),Te)),"aria-disabled":Te},this.renderPrev(ct)),rt,t.a.createElement("li",{title:V?z.next_page:null,onClick:this.next,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterNext,className:o()("".concat(_,"-next"),Object(B.a)({},"".concat(_,"-disabled"),Oe)),"aria-disabled":Oe},this.renderNext(yt)),t.a.createElement(d,{disabled:j,locale:z,rootPrefixCls:_,selectComponentClass:ye,selectPrefixCls:Ie,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Je,pageSize:Rt,pageSizeOptions:ve,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:we}))}}],[{key:"getDerivedStateFromProps",value:function(p,v){var _={};if("current"in p&&(_.current=p.current,p.current!==v.current&&(_.currentInputValue=_.current)),"pageSize"in p&&p.pageSize!==v.pageSize){var E=v.current,g=x(p.pageSize,v,p);E=E>g?g:E,"current"in p||(_.current=E,_.currentInputValue=E),_.pageSize=p.pageSize}return _}}]),y}(t.a.Component);A.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:n,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:n,locale:s.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var C=A},"6GrX":function(Be,J,L){var Y=L("mFDi"),B=L("Xnb7"),I=L("bYtY"),F=I.getContext,T=I.extend,R=I.retrieve2,P=I.retrieve3,m=I.trim,t={},b=0,o=5e3,u=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,f="12px sans-serif",a={};function i(U,S){a[U]=S}function d(U,S){S=S||f;var z=U+":"+S;if(t[z])return t[z];for(var H=(U+"").split(` `),M=0,V=0,K=H.length;Vo&&(b=0,t={}),b++,t[z]=M,M}function s(U,S,z,H,M,V,K,$){return K?l(U,S,z,H,M,V,K,$):n(U,S,z,H,M,V,$)}function n(U,S,z,H,M,V,K){var $=_(U,S,M,V,K),Z=d(U,S);M&&(Z+=M[1]+M[3]);var me=$.outerHeight,oe=c(0,Z,z),fe=x(0,me,H),ye=new Y(oe,fe,Z,me);return ye.lineHeight=$.lineHeight,ye}function l(U,S,z,H,M,V,K,$){var Z=E(U,{rich:K,truncate:$,font:S,textAlign:z,textPadding:M,textLineHeight:V}),me=Z.outerWidth,oe=Z.outerHeight,fe=c(0,me,z),ye=x(0,oe,H);return new Y(fe,ye,me,oe)}function c(U,S,z){return z==="right"?U-=S:z==="center"&&(U-=S/2),U}function x(U,S,z){return z==="middle"?U-=S/2:z==="bottom"&&(U-=S),U}function A(U,S,z){var H=S.textPosition,M=S.textDistance,V=z.x,K=z.y;M=M||0;var $=z.height,Z=z.width,me=$/2,oe="left",fe="top";switch(H){case"left":V-=M,K+=me,oe="right",fe="middle";break;case"right":V+=M+Z,K+=me,fe="middle";break;case"top":V+=Z/2,K-=M,oe="center",fe="bottom";break;case"bottom":V+=Z/2,K+=$+M,oe="center";break;case"inside":V+=Z/2,K+=me,oe="center",fe="middle";break;case"insideLeft":V+=M,K+=me,fe="middle";break;case"insideRight":V+=Z-M,K+=me,oe="right",fe="middle";break;case"insideTop":V+=Z/2,K+=M,oe="center";break;case"insideBottom":V+=Z/2,K+=$-M,oe="center",fe="bottom";break;case"insideTopLeft":V+=M,K+=M;break;case"insideTopRight":V+=Z-M,K+=M,oe="right";break;case"insideBottomLeft":V+=M,K+=$-M,fe="bottom";break;case"insideBottomRight":V+=Z-M,K+=$-M,oe="right",fe="bottom";break}return U=U||{},U.x=V,U.y=K,U.textAlign=oe,U.textVerticalAlign=fe,U}function C(U,S,z){var H={textPosition:U,textDistance:z};return A({},H,S)}function k(U,S,z,H,M){if(!S)return"";var V=(U+"").split(` `);M=w(S,z,H,M);for(var K=0,$=V.length;K<$;K++)V[K]=y(V[K],M);return V.join(` `)}function w(U,S,z,H){H=T({},H),H.font=S;var z=R(z,"...");H.maxIterations=R(H.maxIterations,2);var M=H.minChar=R(H.minChar,0);H.cnCharWidth=d("\u56FD",S);var V=H.ascCharWidth=d("a",S);H.placeholder=R(H.placeholder,"");for(var K=U=Math.max(0,U-1),$=0;$=V;$++)K-=V;var Z=d(z,S);return Z>K&&(z="",Z=0),K=U-Z,H.ellipsis=z,H.ellipsisWidth=Z,H.contentWidth=K,H.containerWidth=U,H}function y(U,S){var z=S.containerWidth,H=S.font,M=S.contentWidth;if(!z)return"";var V=d(U,H);if(V<=z)return U;for(var K=0;;K++){if(V<=M||K>=S.maxIterations){U+=S.ellipsis;break}var $=K===0?h(U,M,S.ascCharWidth,S.cnCharWidth):V>0?Math.floor(U.length*M/V):0;U=U.substr(0,$),V=d(U,H)}return U===""&&(U=S.placeholder),U}function h(U,S,z,H){for(var M=0,V=0,K=U.length;Voe)U="",K=[];else if(fe!=null)for(var ye=w(fe-(z?z[1]+z[3]:0),S,M.ellipsis,{minChar:M.minChar,placeholder:M.placeholder}),Ie=0,ve=K.length;IeH&&g(z,U.substring(H,V)),g(z,M[2],M[1]),H=u.lastIndex}HIe)return{lines:[],width:0,height:0};Me.textWidth=d(Me.text,ke);var ie=nt.textWidth,xe=ie==null||ie==="auto";if(typeof ie=="string"&&ie.charAt(ie.length-1)==="%")Me.percentWidth=ie,me.push(Me),ie=0;else{if(xe){ie=Me.textWidth;var we=nt.textBackgroundColor,$e=we&&we.image;$e&&($e=B.findExistImage($e),B.isImageReady($e)&&(ie=Math.max(ie,$e.width*ht/$e.height)))}var ct=He?He[1]+He[3]:0;ie+=ct;var vt=ye!=null?ye-Rt:null;vt!=null&&vtoe)U="",K=[];else if(fe!=null)for(var ye=w(fe-(z?z[1]+z[3]:0),S,M.ellipsis,{minChar:M.minChar,placeholder:M.placeholder}),Ie=0,ve=K.length;IeH&&g(z,U.substring(H,V)),g(z,M[2],M[1]),H=u.lastIndex}HIe)return{lines:[],width:0,height:0};Me.textWidth=d(Me.text,ke);var ie=rt.textWidth,xe=ie==null||ie==="auto";if(typeof ie=="string"&&ie.charAt(ie.length-1)==="%")Me.percentWidth=ie,me.push(Me),ie=0;else{if(xe){ie=Me.textWidth;var we=rt.textBackgroundColor,$e=we&&we.image;$e&&($e=B.findExistImage($e),B.isImageReady($e)&&(ie=Math.max(ie,$e.width*ht/$e.height)))}var ct=He?He[1]+He[3]:0;ie+=ct;var yt=ye!=null?ye-Rt:null;yt!=null&&yt126&&z<=255&&M[0].indexOf("x")===0)return U;if(z>=0&&z<32){S+="\\"+M[0];continue}else z===34||z===39||z===92?S+="\\"+String.fromCharCode(z):S+=String.fromCharCode(z)}return S}g.prototype._read_string_recursive=function(U,S,z){var H,M;U==="'"?M=this.__patterns.single_quote:U==='"'?M=this.__patterns.double_quote:U==="`"?M=this.__patterns.template_text:U==="}"&&(M=this.__patterns.template_expression);for(var V=M.read(),K="";this._input.hasNext();){if(K=this._input.next(),K===U||!S&&d.newline.test(K)){this._input.back();break}else K==="\\"&&this._input.hasNext()?(H=this._input.peek(),H==="x"||H==="u"?this.has_char_escapes=!0:H==="\r"&&this._input.peek(1)===` `&&this._input.next(),K+=this._input.next()):z&&(z==="${"&&K==="$"&&this._input.peek()==="{"&&(K+=this._input.next()),z===K&&(U==="`"?K+=this._read_string_recursive("}",S,"`"):K+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(K+=this._input.next())));K+=M.read(),V+=K}return V},t.exports.Tokenizer=g,t.exports.TOKEN=c,t.exports.positionable_operators=w.slice(),t.exports.line_starters=p.slice()},function(t){var b=RegExp.prototype.hasOwnProperty("sticky");function o(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}o.prototype.restart=function(){this.__position=0},o.prototype.back=function(){this.__position>0&&(this.__position-=1)},o.prototype.hasNext=function(){return this.__position=0&&u=0&&f=u.length&&this.__input.substring(f-u.length,f).toLowerCase()===u},t.exports.InputScanner=o},function(t,b,o){var u=o(8).InputScanner,f=o(3).Token,a=o(10).TokenStream,i=o(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(n,l){this._input=new u(n),this._options=l||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var n,l=new f(d.START,""),c=null,x=[],A=new a;l.type!==d.EOF;){for(n=this._get_next_token(l,c);this._is_comment(n);)A.add(n),n=this._get_next_token(l,c);A.isEmpty()||(n.comments_before=A,A=new a),n.parent=c,this._is_opening(n)?(x.push(c),c=n):c&&this._is_closing(n,c)&&(n.opened=c,c.closed=n,c=x.pop(),n.parent=c),n.previous=l,l.next=n,this.__tokens.add(n),l=n}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(n,l){this._readWhitespace();var c=this._input.read(/.+/g);return c?this._create_token(d.RAW,c):this._create_token(d.EOF,"")},s.prototype._is_comment=function(n){return!1},s.prototype._is_opening=function(n){return!1},s.prototype._is_closing=function(n,l){return!1},s.prototype._create_token=function(n,l){var c=new f(n,l,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return c},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=s,t.exports.TOKEN=d},function(t){function b(o){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=o}b.prototype.restart=function(){this.__position=0},b.prototype.isEmpty=function(){return this.__tokens_length===0},b.prototype.hasNext=function(){return this.__position=0&&o/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new u,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(i){var d=this._create();return d._disabled[i]=!0,d._update(),d},a.prototype.read_options=function(i){var d=this._create();for(var s in f)d._disabled[s]=i.templating.indexOf(s)===-1;return d._update(),d},a.prototype.exclude=function(i){var d=this._create();return d._excluded[i]=!0,d._update(),d},a.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),i+=d,d=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},a.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},a.prototype._read_template=function(){var i="",d=this._input.peek();if(d==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(i=i||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},t.exports.TemplatablePattern=a}],R={};function P(t){var b=R[t];if(b!==void 0)return b.exports;var o=R[t]={exports:{}};return T[t](o,o.exports,P),o.exports}var m=P(0);I=m})();var F=I;!(Y=[],B=function(){return{js_beautify:F}}.apply(J,Y),B!==void 0&&(Be.exports=B))})()},"6eGT":function(Be,J,L){"use strict";function Y(B){return null}J.a=Y},"6fms":function(Be,J,L){var Y=L("SUKs"),B=L("06Qe"),I=L("bYtY"),F=I.each;function T(t){return parseInt(t,10)}function R(t,b){B.initVML(),this.root=t,this.storage=b;var o=document.createElement("div"),u=document.createElement("div");o.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",u.style.cssText="position:absolute;left:0;top:0;",t.appendChild(o),this._vmlRoot=u,this._vmlViewport=o,this.resize();var f=b.delFromStorage,a=b.addToStorage;b.delFromStorage=function(i){f.call(b,i),i&&(i.onRemove&&i.onRemove(u))},b.addToStorage=function(i){i.onAdd&&i.onAdd(u),a.call(b,i)},this._firstPaint=!0}R.prototype={constructor:R,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var b=this._vmlRoot,o=0;ofunction(){const k=Array.prototype.slice.call(arguments,0);return c(C,k)};let A={};for(const C of l)A[C]=x(C);return A}function s(l){return l===null?void 0:l}function n(l,c="Unreachable"){throw new Error(c)}},"7Cbv":function(Be,J,L){"use strict";var Y=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),B=new Uint8Array(16);function I(){if(!Y)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Y(B)}var F=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function T(f){return typeof f=="string"&&F.test(f)}for(var R=T,P=[],m=0;m<256;++m)P.push((m+256).toString(16).substr(1));function t(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=(P[f[a+0]]+P[f[a+1]]+P[f[a+2]]+P[f[a+3]]+"-"+P[f[a+4]]+P[f[a+5]]+"-"+P[f[a+6]]+P[f[a+7]]+"-"+P[f[a+8]]+P[f[a+9]]+"-"+P[f[a+10]]+P[f[a+11]]+P[f[a+12]]+P[f[a+13]]+P[f[a+14]]+P[f[a+15]]).toLowerCase();if(!R(i))throw TypeError("Stringified UUID is invalid");return i}var b=t;function o(f,a,i){f=f||{};var d=f.random||(f.rng||I)();if(d[6]=d[6]&15|64,d[8]=d[8]&63|128,a){i=i||0;for(var s=0;s<16;++s)a[i+s]=d[s];return a}return b(d)}var u=J.a=o},"7SHv":function(Be,J,L){var Y=L("LPTA"),B=Y.devicePixelRatio,I=L("bYtY"),F=L("SUKs"),T=L("mFDi"),R=L("BPZU"),P=L("Xmg4"),m=L("mLcG"),t=L("Dagg"),b=L("ItGF"),o=1e5,u=314159,f=.01,a=.001;function i(w){return parseInt(w,10)}function d(w){return w?w.__builtin__?!0:!(typeof w.resize!="function"||typeof w.refresh!="function"):!1}var s=new T(0,0,0,0),n=new T(0,0,0,0);function l(w,y,h){return s.copy(w.getBoundingRect()),w.transform&&s.applyTransform(w.transform),n.width=y,n.height=h,!s.intersect(n)}function c(w,y){if(w===y)return!1;if(!w||!y||w.length!==y.length)return!0;for(var h=0;h=0&&h.splice(p,1),w.__hoverMir=null},clearHover:function(w){for(var y=this._hoverElements,h=0;h15)break}}_.__drawIndex=K,_.__drawIndex<_.__endIndex&&(E=!1),U.prevElClipPaths&&j.restore(),j.restore()}return b.wxa&&I.each(this._layers,function(me){me&&me.ctx&&me.ctx.draw&&me.ctx.draw()}),E},_doPaintEl:function(w,y,h,p){var v=y.ctx,_=w.transform;if((y.__dirty||h)&&!w.invisible&&w.style.opacity!==0&&!(_&&!_[0]&&!_[3])&&!(w.culling&&l(w,this._width,this._height))){var E=w.__clipPaths,g=p.prevElClipPaths;(!g||c(E,g))&&(g&&(v.restore(),p.prevElClipPaths=null,p.prevEl=null),E&&(v.save(),x(E,v),p.prevElClipPaths=E)),w.beforeBrush&&w.beforeBrush(v),w.brush(v,p.prevEl||null),p.prevEl=w,w.afterBrush&&w.afterBrush(v)}},getLayer:function(w,y){this._singleCanvas&&!this._needsManuallyCompositing&&(w=u);var h=this._layers[w];return h||(h=new P("zr_"+w,this,this.dpr),h.zlevel=w,h.__builtin__=!0,this._layerConfig[w]?I.merge(h,this._layerConfig[w],!0):this._layerConfig[w-f]&&I.merge(h,this._layerConfig[w-f],!0),y&&(h.virtual=y),this.insertLayer(w,h),h.initContext()),h},insertLayer:function(w,y){var h=this._layers,p=this._zlevelList,v=p.length,_=null,E=-1,g=this._domRoot;if(h[w]){F("ZLevel "+w+" has been used already");return}if(!d(y)){F("Layer of zlevel "+w+" is not valid");return}if(v>0&&w>p[0]){for(E=0;Ew);E++);_=h[p[E]]}if(p.splice(E+1,0,w),h[w]=y,!y.virtual)if(_){var j=_.dom;j.nextSibling?g.insertBefore(y.dom,j.nextSibling):g.appendChild(y.dom)}else g.firstChild?g.insertBefore(y.dom,g.firstChild):g.appendChild(y.dom)},eachLayer:function(w,y){var h=this._zlevelList,p,v;for(v=0;v0?f:0),this._needsManuallyCompositing),j.__builtin__||F("ZLevel "+g+" has been used by unkown layer "+j.id),j!==v&&(j.__used=!0,j.__startIndex!==h&&(j.__dirty=!0),j.__startIndex=h,j.incremental?j.__drawIndex=-1:j.__drawIndex=h,y(h),v=j),p.__dirty&&(j.__dirty=!0,j.incremental&&j.__drawIndex<0&&(j.__drawIndex=h))}y(h),this.eachBuiltinLayer(function(U,S){!U.__used&&U.getElementCount()>0&&(U.__dirty=!0,U.__startIndex=U.__endIndex=U.__drawIndex=0),U.__dirty&&U.__drawIndex<0&&(U.__drawIndex=U.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(w){w.clear()},setBackgroundColor:function(w){this._backgroundColor=w},configLayer:function(w,y){if(y){var h=this._layerConfig;h[w]?I.merge(h[w],y,!0):h[w]=y;for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:[],d=new Map;function s(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(n||[]).forEach(function(c){var x=c.key,A=c.children;Object(T.a)(x!=null,"Tree node must have a certain key: [".concat(l).concat(x,"]"));var C=String(x);Object(T.a)(!d.has(C)||x===null||x===void 0,"Same 'key' exist in the Tree: ".concat(C)),d.set(C,!0),s(A,"".concat(l).concat(C," > "))})}s(i)}function t(i){function d(s){var n=Object(F.a)(s);return n.map(function(l){if(!Object(R.i)(l))return Object(T.a)(!l,"Tree/TreeNode can only accept TreeNode as children."),null;var c=l.key,x=l.props,A=x.children,C=Object(I.a)(x,["children"]),k=Object(B.a)({key:c},C),w=d(A);return w.length&&(k.children=w),k}).filter(function(l){return l})}return d(i)}function b(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=new Set(d===!0?[]:d),n=[];function l(c){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(A,C){var k=Object(R.h)(x?x.pos:"0",C),w=P(A.key,k),y=Object(B.a)(Object(B.a)({},A),{},{parent:x,pos:k,children:null,data:A,isStart:[].concat(Object(Y.a)(x?x.isStart:[]),[C===0]),isEnd:[].concat(Object(Y.a)(x?x.isEnd:[]),[C===c.length-1])});return n.push(y),d===!0||s.has(w)?y.children=l(A.children||[],y):y.children=[],y})}return l(i),n}function o(i,d,s){var n;s?typeof s=="string"?n=function(x){return x[s]}:typeof s=="function"&&(n=function(x){return s(x)}):n=function(x,A){return P(x.key,A)};function l(c,x,A){var C=c?c.children:i,k=c?Object(R.h)(A.pos,x):"0";if(c){var w=n(c,k),y={node:c,index:x,pos:k,key:w,parentPos:A.node?A.pos:null,level:A.level+1};d(y)}C&&C.forEach(function(h,p){l(h,p,{node:c,pos:k,level:A?A.level+1:-1})})}l(null)}function u(i){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=d.initWrapper,n=d.processEntity,l=d.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,x={},A={},C={posEntities:x,keyEntities:A};return s&&(C=s(C)||C),o(i,function(k){var w=k.node,y=k.index,h=k.pos,p=k.key,v=k.parentPos,_=k.level,E={node:w,index:y,key:p,pos:h,level:_},g=P(p,h);x[h]=E,A[g]=E,E.parent=x[v],E.parent&&(E.parent.children=E.parent.children||[],E.parent.children.push(E)),n&&n(E,C)},c),l&&l(C),C}function f(i,d){var s=d.expandedKeys,n=d.selectedKeys,l=d.loadedKeys,c=d.loadingKeys,x=d.checkedKeys,A=d.halfCheckedKeys,C=d.dragOverNodeKey,k=d.dropPosition,w=d.keyEntities,y=w[i],h={eventKey:i,expanded:s.indexOf(i)!==-1,selected:n.indexOf(i)!==-1,loaded:l.indexOf(i)!==-1,loading:c.indexOf(i)!==-1,checked:x.indexOf(i)!==-1,halfChecked:A.indexOf(i)!==-1,pos:String(y?y.pos:""),dragOver:C===i&&k===0,dragOverGapTop:C===i&&k===-1,dragOverGapBottom:C===i&&k===1};return h}function a(i){var d=i.data,s=i.expanded,n=i.selected,l=i.checked,c=i.loaded,x=i.loading,A=i.halfChecked,C=i.dragOver,k=i.dragOverGapTop,w=i.dragOverGapBottom,y=i.pos,h=i.active,p=Object(B.a)(Object(B.a)({},d),{},{expanded:s,selected:n,checked:l,loaded:c,loading:x,halfChecked:A,dragOver:C,dragOverGapTop:k,dragOverGapBottom:w,pos:y,active:h});return"props"in p||Object.defineProperty(p,"props",{get:function(){return Object(T.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),p}},"8EBN":function(Be,J,L){(function(Y){Y(L("VrN/"))})(function(Y){"use strict";Y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var B=0;B-1&&F.substring(P+1,F.length);if(m)return Y.findModeByExtension(m)},Y.findModeByName=function(F){F=F.toLowerCase();for(var T=0;T=Q.length?ue.slice(Q.length):ue}).join(` -`)}var s=[],n=["
    "],l=new a.a.Renderer,c=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function x(){s.length=0,n=["
      "]}var A={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function C(te,W,G,Q){if(W>=te.length||te[W].level<=G)return W;var ue=te[W];Q.push("
    • "+ue.text+""),W++;var ee=[];return W=C(te,W,ue.level,ee),ee.length>0&&(Q.push("
        "),ee.forEach(function(qe){Q.push(qe)}),Q.push("
      ")),Q.push("
    • "),W=C(te,W,G,Q),W}function k(){return C(s,0,0,n),n.push("
    "),n.join("")}var w={heading:function(W){var G=c.exec(W);if(G)return{type:"heading",raw:G[0],depth:G[1].length,text:G[2]}},fences:function(W){var G=this.rules.block.fences.exec(W);if(G){var Q=G[0],ue=d(Q,G[3]||""),ee=G[2]?G[2].trim():G[2];if(["latex","katex","math"].indexOf(ee)>=0){var qe=p(),en=ue;ue=qe,v[qe]={type:"block",expression:en}}return{type:"code",raw:Q,lang:ee,text:ue}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,h=0,p=function(){return"__special_katext_id_".concat(h++,"__")},v={};function _(){return v}function E(){h=0,v={}}function g(te){return te=te.replace(y,function(W,G){var Q=p();return v[Q]={type:"inline",expression:G},Q}),te}var j=l.listitem;l.listitem=function(te){return j(g(te))};var U=l.paragraph;l.paragraph=function(te){return U(g(te))};var S=l.tablecell;l.tablecell=function(te,W){return S(g(te),W)},l.code=function(te,W,G){var Q=(W||"").match(/\S*/)[0];return Q?["latex","katex","math"].indexOf(Q)>=0?"

    ".concat(te,"

    "):'
    ').concat(G?te:Object(i.escape)(te,!0),`
    +`).map(function(ue){var ee=ue.match(/^\s+/);if(ee===null)return ue;var qe=Object(P.a)(ee,1),tn=qe[0];return tn.length>=Q.length?ue.slice(Q.length):ue}).join(` +`)}var s=[],n=["
      "],l=new a.a.Renderer,c=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function x(){s.length=0,n=["
        "]}var A={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function C(te,W,G,Q){if(W>=te.length||te[W].level<=G)return W;var ue=te[W];Q.push("
      • "+ue.text+""),W++;var ee=[];return W=C(te,W,ue.level,ee),ee.length>0&&(Q.push("
          "),ee.forEach(function(qe){Q.push(qe)}),Q.push("
        ")),Q.push("
      • "),W=C(te,W,G,Q),W}function k(){return C(s,0,0,n),n.push("
      "),n.join("")}var w={heading:function(W){var G=c.exec(W);if(G)return{type:"heading",raw:G[0],depth:G[1].length,text:G[2]}},fences:function(W){var G=this.rules.block.fences.exec(W);if(G){var Q=G[0],ue=d(Q,G[3]||""),ee=G[2]?G[2].trim():G[2];if(["latex","katex","math"].indexOf(ee)>=0){var qe=p(),tn=ue;ue=qe,v[qe]={type:"block",expression:tn}}return{type:"code",raw:Q,lang:ee,text:ue}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,h=0,p=function(){return"__special_katext_id_".concat(h++,"__")},v={};function _(){return v}function E(){h=0,v={}}function g(te){return te=te.replace(y,function(W,G){var Q=p();return v[Q]={type:"inline",expression:G},Q}),te}var j=l.listitem;l.listitem=function(te){return j(g(te))};var U=l.paragraph;l.paragraph=function(te){return U(g(te))};var S=l.tablecell;l.tablecell=function(te,W){return S(g(te),W)},l.code=function(te,W,G){var Q=(W||"").match(/\S*/)[0];return Q?["latex","katex","math"].indexOf(Q)>=0?"

      ".concat(te,"

      "):'
      ').concat(G?te:Object(i.escape)(te,!0),`
      `):'
      '+(G?te:Object(i.escape)(te,!0))+"
      "},l.heading=function(te,W,G){var Q=this.options.headerPrefix+G.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:Q,level:W,text:te}),"'+te+""},a.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:w,renderer:l});var z=a.a,H=L("SJMd"),M=L("ulZh"),V=L.n(M),K=L("m3rI"),$=L("Oy/b"),Z=L("p5ED"),me=L("ErOA");/*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -44,14 +44,14 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var oe=function(te,W){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Q){G.__proto__=Q}||function(G,Q){for(var ue in Q)Object.prototype.hasOwnProperty.call(Q,ue)&&(G[ue]=Q[ue])})(te,W)};function fe(te,W){function G(){this.constructor=te}oe(te,W),te.prototype=W===null?Object.create(W):(G.prototype=W.prototype,new G)}function ye(te,W,G,Q){return new(G||(G=Promise))(function(ue,ee){function qe(Vn){try{An(Q.next(Vn))}catch(ln){ee(ln)}}function en(Vn){try{An(Q.throw(Vn))}catch(ln){ee(ln)}}function An(Vn){var ln;Vn.done?ue(Vn.value):(ln=Vn.value,ln instanceof G?ln:new G(function(nr){nr(ln)})).then(qe,en)}An((Q=Q.apply(te,W||[])).next())})}function Ie(te,W){var G,Q,ue,ee,qe={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return ee={next:en(0),throw:en(1),return:en(2)},typeof Symbol=="function"&&(ee[Symbol.iterator]=function(){return this}),ee;function en(An){return function(Vn){return function(ln){if(G)throw new TypeError("Generator is already executing.");for(;qe;)try{if(G=1,Q&&(ue=2&ln[0]?Q.return:ln[0]?Q.throw||((ue=Q.return)&&ue.call(Q),0):Q.next)&&!(ue=ue.call(Q,ln[1])).done)return ue;switch(Q=0,ue&&(ln=[2&ln[0],ue.value]),ln[0]){case 0:case 1:ue=ln;break;case 4:return qe.label++,{value:ln[1],done:!1};case 5:qe.label++,Q=ln[1],ln=[0];continue;case 7:ln=qe.ops.pop(),qe.trys.pop();continue;default:if(!(ue=qe.trys,(ue=ue.length>0&&ue[ue.length-1])||ln[0]!==6&&ln[0]!==2)){qe=0;continue}if(ln[0]===3&&(!ue||ln[1]>ue[0]&&ln[1]0&&ue[ue.length-1])||un[0]!==6&&un[0]!==2)){qe=0;continue}if(un[0]===3&&(!ue||un[1]>ue[0]&&un[1]',"select"),this.addActionButton(Q,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Q,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Q,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Q,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Q,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Q,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Q,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ee){var qe=document.createElement("div");qe.className=""+G.toolbarButtonStyleClass.name,qe.setAttribute("data-type-name",ee.typeName),qe.innerHTML=ee.icon,qe.addEventListener("click",function(){G.markerToolbarButtonClicked(qe,ee)}),G.buttons.push(qe),G.markerButtons.push(qe)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'',"render"),this.addActionButton(ue,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},te.prototype.addButtonClickListener=function(W){this.buttonClickListeners.push(W)},te.prototype.removeButtonClickListener=function(W){this.buttonClickListeners.indexOf(W)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(W),1)},te.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},te.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var W=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var G=0;G',"select"),this.addActionButton(Q,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Q,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Q,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Q,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Q,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Q,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Q,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ee){var qe=document.createElement("div");qe.className=""+G.toolbarButtonStyleClass.name,qe.setAttribute("data-type-name",ee.typeName),qe.innerHTML=ee.icon,qe.addEventListener("click",function(){G.markerToolbarButtonClicked(qe,ee)}),G.buttons.push(qe),G.markerButtons.push(qe)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'',"render"),this.addActionButton(ue,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},te.prototype.addButtonClickListener=function(W){this.buttonClickListeners.push(W)},te.prototype.removeButtonClickListener=function(W){this.buttonClickListeners.indexOf(W)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(W),1)},te.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},te.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var W=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var G=0;G0&&this.buttonClickListeners.forEach(function(Q){return Q("marker",G)}),this.markerButtonOverflowBlock.style.display="none"},te.prototype.actionToolbarButtonClicked=function(W,G){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Q){return Q("action",G)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},te.prototype.setActiveButton=function(W){this.resetButtonStyles(),W.className=W.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),W.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},te.prototype.setActiveMarkerButton=function(W){var G=this.markerButtons.find(function(Q){return Q.getAttribute("data-type-name")===W});G&&this.setActiveButton(G)},te.prototype.setCurrentMarker=function(W){var G=this;this.currentMarker=W,this.buttons.filter(function(Q){return/delete|notes/.test(Q.getAttribute("data-action"))}).forEach(function(Q){G.currentMarker===void 0?(Q.style.fillOpacity="0.4",Q.style.pointerEvents="none"):(Q.style.fillOpacity="1",Q.style.pointerEvents="all")})},te}(),ht=function(){function te(W,G,Q,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=W,this.displayMode=G,this.uiStyleSettings=Q,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return te.prototype.addStyles=function(){var W;this.toolboxStyleClass=this.styles.addClass(new He("toolbox",` width: 100%; @@ -145,19 +145,19 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new He("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; - `)),this.styles.addRule(new nt("."+this.toolboxButtonStyleColorsClass.name+":hover",` + `)),this.styles.addRule(new rt("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` - `)),this.styles.addRule(new nt("."+this.toolboxButtonStyleClass.name+" svg",` + `)),this.styles.addRule(new rt("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; - `))},te.prototype.show=function(W){var G;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=W,this.uiContainer.className=this.toolboxStyleClass.name+" "+((G=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&G!==void 0?G:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},te.prototype.setPanelButtons=function(W){var G,Q,ue=this;this.panels=W,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((G=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&G!==void 0?G:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Q=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Q!==void 0?Q:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ee){var qe;ee.uiStyleSettings=ue.uiStyleSettings;var en=document.createElement("div");en.className=ue.toolboxButtonStyleClass.name+" "+((qe=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&qe!==void 0?qe:ue.toolboxButtonStyleColorsClass.name),en.innerHTML=ee.icon,en.title=ee.title,en.addEventListener("click",function(){ue.panelButtonClick(ee)}),ue.panelButtons.push(en),ue.buttonRow.appendChild(en)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},te.prototype.panelButtonClick=function(W){var G=this,Q=-1;if(W!==this.activePanel){Q=this.panels.indexOf(W),this.panelRow.innerHTML="";var ue=W.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=W}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){G.displayMode==="inline"?G.panelRow.style.display="none":G.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ee,qe){var en,An;ee.className=G.toolboxButtonStyleClass.name+" "+(qe===Q?""+((en=G.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&en!==void 0?en:G.toolboxActiveButtonStyleColorsClass.name):""+((An=G.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&An!==void 0?An:G.toolboxButtonStyleColorsClass.name))})},te}(),ie=function(te,W){this.title=te,this.icon=W},xe=function(te){function W(G,Q,ue,ee){var qe=te.call(this,G,ee||'')||this;return qe.colors=[],qe.addTransparent=!1,qe.colorBoxes=[],qe.colors=Q,qe.currentColor=ue,qe.setCurrentColor=qe.setCurrentColor.bind(qe),qe.getColorBox=qe.getColorBox.bind(qe),qe}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");return Q.style.overflow="hidden",Q.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var ee=G.getColorBox(ue);Q.appendChild(ee),G.colorBoxes.push(ee)}),Q},W.prototype.getColorBox=function(G){var Q=this,ue=this.uiStyleSettings.toolbarHeight/4,ee=this.uiStyleSettings.toolbarHeight-ue,qe=document.createElement("div");qe.style.display="inline-block",qe.style.boxSizing="content-box",qe.style.width=ee-2+"px",qe.style.height=ee-2+"px",qe.style.padding="1px",qe.style.marginRight="2px",qe.style.marginBottom="2px",qe.style.borderWidth="2px",qe.style.borderStyle="solid",qe.style.borderRadius=(ee+2)/2+"px",qe.style.borderColor=G===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",qe.addEventListener("click",function(){Q.setCurrentColor(G,qe)});var en=document.createElement("div");return en.style.display="inline-block",en.style.width=ee-2+"px",en.style.height=ee-2+"px",en.style.backgroundColor=G,en.style.borderRadius=ee/2+"px",G==="transparent"&&(en.style.fill=this.uiStyleSettings.toolboxAccentColor,en.innerHTML=` + `))},te.prototype.show=function(W){var G;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=W,this.uiContainer.className=this.toolboxStyleClass.name+" "+((G=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&G!==void 0?G:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},te.prototype.setPanelButtons=function(W){var G,Q,ue=this;this.panels=W,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((G=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&G!==void 0?G:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Q=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Q!==void 0?Q:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ee){var qe;ee.uiStyleSettings=ue.uiStyleSettings;var tn=document.createElement("div");tn.className=ue.toolboxButtonStyleClass.name+" "+((qe=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&qe!==void 0?qe:ue.toolboxButtonStyleColorsClass.name),tn.innerHTML=ee.icon,tn.title=ee.title,tn.addEventListener("click",function(){ue.panelButtonClick(ee)}),ue.panelButtons.push(tn),ue.buttonRow.appendChild(tn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},te.prototype.panelButtonClick=function(W){var G=this,Q=-1;if(W!==this.activePanel){Q=this.panels.indexOf(W),this.panelRow.innerHTML="";var ue=W.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=W}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){G.displayMode==="inline"?G.panelRow.style.display="none":G.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ee,qe){var tn,An;ee.className=G.toolboxButtonStyleClass.name+" "+(qe===Q?""+((tn=G.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&tn!==void 0?tn:G.toolboxActiveButtonStyleColorsClass.name):""+((An=G.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&An!==void 0?An:G.toolboxButtonStyleColorsClass.name))})},te}(),ie=function(te,W){this.title=te,this.icon=W},xe=function(te){function W(G,Q,ue,ee){var qe=te.call(this,G,ee||'')||this;return qe.colors=[],qe.addTransparent=!1,qe.colorBoxes=[],qe.colors=Q,qe.currentColor=ue,qe.setCurrentColor=qe.setCurrentColor.bind(qe),qe.getColorBox=qe.getColorBox.bind(qe),qe}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");return Q.style.overflow="hidden",Q.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var ee=G.getColorBox(ue);Q.appendChild(ee),G.colorBoxes.push(ee)}),Q},W.prototype.getColorBox=function(G){var Q=this,ue=this.uiStyleSettings.toolbarHeight/4,ee=this.uiStyleSettings.toolbarHeight-ue,qe=document.createElement("div");qe.style.display="inline-block",qe.style.boxSizing="content-box",qe.style.width=ee-2+"px",qe.style.height=ee-2+"px",qe.style.padding="1px",qe.style.marginRight="2px",qe.style.marginBottom="2px",qe.style.borderWidth="2px",qe.style.borderStyle="solid",qe.style.borderRadius=(ee+2)/2+"px",qe.style.borderColor=G===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",qe.addEventListener("click",function(){Q.setCurrentColor(G,qe)});var tn=document.createElement("div");return tn.style.display="inline-block",tn.style.width=ee-2+"px",tn.style.height=ee-2+"px",tn.style.backgroundColor=G,tn.style.borderRadius=ee/2+"px",G==="transparent"&&(tn.style.fill=this.uiStyleSettings.toolboxAccentColor,tn.innerHTML=` - `),qe.appendChild(en),qe},W.prototype.setCurrentColor=function(G,Q){var ue=this;this.currentColor=G,this.colorBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(G)},W}(ie),we=function(){function te(W,G,Q){this._state="new",this._isSelected=!1,this._container=W,this._overlayContainer=G,this.globalSettings=Q,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(te.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(W){return!1},Object.defineProperty(te.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},te.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},te.prototype.pointerDown=function(W,G){},te.prototype.dblClick=function(W,G){},te.prototype.manipulate=function(W){},te.prototype.pointerUp=function(W){this.stateChanged()},te.prototype.dispose=function(){},te.prototype.addMarkerVisualToContainer=function(W){this.container.childNodes.length>0?this.container.insertBefore(W,this.container.childNodes[0]):this.container.appendChild(W)},te.prototype.getState=function(){return{typeName:te.typeName,state:this.state,notes:this.notes}},te.prototype.restoreState=function(W){this._state=W.state,this.notes=W.notes},te.prototype.scale=function(W,G){},te.prototype.colorChanged=function(W){this.onColorChanged&&this.onColorChanged(W),this.stateChanged()},te.prototype.fillColorChanged=function(W){this.onFillColorChanged&&this.onFillColorChanged(W),this.stateChanged()},te.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var W=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),W.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(W)&&this.onStateChanged(this)}},te.typeName="MarkerBase",te}(),$e=function(){function te(){this.findGripByVisual=this.findGripByVisual.bind(this)}return te.prototype.findGripByVisual=function(W){return this.topLeft.ownsTarget(W)?this.topLeft:this.topCenter.ownsTarget(W)?this.topCenter:this.topRight.ownsTarget(W)?this.topRight:this.centerLeft.ownsTarget(W)?this.centerLeft:this.centerRight.ownsTarget(W)?this.centerRight:this.bottomLeft.ownsTarget(W)?this.bottomLeft:this.bottomCenter.ownsTarget(W)?this.bottomCenter:this.bottomRight.ownsTarget(W)?this.bottomRight:void 0},te}(),ct=function(){function te(){this.GRIP_SIZE=10,this.visual=de.createGroup(),this.visual.appendChild(de.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(de.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return te.prototype.ownsTarget=function(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},te}(),vt=function(){function te(){}return te.toITransformMatrix=function(W){return{a:W.a,b:W.b,c:W.c,d:W.d,e:W.e,f:W.f}},te.toSVGMatrix=function(W,G){return W.a=G.a,W.b=G.b,W.c=G.c,W.d=G.d,W.e=G.e,W.f=G.f,W},te}(),Ut=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.left=0,ee.top=0,ee.width=0,ee.height=0,ee.defaultSize={x:50,y:20},ee.offsetX=0,ee.offsetY=0,ee.rotationAngle=0,ee.CB_DISTANCE=10,ee._suppressMarkerCreateEvent=!1,ee.container.transform.baseVal.appendItem(de.createTransform()),ee.setupControlBox(),ee}return fe(W,te),Object.defineProperty(W.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"visual",{get:function(){return this._visual},set:function(G){this._visual=G;var Q=de.createTransform();this._visual.transform.baseVal.appendItem(Q)},enumerable:!1,configurable:!0}),W.prototype.ownsTarget=function(G){return!!te.prototype.ownsTarget.call(this,G)||!!(this.controlGrips.findGripByVisual(G)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(G))},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.state==="new"&&(this.left=G.x,this.top=G.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(G);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Q),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Q)){this.activeGrip=this.rotatorGrip;var ee=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ee.x-this.width/2,this.top=ee.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var qe=this.container.transform.baseVal.getItem(0);qe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(qe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},W.prototype.pointerUp=function(G){var Q=this.state;te.prototype.pointerUp.call(this,G),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(G),this._state="select",Q==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},W.prototype.moveVisual=function(G){this.visual.style.transform="translate("+G.x+"px, "+G.y+"px)"},W.prototype.manipulate=function(G){var Q=this.unrotatePoint(G);this.state==="creating"?this.resize(G):this.state==="move"?(this.left=this.manipulationStartLeft+(Q.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Q.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Q):this.state==="rotate"&&this.rotate(G)},W.prototype.resize=function(G){var Q=this.manipulationStartLeft,ue=this.manipulationStartWidth,ee=this.manipulationStartTop,qe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Q=this.manipulationStartLeft+G.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-Q;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+G.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ee=this.manipulationStartTop+G.y-this.manipulationStartY,qe=this.manipulationStartHeight+this.manipulationStartTop-ee;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:qe=this.manipulationStartHeight+G.y-this.manipulationStartY}ue>=0?(this.left=Q,this.width=ue):(this.left=Q+ue,this.width=-ue),qe>=0?(this.top=ee,this.height=qe):(this.top=ee+qe,this.height=-qe),this.setSize()},W.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},W.prototype.rotate=function(G){if(Math.abs(G.x-this.centerX)>.1){var Q=Math.sign(G.x-this.centerX);this.rotationAngle=180*Math.atan((G.y-this.centerY)/(G.x-this.centerX))/Math.PI+90*Q,this.applyRotation()}},W.prototype.applyRotation=function(){var G=this.container.transform.baseVal.getItem(0);G.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(G,0)},W.prototype.rotatePoint=function(G){if(this.rotationAngle===0)return G;var Q=this.container.getCTM(),ue=de.createPoint(G.x,G.y);return{x:(ue=ue.matrixTransform(Q)).x,y:ue.y}},W.prototype.unrotatePoint=function(G){if(this.rotationAngle===0)return G;var Q=this.container.getCTM();Q=Q.inverse();var ue=de.createPoint(G.x,G.y);return{x:(ue=ue.matrixTransform(Q)).x,y:ue.y}},W.prototype.select=function(){te.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){te.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=de.createGroup();var G=de.createTransform();G.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(G),this.container.appendChild(this.controlBox),this.controlRect=de.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=de.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new $e,this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){var G=this.controlBox.transform.baseVal.getItem(0);G.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(G,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},W.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},W.prototype.createGrip=function(){var G=new ct;return G.visual.transform.baseVal.appendItem(de.createTransform()),this.controlBox.appendChild(G.visual),G},W.prototype.positionGrips=function(){var G=this.controlGrips.topLeft.GRIP_SIZE,Q=-G/2,ue=Q,ee=(this.width+this.CB_DISTANCE)/2-G/2,qe=(this.height+this.CB_DISTANCE)/2-G/2,en=this.height+this.CB_DISTANCE-G/2,An=this.width+this.CB_DISTANCE-G/2;this.positionGrip(this.controlGrips.topLeft.visual,Q,ue),this.positionGrip(this.controlGrips.topCenter.visual,ee,ue),this.positionGrip(this.controlGrips.topRight.visual,An,ue),this.positionGrip(this.controlGrips.centerLeft.visual,Q,qe),this.positionGrip(this.controlGrips.centerRight.visual,An,qe),this.positionGrip(this.controlGrips.bottomLeft.visual,Q,en),this.positionGrip(this.controlGrips.bottomCenter.visual,ee,en),this.positionGrip(this.controlGrips.bottomRight.visual,An,en),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ee,ue-3*this.CB_DISTANCE)},W.prototype.positionGrip=function(G,Q,ue){var ee=G.transform.baseVal.getItem(0);ee.setTranslate(Q,ue),G.transform.baseVal.replaceItem(ee,0)},W.prototype.hideControlBox=function(){this.controlBox.style.display="none"},W.prototype.showControlBox=function(){this.controlBox.style.display=""},W.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:vt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:vt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},te.prototype.getState.call(this))},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G);var Q=G;this.left=Q.left,this.top=Q.top,this.width=Q.width,this.height=Q.height,this.rotationAngle=Q.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Q.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Q.containerTransformMatrix))},W.prototype.scale=function(G,Q){te.prototype.scale.call(this,G,Q);var ue=this.rotatePoint({x:this.left,y:this.top}),ee=this.unrotatePoint({x:ue.x*G,y:ue.y*Q});this.left=ee.x,this.top=ee.y,this.width=this.width*G,this.height=this.height*Q,this.adjustControlBox()},W}(we),We=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.fillColor="transparent",ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.opacity=1,ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setFillColor=ee.setFillColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.createVisual=ee.createVisual.bind(ee),ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!(!te.prototype.ownsTarget.call(this,G)&&G!==this.visual)},W.prototype.createVisual=function(){this.visual=de.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.state==="new"&&(this.createVisual(),this.moveVisual(G),this._state="creating")},W.prototype.manipulate=function(G){te.prototype.manipulate.call(this,G)},W.prototype.resize=function(G){te.prototype.resize.call(this,G),this.setSize()},W.prototype.setSize=function(){te.prototype.setSize.call(this),de.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(G){te.prototype.pointerUp.call(this,G),this.setSize()},W.prototype.setStrokeColor=function(G){this.strokeColor=G,this.visual&&de.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(G),this.stateChanged()},W.prototype.setFillColor=function(G){this.fillColor=G,this.visual&&de.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},W.prototype.setStrokeWidth=function(G){this.strokeWidth=G,this.visual&&de.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},W.prototype.setStrokeDasharray=function(G){this.strokeDasharray=G,this.visual&&de.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},W.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},te.prototype.getState.call(this))},W.prototype.restoreState=function(G){var Q=G;this.fillColor=Q.fillColor,this.strokeColor=Q.strokeColor,this.strokeWidth=Q.strokeWidth,this.strokeDasharray=Q.strokeDasharray,this.opacity=Q.opacity,this.createVisual(),te.prototype.restoreState.call(this,G),this.setSize()},W.prototype.scale=function(G,Q){te.prototype.scale.call(this,G,Q),this.setSize()},W.title="Rectangle marker",W}(Ut),kt=function(te){function W(G,Q,ue,ee){var qe=te.call(this,G,ee||'')||this;return qe.widths=[],qe.widthBoxes=[],qe.widths=Q,qe.currentWidth=ue,qe.setCurrentWidth=qe.setCurrentWidth.bind(qe),qe}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");return Q.style.display="flex",Q.style.overflow="hidden",Q.style.flexGrow="2",this.widths.forEach(function(ue){var ee=document.createElement("div");ee.style.display="flex",ee.style.flexGrow="2",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderColor=ue===G.currentWidth?G.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){G.setCurrentWidth(ue,ee)}),Q.appendChild(ee);var qe=document.createElement("div");qe.innerText=ue.toString(),qe.style.marginRight="5px",ee.appendChild(qe);var en=document.createElement("div");en.style.minHeight="20px",en.style.flexGrow="2",en.style.display="flex",en.style.alignItems="center";var An=document.createElement("hr");An.style.minWidth="20px",An.style.border="0px",An.style.borderTop=ue+"px solid "+G.uiStyleSettings.toolboxColor,An.style.flexGrow="2",en.appendChild(An),ee.appendChild(en),G.widthBoxes.push(ee)}),Q},W.prototype.setCurrentWidth=function(G,Q){var ue=this;this.currentWidth=G,this.widthBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},W}(ie),Zt=function(te){function W(G,Q,ue,ee){var qe=te.call(this,G,ee||'')||this;return qe.styles=[],qe.styleBoxes=[],qe.styles=Q,qe.currentStyle=ue,qe.setCurrentStyle=qe.setCurrentStyle.bind(qe),qe}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");return Q.style.display="flex",Q.style.overflow="hidden",Q.style.flexGrow="2",this.styles.forEach(function(ue){var ee=document.createElement("div");ee.style.display="flex",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.overflow="hidden",ee.style.maxWidth=100/G.styles.length-5+"%",ee.style.borderColor=ue===G.currentStyle?G.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){G.setCurrentStyle(ue,ee)}),Q.appendChild(ee);var qe=document.createElement("div");qe.style.minHeight="20px",qe.style.flexGrow="2",qe.style.overflow="hidden";var en=` + `),qe.appendChild(tn),qe},W.prototype.setCurrentColor=function(G,Q){var ue=this;this.currentColor=G,this.colorBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(G)},W}(ie),we=function(){function te(W,G,Q){this._state="new",this._isSelected=!1,this._container=W,this._overlayContainer=G,this.globalSettings=Q,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(te.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(W){return!1},Object.defineProperty(te.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},te.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},te.prototype.pointerDown=function(W,G){},te.prototype.dblClick=function(W,G){},te.prototype.manipulate=function(W){},te.prototype.pointerUp=function(W){this.stateChanged()},te.prototype.dispose=function(){},te.prototype.addMarkerVisualToContainer=function(W){this.container.childNodes.length>0?this.container.insertBefore(W,this.container.childNodes[0]):this.container.appendChild(W)},te.prototype.getState=function(){return{typeName:te.typeName,state:this.state,notes:this.notes}},te.prototype.restoreState=function(W){this._state=W.state,this.notes=W.notes},te.prototype.scale=function(W,G){},te.prototype.colorChanged=function(W){this.onColorChanged&&this.onColorChanged(W),this.stateChanged()},te.prototype.fillColorChanged=function(W){this.onFillColorChanged&&this.onFillColorChanged(W),this.stateChanged()},te.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var W=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),W.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(W)&&this.onStateChanged(this)}},te.typeName="MarkerBase",te}(),$e=function(){function te(){this.findGripByVisual=this.findGripByVisual.bind(this)}return te.prototype.findGripByVisual=function(W){return this.topLeft.ownsTarget(W)?this.topLeft:this.topCenter.ownsTarget(W)?this.topCenter:this.topRight.ownsTarget(W)?this.topRight:this.centerLeft.ownsTarget(W)?this.centerLeft:this.centerRight.ownsTarget(W)?this.centerRight:this.bottomLeft.ownsTarget(W)?this.bottomLeft:this.bottomCenter.ownsTarget(W)?this.bottomCenter:this.bottomRight.ownsTarget(W)?this.bottomRight:void 0},te}(),ct=function(){function te(){this.GRIP_SIZE=10,this.visual=de.createGroup(),this.visual.appendChild(de.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(de.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return te.prototype.ownsTarget=function(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},te}(),yt=function(){function te(){}return te.toITransformMatrix=function(W){return{a:W.a,b:W.b,c:W.c,d:W.d,e:W.e,f:W.f}},te.toSVGMatrix=function(W,G){return W.a=G.a,W.b=G.b,W.c=G.c,W.d=G.d,W.e=G.e,W.f=G.f,W},te}(),Ut=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.left=0,ee.top=0,ee.width=0,ee.height=0,ee.defaultSize={x:50,y:20},ee.offsetX=0,ee.offsetY=0,ee.rotationAngle=0,ee.CB_DISTANCE=10,ee._suppressMarkerCreateEvent=!1,ee.container.transform.baseVal.appendItem(de.createTransform()),ee.setupControlBox(),ee}return fe(W,te),Object.defineProperty(W.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"visual",{get:function(){return this._visual},set:function(G){this._visual=G;var Q=de.createTransform();this._visual.transform.baseVal.appendItem(Q)},enumerable:!1,configurable:!0}),W.prototype.ownsTarget=function(G){return!!te.prototype.ownsTarget.call(this,G)||!!(this.controlGrips.findGripByVisual(G)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(G))},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.state==="new"&&(this.left=G.x,this.top=G.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(G);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Q),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Q)){this.activeGrip=this.rotatorGrip;var ee=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ee.x-this.width/2,this.top=ee.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var qe=this.container.transform.baseVal.getItem(0);qe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(qe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},W.prototype.pointerUp=function(G){var Q=this.state;te.prototype.pointerUp.call(this,G),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(G),this._state="select",Q==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},W.prototype.moveVisual=function(G){this.visual.style.transform="translate("+G.x+"px, "+G.y+"px)"},W.prototype.manipulate=function(G){var Q=this.unrotatePoint(G);this.state==="creating"?this.resize(G):this.state==="move"?(this.left=this.manipulationStartLeft+(Q.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Q.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Q):this.state==="rotate"&&this.rotate(G)},W.prototype.resize=function(G){var Q=this.manipulationStartLeft,ue=this.manipulationStartWidth,ee=this.manipulationStartTop,qe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Q=this.manipulationStartLeft+G.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-Q;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+G.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ee=this.manipulationStartTop+G.y-this.manipulationStartY,qe=this.manipulationStartHeight+this.manipulationStartTop-ee;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:qe=this.manipulationStartHeight+G.y-this.manipulationStartY}ue>=0?(this.left=Q,this.width=ue):(this.left=Q+ue,this.width=-ue),qe>=0?(this.top=ee,this.height=qe):(this.top=ee+qe,this.height=-qe),this.setSize()},W.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},W.prototype.rotate=function(G){if(Math.abs(G.x-this.centerX)>.1){var Q=Math.sign(G.x-this.centerX);this.rotationAngle=180*Math.atan((G.y-this.centerY)/(G.x-this.centerX))/Math.PI+90*Q,this.applyRotation()}},W.prototype.applyRotation=function(){var G=this.container.transform.baseVal.getItem(0);G.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(G,0)},W.prototype.rotatePoint=function(G){if(this.rotationAngle===0)return G;var Q=this.container.getCTM(),ue=de.createPoint(G.x,G.y);return{x:(ue=ue.matrixTransform(Q)).x,y:ue.y}},W.prototype.unrotatePoint=function(G){if(this.rotationAngle===0)return G;var Q=this.container.getCTM();Q=Q.inverse();var ue=de.createPoint(G.x,G.y);return{x:(ue=ue.matrixTransform(Q)).x,y:ue.y}},W.prototype.select=function(){te.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){te.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=de.createGroup();var G=de.createTransform();G.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(G),this.container.appendChild(this.controlBox),this.controlRect=de.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=de.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new $e,this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){var G=this.controlBox.transform.baseVal.getItem(0);G.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(G,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},W.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},W.prototype.createGrip=function(){var G=new ct;return G.visual.transform.baseVal.appendItem(de.createTransform()),this.controlBox.appendChild(G.visual),G},W.prototype.positionGrips=function(){var G=this.controlGrips.topLeft.GRIP_SIZE,Q=-G/2,ue=Q,ee=(this.width+this.CB_DISTANCE)/2-G/2,qe=(this.height+this.CB_DISTANCE)/2-G/2,tn=this.height+this.CB_DISTANCE-G/2,An=this.width+this.CB_DISTANCE-G/2;this.positionGrip(this.controlGrips.topLeft.visual,Q,ue),this.positionGrip(this.controlGrips.topCenter.visual,ee,ue),this.positionGrip(this.controlGrips.topRight.visual,An,ue),this.positionGrip(this.controlGrips.centerLeft.visual,Q,qe),this.positionGrip(this.controlGrips.centerRight.visual,An,qe),this.positionGrip(this.controlGrips.bottomLeft.visual,Q,tn),this.positionGrip(this.controlGrips.bottomCenter.visual,ee,tn),this.positionGrip(this.controlGrips.bottomRight.visual,An,tn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ee,ue-3*this.CB_DISTANCE)},W.prototype.positionGrip=function(G,Q,ue){var ee=G.transform.baseVal.getItem(0);ee.setTranslate(Q,ue),G.transform.baseVal.replaceItem(ee,0)},W.prototype.hideControlBox=function(){this.controlBox.style.display="none"},W.prototype.showControlBox=function(){this.controlBox.style.display=""},W.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:yt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:yt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},te.prototype.getState.call(this))},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G);var Q=G;this.left=Q.left,this.top=Q.top,this.width=Q.width,this.height=Q.height,this.rotationAngle=Q.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(yt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Q.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(yt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Q.containerTransformMatrix))},W.prototype.scale=function(G,Q){te.prototype.scale.call(this,G,Q);var ue=this.rotatePoint({x:this.left,y:this.top}),ee=this.unrotatePoint({x:ue.x*G,y:ue.y*Q});this.left=ee.x,this.top=ee.y,this.width=this.width*G,this.height=this.height*Q,this.adjustControlBox()},W}(we),We=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.fillColor="transparent",ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.opacity=1,ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setFillColor=ee.setFillColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.createVisual=ee.createVisual.bind(ee),ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!(!te.prototype.ownsTarget.call(this,G)&&G!==this.visual)},W.prototype.createVisual=function(){this.visual=de.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.state==="new"&&(this.createVisual(),this.moveVisual(G),this._state="creating")},W.prototype.manipulate=function(G){te.prototype.manipulate.call(this,G)},W.prototype.resize=function(G){te.prototype.resize.call(this,G),this.setSize()},W.prototype.setSize=function(){te.prototype.setSize.call(this),de.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(G){te.prototype.pointerUp.call(this,G),this.setSize()},W.prototype.setStrokeColor=function(G){this.strokeColor=G,this.visual&&de.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(G),this.stateChanged()},W.prototype.setFillColor=function(G){this.fillColor=G,this.visual&&de.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},W.prototype.setStrokeWidth=function(G){this.strokeWidth=G,this.visual&&de.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},W.prototype.setStrokeDasharray=function(G){this.strokeDasharray=G,this.visual&&de.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},W.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},te.prototype.getState.call(this))},W.prototype.restoreState=function(G){var Q=G;this.fillColor=Q.fillColor,this.strokeColor=Q.strokeColor,this.strokeWidth=Q.strokeWidth,this.strokeDasharray=Q.strokeDasharray,this.opacity=Q.opacity,this.createVisual(),te.prototype.restoreState.call(this,G),this.setSize()},W.prototype.scale=function(G,Q){te.prototype.scale.call(this,G,Q),this.setSize()},W.title="Rectangle marker",W}(Ut),kt=function(te){function W(G,Q,ue,ee){var qe=te.call(this,G,ee||'')||this;return qe.widths=[],qe.widthBoxes=[],qe.widths=Q,qe.currentWidth=ue,qe.setCurrentWidth=qe.setCurrentWidth.bind(qe),qe}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");return Q.style.display="flex",Q.style.overflow="hidden",Q.style.flexGrow="2",this.widths.forEach(function(ue){var ee=document.createElement("div");ee.style.display="flex",ee.style.flexGrow="2",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderColor=ue===G.currentWidth?G.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){G.setCurrentWidth(ue,ee)}),Q.appendChild(ee);var qe=document.createElement("div");qe.innerText=ue.toString(),qe.style.marginRight="5px",ee.appendChild(qe);var tn=document.createElement("div");tn.style.minHeight="20px",tn.style.flexGrow="2",tn.style.display="flex",tn.style.alignItems="center";var An=document.createElement("hr");An.style.minWidth="20px",An.style.border="0px",An.style.borderTop=ue+"px solid "+G.uiStyleSettings.toolboxColor,An.style.flexGrow="2",tn.appendChild(An),ee.appendChild(tn),G.widthBoxes.push(ee)}),Q},W.prototype.setCurrentWidth=function(G,Q){var ue=this;this.currentWidth=G,this.widthBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},W}(ie),qt=function(te){function W(G,Q,ue,ee){var qe=te.call(this,G,ee||'')||this;return qe.styles=[],qe.styleBoxes=[],qe.styles=Q,qe.currentStyle=ue,qe.setCurrentStyle=qe.setCurrentStyle.bind(qe),qe}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");return Q.style.display="flex",Q.style.overflow="hidden",Q.style.flexGrow="2",this.styles.forEach(function(ue){var ee=document.createElement("div");ee.style.display="flex",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.overflow="hidden",ee.style.maxWidth=100/G.styles.length-5+"%",ee.style.borderColor=ue===G.currentStyle?G.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){G.setCurrentStyle(ue,ee)}),Q.appendChild(ee);var qe=document.createElement("div");qe.style.minHeight="20px",qe.style.flexGrow="2",qe.style.overflow="hidden";var tn=` - `;qe.innerHTML=en,ee.appendChild(qe),G.styleBoxes.push(ee)}),Q},W.prototype.setCurrentStyle=function(G,Q){var ue=this;this.currentStyle=G,this.styleBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},W}(ie),Le=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.strokeColor=ue.defaultColor,ee.strokeWidth=ue.defaultStrokeWidth,ee.strokeDasharray=ue.defaultStrokeDasharray,ee.strokePanel=new xe("Line color",ue.defaultColorSet,ue.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new kt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new Zt("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return fe(W,te),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=te.prototype.getState.call(this);return G.typeName=W.typeName,G},W.typeName="FrameMarker",W.title="Frame marker",W.icon='',W}(We),Ae=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},ut=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.x1=0,ee.y1=0,ee.x2=0,ee.y2=0,ee.defaultLength=50,ee.manipulationStartX=0,ee.manipulationStartY=0,ee.manipulationStartX1=0,ee.manipulationStartY1=0,ee.manipulationStartX2=0,ee.manipulationStartY2=0,ee.setupControlBox(),ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!!te.prototype.ownsTarget.call(this,G)||!(!this.grip1.ownsTarget(G)&&!this.grip2.ownsTarget(G))},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.manipulationStartX=G.x,this.manipulationStartY=G.y,this.state==="new"&&(this.x1=G.x,this.y1=G.y,this.x2=G.x,this.y2=G.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Q)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Q)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},W.prototype.pointerUp=function(G){var Q=this.state;te.prototype.pointerUp.call(this,G),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(G),this._state="select",Q==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},W.prototype.adjustVisual=function(){},W.prototype.manipulate=function(G){this.state==="creating"?this.resize(G):this.state==="move"?(this.x1=this.manipulationStartX1+G.x-this.manipulationStartX,this.y1=this.manipulationStartY1+G.y-this.manipulationStartY,this.x2=this.manipulationStartX2+G.x-this.manipulationStartX,this.y2=this.manipulationStartY2+G.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(G)},W.prototype.resize=function(G){switch(this.activeGrip){case this.grip1:this.x1=G.x,this.y1=G.y;break;case this.grip2:case void 0:this.x2=G.x,this.y2=G.y}this.adjustVisual(),this.adjustControlBox()},W.prototype.select=function(){te.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){te.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=de.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){this.positionGrips()},W.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},W.prototype.createGrip=function(){var G=new ct;return G.visual.transform.baseVal.appendItem(de.createTransform()),this.controlBox.appendChild(G.visual),G},W.prototype.positionGrips=function(){var G=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-G/2,this.y1-G/2),this.positionGrip(this.grip2.visual,this.x2-G/2,this.y2-G/2)},W.prototype.positionGrip=function(G,Q,ue){var ee=G.transform.baseVal.getItem(0);ee.setTranslate(Q,ue),G.transform.baseVal.replaceItem(ee,0)},W.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},te.prototype.getState.call(this))},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G);var Q=G;this.x1=Q.x1,this.y1=Q.y1,this.x2=Q.x2,this.y2=Q.y2},W.prototype.scale=function(G,Q){te.prototype.scale.call(this,G,Q),this.x1=this.x1*G,this.y1=this.y1*Q,this.x2=this.x2*G,this.y2=this.y2*Q,this.adjustVisual(),this.adjustControlBox()},W}(we),_t=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.strokeColor=ue.defaultColor,ee.strokeWidth=ue.defaultStrokeWidth,ee.strokeDasharray=ue.defaultStrokeDasharray,ee.strokePanel=new xe("Line color",ue.defaultColorSet,ue.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new kt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new Zt("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!(!te.prototype.ownsTarget.call(this,G)&&G!==this.visual&&G!==this.selectorLine&&G!==this.visibleLine)},W.prototype.createVisual=function(){this.visual=de.createGroup(),this.selectorLine=de.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=de.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},W.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),de.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),de.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),de.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},W.prototype.setStrokeColor=function(G){this.strokeColor=G,this.adjustVisual(),this.colorChanged(G)},W.prototype.setStrokeWidth=function(G){this.strokeWidth=G,this.adjustVisual()},W.prototype.setStrokeDasharray=function(G){this.strokeDasharray=G,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},te.prototype.getState.call(this));return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G);var Q=G;this.strokeColor=Q.strokeColor,this.strokeWidth=Q.strokeWidth,this.strokeDasharray=Q.strokeDasharray,this.createVisual(),this.adjustVisual()},W.typeName="LineMarker",W.title="Line marker",W.icon='',W}(ut),Je=function(te){function W(G,Q,ue,ee){var qe=te.call(this,G,ee||'')||this;return qe.fonts=[],qe.fontBoxes=[],qe.fonts=Q,qe.currentFont=ue,qe.setCurrentFont=qe.setCurrentFont.bind(qe),qe}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");return Q.style.overflow="hidden",Q.style.flexGrow="2",this.fonts.forEach(function(ue){var ee=document.createElement("div");ee.style.display="inline-block",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.overflow="hidden",ee.style.maxWidth=100/G.fonts.length-5+"%",ee.style.borderColor=ue===G.currentFont?G.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){G.setCurrentFont(ue,ee)}),Q.appendChild(ee);var qe=document.createElement("div");qe.style.display="flex",qe.style.minHeight="20px",qe.style.flexGrow="2",qe.style.fontFamily=ue,qe.style.overflow="hidden";var en=document.createElement("div");en.style.whiteSpace="nowrap",en.style.overflow="hidden",en.style.textOverflow="ellipsis",en.innerHTML="The quick brown fox jumps over the lazy dog",qe.appendChild(en),ee.appendChild(qe),G.fontBoxes.push(ee)}),Q},W.prototype.setCurrentFont=function(G,Q){var ue=this;this.currentFont=G,this.fontBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},W}(ie),dt=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.color="transparent",ee.padding=5,ee.DEFAULT_TEXT="your text here",ee.text=ee.DEFAULT_TEXT,ee.isMoved=!1,ee.color=ue.defaultColor,ee.fontFamily=ue.defaultFontFamily,ee.defaultSize={x:100,y:30},ee.setColor=ee.setColor.bind(ee),ee.setFont=ee.setFont.bind(ee),ee.renderText=ee.renderText.bind(ee),ee.sizeText=ee.sizeText.bind(ee),ee.textEditDivClicked=ee.textEditDivClicked.bind(ee),ee.showTextEditor=ee.showTextEditor.bind(ee),ee.setSize=ee.setSize.bind(ee),ee.positionTextEditor=ee.positionTextEditor.bind(ee),ee.colorPanel=new xe("Color",ue.defaultColorSet,ue.defaultColor),ee.colorPanel.onColorChanged=ee.setColor,ee.fontFamilyPanel=new Je("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ee.fontFamilyPanel.onFontChanged=ee.setFont,ee}return fe(W,te),W.prototype.ownsTarget=function(G){if(te.prototype.ownsTarget.call(this,G)||G===this.visual||G===this.textElement||G===this.bgRectangle)return!0;var Q=!1;return this.textElement.childNodes.forEach(function(ue){ue===G&&(Q=!0)}),Q},W.prototype.createVisual=function(){this.visual=de.createGroup(),this.bgRectangle=de.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=de.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(de.createTransform()),this.textElement.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.isMoved=!1,this.pointerDownPoint=G,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(G),this._state="creating")},W.prototype.renderText=function(){var G=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Q){G.textElement.appendChild(de.createTSpan(Q.trim()===""?" ":Q.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},W.prototype.getTextScale=function(){var G=this.textElement.getBBox(),Q=1;if(G.width>0&&G.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/G.width,ee=(1*this.height-this.height*this.padding*2/100)/G.height;Q=Math.min(ue,ee)}return Q},W.prototype.getTextPosition=function(G){var Q=this.textElement.getBBox(),ue=0,ee=0;return Q.width>0&&Q.height>0&&(ue=(this.width-Q.width*G)/2,ee=this.height/2-Q.height*G/2),{x:ue,y:ee}},W.prototype.sizeText=function(){var G=this.textElement.getBBox(),Q=this.getTextScale(),ue=this.getTextPosition(Q);ue.y-=G.y*Q,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+Q+", "+Q+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(Q,Q))},W.prototype.manipulate=function(G){te.prototype.manipulate.call(this,G),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(G.x-this.pointerDownPoint.x)>5||Math.abs(G.y-this.pointerDownPoint.y)>5)},W.prototype.resize=function(G){te.prototype.resize.call(this,G),this.isMoved=!0,this.setSize(),this.sizeText()},W.prototype.setSize=function(){te.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(de.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),de.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},W.prototype.pointerUp=function(G){var Q=this.state;Q==="creating"&&(this._suppressMarkerCreateEvent=!0),te.prototype.pointerUp.call(this,G),this.setSize(),(Q==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},W.prototype.showTextEditor=function(){var G=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Q){Q.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Q=Number.parseFloat(G.textEditor.style.fontSize);G.textEditor.clientWidth>=Number.parseInt(G.textEditor.style.maxWidth)&&Q>.9;)Q-=.1,G.textEditor.style.fontSize=Math.max(Q,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Q){Q.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Q){if(Q.clipboardData){var ue=Q.clipboardData.getData("text"),ee=window.getSelection();if(!ee.rangeCount)return!1;ee.deleteFromDocument(),ee.getRangeAt(0).insertNode(document.createTextNode(ue)),Q.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){G.textEditDivClicked(G.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},W.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var G=this.getTextScale(),Q=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),ee={x:ue.width*G,y:ue.height*G};Q.x-=ee.x/2,Q.y-=ee.y/2,this.textEditor.style.top=Q.y+"px",this.textEditor.style.left=Q.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Q.x+"px",this.textEditor.style.fontSize=Math.max(16*G,12)+"px",this.textElement.style.display="none"}},W.prototype.textEditDivClicked=function(G){this.text=G.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},W.prototype.select=function(){te.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},W.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),te.prototype.deselect.call(this)},W.prototype.dblClick=function(G,Q){te.prototype.dblClick.call(this,G,Q),this.showTextEditor()},W.prototype.setColor=function(G){this.textElement&&de.setAttributes(this.textElement,[["fill",G]]),this.color=G,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(G)},W.prototype.setFont=function(G){this.textElement&&de.setAttributes(this.textElement,[["font-family",G]]),this.fontFamily=G,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},W.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},W.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},te.prototype.getState.call(this));return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){var Q=G;this.color=Q.color,this.fontFamily=Q.fontFamily,this.padding=Q.padding,this.text=Q.text,this.createVisual(),te.prototype.restoreState.call(this,G),this.setSize()},W.prototype.scale=function(G,Q){te.prototype.scale.call(this,G,Q),this.setSize(),this.sizeText(),this.positionTextEditor()},W.typeName="TextMarker",W.title="Text marker",W.icon='',W}(Ut),Ne=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.color="transparent",ee.lineWidth=3,ee.drawing=!1,ee.pixelRatio=1,ee.color=ue.defaultColor,ee.lineWidth=ue.defaultStrokeWidth,ee.pixelRatio=ue.freehandPixelRatio,ee.setColor=ee.setColor.bind(ee),ee.addCanvas=ee.addCanvas.bind(ee),ee.finishCreation=ee.finishCreation.bind(ee),ee.setLineWidth=ee.setLineWidth.bind(ee),ee.colorPanel=new xe("Color",ue.defaultColorSet,ue.defaultColor),ee.colorPanel.onColorChanged=ee.setColor,ee.lineWidthPanel=new kt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ee.lineWidthPanel.onWidthChanged=ee.setLineWidth,ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!(!te.prototype.ownsTarget.call(this,G)&&G!==this.visual&&G!==this.drawingImage)},W.prototype.createVisual=function(){this.visual=de.createGroup(),this.drawingImage=de.createImage(),this.visual.appendChild(this.drawingImage);var G=de.createTransform();this.visual.transform.baseVal.appendItem(G),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(G,Q){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(G.x,G.y),this.drawing=!0):te.prototype.pointerDown.call(this,G,Q)},W.prototype.manipulate=function(G){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(G.x,G.y),this.canvasContext.stroke()):te.prototype.manipulate.call(this,G)},W.prototype.resize=function(G){te.prototype.resize.call(this,G),de.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),de.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(G){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):te.prototype.pointerUp.call(this,G)},W.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},W.prototype.select=function(){this.state==="creating"&&this.finishCreation(),te.prototype.select.call(this)},W.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),te.prototype.deselect.call(this)},W.prototype.finishCreation=function(){for(var G=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Q=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=Q[0],ee=Q[1],qe=Q[2],en=Q[3],An=!1,Vn=0;Vn0&&(An=!0,Vnen&&(en=Vn),ln>qe&&(qe=ln));if(An){this.left=ue/this.pixelRatio,this.top=ee/this.pixelRatio,this.width=(qe-ue)/this.pixelRatio,this.height=(en-ee)/this.pixelRatio;var nr=document.createElement("canvas");nr.width=qe-ue,nr.height=en-ee,nr.getContext("2d").putImageData(this.canvasContext.getImageData(ue,ee,qe-ue,en-ee),0,0),this.drawingImgUrl=nr.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},W.prototype.setDrawingImage=function(){de.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),de.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},W.prototype.setColor=function(G){this.color=G,this.colorChanged(G)},W.prototype.setLineWidth=function(G){this.lineWidth=G},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=Object.assign({drawingImgUrl:this.drawingImgUrl},te.prototype.getState.call(this));return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){this.createVisual(),te.prototype.restoreState.call(this,G),this.drawingImgUrl=G.drawingImgUrl,this.setDrawingImage()},W.prototype.scale=function(G,Q){te.prototype.scale.call(this,G,Q),this.setDrawingImage()},W.typeName="FreehandMarker",W.title="Freehand marker",W.icon='',W}(Ut),Te=function(te){function W(G,Q,ue){var ee=te.call(this,G,ue||'')||this;return ee.typeBoxes=[],ee.currentType=Q,ee.setCurrentType=ee.setCurrentType.bind(ee),ee}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");Q.style.display="flex",Q.style.overflow="hidden",Q.style.flexGrow="2";for(var ue=function(en){var An="both";switch(en){case 0:An="both";break;case 1:An="start";break;case 2:An="end";break;case 3:An="none"}var Vn=document.createElement("div");if(Vn.style.display="flex",Vn.style.flexGrow="2",Vn.style.alignItems="center",Vn.style.justifyContent="space-between",Vn.style.padding="5px",Vn.style.borderWidth="2px",Vn.style.borderStyle="solid",Vn.style.borderColor=An===ee.currentType?ee.uiStyleSettings.toolboxAccentColor:"transparent",Vn.addEventListener("click",function(){G.setCurrentType(An,Vn)}),Q.appendChild(Vn),An==="both"||An==="start"){var ln=document.createElement("div");ln.style.display="flex",ln.style.alignItems="center",ln.style.minHeight="20px",ln.innerHTML=` + `;qe.innerHTML=tn,ee.appendChild(qe),G.styleBoxes.push(ee)}),Q},W.prototype.setCurrentStyle=function(G,Q){var ue=this;this.currentStyle=G,this.styleBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},W}(ie),Pe=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.strokeColor=ue.defaultColor,ee.strokeWidth=ue.defaultStrokeWidth,ee.strokeDasharray=ue.defaultStrokeDasharray,ee.strokePanel=new xe("Line color",ue.defaultColorSet,ue.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new kt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new qt("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return fe(W,te),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=te.prototype.getState.call(this);return G.typeName=W.typeName,G},W.typeName="FrameMarker",W.title="Frame marker",W.icon='',W}(We),Ae=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},ut=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.x1=0,ee.y1=0,ee.x2=0,ee.y2=0,ee.defaultLength=50,ee.manipulationStartX=0,ee.manipulationStartY=0,ee.manipulationStartX1=0,ee.manipulationStartY1=0,ee.manipulationStartX2=0,ee.manipulationStartY2=0,ee.setupControlBox(),ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!!te.prototype.ownsTarget.call(this,G)||!(!this.grip1.ownsTarget(G)&&!this.grip2.ownsTarget(G))},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.manipulationStartX=G.x,this.manipulationStartY=G.y,this.state==="new"&&(this.x1=G.x,this.y1=G.y,this.x2=G.x,this.y2=G.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Q)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Q)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},W.prototype.pointerUp=function(G){var Q=this.state;te.prototype.pointerUp.call(this,G),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(G),this._state="select",Q==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},W.prototype.adjustVisual=function(){},W.prototype.manipulate=function(G){this.state==="creating"?this.resize(G):this.state==="move"?(this.x1=this.manipulationStartX1+G.x-this.manipulationStartX,this.y1=this.manipulationStartY1+G.y-this.manipulationStartY,this.x2=this.manipulationStartX2+G.x-this.manipulationStartX,this.y2=this.manipulationStartY2+G.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(G)},W.prototype.resize=function(G){switch(this.activeGrip){case this.grip1:this.x1=G.x,this.y1=G.y;break;case this.grip2:case void 0:this.x2=G.x,this.y2=G.y}this.adjustVisual(),this.adjustControlBox()},W.prototype.select=function(){te.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){te.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=de.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){this.positionGrips()},W.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},W.prototype.createGrip=function(){var G=new ct;return G.visual.transform.baseVal.appendItem(de.createTransform()),this.controlBox.appendChild(G.visual),G},W.prototype.positionGrips=function(){var G=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-G/2,this.y1-G/2),this.positionGrip(this.grip2.visual,this.x2-G/2,this.y2-G/2)},W.prototype.positionGrip=function(G,Q,ue){var ee=G.transform.baseVal.getItem(0);ee.setTranslate(Q,ue),G.transform.baseVal.replaceItem(ee,0)},W.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},te.prototype.getState.call(this))},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G);var Q=G;this.x1=Q.x1,this.y1=Q.y1,this.x2=Q.x2,this.y2=Q.y2},W.prototype.scale=function(G,Q){te.prototype.scale.call(this,G,Q),this.x1=this.x1*G,this.y1=this.y1*Q,this.x2=this.x2*G,this.y2=this.y2*Q,this.adjustVisual(),this.adjustControlBox()},W}(we),Et=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.strokeColor=ue.defaultColor,ee.strokeWidth=ue.defaultStrokeWidth,ee.strokeDasharray=ue.defaultStrokeDasharray,ee.strokePanel=new xe("Line color",ue.defaultColorSet,ue.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new kt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new qt("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!(!te.prototype.ownsTarget.call(this,G)&&G!==this.visual&&G!==this.selectorLine&&G!==this.visibleLine)},W.prototype.createVisual=function(){this.visual=de.createGroup(),this.selectorLine=de.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=de.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},W.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),de.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),de.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),de.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},W.prototype.setStrokeColor=function(G){this.strokeColor=G,this.adjustVisual(),this.colorChanged(G)},W.prototype.setStrokeWidth=function(G){this.strokeWidth=G,this.adjustVisual()},W.prototype.setStrokeDasharray=function(G){this.strokeDasharray=G,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},te.prototype.getState.call(this));return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G);var Q=G;this.strokeColor=Q.strokeColor,this.strokeWidth=Q.strokeWidth,this.strokeDasharray=Q.strokeDasharray,this.createVisual(),this.adjustVisual()},W.typeName="LineMarker",W.title="Line marker",W.icon='',W}(ut),Ze=function(te){function W(G,Q,ue,ee){var qe=te.call(this,G,ee||'')||this;return qe.fonts=[],qe.fontBoxes=[],qe.fonts=Q,qe.currentFont=ue,qe.setCurrentFont=qe.setCurrentFont.bind(qe),qe}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");return Q.style.overflow="hidden",Q.style.flexGrow="2",this.fonts.forEach(function(ue){var ee=document.createElement("div");ee.style.display="inline-block",ee.style.alignItems="center",ee.style.justifyContent="space-between",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.overflow="hidden",ee.style.maxWidth=100/G.fonts.length-5+"%",ee.style.borderColor=ue===G.currentFont?G.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){G.setCurrentFont(ue,ee)}),Q.appendChild(ee);var qe=document.createElement("div");qe.style.display="flex",qe.style.minHeight="20px",qe.style.flexGrow="2",qe.style.fontFamily=ue,qe.style.overflow="hidden";var tn=document.createElement("div");tn.style.whiteSpace="nowrap",tn.style.overflow="hidden",tn.style.textOverflow="ellipsis",tn.innerHTML="The quick brown fox jumps over the lazy dog",qe.appendChild(tn),ee.appendChild(qe),G.fontBoxes.push(ee)}),Q},W.prototype.setCurrentFont=function(G,Q){var ue=this;this.currentFont=G,this.fontBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},W}(ie),dt=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.color="transparent",ee.padding=5,ee.DEFAULT_TEXT="your text here",ee.text=ee.DEFAULT_TEXT,ee.isMoved=!1,ee.color=ue.defaultColor,ee.fontFamily=ue.defaultFontFamily,ee.defaultSize={x:100,y:30},ee.setColor=ee.setColor.bind(ee),ee.setFont=ee.setFont.bind(ee),ee.renderText=ee.renderText.bind(ee),ee.sizeText=ee.sizeText.bind(ee),ee.textEditDivClicked=ee.textEditDivClicked.bind(ee),ee.showTextEditor=ee.showTextEditor.bind(ee),ee.setSize=ee.setSize.bind(ee),ee.positionTextEditor=ee.positionTextEditor.bind(ee),ee.colorPanel=new xe("Color",ue.defaultColorSet,ue.defaultColor),ee.colorPanel.onColorChanged=ee.setColor,ee.fontFamilyPanel=new Ze("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ee.fontFamilyPanel.onFontChanged=ee.setFont,ee}return fe(W,te),W.prototype.ownsTarget=function(G){if(te.prototype.ownsTarget.call(this,G)||G===this.visual||G===this.textElement||G===this.bgRectangle)return!0;var Q=!1;return this.textElement.childNodes.forEach(function(ue){ue===G&&(Q=!0)}),Q},W.prototype.createVisual=function(){this.visual=de.createGroup(),this.bgRectangle=de.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=de.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(de.createTransform()),this.textElement.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.isMoved=!1,this.pointerDownPoint=G,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(G),this._state="creating")},W.prototype.renderText=function(){var G=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Q){G.textElement.appendChild(de.createTSpan(Q.trim()===""?" ":Q.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},W.prototype.getTextScale=function(){var G=this.textElement.getBBox(),Q=1;if(G.width>0&&G.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/G.width,ee=(1*this.height-this.height*this.padding*2/100)/G.height;Q=Math.min(ue,ee)}return Q},W.prototype.getTextPosition=function(G){var Q=this.textElement.getBBox(),ue=0,ee=0;return Q.width>0&&Q.height>0&&(ue=(this.width-Q.width*G)/2,ee=this.height/2-Q.height*G/2),{x:ue,y:ee}},W.prototype.sizeText=function(){var G=this.textElement.getBBox(),Q=this.getTextScale(),ue=this.getTextPosition(Q);ue.y-=G.y*Q,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+Q+", "+Q+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(Q,Q))},W.prototype.manipulate=function(G){te.prototype.manipulate.call(this,G),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(G.x-this.pointerDownPoint.x)>5||Math.abs(G.y-this.pointerDownPoint.y)>5)},W.prototype.resize=function(G){te.prototype.resize.call(this,G),this.isMoved=!0,this.setSize(),this.sizeText()},W.prototype.setSize=function(){te.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(de.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),de.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},W.prototype.pointerUp=function(G){var Q=this.state;Q==="creating"&&(this._suppressMarkerCreateEvent=!0),te.prototype.pointerUp.call(this,G),this.setSize(),(Q==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},W.prototype.showTextEditor=function(){var G=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Q){Q.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Q=Number.parseFloat(G.textEditor.style.fontSize);G.textEditor.clientWidth>=Number.parseInt(G.textEditor.style.maxWidth)&&Q>.9;)Q-=.1,G.textEditor.style.fontSize=Math.max(Q,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Q){Q.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Q){if(Q.clipboardData){var ue=Q.clipboardData.getData("text"),ee=window.getSelection();if(!ee.rangeCount)return!1;ee.deleteFromDocument(),ee.getRangeAt(0).insertNode(document.createTextNode(ue)),Q.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){G.textEditDivClicked(G.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},W.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var G=this.getTextScale(),Q=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),ee={x:ue.width*G,y:ue.height*G};Q.x-=ee.x/2,Q.y-=ee.y/2,this.textEditor.style.top=Q.y+"px",this.textEditor.style.left=Q.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Q.x+"px",this.textEditor.style.fontSize=Math.max(16*G,12)+"px",this.textElement.style.display="none"}},W.prototype.textEditDivClicked=function(G){this.text=G.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},W.prototype.select=function(){te.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},W.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),te.prototype.deselect.call(this)},W.prototype.dblClick=function(G,Q){te.prototype.dblClick.call(this,G,Q),this.showTextEditor()},W.prototype.setColor=function(G){this.textElement&&de.setAttributes(this.textElement,[["fill",G]]),this.color=G,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(G)},W.prototype.setFont=function(G){this.textElement&&de.setAttributes(this.textElement,[["font-family",G]]),this.fontFamily=G,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},W.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},W.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},te.prototype.getState.call(this));return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){var Q=G;this.color=Q.color,this.fontFamily=Q.fontFamily,this.padding=Q.padding,this.text=Q.text,this.createVisual(),te.prototype.restoreState.call(this,G),this.setSize()},W.prototype.scale=function(G,Q){te.prototype.scale.call(this,G,Q),this.setSize(),this.sizeText(),this.positionTextEditor()},W.typeName="TextMarker",W.title="Text marker",W.icon='',W}(Ut),Ne=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.color="transparent",ee.lineWidth=3,ee.drawing=!1,ee.pixelRatio=1,ee.color=ue.defaultColor,ee.lineWidth=ue.defaultStrokeWidth,ee.pixelRatio=ue.freehandPixelRatio,ee.setColor=ee.setColor.bind(ee),ee.addCanvas=ee.addCanvas.bind(ee),ee.finishCreation=ee.finishCreation.bind(ee),ee.setLineWidth=ee.setLineWidth.bind(ee),ee.colorPanel=new xe("Color",ue.defaultColorSet,ue.defaultColor),ee.colorPanel.onColorChanged=ee.setColor,ee.lineWidthPanel=new kt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ee.lineWidthPanel.onWidthChanged=ee.setLineWidth,ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!(!te.prototype.ownsTarget.call(this,G)&&G!==this.visual&&G!==this.drawingImage)},W.prototype.createVisual=function(){this.visual=de.createGroup(),this.drawingImage=de.createImage(),this.visual.appendChild(this.drawingImage);var G=de.createTransform();this.visual.transform.baseVal.appendItem(G),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(G,Q){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(G.x,G.y),this.drawing=!0):te.prototype.pointerDown.call(this,G,Q)},W.prototype.manipulate=function(G){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(G.x,G.y),this.canvasContext.stroke()):te.prototype.manipulate.call(this,G)},W.prototype.resize=function(G){te.prototype.resize.call(this,G),de.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),de.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(G){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):te.prototype.pointerUp.call(this,G)},W.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},W.prototype.select=function(){this.state==="creating"&&this.finishCreation(),te.prototype.select.call(this)},W.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),te.prototype.deselect.call(this)},W.prototype.finishCreation=function(){for(var G=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Q=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=Q[0],ee=Q[1],qe=Q[2],tn=Q[3],An=!1,Vn=0;Vn0&&(An=!0,Vntn&&(tn=Vn),un>qe&&(qe=un));if(An){this.left=ue/this.pixelRatio,this.top=ee/this.pixelRatio,this.width=(qe-ue)/this.pixelRatio,this.height=(tn-ee)/this.pixelRatio;var nr=document.createElement("canvas");nr.width=qe-ue,nr.height=tn-ee,nr.getContext("2d").putImageData(this.canvasContext.getImageData(ue,ee,qe-ue,tn-ee),0,0),this.drawingImgUrl=nr.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},W.prototype.setDrawingImage=function(){de.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),de.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},W.prototype.setColor=function(G){this.color=G,this.colorChanged(G)},W.prototype.setLineWidth=function(G){this.lineWidth=G},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=Object.assign({drawingImgUrl:this.drawingImgUrl},te.prototype.getState.call(this));return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){this.createVisual(),te.prototype.restoreState.call(this,G),this.drawingImgUrl=G.drawingImgUrl,this.setDrawingImage()},W.prototype.scale=function(G,Q){te.prototype.scale.call(this,G,Q),this.setDrawingImage()},W.typeName="FreehandMarker",W.title="Freehand marker",W.icon='',W}(Ut),Te=function(te){function W(G,Q,ue){var ee=te.call(this,G,ue||'')||this;return ee.typeBoxes=[],ee.currentType=Q,ee.setCurrentType=ee.setCurrentType.bind(ee),ee}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");Q.style.display="flex",Q.style.overflow="hidden",Q.style.flexGrow="2";for(var ue=function(tn){var An="both";switch(tn){case 0:An="both";break;case 1:An="start";break;case 2:An="end";break;case 3:An="none"}var Vn=document.createElement("div");if(Vn.style.display="flex",Vn.style.flexGrow="2",Vn.style.alignItems="center",Vn.style.justifyContent="space-between",Vn.style.padding="5px",Vn.style.borderWidth="2px",Vn.style.borderStyle="solid",Vn.style.borderColor=An===ee.currentType?ee.uiStyleSettings.toolboxAccentColor:"transparent",Vn.addEventListener("click",function(){G.setCurrentType(An,Vn)}),Q.appendChild(Vn),An==="both"||An==="start"){var un=document.createElement("div");un.style.display="flex",un.style.alignItems="center",un.style.minHeight="20px",un.innerHTML=` - `,ln.style.marginLeft="5px",Vn.appendChild(ln)}var nr=document.createElement("div");nr.style.display="flex",nr.style.alignItems="center",nr.style.minHeight="20px",nr.style.flexGrow="2";var yn=document.createElement("hr");if(yn.style.minWidth="20px",yn.style.border="0px",yn.style.borderTop="3px solid "+(ee.uiStyleSettings!==void 0?ee.uiStyleSettings.toolboxColor:"#eeeeee"),yn.style.flexGrow="2",nr.appendChild(yn),Vn.appendChild(nr),An==="both"||An==="end"){var un=document.createElement("div");un.style.display="flex",un.style.alignItems="center",un.style.minHeight="20px",un.innerHTML=` + `,un.style.marginLeft="5px",Vn.appendChild(un)}var nr=document.createElement("div");nr.style.display="flex",nr.style.alignItems="center",nr.style.minHeight="20px",nr.style.flexGrow="2";var vn=document.createElement("hr");if(vn.style.minWidth="20px",vn.style.border="0px",vn.style.borderTop="3px solid "+(ee.uiStyleSettings!==void 0?ee.uiStyleSettings.toolboxColor:"#eeeeee"),vn.style.flexGrow="2",nr.appendChild(vn),Vn.appendChild(nr),An==="both"||An==="end"){var dn=document.createElement("div");dn.style.display="flex",dn.style.alignItems="center",dn.style.minHeight="20px",dn.innerHTML=` - `,un.style.marginRight="5px",Vn.appendChild(un)}ee.typeBoxes.push(Vn)},ee=this,qe=0;qe<4;qe++)ue(qe);return Q},W.prototype.setCurrentType=function(G,Q){var ue=this;this.currentType=G,this.typeBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},W}(ie),Oe=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.arrowType="end",ee.arrowBaseHeight=10,ee.arrowBaseWidth=10,ee.getArrowPoints=ee.getArrowPoints.bind(ee),ee.setArrowType=ee.setArrowType.bind(ee),ee.arrowTypePanel=new Te("Arrow type","end"),ee.arrowTypePanel.onArrowTypeChanged=ee.setArrowType,ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!(!te.prototype.ownsTarget.call(this,G)&&G!==this.arrow1&&G!==this.arrow2)},W.prototype.getArrowPoints=function(G,Q){var ue=this.arrowBaseWidth+2*this.strokeWidth,ee=this.arrowBaseHeight+2*this.strokeWidth;return G-ue/2+","+(Q+ee/2)+" "+G+","+(Q-ee/2)+" "+(G+ue/2)+","+(Q+ee/2)},W.prototype.createTips=function(){this.arrow1=de.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=de.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.arrow2)},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.state==="creating"&&this.createTips()},W.prototype.adjustVisual=function(){if(te.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",de.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),de.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var G=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Q=this.arrow1.transform.baseVal.getItem(0);Q.setRotate(G,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Q,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(G+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},W.prototype.setArrowType=function(G){this.arrowType=G,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=Object.assign({arrowType:this.arrowType},te.prototype.getState.call(this));return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G);var Q=G;this.arrowType=Q.arrowType,this.createTips(),this.adjustVisual()},W.typeName="ArrowMarker",W.title="Arrow marker",W.icon='',W}(_t),ae=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.fillColor=ue.defaultFillColor,ee.strokeWidth=0,ee.fillPanel=new xe("Color",ue.defaultColorSet,ue.defaultFillColor),ee.fillPanel.onColorChanged=ee.setFillColor,ee}return fe(W,te),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=te.prototype.getState.call(this);return G.typeName=W.typeName,G},W.typeName="CoverMarker",W.title="Cover marker",W.icon='',W}(We),le=function(te){function W(G,Q,ue,ee){var qe=te.call(this,G,ee||'')||this;return qe.opacities=[],qe.opacityBoxes=[],qe.opacities=Q,qe.currentOpacity=ue,qe.setCurrentOpacity=qe.setCurrentOpacity.bind(qe),qe}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");return Q.style.display="flex",Q.style.overflow="hidden",Q.style.flexGrow="2",Q.style.justifyContent="space-between",this.opacities.forEach(function(ue){var ee=document.createElement("div");ee.style.display="flex",ee.style.alignItems="center",ee.style.justifyContent="center",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderColor=ue===G.currentOpacity?G.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){G.setCurrentOpacity(ue,ee)}),Q.appendChild(ee);var qe=document.createElement("div");qe.innerText=100*ue+"%",ee.appendChild(qe),G.opacityBoxes.push(ee)}),Q},W.prototype.setCurrentOpacity=function(G,Q){var ue=this;this.currentOpacity=G,this.opacityBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},W}(ie),he=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.setOpacity=ee.setOpacity.bind(ee),ee.fillColor=ue.defaultHighlightColor,ee.strokeWidth=0,ee.opacity=ue.defaultHighlightOpacity,ee.fillPanel=new xe("Color",ue.defaultColorSet,ee.fillColor),ee.fillPanel.onColorChanged=ee.setFillColor,ee.opacityPanel=new le("Opacity",ue.defaultOpacitySteps,ee.opacity),ee.opacityPanel.onOpacityChanged=ee.setOpacity,ee}return fe(W,te),W.prototype.setOpacity=function(G){this.opacity=G,this.visual&&de.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=te.prototype.getState.call(this);return G.typeName=W.typeName,G},W.typeName="HighlightMarker",W.title="Highlight marker",W.icon='',W}(ae),_e='',Se=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.bgColor="transparent",ee.tipPosition={x:0,y:0},ee.tipBase1Position={x:0,y:0},ee.tipBase2Position={x:0,y:0},ee.tipMoving=!1,ee.color=ue.defaultStrokeColor,ee.bgColor=ue.defaultFillColor,ee.fontFamily=ue.defaultFontFamily,ee.defaultSize={x:100,y:30},ee.setBgColor=ee.setBgColor.bind(ee),ee.getTipPoints=ee.getTipPoints.bind(ee),ee.positionTip=ee.positionTip.bind(ee),ee.setTipPoints=ee.setTipPoints.bind(ee),ee.colorPanel=new xe("Text color",ue.defaultColorSet,ee.color,''),ee.colorPanel.onColorChanged=ee.setColor,ee.bgColorPanel=new xe("Fill color",ue.defaultColorSet,ee.bgColor,_e),ee.bgColorPanel.onColorChanged=ee.setBgColor,ee.fontFamilyPanel=new Je("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ee.fontFamilyPanel.onFontChanged=ee.setFont,ee.tipGrip=new ct,ee.tipGrip.visual.transform.baseVal.appendItem(de.createTransform()),ee.controlBox.appendChild(ee.tipGrip.visual),ee}return fe(W,te),W.prototype.ownsTarget=function(G){return te.prototype.ownsTarget.call(this,G)||this.tipGrip.ownsTarget(G)||this.tip===G},W.prototype.createTip=function(){de.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=de.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},W.prototype.pointerDown=function(G,Q){this.state==="new"&&te.prototype.pointerDown.call(this,G,Q),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Q)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):te.prototype.pointerDown.call(this,G,Q)},W.prototype.pointerUp=function(G){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,te.prototype.pointerUp.call(this,G);else{var Q=this.state==="creating";te.prototype.pointerUp.call(this,G),this.setTipPoints(Q),this.positionTip()}},W.prototype.manipulate=function(G){if(this.tipMoving){var Q=this.unrotatePoint(G);this.tipPosition={x:Q.x-this.manipulationStartLeft,y:Q.y-this.manipulationStartTop},this.positionTip()}else te.prototype.manipulate.call(this,G)},W.prototype.setBgColor=function(G){this.bgRectangle&&this.tip&&(de.setAttributes(this.bgRectangle,[["fill",G]]),de.setAttributes(this.tip,[["fill",G]])),this.bgColor=G,this.fillColorChanged(G)},W.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},W.prototype.setTipPoints=function(G){G===void 0&&(G=!1);var Q=Math.min(this.height/2,15),ue=this.height/5;G&&(this.tipPosition={x:Q+ue/2,y:this.height+20});var ee=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?ee.1)){var G=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Q=this.tip1.transform.baseVal.getItem(0);Q.setRotate(G,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Q,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(G+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=te.prototype.getState.call(this);return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G),this.createTips(),this.adjustVisual()},W.typeName="MeasurementMarker",W.title="Measurement marker",W.icon='',W}(_t),$t=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.strokePanel.colors=ue.defaultColorSet,ee.fillColor="transparent",ee}return fe(W,te),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=te.prototype.getState.call(this);return G.typeName=W.typeName,G},W.typeName="EllipseFrameMarker",W.title="Ellipse frame marker",W.icon='',W}(ze),on=function(){function te(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(te.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),te.prototype.addUndoStep=function(W){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(W)||(this.undoStack.push(W),JSON.stringify(this.lastRedoStep)!==JSON.stringify(W)&&this.redoStack.splice(0,this.redoStack.length))},te.prototype.replaceLastUndoStep=function(W){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=W)},te.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},te.prototype.undo=function(){if(this.undoStack.length>1){var W=this.undoStack.pop();return W!==void 0&&this.redoStack.push(W),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},te.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},te}(),gt=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.curveX=0,ee.curveY=0,ee.manipulationStartCurveX=0,ee.manipulationStartCurveY=0,ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.positionGrips=ee.positionGrips.bind(ee),ee.addControlGrips=ee.addControlGrips.bind(ee),ee.adjustVisual=ee.adjustVisual.bind(ee),ee.setupControlBox=ee.setupControlBox.bind(ee),ee.resize=ee.resize.bind(ee),ee.strokeColor=ue.defaultColor,ee.strokeWidth=ue.defaultStrokeWidth,ee.strokeDasharray=ue.defaultStrokeDasharray,ee.strokePanel=new xe("Line color",ue.defaultColorSet,ue.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new kt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new Zt("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!(!te.prototype.ownsTarget.call(this,G)&&G!==this.visual&&G!==this.selectorCurve&&G!==this.visibleCurve&&!this.curveGrip.ownsTarget(G))},W.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},W.prototype.createVisual=function(){this.visual=de.createGroup(),this.selectorCurve=de.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=de.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=G.x,this.curveY=G.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Q)&&(this.activeGrip=this.curveGrip,this._state="resize")},W.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),de.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),de.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),de.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},W.prototype.setupControlBox=function(){te.prototype.setupControlBox.call(this),this.curveControlLine1=de.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=de.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},W.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,te.prototype.addControlGrips.call(this)},W.prototype.positionGrips=function(){te.prototype.positionGrips.call(this);var G=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-G/2,this.curveY-G/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},W.prototype.manipulate=function(G){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+G.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+G.y-this.manipulationStartY),te.prototype.manipulate.call(this,G)},W.prototype.resize=function(G){this.activeGrip===this.curveGrip&&(this.curveX=G.x,this.curveY=G.y),te.prototype.resize.call(this,G),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},W.prototype.setStrokeColor=function(G){this.strokeColor=G,this.adjustVisual(),this.colorChanged(G)},W.prototype.setStrokeWidth=function(G){this.strokeWidth=G,this.adjustVisual()},W.prototype.setStrokeDasharray=function(G){this.strokeDasharray=G,this.adjustVisual()},W.prototype.scale=function(G,Q){this.curveX=this.curveX*G,this.curveY=this.curveY*Q,te.prototype.scale.call(this,G,Q)},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},te.prototype.getState.call(this));return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G);var Q=G;this.strokeColor=Q.strokeColor,this.strokeWidth=Q.strokeWidth,this.strokeDasharray=Q.strokeDasharray,this.curveX=Q.curveX,this.curveY=Q.curveY,this.createVisual(),this.adjustVisual()},W.typeName="CurveMarker",W.title="Curve marker",W.icon='',W}(ut),Kt=function(){function te(W,G){G===void 0&&(G=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=W,this.cancelable=G}return Object.defineProperty(te.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),te.prototype.preventDefault=function(){this._defaultPrevented=!0},te}(),Ot=function(te){function W(G,Q,ue){var ee=te.call(this,G,!1)||this;return ee.dataUrl=Q,ee.state=ue,ee}return fe(W,te),W}(Kt),At=function(te){function W(G,Q,ue){ue===void 0&&(ue=!1);var ee=te.call(this,G,ue)||this;return ee.marker=Q,ee}return fe(W,te),W}(Kt),ft=function(){function te(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return te.prototype.addEventListener=function(W,G){this[W].push(G)},te.prototype.removeEventListener=function(W,G){var Q=this[W].indexOf(G);Q>-1&&this[W].splice(Q,1)},te}(),be=function(){function te(W){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ae,this._isOpen=!1,this.undoRedoManager=new on,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ft,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=te.instanceCounter++,this.styles=new Me(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=W,this.targetRoot=document.body,this.width=W.clientWidth,this.height=W.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(te.prototype,"ALL_MARKER_TYPES",{get:function(){return[Le,Ne,Oe,dt,$t,ze,he,Se,Et,ae,_t,gt]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Le,Ne,Oe,dt,ze,he,Se]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Le,Ne,Oe,dt,he]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(W){var G=this;this._availableMarkerTypes.splice(0),W.forEach(function(Q){if(typeof Q=="string"){var ue=G.ALL_MARKER_TYPES.find(function(ee){return ee.typeName===Q});ue!==void 0&&G._availableMarkerTypes.push(ue)}else G._availableMarkerTypes.push(Q)})},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(W){this._zoomLevel=W,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),te.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Qe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},te.prototype.show=function(){var W=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(G){return G(new Kt(W))})},te.prototype.render=function(){return ye(this,void 0,void 0,function(){var W;return Ie(this,function(G){switch(G.label){case 0:return this.setCurrentMarker(),(W=new Rt).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.markersOnly=this.renderMarkersOnly,W.width=this.renderWidth,W.height=this.renderHeight,[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return G.sent(),[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,G.sent()]}})})},te.prototype.close=function(W){var G=this;if(W===void 0&&(W=!1),this.isOpen){var Q=!1;W||this.eventListeners.beforeclose.forEach(function(ue){var ee=new Kt(G,!0);ue(ee),ee.defaultPrevented&&(Q=!0)}),Q||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ue){return ue(new Kt(G))}),this.detachEvents(),this._isOpen=!1)}},te.prototype.addMarkersToToolbar=function(){for(var W,G=[],Q=0;Qthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*W:this.editorCanvas.clientWidth,Q=G',W.title="Powered by marker.js",W.style.display="grid",W.style.alignItems="center",W.style.justifyItems="center",W.style.padding="3px",W.style.width="20px",W.style.height="20px",this.logoUI.appendChild(W),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},te.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},te.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},te.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},te.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ke(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(W),1),W.dispose()},te.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},te.prototype.toolbarButtonClicked=function(W,G){if(W==="marker"&&G!==void 0)this.createNewMarker(G);else if(W==="action")switch(G){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},te.prototype.deleteSelectedMarker=function(){var W=this;if(this._currentMarker!==void 0){var G=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var ee=new At(W,W._currentMarker,!0);ue(ee),ee.defaultPrevented&&(G=!0)}),!G){var Q=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ue){return ue(new At(W,Q))})}}},te.prototype.clear=function(){var W=this,G=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(qe){var en=new At(W,void 0,!0);qe(en),en.defaultPrevented&&(G=!0)}),!G)){this.setCurrentMarker();for(var Q=function(qe){var en=ue.markers[qe];ue.setCurrentMarker(ue.markers[qe]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(An){return An(new At(W,en))})},ue=this,ee=this.markers.length-1;ee>=0;ee--)Q(ee);this.addUndoStep()}},Object.defineProperty(te.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),te.prototype.showNotesEditor=function(){var W;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(W=this._currentMarker.notes)!==null&&W!==void 0?W:"",this.overlayContainer.appendChild(this.notesArea))},te.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},te.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},te.prototype.addUndoStep=function(){var W=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var G=this.getState(),Q=this.undoRedoManager.getLastUndoStep();if(!Q||Q.width===G.width&&Q.height===G.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(G),ue1&&this.panTo({x:W.clientX,y:W.clientY}))},te.prototype.onPointerUp=function(W){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(W.clientX,W.clientY)),this.isDragging=!1,this.addUndoStep()},te.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},te.prototype.onKeyUp=function(W){this._currentMarker===void 0||this.notesArea!==void 0||W.key!=="Delete"&&W.key!=="Backspace"||this.deleteSelectedMarker()},te.prototype.clientToLocalCoordinates=function(W,G){var Q=this.markerImage.getBoundingClientRect();return{x:(W-Q.left)/this.zoomLevel,y:(G-Q.top)/this.zoomLevel}},te.prototype.onWindowResize=function(){this.positionUI()},te.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},te.prototype.addLicenseKey=function(W){Qe.addKey(W)},te.prototype.addEventListener=function(W,G){this.eventListeners.addEventListener(W,G)},te.prototype.removeEventListener=function(W,G){this.eventListeners.removeEventListener(W,G)},te.prototype.renderState=function(W){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(W),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(te.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),te.prototype.focus=function(){var W=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(G){return G(new Kt(W))}))},te.prototype.blur=function(){var W=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(G){return G(new Kt(W))}))},te.instanceCounter=0,te}();/* ********************************** + `,dn.style.marginRight="5px",Vn.appendChild(dn)}ee.typeBoxes.push(Vn)},ee=this,qe=0;qe<4;qe++)ue(qe);return Q},W.prototype.setCurrentType=function(G,Q){var ue=this;this.currentType=G,this.typeBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},W}(ie),Oe=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.arrowType="end",ee.arrowBaseHeight=10,ee.arrowBaseWidth=10,ee.getArrowPoints=ee.getArrowPoints.bind(ee),ee.setArrowType=ee.setArrowType.bind(ee),ee.arrowTypePanel=new Te("Arrow type","end"),ee.arrowTypePanel.onArrowTypeChanged=ee.setArrowType,ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!(!te.prototype.ownsTarget.call(this,G)&&G!==this.arrow1&&G!==this.arrow2)},W.prototype.getArrowPoints=function(G,Q){var ue=this.arrowBaseWidth+2*this.strokeWidth,ee=this.arrowBaseHeight+2*this.strokeWidth;return G-ue/2+","+(Q+ee/2)+" "+G+","+(Q-ee/2)+" "+(G+ue/2)+","+(Q+ee/2)},W.prototype.createTips=function(){this.arrow1=de.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=de.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.arrow2)},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.state==="creating"&&this.createTips()},W.prototype.adjustVisual=function(){if(te.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",de.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),de.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var G=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Q=this.arrow1.transform.baseVal.getItem(0);Q.setRotate(G,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Q,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(G+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},W.prototype.setArrowType=function(G){this.arrowType=G,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=Object.assign({arrowType:this.arrowType},te.prototype.getState.call(this));return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G);var Q=G;this.arrowType=Q.arrowType,this.createTips(),this.adjustVisual()},W.typeName="ArrowMarker",W.title="Arrow marker",W.icon='',W}(Et),ae=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.fillColor=ue.defaultFillColor,ee.strokeWidth=0,ee.fillPanel=new xe("Color",ue.defaultColorSet,ue.defaultFillColor),ee.fillPanel.onColorChanged=ee.setFillColor,ee}return fe(W,te),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=te.prototype.getState.call(this);return G.typeName=W.typeName,G},W.typeName="CoverMarker",W.title="Cover marker",W.icon='',W}(We),le=function(te){function W(G,Q,ue,ee){var qe=te.call(this,G,ee||'')||this;return qe.opacities=[],qe.opacityBoxes=[],qe.opacities=Q,qe.currentOpacity=ue,qe.setCurrentOpacity=qe.setCurrentOpacity.bind(qe),qe}return fe(W,te),W.prototype.getUi=function(){var G=this,Q=document.createElement("div");return Q.style.display="flex",Q.style.overflow="hidden",Q.style.flexGrow="2",Q.style.justifyContent="space-between",this.opacities.forEach(function(ue){var ee=document.createElement("div");ee.style.display="flex",ee.style.alignItems="center",ee.style.justifyContent="center",ee.style.padding="5px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderColor=ue===G.currentOpacity?G.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){G.setCurrentOpacity(ue,ee)}),Q.appendChild(ee);var qe=document.createElement("div");qe.innerText=100*ue+"%",ee.appendChild(qe),G.opacityBoxes.push(ee)}),Q},W.prototype.setCurrentOpacity=function(G,Q){var ue=this;this.currentOpacity=G,this.opacityBoxes.forEach(function(ee){ee.style.borderColor=ee===Q?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},W}(ie),he=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.setOpacity=ee.setOpacity.bind(ee),ee.fillColor=ue.defaultHighlightColor,ee.strokeWidth=0,ee.opacity=ue.defaultHighlightOpacity,ee.fillPanel=new xe("Color",ue.defaultColorSet,ee.fillColor),ee.fillPanel.onColorChanged=ee.setFillColor,ee.opacityPanel=new le("Opacity",ue.defaultOpacitySteps,ee.opacity),ee.opacityPanel.onOpacityChanged=ee.setOpacity,ee}return fe(W,te),W.prototype.setOpacity=function(G){this.opacity=G,this.visual&&de.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=te.prototype.getState.call(this);return G.typeName=W.typeName,G},W.typeName="HighlightMarker",W.title="Highlight marker",W.icon='',W}(ae),_e='',Se=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.bgColor="transparent",ee.tipPosition={x:0,y:0},ee.tipBase1Position={x:0,y:0},ee.tipBase2Position={x:0,y:0},ee.tipMoving=!1,ee.color=ue.defaultStrokeColor,ee.bgColor=ue.defaultFillColor,ee.fontFamily=ue.defaultFontFamily,ee.defaultSize={x:100,y:30},ee.setBgColor=ee.setBgColor.bind(ee),ee.getTipPoints=ee.getTipPoints.bind(ee),ee.positionTip=ee.positionTip.bind(ee),ee.setTipPoints=ee.setTipPoints.bind(ee),ee.colorPanel=new xe("Text color",ue.defaultColorSet,ee.color,''),ee.colorPanel.onColorChanged=ee.setColor,ee.bgColorPanel=new xe("Fill color",ue.defaultColorSet,ee.bgColor,_e),ee.bgColorPanel.onColorChanged=ee.setBgColor,ee.fontFamilyPanel=new Ze("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ee.fontFamilyPanel.onFontChanged=ee.setFont,ee.tipGrip=new ct,ee.tipGrip.visual.transform.baseVal.appendItem(de.createTransform()),ee.controlBox.appendChild(ee.tipGrip.visual),ee}return fe(W,te),W.prototype.ownsTarget=function(G){return te.prototype.ownsTarget.call(this,G)||this.tipGrip.ownsTarget(G)||this.tip===G},W.prototype.createTip=function(){de.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=de.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},W.prototype.pointerDown=function(G,Q){this.state==="new"&&te.prototype.pointerDown.call(this,G,Q),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Q)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):te.prototype.pointerDown.call(this,G,Q)},W.prototype.pointerUp=function(G){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,te.prototype.pointerUp.call(this,G);else{var Q=this.state==="creating";te.prototype.pointerUp.call(this,G),this.setTipPoints(Q),this.positionTip()}},W.prototype.manipulate=function(G){if(this.tipMoving){var Q=this.unrotatePoint(G);this.tipPosition={x:Q.x-this.manipulationStartLeft,y:Q.y-this.manipulationStartTop},this.positionTip()}else te.prototype.manipulate.call(this,G)},W.prototype.setBgColor=function(G){this.bgRectangle&&this.tip&&(de.setAttributes(this.bgRectangle,[["fill",G]]),de.setAttributes(this.tip,[["fill",G]])),this.bgColor=G,this.fillColorChanged(G)},W.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},W.prototype.setTipPoints=function(G){G===void 0&&(G=!1);var Q=Math.min(this.height/2,15),ue=this.height/5;G&&(this.tipPosition={x:Q+ue/2,y:this.height+20});var ee=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?ee.1)){var G=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Q=this.tip1.transform.baseVal.getItem(0);Q.setRotate(G,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Q,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(G+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=te.prototype.getState.call(this);return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G),this.createTips(),this.adjustVisual()},W.typeName="MeasurementMarker",W.title="Measurement marker",W.icon='',W}(Et),Qt=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.strokePanel.colors=ue.defaultColorSet,ee.fillColor="transparent",ee}return fe(W,te),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=te.prototype.getState.call(this);return G.typeName=W.typeName,G},W.typeName="EllipseFrameMarker",W.title="Ellipse frame marker",W.icon='',W}(ze),sn=function(){function te(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(te.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),te.prototype.addUndoStep=function(W){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(W)||(this.undoStack.push(W),JSON.stringify(this.lastRedoStep)!==JSON.stringify(W)&&this.redoStack.splice(0,this.redoStack.length))},te.prototype.replaceLastUndoStep=function(W){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=W)},te.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},te.prototype.undo=function(){if(this.undoStack.length>1){var W=this.undoStack.pop();return W!==void 0&&this.redoStack.push(W),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},te.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},te}(),gt=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q,ue)||this;return ee.strokeColor="transparent",ee.strokeWidth=0,ee.strokeDasharray="",ee.curveX=0,ee.curveY=0,ee.manipulationStartCurveX=0,ee.manipulationStartCurveY=0,ee.setStrokeColor=ee.setStrokeColor.bind(ee),ee.setStrokeWidth=ee.setStrokeWidth.bind(ee),ee.setStrokeDasharray=ee.setStrokeDasharray.bind(ee),ee.positionGrips=ee.positionGrips.bind(ee),ee.addControlGrips=ee.addControlGrips.bind(ee),ee.adjustVisual=ee.adjustVisual.bind(ee),ee.setupControlBox=ee.setupControlBox.bind(ee),ee.resize=ee.resize.bind(ee),ee.strokeColor=ue.defaultColor,ee.strokeWidth=ue.defaultStrokeWidth,ee.strokeDasharray=ue.defaultStrokeDasharray,ee.strokePanel=new xe("Line color",ue.defaultColorSet,ue.defaultColor),ee.strokePanel.onColorChanged=ee.setStrokeColor,ee.strokeWidthPanel=new kt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ee.strokeWidthPanel.onWidthChanged=ee.setStrokeWidth,ee.strokeStylePanel=new qt("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ee.strokeStylePanel.onStyleChanged=ee.setStrokeDasharray,ee}return fe(W,te),W.prototype.ownsTarget=function(G){return!(!te.prototype.ownsTarget.call(this,G)&&G!==this.visual&&G!==this.selectorCurve&&G!==this.visibleCurve&&!this.curveGrip.ownsTarget(G))},W.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},W.prototype.createVisual=function(){this.visual=de.createGroup(),this.selectorCurve=de.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=de.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(G,Q){te.prototype.pointerDown.call(this,G,Q),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=G.x,this.curveY=G.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Q)&&(this.activeGrip=this.curveGrip,this._state="resize")},W.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),de.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),de.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),de.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},W.prototype.setupControlBox=function(){te.prototype.setupControlBox.call(this),this.curveControlLine1=de.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=de.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},W.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,te.prototype.addControlGrips.call(this)},W.prototype.positionGrips=function(){te.prototype.positionGrips.call(this);var G=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-G/2,this.curveY-G/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},W.prototype.manipulate=function(G){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+G.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+G.y-this.manipulationStartY),te.prototype.manipulate.call(this,G)},W.prototype.resize=function(G){this.activeGrip===this.curveGrip&&(this.curveX=G.x,this.curveY=G.y),te.prototype.resize.call(this,G),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},W.prototype.setStrokeColor=function(G){this.strokeColor=G,this.adjustVisual(),this.colorChanged(G)},W.prototype.setStrokeWidth=function(G){this.strokeWidth=G,this.adjustVisual()},W.prototype.setStrokeDasharray=function(G){this.strokeDasharray=G,this.adjustVisual()},W.prototype.scale=function(G,Q){this.curveX=this.curveX*G,this.curveY=this.curveY*Q,te.prototype.scale.call(this,G,Q)},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var G=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},te.prototype.getState.call(this));return G.typeName=W.typeName,G},W.prototype.restoreState=function(G){te.prototype.restoreState.call(this,G);var Q=G;this.strokeColor=Q.strokeColor,this.strokeWidth=Q.strokeWidth,this.strokeDasharray=Q.strokeDasharray,this.curveX=Q.curveX,this.curveY=Q.curveY,this.createVisual(),this.adjustVisual()},W.typeName="CurveMarker",W.title="Curve marker",W.icon='',W}(ut),zt=function(){function te(W,G){G===void 0&&(G=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=W,this.cancelable=G}return Object.defineProperty(te.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),te.prototype.preventDefault=function(){this._defaultPrevented=!0},te}(),Ot=function(te){function W(G,Q,ue){var ee=te.call(this,G,!1)||this;return ee.dataUrl=Q,ee.state=ue,ee}return fe(W,te),W}(zt),At=function(te){function W(G,Q,ue){ue===void 0&&(ue=!1);var ee=te.call(this,G,ue)||this;return ee.marker=Q,ee}return fe(W,te),W}(zt),ft=function(){function te(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return te.prototype.addEventListener=function(W,G){this[W].push(G)},te.prototype.removeEventListener=function(W,G){var Q=this[W].indexOf(G);Q>-1&&this[W].splice(Q,1)},te}(),be=function(){function te(W){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ae,this._isOpen=!1,this.undoRedoManager=new sn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ft,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=te.instanceCounter++,this.styles=new Me(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=W,this.targetRoot=document.body,this.width=W.clientWidth,this.height=W.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(te.prototype,"ALL_MARKER_TYPES",{get:function(){return[Pe,Ne,Oe,dt,Qt,ze,he,Se,xt,ae,Et,gt]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Pe,Ne,Oe,dt,ze,he,Se]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Pe,Ne,Oe,dt,he]},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(W){var G=this;this._availableMarkerTypes.splice(0),W.forEach(function(Q){if(typeof Q=="string"){var ue=G.ALL_MARKER_TYPES.find(function(ee){return ee.typeName===Q});ue!==void 0&&G._availableMarkerTypes.push(ue)}else G._availableMarkerTypes.push(Q)})},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(W){this._zoomLevel=W,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),te.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Je.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},te.prototype.show=function(){var W=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(G){return G(new zt(W))})},te.prototype.render=function(){return ye(this,void 0,void 0,function(){var W;return Ie(this,function(G){switch(G.label){case 0:return this.setCurrentMarker(),(W=new Rt).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.markersOnly=this.renderMarkersOnly,W.width=this.renderWidth,W.height=this.renderHeight,[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return G.sent(),[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,G.sent()]}})})},te.prototype.close=function(W){var G=this;if(W===void 0&&(W=!1),this.isOpen){var Q=!1;W||this.eventListeners.beforeclose.forEach(function(ue){var ee=new zt(G,!0);ue(ee),ee.defaultPrevented&&(Q=!0)}),Q||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ue){return ue(new zt(G))}),this.detachEvents(),this._isOpen=!1)}},te.prototype.addMarkersToToolbar=function(){for(var W,G=[],Q=0;Qthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*W:this.editorCanvas.clientWidth,Q=G',W.title="Powered by marker.js",W.style.display="grid",W.style.alignItems="center",W.style.justifyItems="center",W.style.padding="3px",W.style.width="20px",W.style.height="20px",this.logoUI.appendChild(W),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},te.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},te.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},te.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},te.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ke(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(W),1),W.dispose()},te.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},te.prototype.toolbarButtonClicked=function(W,G){if(W==="marker"&&G!==void 0)this.createNewMarker(G);else if(W==="action")switch(G){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},te.prototype.deleteSelectedMarker=function(){var W=this;if(this._currentMarker!==void 0){var G=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var ee=new At(W,W._currentMarker,!0);ue(ee),ee.defaultPrevented&&(G=!0)}),!G){var Q=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ue){return ue(new At(W,Q))})}}},te.prototype.clear=function(){var W=this,G=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(qe){var tn=new At(W,void 0,!0);qe(tn),tn.defaultPrevented&&(G=!0)}),!G)){this.setCurrentMarker();for(var Q=function(qe){var tn=ue.markers[qe];ue.setCurrentMarker(ue.markers[qe]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(An){return An(new At(W,tn))})},ue=this,ee=this.markers.length-1;ee>=0;ee--)Q(ee);this.addUndoStep()}},Object.defineProperty(te.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),te.prototype.showNotesEditor=function(){var W;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(W=this._currentMarker.notes)!==null&&W!==void 0?W:"",this.overlayContainer.appendChild(this.notesArea))},te.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},te.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},te.prototype.addUndoStep=function(){var W=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var G=this.getState(),Q=this.undoRedoManager.getLastUndoStep();if(!Q||Q.width===G.width&&Q.height===G.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(G),ue1&&this.panTo({x:W.clientX,y:W.clientY}))},te.prototype.onPointerUp=function(W){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(W.clientX,W.clientY)),this.isDragging=!1,this.addUndoStep()},te.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},te.prototype.onKeyUp=function(W){this._currentMarker===void 0||this.notesArea!==void 0||W.key!=="Delete"&&W.key!=="Backspace"||this.deleteSelectedMarker()},te.prototype.clientToLocalCoordinates=function(W,G){var Q=this.markerImage.getBoundingClientRect();return{x:(W-Q.left)/this.zoomLevel,y:(G-Q.top)/this.zoomLevel}},te.prototype.onWindowResize=function(){this.positionUI()},te.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},te.prototype.addLicenseKey=function(W){Je.addKey(W)},te.prototype.addEventListener=function(W,G){this.eventListeners.addEventListener(W,G)},te.prototype.removeEventListener=function(W,G){this.eventListeners.removeEventListener(W,G)},te.prototype.renderState=function(W){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(W),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(te.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),te.prototype.focus=function(){var W=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(G){return G(new zt(W))}))},te.prototype.blur=function(){var W=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(G){return G(new zt(W))}))},te.instanceCounter=0,te}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -176,14 +176,14 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Fe=function(te,W){return(Fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Q){G.__proto__=Q}||function(G,Q){for(var ue in Q)Object.prototype.hasOwnProperty.call(Q,ue)&&(G[ue]=Q[ue])})(te,W)};function Nt(te,W){if(typeof W!="function"&&W!==null)throw new TypeError("Class extends value "+String(W)+" is not a constructor or null");function G(){this.constructor=te}Fe(te,W),te.prototype=W===null?Object.create(W):(G.prototype=W.prototype,new G)}function yt(te,W,G,Q){return new(G||(G=Promise))(function(ue,ee){function qe(Vn){try{An(Q.next(Vn))}catch(ln){ee(ln)}}function en(Vn){try{An(Q.throw(Vn))}catch(ln){ee(ln)}}function An(Vn){var ln;Vn.done?ue(Vn.value):(ln=Vn.value,ln instanceof G?ln:new G(function(nr){nr(ln)})).then(qe,en)}An((Q=Q.apply(te,W||[])).next())})}function Gt(te,W){var G,Q,ue,ee,qe={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return ee={next:en(0),throw:en(1),return:en(2)},typeof Symbol=="function"&&(ee[Symbol.iterator]=function(){return this}),ee;function en(An){return function(Vn){return function(ln){if(G)throw new TypeError("Generator is already executing.");for(;qe;)try{if(G=1,Q&&(ue=2&ln[0]?Q.return:ln[0]?Q.throw||((ue=Q.return)&&ue.call(Q),0):Q.next)&&!(ue=ue.call(Q,ln[1])).done)return ue;switch(Q=0,ue&&(ln=[2&ln[0],ue.value]),ln[0]){case 0:case 1:ue=ln;break;case 4:return qe.label++,{value:ln[1],done:!1};case 5:qe.label++,Q=ln[1],ln=[0];continue;case 7:ln=qe.ops.pop(),qe.trys.pop();continue;default:if(!(ue=qe.trys,(ue=ue.length>0&&ue[ue.length-1])||ln[0]!==6&&ln[0]!==2)){qe=0;continue}if(ln[0]===3&&(!ue||ln[1]>ue[0]&&ln[1]0&&ue[ue.length-1])||un[0]!==6&&un[0]!==2)){qe=0;continue}if(un[0]===3&&(!ue||un[1]>ue[0]&&un[1]0&&G>0){var Q=new xr(W,G),ue=Q.ratio>=1?20:Q.getHorizontalLength(20),ee=Q.ratio<1?20:Q.getVerticalLength(20),qe=document.createElementNS("http://www.w3.org/2000/svg","svg");qe.setAttribute("xmlns","http://www.w3.org/2000/svg"),qe.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(qe);var en=Ge.createDefs();qe.appendChild(en);var An=Ge.createElement("clipPath",[["id","text-bg-clip"]]);en.appendChild(An);var Vn=Ge.createPath(Ge.getHollowRectanglePath((24-ue)/2,(24-ee)/2,ue,ee,(24-ue)/2+2,(24-ee)/2+2,ue-4,ee-4));qe.appendChild(Vn);var ln=Ge.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);ln.appendChild(Ge.createTSpan(W+":"+G)),qe.appendChild(ln);var nr=ln.getBBox();Ge.setAttributes(ln,[["x",((24-nr.width)/2).toString()],["y",((24-nr.height)/2-nr.y).toString()]]);var yn=Ge.createPath(Ge.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(nr.width))/2,(24-Math.ceil(nr.height))/2,Math.ceil(nr.width),Math.ceil(nr.height)));return An.appendChild(yn),Ge.setAttributes(Vn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(qe),qe.outerHTML}return''},te}(),rr=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q)||this;return ee.isDropdownOpen=!1,ee.onClick=ee.dropdownButtonClicked,ee.dropdownButtons=ue,ee}return Nt(W,te),W.prototype.setupDropdown=function(){var G=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(Q){Q.className=G.className,Q.colorsClassName=G.colorsClassName,G.dropdownBlock.appendChild(Q.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},W.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},W.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},W.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},W.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},W.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},W}(Hn),ur=function(){function te(W,G){this.GRIP_SIZE=10,this.color=W,this.fillColor=G,this.visual=Ge.createGroup(),this.visual.appendChild(Ge.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ge.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return te.prototype.ownsTarget=function(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},te.prototype.setCenter=function(W,G){this.visual.childNodes.forEach(function(Q){return Ge.setAttributes(Q,[["cx",W.toString()],["cy",G.toString()]])})},te}(),Ar=function(){function te(W,G,Q,ue){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=W,this.canvasHeight=G,this.margin=Q,this.container=ue,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(te.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(W){this._aspectRatio=W,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(W){this._isGridVisible=W,this.gridContainer&&Ge.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(W){this._zoomFactor=W,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),te.prototype.open=function(){var W=this;this.cropShadeElement=Ge.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Ge.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var G=0;Gthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-G.height/2),Ge.setAttributes(this.cropRectElement,[["x",G.x.toString()],["y",G.y.toString()],["width",G.width.toString()],["height",G.height.toString()]]);var Q=G.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(ee,qe){var en=G.y+Q*(qe+1);Ge.setAttributes(ee,[["x1",""+G.x],["y1",""+en],["x2",""+(G.x+G.width)],["y2",""+en]])});var ue=G.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(ee,qe){var en=G.x+ue*(qe+1);Ge.setAttributes(ee,[["x1",""+en],["y1",""+G.y],["x2",""+en],["y2",""+(G.y+G.height)]])}),Ge.setAttributes(this.cropShadeElement,[["d",Ge.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,G.x,G.y,G.width,G.height)]]),this.topLeftGrip.setCenter(G.x,G.y),this.topRightGrip.setCenter(G.x+G.width,G.y),this.bottomLeftGrip.setCenter(G.x,G.y+G.height),this.bottomRightGrip.setCenter(G.x+G.width,G.y+G.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},te.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},te.prototype.clientToLocalCoordinates=function(W,G){var Q=this.container.getBoundingClientRect();return{x:W-Q.left+this.margin,y:G-Q.top+this.margin}},te.prototype.onPointerDown=function(W){this.container.setPointerCapture(W.pointerId),this.previousPoint=this.clientToLocalCoordinates(W.clientX,W.clientY),this.cropRectElement===W.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(W.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(W.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(W.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(W.target)&&(this.activeGrip=this.bottomRightGrip)},te.prototype.onPointerMove=function(W){if(this.isMoving)this.move(this.clientToLocalCoordinates(W.clientX,W.clientY));else if(this.activeGrip){var G=this.clientToLocalCoordinates(W.clientX,W.clientY);this.resize(G)}W.preventDefault()},te.prototype.onPointerUp=function(W){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(W.pointerId)},te.prototype.move=function(W){var G=W.x-this.previousPoint.x,Q=W.y-this.previousPoint.y;this.zoomFactor!==1&&(G=-G/this.zoomFactor,Q=-Q/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+G),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+Q),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=W},te.prototype.resize=function(W){var G=Object.assign({},this.cropRect),Q=W.x-this.previousPoint.x,ue=W.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:G.x+Qthis.canvasWidth*this.zoomFactor&&(Q=this.canvasWidth*this.zoomFactor-G.width),G.width+=Q}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(G.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(Q),G.height=this.aspectRatio.getVerticalLength(G.width)):(G.y+=ue,G.height=this.cropRect.y+this.cropRect.height-G.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?G.height=this.aspectRatio.getVerticalLength(G.width):G.height+=ue}G.width<10&&(G.x=this.cropRect.x,G.width=10),G.height<10&&(G.y=this.cropRect.y,G.height=10),this.previousPoint=W,G.x>=this.margin&&G.y>=this.margin&&G.x-this.margin+G.width<=this.canvasWidth&&G.y-this.margin+G.height<=this.canvasHeight&&(this.cropRect=G,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},te.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var W=this.cropRect.x+this.cropRect.width/2,G=this.cropRect.y+this.cropRect.height/2,Q=this.aspectRatio.getHorizontalLength(this.cropRect.height),ue=this.aspectRatio.getVerticalLength(this.cropRect.width);Q/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=W-this.cropRect.width/2,this.cropRect.y=G-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},te.prototype.getRescaledRect=function(W,G,Q,ue,ee,qe){var en=Q/W,An=ue/G;return{x:(ee.x-qe)*en+qe,y:(ee.y-qe)*An+qe,width:ee.width*en,height:ee.height*An}},te.prototype.scaleCanvas=function(W,G){var Q=this.getRescaledRect(this.canvasWidth,this.canvasHeight,W,G,this.cropRect,this.margin);this.canvasWidth=W,this.canvasHeight=G,this.onCropChange&&this.onCropChange(Q),this.setCropRectangle(Q)},te}(),Kr=function(){function te(W){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=W,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(te.prototype,"angle",{get:function(){return this._angle},set:function(W){this._angle=W,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),te.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},te.prototype.onPointerDown=function(W){this.controlContainer.setPointerCapture(W.pointerId),this.isDragging=!0,this.previousPoint={x:W.clientX,y:W.clientY}},te.prototype.onPointerMove=function(W){this.isDragging&&(this.onAngleChange&&this.onAngleChange((W.clientX-this.previousPoint.x)/5),this.previousPoint.x=W.clientX)},te.prototype.onPointerUp=function(W){this.isDragging&&this.onAngleChange&&this.onAngleChange((W.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(W.pointerId)},te.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var W=this.angleLabelText.getBBox();Ge.setAttributes(this.angleLabelElement,[["x",((this.width-W.width)/2).toString()],["y",(this.height/2).toString()]])}},te.prototype.positionScaleShape=function(){if(this.scaleShape){var W=this.scaleShape.transform.baseVal.getItem(0);W.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(W,0)}},te.prototype.getVisual=function(){var W=document.createElementNS("http://www.w3.org/2000/svg","svg");W.setAttribute("xmlns","http://www.w3.org/2000/svg"),W.setAttribute("width",this.width+"px"),W.setAttribute("height",this.height+"px"),W.setAttribute("viewBox","0 0 "+this.width+" "+this.height),W.style.flexShrink="0",document.body.appendChild(W);for(var G="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,Q=1;Q<=this.width/5+10;Q++){var ue=Q%5==0?this.height/3:this.height/6;G+="h4v"+-ue+"h1v"+ue}G+="v1H0Z",this.scaleShape=Ge.createPath(G);var ee=Ge.createTransform();this.scaleShape.transform.baseVal.appendItem(ee),W.appendChild(this.scaleShape),this.angleLabelElement=Ge.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Ge.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var qe=Ge.createTSpan("");return qe.innerHTML="°",this.angleLabelElement.appendChild(qe),W.appendChild(this.angleLabelElement),document.body.removeChild(W),W},te}(),ra=function(){function te(){this.naturalSize=!1,this.imageType="image/png"}return te.prototype.rasterize=function(W,G,Q,ue,ee,qe,en){var An=this;return new Promise(function(Vn){var ln=document.createElement("canvas");ln.width=W.width.baseVal.value-2*ue,ln.height=W.height.baseVal.value-2*ue;var nr=1,yn=1;An.naturalSize===!0?(nr=G.naturalWidth/(W.width.baseVal.value-2*ue)/qe,yn=G.naturalHeight/(W.height.baseVal.value-2*ue)/en,ln.width=G.naturalWidth/qe,ln.height=G.naturalHeight/en):An.width!==void 0&&An.height!==void 0&&(nr=An.width/Q.width,yn=An.height/Q.height,ln.width*=nr,ln.height*=yn);var un=ln.getContext("2d");un.translate(ln.width/2,ln.height/2),un.rotate(ee*Math.PI/180),un.scale(qe,en),un.translate(-ln.width/2,-ln.height/2),un.drawImage(G,0,0,ln.width,ln.height);var Cn=document.createElement("canvas");Cn.width=Q.width*nr,Cn.height=Q.height*yn,Cn.getContext("2d").putImageData(un.getImageData((Q.x-ue)*nr,(Q.y-ue)*yn,Q.width*nr,Q.height*yn),0,0),Vn(Cn.toDataURL(An.imageType,An.imageQuality))})},te}(),pn=function(){function te(W){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=te.instanceCounter++,this.styles=new lt(this.instanceNo),this.target=W,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(te.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(W){this._zoomToCropEnabled=W,W?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(W){this._isGridVisible=W,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"gridLines",{get:function(){return this._gridLines},set:function(W){this._gridLines=W,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(W){this._rotationAngle=W,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"aspectRatio",{get:function(){var W;return(W=this._aspectRatio)!==null&&W!==void 0?W:this.aspectRatios[0]},set:function(W){this._aspectRatio=W},enumerable:!1,configurable:!0}),te.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},te.prototype.show=function(){this.showUI(),this.open()},te.prototype.close=function(W){W===void 0&&(W=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),W||this.closeEventListeners.forEach(function(G){return G()}),this._isOpen=!1)},te.prototype.addRenderEventListener=function(W){this.renderEventListeners.push(W)},te.prototype.removeRenderEventListener=function(W){this.renderEventListeners.indexOf(W)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(W),1)},te.prototype.addCloseEventListener=function(W){this.closeEventListeners.push(W)},te.prototype.removeCloseEventListener=function(W){this.closeEventListeners.indexOf(W)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(W),1)},te.prototype.setupResizeObserver=function(){var W=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){W.resize(W.target.clientWidth,W.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},te.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var W=1*this.target.clientWidth/this.target.clientHeight,G=this.contentDiv.clientWidth/W>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*W:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,Q=G+2*this.CANVAS_MARGINW+this.CANVAS_MARGIN?this.target.offsetTop-(W+this.CANVAS_MARGIN):0;this.coverDiv.style.top=G+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},te.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},te.prototype.addTopToolbar=function(){var W=this;this.topToolbar=new sn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var G=new tr;G.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(G);var Q=[];this.aspectRatios.forEach(function(yn){var un=new Hn(Er.getIcon(yn.horizontal,yn.vertical),yn.horizontal===0&&yn.vertical===0?"FREE":yn.horizontal+":"+yn.vertical);un.onClick=function(){return W.ratioButtonClicked(yn)},Q.push(un)}),this.aspectRatioButton=new rr(Er.getIcon(0,0),"Aspect ratio",Q),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,G.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ue=new Hn('',"Toggle grid");ue.isActive=this.isGridVisible,ue.onClick=function(){W.isGridVisible=!W.isGridVisible,ue.isActive=W.isGridVisible},G.addButton(ue);var ee=new Hn('',"Zoom to selection");if(ee.isActive=this.zoomToCropEnabled,ee.onClick=function(){W.zoomToCropEnabled=!W.zoomToCropEnabled,ee.isActive=W.zoomToCropEnabled},G.addButton(ee),!Jt.isLicensed){var qe=new wn;this.topToolbar.addElementBlock(qe);var en=document.createElement("div");en.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var An=document.createElement("a");An.style.color="currentColor",An.href="https://markerjs.com/products/cropro",An.target="_blank",An.innerHTML='',en.appendChild(An),qe.addElement(en)}var Vn=new tr;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var ln=new Hn('',"OK");ln.onClick=this.startRenderAndClose,Vn.addButton(ln),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(ln.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var nr=new Hn('',"Close");nr.onClick=this.close,Vn.addButton(nr),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(nr.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},te.prototype.addBottomToolbar=function(){var W=this;this.bottomToolbar=new sn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var G=new tr;G.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(G);var Q=new Hn('',"Rotate left");Q.onClick=this.rotateLeftButtonClicked,G.addButton(Q);var ue=new Hn('',"Rotate right");ue.onClick=this.rotateRightButtonClicked,G.addButton(ue);var ee=new wn;ee.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(ee),this.straightener=new Kr("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Vn){W.rotateBy(Vn),W.straightener.angle=W.rotationAngle},ee.addElement(this.straightener.getUI());var qe=new tr;qe.minWidth=2*this.toolbarHeight+"px",qe.contentAlign="end",this.bottomToolbar.addButtonBlock(qe);var en=new Hn('',"Flip horizontal");en.onClick=this.flipHorizontallyButtonClicked,qe.addButton(en);var An=new Hn('',"Flip vertical");An.onClick=this.flipVerticallyButtonClicked,qe.addButton(An)},te.prototype.ratioButtonClicked=function(W){this.aspectRatio=W,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},te.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Er.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},te.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new xr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},te.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},te.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},te.prototype.restoreState=function(W){if(W){var G=this.cropLayer.getRescaledRect(W.width,W.height,this.imageWidth,this.imageHeight,W.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(G),this.cropRectChanged(G),this.flippedHorizontally=W.flippedHorizontally,this.flippedVertically=W.flippedVertically,this.applyFlip(),this.rotationAngle=W.rotationAngle,this.applyRotation()}},te.prototype.clientToLocalCoordinates=function(W,G){var Q=this.cropImage.getBoundingClientRect();return{x:W-Q.left,y:G-Q.top}},te.prototype.onWindowResize=function(){this.positionUI()},te.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var W=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},te.prototype.rotateLeftButtonClicked=function(){var W=this.rotationAngle-90;this.rotationAngle%90!=0&&(W+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(W)},te.prototype.rotateRightButtonClicked=function(){var W=this.rotationAngle+90;this.rotationAngle%90!=0&&(W-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(W)},te.prototype.rotateTo=function(W){W=(W=W>180?W-360:W)<=-180?W+360:W,this.rotationAngle=W,this.applyRotation()},te.prototype.rotateBy=function(W){this.rotateTo((this.rotationAngle+W)%360)},te.prototype.applyRotation=function(){var W=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var G=this.editingTargetRotationContainer.transform.baseVal.getItem(0);G.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(G,0);var Q=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/Q.width,this.imageHeight/Q.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=W},te.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},te.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},te.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},te.prototype.startRenderAndClose=function(){return yt(this,void 0,void 0,function(){var W,G;return Gt(this,function(Q){switch(Q.label){case 0:return[4,this.render()];case 1:return W=Q.sent(),G=this.getState(),this.renderEventListeners.forEach(function(ue){return ue(W,G)}),this.close(!0),[2]}})})},te.prototype.render=function(){return yt(this,void 0,void 0,function(){var W;return Gt(this,function(G){switch(G.label){case 0:return(W=new ra).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.width=this.renderWidth,W.height=this.renderHeight,this.unzoomFromCrop(),Ge.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,W.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return G.sent(),[4,W.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,G.sent()]}})})},te.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Wt("toolbar",` + `))},te.prototype.removeStyleSheet=function(){var W;this.styleSheet&&(((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},te}(),Lt=function(te,W){this.selector=te,this.style=W},Wt=function(te,W){this.localName=te,this.style=W},ln=function(){function te(){this.blocks=[],this.display=""}return te.prototype.addButtonBlock=function(W){W.className=this.blockClassName,W.buttonClassName=this.buttonClassName,W.buttonColorsClassName=this.buttonColorsClassName,W.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(W)},te.prototype.addElementBlock=function(W){W.className===void 0&&(W.className=this.blockClassName),this.blocks.push(W)},te.prototype.getUI=function(){var W=document.createElement("div");return W.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,W.style.display=this.display,this.blocks.forEach(function(G){return W.appendChild(G.getUI())}),W},te}(),gn=function(){function te(){}return te.prototype.getUI=function(){var W=document.createElement("div");if(W.className=this.className,this.minWidth!==void 0&&(W.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":W.style.justifyContent="flex-start";break;case"center":W.style.justifyContent="center";break;case"end":W.style.justifyContent="flex-end"}return W.style.whiteSpace="nowrap",W},te}(),tr=function(te){function W(){var G=te!==null&&te.apply(this,arguments)||this;return G.buttons=[],G}return Nt(W,te),W.prototype.addButton=function(G){G.className=this.buttonClassName,G.colorsClassName=this.buttonColorsClassName,G.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(G)},W.prototype.getUI=function(){var G=te.prototype.getUI.call(this);return this.buttons.forEach(function(Q){return G.appendChild(Q.getUI())}),G},W}(gn),Wn=function(){function te(W,G){this._isActive=!1,this._isHidden=!1,this._icon=W,this.title=G,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(te.prototype,"icon",{get:function(){return this._icon},set:function(W){this._icon=W,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isActive",{get:function(){return this._isActive},set:function(W){this._isActive=W,this.adjustClassName()},enumerable:!1,configurable:!0}),te.prototype.getUI=function(){var W=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return W.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},te.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},te.prototype.hide=function(){this._isHidden=!0},te}(),En=function(te){function W(){var G=te!==null&&te.apply(this,arguments)||this;return G.elements=[],G}return Nt(W,te),W.prototype.addElement=function(G){this.elements.push(G)},W.prototype.getUI=function(){var G=te.prototype.getUI.call(this);return this.elements.forEach(function(Q){return G.appendChild(Q)}),G},W}(gn),xr=function(){function te(W,G){this.horizontal=W,this.vertical=G}return Object.defineProperty(te.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),te.prototype.getVerticalLength=function(W){return W/this.ratio},te.prototype.getHorizontalLength=function(W){return W*this.ratio},te}(),Er=function(){function te(){}return te.getIcon=function(W,G){if(W>0&&G>0){var Q=new xr(W,G),ue=Q.ratio>=1?20:Q.getHorizontalLength(20),ee=Q.ratio<1?20:Q.getVerticalLength(20),qe=document.createElementNS("http://www.w3.org/2000/svg","svg");qe.setAttribute("xmlns","http://www.w3.org/2000/svg"),qe.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(qe);var tn=Ge.createDefs();qe.appendChild(tn);var An=Ge.createElement("clipPath",[["id","text-bg-clip"]]);tn.appendChild(An);var Vn=Ge.createPath(Ge.getHollowRectanglePath((24-ue)/2,(24-ee)/2,ue,ee,(24-ue)/2+2,(24-ee)/2+2,ue-4,ee-4));qe.appendChild(Vn);var un=Ge.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);un.appendChild(Ge.createTSpan(W+":"+G)),qe.appendChild(un);var nr=un.getBBox();Ge.setAttributes(un,[["x",((24-nr.width)/2).toString()],["y",((24-nr.height)/2-nr.y).toString()]]);var vn=Ge.createPath(Ge.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(nr.width))/2,(24-Math.ceil(nr.height))/2,Math.ceil(nr.width),Math.ceil(nr.height)));return An.appendChild(vn),Ge.setAttributes(Vn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(qe),qe.outerHTML}return''},te}(),rr=function(te){function W(G,Q,ue){var ee=te.call(this,G,Q)||this;return ee.isDropdownOpen=!1,ee.onClick=ee.dropdownButtonClicked,ee.dropdownButtons=ue,ee}return Nt(W,te),W.prototype.setupDropdown=function(){var G=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(Q){Q.className=G.className,Q.colorsClassName=G.colorsClassName,G.dropdownBlock.appendChild(Q.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},W.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},W.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},W.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},W.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},W.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},W}(Wn),ur=function(){function te(W,G){this.GRIP_SIZE=10,this.color=W,this.fillColor=G,this.visual=Ge.createGroup(),this.visual.appendChild(Ge.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ge.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return te.prototype.ownsTarget=function(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},te.prototype.setCenter=function(W,G){this.visual.childNodes.forEach(function(Q){return Ge.setAttributes(Q,[["cx",W.toString()],["cy",G.toString()]])})},te}(),Rr=function(){function te(W,G,Q,ue){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=W,this.canvasHeight=G,this.margin=Q,this.container=ue,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(te.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(W){this._aspectRatio=W,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(W){this._isGridVisible=W,this.gridContainer&&Ge.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(W){this._zoomFactor=W,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),te.prototype.open=function(){var W=this;this.cropShadeElement=Ge.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Ge.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var G=0;Gthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-G.height/2),Ge.setAttributes(this.cropRectElement,[["x",G.x.toString()],["y",G.y.toString()],["width",G.width.toString()],["height",G.height.toString()]]);var Q=G.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(ee,qe){var tn=G.y+Q*(qe+1);Ge.setAttributes(ee,[["x1",""+G.x],["y1",""+tn],["x2",""+(G.x+G.width)],["y2",""+tn]])});var ue=G.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(ee,qe){var tn=G.x+ue*(qe+1);Ge.setAttributes(ee,[["x1",""+tn],["y1",""+G.y],["x2",""+tn],["y2",""+(G.y+G.height)]])}),Ge.setAttributes(this.cropShadeElement,[["d",Ge.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,G.x,G.y,G.width,G.height)]]),this.topLeftGrip.setCenter(G.x,G.y),this.topRightGrip.setCenter(G.x+G.width,G.y),this.bottomLeftGrip.setCenter(G.x,G.y+G.height),this.bottomRightGrip.setCenter(G.x+G.width,G.y+G.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},te.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},te.prototype.clientToLocalCoordinates=function(W,G){var Q=this.container.getBoundingClientRect();return{x:W-Q.left+this.margin,y:G-Q.top+this.margin}},te.prototype.onPointerDown=function(W){this.container.setPointerCapture(W.pointerId),this.previousPoint=this.clientToLocalCoordinates(W.clientX,W.clientY),this.cropRectElement===W.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(W.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(W.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(W.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(W.target)&&(this.activeGrip=this.bottomRightGrip)},te.prototype.onPointerMove=function(W){if(this.isMoving)this.move(this.clientToLocalCoordinates(W.clientX,W.clientY));else if(this.activeGrip){var G=this.clientToLocalCoordinates(W.clientX,W.clientY);this.resize(G)}W.preventDefault()},te.prototype.onPointerUp=function(W){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(W.pointerId)},te.prototype.move=function(W){var G=W.x-this.previousPoint.x,Q=W.y-this.previousPoint.y;this.zoomFactor!==1&&(G=-G/this.zoomFactor,Q=-Q/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+G),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+Q),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=W},te.prototype.resize=function(W){var G=Object.assign({},this.cropRect),Q=W.x-this.previousPoint.x,ue=W.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:G.x+Qthis.canvasWidth*this.zoomFactor&&(Q=this.canvasWidth*this.zoomFactor-G.width),G.width+=Q}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(G.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(Q),G.height=this.aspectRatio.getVerticalLength(G.width)):(G.y+=ue,G.height=this.cropRect.y+this.cropRect.height-G.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?G.height=this.aspectRatio.getVerticalLength(G.width):G.height+=ue}G.width<10&&(G.x=this.cropRect.x,G.width=10),G.height<10&&(G.y=this.cropRect.y,G.height=10),this.previousPoint=W,G.x>=this.margin&&G.y>=this.margin&&G.x-this.margin+G.width<=this.canvasWidth&&G.y-this.margin+G.height<=this.canvasHeight&&(this.cropRect=G,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},te.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var W=this.cropRect.x+this.cropRect.width/2,G=this.cropRect.y+this.cropRect.height/2,Q=this.aspectRatio.getHorizontalLength(this.cropRect.height),ue=this.aspectRatio.getVerticalLength(this.cropRect.width);Q/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=W-this.cropRect.width/2,this.cropRect.y=G-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},te.prototype.getRescaledRect=function(W,G,Q,ue,ee,qe){var tn=Q/W,An=ue/G;return{x:(ee.x-qe)*tn+qe,y:(ee.y-qe)*An+qe,width:ee.width*tn,height:ee.height*An}},te.prototype.scaleCanvas=function(W,G){var Q=this.getRescaledRect(this.canvasWidth,this.canvasHeight,W,G,this.cropRect,this.margin);this.canvasWidth=W,this.canvasHeight=G,this.onCropChange&&this.onCropChange(Q),this.setCropRectangle(Q)},te}(),Kr=function(){function te(W){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=W,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(te.prototype,"angle",{get:function(){return this._angle},set:function(W){this._angle=W,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),te.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},te.prototype.onPointerDown=function(W){this.controlContainer.setPointerCapture(W.pointerId),this.isDragging=!0,this.previousPoint={x:W.clientX,y:W.clientY}},te.prototype.onPointerMove=function(W){this.isDragging&&(this.onAngleChange&&this.onAngleChange((W.clientX-this.previousPoint.x)/5),this.previousPoint.x=W.clientX)},te.prototype.onPointerUp=function(W){this.isDragging&&this.onAngleChange&&this.onAngleChange((W.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(W.pointerId)},te.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var W=this.angleLabelText.getBBox();Ge.setAttributes(this.angleLabelElement,[["x",((this.width-W.width)/2).toString()],["y",(this.height/2).toString()]])}},te.prototype.positionScaleShape=function(){if(this.scaleShape){var W=this.scaleShape.transform.baseVal.getItem(0);W.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(W,0)}},te.prototype.getVisual=function(){var W=document.createElementNS("http://www.w3.org/2000/svg","svg");W.setAttribute("xmlns","http://www.w3.org/2000/svg"),W.setAttribute("width",this.width+"px"),W.setAttribute("height",this.height+"px"),W.setAttribute("viewBox","0 0 "+this.width+" "+this.height),W.style.flexShrink="0",document.body.appendChild(W);for(var G="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,Q=1;Q<=this.width/5+10;Q++){var ue=Q%5==0?this.height/3:this.height/6;G+="h4v"+-ue+"h1v"+ue}G+="v1H0Z",this.scaleShape=Ge.createPath(G);var ee=Ge.createTransform();this.scaleShape.transform.baseVal.appendItem(ee),W.appendChild(this.scaleShape),this.angleLabelElement=Ge.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Ge.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var qe=Ge.createTSpan("");return qe.innerHTML="°",this.angleLabelElement.appendChild(qe),W.appendChild(this.angleLabelElement),document.body.removeChild(W),W},te}(),ra=function(){function te(){this.naturalSize=!1,this.imageType="image/png"}return te.prototype.rasterize=function(W,G,Q,ue,ee,qe,tn){var An=this;return new Promise(function(Vn){var un=document.createElement("canvas");un.width=W.width.baseVal.value-2*ue,un.height=W.height.baseVal.value-2*ue;var nr=1,vn=1;An.naturalSize===!0?(nr=G.naturalWidth/(W.width.baseVal.value-2*ue)/qe,vn=G.naturalHeight/(W.height.baseVal.value-2*ue)/tn,un.width=G.naturalWidth/qe,un.height=G.naturalHeight/tn):An.width!==void 0&&An.height!==void 0&&(nr=An.width/Q.width,vn=An.height/Q.height,un.width*=nr,un.height*=vn);var dn=un.getContext("2d");dn.translate(un.width/2,un.height/2),dn.rotate(ee*Math.PI/180),dn.scale(qe,tn),dn.translate(-un.width/2,-un.height/2),dn.drawImage(G,0,0,un.width,un.height);var xn=document.createElement("canvas");xn.width=Q.width*nr,xn.height=Q.height*vn,xn.getContext("2d").putImageData(dn.getImageData((Q.x-ue)*nr,(Q.y-ue)*vn,Q.width*nr,Q.height*vn),0,0),Vn(xn.toDataURL(An.imageType,An.imageQuality))})},te}(),fn=function(){function te(W){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=te.instanceCounter++,this.styles=new lt(this.instanceNo),this.target=W,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(te.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(W){this._zoomToCropEnabled=W,W?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(W){this._isGridVisible=W,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"gridLines",{get:function(){return this._gridLines},set:function(W){this._gridLines=W,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(W){this._rotationAngle=W,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"aspectRatio",{get:function(){var W;return(W=this._aspectRatio)!==null&&W!==void 0?W:this.aspectRatios[0]},set:function(W){this._aspectRatio=W},enumerable:!1,configurable:!0}),te.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},te.prototype.show=function(){this.showUI(),this.open()},te.prototype.close=function(W){W===void 0&&(W=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),W||this.closeEventListeners.forEach(function(G){return G()}),this._isOpen=!1)},te.prototype.addRenderEventListener=function(W){this.renderEventListeners.push(W)},te.prototype.removeRenderEventListener=function(W){this.renderEventListeners.indexOf(W)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(W),1)},te.prototype.addCloseEventListener=function(W){this.closeEventListeners.push(W)},te.prototype.removeCloseEventListener=function(W){this.closeEventListeners.indexOf(W)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(W),1)},te.prototype.setupResizeObserver=function(){var W=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){W.resize(W.target.clientWidth,W.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},te.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var W=1*this.target.clientWidth/this.target.clientHeight,G=this.contentDiv.clientWidth/W>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*W:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,Q=G+2*this.CANVAS_MARGINW+this.CANVAS_MARGIN?this.target.offsetTop-(W+this.CANVAS_MARGIN):0;this.coverDiv.style.top=G+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},te.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},te.prototype.addTopToolbar=function(){var W=this;this.topToolbar=new ln,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var G=new tr;G.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(G);var Q=[];this.aspectRatios.forEach(function(vn){var dn=new Wn(Er.getIcon(vn.horizontal,vn.vertical),vn.horizontal===0&&vn.vertical===0?"FREE":vn.horizontal+":"+vn.vertical);dn.onClick=function(){return W.ratioButtonClicked(vn)},Q.push(dn)}),this.aspectRatioButton=new rr(Er.getIcon(0,0),"Aspect ratio",Q),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,G.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ue=new Wn('',"Toggle grid");ue.isActive=this.isGridVisible,ue.onClick=function(){W.isGridVisible=!W.isGridVisible,ue.isActive=W.isGridVisible},G.addButton(ue);var ee=new Wn('',"Zoom to selection");if(ee.isActive=this.zoomToCropEnabled,ee.onClick=function(){W.zoomToCropEnabled=!W.zoomToCropEnabled,ee.isActive=W.zoomToCropEnabled},G.addButton(ee),!Zt.isLicensed){var qe=new En;this.topToolbar.addElementBlock(qe);var tn=document.createElement("div");tn.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var An=document.createElement("a");An.style.color="currentColor",An.href="https://markerjs.com/products/cropro",An.target="_blank",An.innerHTML='',tn.appendChild(An),qe.addElement(tn)}var Vn=new tr;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var un=new Wn('',"OK");un.onClick=this.startRenderAndClose,Vn.addButton(un),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(un.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var nr=new Wn('',"Close");nr.onClick=this.close,Vn.addButton(nr),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(nr.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},te.prototype.addBottomToolbar=function(){var W=this;this.bottomToolbar=new ln,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var G=new tr;G.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(G);var Q=new Wn('',"Rotate left");Q.onClick=this.rotateLeftButtonClicked,G.addButton(Q);var ue=new Wn('',"Rotate right");ue.onClick=this.rotateRightButtonClicked,G.addButton(ue);var ee=new En;ee.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(ee),this.straightener=new Kr("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Vn){W.rotateBy(Vn),W.straightener.angle=W.rotationAngle},ee.addElement(this.straightener.getUI());var qe=new tr;qe.minWidth=2*this.toolbarHeight+"px",qe.contentAlign="end",this.bottomToolbar.addButtonBlock(qe);var tn=new Wn('',"Flip horizontal");tn.onClick=this.flipHorizontallyButtonClicked,qe.addButton(tn);var An=new Wn('',"Flip vertical");An.onClick=this.flipVerticallyButtonClicked,qe.addButton(An)},te.prototype.ratioButtonClicked=function(W){this.aspectRatio=W,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},te.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Er.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},te.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new xr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},te.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},te.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},te.prototype.restoreState=function(W){if(W){var G=this.cropLayer.getRescaledRect(W.width,W.height,this.imageWidth,this.imageHeight,W.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(G),this.cropRectChanged(G),this.flippedHorizontally=W.flippedHorizontally,this.flippedVertically=W.flippedVertically,this.applyFlip(),this.rotationAngle=W.rotationAngle,this.applyRotation()}},te.prototype.clientToLocalCoordinates=function(W,G){var Q=this.cropImage.getBoundingClientRect();return{x:W-Q.left,y:G-Q.top}},te.prototype.onWindowResize=function(){this.positionUI()},te.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var W=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},te.prototype.rotateLeftButtonClicked=function(){var W=this.rotationAngle-90;this.rotationAngle%90!=0&&(W+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(W)},te.prototype.rotateRightButtonClicked=function(){var W=this.rotationAngle+90;this.rotationAngle%90!=0&&(W-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(W)},te.prototype.rotateTo=function(W){W=(W=W>180?W-360:W)<=-180?W+360:W,this.rotationAngle=W,this.applyRotation()},te.prototype.rotateBy=function(W){this.rotateTo((this.rotationAngle+W)%360)},te.prototype.applyRotation=function(){var W=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var G=this.editingTargetRotationContainer.transform.baseVal.getItem(0);G.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(G,0);var Q=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/Q.width,this.imageHeight/Q.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=W},te.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},te.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},te.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},te.prototype.startRenderAndClose=function(){return bt(this,void 0,void 0,function(){var W,G;return Kt(this,function(Q){switch(Q.label){case 0:return[4,this.render()];case 1:return W=Q.sent(),G=this.getState(),this.renderEventListeners.forEach(function(ue){return ue(W,G)}),this.close(!0),[2]}})})},te.prototype.render=function(){return bt(this,void 0,void 0,function(){var W;return Kt(this,function(G){switch(G.label){case 0:return(W=new ra).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.width=this.renderWidth,W.height=this.renderHeight,this.unzoomFromCrop(),Ge.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,W.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return G.sent(),[4,W.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,G.sent()]}})})},te.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Wt("toolbar",` width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`; flex-shrink: 0; display: flex; @@ -227,9 +227,9 @@ PERFORMANCE OF THIS SOFTWARE. color: `+this.styles.settings.toolbarColor+`; fill: currentColor; background-color: `+this.styles.settings.toolbarBackgroundActiveColor+` - `)),this.styles.addRule(new It("."+this.toolbarButtonStyleClass.name+" svg",` + `)),this.styles.addRule(new Lt("."+this.toolbarButtonStyleClass.name+" svg",` height: `+this.toolbarHeight/2+`px; - `)),this.styles.addRule(new It("."+this.toolbarButtonStyleColorsClass.name+":hover",` + `)),this.styles.addRule(new Lt("."+this.toolbarButtonStyleColorsClass.name+":hover",` background-color: `+this.styles.settings.toolbarBackgroundHoverColor+` `)),this.toolbarDropdownStyleClass=this.styles.addClass(new Wt("toolbar_dropdown",` position: absolute; @@ -259,27 +259,27 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new Wt("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},te.instanceCounter=0,te}(),sr=L("8hTe"),sa=L.n(sr),ya=/]*>/g;function Jr(te){var W=document.createElement("div");return W.innerHTML=te,W.childNodes.length===0?"":W.childNodes[0].nodeValue}var na=J.a=function(te){var W=te.value,G=W===void 0?"":W,Q=te.edit,ue=Q===void 0?!1:Q,ee=te.className,qe=te.showTextOnly,en=te.showLines,An=te.replaces,Vn=te.zoomImg,ln=te.hasMask,nr=te.style,yn=nr===void 0?{}:nr,un=te.stylesPrev,Cn=un===void 0?{}:un,kn=String(G),dr=Object(b.useRef)(),$n=Object(b.useRef)(),Zn=Object(b.useState)(""),In=Object(P.a)(Zn,2),mr=In[0],Fn=In[1],ar=Object(b.useState)("office"),Gn=Object(P.a)(ar,2),Wn=Gn[0],Rr=Gn[1],Tr=function(){var Ze=new pn($n.current);Ze.displayMode="popup",Ze.addRenderEventListener(function(){var pt=Object(R.a)(t.a.mark(function mt(it){var Lt;return t.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return dr.current.style.display="none",Xt.next=3,Object(me.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:it}});case 3:Lt=Xt.sent,Lt!=null&&Lt.id&&An($n.current.getAttribute("src").replace(K.a.API_SERVER,""),"/api/attachments/".concat(Lt==null?void 0:Lt.id,"?type=").concat(Lt.content_type));case 5:case"end":return Xt.stop()}},mt)}));return function(mt){return pt.apply(this,arguments)}}()),Ze.show()},br=function(){var Ze=new be($n.current);Ze.settings.displayMode="popup",Ze.addEventListener("render",function(){var pt=Object(R.a)(t.a.mark(function mt(it){var Lt;return t.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(dr.current.style.display="none",!$n.current){Xt.next=6;break}return Xt.next=4,Object(me.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:it.dataUrl}});case 4:Lt=Xt.sent,Lt!=null&&Lt.id&&An($n.current.getAttribute("src").replace(K.a.API_SERVER,""),"/api/attachments/".concat(Lt==null?void 0:Lt.id,"?type=").concat(Lt.content_type));case 6:case"end":return Xt.stop()}},mt)}));return function(mt){return pt.apply(this,arguments)}}()),Ze.show(),window.markerArea=Ze},wr=Object(b.useMemo)(function(){dr.current&&(dr.current.style.zIndex=-1);try{var st=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ze=/\"\/api\/attachments\/|\"\/attachments\/download\//g,pt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;kn=kn.replace(st,"("+K.a.API_SERVER+"/api/attachments/").replace(Ze,'"'+K.a.API_SERVER+"/api/attachments/").replace(pt,'"'+K.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` -`)}catch(Yt){}var mt=z(kn),it=_();if(kn.match(/\[TOC\]/)&&(mt=mt.replace("

      [TOC]

      ",k()),x()),mt=mt.replace(/(__special_katext_id_\d+__)/g,function(Yt,Xt){var St=it[Xt],Ft=St.type,at=St.expression;return Object($.renderToString)(Jr(at)||"",{displayMode:Ft==="block",throwOnError:!1,output:"html"})}),mt=mt.replace(/▁/g,"\u2581\u2581\u2581"),E(),qe){var Lt=document.createElement("div");return Lt.innerHTML=mt,Lt.innerText}return setTimeout(function(){return Xe()},500),mt},[kn]),ne=Object(b.useRef)();A.WebkitLineClamp=en,en&&(yn=Object(T.a)(Object(T.a)({},yn),A));function Re(st){var Ze=st.target;if(Ze.tagName.toUpperCase()==="IMG"){if(Vn){var pt=Ze.getAttribute("src");Fn(pt),Rr("image")}}else if(Ze.tagName.toUpperCase()==="A"){var mt=Ze.getAttribute("href");if(mt.indexOf("office")>-1)st.preventDefault(),Fn(mt),Rr("office");else if(mt.indexOf("application/pdf")>-1)st.preventDefault(),Fn(mt),Rr("pdf");else if(mt.indexOf("text/html")>-1)st.preventDefault(),Fn(mt),Rr("html");else if(mt.startsWith("#")){st.preventDefault();var it=document.getElementById(mt.replace("#",""));it&&it.scrollIntoView(!0)}}}var Xe=function(){var Ze,pt=(Ze=ne.current)===null||Ze===void 0?void 0:Ze.querySelectorAll("video");pt==null||pt.forEach(function(mt){if(mt.oncontextmenu=function(){return!1},mt.src.indexOf(".m3u8")>-1&&!mt.canPlayType("application/vnd.apple.mpegurl")){if(V.a.isSupported()){var it=new V.a;it.loadSource(mt.src),it.attachMedia(mt)}}})};Object(b.useEffect)(function(){if(ne.current&&wr&&(wr.match(ya)&&window.PR.prettyPrint()),ne.current)return ne.current.addEventListener("click",Re),function(){ne.current.removeEventListener("click",Re),E(),x()}},[wr,ne.current,Re]);var Pe=function(Ze){if(!ue)return;Ze.target.nodeName==="IMG"?(dr.current.style.zIndex=1,dr.current.style.display="flex",dr.current.style.width=Ze.target.clientWidth+"px",dr.current.style.height=Ze.target.clientHeight+"px",dr.current.style.top=Ze.target.offsetTop+"px",dr.current.style.left=Ze.target.offsetLeft+"px",$n.current.src=Ze.target.getAttribute("src")):dr.current.style.display="none"};return o.a.createElement("div",{style:{position:"relative"}},o.a.createElement("div",{ref:ne,style:Object(T.a)({},yn),className:"".concat(ee||""," markdown-body ").concat(sa.a.mdBody),onMouseOver:Pe,dangerouslySetInnerHTML:{__html:wr}}),o.a.createElement("div",{ref:dr,className:sa.a.button},o.a.createElement(B.a,null,o.a.createElement(F.a,{onClick:function(){return Tr()}},"\u88C1\u526A"),o.a.createElement(F.a,{onClick:function(){return br()}},"\u7F16\u8F91"))),o.a.createElement("img",{ref:$n,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),o.a.createElement(Z.a,{close:!0,data:mr,type:mr!=null&&mr.length?Wn:"",style:Object(T.a)({},Cn),onClose:function(){return Fn("")}}))}},"9VGf":function(Be,J,L){"use strict";L.d(J,"a",function(){return I});var Y=L("q1tI"),B=L.n(Y);function I(F,T){var R=Object(Y.useRef)();Object(Y.useEffect)(function(){R.current=F}),Object(Y.useEffect)(function(){function P(){R.current()}if(T!==null){var m=setInterval(P,T);return function(){return clearInterval(m)}}},[T])}},AHFd:function(Be,J,L){"use strict";L.d(J,"a",function(){return m});var Y=L("giR+"),B=L("fyUT"),I=L("OaEy"),F=L("2fM7"),T=L("tJVT"),R=L("q1tI"),P=L.n(R),m;(function(b){b[b.Number=1]="Number",b[b.Percent=2]="Percent"})(m||(m={}));var t=function(o){var u=o.value,f=o.onChange,a=o.disabled,i=o.hidePercentOption,d=i===void 0?!1:i,s=Object(R.useMemo)(function(){return d?m.Number:m.Percent},[d]),n=Object(R.useState)(s),l=Object(T.a)(n,2),c=l[0],x=l[1],A=Object(R.useCallback)(function(k){return c===m.Number?"".concat(k,"\u5206"):"".concat(k,"%")},[c]),C=Object(R.useCallback)(function(k){if(c===m.Number){var w=k.replace("\u5206","");return isNaN(parseInt(w,10))?0:w}else{var y=k.replace("%","");return y}},[c]);return Object(R.useEffect)(function(){x(u.type)},[u]),P.a.createElement("div",{style:{display:"inline-block"}},P.a.createElement(F.a,{onChange:function(w){x(w),f({type:w,inputValue:w===m.Number?5:20})},value:c||s,style:{width:100},options:d?[{label:"\u5206\u503C",value:m.Number}]:[{label:"\u767E\u5206\u6BD4",value:m.Percent},{label:"\u5206\u503C",value:m.Number}],disabled:a}),P.a.createElement(B.a,{disabled:a,value:u.inputValue,formatter:A,parser:C,max:c===m.Percent?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:function(w){f({type:c,inputValue:w})}}))};J.b=t},Aocz:function(Be,J,L){Be.exports={flex_box_center:"flex_box_center___7n5J9",flex_space_between:"flex_space_between___1vC-V",flex_box_vertical_center:"flex_box_vertical_center___3gkLb",flex_box_center_end:"flex_box_center_end___26SUk",flex_box_column:"flex_box_column___2iv36",title:"title___ooa1w",menuTabs:"menuTabs___3mPq2",rightMenu:"rightMenu___2Vjbz",shixunDetail:"shixunDetail___2EXcB"}},BPZU:function(Be,J){var L=32,Y=7,B=256;function I(o){for(var u=0;o>=L;)u|=o&1,o>>=1;return o+u}function F(o,u,f,a){var i=u+1;if(i===f)return 1;if(a(o[i++],o[u])<0){for(;i=0;)i++;return i-u}function T(o,u,f){for(f--;u>>1,i(d,o[l])<0?n=l:s=l+1;var c=a-s;switch(c){case 3:o[s+3]=o[s+2];case 2:o[s+2]=o[s+1];case 1:o[s+1]=o[s];break;default:for(;c>0;)o[s+c]=o[s+c-1],c--}o[s]=d}}function P(o,u,f,a,i,d){var s=0,n=0,l=1;if(d(o,u[f+i])>0){for(n=a-i;l0;)s=l,l=(l<<1)+1,l<=0&&(l=n);l>n&&(l=n),s+=i,l+=i}else{for(n=i+1;ln&&(l=n);var c=s;s=i-l,l=i-c}for(s++;s>>1);d(o,u[f+x])>0?s=x+1:l=x}return l}function m(o,u,f,a,i,d){var s=0,n=0,l=1;if(d(o,u[f+i])<0){for(n=i+1;ln&&(l=n);var c=s;s=i-l,l=i-c}else{for(n=a-i;l=0;)s=l,l=(l<<1)+1,l<=0&&(l=n);l>n&&(l=n),s+=i,l+=i}for(s++;s>>1);d(o,u[f+x])<0?l=x:s=x+1}return l}function t(o,u){var f=Y,a=0,i=B,d=0,s,n,l=0;a=o.length,a<2*B&&(i=a>>>1);var c=[];d=a<120?5:a<1542?10:a<119151?19:40,s=[],n=[];function x(h,p){s[l]=h,n[l]=p,l+=1}function A(){for(;l>1;){var h=l-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]n[h+1])break;k(h)}}function C(){for(;l>1;){var h=l-2;h>0&&n[h-1]=Y||H>=Y);if(M)break;S<0&&(S=0),S+=2}if(f=S,f<1&&(f=1),p===1){for(E=0;E<_;E++)o[U+E]=o[j+E];o[U+_]=c[g]}else{if(p===0)throw new Error;for(E=0;E=0;E--)o[z+E]=o[S+E];o[U]=c[j];return}for(var H=f;;){var M=0,V=0,K=!1;do if(u(c[j],o[g])<0){if(o[U--]=o[g--],M++,V=0,--p===0){K=!0;break}}else if(o[U--]=c[j--],V++,M=0,--_===1){K=!0;break}while((M|V)=0;E--)o[z+E]=o[S+E];if(p===0){K=!0;break}}if(o[U--]=c[j--],--_===1){K=!0;break}if(V=_-P(o[g],c,0,_,_-1,u),V!==0){for(U-=V,j-=V,_-=V,z=U+1,S=j+1,E=0;E=Y||V>=Y);if(K)break;H<0&&(H=0),H+=2}if(f=H,f<1&&(f=1),_===1){for(U-=p,g-=p,z=U+1,S=g+1,E=p-1;E>=0;E--)o[z+E]=o[S+E];o[U]=c[j]}else{if(_===0)throw new Error;for(S=U-(_-1),E=0;E<_;E++)o[S+E]=c[E]}}this.mergeRuns=A,this.forceMergeRuns=C,this.pushRun=x}function b(o,u,f,a){f||(f=0),a||(a=o.length);var i=a-f;if(i<2)return;var d=0;if(in&&(l=n),R(o,f,f+l,f+d,u),d=l}s.pushRun(f,d),s.mergeRuns(),i-=d,f+=d}while(i!==0);s.forceMergeRuns()}Be.exports=b},BU3w:function(Be,J,L){"use strict";L.d(J,"a",function(){return R});var Y=L("MNnm"),B="rc-util-key";function I(P){if(P.attachTo)return P.attachTo;var m=document.querySelector("head");return m||document.body}function F(P){var m,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Y.a)())return null;var b=document.createElement("style");if((m=t.csp)===null||m===void 0?void 0:m.nonce){var o;b.nonce=(o=t.csp)===null||o===void 0?void 0:o.nonce}b.innerHTML=P;var u=I(t),f=u.firstChild;return t.prepend&&u.prepend?u.prepend(b):t.prepend&&f?u.insertBefore(b,f):u.appendChild(b),b}var T=new Map;function R(P,m){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=I(t);if(!T.has(b)){var o=F("",t),u=o.parentNode;T.set(b,u),u.removeChild(o)}var f=Array.from(T.get(b).children).find(function(n){return n.tagName==="STYLE"&&n[B]===m});if(f){var a,i;if(((a=t.csp)===null||a===void 0?void 0:a.nonce)&&f.nonce!==((i=t.csp)===null||i===void 0?void 0:i.nonce)){var d;f.nonce=(d=t.csp)===null||d===void 0?void 0:d.nonce}return f.innerHTML!==P&&(f.innerHTML=P),f}var s=F(P,t);return s[B]=m,s}},Bd2K:function(Be,J,L){(function(Y){Y(L("VrN/"),L("osHv"))})(function(Y){Y.defineOption("autoCloseTags",!1,function(t,b,o){if(o!=Y.Init&&o&&t.removeKeyMap("autoCloseTags"),!b)return;var u={name:"autoCloseTags"};(typeof b!="object"||b.whenClosing!==!1)&&(u["'/'"]=function(f){return R(f)}),(typeof b!="object"||b.whenOpening!==!1)&&(u["'>'"]=function(f){return F(f)}),t.addKeyMap(u)});var B=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],I=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function F(t){if(t.getOption("disableInput"))return Y.Pass;for(var b=t.listSelections(),o=[],u=t.getOption("autoCloseTags"),f=0;fa.ch&&(l=l.slice(0,l.length-i.end+a.ch));var C=l.toLowerCase();if(!l||i.type=="string"&&(i.end!=a.ch||!/[\"\']/.test(i.string.charAt(i.string.length-1))||i.string.length==1)||i.type=="tag"&&n.close||i.string.indexOf("/")==a.ch-i.start-1||x&&P(x,C)>-1||m(t,d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(s)||[],l,a,!0))return Y.Pass;var k=typeof u=="object"&&u.emptyTags;if(k&&P(k,l)>-1){o[f]={text:"/>",newPos:Y.Pos(a.line,a.ch+2)};continue}var w=A&&P(A,C)>-1;o[f]={indent:w,text:">"+(w?` + `))},te.instanceCounter=0,te}(),or=L("8hTe"),sa=L.n(or),ya=/]*>/g;function Jr(te){var W=document.createElement("div");return W.innerHTML=te,W.childNodes.length===0?"":W.childNodes[0].nodeValue}var na=J.a=function(te){var W=te.value,G=W===void 0?"":W,Q=te.edit,ue=Q===void 0?!1:Q,ee=te.className,qe=te.showTextOnly,tn=te.showLines,An=te.replaces,Vn=te.zoomImg,un=te.hasMask,nr=te.style,vn=nr===void 0?{}:nr,dn=te.stylesPrev,xn=dn===void 0?{}:dn,Nn=String(G),dr=Object(b.useRef)(),$n=Object(b.useRef)(),Zn=Object(b.useState)(""),kn=Object(P.a)(Zn,2),gr=kn[0],Bn=kn[1],ar=Object(b.useState)("office"),sr=Object(P.a)(ar,2),Pn=sr[0],Tr=sr[1],Mr=function(){var et=new fn($n.current);et.displayMode="popup",et.addRenderEventListener(function(){var pt=Object(R.a)(t.a.mark(function mt(it){var Mt;return t.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return dr.current.style.display="none",Vt.next=3,Object(me.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:it}});case 3:Mt=Vt.sent,Mt!=null&&Mt.id&&An($n.current.getAttribute("src").replace(K.a.API_SERVER,""),"/api/attachments/".concat(Mt==null?void 0:Mt.id,"?type=").concat(Mt.content_type));case 5:case"end":return Vt.stop()}},mt)}));return function(mt){return pt.apply(this,arguments)}}()),et.show()},Sr=function(){var et=new be($n.current);et.settings.displayMode="popup",et.addEventListener("render",function(){var pt=Object(R.a)(t.a.mark(function mt(it){var Mt;return t.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(dr.current.style.display="none",!$n.current){Vt.next=6;break}return Vt.next=4,Object(me.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:it.dataUrl}});case 4:Mt=Vt.sent,Mt!=null&&Mt.id&&An($n.current.getAttribute("src").replace(K.a.API_SERVER,""),"/api/attachments/".concat(Mt==null?void 0:Mt.id,"?type=").concat(Mt.content_type));case 6:case"end":return Vt.stop()}},mt)}));return function(mt){return pt.apply(this,arguments)}}()),et.show(),window.markerArea=et},hr=Object(b.useMemo)(function(){dr.current&&(dr.current.style.zIndex=-1);try{var st=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,et=/\"\/api\/attachments\/|\"\/attachments\/download\//g,pt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Nn=Nn.replace(st,"("+K.a.API_SERVER+"/api/attachments/").replace(et,'"'+K.a.API_SERVER+"/api/attachments/").replace(pt,'"'+K.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` +`)}catch(Xt){}var mt=z(Nn),it=_();if(Nn.match(/\[TOC\]/)&&(mt=mt.replace("

      [TOC]

      ",k()),x()),mt=mt.replace(/(__special_katext_id_\d+__)/g,function(Xt,Vt){var St=it[Vt],nn=St.type,Qe=St.expression;return Object($.renderToString)(Jr(Qe)||"",{displayMode:nn==="block",throwOnError:!1,output:"html"})}),mt=mt.replace(/▁/g,"\u2581\u2581\u2581"),E(),qe){var Mt=document.createElement("div");return Mt.innerHTML=mt,Mt.innerText}return setTimeout(function(){return Xe()},500),mt},[Nn]),ne=Object(b.useRef)();A.WebkitLineClamp=tn,tn&&(vn=Object(T.a)(Object(T.a)({},vn),A));function Re(st){var et=st.target;if(et.tagName.toUpperCase()==="IMG"){if(Vn){var pt=et.getAttribute("src");Bn(pt),Tr("image")}}else if(et.tagName.toUpperCase()==="A"){var mt=et.getAttribute("href");if(mt.indexOf("office")>-1)st.preventDefault(),Bn(mt),Tr("office");else if(mt.indexOf("application/pdf")>-1)st.preventDefault(),Bn(mt),Tr("pdf");else if(mt.indexOf("text/html")>-1)st.preventDefault(),Bn(mt),Tr("html");else if(mt.startsWith("#")){st.preventDefault();var it=document.getElementById(mt.replace("#",""));it&&it.scrollIntoView(!0)}}}var Xe=function(){var et,pt=(et=ne.current)===null||et===void 0?void 0:et.querySelectorAll("video");pt==null||pt.forEach(function(mt){if(mt.oncontextmenu=function(){return!1},mt.src.indexOf(".m3u8")>-1&&!mt.canPlayType("application/vnd.apple.mpegurl")){if(V.a.isSupported()){var it=new V.a;it.loadSource(mt.src),it.attachMedia(mt)}}})};Object(b.useEffect)(function(){if(ne.current&&hr&&(hr.match(ya)&&window.PR.prettyPrint()),ne.current)return ne.current.addEventListener("click",Re),function(){ne.current.removeEventListener("click",Re),E(),x()}},[hr,ne.current,Re]);var Le=function(et){if(!ue)return;et.target.nodeName==="IMG"?(dr.current.style.zIndex=1,dr.current.style.display="flex",dr.current.style.width=et.target.clientWidth+"px",dr.current.style.height=et.target.clientHeight+"px",dr.current.style.top=et.target.offsetTop+"px",dr.current.style.left=et.target.offsetLeft+"px",$n.current.src=et.target.getAttribute("src")):dr.current.style.display="none"};return o.a.createElement("div",{style:{position:"relative"}},o.a.createElement("div",{ref:ne,style:Object(T.a)({},vn),className:"".concat(ee||""," markdown-body ").concat(sa.a.mdBody),onMouseOver:Le,dangerouslySetInnerHTML:{__html:hr}}),o.a.createElement("div",{ref:dr,className:sa.a.button},o.a.createElement(B.a,null,o.a.createElement(F.a,{onClick:function(){return Mr()}},"\u88C1\u526A"),o.a.createElement(F.a,{onClick:function(){return Sr()}},"\u7F16\u8F91"))),o.a.createElement("img",{ref:$n,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),o.a.createElement(Z.a,{close:!0,data:gr,type:gr!=null&&gr.length?Pn:"",style:Object(T.a)({},xn),onClose:function(){return Bn("")}}))}},"9VGf":function(Be,J,L){"use strict";L.d(J,"a",function(){return I});var Y=L("q1tI"),B=L.n(Y);function I(F,T){var R=Object(Y.useRef)();Object(Y.useEffect)(function(){R.current=F}),Object(Y.useEffect)(function(){function P(){R.current()}if(T!==null){var m=setInterval(P,T);return function(){return clearInterval(m)}}},[T])}},AHFd:function(Be,J,L){"use strict";L.d(J,"a",function(){return m});var Y=L("giR+"),B=L("fyUT"),I=L("OaEy"),F=L("2fM7"),T=L("tJVT"),R=L("q1tI"),P=L.n(R),m;(function(b){b[b.Number=1]="Number",b[b.Percent=2]="Percent"})(m||(m={}));var t=function(o){var u=o.value,f=o.onChange,a=o.disabled,i=o.hidePercentOption,d=i===void 0?!1:i,s=Object(R.useMemo)(function(){return d?m.Number:m.Percent},[d]),n=Object(R.useState)(s),l=Object(T.a)(n,2),c=l[0],x=l[1],A=Object(R.useCallback)(function(k){return c===m.Number?"".concat(k,"\u5206"):"".concat(k,"%")},[c]),C=Object(R.useCallback)(function(k){if(c===m.Number){var w=k.replace("\u5206","");return isNaN(parseInt(w,10))?0:w}else{var y=k.replace("%","");return y}},[c]);return Object(R.useEffect)(function(){x(u.type)},[u]),P.a.createElement("div",{style:{display:"inline-block"}},P.a.createElement(F.a,{onChange:function(w){x(w),f({type:w,inputValue:w===m.Number?5:20})},value:c||s,style:{width:100},options:d?[{label:"\u5206\u503C",value:m.Number}]:[{label:"\u767E\u5206\u6BD4",value:m.Percent},{label:"\u5206\u503C",value:m.Number}],disabled:a}),P.a.createElement(B.a,{disabled:a,value:u.inputValue,formatter:A,parser:C,max:c===m.Percent?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:function(w){f({type:c,inputValue:w})}}))};J.b=t},Aocz:function(Be,J,L){Be.exports={flex_box_center:"flex_box_center___7n5J9",flex_space_between:"flex_space_between___1vC-V",flex_box_vertical_center:"flex_box_vertical_center___3gkLb",flex_box_center_end:"flex_box_center_end___26SUk",flex_box_column:"flex_box_column___2iv36",title:"title___ooa1w",menuTabs:"menuTabs___3mPq2",rightMenu:"rightMenu___2Vjbz",shixunDetail:"shixunDetail___2EXcB"}},BPZU:function(Be,J){var L=32,Y=7,B=256;function I(o){for(var u=0;o>=L;)u|=o&1,o>>=1;return o+u}function F(o,u,f,a){var i=u+1;if(i===f)return 1;if(a(o[i++],o[u])<0){for(;i=0;)i++;return i-u}function T(o,u,f){for(f--;u>>1,i(d,o[l])<0?n=l:s=l+1;var c=a-s;switch(c){case 3:o[s+3]=o[s+2];case 2:o[s+2]=o[s+1];case 1:o[s+1]=o[s];break;default:for(;c>0;)o[s+c]=o[s+c-1],c--}o[s]=d}}function P(o,u,f,a,i,d){var s=0,n=0,l=1;if(d(o,u[f+i])>0){for(n=a-i;l0;)s=l,l=(l<<1)+1,l<=0&&(l=n);l>n&&(l=n),s+=i,l+=i}else{for(n=i+1;ln&&(l=n);var c=s;s=i-l,l=i-c}for(s++;s>>1);d(o,u[f+x])>0?s=x+1:l=x}return l}function m(o,u,f,a,i,d){var s=0,n=0,l=1;if(d(o,u[f+i])<0){for(n=i+1;ln&&(l=n);var c=s;s=i-l,l=i-c}else{for(n=a-i;l=0;)s=l,l=(l<<1)+1,l<=0&&(l=n);l>n&&(l=n),s+=i,l+=i}for(s++;s>>1);d(o,u[f+x])<0?l=x:s=x+1}return l}function t(o,u){var f=Y,a=0,i=B,d=0,s,n,l=0;a=o.length,a<2*B&&(i=a>>>1);var c=[];d=a<120?5:a<1542?10:a<119151?19:40,s=[],n=[];function x(h,p){s[l]=h,n[l]=p,l+=1}function A(){for(;l>1;){var h=l-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]n[h+1])break;k(h)}}function C(){for(;l>1;){var h=l-2;h>0&&n[h-1]=Y||H>=Y);if(M)break;S<0&&(S=0),S+=2}if(f=S,f<1&&(f=1),p===1){for(E=0;E<_;E++)o[U+E]=o[j+E];o[U+_]=c[g]}else{if(p===0)throw new Error;for(E=0;E=0;E--)o[z+E]=o[S+E];o[U]=c[j];return}for(var H=f;;){var M=0,V=0,K=!1;do if(u(c[j],o[g])<0){if(o[U--]=o[g--],M++,V=0,--p===0){K=!0;break}}else if(o[U--]=c[j--],V++,M=0,--_===1){K=!0;break}while((M|V)=0;E--)o[z+E]=o[S+E];if(p===0){K=!0;break}}if(o[U--]=c[j--],--_===1){K=!0;break}if(V=_-P(o[g],c,0,_,_-1,u),V!==0){for(U-=V,j-=V,_-=V,z=U+1,S=j+1,E=0;E=Y||V>=Y);if(K)break;H<0&&(H=0),H+=2}if(f=H,f<1&&(f=1),_===1){for(U-=p,g-=p,z=U+1,S=g+1,E=p-1;E>=0;E--)o[z+E]=o[S+E];o[U]=c[j]}else{if(_===0)throw new Error;for(S=U-(_-1),E=0;E<_;E++)o[S+E]=c[E]}}this.mergeRuns=A,this.forceMergeRuns=C,this.pushRun=x}function b(o,u,f,a){f||(f=0),a||(a=o.length);var i=a-f;if(i<2)return;var d=0;if(in&&(l=n),R(o,f,f+l,f+d,u),d=l}s.pushRun(f,d),s.mergeRuns(),i-=d,f+=d}while(i!==0);s.forceMergeRuns()}Be.exports=b},BU3w:function(Be,J,L){"use strict";L.d(J,"a",function(){return R});var Y=L("MNnm"),B="rc-util-key";function I(P){if(P.attachTo)return P.attachTo;var m=document.querySelector("head");return m||document.body}function F(P){var m,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Y.a)())return null;var b=document.createElement("style");if((m=t.csp)===null||m===void 0?void 0:m.nonce){var o;b.nonce=(o=t.csp)===null||o===void 0?void 0:o.nonce}b.innerHTML=P;var u=I(t),f=u.firstChild;return t.prepend&&u.prepend?u.prepend(b):t.prepend&&f?u.insertBefore(b,f):u.appendChild(b),b}var T=new Map;function R(P,m){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=I(t);if(!T.has(b)){var o=F("",t),u=o.parentNode;T.set(b,u),u.removeChild(o)}var f=Array.from(T.get(b).children).find(function(n){return n.tagName==="STYLE"&&n[B]===m});if(f){var a,i;if(((a=t.csp)===null||a===void 0?void 0:a.nonce)&&f.nonce!==((i=t.csp)===null||i===void 0?void 0:i.nonce)){var d;f.nonce=(d=t.csp)===null||d===void 0?void 0:d.nonce}return f.innerHTML!==P&&(f.innerHTML=P),f}var s=F(P,t);return s[B]=m,s}},Bd2K:function(Be,J,L){(function(Y){Y(L("VrN/"),L("osHv"))})(function(Y){Y.defineOption("autoCloseTags",!1,function(t,b,o){if(o!=Y.Init&&o&&t.removeKeyMap("autoCloseTags"),!b)return;var u={name:"autoCloseTags"};(typeof b!="object"||b.whenClosing!==!1)&&(u["'/'"]=function(f){return R(f)}),(typeof b!="object"||b.whenOpening!==!1)&&(u["'>'"]=function(f){return F(f)}),t.addKeyMap(u)});var B=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],I=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function F(t){if(t.getOption("disableInput"))return Y.Pass;for(var b=t.listSelections(),o=[],u=t.getOption("autoCloseTags"),f=0;fa.ch&&(l=l.slice(0,l.length-i.end+a.ch));var C=l.toLowerCase();if(!l||i.type=="string"&&(i.end!=a.ch||!/[\"\']/.test(i.string.charAt(i.string.length-1))||i.string.length==1)||i.type=="tag"&&n.close||i.string.indexOf("/")==a.ch-i.start-1||x&&P(x,C)>-1||m(t,d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(s)||[],l,a,!0))return Y.Pass;var k=typeof u=="object"&&u.emptyTags;if(k&&P(k,l)>-1){o[f]={text:"/>",newPos:Y.Pos(a.line,a.ch+2)};continue}var w=A&&P(A,C)>-1;o[f]={indent:w,text:">"+(w?` -`:"")+"",newPos:w?Y.Pos(a.line+1,0):Y.Pos(a.line,a.ch+1)}}for(var y=typeof u=="object"&&u.dontIndentOnAutoClose,f=b.length-1;f>=0;f--){var h=o[f];t.replaceRange(h.text,b[f].head,b[f].anchor,"+insert");var p=t.listSelections().slice(0);p[f]={head:h.newPos,anchor:h.newPos},t.setSelections(p),!y&&h.indent&&(t.indentLine(h.newPos.line,null,!0),t.indentLine(h.newPos.line+1,null,!0))}}function T(t,b){for(var o=t.listSelections(),u=[],f=b?"/":""&&(x+=">"),u[d]=x}if(t.replaceSelections(u),o=t.listSelections(),!i)for(var d=0;d=0&&b[s]==o;s--)++d;u=i.to;for(var s=1;s0){for(var b=0;b1&&arguments[1]!==void 0?arguments[1]:"",b=[],o=0;o.5?A:x}function b(x,A,C,k,w){var y=x.length;if(w===1)for(var h=0;hw;if(y)x.length=w;else for(var h=k;h=0&&!(H[ie]<=ht);ie--);ie=Math.min(ie,_-2)}else{for(ie=fe;ie<_&&!(H[ie]>ht);ie++);ie=Math.min(ie-1,_-2)}fe=ie,ye=ht;var xe=H[ie+1]-H[ie];if(xe===0)return;if(ve=(ht-H[ie])/xe,v)if(Qe=M[ie],de=M[ie===0?ie:ie-1],Rt=M[ie>_-2?_-1:ie+1],Ee=M[ie>_-3?_-1:ie+2],g)f(de,Qe,Rt,Ee,ve,ve*ve,ve*ve*ve,h(ke,w),S);else{var we;if(j)we=f(de,Qe,Rt,Ee,ve,ve*ve,ve*ve*ve,Me,1),we=d(Me);else{if(U)return t(Qe,Rt,ve);we=a(de,Qe,Rt,Ee,ve,ve*ve,ve*ve*ve)}p(ke,w,we)}else if(g)b(M[ie],M[ie+1],ve,h(ke,w),S);else{var we;if(j)b(M[ie],M[ie+1],ve,Me,1),we=d(Me);else{if(U)return t(M[ie],M[ie+1],ve);we=m(M[ie],M[ie+1],ve)}p(ke,w,we)}},He=new Y({target:x._target,life:z,loop:x._loop,delay:x._delay,onframe:nt,ondestroy:C});return A&&A!=="spline"&&(He.easing=A),He}var l=function(x,A,C,k){this._tracks={},this._target=x,this._loop=A||!1,this._getter=C||R,this._setter=k||P,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};l.prototype={when:function(x,A){var C=this._tracks;for(var k in A){if(!A.hasOwnProperty(k))continue;if(!C[k]){C[k]=[];var w=this._getter(this._target,k);if(w==null)continue;x!==0&&C[k].push({time:0,value:i(w)})}C[k].push({time:x,value:A[k]})}return this},during:function(x){return this._onframeList.push(x),this},pause:function(){for(var x=0;x1&&b&&b.length>1){var u=I(b)/I(o);!isFinite(u)&&(u=1),m.pinchScale=u;var f=F(b);return m.pinchX=f[0],m.pinchY=f[1],{type:"pinch",target:P[0].target,event:m}}}},R=B;Be.exports=R},"Cg/j":function(Be,J,L){"use strict";L.d(J,"b",function(){return Y}),L.d(J,"a",function(){return B}),L.d(J,"c",function(){return F}),L.d(J,"d",function(){return T});var Y;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function P(m){return m[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=P})(Y||(Y={}));const B=F("instantiationService");function I(R,P,m,t){P[Y.DI_TARGET]===P?P[Y.DI_DEPENDENCIES].push({id:R,index:m,optional:t}):(P[Y.DI_DEPENDENCIES]=[{id:R,index:m,optional:t}],P[Y.DI_TARGET]=P)}function F(R){if(Y.serviceIds.has(R))return Y.serviceIds.get(R);const P=function(m,t,b){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I(P,m,b,!1)};return P.toString=()=>R,Y.serviceIds.set(R,P),P}function T(R){return function(P,m,t){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");I(R,P,t,!0)}}},DBLp:function(Be,J){function L(){}L.prototype={diff:function(T,R,P){P||(P=function(l,c){return l===c}),this.equals=P;var m=this;T=T.slice(),R=R.slice();var t=R.length,b=T.length,o=1,u=t+b,f=[{newPos:-1,components:[]}],a=this.extractCommon(f[0],R,T,0);if(f[0].newPos+1>=t&&a+1>=b){for(var i=[],d=0;d=t&&C+1>=b)return Y(m,c.components,R,T);f[l]=c}o++}for(;o<=u;){var n=s();if(n)return n}},pushComponent:function(T,R,P){var m=T[T.length-1];m&&m.added===R&&m.removed===P?T[T.length-1]={count:m.count+1,added:R,removed:P}:T.push({count:1,added:R,removed:P})},extractCommon:function(T,R,P,m){for(var t=R.length,b=P.length,o=T.newPos,u=o-m,f=0;o+1F||u<-F}var R=function(u){u=u||{},u.position||(this.position=[0,0]),u.rotation==null&&(this.rotation=0),u.scale||(this.scale=[1,1]),this.origin=this.origin||null},P=R.prototype;P.transform=null,P.needLocalTransform=function(){return T(this.rotation)||T(this.position[0])||T(this.position[1])||T(this.scale[0]-1)||T(this.scale[1]-1)};var m=[];P.updateTransform=function(){var u=this.parent,f=u&&u.transform,a=this.needLocalTransform(),i=this.transform;if(!(a||f)){i&&I(i);return}i=i||Y.create(),a?this.getLocalTransform(i):I(i),f&&(a?Y.mul(i,u.transform,i):Y.copy(i,u.transform)),this.transform=i;var d=this.globalScaleRatio;if(d!=null&&d!==1){this.getGlobalScale(m);var s=m[0]<0?-1:1,n=m[1]<0?-1:1,l=((m[0]-s)*d+s)/m[0]||0,c=((m[1]-n)*d+n)/m[1]||0;i[0]*=l,i[1]*=l,i[2]*=c,i[3]*=c}this.invTransform=this.invTransform||Y.create(),Y.invert(this.invTransform,i)},P.getLocalTransform=function(u){return R.getLocalTransform(this,u)},P.setTransform=function(u){var f=this.transform,a=u.dpr||1;f?u.setTransform(a*f[0],a*f[1],a*f[2],a*f[3],a*f[4],a*f[5]):u.setTransform(a,0,0,a,0,0)},P.restoreTransform=function(u){var f=u.dpr||1;u.setTransform(f,0,0,f,0,0)};var t=[],b=Y.create();P.setLocalTransform=function(u){if(!u)return;var f=u[0]*u[0]+u[1]*u[1],a=u[2]*u[2]+u[3]*u[3],i=this.position,d=this.scale;T(f-1)&&(f=Math.sqrt(f)),T(a-1)&&(a=Math.sqrt(a)),u[0]<0&&(f=-f),u[3]<0&&(a=-a),i[0]=u[4],i[1]=u[5],d[0]=f,d[1]=a,this.rotation=Math.atan2(-u[1]/a,u[0]/f)},P.decomposeTransform=function(){if(!this.transform)return;var u=this.parent,f=this.transform;u&&u.transform&&(Y.mul(t,u.invTransform,f),f=t);var a=this.origin;a&&(a[0]||a[1])&&(b[4]=a[0],b[5]=a[1],Y.mul(t,f,b),t[4]-=a[0],t[5]-=a[1],f=t),this.setLocalTransform(f)},P.getGlobalScale=function(u){var f=this.transform;return u=u||[],f?(u[0]=Math.sqrt(f[0]*f[0]+f[1]*f[1]),u[1]=Math.sqrt(f[2]*f[2]+f[3]*f[3]),f[0]<0&&(u[0]=-u[0]),f[3]<0&&(u[1]=-u[1]),u):(u[0]=1,u[1]=1,u)},P.transformCoordToLocal=function(u,f){var a=[u,f],i=this.invTransform;return i&&B.applyTransform(a,a,i),a},P.transformCoordToGlobal=function(u,f){var a=[u,f],i=this.transform;return i&&B.applyTransform(a,a,i),a},R.getLocalTransform=function(u,f){f=f||[],I(f);var a=u.origin,i=u.scale||[1,1],d=u.rotation||0,s=u.position||[0,0];return a&&(f[4]-=a[0],f[5]-=a[1]),Y.scale(f,f,i),d&&Y.rotate(f,f,d),a&&(f[4]+=a[0],f[5]+=a[1]),f[4]+=s[0],f[5]+=s[1],f};var o=R;Be.exports=o},Dagg:function(Be,J,L){var Y=L("Gev7"),B=L("mFDi"),I=L("bYtY"),F=L("Xnb7");function T(P){Y.call(this,P)}T.prototype={constructor:T,type:"image",brush:function(P,m){var t=this.style,b=t.image;t.bind(P,this,m);var o=this._image=F.createOrUpdateImage(b,this._image,this,this.onload);if(!o||!F.isImageReady(o))return;var u=t.x||0,f=t.y||0,a=t.width,i=t.height,d=o.width/o.height;if(a==null&&i!=null?a=i*d:i==null&&a!=null?i=a/d:a==null&&i==null&&(a=o.width,i=o.height),this.setTransform(P),t.sWidth&&t.sHeight){var s=t.sx||0,n=t.sy||0;P.drawImage(o,s,n,t.sWidth,t.sHeight,u,f,a,i)}else if(t.sx&&t.sy){var s=t.sx,n=t.sy,l=a-s,c=i-n;P.drawImage(o,s,n,l,c,u,f,a,i)}else P.drawImage(o,u,f,a,i);t.text!=null&&(this.restoreTransform(P),this.drawRectText(P,this.getBoundingRect()))},getBoundingRect:function(){var P=this.style;return this._rect||(this._rect=new B(P.x||0,P.y||0,P.width||0,P.height||0)),this._rect}},I.inherits(T,Y);var R=T;Be.exports=R},DlQD:function(Be,J,L){(function(Y,B){Be.exports=B()})(this,function(){"use strict";function Y(Ne,Te){for(var Oe=0;OeNe.length)&&(Te=Ne.length);for(var Oe=0,ae=new Array(Te);Oe=Ne.length?{done:!0}:{done:!1,value:Ne[ae++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Oe=Ne[Symbol.iterator](),Oe.next.bind(Oe)}function R(Ne,Te){return Te={exports:{}},Ne(Te,Te.exports),Te.exports}var P=R(function(Ne){function Te(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Oe(ae){Ne.exports.defaults=ae}Ne.exports={defaults:Te(),getDefaults:Te,changeDefaults:Oe}}),m=P.defaults,t=P.getDefaults,b=P.changeDefaults,o=/[&<>"']/,u=/[&<>"']/g,f=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function(Te){return i[Te]};function s(Ne,Te){if(Te){if(o.test(Ne))return Ne.replace(u,d)}else if(f.test(Ne))return Ne.replace(a,d);return Ne}var n=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function l(Ne){return Ne.replace(n,function(Te,Oe){return Oe=Oe.toLowerCase(),Oe==="colon"?":":Oe.charAt(0)==="#"?Oe.charAt(1)==="x"?String.fromCharCode(parseInt(Oe.substring(2),16)):String.fromCharCode(+Oe.substring(1)):""})}var c=/(^|[^\[])\^/g;function x(Ne,Te){Ne=Ne.source||Ne,Te=Te||"";var Oe={replace:function(le,he){return he=he.source||he,he=he.replace(c,"$1"),Ne=Ne.replace(le,he),Oe},getRegex:function(){return new RegExp(Ne,Te)}};return Oe}var A=/[^\w:]/g,C=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function k(Ne,Te,Oe){if(Ne){var ae;try{ae=decodeURIComponent(l(Oe)).replace(A,"").toLowerCase()}catch(le){return null}if(ae.indexOf("javascript:")===0||ae.indexOf("vbscript:")===0||ae.indexOf("data:")===0)return null}Te&&!C.test(Oe)&&(Oe=v(Te,Oe));try{Oe=encodeURI(Oe).replace(/%25/g,"%")}catch(le){return null}return Oe}var w={},y=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,p=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(Ne,Te){w[" "+Ne]||(y.test(Ne)?w[" "+Ne]=Ne+"/":w[" "+Ne]=j(Ne,"/",!0)),Ne=w[" "+Ne];var Oe=Ne.indexOf(":")===-1;return Te.substring(0,2)==="//"?Oe?Te:Ne.replace(h,"$1")+Te:Te.charAt(0)==="/"?Oe?Te:Ne.replace(p,"$1")+Te:Ne+Te}var _={exec:function(){}};function E(Ne){for(var Te=1,Oe,ae;Te=0&&Se[Et]==="\\";)ze=!ze;return ze?"|":" |"}),ae=Oe.split(/ \|/),le=0;if(ae.length>Te)ae.splice(Te);else for(;ae.length",newPos:w?Y.Pos(a.line+1,0):Y.Pos(a.line,a.ch+1)}}for(var y=typeof u=="object"&&u.dontIndentOnAutoClose,f=b.length-1;f>=0;f--){var h=o[f];t.replaceRange(h.text,b[f].head,b[f].anchor,"+insert");var p=t.listSelections().slice(0);p[f]={head:h.newPos,anchor:h.newPos},t.setSelections(p),!y&&h.indent&&(t.indentLine(h.newPos.line,null,!0),t.indentLine(h.newPos.line+1,null,!0))}}function T(t,b){for(var o=t.listSelections(),u=[],f=b?"/":""&&(x+=">"),u[d]=x}if(t.replaceSelections(u),o=t.listSelections(),!i)for(var d=0;d=0&&b[s]==o;s--)++d;u=i.to;for(var s=1;s0){for(var b=0;b1&&arguments[1]!==void 0?arguments[1]:"",b=[],o=0;o.5?A:x}function b(x,A,C,k,w){var y=x.length;if(w===1)for(var h=0;hw;if(y)x.length=w;else for(var h=k;h=0&&!(H[ie]<=ht);ie--);ie=Math.min(ie,_-2)}else{for(ie=fe;ie<_&&!(H[ie]>ht);ie++);ie=Math.min(ie-1,_-2)}fe=ie,ye=ht;var xe=H[ie+1]-H[ie];if(xe===0)return;if(ve=(ht-H[ie])/xe,v)if(Je=M[ie],de=M[ie===0?ie:ie-1],Rt=M[ie>_-2?_-1:ie+1],Ee=M[ie>_-3?_-1:ie+2],g)f(de,Je,Rt,Ee,ve,ve*ve,ve*ve*ve,h(ke,w),S);else{var we;if(j)we=f(de,Je,Rt,Ee,ve,ve*ve,ve*ve*ve,Me,1),we=d(Me);else{if(U)return t(Je,Rt,ve);we=a(de,Je,Rt,Ee,ve,ve*ve,ve*ve*ve)}p(ke,w,we)}else if(g)b(M[ie],M[ie+1],ve,h(ke,w),S);else{var we;if(j)b(M[ie],M[ie+1],ve,Me,1),we=d(Me);else{if(U)return t(M[ie],M[ie+1],ve);we=m(M[ie],M[ie+1],ve)}p(ke,w,we)}},He=new Y({target:x._target,life:z,loop:x._loop,delay:x._delay,onframe:rt,ondestroy:C});return A&&A!=="spline"&&(He.easing=A),He}var l=function(x,A,C,k){this._tracks={},this._target=x,this._loop=A||!1,this._getter=C||R,this._setter=k||P,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};l.prototype={when:function(x,A){var C=this._tracks;for(var k in A){if(!A.hasOwnProperty(k))continue;if(!C[k]){C[k]=[];var w=this._getter(this._target,k);if(w==null)continue;x!==0&&C[k].push({time:0,value:i(w)})}C[k].push({time:x,value:A[k]})}return this},during:function(x){return this._onframeList.push(x),this},pause:function(){for(var x=0;x1&&b&&b.length>1){var u=I(b)/I(o);!isFinite(u)&&(u=1),m.pinchScale=u;var f=F(b);return m.pinchX=f[0],m.pinchY=f[1],{type:"pinch",target:P[0].target,event:m}}}},R=B;Be.exports=R},"Cg/j":function(Be,J,L){"use strict";L.d(J,"b",function(){return Y}),L.d(J,"a",function(){return B}),L.d(J,"c",function(){return F}),L.d(J,"d",function(){return T});var Y;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function P(m){return m[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=P})(Y||(Y={}));const B=F("instantiationService");function I(R,P,m,t){P[Y.DI_TARGET]===P?P[Y.DI_DEPENDENCIES].push({id:R,index:m,optional:t}):(P[Y.DI_DEPENDENCIES]=[{id:R,index:m,optional:t}],P[Y.DI_TARGET]=P)}function F(R){if(Y.serviceIds.has(R))return Y.serviceIds.get(R);const P=function(m,t,b){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I(P,m,b,!1)};return P.toString=()=>R,Y.serviceIds.set(R,P),P}function T(R){return function(P,m,t){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");I(R,P,t,!0)}}},DBLp:function(Be,J){function L(){}L.prototype={diff:function(T,R,P){P||(P=function(l,c){return l===c}),this.equals=P;var m=this;T=T.slice(),R=R.slice();var t=R.length,b=T.length,o=1,u=t+b,f=[{newPos:-1,components:[]}],a=this.extractCommon(f[0],R,T,0);if(f[0].newPos+1>=t&&a+1>=b){for(var i=[],d=0;d=t&&C+1>=b)return Y(m,c.components,R,T);f[l]=c}o++}for(;o<=u;){var n=s();if(n)return n}},pushComponent:function(T,R,P){var m=T[T.length-1];m&&m.added===R&&m.removed===P?T[T.length-1]={count:m.count+1,added:R,removed:P}:T.push({count:1,added:R,removed:P})},extractCommon:function(T,R,P,m){for(var t=R.length,b=P.length,o=T.newPos,u=o-m,f=0;o+1F||u<-F}var R=function(u){u=u||{},u.position||(this.position=[0,0]),u.rotation==null&&(this.rotation=0),u.scale||(this.scale=[1,1]),this.origin=this.origin||null},P=R.prototype;P.transform=null,P.needLocalTransform=function(){return T(this.rotation)||T(this.position[0])||T(this.position[1])||T(this.scale[0]-1)||T(this.scale[1]-1)};var m=[];P.updateTransform=function(){var u=this.parent,f=u&&u.transform,a=this.needLocalTransform(),i=this.transform;if(!(a||f)){i&&I(i);return}i=i||Y.create(),a?this.getLocalTransform(i):I(i),f&&(a?Y.mul(i,u.transform,i):Y.copy(i,u.transform)),this.transform=i;var d=this.globalScaleRatio;if(d!=null&&d!==1){this.getGlobalScale(m);var s=m[0]<0?-1:1,n=m[1]<0?-1:1,l=((m[0]-s)*d+s)/m[0]||0,c=((m[1]-n)*d+n)/m[1]||0;i[0]*=l,i[1]*=l,i[2]*=c,i[3]*=c}this.invTransform=this.invTransform||Y.create(),Y.invert(this.invTransform,i)},P.getLocalTransform=function(u){return R.getLocalTransform(this,u)},P.setTransform=function(u){var f=this.transform,a=u.dpr||1;f?u.setTransform(a*f[0],a*f[1],a*f[2],a*f[3],a*f[4],a*f[5]):u.setTransform(a,0,0,a,0,0)},P.restoreTransform=function(u){var f=u.dpr||1;u.setTransform(f,0,0,f,0,0)};var t=[],b=Y.create();P.setLocalTransform=function(u){if(!u)return;var f=u[0]*u[0]+u[1]*u[1],a=u[2]*u[2]+u[3]*u[3],i=this.position,d=this.scale;T(f-1)&&(f=Math.sqrt(f)),T(a-1)&&(a=Math.sqrt(a)),u[0]<0&&(f=-f),u[3]<0&&(a=-a),i[0]=u[4],i[1]=u[5],d[0]=f,d[1]=a,this.rotation=Math.atan2(-u[1]/a,u[0]/f)},P.decomposeTransform=function(){if(!this.transform)return;var u=this.parent,f=this.transform;u&&u.transform&&(Y.mul(t,u.invTransform,f),f=t);var a=this.origin;a&&(a[0]||a[1])&&(b[4]=a[0],b[5]=a[1],Y.mul(t,f,b),t[4]-=a[0],t[5]-=a[1],f=t),this.setLocalTransform(f)},P.getGlobalScale=function(u){var f=this.transform;return u=u||[],f?(u[0]=Math.sqrt(f[0]*f[0]+f[1]*f[1]),u[1]=Math.sqrt(f[2]*f[2]+f[3]*f[3]),f[0]<0&&(u[0]=-u[0]),f[3]<0&&(u[1]=-u[1]),u):(u[0]=1,u[1]=1,u)},P.transformCoordToLocal=function(u,f){var a=[u,f],i=this.invTransform;return i&&B.applyTransform(a,a,i),a},P.transformCoordToGlobal=function(u,f){var a=[u,f],i=this.transform;return i&&B.applyTransform(a,a,i),a},R.getLocalTransform=function(u,f){f=f||[],I(f);var a=u.origin,i=u.scale||[1,1],d=u.rotation||0,s=u.position||[0,0];return a&&(f[4]-=a[0],f[5]-=a[1]),Y.scale(f,f,i),d&&Y.rotate(f,f,d),a&&(f[4]+=a[0],f[5]+=a[1]),f[4]+=s[0],f[5]+=s[1],f};var o=R;Be.exports=o},Dagg:function(Be,J,L){var Y=L("Gev7"),B=L("mFDi"),I=L("bYtY"),F=L("Xnb7");function T(P){Y.call(this,P)}T.prototype={constructor:T,type:"image",brush:function(P,m){var t=this.style,b=t.image;t.bind(P,this,m);var o=this._image=F.createOrUpdateImage(b,this._image,this,this.onload);if(!o||!F.isImageReady(o))return;var u=t.x||0,f=t.y||0,a=t.width,i=t.height,d=o.width/o.height;if(a==null&&i!=null?a=i*d:i==null&&a!=null?i=a/d:a==null&&i==null&&(a=o.width,i=o.height),this.setTransform(P),t.sWidth&&t.sHeight){var s=t.sx||0,n=t.sy||0;P.drawImage(o,s,n,t.sWidth,t.sHeight,u,f,a,i)}else if(t.sx&&t.sy){var s=t.sx,n=t.sy,l=a-s,c=i-n;P.drawImage(o,s,n,l,c,u,f,a,i)}else P.drawImage(o,u,f,a,i);t.text!=null&&(this.restoreTransform(P),this.drawRectText(P,this.getBoundingRect()))},getBoundingRect:function(){var P=this.style;return this._rect||(this._rect=new B(P.x||0,P.y||0,P.width||0,P.height||0)),this._rect}},I.inherits(T,Y);var R=T;Be.exports=R},DlQD:function(Be,J,L){(function(Y,B){Be.exports=B()})(this,function(){"use strict";function Y(Ne,Te){for(var Oe=0;OeNe.length)&&(Te=Ne.length);for(var Oe=0,ae=new Array(Te);Oe=Ne.length?{done:!0}:{done:!1,value:Ne[ae++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Oe=Ne[Symbol.iterator](),Oe.next.bind(Oe)}function R(Ne,Te){return Te={exports:{}},Ne(Te,Te.exports),Te.exports}var P=R(function(Ne){function Te(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Oe(ae){Ne.exports.defaults=ae}Ne.exports={defaults:Te(),getDefaults:Te,changeDefaults:Oe}}),m=P.defaults,t=P.getDefaults,b=P.changeDefaults,o=/[&<>"']/,u=/[&<>"']/g,f=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function(Te){return i[Te]};function s(Ne,Te){if(Te){if(o.test(Ne))return Ne.replace(u,d)}else if(f.test(Ne))return Ne.replace(a,d);return Ne}var n=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function l(Ne){return Ne.replace(n,function(Te,Oe){return Oe=Oe.toLowerCase(),Oe==="colon"?":":Oe.charAt(0)==="#"?Oe.charAt(1)==="x"?String.fromCharCode(parseInt(Oe.substring(2),16)):String.fromCharCode(+Oe.substring(1)):""})}var c=/(^|[^\[])\^/g;function x(Ne,Te){Ne=Ne.source||Ne,Te=Te||"";var Oe={replace:function(le,he){return he=he.source||he,he=he.replace(c,"$1"),Ne=Ne.replace(le,he),Oe},getRegex:function(){return new RegExp(Ne,Te)}};return Oe}var A=/[^\w:]/g,C=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function k(Ne,Te,Oe){if(Ne){var ae;try{ae=decodeURIComponent(l(Oe)).replace(A,"").toLowerCase()}catch(le){return null}if(ae.indexOf("javascript:")===0||ae.indexOf("vbscript:")===0||ae.indexOf("data:")===0)return null}Te&&!C.test(Oe)&&(Oe=v(Te,Oe));try{Oe=encodeURI(Oe).replace(/%25/g,"%")}catch(le){return null}return Oe}var w={},y=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,p=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(Ne,Te){w[" "+Ne]||(y.test(Ne)?w[" "+Ne]=Ne+"/":w[" "+Ne]=j(Ne,"/",!0)),Ne=w[" "+Ne];var Oe=Ne.indexOf(":")===-1;return Te.substring(0,2)==="//"?Oe?Te:Ne.replace(h,"$1")+Te:Te.charAt(0)==="/"?Oe?Te:Ne.replace(p,"$1")+Te:Ne+Te}var _={exec:function(){}};function E(Ne){for(var Te=1,Oe,ae;Te=0&&Se[xt]==="\\";)ze=!ze;return ze?"|":" |"}),ae=Oe.split(/ \|/),le=0;if(ae.length>Te)ae.splice(Te);else for(;ae.length=ae.length?le.slice(ae.length):le}).join(` `)}var oe=function(){function Ne(Oe){this.options=Oe||H}var Te=Ne.prototype;return Te.space=function(ae){var le=this.rules.block.newline.exec(ae);if(le)return le[0].length>1?{type:"space",raw:le[0]}:{raw:` `}},Te.code=function(ae,le){var he=this.rules.block.code.exec(ae);if(he){var _e=le[le.length-1];if(_e&&_e.type==="paragraph")return{raw:he[0],text:he[0].trimRight()};var Se=he[0].replace(/^ {4}/gm,"");return{type:"code",raw:he[0],codeBlockStyle:"indented",text:this.options.pedantic?Se:M(Se,` `)}}},Te.fences=function(ae){var le=this.rules.block.fences.exec(ae);if(le){var he=le[0],_e=me(he,le[3]||"");return{type:"code",raw:he,lang:le[2]?le[2].trim():le[2],text:_e}}},Te.heading=function(ae){var le=this.rules.block.heading.exec(ae);if(le)return{type:"heading",raw:le[0],depth:le[1].length,text:le[2]}},Te.nptable=function(ae){var le=this.rules.block.nptable.exec(ae);if(le){var he={type:"table",header:V(le[1].replace(/^ *| *\| *$/g,"")),align:le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:le[3]?le[3].replace(/\n$/,"").split(` -`):[],raw:le[0]};if(he.header.length===he.align.length){var _e=he.align.length,Se;for(Se=0;Se<_e;Se++)/^ *-+: *$/.test(he.align[Se])?he.align[Se]="right":/^ *:-+: *$/.test(he.align[Se])?he.align[Se]="center":/^ *:-+ *$/.test(he.align[Se])?he.align[Se]="left":he.align[Se]=null;for(_e=he.cells.length,Se=0;Se<_e;Se++)he.cells[Se]=V(he.cells[Se],he.header.length);return he}}},Te.hr=function(ae){var le=this.rules.block.hr.exec(ae);if(le)return{type:"hr",raw:le[0]}},Te.blockquote=function(ae){var le=this.rules.block.blockquote.exec(ae);if(le){var he=le[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:le[0],text:he}}},Te.list=function(ae){var le=this.rules.block.list.exec(ae);if(le){for(var he=le[0],_e=le[2],Se=_e.length>1,ze=_e[_e.length-1]===")",Et={type:"list",raw:he,ordered:Se,start:Se?+_e.slice(0,-1):"",loose:!1,items:[]},$t=le[0].match(this.rules.block.item),on=!1,gt,Kt,Ot,At,ft,be,Fe,Nt=$t.length,yt=0;yt1||this.options.smartLists&&Ot!==_e)&&(At=$t.slice(yt+1).join(` -`),Et.raw=Et.raw.substring(0,Et.raw.length-At.length),yt=Nt-1)),ft=on||/\n\n(?!\s*$)/.test(gt),yt!==Nt-1&&(on=gt.charAt(gt.length-1)===` -`,ft||(ft=on)),ft&&(Et.loose=!0),be=/^\[[ xX]\] /.test(gt),Fe=void 0,be&&(Fe=gt[1]!==" ",gt=gt.replace(/^\[[ xX]\] +/,"")),Et.items.push({type:"list_item",raw:he,task:be,checked:Fe,loose:ft,text:gt});return Et}},Te.html=function(ae){var le=this.rules.block.html.exec(ae);if(le)return{type:this.options.sanitize?"paragraph":"html",raw:le[0],pre:!this.options.sanitizer&&(le[1]==="pre"||le[1]==="script"||le[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(le[0]):K(le[0]):le[0]}},Te.def=function(ae){var le=this.rules.block.def.exec(ae);if(le){le[3]&&(le[3]=le[3].substring(1,le[3].length-1));var he=le[1].toLowerCase().replace(/\s+/g," ");return{tag:he,raw:le[0],href:le[2],title:le[3]}}},Te.table=function(ae){var le=this.rules.block.table.exec(ae);if(le){var he={type:"table",header:V(le[1].replace(/^ *| *\| *$/g,"")),align:le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:le[3]?le[3].replace(/\n$/,"").split(` +`):[],raw:le[0]};if(he.header.length===he.align.length){var _e=he.align.length,Se;for(Se=0;Se<_e;Se++)/^ *-+: *$/.test(he.align[Se])?he.align[Se]="right":/^ *:-+: *$/.test(he.align[Se])?he.align[Se]="center":/^ *:-+ *$/.test(he.align[Se])?he.align[Se]="left":he.align[Se]=null;for(_e=he.cells.length,Se=0;Se<_e;Se++)he.cells[Se]=V(he.cells[Se],he.header.length);return he}}},Te.hr=function(ae){var le=this.rules.block.hr.exec(ae);if(le)return{type:"hr",raw:le[0]}},Te.blockquote=function(ae){var le=this.rules.block.blockquote.exec(ae);if(le){var he=le[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:le[0],text:he}}},Te.list=function(ae){var le=this.rules.block.list.exec(ae);if(le){for(var he=le[0],_e=le[2],Se=_e.length>1,ze=_e[_e.length-1]===")",xt={type:"list",raw:he,ordered:Se,start:Se?+_e.slice(0,-1):"",loose:!1,items:[]},Qt=le[0].match(this.rules.block.item),sn=!1,gt,zt,Ot,At,ft,be,Fe,Nt=Qt.length,bt=0;bt1||this.options.smartLists&&Ot!==_e)&&(At=Qt.slice(bt+1).join(` +`),xt.raw=xt.raw.substring(0,xt.raw.length-At.length),bt=Nt-1)),ft=sn||/\n\n(?!\s*$)/.test(gt),bt!==Nt-1&&(sn=gt.charAt(gt.length-1)===` +`,ft||(ft=sn)),ft&&(xt.loose=!0),be=/^\[[ xX]\] /.test(gt),Fe=void 0,be&&(Fe=gt[1]!==" ",gt=gt.replace(/^\[[ xX]\] +/,"")),xt.items.push({type:"list_item",raw:he,task:be,checked:Fe,loose:ft,text:gt});return xt}},Te.html=function(ae){var le=this.rules.block.html.exec(ae);if(le)return{type:this.options.sanitize?"paragraph":"html",raw:le[0],pre:!this.options.sanitizer&&(le[1]==="pre"||le[1]==="script"||le[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(le[0]):K(le[0]):le[0]}},Te.def=function(ae){var le=this.rules.block.def.exec(ae);if(le){le[3]&&(le[3]=le[3].substring(1,le[3].length-1));var he=le[1].toLowerCase().replace(/\s+/g," ");return{tag:he,raw:le[0],href:le[2],title:le[3]}}},Te.table=function(ae){var le=this.rules.block.table.exec(ae);if(le){var he={type:"table",header:V(le[1].replace(/^ *| *\| *$/g,"")),align:le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:le[3]?le[3].replace(/\n$/,"").split(` `):[]};if(he.header.length===he.align.length){he.raw=le[0];var _e=he.align.length,Se;for(Se=0;Se<_e;Se++)/^ *-+: *$/.test(he.align[Se])?he.align[Se]="right":/^ *:-+: *$/.test(he.align[Se])?he.align[Se]="center":/^ *:-+ *$/.test(he.align[Se])?he.align[Se]="left":he.align[Se]=null;for(_e=he.cells.length,Se=0;Se<_e;Se++)he.cells[Se]=V(he.cells[Se].replace(/^ *\| *| *\| *$/g,""),he.header.length);return he}}},Te.lheading=function(ae){var le=this.rules.block.lheading.exec(ae);if(le)return{type:"heading",raw:le[0],depth:le[2].charAt(0)==="="?1:2,text:le[1]}},Te.paragraph=function(ae){var le=this.rules.block.paragraph.exec(ae);if(le)return{type:"paragraph",raw:le[0],text:le[1].charAt(le[1].length-1)===` -`?le[1].slice(0,-1):le[1]}},Te.text=function(ae,le){var he=this.rules.block.text.exec(ae);if(he){var _e=le[le.length-1];return _e&&_e.type==="text"?{raw:he[0],text:he[0]}:{type:"text",raw:he[0],text:he[0]}}},Te.escape=function(ae){var le=this.rules.inline.escape.exec(ae);if(le)return{type:"escape",raw:le[0],text:K(le[1])}},Te.tag=function(ae,le,he){var _e=this.rules.inline.tag.exec(ae);if(_e)return!le&&/^/i.test(_e[0])&&(le=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(_e[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(_e[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:_e[0],inLink:le,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):K(_e[0]):_e[0]}},Te.link=function(ae){var le=this.rules.inline.link.exec(ae);if(le){var he=$(le[2],"()");if(he>-1){var _e=le[0].indexOf("!")===0?5:4,Se=_e+le[1].length+he;le[2]=le[2].substring(0,he),le[0]=le[0].substring(0,Se).trim(),le[3]=""}var ze=le[2],Et="";if(this.options.pedantic){var $t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ze);$t?(ze=$t[1],Et=$t[3]):Et=""}else Et=le[3]?le[3].slice(1,-1):"";ze=ze.trim().replace(/^<([\s\S]*)>$/,"$1");var on=Z(le,{href:ze&&ze.replace(this.rules.inline._escapes,"$1"),title:Et&&Et.replace(this.rules.inline._escapes,"$1")},le[0]);return on}},Te.reflink=function(ae,le){var he;if((he=this.rules.inline.reflink.exec(ae))||(he=this.rules.inline.nolink.exec(ae))){var _e=(he[2]||he[1]).replace(/\s+/g," ");if(_e=le[_e.toLowerCase()],!_e||!_e.href){var Se=he[0].charAt(0);return{type:"text",raw:Se,text:Se}}var ze=Z(he,_e,he[0]);return ze}},Te.strong=function(ae,le,he){he===void 0&&(he="");var _e=this.rules.inline.strong.start.exec(ae);if(_e&&(!_e[1]||_e[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){le=le.slice(-1*ae.length);var Se=_e[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Se.lastIndex=0;for(var ze;(_e=Se.exec(le))!=null;)if(ze=this.rules.inline.strong.middle.exec(le.slice(0,_e.index+3)),ze)return{type:"strong",raw:ae.slice(0,ze[0].length),text:ae.slice(2,ze[0].length-2)}}},Te.em=function(ae,le,he){he===void 0&&(he="");var _e=this.rules.inline.em.start.exec(ae);if(_e&&(!_e[1]||_e[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){le=le.slice(-1*ae.length);var Se=_e[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Se.lastIndex=0;for(var ze;(_e=Se.exec(le))!=null;)if(ze=this.rules.inline.em.middle.exec(le.slice(0,_e.index+2)),ze)return{type:"em",raw:ae.slice(0,ze[0].length),text:ae.slice(1,ze[0].length-1)}}},Te.codespan=function(ae){var le=this.rules.inline.code.exec(ae);if(le){var he=le[2].replace(/\n/g," "),_e=/[^ ]/.test(he),Se=he.startsWith(" ")&&he.endsWith(" ");return _e&&Se&&(he=he.substring(1,he.length-1)),he=K(he,!0),{type:"codespan",raw:le[0],text:he}}},Te.br=function(ae){var le=this.rules.inline.br.exec(ae);if(le)return{type:"br",raw:le[0]}},Te.del=function(ae){var le=this.rules.inline.del.exec(ae);if(le)return{type:"del",raw:le[0],text:le[1]}},Te.autolink=function(ae,le){var he=this.rules.inline.autolink.exec(ae);if(he){var _e,Se;return he[2]==="@"?(_e=K(this.options.mangle?le(he[1]):he[1]),Se="mailto:"+_e):(_e=K(he[1]),Se=_e),{type:"link",raw:he[0],text:_e,href:Se,tokens:[{type:"text",raw:_e,text:_e}]}}},Te.url=function(ae,le){var he;if(he=this.rules.inline.url.exec(ae)){var _e,Se;if(he[2]==="@")_e=K(this.options.mangle?le(he[0]):he[0]),Se="mailto:"+_e;else{var ze;do ze=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(ze!==he[0]);_e=K(he[0]),he[1]==="www."?Se="http://"+_e:Se=_e}return{type:"link",raw:he[0],text:_e,href:Se,tokens:[{type:"text",raw:_e,text:_e}]}}},Te.inlineText=function(ae,le,he){var _e=this.rules.inline.text.exec(ae);if(_e){var Se;return le?Se=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):K(_e[0]):_e[0]:Se=K(this.options.smartypants?he(_e[0]):_e[0]),{type:"text",raw:_e[0],text:Se}}},Ne}(),fe=z.noopTest,ye=z.edit,Ie=z.merge,ve={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:fe,table:fe,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ve._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ve._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ve.def=ye(ve.def).replace("label",ve._label).replace("title",ve._title).getRegex(),ve.bullet=/(?:[*+-]|\d{1,9}[.)])/,ve.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ve.item=ye(ve.item,"gm").replace(/bull/g,ve.bullet).getRegex(),ve.list=ye(ve.list).replace(/bull/g,ve.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ve.def.source+")").getRegex(),ve._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ve._comment=//,ve.html=ye(ve.html,"i").replace("comment",ve._comment).replace("tag",ve._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ve.paragraph=ye(ve._paragraph).replace("hr",ve.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ve._tag).getRegex(),ve.blockquote=ye(ve.blockquote).replace("paragraph",ve.paragraph).getRegex(),ve.normal=Ie({},ve),ve.gfm=Ie({},ve.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ve.gfm.nptable=ye(ve.gfm.nptable).replace("hr",ve.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ve._tag).getRegex(),ve.gfm.table=ye(ve.gfm.table).replace("hr",ve.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ve._tag).getRegex(),ve.pedantic=Ie({},ve.normal,{html:ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:fe,paragraph:ye(ve.normal._paragraph).replace("hr",ve.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",ve.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var de={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:fe,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:fe,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",de.punctuation=ye(de.punctuation).replace(/punctuation/g,de._punctuation).getRegex(),de._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",de._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",de.em.start=ye(de.em.start).replace(/punctuation/g,de._punctuation).getRegex(),de.em.middle=ye(de.em.middle).replace(/punctuation/g,de._punctuation).replace(/overlapSkip/g,de._overlapSkip).getRegex(),de.em.endAst=ye(de.em.endAst,"g").replace(/punctuation/g,de._punctuation).getRegex(),de.em.endUnd=ye(de.em.endUnd,"g").replace(/punctuation/g,de._punctuation).getRegex(),de.strong.start=ye(de.strong.start).replace(/punctuation/g,de._punctuation).getRegex(),de.strong.middle=ye(de.strong.middle).replace(/punctuation/g,de._punctuation).replace(/blockSkip/g,de._blockSkip).getRegex(),de.strong.endAst=ye(de.strong.endAst,"g").replace(/punctuation/g,de._punctuation).getRegex(),de.strong.endUnd=ye(de.strong.endUnd,"g").replace(/punctuation/g,de._punctuation).getRegex(),de.blockSkip=ye(de._blockSkip,"g").getRegex(),de.overlapSkip=ye(de._overlapSkip,"g").getRegex(),de._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,de._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,de._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,de.autolink=ye(de.autolink).replace("scheme",de._scheme).replace("email",de._email).getRegex(),de._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,de.tag=ye(de.tag).replace("comment",ve._comment).replace("attribute",de._attribute).getRegex(),de._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,de._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,de._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,de.link=ye(de.link).replace("label",de._label).replace("href",de._href).replace("title",de._title).getRegex(),de.reflink=ye(de.reflink).replace("label",de._label).getRegex(),de.reflinkSearch=ye(de.reflinkSearch,"g").replace("reflink",de.reflink).replace("nolink",de.nolink).getRegex(),de.normal=Ie({},de),de.pedantic=Ie({},de.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ye(/^!?\[(label)\]\((.*?)\)/).replace("label",de._label).getRegex(),reflink:ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",de._label).getRegex()}),de.gfm=Ie({},de.normal,{escape:ye(de.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(ae="x"+ae.toString(16)),Te+="&#"+ae+";";return Te}var ke=function(){function Ne(Oe){this.tokens=[],this.tokens.links=Object.create(null),this.options=Oe||Rt,this.options.tokenizer=this.options.tokenizer||new oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ae={block:Ee.normal,inline:Me.normal};this.options.pedantic?(ae.block=Ee.pedantic,ae.inline=Me.pedantic):this.options.gfm&&(ae.block=Ee.gfm,this.options.breaks?ae.inline=Me.breaks:ae.inline=Me.gfm),this.tokenizer.rules=ae}Ne.lex=function(ae,le){var he=new Ne(le);return he.lex(ae)};var Te=Ne.prototype;return Te.lex=function(ae){return ae=ae.replace(/\r\n|\r/g,` -`).replace(/\t/g," "),this.blockTokens(ae,this.tokens,!0),this.inline(this.tokens),this.tokens},Te.blockTokens=function(ae,le,he){le===void 0&&(le=[]),he===void 0&&(he=!0),ae=ae.replace(/^ +$/gm,"");for(var _e,Se,ze,Et;ae;){if(_e=this.tokenizer.space(ae)){ae=ae.substring(_e.raw.length),_e.type&&le.push(_e);continue}if(_e=this.tokenizer.code(ae,le)){ae=ae.substring(_e.raw.length),_e.type?le.push(_e):(Et=le[le.length-1],Et.raw+=` -`+_e.raw,Et.text+=` -`+_e.text);continue}if(_e=this.tokenizer.fences(ae)){ae=ae.substring(_e.raw.length),le.push(_e);continue}if(_e=this.tokenizer.heading(ae)){ae=ae.substring(_e.raw.length),le.push(_e);continue}if(_e=this.tokenizer.nptable(ae)){ae=ae.substring(_e.raw.length),le.push(_e);continue}if(_e=this.tokenizer.hr(ae)){ae=ae.substring(_e.raw.length),le.push(_e);continue}if(_e=this.tokenizer.blockquote(ae)){ae=ae.substring(_e.raw.length),_e.tokens=this.blockTokens(_e.text,[],he),le.push(_e);continue}if(_e=this.tokenizer.list(ae)){for(ae=ae.substring(_e.raw.length),ze=_e.items.length,Se=0;Se0)for(;($t=this.tokenizer.rules.inline.reflinkSearch.exec(Et))!=null;)on.includes($t[0].slice($t[0].lastIndexOf("[")+1,-1))&&(Et=Et.slice(0,$t.index)+"["+"a".repeat($t[0].length-2)+"]"+Et.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;($t=this.tokenizer.rules.inline.blockSkip.exec(Et))!=null;)Et=Et.slice(0,$t.index)+"["+"a".repeat($t[0].length-2)+"]"+Et.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ae;){if(ze=this.tokenizer.escape(ae)){ae=ae.substring(ze.raw.length),le.push(ze);continue}if(ze=this.tokenizer.tag(ae,he,_e)){ae=ae.substring(ze.raw.length),he=ze.inLink,_e=ze.inRawBlock,le.push(ze);continue}if(ze=this.tokenizer.link(ae)){ae=ae.substring(ze.raw.length),ze.type==="link"&&(ze.tokens=this.inlineTokens(ze.text,[],!0,_e)),le.push(ze);continue}if(ze=this.tokenizer.reflink(ae,this.tokens.links)){ae=ae.substring(ze.raw.length),ze.type==="link"&&(ze.tokens=this.inlineTokens(ze.text,[],!0,_e)),le.push(ze);continue}if(ze=this.tokenizer.strong(ae,Et,Se)){ae=ae.substring(ze.raw.length),ze.tokens=this.inlineTokens(ze.text,[],he,_e),le.push(ze);continue}if(ze=this.tokenizer.em(ae,Et,Se)){ae=ae.substring(ze.raw.length),ze.tokens=this.inlineTokens(ze.text,[],he,_e),le.push(ze);continue}if(ze=this.tokenizer.codespan(ae)){ae=ae.substring(ze.raw.length),le.push(ze);continue}if(ze=this.tokenizer.br(ae)){ae=ae.substring(ze.raw.length),le.push(ze);continue}if(ze=this.tokenizer.del(ae)){ae=ae.substring(ze.raw.length),ze.tokens=this.inlineTokens(ze.text,[],he,_e),le.push(ze);continue}if(ze=this.tokenizer.autolink(ae,He)){ae=ae.substring(ze.raw.length),le.push(ze);continue}if(!he&&(ze=this.tokenizer.url(ae,He))){ae=ae.substring(ze.raw.length),le.push(ze);continue}if(ze=this.tokenizer.inlineText(ae,_e,nt)){ae=ae.substring(ze.raw.length),Se=ze.raw.slice(-1),le.push(ze);continue}if(ae){var gt="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(gt);break}else throw new Error(gt)}}return le},B(Ne,null,[{key:"rules",get:function(){return{block:Ee,inline:Me}}}]),Ne}(),ht=P.defaults,ie=z.cleanUrl,xe=z.escape,we=function(){function Ne(Oe){this.options=Oe||ht}var Te=Ne.prototype;return Te.code=function(ae,le,he){var _e=(le||"").match(/\S*/)[0];if(this.options.highlight){var Se=this.options.highlight(ae,_e);Se!=null&&Se!==ae&&(he=!0,ae=Se)}return _e?'
      '+(he?ae:xe(ae,!0))+`
      +`?le[1].slice(0,-1):le[1]}},Te.text=function(ae,le){var he=this.rules.block.text.exec(ae);if(he){var _e=le[le.length-1];return _e&&_e.type==="text"?{raw:he[0],text:he[0]}:{type:"text",raw:he[0],text:he[0]}}},Te.escape=function(ae){var le=this.rules.inline.escape.exec(ae);if(le)return{type:"escape",raw:le[0],text:K(le[1])}},Te.tag=function(ae,le,he){var _e=this.rules.inline.tag.exec(ae);if(_e)return!le&&/^
      /i.test(_e[0])&&(le=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(_e[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(_e[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:_e[0],inLink:le,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):K(_e[0]):_e[0]}},Te.link=function(ae){var le=this.rules.inline.link.exec(ae);if(le){var he=$(le[2],"()");if(he>-1){var _e=le[0].indexOf("!")===0?5:4,Se=_e+le[1].length+he;le[2]=le[2].substring(0,he),le[0]=le[0].substring(0,Se).trim(),le[3]=""}var ze=le[2],xt="";if(this.options.pedantic){var Qt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ze);Qt?(ze=Qt[1],xt=Qt[3]):xt=""}else xt=le[3]?le[3].slice(1,-1):"";ze=ze.trim().replace(/^<([\s\S]*)>$/,"$1");var sn=Z(le,{href:ze&&ze.replace(this.rules.inline._escapes,"$1"),title:xt&&xt.replace(this.rules.inline._escapes,"$1")},le[0]);return sn}},Te.reflink=function(ae,le){var he;if((he=this.rules.inline.reflink.exec(ae))||(he=this.rules.inline.nolink.exec(ae))){var _e=(he[2]||he[1]).replace(/\s+/g," ");if(_e=le[_e.toLowerCase()],!_e||!_e.href){var Se=he[0].charAt(0);return{type:"text",raw:Se,text:Se}}var ze=Z(he,_e,he[0]);return ze}},Te.strong=function(ae,le,he){he===void 0&&(he="");var _e=this.rules.inline.strong.start.exec(ae);if(_e&&(!_e[1]||_e[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){le=le.slice(-1*ae.length);var Se=_e[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Se.lastIndex=0;for(var ze;(_e=Se.exec(le))!=null;)if(ze=this.rules.inline.strong.middle.exec(le.slice(0,_e.index+3)),ze)return{type:"strong",raw:ae.slice(0,ze[0].length),text:ae.slice(2,ze[0].length-2)}}},Te.em=function(ae,le,he){he===void 0&&(he="");var _e=this.rules.inline.em.start.exec(ae);if(_e&&(!_e[1]||_e[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){le=le.slice(-1*ae.length);var Se=_e[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Se.lastIndex=0;for(var ze;(_e=Se.exec(le))!=null;)if(ze=this.rules.inline.em.middle.exec(le.slice(0,_e.index+2)),ze)return{type:"em",raw:ae.slice(0,ze[0].length),text:ae.slice(1,ze[0].length-1)}}},Te.codespan=function(ae){var le=this.rules.inline.code.exec(ae);if(le){var he=le[2].replace(/\n/g," "),_e=/[^ ]/.test(he),Se=he.startsWith(" ")&&he.endsWith(" ");return _e&&Se&&(he=he.substring(1,he.length-1)),he=K(he,!0),{type:"codespan",raw:le[0],text:he}}},Te.br=function(ae){var le=this.rules.inline.br.exec(ae);if(le)return{type:"br",raw:le[0]}},Te.del=function(ae){var le=this.rules.inline.del.exec(ae);if(le)return{type:"del",raw:le[0],text:le[1]}},Te.autolink=function(ae,le){var he=this.rules.inline.autolink.exec(ae);if(he){var _e,Se;return he[2]==="@"?(_e=K(this.options.mangle?le(he[1]):he[1]),Se="mailto:"+_e):(_e=K(he[1]),Se=_e),{type:"link",raw:he[0],text:_e,href:Se,tokens:[{type:"text",raw:_e,text:_e}]}}},Te.url=function(ae,le){var he;if(he=this.rules.inline.url.exec(ae)){var _e,Se;if(he[2]==="@")_e=K(this.options.mangle?le(he[0]):he[0]),Se="mailto:"+_e;else{var ze;do ze=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(ze!==he[0]);_e=K(he[0]),he[1]==="www."?Se="http://"+_e:Se=_e}return{type:"link",raw:he[0],text:_e,href:Se,tokens:[{type:"text",raw:_e,text:_e}]}}},Te.inlineText=function(ae,le,he){var _e=this.rules.inline.text.exec(ae);if(_e){var Se;return le?Se=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):K(_e[0]):_e[0]:Se=K(this.options.smartypants?he(_e[0]):_e[0]),{type:"text",raw:_e[0],text:Se}}},Ne}(),fe=z.noopTest,ye=z.edit,Ie=z.merge,ve={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:fe,table:fe,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ve._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ve._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ve.def=ye(ve.def).replace("label",ve._label).replace("title",ve._title).getRegex(),ve.bullet=/(?:[*+-]|\d{1,9}[.)])/,ve.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ve.item=ye(ve.item,"gm").replace(/bull/g,ve.bullet).getRegex(),ve.list=ye(ve.list).replace(/bull/g,ve.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ve.def.source+")").getRegex(),ve._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ve._comment=//,ve.html=ye(ve.html,"i").replace("comment",ve._comment).replace("tag",ve._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ve.paragraph=ye(ve._paragraph).replace("hr",ve.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ve._tag).getRegex(),ve.blockquote=ye(ve.blockquote).replace("paragraph",ve.paragraph).getRegex(),ve.normal=Ie({},ve),ve.gfm=Ie({},ve.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ve.gfm.nptable=ye(ve.gfm.nptable).replace("hr",ve.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ve._tag).getRegex(),ve.gfm.table=ye(ve.gfm.table).replace("hr",ve.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ve._tag).getRegex(),ve.pedantic=Ie({},ve.normal,{html:ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:fe,paragraph:ye(ve.normal._paragraph).replace("hr",ve.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",ve.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var de={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:fe,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:fe,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",de.punctuation=ye(de.punctuation).replace(/punctuation/g,de._punctuation).getRegex(),de._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",de._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",de.em.start=ye(de.em.start).replace(/punctuation/g,de._punctuation).getRegex(),de.em.middle=ye(de.em.middle).replace(/punctuation/g,de._punctuation).replace(/overlapSkip/g,de._overlapSkip).getRegex(),de.em.endAst=ye(de.em.endAst,"g").replace(/punctuation/g,de._punctuation).getRegex(),de.em.endUnd=ye(de.em.endUnd,"g").replace(/punctuation/g,de._punctuation).getRegex(),de.strong.start=ye(de.strong.start).replace(/punctuation/g,de._punctuation).getRegex(),de.strong.middle=ye(de.strong.middle).replace(/punctuation/g,de._punctuation).replace(/blockSkip/g,de._blockSkip).getRegex(),de.strong.endAst=ye(de.strong.endAst,"g").replace(/punctuation/g,de._punctuation).getRegex(),de.strong.endUnd=ye(de.strong.endUnd,"g").replace(/punctuation/g,de._punctuation).getRegex(),de.blockSkip=ye(de._blockSkip,"g").getRegex(),de.overlapSkip=ye(de._overlapSkip,"g").getRegex(),de._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,de._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,de._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,de.autolink=ye(de.autolink).replace("scheme",de._scheme).replace("email",de._email).getRegex(),de._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,de.tag=ye(de.tag).replace("comment",ve._comment).replace("attribute",de._attribute).getRegex(),de._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,de._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,de._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,de.link=ye(de.link).replace("label",de._label).replace("href",de._href).replace("title",de._title).getRegex(),de.reflink=ye(de.reflink).replace("label",de._label).getRegex(),de.reflinkSearch=ye(de.reflinkSearch,"g").replace("reflink",de.reflink).replace("nolink",de.nolink).getRegex(),de.normal=Ie({},de),de.pedantic=Ie({},de.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ye(/^!?\[(label)\]\((.*?)\)/).replace("label",de._label).getRegex(),reflink:ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",de._label).getRegex()}),de.gfm=Ie({},de.normal,{escape:ye(de.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(ae="x"+ae.toString(16)),Te+="&#"+ae+";";return Te}var ke=function(){function Ne(Oe){this.tokens=[],this.tokens.links=Object.create(null),this.options=Oe||Rt,this.options.tokenizer=this.options.tokenizer||new oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ae={block:Ee.normal,inline:Me.normal};this.options.pedantic?(ae.block=Ee.pedantic,ae.inline=Me.pedantic):this.options.gfm&&(ae.block=Ee.gfm,this.options.breaks?ae.inline=Me.breaks:ae.inline=Me.gfm),this.tokenizer.rules=ae}Ne.lex=function(ae,le){var he=new Ne(le);return he.lex(ae)};var Te=Ne.prototype;return Te.lex=function(ae){return ae=ae.replace(/\r\n|\r/g,` +`).replace(/\t/g," "),this.blockTokens(ae,this.tokens,!0),this.inline(this.tokens),this.tokens},Te.blockTokens=function(ae,le,he){le===void 0&&(le=[]),he===void 0&&(he=!0),ae=ae.replace(/^ +$/gm,"");for(var _e,Se,ze,xt;ae;){if(_e=this.tokenizer.space(ae)){ae=ae.substring(_e.raw.length),_e.type&&le.push(_e);continue}if(_e=this.tokenizer.code(ae,le)){ae=ae.substring(_e.raw.length),_e.type?le.push(_e):(xt=le[le.length-1],xt.raw+=` +`+_e.raw,xt.text+=` +`+_e.text);continue}if(_e=this.tokenizer.fences(ae)){ae=ae.substring(_e.raw.length),le.push(_e);continue}if(_e=this.tokenizer.heading(ae)){ae=ae.substring(_e.raw.length),le.push(_e);continue}if(_e=this.tokenizer.nptable(ae)){ae=ae.substring(_e.raw.length),le.push(_e);continue}if(_e=this.tokenizer.hr(ae)){ae=ae.substring(_e.raw.length),le.push(_e);continue}if(_e=this.tokenizer.blockquote(ae)){ae=ae.substring(_e.raw.length),_e.tokens=this.blockTokens(_e.text,[],he),le.push(_e);continue}if(_e=this.tokenizer.list(ae)){for(ae=ae.substring(_e.raw.length),ze=_e.items.length,Se=0;Se0)for(;(Qt=this.tokenizer.rules.inline.reflinkSearch.exec(xt))!=null;)sn.includes(Qt[0].slice(Qt[0].lastIndexOf("[")+1,-1))&&(xt=xt.slice(0,Qt.index)+"["+"a".repeat(Qt[0].length-2)+"]"+xt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Qt=this.tokenizer.rules.inline.blockSkip.exec(xt))!=null;)xt=xt.slice(0,Qt.index)+"["+"a".repeat(Qt[0].length-2)+"]"+xt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ae;){if(ze=this.tokenizer.escape(ae)){ae=ae.substring(ze.raw.length),le.push(ze);continue}if(ze=this.tokenizer.tag(ae,he,_e)){ae=ae.substring(ze.raw.length),he=ze.inLink,_e=ze.inRawBlock,le.push(ze);continue}if(ze=this.tokenizer.link(ae)){ae=ae.substring(ze.raw.length),ze.type==="link"&&(ze.tokens=this.inlineTokens(ze.text,[],!0,_e)),le.push(ze);continue}if(ze=this.tokenizer.reflink(ae,this.tokens.links)){ae=ae.substring(ze.raw.length),ze.type==="link"&&(ze.tokens=this.inlineTokens(ze.text,[],!0,_e)),le.push(ze);continue}if(ze=this.tokenizer.strong(ae,xt,Se)){ae=ae.substring(ze.raw.length),ze.tokens=this.inlineTokens(ze.text,[],he,_e),le.push(ze);continue}if(ze=this.tokenizer.em(ae,xt,Se)){ae=ae.substring(ze.raw.length),ze.tokens=this.inlineTokens(ze.text,[],he,_e),le.push(ze);continue}if(ze=this.tokenizer.codespan(ae)){ae=ae.substring(ze.raw.length),le.push(ze);continue}if(ze=this.tokenizer.br(ae)){ae=ae.substring(ze.raw.length),le.push(ze);continue}if(ze=this.tokenizer.del(ae)){ae=ae.substring(ze.raw.length),ze.tokens=this.inlineTokens(ze.text,[],he,_e),le.push(ze);continue}if(ze=this.tokenizer.autolink(ae,He)){ae=ae.substring(ze.raw.length),le.push(ze);continue}if(!he&&(ze=this.tokenizer.url(ae,He))){ae=ae.substring(ze.raw.length),le.push(ze);continue}if(ze=this.tokenizer.inlineText(ae,_e,rt)){ae=ae.substring(ze.raw.length),Se=ze.raw.slice(-1),le.push(ze);continue}if(ae){var gt="Infinite loop on byte: "+ae.charCodeAt(0);if(this.options.silent){console.error(gt);break}else throw new Error(gt)}}return le},B(Ne,null,[{key:"rules",get:function(){return{block:Ee,inline:Me}}}]),Ne}(),ht=P.defaults,ie=z.cleanUrl,xe=z.escape,we=function(){function Ne(Oe){this.options=Oe||ht}var Te=Ne.prototype;return Te.code=function(ae,le,he){var _e=(le||"").match(/\S*/)[0];if(this.options.highlight){var Se=this.options.highlight(ae,_e);Se!=null&&Se!==ae&&(he=!0,ae=Se)}return _e?'
      '+(he?ae:xe(ae,!0))+`
      `:"
      "+(he?ae:xe(ae,!0))+`
      `},Te.blockquote=function(ae){return`
      `+ae+`
      @@ -298,23 +298,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},Te.tablerow=function(ae){return` `+ae+` `},Te.tablecell=function(ae,le){var he=le.header?"th":"td",_e=le.align?"<"+he+' align="'+le.align+'">':"<"+he+">";return _e+ae+" -`},Te.strong=function(ae){return""+ae+""},Te.em=function(ae){return""+ae+""},Te.codespan=function(ae){return""+ae+""},Te.br=function(){return this.options.xhtml?"
      ":"
      "},Te.del=function(ae){return""+ae+""},Te.link=function(ae,le,he){if(ae=ie(this.options.sanitize,this.options.baseUrl,ae),ae===null)return he;var _e='
      ",_e},Te.image=function(ae,le,he){if(ae=ie(this.options.sanitize,this.options.baseUrl,ae),ae===null)return he;var _e=''+he+'":">",_e},Te.text=function(ae){return ae},Ne}(),$e=function(){function Ne(){}var Te=Ne.prototype;return Te.strong=function(ae){return ae},Te.em=function(ae){return ae},Te.codespan=function(ae){return ae},Te.del=function(ae){return ae},Te.html=function(ae){return ae},Te.text=function(ae){return ae},Te.link=function(ae,le,he){return""+he},Te.image=function(ae,le,he){return""+he},Te.br=function(){return""},Ne}(),ct=function(){function Ne(){this.seen={}}var Te=Ne.prototype;return Te.slug=function(ae){var le=ae.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(le)){var he=le;do this.seen[he]++,le=he+"-"+this.seen[he];while(this.seen.hasOwnProperty(le))}return this.seen[le]=0,le},Ne}(),vt=P.defaults,Ut=z.unescape,We=function(){function Ne(Oe){this.options=Oe||vt,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $e,this.slugger=new ct}Ne.parse=function(ae,le){var he=new Ne(le);return he.parse(ae)};var Te=Ne.prototype;return Te.parse=function(ae,le){le===void 0&&(le=!0);var he="",_e,Se,ze,Et,$t,on,gt,Kt,Ot,At,ft,be,Fe,Nt,yt,Gt,Jt,Ge,lt=ae.length;for(_e=0;_e0&&yt.tokens[0].type==="text"?(yt.tokens[0].text=Ge+" "+yt.tokens[0].text,yt.tokens[0].tokens&&yt.tokens[0].tokens.length>0&&yt.tokens[0].tokens[0].type==="text"&&(yt.tokens[0].tokens[0].text=Ge+" "+yt.tokens[0].tokens[0].text)):yt.tokens.unshift({type:"text",text:Ge}):Nt+=Ge),Nt+=this.parse(yt.tokens,Fe),Ot+=this.renderer.listitem(Nt,Jt,Gt);he+=this.renderer.list(Ot,ft,be);continue}case"html":{he+=this.renderer.html(At.text);continue}case"paragraph":{he+=this.renderer.paragraph(this.parseInline(At.tokens));continue}case"text":{for(Ot=At.tokens?this.parseInline(At.tokens):At.text;_e+1An error occurred:

      "+Le(ze.message+"",!0)+"
      ";throw ze}}Je.options=Je.setOptions=function(Ne){return kt(Je.defaults,Ne),ut(Je.defaults),Je},Je.getDefaults=Ae,Je.defaults=_t,Je.use=function(Ne){var Te=kt({},Ne);if(Ne.renderer&&function(){var ae=Je.defaults.renderer||new we,le=function(Se){var ze=ae[Se];ae[Se]=function(){for(var Et=arguments.length,$t=new Array(Et),on=0;on`,triples:"",explode:"[]{}"},I=Y.Pos;Y.defineOption("autoCloseBrackets",!1,function(i,d,s){s&&s!=Y.Init&&(i.removeKeyMap(T),i.state.closeBrackets=null),d&&(R(F(d,"pairs")),i.state.closeBrackets=d,i.addKeyMap(T))});function F(i,d){return d=="pairs"&&typeof i=="string"?i:typeof i=="object"&&i[d]!=null?i[d]:B[d]}var T={Backspace:t,Enter:b};function R(i){for(var d=0;d=0;l--){var x=n[l].head;i.replaceRange("",I(x.line,x.ch-1),I(x.line,x.ch+1),"+delete")}}function b(i){var d=m(i),s=d&&F(d,"explode");if(!s||i.getOption("disableInput"))return Y.Pass;for(var n=i.listSelections(),l=0;l0;return{anchor:new I(i.anchor.line,i.anchor.ch+(d?-1:1)),head:new I(i.head.line,i.head.ch+(d?1:-1))}}function u(i,d){var s=m(i);if(!s||i.getOption("disableInput"))return Y.Pass;var n=F(s,"pairs"),l=n.indexOf(d);if(l==-1)return Y.Pass;for(var c=F(s,"closeBefore"),x=F(s,"triples"),A=n.charAt(l+1)==d,C=i.listSelections(),k=l%2==0,w,y=0;y=0&&i.getRange(p,I(p.line,p.ch+3))==d+d+d?v="skipThree":v="skip";else if(A&&p.ch>1&&x.indexOf(d)>=0&&i.getRange(I(p.line,p.ch-2),p)==d+d){if(p.ch>2&&/\bstring/.test(i.getTokenTypeAt(I(p.line,p.ch-2))))return Y.Pass;v="addFour"}else if(A){var E=p.ch==0?" ":i.getRange(I(p.line,p.ch-1),p);if(!Y.isWordChar(_)&&E!=d&&!Y.isWordChar(E))v="both";else return Y.Pass}else if(k&&(_.length===0||/\s/.test(_)||c.indexOf(_)>-1))v="both";else return Y.Pass;if(!w)w=v;else if(w!=v)return Y.Pass}var g=l%2?n.charAt(l-1):d,j=l%2?d:n.charAt(l+1);i.operation(function(){if(w=="skip")i.execCommand("goCharRight");else if(w=="skipThree")for(var U=0;U<3;U++)i.execCommand("goCharRight");else if(w=="surround"){for(var S=i.getSelections(),U=0;U3&&(m=L.call(m,1));for(var b=R.length,o=0;o4&&(m=L.call(m,1,m.length-1));for(var b=m[m.length-1],o=R.length,u=0;uthis._ux||s(A-this._yi)>this._uy||this._len<5;return this.addData(P.L,x,A),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(x,A):this._ctx.lineTo(x,A)),C&&(this._xi=x,this._yi=A),this},bezierCurveTo:function(x,A,C,k,w,y){return this.addData(P.C,x,A,C,k,w,y),this._ctx&&(this._needsDash()?this._dashedBezierTo(x,A,C,k,w,y):this._ctx.bezierCurveTo(x,A,C,k,w,y)),this._xi=w,this._yi=y,this},quadraticCurveTo:function(x,A,C,k){return this.addData(P.Q,x,A,C,k),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(x,A,C,k):this._ctx.quadraticCurveTo(x,A,C,k)),this._xi=C,this._yi=k,this},arc:function(x,A,C,k,w,y){return this.addData(P.A,x,A,C,C,k,w-k,0,y?0:1),this._ctx&&this._ctx.arc(x,A,C,k,w,y),this._xi=a(w)*C+x,this._yi=i(w)*C+A,this},arcTo:function(x,A,C,k,w){return this._ctx&&this._ctx.arcTo(x,A,C,k,w),this},rect:function(x,A,C,k){return this._ctx&&this._ctx.rect(x,A,C,k),this.addData(P.R,x,A,C,k),this},closePath:function(){this.addData(P.Z);var x=this._ctx,A=this._x0,C=this._y0;return x&&(this._needsDash()&&this._dashedLineTo(A,C),x.closePath()),this._xi=A,this._yi=C,this},fill:function(x){x&&x.fill(),this.toStatic()},stroke:function(x){x&&x.stroke(),this.toStatic()},setLineDash:function(x){if(x instanceof Array){this._lineDash=x,this._dashIdx=0;for(var A=0,C=0;CA.length&&(this._expandData(),A=this.data);for(var C=0;C0&&g<=x||v<0&&g>=x||v===0&&(_>0&&j<=A||_<0&&j>=A);){if(z=this._dashIdx,U=w[z],g+=v*U,j+=_*U,this._dashIdx=(z+1)%S,v>0&&gh||_>0&&jp)continue;y[z%2?"moveTo":"lineTo"](v>=0?u(g,x):f(g,x),_>=0?u(j,A):f(j,A))}v=g-x,_=j-A,this._dashOffset=-d(v*v+_*_)},_dashedBezierTo:function(x,A,C,k,w,y){var h=this._dashSum,p=this._dashOffset,v=this._lineDash,_=this._ctx,E=this._xi,g=this._yi,j,U,S,z=Y.cubicAt,H=0,M=this._dashIdx,V=v.length,K,$,Z=0;for(p<0&&(p=h+p),p%=h,j=0;j<1;j+=.1)U=z(E,x,C,w,j+.1)-z(E,x,C,w,j),S=z(g,A,k,y,j+.1)-z(g,A,k,y,j),H+=d(U*U+S*S);for(;Mp);M++);for(j=(Z-p)/H;j<=1;)K=z(E,x,C,w,j),$=z(g,A,k,y,j),M%2?_.moveTo(K,$):_.lineTo(K,$),j+=v[M]/H,M=(M+1)%V;M%2!==0&&_.lineTo(w,y),U=w-K,S=y-$,this._dashOffset=-d(U*U+S*S)},_dashedQuadraticTo:function(x,A,C,k){var w=C,y=k;C=(C+2*x)/3,k=(k+2*A)/3,x=(this._xi+2*x)/3,A=(this._yi+2*A)/3,this._dashedBezierTo(x,A,C,k,w,y)},toStatic:function(){var x=this.data;x instanceof Array&&(x.length=this._len,n&&(this.data=new Float32Array(x)))},getBoundingRect:function(){m[0]=m[1]=b[0]=b[1]=Number.MAX_VALUE,t[0]=t[1]=o[0]=o[1]=-Number.MAX_VALUE;for(var x=this.data,A=0,C=0,k=0,w=0,y=0;yv||s(p-y)>_||g===E-1)&&(x.lineTo(h,p),w=h,y=p);break;case P.C:x.bezierCurveTo(A[g++],A[g++],A[g++],A[g++],A[g++],A[g++]),w=A[g-2],y=A[g-1];break;case P.Q:x.quadraticCurveTo(A[g++],A[g++],A[g++],A[g++]),w=A[g-2],y=A[g-1];break;case P.A:var U=A[g++],S=A[g++],z=A[g++],H=A[g++],M=A[g++],V=A[g++],K=A[g++],$=A[g++],Z=z>H?z:H,me=z>H?1:z/H,oe=z>H?H/z:1,fe=Math.abs(z-H)>.001,ye=M+V;fe?(x.translate(U,S),x.rotate(K),x.scale(me,oe),x.arc(0,0,Z,M,ye,1-$),x.scale(1/me,1/oe),x.rotate(-K),x.translate(-U,-S)):x.arc(U,S,Z,M,ye,1-$),g===1&&(C=a(M)*z+U,k=i(M)*H+S),w=a(ye)*z+U,y=i(ye)*H+S;break;case P.R:C=w=A[g],k=y=A[g+1],x.rect(A[g++],A[g++],A[g++],A[g++]);break;case P.Z:x.closePath(),w=C,y=k}}}},l.CMD=P;var c=l;Be.exports=c},ItGF:function(Be,J){var L={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?L={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?L={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?L={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:L=B(navigator.userAgent);var Y=L;function B(I){var F={},T={},R=I.match(/Firefox\/([\d.]+)/),P=I.match(/MSIE\s([\d.]+)/)||I.match(/Trident\/.+?rv:(([\d.]+))/),m=I.match(/Edge\/([\d.]+)/),t=/micromessenger/i.test(I);return R&&(T.firefox=!0,T.version=R[1]),P&&(T.ie=!0,T.version=P[1]),m&&(T.edge=!0,T.version=m[1]),t&&(T.weChat=!0),{browser:T,os:F,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!T.ie&&!T.edge,pointerEventsSupported:"onpointerdown"in window&&(T.edge||T.ie&&T.version>=11),domSupported:typeof document!="undefined"}}Be.exports=Y},JYp7:function(Be,J,L){"use strict";L.d(J,"a",function(){return Y});var Y;(function(B){function I(c){return c&&typeof c=="object"&&typeof c[Symbol.iterator]=="function"}B.is=I;const F=Object.freeze([]);function T(){return F}B.empty=T;function*R(c){yield c}B.single=R;function P(c){return c||F}B.from=P;function m(c){return!c||c[Symbol.iterator]().next().done===!0}B.isEmpty=m;function t(c){return c[Symbol.iterator]().next().value}B.first=t;function b(c,x){for(const A of c)if(x(A))return!0;return!1}B.some=b;function o(c,x){for(const A of c)if(x(A))return A;return}B.find=o;function*u(c,x){for(const A of c)x(A)&&(yield A)}B.filter=u;function*f(c,x){let A=0;for(const C of c)yield x(C,A++)}B.map=f;function*a(...c){for(const x of c)for(const A of x)yield A}B.concat=a;function*i(c){for(const x of c)for(const A of x)yield A}B.concatNested=i;function d(c,x,A){let C=A;for(const k of c)C=x(C,k);return C}B.reduce=d;function*s(c,x,A=c.length){for(x<0&&(x+=c.length),A<0?A+=c.length:A>c.length&&(A=c.length);xC===k){const C=c[Symbol.iterator](),k=x[Symbol.iterator]();for(;;){const w=C.next(),y=k.next();if(w.done!==y.done)return!1;if(w.done)return!0;if(!A(w.value,y.value))return!1}}B.equals=l})(Y||(Y={}))},K2GJ:function(Be,J,L){var Y=L("fW2E"),B=L("gut8"),I=B.ContextCachedBy,F=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],T=function(u){this.extendFrom(u,!1)};function R(u,f,a){var i=f.x==null?0:f.x,d=f.x2==null?1:f.x2,s=f.y==null?0:f.y,n=f.y2==null?0:f.y2;f.global||(i=i*a.width+a.x,d=d*a.width+a.x,s=s*a.height+a.y,n=n*a.height+a.y),i=isNaN(i)?0:i,d=isNaN(d)?1:d,s=isNaN(s)?0:s,n=isNaN(n)?0:n;var l=u.createLinearGradient(i,s,d,n);return l}function P(u,f,a){var i=a.width,d=a.height,s=Math.min(i,d),n=f.x==null?.5:f.x,l=f.y==null?.5:f.y,c=f.r==null?.5:f.r;f.global||(n=n*i+a.x,l=l*d+a.y,c=c*s);var x=u.createRadialGradient(n,l,0,n,l,c);return x}T.prototype={constructor:T,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(u,f,a){var i=this,d=a&&a.style,s=!d||u.__attrCachedBy!==I.STYLE_BIND;u.__attrCachedBy=I.STYLE_BIND;for(var n=0;n0},extendFrom:function(u,f){if(u)for(var a in u)u.hasOwnProperty(a)&&(f===!0||(f===!1?!this.hasOwnProperty(a):u[a]!=null))&&(this[a]=u[a])},set:function(u,f){typeof u=="string"?this[u]=f:this.extendFrom(u,!0)},clone:function(){var u=new this.constructor;return u.extendFrom(this,!0),u},getGradient:function(u,f,a){for(var i=f.type==="radial"?P:R,d=i(u,f,a),s=f.colorStops,n=0;n=0)continue;if(!Object.prototype.hasOwnProperty.call(u,i))continue;a[i]=u[i]}return a}function m(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function t(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function b(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var o=function(u){b(f,u);function f(a){m(this,f);var i=t(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,a));return i.scrollListener=i.scrollListener.bind(i),i.eventListenerOptions=i.eventListenerOptions.bind(i),i.mousewheelListener=i.mousewheelListener.bind(i),i}return Y(f,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var i=this.getParentElement(this.scrollComponent);i.scrollTop=i.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var i=!1,d={get passive(){i=!0}};try{document.addEventListener("test",null,d),document.removeEventListener("test",null,d)}catch(s){}return i}},{key:"eventListenerOptions",value:function(){var i=this.props.useCapture;return this.isPassiveSupported()&&(i={useCapture:this.props.useCapture,passive:!0}),i}},{key:"setDefaultLoader",value:function(i){this.defaultLoader=i}},{key:"detachMousewheelListener",value:function(){var i=window;this.props.useWindow===!1&&(i=this.scrollComponent.parentNode),i.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var i=window;this.props.useWindow===!1&&(i=this.getParentElement(this.scrollComponent)),i.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(i){var d=this.props.getScrollParent&&this.props.getScrollParent();return d!=null?d:i&&i.parentNode}},{key:"filterProps",value:function(i){return i}},{key:"attachScrollListener",value:function(){var i=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!i)return;var d=window;this.props.useWindow===!1&&(d=i),d.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),d.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),d.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(i){i.deltaY===1&&!this.isPassiveSupported()&&i.preventDefault()}},{key:"scrollListener",value:function(){var i=this.scrollComponent,d=window,s=this.getParentElement(i),n=void 0;if(this.props.useWindow){var l=document.documentElement||document.body.parentNode||document.body,c=d.pageYOffset!==void 0?d.pageYOffset:l.scrollTop;this.props.isReverse?n=c:n=this.calculateOffset(i,c)}else this.props.isReverse?n=s.scrollTop:n=i.scrollHeight-s.scrollTop-s.clientHeight;n1&&arguments[1]!==void 0?arguments[1]:1,Oe=$e.length,ae=0;ae1&&arguments[1]!==void 0?arguments[1]:!1;return Object(k.a)(M).map(function(K,$){if(!T.isValidElement(K)||!K.type)return null;var Z=K.type.isSelectOptGroup,me=K.key,oe=K.props,fe=oe.children,ye=Object(P.a)(oe,["children"]);return V||!Z?w(K):Object(C.a)(Object(C.a)({key:"__RC_SELECT_GRP__".concat(me===null?$:me,"__"),label:me},ye),{},{options:y(fe)})}).filter(function(K){return K})}var h=L("2Qr1"),p=L("qNPg"),v=L("U8pU"),_=L("Kwbf"),E=L("WKfj");function g(M){var V=M.mode,K=M.options,$=M.children,Z=M.backfill,me=M.allowClear,oe=M.placeholder,fe=M.getInputElement,ye=M.showSearch,Ie=M.onSearch,ve=M.defaultOpen,de=M.autoFocus,Qe=M.labelInValue,Rt=M.value,Ee=M.inputValue,Me=M.optionLabelProp,nt=V==="multiple"||V==="tags",He=ye!==void 0?ye:nt||V==="combobox",ke=K||y($);if(Object(_.a)(V!=="tags"||ke.every(function(we){return!we.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),V==="tags"||V==="combobox"){var ht=ke.some(function(we){return we.options?we.options.some(function($e){return typeof("value"in $e?$e.value:$e.key)=="number"}):typeof("value"in we?we.value:we.key)=="number"});Object(_.a)(!ht,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(_.a)(V!=="combobox"||!Me,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(_.a)(V==="combobox"||!Z,"`backfill` only works with `combobox` mode."),Object(_.a)(V==="combobox"||!fe,"`getInputElement` only work with `combobox` mode."),Object(_.b)(V!=="combobox"||!fe||!me||!oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ie&&!He&&V!=="combobox"&&V!=="tags"&&Object(_.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(_.b)(!ve||de,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Rt!=null){var ie=Object(E.d)(Rt);Object(_.a)(!Qe||ie.every(function(we){return Object(v.a)(we)==="object"&&("key"in we||"value"in we)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(_.a)(!nt||Array.isArray(Rt),"`value` should be array when `mode` is `multiple` or `tags`")}if($){var xe=null;Object(k.a)($).some(function(we){if(!T.isValidElement(we)||!we.type)return!1;var $e=we.type;if($e.isSelectOption)return!1;if($e.isSelectOptGroup){var ct=Object(k.a)(we.props.children).every(function(vt){return!T.isValidElement(vt)||!we.type||vt.type.isSelectOption?!0:(xe=vt.type,!1)});return!ct}return xe=$e,!0}),xe&&Object(_.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(xe.displayName||xe.name||xe,"`.")),Object(_.a)(Ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var j=g,U=Object(p.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:y,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:j,fillOptionsWithMissingValue:h.a}),S=function(M){Object(I.a)(K,M);var V=Object(F.a)(K);function K(){var $;return Object(Y.a)(this,K),$=V.apply(this,arguments),$.selectRef=T.createRef(),$.focus=function(){$.selectRef.current.focus()},$.blur=function(){$.selectRef.current.blur()},$}return Object(B.a)(K,[{key:"render",value:function(){return T.createElement(U,Object.assign({ref:this.selectRef},this.props))}}]),K}(T.Component);S.Option=c,S.OptGroup=A;var z=S,H=J.c=z},M8RZ:function(Be,J,L){"use strict";L.d(J,"a",function(){return t});var Y=L("fWQN"),B=L("mtLc"),I=L("yKVA"),F=L("879j"),T=L("q1tI"),R=L.n(T),P=L("i8i4"),m=L.n(P),t=function(b){Object(I.a)(u,b);var o=Object(F.a)(u);function u(f){var a;Object(Y.a)(this,u),a=o.call(this,f);var i=window.document;return a.node=i.createElement("div"),i.body.appendChild(a.node),a}return Object(B.a)(u,[{key:"render",value:function(){var a=this.props.children;return Object(P.createPortal)(a,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),u}(R.a.Component)},MEGo:function(Be,J,L){var Y=L("4fz+"),B=L("Dagg"),I=L("dqUG"),F=L("2fw6"),T=L("x6Kt"),R=L("rmlV"),P=L("yxFR"),m=L("y+Vt"),t=L("h7HQ"),b=L("1Jh7"),o=L("SKnc"),u=L("K2GJ"),f=L("Fofx"),a=L("NC18"),i=a.createFromString,d=L("bYtY"),s=d.isString,n=d.extend,l=d.defaults,c=d.trim,x=d.each,A=/[\s,]+/;function C(K){if(s(K)){var $=new DOMParser;K=$.parseFromString(K,"text/xml")}for(K.nodeType===9&&(K=K.firstChild);K.nodeName.toLowerCase()!=="svg"||K.nodeType!==1;)K=K.nextSibling;return K}function k(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}k.prototype.parse=function(K,$){$=$||{};var Z=C(K);if(!Z)throw new Error("Illegal svg");var me=new Y;this._root=me;var oe=Z.getAttribute("viewBox")||"",fe=parseFloat(Z.getAttribute("width")||$.width),ye=parseFloat(Z.getAttribute("height")||$.height);isNaN(fe)&&(fe=null),isNaN(ye)&&(ye=null),E(Z,me,null,!0);for(var Ie=Z.firstChild;Ie;)this._parseNode(Ie,me),Ie=Ie.nextSibling;var ve,de;if(oe){var Qe=c(oe).split(A);Qe.length>=4&&(ve={x:parseFloat(Qe[0]||0),y:parseFloat(Qe[1]||0),width:parseFloat(Qe[2]),height:parseFloat(Qe[3])})}if(ve&&fe!=null&&ye!=null&&(de=M(ve,fe,ye),!$.ignoreViewBox)){var Rt=me;me=new Y,me.add(Rt),Rt.scale=de.scale.slice(),Rt.position=de.position.slice()}return!$.ignoreRootClip&&fe!=null&&ye!=null&&me.setClipPath(new T({shape:{x:0,y:0,width:fe,height:ye}})),{root:me,width:fe,height:ye,viewBoxRect:ve,viewBoxTransform:de}},k.prototype._parseNode=function(K,$){var Z=K.nodeName.toLowerCase();Z==="defs"?this._isDefine=!0:Z==="text"&&(this._isText=!0);var me;if(this._isDefine){var oe=y[Z];if(oe){var fe=oe.call(this,K),ye=K.getAttribute("id");ye&&(this._defs[ye]=fe)}}else{var oe=w[Z];oe&&(me=oe.call(this,K,$),$.add(me))}for(var Ie=K.firstChild;Ie;)Ie.nodeType===1&&this._parseNode(Ie,me),Ie.nodeType===3&&this._isText&&this._parseText(Ie,me),Ie=Ie.nextSibling;Z==="defs"?this._isDefine=!1:Z==="text"&&(this._isText=!1)},k.prototype._parseText=function(K,$){if(K.nodeType===1){var Z=K.getAttribute("dx")||0,me=K.getAttribute("dy")||0;this._textX+=parseFloat(Z),this._textY+=parseFloat(me)}var oe=new I({style:{text:K.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});p($,oe),E(K,oe,this._defs);var fe=oe.style.fontSize;fe&&fe<9&&(oe.style.fontSize=9,oe.scale=oe.scale||[1,1],oe.scale[0]*=fe/9,oe.scale[1]*=fe/9);var ye=oe.getBoundingRect();return this._textX+=ye.width,$.add(oe),oe};var w={g:function(K,$){var Z=new Y;return p($,Z),E(K,Z,this._defs),Z},rect:function(K,$){var Z=new T;return p($,Z),E(K,Z,this._defs),Z.setShape({x:parseFloat(K.getAttribute("x")||0),y:parseFloat(K.getAttribute("y")||0),width:parseFloat(K.getAttribute("width")||0),height:parseFloat(K.getAttribute("height")||0)}),Z},circle:function(K,$){var Z=new F;return p($,Z),E(K,Z,this._defs),Z.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),r:parseFloat(K.getAttribute("r")||0)}),Z},line:function(K,$){var Z=new P;return p($,Z),E(K,Z,this._defs),Z.setShape({x1:parseFloat(K.getAttribute("x1")||0),y1:parseFloat(K.getAttribute("y1")||0),x2:parseFloat(K.getAttribute("x2")||0),y2:parseFloat(K.getAttribute("y2")||0)}),Z},ellipse:function(K,$){var Z=new R;return p($,Z),E(K,Z,this._defs),Z.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),rx:parseFloat(K.getAttribute("rx")||0),ry:parseFloat(K.getAttribute("ry")||0)}),Z},polygon:function(K,$){var Z=K.getAttribute("points");Z&&(Z=v(Z));var me=new t({shape:{points:Z||[]}});return p($,me),E(K,me,this._defs),me},polyline:function(K,$){var Z=new m;p($,Z),E(K,Z,this._defs);var me=K.getAttribute("points");me&&(me=v(me));var oe=new b({shape:{points:me||[]}});return oe},image:function(K,$){var Z=new B;return p($,Z),E(K,Z,this._defs),Z.setStyle({image:K.getAttribute("xlink:href"),x:K.getAttribute("x"),y:K.getAttribute("y"),width:K.getAttribute("width"),height:K.getAttribute("height")}),Z},text:function(K,$){var Z=K.getAttribute("x")||0,me=K.getAttribute("y")||0,oe=K.getAttribute("dx")||0,fe=K.getAttribute("dy")||0;this._textX=parseFloat(Z)+parseFloat(oe),this._textY=parseFloat(me)+parseFloat(fe);var ye=new Y;return p($,ye),E(K,ye,this._defs),ye},tspan:function(K,$){var Z=K.getAttribute("x"),me=K.getAttribute("y");Z!=null&&(this._textX=parseFloat(Z)),me!=null&&(this._textY=parseFloat(me));var oe=K.getAttribute("dx")||0,fe=K.getAttribute("dy")||0,ye=new Y;return p($,ye),E(K,ye,this._defs),this._textX+=oe,this._textY+=fe,ye},path:function(K,$){var Z=K.getAttribute("d")||"",me=i(Z);return p($,me),E(K,me,this._defs),me}},y={lineargradient:function(K){var $=parseInt(K.getAttribute("x1")||0,10),Z=parseInt(K.getAttribute("y1")||0,10),me=parseInt(K.getAttribute("x2")||10,10),oe=parseInt(K.getAttribute("y2")||0,10),fe=new o($,Z,me,oe);return h(K,fe),fe},radialgradient:function(K){}};function h(K,$){for(var Z=K.firstChild;Z;){if(Z.nodeType===1){var me=Z.getAttribute("offset");me.indexOf("%")>0?me=parseInt(me,10)/100:me?me=parseFloat(me):me=0;var oe=Z.getAttribute("stop-color")||"#000000";$.addColorStop(me,oe)}Z=Z.nextSibling}}function p(K,$){K&&K.__inheritedStyle&&($.__inheritedStyle||($.__inheritedStyle={}),l($.__inheritedStyle,K.__inheritedStyle))}function v(K){for(var $=c(K).split(A),Z=[],me=0;me<$.length;me+=2){var oe=parseFloat($[me]),fe=parseFloat($[me+1]);Z.push([oe,fe])}return Z}var _={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function E(K,$,Z,me){var oe=$.__inheritedStyle||{},fe=$.type==="text";if(K.nodeType===1&&(S(K,$),n(oe,H(K)),!me)){for(var ye in _)if(_.hasOwnProperty(ye)){var Ie=K.getAttribute(ye);Ie!=null&&(oe[_[ye]]=Ie)}}var ve=fe?"textFill":"fill",de=fe?"textStroke":"stroke";$.style=$.style||new u;var Qe=$.style;oe.fill!=null&&Qe.set(ve,j(oe.fill,Z)),oe.stroke!=null&&Qe.set(de,j(oe.stroke,Z)),x(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Rt){var Ee=Rt==="lineWidth"&&fe?"textStrokeWidth":Rt;oe[Rt]!=null&&Qe.set(Ee,parseFloat(oe[Rt]))}),(!oe.textBaseline||oe.textBaseline==="auto")&&(oe.textBaseline="alphabetic"),oe.textBaseline==="alphabetic"&&(oe.textBaseline="bottom"),oe.textAlign==="start"&&(oe.textAlign="left"),oe.textAlign==="end"&&(oe.textAlign="right"),x(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Rt){oe[Rt]!=null&&Qe.set(Rt,oe[Rt])}),oe.lineDash&&($.style.lineDash=c(oe.lineDash).split(A)),Qe[de]&&Qe[de]!=="none"&&($[de]=!0),$.__inheritedStyle=oe}var g=/url\(\s*#(.*?)\)/;function j(K,$){var Z=$&&K&&K.match(g);if(Z){var me=c(Z[1]),oe=$[me];return oe}return K}var U=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function S(K,$){var Z=K.getAttribute("transform");if(Z){Z=Z.replace(/,/g," ");var me=null,oe=[];Z.replace(U,function(ve,de,Qe){oe.push(de,Qe)});for(var fe=oe.length-1;fe>0;fe-=2){var ye=oe[fe],Ie=oe[fe-1];me=me||f.create();switch(Ie){case"translate":ye=c(ye).split(A),f.translate(me,me,[parseFloat(ye[0]),parseFloat(ye[1]||0)]);break;case"scale":ye=c(ye).split(A),f.scale(me,me,[parseFloat(ye[0]),parseFloat(ye[1]||ye[0])]);break;case"rotate":ye=c(ye).split(A),f.rotate(me,me,parseFloat(ye[0]));break;case"skew":ye=c(ye).split(A),console.warn("Skew transform is not supported yet");break;case"matrix":var ye=c(ye).split(A);me[0]=parseFloat(ye[0]),me[1]=parseFloat(ye[1]),me[2]=parseFloat(ye[2]),me[3]=parseFloat(ye[3]),me[4]=parseFloat(ye[4]),me[5]=parseFloat(ye[5]);break}}$.setLocalTransform(me)}}var z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function H(K){var $=K.getAttribute("style"),Z={};if(!$)return Z;var me={};z.lastIndex=0;for(var oe;(oe=z.exec($))!=null;)me[oe[1]]=oe[2];for(var fe in _)_.hasOwnProperty(fe)&&me[fe]!=null&&(Z[_[fe]]=me[fe]);return Z}function M(K,$,Z){var me=$/K.width,oe=Z/K.height,fe=Math.min(me,oe),ye=[fe,fe],Ie=[-(K.x+K.width/2)*fe+$/2,-(K.y+K.height/2)*fe+Z/2];return{scale:ye,position:Ie}}function V(K,$){var Z=new k;return Z.parse(K,$)}J.parseXML=C,J.makeViewBoxTransform=M,J.parseSVG=V},MI8n:function(Be,J,L){"use strict";L.d(J,"c",function(){return T}),L.d(J,"b",function(){return t}),L.d(J,"e",function(){return b}),L.d(J,"a",function(){return o}),L.d(J,"d",function(){return u}),L.d(J,"f",function(){return f});var Y=L("/cxE"),B=L("pmY6"),I=L("24hK"),F=L("5Y4S"),T;(function(a){a.None=()=>B.a.None;function i(g){return(j,U=null,S)=>{let z=!1,H;return H=g(M=>z?void 0:(H?H.dispose():z=!0,j.call(U,M)),null,S),z&&H.dispose(),H}}a.once=i;function d(g,j){return A((U,S=null,z)=>g(H=>U.call(S,j(H)),null,z))}a.map=d;function s(g,j){return A((U,S=null,z)=>g(H=>{j(H),U.call(S,H)},null,z))}a.forEach=s;function n(g,j){return A((U,S=null,z)=>g(H=>j(H)&&U.call(S,H),null,z))}a.filter=n;function l(g){return g}a.signal=l;function c(...g){return(j,U=null,S)=>Object(B.e)(...g.map(z=>z(H=>j.call(U,H),null,S)))}a.any=c;function x(g,j,U){let S=U;return d(g,z=>(S=j(S,z),S))}a.reduce=x;function A(g){let j;const U=new t({onFirstListenerAdd(){j=g(U.fire,U)},onLastListenerRemove(){j.dispose()}});return U.event}function C(g,j,U=100,S=!1,z){let H,M,V,K=0;const $=new t({leakWarningThreshold:z,onFirstListenerAdd(){H=g(Z=>{K++,M=j(M,Z),S&&!V&&($.fire(M),M=void 0),clearTimeout(V),V=setTimeout(()=>{const me=M;M=void 0,V=void 0,(!S||K>1)&&$.fire(me),K=0},U)})},onLastListenerRemove(){H.dispose()}});return $.event}a.debounce=C;function k(g,j=(U,S)=>U===S){let U=!0,S;return n(g,z=>{const H=U||!j(z,S);return U=!1,S=z,H})}a.latch=k;function w(g,j){return[a.filter(g,j),a.filter(g,U=>!j(U))]}a.split=w;function y(g,j=!1,U=[]){let S=U.slice(),z=g(V=>{S?S.push(V):M.fire(V)});const H=()=>{S&&S.forEach(V=>M.fire(V)),S=null},M=new t({onFirstListenerAdd(){z||(z=g(V=>M.fire(V)))},onFirstListenerDidAdd(){S&&(j?setTimeout(H):H())},onLastListenerRemove(){z&&z.dispose(),z=null}});return M.event}a.buffer=y;class h{constructor(g){this.event=g}map(g){return new h(d(this.event,g))}forEach(g){return new h(s(this.event,g))}filter(g){return new h(n(this.event,g))}reduce(g,j){return new h(x(this.event,g,j))}latch(){return new h(k(this.event))}debounce(g,j=100,U=!1,S){return new h(C(this.event,g,j,U,S))}on(g,j,U){return this.event(g,j,U)}once(g,j,U){return i(this.event)(g,j,U)}}function p(g){return new h(g)}a.chain=p;function v(g,j,U=S=>S){const S=(...V)=>M.fire(U(...V)),z=()=>g.on(j,S),H=()=>g.removeListener(j,S),M=new t({onFirstListenerAdd:z,onLastListenerRemove:H});return M.event}a.fromNodeEventEmitter=v;function _(g,j,U=S=>S){const S=(...V)=>M.fire(U(...V)),z=()=>g.addEventListener(j,S),H=()=>g.removeEventListener(j,S),M=new t({onFirstListenerAdd:z,onLastListenerRemove:H});return M.event}a.fromDOMEventEmitter=_;function E(g){return new Promise(j=>i(g)(j))}a.toPromise=E})(T||(T={}));class R{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${R._idPool++}`}start(a){this._stopWatch=new F.a(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}R._idPool=0;let P=-1;class m{constructor(a,i=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=i,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let i=P;if(typeof this.customThreshold=="number"&&(i=this.customThreshold),i<=0||a"+ae+""},Te.em=function(ae){return""+ae+""},Te.codespan=function(ae){return""+ae+""},Te.br=function(){return this.options.xhtml?"
      ":"
      "},Te.del=function(ae){return""+ae+""},Te.link=function(ae,le,he){if(ae=ie(this.options.sanitize,this.options.baseUrl,ae),ae===null)return he;var _e='
      ",_e},Te.image=function(ae,le,he){if(ae=ie(this.options.sanitize,this.options.baseUrl,ae),ae===null)return he;var _e=''+he+'":">",_e},Te.text=function(ae){return ae},Ne}(),$e=function(){function Ne(){}var Te=Ne.prototype;return Te.strong=function(ae){return ae},Te.em=function(ae){return ae},Te.codespan=function(ae){return ae},Te.del=function(ae){return ae},Te.html=function(ae){return ae},Te.text=function(ae){return ae},Te.link=function(ae,le,he){return""+he},Te.image=function(ae,le,he){return""+he},Te.br=function(){return""},Ne}(),ct=function(){function Ne(){this.seen={}}var Te=Ne.prototype;return Te.slug=function(ae){var le=ae.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(le)){var he=le;do this.seen[he]++,le=he+"-"+this.seen[he];while(this.seen.hasOwnProperty(le))}return this.seen[le]=0,le},Ne}(),yt=P.defaults,Ut=z.unescape,We=function(){function Ne(Oe){this.options=Oe||yt,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $e,this.slugger=new ct}Ne.parse=function(ae,le){var he=new Ne(le);return he.parse(ae)};var Te=Ne.prototype;return Te.parse=function(ae,le){le===void 0&&(le=!0);var he="",_e,Se,ze,xt,Qt,sn,gt,zt,Ot,At,ft,be,Fe,Nt,bt,Kt,Zt,Ge,lt=ae.length;for(_e=0;_e0&&bt.tokens[0].type==="text"?(bt.tokens[0].text=Ge+" "+bt.tokens[0].text,bt.tokens[0].tokens&&bt.tokens[0].tokens.length>0&&bt.tokens[0].tokens[0].type==="text"&&(bt.tokens[0].tokens[0].text=Ge+" "+bt.tokens[0].tokens[0].text)):bt.tokens.unshift({type:"text",text:Ge}):Nt+=Ge),Nt+=this.parse(bt.tokens,Fe),Ot+=this.renderer.listitem(Nt,Zt,Kt);he+=this.renderer.list(Ot,ft,be);continue}case"html":{he+=this.renderer.html(At.text);continue}case"paragraph":{he+=this.renderer.paragraph(this.parseInline(At.tokens));continue}case"text":{for(Ot=At.tokens?this.parseInline(At.tokens):At.text;_e+1An error occurred:

      "+Pe(ze.message+"",!0)+"
      ";throw ze}}Ze.options=Ze.setOptions=function(Ne){return kt(Ze.defaults,Ne),ut(Ze.defaults),Ze},Ze.getDefaults=Ae,Ze.defaults=Et,Ze.use=function(Ne){var Te=kt({},Ne);if(Ne.renderer&&function(){var ae=Ze.defaults.renderer||new we,le=function(Se){var ze=ae[Se];ae[Se]=function(){for(var xt=arguments.length,Qt=new Array(xt),sn=0;sn`,triples:"",explode:"[]{}"},I=Y.Pos;Y.defineOption("autoCloseBrackets",!1,function(i,d,s){s&&s!=Y.Init&&(i.removeKeyMap(T),i.state.closeBrackets=null),d&&(R(F(d,"pairs")),i.state.closeBrackets=d,i.addKeyMap(T))});function F(i,d){return d=="pairs"&&typeof i=="string"?i:typeof i=="object"&&i[d]!=null?i[d]:B[d]}var T={Backspace:t,Enter:b};function R(i){for(var d=0;d=0;l--){var x=n[l].head;i.replaceRange("",I(x.line,x.ch-1),I(x.line,x.ch+1),"+delete")}}function b(i){var d=m(i),s=d&&F(d,"explode");if(!s||i.getOption("disableInput"))return Y.Pass;for(var n=i.listSelections(),l=0;l0;return{anchor:new I(i.anchor.line,i.anchor.ch+(d?-1:1)),head:new I(i.head.line,i.head.ch+(d?1:-1))}}function u(i,d){var s=m(i);if(!s||i.getOption("disableInput"))return Y.Pass;var n=F(s,"pairs"),l=n.indexOf(d);if(l==-1)return Y.Pass;for(var c=F(s,"closeBefore"),x=F(s,"triples"),A=n.charAt(l+1)==d,C=i.listSelections(),k=l%2==0,w,y=0;y=0&&i.getRange(p,I(p.line,p.ch+3))==d+d+d?v="skipThree":v="skip";else if(A&&p.ch>1&&x.indexOf(d)>=0&&i.getRange(I(p.line,p.ch-2),p)==d+d){if(p.ch>2&&/\bstring/.test(i.getTokenTypeAt(I(p.line,p.ch-2))))return Y.Pass;v="addFour"}else if(A){var E=p.ch==0?" ":i.getRange(I(p.line,p.ch-1),p);if(!Y.isWordChar(_)&&E!=d&&!Y.isWordChar(E))v="both";else return Y.Pass}else if(k&&(_.length===0||/\s/.test(_)||c.indexOf(_)>-1))v="both";else return Y.Pass;if(!w)w=v;else if(w!=v)return Y.Pass}var g=l%2?n.charAt(l-1):d,j=l%2?d:n.charAt(l+1);i.operation(function(){if(w=="skip")i.execCommand("goCharRight");else if(w=="skipThree")for(var U=0;U<3;U++)i.execCommand("goCharRight");else if(w=="surround"){for(var S=i.getSelections(),U=0;U3&&(m=L.call(m,1));for(var b=R.length,o=0;o4&&(m=L.call(m,1,m.length-1));for(var b=m[m.length-1],o=R.length,u=0;uthis._ux||s(A-this._yi)>this._uy||this._len<5;return this.addData(P.L,x,A),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(x,A):this._ctx.lineTo(x,A)),C&&(this._xi=x,this._yi=A),this},bezierCurveTo:function(x,A,C,k,w,y){return this.addData(P.C,x,A,C,k,w,y),this._ctx&&(this._needsDash()?this._dashedBezierTo(x,A,C,k,w,y):this._ctx.bezierCurveTo(x,A,C,k,w,y)),this._xi=w,this._yi=y,this},quadraticCurveTo:function(x,A,C,k){return this.addData(P.Q,x,A,C,k),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(x,A,C,k):this._ctx.quadraticCurveTo(x,A,C,k)),this._xi=C,this._yi=k,this},arc:function(x,A,C,k,w,y){return this.addData(P.A,x,A,C,C,k,w-k,0,y?0:1),this._ctx&&this._ctx.arc(x,A,C,k,w,y),this._xi=a(w)*C+x,this._yi=i(w)*C+A,this},arcTo:function(x,A,C,k,w){return this._ctx&&this._ctx.arcTo(x,A,C,k,w),this},rect:function(x,A,C,k){return this._ctx&&this._ctx.rect(x,A,C,k),this.addData(P.R,x,A,C,k),this},closePath:function(){this.addData(P.Z);var x=this._ctx,A=this._x0,C=this._y0;return x&&(this._needsDash()&&this._dashedLineTo(A,C),x.closePath()),this._xi=A,this._yi=C,this},fill:function(x){x&&x.fill(),this.toStatic()},stroke:function(x){x&&x.stroke(),this.toStatic()},setLineDash:function(x){if(x instanceof Array){this._lineDash=x,this._dashIdx=0;for(var A=0,C=0;CA.length&&(this._expandData(),A=this.data);for(var C=0;C0&&g<=x||v<0&&g>=x||v===0&&(_>0&&j<=A||_<0&&j>=A);){if(z=this._dashIdx,U=w[z],g+=v*U,j+=_*U,this._dashIdx=(z+1)%S,v>0&&gh||_>0&&jp)continue;y[z%2?"moveTo":"lineTo"](v>=0?u(g,x):f(g,x),_>=0?u(j,A):f(j,A))}v=g-x,_=j-A,this._dashOffset=-d(v*v+_*_)},_dashedBezierTo:function(x,A,C,k,w,y){var h=this._dashSum,p=this._dashOffset,v=this._lineDash,_=this._ctx,E=this._xi,g=this._yi,j,U,S,z=Y.cubicAt,H=0,M=this._dashIdx,V=v.length,K,$,Z=0;for(p<0&&(p=h+p),p%=h,j=0;j<1;j+=.1)U=z(E,x,C,w,j+.1)-z(E,x,C,w,j),S=z(g,A,k,y,j+.1)-z(g,A,k,y,j),H+=d(U*U+S*S);for(;Mp);M++);for(j=(Z-p)/H;j<=1;)K=z(E,x,C,w,j),$=z(g,A,k,y,j),M%2?_.moveTo(K,$):_.lineTo(K,$),j+=v[M]/H,M=(M+1)%V;M%2!==0&&_.lineTo(w,y),U=w-K,S=y-$,this._dashOffset=-d(U*U+S*S)},_dashedQuadraticTo:function(x,A,C,k){var w=C,y=k;C=(C+2*x)/3,k=(k+2*A)/3,x=(this._xi+2*x)/3,A=(this._yi+2*A)/3,this._dashedBezierTo(x,A,C,k,w,y)},toStatic:function(){var x=this.data;x instanceof Array&&(x.length=this._len,n&&(this.data=new Float32Array(x)))},getBoundingRect:function(){m[0]=m[1]=b[0]=b[1]=Number.MAX_VALUE,t[0]=t[1]=o[0]=o[1]=-Number.MAX_VALUE;for(var x=this.data,A=0,C=0,k=0,w=0,y=0;yv||s(p-y)>_||g===E-1)&&(x.lineTo(h,p),w=h,y=p);break;case P.C:x.bezierCurveTo(A[g++],A[g++],A[g++],A[g++],A[g++],A[g++]),w=A[g-2],y=A[g-1];break;case P.Q:x.quadraticCurveTo(A[g++],A[g++],A[g++],A[g++]),w=A[g-2],y=A[g-1];break;case P.A:var U=A[g++],S=A[g++],z=A[g++],H=A[g++],M=A[g++],V=A[g++],K=A[g++],$=A[g++],Z=z>H?z:H,me=z>H?1:z/H,oe=z>H?H/z:1,fe=Math.abs(z-H)>.001,ye=M+V;fe?(x.translate(U,S),x.rotate(K),x.scale(me,oe),x.arc(0,0,Z,M,ye,1-$),x.scale(1/me,1/oe),x.rotate(-K),x.translate(-U,-S)):x.arc(U,S,Z,M,ye,1-$),g===1&&(C=a(M)*z+U,k=i(M)*H+S),w=a(ye)*z+U,y=i(ye)*H+S;break;case P.R:C=w=A[g],k=y=A[g+1],x.rect(A[g++],A[g++],A[g++],A[g++]);break;case P.Z:x.closePath(),w=C,y=k}}}},l.CMD=P;var c=l;Be.exports=c},ItGF:function(Be,J){var L={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?L={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?L={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?L={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:L=B(navigator.userAgent);var Y=L;function B(I){var F={},T={},R=I.match(/Firefox\/([\d.]+)/),P=I.match(/MSIE\s([\d.]+)/)||I.match(/Trident\/.+?rv:(([\d.]+))/),m=I.match(/Edge\/([\d.]+)/),t=/micromessenger/i.test(I);return R&&(T.firefox=!0,T.version=R[1]),P&&(T.ie=!0,T.version=P[1]),m&&(T.edge=!0,T.version=m[1]),t&&(T.weChat=!0),{browser:T,os:F,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!T.ie&&!T.edge,pointerEventsSupported:"onpointerdown"in window&&(T.edge||T.ie&&T.version>=11),domSupported:typeof document!="undefined"}}Be.exports=Y},JYp7:function(Be,J,L){"use strict";L.d(J,"a",function(){return Y});var Y;(function(B){function I(c){return c&&typeof c=="object"&&typeof c[Symbol.iterator]=="function"}B.is=I;const F=Object.freeze([]);function T(){return F}B.empty=T;function*R(c){yield c}B.single=R;function P(c){return c||F}B.from=P;function m(c){return!c||c[Symbol.iterator]().next().done===!0}B.isEmpty=m;function t(c){return c[Symbol.iterator]().next().value}B.first=t;function b(c,x){for(const A of c)if(x(A))return!0;return!1}B.some=b;function o(c,x){for(const A of c)if(x(A))return A;return}B.find=o;function*u(c,x){for(const A of c)x(A)&&(yield A)}B.filter=u;function*f(c,x){let A=0;for(const C of c)yield x(C,A++)}B.map=f;function*a(...c){for(const x of c)for(const A of x)yield A}B.concat=a;function*i(c){for(const x of c)for(const A of x)yield A}B.concatNested=i;function d(c,x,A){let C=A;for(const k of c)C=x(C,k);return C}B.reduce=d;function*s(c,x,A=c.length){for(x<0&&(x+=c.length),A<0?A+=c.length:A>c.length&&(A=c.length);xC===k){const C=c[Symbol.iterator](),k=x[Symbol.iterator]();for(;;){const w=C.next(),y=k.next();if(w.done!==y.done)return!1;if(w.done)return!0;if(!A(w.value,y.value))return!1}}B.equals=l})(Y||(Y={}))},K2GJ:function(Be,J,L){var Y=L("fW2E"),B=L("gut8"),I=B.ContextCachedBy,F=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],T=function(u){this.extendFrom(u,!1)};function R(u,f,a){var i=f.x==null?0:f.x,d=f.x2==null?1:f.x2,s=f.y==null?0:f.y,n=f.y2==null?0:f.y2;f.global||(i=i*a.width+a.x,d=d*a.width+a.x,s=s*a.height+a.y,n=n*a.height+a.y),i=isNaN(i)?0:i,d=isNaN(d)?1:d,s=isNaN(s)?0:s,n=isNaN(n)?0:n;var l=u.createLinearGradient(i,s,d,n);return l}function P(u,f,a){var i=a.width,d=a.height,s=Math.min(i,d),n=f.x==null?.5:f.x,l=f.y==null?.5:f.y,c=f.r==null?.5:f.r;f.global||(n=n*i+a.x,l=l*d+a.y,c=c*s);var x=u.createRadialGradient(n,l,0,n,l,c);return x}T.prototype={constructor:T,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(u,f,a){var i=this,d=a&&a.style,s=!d||u.__attrCachedBy!==I.STYLE_BIND;u.__attrCachedBy=I.STYLE_BIND;for(var n=0;n0},extendFrom:function(u,f){if(u)for(var a in u)u.hasOwnProperty(a)&&(f===!0||(f===!1?!this.hasOwnProperty(a):u[a]!=null))&&(this[a]=u[a])},set:function(u,f){typeof u=="string"?this[u]=f:this.extendFrom(u,!0)},clone:function(){var u=new this.constructor;return u.extendFrom(this,!0),u},getGradient:function(u,f,a){for(var i=f.type==="radial"?P:R,d=i(u,f,a),s=f.colorStops,n=0;n=0)continue;if(!Object.prototype.hasOwnProperty.call(u,i))continue;a[i]=u[i]}return a}function m(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function t(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:u}function b(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}var o=function(u){b(f,u);function f(a){m(this,f);var i=t(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,a));return i.scrollListener=i.scrollListener.bind(i),i.eventListenerOptions=i.eventListenerOptions.bind(i),i.mousewheelListener=i.mousewheelListener.bind(i),i}return Y(f,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var i=this.getParentElement(this.scrollComponent);i.scrollTop=i.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var i=!1,d={get passive(){i=!0}};try{document.addEventListener("test",null,d),document.removeEventListener("test",null,d)}catch(s){}return i}},{key:"eventListenerOptions",value:function(){var i=this.props.useCapture;return this.isPassiveSupported()&&(i={useCapture:this.props.useCapture,passive:!0}),i}},{key:"setDefaultLoader",value:function(i){this.defaultLoader=i}},{key:"detachMousewheelListener",value:function(){var i=window;this.props.useWindow===!1&&(i=this.scrollComponent.parentNode),i.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var i=window;this.props.useWindow===!1&&(i=this.getParentElement(this.scrollComponent)),i.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(i){var d=this.props.getScrollParent&&this.props.getScrollParent();return d!=null?d:i&&i.parentNode}},{key:"filterProps",value:function(i){return i}},{key:"attachScrollListener",value:function(){var i=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!i)return;var d=window;this.props.useWindow===!1&&(d=i),d.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),d.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),d.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(i){i.deltaY===1&&!this.isPassiveSupported()&&i.preventDefault()}},{key:"scrollListener",value:function(){var i=this.scrollComponent,d=window,s=this.getParentElement(i),n=void 0;if(this.props.useWindow){var l=document.documentElement||document.body.parentNode||document.body,c=d.pageYOffset!==void 0?d.pageYOffset:l.scrollTop;this.props.isReverse?n=c:n=this.calculateOffset(i,c)}else this.props.isReverse?n=s.scrollTop:n=i.scrollHeight-s.scrollTop-s.clientHeight;n1&&arguments[1]!==void 0?arguments[1]:1,Oe=$e.length,ae=0;ae1&&arguments[1]!==void 0?arguments[1]:!1;return Object(k.a)(M).map(function(K,$){if(!T.isValidElement(K)||!K.type)return null;var Z=K.type.isSelectOptGroup,me=K.key,oe=K.props,fe=oe.children,ye=Object(P.a)(oe,["children"]);return V||!Z?w(K):Object(C.a)(Object(C.a)({key:"__RC_SELECT_GRP__".concat(me===null?$:me,"__"),label:me},ye),{},{options:y(fe)})}).filter(function(K){return K})}var h=L("2Qr1"),p=L("qNPg"),v=L("U8pU"),_=L("Kwbf"),E=L("WKfj");function g(M){var V=M.mode,K=M.options,$=M.children,Z=M.backfill,me=M.allowClear,oe=M.placeholder,fe=M.getInputElement,ye=M.showSearch,Ie=M.onSearch,ve=M.defaultOpen,de=M.autoFocus,Je=M.labelInValue,Rt=M.value,Ee=M.inputValue,Me=M.optionLabelProp,rt=V==="multiple"||V==="tags",He=ye!==void 0?ye:rt||V==="combobox",ke=K||y($);if(Object(_.a)(V!=="tags"||ke.every(function(we){return!we.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),V==="tags"||V==="combobox"){var ht=ke.some(function(we){return we.options?we.options.some(function($e){return typeof("value"in $e?$e.value:$e.key)=="number"}):typeof("value"in we?we.value:we.key)=="number"});Object(_.a)(!ht,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(_.a)(V!=="combobox"||!Me,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(_.a)(V==="combobox"||!Z,"`backfill` only works with `combobox` mode."),Object(_.a)(V==="combobox"||!fe,"`getInputElement` only work with `combobox` mode."),Object(_.b)(V!=="combobox"||!fe||!me||!oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ie&&!He&&V!=="combobox"&&V!=="tags"&&Object(_.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(_.b)(!ve||de,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Rt!=null){var ie=Object(E.d)(Rt);Object(_.a)(!Je||ie.every(function(we){return Object(v.a)(we)==="object"&&("key"in we||"value"in we)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(_.a)(!rt||Array.isArray(Rt),"`value` should be array when `mode` is `multiple` or `tags`")}if($){var xe=null;Object(k.a)($).some(function(we){if(!T.isValidElement(we)||!we.type)return!1;var $e=we.type;if($e.isSelectOption)return!1;if($e.isSelectOptGroup){var ct=Object(k.a)(we.props.children).every(function(yt){return!T.isValidElement(yt)||!we.type||yt.type.isSelectOption?!0:(xe=yt.type,!1)});return!ct}return xe=$e,!0}),xe&&Object(_.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(xe.displayName||xe.name||xe,"`.")),Object(_.a)(Ee===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var j=g,U=Object(p.a)({prefixCls:"rc-select",components:{optionList:n},convertChildrenToData:y,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:j,fillOptionsWithMissingValue:h.a}),S=function(M){Object(I.a)(K,M);var V=Object(F.a)(K);function K(){var $;return Object(Y.a)(this,K),$=V.apply(this,arguments),$.selectRef=T.createRef(),$.focus=function(){$.selectRef.current.focus()},$.blur=function(){$.selectRef.current.blur()},$}return Object(B.a)(K,[{key:"render",value:function(){return T.createElement(U,Object.assign({ref:this.selectRef},this.props))}}]),K}(T.Component);S.Option=c,S.OptGroup=A;var z=S,H=J.c=z},M8RZ:function(Be,J,L){"use strict";L.d(J,"a",function(){return t});var Y=L("fWQN"),B=L("mtLc"),I=L("yKVA"),F=L("879j"),T=L("q1tI"),R=L.n(T),P=L("i8i4"),m=L.n(P),t=function(b){Object(I.a)(u,b);var o=Object(F.a)(u);function u(f){var a;Object(Y.a)(this,u),a=o.call(this,f);var i=window.document;return a.node=i.createElement("div"),i.body.appendChild(a.node),a}return Object(B.a)(u,[{key:"render",value:function(){var a=this.props.children;return Object(P.createPortal)(a,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),u}(R.a.Component)},MEGo:function(Be,J,L){var Y=L("4fz+"),B=L("Dagg"),I=L("dqUG"),F=L("2fw6"),T=L("x6Kt"),R=L("rmlV"),P=L("yxFR"),m=L("y+Vt"),t=L("h7HQ"),b=L("1Jh7"),o=L("SKnc"),u=L("K2GJ"),f=L("Fofx"),a=L("NC18"),i=a.createFromString,d=L("bYtY"),s=d.isString,n=d.extend,l=d.defaults,c=d.trim,x=d.each,A=/[\s,]+/;function C(K){if(s(K)){var $=new DOMParser;K=$.parseFromString(K,"text/xml")}for(K.nodeType===9&&(K=K.firstChild);K.nodeName.toLowerCase()!=="svg"||K.nodeType!==1;)K=K.nextSibling;return K}function k(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}k.prototype.parse=function(K,$){$=$||{};var Z=C(K);if(!Z)throw new Error("Illegal svg");var me=new Y;this._root=me;var oe=Z.getAttribute("viewBox")||"",fe=parseFloat(Z.getAttribute("width")||$.width),ye=parseFloat(Z.getAttribute("height")||$.height);isNaN(fe)&&(fe=null),isNaN(ye)&&(ye=null),E(Z,me,null,!0);for(var Ie=Z.firstChild;Ie;)this._parseNode(Ie,me),Ie=Ie.nextSibling;var ve,de;if(oe){var Je=c(oe).split(A);Je.length>=4&&(ve={x:parseFloat(Je[0]||0),y:parseFloat(Je[1]||0),width:parseFloat(Je[2]),height:parseFloat(Je[3])})}if(ve&&fe!=null&&ye!=null&&(de=M(ve,fe,ye),!$.ignoreViewBox)){var Rt=me;me=new Y,me.add(Rt),Rt.scale=de.scale.slice(),Rt.position=de.position.slice()}return!$.ignoreRootClip&&fe!=null&&ye!=null&&me.setClipPath(new T({shape:{x:0,y:0,width:fe,height:ye}})),{root:me,width:fe,height:ye,viewBoxRect:ve,viewBoxTransform:de}},k.prototype._parseNode=function(K,$){var Z=K.nodeName.toLowerCase();Z==="defs"?this._isDefine=!0:Z==="text"&&(this._isText=!0);var me;if(this._isDefine){var oe=y[Z];if(oe){var fe=oe.call(this,K),ye=K.getAttribute("id");ye&&(this._defs[ye]=fe)}}else{var oe=w[Z];oe&&(me=oe.call(this,K,$),$.add(me))}for(var Ie=K.firstChild;Ie;)Ie.nodeType===1&&this._parseNode(Ie,me),Ie.nodeType===3&&this._isText&&this._parseText(Ie,me),Ie=Ie.nextSibling;Z==="defs"?this._isDefine=!1:Z==="text"&&(this._isText=!1)},k.prototype._parseText=function(K,$){if(K.nodeType===1){var Z=K.getAttribute("dx")||0,me=K.getAttribute("dy")||0;this._textX+=parseFloat(Z),this._textY+=parseFloat(me)}var oe=new I({style:{text:K.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});p($,oe),E(K,oe,this._defs);var fe=oe.style.fontSize;fe&&fe<9&&(oe.style.fontSize=9,oe.scale=oe.scale||[1,1],oe.scale[0]*=fe/9,oe.scale[1]*=fe/9);var ye=oe.getBoundingRect();return this._textX+=ye.width,$.add(oe),oe};var w={g:function(K,$){var Z=new Y;return p($,Z),E(K,Z,this._defs),Z},rect:function(K,$){var Z=new T;return p($,Z),E(K,Z,this._defs),Z.setShape({x:parseFloat(K.getAttribute("x")||0),y:parseFloat(K.getAttribute("y")||0),width:parseFloat(K.getAttribute("width")||0),height:parseFloat(K.getAttribute("height")||0)}),Z},circle:function(K,$){var Z=new F;return p($,Z),E(K,Z,this._defs),Z.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),r:parseFloat(K.getAttribute("r")||0)}),Z},line:function(K,$){var Z=new P;return p($,Z),E(K,Z,this._defs),Z.setShape({x1:parseFloat(K.getAttribute("x1")||0),y1:parseFloat(K.getAttribute("y1")||0),x2:parseFloat(K.getAttribute("x2")||0),y2:parseFloat(K.getAttribute("y2")||0)}),Z},ellipse:function(K,$){var Z=new R;return p($,Z),E(K,Z,this._defs),Z.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),rx:parseFloat(K.getAttribute("rx")||0),ry:parseFloat(K.getAttribute("ry")||0)}),Z},polygon:function(K,$){var Z=K.getAttribute("points");Z&&(Z=v(Z));var me=new t({shape:{points:Z||[]}});return p($,me),E(K,me,this._defs),me},polyline:function(K,$){var Z=new m;p($,Z),E(K,Z,this._defs);var me=K.getAttribute("points");me&&(me=v(me));var oe=new b({shape:{points:me||[]}});return oe},image:function(K,$){var Z=new B;return p($,Z),E(K,Z,this._defs),Z.setStyle({image:K.getAttribute("xlink:href"),x:K.getAttribute("x"),y:K.getAttribute("y"),width:K.getAttribute("width"),height:K.getAttribute("height")}),Z},text:function(K,$){var Z=K.getAttribute("x")||0,me=K.getAttribute("y")||0,oe=K.getAttribute("dx")||0,fe=K.getAttribute("dy")||0;this._textX=parseFloat(Z)+parseFloat(oe),this._textY=parseFloat(me)+parseFloat(fe);var ye=new Y;return p($,ye),E(K,ye,this._defs),ye},tspan:function(K,$){var Z=K.getAttribute("x"),me=K.getAttribute("y");Z!=null&&(this._textX=parseFloat(Z)),me!=null&&(this._textY=parseFloat(me));var oe=K.getAttribute("dx")||0,fe=K.getAttribute("dy")||0,ye=new Y;return p($,ye),E(K,ye,this._defs),this._textX+=oe,this._textY+=fe,ye},path:function(K,$){var Z=K.getAttribute("d")||"",me=i(Z);return p($,me),E(K,me,this._defs),me}},y={lineargradient:function(K){var $=parseInt(K.getAttribute("x1")||0,10),Z=parseInt(K.getAttribute("y1")||0,10),me=parseInt(K.getAttribute("x2")||10,10),oe=parseInt(K.getAttribute("y2")||0,10),fe=new o($,Z,me,oe);return h(K,fe),fe},radialgradient:function(K){}};function h(K,$){for(var Z=K.firstChild;Z;){if(Z.nodeType===1){var me=Z.getAttribute("offset");me.indexOf("%")>0?me=parseInt(me,10)/100:me?me=parseFloat(me):me=0;var oe=Z.getAttribute("stop-color")||"#000000";$.addColorStop(me,oe)}Z=Z.nextSibling}}function p(K,$){K&&K.__inheritedStyle&&($.__inheritedStyle||($.__inheritedStyle={}),l($.__inheritedStyle,K.__inheritedStyle))}function v(K){for(var $=c(K).split(A),Z=[],me=0;me<$.length;me+=2){var oe=parseFloat($[me]),fe=parseFloat($[me+1]);Z.push([oe,fe])}return Z}var _={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function E(K,$,Z,me){var oe=$.__inheritedStyle||{},fe=$.type==="text";if(K.nodeType===1&&(S(K,$),n(oe,H(K)),!me)){for(var ye in _)if(_.hasOwnProperty(ye)){var Ie=K.getAttribute(ye);Ie!=null&&(oe[_[ye]]=Ie)}}var ve=fe?"textFill":"fill",de=fe?"textStroke":"stroke";$.style=$.style||new u;var Je=$.style;oe.fill!=null&&Je.set(ve,j(oe.fill,Z)),oe.stroke!=null&&Je.set(de,j(oe.stroke,Z)),x(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Rt){var Ee=Rt==="lineWidth"&&fe?"textStrokeWidth":Rt;oe[Rt]!=null&&Je.set(Ee,parseFloat(oe[Rt]))}),(!oe.textBaseline||oe.textBaseline==="auto")&&(oe.textBaseline="alphabetic"),oe.textBaseline==="alphabetic"&&(oe.textBaseline="bottom"),oe.textAlign==="start"&&(oe.textAlign="left"),oe.textAlign==="end"&&(oe.textAlign="right"),x(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Rt){oe[Rt]!=null&&Je.set(Rt,oe[Rt])}),oe.lineDash&&($.style.lineDash=c(oe.lineDash).split(A)),Je[de]&&Je[de]!=="none"&&($[de]=!0),$.__inheritedStyle=oe}var g=/url\(\s*#(.*?)\)/;function j(K,$){var Z=$&&K&&K.match(g);if(Z){var me=c(Z[1]),oe=$[me];return oe}return K}var U=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function S(K,$){var Z=K.getAttribute("transform");if(Z){Z=Z.replace(/,/g," ");var me=null,oe=[];Z.replace(U,function(ve,de,Je){oe.push(de,Je)});for(var fe=oe.length-1;fe>0;fe-=2){var ye=oe[fe],Ie=oe[fe-1];me=me||f.create();switch(Ie){case"translate":ye=c(ye).split(A),f.translate(me,me,[parseFloat(ye[0]),parseFloat(ye[1]||0)]);break;case"scale":ye=c(ye).split(A),f.scale(me,me,[parseFloat(ye[0]),parseFloat(ye[1]||ye[0])]);break;case"rotate":ye=c(ye).split(A),f.rotate(me,me,parseFloat(ye[0]));break;case"skew":ye=c(ye).split(A),console.warn("Skew transform is not supported yet");break;case"matrix":var ye=c(ye).split(A);me[0]=parseFloat(ye[0]),me[1]=parseFloat(ye[1]),me[2]=parseFloat(ye[2]),me[3]=parseFloat(ye[3]),me[4]=parseFloat(ye[4]),me[5]=parseFloat(ye[5]);break}}$.setLocalTransform(me)}}var z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function H(K){var $=K.getAttribute("style"),Z={};if(!$)return Z;var me={};z.lastIndex=0;for(var oe;(oe=z.exec($))!=null;)me[oe[1]]=oe[2];for(var fe in _)_.hasOwnProperty(fe)&&me[fe]!=null&&(Z[_[fe]]=me[fe]);return Z}function M(K,$,Z){var me=$/K.width,oe=Z/K.height,fe=Math.min(me,oe),ye=[fe,fe],Ie=[-(K.x+K.width/2)*fe+$/2,-(K.y+K.height/2)*fe+Z/2];return{scale:ye,position:Ie}}function V(K,$){var Z=new k;return Z.parse(K,$)}J.parseXML=C,J.makeViewBoxTransform=M,J.parseSVG=V},MI8n:function(Be,J,L){"use strict";L.d(J,"c",function(){return T}),L.d(J,"b",function(){return t}),L.d(J,"e",function(){return b}),L.d(J,"a",function(){return o}),L.d(J,"d",function(){return u}),L.d(J,"f",function(){return f});var Y=L("/cxE"),B=L("pmY6"),I=L("24hK"),F=L("5Y4S"),T;(function(a){a.None=()=>B.a.None;function i(g){return(j,U=null,S)=>{let z=!1,H;return H=g(M=>z?void 0:(H?H.dispose():z=!0,j.call(U,M)),null,S),z&&H.dispose(),H}}a.once=i;function d(g,j){return A((U,S=null,z)=>g(H=>U.call(S,j(H)),null,z))}a.map=d;function s(g,j){return A((U,S=null,z)=>g(H=>{j(H),U.call(S,H)},null,z))}a.forEach=s;function n(g,j){return A((U,S=null,z)=>g(H=>j(H)&&U.call(S,H),null,z))}a.filter=n;function l(g){return g}a.signal=l;function c(...g){return(j,U=null,S)=>Object(B.e)(...g.map(z=>z(H=>j.call(U,H),null,S)))}a.any=c;function x(g,j,U){let S=U;return d(g,z=>(S=j(S,z),S))}a.reduce=x;function A(g){let j;const U=new t({onFirstListenerAdd(){j=g(U.fire,U)},onLastListenerRemove(){j.dispose()}});return U.event}function C(g,j,U=100,S=!1,z){let H,M,V,K=0;const $=new t({leakWarningThreshold:z,onFirstListenerAdd(){H=g(Z=>{K++,M=j(M,Z),S&&!V&&($.fire(M),M=void 0),clearTimeout(V),V=setTimeout(()=>{const me=M;M=void 0,V=void 0,(!S||K>1)&&$.fire(me),K=0},U)})},onLastListenerRemove(){H.dispose()}});return $.event}a.debounce=C;function k(g,j=(U,S)=>U===S){let U=!0,S;return n(g,z=>{const H=U||!j(z,S);return U=!1,S=z,H})}a.latch=k;function w(g,j){return[a.filter(g,j),a.filter(g,U=>!j(U))]}a.split=w;function y(g,j=!1,U=[]){let S=U.slice(),z=g(V=>{S?S.push(V):M.fire(V)});const H=()=>{S&&S.forEach(V=>M.fire(V)),S=null},M=new t({onFirstListenerAdd(){z||(z=g(V=>M.fire(V)))},onFirstListenerDidAdd(){S&&(j?setTimeout(H):H())},onLastListenerRemove(){z&&z.dispose(),z=null}});return M.event}a.buffer=y;class h{constructor(g){this.event=g}map(g){return new h(d(this.event,g))}forEach(g){return new h(s(this.event,g))}filter(g){return new h(n(this.event,g))}reduce(g,j){return new h(x(this.event,g,j))}latch(){return new h(k(this.event))}debounce(g,j=100,U=!1,S){return new h(C(this.event,g,j,U,S))}on(g,j,U){return this.event(g,j,U)}once(g,j,U){return i(this.event)(g,j,U)}}function p(g){return new h(g)}a.chain=p;function v(g,j,U=S=>S){const S=(...V)=>M.fire(U(...V)),z=()=>g.on(j,S),H=()=>g.removeListener(j,S),M=new t({onFirstListenerAdd:z,onLastListenerRemove:H});return M.event}a.fromNodeEventEmitter=v;function _(g,j,U=S=>S){const S=(...V)=>M.fire(U(...V)),z=()=>g.addEventListener(j,S),H=()=>g.removeEventListener(j,S),M=new t({onFirstListenerAdd:z,onLastListenerRemove:H});return M.event}a.fromDOMEventEmitter=_;function E(g){return new Promise(j=>i(g)(j))}a.toPromise=E})(T||(T={}));class R{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${R._idPool++}`}start(a){this._stopWatch=new F.a(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}R._idPool=0;let P=-1;class m{constructor(a,i=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=i,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let i=P;if(typeof this.customThreshold=="number"&&(i=this.customThreshold),i<=0||a{const n=this._stacks.get(d)||0;this._stacks.set(d,n-1)}}}class t{constructor(a){var i;this._disposed=!1,this._options=a,this._leakageMon=P>0?new m(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((i=this._options)===null||i===void 0?void 0:i._profName)?new R(this._options._profName):void 0}get event(){return this._event||(this._event=(a,i,d)=>{var s;this._listeners||(this._listeners=new I.a);const n=this._listeners.isEmpty();n&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const l=this._listeners.push(i?[a,i]:a);n&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,i);const c=(s=this._leakageMon)===null||s===void 0?void 0:s.check(this._listeners.size),x=Object(B.i)(()=>{if(c&&c(),!this._disposed&&(l(),this._options&&this._options.onLastListenerRemove)){const A=this._listeners&&!this._listeners.isEmpty();A||this._options.onLastListenerRemove(this)}});return d instanceof B.b?d.add(x):Array.isArray(d)&&d.push(x),x}),this._event}fire(a){var i,d;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(let s of this._listeners)this._deliveryQueue.push([s,a]);for((i=this._perfMon)===null||i===void 0||i.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[s,n]=this._deliveryQueue.shift();try{typeof s=="function"?s.call(void 0,n):s[0].call(s[1],n)}catch(l){Object(Y.f)(l)}}(d=this._perfMon)===null||d===void 0||d.stop()}}dispose(){var a,i,d,s,n;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(i=this._deliveryQueue)===null||i===void 0||i.clear(),(s=(d=this._options)===null||d===void 0?void 0:d.onLastListenerRemove)===null||s===void 0||s.call(d),(n=this._leakageMon)===null||n===void 0||n.dispose())}}class b extends t{constructor(a){super(a);this._isPaused=0,this._eventQueue=new I.a,this._mergeFn=a==null?void 0:a.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}class o extends b{constructor(a){var i;super(a);this._delay=(i=a.delay)!==null&&i!==void 0?i:100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}class u{constructor(){this.buffers=[]}wrapEvent(a){return(i,d,s)=>a(n=>{const l=this.buffers[this.buffers.length-1];l?l.push(()=>i.call(d,n)):i.call(d,n)},void 0,s)}bufferEvents(a){const i=[];this.buffers.push(i);const d=a();return this.buffers.pop(),i.forEach(s=>s()),d}}class f{constructor(){this.listening=!1,this.inputEvent=T.None,this.inputEventListener=B.a.None,this.emitter=new t({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MKOG:function(Be,J,L){var Y=L("bYtY"),B=L("YH21"),I=B.Dispatcher,F=L("mLcG"),T=L("Bq2U"),R=function(m){m=m||{},this.stage=m.stage||{},this.onframe=m.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,I.call(this)};R.prototype={constructor:R,addClip:function(m){this._clips.push(m)},addAnimator:function(m){m.animation=this;for(var t=m.getClips(),b=0;b=0&&this._clips.splice(t,1)},removeAnimator:function(m){for(var t=m.getClips(),b=0;b=0,R=i.indexOf("Macintosh")>=0,o=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,P=i.indexOf("Linux")>=0,b=!0,u=navigator.language,f=u;else if(typeof s=="object"){T=s.platform==="win32",R=s.platform==="darwin",P=s.platform==="linux",m=P&&!!s.env.SNAP&&!!s.env.SNAP_REVISION,u=F,f=F;const g=s.env.VSCODE_NLS_CONFIG;if(g)try{const j=JSON.parse(g),U=j.availableLanguages["*"];u=j.locale,f=U||F,a=j._translationsConfigFile}catch(j){}t=!0}else console.error("Unable to resolve platform.");let l=0;R?l=1:T?l=3:P&&(l=2);const c=T,x=R,A=P,C=t,k=b,w=o,y=i,h=function(){if(d.setImmediate)return d.setImmediate.bind(d);if(typeof d.postMessage=="function"&&!d.importScripts){let U=[];d.addEventListener("message",z=>{if(z.data&&z.data.vscodeSetImmediateId)for(let H=0,M=U.length;H{const H=++S;U.push({id:H,callback:z}),d.postMessage({vscodeSetImmediateId:H},"*")}}if(typeof(s==null?void 0:s.nextTick)=="function")return s.nextTick.bind(s);const j=Promise.resolve();return U=>j.then(U)}(),p=R||o?2:T?1:3;let v=!0,_=!1;function E(){if(!_){_=!0;const g=new Uint8Array(2);g[0]=1,g[1]=2;const j=new Uint16Array(g.buffer);v=j[0]===(2<<8)+1}return v}}).call(this,L("IyRk"),L("Q2Ig"))},N0LK:function(Be,J,L){"use strict";L.d(J,"C",function(){return Y}),L.d(J,"v",function(){return I}),L.d(J,"s",function(){return F}),L.d(J,"t",function(){return T}),L.d(J,"U",function(){return R}),L.d(J,"J",function(){return P}),L.d(J,"O",function(){return m}),L.d(J,"p",function(){return t}),L.d(J,"T",function(){return b}),L.d(J,"q",function(){return o}),L.d(J,"N",function(){return u}),L.d(J,"M",function(){return f}),L.d(J,"Q",function(){return a}),L.d(J,"u",function(){return i}),L.d(J,"x",function(){return d}),L.d(J,"I",function(){return s}),L.d(J,"f",function(){return n}),L.d(J,"h",function(){return l}),L.d(J,"g",function(){return c}),L.d(J,"i",function(){return x}),L.d(J,"G",function(){return A}),L.d(J,"H",function(){return C}),L.d(J,"r",function(){return k}),L.d(J,"R",function(){return w}),L.d(J,"d",function(){return y}),L.d(J,"e",function(){return h}),L.d(J,"E",function(){return p}),L.d(J,"F",function(){return v}),L.d(J,"j",function(){return _}),L.d(J,"z",function(){return E}),L.d(J,"K",function(){return j}),L.d(J,"L",function(){return U}),L.d(J,"m",function(){return z}),L.d(J,"k",function(){return M}),L.d(J,"A",function(){return K}),L.d(J,"a",function(){return $}),L.d(J,"n",function(){return Z}),L.d(J,"l",function(){return me}),L.d(J,"D",function(){return oe}),L.d(J,"B",function(){return fe}),L.d(J,"b",function(){return ye}),L.d(J,"S",function(){return Ie}),L.d(J,"o",function(){return ve}),L.d(J,"P",function(){return de}),L.d(J,"w",function(){return Qe}),L.d(J,"c",function(){return Rt}),L.d(J,"y",function(){return nt});function Y(ie){return!ie||typeof ie!="string"?!0:ie.trim().length===0}const B=/{(\d+)}/g;function I(ie,...xe){return xe.length===0?ie:ie.replace(B,function(we,$e){const ct=parseInt($e,10);return isNaN(ct)||ct<0||ct>=xe.length?we:xe[ct]})}function F(ie){return ie.replace(/[<>&]/g,function(xe){switch(xe){case"<":return"<";case">":return">";case"&":return"&";default:return xe}})}function T(ie){return ie.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function R(ie,xe=" "){const we=P(ie,xe);return m(we,xe)}function P(ie,xe){if(!ie||!xe)return ie;const we=xe.length;if(we===0||ie.length===0)return ie;let $e=0;for(;ie.indexOf(xe,$e)===$e;)$e=$e+we;return ie.substring($e)}function m(ie,xe){if(!ie||!xe)return ie;const we=xe.length,$e=ie.length;if(we===0||$e===0)return ie;let ct=$e,vt=-1;for(;!(vt=ie.lastIndexOf(xe,ct-1),vt===-1||vt+we!==ct);){if(vt===0)return"";ct=vt}return ie.substring(0,ct)}function t(ie){return ie.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function b(ie){return ie.replace(/\*/g,"")}function o(ie,xe,we={}){if(!ie)throw new Error("Cannot create regex from empty string");xe||(ie=T(ie)),we.wholeWord&&(/\B/.test(ie.charAt(0))||(ie="\\b"+ie),/\B/.test(ie.charAt(ie.length-1))||(ie=ie+"\\b"));let $e="";return we.global&&($e+="g"),we.matchCase||($e+="i"),we.multiline&&($e+="m"),we.unicode&&($e+="u"),new RegExp(ie,$e)}function u(ie){if(ie.source==="^"||ie.source==="^$"||ie.source==="$"||ie.source==="^\\s*$")return!1;const xe=ie.exec("");return!!(xe&&ie.lastIndex===0)}function f(ie){return(ie.global?"g":"")+(ie.ignoreCase?"i":"")+(ie.multiline?"m":"")+(ie.unicode?"u":"")}function a(ie){return ie.split(/\r\n|\r|\n/)}function i(ie){for(let xe=0,we=ie.length;xe=0;we--){const $e=ie.charCodeAt(we);if($e!==32&&$e!==9)return we}return-1}function n(ie,xe){return iexe?1:0}function l(ie,xe,we=0,$e=ie.length,ct=0,vt=xe.length){for(;we<$e&&ctZt)return 1}const Ut=$e-we,We=vt-ct;return UtWe?1:0}function c(ie,xe){return x(ie,xe,0,ie.length,0,xe.length)}function x(ie,xe,we=0,$e=ie.length,ct=0,vt=xe.length){for(;we<$e&&ct=128||Zt>=128)return l(ie.toLowerCase(),xe.toLowerCase(),we,$e,ct,vt);A(kt)&&(kt-=32),A(Zt)&&(Zt-=32);const Le=kt-Zt;if(Le===0)continue;return Le}const Ut=$e-we,We=vt-ct;return UtWe?1:0}function A(ie){return ie>=97&&ie<=122}function C(ie){return ie>=65&&ie<=90}function k(ie,xe){return ie.length===xe.length&&x(ie,xe)===0}function w(ie,xe){const we=xe.length;return xe.length>ie.length?!1:x(ie,xe,0,we)===0}function y(ie,xe){let we,$e=Math.min(ie.length,xe.length);for(we=0;we<$e;we++)if(ie.charCodeAt(we)!==xe.charCodeAt(we))return we;return $e}function h(ie,xe){let we,$e=Math.min(ie.length,xe.length);const ct=ie.length-1,vt=xe.length-1;for(we=0;we<$e;we++)if(ie.charCodeAt(ct-we)!==xe.charCodeAt(vt-we))return we;return $e}function p(ie){return 55296<=ie&&ie<=56319}function v(ie){return 56320<=ie&&ie<=57343}function _(ie,xe){return(ie-55296<<10)+(xe-56320)+65536}function E(ie,xe,we){const $e=ie.charCodeAt(we);if(p($e)&&we+11){const $e=ie.charCodeAt(xe-2);if(p($e))return _($e,we)}return we}function j(ie,xe){const we=Ee.getInstance(),$e=xe,ct=ie.length,vt=E(ie,ct,xe);xe+=vt>=65536?2:1;let Ut=we.getGraphemeBreakType(vt);for(;xe=65536?2:1,Ut=kt}return xe-$e}function U(ie,xe){const we=Ee.getInstance(),$e=xe,ct=g(ie,xe);xe-=ct>=65536?2:1;let vt=we.getGraphemeBreakType(ct);for(;xe>0;){const Ut=g(ie,xe),We=we.getGraphemeBreakType(Ut);if(Rt(We,vt))break;xe-=Ut>=65536?2:1,vt=We}return $e-xe}const S=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function z(ie){return S.test(ie)}const H=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function M(ie){return H.test(ie)}const V=/^[\t\n\r\x20-\x7E]*$/;function K(ie){return V.test(ie)}const $=/[\u2028\u2029]/;function Z(ie){return $.test(ie)}function me(ie){for(let xe=0,we=ie.length;xe=11904&&ie<=55215||ie>=63744&&ie<=64255||ie>=65281&&ie<=65374}function fe(ie){return ie>=127462&&ie<=127487||ie===8986||ie===8987||ie===9200||ie===9203||ie>=9728&&ie<=10175||ie===11088||ie===11093||ie>=127744&&ie<=128591||ie>=128640&&ie<=128764||ie>=128992&&ie<=129003||ie>=129280&&ie<=129535||ie>=129648&&ie<=129750}const ye=String.fromCharCode(65279);function Ie(ie){return!!(ie&&ie.length>0&&ie.charCodeAt(0)===65279)}function ve(ie,xe=!1){return ie?(xe&&(ie=ie.replace(/\\./g,"")),ie.toLowerCase()!==ie):!1}function de(ie){const xe=90-65+1;return ie=ie%(2*xe),iexe[3*$e+1])$e=2*$e+1;else return xe[3*$e+2];return 0}}Ee._INSTANCE=null;function Me(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function nt(ie,xe){if(ie===0)return 0;const we=He(ie,xe);if(we!==void 0)return we;const $e=g(xe,ie);return ie-=ke($e),ie}function He(ie,xe){let we=g(xe,ie);for(ie-=ke(we);ht(we)||we===65039||we===8419;){if(ie===0)return;we=g(xe,ie),ie-=ke(we)}if(!fe(we))return;if(ie>=0){const $e=g(xe,ie);$e===8205&&(ie-=ke($e))}return ie}function ke(ie){return ie>=65536?2:1}function ht(ie){return 127995<=ie&&ie<=127999}},NC18:function(Be,J,L){var Y=L("y+Vt"),B=L("IMiH"),I=L("7oTu"),F=Math.sqrt,T=Math.sin,R=Math.cos,P=Math.PI,m=function(l){return Math.sqrt(l[0]*l[0]+l[1]*l[1])},t=function(l,c){return(l[0]*c[0]+l[1]*c[1])/(m(l)*m(c))},b=function(l,c){return(l[0]*c[1]1&&(w*=F(j),y*=F(j));var U=(C===k?-1:1)*F((w*w*(y*y)-w*w*(g*g)-y*y*(E*E))/(w*w*(g*g)+y*y*(E*E)))||0,S=U*w*g/y,z=U*-y*E/w,H=(l+x)/2+R(_)*S-T(_)*z,M=(c+A)/2+T(_)*S+R(_)*z,V=b([1,0],[(E-S)/w,(g-z)/y]),K=[(E-S)/w,(g-z)/y],$=[(-1*E-S)/w,(-1*g-z)/y],Z=b(K,$);t(K,$)<=-1&&(Z=P),t(K,$)>=1&&(Z=0),k===0&&Z>0&&(Z=Z-2*P),k===1&&Z<0&&(Z=Z+2*P),v.addData(p,H,M,w,y,V,Z,_,k)}var u=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,f=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function a(l){if(!l)return new B;for(var c=0,x=0,A=c,C=x,k,w=new B,y=B.CMD,h=l.match(u),p=0;p1&&arguments[1]!==void 0?arguments[1]:!1;return!!(x(p)&&A(v))},x=function(p){return Object(o.p)()?!0:(p({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},A=function(){var p,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,_=Object(b.c)()._store.getState(),E=_.user;return(p=E.userInfo)!==null&&p!==void 0&&p.profile_completed?!0:(T.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:v?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){b.d.push("/account/profile/edit")}}),!1)},C=function(){var p,v=Object(b.c)()._store.getState(),_=v.user;return(p=_.userInfo)!==null&&p!==void 0&&p.professional_certification?!0:(T.a.confirm({title:"\u63D0\u793A",centered:!0,content:t.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(u.S)("/account/certification")}}),!1)},k=function(){return Object(o.a)()?!0:(T.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc",style:{marginLeft:-38}},t.a.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),t.a.createElement("img",{src:l.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},w=function(p,v){return p?!0:(T.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:t.a.createElement("div",null,t.a.createElement("p",null,v||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),t.a.createElement("div",{style:{marginLeft:"110px"}},t.a.createElement("img",{src:s.a,width:200}),t.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(u.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},y=function(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",_=Object(b.c)()._store.getState(),E=_.shixunsDetail.detail;return(E==null?void 0:E.public)===2||(E==null?void 0:E.public)===1||(E==null?void 0:E.shixun_status)===3?(T.a.info({centered:!0,icon:t.a.createElement(f.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc",style:{marginLeft:-38}},t.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},t.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(E==null?void 0:E.public)===2?"\u5DF2\u516C\u5F00":(E==null?void 0:E.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",v,"\u3002"),t.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),t.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:i.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(E==null?void 0:E.shixun_status)===2?(T.a.confirm({centered:!0,icon:t.a.createElement(f.a,null),title:"\u63D0\u793A",content:t.a.createElement("div",null,t.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",v,"\u3002"),t.a.createElement("br",null),t.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){T.a.confirm({width:440,centered:!0,icon:t.a.createElement(f.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var j=Object(I.a)(P.a.mark(function S(){var z;return P.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,p({type:"shixunsDetail/cancelRelease",payload:{id:E==null?void 0:E.identifier}});case 2:z=M.sent,z.status!==401&&(B.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),p({type:"shixunsDetail/getShixunsDetail",payload:{id:E==null?void 0:E.identifier}}),p({type:"practiceSetting/getCommonData",payload:{id:E==null?void 0:E.identifier}}));case 4:case"end":return M.stop()}},S)}));function U(){return j.apply(this,arguments)}return U}()})}}),!0):!1}},NoGO:function(Be,J,L){Be.exports=L.p+"static/newqrcode.d852fdfc.png"},NohK:function(Be,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.default=void 0;var Y=function(I){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,T=null;return function(){for(var R=this,P=arguments.length,m=new Array(P),t=0;t=0;d-=1){var s=m.get(d)||new Set;s.forEach(function(n){var l=n.parent,c=n.node;if(b(c)||!n.parent||i.has(n.parent.key))return;if(b(n.parent.node)){i.add(l.key);return}var x=!0,A=!1;(l.children||[]).filter(function(C){return!b(C.node)}).forEach(function(C){var k=C.key,w=o.has(k);x&&!w&&(x=!1),!A&&(w||u.has(k))&&(A=!0)}),x&&o.add(l.key),A&&u.add(l.key),i.add(l.key)})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(B(u,o))}}function T(P,m,t,b,o){for(var u=new Set(P),f=new Set(m),a=0;a<=b;a+=1){var i=t.get(a)||new Set;i.forEach(function(l){var c=l.key,x=l.node,A=l.children,C=A===void 0?[]:A;!u.has(c)&&!f.has(c)&&!o(x)&&C.filter(function(k){return!o(k.node)}).forEach(function(k){u.delete(k.key)})})}f=new Set;for(var d=new Set,s=b;s>=0;s-=1){var n=t.get(s)||new Set;n.forEach(function(l){var c=l.parent,x=l.node;if(o(x)||!l.parent||d.has(l.parent.key))return;if(o(l.parent.node)){d.add(c.key);return}var A=!0,C=!1;(c.children||[]).filter(function(k){return!o(k.node)}).forEach(function(k){var w=k.key,y=u.has(w);A&&!y&&(A=!1),!C&&(y||f.has(w))&&(C=!0)}),A||u.delete(c.key),C&&f.add(c.key),d.add(c.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(B(f,u))}}function R(P,m,t,b){var o=[],u;b?u=b:u=I;var f=new Set(P.filter(function(s){var n=!!t[s];return n||o.push(s),n})),a=new Map,i=0;Object.keys(t).forEach(function(s){var n=t[s],l=n.level,c=a.get(l);c||(c=new Set,a.set(l,c)),c.add(n),i=Math.max(i,l)}),Object(Y.a)(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var d;return m===!0?d=F(f,a,i,u):d=T(f,m.halfCheckedKeys,a,i,u),d}},OLES:function(Be,J,L){"use strict";var Y=L("U8pU"),B=L("VTBJ"),I=L("Ff2n"),F=L("q1tI"),T=L("uciX"),R=L("7ixt"),P=function(f){var a=f.overlay,i=f.prefixCls,d=f.id,s=f.overlayInnerStyle;return F.createElement("div",{className:"".concat(i,"-inner"),id:d,role:"tooltip",style:s},typeof a=="function"?a():a)},m=P,t=function(f,a){var i=f.overlayClassName,d=f.trigger,s=d===void 0?["hover"]:d,n=f.mouseEnterDelay,l=n===void 0?0:n,c=f.mouseLeaveDelay,x=c===void 0?.1:c,A=f.overlayStyle,C=f.prefixCls,k=C===void 0?"rc-tooltip":C,w=f.children,y=f.onVisibleChange,h=f.afterVisibleChange,p=f.transitionName,v=f.animation,_=f.placement,E=_===void 0?"right":_,g=f.align,j=g===void 0?{}:g,U=f.destroyTooltipOnHide,S=U===void 0?!1:U,z=f.defaultVisible,H=f.getTooltipContainer,M=f.overlayInnerStyle,V=Object(I.a)(f,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),K=Object(F.useRef)(null);Object(F.useImperativeHandle)(a,function(){return K.current});var $=Object(B.a)({},V);"visible"in f&&($.popupVisible=f.visible);var Z=function(){var Ie=f.arrowContent,ve=Ie===void 0?null:Ie,de=f.overlay,Qe=f.id;return[F.createElement("div",{className:"".concat(k,"-arrow"),key:"arrow"},ve),F.createElement(m,{key:"content",prefixCls:k,id:Qe,overlay:de,overlayInnerStyle:M})]},me=!1,oe=!1;if(typeof S=="boolean")me=S;else if(S&&Object(Y.a)(S)==="object"){var fe=S.keepParent;me=fe===!0,oe=fe===!1}return F.createElement(T.a,Object.assign({popupClassName:i,prefixCls:k,popup:Z,action:s,builtinPlacements:R.a,popupPlacement:E,ref:K,popupAlign:j,getPopupContainer:H,onPopupVisibleChange:y,afterPopupVisibleChange:h,popupTransitionName:p,popupAnimation:v,defaultPopupVisible:z,destroyPopupOnHide:me,autoDestroy:oe,mouseLeaveDelay:x,popupStyle:A,mouseEnterDelay:l},$),w)},b=Object(F.forwardRef)(t),o=J.a=b},OS9S:function(Be,J,L){var Y=L("bYtY"),B=Y.inherits,I=L("Gev7"),F=L("mFDi");function T(m){I.call(this,m),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}T.prototype.incremental=!0,T.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},T.prototype.addDisplayable=function(m,t){t?this._temporaryDisplayables.push(m):this._displayables.push(m),this.dirty()},T.prototype.addDisplayables=function(m,t){t=t||!1;for(var b=0;b=0&&w.splice(y,1),w}function o(C,k){var w=C.slice();return w.indexOf(k)===-1&&w.push(k),w}function u(C){return C.split("-")}function f(C,k){return"".concat(C,"-").concat(k)}function a(C){return C&&C.type&&C.type.isTreeNode}function i(C,k){var w=[C],y=k[C];function h(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];p.forEach(function(v){var _=v.key,E=v.children;w.push(_),h(E)})}return h(y.children),w}function d(C,k){var w=C.clientY,y=k.selectHandle.getBoundingClientRect(),h=y.top,p=y.bottom,v=y.height,_=Math.max(v*m,t);return w<=h+_?-1:w>=p-_?1:0}function s(C,k){if(!C)return;var w=k.multiple;return w?C.slice():C.length?[C[0]]:C}var n=function(k){return k};function l(C,k){if(!C)return[];var w=k||{},y=w.processProps,h=y===void 0?n:y,p=Array.isArray(C)?C:[C];return p.map(function(v){var _=v.children,E=Object(I.a)(v,["children"]),g=l(_,k);return T.a.createElement(P.a,Object.assign({},h(E)),g)})}function c(C){if(!C)return null;var k;if(Array.isArray(C))k={checkedKeys:C,halfCheckedKeys:void 0};else if(Object(B.a)(C)==="object")k={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return Object(R.a)(!1,"`checkedKeys` is not an array or an object"),null;return k}function x(C,k){var w=new Set;function y(h){if(w.has(h))return;var p=k[h];if(!p)return;w.add(h);var v=p.parent,_=p.node;if(_.disabled)return;v&&y(v.key)}return(C||[]).forEach(function(h){y(h)}),Object(Y.a)(w)}function A(C){var k={};return Object.keys(C).forEach(function(w){(w.startsWith("data-")||w.startsWith("aria-"))&&(k[w]=C[w])}),k}},Ot1p:function(Be,J,L){"use strict";var Y=L("2qtc"),B=L("kLXV"),I=L("rAM+"),F=L("miYZ"),T=L("tsqr"),R=L("9og8"),P=L("tJVT"),m=L("jrin"),t=L("WmNS"),b=L.n(t),o=L("q1tI"),u=L.n(o),f=L("VrN/"),a=L.n(f),i=L("bdgK"),d=L("p77/"),s=L("Bd2K"),n=L("ELLl"),l=L("19Vz"),c=L("lZu9"),x=L("+NIl"),A=L("kSUc"),C=L("9Bee"),k=function(Se){var ze=Se.value,Et=ze===void 0?"":ze,$t=Se.className,on=Se.showTextOnly,gt=Se.showLines,Kt=Se.style,Ot=Kt===void 0?{}:Kt,At=Object(o.useMemo)(function(){return""},[Et]);return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{dangerouslySetInnerHTML:{__html:At}}))},w=L("0Owb"),y=L("dejd"),h=L("C+DQ"),p=L("1vsH"),v=L("m3rI"),_=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function E(Se){var ze=Se.onActionCallback,Et=Se.title,$t=Se.icon,on=Se.actionName,gt=Se.className,Kt=gt===void 0?"":gt,Ot=Se.children;function At(){ze(on)}return u.a.createElement("a",{title:Et,className:Kt,onClick:At},u.a.createElement("i",{className:"md-iconfont ".concat($t)}),Ot)}var g=function(Se){var ze=Se.watch,Et=Se.showNullButton,$t=Se.onActionCallback,on=Se.fullScreen,gt=Se.insertTemp,Kt=Se.hidetoolBar,Ot=Se.uuid,At=Se.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(p.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(p.F)("_educoder_session"),"&key=").concat(Ot,"&api=").concat(encodeURIComponent(v.a.PROXY_SERVER)));var ft=[].concat(_,[{title:"".concat(ze?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ze?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return u.a.createElement("ul",{className:"markdown-toolbar-container"},!Kt&&ft.map(function(be,Fe){return u.a.createElement("li",{key:Fe},be.actionName?u.a.createElement(E,Object(w.a)({},be,{onActionCallback:$t})):u.a.createElement("span",{className:"v-line"}))}),Et?u.a.createElement("li",null,u.a.createElement(E,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$t},u.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,gt&&u.a.createElement("li",null,u.a.createElement(E,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(gt),onActionCallback:$t},u.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),u.a.createElement("li",{className:"btn-full-screen"},u.a.createElement(E,{icon:"".concat(on?"icon-shrink":"icon-enlarge"),title:on?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:$t})))},j=L("M8RZ"),U=L("+L6B"),S=L("2/Rp"),z=L("y8nQ"),H=L("Vl3Y"),M=L("5NDa"),V=L("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},$=function(Se){var ze=Se.callback,Et=Se.onCancel;function $t(on){ze(on)}return u.a.createElement(H.a,Object(w.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$t}),u.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},u.a.createElement(V.a,null)),u.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},u.a.createElement(V.a,null)),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(S.a,{type:"ghost",onClick:Et},"\u53D6\u6D88")))},Z=L("7ahc"),me=L("HmJG"),oe=L("BjJ7"),fe=H.a.useForm,ye={width:280,marginRight:10},Ie={labelCol:{span:5},wrapperCol:{span:19}},ve=function(Se){var ze=Se.callback,Et=Se.onCancel,$t=fe(),on=Object(P.a)($t,1),gt=on[0];function Kt(ft){ze(ft)}function Ot(ft,be){if(ft.status===-1){T.b.error(ft.message);return}gt.setFieldsValue({src:"/api/attachments/".concat(ft.id),type:be.type})}function At(ft){var be=ft.target.files[0];Qe(be,Ot)}return u.a.createElement(H.a,Object(w.a)({form:gt},Ie,{className:"upload-image-panel",onFinish:Kt}),u.a.createElement(H.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},u.a.createElement("div",{className:"flex-container"},u.a.createElement(H.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},u.a.createElement(V.a,{style:ye})),u.a.createElement(de,{onFileChange:At}))),u.a.createElement(H.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},u.a.createElement(V.a,{style:{width:264}})),u.a.createElement(H.a.Item,{style:{textAlign:"right"}},u.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(S.a,{type:"ghost",onClick:Et},"\u53D6\u6D88")))};function de(Se){var ze=Se.onFileChange;return u.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",u.a.createElement("input",{type:"file",onChange:ze}))}function Qe(Se,ze){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");var Et=new FormData;Et.append("editormd-image-file",Se),Et.append("file_param_name","editormd-image-file"),Et.append("byxhr","true");var $t=new window.XMLHttpRequest;$t.withCredentials=!0,$t.addEventListener("load",function(on){ze(JSON.parse(on.target.responseText),Se)},!1),$t.addEventListener("error",function(on){console.error(on)},!1),$t.open("POST","".concat(oe.a,"/api/attachments.json")),$t.send(Et)}var Rt=L("giR+"),Ee=L("fyUT"),Me=L("7Kak"),nt=L("9yH6"),He=nt.a.Group,ke={margin:"0 8px"},ht=function(Se){var ze=Se.callback,Et=Se.onCancel;function $t(on){ze(on)}return u.a.createElement(H.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$t},u.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},u.a.createElement("span",{style:ke},"\u5355\u5143\u683C\u6570\uFF1A"),u.a.createElement("span",{style:ke},"\u884C\u6570"),u.a.createElement(H.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},u.a.createElement(Ee.a,null)),u.a.createElement("span",{style:ke},"\u5217\u6570"),u.a.createElement(H.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},u.a.createElement(Ee.a,null))),u.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},u.a.createElement("span",{style:ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),u.a.createElement(H.a.Item,{name:"align"},u.a.createElement(He,null,u.a.createElement(nt.a,{value:"default"},u.a.createElement("i",{className:"fa fa-align-justify"})),u.a.createElement(nt.a,{value:"left"},u.a.createElement("i",{className:"fa fa-align-left"})),u.a.createElement(nt.a,{value:"center"},u.a.createElement("i",{className:"fa fa-align-center"})),u.a.createElement(nt.a,{value:"right"},u.a.createElement("i",{className:"fa fa-align-right"}))))),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(S.a,{type:"ghost",onClick:Et},"\u53D6\u6D88")))},ie=L("ErOA"),xe=L("7Cbv"),we="link",$e="upload-image",ct="code-block",vt="add-table",Ut="------------",We={default:Ut,left:":".concat(Ut),center:":".concat(Ut,":"),right:"".concat(Ut,":")},kt=L("9VGf"),Zt,Le;function Ae(){}var ut=0,_t=1e4,Je="\u2581",dt=` +`),s=this._stacks.get(d)||0;if(this._stacks.set(d,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let n,l=0;for(const[c,x]of this._stacks)(!n||l{const n=this._stacks.get(d)||0;this._stacks.set(d,n-1)}}}class t{constructor(a){var i;this._disposed=!1,this._options=a,this._leakageMon=P>0?new m(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((i=this._options)===null||i===void 0?void 0:i._profName)?new R(this._options._profName):void 0}get event(){return this._event||(this._event=(a,i,d)=>{var s;this._listeners||(this._listeners=new I.a);const n=this._listeners.isEmpty();n&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const l=this._listeners.push(i?[a,i]:a);n&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,i);const c=(s=this._leakageMon)===null||s===void 0?void 0:s.check(this._listeners.size),x=Object(B.i)(()=>{if(c&&c(),!this._disposed&&(l(),this._options&&this._options.onLastListenerRemove)){const A=this._listeners&&!this._listeners.isEmpty();A||this._options.onLastListenerRemove(this)}});return d instanceof B.b?d.add(x):Array.isArray(d)&&d.push(x),x}),this._event}fire(a){var i,d;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(let s of this._listeners)this._deliveryQueue.push([s,a]);for((i=this._perfMon)===null||i===void 0||i.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[s,n]=this._deliveryQueue.shift();try{typeof s=="function"?s.call(void 0,n):s[0].call(s[1],n)}catch(l){Object(Y.f)(l)}}(d=this._perfMon)===null||d===void 0||d.stop()}}dispose(){var a,i,d,s,n;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(i=this._deliveryQueue)===null||i===void 0||i.clear(),(s=(d=this._options)===null||d===void 0?void 0:d.onLastListenerRemove)===null||s===void 0||s.call(d),(n=this._leakageMon)===null||n===void 0||n.dispose())}}class b extends t{constructor(a){super(a);this._isPaused=0,this._eventQueue=new I.a,this._mergeFn=a==null?void 0:a.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}class o extends b{constructor(a){var i;super(a);this._delay=(i=a.delay)!==null&&i!==void 0?i:100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}class u{constructor(){this.buffers=[]}wrapEvent(a){return(i,d,s)=>a(n=>{const l=this.buffers[this.buffers.length-1];l?l.push(()=>i.call(d,n)):i.call(d,n)},void 0,s)}bufferEvents(a){const i=[];this.buffers.push(i);const d=a();return this.buffers.pop(),i.forEach(s=>s()),d}}class f{constructor(){this.listening=!1,this.inputEvent=T.None,this.inputEventListener=B.a.None,this.emitter=new t({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MKOG:function(Be,J,L){var Y=L("bYtY"),B=L("YH21"),I=B.Dispatcher,F=L("mLcG"),T=L("Bq2U"),R=function(m){m=m||{},this.stage=m.stage||{},this.onframe=m.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,I.call(this)};R.prototype={constructor:R,addClip:function(m){this._clips.push(m)},addAnimator:function(m){m.animation=this;for(var t=m.getClips(),b=0;b=0&&this._clips.splice(t,1)},removeAnimator:function(m){for(var t=m.getClips(),b=0;b=0,R=i.indexOf("Macintosh")>=0,o=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,P=i.indexOf("Linux")>=0,b=!0,u=navigator.language,f=u;else if(typeof s=="object"){T=s.platform==="win32",R=s.platform==="darwin",P=s.platform==="linux",m=P&&!!s.env.SNAP&&!!s.env.SNAP_REVISION,u=F,f=F;const g=s.env.VSCODE_NLS_CONFIG;if(g)try{const j=JSON.parse(g),U=j.availableLanguages["*"];u=j.locale,f=U||F,a=j._translationsConfigFile}catch(j){}t=!0}else console.error("Unable to resolve platform.");let l=0;R?l=1:T?l=3:P&&(l=2);const c=T,x=R,A=P,C=t,k=b,w=o,y=i,h=function(){if(d.setImmediate)return d.setImmediate.bind(d);if(typeof d.postMessage=="function"&&!d.importScripts){let U=[];d.addEventListener("message",z=>{if(z.data&&z.data.vscodeSetImmediateId)for(let H=0,M=U.length;H{const H=++S;U.push({id:H,callback:z}),d.postMessage({vscodeSetImmediateId:H},"*")}}if(typeof(s==null?void 0:s.nextTick)=="function")return s.nextTick.bind(s);const j=Promise.resolve();return U=>j.then(U)}(),p=R||o?2:T?1:3;let v=!0,_=!1;function E(){if(!_){_=!0;const g=new Uint8Array(2);g[0]=1,g[1]=2;const j=new Uint16Array(g.buffer);v=j[0]===(2<<8)+1}return v}}).call(this,L("IyRk"),L("Q2Ig"))},N0LK:function(Be,J,L){"use strict";L.d(J,"C",function(){return Y}),L.d(J,"v",function(){return I}),L.d(J,"s",function(){return F}),L.d(J,"t",function(){return T}),L.d(J,"U",function(){return R}),L.d(J,"J",function(){return P}),L.d(J,"O",function(){return m}),L.d(J,"p",function(){return t}),L.d(J,"T",function(){return b}),L.d(J,"q",function(){return o}),L.d(J,"N",function(){return u}),L.d(J,"M",function(){return f}),L.d(J,"Q",function(){return a}),L.d(J,"u",function(){return i}),L.d(J,"x",function(){return d}),L.d(J,"I",function(){return s}),L.d(J,"f",function(){return n}),L.d(J,"h",function(){return l}),L.d(J,"g",function(){return c}),L.d(J,"i",function(){return x}),L.d(J,"G",function(){return A}),L.d(J,"H",function(){return C}),L.d(J,"r",function(){return k}),L.d(J,"R",function(){return w}),L.d(J,"d",function(){return y}),L.d(J,"e",function(){return h}),L.d(J,"E",function(){return p}),L.d(J,"F",function(){return v}),L.d(J,"j",function(){return _}),L.d(J,"z",function(){return E}),L.d(J,"K",function(){return j}),L.d(J,"L",function(){return U}),L.d(J,"m",function(){return z}),L.d(J,"k",function(){return M}),L.d(J,"A",function(){return K}),L.d(J,"a",function(){return $}),L.d(J,"n",function(){return Z}),L.d(J,"l",function(){return me}),L.d(J,"D",function(){return oe}),L.d(J,"B",function(){return fe}),L.d(J,"b",function(){return ye}),L.d(J,"S",function(){return Ie}),L.d(J,"o",function(){return ve}),L.d(J,"P",function(){return de}),L.d(J,"w",function(){return Je}),L.d(J,"c",function(){return Rt}),L.d(J,"y",function(){return rt});function Y(ie){return!ie||typeof ie!="string"?!0:ie.trim().length===0}const B=/{(\d+)}/g;function I(ie,...xe){return xe.length===0?ie:ie.replace(B,function(we,$e){const ct=parseInt($e,10);return isNaN(ct)||ct<0||ct>=xe.length?we:xe[ct]})}function F(ie){return ie.replace(/[<>&]/g,function(xe){switch(xe){case"<":return"<";case">":return">";case"&":return"&";default:return xe}})}function T(ie){return ie.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function R(ie,xe=" "){const we=P(ie,xe);return m(we,xe)}function P(ie,xe){if(!ie||!xe)return ie;const we=xe.length;if(we===0||ie.length===0)return ie;let $e=0;for(;ie.indexOf(xe,$e)===$e;)$e=$e+we;return ie.substring($e)}function m(ie,xe){if(!ie||!xe)return ie;const we=xe.length,$e=ie.length;if(we===0||$e===0)return ie;let ct=$e,yt=-1;for(;!(yt=ie.lastIndexOf(xe,ct-1),yt===-1||yt+we!==ct);){if(yt===0)return"";ct=yt}return ie.substring(0,ct)}function t(ie){return ie.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function b(ie){return ie.replace(/\*/g,"")}function o(ie,xe,we={}){if(!ie)throw new Error("Cannot create regex from empty string");xe||(ie=T(ie)),we.wholeWord&&(/\B/.test(ie.charAt(0))||(ie="\\b"+ie),/\B/.test(ie.charAt(ie.length-1))||(ie=ie+"\\b"));let $e="";return we.global&&($e+="g"),we.matchCase||($e+="i"),we.multiline&&($e+="m"),we.unicode&&($e+="u"),new RegExp(ie,$e)}function u(ie){if(ie.source==="^"||ie.source==="^$"||ie.source==="$"||ie.source==="^\\s*$")return!1;const xe=ie.exec("");return!!(xe&&ie.lastIndex===0)}function f(ie){return(ie.global?"g":"")+(ie.ignoreCase?"i":"")+(ie.multiline?"m":"")+(ie.unicode?"u":"")}function a(ie){return ie.split(/\r\n|\r|\n/)}function i(ie){for(let xe=0,we=ie.length;xe=0;we--){const $e=ie.charCodeAt(we);if($e!==32&&$e!==9)return we}return-1}function n(ie,xe){return iexe?1:0}function l(ie,xe,we=0,$e=ie.length,ct=0,yt=xe.length){for(;we<$e&&ctqt)return 1}const Ut=$e-we,We=yt-ct;return UtWe?1:0}function c(ie,xe){return x(ie,xe,0,ie.length,0,xe.length)}function x(ie,xe,we=0,$e=ie.length,ct=0,yt=xe.length){for(;we<$e&&ct=128||qt>=128)return l(ie.toLowerCase(),xe.toLowerCase(),we,$e,ct,yt);A(kt)&&(kt-=32),A(qt)&&(qt-=32);const Pe=kt-qt;if(Pe===0)continue;return Pe}const Ut=$e-we,We=yt-ct;return UtWe?1:0}function A(ie){return ie>=97&&ie<=122}function C(ie){return ie>=65&&ie<=90}function k(ie,xe){return ie.length===xe.length&&x(ie,xe)===0}function w(ie,xe){const we=xe.length;return xe.length>ie.length?!1:x(ie,xe,0,we)===0}function y(ie,xe){let we,$e=Math.min(ie.length,xe.length);for(we=0;we<$e;we++)if(ie.charCodeAt(we)!==xe.charCodeAt(we))return we;return $e}function h(ie,xe){let we,$e=Math.min(ie.length,xe.length);const ct=ie.length-1,yt=xe.length-1;for(we=0;we<$e;we++)if(ie.charCodeAt(ct-we)!==xe.charCodeAt(yt-we))return we;return $e}function p(ie){return 55296<=ie&&ie<=56319}function v(ie){return 56320<=ie&&ie<=57343}function _(ie,xe){return(ie-55296<<10)+(xe-56320)+65536}function E(ie,xe,we){const $e=ie.charCodeAt(we);if(p($e)&&we+11){const $e=ie.charCodeAt(xe-2);if(p($e))return _($e,we)}return we}function j(ie,xe){const we=Ee.getInstance(),$e=xe,ct=ie.length,yt=E(ie,ct,xe);xe+=yt>=65536?2:1;let Ut=we.getGraphemeBreakType(yt);for(;xe=65536?2:1,Ut=kt}return xe-$e}function U(ie,xe){const we=Ee.getInstance(),$e=xe,ct=g(ie,xe);xe-=ct>=65536?2:1;let yt=we.getGraphemeBreakType(ct);for(;xe>0;){const Ut=g(ie,xe),We=we.getGraphemeBreakType(Ut);if(Rt(We,yt))break;xe-=Ut>=65536?2:1,yt=We}return $e-xe}const S=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function z(ie){return S.test(ie)}const H=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function M(ie){return H.test(ie)}const V=/^[\t\n\r\x20-\x7E]*$/;function K(ie){return V.test(ie)}const $=/[\u2028\u2029]/;function Z(ie){return $.test(ie)}function me(ie){for(let xe=0,we=ie.length;xe=11904&&ie<=55215||ie>=63744&&ie<=64255||ie>=65281&&ie<=65374}function fe(ie){return ie>=127462&&ie<=127487||ie===8986||ie===8987||ie===9200||ie===9203||ie>=9728&&ie<=10175||ie===11088||ie===11093||ie>=127744&&ie<=128591||ie>=128640&&ie<=128764||ie>=128992&&ie<=129003||ie>=129280&&ie<=129535||ie>=129648&&ie<=129750}const ye=String.fromCharCode(65279);function Ie(ie){return!!(ie&&ie.length>0&&ie.charCodeAt(0)===65279)}function ve(ie,xe=!1){return ie?(xe&&(ie=ie.replace(/\\./g,"")),ie.toLowerCase()!==ie):!1}function de(ie){const xe=90-65+1;return ie=ie%(2*xe),iexe[3*$e+1])$e=2*$e+1;else return xe[3*$e+2];return 0}}Ee._INSTANCE=null;function Me(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function rt(ie,xe){if(ie===0)return 0;const we=He(ie,xe);if(we!==void 0)return we;const $e=g(xe,ie);return ie-=ke($e),ie}function He(ie,xe){let we=g(xe,ie);for(ie-=ke(we);ht(we)||we===65039||we===8419;){if(ie===0)return;we=g(xe,ie),ie-=ke(we)}if(!fe(we))return;if(ie>=0){const $e=g(xe,ie);$e===8205&&(ie-=ke($e))}return ie}function ke(ie){return ie>=65536?2:1}function ht(ie){return 127995<=ie&&ie<=127999}},NC18:function(Be,J,L){var Y=L("y+Vt"),B=L("IMiH"),I=L("7oTu"),F=Math.sqrt,T=Math.sin,R=Math.cos,P=Math.PI,m=function(l){return Math.sqrt(l[0]*l[0]+l[1]*l[1])},t=function(l,c){return(l[0]*c[0]+l[1]*c[1])/(m(l)*m(c))},b=function(l,c){return(l[0]*c[1]1&&(w*=F(j),y*=F(j));var U=(C===k?-1:1)*F((w*w*(y*y)-w*w*(g*g)-y*y*(E*E))/(w*w*(g*g)+y*y*(E*E)))||0,S=U*w*g/y,z=U*-y*E/w,H=(l+x)/2+R(_)*S-T(_)*z,M=(c+A)/2+T(_)*S+R(_)*z,V=b([1,0],[(E-S)/w,(g-z)/y]),K=[(E-S)/w,(g-z)/y],$=[(-1*E-S)/w,(-1*g-z)/y],Z=b(K,$);t(K,$)<=-1&&(Z=P),t(K,$)>=1&&(Z=0),k===0&&Z>0&&(Z=Z-2*P),k===1&&Z<0&&(Z=Z+2*P),v.addData(p,H,M,w,y,V,Z,_,k)}var u=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,f=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function a(l){if(!l)return new B;for(var c=0,x=0,A=c,C=x,k,w=new B,y=B.CMD,h=l.match(u),p=0;p1&&arguments[1]!==void 0?arguments[1]:!1;return!!(x(p)&&A(v))},x=function(p){return Object(o.p)()?!0:(p({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},A=function(){var p,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,_=Object(b.c)()._store.getState(),E=_.user;return(p=E.userInfo)!==null&&p!==void 0&&p.profile_completed?!0:(T.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:v?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){b.d.push("/account/profile/edit")}}),!1)},C=function(){var p,v=Object(b.c)()._store.getState(),_=v.user;return(p=_.userInfo)!==null&&p!==void 0&&p.professional_certification?!0:(T.a.confirm({title:"\u63D0\u793A",centered:!0,content:t.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(u.S)("/account/certification")}}),!1)},k=function(){return Object(o.a)()?!0:(T.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc",style:{marginLeft:-38}},t.a.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),t.a.createElement("img",{src:l.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},w=function(p,v){return p?!0:(T.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:t.a.createElement("div",null,t.a.createElement("p",null,v||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),t.a.createElement("div",{style:{marginLeft:"110px"}},t.a.createElement("img",{src:s.a,width:200}),t.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(u.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},y=function(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",_=Object(b.c)()._store.getState(),E=_.shixunsDetail.detail;return(E==null?void 0:E.public)===2||(E==null?void 0:E.public)===1||(E==null?void 0:E.shixun_status)===3?(T.a.info({centered:!0,icon:t.a.createElement(f.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc",style:{marginLeft:-38}},t.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},t.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(E==null?void 0:E.public)===2?"\u5DF2\u516C\u5F00":(E==null?void 0:E.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",v,"\u3002"),t.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),t.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:i.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(E==null?void 0:E.shixun_status)===2?(T.a.confirm({centered:!0,icon:t.a.createElement(f.a,null),title:"\u63D0\u793A",content:t.a.createElement("div",null,t.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",v,"\u3002"),t.a.createElement("br",null),t.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){T.a.confirm({width:440,centered:!0,icon:t.a.createElement(f.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var j=Object(I.a)(P.a.mark(function S(){var z;return P.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,p({type:"shixunsDetail/cancelRelease",payload:{id:E==null?void 0:E.identifier}});case 2:z=M.sent,z.status!==401&&(B.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),p({type:"shixunsDetail/getShixunsDetail",payload:{id:E==null?void 0:E.identifier}}),p({type:"practiceSetting/getCommonData",payload:{id:E==null?void 0:E.identifier}}));case 4:case"end":return M.stop()}},S)}));function U(){return j.apply(this,arguments)}return U}()})}}),!0):!1}},NoGO:function(Be,J,L){Be.exports=L.p+"static/newqrcode.d852fdfc.png"},NohK:function(Be,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.default=void 0;var Y=function(I){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,T=null;return function(){for(var R=this,P=arguments.length,m=new Array(P),t=0;t=0;d-=1){var s=m.get(d)||new Set;s.forEach(function(n){var l=n.parent,c=n.node;if(b(c)||!n.parent||i.has(n.parent.key))return;if(b(n.parent.node)){i.add(l.key);return}var x=!0,A=!1;(l.children||[]).filter(function(C){return!b(C.node)}).forEach(function(C){var k=C.key,w=o.has(k);x&&!w&&(x=!1),!A&&(w||u.has(k))&&(A=!0)}),x&&o.add(l.key),A&&u.add(l.key),i.add(l.key)})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(B(u,o))}}function T(P,m,t,b,o){for(var u=new Set(P),f=new Set(m),a=0;a<=b;a+=1){var i=t.get(a)||new Set;i.forEach(function(l){var c=l.key,x=l.node,A=l.children,C=A===void 0?[]:A;!u.has(c)&&!f.has(c)&&!o(x)&&C.filter(function(k){return!o(k.node)}).forEach(function(k){u.delete(k.key)})})}f=new Set;for(var d=new Set,s=b;s>=0;s-=1){var n=t.get(s)||new Set;n.forEach(function(l){var c=l.parent,x=l.node;if(o(x)||!l.parent||d.has(l.parent.key))return;if(o(l.parent.node)){d.add(c.key);return}var A=!0,C=!1;(c.children||[]).filter(function(k){return!o(k.node)}).forEach(function(k){var w=k.key,y=u.has(w);A&&!y&&(A=!1),!C&&(y||f.has(w))&&(C=!0)}),A||u.delete(c.key),C&&f.add(c.key),d.add(c.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(B(f,u))}}function R(P,m,t,b){var o=[],u;b?u=b:u=I;var f=new Set(P.filter(function(s){var n=!!t[s];return n||o.push(s),n})),a=new Map,i=0;Object.keys(t).forEach(function(s){var n=t[s],l=n.level,c=a.get(l);c||(c=new Set,a.set(l,c)),c.add(n),i=Math.max(i,l)}),Object(Y.a)(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var d;return m===!0?d=F(f,a,i,u):d=T(f,m.halfCheckedKeys,a,i,u),d}},OLES:function(Be,J,L){"use strict";var Y=L("U8pU"),B=L("VTBJ"),I=L("Ff2n"),F=L("q1tI"),T=L("uciX"),R=L("7ixt"),P=function(f){var a=f.overlay,i=f.prefixCls,d=f.id,s=f.overlayInnerStyle;return F.createElement("div",{className:"".concat(i,"-inner"),id:d,role:"tooltip",style:s},typeof a=="function"?a():a)},m=P,t=function(f,a){var i=f.overlayClassName,d=f.trigger,s=d===void 0?["hover"]:d,n=f.mouseEnterDelay,l=n===void 0?0:n,c=f.mouseLeaveDelay,x=c===void 0?.1:c,A=f.overlayStyle,C=f.prefixCls,k=C===void 0?"rc-tooltip":C,w=f.children,y=f.onVisibleChange,h=f.afterVisibleChange,p=f.transitionName,v=f.animation,_=f.placement,E=_===void 0?"right":_,g=f.align,j=g===void 0?{}:g,U=f.destroyTooltipOnHide,S=U===void 0?!1:U,z=f.defaultVisible,H=f.getTooltipContainer,M=f.overlayInnerStyle,V=Object(I.a)(f,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),K=Object(F.useRef)(null);Object(F.useImperativeHandle)(a,function(){return K.current});var $=Object(B.a)({},V);"visible"in f&&($.popupVisible=f.visible);var Z=function(){var Ie=f.arrowContent,ve=Ie===void 0?null:Ie,de=f.overlay,Je=f.id;return[F.createElement("div",{className:"".concat(k,"-arrow"),key:"arrow"},ve),F.createElement(m,{key:"content",prefixCls:k,id:Je,overlay:de,overlayInnerStyle:M})]},me=!1,oe=!1;if(typeof S=="boolean")me=S;else if(S&&Object(Y.a)(S)==="object"){var fe=S.keepParent;me=fe===!0,oe=fe===!1}return F.createElement(T.a,Object.assign({popupClassName:i,prefixCls:k,popup:Z,action:s,builtinPlacements:R.a,popupPlacement:E,ref:K,popupAlign:j,getPopupContainer:H,onPopupVisibleChange:y,afterPopupVisibleChange:h,popupTransitionName:p,popupAnimation:v,defaultPopupVisible:z,destroyPopupOnHide:me,autoDestroy:oe,mouseLeaveDelay:x,popupStyle:A,mouseEnterDelay:l},$),w)},b=Object(F.forwardRef)(t),o=J.a=b},OS9S:function(Be,J,L){var Y=L("bYtY"),B=Y.inherits,I=L("Gev7"),F=L("mFDi");function T(m){I.call(this,m),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}T.prototype.incremental=!0,T.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},T.prototype.addDisplayable=function(m,t){t?this._temporaryDisplayables.push(m):this._displayables.push(m),this.dirty()},T.prototype.addDisplayables=function(m,t){t=t||!1;for(var b=0;b=0&&w.splice(y,1),w}function o(C,k){var w=C.slice();return w.indexOf(k)===-1&&w.push(k),w}function u(C){return C.split("-")}function f(C,k){return"".concat(C,"-").concat(k)}function a(C){return C&&C.type&&C.type.isTreeNode}function i(C,k){var w=[C],y=k[C];function h(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];p.forEach(function(v){var _=v.key,E=v.children;w.push(_),h(E)})}return h(y.children),w}function d(C,k){var w=C.clientY,y=k.selectHandle.getBoundingClientRect(),h=y.top,p=y.bottom,v=y.height,_=Math.max(v*m,t);return w<=h+_?-1:w>=p-_?1:0}function s(C,k){if(!C)return;var w=k.multiple;return w?C.slice():C.length?[C[0]]:C}var n=function(k){return k};function l(C,k){if(!C)return[];var w=k||{},y=w.processProps,h=y===void 0?n:y,p=Array.isArray(C)?C:[C];return p.map(function(v){var _=v.children,E=Object(I.a)(v,["children"]),g=l(_,k);return T.a.createElement(P.a,Object.assign({},h(E)),g)})}function c(C){if(!C)return null;var k;if(Array.isArray(C))k={checkedKeys:C,halfCheckedKeys:void 0};else if(Object(B.a)(C)==="object")k={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return Object(R.a)(!1,"`checkedKeys` is not an array or an object"),null;return k}function x(C,k){var w=new Set;function y(h){if(w.has(h))return;var p=k[h];if(!p)return;w.add(h);var v=p.parent,_=p.node;if(_.disabled)return;v&&y(v.key)}return(C||[]).forEach(function(h){y(h)}),Object(Y.a)(w)}function A(C){var k={};return Object.keys(C).forEach(function(w){(w.startsWith("data-")||w.startsWith("aria-"))&&(k[w]=C[w])}),k}},Ot1p:function(Be,J,L){"use strict";var Y=L("2qtc"),B=L("kLXV"),I=L("rAM+"),F=L("miYZ"),T=L("tsqr"),R=L("9og8"),P=L("tJVT"),m=L("jrin"),t=L("WmNS"),b=L.n(t),o=L("q1tI"),u=L.n(o),f=L("VrN/"),a=L.n(f),i=L("bdgK"),d=L("p77/"),s=L("Bd2K"),n=L("ELLl"),l=L("19Vz"),c=L("lZu9"),x=L("+NIl"),A=L("kSUc"),C=L("9Bee"),k=function(Se){var ze=Se.value,xt=ze===void 0?"":ze,Qt=Se.className,sn=Se.showTextOnly,gt=Se.showLines,zt=Se.style,Ot=zt===void 0?{}:zt,At=Object(o.useMemo)(function(){return""},[xt]);return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{dangerouslySetInnerHTML:{__html:At}}))},w=L("0Owb"),y=L("dejd"),h=L("C+DQ"),p=L("1vsH"),v=L("m3rI"),_=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function E(Se){var ze=Se.onActionCallback,xt=Se.title,Qt=Se.icon,sn=Se.actionName,gt=Se.className,zt=gt===void 0?"":gt,Ot=Se.children;function At(){ze(sn)}return u.a.createElement("a",{title:xt,className:zt,onClick:At},u.a.createElement("i",{className:"md-iconfont ".concat(Qt)}),Ot)}var g=function(Se){var ze=Se.watch,xt=Se.showNullButton,Qt=Se.onActionCallback,sn=Se.fullScreen,gt=Se.insertTemp,zt=Se.hidetoolBar,Ot=Se.uuid,At=Se.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(p.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(p.F)("_educoder_session"),"&key=").concat(Ot,"&api=").concat(encodeURIComponent(v.a.PROXY_SERVER)));var ft=[].concat(_,[{title:"".concat(ze?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ze?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return u.a.createElement("ul",{className:"markdown-toolbar-container"},!zt&&ft.map(function(be,Fe){return u.a.createElement("li",{key:Fe},be.actionName?u.a.createElement(E,Object(w.a)({},be,{onActionCallback:Qt})):u.a.createElement("span",{className:"v-line"}))}),xt?u.a.createElement("li",null,u.a.createElement(E,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Qt},u.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,gt&&u.a.createElement("li",null,u.a.createElement(E,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(gt),onActionCallback:Qt},u.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),u.a.createElement("li",{className:"btn-full-screen"},u.a.createElement(E,{icon:"".concat(sn?"icon-shrink":"icon-enlarge"),title:sn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Qt})))},j=L("M8RZ"),U=L("+L6B"),S=L("2/Rp"),z=L("y8nQ"),H=L("Vl3Y"),M=L("5NDa"),V=L("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},$=function(Se){var ze=Se.callback,xt=Se.onCancel;function Qt(sn){ze(sn)}return u.a.createElement(H.a,Object(w.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Qt}),u.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},u.a.createElement(V.a,null)),u.a.createElement(H.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},u.a.createElement(V.a,null)),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(S.a,{type:"ghost",onClick:xt},"\u53D6\u6D88")))},Z=L("7ahc"),me=L("HmJG"),oe=L("BjJ7"),fe=H.a.useForm,ye={width:280,marginRight:10},Ie={labelCol:{span:5},wrapperCol:{span:19}},ve=function(Se){var ze=Se.callback,xt=Se.onCancel,Qt=fe(),sn=Object(P.a)(Qt,1),gt=sn[0];function zt(ft){ze(ft)}function Ot(ft,be){if(ft.status===-1){T.b.error(ft.message);return}gt.setFieldsValue({src:"/api/attachments/".concat(ft.id),type:be.type})}function At(ft){var be=ft.target.files[0];Je(be,Ot)}return u.a.createElement(H.a,Object(w.a)({form:gt},Ie,{className:"upload-image-panel",onFinish:zt}),u.a.createElement(H.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},u.a.createElement("div",{className:"flex-container"},u.a.createElement(H.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},u.a.createElement(V.a,{style:ye})),u.a.createElement(de,{onFileChange:At}))),u.a.createElement(H.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},u.a.createElement(V.a,{style:{width:264}})),u.a.createElement(H.a.Item,{style:{textAlign:"right"}},u.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(S.a,{type:"ghost",onClick:xt},"\u53D6\u6D88")))};function de(Se){var ze=Se.onFileChange;return u.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",u.a.createElement("input",{type:"file",onChange:ze}))}function Je(Se,ze){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");var xt=new FormData;xt.append("editormd-image-file",Se),xt.append("file_param_name","editormd-image-file"),xt.append("byxhr","true");var Qt=new window.XMLHttpRequest;Qt.withCredentials=!0,Qt.addEventListener("load",function(sn){ze(JSON.parse(sn.target.responseText),Se)},!1),Qt.addEventListener("error",function(sn){console.error(sn)},!1),Qt.open("POST","".concat(oe.a,"/api/attachments.json")),Qt.send(xt)}var Rt=L("giR+"),Ee=L("fyUT"),Me=L("7Kak"),rt=L("9yH6"),He=rt.a.Group,ke={margin:"0 8px"},ht=function(Se){var ze=Se.callback,xt=Se.onCancel;function Qt(sn){ze(sn)}return u.a.createElement(H.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Qt},u.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},u.a.createElement("span",{style:ke},"\u5355\u5143\u683C\u6570\uFF1A"),u.a.createElement("span",{style:ke},"\u884C\u6570"),u.a.createElement(H.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},u.a.createElement(Ee.a,null)),u.a.createElement("span",{style:ke},"\u5217\u6570"),u.a.createElement(H.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},u.a.createElement(Ee.a,null))),u.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},u.a.createElement("span",{style:ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),u.a.createElement(H.a.Item,{name:"align"},u.a.createElement(He,null,u.a.createElement(rt.a,{value:"default"},u.a.createElement("i",{className:"fa fa-align-justify"})),u.a.createElement(rt.a,{value:"left"},u.a.createElement("i",{className:"fa fa-align-left"})),u.a.createElement(rt.a,{value:"center"},u.a.createElement("i",{className:"fa fa-align-center"})),u.a.createElement(rt.a,{value:"right"},u.a.createElement("i",{className:"fa fa-align-right"}))))),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(S.a,{type:"ghost",onClick:xt},"\u53D6\u6D88")))},ie=L("ErOA"),xe=L("7Cbv"),we="link",$e="upload-image",ct="code-block",yt="add-table",Ut="------------",We={default:Ut,left:":".concat(Ut),center:":".concat(Ut,":"),right:"".concat(Ut,":")},kt=L("9VGf"),qt,Pe;function Ae(){}var ut=0,Et=1e4,Ze="\u2581",dt=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Ne(Se){return/^\d+$/.test(Se)?"".concat(Se,"px"):Se}var Te=navigator.platform.toUpperCase().indexOf("MAC")>=0,Oe=Te?"Cmd":"Ctrl",ae=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],le=(Zt={},Object(m.a)(Zt,Oe+"-B","bold"),Object(m.a)(Zt,Oe+"-I","italic"),Zt),he=(Le={},Object(m.a)(Le,we,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(Le,ct,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(Le,$e,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(Le,vt,"\u6DFB\u52A0\u8868\u683C"),Le),_e=J.a=function(Se){var ze=Se.defaultValue,Et=ze===void 0?"":ze,$t=Se.onChange,on=Se.width,gt=on===void 0?"100%":on,Kt=Se.height,Ot=Kt===void 0?400:Kt,At=Se.miniToolbar,ft=At===void 0?!1:At,be=Se.isFocus,Fe=be===void 0?!1:be,Nt=Se.watch,yt=Se.insertTemp,Gt=Se.mode,Jt=Gt===void 0?"markdown":Gt,Ge=Se.id,lt=Ge===void 0?"markdown-editor-id":Ge,It=Se.showResizeBar,Wt=It===void 0?!1:It,sn=Se.noStorage,vn=sn===void 0?!1:sn,tr=Se.showNullButton,Hn=tr===void 0?!1:tr,wn=Se.hidetoolBar,xr=wn===void 0?!1:wn,Er=Se.fullScreen,rr=Er===void 0?!1:Er,ur=Se.onBlur,Ar=Se.onCMBeforeChange,Kr=Se.onFullScreen,ra=Se.className,pn=ra===void 0?"":ra,sr=Se.disablePaste,sa=sr===void 0?!1:sr,ya=Se.placeholder,Jr=ya===void 0?"":ya,na=Se.values,te=na===void 0?"":na,W=Object(o.useState)(null),G=Object(P.a)(W,2),Q=G[0],ue=G[1],ee=Object(o.useState)(Et),qe=Object(P.a)(ee,2),en=qe[0],An=qe[1],Vn=Object(o.useState)(Nt),ln=Object(P.a)(Vn,2),nr=ln[0],yn=ln[1],un=Object(o.useState)(rr),Cn=Object(P.a)(un,2),kn=Cn[0],dr=Cn[1],$n=Object(o.useState)(""),Zn=Object(P.a)($n,2),In=Zn[0],mr=Zn[1],Fn=Object(o.useState)(0),ar=Object(P.a)(Fn,2),Gn=ar[0],Wn=ar[1],Rr=Object(o.useState)(Ot),Tr=Object(P.a)(Rr,2),br=Tr[0],wr=Tr[1],ne=Object(o.useState)(!1),Re=Object(P.a)(ne,2),Xe=Re[0],Pe=Re[1],st=Object(o.useRef)(Object(xe.a)()),Ze=Object(o.useRef)(!1),pt=Object(o.useRef)(),mt=Object(o.useRef)(),it=Object(o.useRef)(),Lt=Object(o.useRef)(),Yt=Object(o.useRef)(),Xt=function(){var Ct=Object(R.a)(b.a.mark(function xt(){var Pt,Dt;return b.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.next=2,Object(ie.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:st.current}});case 2:Dt=gn.sent,Dt!=null&&(Pt=Dt.attachments)!==null&&Pt!==void 0&&Pt.length&&(console.log("cm:",Q,mt),Dt.attachments.map(function(hn){hn.content_type.indexOf("image")>-1?Q.replaceSelection("![,](/api/attachments/".concat(hn.id,"?type=").concat(hn.content_type,")")):hn.content_type.indexOf("video")>-1?Q.replaceSelection('')):hn.content_type.indexOf("pdf")>-1?Q.replaceSelection('
      ').concat(hn.name,"")):Q.replaceSelection("[".concat(hn.name,"](").concat(v.a.API_SERVER,"/api/attachments/").concat(hn.id,"?type=").concat(hn.content_type,")"))}));case 4:case"end":return gn.stop()}},xt)}));return function(){return Ct.apply(this,arguments)}}();Object(o.useEffect)(function(){An(te),Q==null||Q.setValue(te)},[te]),Object(o.useEffect)(function(){Kr==null||Kr(kn)},[kn]),Object(o.useEffect)(function(){if(mt.current){var Ct=a.a.fromTextArea(mt.current,{mode:Jt,lineNumbers:!ft,lineWrapping:!0,value:Et,autoCloseTags:!0,autoCloseBrackets:!0});Fe&&Ct.focus();function xt(Pt,Dt){if(sa){Dt.preventDefault();return}var wt=Dt.clipboardData;if(wt){var gn=wt.types.toString(),hn=wt.items;if(gn==="Files"||wt.types.indexOf("Files")>-1){if(Dt.preventDefault(),Jt=="stex")return;try{var bn,dn=hn[1];((bn=hn[0])===null||bn===void 0?void 0:bn.kind)==="file"&&(dn=hn[0]);var rn=dn.getAsFile(),Tn=rn.name.split(".").pop();Qe(rn,function(ir){if(ir.id){var hr,Kn,Lr;(rn==null||((hr=rn.type)===null||hr===void 0)?void 0:hr.indexOf("image"))>-1?Ct.replaceSelection("![,](/api/attachments/".concat(ir.id,"?type=").concat(ir.content_type,")")):(rn==null||((Kn=rn.type)===null||Kn===void 0)?void 0:Kn.indexOf("video"))>-1?Ct.replaceSelection('')):(rn==null||((Lr=rn.type)===null||Lr===void 0)?void 0:Lr.indexOf("pdf"))>-1?Ct.replaceSelection('').concat(rn.name,"")):ae.includes(Tn)?Ct.replaceSelection('').concat(rn.name,"")):Ct.replaceSelection("[".concat(rn.name,"](").concat(v.a.API_SERVER,"/api/attachments/").concat(ir.id,"?type=").concat(ir.content_type,")"))}else(ir==null?void 0:ir.status)===401&&(document.location.href="/user/login")})}catch(ir){T.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Ct.on("paste",xt),Ct.on("dragleave",function(Pt,Dt){it.current.classList.remove("mouse-hover-md")}),Ct.on("dragover",function(Pt,Dt){it.current.classList.add("mouse-hover-md")}),Ct.on("drop",function(Pt,Dt){it.current.classList.add("mouse-hover-md");var wt;if(wt=Dt.dataTransfer.files,wt.length>0){Dt.preventDefault(),Dt.stopPropagation();for(var gn=function(dn){var rn=wt[dn],Tn=rn.name.split(".").pop();Qe(rn,function(ir){if(ir.id){var hr,Kn,Lr;(rn==null||((hr=rn.type)===null||hr===void 0)?void 0:hr.indexOf("image"))>-1?Ct.replaceSelection("![,](/api/attachments/".concat(ir.id,"?type=").concat(ir.content_type,")")):(rn==null||((Kn=rn.type)===null||Kn===void 0)?void 0:Kn.indexOf("video"))>-1?Ct.replaceSelection('')):(rn==null||((Lr=rn.type)===null||Lr===void 0)?void 0:Lr.indexOf("pdf"))>-1?Ct.replaceSelection('').concat(rn.name,"")):ae.includes(Tn)?Ct.replaceSelection('').concat(rn.name,"")):Ct.replaceSelection("[".concat(rn.name,"](").concat(v.a.API_SERVER,"/api/attachments/").concat(ir.id,"?type=").concat(ir.content_type,")"))}else(ir==null?void 0:ir.status)===401&&(document.location.href="/user/login")})},hn=0;hn0||hn.target.offsetWidth>0)&&(St(),Q.setSize("100%","100%"),Q.refresh())}}catch(bn){wt.e(bn)}finally{wt.f()}});return Pt.observe(mt.current.parentElement),Pt}if(Q){var xt=Ct();return function(){xt.unobserve(mt.current.parentElement)}}},[Q,St]),Object(o.useEffect)(function(){if(Q){for(var Ct=[],xt=function(){var hn=Dt[Pt];wt=Object(P.a)(hn,2);var bn=wt[0],dn=wt[1],rn=Object(m.a)({},bn,function(){Ft(dn)});Ct.push(rn),Q.addKeyMap(rn)},Pt=0,Dt=Object.entries(le);Pt0){var Ct=new Date().getTime(),xt=window.sessionStorage.getItem(lt);Ct>=Gn+_t&&(!xt||xt!==en)&&(window.sessionStorage.setItem(lt,en),Pe(!0))}},_t),Object(o.useEffect)(function(){yn(Nt)},[Q,Nt]),Object(o.useEffect)(function(){Q&&(Fe&&Q.focus())},[Q,Fe]),Object(o.useEffect)(function(){if(nr&&Q){var Ct=Q.getScrollerElement();function xt(Pt){var Dt=Pt.target;if(Yt.current){var wt=Dt.scrollTop/Dt.scrollHeight;Yt.current.scrollTop=Yt.current.scrollHeight*wt}}return Ct.addEventListener("scroll",xt),function(){Ct.removeEventListener("scroll",xt)}}},[Q,nr]),Object(o.useEffect)(function(){if(Q&&Ar){function Ct(xt,Pt){Ar(xt,Pt)}return Q.on("beforeChange",Ct),function(){Q.off("beforeChange",Ct)}}},[Q,Ar]),Object(o.useEffect)(function(){if(Q&&ur){function Ct(){ur(Q.getValue())}return Q.on("blur",Ct),function(){Q.off("blur",Ct)}}},[Q,ur]),Object(o.useEffect)(function(){if(Q){function Ct(xt){var Pt=xt.getValue();An(Pt),Wn(new Date().getTime()),xt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$t&&$t(Pt)}return Q.on("change",Ct),function(){Q.off("change",Ct)}}},[Q,$t]),Object(o.useEffect)(function(){Q&&(Et==null?(Q.setValue(""),An("")):Et!==Q.getValue()&&(Q.setValue(Et),An(Et),Q.setCursor(Q.lineCount(),0)))},[Q,Et]);var Ft=Object(o.useCallback)(function(Ct){var xt=Q.getCursor(),Pt=Q.getSelection(),Dt=Pt.split(` -`);switch(Ct){case"bold":return Q.replaceSelection("**"+Pt+"**"),Pt===""&&Q.setCursor(xt.line,xt.ch+2),Q.focus();case"italic":return Q.replaceSelection("*"+Pt+"*"),Pt===""&&Q.setCursor(xt.line,xt.ch+1),Q.focus();case"code":return Q.replaceSelection("`"+Pt+"`"),Pt===""&&Q.setCursor(xt.line,xt.ch+1),Q.focus();case"inline-latex":return Q.replaceSelection("`$$"+Pt+"$$`"),Pt===""&&Q.setCursor(xt.line,xt.ch+3),Q.focus();case"latex":return Q.replaceSelection("```latex\n"+Pt+"\n```"),Q.setCursor(xt.line+1,Pt.length+1),Q.focus();case"line-break":return Q.replaceSelection(`
      -`),Q.focus();case"list-ul":return Pt===""?Q.replaceSelection("- "+Pt):Q.replaceSelection(Dt.map(function(wt){return wt===""?"":"- ".concat(wt)}).join(` -`)),Q.focus();case"list-ol":return Pt===""?Q.replaceSelection("1. "+Pt):Q.replaceSelection(Dt.map(function(wt,gn){return wt===""?"":"".concat(gn+1,". ").concat(wt)}).join(` -`)),Q.focus();case"add-null-ch":return Pt===""&&Q.setCursor(xt.line,xt.ch+1),Q.replaceSelection(Je),Q.focus();case"inster-template-1":return Pt===""&&Q.setCursor(xt.line,xt.ch),Q.replaceSelection(dt),Q.focus();case"eraser":return Q.setValue(""),Q.focus();case"trigger-watch":return yn(!nr),Q.focus();case"trigger-full-screen":return dr(!kn),Q.focus();case we:mr(we);return;case ct:mr(ct);return;case $e:mr($e);return;case vt:mr(vt);return;default:throw new Error}},[Q,nr,kn]),at=Object(o.useCallback)(function(Ct){mr("");switch(In){case we:var xt=Ct.title,Pt=Ct.link;return Q.replaceSelection("[".concat(xt,"](").concat(Pt,")")),Q.focus();case ct:var Dt=Ct.language,wt=Ct.content;return Q.replaceSelection(["```"+Dt,wt,"```"].join(` -`)),Q.focus();case $e:var gn=Ct.src,hn=Ct.alt;return hn?Q.replaceSelection("![ ".concat(hn," ]( ").concat(gn,' "').concat(hn,'" )')):Q.replaceSelection("![,](".concat(gn,")")),Q.focus();case vt:for(var bn=Ct.row,dn=Ct.col,rn=Ct.align,Tn=` -`,ir=0;ir=0,Oe=Te?"Cmd":"Ctrl",ae=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],le=(qt={},Object(m.a)(qt,Oe+"-B","bold"),Object(m.a)(qt,Oe+"-I","italic"),qt),he=(Pe={},Object(m.a)(Pe,we,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(Pe,ct,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(Pe,$e,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(Pe,yt,"\u6DFB\u52A0\u8868\u683C"),Pe),_e=J.a=function(Se){var ze=Se.defaultValue,xt=ze===void 0?"":ze,Qt=Se.onChange,sn=Se.width,gt=sn===void 0?"100%":sn,zt=Se.height,Ot=zt===void 0?400:zt,At=Se.miniToolbar,ft=At===void 0?!1:At,be=Se.isFocus,Fe=be===void 0?!1:be,Nt=Se.watch,bt=Se.insertTemp,Kt=Se.mode,Zt=Kt===void 0?"markdown":Kt,Ge=Se.id,lt=Ge===void 0?"markdown-editor-id":Ge,Lt=Se.showResizeBar,Wt=Lt===void 0?!1:Lt,ln=Se.noStorage,gn=ln===void 0?!1:ln,tr=Se.showNullButton,Wn=tr===void 0?!1:tr,En=Se.hidetoolBar,xr=En===void 0?!1:En,Er=Se.fullScreen,rr=Er===void 0?!1:Er,ur=Se.onBlur,Rr=Se.onCMBeforeChange,Kr=Se.onFullScreen,ra=Se.className,fn=ra===void 0?"":ra,or=Se.disablePaste,sa=or===void 0?!1:or,ya=Se.placeholder,Jr=ya===void 0?"":ya,na=Se.values,te=na===void 0?"":na,W=Object(o.useState)(null),G=Object(P.a)(W,2),Q=G[0],ue=G[1],ee=Object(o.useState)(xt),qe=Object(P.a)(ee,2),tn=qe[0],An=qe[1],Vn=Object(o.useState)(Nt),un=Object(P.a)(Vn,2),nr=un[0],vn=un[1],dn=Object(o.useState)(rr),xn=Object(P.a)(dn,2),Nn=xn[0],dr=xn[1],$n=Object(o.useState)(""),Zn=Object(P.a)($n,2),kn=Zn[0],gr=Zn[1],Bn=Object(o.useState)(0),ar=Object(P.a)(Bn,2),sr=ar[0],Pn=ar[1],Tr=Object(o.useState)(Ot),Mr=Object(P.a)(Tr,2),Sr=Mr[0],hr=Mr[1],ne=Object(o.useState)(!1),Re=Object(P.a)(ne,2),Xe=Re[0],Le=Re[1],st=Object(o.useRef)(Object(xe.a)()),et=Object(o.useRef)(!1),pt=Object(o.useRef)(),mt=Object(o.useRef)(),it=Object(o.useRef)(),Mt=Object(o.useRef)(),Xt=Object(o.useRef)(),Vt=function(){var wt=Object(R.a)(b.a.mark(function It(){var Pt,Ct;return b.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,Object(ie.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:st.current}});case 2:Ct=Dn.sent,Ct!=null&&(Pt=Ct.attachments)!==null&&Pt!==void 0&&Pt.length&&(console.log("cm:",Q,mt),Ct.attachments.map(function($t){$t.content_type.indexOf("image")>-1?Q.replaceSelection("![,](/api/attachments/".concat($t.id,"?type=").concat($t.content_type,")")):$t.content_type.indexOf("video")>-1?Q.replaceSelection('')):$t.content_type.indexOf("pdf")>-1?Q.replaceSelection('').concat($t.name,"")):Q.replaceSelection("[".concat($t.name,"](").concat(v.a.API_SERVER,"/api/attachments/").concat($t.id,"?type=").concat($t.content_type,")"))}));case 4:case"end":return Dn.stop()}},It)}));return function(){return wt.apply(this,arguments)}}();Object(o.useEffect)(function(){An(te),Q==null||Q.setValue(te)},[te]),Object(o.useEffect)(function(){Kr==null||Kr(Nn)},[Nn]),Object(o.useEffect)(function(){if(mt.current){var wt=a.a.fromTextArea(mt.current,{mode:Zt,lineNumbers:!ft,lineWrapping:!0,value:xt,autoCloseTags:!0,autoCloseBrackets:!0});Fe&&wt.focus();function It(Pt,Ct){if(sa){Ct.preventDefault();return}var vt=Ct.clipboardData;if(vt){var Dn=vt.types.toString(),$t=vt.items;if(Dn==="Files"||vt.types.indexOf("Files")>-1){if(Ct.preventDefault(),Zt=="stex")return;try{var Cn,pn=$t[1];((Cn=$t[0])===null||Cn===void 0?void 0:Cn.kind)==="file"&&(pn=$t[0]);var Yt=pn.getAsFile(),Tn=Yt.name.split(".").pop();Je(Yt,function(zn){if(zn.id){var fr,Gn,Lr;(Yt==null||((fr=Yt.type)===null||fr===void 0)?void 0:fr.indexOf("image"))>-1?wt.replaceSelection("![,](/api/attachments/".concat(zn.id,"?type=").concat(zn.content_type,")")):(Yt==null||((Gn=Yt.type)===null||Gn===void 0)?void 0:Gn.indexOf("video"))>-1?wt.replaceSelection('')):(Yt==null||((Lr=Yt.type)===null||Lr===void 0)?void 0:Lr.indexOf("pdf"))>-1?wt.replaceSelection('').concat(Yt.name,"")):ae.includes(Tn)?wt.replaceSelection('').concat(Yt.name,"")):wt.replaceSelection("[".concat(Yt.name,"](").concat(v.a.API_SERVER,"/api/attachments/").concat(zn.id,"?type=").concat(zn.content_type,")"))}else(zn==null?void 0:zn.status)===401&&(document.location.href="/user/login")})}catch(zn){T.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return wt.on("paste",It),wt.on("dragleave",function(Pt,Ct){it.current.classList.remove("mouse-hover-md")}),wt.on("dragover",function(Pt,Ct){it.current.classList.add("mouse-hover-md")}),wt.on("drop",function(Pt,Ct){it.current.classList.add("mouse-hover-md");var vt;if(vt=Ct.dataTransfer.files,vt.length>0){Ct.preventDefault(),Ct.stopPropagation();for(var Dn=function(pn){var Yt=vt[pn],Tn=Yt.name.split(".").pop();Je(Yt,function(zn){if(zn.id){var fr,Gn,Lr;(Yt==null||((fr=Yt.type)===null||fr===void 0)?void 0:fr.indexOf("image"))>-1?wt.replaceSelection("![,](/api/attachments/".concat(zn.id,"?type=").concat(zn.content_type,")")):(Yt==null||((Gn=Yt.type)===null||Gn===void 0)?void 0:Gn.indexOf("video"))>-1?wt.replaceSelection('')):(Yt==null||((Lr=Yt.type)===null||Lr===void 0)?void 0:Lr.indexOf("pdf"))>-1?wt.replaceSelection('').concat(Yt.name,"")):ae.includes(Tn)?wt.replaceSelection('').concat(Yt.name,"")):wt.replaceSelection("[".concat(Yt.name,"](").concat(v.a.API_SERVER,"/api/attachments/").concat(zn.id,"?type=").concat(zn.content_type,")"))}else(zn==null?void 0:zn.status)===401&&(document.location.href="/user/login")})},$t=0;$t0||$t.target.offsetWidth>0)&&(St(),Q.setSize("100%","100%"),Q.refresh())}}catch(Cn){vt.e(Cn)}finally{vt.f()}});return Pt.observe(mt.current.parentElement),Pt}if(Q){var It=wt();return function(){It.unobserve(mt.current.parentElement)}}},[Q,St]),Object(o.useEffect)(function(){if(Q){for(var wt=[],It=function(){var $t=Ct[Pt];vt=Object(P.a)($t,2);var Cn=vt[0],pn=vt[1],Yt=Object(m.a)({},Cn,function(){nn(pn)});wt.push(Yt),Q.addKeyMap(Yt)},Pt=0,Ct=Object.entries(le);Pt0){var wt=new Date().getTime(),It=window.sessionStorage.getItem(lt);wt>=sr+Et&&(!It||It!==tn)&&(window.sessionStorage.setItem(lt,tn),Le(!0))}},Et),Object(o.useEffect)(function(){vn(Nt)},[Q,Nt]),Object(o.useEffect)(function(){Q&&(Fe&&Q.focus())},[Q,Fe]),Object(o.useEffect)(function(){if(nr&&Q){var wt=Q.getScrollerElement();function It(Pt){var Ct=Pt.target;if(Xt.current){var vt=Ct.scrollTop/Ct.scrollHeight;Xt.current.scrollTop=Xt.current.scrollHeight*vt}}return wt.addEventListener("scroll",It),function(){wt.removeEventListener("scroll",It)}}},[Q,nr]),Object(o.useEffect)(function(){if(Q&&Rr){function wt(It,Pt){Rr(It,Pt)}return Q.on("beforeChange",wt),function(){Q.off("beforeChange",wt)}}},[Q,Rr]),Object(o.useEffect)(function(){if(Q&&ur){function wt(){ur(Q.getValue())}return Q.on("blur",wt),function(){Q.off("blur",wt)}}},[Q,ur]),Object(o.useEffect)(function(){if(Q){function wt(It){var Pt=It.getValue();An(Pt),Pn(new Date().getTime()),It.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Qt&&Qt(Pt)}return Q.on("change",wt),function(){Q.off("change",wt)}}},[Q,Qt]),Object(o.useEffect)(function(){Q&&(xt==null?(Q.setValue(""),An("")):xt!==Q.getValue()&&(Q.setValue(xt),An(xt),Q.setCursor(Q.lineCount(),0)))},[Q,xt]);var nn=Object(o.useCallback)(function(wt){var It=Q.getCursor(),Pt=Q.getSelection(),Ct=Pt.split(` +`);switch(wt){case"bold":return Q.replaceSelection("**"+Pt+"**"),Pt===""&&Q.setCursor(It.line,It.ch+2),Q.focus();case"italic":return Q.replaceSelection("*"+Pt+"*"),Pt===""&&Q.setCursor(It.line,It.ch+1),Q.focus();case"code":return Q.replaceSelection("`"+Pt+"`"),Pt===""&&Q.setCursor(It.line,It.ch+1),Q.focus();case"inline-latex":return Q.replaceSelection("`$$"+Pt+"$$`"),Pt===""&&Q.setCursor(It.line,It.ch+3),Q.focus();case"latex":return Q.replaceSelection("```latex\n"+Pt+"\n```"),Q.setCursor(It.line+1,Pt.length+1),Q.focus();case"line-break":return Q.replaceSelection(`
      +`),Q.focus();case"list-ul":return Pt===""?Q.replaceSelection("- "+Pt):Q.replaceSelection(Ct.map(function(vt){return vt===""?"":"- ".concat(vt)}).join(` +`)),Q.focus();case"list-ol":return Pt===""?Q.replaceSelection("1. "+Pt):Q.replaceSelection(Ct.map(function(vt,Dn){return vt===""?"":"".concat(Dn+1,". ").concat(vt)}).join(` +`)),Q.focus();case"add-null-ch":return Pt===""&&Q.setCursor(It.line,It.ch+1),Q.replaceSelection(Ze),Q.focus();case"inster-template-1":return Pt===""&&Q.setCursor(It.line,It.ch),Q.replaceSelection(dt),Q.focus();case"eraser":return Q.setValue(""),Q.focus();case"trigger-watch":return vn(!nr),Q.focus();case"trigger-full-screen":return dr(!Nn),Q.focus();case we:gr(we);return;case ct:gr(ct);return;case $e:gr($e);return;case yt:gr(yt);return;default:throw new Error}},[Q,nr,Nn]),Qe=Object(o.useCallback)(function(wt){gr("");switch(kn){case we:var It=wt.title,Pt=wt.link;return Q.replaceSelection("[".concat(It,"](").concat(Pt,")")),Q.focus();case ct:var Ct=wt.language,vt=wt.content;return Q.replaceSelection(["```"+Ct,vt,"```"].join(` +`)),Q.focus();case $e:var Dn=wt.src,$t=wt.alt;return $t?Q.replaceSelection("![ ".concat($t," ]( ").concat(Dn,' "').concat($t,'" )')):Q.replaceSelection("![,](".concat(Dn,")")),Q.focus();case yt:for(var Cn=wt.row,pn=wt.col,Yt=wt.align,Tn=` +`,zn=0;zn300&&(bn=300);var dn=Ot+bn+"px";wr(dn)}}return Ct.addEventListener("mousedown",Dt),document.addEventListener("mousemove",gn),document.addEventListener("mouseup",wt),function(){Ct.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",gn),document.removeEventListener("mouseup",wt)}}},[Q,Lt]),Object(o.useEffect)(function(){wr(Ot)},[Ot]);var _n=Ne(gt),Dn=Ne(br),Vt={width:_n,height:Dn},cn=Object(o.useMemo)(function(){if(Gn){var Ct=new Date(Gn),xt=Ct.getHours(),Pt=Ct.getMinutes(),Dt=Ct.getSeconds();return xt=xt<10?"0"+xt:xt,Pt=Pt<10?"0"+Pt:Pt,Dt=Dt<10?"0"+Dt:Dt,"".concat(xt,":").concat(Pt,":").concat(Dt)}return 0},[Gn]);function Ht(){window.sessionStorage.removeItem(lt),Pe(!1),Wn(0)}function On(){Pe(!1),Wn(0),Q.setValue(window.sessionStorage.getItem(lt))}function Sn(Ct,xt){var Pt=Q.getValue();Pt=Pt.replace(Ct,xt),An(Pt),Q==null||Q.setValue(Pt)}return u.a.createElement(o.Fragment,null,u.a.createElement("div",{className:"markdown-editor-wrapper",ref:it},u.a.createElement("div",{className:"markdown-editor-container ".concat(pn," ").concat(nr?"on-preview":""," ").concat(ft?"mini":""," ").concat(kn?"full-screen":""),style:Vt},u.a.createElement(g,{insertTemp:yt,watch:nr,fullScreen:kn,showNullButton:Hn,onActionCallback:Ft,hidetoolBar:xr,uuid:st.current,setOpenPhones:function(){Ze.current=!0}}),u.a.createElement("div",{className:"markdown-editor-body"},u.a.createElement("div",{className:"codemirror-container"},u.a.createElement("textarea",{ref:mt,placeholder:Jr})),nr?u.a.createElement("div",{ref:Yt,className:"preview-container"},Jt==="stex"&&u.a.createElement(k,{value:en}),Jt!=="stex"&&u.a.createElement(C.a,{edit:!0,value:en,replaces:Sn})):null))),Wt?u.a.createElement("a",{ref:Lt,className:"editor-resize"}):null,u.a.createElement(j.a,null,he[In]?u.a.createElement(B.a,{centered:!0,title:he[In],visible:!0,onCancel:zt,footer:null,className:"markdown-popup-form"},qt):null))}},P47w:function(Be,J,L){var Y=L("hydK"),B=Y.createElement,I=L("IMiH"),F=L("mFDi"),T=L("Fofx"),R=L("6GrX"),P=L("pzxd"),m=L("dqUG"),t=I.CMD,b=Array.prototype.join,o="none",u=Math.round,f=Math.sin,a=Math.cos,i=Math.PI,d=Math.PI*2,s=180/i,n=1e-4;function l(K){return u(K*1e4)/1e4}function c(K){return K-n}function x(K,$){var Z=$?K.textFill:K.fill;return Z!=null&&Z!==o}function A(K,$){var Z=$?K.textStroke:K.stroke;return Z!=null&&Z!==o}function C(K,$){$&&k(K,"transform","matrix("+b.call($,",")+")")}function k(K,$,Z){(!Z||Z.type!=="linear"&&Z.type!=="radial")&&K.setAttribute($,Z)}function w(K,$,Z){K.setAttributeNS("http://www.w3.org/1999/xlink",$,Z)}function y(K,$,Z,me){if(x($,Z)){var oe=Z?$.textFill:$.fill;oe=oe==="transparent"?o:oe,k(K,"fill",oe),k(K,"fill-opacity",$.fillOpacity!=null?$.fillOpacity*$.opacity:$.opacity)}else k(K,"fill",o);if(A($,Z)){var fe=Z?$.textStroke:$.stroke;fe=fe==="transparent"?o:fe,k(K,"stroke",fe);var ye=Z?$.textStrokeWidth:$.lineWidth,Ie=!Z&&$.strokeNoScale?me.getLineScale():1;k(K,"stroke-width",ye/Ie),k(K,"paint-order",Z?"stroke":"fill"),k(K,"stroke-opacity",$.strokeOpacity!=null?$.strokeOpacity:$.opacity);var ve=$.lineDash;ve?(k(K,"stroke-dasharray",$.lineDash.join(",")),k(K,"stroke-dashoffset",u($.lineDashOffset||0))):k(K,"stroke-dasharray",""),$.lineCap&&k(K,"stroke-linecap",$.lineCap),$.lineJoin&&k(K,"stroke-linejoin",$.lineJoin),$.miterLimit&&k(K,"stroke-miterlimit",$.miterLimit)}else k(K,"stroke",o)}function h(K){for(var $=[],Z=K.data,me=K.len(),oe=0;oe=d:-Me>=d),ie=Me>0?Me%d:Me%d+d,xe=!1;ht?xe=!0:c(ke)?xe=!1:xe=ie>=i===!!He;var we=l(ve+Qe*a(Ee)),$e=l(de+Rt*f(Ee));ht&&(He?Me=d-1e-4:Me=-d+1e-4,xe=!0,oe===9&&$.push("M",we,$e));var ct=l(ve+Qe*a(Ee+Me)),vt=l(de+Rt*f(Ee+Me));$.push("A",l(Qe),l(Rt),u(nt*s),+xe,+He,ct,vt);break;case t.Z:ye="Z";break;case t.R:var ct=l(Z[oe++]),vt=l(Z[oe++]),Ut=l(Z[oe++]),We=l(Z[oe++]);$.push("M",ct,vt,"L",ct+Ut,vt,"L",ct+Ut,vt+We,"L",ct,vt+We,"L",ct,vt);break}ye&&$.push(ye);for(var kt=0;ktZt){for(;We255?255:h}function F(h){return h=Math.round(h),h<0?0:h>360?360:h}function T(h){return h<0?0:h>1?1:h}function R(h){return h.length&&h.charAt(h.length-1)==="%"?I(parseFloat(h)/100*255):I(parseInt(h,10))}function P(h){return h.length&&h.charAt(h.length-1)==="%"?T(parseFloat(h)/100):T(parseFloat(h))}function m(h,p,v){return v<0?v+=1:v>1&&(v-=1),v*6<1?h+(p-h)*v*6:v*2<1?p:v*3<2?h+(p-h)*(2/3-v)*6:h}function t(h,p,v){return h+(p-h)*v}function b(h,p,v,_,E){return h[0]=p,h[1]=v,h[2]=_,h[3]=E,h}function o(h,p){return h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3],h}var u=new Y(20),f=null;function a(h,p){f&&o(f,p),f=u.put(h,f||p.slice())}function i(h,p){if(!h)return;p=p||[];var v=u.get(h);if(v)return o(p,v);h=h+"";var _=h.replace(/ /g,"").toLowerCase();if(_ in B)return o(p,B[_]),a(h,p),p;if(_.charAt(0)==="#"){if(_.length===4){var E=parseInt(_.substr(1),16);if(!(E>=0&&E<=4095)){b(p,0,0,0,1);return}return b(p,(E&3840)>>4|(E&3840)>>8,E&240|(E&240)>>4,E&15|(E&15)<<4,1),a(h,p),p}else if(_.length===7){var E=parseInt(_.substr(1),16);if(!(E>=0&&E<=16777215)){b(p,0,0,0,1);return}return b(p,(E&16711680)>>16,(E&65280)>>8,E&255,1),a(h,p),p}return}var g=_.indexOf("("),j=_.indexOf(")");if(g!==-1&&j+1===_.length){var U=_.substr(0,g),S=_.substr(g+1,j-(g+1)).split(","),z=1;switch(U){case"rgba":if(S.length!==4){b(p,0,0,0,1);return}z=P(S.pop());case"rgb":if(S.length!==3){b(p,0,0,0,1);return}return b(p,R(S[0]),R(S[1]),R(S[2]),z),a(h,p),p;case"hsla":if(S.length!==4){b(p,0,0,0,1);return}return S[3]=P(S[3]),d(S,p),a(h,p),p;case"hsl":if(S.length!==3){b(p,0,0,0,1);return}return d(S,p),a(h,p),p;default:return}}b(p,0,0,0,1);return}function d(h,p){var v=(parseFloat(h[0])%360+360)%360/360,_=P(h[1]),E=P(h[2]),g=E<=.5?E*(_+1):E+_-E*_,j=E*2-g;return p=p||[],b(p,I(m(j,g,v+1/3)*255),I(m(j,g,v)*255),I(m(j,g,v-1/3)*255),1),h.length===4&&(p[3]=h[3]),p}function s(h){if(!h)return;var p=h[0]/255,v=h[1]/255,_=h[2]/255,E=Math.min(p,v,_),g=Math.max(p,v,_),j=g-E,U=(g+E)/2,S,z;if(j===0)S=0,z=0;else{U<.5?z=j/(g+E):z=j/(2-g-E);var H=((g-p)/6+j/2)/j,M=((g-v)/6+j/2)/j,V=((g-_)/6+j/2)/j;p===g?S=V-M:v===g?S=1/3+H-V:_===g&&(S=2/3+M-H),S<0&&(S+=1),S>1&&(S-=1)}var K=[S*360,z,U];return h[3]!=null&&K.push(h[3]),K}function n(h,p){var v=i(h);if(v){for(var _=0;_<3;_++)p<0?v[_]=v[_]*(1-p)|0:v[_]=(255-v[_])*p+v[_]|0,v[_]>255?v[_]=255:h[_]<0&&(v[_]=0);return y(v,v.length===4?"rgba":"rgb")}}function l(h){var p=i(h);if(p)return((1<<24)+(p[0]<<16)+(p[1]<<8)+ +p[2]).toString(16).slice(1)}function c(h,p,v){if(!(p&&p.length)||!(h>=0&&h<=1))return;v=v||[];var _=h*(p.length-1),E=Math.floor(_),g=Math.ceil(_),j=p[E],U=p[g],S=_-E;return v[0]=I(t(j[0],U[0],S)),v[1]=I(t(j[1],U[1],S)),v[2]=I(t(j[2],U[2],S)),v[3]=T(t(j[3],U[3],S)),v}var x=c;function A(h,p,v){if(!(p&&p.length)||!(h>=0&&h<=1))return;var _=h*(p.length-1),E=Math.floor(_),g=Math.ceil(_),j=i(p[E]),U=i(p[g]),S=_-E,z=y([I(t(j[0],U[0],S)),I(t(j[1],U[1],S)),I(t(j[2],U[2],S)),T(t(j[3],U[3],S))],"rgba");return v?{color:z,leftIndex:E,rightIndex:g,value:_}:z}var C=A;function k(h,p,v,_){if(h=i(h),h)return h=s(h),p!=null&&(h[0]=F(p)),v!=null&&(h[1]=P(v)),_!=null&&(h[2]=P(_)),y(d(h),"rgba")}function w(h,p){if(h=i(h),h&&p!=null)return h[3]=T(p),y(h,"rgba")}function y(h,p){if(!h||!h.length)return;var v=h[0]+","+h[1]+","+h[2];return(p==="rgba"||p==="hsva"||p==="hsla")&&(v+=","+h[3]),p+"("+v+")"}J.parse=i,J.lift=n,J.toHex=l,J.fastLerp=c,J.fastMapToColor=x,J.lerp=A,J.mapToColor=C,J.modifyHSL=k,J.modifyAlpha=w,J.stringify=y},QuXc:function(Be,J){var L=function(B){this.colorStops=B||[]};L.prototype={constructor:L,addColorStop:function(B,I){this.colorStops.push({offset:B,color:I})}};var Y=L;Be.exports=Y},R5GN:function(Be,J,L){"use strict";var Y=L("2qtc"),B=L("kLXV"),I=L("g9YV"),F=L("wCAj"),T=L("5NDa"),R=L("5rEg"),P=L("14J3"),m=L("BMrR"),t=L("iQDF"),b=L("+eQT"),o=L("miYZ"),u=L("tsqr"),f=L("jrin"),a=L("oBTY"),i=L("k1fw"),d=L("9og8"),s=L("y8nQ"),n=L("Vl3Y"),l=L("tJVT"),c=L("WmNS"),x=L.n(c),A=L("q1tI"),C=L.n(A),k=L("wd/R"),w=L.n(k),y=L("ErOA"),h=L("1vsH"),p=L("Ty5D"),v=L("9kvl"),_=L("eozf"),E=L("oUNq"),g=L("xKgJ"),j=function(S){var z=S.classroomList,H=S.dispatch,M=S.courseEndTime,V=Object(p.i)(),K=n.a.useForm(),$=Object(l.a)(K,1),Z=$[0],me=Object(A.useState)(1),oe=Object(l.a)(me,2),fe=oe[0],ye=oe[1],Ie=Object(A.useState)([]),ve=Object(l.a)(Ie,2),de=ve[0],Qe=ve[1],Rt=Object(A.useState)(0),Ee=Object(l.a)(Rt,2),Me=Ee[0],nt=Ee[1],He=Object(A.useState)(2e4),ke=Object(l.a)(He,2),ht=ke[0],ie=ke[1],xe=Object(A.useState)(!0),we=Object(l.a)(xe,2),$e=we[0],ct=we[1],vt=Object(A.useState)([]),Ut=Object(l.a)(vt,2),We=Ut[0],kt=Ut[1],Zt=Object(A.useState)(),Le=Object(l.a)(Zt,2),Ae=Le[0],ut=Le[1];Object(A.useEffect)(function(){z.actionTabs.key==="\u7ACB\u5373\u622A\u6B62"?_t():(kt([]),Qe([]))},[z.actionTabs.key]);var _t=function(){var ae=Object(d.a)(x.a.mark(function le(he){var _e,Se,ze;return x.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return ct(!0),$t.next=3,Object(E.D)(Object(i.a)(Object(i.a)({},V),{},{page:he||fe,limit:ht,homework_id:z.actionTabs.type===1?"":z.actionTabs.selectArrs[0],end_homework_action:!0}));case 3:_e=$t.sent,_e==null||_e.course_groups.map(function(on,gt){on.key=on.id}),_e&&(Qe([].concat(Object(a.a)(de),Object(a.a)(_e==null?void 0:_e.course_groups))),nt(_e==null?void 0:_e.course_groups_count),ut(_e==null?void 0:_e.course_groups),ct(!1),he||Z.setFieldsValue((ze={},Object(f.a)(ze,"group_ids",_e==null||((Se=_e.course_groups)===null||Se===void 0)?void 0:Se.map(function(on){return String(on.id)})),Object(f.a)(ze,"end_time",w()(w()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),ze)));case 6:case"end":return $t.stop()}},le)}));return function(he){return ae.apply(this,arguments)}}(),Je=function(le){ye(le),_t(le)},dt=function(){var ae=Object(d.a)(x.a.mark(function le(){var he,_e;return x.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(he=Object(i.a)({},Z.getFieldsValue()),!(Ae!=null&&Ae.length&&!(We!=null&&We.length))){ze.next=4;break}return u.b.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7"),ze.abrupt("return");case 4:return ze.next=6,Object(y.a)("/api/courses/".concat(V.coursesId,"/homework_commons/end_with_homework_list_position.json"),{method:"post",body:{homework_ids:Object(a.a)(z.actionTabs.selectArrs),group_ids:(We==null?void 0:We.length)>0?We:[],unified_setting:!(de!=null&&de.length),end_time:w()(he.end_time).format("YYYY-MM-DD HH:mm")}});case 6:_e=ze.sent,_e.status===0&&(Ne(),Object(h.cb)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u622A\u6B62"]),u.b.success("\u64CD\u4F5C\u6210\u529F"),H({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Object(g.c)()?z.actionTabs.detail?(H({type:"classroomList/setActionTabs",payload:{}}),H({type:"shixunHomeworks/getWorkList",payload:Object(i.a)({},V)}),H({type:"shixunHomeworks/getWorkSetting",payload:Object(i.a)({},V)})):H({type:"classroomList/getClassroomTeacherShixunsList",payload:Object(i.a)(Object(i.a)({},z.actionTabs.params),{},{type:4})}):H({type:"classroomList/getClassroomShixunsList",payload:Object(i.a)({},z.actionTabs.params)}));case 8:case"end":return ze.stop()}},le)}));return function(){return ae.apply(this,arguments)}}(),Ne=function(){ye(1),Qe([])},Te=Me>fe*ht,Oe=z.detailShixunsList;return C.a.createElement(B.a,{centered:!0,title:"\u622A\u6B62\u4F5C\u4E1A",visible:z.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",okText:"\u622A\u6B62\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u622A\u6B62",onOk:dt,onCancel:function(){Ne(),H({type:"classroomList/setActionTabs",payload:{}})}},C.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A",C.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u63D0\u4EA4\u4E2D" \u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548'),de&&C.a.createElement(n.a,{form:Z},C.a.createElement(m.a,null,C.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),C.a.createElement(n.a.Item,{name:"end_time"},C.a.createElement(b.a,{style:{width:170},getPopupContainer:function(le){return le.parentNode},disabledDate:function(le){return Object(_.b)(le,M)},disabledTime:function(le){return Object(_.c)(le)},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:w()(Object(h.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),(Ae==null?void 0:Ae.length)>0&&C.a.createElement(m.a,null,C.a.createElement("span",{className:"mr5"},"\u9009\u62E9\u73ED\u7EA7:"),C.a.createElement(R.a.Search,{style:{width:"300px"},onChange:function(le){Qe(Ae.filter(function(he){return he.name.indexOf(le.target.value)>-1}))}})),(de==null?void 0:de.length)>0&&z.actionTabs.type===1&&C.a.createElement(F.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(le,he){kt(le)}},pagination:!1,dataSource:de,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"}]}),(de==null?void 0:de.length)>0&&z.actionTabs.type===2&&C.a.createElement(F.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(le,he){kt(le)}},pagination:!1,dataSource:de,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]})))};J.a=Object(v.a)(function(U){var S=U.classroomList;return{classroomList:S}})(j)},RDYZ:function(Be,J,L){var Y=L("dMvE");function B(F){this._target=F.target,this._life=F.life||1e3,this._delay=F.delay||0,this._initialized=!1,this.loop=F.loop==null?!1:F.loop,this.gap=F.gap||0,this.easing=F.easing||"Linear",this.onframe=F.onframe,this.ondestroy=F.ondestroy,this.onrestart=F.onrestart,this._pausedTime=0,this._paused=!1}B.prototype={constructor:B,step:function(F,T){if(this._initialized||(this._startTime=F+this._delay,this._initialized=!0),this._paused){this._pausedTime+=T;return}var R=(F-this._startTime-this._pausedTime)/this._life;if(R<0)return;R=Math.min(R,1);var P=this.easing,m=typeof P=="string"?Y[P]:P,t=typeof m=="function"?m(R):R;return this.fire("frame",t),R===1?this.loop?(this.restart(F),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(F){var T=(F-this._startTime-this._pausedTime)%this._life;this._startTime=F-T+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(F,T){F="on"+F,this[F]&&this[F](this._target,T)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var I=B;Be.exports=I},RXMa:function(Be,J,L){var Y=L("y+Vt"),B=Y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(I,F){var T=F.cx,R=F.cy,P=Math.PI*2;I.moveTo(T+F.r,R),I.arc(T,R,F.r,0,P,!1),I.moveTo(T+F.r0,R),I.arc(T,R,F.r0,0,P,!0)}});Be.exports=B},RotF:function(Be,J,L){Be.exports=L("LSTS")},"SA+Z":function(Be,J,L){var Y=L("wTVA"),B=L("EbDI"),I=L("ZhPi"),F=L("wkBT");function T(R){return Y(R)||B(R)||I(R)||F()}Be.exports=T,Be.exports.__esModule=!0,Be.exports.default=Be.exports},SJMd:function(Be,J){/** +`),Q.focus();default:throw new Error}},[Q,kn]),en=Object(o.useMemo)(function(){switch(kn){case we:return u.a.createElement($,{callback:Qe,onCancel:Bt});case ct:return u.a.createElement(Z.b,{callback:Qe,onCancel:Bt});case $e:return u.a.createElement(ve,{callback:Qe,onCancel:Bt});case yt:return u.a.createElement(ht,{callback:Qe,onCancel:Bt});default:return null}},[kn]);function Bt(){gr("")}Object(o.useEffect)(function(){if(Mt.current){var wt=Mt.current,It=!1,Pt=0;function Ct($t){It=!0,Pt=$t.pageY}function vt(){It=!1}function Dn($t){if(It){var Cn=$t.pageY-Pt;Cn<0&&(Cn=0),Cn>300&&(Cn=300);var pn=Ot+Cn+"px";hr(pn)}}return wt.addEventListener("mousedown",Ct),document.addEventListener("mousemove",Dn),document.addEventListener("mouseup",vt),function(){wt.removeEventListener("mousedown",Ct),document.removeEventListener("mousemove",Dn),document.removeEventListener("mouseup",vt)}}},[Q,Mt]),Object(o.useEffect)(function(){hr(Ot)},[Ot]);var bn=Ne(gt),On=Ne(Sr),Gt={width:bn,height:On},cn=Object(o.useMemo)(function(){if(sr){var wt=new Date(sr),It=wt.getHours(),Pt=wt.getMinutes(),Ct=wt.getSeconds();return It=It<10?"0"+It:It,Pt=Pt<10?"0"+Pt:Pt,Ct=Ct<10?"0"+Ct:Ct,"".concat(It,":").concat(Pt,":").concat(Ct)}return 0},[sr]);function Ht(){window.sessionStorage.removeItem(lt),Le(!1),Pn(0)}function Sn(){Le(!1),Pn(0),Q.setValue(window.sessionStorage.getItem(lt))}function wn(wt,It){var Pt=Q.getValue();Pt=Pt.replace(wt,It),An(Pt),Q==null||Q.setValue(Pt)}return u.a.createElement(o.Fragment,null,u.a.createElement("div",{className:"markdown-editor-wrapper",ref:it},u.a.createElement("div",{className:"markdown-editor-container ".concat(fn," ").concat(nr?"on-preview":""," ").concat(ft?"mini":""," ").concat(Nn?"full-screen":""),style:Gt},u.a.createElement(g,{insertTemp:bt,watch:nr,fullScreen:Nn,showNullButton:Wn,onActionCallback:nn,hidetoolBar:xr,uuid:st.current,setOpenPhones:function(){et.current=!0}}),u.a.createElement("div",{className:"markdown-editor-body"},u.a.createElement("div",{className:"codemirror-container"},u.a.createElement("textarea",{ref:mt,placeholder:Jr})),nr?u.a.createElement("div",{ref:Xt,className:"preview-container"},Zt==="stex"&&u.a.createElement(k,{value:tn}),Zt!=="stex"&&u.a.createElement(C.a,{edit:!0,value:tn,replaces:wn})):null))),Wt?u.a.createElement("a",{ref:Mt,className:"editor-resize"}):null,u.a.createElement(j.a,null,he[kn]?u.a.createElement(B.a,{centered:!0,title:he[kn],visible:!0,onCancel:Bt,footer:null,className:"markdown-popup-form"},en):null))}},P47w:function(Be,J,L){var Y=L("hydK"),B=Y.createElement,I=L("IMiH"),F=L("mFDi"),T=L("Fofx"),R=L("6GrX"),P=L("pzxd"),m=L("dqUG"),t=I.CMD,b=Array.prototype.join,o="none",u=Math.round,f=Math.sin,a=Math.cos,i=Math.PI,d=Math.PI*2,s=180/i,n=1e-4;function l(K){return u(K*1e4)/1e4}function c(K){return K-n}function x(K,$){var Z=$?K.textFill:K.fill;return Z!=null&&Z!==o}function A(K,$){var Z=$?K.textStroke:K.stroke;return Z!=null&&Z!==o}function C(K,$){$&&k(K,"transform","matrix("+b.call($,",")+")")}function k(K,$,Z){(!Z||Z.type!=="linear"&&Z.type!=="radial")&&K.setAttribute($,Z)}function w(K,$,Z){K.setAttributeNS("http://www.w3.org/1999/xlink",$,Z)}function y(K,$,Z,me){if(x($,Z)){var oe=Z?$.textFill:$.fill;oe=oe==="transparent"?o:oe,k(K,"fill",oe),k(K,"fill-opacity",$.fillOpacity!=null?$.fillOpacity*$.opacity:$.opacity)}else k(K,"fill",o);if(A($,Z)){var fe=Z?$.textStroke:$.stroke;fe=fe==="transparent"?o:fe,k(K,"stroke",fe);var ye=Z?$.textStrokeWidth:$.lineWidth,Ie=!Z&&$.strokeNoScale?me.getLineScale():1;k(K,"stroke-width",ye/Ie),k(K,"paint-order",Z?"stroke":"fill"),k(K,"stroke-opacity",$.strokeOpacity!=null?$.strokeOpacity:$.opacity);var ve=$.lineDash;ve?(k(K,"stroke-dasharray",$.lineDash.join(",")),k(K,"stroke-dashoffset",u($.lineDashOffset||0))):k(K,"stroke-dasharray",""),$.lineCap&&k(K,"stroke-linecap",$.lineCap),$.lineJoin&&k(K,"stroke-linejoin",$.lineJoin),$.miterLimit&&k(K,"stroke-miterlimit",$.miterLimit)}else k(K,"stroke",o)}function h(K){for(var $=[],Z=K.data,me=K.len(),oe=0;oe=d:-Me>=d),ie=Me>0?Me%d:Me%d+d,xe=!1;ht?xe=!0:c(ke)?xe=!1:xe=ie>=i===!!He;var we=l(ve+Je*a(Ee)),$e=l(de+Rt*f(Ee));ht&&(He?Me=d-1e-4:Me=-d+1e-4,xe=!0,oe===9&&$.push("M",we,$e));var ct=l(ve+Je*a(Ee+Me)),yt=l(de+Rt*f(Ee+Me));$.push("A",l(Je),l(Rt),u(rt*s),+xe,+He,ct,yt);break;case t.Z:ye="Z";break;case t.R:var ct=l(Z[oe++]),yt=l(Z[oe++]),Ut=l(Z[oe++]),We=l(Z[oe++]);$.push("M",ct,yt,"L",ct+Ut,yt,"L",ct+Ut,yt+We,"L",ct,yt+We,"L",ct,yt);break}ye&&$.push(ye);for(var kt=0;ktqt){for(;We255?255:h}function F(h){return h=Math.round(h),h<0?0:h>360?360:h}function T(h){return h<0?0:h>1?1:h}function R(h){return h.length&&h.charAt(h.length-1)==="%"?I(parseFloat(h)/100*255):I(parseInt(h,10))}function P(h){return h.length&&h.charAt(h.length-1)==="%"?T(parseFloat(h)/100):T(parseFloat(h))}function m(h,p,v){return v<0?v+=1:v>1&&(v-=1),v*6<1?h+(p-h)*v*6:v*2<1?p:v*3<2?h+(p-h)*(2/3-v)*6:h}function t(h,p,v){return h+(p-h)*v}function b(h,p,v,_,E){return h[0]=p,h[1]=v,h[2]=_,h[3]=E,h}function o(h,p){return h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3],h}var u=new Y(20),f=null;function a(h,p){f&&o(f,p),f=u.put(h,f||p.slice())}function i(h,p){if(!h)return;p=p||[];var v=u.get(h);if(v)return o(p,v);h=h+"";var _=h.replace(/ /g,"").toLowerCase();if(_ in B)return o(p,B[_]),a(h,p),p;if(_.charAt(0)==="#"){if(_.length===4){var E=parseInt(_.substr(1),16);if(!(E>=0&&E<=4095)){b(p,0,0,0,1);return}return b(p,(E&3840)>>4|(E&3840)>>8,E&240|(E&240)>>4,E&15|(E&15)<<4,1),a(h,p),p}else if(_.length===7){var E=parseInt(_.substr(1),16);if(!(E>=0&&E<=16777215)){b(p,0,0,0,1);return}return b(p,(E&16711680)>>16,(E&65280)>>8,E&255,1),a(h,p),p}return}var g=_.indexOf("("),j=_.indexOf(")");if(g!==-1&&j+1===_.length){var U=_.substr(0,g),S=_.substr(g+1,j-(g+1)).split(","),z=1;switch(U){case"rgba":if(S.length!==4){b(p,0,0,0,1);return}z=P(S.pop());case"rgb":if(S.length!==3){b(p,0,0,0,1);return}return b(p,R(S[0]),R(S[1]),R(S[2]),z),a(h,p),p;case"hsla":if(S.length!==4){b(p,0,0,0,1);return}return S[3]=P(S[3]),d(S,p),a(h,p),p;case"hsl":if(S.length!==3){b(p,0,0,0,1);return}return d(S,p),a(h,p),p;default:return}}b(p,0,0,0,1);return}function d(h,p){var v=(parseFloat(h[0])%360+360)%360/360,_=P(h[1]),E=P(h[2]),g=E<=.5?E*(_+1):E+_-E*_,j=E*2-g;return p=p||[],b(p,I(m(j,g,v+1/3)*255),I(m(j,g,v)*255),I(m(j,g,v-1/3)*255),1),h.length===4&&(p[3]=h[3]),p}function s(h){if(!h)return;var p=h[0]/255,v=h[1]/255,_=h[2]/255,E=Math.min(p,v,_),g=Math.max(p,v,_),j=g-E,U=(g+E)/2,S,z;if(j===0)S=0,z=0;else{U<.5?z=j/(g+E):z=j/(2-g-E);var H=((g-p)/6+j/2)/j,M=((g-v)/6+j/2)/j,V=((g-_)/6+j/2)/j;p===g?S=V-M:v===g?S=1/3+H-V:_===g&&(S=2/3+M-H),S<0&&(S+=1),S>1&&(S-=1)}var K=[S*360,z,U];return h[3]!=null&&K.push(h[3]),K}function n(h,p){var v=i(h);if(v){for(var _=0;_<3;_++)p<0?v[_]=v[_]*(1-p)|0:v[_]=(255-v[_])*p+v[_]|0,v[_]>255?v[_]=255:h[_]<0&&(v[_]=0);return y(v,v.length===4?"rgba":"rgb")}}function l(h){var p=i(h);if(p)return((1<<24)+(p[0]<<16)+(p[1]<<8)+ +p[2]).toString(16).slice(1)}function c(h,p,v){if(!(p&&p.length)||!(h>=0&&h<=1))return;v=v||[];var _=h*(p.length-1),E=Math.floor(_),g=Math.ceil(_),j=p[E],U=p[g],S=_-E;return v[0]=I(t(j[0],U[0],S)),v[1]=I(t(j[1],U[1],S)),v[2]=I(t(j[2],U[2],S)),v[3]=T(t(j[3],U[3],S)),v}var x=c;function A(h,p,v){if(!(p&&p.length)||!(h>=0&&h<=1))return;var _=h*(p.length-1),E=Math.floor(_),g=Math.ceil(_),j=i(p[E]),U=i(p[g]),S=_-E,z=y([I(t(j[0],U[0],S)),I(t(j[1],U[1],S)),I(t(j[2],U[2],S)),T(t(j[3],U[3],S))],"rgba");return v?{color:z,leftIndex:E,rightIndex:g,value:_}:z}var C=A;function k(h,p,v,_){if(h=i(h),h)return h=s(h),p!=null&&(h[0]=F(p)),v!=null&&(h[1]=P(v)),_!=null&&(h[2]=P(_)),y(d(h),"rgba")}function w(h,p){if(h=i(h),h&&p!=null)return h[3]=T(p),y(h,"rgba")}function y(h,p){if(!h||!h.length)return;var v=h[0]+","+h[1]+","+h[2];return(p==="rgba"||p==="hsva"||p==="hsla")&&(v+=","+h[3]),p+"("+v+")"}J.parse=i,J.lift=n,J.toHex=l,J.fastLerp=c,J.fastMapToColor=x,J.lerp=A,J.mapToColor=C,J.modifyHSL=k,J.modifyAlpha=w,J.stringify=y},QuXc:function(Be,J){var L=function(B){this.colorStops=B||[]};L.prototype={constructor:L,addColorStop:function(B,I){this.colorStops.push({offset:B,color:I})}};var Y=L;Be.exports=Y},R5GN:function(Be,J,L){"use strict";var Y=L("2qtc"),B=L("kLXV"),I=L("g9YV"),F=L("wCAj"),T=L("5NDa"),R=L("5rEg"),P=L("14J3"),m=L("BMrR"),t=L("iQDF"),b=L("+eQT"),o=L("miYZ"),u=L("tsqr"),f=L("jrin"),a=L("oBTY"),i=L("k1fw"),d=L("9og8"),s=L("y8nQ"),n=L("Vl3Y"),l=L("tJVT"),c=L("WmNS"),x=L.n(c),A=L("q1tI"),C=L.n(A),k=L("wd/R"),w=L.n(k),y=L("ErOA"),h=L("1vsH"),p=L("Ty5D"),v=L("9kvl"),_=L("eozf"),E=L("oUNq"),g=L("xKgJ"),j=function(S){var z=S.classroomList,H=S.dispatch,M=S.courseEndTime,V=Object(p.i)(),K=n.a.useForm(),$=Object(l.a)(K,1),Z=$[0],me=Object(A.useState)(1),oe=Object(l.a)(me,2),fe=oe[0],ye=oe[1],Ie=Object(A.useState)([]),ve=Object(l.a)(Ie,2),de=ve[0],Je=ve[1],Rt=Object(A.useState)(0),Ee=Object(l.a)(Rt,2),Me=Ee[0],rt=Ee[1],He=Object(A.useState)(2e4),ke=Object(l.a)(He,2),ht=ke[0],ie=ke[1],xe=Object(A.useState)(!0),we=Object(l.a)(xe,2),$e=we[0],ct=we[1],yt=Object(A.useState)([]),Ut=Object(l.a)(yt,2),We=Ut[0],kt=Ut[1],qt=Object(A.useState)(),Pe=Object(l.a)(qt,2),Ae=Pe[0],ut=Pe[1];Object(A.useEffect)(function(){z.actionTabs.key==="\u7ACB\u5373\u622A\u6B62"?Et():(kt([]),Je([]))},[z.actionTabs.key]);var Et=function(){var ae=Object(d.a)(x.a.mark(function le(he){var _e,Se,ze;return x.a.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:return ct(!0),Qt.next=3,Object(E.D)(Object(i.a)(Object(i.a)({},V),{},{page:he||fe,limit:ht,homework_id:z.actionTabs.type===1?"":z.actionTabs.selectArrs[0],end_homework_action:!0}));case 3:_e=Qt.sent,_e==null||_e.course_groups.map(function(sn,gt){sn.key=sn.id}),_e&&(Je([].concat(Object(a.a)(de),Object(a.a)(_e==null?void 0:_e.course_groups))),rt(_e==null?void 0:_e.course_groups_count),ut(_e==null?void 0:_e.course_groups),ct(!1),he||Z.setFieldsValue((ze={},Object(f.a)(ze,"group_ids",_e==null||((Se=_e.course_groups)===null||Se===void 0)?void 0:Se.map(function(sn){return String(sn.id)})),Object(f.a)(ze,"end_time",w()(w()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),ze)));case 6:case"end":return Qt.stop()}},le)}));return function(he){return ae.apply(this,arguments)}}(),Ze=function(le){ye(le),Et(le)},dt=function(){var ae=Object(d.a)(x.a.mark(function le(){var he,_e;return x.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(he=Object(i.a)({},Z.getFieldsValue()),!(Ae!=null&&Ae.length&&!(We!=null&&We.length))){ze.next=4;break}return u.b.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7"),ze.abrupt("return");case 4:return ze.next=6,Object(y.a)("/api/courses/".concat(V.coursesId,"/homework_commons/end_with_homework_list_position.json"),{method:"post",body:{homework_ids:Object(a.a)(z.actionTabs.selectArrs),group_ids:(We==null?void 0:We.length)>0?We:[],unified_setting:!(de!=null&&de.length),end_time:w()(he.end_time).format("YYYY-MM-DD HH:mm")}});case 6:_e=ze.sent,_e.status===0&&(Ne(),Object(h.cb)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u622A\u6B62"]),u.b.success("\u64CD\u4F5C\u6210\u529F"),H({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Object(g.c)()?z.actionTabs.detail?(H({type:"classroomList/setActionTabs",payload:{}}),H({type:"shixunHomeworks/getWorkList",payload:Object(i.a)({},V)}),H({type:"shixunHomeworks/getWorkSetting",payload:Object(i.a)({},V)})):H({type:"classroomList/getClassroomTeacherShixunsList",payload:Object(i.a)(Object(i.a)({},z.actionTabs.params),{},{type:4})}):H({type:"classroomList/getClassroomShixunsList",payload:Object(i.a)({},z.actionTabs.params)}));case 8:case"end":return ze.stop()}},le)}));return function(){return ae.apply(this,arguments)}}(),Ne=function(){ye(1),Je([])},Te=Me>fe*ht,Oe=z.detailShixunsList;return C.a.createElement(B.a,{centered:!0,title:"\u622A\u6B62\u4F5C\u4E1A",visible:z.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",okText:"\u622A\u6B62\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u622A\u6B62",onOk:dt,onCancel:function(){Ne(),H({type:"classroomList/setActionTabs",payload:{}})}},C.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A",C.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u63D0\u4EA4\u4E2D" \u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548'),de&&C.a.createElement(n.a,{form:Z},C.a.createElement(m.a,null,C.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),C.a.createElement(n.a.Item,{name:"end_time"},C.a.createElement(b.a,{style:{width:170},getPopupContainer:function(le){return le.parentNode},disabledDate:function(le){return Object(_.b)(le,M)},disabledTime:function(le){return Object(_.c)(le)},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:w()(Object(h.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),(Ae==null?void 0:Ae.length)>0&&C.a.createElement(m.a,null,C.a.createElement("span",{className:"mr5"},"\u9009\u62E9\u73ED\u7EA7:"),C.a.createElement(R.a.Search,{style:{width:"300px"},onChange:function(le){Je(Ae.filter(function(he){return he.name.indexOf(le.target.value)>-1}))}})),(de==null?void 0:de.length)>0&&z.actionTabs.type===1&&C.a.createElement(F.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(le,he){kt(le)}},pagination:!1,dataSource:de,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"}]}),(de==null?void 0:de.length)>0&&z.actionTabs.type===2&&C.a.createElement(F.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(le,he){kt(le)}},pagination:!1,dataSource:de,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]})))};J.a=Object(v.a)(function(U){var S=U.classroomList;return{classroomList:S}})(j)},RDYZ:function(Be,J,L){var Y=L("dMvE");function B(F){this._target=F.target,this._life=F.life||1e3,this._delay=F.delay||0,this._initialized=!1,this.loop=F.loop==null?!1:F.loop,this.gap=F.gap||0,this.easing=F.easing||"Linear",this.onframe=F.onframe,this.ondestroy=F.ondestroy,this.onrestart=F.onrestart,this._pausedTime=0,this._paused=!1}B.prototype={constructor:B,step:function(F,T){if(this._initialized||(this._startTime=F+this._delay,this._initialized=!0),this._paused){this._pausedTime+=T;return}var R=(F-this._startTime-this._pausedTime)/this._life;if(R<0)return;R=Math.min(R,1);var P=this.easing,m=typeof P=="string"?Y[P]:P,t=typeof m=="function"?m(R):R;return this.fire("frame",t),R===1?this.loop?(this.restart(F),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(F){var T=(F-this._startTime-this._pausedTime)%this._life;this._startTime=F-T+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(F,T){F="on"+F,this[F]&&this[F](this._target,T)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var I=B;Be.exports=I},RXMa:function(Be,J,L){var Y=L("y+Vt"),B=Y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(I,F){var T=F.cx,R=F.cy,P=Math.PI*2;I.moveTo(T+F.r,R),I.arc(T,R,F.r,0,P,!1),I.moveTo(T+F.r0,R),I.arc(T,R,F.r0,0,P,!0)}});Be.exports=B},RotF:function(Be,J,L){Be.exports=L("LSTS")},"SA+Z":function(Be,J,L){var Y=L("wTVA"),B=L("EbDI"),I=L("ZhPi"),F=L("wkBT");function T(R){return Y(R)||B(R)||I(R)||F()}Be.exports=T,Be.exports.__esModule=!0,Be.exports.default=Be.exports},SJMd:function(Be,J){/** * @license * Copyright (C) 2006 Google Inc. * @@ -329,14 +329,14 @@ Please report this to https://github.com/markedjs/marked.`,Te.silent)return"

      A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var L,Y,B,I=!1,F,T;window.PR_SHOULD_USE_CONTINUATION=!0;var R,P;(function(){var m=window,t=["break,continue,do,else,for,if,return,while"],b=[t,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[b,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],u=[o,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],f=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[o,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],i="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",d=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",n=[t,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],l=[t,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],c=[t,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],x=[u,a,f,d,s,n,l,c],A=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C="str",k="kwd",w="com",y="typ",h="lit",p="pun",v="pln",_="tag",E="dec",g="src",j="atn",U="atv",S="nocode",z="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function H(He){for(var ke=0,ht=!1,ie=!1,xe=0,we=He.length;xe122||(ae<65||Oe>90||ut.push([Math.max(65,Oe)|32,Math.min(ae,90)|32]),ae<97||Oe>122||ut.push([Math.max(97,Oe)&~32,Math.min(ae,122)&~32]))}}ut.sort(function(Se,ze){return Se[0]-ze[0]||ze[1]-Se[1]});for(var le=[],he=[],dt=0;dt_e[0]&&(_e[1]+1>_e[0]&&Je.push("-"),Je.push(Ut(_e[1])))}return Je.push("]"),Je.join("")}function kt(Le){for(var Ae=Le.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ut=Ae.length,_t=[],Je=0,dt=0;Je=2&&Oe==="["?Ae[Je]=We(Ne):Oe!=="\\"&&(Ae[Je]=Ne.replace(/[a-zA-Z]/g,function(he){var _e=he.charCodeAt(0);return"["+String.fromCharCode(_e&~32,_e|32)+"]"}))}return Ae.join("")}for(var Zt=[],xe=0,we=He.length;xe=0;)ht[Zt.charAt(Le)]=kt;var Ae=kt[1],ut=""+Ae;vt.hasOwnProperty(ut)||(ct.push(Ae),vt[ut]=null)}ct.push(/[\0-\uffff]/),ie=H(ct)})();var xe=ke.length,we=function($e){for(var ct=$e.sourceCode,vt=$e.basePos,Ut=$e.sourceNode,We=[vt,v],kt=0,Zt=ct.match(ie)||[],Le={},Ae=0,ut=Zt.length;Ae=5&&Je.substring(0,5)==="lang-",Ne&&!(dt&&typeof dt[1]=="string")&&(Ne=!1,Je=g),Ne||(Le[_t]=Je)}var ae=kt;if(kt+=_t.length,!Ne)We.push(vt+ae,Je);else{var le=dt[1],he=_t.indexOf(le),_e=he+le.length;dt[2]&&(_e=_t.length-dt[2].length,he=_e-le.length);var Se=Je.substring(5);V(Ut,vt+ae,_t.substring(0,he),we,We),V(Ut,vt+ae+he,le,de(Se,le),We),V(Ut,vt+ae+_e,_t.substring(_e),we,We)}}$e.decorations=We};return we}function me(He){var ke=[],ht=[];He.tripleQuotedStrings?ke.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):He.multiLineStrings?ke.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ke.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),He.verbatimStrings&&ht.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ie=He.hashComments;ie&&(He.cStyleComments?(ie>1?ke.push([w,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ke.push([w,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ht.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ke.push([w,/^#[^\r\n]*/,null,"#"])),He.cStyleComments&&(ht.push([w,/^\/\/[^\r\n]*/,null]),ht.push([w,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var xe=He.regexLiterals;if(xe){var we=xe>1?"":` -\r`,$e=we?".":"[\\S\\s]",ct="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+$e+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+$e+")*(?:\\x5D|$))+/";ht.push(["lang-regex",RegExp("^"+z+"("+ct+")")])}var vt=He.types;vt&&ht.push([y,vt]);var Ut=(""+He.keywords).replace(/^ | $/g,"");Ut.length&&ht.push([k,new RegExp("^(?:"+Ut.replace(/[\s,]+/g,"|")+")\\b"),null]),ke.push([v,/^\s+/,null,` \r - \xA0`]);var We="^.[^\\s\\w.$@'\"`/\\\\]*";return He.regexLiterals&&(We+="(?!s*/)"),ht.push([h,/^@[a-z_$][a-z_$@0-9]*/i,null],[y,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[h,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[p,new RegExp(We),null]),Z(ke,ht)}var oe=me({keywords:x,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function fe(He,ke,ht){for(var ie=/(?:^|\s)nocode(?:\s|$)/,xe=/\r\n?|\n/,we=He.ownerDocument,$e=we.createElement("li");He.firstChild;)$e.appendChild(He.firstChild);var ct=[$e];function vt(Ae){var ut=Ae.nodeType;if(ut==1&&!ie.test(Ae.className))if(Ae.nodeName==="br")Ut(Ae),Ae.parentNode&&Ae.parentNode.removeChild(Ae);else for(var _t=Ae.firstChild;_t;_t=_t.nextSibling)vt(_t);else if((ut==3||ut==4)&&ht){var Je=Ae.nodeValue,dt=Je.match(xe);if(dt){var Ne=Je.substring(0,dt.index);Ae.nodeValue=Ne;var Te=Je.substring(dt.index+dt[0].length);if(Te){var Oe=Ae.parentNode;Oe.insertBefore(we.createTextNode(Te),Ae.nextSibling)}Ut(Ae),Ne||Ae.parentNode.removeChild(Ae)}}}function Ut(Ae){for(;!Ae.nextSibling;)if(Ae=Ae.parentNode,!Ae)return;function ut(dt,Ne){var Te=Ne?dt.cloneNode(!1):dt,Oe=dt.parentNode;if(Oe){var ae=ut(Oe,1),le=dt.nextSibling;ae.appendChild(Te);for(var he=le;he;he=le)le=he.nextSibling,ae.appendChild(he)}return Te}for(var _t=ut(Ae.nextSibling,0),Je;(Je=_t.parentNode)&&Je.nodeType===1;)_t=Je;ct.push(_t)}for(var We=0;We=Oe&&(vt+=2),we>=ae&&(kt+=2)}}finally{Je&&(Je.style.display=dt)}}var Ie={};function ve(He,ke){for(var ht=ke.length;--ht>=0;){var ie=ke[ht];Ie.hasOwnProperty(ie)?m.console&&console.warn("cannot override language handler %s",ie):Ie[ie]=He}}function de(He,ke){return He&&Ie.hasOwnProperty(He)||(He=/^\s*]*(?:>|$)/],[w,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[p,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ve(Z([[v,/^[\s]+/,null,` \r -`],[U,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[_,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[j,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[p,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ve(Z([],[[U,/^[\s\S]+/]]),["uq.val"]),ve(me({keywords:u,hashComments:!0,cStyleComments:!0,types:A}),["c","cc","cpp","cxx","cyc","m"]),ve(me({keywords:"null,true,false"}),["json"]),ve(me({keywords:a,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:A}),["cs"]),ve(me({keywords:f,cStyleComments:!0}),["java"]),ve(me({keywords:c,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ve(me({keywords:n,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ve(me({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ve(me({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ve(me({keywords:d,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ve(me({keywords:i,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ve(Z([],[[C,/^[\s\S]+/]]),["regex"]);function Qe(He){var ke=He.langExtension;try{var ht=M(He.sourceNode,He.pre),ie=ht.sourceCode;He.sourceCode=ie,He.spans=ht.spans,He.basePos=0,de(ke,ie)(He),ye(He)}catch(xe){m.console&&console.log(xe&&xe.stack||xe)}}function Rt(He,ke,ht){var ie=ht||!1,xe=ke||null,we=document.createElement("div");we.innerHTML="

      "+He+"
      ",we=we.firstChild,ie&&fe(we,ie,!0);var $e={langExtension:xe,numberLines:ie,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Qe($e),we.innerHTML}function Ee(He,ke){var ht=ke||document.body,ie=ht.ownerDocument||document;function xe(Te){return ht.getElementsByTagName(Te)}for(var we=[xe("pre"),xe("code"),xe("xmp")],$e=[],ct=0;ct-R&&hR||h<-R}function i(h,p,v,_,E){var g=1-E;return g*g*(g*h+3*E*p)+E*E*(E*_+3*g*v)}function d(h,p,v,_,E){var g=1-E;return 3*(((p-h)*g+2*(v-p)*E)*g+(_-v)*E*E)}function s(h,p,v,_,E,g){var j=_+3*(p-v)-h,U=3*(v-p*2+h),S=3*(p-h),z=h-E,H=U*U-3*j*S,M=U*S-9*j*z,V=S*S-3*U*z,K=0;if(f(H)&&f(M))if(f(U))g[0]=0;else{var $=-S/U;$>=0&&$<=1&&(g[K++]=$)}else{var Z=M*M-4*H*V;if(f(Z)){var me=M/H,$=-U/j+me,oe=-me/2;$>=0&&$<=1&&(g[K++]=$),oe>=0&&oe<=1&&(g[K++]=oe)}else if(Z>0){var fe=T(Z),ye=H*U+1.5*j*(-M+fe),Ie=H*U+1.5*j*(-M-fe);ye<0?ye=-F(-ye,t):ye=F(ye,t),Ie<0?Ie=-F(-Ie,t):Ie=F(Ie,t);var $=(-U-(ye+Ie))/(3*j);$>=0&&$<=1&&(g[K++]=$)}else{var ve=(2*H*U-3*j*M)/(2*T(H*H*H)),de=Math.acos(ve)/3,Qe=T(H),Rt=Math.cos(de),$=(-U-2*Qe*Rt)/(3*j),oe=(-U+Qe*(Rt+m*Math.sin(de)))/(3*j),Ee=(-U+Qe*(Rt-m*Math.sin(de)))/(3*j);$>=0&&$<=1&&(g[K++]=$),oe>=0&&oe<=1&&(g[K++]=oe),Ee>=0&&Ee<=1&&(g[K++]=Ee)}}return K}function n(h,p,v,_,E){var g=6*v-12*p+6*h,j=9*p+3*_-3*h-9*v,U=3*p-3*h,S=0;if(f(j)){if(a(g)){var z=-U/g;z>=0&&z<=1&&(E[S++]=z)}}else{var H=g*g-4*j*U;if(f(H))E[0]=-g/(2*j);else if(H>0){var M=T(H),z=(-g+M)/(2*j),V=(-g-M)/(2*j);z>=0&&z<=1&&(E[S++]=z),V>=0&&V<=1&&(E[S++]=V)}}return S}function l(h,p,v,_,E,g){var j=(p-h)*E+h,U=(v-p)*E+p,S=(_-v)*E+v,z=(U-j)*E+j,H=(S-U)*E+U,M=(H-z)*E+z;g[0]=h,g[1]=j,g[2]=z,g[3]=M,g[4]=M,g[5]=H,g[6]=S,g[7]=_}function c(h,p,v,_,E,g,j,U,S,z,H){var M,V=.005,K=Infinity,$,Z,me,oe;b[0]=S,b[1]=z;for(var fe=0;fe<1;fe+=.05)o[0]=i(h,v,E,j,fe),o[1]=i(p,_,g,U,fe),me=I(b,o),me=0&&me=0&&z<=1&&(E[S++]=z)}}else{var H=j*j-4*g*U;if(f(H)){var z=-j/(2*g);z>=0&&z<=1&&(E[S++]=z)}else if(H>0){var M=T(H),z=(-j+M)/(2*g),V=(-j-M)/(2*g);z>=0&&z<=1&&(E[S++]=z),V>=0&&V<=1&&(E[S++]=V)}}return S}function k(h,p,v){var _=h+v-2*p;return _===0?.5:(h-p)/_}function w(h,p,v,_,E){var g=(p-h)*_+h,j=(v-p)*_+p,U=(j-g)*_+g;E[0]=h,E[1]=g,E[2]=U,E[3]=U,E[4]=j,E[5]=v}function y(h,p,v,_,E,g,j,U,S){var z,H=.005,M=Infinity;b[0]=j,b[1]=U;for(var V=0;V<1;V+=.05){o[0]=x(h,v,E,V),o[1]=x(p,_,g,V);var K=I(b,o);K=0&&K=0;--c)if(l[c]===n)return!0;return!1}),s):null:s[0]},f.prototype.update=function(i,d){if(!i)return;var s=this.getDefs(!1);if(i[this._domName]&&s.contains(i[this._domName]))typeof d=="function"&&d(i);else{var n=this.add(i);n&&(i[this._domName]=n)}},f.prototype.addDom=function(i){var d=this.getDefs(!0);d.appendChild(i)},f.prototype.removeDom=function(i){var d=this.getDefs(!1);d&&i[this._domName]&&(d.removeChild(i[this._domName]),i[this._domName]=null)},f.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var d=[];return I.each(this._tagNames,function(s){var n=i.getElementsByTagName(s);d=d.concat([].slice.call(n))}),d},f.prototype.markAllUnused=function(){var i=this.getDoms(),d=this;I.each(i,function(s){s[d._markLabel]=o})},f.prototype.markUsed=function(i){i&&(i[this._markLabel]=u)},f.prototype.removeUnused=function(){var i=this.getDefs(!1);if(!i)return;var d=this.getDoms(),s=this;I.each(d,function(n){n[s._markLabel]!==u&&i.removeChild(n)})},f.prototype.getSvgProxy=function(i){return i instanceof F?m:i instanceof T?t:i instanceof R?b:m},f.prototype.getTextSvgElement=function(i){return i.__textSvgEl},f.prototype.getSvgElement=function(i){return i.__svgEl};var a=f;Be.exports=a},T6xi:function(Be,J,L){var Y=L("YgsL"),B=L("nCxF");function I(F,T,R){var P=T.points,m=T.smooth;if(P&&P.length>=2){if(m&&m!=="spline"){var t=B(P,m,R,T.smoothConstraint);F.moveTo(P[0][0],P[0][1]);for(var b=P.length,o=0;o<(R?b:b-1);o++){var u=t[o*2],f=t[o*2+1],a=P[(o+1)%b];F.bezierCurveTo(u[0],u[1],f[0],f[1],a[0],a[1])}}else{m==="spline"&&(P=Y(P,R)),F.moveTo(P[0][0],P[0][1]);for(var o=1,i=P.length;o=0),T.set("isFirefox",F.indexOf("Firefox")>=0),T.set("isChrome",F.indexOf("Chrome")>=0),T.set("isSafari",F.indexOf("Safari")>=0);const R=Object.prototype.hasOwnProperty;class P{static has(S){return u.create(S)}static equals(S,z){return f.create(S,z)}static regex(S,z){return C.create(S,z)}static not(S){return s.create(S)}static and(...S){return y.create(S,null)}static or(...S){return h.create(S,null,!0)}static deserialize(S,z=!1){return S?this._deserializeOrExpression(S,z):void 0}static _deserializeOrExpression(S,z){let H=S.split("||");return h.create(H.map(M=>this._deserializeAndExpression(M,z)),null,!0)}static _deserializeAndExpression(S,z){let H=S.split("&&");return y.create(H.map(M=>this._deserializeOne(M,z)),null)}static _deserializeOne(S,z){if(S=S.trim(),S.indexOf("!=")>=0){let H=S.split("!=");return d.create(H[0].trim(),this._deserializeValue(H[1],z))}if(S.indexOf("==")>=0){let H=S.split("==");return f.create(H[0].trim(),this._deserializeValue(H[1],z))}if(S.indexOf("=~")>=0){let H=S.split("=~");return C.create(H[0].trim(),this._deserializeRegexValue(H[1],z))}if(S.indexOf(" in ")>=0){let H=S.split(" in ");return a.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(S)){const H=S.split(">=");return c.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(S)){const H=S.split(">");return l.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(S)){const H=S.split("<=");return A.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(S)){const H=S.split("<");return x.create(H[0].trim(),H[1].trim())}return/^\!\s*/.test(S)?s.create(S.substr(1).trim()):u.create(S)}static _deserializeValue(S,z){if(S=S.trim(),S==="true")return!0;if(S==="false")return!1;let H=/^'([^']*)'$/.exec(S);return H?H[1].trim():S}static _deserializeRegexValue(S,z){if(Object(B.C)(S)){if(z)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let H=S.indexOf("/"),M=S.lastIndexOf("/");if(H===M||H<0){if(z)throw new Error(`bad regexp-value '${S}', missing /-enclosure`);return console.warn(`bad regexp-value '${S}', missing /-enclosure`),null}let V=S.slice(H+1,M),K=S[M+1]==="i"?"i":"";try{return new RegExp(V,K)}catch($){if(z)throw new Error(`bad regexp-value '${S}', parse error: ${$}`);return console.warn(`bad regexp-value '${S}', parse error: ${$}`),null}}}function m(S,z){const H=S?S.substituteConstants():void 0,M=z?z.substituteConstants():void 0;return!H&&!M?!0:!H||!M?!1:H.equals(M)}function t(S,z){return S.cmp(z)}class b{constructor(){this.type=0}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!1}serialize(){return"false"}keys(){return[]}negate(){return o.INSTANCE}}b.INSTANCE=new b;class o{constructor(){this.type=1}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!0}serialize(){return"true"}keys(){return[]}negate(){return b.INSTANCE}}o.INSTANCE=new o;class u{constructor(S,z){this.key=S,this.negated=z,this.type=2}static create(S,z=null){const H=T.get(S);return typeof H=="boolean"?H?o.INSTANCE:b.INSTANCE:new u(S,z)}cmp(S){return S.type!==this.type?this.type-S.type:E(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=T.get(this.key);return typeof S=="boolean"?S?o.INSTANCE:b.INSTANCE:this}evaluate(S){return!!S.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=s.create(this.key,this)),this.negated}}class f{constructor(S,z,H){this.key=S,this.value=z,this.negated=H,this.type=4}static create(S,z,H=null){if(typeof z=="boolean")return z?u.create(S,H):s.create(S,H);const M=T.get(S);if(typeof M=="boolean"){const V=M?"true":"false";return z===V?o.INSTANCE:b.INSTANCE}return new f(S,z,H)}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=T.get(this.key);if(typeof S=="boolean"){const z=S?"true":"false";return this.value===z?o.INSTANCE:b.INSTANCE}return this}evaluate(S){return S.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=d.create(this.key,this.value,this)),this.negated}}class a{constructor(S,z){this.key=S,this.valueKey=z,this.type=10,this.negated=null}static create(S,z){return new a(S,z)}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.valueKey,S.key,S.valueKey)}equals(S){return S.type===this.type?this.key===S.key&&this.valueKey===S.valueKey:!1}substituteConstants(){return this}evaluate(S){const z=S.getValue(this.valueKey),H=S.getValue(this.key);return Array.isArray(z)?z.indexOf(H)>=0:typeof H=="string"&&typeof z=="object"&&z!==null?R.call(z,H):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=i.create(this)),this.negated}}class i{constructor(S){this._actual=S,this.type=11}static create(S){return new i(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class d{constructor(S,z,H){this.key=S,this.value=z,this.negated=H,this.type=5}static create(S,z,H=null){if(typeof z=="boolean")return z?s.create(S,H):u.create(S,H);const M=T.get(S);if(typeof M=="boolean"){const V=M?"true":"false";return z===V?b.INSTANCE:o.INSTANCE}return new d(S,z,H)}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=T.get(this.key);if(typeof S=="boolean"){const z=S?"true":"false";return this.value===z?b.INSTANCE:o.INSTANCE}return this}evaluate(S){return S.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class s{constructor(S,z){this.key=S,this.negated=z,this.type=3}static create(S,z=null){const H=T.get(S);return typeof H=="boolean"?H?b.INSTANCE:o.INSTANCE:new s(S,z)}cmp(S){return S.type!==this.type?this.type-S.type:E(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=T.get(this.key);return typeof S=="boolean"?S?b.INSTANCE:o.INSTANCE:this}evaluate(S){return!S.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this)),this.negated}}function n(S,z){if(typeof S=="string"){const H=parseFloat(S);isNaN(H)||(S=H)}return typeof S=="string"||typeof S=="number"?z(S):b.INSTANCE}class l{constructor(S,z,H){this.key=S,this.value=z,this.negated=H,this.type=12}static create(S,z,H=null){return n(z,M=>new l(S,M,H))}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class c{constructor(S,z,H){this.key=S,this.value=z,this.negated=H,this.type=13}static create(S,z,H=null){return n(z,M=>new c(S,M,H))}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class x{constructor(S,z,H){this.key=S,this.value=z,this.negated=H,this.type=14}static create(S,z,H=null){return n(z,M=>new x(S,M,H))}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))new A(S,M,H))}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this.value,this)),this.negated}}class C{constructor(S,z){this.key=S,this.regexp=z,this.type=7,this.negated=null}static create(S,z){return new C(S,z)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.keyS.key)return 1;const z=this.regexp?this.regexp.source:"",H=S.regexp?S.regexp.source:"";return zH?1:0}equals(S){if(S.type===this.type){const z=this.regexp?this.regexp.source:"",H=S.regexp?S.regexp.source:"";return this.key===S.key&&z===H}return!1}substituteConstants(){return this}evaluate(S){let z=S.getValue(this.key);return this.regexp?this.regexp.test(z):!1}serialize(){const S=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${S}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this)),this.negated}}class k{constructor(S){this._actual=S,this.type=8}static create(S){return new k(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function w(S){let z=null;for(let H=0,M=S.length;HS.expr.length)return 1;for(let z=0,H=this.expr.length;z1;){const V=H[H.length-1];if(V.type!==9)break;H.pop();const K=H.pop(),$=H.length===0,Z=h.create(V.expr.map(me=>y.create([me,K],null)),null,$);Z&&(H.push(Z),H.sort(t))}return H.length===1?H[0]:new y(H,z)}serialize(){return this.expr.map(S=>S.serialize()).join(" && ")}keys(){const S=[];for(let z of this.expr)S.push(...z.keys());return S}negate(){if(!this.negated){const S=[];for(let z of this.expr)S.push(z.negate());this.negated=h.create(S,this,!0)}return this.negated}}class h{constructor(S,z){this.expr=S,this.negated=z,this.type=9}static create(S,z,H){return h._normalizeArr(S,z,H)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.lengthS.expr.length)return 1;for(let z=0,H=this.expr.length;zS.serialize()).join(" || ")}keys(){const S=[];for(let z of this.expr)S.push(...z.keys());return S}negate(){if(!this.negated){let S=[];for(let z of this.expr)S.push(z.negate());for(;S.length>1;){const z=S.shift(),H=S.shift(),M=[];for(const K of U(z))for(const $ of U(H))M.push(y.create([K,$],null));const V=S.length===0;S.unshift(h.create(M,null,V))}this.negated=S[0]}return this.negated}}class p extends u{constructor(S,z,H){super(S,null);this._defaultValue=z,typeof H=="object"?p._info.push(Object.assign(Object.assign({},H),{key:S})):H!==!0&&p._info.push({key:S,description:H,type:z!=null?typeof z:void 0})}static all(){return p._info.values()}bindTo(S){return S.createKey(this.key,this._defaultValue)}getValue(S){return S.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(S){return f.create(this.key,S)}}p._info=[];const v=Object(I.c)("contextKeyService"),_="setContext";function E(S,z){return Sz?1:0}function g(S,z,H,M){return SH?1:zM?1:0}function j(S,z){if(z.type===6&&S.type!==9&&S.type!==6){for(const V of z.expr)if(S.equals(V))return!0}const H=S.negate(),M=U(H).concat(U(z));M.sort(t);for(let V=0;V47&&(Ce(47),ot(!0))}},[document.getElementById("divhe")]);var fn=function(jt,Qt){it.page=jt,it.limit=20,Ke()};function Rn(){Wr(1),ma(""),ga(""),ca(""),et(""),dn([])}var zn=[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:50,fixed:"left",ellipsis:{showTitle:!1},render:function(jt,Qt,Pn){return it.limit*(it.page-1)+Pn+1}},{title:"\u59D3\u540D",dataIndex:"user_name",align:"center",width:110,fixed:"left",ellipsis:{showTitle:!1},render:function(jt){return n.a.createElement(R.a,{placement:"bottomLeft",title:jt},n.a.createElement("span",{className:"current"},jt))}},!(Vt!=null&&Vt.is_excellent)&&!Object(de.r)()&&{title:"\u5B66\u53F7",dataIndex:"student_id",align:"center",sorter:!0,width:110,showSorterTooltip:!1,ellipsis:{showTitle:!1},sortOrder:it.order==="student_id"?it.b_order==="desc"?"descend":"ascend":null,render:function(jt){return n.a.createElement(R.a,{placement:"bottomLeft",title:jt||"--"},n.a.createElement("span",{className:"current"},jt||"--"))}},{title:"\u5206\u73ED",dataIndex:"group_name",align:"center",width:180,ellipsis:{showTitle:!1},render:function(jt,Qt){return jt?n.a.createElement(R.a,{placement:"bottom",title:jt},n.a.createElement("span",{className:"current"},jt)):"--"}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",align:"center",width:80,sorter:!0,ellipsis:{showTitle:!1},showSorterTooltip:!1,sortOrder:it.order==="work_status"?it.b_order==="desc"?"descend":"ascend":null,render:function(jt){return n.a.createElement(C.h,{status:jt})}},{title:n.a.createElement("span",null,"\u5B8C\u6210\u65F6\u95F4"),dataIndex:"finished_time",align:"center",width:130,ellipsis:{showTitle:!1},showSorterTooltip:!1,sorter:!0,sortOrder:it.order==="finished_time"?it.b_order==="desc"?"descend":"ascend":null,render:function(jt,Qt){return jt?n.a.createElement(R.a,{placement:"bottomLeft",title:jt},jt):"--"}},{title:n.a.createElement("span",null,"\u5B9E\u8BAD\u603B\u8017\u65F6"),dataIndex:"cost_time",align:"center",width:130,ellipsis:{showTitle:!1},showSorterTooltip:!1,sorter:!0,sortOrder:it.order==="cost_time"?it.b_order==="desc"?"descend":"ascend":null,render:function(jt,Qt){return jt?n.a.createElement(R.a,{placement:"bottomLeft",title:jt},jt):"--"}},{title:"\u901A\u5173\u60C5\u51B5",align:"center",dataIndex:"complete_count",ellipsis:{showTitle:!1},render:function(jt,Qt){return n.a.createElement("span",null,jt||0,"/",Vt.challenges_count)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center",ellipsis:{showTitle:!1},sorter:!0,sortOrder:it.order==="sum_evaluate_count"?it.b_order==="desc"?"descend":"ascend":null,render:function(jt,Qt){return jt&&jt!="--"?n.a.createElement(R.a,{placement:"bottom",title:jt},n.a.createElement("span",{className:"current"},jt)):"--"}},!Object(de.r)()&&{title:n.a.createElement("span",null,"\u6700\u7EC8\u6210\u7EE9",n.a.createElement(R.a,{placement:"top",title:n.a.createElement("pre",null,"\u9F20\u6807\u505C\u7559\u5177\u4F53\u5206\u503C\u4E0A\u53EF\u67E5",n.a.createElement("br",null),"\u770B\u5F97\u5206\u660E\u7EC6",n.a.createElement("br",null))},n.a.createElement("img",{src:"".concat(M.a.IMG_SERVER,"/images/educoder/problem.png"),className:"ml2 current"}))),dataIndex:"work_score",sorter:!0,align:"center",showSorterTooltip:!1,sortOrder:it.order==="work_score"?it.b_order==="desc"?"descend":"ascend":null,ellipsis:{showTitle:!1},render:function(jt,Qt){var Pn,xn;return jt>=0&&jt<=60?xn=n.a.createElement("span",{className:"c-red"},jt):jt===100?xn=n.a.createElement("span",{className:"c-green"},jt):jt>60?xn=n.a.createElement("span",{className:"c-orange"},jt):xn="--",n.a.createElement(R.a,{placement:"bottom",title:Qt.ultimate_score?n.a.createElement("div",null,xn==="--"?"\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A0\u5206":"\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A".concat(Qt.work_score,"\u5206")):n.a.createElement("div",null,n.a.createElement("div",null,Qt.final_score?"\u5173\u5361\u5F97\u5206\uFF1A".concat(Qt.final_score,"\u5206"):"\u5173\u5361\u5F97\u5206\uFF1A0\u5206"),n.a.createElement("div",null,Qt.eff_score?"\u6548\u7387\u8BC4\u5206\uFF1A".concat(Qt.eff_score,"\u5206"):"\u6548\u7387\u8BC4\u5206\uFF1A0\u5206"),n.a.createElement("div",null,Qt.late_penalty?"\u8FDF\u4EA4\u6263\u5206\uFF1A".concat(Qt.late_penalty,"\u5206"):"\u8FDF\u4EA4\u6263\u5206\uFF1A0\u5206"),!((Pn=ne.workList)!==null&&Pn!==void 0&&Pn.answer_open_evaluation)&&n.a.createElement("div",null,"\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF1A",Qt.view_answer_count,"\u5173"),n.a.createElement("div",null,Qt.work_score?"\u6700\u7EC8\u6210\u7EE9\uFF1A".concat(Qt.work_score,"\u5206"):"\u6700\u7EC8\u6210\u7EE9\uFF1A0\u5206"))},xn)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",align:"center",render:function(jt){return jt||"- -"}},{title:n.a.createElement("span",null,"\u8BC4\u9605\u72B6\u6001",n.a.createElement(R.a,{overlayClassName:le.a.reviewStatusTooltip,placement:"top",title:n.a.createElement("pre",null,"\u4EE5\u4E0B\u60C5\u5F62\u51FA\u73B0\u4E00\u79CD\uFF0C\u8BC4\u9605\u72B6\u6001\u81EA\u52A8\u53D8\u4E3A\u5DF2\u8BC4\u9605\uFF1A",n.a.createElement("br",null),"1.\u5B66\u751F\u5F00\u542F\u4F5C\u4E1A\uFF0C\u7CFB\u7EDF\u5BF9\u5B66\u751F\u8FDB\u884C\u4E86\u81EA\u52A8\u6253\u5206\uFF1B",n.a.createElement("br",null),"2.\u8001\u5E08\u5BF9\u5B66\u751F\u4F5C\u4E1A\u8FDB\u884C\u5173\u5361\u8C03\u5206\u6216\u8005\u8FFD\u52A0\u70B9\u8BC4\uFF1B",n.a.createElement("br",null),"3.\u6574\u4E2A\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u6240\u6709\u5B66\u751F\u4F5C\u4E1A\u72B6\u6001\u5C06\u81EA\u52A8\u53D8\u4E3A\u5DF2\u8BC4\u9605\u3002",n.a.createElement("br",null))},n.a.createElement("img",{src:"".concat(M.a.IMG_SERVER,"/images/educoder/problem.png"),className:"ml2 current"}))),align:"center",dataIndex:"has_comment",width:90,ellipsis:!0,render:function(jt){return jt?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},{title:"\u64CD\u4F5C",dataInex:"action",align:"center",width:70,fixed:"right",ellipsis:!0,className:"workListTable",render:function(jt,Qt){var Pn,xn,vr;return Object(de.s)()?n.a.createElement("div",null,Object(C.B)(Qt==null?void 0:Qt.work_status)==="\u672A\u5F00\u542F"?n.a.createElement("span",null,"--"):n.a.createElement(c.a,{target:"_blank",onClick:function(Sr){Sr.stopPropagation()},to:"/classrooms/".concat(it.coursesId,"/shixun_homework/").concat(it.categoryId,"/").concat(Qt.id,"/comment")},"\u67E5\u770B")):n.a.createElement("div",null,n.a.createElement("span",{style:{color:"#0152d9"},onClick:function(Sr){Sr.stopPropagation(),Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:"",data:{name:Qt==null?void 0:Qt.user_name,homeworkId:Qt==null?void 0:Qt.id,work_comment:Qt==null?void 0:Qt.work_comment,work_comment_hidden:Qt==null?void 0:Qt.work_comment_hidden}}}})}},Qt.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u8FFD\u52A0\u70B9\u8BC4"),(Qt==null||((Pn=Qt.shixun_detail)===null||Pn===void 0||((xn=Pn[0])===null||xn===void 0))?void 0:xn.game_identifier)&&[1,2,3,4].includes(Qt==null?void 0:Qt.work_status)&&[n.a.createElement("br",null),n.a.createElement("a",{target:"_blank",onClick:function(Sr){var or;if(Sr.stopPropagation(),Object(de.v)()){var mn,Mn;Object(C.S)("/tasks/".concat(Qt==null||((mn=Qt.shixun_detail)===null||mn===void 0||((Mn=mn[0])===null||Mn===void 0))?void 0:Mn.game_identifier,"?homework_common_id=").concat(Ze.categoryId));return}if((or=st.userInfo)!==null&&or!==void 0&&or.professional_certification){var gr,Or;Object(C.S)("/tasks/".concat(Qt==null||((gr=Qt.shixun_detail)===null||gr===void 0||((Or=gr[0])===null||Or===void 0))?void 0:Or.game_identifier,"?homework_common_id=").concat(Ze.categoryId))}else return f.a.confirm({title:"\u63D0\u793A",centered:!0,content:n.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(C.S)("/account/certification")}}),!1}},"\u67E5\u770B\u5B9E\u8BAD")],(Vt==null||((vr=Vt.homework_status)===null||vr===void 0)?void 0:vr[0])!=="\u5DF2\u622A\u6B62"&&!!Qt.myshixun_id&&[n.a.createElement("br",null),n.a.createElement("span",{className:le.a.color32C,onClick:function(Sr){Sr.stopPropagation(),Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:Qt,params:it}})}},"\u6253\u56DE\u91CD\u505A")])}}].filter(function(an){return!!an}),cr=function(){var jt,Qt;return n.a.createElement(ct.a,null,n.a.createElement(ct.a.Item,{onClick:function(){Object(Et.h)(JSON.parse(sessionStorage.all_student_works_params),"shixun_work_list")},key:"1"},"\u5B66\u751F\u6210\u7EE9"),Object(de.c)()&&(Vt==null?void 0:Vt.student_works.length)>0&&n.a.createElement(ct.a.Item,{key:"3"},n.a.createElement(c.a,{onClick:function(xn){Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A",type:2}})},to:"/classrooms/".concat(it.coursesId,"/shixun_homework/").concat(it.categoryId,"/").concat(Vt==null||((jt=Vt.student_works)===null||jt===void 0||((Qt=jt[0])===null||Qt===void 0))?void 0:Qt.id,"/comment")},"\u5B9E\u8BAD\u62A5\u544A")),n.a.createElement(ct.a.Item,{key:"2"},n.a.createElement(c.a,{to:"/classrooms/".concat(it.coursesId,"/exportlist/shixun_work_list")},"\u5386\u53F2\u5BFC\u51FA")))};return n.a.createElement(n.a.Fragment,null,n.a.createElement("section",{className:"".concat(le.a.wrap," minH500 bg-white pl30 pr30 pt30")},((Cn=Vt.homework_status)===null||Cn===void 0?void 0:Cn.includes("\u672A\u53D1\u5E03"))&&n.a.createElement(_t.a,null),!!Sn.length&&n.a.createElement(B.a,{className:"mb10",dataSource:Sn,columns:zn,pagination:!1,showHeader:!1,loading:!1}),!((kn=Vt.homework_status)!==null&&kn!==void 0&&kn.includes("\u672A\u53D1\u5E03"))&&n.a.createElement("aside",null,!Object(de.c)()&&n.a.createElement("div",{className:"c-light-black font12"},n.a.createElement("span",null,"\u5DF2\u5F00\u59CB\u505A\u9898 ",(Vt==null?void 0:Vt.commit_count)||0," \u4EBA"),n.a.createElement("span",{className:"ml5"},"\u672A\u5F00\u59CB\u505A\u9898 ",(Vt==null?void 0:Vt.uncommit_count)||0," \u4EBA"),(Vt==null?void 0:Vt.left_time)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("span",{className:"ml20 c-black"},Vt==null||((dr=Vt.left_time)===null||dr===void 0)?void 0:dr.status),n.a.createElement("span",{className:"ml20 c-orange-ff9"},Vt==null||(($n=Vt.left_time)===null||$n===void 0)?void 0:$n.time))),Object(de.c)()&&n.a.createElement(n.a.Fragment,null,n.a.createElement(We.a,{form:St,onChange:tn,initialValues:(Zn={},Object(vt.a)(Zn,"task_status","all"),Object(vt.a)(Zn,"course_group_info","all"),Object(vt.a)(Zn,"teacher_comment","all"),Zn)},((In=Vt.task_status)===null||In===void 0?void 0:In.length)>0&&n.a.createElement(We.a.Item,{name:"task_status"},n.a.createElement(we.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(_.a,null,n.a.createElement(g.a,{className:"font14",flex:"80px"},"\u4F5C\u4E1A\u72B6\u6001:"),n.a.createElement(g.a,{flex:"80px"},n.a.createElement(we.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(g.a,{flex:"1"},Vt.task_status&&Vt.task_status.map(function(an,jt){return n.a.createElement(we.a,{name:"task_status",value:an.id},an.name,"(",an.count,")",an.name==="\u622A\u6B62\u540E\u901A\u5173"?n.a.createElement(R.a,{title:"\u5728\u89C4\u5B9A\u65F6\u95F4\u5916\u5B8C\u6210\u7684\u4F5C\u4E1A"},n.a.createElement("i",{className:"font13 ml5 iconfont icon-tishixiaowenhao"})):null)}))))),((mr=Vt.course_group_info)===null||mr===void 0?void 0:mr.length)>0&&n.a.createElement(We.a.Item,{name:"course_group_info"},n.a.createElement(we.a.Group,{style:{width:"100%"}},n.a.createElement(_.a,null,n.a.createElement(g.a,{className:"font14",flex:"80px"},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(g.a,{flex:"80px"},n.a.createElement(we.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(g.a,{flex:"1",id:"divhe",style:{height:ce+"px",overflow:"hidden"}},(Fn=Vt.course_group_info)===null||Fn===void 0?void 0:Fn.map(function(an,jt){return n.a.createElement(we.a,{value:an.course_group_id},an.group_group_name,"(",an.count,")")})),Ye&&n.a.createElement("span",{onClick:function(){var jt=document.getElementById("divhe").scrollHeight;ce>47?Ce(47):Ce(jt)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},ce===47?"\u5C55\u5F00":"\u6536\u8D77",ce===47?n.a.createElement(kt.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(Zt.a,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),((ar=Vt.teacher_comment)===null||ar===void 0?void 0:ar.length)>0&&n.a.createElement(We.a.Item,{name:"teacher_comment"},n.a.createElement(we.a.Group,{style:{width:"100%"}},n.a.createElement(_.a,null,n.a.createElement(g.a,{className:"font14",flex:"80px"},"\u8FFD\u52A0\u70B9\u8BC4:"),n.a.createElement(g.a,{flex:"80px"},n.a.createElement(we.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(g.a,{flex:"1"},Vt.teacher_comment&&Vt.teacher_comment.map(function(an,jt){return n.a.createElement(we.a,{value:String(an.id)},an.name,"(",an.count,")")})))))),n.a.createElement(_.a,{align:"middle"},n.a.createElement(g.a,{flex:"1"},n.a.createElement(_.a,{align:"middle"},n.a.createElement(g.a,null,n.a.createElement(p.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(jt){it.search=jt,it.page=1,Ke()},style:{width:240}})),n.a.createElement(g.a,null,n.a.createElement("span",{className:"ml5"},n.a.createElement("span",{className:"c-red"},Vt.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",Vt.work_count,"\u4E2A\u5B66\u751F\uFF09")))),n.a.createElement(g.a,null,Object(de.c)()&&Vt.code_review&&n.a.createElement(U.a,{className:"ml10",onClick:function(){Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",selectArrs:Vt.student_works.map(function(jt){return jt.id}),params:it}})}},n.a.createElement("span",{className:"".concat(le.a.tr1," iconfont icon-daimachazhong")}),"\u4EE3\u7801\u67E5\u91CD"),Object(de.c)()&&qt&&n.a.createElement(U.a,{className:"ml10",onClick:Bt},n.a.createElement("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"\u66F4\u65B0\u6210\u7EE9"),(Vt==null||((Gn=Vt.homework_status)===null||Gn===void 0)?void 0:Gn.includes("\u5DF2\u622A\u6B62"))&&Object(de.c)()&&n.a.createElement(U.a,{className:"ml10",onClick:function(){Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B",selectArrs:Vt.student_works.map(function(jt){return jt.id}),params:it}})}},n.a.createElement("i",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),n.a.createElement(U.a,{className:"ml10",onClick:function(){Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4",selectArrs:Vt.student_works.map(function(jt){return jt.id}),params:it}})}},n.a.createElement(Le.a,{className:"mr5"}),"\u4E00\u952E\u70B9\u8BC4"),((Vt==null||((Wn=Vt.homework_status)===null||Wn===void 0)?void 0:Wn.includes("\u63D0\u4EA4\u4E2D"))||(Vt==null||((Rr=Vt.homework_status)===null||Rr===void 0)?void 0:Rr.includes("\u8865\u4EA4\u4E2D"))||(Vt==null||((Tr=Vt.homework_status)===null||Tr===void 0)?void 0:Tr.includes("\u8FDB\u884C\u4E2D")))&&n.a.createElement(U.a,{className:"ml10",onClick:function(){wt(!0)}},"\u4E00\u952E\u6253\u56DE"),Object(de.c)()&&n.a.createElement(ie.a,{overlay:cr,className:"ml10"},n.a.createElement(U.a,null,n.a.createElement(Ae.a,null),"\u5BFC\u51FA",n.a.createElement(ut.a,null)))))),n.a.createElement(_.a,{style:{justifyContent:"end",marginTop:"5px"}},Object(de.c)()&&qt&&n.a.createElement("span",null,n.a.createElement("span",{style:{color:"red"}},"*"),"\u5217\u8868\u4E2D\u4F5C\u4E1A\u8BB0\u5F55\u5B58\u5728\u5DEE\u5F02\uFF0C\u8BF7\u70B9\u51FB\u201C\u66F4\u65B0\u6210\u7EE9\u201D\u6309\u94AE")),n.a.createElement(B.a,{className:"mt30",loading:Re["shixunHomeworks/getWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:function(jt){return{onClick:function(Pn){window.open("/classrooms/".concat(it.coursesId,"/shixun_homework/").concat(it.categoryId,"/").concat(jt.id,"/comment"),"_blank")}}},scroll:{x:1500},dataSource:Vt.student_works,columns:zn,onChange:function(jt,Qt,Pn){Pn.field&&(it.order=Pn.field),Pn.order||(it.b_order="asc"),Pn.order==="ascend"&&(it.b_order="asc"),Pn.order==="descend"&&(it.b_order="desc"),Pn.order||(it.b_order="asc"),Ke()}}),n.a.createElement(Oe,null),n.a.createElement(_e,null),n.a.createElement(Je.a,null)),n.a.createElement(f.a,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",visible:Dt,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:Object(o.a)(d.a.mark(function an(){var jt,Qt;return d.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:if(!(Cr===2)){xn.next=13;break}if(!(bn.length<=0)){xn.next=4;break}return b.b.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001"),xn.abrupt("return");case 4:if(De){xn.next=7;break}return b.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),xn.abrupt("return");case 7:return xn.next=9,Object(z.a)("/api/homework_commons/".concat(it.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:De,status:bn}});case 9:jt=xn.sent,jt.status===0&&(Bn(jt),wt(!1),hr(!0)),xn.next=32;break;case 13:if(!(da===0||Pa===0)){xn.next=16;break}xn.next=22;break;case 16:if(da){xn.next=19;break}return b.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A"),xn.abrupt("return");case 19:if(Pa){xn.next=22;break}return b.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A"),xn.abrupt("return");case 22:if(!(da>Pa)){xn.next=25;break}return b.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206"),xn.abrupt("return");case 25:if(De){xn.next=28;break}return b.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),xn.abrupt("return");case 28:return xn.next=30,Object(z.a)("/api/homework_commons/".concat(it.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:De,min_score:da,max_score:Pa}});case 30:Qt=xn.sent,Qt.status===0&&(Bn(Qt),wt(!1),hr(!0));case 32:case"end":return xn.stop()}},an)})),onCancel:function(){wt(!1),Rn()}},n.a.createElement("div",{style:{padding:"32px"}},n.a.createElement("div",null,n.a.createElement("div",null,n.a.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),n.a.createElement(ke.a.Group,{value:Cr,onChange:function(jt){Wr(jt.target.value)}},n.a.createElement(ke.a,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),n.a.createElement(ke.a,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),Cr===1&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),n.a.createElement(nt.a,{min:0,max:100,value:da,onChange:function(jt){return ca(jt)},style:{width:"100px"}}),n.a.createElement("span",{style:{width:"80px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),n.a.createElement(nt.a,{min:0,max:100,value:Pa,onChange:function(jt){return ga(jt)},style:{width:"100px"}})),Cr===2&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),n.a.createElement(we.a.Group,{onChange:function(jt){dn(Object(y.a)(jt))},style:{width:"100%"}},(br=Vt.task_status)===null||br===void 0?void 0:br.map(function(an,jt){return n.a.createElement(we.a,{name:"task_status",value:an.id},an.name,"(",an.count,")")}))),n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),n.a.createElement(H.a,{className:le.a.MdEditor,onChange:function(jt){return et(jt)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),n.a.createElement(f.a,{visible:ir,title:"\u6253\u56DE\u786E\u8BA4",onOk:Object(o.a)(d.a.mark(function an(){var jt,Qt;return d.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:if(!(Cr===2)){xn.next=7;break}return xn.next=3,Object(z.a)("/api/homework_commons/".concat(it.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:De,status:bn}});case 3:jt=xn.sent,jt.status===0&&(b.b.info("\u6253\u56DE\u6210\u529F"),Rn(),Ke(),hr(!1)),xn.next=11;break;case 7:return xn.next=9,Object(z.a)("/api/homework_commons/".concat(it.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:De,min_score:da,max_score:Pa}});case 9:Qt=xn.sent,Qt.status===0&&(b.b.info("\u6253\u56DE\u6210\u529F"),Rn(),Ke(),hr(!1));case 11:case"end":return xn.stop()}},an)})),onCancel:function(){Rn(),hr(!1)}},n.a.createElement("div",{style:{padding:"32px"}},Cr===1&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",da,"-",Pa,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),Cr===2&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((wr=Vt.task_status)===null||wr===void 0?void 0:wr.filter(function(an){return bn==null?void 0:bn.includes(an.id)}).map(function(an){return an.name}).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),n.a.createElement("br",null),n.a.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Gr==null?void 0:Gr.count,"\u540D\u5B66\u751F")))),n.a.createElement(ze,null),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(w.a,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,onChange:fn,current:it.page||1,defaultPageSize:20,total:Vt.work_count})))},on=Object(x.a)(function(yn){var un=yn.shixunHomeworks,Cn=yn.loading,kn=yn.user;return{shixunHomeworks:un,loading:Cn.effects,user:kn}})($t),gt=L("fOrg"),Kt=L("+KLJ"),Ot=function(un){var Cn,kn=un.shixunHomeworks,dr=un.loading,$n=un.dispatch,Zn=Object(l.i)(),In=Object(s.useState)(Object(S.a)(Object(S.a)({},{page:1,limit:20,group_ids:[]}),Zn)),mr=Object(a.a)(In,2),Fn=mr[0],ar=mr[1],Gn=Object(l.h)(),Wn=kn.codeReview,Rr=Object(s.useState)({}),Tr=Object(a.a)(Rr,2),br=Tr[0],wr=Tr[1],ne=We.a.useForm(),Re=Object(a.a)(ne,1),Xe=Re[0];Fn.order="code_rate",Fn.sort="desc",Fn.category=Fn.categoryId,Object(s.useEffect)(function(){Pe(),console.log("params",Fn)},[Fn]),Object(s.useEffect)(function(){kn.actionTabs.key==="\u6267\u884C\u4EE3\u7801\u67E5\u91CD"&&Pe()},[kn.actionTabs.key]);var Pe=function(){var mt=Object(o.a)(d.a.mark(function it(){var Lt;return d.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Xt.next=2,$n({type:"shixunHomeworks/getCodeReview",payload:Object(S.a)({},Fn)});case 2:Lt=Xt.sent,Lt.status===-2&&setTimeout(function(){return Pe()},1500);case 4:case"end":return Xt.stop()}},it)}));return function(){return mt.apply(this,arguments)}}(),st=function(){},Ze=function(it,Lt){Fn.page=it,Fn.limit=20,$n({type:"shixunHomeworks/getCodeReview",payload:Object(S.a)({},Fn)})},pt=[{title:"\u5E8F\u53F7",dataIndex:"number",render:function(it,Lt,Yt){return Fn.limit*(Fn.page-1)+Yt+1}},{title:"\u59D3\u540D",dataIndex:"username"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",render:function(it){return n.a.createElement("span",{className:"c-orange"},it)}},{title:"\u64CD\u4F5C",dataInex:"action",render:function(it,Lt){return n.a.createElement("div",null,n.a.createElement(c.a,{target:"_blank",to:"/classrooms/".concat(Fn.coursesId,"/shixun_homework/").concat(Fn.categoryId,"/review_detail/").concat(Lt.user_id)},"\u67E5\u770B"),n.a.createElement("br",null))}}];return n.a.createElement("section",{className:"minH500 bg-white pl30 pr30 pt10"},(Wn==null?void 0:Wn.status)===-2&&n.a.createElement(Kt.a,{message:"\u67E5\u91CD\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u2026\u2026",className:"mb10 font14",type:"error"}),n.a.createElement(_.a,null,n.a.createElement(g.a,{flex:"1"},n.a.createElement("p",{className:"mt10"},"\u67E5\u91CD\u65F6\u95F4\uFF1A",Wn.last_review_time,n.a.createElement(U.a,{ghost:!0,danger:!0,style:{color:"#29BD8B",borderColor:"#29BD8B",marginLeft:10},onClick:function(){$n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Fn}})}},"\u4EE3\u7801\u67E5\u91CD"))),n.a.createElement(g.a,null,n.a.createElement(p.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(it){Fn.search=it,$n({type:"shixunHomeworks/getCodeReview",payload:Fn})},style:{width:200}}),n.a.createElement("span",{className:"ml5 c-red"}))),((Cn=Wn.group_info)===null||Cn===void 0?void 0:Cn.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(_.a,null,n.a.createElement(g.a,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(g.a,{flex:"80px"},n.a.createElement(we.a,{checked:Fn.group_ids=="",value:"all",onChange:function(it){delete Fn.group_ids,Fn.group_ids=[],Fn.page=1,ar(Object(S.a)({},Fn))}},"\u5168\u90E8")),n.a.createElement(g.a,{flex:"1"},Wn.group_info&&Wn.group_info.map(function(mt,it){return n.a.createElement(we.a,{value:mt.id,checked:Fn.group_ids.includes(mt.id),onChange:function(Yt){Yt.target.checked?Fn.group_ids.push(mt.id):Fn.group_ids.splice(Fn.group_ids.indexOf(mt.id),1),Fn.page=1,ar(Object(S.a)({},Fn))}},mt.name,"(",mt.members_count,")")}))),n.a.createElement(_.a,{className:"font14 c-red mt5"},n.a.createElement(g.a,null,"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u67E5\u91CD\u5206\u73ED"))),n.a.createElement("p",{className:"mt10"},n.a.createElement("span",{className:"c-red"},Wn.copy_reviews_count),"\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08",Wn.all_reviews_count,"\u4F5C\u54C1\uFF09"),n.a.createElement(B.a,{className:"mt30",loading:dr["shixunHomeworks/getCodeReview"],pagination:!1,dataSource:Wn.users_reviews,columns:pt,onChange:function(it,Lt,Yt){Yt.order==="ascend"&&(Fn.b_order="asc"),Yt.order==="descend"&&(Fn.b_order="desc"),Yt.order||delete Fn.b_order,$n({type:"shixunHomeworks/getCodeReview",payload:Object(S.a)({},Fn)})}}),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(w.a,{showSizeChanger:!1,onChange:Ze,defaultCurrent:Fn.page||1,current:Fn.page||1,defaultPageSize:20,hideOnSinglePage:!0,total:Wn.copy_reviews_count})))},At=Object(x.a)(function(yn){var un=yn.shixunHomeworks,Cn=yn.loading;return{shixunHomeworks:un,loading:Cn.effects}})(Ot),ft=L("OaEy"),be=L("2fM7"),Fe=L("iQDF"),Nt=L("+eQT"),yt=L("zetH"),Gt=L.n(yt),Jt=L("eozf"),Ge=L("LvDl"),lt=Nt.a.RangePicker,It=be.a.Option,Wt=function(un){var Cn=un.shixunHomeworks,kn=un.loading,dr=un.dispatch,$n=Object(l.i)(),Zn=Object(l.h)(),In=Cn.workSetting,mr=Cn.workList,Fn=Cn.changeData,ar=Object(s.useState)(!0),Gn=Object(a.a)(ar,2),Wn=Gn[0],Rr=Gn[1],Tr=Object(s.useState)({}),br=Object(a.a)(Tr,2),wr=br[0],ne=br[1],Re=Object(s.useState)(!1),Xe=Object(a.a)(Re,2),Pe=Xe[0],st=Xe[1],Ze=We.a.useForm(),pt=Object(a.a)(Ze,1),mt=pt[0],it=Object(s.useState)([]),Lt=Object(a.a)(it,2),Yt=Lt[0],Xt=Lt[1],St=Object(s.useState)([]),Ft=Object(a.a)(St,2),at=Ft[0],qt=Ft[1],zt=Object(s.useState)(!1),_n=Object(a.a)(zt,2),Dn=_n[0],Vt=_n[1],cn=Object(s.useState)([]),Ht=Object(a.a)(cn,2),On=Ht[0],Sn=Ht[1],Ct=Object(s.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,forbid_copy_answers:!1,public_after_abort:!1,public_after_over:!1}),xt=Object(a.a)(Ct,2),Pt=xt[0],Dt=xt[1];Object(s.useEffect)(function(){return wt(),function(){Xt([].concat())}},[]);var wt=function(){dr({type:"shixunHomeworks/getWorkSetting",payload:Object(S.a)({},$n)})};Object(s.useEffect)(function(){if(!(In!=null&&In.course_id))return;Object.keys(Pt).map(function(dn){Pt[dn]=In[dn]}),(!Pt.allow_late||!Pt.unified_late)&&(Pt.late_penalty=5),Yt=JSON.parse(JSON.stringify(In.group_settings.map(function(dn){return Object(S.a)(Object(S.a)({},dn),{},{group_name:[dn.group_name]})}).filter(function(dn){return dn.publish_time!==null}))),at=JSON.parse(JSON.stringify(In.allow_late_settings.map(function(dn){return Object(S.a)(Object(S.a)({},dn),{},{group_name:[dn.group_name]})}).filter(function(dn){return dn.late_time!==null}))),Dt(Object(S.a)({},Pt)),Xt(Object(y.a)(Yt)),qt(Object(y.a)(at))},[In]);var gn=function(){var rn,Tn,ir=JSON.parse(JSON.stringify(Pt));if(ir.challenge_settings.filter(function(Kn){return!Kn.hide}),ir.categoryId=$n.categoryId,(rn=ir.challenge_settings)!==null&&rn!==void 0&&rn.every(function(Kn){return!Kn.checked})){b.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(Pt.unified_setting||(Yt=(Tn=Yt)===null||Tn===void 0?void 0:Tn.map(function(Kn){var Lr;if(!Kn.publish_time||!Kn.end_time)throw b.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Kn.group_name)throw b.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Kn.group_name=typeof(Kn==null?void 0:Kn.group_name)=="string"?[Kn==null?void 0:Kn.group_name]:Kn==null?void 0:Kn.group_name,Kn.group_id=(Lr=In.group_settings)===null||Lr===void 0?void 0:Lr.filter(function(Gr){var Bn;return Kn==null||((Bn=Kn.group_name)===null||Bn===void 0)?void 0:Bn.includes(Gr.group_name)}).map(function(Gr){return Gr.group_id||Gr.id}).toString().split(","),Kn})),ir.group_settings=Yt,Pt.allow_late)if(Pt.unified_late){if(Pt.late_penalty===null||Pt.late_penalty===void 0||Pt.late_penalty<0||Pt.late_penalty>100)throw b.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Pt.late_time)throw b.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var hr;at=(hr=at)===null||hr===void 0?void 0:hr.map(function(Kn){var Lr,Gr;if(Kn.late_penalty===null||Kn.late_penalty===void 0||Kn.late_penalty<0||Kn.late_penalty>100)throw b.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Kn.late_time)throw b.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Kn.group_name)throw b.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Kn.group_name=typeof(Kn==null?void 0:Kn.group_name)=="string"?[Kn==null?void 0:Kn.group_name]:Kn==null?void 0:Kn.group_name,Kn.group_id=Kn==null||((Lr=Kn.group_name)===null||Lr===void 0||((Gr=Lr.map(function(Bn){var Yn,Jn,Cr=(Yn=In.group_settings)===null||Yn===void 0||((Jn=Yn.filter(function(Wr){return(Wr==null?void 0:Wr.group_name)===Bn}))===null||Jn===void 0)?void 0:Jn[0];return Cr==null?void 0:Cr.group_id}))===null||Gr===void 0))?void 0:Gr.toString().split(","),Kn}),ir.allow_late_settings=at}hn(ir)},hn=function(rn){var Tn,ir;if(console.log(rn.total_score,rn.eff_score),rn.total_score===null){b.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(rn!=null&&rn.work_efficiency&&rn.eff_score===null){b.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var hr=rn.challenge_settings.reduce(function(Gr,Bn){return Gr+Number(Bn.challenge_score)},0);if((hr==null?void 0:hr.toFixed(10))!==((Tn=rn.total_score-rn.eff_score)===null||Tn===void 0?void 0:Tn.toFixed(10))){b.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(rn.total_score,"\u5206"));return}var Kn={shixun_evaluation:rn.shixun_evaluation,challenge_settings:rn.challenge_settings},Lr=function(){var Gr=Object(o.a)(d.a.mark(function Bn(){var Yn;return d.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return st(!0),Cr.next=3,Object(z.a)("/api/homework_commons/".concat($n.categoryId,"/public_setting.json"),{method:"post",body:Object(S.a)({},rn)});case 3:Yn=Cr.sent,Yn.status===0&&(b.b.success("\u66F4\u65B0\u6210\u529F"),Rr(!0),wt(),dr({type:"shixunHomeworks/getWorkList",payload:Object(S.a)({},$n)})),st(!1);case 6:case"end":return Cr.stop()}},Bn)}));return function(){return Gr.apply(this,arguments)}}();!Object(Ge.isEqual)(Fn,Kn)&&!(mr!=null&&(ir=mr.homework_status)!==null&&ir!==void 0&&ir.includes("\u672A\u53D1\u5E03"))?f.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Lr}):Lr()},bn=Object(s.useMemo)(function(){return Pt.public_after_abort?"public_after_abort":Pt.public_after_over?"public_after_over":"immediately"},[Pt]);return n.a.createElement("section",{className:[Gt.a.form," bg-white pl30 pr30 pt10"].join(" ")},n.a.createElement(_.a,null,n.a.createElement(g.a,{flex:"1"},n.a.createElement("span",{style:{fontSize:"16px"}},"\u516C\u5F00\u8BBE\u7F6E")),n.a.createElement(g.a,null,(In==null?void 0:In.can_edit)&&n.a.createElement(U.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return Rr(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")),n.a.createElement(g.a,{span:24,className:"mt15 pl30"},n.a.createElement(we.a,{checked:Pt.score_open,disabled:Wn,onChange:function(rn){Pt.score_open=rn.target.checked,Dt(Object.assign({},Pt))}},n.a.createElement("strong",null,"\u516C\u5F00\u6210\u7EE9")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u4F5C\u54C1\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5176\u5B83\u5B66\u751F\u7684\u6210\u7EE9\uFF0C\u5426\u5219\u53EA\u80FD\u67E5\u770B\u81EA\u5DF1\u7684\u6210\u7EE9)")),n.a.createElement(g.a,{span:24,className:"mt15 pl30"},n.a.createElement(we.a,{checked:Pt.answer_public,disabled:Wn,onChange:function(rn){rn.target.checked?Dt(function(Tn){return Object(S.a)(Object(S.a)({},Tn),{},{answer_public:rn.target.checked})}):Dt(function(Tn){return Object(S.a)(Object(S.a)({},Tn),{},{answer_public:rn.target.checked,public_after_abort:!1,public_after_over:!1})})}},n.a.createElement("strong",null,"\u516C\u5F00\u7B54\u6848")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5B9E\u8BAD\u53C2\u8003\u7B54\u6848\uFF0C\u5426\u5219\u7981\u6B62\u67E5\u770B\u7B54\u6848)")),Pt.answer_public&&n.a.createElement(g.a,{span:24,className:"mt10 pl30"},n.a.createElement(ke.a.Group,{style:{marginLeft:22},onChange:function(rn){rn.target.value==="public_after_abort"?Dt(function(Tn){return Object(S.a)(Object(S.a)({},Tn),{},{public_after_abort:!0,public_after_over:!1})}):rn.target.value==="public_after_over"?Dt(function(Tn){return Object(S.a)(Object(S.a)({},Tn),{},{public_after_abort:!1,public_after_over:!0})}):Dt(function(Tn){return Object(S.a)(Object(S.a)({},Tn),{},{public_after_abort:!1,public_after_over:!1})})},value:bn,disabled:Wn},n.a.createElement(ke.a,{value:"immediately"},"\u7ACB\u5373\u516C\u5F00"),n.a.createElement(ke.a,{value:"public_after_abort"},"\u4F5C\u4E1A\u622A\u6B62\u540E\u516C\u5F00"),n.a.createElement(ke.a,{value:"public_after_over"},"\u8BFE\u5802\u7ED3\u675F\u540E\u516C\u5F00"))),n.a.createElement(g.a,{span:24,className:"mt15 pl30"},n.a.createElement(we.a,{checked:Pt.forbid_copy_answers,disabled:Wn,onChange:function(rn){Pt.forbid_copy_answers=rn.target.checked,Dt(Object.assign({},Pt))}},n.a.createElement("strong",null,"\u7981\u6B62\u590D\u5236\u53C2\u8003\u7B54\u6848")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u7981\u6B62\u5B66\u751F\u590D\u5236\u53C2\u8003\u7B54\u6848\uFF0C\u5426\u5219\u5B66\u751F\u53EF\u4EE5\u590D\u5236\u53C2\u8003\u7B54\u6848)")),n.a.createElement(g.a,{span:24,className:"mt15 pl30 pb40"},n.a.createElement(we.a,{checked:Pt.comment_public,disabled:Wn,onChange:function(rn){Pt.comment_public=rn.target.checked,Dt(Object.assign({},Pt))}},n.a.createElement("strong",null,"\u516C\u5F00\u8BC4\u8BBA")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u8BFE\u7A0B\u5B9E\u9A8C\u7684\u8BC4\u8BBA\uFF0C\u5426\u5219\u7981\u6B62\u67E5\u770B)")),!Wn&&n.a.createElement(g.a,{className:"mb50"},n.a.createElement(U.a,{type:"primary",size:"large",loading:Pe,onClick:function(){return gn()}},"\u63D0\u4EA4"),n.a.createElement(U.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Rr(!0),wt()}},"\u53D6\u6D88"))),n.a.createElement(f.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:Dn,onCancel:function(){return Vt(!1)}},n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",n.a.createElement(p.a.Search,{onChange:function(rn){}})),n.a.createElement(B.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(rn,Tn){Sn(rn)}},pagination:!1,dataSource:[{name:"1"}],columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]}))))},sn=Object(x.a)(function(yn){var un=yn.shixunHomeworks,Cn=yn.loading;return{shixunHomeworks:un,loading:Cn.effects}})(Wt),vn=function(un){var Cn=un.shixunHomeworks,kn=un.loading,dr=un.dispatch,$n=Object(l.i)(),Zn=Cn.workSetting,In=Cn.workList,mr=Cn.changeData,Fn=Object(s.useState)(!0),ar=Object(a.a)(Fn,2),Gn=ar[0],Wn=ar[1],Rr=Object(s.useState)(!1),Tr=Object(a.a)(Rr,2),br=Tr[0],wr=Tr[1],ne=Object(s.useState)(!1),Re=Object(a.a)(ne,2),Xe=Re[0],Pe=Re[1],st=Object(s.useState)([]),Ze=Object(a.a)(st,2),pt=Ze[0],mt=Ze[1],it=Object(s.useState)([]),Lt=Object(a.a)(it,2),Yt=Lt[0],Xt=Lt[1],St=Object(s.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,is_onpage_time:!0,training_time_rules:1,difficulty_level_sort:"asc"}),Ft=Object(a.a)(St,2),at=Ft[0],qt=Ft[1];Object(s.useEffect)(function(){return zt(),function(){mt([].concat())}},[]);var zt=function(){dr({type:"shixunHomeworks/getWorkSetting",payload:Object(S.a)({},$n)})};Object(s.useEffect)(function(){if(!(Zn!=null&&Zn.course_id))return;Object.keys(at).map(function(cn){at[cn]=Zn[cn]}),(!at.allow_late||!at.unified_late)&&(at.late_penalty=5),pt=JSON.parse(JSON.stringify(Zn.group_settings.map(function(cn){return Object(S.a)(Object(S.a)({},cn),{},{group_name:[cn.group_name]})}).filter(function(cn){return cn.publish_time!==null}))),Yt=JSON.parse(JSON.stringify(Zn.allow_late_settings.map(function(cn){return Object(S.a)(Object(S.a)({},cn),{},{group_name:[cn.group_name]})}).filter(function(cn){return cn.late_time!==null}))),qt(Object(S.a)(Object(S.a)({},at),{},{difficulty_level_sort:at.difficulty_level_sort||"asc"})),mt(Object(y.a)(pt)),Xt(Object(y.a)(Yt))},[Zn]);var _n=function(){var Ht,On,Sn=JSON.parse(JSON.stringify(at));if(Sn.challenge_settings.filter(function(xt){return!xt.hide}),Sn.categoryId=$n.categoryId,(Ht=Sn.challenge_settings)!==null&&Ht!==void 0&&Ht.every(function(xt){return!xt.checked})){b.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(at.unified_setting||(pt=(On=pt)===null||On===void 0?void 0:On.map(function(xt){var Pt;if(!xt.publish_time||!xt.end_time)throw b.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!xt.group_name)throw b.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return xt.group_name=typeof(xt==null?void 0:xt.group_name)=="string"?[xt==null?void 0:xt.group_name]:xt==null?void 0:xt.group_name,xt.group_id=(Pt=Zn.group_settings)===null||Pt===void 0?void 0:Pt.filter(function(Dt){var wt;return xt==null||((wt=xt.group_name)===null||wt===void 0)?void 0:wt.includes(Dt.group_name)}).map(function(Dt){return Dt.group_id||Dt.id}).toString().split(","),xt})),Sn.group_settings=pt,at.allow_late)if(at.unified_late){if(at.late_penalty===null||at.late_penalty===void 0||at.late_penalty<0||at.late_penalty>100)throw b.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!at.late_time)throw b.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var Ct;Yt=(Ct=Yt)===null||Ct===void 0?void 0:Ct.map(function(xt){var Pt,Dt;if(xt.late_penalty===null||xt.late_penalty===void 0||xt.late_penalty<0||xt.late_penalty>100)throw b.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!xt.late_time)throw b.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!xt.group_name)throw b.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return xt.group_name=typeof(xt==null?void 0:xt.group_name)=="string"?[xt==null?void 0:xt.group_name]:xt==null?void 0:xt.group_name,xt.group_id=xt==null||((Pt=xt.group_name)===null||Pt===void 0||((Dt=Pt.map(function(wt){var gn,hn,bn=(gn=Zn.group_settings)===null||gn===void 0||((hn=gn.filter(function(dn){return(dn==null?void 0:dn.group_name)===wt}))===null||hn===void 0)?void 0:hn[0];return bn==null?void 0:bn.group_id}))===null||Dt===void 0))?void 0:Dt.toString().split(","),xt}),Sn.allow_late_settings=Yt}Dn(Sn)},Dn=function(Ht){var On,Sn;if(Ht.total_score===null){b.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ht!=null&&Ht.work_efficiency&&Ht.eff_score===null){b.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var Ct=Ht.challenge_settings.reduce(function(Dt,wt){return Dt+Number(wt.challenge_score)},0);if((Ct==null?void 0:Ct.toFixed(10))!==((On=Ht.total_score-Ht.eff_score)===null||On===void 0?void 0:On.toFixed(10))){b.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(Ht.total_score,"\u5206"));return}var xt={shixun_evaluation:Ht.shixun_evaluation,challenge_settings:Ht.challenge_settings},Pt=function(){var Dt=Object(o.a)(d.a.mark(function wt(){var gn;return d.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return wr(!0),bn.next=3,Object(z.a)("/api/homework_commons/".concat($n.categoryId,"/score_setting.json"),{method:"post",body:Object(S.a)({},Ht)});case 3:gn=bn.sent,gn.status===0&&(b.b.success("\u66F4\u65B0\u6210\u529F"),Wn(!0),zt(),dr({type:"shixunHomeworks/getWorkList",payload:Object(S.a)({},$n)})),wr(!1);case 6:case"end":return bn.stop()}},wt)}));return function(){return Dt.apply(this,arguments)}}();!Object(Ge.isEqual)(mr,xt)&&!(In!=null&&(Sn=In.homework_status)!==null&&Sn!==void 0&&Sn.includes("\u672A\u53D1\u5E03"))?f.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Pt}):Pt()},Vt=function(){var Ht,On=at.eff_score,Sn=at.total_score,Ct=at.difficulty_level_sort,xt=Sn-On,Pt=(Ht=at.challenge_settings)===null||Ht===void 0?void 0:Ht.filter(function(Tn){return Tn.checked}).length;if(!Pt){at.challenge_settings.map(function(Tn,ir){Tn.challenge_score=0});return}var Dt=at.challenge_settings.filter(function(Tn){return Tn.checked}).map(function(Tn){return Ct==="desc"?Tn.challenge_exp_desc:Tn.challenge_exp}).reduce(function(Tn,ir){return Tn+ir}),wt=xt/Dt,gn=0,hn=0,bn;switch(at.shixun_evaluation){case 0:var dn=parseFloat((xt/Pt).toFixed(1));at.challenge_settings.map(function(Tn,ir){Tn.checked?(gn=ir,Tn.challenge_score=dn>0?dn:0):Tn.challenge_score=0}),bn=(xt-dn*(Pt-1)).toFixed(1),at.challenge_settings[gn].challenge_score=bn>0?bn:0;break;case 1:at.challenge_settings.map(function(Tn,ir){Tn.checked?(gn=ir,hn+=Number((Math.round((Ct==="desc"?Tn.challenge_exp_desc:Tn.challenge_exp)*wt*10)/10).toFixed(1)),Tn.challenge_score=(Math.round((Ct==="desc"?Tn.challenge_exp_desc:Tn.challenge_exp)*wt*10)/10).toFixed(1)):Tn.challenge_score=0});var rn=at.challenge_settings[gn].challenge_score;bn=(xt-hn+Number(rn)).toFixed(1),at.challenge_settings[gn].challenge_score=bn>0?bn:0;break}};return n.a.createElement("section",{className:[Gt.a.form," bg-white pl30 pr30 pt10 mb20 pb10"].join(" ")},n.a.createElement(_.a,{className:"mt25"},n.a.createElement(g.a,{flex:"1"}),n.a.createElement(g.a,null,(Zn==null?void 0:Zn.can_edit)&&n.a.createElement(U.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return Wn(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")),n.a.createElement(g.a,{span:24,className:"pl30 mt10"},n.a.createElement("strong",null,"\u603B\u5206\u503C\uFF1A"),n.a.createElement(nt.a,{min:0,value:at.total_score,disabled:Gn,onChange:function(Ht){at.total_score=Ht,qt(Object.assign({},at)),Vt()}}),"\xA0\u5206"),n.a.createElement(g.a,{span:24,style:{paddingLeft:60,marginTop:20}},n.a.createElement("strong",null,"\u5173\u5361\u4EFB\u52A1\u7684\u9009\u62E9\u548C\u5206\u503C\u8BBE\u7F6E"),n.a.createElement("span",{className:"c-orange"},"\xA0(\u603B\u5206\u503C = \u6548\u7387\u5206+ \u5173\u5361\u4EFB\u52A1\u603B\u5206)"))),n.a.createElement(_.a,{style:{paddingLeft:85,marginTop:30}},n.a.createElement(g.a,{flex:"1"},n.a.createElement(we.a,{disabled:Gn,checked:at.work_efficiency,onChange:function(Ht){at.work_efficiency=Ht.target.checked,at.work_efficiency?at.eff_score=20:at.eff_score=0,qt(Object.assign({},at)),Vt()}},n.a.createElement("strong",null,"\u6548\u7387\u5206")),n.a.createElement("span",{className:"c-orange font12",style:{marginLeft:-4}},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u6700\u7EC8\u6210\u7EE9\u5305\u542B\u6548\u7387\u5206\u3002\u6548\u7387\u5206\u5728\u4F5C\u4E1A\u622A\u6B62\u6216\u8005\u8865\u4EA4\u7ED3\u675F\u540E\u7531\u7CFB\u7EDF\u81EA\u52A8\u751F\u6210)")),n.a.createElement(g.a,{className:Gt.a.efficiency},"\uFF08\u5B66\u751F\u5B66\u4E60\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)",n.a.createElement("br",null),"\uFF08\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5B66\u4E60\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8\u5B66\u4E60\u6548\u7387 * \u5206\u503C\uFF09",n.a.createElement("br",null),n.a.createElement("span",{style:{marginLeft:10}},"\u53E6\uFF1A\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B66\u751F\u6548\u7387\u5206\u8BB0 0 \u5206"))),n.a.createElement(_.a,{align:"middle",style:{paddingLeft:105}},n.a.createElement(g.a,null,n.a.createElement("span",{className:"mr5"},"\u6548\u7387\u5206"),n.a.createElement(nt.a,{min:0,disabled:Gn||!at.work_efficiency,value:at.eff_score,step:.1,onChange:function(Ht){at.eff_score=Ht,qt(Object.assign({},at)),Vt()}}),n.a.createElement("span",null,"\xA0\u5206"))),n.a.createElement(_.a,{align:"middle",style:{paddingLeft:105,marginTop:"20px"}},n.a.createElement(g.a,null,n.a.createElement("span",{className:"mr5"},"\u5B9E\u8BAD\u8017\u65F6\u89C4\u5219\uFF1A"),n.a.createElement(ke.a.Group,{disabled:Gn,value:at.training_time_rules,onChange:function(Ht){at.training_time_rules=Ht.target.value,qt(Object.assign({},at)),Vt()}},n.a.createElement(ke.a,{value:1},"\u9875\u9762\u505C\u7559\u65F6\u957F"),n.a.createElement(ke.a,{value:2},"\u5173\u5361\u603B\u8017\u65F6"),n.a.createElement(ke.a,{value:3},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F",n.a.createElement("i",{onClick:function(Ht){Ht.stopPropagation(),Ht.preventDefault(),Pe(!0)},style:{marginLeft:10,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"}))))),n.a.createElement(_.a,{align:"middle",style:{paddingLeft:85,marginTop:35}},n.a.createElement(g.a,null,n.a.createElement("strong",null,"\u5173\u5361\u4EFB\u52A1\u5206\u503C\u8BBE\u7F6E\u89C4\u5219")),n.a.createElement(g.a,{flex:"1"},n.a.createElement("div",{className:"ml5"},n.a.createElement(ke.a.Group,{disabled:Gn,value:at.shixun_evaluation,onChange:function(Ht){at.shixun_evaluation=Ht.target.value,Ht.target.value!==1&&(at.difficulty_level_sort="asc"),qt(Object.assign({},at)),Vt()}},n.a.createElement(ke.a,{value:0},"\u5747\u5206\u6BD4\u4F8B"),n.a.createElement(ke.a,{value:1},"\u96BE\u6613\u5EA6"),n.a.createElement(ke.a,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))))),n.a.createElement(_.a,{style:{paddingLeft:343,marginTop:5,display:at.shixun_evaluation===1?"flex":"none"}},n.a.createElement(ke.a.Group,{disabled:Gn,value:at.difficulty_level_sort||"asc",onChange:function(Ht){at.difficulty_level_sort=Ht.target.value,qt(Object.assign({},at)),Vt()}},n.a.createElement(ke.a,{value:"asc"},"\u6B63\u5E8F\u8D4B\u5206"),n.a.createElement(ke.a,{value:"desc"},"\u53CD\u5E8F\u8D4B\u5206"))),n.a.createElement(_.a,null,n.a.createElement(g.a,{style:{marginLeft:145,marginTop:15}},n.a.createElement("span",{className:"font16"},"\u5173\u5361\u540D\u79F0"),n.a.createElement("span",{className:"font14 ml5 c-orange"},Zn!=null&&Zn.task_pass?"(\u8BF7\u9009\u4E2D\u9700\u8981\u5B66\u751F\u5B8C\u6210\u7684\u5173\u5361\uFF0C\u8BE5\u5B9E\u8BAD\u652F\u6301\u8DF3\u5173\u5B66\u4E60)":"(\u8BE5\u5B9E\u8BAD\u4E0D\u652F\u6301\u8DF3\u5173\u5B66\u4E60)"))),at.challenge_settings&&at.challenge_settings.map(function(cn,Ht){return n.a.createElement(_.a,{key:Ht,align:"middle",style:{paddingLeft:275,marginTop:20}},n.a.createElement(g.a,{flex:"1"},n.a.createElement(we.a,{disabled:Gn||!(Zn!=null&&Zn.task_pass),checked:cn.checked,onChange:function(Sn){var Ct=Object(Ge.cloneDeep)(at.challenge_settings);if(Ct[Ht].checked=Sn.target.checked,Ct!=null&&Ct.every(function(xt){return!xt.checked})){b.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}at.challenge_settings[Ht].checked=Sn.target.checked,at.challenge_settings[Ht].hide=Sn.target.checked,at.shixun_evaluation===2&&!Sn.target.checked&&(at.challenge_settings[Ht].challenge_score=0),qt(Object(S.a)({},at)),Vt()}},n.a.createElement("strong",null,cn.challenge_name))),n.a.createElement(g.a,null,!cn.checked&&n.a.createElement("span",{className:"tag-style-border-small bg-orange border-raduis-50 c-white mr10"},"\u53EF\u4E0D\u505A")),n.a.createElement(g.a,{flex:"150px"},n.a.createElement(nt.a,{min:0,step:.1,value:cn.challenge_score,disabled:Gn||at.shixun_evaluation!==2||!cn.checked,onChange:function(Sn){at.challenge_settings[Ht].challenge_score=Sn,qt(Object(S.a)({},at))}}),n.a.createElement("span",{className:"ml10"},"\u5206")),n.a.createElement(g.a,{flex:"300px"},n.a.createElement("span",{className:"tag-style-border-small bg-green c-white mr10"},cn.difficulty),"\u91D1\u5E01\u5956\u52B1\u6570\uFF1A ",cn.challenge_exp))}),n.a.createElement(_.a,{className:"mt30",style:{paddingLeft:65}},n.a.createElement(g.a,null,n.a.createElement("span",{className:"font16 c-black"},"\u67E5\u770B\u53C2\u8003\u7B54\u6848\u624D\u901A\u8FC7\u8BC4\u6D4B\u7684\u5173\u5361\u6263\u5206\u89C4\u5219"),n.a.createElement("span",{className:"font12 c-grey-c"},"\xA0(\u5B66\u751F\u901A\u8FC7\u8BC4\u6D4B\u540E\u518D\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF0C\u4E0D\u5BF9\u6210\u7EE9\u4EA7\u751F\u5F71\u54CD)"))),n.a.createElement(_.a,{style:{paddingLeft:65}},n.a.createElement(ke.a.Group,{disabled:Gn,value:at.answer_open_evaluation,onChange:function(Ht){at.answer_open_evaluation=Ht.target.value,qt(Object(S.a)({},at))}},n.a.createElement(ke.a,{value:!1,style:{marginTop:15}},n.a.createElement("strong",null,"\u6309\u67E5\u770B\u7B54\u6848\u7EA7\u522B\u6263\u5206"),n.a.createElement("span",{className:"c-grey-c"},"(\u6839\u636E\u5B66\u5458\u9009\u62E9\u67E5\u770B\u7684\u5B9E\u8BAD\u7B54\u6848\u7EA7\u522B(\u89E3\u9898\u601D\u8DEF\u3001\u5B8C\u6574\u7B54\u6848)\uFF0C\u6263\u51CF\u76F8\u5E94\u7684\u5206\u503C)")),n.a.createElement("br",null),n.a.createElement(ke.a,{value:!0,style:{marginTop:15}},n.a.createElement("strong",null,"\u4E0D\u6263\u5206")))),!Gn&&n.a.createElement(g.a,{className:"mb50",style:{marginTop:"10px"}},n.a.createElement(U.a,{type:"primary",size:"large",loading:br,onClick:function(){return _n()}},"\u63D0\u4EA4"),n.a.createElement(U.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Wn(!0),zt()}},"\u53D6\u6D88")),n.a.createElement(f.a,{visible:Xe,width:860,onCancel:function(){Pe(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},n.a.createElement("div",{style:{color:"#333333",fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),n.a.createElement("br",null),n.a.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),n.a.createElement("br",null),n.a.createElement("span",null," ","\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),n.a.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," ","\u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5"," "),n.a.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),n.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),n.a.createElement("br",null),n.a.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002"," "),n.a.createElement("br",null),n.a.createElement("span",null," ","\u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),n.a.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," ","\u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5"," "),n.a.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),n.a.createElement("br",null),n.a.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),n.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),n.a.createElement("br",null),n.a.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),n.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),n.a.createElement("br",null),n.a.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))))},tr=Object(x.a)(function(yn){var un=yn.shixunHomeworks,Cn=yn.loading;return{shixunHomeworks:un,loading:Cn.effects}})(vn),Hn=function(un){var Cn,kn,dr=un.shixunHomeworks,$n=un.loading,Zn=un.dispatch,In=Object(s.useState)(!0),mr=Object(a.a)(In,2),Fn=mr[0],ar=mr[1],Gn=Object(s.useState)(!1),Wn=Object(a.a)(Gn,2),Rr=Wn[0],Tr=Wn[1],br=Object(s.useState)([]),wr=Object(a.a)(br,2),ne=wr[0],Re=wr[1],Xe=Object(s.useState)([]),Pe=Object(a.a)(Xe,2),st=Pe[0],Ze=Pe[1],pt=Object(s.useState)([]),mt=Object(a.a)(pt,2),it=mt[0],Lt=mt[1],Yt=Object(s.useState)([]),Xt=Object(a.a)(Yt,2),St=Xt[0],Ft=Xt[1],at=Object(l.i)();function qt(){return zt.apply(this,arguments)}function zt(){return zt=Object(o.a)(d.a.mark(function cn(){var Ht;return d.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Object(z.a)("/api/homework_commons/".concat(at.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:Ht=Sn.sent,Ze(Ht);case 4:case"end":return Sn.stop()}},cn)})),zt.apply(this,arguments)}function _n(){return Dn.apply(this,arguments)}function Dn(){return Dn=Object(o.a)(d.a.mark(function cn(){var Ht;return d.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Object(z.a)("/api/courses/".concat(at==null?void 0:at.coursesId,"/teachers"),{method:"get",params:{homework_id:at.categoryId}});case 2:Ht=Sn.sent,Ht==null||Ht.teacher_list.map(function(Ct){Ct.key=Ct.user_id}),Lt(Ht==null?void 0:Ht.teacher_list),Ft(Ht==null?void 0:Ht.teacher_list);case 6:case"end":return Sn.stop()}},cn)})),Dn.apply(this,arguments)}Object(s.useEffect)(function(){qt(),_n()},[at]);var Vt=function(){};return n.a.createElement("section",{className:[Gt.a.form," bg-white pl30 pr30 pt10"].join(" ")},n.a.createElement(_.a,null,n.a.createElement(g.a,{flex:"1"},n.a.createElement("span",{style:{fontSize:"16px"}},"\u534F\u4F5C\u8BBE\u7F6E"),(st==null?void 0:st.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",color:"#0152d9",marginLeft:"10px"},onClick:function(){Tr(!0)}},"+\u6DFB\u52A0\u534F\u4F5C\u8005"))),n.a.createElement(_.a,{style:{marginTop:"20px",marginBottom:"20px"}},(st==null||((Cn=st.data)===null||Cn===void 0)?void 0:Cn.length)<=0&&n.a.createElement(_t.a,{customText:"\u8BE5\u4F5C\u4E1A\u6682\u65E0\u534F\u4F5C\u8005"}),st==null||((kn=st.data)===null||kn===void 0)?void 0:kn.map(function(cn){return n.a.createElement("span",{style:{display:"inline-flex",height:"40px",borderRadius:"4px",border:"1px solid #44D7B6",padding:"7px 20px",color:"#44D7B6",marginRight:"40px"}},n.a.createElement("span",{style:{flex:"1"}},cn==null?void 0:cn.real_name),(st==null?void 0:st.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:Object(o.a)(d.a.mark(function Ht(){var On;return d.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,Object(z.a)("/api/homework_commons/".concat(at.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:cn.id}});case 2:On=Ct.sent,On.status===0&&(b.b.info("\u5220\u9664\u6210\u529F"),qt(),_n());case 4:case"end":return Ct.stop()}},Ht)}))},"X"))})),n.a.createElement(_.a,null,!Fn&&n.a.createElement(g.a,{className:"mb50"},n.a.createElement(U.a,{type:"primary",size:"large",onClick:function(){return Vt()}},"\u63D0\u4EA4"),n.a.createElement(U.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){ar(!0)}},"\u53D6\u6D88"))),n.a.createElement(f.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:Rr,onCancel:function(){return Tr(!1)},onOk:Object(o.a)(d.a.mark(function cn(){var Ht;return d.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(!(ne.length===0)){Sn.next=3;break}return b.b.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08"),Sn.abrupt("return");case 3:return Sn.next=5,Object(z.a)("/api/homework_commons/".concat(at.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:ne}});case 5:Ht=Sn.sent,Ht.status===0&&(b.b.info("\u6DFB\u52A0\u6210\u529F"),Re([]),qt(),_n(),Tr(!1));case 7:case"end":return Sn.stop()}},cn)}))},n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",n.a.createElement(p.a.Search,{onChange:function(Ht){Lt(St.filter(function(On){return On.name.indexOf(Ht.target.value)>-1}))}})),n.a.createElement(B.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Ht,On){Re(Ht)},selectedRowKeys:ne,getCheckboxProps:function(Ht){return{disabled:Ht.is_collaborator}}},pagination:!1,dataSource:it,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))},wn=Object(x.a)(function(yn){var un=yn.shixunHomeworks,Cn=yn.loading;return{shixunHomeworks:un,loading:Cn.effects}})(Hn),xr=Nt.a.RangePicker,Er=be.a.Option,rr=function(un){var Cn=un.shixunHomeworks,kn=un.loading,dr=un.dispatch;return n.a.createElement("section",{className:[Gt.a.form," bg-white pl30 pt10"].join(" ")},n.a.createElement(F.a,null,n.a.createElement(F.a.TabPane,{tab:"\u53D1\u5E03\u8BBE\u7F6E",key:1},n.a.createElement(Jt.a,null)),n.a.createElement(F.a.TabPane,{tab:"\u8BC4\u5206\u8BBE\u7F6E",key:2},n.a.createElement(tr,null)),n.a.createElement(F.a.TabPane,{tab:"\u516C\u5F00\u8BBE\u7F6E",key:3},n.a.createElement(sn,null)),n.a.createElement(F.a.TabPane,{tab:"\u534F\u4F5C\u8BBE\u7F6E",key:4},n.a.createElement(wn,null))))},ur=Object(x.a)(function(yn){var un=yn.shixunHomeworks,Cn=yn.loading;return{shixunHomeworks:un,loading:Cn.effects}})(rr),Ar=L("lO7E"),Kr=L.n(Ar),ra=L("cVA7"),pn=L.n(ra),sr=function(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return console.log("---",un,Cn,kn),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["\u7B49\u7EA7A","\u7B49\u7EA7B","\u7B49\u7EA7C","\u7B49\u7EA7D","\u7B49\u7EA7E"]}],yAxis:[{type:"value"}],series:[{name:"\u7F3A\u9677",type:"bar",stack:"Ad",color:["#5c9ef7"],emphasis:{focus:"series"},data:kn},{name:"\u6F0F\u6D1E",type:"bar",stack:"Ad",color:["#75c87c"],emphasis:{focus:"series"},data:Cn},{name:"\u4EE3\u7801\u89C4\u8303\u6027",type:"bar",stack:"Ad",color:["#f3d460"],emphasis:{focus:"series"},data:un}]}},sa=function(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return{dataset:[{source:un}],tooltip:{show:!0,formatter:function(kn){return kn.value[2]+":"+kn.value[1]+"\u5206"}},xAxis:{splitLine:{lineStyle:{type:"dashed"}},show:!1},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"scatter",type:"scatter",datasetIndex:0},{name:"line",type:"line",smooth:!0,datasetIndex:1,symbolSize:.1,symbol:"circle",label:{show:!0,fontSize:16},labelLayout:{dx:-20},encode:{label:2,tooltip:1}}]}},ya=function(un){var Cn,kn,dr,$n,Zn=un.shixunHomeworks,In=un.loading,mr=un.dispatch,Fn=Object(l.i)(),ar=Object(s.useState)(Object(S.a)(Object(S.a)({},{sort_by:"student_id",sort_direction:"desc"}),Fn)),Gn=Object(a.a)(ar,2),Wn=Gn[0],Rr=Gn[1],Tr=Object(s.useState)(),br=Object(a.a)(Tr,2),wr=br[0],ne=br[1],Re=Object(s.useState)([]),Xe=Object(a.a)(Re,2),Pe=Xe[0],st=Xe[1],Ze=Object(s.useRef)(),pt=Object(s.useState)(1),mt=Object(a.a)(pt,2),it=mt[0],Lt=mt[1],Yt=Object(s.useState)(!1),Xt=Object(a.a)(Yt,2),St=Xt[0],Ft=Xt[1],at=Object(s.useState)(10),qt=Object(a.a)(at,2),zt=qt[0],_n=qt[1],Dn=Object(s.useState)([]),Vt=Object(a.a)(Dn,2),cn=Vt[0],Ht=Vt[1];Object(s.useEffect)(function(){Sn()},[]);var On=[{title:"\u5B66\u53F7",dataIndex:"student_number",sorter:!0,showSorterTooltip:!1,sortOrder:Wn.sort_by==="student_number"?Wn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED",dataIndex:"group_course_name"},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u7F3A\u9677",children:[{title:"\u963B\u65AD",dataIndex:"bug",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"bug",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.critical)}},{title:"\u4E3B\u8981",dataIndex:"bug",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.major)}},{title:"\u6B21\u8981",dataIndex:"bug",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"bug",sorter:!1,showSorterTooltip:!1,sortOrder:Wn.sort_by==="bug"?Wn.sort_direction==="desc"?"descend":"ascend":null,render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.grade)}}]},{title:"\u6F0F\u6D1E",children:[{title:"\u963B\u65AD",dataIndex:"vulnerability",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"vulnerability",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.critical)}},{title:"\u4E3B\u8981",dataIndex:"vulnerability",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.major)}},{title:"\u6B21\u8981",dataIndex:"vulnerability",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"vulnerability",sorter:!1,showSorterTooltip:!1,sortOrder:Wn.sort_by==="vulnerability"?Wn.sort_direction==="desc"?"descend":"ascend":null,render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.grade)}}]},{title:"\u4EE3\u7801\u89C4\u8303\u6027",children:[{title:"\u963B\u65AD",dataIndex:"specification",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"specification",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.critical)}},{title:"\u4E3B\u8981",dataIndex:"specification",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.major)}},{title:"\u6B21\u8981",dataIndex:"specification",render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"specification",sorter:!1,showSorterTooltip:!1,sortOrder:Wn.sort_by==="specification"?Wn.sort_direction==="desc"?"descend":"ascend":null,render:function(wt){return n.a.createElement("span",{className:"current"},wt==null?void 0:wt.grade)}}]},{title:"\u590D\u6742\u4EE3\u7801",dataIndex:"complexity",sorter:!0,showSorterTooltip:!1,sortOrder:Wn.sort_by==="complexity"?Wn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u4EE3\u7801\u884C\u6570",dataIndex:"total_row_number",sorter:!0,showSorterTooltip:!1,sortOrder:Wn.sort_by==="total_row_number"?Wn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8D28\u91CF\u8BC4\u5206",dataIndex:"quality_score",sorter:!0,showSorterTooltip:!1,sortOrder:Wn.sort_by==="quality_score"?Wn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",render:function(wt,gn){return n.a.createElement("a",{target:"_blank",href:"/classrooms/".concat(Fn.coursesId,"/shixun_homework/").concat(Fn.categoryId,"/analysis/").concat(gn.id),className:"current c-light-primary"},"\u8BE6\u7EC6\u5206\u6790")}}];Object(s.useEffect)(function(){return wr===2&&(Ze.current=setInterval(function(){Sn()},6e4)),function(){clearTimeout(Ze.current)}},[wr]);function Sn(){return Ct.apply(this,arguments)}function Ct(){return Ct=Object(o.a)(d.a.mark(function Dt(){var wt;return d.a.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:return hn.next=2,Object(z.a)("/api/homework_commons/".concat(Wn.categoryId,"/code_quality_analyses/check_status.json"),{method:"GET"});case 2:wt=hn.sent,ne(wt.status),wt.status!=2&&wt.status!=-1&&(xt({page:1,limit:10}),clearTimeout(Ze.current));case 5:case"end":return hn.stop()}},Dt)})),Ct.apply(this,arguments)}function xt(Dt){return Pt.apply(this,arguments)}function Pt(){return Pt=Object(o.a)(d.a.mark(function Dt(wt){var gn;return d.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return Lt(wt==null?void 0:wt.page),_n(wt==null?void 0:wt.limit),bn.next=4,Object(z.a)("/api/homework_commons/".concat(Wn.categoryId,"/code_quality_analyses.json"),{method:"GET",params:Object(S.a)({},wt)});case 4:gn=bn.sent,st(gn);case 6:case"end":return bn.stop()}},Dt)})),Pt.apply(this,arguments)}return console.log("-------",wr),n.a.createElement("section",{style:{paddingBottom:"10px"},className:"minH500 bg-white pl30 pr30 pt10"},(wr===0||wr===1)&&n.a.createElement("div",null,n.a.createElement("p",{style:{display:"flex"}},n.a.createElement("span",{style:{flex:"1"}},n.a.createElement("label",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A",Pe==null?void 0:Pe.created_at)),n.a.createElement(U.a,{onClick:function(){mr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B"}})}},"\u91CD\u65B0\u68C0\u6D4B")),n.a.createElement("p",{style:{display:"flex"}},n.a.createElement(_.a,{style:{width:"100%"}},n.a.createElement(g.a,{flex:"80px"},n.a.createElement("label",null,"\u5206\u73ED\u60C5\u51B5:")),n.a.createElement(g.a,{flex:"80px"},n.a.createElement(we.a,{checked:(cn==null?void 0:cn.length)===0,onChange:function(wt){wt.target.checked&&(Ht([]),xt({page:it,limit:zt}))},style:{fontSize:"14px"},value:"all"},"\u5168\u90E8")),n.a.createElement(g.a,{flex:"1"},n.a.createElement(we.a.Group,{value:cn,onChange:function(){var Dt=Object(o.a)(d.a.mark(function wt(gn){return d.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:Ht(Object(y.a)(gn)),xt({page:it,limit:zt,group_course_ids:gn});case 2:case"end":return bn.stop()}},wt)}));return function(wt){return Dt.apply(this,arguments)}}(),style:{width:"100%",fontSize:"14px"}},Pe==null||((Cn=Pe.course_groups)===null||Cn===void 0)?void 0:Cn.map(function(Dt,wt){return n.a.createElement(we.a,{style:{fontSize:"14px"},value:Dt==null?void 0:Dt.id},Dt==null?void 0:Dt.name,"(",Dt==null?void 0:Dt.count,")")}))))),n.a.createElement("p",{style:{display:"flex"}},n.a.createElement("span",null,n.a.createElement("label",{style:{color:"red"}},"\u6CE8\u610F\uFF1A")),"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u5B8C\u6210\u68C0\u6D4B\u7684\u5206\u73ED"),n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},n.a.createElement("div",null,n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u7B49\u7EA7\u5206\u6790"),(Pe==null?void 0:Pe.grade_statistics)&&n.a.createElement(pn.a,{option:sr(Pe==null||((kn=Pe.grade_statistics)===null||kn===void 0)?void 0:kn.map(function(Dt){return Dt.specification_count}),Pe==null||((dr=Pe.grade_statistics)===null||dr===void 0)?void 0:dr.map(function(Dt){return Dt.vulnerability_count}),Pe==null||(($n=Pe.grade_statistics)===null||$n===void 0)?void 0:$n.map(function(Dt){return Dt.bug_count})),style:{height:400,width:600},opts:{renderer:"svg"}})),n.a.createElement("div",null,n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u8D28\u91CF\u5206\u5E03"),(Pe==null?void 0:Pe.quality_scores)&&n.a.createElement(pn.a,{option:sa(Pe==null?void 0:Pe.quality_scores.map(function(Dt,wt){return[wt+1,Dt==null?void 0:Dt.quality_score,Dt==null?void 0:Dt.user_name]})),style:{height:400,width:600},opts:{renderer:"svg"}}))),n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500,flex:"1"}},"\u8BE6\u7EC6\u5217\u8868"),n.a.createElement(p.a.Search,{size:"large",onSearch:function(wt){xt({page:1,limit:zt,search:wt})},style:{width:"300px"},enterButton:"\u641C\u7D22"})),n.a.createElement(B.a,{columns:On,dataSource:Pe==null?void 0:Pe.analysis,bordered:!0,scroll:{x:"calc(800px + 50%)"},pagination:!1,onChange:function(wt,gn,hn){hn.field&&(Wn.sort_by=hn.field),hn.order||(Wn.sort_direction="asc"),hn.order==="ascend"&&(Wn.sort_direction="asc"),hn.order==="descend"&&(Wn.sort_direction="desc"),hn.order||(Wn.sort_direction="asc"),xt(Object(S.a)({page:1,limit:zt},Wn))}}),n.a.createElement(w.a,{current:it,total:Pe==null?void 0:Pe.total_count,pageSizeOptions:["10","20","50","100","200"],pageSize:zt,style:{textAlign:"center",marginTop:"20px",marginBottom:"20px"},onChange:function(wt,gn){Lt(wt),_n(gn),xt({page:wt,limit:gn,group_course_ids:cn})}}))),wr===2&&n.a.createElement("div",{style:{textAlign:"center",margin:"100px 0px",paddingBottom:"100px"}},n.a.createElement("img",{src:Kr.a}),n.a.createElement("br",null),n.a.createElement(U.a,{type:"primary",style:{width:"120px",height:"40px"},onClick:function(){Sn()}},"\u5237\u65B0\u9875\u9762")),n.a.createElement(ze,null),n.a.createElement(f.a,{centered:!0,width:1200,title:"\u8BE6\u7EC6\u5206\u6790",destroyOnClose:!0,visible:!!St,footer:null,onCancel:function(){return Ft(!1)}},n.a.createElement("div",{style:{height:500,overflow:"hidden"}},!!St&&n.a.createElement("iframe",{style:{height:"100%",width:"100%"},src:"https://sonar.educoder.net/project/issues?id=".concat(Fn==null?void 0:Fn.categoryId,"-").concat(St==null?void 0:St.student_number,"&resolved=false"),frameBorder:"0"}))))},Jr=Object(x.a)(function(yn){var un=yn.shixunHomeworks,Cn=yn.loading;return{shixunHomeworks:un,loading:Cn.effects}})(ya),na=L("RotF"),te=L.n(na),W=function(un){var Cn,kn=un.shixunHomeworks,dr=un.loading,$n=un.dispatch,Zn=Object(l.i)(),In=Object(l.h)(),mr=Object(s.useState)([]),Fn=Object(a.a)(mr,2),ar=Fn[0],Gn=Fn[1],Wn=Object(s.useState)([]),Rr=Object(a.a)(Wn,2),Tr=Rr[0],br=Rr[1],wr=Object(s.useState)(!0),ne=Object(a.a)(wr,2),Re=ne[0],Xe=ne[1],Pe=Object(s.useState)(!1),st=Object(a.a)(Pe,2),Ze=st[0],pt=st[1],mt=Object(s.useState)(1),it=Object(a.a)(mt,2),Lt=it[0],Yt=it[1],Xt=Object(s.useState)([]),St=Object(a.a)(Xt,2),Ft=St[0],at=St[1],qt=Object(s.useState)(!1),zt=Object(a.a)(qt,2),_n=zt[0],Dn=zt[1],Vt=Object(s.useState)(!1),cn=Object(a.a)(Vt,2),Ht=cn[0],On=cn[1];Object(s.useEffect)(function(){kn.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD"?(xt.resetFields(),Gn([]),Dn(!0),Dt()):Dn(!1)},[kn.actionTabs.key]);var Sn=We.a.useForm(),Ct=Object(a.a)(Sn,1),xt=Ct[0],Pt=[],Dt=function(){var hn=Object(o.a)(d.a.mark(function bn(){var dn,rn,Tn;return d.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:if(!(Re&&!Ze)){hr.next=11;break}return pt(!0),Yt(Lt+1),hr.next=5,Object(Z.x)(Object(S.a)(Object(S.a)({},Zn),{},{page:Lt}));case 5:rn=hr.sent,Tn=Object(y.a)(rn.group_list),rn!=null&&rn.ungroup_list&&Tn.push({id:rn==null?void 0:rn.ungroup_list.id,name:rn==null?void 0:rn.ungroup_list.name,works_count:rn==null?void 0:rn.ungroup_list.work_count,last_review_time:rn==null?void 0:rn.ungroup_list.last_review_time}),Gn([].concat(Object(y.a)(ar),Object(y.a)(Tn))),pt(!1),((dn=rn.group_list)===null||dn===void 0?void 0:dn.length)<10&&Xe(!1);case 11:case"end":return hr.stop()}},bn)}));return function(){return hn.apply(this,arguments)}}(),wt=function(){$n({type:"shixunHomeworks/setActionTabs",payload:{}}),On(!1),Xe(!0),pt(!1),Yt(1),Gn([]),xt.resetFields()},gn=[{title:"",dataIndex:"id",width:280,render:function(bn,dn){return n.a.createElement(we.a,{disabled:!(dn.works_count>1),value:String(dn.id)},dn.name)}},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u4E0A\u6B21\u67E5\u91CD\u65F6\u95F4",dataIndex:"last_review_time",width:130}];return n.a.createElement(f.a,{centered:!0,title:"\u4EE3\u7801\u67E5\u91CD",keyboard:!1,maskClosable:!1,visible:_n,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:820,bodyStyle:{minHeight:200},onOk:Object(o.a)(d.a.mark(function hn(){var bn,dn;return d.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return bn=xt.getFieldValue(),Tn.next=3,Object(z.a)("/api/homework_commons/".concat(Zn.categoryId,"/homework_code_repeat.json"),{method:"post",body:{group_ids:Object(y.a)(bn.group_ids)}});case 3:if(dn=Tn.sent,!(dn.status===0)){Tn.next=11;break}return wt(),b.b.success("\u64CD\u4F5C\u6210\u529F"),Tn.next=9,$n({type:"shixunHomeworks/getWorkList",payload:kn.actionTabs.params});case 9:x.d.push("/classrooms/".concat(Zn.coursesId,"/shixun_homework/").concat(Zn.categoryId,"/detail?tabs=2")),$n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6267\u884C\u4EE3\u7801\u67E5\u91CD"}});case 11:case"end":return Tn.stop()}},hn)})),onCancel:wt},kn.codeReviewCourse&&n.a.createElement(We.a,{form:xt,onChange:function(bn){at(Object(S.a)({},xt.getFieldValue()))},initialValues:(Cn={},Object(vt.a)(Cn,"group_ids",Pt),Object(vt.a)(Cn,"end_time",oe()(oe()().add(7,"days").format("YYYY-MM-DD HH:mm"))),Cn)},n.a.createElement("div",{className:"flexd-table-header mt20"},n.a.createElement(B.a,{pagination:!1,dataSource:[],columns:gn})),n.a.createElement(We.a.Item,{name:"group_ids"},n.a.createElement(we.a.Group,{className:"w100"},n.a.createElement("div",{style:{width:"100%",maxHeight:260,overflow:"auto"}},n.a.createElement(te.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(bn){Dt()},hasMore:Re,useWindow:!1},n.a.createElement(B.a,{loading:dr.effects["shixunHomeworks/getCodeReviewCourse"],showHeader:!1,columns:gn,dataSource:ar,pagination:!1})))))),n.a.createElement(_.a,null,n.a.createElement(g.a,{className:"ml10"},n.a.createElement(we.a,{checked:Ht,onChange:function(bn){On(bn.target.checked);var dn=[];bn.target.checked&&(dn=ar.filter(function(rn){return rn.works_count>1}).map(function(rn){return rn.id+""})),xt.setFieldsValue(Object(vt.a)({},"group_ids",dn))}},"\u5168\u9009"))))},G=Object(x.a)(function(yn){var un=yn.shixunHomeworks,Cn=yn.loading;return{shixunHomeworks:un,loading:Cn}})(W),Q=L("R5GN"),ue=L("rhHp"),ee=L("Aocz"),qe=L.n(ee),en=L("HBuW"),An=L("NLgs"),Vn=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u963B\u65AD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u963B\u65AD\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}],ln=function(un){var Cn,kn,dr,$n,Zn,In,mr,Fn,ar,Gn=un.shixunHomeworks,Wn=un.globalSetting,Rr=un.loading,Tr=un.dispatch,br=Object(l.i)(),wr=Object(l.h)(),ne=Object(l.g)(),Re=Object(s.useState)([]),Xe=Object(a.a)(Re,2),Pe=Xe[0],st=Xe[1],Ze=Object(s.useState)(wr.query.tabs||"0"),pt=Object(a.a)(Ze,2),mt=pt[0],it=pt[1],Lt=Object(s.useState)({}),Yt=Object(a.a)(Lt,2),Xt=Yt[0],St=Yt[1],Ft=Gn.workList,at=Object(s.useState)(!1),qt=Object(a.a)(at,2),zt=qt[0],_n=qt[1],Dn;br.category=wr.query.category_id,br.order="work_score",br.b_order="desc";var Vt=function(Pt){it(Pt),Pt==="0"&&Tr({type:"shixunHomeworks/getWorkList",payload:Xt})},cn=function(){f.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:n.a.createElement("div",{className:"tc font16"},"\u4F60\u5728\u8BE5\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A\uFF0C\u65E0\u6CD5\u6062\u590D",n.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u91CD\u505A\uFF1F"),onOk:function(){var Pt=Object(o.a)(d.a.mark(function wt(){var gn,hn,bn;return d.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return hn=(gn=Gn.workList)===null||gn===void 0?void 0:gn.myshixun_identifier,rn.next=3,Object(Z.X)({id:hn});case 3:bn=rn.sent,bn&&(b.b.info(`\u5DF2\u6E05\u7A7A\u672C\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55 + */var L,Y,B,I=!1,F,T;window.PR_SHOULD_USE_CONTINUATION=!0;var R,P;(function(){var m=window,t=["break,continue,do,else,for,if,return,while"],b=[t,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[b,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],u=[o,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],f=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],a=[o,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],i="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",d=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",n=[t,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],l=[t,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],c=[t,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],x=[u,a,f,d,s,n,l,c],A=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C="str",k="kwd",w="com",y="typ",h="lit",p="pun",v="pln",_="tag",E="dec",g="src",j="atn",U="atv",S="nocode",z="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function H(He){for(var ke=0,ht=!1,ie=!1,xe=0,we=He.length;xe122||(ae<65||Oe>90||ut.push([Math.max(65,Oe)|32,Math.min(ae,90)|32]),ae<97||Oe>122||ut.push([Math.max(97,Oe)&~32,Math.min(ae,122)&~32]))}}ut.sort(function(Se,ze){return Se[0]-ze[0]||ze[1]-Se[1]});for(var le=[],he=[],dt=0;dt_e[0]&&(_e[1]+1>_e[0]&&Ze.push("-"),Ze.push(Ut(_e[1])))}return Ze.push("]"),Ze.join("")}function kt(Pe){for(var Ae=Pe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ut=Ae.length,Et=[],Ze=0,dt=0;Ze=2&&Oe==="["?Ae[Ze]=We(Ne):Oe!=="\\"&&(Ae[Ze]=Ne.replace(/[a-zA-Z]/g,function(he){var _e=he.charCodeAt(0);return"["+String.fromCharCode(_e&~32,_e|32)+"]"}))}return Ae.join("")}for(var qt=[],xe=0,we=He.length;xe=0;)ht[qt.charAt(Pe)]=kt;var Ae=kt[1],ut=""+Ae;yt.hasOwnProperty(ut)||(ct.push(Ae),yt[ut]=null)}ct.push(/[\0-\uffff]/),ie=H(ct)})();var xe=ke.length,we=function($e){for(var ct=$e.sourceCode,yt=$e.basePos,Ut=$e.sourceNode,We=[yt,v],kt=0,qt=ct.match(ie)||[],Pe={},Ae=0,ut=qt.length;Ae=5&&Ze.substring(0,5)==="lang-",Ne&&!(dt&&typeof dt[1]=="string")&&(Ne=!1,Ze=g),Ne||(Pe[Et]=Ze)}var ae=kt;if(kt+=Et.length,!Ne)We.push(yt+ae,Ze);else{var le=dt[1],he=Et.indexOf(le),_e=he+le.length;dt[2]&&(_e=Et.length-dt[2].length,he=_e-le.length);var Se=Ze.substring(5);V(Ut,yt+ae,Et.substring(0,he),we,We),V(Ut,yt+ae+he,le,de(Se,le),We),V(Ut,yt+ae+_e,Et.substring(_e),we,We)}}$e.decorations=We};return we}function me(He){var ke=[],ht=[];He.tripleQuotedStrings?ke.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):He.multiLineStrings?ke.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):ke.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),He.verbatimStrings&&ht.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ie=He.hashComments;ie&&(He.cStyleComments?(ie>1?ke.push([w,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):ke.push([w,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ht.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):ke.push([w,/^#[^\r\n]*/,null,"#"])),He.cStyleComments&&(ht.push([w,/^\/\/[^\r\n]*/,null]),ht.push([w,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var xe=He.regexLiterals;if(xe){var we=xe>1?"":` +\r`,$e=we?".":"[\\S\\s]",ct="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+$e+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+$e+")*(?:\\x5D|$))+/";ht.push(["lang-regex",RegExp("^"+z+"("+ct+")")])}var yt=He.types;yt&&ht.push([y,yt]);var Ut=(""+He.keywords).replace(/^ | $/g,"");Ut.length&&ht.push([k,new RegExp("^(?:"+Ut.replace(/[\s,]+/g,"|")+")\\b"),null]),ke.push([v,/^\s+/,null,` \r + \xA0`]);var We="^.[^\\s\\w.$@'\"`/\\\\]*";return He.regexLiterals&&(We+="(?!s*/)"),ht.push([h,/^@[a-z_$][a-z_$@0-9]*/i,null],[y,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[h,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[p,new RegExp(We),null]),Z(ke,ht)}var oe=me({keywords:x,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function fe(He,ke,ht){for(var ie=/(?:^|\s)nocode(?:\s|$)/,xe=/\r\n?|\n/,we=He.ownerDocument,$e=we.createElement("li");He.firstChild;)$e.appendChild(He.firstChild);var ct=[$e];function yt(Ae){var ut=Ae.nodeType;if(ut==1&&!ie.test(Ae.className))if(Ae.nodeName==="br")Ut(Ae),Ae.parentNode&&Ae.parentNode.removeChild(Ae);else for(var Et=Ae.firstChild;Et;Et=Et.nextSibling)yt(Et);else if((ut==3||ut==4)&&ht){var Ze=Ae.nodeValue,dt=Ze.match(xe);if(dt){var Ne=Ze.substring(0,dt.index);Ae.nodeValue=Ne;var Te=Ze.substring(dt.index+dt[0].length);if(Te){var Oe=Ae.parentNode;Oe.insertBefore(we.createTextNode(Te),Ae.nextSibling)}Ut(Ae),Ne||Ae.parentNode.removeChild(Ae)}}}function Ut(Ae){for(;!Ae.nextSibling;)if(Ae=Ae.parentNode,!Ae)return;function ut(dt,Ne){var Te=Ne?dt.cloneNode(!1):dt,Oe=dt.parentNode;if(Oe){var ae=ut(Oe,1),le=dt.nextSibling;ae.appendChild(Te);for(var he=le;he;he=le)le=he.nextSibling,ae.appendChild(he)}return Te}for(var Et=ut(Ae.nextSibling,0),Ze;(Ze=Et.parentNode)&&Ze.nodeType===1;)Et=Ze;ct.push(Et)}for(var We=0;We=Oe&&(yt+=2),we>=ae&&(kt+=2)}}finally{Ze&&(Ze.style.display=dt)}}var Ie={};function ve(He,ke){for(var ht=ke.length;--ht>=0;){var ie=ke[ht];Ie.hasOwnProperty(ie)?m.console&&console.warn("cannot override language handler %s",ie):Ie[ie]=He}}function de(He,ke){return He&&Ie.hasOwnProperty(He)||(He=/^\s*]*(?:>|$)/],[w,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[p,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ve(Z([[v,/^[\s]+/,null,` \r +`],[U,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[_,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[j,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[p,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ve(Z([],[[U,/^[\s\S]+/]]),["uq.val"]),ve(me({keywords:u,hashComments:!0,cStyleComments:!0,types:A}),["c","cc","cpp","cxx","cyc","m"]),ve(me({keywords:"null,true,false"}),["json"]),ve(me({keywords:a,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:A}),["cs"]),ve(me({keywords:f,cStyleComments:!0}),["java"]),ve(me({keywords:c,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ve(me({keywords:n,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ve(me({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ve(me({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ve(me({keywords:d,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ve(me({keywords:i,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ve(Z([],[[C,/^[\s\S]+/]]),["regex"]);function Je(He){var ke=He.langExtension;try{var ht=M(He.sourceNode,He.pre),ie=ht.sourceCode;He.sourceCode=ie,He.spans=ht.spans,He.basePos=0,de(ke,ie)(He),ye(He)}catch(xe){m.console&&console.log(xe&&xe.stack||xe)}}function Rt(He,ke,ht){var ie=ht||!1,xe=ke||null,we=document.createElement("div");we.innerHTML="
      "+He+"
      ",we=we.firstChild,ie&&fe(we,ie,!0);var $e={langExtension:xe,numberLines:ie,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Je($e),we.innerHTML}function Ee(He,ke){var ht=ke||document.body,ie=ht.ownerDocument||document;function xe(Te){return ht.getElementsByTagName(Te)}for(var we=[xe("pre"),xe("code"),xe("xmp")],$e=[],ct=0;ct-R&&hR||h<-R}function i(h,p,v,_,E){var g=1-E;return g*g*(g*h+3*E*p)+E*E*(E*_+3*g*v)}function d(h,p,v,_,E){var g=1-E;return 3*(((p-h)*g+2*(v-p)*E)*g+(_-v)*E*E)}function s(h,p,v,_,E,g){var j=_+3*(p-v)-h,U=3*(v-p*2+h),S=3*(p-h),z=h-E,H=U*U-3*j*S,M=U*S-9*j*z,V=S*S-3*U*z,K=0;if(f(H)&&f(M))if(f(U))g[0]=0;else{var $=-S/U;$>=0&&$<=1&&(g[K++]=$)}else{var Z=M*M-4*H*V;if(f(Z)){var me=M/H,$=-U/j+me,oe=-me/2;$>=0&&$<=1&&(g[K++]=$),oe>=0&&oe<=1&&(g[K++]=oe)}else if(Z>0){var fe=T(Z),ye=H*U+1.5*j*(-M+fe),Ie=H*U+1.5*j*(-M-fe);ye<0?ye=-F(-ye,t):ye=F(ye,t),Ie<0?Ie=-F(-Ie,t):Ie=F(Ie,t);var $=(-U-(ye+Ie))/(3*j);$>=0&&$<=1&&(g[K++]=$)}else{var ve=(2*H*U-3*j*M)/(2*T(H*H*H)),de=Math.acos(ve)/3,Je=T(H),Rt=Math.cos(de),$=(-U-2*Je*Rt)/(3*j),oe=(-U+Je*(Rt+m*Math.sin(de)))/(3*j),Ee=(-U+Je*(Rt-m*Math.sin(de)))/(3*j);$>=0&&$<=1&&(g[K++]=$),oe>=0&&oe<=1&&(g[K++]=oe),Ee>=0&&Ee<=1&&(g[K++]=Ee)}}return K}function n(h,p,v,_,E){var g=6*v-12*p+6*h,j=9*p+3*_-3*h-9*v,U=3*p-3*h,S=0;if(f(j)){if(a(g)){var z=-U/g;z>=0&&z<=1&&(E[S++]=z)}}else{var H=g*g-4*j*U;if(f(H))E[0]=-g/(2*j);else if(H>0){var M=T(H),z=(-g+M)/(2*j),V=(-g-M)/(2*j);z>=0&&z<=1&&(E[S++]=z),V>=0&&V<=1&&(E[S++]=V)}}return S}function l(h,p,v,_,E,g){var j=(p-h)*E+h,U=(v-p)*E+p,S=(_-v)*E+v,z=(U-j)*E+j,H=(S-U)*E+U,M=(H-z)*E+z;g[0]=h,g[1]=j,g[2]=z,g[3]=M,g[4]=M,g[5]=H,g[6]=S,g[7]=_}function c(h,p,v,_,E,g,j,U,S,z,H){var M,V=.005,K=Infinity,$,Z,me,oe;b[0]=S,b[1]=z;for(var fe=0;fe<1;fe+=.05)o[0]=i(h,v,E,j,fe),o[1]=i(p,_,g,U,fe),me=I(b,o),me=0&&me=0&&z<=1&&(E[S++]=z)}}else{var H=j*j-4*g*U;if(f(H)){var z=-j/(2*g);z>=0&&z<=1&&(E[S++]=z)}else if(H>0){var M=T(H),z=(-j+M)/(2*g),V=(-j-M)/(2*g);z>=0&&z<=1&&(E[S++]=z),V>=0&&V<=1&&(E[S++]=V)}}return S}function k(h,p,v){var _=h+v-2*p;return _===0?.5:(h-p)/_}function w(h,p,v,_,E){var g=(p-h)*_+h,j=(v-p)*_+p,U=(j-g)*_+g;E[0]=h,E[1]=g,E[2]=U,E[3]=U,E[4]=j,E[5]=v}function y(h,p,v,_,E,g,j,U,S){var z,H=.005,M=Infinity;b[0]=j,b[1]=U;for(var V=0;V<1;V+=.05){o[0]=x(h,v,E,V),o[1]=x(p,_,g,V);var K=I(b,o);K=0&&K=0;--c)if(l[c]===n)return!0;return!1}),s):null:s[0]},f.prototype.update=function(i,d){if(!i)return;var s=this.getDefs(!1);if(i[this._domName]&&s.contains(i[this._domName]))typeof d=="function"&&d(i);else{var n=this.add(i);n&&(i[this._domName]=n)}},f.prototype.addDom=function(i){var d=this.getDefs(!0);d.appendChild(i)},f.prototype.removeDom=function(i){var d=this.getDefs(!1);d&&i[this._domName]&&(d.removeChild(i[this._domName]),i[this._domName]=null)},f.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var d=[];return I.each(this._tagNames,function(s){var n=i.getElementsByTagName(s);d=d.concat([].slice.call(n))}),d},f.prototype.markAllUnused=function(){var i=this.getDoms(),d=this;I.each(i,function(s){s[d._markLabel]=o})},f.prototype.markUsed=function(i){i&&(i[this._markLabel]=u)},f.prototype.removeUnused=function(){var i=this.getDefs(!1);if(!i)return;var d=this.getDoms(),s=this;I.each(d,function(n){n[s._markLabel]!==u&&i.removeChild(n)})},f.prototype.getSvgProxy=function(i){return i instanceof F?m:i instanceof T?t:i instanceof R?b:m},f.prototype.getTextSvgElement=function(i){return i.__textSvgEl},f.prototype.getSvgElement=function(i){return i.__svgEl};var a=f;Be.exports=a},T6xi:function(Be,J,L){var Y=L("YgsL"),B=L("nCxF");function I(F,T,R){var P=T.points,m=T.smooth;if(P&&P.length>=2){if(m&&m!=="spline"){var t=B(P,m,R,T.smoothConstraint);F.moveTo(P[0][0],P[0][1]);for(var b=P.length,o=0;o<(R?b:b-1);o++){var u=t[o*2],f=t[o*2+1],a=P[(o+1)%b];F.bezierCurveTo(u[0],u[1],f[0],f[1],a[0],a[1])}}else{m==="spline"&&(P=Y(P,R)),F.moveTo(P[0][0],P[0][1]);for(var o=1,i=P.length;o=0),T.set("isFirefox",F.indexOf("Firefox")>=0),T.set("isChrome",F.indexOf("Chrome")>=0),T.set("isSafari",F.indexOf("Safari")>=0);const R=Object.prototype.hasOwnProperty;class P{static has(S){return u.create(S)}static equals(S,z){return f.create(S,z)}static regex(S,z){return C.create(S,z)}static not(S){return s.create(S)}static and(...S){return y.create(S,null)}static or(...S){return h.create(S,null,!0)}static deserialize(S,z=!1){return S?this._deserializeOrExpression(S,z):void 0}static _deserializeOrExpression(S,z){let H=S.split("||");return h.create(H.map(M=>this._deserializeAndExpression(M,z)),null,!0)}static _deserializeAndExpression(S,z){let H=S.split("&&");return y.create(H.map(M=>this._deserializeOne(M,z)),null)}static _deserializeOne(S,z){if(S=S.trim(),S.indexOf("!=")>=0){let H=S.split("!=");return d.create(H[0].trim(),this._deserializeValue(H[1],z))}if(S.indexOf("==")>=0){let H=S.split("==");return f.create(H[0].trim(),this._deserializeValue(H[1],z))}if(S.indexOf("=~")>=0){let H=S.split("=~");return C.create(H[0].trim(),this._deserializeRegexValue(H[1],z))}if(S.indexOf(" in ")>=0){let H=S.split(" in ");return a.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(S)){const H=S.split(">=");return c.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(S)){const H=S.split(">");return l.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(S)){const H=S.split("<=");return A.create(H[0].trim(),H[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(S)){const H=S.split("<");return x.create(H[0].trim(),H[1].trim())}return/^\!\s*/.test(S)?s.create(S.substr(1).trim()):u.create(S)}static _deserializeValue(S,z){if(S=S.trim(),S==="true")return!0;if(S==="false")return!1;let H=/^'([^']*)'$/.exec(S);return H?H[1].trim():S}static _deserializeRegexValue(S,z){if(Object(B.C)(S)){if(z)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let H=S.indexOf("/"),M=S.lastIndexOf("/");if(H===M||H<0){if(z)throw new Error(`bad regexp-value '${S}', missing /-enclosure`);return console.warn(`bad regexp-value '${S}', missing /-enclosure`),null}let V=S.slice(H+1,M),K=S[M+1]==="i"?"i":"";try{return new RegExp(V,K)}catch($){if(z)throw new Error(`bad regexp-value '${S}', parse error: ${$}`);return console.warn(`bad regexp-value '${S}', parse error: ${$}`),null}}}function m(S,z){const H=S?S.substituteConstants():void 0,M=z?z.substituteConstants():void 0;return!H&&!M?!0:!H||!M?!1:H.equals(M)}function t(S,z){return S.cmp(z)}class b{constructor(){this.type=0}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!1}serialize(){return"false"}keys(){return[]}negate(){return o.INSTANCE}}b.INSTANCE=new b;class o{constructor(){this.type=1}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!0}serialize(){return"true"}keys(){return[]}negate(){return b.INSTANCE}}o.INSTANCE=new o;class u{constructor(S,z){this.key=S,this.negated=z,this.type=2}static create(S,z=null){const H=T.get(S);return typeof H=="boolean"?H?o.INSTANCE:b.INSTANCE:new u(S,z)}cmp(S){return S.type!==this.type?this.type-S.type:E(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=T.get(this.key);return typeof S=="boolean"?S?o.INSTANCE:b.INSTANCE:this}evaluate(S){return!!S.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=s.create(this.key,this)),this.negated}}class f{constructor(S,z,H){this.key=S,this.value=z,this.negated=H,this.type=4}static create(S,z,H=null){if(typeof z=="boolean")return z?u.create(S,H):s.create(S,H);const M=T.get(S);if(typeof M=="boolean"){const V=M?"true":"false";return z===V?o.INSTANCE:b.INSTANCE}return new f(S,z,H)}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=T.get(this.key);if(typeof S=="boolean"){const z=S?"true":"false";return this.value===z?o.INSTANCE:b.INSTANCE}return this}evaluate(S){return S.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=d.create(this.key,this.value,this)),this.negated}}class a{constructor(S,z){this.key=S,this.valueKey=z,this.type=10,this.negated=null}static create(S,z){return new a(S,z)}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.valueKey,S.key,S.valueKey)}equals(S){return S.type===this.type?this.key===S.key&&this.valueKey===S.valueKey:!1}substituteConstants(){return this}evaluate(S){const z=S.getValue(this.valueKey),H=S.getValue(this.key);return Array.isArray(z)?z.indexOf(H)>=0:typeof H=="string"&&typeof z=="object"&&z!==null?R.call(z,H):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=i.create(this)),this.negated}}class i{constructor(S){this._actual=S,this.type=11}static create(S){return new i(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class d{constructor(S,z,H){this.key=S,this.value=z,this.negated=H,this.type=5}static create(S,z,H=null){if(typeof z=="boolean")return z?s.create(S,H):u.create(S,H);const M=T.get(S);if(typeof M=="boolean"){const V=M?"true":"false";return z===V?b.INSTANCE:o.INSTANCE}return new d(S,z,H)}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=T.get(this.key);if(typeof S=="boolean"){const z=S?"true":"false";return this.value===z?b.INSTANCE:o.INSTANCE}return this}evaluate(S){return S.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class s{constructor(S,z){this.key=S,this.negated=z,this.type=3}static create(S,z=null){const H=T.get(S);return typeof H=="boolean"?H?b.INSTANCE:o.INSTANCE:new s(S,z)}cmp(S){return S.type!==this.type?this.type-S.type:E(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=T.get(this.key);return typeof S=="boolean"?S?b.INSTANCE:o.INSTANCE:this}evaluate(S){return!S.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this)),this.negated}}function n(S,z){if(typeof S=="string"){const H=parseFloat(S);isNaN(H)||(S=H)}return typeof S=="string"||typeof S=="number"?z(S):b.INSTANCE}class l{constructor(S,z,H){this.key=S,this.value=z,this.negated=H,this.type=12}static create(S,z,H=null){return n(z,M=>new l(S,M,H))}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class c{constructor(S,z,H){this.key=S,this.value=z,this.negated=H,this.type=13}static create(S,z,H=null){return n(z,M=>new c(S,M,H))}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class x{constructor(S,z,H){this.key=S,this.value=z,this.negated=H,this.type=14}static create(S,z,H=null){return n(z,M=>new x(S,M,H))}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))new A(S,M,H))}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this.value,this)),this.negated}}class C{constructor(S,z){this.key=S,this.regexp=z,this.type=7,this.negated=null}static create(S,z){return new C(S,z)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.keyS.key)return 1;const z=this.regexp?this.regexp.source:"",H=S.regexp?S.regexp.source:"";return zH?1:0}equals(S){if(S.type===this.type){const z=this.regexp?this.regexp.source:"",H=S.regexp?S.regexp.source:"";return this.key===S.key&&z===H}return!1}substituteConstants(){return this}evaluate(S){let z=S.getValue(this.key);return this.regexp?this.regexp.test(z):!1}serialize(){const S=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${S}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this)),this.negated}}class k{constructor(S){this._actual=S,this.type=8}static create(S){return new k(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function w(S){let z=null;for(let H=0,M=S.length;HS.expr.length)return 1;for(let z=0,H=this.expr.length;z1;){const V=H[H.length-1];if(V.type!==9)break;H.pop();const K=H.pop(),$=H.length===0,Z=h.create(V.expr.map(me=>y.create([me,K],null)),null,$);Z&&(H.push(Z),H.sort(t))}return H.length===1?H[0]:new y(H,z)}serialize(){return this.expr.map(S=>S.serialize()).join(" && ")}keys(){const S=[];for(let z of this.expr)S.push(...z.keys());return S}negate(){if(!this.negated){const S=[];for(let z of this.expr)S.push(z.negate());this.negated=h.create(S,this,!0)}return this.negated}}class h{constructor(S,z){this.expr=S,this.negated=z,this.type=9}static create(S,z,H){return h._normalizeArr(S,z,H)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.lengthS.expr.length)return 1;for(let z=0,H=this.expr.length;zS.serialize()).join(" || ")}keys(){const S=[];for(let z of this.expr)S.push(...z.keys());return S}negate(){if(!this.negated){let S=[];for(let z of this.expr)S.push(z.negate());for(;S.length>1;){const z=S.shift(),H=S.shift(),M=[];for(const K of U(z))for(const $ of U(H))M.push(y.create([K,$],null));const V=S.length===0;S.unshift(h.create(M,null,V))}this.negated=S[0]}return this.negated}}class p extends u{constructor(S,z,H){super(S,null);this._defaultValue=z,typeof H=="object"?p._info.push(Object.assign(Object.assign({},H),{key:S})):H!==!0&&p._info.push({key:S,description:H,type:z!=null?typeof z:void 0})}static all(){return p._info.values()}bindTo(S){return S.createKey(this.key,this._defaultValue)}getValue(S){return S.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(S){return f.create(this.key,S)}}p._info=[];const v=Object(I.c)("contextKeyService"),_="setContext";function E(S,z){return Sz?1:0}function g(S,z,H,M){return SH?1:zM?1:0}function j(S,z){if(z.type===6&&S.type!==9&&S.type!==6){for(const V of z.expr)if(S.equals(V))return!0}const H=S.negate(),M=U(H).concat(U(z));M.sort(t);for(let V=0;V47&&(Ce(47),ot(!0))}},[document.getElementById("divhe")]);var hn=function(jt,Jt){it.page=jt,it.limit=20,Ke()};function Rn(){Wr(1),ma(""),ga(""),ca(""),tt(""),pn([])}var Kn=[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:50,fixed:"left",ellipsis:{showTitle:!1},render:function(jt,Jt,In){return it.limit*(it.page-1)+In+1}},{title:"\u59D3\u540D",dataIndex:"user_name",align:"center",width:110,fixed:"left",ellipsis:{showTitle:!1},render:function(jt){return n.a.createElement(R.a,{placement:"bottomLeft",title:jt},n.a.createElement("span",{className:"current"},jt))}},!(Gt!=null&&Gt.is_excellent)&&!Object(de.r)()&&{title:"\u5B66\u53F7",dataIndex:"student_id",align:"center",sorter:!0,width:110,showSorterTooltip:!1,ellipsis:{showTitle:!1},sortOrder:it.order==="student_id"?it.b_order==="desc"?"descend":"ascend":null,render:function(jt){return n.a.createElement(R.a,{placement:"bottomLeft",title:jt||"--"},n.a.createElement("span",{className:"current"},jt||"--"))}},{title:"\u5206\u73ED",dataIndex:"group_name",align:"center",width:180,ellipsis:{showTitle:!1},render:function(jt,Jt){return jt?n.a.createElement(R.a,{placement:"bottom",title:jt},n.a.createElement("span",{className:"current"},jt)):"--"}},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",align:"center",width:80,sorter:!0,ellipsis:{showTitle:!1},showSorterTooltip:!1,sortOrder:it.order==="work_status"?it.b_order==="desc"?"descend":"ascend":null,render:function(jt){return n.a.createElement(C.h,{status:jt})}},{title:n.a.createElement("span",null,"\u5B8C\u6210\u65F6\u95F4"),dataIndex:"finished_time",align:"center",width:130,ellipsis:{showTitle:!1},showSorterTooltip:!1,sorter:!0,sortOrder:it.order==="finished_time"?it.b_order==="desc"?"descend":"ascend":null,render:function(jt,Jt){return jt?n.a.createElement(R.a,{placement:"bottomLeft",title:jt},jt):"--"}},{title:n.a.createElement("span",null,"\u5B9E\u8BAD\u603B\u8017\u65F6"),dataIndex:"cost_time",align:"center",width:130,ellipsis:{showTitle:!1},showSorterTooltip:!1,sorter:!0,sortOrder:it.order==="cost_time"?it.b_order==="desc"?"descend":"ascend":null,render:function(jt,Jt){return jt?n.a.createElement(R.a,{placement:"bottomLeft",title:jt},jt):"--"}},{title:"\u901A\u5173\u60C5\u51B5",align:"center",dataIndex:"complete_count",ellipsis:{showTitle:!1},render:function(jt,Jt){return n.a.createElement("span",null,jt||0,"/",Gt.challenges_count)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center",ellipsis:{showTitle:!1},sorter:!0,sortOrder:it.order==="sum_evaluate_count"?it.b_order==="desc"?"descend":"ascend":null,render:function(jt,Jt){return jt&&jt!="--"?n.a.createElement(R.a,{placement:"bottom",title:jt},n.a.createElement("span",{className:"current"},jt)):"--"}},!Object(de.r)()&&{title:n.a.createElement("span",null,"\u6700\u7EC8\u6210\u7EE9",n.a.createElement(R.a,{placement:"top",title:n.a.createElement("pre",null,"\u9F20\u6807\u505C\u7559\u5177\u4F53\u5206\u503C\u4E0A\u53EF\u67E5",n.a.createElement("br",null),"\u770B\u5F97\u5206\u660E\u7EC6",n.a.createElement("br",null))},n.a.createElement("img",{src:"".concat(M.a.IMG_SERVER,"/images/educoder/problem.png"),className:"ml2 current"}))),dataIndex:"work_score",sorter:!0,align:"center",showSorterTooltip:!1,sortOrder:it.order==="work_score"?it.b_order==="desc"?"descend":"ascend":null,ellipsis:{showTitle:!1},render:function(jt,Jt){var In,_n;return jt>=0&&jt<=60?_n=n.a.createElement("span",{className:"c-red"},jt):jt===100?_n=n.a.createElement("span",{className:"c-green"},jt):jt>60?_n=n.a.createElement("span",{className:"c-orange"},jt):_n="--",n.a.createElement(R.a,{placement:"bottom",title:Jt.ultimate_score?n.a.createElement("div",null,_n==="--"?"\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A0\u5206":"\u6700\u7EC8\u8C03\u6574\u6210\u7EE9\uFF1A".concat(Jt.work_score,"\u5206")):n.a.createElement("div",null,n.a.createElement("div",null,Jt.final_score?"\u5173\u5361\u5F97\u5206\uFF1A".concat(Jt.final_score,"\u5206"):"\u5173\u5361\u5F97\u5206\uFF1A0\u5206"),n.a.createElement("div",null,Jt.eff_score?"\u6548\u7387\u8BC4\u5206\uFF1A".concat(Jt.eff_score,"\u5206"):"\u6548\u7387\u8BC4\u5206\uFF1A0\u5206"),n.a.createElement("div",null,Jt.late_penalty?"\u8FDF\u4EA4\u6263\u5206\uFF1A".concat(Jt.late_penalty,"\u5206"):"\u8FDF\u4EA4\u6263\u5206\uFF1A0\u5206"),!((In=ne.workList)!==null&&In!==void 0&&In.answer_open_evaluation)&&n.a.createElement("div",null,"\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF1A",Jt.view_answer_count,"\u5173"),n.a.createElement("div",null,Jt.work_score?"\u6700\u7EC8\u6210\u7EE9\uFF1A".concat(Jt.work_score,"\u5206"):"\u6700\u7EC8\u6210\u7EE9\uFF1A0\u5206"))},_n)}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",align:"center",render:function(jt){return jt||"- -"}},{title:n.a.createElement("span",null,"\u8BC4\u9605\u72B6\u6001",n.a.createElement(R.a,{overlayClassName:le.a.reviewStatusTooltip,placement:"top",title:n.a.createElement("pre",null,"\u4EE5\u4E0B\u60C5\u5F62\u51FA\u73B0\u4E00\u79CD\uFF0C\u8BC4\u9605\u72B6\u6001\u81EA\u52A8\u53D8\u4E3A\u5DF2\u8BC4\u9605\uFF1A",n.a.createElement("br",null),"1.\u5B66\u751F\u5F00\u542F\u4F5C\u4E1A\uFF0C\u7CFB\u7EDF\u5BF9\u5B66\u751F\u8FDB\u884C\u4E86\u81EA\u52A8\u6253\u5206\uFF1B",n.a.createElement("br",null),"2.\u8001\u5E08\u5BF9\u5B66\u751F\u4F5C\u4E1A\u8FDB\u884C\u5173\u5361\u8C03\u5206\u6216\u8005\u8FFD\u52A0\u70B9\u8BC4\uFF1B",n.a.createElement("br",null),"3.\u6574\u4E2A\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u6240\u6709\u5B66\u751F\u4F5C\u4E1A\u72B6\u6001\u5C06\u81EA\u52A8\u53D8\u4E3A\u5DF2\u8BC4\u9605\u3002",n.a.createElement("br",null))},n.a.createElement("img",{src:"".concat(M.a.IMG_SERVER,"/images/educoder/problem.png"),className:"ml2 current"}))),align:"center",dataIndex:"has_comment",width:90,ellipsis:!0,render:function(jt){return jt?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"}},{title:"\u64CD\u4F5C",dataInex:"action",align:"center",width:70,fixed:"right",ellipsis:!0,className:"workListTable",render:function(jt,Jt){var In,_n,yr;return Object(de.s)()?n.a.createElement("div",null,Object(C.B)(Jt==null?void 0:Jt.work_status)==="\u672A\u5F00\u542F"?n.a.createElement("span",null,"--"):n.a.createElement(c.a,{target:"_blank",onClick:function(Cr){Cr.stopPropagation()},to:"/classrooms/".concat(it.coursesId,"/shixun_homework/").concat(it.categoryId,"/").concat(Jt.id,"/comment")},"\u67E5\u770B")):n.a.createElement("div",null,n.a.createElement("span",{style:{color:"#0152d9"},onClick:function(Cr){Cr.stopPropagation(),Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:"",data:{name:Jt==null?void 0:Jt.user_name,homeworkId:Jt==null?void 0:Jt.id,work_comment:Jt==null?void 0:Jt.work_comment,work_comment_hidden:Jt==null?void 0:Jt.work_comment_hidden}}}})}},Jt.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u8FFD\u52A0\u70B9\u8BC4"),(Jt==null||((In=Jt.shixun_detail)===null||In===void 0||((_n=In[0])===null||_n===void 0))?void 0:_n.game_identifier)&&[1,2,3,4].includes(Jt==null?void 0:Jt.work_status)&&[n.a.createElement("br",null),n.a.createElement("a",{target:"_blank",onClick:function(Cr){var ir;if(Cr.stopPropagation(),Object(de.v)()){var mn,Mn;Object(C.S)("/tasks/".concat(Jt==null||((mn=Jt.shixun_detail)===null||mn===void 0||((Mn=mn[0])===null||Mn===void 0))?void 0:Mn.game_identifier,"?homework_common_id=").concat(et.categoryId));return}if((ir=st.userInfo)!==null&&ir!==void 0&&ir.professional_certification){var vr,Or;Object(C.S)("/tasks/".concat(Jt==null||((vr=Jt.shixun_detail)===null||vr===void 0||((Or=vr[0])===null||Or===void 0))?void 0:Or.game_identifier,"?homework_common_id=").concat(et.categoryId))}else return f.a.confirm({title:"\u63D0\u793A",centered:!0,content:n.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(C.S)("/account/certification")}}),!1}},"\u67E5\u770B\u5B9E\u8BAD")],(Gt==null||((yr=Gt.homework_status)===null||yr===void 0)?void 0:yr[0])!=="\u5DF2\u622A\u6B62"&&!!Jt.myshixun_id&&[n.a.createElement("br",null),n.a.createElement("span",{className:le.a.color32C,onClick:function(Cr){Cr.stopPropagation(),Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:Jt,params:it}})}},"\u6253\u56DE\u91CD\u505A")])}}].filter(function(on){return!!on}),cr=function(){var jt,Jt;return n.a.createElement(ct.a,null,n.a.createElement(ct.a.Item,{onClick:function(){Object(xt.h)(JSON.parse(sessionStorage.all_student_works_params),"shixun_work_list")},key:"1"},"\u5B66\u751F\u6210\u7EE9"),Object(de.c)()&&(Gt==null?void 0:Gt.student_works.length)>0&&n.a.createElement(ct.a.Item,{key:"3"},n.a.createElement(c.a,{onClick:function(_n){Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A",type:2}})},to:"/classrooms/".concat(it.coursesId,"/shixun_homework/").concat(it.categoryId,"/").concat(Gt==null||((jt=Gt.student_works)===null||jt===void 0||((Jt=jt[0])===null||Jt===void 0))?void 0:Jt.id,"/comment")},"\u5B9E\u8BAD\u62A5\u544A")),n.a.createElement(ct.a.Item,{key:"2"},n.a.createElement(c.a,{to:"/classrooms/".concat(it.coursesId,"/exportlist/shixun_work_list")},"\u5386\u53F2\u5BFC\u51FA")))};return n.a.createElement(n.a.Fragment,null,n.a.createElement("section",{className:"".concat(le.a.wrap," minH500 bg-white pl30 pr30 pt30")},((xn=Gt.homework_status)===null||xn===void 0?void 0:xn.includes("\u672A\u53D1\u5E03"))&&n.a.createElement(Et.a,null),!!wn.length&&n.a.createElement(B.a,{className:"mb10",dataSource:wn,columns:Kn,pagination:!1,showHeader:!1,loading:!1}),!((Nn=Gt.homework_status)!==null&&Nn!==void 0&&Nn.includes("\u672A\u53D1\u5E03"))&&n.a.createElement("aside",null,!Object(de.c)()&&n.a.createElement("div",{className:"c-light-black font12"},n.a.createElement("span",null,"\u5DF2\u5F00\u59CB\u505A\u9898 ",(Gt==null?void 0:Gt.commit_count)||0," \u4EBA"),n.a.createElement("span",{className:"ml5"},"\u672A\u5F00\u59CB\u505A\u9898 ",(Gt==null?void 0:Gt.uncommit_count)||0," \u4EBA"),(Gt==null?void 0:Gt.left_time)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("span",{className:"ml20 c-black"},Gt==null||((dr=Gt.left_time)===null||dr===void 0)?void 0:dr.status),n.a.createElement("span",{className:"ml20 c-orange-ff9"},Gt==null||(($n=Gt.left_time)===null||$n===void 0)?void 0:$n.time))),Object(de.c)()&&n.a.createElement(n.a.Fragment,null,n.a.createElement(We.a,{form:St,onChange:rn,initialValues:(Zn={},Object(yt.a)(Zn,"task_status","all"),Object(yt.a)(Zn,"course_group_info","all"),Object(yt.a)(Zn,"teacher_comment","all"),Zn)},((kn=Gt.task_status)===null||kn===void 0?void 0:kn.length)>0&&n.a.createElement(We.a.Item,{name:"task_status"},n.a.createElement(we.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(_.a,null,n.a.createElement(g.a,{className:"font14",flex:"80px"},"\u4F5C\u4E1A\u72B6\u6001:"),n.a.createElement(g.a,{flex:"80px"},n.a.createElement(we.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(g.a,{flex:"1"},Gt.task_status&&Gt.task_status.map(function(on,jt){return n.a.createElement(we.a,{name:"task_status",value:on.id},on.name,"(",on.count,")",on.name==="\u622A\u6B62\u540E\u901A\u5173"?n.a.createElement(R.a,{title:"\u5728\u89C4\u5B9A\u65F6\u95F4\u5916\u5B8C\u6210\u7684\u4F5C\u4E1A"},n.a.createElement("i",{className:"font13 ml5 iconfont icon-tishixiaowenhao"})):null)}))))),((gr=Gt.course_group_info)===null||gr===void 0?void 0:gr.length)>0&&n.a.createElement(We.a.Item,{name:"course_group_info"},n.a.createElement(we.a.Group,{style:{width:"100%"}},n.a.createElement(_.a,null,n.a.createElement(g.a,{className:"font14",flex:"80px"},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(g.a,{flex:"80px"},n.a.createElement(we.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(g.a,{flex:"1",id:"divhe",style:{height:ce+"px",overflow:"hidden"}},(Bn=Gt.course_group_info)===null||Bn===void 0?void 0:Bn.map(function(on,jt){return n.a.createElement(we.a,{value:on.course_group_id},on.group_group_name,"(",on.count,")")})),Ye&&n.a.createElement("span",{onClick:function(){var jt=document.getElementById("divhe").scrollHeight;ce>47?Ce(47):Ce(jt)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},ce===47?"\u5C55\u5F00":"\u6536\u8D77",ce===47?n.a.createElement(kt.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(qt.a,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),((ar=Gt.teacher_comment)===null||ar===void 0?void 0:ar.length)>0&&n.a.createElement(We.a.Item,{name:"teacher_comment"},n.a.createElement(we.a.Group,{style:{width:"100%"}},n.a.createElement(_.a,null,n.a.createElement(g.a,{className:"font14",flex:"80px"},"\u8FFD\u52A0\u70B9\u8BC4:"),n.a.createElement(g.a,{flex:"80px"},n.a.createElement(we.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(g.a,{flex:"1"},Gt.teacher_comment&&Gt.teacher_comment.map(function(on,jt){return n.a.createElement(we.a,{value:String(on.id)},on.name,"(",on.count,")")})))))),n.a.createElement(_.a,{align:"middle"},n.a.createElement(g.a,{flex:"1"},n.a.createElement(_.a,{align:"middle"},n.a.createElement(g.a,null,n.a.createElement(p.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(jt){it.search=jt,it.page=1,Ke()},style:{width:240}})),n.a.createElement(g.a,null,n.a.createElement("span",{className:"ml5"},n.a.createElement("span",{className:"c-red"},Gt.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",Gt.work_count,"\u4E2A\u5B66\u751F\uFF09")))),n.a.createElement(g.a,null,Object(de.c)()&&Gt.code_review&&n.a.createElement(U.a,{className:"ml10",onClick:function(){Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",selectArrs:Gt.student_works.map(function(jt){return jt.id}),params:it}})}},n.a.createElement("span",{className:"".concat(le.a.tr1," iconfont icon-daimachazhong")}),"\u4EE3\u7801\u67E5\u91CD"),Object(de.c)()&&en&&n.a.createElement(U.a,{className:"ml10",onClick:Ft},n.a.createElement("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"\u66F4\u65B0\u6210\u7EE9"),(Gt==null||((sr=Gt.homework_status)===null||sr===void 0)?void 0:sr.includes("\u5DF2\u622A\u6B62"))&&Object(de.c)()&&n.a.createElement(U.a,{className:"ml10",onClick:function(){Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B",selectArrs:Gt.student_works.map(function(jt){return jt.id}),params:it}})}},n.a.createElement("i",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),n.a.createElement(U.a,{className:"ml10",onClick:function(){Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4",selectArrs:Gt.student_works.map(function(jt){return jt.id}),params:it}})}},n.a.createElement(Pe.a,{className:"mr5"}),"\u4E00\u952E\u70B9\u8BC4"),((Gt==null||((Pn=Gt.homework_status)===null||Pn===void 0)?void 0:Pn.includes("\u63D0\u4EA4\u4E2D"))||(Gt==null||((Tr=Gt.homework_status)===null||Tr===void 0)?void 0:Tr.includes("\u8865\u4EA4\u4E2D"))||(Gt==null||((Mr=Gt.homework_status)===null||Mr===void 0)?void 0:Mr.includes("\u8FDB\u884C\u4E2D")))&&n.a.createElement(U.a,{className:"ml10",onClick:function(){vt(!0)}},"\u4E00\u952E\u6253\u56DE"),Object(de.c)()&&n.a.createElement(ie.a,{overlay:cr,className:"ml10"},n.a.createElement(U.a,null,n.a.createElement(Ae.a,null),"\u5BFC\u51FA",n.a.createElement(ut.a,null)))))),n.a.createElement(_.a,{style:{justifyContent:"end",marginTop:"5px"}},Object(de.c)()&&en&&n.a.createElement("span",null,n.a.createElement("span",{style:{color:"red"}},"*"),"\u5217\u8868\u4E2D\u4F5C\u4E1A\u8BB0\u5F55\u5B58\u5728\u5DEE\u5F02\uFF0C\u8BF7\u70B9\u51FB\u201C\u66F4\u65B0\u6210\u7EE9\u201D\u6309\u94AE")),n.a.createElement(B.a,{className:"mt30",loading:Re["shixunHomeworks/getWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:function(jt){return{onClick:function(In){window.open("/classrooms/".concat(it.coursesId,"/shixun_homework/").concat(it.categoryId,"/").concat(jt.id,"/comment"),"_blank")}}},scroll:{x:1500},dataSource:Gt.student_works,columns:Kn,onChange:function(jt,Jt,In){In.field&&(it.order=In.field),In.order||(it.b_order="asc"),In.order==="ascend"&&(it.b_order="asc"),In.order==="descend"&&(it.b_order="desc"),In.order||(it.b_order="asc"),Ke()}}),n.a.createElement(Oe,null),n.a.createElement(_e,null),n.a.createElement(Ze.a,null)),n.a.createElement(f.a,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",visible:Ct,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:Object(o.a)(d.a.mark(function on(){var jt,Jt;return d.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:if(!(wr===2)){_n.next=13;break}if(!(Cn.length<=0)){_n.next=4;break}return b.b.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001"),_n.abrupt("return");case 4:if(De){_n.next=7;break}return b.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),_n.abrupt("return");case 7:return _n.next=9,Object(z.a)("/api/homework_commons/".concat(it.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:De,status:Cn}});case 9:jt=_n.sent,jt.status===0&&(Hn(jt),vt(!1),fr(!0)),_n.next=32;break;case 13:if(!(da===0||Pa===0)){_n.next=16;break}_n.next=22;break;case 16:if(da){_n.next=19;break}return b.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A"),_n.abrupt("return");case 19:if(Pa){_n.next=22;break}return b.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A"),_n.abrupt("return");case 22:if(!(da>Pa)){_n.next=25;break}return b.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206"),_n.abrupt("return");case 25:if(De){_n.next=28;break}return b.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),_n.abrupt("return");case 28:return _n.next=30,Object(z.a)("/api/homework_commons/".concat(it.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:De,min_score:da,max_score:Pa}});case 30:Jt=_n.sent,Jt.status===0&&(Hn(Jt),vt(!1),fr(!0));case 32:case"end":return _n.stop()}},on)})),onCancel:function(){vt(!1),Rn()}},n.a.createElement("div",{style:{padding:"32px"}},n.a.createElement("div",null,n.a.createElement("div",null,n.a.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),n.a.createElement(ke.a.Group,{value:wr,onChange:function(jt){Wr(jt.target.value)}},n.a.createElement(ke.a,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),n.a.createElement(ke.a,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),wr===1&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),n.a.createElement(rt.a,{min:0,max:100,value:da,onChange:function(jt){return ca(jt)},style:{width:"100px"}}),n.a.createElement("span",{style:{width:"80px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),n.a.createElement(rt.a,{min:0,max:100,value:Pa,onChange:function(jt){return ga(jt)},style:{width:"100px"}})),wr===2&&n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),n.a.createElement(we.a.Group,{onChange:function(jt){pn(Object(y.a)(jt))},style:{width:"100%"}},(Sr=Gt.task_status)===null||Sr===void 0?void 0:Sr.map(function(on,jt){return n.a.createElement(we.a,{name:"task_status",value:on.id},on.name,"(",on.count,")")}))),n.a.createElement("div",{style:{display:"flex",marginTop:"20px"}},n.a.createElement("span",{style:{width:"70px",textAlign:"end"}},n.a.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),n.a.createElement(H.a,{className:le.a.MdEditor,onChange:function(jt){return tt(jt)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),n.a.createElement(f.a,{visible:zn,title:"\u6253\u56DE\u786E\u8BA4",onOk:Object(o.a)(d.a.mark(function on(){var jt,Jt;return d.a.wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:if(!(wr===2)){_n.next=7;break}return _n.next=3,Object(z.a)("/api/homework_commons/".concat(it.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:De,status:Cn}});case 3:jt=_n.sent,jt.status===0&&(b.b.info("\u6253\u56DE\u6210\u529F"),Rn(),Ke(),fr(!1)),_n.next=11;break;case 7:return _n.next=9,Object(z.a)("/api/homework_commons/".concat(it.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:it.categoryId,comment:De,min_score:da,max_score:Pa}});case 9:Jt=_n.sent,Jt.status===0&&(b.b.info("\u6253\u56DE\u6210\u529F"),Rn(),Ke(),fr(!1));case 11:case"end":return _n.stop()}},on)})),onCancel:function(){Rn(),fr(!1)}},n.a.createElement("div",{style:{padding:"32px"}},wr===1&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",da,"-",Pa,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),wr===2&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((hr=Gt.task_status)===null||hr===void 0?void 0:hr.filter(function(on){return Cn==null?void 0:Cn.includes(on.id)}).map(function(on){return on.name}).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),n.a.createElement("br",null),n.a.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Gr==null?void 0:Gr.count,"\u540D\u5B66\u751F")))),n.a.createElement(ze,null),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(w.a,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,onChange:hn,current:it.page||1,defaultPageSize:20,total:Gt.work_count})))},sn=Object(x.a)(function(vn){var dn=vn.shixunHomeworks,xn=vn.loading,Nn=vn.user;return{shixunHomeworks:dn,loading:xn.effects,user:Nn}})(Qt),gt=L("fOrg"),zt=L("+KLJ"),Ot=function(dn){var xn,Nn=dn.shixunHomeworks,dr=dn.loading,$n=dn.dispatch,Zn=Object(l.i)(),kn=Object(s.useState)(Object(S.a)(Object(S.a)({},{page:1,limit:20,group_ids:[]}),Zn)),gr=Object(a.a)(kn,2),Bn=gr[0],ar=gr[1],sr=Object(l.h)(),Pn=Nn.codeReview,Tr=Object(s.useState)({}),Mr=Object(a.a)(Tr,2),Sr=Mr[0],hr=Mr[1],ne=We.a.useForm(),Re=Object(a.a)(ne,1),Xe=Re[0];Bn.order="code_rate",Bn.sort="desc",Bn.category=Bn.categoryId,Object(s.useEffect)(function(){Le(),console.log("params",Bn)},[Bn]),Object(s.useEffect)(function(){Nn.actionTabs.key==="\u6267\u884C\u4EE3\u7801\u67E5\u91CD"&&Le()},[Nn.actionTabs.key]);var Le=function(){var mt=Object(o.a)(d.a.mark(function it(){var Mt;return d.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Vt.next=2,$n({type:"shixunHomeworks/getCodeReview",payload:Object(S.a)({},Bn)});case 2:Mt=Vt.sent,Mt.status===-2&&setTimeout(function(){return Le()},1500);case 4:case"end":return Vt.stop()}},it)}));return function(){return mt.apply(this,arguments)}}(),st=function(){},et=function(it,Mt){Bn.page=it,Bn.limit=20,$n({type:"shixunHomeworks/getCodeReview",payload:Object(S.a)({},Bn)})},pt=[{title:"\u5E8F\u53F7",dataIndex:"number",render:function(it,Mt,Xt){return Bn.limit*(Bn.page-1)+Xt+1}},{title:"\u59D3\u540D",dataIndex:"username"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",render:function(it){return n.a.createElement("span",{className:"c-orange"},it)}},{title:"\u64CD\u4F5C",dataInex:"action",render:function(it,Mt){return n.a.createElement("div",null,n.a.createElement(c.a,{target:"_blank",to:"/classrooms/".concat(Bn.coursesId,"/shixun_homework/").concat(Bn.categoryId,"/review_detail/").concat(Mt.user_id)},"\u67E5\u770B"),n.a.createElement("br",null))}}];return n.a.createElement("section",{className:"minH500 bg-white pl30 pr30 pt10"},(Pn==null?void 0:Pn.status)===-2&&n.a.createElement(zt.a,{message:"\u67E5\u91CD\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u2026\u2026",className:"mb10 font14",type:"error"}),n.a.createElement(_.a,null,n.a.createElement(g.a,{flex:"1"},n.a.createElement("p",{className:"mt10"},"\u67E5\u91CD\u65F6\u95F4\uFF1A",Pn.last_review_time,n.a.createElement(U.a,{ghost:!0,danger:!0,style:{color:"#29BD8B",borderColor:"#29BD8B",marginLeft:10},onClick:function(){$n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Bn}})}},"\u4EE3\u7801\u67E5\u91CD"))),n.a.createElement(g.a,null,n.a.createElement(p.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(it){Bn.search=it,$n({type:"shixunHomeworks/getCodeReview",payload:Bn})},style:{width:200}}),n.a.createElement("span",{className:"ml5 c-red"}))),((xn=Pn.group_info)===null||xn===void 0?void 0:xn.length)>0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(_.a,null,n.a.createElement(g.a,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(g.a,{flex:"80px"},n.a.createElement(we.a,{checked:Bn.group_ids=="",value:"all",onChange:function(it){delete Bn.group_ids,Bn.group_ids=[],Bn.page=1,ar(Object(S.a)({},Bn))}},"\u5168\u90E8")),n.a.createElement(g.a,{flex:"1"},Pn.group_info&&Pn.group_info.map(function(mt,it){return n.a.createElement(we.a,{value:mt.id,checked:Bn.group_ids.includes(mt.id),onChange:function(Xt){Xt.target.checked?Bn.group_ids.push(mt.id):Bn.group_ids.splice(Bn.group_ids.indexOf(mt.id),1),Bn.page=1,ar(Object(S.a)({},Bn))}},mt.name,"(",mt.members_count,")")}))),n.a.createElement(_.a,{className:"font14 c-red mt5"},n.a.createElement(g.a,null,"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u67E5\u91CD\u5206\u73ED"))),n.a.createElement("p",{className:"mt10"},n.a.createElement("span",{className:"c-red"},Pn.copy_reviews_count),"\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08",Pn.all_reviews_count,"\u4F5C\u54C1\uFF09"),n.a.createElement(B.a,{className:"mt30",loading:dr["shixunHomeworks/getCodeReview"],pagination:!1,dataSource:Pn.users_reviews,columns:pt,onChange:function(it,Mt,Xt){Xt.order==="ascend"&&(Bn.b_order="asc"),Xt.order==="descend"&&(Bn.b_order="desc"),Xt.order||delete Bn.b_order,$n({type:"shixunHomeworks/getCodeReview",payload:Object(S.a)({},Bn)})}}),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(w.a,{showSizeChanger:!1,onChange:et,defaultCurrent:Bn.page||1,current:Bn.page||1,defaultPageSize:20,hideOnSinglePage:!0,total:Pn.copy_reviews_count})))},At=Object(x.a)(function(vn){var dn=vn.shixunHomeworks,xn=vn.loading;return{shixunHomeworks:dn,loading:xn.effects}})(Ot),ft=L("OaEy"),be=L("2fM7"),Fe=L("iQDF"),Nt=L("+eQT"),bt=L("zetH"),Kt=L.n(bt),Zt=L("eozf"),Ge=L("LvDl"),lt=Nt.a.RangePicker,Lt=be.a.Option,Wt=function(dn){var xn=dn.shixunHomeworks,Nn=dn.loading,dr=dn.dispatch,$n=Object(l.i)(),Zn=Object(l.h)(),kn=xn.workSetting,gr=xn.workList,Bn=xn.changeData,ar=Object(s.useState)(!0),sr=Object(a.a)(ar,2),Pn=sr[0],Tr=sr[1],Mr=Object(s.useState)({}),Sr=Object(a.a)(Mr,2),hr=Sr[0],ne=Sr[1],Re=Object(s.useState)(!1),Xe=Object(a.a)(Re,2),Le=Xe[0],st=Xe[1],et=We.a.useForm(),pt=Object(a.a)(et,1),mt=pt[0],it=Object(s.useState)([]),Mt=Object(a.a)(it,2),Xt=Mt[0],Vt=Mt[1],St=Object(s.useState)([]),nn=Object(a.a)(St,2),Qe=nn[0],en=nn[1],Bt=Object(s.useState)(!1),bn=Object(a.a)(Bt,2),On=bn[0],Gt=bn[1],cn=Object(s.useState)([]),Ht=Object(a.a)(cn,2),Sn=Ht[0],wn=Ht[1],wt=Object(s.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,forbid_copy_answers:!1,public_after_abort:!1,public_after_over:!1}),It=Object(a.a)(wt,2),Pt=It[0],Ct=It[1];Object(s.useEffect)(function(){return vt(),function(){Vt([].concat())}},[]);var vt=function(){dr({type:"shixunHomeworks/getWorkSetting",payload:Object(S.a)({},$n)})};Object(s.useEffect)(function(){if(!(kn!=null&&kn.course_id))return;Object.keys(Pt).map(function(pn){Pt[pn]=kn[pn]}),(!Pt.allow_late||!Pt.unified_late)&&(Pt.late_penalty=5),Xt=JSON.parse(JSON.stringify(kn.group_settings.map(function(pn){return Object(S.a)(Object(S.a)({},pn),{},{group_name:[pn.group_name]})}).filter(function(pn){return pn.publish_time!==null}))),Qe=JSON.parse(JSON.stringify(kn.allow_late_settings.map(function(pn){return Object(S.a)(Object(S.a)({},pn),{},{group_name:[pn.group_name]})}).filter(function(pn){return pn.late_time!==null}))),Ct(Object(S.a)({},Pt)),Vt(Object(y.a)(Xt)),en(Object(y.a)(Qe))},[kn]);var Dn=function(){var Yt,Tn,zn=JSON.parse(JSON.stringify(Pt));if(zn.challenge_settings.filter(function(Gn){return!Gn.hide}),zn.categoryId=$n.categoryId,(Yt=zn.challenge_settings)!==null&&Yt!==void 0&&Yt.every(function(Gn){return!Gn.checked})){b.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(Pt.unified_setting||(Xt=(Tn=Xt)===null||Tn===void 0?void 0:Tn.map(function(Gn){var Lr;if(!Gn.publish_time||!Gn.end_time)throw b.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Gn.group_name)throw b.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Gn.group_name=typeof(Gn==null?void 0:Gn.group_name)=="string"?[Gn==null?void 0:Gn.group_name]:Gn==null?void 0:Gn.group_name,Gn.group_id=(Lr=kn.group_settings)===null||Lr===void 0?void 0:Lr.filter(function(Gr){var Hn;return Gn==null||((Hn=Gn.group_name)===null||Hn===void 0)?void 0:Hn.includes(Gr.group_name)}).map(function(Gr){return Gr.group_id||Gr.id}).toString().split(","),Gn})),zn.group_settings=Xt,Pt.allow_late)if(Pt.unified_late){if(Pt.late_penalty===null||Pt.late_penalty===void 0||Pt.late_penalty<0||Pt.late_penalty>100)throw b.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Pt.late_time)throw b.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var fr;Qe=(fr=Qe)===null||fr===void 0?void 0:fr.map(function(Gn){var Lr,Gr;if(Gn.late_penalty===null||Gn.late_penalty===void 0||Gn.late_penalty<0||Gn.late_penalty>100)throw b.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Gn.late_time)throw b.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Gn.group_name)throw b.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Gn.group_name=typeof(Gn==null?void 0:Gn.group_name)=="string"?[Gn==null?void 0:Gn.group_name]:Gn==null?void 0:Gn.group_name,Gn.group_id=Gn==null||((Lr=Gn.group_name)===null||Lr===void 0||((Gr=Lr.map(function(Hn){var Yn,Jn,wr=(Yn=kn.group_settings)===null||Yn===void 0||((Jn=Yn.filter(function(Wr){return(Wr==null?void 0:Wr.group_name)===Hn}))===null||Jn===void 0)?void 0:Jn[0];return wr==null?void 0:wr.group_id}))===null||Gr===void 0))?void 0:Gr.toString().split(","),Gn}),zn.allow_late_settings=Qe}$t(zn)},$t=function(Yt){var Tn,zn;if(console.log(Yt.total_score,Yt.eff_score),Yt.total_score===null){b.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Yt!=null&&Yt.work_efficiency&&Yt.eff_score===null){b.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var fr=Yt.challenge_settings.reduce(function(Gr,Hn){return Gr+Number(Hn.challenge_score)},0);if((fr==null?void 0:fr.toFixed(10))!==((Tn=Yt.total_score-Yt.eff_score)===null||Tn===void 0?void 0:Tn.toFixed(10))){b.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(Yt.total_score,"\u5206"));return}var Gn={shixun_evaluation:Yt.shixun_evaluation,challenge_settings:Yt.challenge_settings},Lr=function(){var Gr=Object(o.a)(d.a.mark(function Hn(){var Yn;return d.a.wrap(function(wr){for(;;)switch(wr.prev=wr.next){case 0:return st(!0),wr.next=3,Object(z.a)("/api/homework_commons/".concat($n.categoryId,"/public_setting.json"),{method:"post",body:Object(S.a)({},Yt)});case 3:Yn=wr.sent,Yn.status===0&&(b.b.success("\u66F4\u65B0\u6210\u529F"),Tr(!0),vt(),dr({type:"shixunHomeworks/getWorkList",payload:Object(S.a)({},$n)})),st(!1);case 6:case"end":return wr.stop()}},Hn)}));return function(){return Gr.apply(this,arguments)}}();!Object(Ge.isEqual)(Bn,Gn)&&!(gr!=null&&(zn=gr.homework_status)!==null&&zn!==void 0&&zn.includes("\u672A\u53D1\u5E03"))?f.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Lr}):Lr()},Cn=Object(s.useMemo)(function(){return Pt.public_after_abort?"public_after_abort":Pt.public_after_over?"public_after_over":"immediately"},[Pt]);return n.a.createElement("section",{className:[Kt.a.form," bg-white pl30 pr30 pt10"].join(" ")},n.a.createElement(_.a,null,n.a.createElement(g.a,{flex:"1"},n.a.createElement("span",{style:{fontSize:"16px"}},"\u516C\u5F00\u8BBE\u7F6E")),n.a.createElement(g.a,null,(kn==null?void 0:kn.can_edit)&&n.a.createElement(U.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return Tr(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")),n.a.createElement(g.a,{span:24,className:"mt15 pl30"},n.a.createElement(we.a,{checked:Pt.score_open,disabled:Pn,onChange:function(Yt){Pt.score_open=Yt.target.checked,Ct(Object.assign({},Pt))}},n.a.createElement("strong",null,"\u516C\u5F00\u6210\u7EE9")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u65F6\u95F4\u4E4B\u540E\uFF0C\u5DF2\u63D0\u4EA4\u4F5C\u54C1\u7684\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5176\u5B83\u5B66\u751F\u7684\u6210\u7EE9\uFF0C\u5426\u5219\u53EA\u80FD\u67E5\u770B\u81EA\u5DF1\u7684\u6210\u7EE9)")),n.a.createElement(g.a,{span:24,className:"mt15 pl30"},n.a.createElement(we.a,{checked:Pt.answer_public,disabled:Pn,onChange:function(Yt){Yt.target.checked?Ct(function(Tn){return Object(S.a)(Object(S.a)({},Tn),{},{answer_public:Yt.target.checked})}):Ct(function(Tn){return Object(S.a)(Object(S.a)({},Tn),{},{answer_public:Yt.target.checked,public_after_abort:!1,public_after_over:!1})})}},n.a.createElement("strong",null,"\u516C\u5F00\u7B54\u6848")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u5B9E\u8BAD\u53C2\u8003\u7B54\u6848\uFF0C\u5426\u5219\u7981\u6B62\u67E5\u770B\u7B54\u6848)")),Pt.answer_public&&n.a.createElement(g.a,{span:24,className:"mt10 pl30"},n.a.createElement(ke.a.Group,{style:{marginLeft:22},onChange:function(Yt){Yt.target.value==="public_after_abort"?Ct(function(Tn){return Object(S.a)(Object(S.a)({},Tn),{},{public_after_abort:!0,public_after_over:!1})}):Yt.target.value==="public_after_over"?Ct(function(Tn){return Object(S.a)(Object(S.a)({},Tn),{},{public_after_abort:!1,public_after_over:!0})}):Ct(function(Tn){return Object(S.a)(Object(S.a)({},Tn),{},{public_after_abort:!1,public_after_over:!1})})},value:Cn,disabled:Pn},n.a.createElement(ke.a,{value:"immediately"},"\u7ACB\u5373\u516C\u5F00"),n.a.createElement(ke.a,{value:"public_after_abort"},"\u4F5C\u4E1A\u622A\u6B62\u540E\u516C\u5F00"),n.a.createElement(ke.a,{value:"public_after_over"},"\u8BFE\u5802\u7ED3\u675F\u540E\u516C\u5F00"))),n.a.createElement(g.a,{span:24,className:"mt15 pl30"},n.a.createElement(we.a,{checked:Pt.forbid_copy_answers,disabled:Pn,onChange:function(Yt){Pt.forbid_copy_answers=Yt.target.checked,Ct(Object.assign({},Pt))}},n.a.createElement("strong",null,"\u7981\u6B62\u590D\u5236\u53C2\u8003\u7B54\u6848")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u7981\u6B62\u5B66\u751F\u590D\u5236\u53C2\u8003\u7B54\u6848\uFF0C\u5426\u5219\u5B66\u751F\u53EF\u4EE5\u590D\u5236\u53C2\u8003\u7B54\u6848)")),n.a.createElement(g.a,{span:24,className:"mt15 pl30 pb40"},n.a.createElement(we.a,{checked:Pt.comment_public,disabled:Pn,onChange:function(Yt){Pt.comment_public=Yt.target.checked,Ct(Object.assign({},Pt))}},n.a.createElement("strong",null,"\u516C\u5F00\u8BC4\u8BBA")),n.a.createElement("span",{className:"c-grey-c font12"},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u53EF\u4EE5\u67E5\u770B\u8BFE\u7A0B\u5B9E\u9A8C\u7684\u8BC4\u8BBA\uFF0C\u5426\u5219\u7981\u6B62\u67E5\u770B)")),!Pn&&n.a.createElement(g.a,{className:"mb50"},n.a.createElement(U.a,{type:"primary",size:"large",loading:Le,onClick:function(){return Dn()}},"\u63D0\u4EA4"),n.a.createElement(U.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Tr(!0),vt()}},"\u53D6\u6D88"))),n.a.createElement(f.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:On,onCancel:function(){return Gt(!1)}},n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",n.a.createElement(p.a.Search,{onChange:function(Yt){}})),n.a.createElement(B.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Yt,Tn){wn(Yt)}},pagination:!1,dataSource:[{name:"1"}],columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time"}]}))))},ln=Object(x.a)(function(vn){var dn=vn.shixunHomeworks,xn=vn.loading;return{shixunHomeworks:dn,loading:xn.effects}})(Wt),gn=function(dn){var xn=dn.shixunHomeworks,Nn=dn.loading,dr=dn.dispatch,$n=Object(l.i)(),Zn=xn.workSetting,kn=xn.workList,gr=xn.changeData,Bn=Object(s.useState)(!0),ar=Object(a.a)(Bn,2),sr=ar[0],Pn=ar[1],Tr=Object(s.useState)(!1),Mr=Object(a.a)(Tr,2),Sr=Mr[0],hr=Mr[1],ne=Object(s.useState)(!1),Re=Object(a.a)(ne,2),Xe=Re[0],Le=Re[1],st=Object(s.useState)([]),et=Object(a.a)(st,2),pt=et[0],mt=et[1],it=Object(s.useState)([]),Mt=Object(a.a)(it,2),Xt=Mt[0],Vt=Mt[1],St=Object(s.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,is_onpage_time:!0,training_time_rules:1,difficulty_level_sort:"asc"}),nn=Object(a.a)(St,2),Qe=nn[0],en=nn[1];Object(s.useEffect)(function(){return Bt(),function(){mt([].concat())}},[]);var Bt=function(){dr({type:"shixunHomeworks/getWorkSetting",payload:Object(S.a)({},$n)})};Object(s.useEffect)(function(){if(!(Zn!=null&&Zn.course_id))return;Object.keys(Qe).map(function(cn){Qe[cn]=Zn[cn]}),(!Qe.allow_late||!Qe.unified_late)&&(Qe.late_penalty=5),pt=JSON.parse(JSON.stringify(Zn.group_settings.map(function(cn){return Object(S.a)(Object(S.a)({},cn),{},{group_name:[cn.group_name]})}).filter(function(cn){return cn.publish_time!==null}))),Xt=JSON.parse(JSON.stringify(Zn.allow_late_settings.map(function(cn){return Object(S.a)(Object(S.a)({},cn),{},{group_name:[cn.group_name]})}).filter(function(cn){return cn.late_time!==null}))),en(Object(S.a)(Object(S.a)({},Qe),{},{difficulty_level_sort:Qe.difficulty_level_sort||"asc"})),mt(Object(y.a)(pt)),Vt(Object(y.a)(Xt))},[Zn]);var bn=function(){var Ht,Sn,wn=JSON.parse(JSON.stringify(Qe));if(wn.challenge_settings.filter(function(It){return!It.hide}),wn.categoryId=$n.categoryId,(Ht=wn.challenge_settings)!==null&&Ht!==void 0&&Ht.every(function(It){return!It.checked})){b.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(Qe.unified_setting||(pt=(Sn=pt)===null||Sn===void 0?void 0:Sn.map(function(It){var Pt;if(!It.publish_time||!It.end_time)throw b.b.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!It.group_name)throw b.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return It.group_name=typeof(It==null?void 0:It.group_name)=="string"?[It==null?void 0:It.group_name]:It==null?void 0:It.group_name,It.group_id=(Pt=Zn.group_settings)===null||Pt===void 0?void 0:Pt.filter(function(Ct){var vt;return It==null||((vt=It.group_name)===null||vt===void 0)?void 0:vt.includes(Ct.group_name)}).map(function(Ct){return Ct.group_id||Ct.id}).toString().split(","),It})),wn.group_settings=pt,Qe.allow_late)if(Qe.unified_late){if(Qe.late_penalty===null||Qe.late_penalty===void 0||Qe.late_penalty<0||Qe.late_penalty>100)throw b.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Qe.late_time)throw b.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var wt;Xt=(wt=Xt)===null||wt===void 0?void 0:wt.map(function(It){var Pt,Ct;if(It.late_penalty===null||It.late_penalty===void 0||It.late_penalty<0||It.late_penalty>100)throw b.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!It.late_time)throw b.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!It.group_name)throw b.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return It.group_name=typeof(It==null?void 0:It.group_name)=="string"?[It==null?void 0:It.group_name]:It==null?void 0:It.group_name,It.group_id=It==null||((Pt=It.group_name)===null||Pt===void 0||((Ct=Pt.map(function(vt){var Dn,$t,Cn=(Dn=Zn.group_settings)===null||Dn===void 0||(($t=Dn.filter(function(pn){return(pn==null?void 0:pn.group_name)===vt}))===null||$t===void 0)?void 0:$t[0];return Cn==null?void 0:Cn.group_id}))===null||Ct===void 0))?void 0:Ct.toString().split(","),It}),wn.allow_late_settings=Xt}On(wn)},On=function(Ht){var Sn,wn;if(Ht.total_score===null){b.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ht!=null&&Ht.work_efficiency&&Ht.eff_score===null){b.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var wt=Ht.challenge_settings.reduce(function(Ct,vt){return Ct+Number(vt.challenge_score)},0);if((wt==null?void 0:wt.toFixed(10))!==((Sn=Ht.total_score-Ht.eff_score)===null||Sn===void 0?void 0:Sn.toFixed(10))){b.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(Ht.total_score,"\u5206"));return}var It={shixun_evaluation:Ht.shixun_evaluation,challenge_settings:Ht.challenge_settings},Pt=function(){var Ct=Object(o.a)(d.a.mark(function vt(){var Dn;return d.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return hr(!0),Cn.next=3,Object(z.a)("/api/homework_commons/".concat($n.categoryId,"/score_setting.json"),{method:"post",body:Object(S.a)({},Ht)});case 3:Dn=Cn.sent,Dn.status===0&&(b.b.success("\u66F4\u65B0\u6210\u529F"),Pn(!0),Bt(),dr({type:"shixunHomeworks/getWorkList",payload:Object(S.a)({},$n)})),hr(!1);case 6:case"end":return Cn.stop()}},vt)}));return function(){return Ct.apply(this,arguments)}}();!Object(Ge.isEqual)(gr,It)&&!(kn!=null&&(wn=kn.homework_status)!==null&&wn!==void 0&&wn.includes("\u672A\u53D1\u5E03"))?f.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Pt}):Pt()},Gt=function(){var Ht,Sn=Qe.eff_score,wn=Qe.total_score,wt=Qe.difficulty_level_sort,It=wn-Sn,Pt=(Ht=Qe.challenge_settings)===null||Ht===void 0?void 0:Ht.filter(function(Tn){return Tn.checked}).length;if(!Pt){Qe.challenge_settings.map(function(Tn,zn){Tn.challenge_score=0});return}var Ct=Qe.challenge_settings.filter(function(Tn){return Tn.checked}).map(function(Tn){return wt==="desc"?Tn.challenge_exp_desc:Tn.challenge_exp}).reduce(function(Tn,zn){return Tn+zn}),vt=It/Ct,Dn=0,$t=0,Cn;switch(Qe.shixun_evaluation){case 0:var pn=parseFloat((It/Pt).toFixed(1));Qe.challenge_settings.map(function(Tn,zn){Tn.checked?(Dn=zn,Tn.challenge_score=pn>0?pn:0):Tn.challenge_score=0}),Cn=(It-pn*(Pt-1)).toFixed(1),Qe.challenge_settings[Dn].challenge_score=Cn>0?Cn:0;break;case 1:Qe.challenge_settings.map(function(Tn,zn){Tn.checked?(Dn=zn,$t+=Number((Math.round((wt==="desc"?Tn.challenge_exp_desc:Tn.challenge_exp)*vt*10)/10).toFixed(1)),Tn.challenge_score=(Math.round((wt==="desc"?Tn.challenge_exp_desc:Tn.challenge_exp)*vt*10)/10).toFixed(1)):Tn.challenge_score=0});var Yt=Qe.challenge_settings[Dn].challenge_score;Cn=(It-$t+Number(Yt)).toFixed(1),Qe.challenge_settings[Dn].challenge_score=Cn>0?Cn:0;break}};return n.a.createElement("section",{className:[Kt.a.form," bg-white pl30 pr30 pt10 mb20 pb10"].join(" ")},n.a.createElement(_.a,{className:"mt25"},n.a.createElement(g.a,{flex:"1"}),n.a.createElement(g.a,null,(Zn==null?void 0:Zn.can_edit)&&n.a.createElement(U.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return Pn(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")),n.a.createElement(g.a,{span:24,className:"pl30 mt10"},n.a.createElement("strong",null,"\u603B\u5206\u503C\uFF1A"),n.a.createElement(rt.a,{min:0,value:Qe.total_score,disabled:sr,onChange:function(Ht){Qe.total_score=Ht,en(Object.assign({},Qe)),Gt()}}),"\xA0\u5206"),n.a.createElement(g.a,{span:24,style:{paddingLeft:60,marginTop:20}},n.a.createElement("strong",null,"\u5173\u5361\u4EFB\u52A1\u7684\u9009\u62E9\u548C\u5206\u503C\u8BBE\u7F6E"),n.a.createElement("span",{className:"c-orange"},"\xA0(\u603B\u5206\u503C = \u6548\u7387\u5206+ \u5173\u5361\u4EFB\u52A1\u603B\u5206)"))),n.a.createElement(_.a,{style:{paddingLeft:85,marginTop:30}},n.a.createElement(g.a,{flex:"1"},n.a.createElement(we.a,{disabled:sr,checked:Qe.work_efficiency,onChange:function(Ht){Qe.work_efficiency=Ht.target.checked,Qe.work_efficiency?Qe.eff_score=20:Qe.eff_score=0,en(Object.assign({},Qe)),Gt()}},n.a.createElement("strong",null,"\u6548\u7387\u5206")),n.a.createElement("span",{className:"c-orange font12",style:{marginLeft:-4}},"(\u9009\u4E2D\uFF0C\u5219\u5B66\u751F\u6700\u7EC8\u6210\u7EE9\u5305\u542B\u6548\u7387\u5206\u3002\u6548\u7387\u5206\u5728\u4F5C\u4E1A\u622A\u6B62\u6216\u8005\u8865\u4EA4\u7ED3\u675F\u540E\u7531\u7CFB\u7EDF\u81EA\u52A8\u751F\u6210)")),n.a.createElement(g.a,{className:Kt.a.efficiency},"\uFF08\u5B66\u751F\u5B66\u4E60\u6548\u7387= log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)",n.a.createElement("br",null),"\uFF08\u5B66\u751F\u6548\u7387\u5206 = \u5B66\u751F\u5B66\u4E60\u6548\u7387 / \u8BFE\u5802\u5B66\u751F\u6700\u9AD8\u5B66\u4E60\u6548\u7387 * \u5206\u503C\uFF09",n.a.createElement("br",null),n.a.createElement("span",{style:{marginLeft:10}},"\u53E6\uFF1A\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B66\u751F\u6548\u7387\u5206\u8BB0 0 \u5206"))),n.a.createElement(_.a,{align:"middle",style:{paddingLeft:105}},n.a.createElement(g.a,null,n.a.createElement("span",{className:"mr5"},"\u6548\u7387\u5206"),n.a.createElement(rt.a,{min:0,disabled:sr||!Qe.work_efficiency,value:Qe.eff_score,step:.1,onChange:function(Ht){Qe.eff_score=Ht,en(Object.assign({},Qe)),Gt()}}),n.a.createElement("span",null,"\xA0\u5206"))),n.a.createElement(_.a,{align:"middle",style:{paddingLeft:105,marginTop:"20px"}},n.a.createElement(g.a,null,n.a.createElement("span",{className:"mr5"},"\u5B9E\u8BAD\u8017\u65F6\u89C4\u5219\uFF1A"),n.a.createElement(ke.a.Group,{disabled:sr,value:Qe.training_time_rules,onChange:function(Ht){Qe.training_time_rules=Ht.target.value,en(Object.assign({},Qe)),Gt()}},n.a.createElement(ke.a,{value:1},"\u9875\u9762\u505C\u7559\u65F6\u957F"),n.a.createElement(ke.a,{value:2},"\u5173\u5361\u603B\u8017\u65F6"),n.a.createElement(ke.a,{value:3},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F",n.a.createElement("i",{onClick:function(Ht){Ht.stopPropagation(),Ht.preventDefault(),Le(!0)},style:{marginLeft:10,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"}))))),n.a.createElement(_.a,{align:"middle",style:{paddingLeft:85,marginTop:35}},n.a.createElement(g.a,null,n.a.createElement("strong",null,"\u5173\u5361\u4EFB\u52A1\u5206\u503C\u8BBE\u7F6E\u89C4\u5219")),n.a.createElement(g.a,{flex:"1"},n.a.createElement("div",{className:"ml5"},n.a.createElement(ke.a.Group,{disabled:sr,value:Qe.shixun_evaluation,onChange:function(Ht){Qe.shixun_evaluation=Ht.target.value,Ht.target.value!==1&&(Qe.difficulty_level_sort="asc"),en(Object.assign({},Qe)),Gt()}},n.a.createElement(ke.a,{value:0},"\u5747\u5206\u6BD4\u4F8B"),n.a.createElement(ke.a,{value:1},"\u96BE\u6613\u5EA6"),n.a.createElement(ke.a,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))))),n.a.createElement(_.a,{style:{paddingLeft:343,marginTop:5,display:Qe.shixun_evaluation===1?"flex":"none"}},n.a.createElement(ke.a.Group,{disabled:sr,value:Qe.difficulty_level_sort||"asc",onChange:function(Ht){Qe.difficulty_level_sort=Ht.target.value,en(Object.assign({},Qe)),Gt()}},n.a.createElement(ke.a,{value:"asc"},"\u6B63\u5E8F\u8D4B\u5206"),n.a.createElement(ke.a,{value:"desc"},"\u53CD\u5E8F\u8D4B\u5206"))),n.a.createElement(_.a,null,n.a.createElement(g.a,{style:{marginLeft:145,marginTop:15}},n.a.createElement("span",{className:"font16"},"\u5173\u5361\u540D\u79F0"),n.a.createElement("span",{className:"font14 ml5 c-orange"},Zn!=null&&Zn.task_pass?"(\u8BF7\u9009\u4E2D\u9700\u8981\u5B66\u751F\u5B8C\u6210\u7684\u5173\u5361\uFF0C\u8BE5\u5B9E\u8BAD\u652F\u6301\u8DF3\u5173\u5B66\u4E60)":"(\u8BE5\u5B9E\u8BAD\u4E0D\u652F\u6301\u8DF3\u5173\u5B66\u4E60)"))),Qe.challenge_settings&&Qe.challenge_settings.map(function(cn,Ht){return n.a.createElement(_.a,{key:Ht,align:"middle",style:{paddingLeft:275,marginTop:20}},n.a.createElement(g.a,{flex:"1"},n.a.createElement(we.a,{disabled:sr||!(Zn!=null&&Zn.task_pass),checked:cn.checked,onChange:function(wn){var wt=Object(Ge.cloneDeep)(Qe.challenge_settings);if(wt[Ht].checked=wn.target.checked,wt!=null&&wt.every(function(It){return!It.checked})){b.b.warn("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}Qe.challenge_settings[Ht].checked=wn.target.checked,Qe.challenge_settings[Ht].hide=wn.target.checked,Qe.shixun_evaluation===2&&!wn.target.checked&&(Qe.challenge_settings[Ht].challenge_score=0),en(Object(S.a)({},Qe)),Gt()}},n.a.createElement("strong",null,cn.challenge_name))),n.a.createElement(g.a,null,!cn.checked&&n.a.createElement("span",{className:"tag-style-border-small bg-orange border-raduis-50 c-white mr10"},"\u53EF\u4E0D\u505A")),n.a.createElement(g.a,{flex:"150px"},n.a.createElement(rt.a,{min:0,step:.1,value:cn.challenge_score,disabled:sr||Qe.shixun_evaluation!==2||!cn.checked,onChange:function(wn){Qe.challenge_settings[Ht].challenge_score=wn,en(Object(S.a)({},Qe))}}),n.a.createElement("span",{className:"ml10"},"\u5206")),n.a.createElement(g.a,{flex:"300px"},n.a.createElement("span",{className:"tag-style-border-small bg-green c-white mr10"},cn.difficulty),"\u91D1\u5E01\u5956\u52B1\u6570\uFF1A ",cn.challenge_exp))}),n.a.createElement(_.a,{className:"mt30",style:{paddingLeft:65}},n.a.createElement(g.a,null,n.a.createElement("span",{className:"font16 c-black"},"\u67E5\u770B\u53C2\u8003\u7B54\u6848\u624D\u901A\u8FC7\u8BC4\u6D4B\u7684\u5173\u5361\u6263\u5206\u89C4\u5219"),n.a.createElement("span",{className:"font12 c-grey-c"},"\xA0(\u5B66\u751F\u901A\u8FC7\u8BC4\u6D4B\u540E\u518D\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF0C\u4E0D\u5BF9\u6210\u7EE9\u4EA7\u751F\u5F71\u54CD)"))),n.a.createElement(_.a,{style:{paddingLeft:65}},n.a.createElement(ke.a.Group,{disabled:sr,value:Qe.answer_open_evaluation,onChange:function(Ht){Qe.answer_open_evaluation=Ht.target.value,en(Object(S.a)({},Qe))}},n.a.createElement(ke.a,{value:!1,style:{marginTop:15}},n.a.createElement("strong",null,"\u6309\u67E5\u770B\u7B54\u6848\u7EA7\u522B\u6263\u5206"),n.a.createElement("span",{className:"c-grey-c"},"(\u6839\u636E\u5B66\u5458\u9009\u62E9\u67E5\u770B\u7684\u5B9E\u8BAD\u7B54\u6848\u7EA7\u522B(\u89E3\u9898\u601D\u8DEF\u3001\u5B8C\u6574\u7B54\u6848)\uFF0C\u6263\u51CF\u76F8\u5E94\u7684\u5206\u503C)")),n.a.createElement("br",null),n.a.createElement(ke.a,{value:!0,style:{marginTop:15}},n.a.createElement("strong",null,"\u4E0D\u6263\u5206")))),!sr&&n.a.createElement(g.a,{className:"mb50",style:{marginTop:"10px"}},n.a.createElement(U.a,{type:"primary",size:"large",loading:Sr,onClick:function(){return bn()}},"\u63D0\u4EA4"),n.a.createElement(U.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Pn(!0),Bt()}},"\u53D6\u6D88")),n.a.createElement(f.a,{visible:Xe,width:860,onCancel:function(){Le(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},n.a.createElement("div",{style:{color:"#333333",fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),n.a.createElement("br",null),n.a.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),n.a.createElement("br",null),n.a.createElement("span",null," ","\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),n.a.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," ","\u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5"," "),n.a.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),n.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),n.a.createElement("br",null),n.a.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002"," "),n.a.createElement("br",null),n.a.createElement("span",null," ","\u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),n.a.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," ","\u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5"," "),n.a.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),n.a.createElement("br",null),n.a.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),n.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),n.a.createElement("br",null),n.a.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),n.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),n.a.createElement("br",null),n.a.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))))},tr=Object(x.a)(function(vn){var dn=vn.shixunHomeworks,xn=vn.loading;return{shixunHomeworks:dn,loading:xn.effects}})(gn),Wn=function(dn){var xn,Nn,dr=dn.shixunHomeworks,$n=dn.loading,Zn=dn.dispatch,kn=Object(s.useState)(!0),gr=Object(a.a)(kn,2),Bn=gr[0],ar=gr[1],sr=Object(s.useState)(!1),Pn=Object(a.a)(sr,2),Tr=Pn[0],Mr=Pn[1],Sr=Object(s.useState)([]),hr=Object(a.a)(Sr,2),ne=hr[0],Re=hr[1],Xe=Object(s.useState)([]),Le=Object(a.a)(Xe,2),st=Le[0],et=Le[1],pt=Object(s.useState)([]),mt=Object(a.a)(pt,2),it=mt[0],Mt=mt[1],Xt=Object(s.useState)([]),Vt=Object(a.a)(Xt,2),St=Vt[0],nn=Vt[1],Qe=Object(l.i)();function en(){return Bt.apply(this,arguments)}function Bt(){return Bt=Object(o.a)(d.a.mark(function cn(){var Ht;return d.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,Object(z.a)("/api/homework_commons/".concat(Qe.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:Ht=wn.sent,et(Ht);case 4:case"end":return wn.stop()}},cn)})),Bt.apply(this,arguments)}function bn(){return On.apply(this,arguments)}function On(){return On=Object(o.a)(d.a.mark(function cn(){var Ht;return d.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,Object(z.a)("/api/courses/".concat(Qe==null?void 0:Qe.coursesId,"/teachers"),{method:"get",params:{homework_id:Qe.categoryId}});case 2:Ht=wn.sent,Ht==null||Ht.teacher_list.map(function(wt){wt.key=wt.user_id}),Mt(Ht==null?void 0:Ht.teacher_list),nn(Ht==null?void 0:Ht.teacher_list);case 6:case"end":return wn.stop()}},cn)})),On.apply(this,arguments)}Object(s.useEffect)(function(){en(),bn()},[Qe]);var Gt=function(){};return n.a.createElement("section",{className:[Kt.a.form," bg-white pl30 pr30 pt10"].join(" ")},n.a.createElement(_.a,null,n.a.createElement(g.a,{flex:"1"},n.a.createElement("span",{style:{fontSize:"16px"}},"\u534F\u4F5C\u8BBE\u7F6E"),(st==null?void 0:st.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",color:"#0152d9",marginLeft:"10px"},onClick:function(){Mr(!0)}},"+\u6DFB\u52A0\u534F\u4F5C\u8005"))),n.a.createElement(_.a,{style:{marginTop:"20px",marginBottom:"20px"}},(st==null||((xn=st.data)===null||xn===void 0)?void 0:xn.length)<=0&&n.a.createElement(Et.a,{customText:"\u8BE5\u4F5C\u4E1A\u6682\u65E0\u534F\u4F5C\u8005"}),st==null||((Nn=st.data)===null||Nn===void 0)?void 0:Nn.map(function(cn){return n.a.createElement("span",{style:{display:"inline-flex",height:"40px",borderRadius:"4px",border:"1px solid #44D7B6",padding:"7px 20px",color:"#44D7B6",marginRight:"40px"}},n.a.createElement("span",{style:{flex:"1"}},cn==null?void 0:cn.real_name),(st==null?void 0:st.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:Object(o.a)(d.a.mark(function Ht(){var Sn;return d.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Object(z.a)("/api/homework_commons/".concat(Qe.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:cn.id}});case 2:Sn=wt.sent,Sn.status===0&&(b.b.info("\u5220\u9664\u6210\u529F"),en(),bn());case 4:case"end":return wt.stop()}},Ht)}))},"X"))})),n.a.createElement(_.a,null,!Bn&&n.a.createElement(g.a,{className:"mb50"},n.a.createElement(U.a,{type:"primary",size:"large",onClick:function(){return Gt()}},"\u63D0\u4EA4"),n.a.createElement(U.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){ar(!0)}},"\u53D6\u6D88"))),n.a.createElement(f.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:Tr,onCancel:function(){return Mr(!1)},onOk:Object(o.a)(d.a.mark(function cn(){var Ht;return d.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(!(ne.length===0)){wn.next=3;break}return b.b.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08"),wn.abrupt("return");case 3:return wn.next=5,Object(z.a)("/api/homework_commons/".concat(Qe.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:ne}});case 5:Ht=wn.sent,Ht.status===0&&(b.b.info("\u6DFB\u52A0\u6210\u529F"),Re([]),en(),bn(),Mr(!1));case 7:case"end":return wn.stop()}},cn)}))},n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",n.a.createElement(p.a.Search,{onChange:function(Ht){Mt(St.filter(function(Sn){return Sn.name.indexOf(Ht.target.value)>-1}))}})),n.a.createElement(B.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Ht,Sn){Re(Ht)},selectedRowKeys:ne,getCheckboxProps:function(Ht){return{disabled:Ht.is_collaborator}}},pagination:!1,dataSource:it,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))},En=Object(x.a)(function(vn){var dn=vn.shixunHomeworks,xn=vn.loading;return{shixunHomeworks:dn,loading:xn.effects}})(Wn),xr=Nt.a.RangePicker,Er=be.a.Option,rr=function(dn){var xn=dn.shixunHomeworks,Nn=dn.loading,dr=dn.dispatch;return n.a.createElement("section",{className:[Kt.a.form," bg-white pl30 pt10"].join(" ")},n.a.createElement(F.a,null,n.a.createElement(F.a.TabPane,{tab:"\u53D1\u5E03\u8BBE\u7F6E",key:1},n.a.createElement(Zt.a,null)),n.a.createElement(F.a.TabPane,{tab:"\u8BC4\u5206\u8BBE\u7F6E",key:2},n.a.createElement(tr,null)),n.a.createElement(F.a.TabPane,{tab:"\u516C\u5F00\u8BBE\u7F6E",key:3},n.a.createElement(ln,null)),n.a.createElement(F.a.TabPane,{tab:"\u534F\u4F5C\u8BBE\u7F6E",key:4},n.a.createElement(En,null))))},ur=Object(x.a)(function(vn){var dn=vn.shixunHomeworks,xn=vn.loading;return{shixunHomeworks:dn,loading:xn.effects}})(rr),Rr=L("lO7E"),Kr=L.n(Rr),ra=L("cVA7"),fn=L.n(ra),or=function(){var dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return console.log("---",dn,xn,Nn),{tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["\u7B49\u7EA7A","\u7B49\u7EA7B","\u7B49\u7EA7C","\u7B49\u7EA7D","\u7B49\u7EA7E"]}],yAxis:[{type:"value"}],series:[{name:"\u7F3A\u9677",type:"bar",stack:"Ad",color:["#5c9ef7"],emphasis:{focus:"series"},data:Nn},{name:"\u6F0F\u6D1E",type:"bar",stack:"Ad",color:["#75c87c"],emphasis:{focus:"series"},data:xn},{name:"\u4EE3\u7801\u89C4\u8303\u6027",type:"bar",stack:"Ad",color:["#f3d460"],emphasis:{focus:"series"},data:dn}]}},sa=function(){var dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return{dataset:[{source:dn}],tooltip:{show:!0,formatter:function(Nn){return Nn.value[2]+":"+Nn.value[1]+"\u5206"}},xAxis:{splitLine:{lineStyle:{type:"dashed"}},show:!1},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:[{name:"scatter",type:"scatter",datasetIndex:0},{name:"line",type:"line",smooth:!0,datasetIndex:1,symbolSize:.1,symbol:"circle",label:{show:!0,fontSize:16},labelLayout:{dx:-20},encode:{label:2,tooltip:1}}]}},ya=function(dn){var xn,Nn,dr,$n,Zn=dn.shixunHomeworks,kn=dn.loading,gr=dn.dispatch,Bn=Object(l.i)(),ar=Object(s.useState)(Object(S.a)(Object(S.a)({},{sort_by:"student_id",sort_direction:"desc"}),Bn)),sr=Object(a.a)(ar,2),Pn=sr[0],Tr=sr[1],Mr=Object(s.useState)(),Sr=Object(a.a)(Mr,2),hr=Sr[0],ne=Sr[1],Re=Object(s.useState)([]),Xe=Object(a.a)(Re,2),Le=Xe[0],st=Xe[1],et=Object(s.useRef)(),pt=Object(s.useState)(1),mt=Object(a.a)(pt,2),it=mt[0],Mt=mt[1],Xt=Object(s.useState)(!1),Vt=Object(a.a)(Xt,2),St=Vt[0],nn=Vt[1],Qe=Object(s.useState)(10),en=Object(a.a)(Qe,2),Bt=en[0],bn=en[1],On=Object(s.useState)([]),Gt=Object(a.a)(On,2),cn=Gt[0],Ht=Gt[1];Object(s.useEffect)(function(){wn()},[]);var Sn=[{title:"\u5B66\u53F7",dataIndex:"student_number",sorter:!0,showSorterTooltip:!1,sortOrder:Pn.sort_by==="student_number"?Pn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED",dataIndex:"group_course_name"},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u7F3A\u9677",children:[{title:"\u963B\u65AD",dataIndex:"bug",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"bug",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.critical)}},{title:"\u4E3B\u8981",dataIndex:"bug",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.major)}},{title:"\u6B21\u8981",dataIndex:"bug",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"bug",sorter:!1,showSorterTooltip:!1,sortOrder:Pn.sort_by==="bug"?Pn.sort_direction==="desc"?"descend":"ascend":null,render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.grade)}}]},{title:"\u6F0F\u6D1E",children:[{title:"\u963B\u65AD",dataIndex:"vulnerability",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"vulnerability",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.critical)}},{title:"\u4E3B\u8981",dataIndex:"vulnerability",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.major)}},{title:"\u6B21\u8981",dataIndex:"vulnerability",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"vulnerability",sorter:!1,showSorterTooltip:!1,sortOrder:Pn.sort_by==="vulnerability"?Pn.sort_direction==="desc"?"descend":"ascend":null,render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.grade)}}]},{title:"\u4EE3\u7801\u89C4\u8303\u6027",children:[{title:"\u963B\u65AD",dataIndex:"specification",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.blocker)}},{title:"\u4E25\u91CD",dataIndex:"specification",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.critical)}},{title:"\u4E3B\u8981",dataIndex:"specification",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.major)}},{title:"\u6B21\u8981",dataIndex:"specification",render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.minor)}},{title:"\u7B49\u7EA7",dataIndex:"specification",sorter:!1,showSorterTooltip:!1,sortOrder:Pn.sort_by==="specification"?Pn.sort_direction==="desc"?"descend":"ascend":null,render:function(vt){return n.a.createElement("span",{className:"current"},vt==null?void 0:vt.grade)}}]},{title:"\u590D\u6742\u4EE3\u7801",dataIndex:"complexity",sorter:!0,showSorterTooltip:!1,sortOrder:Pn.sort_by==="complexity"?Pn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u4EE3\u7801\u884C\u6570",dataIndex:"total_row_number",sorter:!0,showSorterTooltip:!1,sortOrder:Pn.sort_by==="total_row_number"?Pn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8D28\u91CF\u8BC4\u5206",dataIndex:"quality_score",sorter:!0,showSorterTooltip:!1,sortOrder:Pn.sort_by==="quality_score"?Pn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",render:function(vt,Dn){return n.a.createElement("a",{target:"_blank",href:"/classrooms/".concat(Bn.coursesId,"/shixun_homework/").concat(Bn.categoryId,"/analysis/").concat(Dn.id),className:"current c-light-primary"},"\u8BE6\u7EC6\u5206\u6790")}}];Object(s.useEffect)(function(){return hr===2&&(et.current=setInterval(function(){wn()},6e4)),function(){clearTimeout(et.current)}},[hr]);function wn(){return wt.apply(this,arguments)}function wt(){return wt=Object(o.a)(d.a.mark(function Ct(){var vt;return d.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return $t.next=2,Object(z.a)("/api/homework_commons/".concat(Pn.categoryId,"/code_quality_analyses/check_status.json"),{method:"GET"});case 2:vt=$t.sent,ne(vt.status),vt.status!=2&&vt.status!=-1&&(It({page:1,limit:10}),clearTimeout(et.current));case 5:case"end":return $t.stop()}},Ct)})),wt.apply(this,arguments)}function It(Ct){return Pt.apply(this,arguments)}function Pt(){return Pt=Object(o.a)(d.a.mark(function Ct(vt){var Dn;return d.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Mt(vt==null?void 0:vt.page),bn(vt==null?void 0:vt.limit),Cn.next=4,Object(z.a)("/api/homework_commons/".concat(Pn.categoryId,"/code_quality_analyses.json"),{method:"GET",params:Object(S.a)({},vt)});case 4:Dn=Cn.sent,st(Dn);case 6:case"end":return Cn.stop()}},Ct)})),Pt.apply(this,arguments)}return console.log("-------",hr),n.a.createElement("section",{style:{paddingBottom:"10px"},className:"minH500 bg-white pl30 pr30 pt10"},(hr===0||hr===1)&&n.a.createElement("div",null,n.a.createElement("p",{style:{display:"flex"}},n.a.createElement("span",{style:{flex:"1"}},n.a.createElement("label",null,"\u68C0\u6D4B\u65F6\u95F4\uFF1A",Le==null?void 0:Le.created_at)),n.a.createElement(U.a,{onClick:function(){gr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8D28\u91CF\u68C0\u6D4B"}})}},"\u91CD\u65B0\u68C0\u6D4B")),n.a.createElement("p",{style:{display:"flex"}},n.a.createElement(_.a,{style:{width:"100%"}},n.a.createElement(g.a,{flex:"80px"},n.a.createElement("label",null,"\u5206\u73ED\u60C5\u51B5:")),n.a.createElement(g.a,{flex:"80px"},n.a.createElement(we.a,{checked:(cn==null?void 0:cn.length)===0,onChange:function(vt){vt.target.checked&&(Ht([]),It({page:it,limit:Bt}))},style:{fontSize:"14px"},value:"all"},"\u5168\u90E8")),n.a.createElement(g.a,{flex:"1"},n.a.createElement(we.a.Group,{value:cn,onChange:function(){var Ct=Object(o.a)(d.a.mark(function vt(Dn){return d.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:Ht(Object(y.a)(Dn)),It({page:it,limit:Bt,group_course_ids:Dn});case 2:case"end":return Cn.stop()}},vt)}));return function(vt){return Ct.apply(this,arguments)}}(),style:{width:"100%",fontSize:"14px"}},Le==null||((xn=Le.course_groups)===null||xn===void 0)?void 0:xn.map(function(Ct,vt){return n.a.createElement(we.a,{style:{fontSize:"14px"},value:Ct==null?void 0:Ct.id},Ct==null?void 0:Ct.name,"(",Ct==null?void 0:Ct.count,")")}))))),n.a.createElement("p",{style:{display:"flex"}},n.a.createElement("span",null,n.a.createElement("label",{style:{color:"red"}},"\u6CE8\u610F\uFF1A")),"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u5B8C\u6210\u68C0\u6D4B\u7684\u5206\u73ED"),n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},n.a.createElement("div",null,n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u7B49\u7EA7\u5206\u6790"),(Le==null?void 0:Le.grade_statistics)&&n.a.createElement(fn.a,{option:or(Le==null||((Nn=Le.grade_statistics)===null||Nn===void 0)?void 0:Nn.map(function(Ct){return Ct.specification_count}),Le==null||((dr=Le.grade_statistics)===null||dr===void 0)?void 0:dr.map(function(Ct){return Ct.vulnerability_count}),Le==null||(($n=Le.grade_statistics)===null||$n===void 0)?void 0:$n.map(function(Ct){return Ct.bug_count})),style:{height:400,width:600},opts:{renderer:"svg"}})),n.a.createElement("div",null,n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500}},"\u4EE3\u7801\u8D28\u91CF\u5206\u5E03"),(Le==null?void 0:Le.quality_scores)&&n.a.createElement(fn.a,{option:sa(Le==null?void 0:Le.quality_scores.map(function(Ct,vt){return[vt+1,Ct==null?void 0:Ct.quality_score,Ct==null?void 0:Ct.user_name]})),style:{height:400,width:600},opts:{renderer:"svg"}}))),n.a.createElement("div",null,n.a.createElement("div",{style:{display:"flex"}},n.a.createElement("p",{style:{marginLeft:"20px",fontSize:"20px",fontWeight:500,flex:"1"}},"\u8BE6\u7EC6\u5217\u8868"),n.a.createElement(p.a.Search,{size:"large",onSearch:function(vt){It({page:1,limit:Bt,search:vt})},style:{width:"300px"},enterButton:"\u641C\u7D22"})),n.a.createElement(B.a,{columns:Sn,dataSource:Le==null?void 0:Le.analysis,bordered:!0,scroll:{x:"calc(800px + 50%)"},pagination:!1,onChange:function(vt,Dn,$t){$t.field&&(Pn.sort_by=$t.field),$t.order||(Pn.sort_direction="asc"),$t.order==="ascend"&&(Pn.sort_direction="asc"),$t.order==="descend"&&(Pn.sort_direction="desc"),$t.order||(Pn.sort_direction="asc"),It(Object(S.a)({page:1,limit:Bt},Pn))}}),n.a.createElement(w.a,{current:it,total:Le==null?void 0:Le.total_count,pageSizeOptions:["10","20","50","100","200"],pageSize:Bt,style:{textAlign:"center",marginTop:"20px",marginBottom:"20px"},onChange:function(vt,Dn){Mt(vt),bn(Dn),It({page:vt,limit:Dn,group_course_ids:cn})}}))),hr===2&&n.a.createElement("div",{style:{textAlign:"center",margin:"100px 0px",paddingBottom:"100px"}},n.a.createElement("img",{src:Kr.a}),n.a.createElement("br",null),n.a.createElement(U.a,{type:"primary",style:{width:"120px",height:"40px"},onClick:function(){wn()}},"\u5237\u65B0\u9875\u9762")),n.a.createElement(ze,null),n.a.createElement(f.a,{centered:!0,width:1200,title:"\u8BE6\u7EC6\u5206\u6790",destroyOnClose:!0,visible:!!St,footer:null,onCancel:function(){return nn(!1)}},n.a.createElement("div",{style:{height:500,overflow:"hidden"}},!!St&&n.a.createElement("iframe",{style:{height:"100%",width:"100%"},src:"https://sonar.educoder.net/project/issues?id=".concat(Bn==null?void 0:Bn.categoryId,"-").concat(St==null?void 0:St.student_number,"&resolved=false"),frameBorder:"0"}))))},Jr=Object(x.a)(function(vn){var dn=vn.shixunHomeworks,xn=vn.loading;return{shixunHomeworks:dn,loading:xn.effects}})(ya),na=L("RotF"),te=L.n(na),W=function(dn){var xn,Nn=dn.shixunHomeworks,dr=dn.loading,$n=dn.dispatch,Zn=Object(l.i)(),kn=Object(l.h)(),gr=Object(s.useState)([]),Bn=Object(a.a)(gr,2),ar=Bn[0],sr=Bn[1],Pn=Object(s.useState)([]),Tr=Object(a.a)(Pn,2),Mr=Tr[0],Sr=Tr[1],hr=Object(s.useState)(!0),ne=Object(a.a)(hr,2),Re=ne[0],Xe=ne[1],Le=Object(s.useState)(!1),st=Object(a.a)(Le,2),et=st[0],pt=st[1],mt=Object(s.useState)(1),it=Object(a.a)(mt,2),Mt=it[0],Xt=it[1],Vt=Object(s.useState)([]),St=Object(a.a)(Vt,2),nn=St[0],Qe=St[1],en=Object(s.useState)(!1),Bt=Object(a.a)(en,2),bn=Bt[0],On=Bt[1],Gt=Object(s.useState)(!1),cn=Object(a.a)(Gt,2),Ht=cn[0],Sn=cn[1];Object(s.useEffect)(function(){Nn.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD"?(It.resetFields(),sr([]),On(!0),Ct()):On(!1)},[Nn.actionTabs.key]);var wn=We.a.useForm(),wt=Object(a.a)(wn,1),It=wt[0],Pt=[],Ct=function(){var $t=Object(o.a)(d.a.mark(function Cn(){var pn,Yt,Tn;return d.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:if(!(Re&&!et)){fr.next=11;break}return pt(!0),Xt(Mt+1),fr.next=5,Object(Z.x)(Object(S.a)(Object(S.a)({},Zn),{},{page:Mt}));case 5:Yt=fr.sent,Tn=Object(y.a)(Yt.group_list),Yt!=null&&Yt.ungroup_list&&Tn.push({id:Yt==null?void 0:Yt.ungroup_list.id,name:Yt==null?void 0:Yt.ungroup_list.name,works_count:Yt==null?void 0:Yt.ungroup_list.work_count,last_review_time:Yt==null?void 0:Yt.ungroup_list.last_review_time}),sr([].concat(Object(y.a)(ar),Object(y.a)(Tn))),pt(!1),((pn=Yt.group_list)===null||pn===void 0?void 0:pn.length)<10&&Xe(!1);case 11:case"end":return fr.stop()}},Cn)}));return function(){return $t.apply(this,arguments)}}(),vt=function(){$n({type:"shixunHomeworks/setActionTabs",payload:{}}),Sn(!1),Xe(!0),pt(!1),Xt(1),sr([]),It.resetFields()},Dn=[{title:"",dataIndex:"id",width:280,render:function(Cn,pn){return n.a.createElement(we.a,{disabled:!(pn.works_count>1),value:String(pn.id)},pn.name)}},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u4E0A\u6B21\u67E5\u91CD\u65F6\u95F4",dataIndex:"last_review_time",width:130}];return n.a.createElement(f.a,{centered:!0,title:"\u4EE3\u7801\u67E5\u91CD",keyboard:!1,maskClosable:!1,visible:bn,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:820,bodyStyle:{minHeight:200},onOk:Object(o.a)(d.a.mark(function $t(){var Cn,pn;return d.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Cn=It.getFieldValue(),Tn.next=3,Object(z.a)("/api/homework_commons/".concat(Zn.categoryId,"/homework_code_repeat.json"),{method:"post",body:{group_ids:Object(y.a)(Cn.group_ids)}});case 3:if(pn=Tn.sent,!(pn.status===0)){Tn.next=11;break}return vt(),b.b.success("\u64CD\u4F5C\u6210\u529F"),Tn.next=9,$n({type:"shixunHomeworks/getWorkList",payload:Nn.actionTabs.params});case 9:x.d.push("/classrooms/".concat(Zn.coursesId,"/shixun_homework/").concat(Zn.categoryId,"/detail?tabs=2")),$n({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6267\u884C\u4EE3\u7801\u67E5\u91CD"}});case 11:case"end":return Tn.stop()}},$t)})),onCancel:vt},Nn.codeReviewCourse&&n.a.createElement(We.a,{form:It,onChange:function(Cn){Qe(Object(S.a)({},It.getFieldValue()))},initialValues:(xn={},Object(yt.a)(xn,"group_ids",Pt),Object(yt.a)(xn,"end_time",oe()(oe()().add(7,"days").format("YYYY-MM-DD HH:mm"))),xn)},n.a.createElement("div",{className:"flexd-table-header mt20"},n.a.createElement(B.a,{pagination:!1,dataSource:[],columns:Dn})),n.a.createElement(We.a.Item,{name:"group_ids"},n.a.createElement(we.a.Group,{className:"w100"},n.a.createElement("div",{style:{width:"100%",maxHeight:260,overflow:"auto"}},n.a.createElement(te.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(Cn){Ct()},hasMore:Re,useWindow:!1},n.a.createElement(B.a,{loading:dr.effects["shixunHomeworks/getCodeReviewCourse"],showHeader:!1,columns:Dn,dataSource:ar,pagination:!1})))))),n.a.createElement(_.a,null,n.a.createElement(g.a,{className:"ml10"},n.a.createElement(we.a,{checked:Ht,onChange:function(Cn){Sn(Cn.target.checked);var pn=[];Cn.target.checked&&(pn=ar.filter(function(Yt){return Yt.works_count>1}).map(function(Yt){return Yt.id+""})),It.setFieldsValue(Object(yt.a)({},"group_ids",pn))}},"\u5168\u9009"))))},G=Object(x.a)(function(vn){var dn=vn.shixunHomeworks,xn=vn.loading;return{shixunHomeworks:dn,loading:xn}})(W),Q=L("R5GN"),ue=L("rhHp"),ee=L("Aocz"),qe=L.n(ee),tn=L("HBuW"),An=L("NLgs"),Vn=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u963B\u65AD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u963B\u65AD\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}],un=function(dn){var xn,Nn,dr,$n,Zn,kn,gr,Bn,ar,sr,Pn=dn.shixunHomeworks,Tr=dn.globalSetting,Mr=dn.loading,Sr=dn.dispatch,hr=Object(l.i)(),ne=Object(l.h)(),Re=Object(l.g)(),Xe=Object(s.useState)([]),Le=Object(a.a)(Xe,2),st=Le[0],et=Le[1],pt=Object(s.useState)(ne.query.tabs||"0"),mt=Object(a.a)(pt,2),it=mt[0],Mt=mt[1],Xt=Object(s.useState)({}),Vt=Object(a.a)(Xt,2),St=Vt[0],nn=Vt[1],Qe=Pn.workList,en=Object(s.useState)(!1),Bt=Object(a.a)(en,2),bn=Bt[0],On=Bt[1],Gt;hr.category=ne.query.category_id,hr.order="work_score",hr.b_order="desc";var cn=function(Ct){Mt(Ct),Ct==="0"&&Sr({type:"shixunHomeworks/getWorkList",payload:St})},Ht=function(){f.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:n.a.createElement("div",{className:"tc font16"},"\u4F60\u5728\u8BE5\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A\uFF0C\u65E0\u6CD5\u6062\u590D",n.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u91CD\u505A\uFF1F"),onOk:function(){var Ct=Object(o.a)(d.a.mark(function Dn(){var $t,Cn,pn;return d.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Cn=($t=Pn.workList)===null||$t===void 0?void 0:$t.myshixun_identifier,Tn.next=3,Object(Z.X)({id:Cn});case 3:pn=Tn.sent,pn&&(b.b.info(`\u5DF2\u6E05\u7A7A\u672C\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55 -\u8BF7\u70B9\u51FB\u201C\u5F00\u542F\u6311\u6218\u201D\u91CD\u505A\u8BFE\u7A0B\u5B9E\u9A8C`),Tr({type:"shixunHomeworks/getWorkList",payload:Xt}));case 5:case"end":return rn.stop()}},wt)}));function Dt(){return Pt.apply(this,arguments)}return Dt}()})},Ht=function xt(Pt){var Dt;Pt=(Dt=Pt)!==null&&Dt!==void 0&&Dt.includes(".json")?Pt:"".concat(Pt,".json"),f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:n.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var wt=Object(o.a)(d.a.mark(function hn(){var bn,dn;return d.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.next=2,Object(en.Bb)({url:Pt});case 2:if(bn=Tn.sent,bn){Tn.next=5;break}return Tn.abrupt("return");case 5:return b.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Tn.next=8,Object(en.E)({id:bn.shixun_identifier});case 8:if(dn=Tn.sent,!(dn!=null&&dn.game_identifier)){Tn.next=12;break}return Object(C.S)("/tasks/".concat(dn.game_identifier,"?coursesId=").concat(br.coursesId)),Tn.abrupt("return");case 12:(dn==null?void 0:dn.status)===2?xt(dn==null?void 0:dn.message):(dn==null?void 0:dn.status)===3&&On(dn==null?void 0:dn.message);case 13:case"end":return Tn.stop()}},hn)}));function gn(){return wt.apply(this,arguments)}return gn}()})},On=function(Pt){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:n.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Pt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Sn=function(){var xt=Object(o.a)(d.a.mark(function Pt(Dt){var wt,gn;return d.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return Dt=(wt=Dt)!==null&&wt!==void 0&&wt.includes(".json")?Dt:"".concat(Dt,".json"),bn.next=3,Object(en.Bb)({url:Dt});case 3:if(gn=bn.sent,console.log(gn,"execRes"),!(gn!=null&&gn.game_identifier)){bn.next=8;break}return Object(C.S)("/tasks/".concat(gn.game_identifier,"?coursesId=").concat(br.coursesId)),bn.abrupt("return");case 8:(gn==null?void 0:gn.status)===-3?Object(C.q)():(gn==null?void 0:gn.status)===2?Ht(gn==null?void 0:gn.message):(gn==null?void 0:gn.status)===3&&On(gn==null?void 0:gn.message);case 9:case"end":return bn.stop()}},Pt)}));return function(Dt){return xt.apply(this,arguments)}}(),Ct=[{name:"\u4F5C\u4E1A\u5217\u8868",id:"0",compontent:n.a.createElement(on,{setExportParams:St}),forceRender:!0},{name:"\u4F5C\u4E1A\u63CF\u8FF0",id:"1",compontent:n.a.createElement(Ee,null)},{name:"\u4EE3\u7801\u67E5\u91CD",id:"2",compontent:n.a.createElement(At,null)},{name:"\u8D28\u91CF\u68C0\u6D4B",id:"4",compontent:n.a.createElement(Jr,null)},{name:Object(de.c)()?"\u8BBE\u7F6E":"\u5F97\u5206\u89C4\u5219",id:"3",compontent:n.a.createElement(ur,null)}].filter(function(xt){var Pt;if(Object(de.s)())return xt.name!=="\u4EE3\u7801\u67E5\u91CD";if(Object(de.s)()||(Ft==null||((Pt=Ft.homework_status)===null||Pt===void 0)?void 0:Pt[0])!=="\u5DF2\u622A\u6B62")return xt.name!=="\u8D28\u91CF\u68C0\u6D4B";var Dt;return!Ft.code_review&&(Ft==null||((Dt=Ft.homework_status)===null||Dt===void 0)?void 0:Dt[0])!=="\u672A\u53D1\u5E03"?!0:xt.name!=="\u4EE3\u7801\u67E5\u91CD"}).filter(function(xt){return Ft.open_code_quality_analysis?!0:xt.name!=="\u8D28\u91CF\u68C0\u6D4B"});return n.a.createElement("section",null,n.a.createElement("div",{className:"edu-container"},Ft.homework_name&&n.a.createElement("section",{className:"animated fadeIn"},n.a.createElement("aside",{className:"mt10"},Ft.category&&n.a.createElement(m.a,{separator:">"},n.a.createElement(m.a.Item,null,n.a.createElement(c.a,{to:"/classrooms/".concat(Ft.course_id,"/shixun_homework")},Ft.course_name)),n.a.createElement(m.a.Item,null,n.a.createElement(c.a,{to:"/classrooms/".concat(Ft.course_id,"/shixun_homework/").concat(Ft.category.main?"":Ft.category.category_id)},Ft.category.category_name)),n.a.createElement(m.a.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),n.a.createElement("aside",{className:[qe.a.title,"mt20"].join(" ")},n.a.createElement(c.a,{to:"/classrooms/".concat(Ft.course_id,"/shixun_homework/").concat(Ft.category.main?"":Ft.category.category_id)},n.a.createElement(A.a,{className:"font16 c-black"})),n.a.createElement(R.a,{title:Ft.homework_name,placement:"bottom"},n.a.createElement("strong",{className:"font20 ml5"},Ft.homework_name)),n.a.createElement(C.m,{temporary:!0,status:Ft.homework_status}),mt==="4"&&n.a.createElement("span",{className:"iconfont icon-a-wenhaobeifen2",onClick:function(){_n(!0)},style:{fontWeight:800,color:"#0152d9",textAlign:"end",flex:1,cursor:"pointer"}},"\u89C4\u5219\u8BF4\u660E"))),n.a.createElement("aside",{className:"mt30 relative"},n.a.createElement("aside",{className:qe.a.rightMenu},Object(de.s)()&&((Cn=Gn.workList)===null||Cn===void 0?void 0:Cn.redo_work)&&n.a.createElement("p",{onClick:cn},n.a.createElement("span",{className:"iconfont icon-dahuizhongzuo3x"}),"\u91CD\u505A"),((kn=Gn.workList)===null||kn===void 0?void 0:kn.shixun_status)>1&&((dr=Gn.workList)===null||dr===void 0?void 0:dr.time_status)<5&&Object(de.s)()&&n.a.createElement("p",{onClick:function(){var Pt,Dt,wt,gn,hn,bn,dn;if(!Object(An.e)(Tr,!0))return;(Pt=Gn.workList)!==null&&Pt!==void 0&&(Dt=Pt.task_operation)!==null&&Dt!==void 0&&(wt=Dt[1])!==null&&wt!==void 0&&wt.includes("/")?Sn((gn=Gn.workList)===null||gn===void 0||((hn=gn.task_operation)===null||hn===void 0)?void 0:hn[1]):Object(C.S)("/tasks/".concat((bn=Gn.workList)===null||bn===void 0||((dn=bn.task_operation)===null||dn===void 0)?void 0:dn[1]))}},n.a.createElement("span",{className:"iconfont icon-kaiqizhong"}),($n=Gn.workList)===null||$n===void 0||((Zn=$n.task_operation)===null||Zn===void 0)?void 0:Zn[0]),((In=Gn.workList)===null||In===void 0?void 0:In.commit_des)&&n.a.createElement("p",{onClick:function(){var Pt;Object(C.S)("/classrooms/".concat(br.coursesId,"/shixun_homework/").concat(br.categoryId,"/").concat((Pt=Gn.workList)===null||Pt===void 0?void 0:Pt.id,"/commitsummary"))}},n.a.createElement("span",{className:"iconfont icon-tijiaozongjie"}),(mr=Gn.workList)===null||mr===void 0?void 0:mr.commit_des),mt=="1"&&Object(de.c)()&&n.a.createElement("p",{onClick:function(){Tr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u7F16\u8F91\u4F5C\u4E1A"}})}},n.a.createElement("span",{className:"iconfont icon-bianjishijuan3x translateY1"}),"\u7F16\u8F91\u4F5C\u4E1A"),Object(de.c)()&&Ft.publish_immediately&&n.a.createElement("p",{onClick:function(){Tr({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[br.categoryId],selectArrsAll:[Ft],params:br,detail:!0,type:2}})}},n.a.createElement("span",{className:"iconfont icon-yishezhifabushijian1 translateY1"}),"\u7ACB\u5373\u53D1\u5E03"),((Fn=Gn.workList)===null||Fn===void 0?void 0:Fn.show_analysis_detail)&&n.a.createElement("p",{onClick:function(){var Pt;Object(C.S)("/classrooms/".concat(br.coursesId,"/shixun_homework/").concat(br.categoryId,"/analysis/").concat((Pt=Gn.workList)===null||Pt===void 0?void 0:Pt.analysis_id))}},n.a.createElement("span",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),((ar=Gn.workList)===null||ar===void 0?void 0:ar.is_enter_shixun)&&n.a.createElement("p",{onClick:function(){Object(C.S)("/shixuns/".concat(Ft.shixun_identifier,"/challenges"))}},n.a.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),"\u8FDB\u5165\u5B9E\u8BAD"),Object(de.c)()&&Ft.end_immediately&&n.a.createElement("p",{style:{background:"#0152d9",color:"#fff"},onClick:function(){Tr({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u622A\u6B62",params:br,type:2,detail:!0,selectArrs:[br.categoryId]}})}},n.a.createElement("span",{style:{color:"#fff"},className:"iconfont icon-jiezhishiyan"}),"\u7ACB\u5373\u622A\u6B62")),n.a.createElement(F.a,{defaultActiveKey:mt,activeKey:mt,onChange:Vt,className:qe.a.menuTabs},Ct.map(function(xt,Pt){return n.a.createElement(F.a.TabPane,{tab:xt.name,key:xt.id,forceRender:xt.forceRender},xt.compontent)})))),n.a.createElement(G,null),n.a.createElement(Q.a,{courseEndTime:Ft==null?void 0:Ft.course_end_date}),n.a.createElement(ue.a,{courseEndTime:Ft==null?void 0:Ft.course_end_date}),n.a.createElement(f.a,{visible:zt,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:function(){_n(!1)}},n.a.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),n.a.createElement("p",{style:{marginLeft:"10px"}},n.a.createElement(B.a,{dataSource:Vn,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),n.a.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),n.a.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),n.a.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),n.a.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u963B\u65AD\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002")))},nr=J.default=Object(x.a)(function(yn){var un=yn.shixunHomeworks,Cn=yn.loading,kn=yn.globalSetting;return{shixunHomeworks:un,globalSetting:kn,loading:Cn.effects}})(ln)},TXwP:function(Be,J,L){var Y,B;(function(){var I;(function(){"use strict";var T=[,,function(t){function b(f){this.__parent=f,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}b.prototype.clone_empty=function(){var f=new b(this.__parent);return f.set_indent(this.__indent_count,this.__alignment_count),f},b.prototype.item=function(f){return f<0?this.__items[this.__items.length+f]:this.__items[f]},b.prototype.has_match=function(f){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(f))return!0;return!1},b.prototype.set_indent=function(f,a){this.is_empty()&&(this.__indent_count=f||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},b.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},b.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},b.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var f=this.__parent.current_line;return f.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),f.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),f.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,f.__items[0]===" "&&(f.__items.splice(0,1),f.__character_count-=1),!0}return!1},b.prototype.is_empty=function(){return this.__items.length===0},b.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},b.prototype.push=function(f){this.__items.push(f);var a=f.lastIndexOf(` +\u8BF7\u70B9\u51FB\u201C\u5F00\u542F\u6311\u6218\u201D\u91CD\u505A\u8BFE\u7A0B\u5B9E\u9A8C`),Sr({type:"shixunHomeworks/getWorkList",payload:St}));case 5:case"end":return Tn.stop()}},Dn)}));function vt(){return Ct.apply(this,arguments)}return vt}()})},Sn=function Pt(Ct){var vt;Ct=(vt=Ct)!==null&&vt!==void 0&&vt.includes(".json")?Ct:"".concat(Ct,".json"),f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:n.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Dn=Object(o.a)(d.a.mark(function Cn(){var pn,Yt;return d.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.next=2,Object(tn.Bb)({url:Ct});case 2:if(pn=zn.sent,pn){zn.next=5;break}return zn.abrupt("return");case 5:return b.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),zn.next=8,Object(tn.E)({id:pn.shixun_identifier});case 8:if(Yt=zn.sent,!(Yt!=null&&Yt.game_identifier)){zn.next=12;break}return Object(C.S)("/tasks/".concat(Yt.game_identifier,"?coursesId=").concat(hr.coursesId)),zn.abrupt("return");case 12:(Yt==null?void 0:Yt.status)===2?Pt(Yt==null?void 0:Yt.message):(Yt==null?void 0:Yt.status)===3&&wn(Yt==null?void 0:Yt.message);case 13:case"end":return zn.stop()}},Cn)}));function $t(){return Dn.apply(this,arguments)}return $t}()})},wn=function(Ct){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:n.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Ct,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},wt=function(){var Pt=Object(o.a)(d.a.mark(function Ct(vt){var Dn,$t;return d.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:return vt=(Dn=vt)!==null&&Dn!==void 0&&Dn.includes(".json")?vt:"".concat(vt,".json"),pn.next=3,Object(tn.Bb)({url:vt});case 3:if($t=pn.sent,console.log($t,"execRes"),!($t!=null&&$t.game_identifier)){pn.next=8;break}return Object(C.S)("/tasks/".concat($t.game_identifier,"?coursesId=").concat(hr.coursesId)),pn.abrupt("return");case 8:($t==null?void 0:$t.status)===-3?Object(C.q)():($t==null?void 0:$t.status)===2?Sn($t==null?void 0:$t.message):($t==null?void 0:$t.status)===3&&wn($t==null?void 0:$t.message);case 9:case"end":return pn.stop()}},Ct)}));return function(vt){return Pt.apply(this,arguments)}}(),It=[{name:"\u4F5C\u4E1A\u5217\u8868",id:"0",compontent:n.a.createElement(sn,{setExportParams:nn}),forceRender:!0},{name:"\u4F5C\u4E1A\u63CF\u8FF0",id:"1",compontent:n.a.createElement(Ee,null)},{name:"\u4EE3\u7801\u67E5\u91CD",id:"2",compontent:n.a.createElement(At,null)},{name:"\u8D28\u91CF\u68C0\u6D4B",id:"4",compontent:n.a.createElement(Jr,null)},{name:Object(de.c)()?"\u8BBE\u7F6E":"\u5F97\u5206\u89C4\u5219",id:"3",compontent:n.a.createElement(ur,null)}].filter(function(Pt){var Ct;if(Object(de.s)())return Pt.name!=="\u4EE3\u7801\u67E5\u91CD";if(Object(de.s)()||(Qe==null||((Ct=Qe.homework_status)===null||Ct===void 0)?void 0:Ct[0])!=="\u5DF2\u622A\u6B62")return Pt.name!=="\u8D28\u91CF\u68C0\u6D4B";var vt;return!Qe.code_review&&(Qe==null||((vt=Qe.homework_status)===null||vt===void 0)?void 0:vt[0])!=="\u672A\u53D1\u5E03"?!0:Pt.name!=="\u4EE3\u7801\u67E5\u91CD"}).filter(function(Pt){return Qe.open_code_quality_analysis?!0:Pt.name!=="\u8D28\u91CF\u68C0\u6D4B"});return n.a.createElement("section",null,n.a.createElement("div",{className:"edu-container"},Qe.homework_name&&n.a.createElement("section",{className:"animated fadeIn"},n.a.createElement("aside",{className:"mt10"},Qe.category&&n.a.createElement(m.a,{separator:">"},n.a.createElement(m.a.Item,null,n.a.createElement(c.a,{to:"/classrooms/".concat(Qe.course_id,"/shixun_homework")},Qe.course_name)),n.a.createElement(m.a.Item,null,n.a.createElement(c.a,{to:"/classrooms/".concat(Qe.course_id,"/shixun_homework/").concat(Qe.category.main?"":Qe.category.category_id)},Qe.category.category_name)),n.a.createElement(m.a.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),n.a.createElement("aside",{className:[qe.a.title,"mt20"].join(" ")},n.a.createElement(c.a,{to:"/classrooms/".concat(Qe.course_id,"/shixun_homework/").concat(Qe.category.main?"":Qe.category.category_id)},n.a.createElement(A.a,{className:"font16 c-black"})),n.a.createElement(R.a,{title:Qe.homework_name,placement:"bottom"},n.a.createElement("strong",{className:"font20 ml5"},Qe.homework_name)),n.a.createElement(C.m,{temporary:!0,status:Qe.homework_status}),it==="4"&&n.a.createElement("span",{className:"iconfont icon-a-wenhaobeifen2",onClick:function(){On(!0)},style:{fontWeight:800,color:"#0152d9",textAlign:"end",flex:1,cursor:"pointer"}},"\u89C4\u5219\u8BF4\u660E"))),n.a.createElement("aside",{className:"mt30 relative"},n.a.createElement("aside",{className:qe.a.rightMenu},Object(de.s)()&&((xn=Pn.workList)===null||xn===void 0?void 0:xn.redo_work)&&n.a.createElement("p",{onClick:Ht},n.a.createElement("span",{className:"iconfont icon-dahuizhongzuo3x"}),"\u91CD\u505A"),((Nn=Pn.workList)===null||Nn===void 0?void 0:Nn.shixun_status)>1&&((dr=Pn.workList)===null||dr===void 0?void 0:dr.time_status)<5&&Object(de.s)()&&n.a.createElement("p",{onClick:function(){var Ct,vt,Dn,$t,Cn,pn,Yt;if(!Object(An.e)(Sr,!0))return;(Ct=Pn.workList)!==null&&Ct!==void 0&&(vt=Ct.task_operation)!==null&&vt!==void 0&&(Dn=vt[1])!==null&&Dn!==void 0&&Dn.includes("/")?wt(($t=Pn.workList)===null||$t===void 0||((Cn=$t.task_operation)===null||Cn===void 0)?void 0:Cn[1]):Object(C.S)("/tasks/".concat((pn=Pn.workList)===null||pn===void 0||((Yt=pn.task_operation)===null||Yt===void 0)?void 0:Yt[1]))}},n.a.createElement("span",{className:"iconfont icon-kaiqizhong"}),($n=Pn.workList)===null||$n===void 0||((Zn=$n.task_operation)===null||Zn===void 0)?void 0:Zn[0]),((kn=Pn.workList)===null||kn===void 0?void 0:kn.commit_des)&&n.a.createElement("p",{onClick:function(){var Ct;Object(C.S)("/classrooms/".concat(hr.coursesId,"/shixun_homework/").concat(hr.categoryId,"/").concat((Ct=Pn.workList)===null||Ct===void 0?void 0:Ct.id,"/commitsummary"))}},n.a.createElement("span",{className:"iconfont icon-tijiaozongjie"}),(gr=Pn.workList)===null||gr===void 0?void 0:gr.commit_des),it=="1"&&Object(de.c)()&&n.a.createElement("p",{onClick:function(){Sr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u7F16\u8F91\u4F5C\u4E1A"}})}},n.a.createElement("span",{className:"iconfont icon-bianjishijuan3x translateY1"}),"\u7F16\u8F91\u4F5C\u4E1A"),Object(de.c)()&&Qe.publish_immediately&&n.a.createElement("p",{onClick:function(){Sr({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[hr.categoryId],selectArrsAll:[Qe],params:hr,detail:!0,type:2}})}},n.a.createElement("span",{className:"iconfont icon-yishezhifabushijian1 translateY1"}),"\u7ACB\u5373\u53D1\u5E03"),((Bn=Tr.setting)===null||Bn===void 0?void 0:Bn.hide_quality_analysis)&&((ar=Pn.workList)===null||ar===void 0?void 0:ar.show_analysis_detail)&&n.a.createElement("p",{onClick:function(){var Ct;Object(C.S)("/classrooms/".concat(hr.coursesId,"/shixun_homework/").concat(hr.categoryId,"/analysis/").concat((Ct=Pn.workList)===null||Ct===void 0?void 0:Ct.analysis_id))}},n.a.createElement("span",{className:"iconfont icon-a-08zhiliang-xianxing font14 pr5"}),"\u8D28\u91CF\u8BC4\u5206"),((sr=Pn.workList)===null||sr===void 0?void 0:sr.is_enter_shixun)&&n.a.createElement("p",{onClick:function(){Object(C.S)("/shixuns/".concat(Qe.shixun_identifier,"/challenges"))}},n.a.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),"\u8FDB\u5165\u5B9E\u8BAD"),Object(de.c)()&&Qe.end_immediately&&n.a.createElement("p",{style:{background:"#0152d9",color:"#fff"},onClick:function(){Sr({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u622A\u6B62",params:hr,type:2,detail:!0,selectArrs:[hr.categoryId]}})}},n.a.createElement("span",{style:{color:"#fff"},className:"iconfont icon-jiezhishiyan"}),"\u7ACB\u5373\u622A\u6B62")),n.a.createElement(F.a,{defaultActiveKey:it,activeKey:it,onChange:cn,className:qe.a.menuTabs},It.map(function(Pt,Ct){return n.a.createElement(F.a.TabPane,{tab:Pt.name,key:Pt.id,forceRender:Pt.forceRender},Pt.compontent)})))),n.a.createElement(G,null),n.a.createElement(Q.a,{courseEndTime:Qe==null?void 0:Qe.course_end_date}),n.a.createElement(ue.a,{courseEndTime:Qe==null?void 0:Qe.course_end_date}),n.a.createElement(f.a,{visible:bn,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:function(){On(!1)}},n.a.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),n.a.createElement("p",{style:{marginLeft:"10px"}},n.a.createElement(B.a,{dataSource:Vn,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),n.a.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),n.a.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),n.a.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),n.a.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u963B\u65AD\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),n.a.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002")))},nr=J.default=Object(x.a)(function(vn){var dn=vn.shixunHomeworks,xn=vn.loading,Nn=vn.globalSetting;return{shixunHomeworks:dn,globalSetting:Nn,loading:xn.effects}})(un)},TXwP:function(Be,J,L){var Y,B;(function(){var I;(function(){"use strict";var T=[,,function(t){function b(f){this.__parent=f,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}b.prototype.clone_empty=function(){var f=new b(this.__parent);return f.set_indent(this.__indent_count,this.__alignment_count),f},b.prototype.item=function(f){return f<0?this.__items[this.__items.length+f]:this.__items[f]},b.prototype.has_match=function(f){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(f))return!0;return!1},b.prototype.set_indent=function(f,a){this.is_empty()&&(this.__indent_count=f||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},b.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},b.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},b.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var f=this.__parent.current_line;return f.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),f.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),f.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,f.__items[0]===" "&&(f.__items.splice(0,1),f.__character_count-=1),!0}return!1},b.prototype.is_empty=function(){return this.__items.length===0},b.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},b.prototype.push=function(f){this.__items.push(f);var a=f.lastIndexOf(` `);a!==-1?this.__character_count=f.length-a:this.__character_count+=f.length},b.prototype.pop=function(){var f=null;return this.is_empty()||(f=this.__items.pop(),this.__character_count-=f.length),f},b.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},b.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},b.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},b.prototype.toString=function(){var f="";return this.is_empty()?this.__parent.indent_empty_lines&&(f=this.__parent.get_indent_string(this.__indent_count)):(f=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),f+=this.__items.join("")),f};function o(f,a){this.__cache=[""],this.__indent_size=f.indent_size,this.__indent_string=f.indent_char,f.indent_with_tabs||(this.__indent_string=new Array(f.indent_size+1).join(f.indent_char)),a=a||"",f.indent_level>0&&(a=new Array(f.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}o.prototype.get_indent_size=function(f,a){var i=this.__base_string_length;return a=a||0,f<0&&(i=0),i+=f*this.__indent_size,i+=a,i},o.prototype.get_indent_string=function(f,a){var i=this.__base_string;return a=a||0,f<0&&(f=0,i=""),a+=f*this.__indent_size,this.__ensure_cache(a),i+=this.__cache[a],i},o.prototype.__ensure_cache=function(f){for(;f>=this.__cache.length;)this.__add_column()},o.prototype.__add_column=function(){var f=this.__cache.length,a=0,i="";this.__indent_size&&f>=this.__indent_size&&(a=Math.floor(f/this.__indent_size),f-=a*this.__indent_size,i=new Array(a+1).join(this.__indent_string)),f&&(i+=new Array(f+1).join(" ")),this.__cache.push(i)};function u(f,a){this.__indent_cache=new o(f,a),this.raw=!1,this._end_with_newline=f.end_with_newline,this.indent_size=f.indent_size,this.wrap_line_length=f.wrap_line_length,this.indent_empty_lines=f.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new b(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}u.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},u.prototype.get_line_number=function(){return this.__lines.length},u.prototype.get_indent_string=function(f,a){return this.__indent_cache.get_indent_string(f,a)},u.prototype.get_indent_size=function(f,a){return this.__indent_cache.get_indent_size(f,a)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(f){return this.is_empty()||!f&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.prototype.get_code=function(f){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===` `&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(` `);return f!==` @@ -350,30 +350,30 @@ You passed in: '`+this.raw_options[f]+"'");return d},b.prototype._is_valid_selec `&&((y===0||y0&&this._indentLevel--},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var k=this._source_text,w=this._options.eol;w==="auto"&&(w=` `,k&&s.test(k||"")&&(w=k.match(s)[0])),k=k.replace(n,` `);var y=k.match(/^[\t ]*/)[0];this._output=new f(this._options,y),this._input=new a(k),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var h=0,p=!1,v=!1,_=!1,E=!1,g=!1,j=!1,U=this._ch,S=!1,z,H,M;z=this._input.read(c),H=z!=="",M=U,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),U=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var V=this._input.read(x),K=d.get_directives(V);K&&K.ignore==="start"&&(V+=d.readIgnored(this._input)),this.print_string(V),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(A)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(H),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var $=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);$.match(/[ :]$/)&&($=this.eatString(": ").replace(/\s$/,""),this.print_string($),this._output.space_before_token=!0),$=$.replace(/\s$/,""),$==="extend"?E=!0:$==="import"&&(g=!0),$ in this.NESTED_AT_RULE?(this._nestedLevel+=1,$ in this.CONDITIONAL_GROUP_RULE&&(_=!0)):!p&&h===0&&$.indexOf(":")!==-1&&(v=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(H),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")v&&(v=!1,this.outdent()),_?(_=!1,p=this._indentLevel>=this._nestedLevel):p=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&p&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(M==="("?this._output.space_before_token=!1:M!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),M==="{"&&this._output.trim(!0),g=!1,E=!1,v&&(this.outdent(),v=!1),this.print_string(this._ch),p=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var Z=0;Z"||this._ch==="+"||this._ch==="~")&&!v&&h===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&l.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(H),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),l.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var fe=M==='"'||M==="'";this.preserveSingleSpace(fe||H),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` -`&&S&&this._output.add_new_line()}var ye=this._output.get_code(w);return ye},t.exports.Beautifier=C},function(t,b,o){var u=o(6).Options;function f(a){u.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var i=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||i;var d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var s=0;s` ${o} `).trim():""}class P{constructor(t,b,o){this.id=t,this.definition=b,this.description=o,I.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var m;(function(t){t.iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9\\-]+",t.iconModifierExpression="~[A-Za-z]+";const b=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function o(a){if(a instanceof P)return["codicon","codicon-"+a.id];const i=b.exec(a.id);if(!i)return o(P.error);let[,d,s]=i;const n=["codicon","codicon-"+d];return s&&n.push("codicon-modifier-"+s.substr(1)),n}t.asClassNameArray=o;function u(a){return o(a).join(" ")}t.asClassName=u;function f(a){return"."+o(a).join(".")}t.asCSSSelector=f})(m||(m={})),function(t){t.add=new t("add",{fontCharacter:"\\ea60"}),t.plus=new t("plus",t.add.definition),t.gistNew=new t("gist-new",t.add.definition),t.repoCreate=new t("repo-create",t.add.definition),t.lightbulb=new t("lightbulb",{fontCharacter:"\\ea61"}),t.lightBulb=new t("light-bulb",{fontCharacter:"\\ea61"}),t.repo=new t("repo",{fontCharacter:"\\ea62"}),t.repoDelete=new t("repo-delete",{fontCharacter:"\\ea62"}),t.gistFork=new t("gist-fork",{fontCharacter:"\\ea63"}),t.repoForked=new t("repo-forked",{fontCharacter:"\\ea63"}),t.gitPullRequest=new t("git-pull-request",{fontCharacter:"\\ea64"}),t.gitPullRequestAbandoned=new t("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),t.recordKeys=new t("record-keys",{fontCharacter:"\\ea65"}),t.keyboard=new t("keyboard",{fontCharacter:"\\ea65"}),t.tag=new t("tag",{fontCharacter:"\\ea66"}),t.tagAdd=new t("tag-add",{fontCharacter:"\\ea66"}),t.tagRemove=new t("tag-remove",{fontCharacter:"\\ea66"}),t.person=new t("person",{fontCharacter:"\\ea67"}),t.personFollow=new t("person-follow",{fontCharacter:"\\ea67"}),t.personOutline=new t("person-outline",{fontCharacter:"\\ea67"}),t.personFilled=new t("person-filled",{fontCharacter:"\\ea67"}),t.gitBranch=new t("git-branch",{fontCharacter:"\\ea68"}),t.gitBranchCreate=new t("git-branch-create",{fontCharacter:"\\ea68"}),t.gitBranchDelete=new t("git-branch-delete",{fontCharacter:"\\ea68"}),t.sourceControl=new t("source-control",{fontCharacter:"\\ea68"}),t.mirror=new t("mirror",{fontCharacter:"\\ea69"}),t.mirrorPublic=new t("mirror-public",{fontCharacter:"\\ea69"}),t.star=new t("star",{fontCharacter:"\\ea6a"}),t.starAdd=new t("star-add",{fontCharacter:"\\ea6a"}),t.starDelete=new t("star-delete",{fontCharacter:"\\ea6a"}),t.starEmpty=new t("star-empty",{fontCharacter:"\\ea6a"}),t.comment=new t("comment",{fontCharacter:"\\ea6b"}),t.commentAdd=new t("comment-add",{fontCharacter:"\\ea6b"}),t.alert=new t("alert",{fontCharacter:"\\ea6c"}),t.warning=new t("warning",{fontCharacter:"\\ea6c"}),t.search=new t("search",{fontCharacter:"\\ea6d"}),t.searchSave=new t("search-save",{fontCharacter:"\\ea6d"}),t.logOut=new t("log-out",{fontCharacter:"\\ea6e"}),t.signOut=new t("sign-out",{fontCharacter:"\\ea6e"}),t.logIn=new t("log-in",{fontCharacter:"\\ea6f"}),t.signIn=new t("sign-in",{fontCharacter:"\\ea6f"}),t.eye=new t("eye",{fontCharacter:"\\ea70"}),t.eyeUnwatch=new t("eye-unwatch",{fontCharacter:"\\ea70"}),t.eyeWatch=new t("eye-watch",{fontCharacter:"\\ea70"}),t.circleFilled=new t("circle-filled",{fontCharacter:"\\ea71"}),t.primitiveDot=new t("primitive-dot",{fontCharacter:"\\ea71"}),t.closeDirty=new t("close-dirty",{fontCharacter:"\\ea71"}),t.debugBreakpoint=new t("debug-breakpoint",{fontCharacter:"\\ea71"}),t.debugBreakpointDisabled=new t("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),t.debugHint=new t("debug-hint",{fontCharacter:"\\ea71"}),t.primitiveSquare=new t("primitive-square",{fontCharacter:"\\ea72"}),t.edit=new t("edit",{fontCharacter:"\\ea73"}),t.pencil=new t("pencil",{fontCharacter:"\\ea73"}),t.info=new t("info",{fontCharacter:"\\ea74"}),t.issueOpened=new t("issue-opened",{fontCharacter:"\\ea74"}),t.gistPrivate=new t("gist-private",{fontCharacter:"\\ea75"}),t.gitForkPrivate=new t("git-fork-private",{fontCharacter:"\\ea75"}),t.lock=new t("lock",{fontCharacter:"\\ea75"}),t.mirrorPrivate=new t("mirror-private",{fontCharacter:"\\ea75"}),t.close=new t("close",{fontCharacter:"\\ea76"}),t.removeClose=new t("remove-close",{fontCharacter:"\\ea76"}),t.x=new t("x",{fontCharacter:"\\ea76"}),t.repoSync=new t("repo-sync",{fontCharacter:"\\ea77"}),t.sync=new t("sync",{fontCharacter:"\\ea77"}),t.clone=new t("clone",{fontCharacter:"\\ea78"}),t.desktopDownload=new t("desktop-download",{fontCharacter:"\\ea78"}),t.beaker=new t("beaker",{fontCharacter:"\\ea79"}),t.microscope=new t("microscope",{fontCharacter:"\\ea79"}),t.vm=new t("vm",{fontCharacter:"\\ea7a"}),t.deviceDesktop=new t("device-desktop",{fontCharacter:"\\ea7a"}),t.file=new t("file",{fontCharacter:"\\ea7b"}),t.fileText=new t("file-text",{fontCharacter:"\\ea7b"}),t.more=new t("more",{fontCharacter:"\\ea7c"}),t.ellipsis=new t("ellipsis",{fontCharacter:"\\ea7c"}),t.kebabHorizontal=new t("kebab-horizontal",{fontCharacter:"\\ea7c"}),t.mailReply=new t("mail-reply",{fontCharacter:"\\ea7d"}),t.reply=new t("reply",{fontCharacter:"\\ea7d"}),t.organization=new t("organization",{fontCharacter:"\\ea7e"}),t.organizationFilled=new t("organization-filled",{fontCharacter:"\\ea7e"}),t.organizationOutline=new t("organization-outline",{fontCharacter:"\\ea7e"}),t.newFile=new t("new-file",{fontCharacter:"\\ea7f"}),t.fileAdd=new t("file-add",{fontCharacter:"\\ea7f"}),t.newFolder=new t("new-folder",{fontCharacter:"\\ea80"}),t.fileDirectoryCreate=new t("file-directory-create",{fontCharacter:"\\ea80"}),t.trash=new t("trash",{fontCharacter:"\\ea81"}),t.trashcan=new t("trashcan",{fontCharacter:"\\ea81"}),t.history=new t("history",{fontCharacter:"\\ea82"}),t.clock=new t("clock",{fontCharacter:"\\ea82"}),t.folder=new t("folder",{fontCharacter:"\\ea83"}),t.fileDirectory=new t("file-directory",{fontCharacter:"\\ea83"}),t.symbolFolder=new t("symbol-folder",{fontCharacter:"\\ea83"}),t.logoGithub=new t("logo-github",{fontCharacter:"\\ea84"}),t.markGithub=new t("mark-github",{fontCharacter:"\\ea84"}),t.github=new t("github",{fontCharacter:"\\ea84"}),t.terminal=new t("terminal",{fontCharacter:"\\ea85"}),t.console=new t("console",{fontCharacter:"\\ea85"}),t.repl=new t("repl",{fontCharacter:"\\ea85"}),t.zap=new t("zap",{fontCharacter:"\\ea86"}),t.symbolEvent=new t("symbol-event",{fontCharacter:"\\ea86"}),t.error=new t("error",{fontCharacter:"\\ea87"}),t.stop=new t("stop",{fontCharacter:"\\ea87"}),t.variable=new t("variable",{fontCharacter:"\\ea88"}),t.symbolVariable=new t("symbol-variable",{fontCharacter:"\\ea88"}),t.array=new t("array",{fontCharacter:"\\ea8a"}),t.symbolArray=new t("symbol-array",{fontCharacter:"\\ea8a"}),t.symbolModule=new t("symbol-module",{fontCharacter:"\\ea8b"}),t.symbolPackage=new t("symbol-package",{fontCharacter:"\\ea8b"}),t.symbolNamespace=new t("symbol-namespace",{fontCharacter:"\\ea8b"}),t.symbolObject=new t("symbol-object",{fontCharacter:"\\ea8b"}),t.symbolMethod=new t("symbol-method",{fontCharacter:"\\ea8c"}),t.symbolFunction=new t("symbol-function",{fontCharacter:"\\ea8c"}),t.symbolConstructor=new t("symbol-constructor",{fontCharacter:"\\ea8c"}),t.symbolBoolean=new t("symbol-boolean",{fontCharacter:"\\ea8f"}),t.symbolNull=new t("symbol-null",{fontCharacter:"\\ea8f"}),t.symbolNumeric=new t("symbol-numeric",{fontCharacter:"\\ea90"}),t.symbolNumber=new t("symbol-number",{fontCharacter:"\\ea90"}),t.symbolStructure=new t("symbol-structure",{fontCharacter:"\\ea91"}),t.symbolStruct=new t("symbol-struct",{fontCharacter:"\\ea91"}),t.symbolParameter=new t("symbol-parameter",{fontCharacter:"\\ea92"}),t.symbolTypeParameter=new t("symbol-type-parameter",{fontCharacter:"\\ea92"}),t.symbolKey=new t("symbol-key",{fontCharacter:"\\ea93"}),t.symbolText=new t("symbol-text",{fontCharacter:"\\ea93"}),t.symbolReference=new t("symbol-reference",{fontCharacter:"\\ea94"}),t.goToFile=new t("go-to-file",{fontCharacter:"\\ea94"}),t.symbolEnum=new t("symbol-enum",{fontCharacter:"\\ea95"}),t.symbolValue=new t("symbol-value",{fontCharacter:"\\ea95"}),t.symbolRuler=new t("symbol-ruler",{fontCharacter:"\\ea96"}),t.symbolUnit=new t("symbol-unit",{fontCharacter:"\\ea96"}),t.activateBreakpoints=new t("activate-breakpoints",{fontCharacter:"\\ea97"}),t.archive=new t("archive",{fontCharacter:"\\ea98"}),t.arrowBoth=new t("arrow-both",{fontCharacter:"\\ea99"}),t.arrowDown=new t("arrow-down",{fontCharacter:"\\ea9a"}),t.arrowLeft=new t("arrow-left",{fontCharacter:"\\ea9b"}),t.arrowRight=new t("arrow-right",{fontCharacter:"\\ea9c"}),t.arrowSmallDown=new t("arrow-small-down",{fontCharacter:"\\ea9d"}),t.arrowSmallLeft=new t("arrow-small-left",{fontCharacter:"\\ea9e"}),t.arrowSmallRight=new t("arrow-small-right",{fontCharacter:"\\ea9f"}),t.arrowSmallUp=new t("arrow-small-up",{fontCharacter:"\\eaa0"}),t.arrowUp=new t("arrow-up",{fontCharacter:"\\eaa1"}),t.bell=new t("bell",{fontCharacter:"\\eaa2"}),t.bold=new t("bold",{fontCharacter:"\\eaa3"}),t.book=new t("book",{fontCharacter:"\\eaa4"}),t.bookmark=new t("bookmark",{fontCharacter:"\\eaa5"}),t.debugBreakpointConditionalUnverified=new t("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),t.debugBreakpointConditional=new t("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),t.debugBreakpointConditionalDisabled=new t("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),t.debugBreakpointDataUnverified=new t("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),t.debugBreakpointData=new t("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),t.debugBreakpointDataDisabled=new t("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),t.debugBreakpointLogUnverified=new t("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),t.debugBreakpointLog=new t("debug-breakpoint-log",{fontCharacter:"\\eaab"}),t.debugBreakpointLogDisabled=new t("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),t.briefcase=new t("briefcase",{fontCharacter:"\\eaac"}),t.broadcast=new t("broadcast",{fontCharacter:"\\eaad"}),t.browser=new t("browser",{fontCharacter:"\\eaae"}),t.bug=new t("bug",{fontCharacter:"\\eaaf"}),t.calendar=new t("calendar",{fontCharacter:"\\eab0"}),t.caseSensitive=new t("case-sensitive",{fontCharacter:"\\eab1"}),t.check=new t("check",{fontCharacter:"\\eab2"}),t.checklist=new t("checklist",{fontCharacter:"\\eab3"}),t.chevronDown=new t("chevron-down",{fontCharacter:"\\eab4"}),t.dropDownButton=new t("drop-down-button",t.chevronDown.definition),t.chevronLeft=new t("chevron-left",{fontCharacter:"\\eab5"}),t.chevronRight=new t("chevron-right",{fontCharacter:"\\eab6"}),t.chevronUp=new t("chevron-up",{fontCharacter:"\\eab7"}),t.chromeClose=new t("chrome-close",{fontCharacter:"\\eab8"}),t.chromeMaximize=new t("chrome-maximize",{fontCharacter:"\\eab9"}),t.chromeMinimize=new t("chrome-minimize",{fontCharacter:"\\eaba"}),t.chromeRestore=new t("chrome-restore",{fontCharacter:"\\eabb"}),t.circleOutline=new t("circle-outline",{fontCharacter:"\\eabc"}),t.debugBreakpointUnverified=new t("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),t.circleSlash=new t("circle-slash",{fontCharacter:"\\eabd"}),t.circuitBoard=new t("circuit-board",{fontCharacter:"\\eabe"}),t.clearAll=new t("clear-all",{fontCharacter:"\\eabf"}),t.clippy=new t("clippy",{fontCharacter:"\\eac0"}),t.closeAll=new t("close-all",{fontCharacter:"\\eac1"}),t.cloudDownload=new t("cloud-download",{fontCharacter:"\\eac2"}),t.cloudUpload=new t("cloud-upload",{fontCharacter:"\\eac3"}),t.code=new t("code",{fontCharacter:"\\eac4"}),t.collapseAll=new t("collapse-all",{fontCharacter:"\\eac5"}),t.colorMode=new t("color-mode",{fontCharacter:"\\eac6"}),t.commentDiscussion=new t("comment-discussion",{fontCharacter:"\\eac7"}),t.compareChanges=new t("compare-changes",{fontCharacter:"\\eafd"}),t.creditCard=new t("credit-card",{fontCharacter:"\\eac9"}),t.dash=new t("dash",{fontCharacter:"\\eacc"}),t.dashboard=new t("dashboard",{fontCharacter:"\\eacd"}),t.database=new t("database",{fontCharacter:"\\eace"}),t.debugContinue=new t("debug-continue",{fontCharacter:"\\eacf"}),t.debugDisconnect=new t("debug-disconnect",{fontCharacter:"\\ead0"}),t.debugPause=new t("debug-pause",{fontCharacter:"\\ead1"}),t.debugRestart=new t("debug-restart",{fontCharacter:"\\ead2"}),t.debugStart=new t("debug-start",{fontCharacter:"\\ead3"}),t.debugStepInto=new t("debug-step-into",{fontCharacter:"\\ead4"}),t.debugStepOut=new t("debug-step-out",{fontCharacter:"\\ead5"}),t.debugStepOver=new t("debug-step-over",{fontCharacter:"\\ead6"}),t.debugStop=new t("debug-stop",{fontCharacter:"\\ead7"}),t.debug=new t("debug",{fontCharacter:"\\ead8"}),t.deviceCameraVideo=new t("device-camera-video",{fontCharacter:"\\ead9"}),t.deviceCamera=new t("device-camera",{fontCharacter:"\\eada"}),t.deviceMobile=new t("device-mobile",{fontCharacter:"\\eadb"}),t.diffAdded=new t("diff-added",{fontCharacter:"\\eadc"}),t.diffIgnored=new t("diff-ignored",{fontCharacter:"\\eadd"}),t.diffModified=new t("diff-modified",{fontCharacter:"\\eade"}),t.diffRemoved=new t("diff-removed",{fontCharacter:"\\eadf"}),t.diffRenamed=new t("diff-renamed",{fontCharacter:"\\eae0"}),t.diff=new t("diff",{fontCharacter:"\\eae1"}),t.discard=new t("discard",{fontCharacter:"\\eae2"}),t.editorLayout=new t("editor-layout",{fontCharacter:"\\eae3"}),t.emptyWindow=new t("empty-window",{fontCharacter:"\\eae4"}),t.exclude=new t("exclude",{fontCharacter:"\\eae5"}),t.extensions=new t("extensions",{fontCharacter:"\\eae6"}),t.eyeClosed=new t("eye-closed",{fontCharacter:"\\eae7"}),t.fileBinary=new t("file-binary",{fontCharacter:"\\eae8"}),t.fileCode=new t("file-code",{fontCharacter:"\\eae9"}),t.fileMedia=new t("file-media",{fontCharacter:"\\eaea"}),t.filePdf=new t("file-pdf",{fontCharacter:"\\eaeb"}),t.fileSubmodule=new t("file-submodule",{fontCharacter:"\\eaec"}),t.fileSymlinkDirectory=new t("file-symlink-directory",{fontCharacter:"\\eaed"}),t.fileSymlinkFile=new t("file-symlink-file",{fontCharacter:"\\eaee"}),t.fileZip=new t("file-zip",{fontCharacter:"\\eaef"}),t.files=new t("files",{fontCharacter:"\\eaf0"}),t.filter=new t("filter",{fontCharacter:"\\eaf1"}),t.flame=new t("flame",{fontCharacter:"\\eaf2"}),t.foldDown=new t("fold-down",{fontCharacter:"\\eaf3"}),t.foldUp=new t("fold-up",{fontCharacter:"\\eaf4"}),t.fold=new t("fold",{fontCharacter:"\\eaf5"}),t.folderActive=new t("folder-active",{fontCharacter:"\\eaf6"}),t.folderOpened=new t("folder-opened",{fontCharacter:"\\eaf7"}),t.gear=new t("gear",{fontCharacter:"\\eaf8"}),t.gift=new t("gift",{fontCharacter:"\\eaf9"}),t.gistSecret=new t("gist-secret",{fontCharacter:"\\eafa"}),t.gist=new t("gist",{fontCharacter:"\\eafb"}),t.gitCommit=new t("git-commit",{fontCharacter:"\\eafc"}),t.gitCompare=new t("git-compare",{fontCharacter:"\\eafd"}),t.gitMerge=new t("git-merge",{fontCharacter:"\\eafe"}),t.githubAction=new t("github-action",{fontCharacter:"\\eaff"}),t.githubAlt=new t("github-alt",{fontCharacter:"\\eb00"}),t.globe=new t("globe",{fontCharacter:"\\eb01"}),t.grabber=new t("grabber",{fontCharacter:"\\eb02"}),t.graph=new t("graph",{fontCharacter:"\\eb03"}),t.gripper=new t("gripper",{fontCharacter:"\\eb04"}),t.heart=new t("heart",{fontCharacter:"\\eb05"}),t.home=new t("home",{fontCharacter:"\\eb06"}),t.horizontalRule=new t("horizontal-rule",{fontCharacter:"\\eb07"}),t.hubot=new t("hubot",{fontCharacter:"\\eb08"}),t.inbox=new t("inbox",{fontCharacter:"\\eb09"}),t.issueClosed=new t("issue-closed",{fontCharacter:"\\eba4"}),t.issueReopened=new t("issue-reopened",{fontCharacter:"\\eb0b"}),t.issues=new t("issues",{fontCharacter:"\\eb0c"}),t.italic=new t("italic",{fontCharacter:"\\eb0d"}),t.jersey=new t("jersey",{fontCharacter:"\\eb0e"}),t.json=new t("json",{fontCharacter:"\\eb0f"}),t.kebabVertical=new t("kebab-vertical",{fontCharacter:"\\eb10"}),t.key=new t("key",{fontCharacter:"\\eb11"}),t.law=new t("law",{fontCharacter:"\\eb12"}),t.lightbulbAutofix=new t("lightbulb-autofix",{fontCharacter:"\\eb13"}),t.linkExternal=new t("link-external",{fontCharacter:"\\eb14"}),t.link=new t("link",{fontCharacter:"\\eb15"}),t.listOrdered=new t("list-ordered",{fontCharacter:"\\eb16"}),t.listUnordered=new t("list-unordered",{fontCharacter:"\\eb17"}),t.liveShare=new t("live-share",{fontCharacter:"\\eb18"}),t.loading=new t("loading",{fontCharacter:"\\eb19"}),t.location=new t("location",{fontCharacter:"\\eb1a"}),t.mailRead=new t("mail-read",{fontCharacter:"\\eb1b"}),t.mail=new t("mail",{fontCharacter:"\\eb1c"}),t.markdown=new t("markdown",{fontCharacter:"\\eb1d"}),t.megaphone=new t("megaphone",{fontCharacter:"\\eb1e"}),t.mention=new t("mention",{fontCharacter:"\\eb1f"}),t.milestone=new t("milestone",{fontCharacter:"\\eb20"}),t.mortarBoard=new t("mortar-board",{fontCharacter:"\\eb21"}),t.move=new t("move",{fontCharacter:"\\eb22"}),t.multipleWindows=new t("multiple-windows",{fontCharacter:"\\eb23"}),t.mute=new t("mute",{fontCharacter:"\\eb24"}),t.noNewline=new t("no-newline",{fontCharacter:"\\eb25"}),t.note=new t("note",{fontCharacter:"\\eb26"}),t.octoface=new t("octoface",{fontCharacter:"\\eb27"}),t.openPreview=new t("open-preview",{fontCharacter:"\\eb28"}),t.package_=new t("package",{fontCharacter:"\\eb29"}),t.paintcan=new t("paintcan",{fontCharacter:"\\eb2a"}),t.pin=new t("pin",{fontCharacter:"\\eb2b"}),t.play=new t("play",{fontCharacter:"\\eb2c"}),t.run=new t("run",{fontCharacter:"\\eb2c"}),t.plug=new t("plug",{fontCharacter:"\\eb2d"}),t.preserveCase=new t("preserve-case",{fontCharacter:"\\eb2e"}),t.preview=new t("preview",{fontCharacter:"\\eb2f"}),t.project=new t("project",{fontCharacter:"\\eb30"}),t.pulse=new t("pulse",{fontCharacter:"\\eb31"}),t.question=new t("question",{fontCharacter:"\\eb32"}),t.quote=new t("quote",{fontCharacter:"\\eb33"}),t.radioTower=new t("radio-tower",{fontCharacter:"\\eb34"}),t.reactions=new t("reactions",{fontCharacter:"\\eb35"}),t.references=new t("references",{fontCharacter:"\\eb36"}),t.refresh=new t("refresh",{fontCharacter:"\\eb37"}),t.regex=new t("regex",{fontCharacter:"\\eb38"}),t.remoteExplorer=new t("remote-explorer",{fontCharacter:"\\eb39"}),t.remote=new t("remote",{fontCharacter:"\\eb3a"}),t.remove=new t("remove",{fontCharacter:"\\eb3b"}),t.replaceAll=new t("replace-all",{fontCharacter:"\\eb3c"}),t.replace=new t("replace",{fontCharacter:"\\eb3d"}),t.repoClone=new t("repo-clone",{fontCharacter:"\\eb3e"}),t.repoForcePush=new t("repo-force-push",{fontCharacter:"\\eb3f"}),t.repoPull=new t("repo-pull",{fontCharacter:"\\eb40"}),t.repoPush=new t("repo-push",{fontCharacter:"\\eb41"}),t.report=new t("report",{fontCharacter:"\\eb42"}),t.requestChanges=new t("request-changes",{fontCharacter:"\\eb43"}),t.rocket=new t("rocket",{fontCharacter:"\\eb44"}),t.rootFolderOpened=new t("root-folder-opened",{fontCharacter:"\\eb45"}),t.rootFolder=new t("root-folder",{fontCharacter:"\\eb46"}),t.rss=new t("rss",{fontCharacter:"\\eb47"}),t.ruby=new t("ruby",{fontCharacter:"\\eb48"}),t.saveAll=new t("save-all",{fontCharacter:"\\eb49"}),t.saveAs=new t("save-as",{fontCharacter:"\\eb4a"}),t.save=new t("save",{fontCharacter:"\\eb4b"}),t.screenFull=new t("screen-full",{fontCharacter:"\\eb4c"}),t.screenNormal=new t("screen-normal",{fontCharacter:"\\eb4d"}),t.searchStop=new t("search-stop",{fontCharacter:"\\eb4e"}),t.server=new t("server",{fontCharacter:"\\eb50"}),t.settingsGear=new t("settings-gear",{fontCharacter:"\\eb51"}),t.settings=new t("settings",{fontCharacter:"\\eb52"}),t.shield=new t("shield",{fontCharacter:"\\eb53"}),t.smiley=new t("smiley",{fontCharacter:"\\eb54"}),t.sortPrecedence=new t("sort-precedence",{fontCharacter:"\\eb55"}),t.splitHorizontal=new t("split-horizontal",{fontCharacter:"\\eb56"}),t.splitVertical=new t("split-vertical",{fontCharacter:"\\eb57"}),t.squirrel=new t("squirrel",{fontCharacter:"\\eb58"}),t.starFull=new t("star-full",{fontCharacter:"\\eb59"}),t.starHalf=new t("star-half",{fontCharacter:"\\eb5a"}),t.symbolClass=new t("symbol-class",{fontCharacter:"\\eb5b"}),t.symbolColor=new t("symbol-color",{fontCharacter:"\\eb5c"}),t.symbolConstant=new t("symbol-constant",{fontCharacter:"\\eb5d"}),t.symbolEnumMember=new t("symbol-enum-member",{fontCharacter:"\\eb5e"}),t.symbolField=new t("symbol-field",{fontCharacter:"\\eb5f"}),t.symbolFile=new t("symbol-file",{fontCharacter:"\\eb60"}),t.symbolInterface=new t("symbol-interface",{fontCharacter:"\\eb61"}),t.symbolKeyword=new t("symbol-keyword",{fontCharacter:"\\eb62"}),t.symbolMisc=new t("symbol-misc",{fontCharacter:"\\eb63"}),t.symbolOperator=new t("symbol-operator",{fontCharacter:"\\eb64"}),t.symbolProperty=new t("symbol-property",{fontCharacter:"\\eb65"}),t.wrench=new t("wrench",{fontCharacter:"\\eb65"}),t.wrenchSubaction=new t("wrench-subaction",{fontCharacter:"\\eb65"}),t.symbolSnippet=new t("symbol-snippet",{fontCharacter:"\\eb66"}),t.tasklist=new t("tasklist",{fontCharacter:"\\eb67"}),t.telescope=new t("telescope",{fontCharacter:"\\eb68"}),t.textSize=new t("text-size",{fontCharacter:"\\eb69"}),t.threeBars=new t("three-bars",{fontCharacter:"\\eb6a"}),t.thumbsdown=new t("thumbsdown",{fontCharacter:"\\eb6b"}),t.thumbsup=new t("thumbsup",{fontCharacter:"\\eb6c"}),t.tools=new t("tools",{fontCharacter:"\\eb6d"}),t.triangleDown=new t("triangle-down",{fontCharacter:"\\eb6e"}),t.triangleLeft=new t("triangle-left",{fontCharacter:"\\eb6f"}),t.triangleRight=new t("triangle-right",{fontCharacter:"\\eb70"}),t.triangleUp=new t("triangle-up",{fontCharacter:"\\eb71"}),t.twitter=new t("twitter",{fontCharacter:"\\eb72"}),t.unfold=new t("unfold",{fontCharacter:"\\eb73"}),t.unlock=new t("unlock",{fontCharacter:"\\eb74"}),t.unmute=new t("unmute",{fontCharacter:"\\eb75"}),t.unverified=new t("unverified",{fontCharacter:"\\eb76"}),t.verified=new t("verified",{fontCharacter:"\\eb77"}),t.versions=new t("versions",{fontCharacter:"\\eb78"}),t.vmActive=new t("vm-active",{fontCharacter:"\\eb79"}),t.vmOutline=new t("vm-outline",{fontCharacter:"\\eb7a"}),t.vmRunning=new t("vm-running",{fontCharacter:"\\eb7b"}),t.watch=new t("watch",{fontCharacter:"\\eb7c"}),t.whitespace=new t("whitespace",{fontCharacter:"\\eb7d"}),t.wholeWord=new t("whole-word",{fontCharacter:"\\eb7e"}),t.window=new t("window",{fontCharacter:"\\eb7f"}),t.wordWrap=new t("word-wrap",{fontCharacter:"\\eb80"}),t.zoomIn=new t("zoom-in",{fontCharacter:"\\eb81"}),t.zoomOut=new t("zoom-out",{fontCharacter:"\\eb82"}),t.listFilter=new t("list-filter",{fontCharacter:"\\eb83"}),t.listFlat=new t("list-flat",{fontCharacter:"\\eb84"}),t.listSelection=new t("list-selection",{fontCharacter:"\\eb85"}),t.selection=new t("selection",{fontCharacter:"\\eb85"}),t.listTree=new t("list-tree",{fontCharacter:"\\eb86"}),t.debugBreakpointFunctionUnverified=new t("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),t.debugBreakpointFunction=new t("debug-breakpoint-function",{fontCharacter:"\\eb88"}),t.debugBreakpointFunctionDisabled=new t("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),t.debugStackframeActive=new t("debug-stackframe-active",{fontCharacter:"\\eb89"}),t.debugStackframeDot=new t("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),t.debugStackframe=new t("debug-stackframe",{fontCharacter:"\\eb8b"}),t.debugStackframeFocused=new t("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),t.debugBreakpointUnsupported=new t("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),t.symbolString=new t("symbol-string",{fontCharacter:"\\eb8d"}),t.debugReverseContinue=new t("debug-reverse-continue",{fontCharacter:"\\eb8e"}),t.debugStepBack=new t("debug-step-back",{fontCharacter:"\\eb8f"}),t.debugRestartFrame=new t("debug-restart-frame",{fontCharacter:"\\eb90"}),t.callIncoming=new t("call-incoming",{fontCharacter:"\\eb92"}),t.callOutgoing=new t("call-outgoing",{fontCharacter:"\\eb93"}),t.menu=new t("menu",{fontCharacter:"\\eb94"}),t.expandAll=new t("expand-all",{fontCharacter:"\\eb95"}),t.feedback=new t("feedback",{fontCharacter:"\\eb96"}),t.groupByRefType=new t("group-by-ref-type",{fontCharacter:"\\eb97"}),t.ungroupByRefType=new t("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),t.account=new t("account",{fontCharacter:"\\eb99"}),t.bellDot=new t("bell-dot",{fontCharacter:"\\eb9a"}),t.debugConsole=new t("debug-console",{fontCharacter:"\\eb9b"}),t.library=new t("library",{fontCharacter:"\\eb9c"}),t.output=new t("output",{fontCharacter:"\\eb9d"}),t.runAll=new t("run-all",{fontCharacter:"\\eb9e"}),t.syncIgnored=new t("sync-ignored",{fontCharacter:"\\eb9f"}),t.pinned=new t("pinned",{fontCharacter:"\\eba0"}),t.githubInverted=new t("github-inverted",{fontCharacter:"\\eba1"}),t.debugAlt=new t("debug-alt",{fontCharacter:"\\eb91"}),t.serverProcess=new t("server-process",{fontCharacter:"\\eba2"}),t.serverEnvironment=new t("server-environment",{fontCharacter:"\\eba3"}),t.pass=new t("pass",{fontCharacter:"\\eba4"}),t.stopCircle=new t("stop-circle",{fontCharacter:"\\eba5"}),t.playCircle=new t("play-circle",{fontCharacter:"\\eba6"}),t.record=new t("record",{fontCharacter:"\\eba7"}),t.debugAltSmall=new t("debug-alt-small",{fontCharacter:"\\eba8"}),t.vmConnect=new t("vm-connect",{fontCharacter:"\\eba9"}),t.cloud=new t("cloud",{fontCharacter:"\\ebaa"}),t.merge=new t("merge",{fontCharacter:"\\ebab"}),t.exportIcon=new t("export",{fontCharacter:"\\ebac"}),t.graphLeft=new t("graph-left",{fontCharacter:"\\ebad"}),t.magnet=new t("magnet",{fontCharacter:"\\ebae"}),t.notebook=new t("notebook",{fontCharacter:"\\ebaf"}),t.redo=new t("redo",{fontCharacter:"\\ebb0"}),t.checkAll=new t("check-all",{fontCharacter:"\\ebb1"}),t.pinnedDirty=new t("pinned-dirty",{fontCharacter:"\\ebb2"}),t.passFilled=new t("pass-filled",{fontCharacter:"\\ebb3"}),t.circleLargeFilled=new t("circle-large-filled",{fontCharacter:"\\ebb4"}),t.circleLargeOutline=new t("circle-large-outline",{fontCharacter:"\\ebb5"}),t.combine=new t("combine",{fontCharacter:"\\ebb6"}),t.gather=new t("gather",{fontCharacter:"\\ebb6"}),t.table=new t("table",{fontCharacter:"\\ebb7"}),t.variableGroup=new t("variable-group",{fontCharacter:"\\ebb8"}),t.typeHierarchy=new t("type-hierarchy",{fontCharacter:"\\ebb9"}),t.typeHierarchySub=new t("type-hierarchy-sub",{fontCharacter:"\\ebba"}),t.typeHierarchySuper=new t("type-hierarchy-super",{fontCharacter:"\\ebbb"}),t.gitPullRequestCreate=new t("git-pull-request-create",{fontCharacter:"\\ebbc"}),t.runAbove=new t("run-above",{fontCharacter:"\\ebbd"}),t.runBelow=new t("run-below",{fontCharacter:"\\ebbe"}),t.notebookTemplate=new t("notebook-template",{fontCharacter:"\\ebbf"}),t.debugRerun=new t("debug-rerun",{fontCharacter:"\\ebc0"}),t.workspaceTrusted=new t("workspace-trusted",{fontCharacter:"\\ebc1"}),t.workspaceUntrusted=new t("workspace-untrusted",{fontCharacter:"\\ebc2"}),t.workspaceUnspecified=new t("workspace-unspecified",{fontCharacter:"\\ebc3"}),t.terminalCmd=new t("terminal-cmd",{fontCharacter:"\\ebc4"}),t.terminalDebian=new t("terminal-debian",{fontCharacter:"\\ebc5"}),t.terminalLinux=new t("terminal-linux",{fontCharacter:"\\ebc6"}),t.terminalPowershell=new t("terminal-powershell",{fontCharacter:"\\ebc7"}),t.terminalTmux=new t("terminal-tmux",{fontCharacter:"\\ebc8"}),t.terminalUbuntu=new t("terminal-ubuntu",{fontCharacter:"\\ebc9"}),t.terminalBash=new t("terminal-bash",{fontCharacter:"\\ebca"}),t.arrowSwap=new t("arrow-swap",{fontCharacter:"\\ebcb"}),t.copy=new t("copy",{fontCharacter:"\\ebcc"}),t.personAdd=new t("person-add",{fontCharacter:"\\ebcd"}),t.filterFilled=new t("filter-filled",{fontCharacter:"\\ebce"}),t.wand=new t("wand",{fontCharacter:"\\ebcf"}),t.debugLineByLine=new t("debug-line-by-line",{fontCharacter:"\\ebd0"}),t.inspect=new t("inspect",{fontCharacter:"\\ebd1"}),t.layers=new t("layers",{fontCharacter:"\\ebd2"}),t.layersDot=new t("layers-dot",{fontCharacter:"\\ebd3"}),t.layersActive=new t("layers-active",{fontCharacter:"\\ebd4"}),t.compass=new t("compass",{fontCharacter:"\\ebd5"}),t.compassDot=new t("compass-dot",{fontCharacter:"\\ebd6"}),t.compassActive=new t("compass-active",{fontCharacter:"\\ebd7"}),t.azure=new t("azure",{fontCharacter:"\\ebd8"}),t.issueDraft=new t("issue-draft",{fontCharacter:"\\ebd9"}),t.gitPullRequestClosed=new t("git-pull-request-closed",{fontCharacter:"\\ebda"}),t.gitPullRequestDraft=new t("git-pull-request-draft",{fontCharacter:"\\ebdb"}),t.debugAll=new t("debug-all",{fontCharacter:"\\ebdc"}),t.debugCoverage=new t("debug-coverage",{fontCharacter:"\\ebdd"}),t.runErrors=new t("run-errors",{fontCharacter:"\\ebde"}),t.folderLibrary=new t("folder-library",{fontCharacter:"\\ebdf"}),t.debugContinueSmall=new t("debug-continue-small",{fontCharacter:"\\ebe0"}),t.beakerStop=new t("beaker-stop",{fontCharacter:"\\ebe1"}),t.graphLine=new t("graph-line",{fontCharacter:"\\ebe2"}),t.graphScatter=new t("graph-scatter",{fontCharacter:"\\ebe3"}),t.pieChart=new t("pie-chart",{fontCharacter:"\\ebe4"}),t.bracket=new t("bracket",t.json.definition),t.bracketDot=new t("bracket-dot",{fontCharacter:"\\ebe5"}),t.bracketError=new t("bracket-error",{fontCharacter:"\\ebe6"}),t.lockSmall=new t("lock-small",{fontCharacter:"\\ebe7"}),t.azureDevops=new t("azure-devops",{fontCharacter:"\\ebe8"}),t.verifiedFilled=new t("verified-filled",{fontCharacter:"\\ebe9"})}(P||(P={}))},VpOo:function(Be,J){function L(Y,B){var I=B.x,F=B.y,T=B.width,R=B.height,P=B.r,m,t,b,o;T<0&&(I=I+T,T=-T),R<0&&(F=F+R,R=-R),typeof P=="number"?m=t=b=o=P:P instanceof Array?P.length===1?m=t=b=o=P[0]:P.length===2?(m=b=P[0],t=o=P[1]):P.length===3?(m=P[0],t=o=P[1],b=P[2]):(m=P[0],t=P[1],b=P[2],o=P[3]):m=t=b=o=0;var u;m+t>T&&(u=m+t,m*=T/u,t*=T/u),b+o>T&&(u=b+o,b*=T/u,o*=T/u),t+b>R&&(u=t+b,t*=R/u,b*=R/u),m+o>R&&(u=m+o,m*=R/u,o*=R/u),Y.moveTo(I+m,F),Y.lineTo(I+T-t,F),t!==0&&Y.arc(I+T-t,F+t,t,-Math.PI/2,0),Y.lineTo(I+T,F+R-b),b!==0&&Y.arc(I+T-b,F+R-b,b,0,Math.PI/2),Y.lineTo(I+o,F+R),o!==0&&Y.arc(I+o,F+R-o,o,Math.PI/2,Math.PI),Y.lineTo(I,F+m),m!==0&&Y.arc(I+m,F+m,m,Math.PI,Math.PI*1.5)}J.buildPath=L},"VrN/":function(Be,J,L){(function(Y,B){Be.exports=B()})(this,function(){"use strict";var Y=navigator.userAgent,B=navigator.platform,I=/gecko\/\d/i.test(Y),F=/MSIE \d/.test(Y),T=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Y),R=/Edge\/(\d+)/.exec(Y),P=F||T||R,m=P&&(F?document.documentMode||6:+(R||T)[1]),t=!R&&/WebKit\//.test(Y),b=t&&/Qt\/\d+\.\d+/.test(Y),o=!R&&/Chrome\//.test(Y),u=/Opera\//.test(Y),f=/Apple Computer/.test(navigator.vendor),a=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Y),i=/PhantomJS/.test(Y),d=!R&&/AppleWebKit/.test(Y)&&/Mobile\/\w+/.test(Y),s=/Android/.test(Y),n=d||s||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Y),l=d||/Mac/.test(B),c=/\bCrOS\b/.test(Y),x=/win/i.test(B),A=u&&Y.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(u=!1,t=!0);var C=l&&(b||u&&(A==null||A<12.11)),k=I||P&&m>=9;function w(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var y=function(e,r){var D=e.className,O=w(r).exec(D);if(O){var N=D.slice(O.index+O[0].length);e.className=D.slice(0,O.index)+(N?O[1]+N:"")}};function h(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function p(e,r){return h(e).appendChild(r)}function v(e,r,D,O){var N=document.createElement(e);if(D&&(N.className=D),O&&(N.style.cssText=O),typeof r=="string")N.appendChild(document.createTextNode(r));else if(r)for(var X=0;X=r)return q+(r-X);q+=re-X,q+=D-q%D,X=re+1}}var K=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};K.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},K.prototype.set=function(e,r){this.f=r;var D=+new Date+e;(!this.id||D=r)return O+Math.min(q,r-N);if(N+=X-O,N+=D-N%D,O=X+1,N>=r)return O}}var ve=[""];function de(e){for(;ve.length<=e;)ve.push(Qe(ve)+" ");return ve[e]}function Qe(e){return e[e.length-1]}function Rt(e,r){for(var D=[],O=0;O"\x80"&&(e.toUpperCase()!=e.toLowerCase()||He.test(e))}function ht(e,r){return r?r.source.indexOf("\\w")>-1&&ke(e)?!0:r.test(e):ke(e)}function ie(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var xe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function we(e){return e.charCodeAt(0)>=768&&xe.test(e)}function $e(e,r,D){for(;(D<0?r>0:rD?-1:1;;){if(r==D)return r;var N=(r+D)/2,X=O<0?Math.ceil(N):Math.floor(N);if(X==r)return e(X)?r:D;e(X)?D=X:r=X+O}}function vt(e,r,D,O){if(!e)return O(r,D,"ltr",0);for(var N=!1,X=0;Xr||r==D&&q.to==r)&&(O(Math.max(q.from,r),Math.min(q.to,D),q.level==1?"rtl":"ltr",X),N=!0)}N||O(r,D,"ltr")}var Ut=null;function We(e,r,D){var O;Ut=null;for(var N=0;Nr)return N;X.to==r&&(X.from!=X.to&&D=="before"?O=N:Ut=N),X.from==r&&(X.from!=X.to&&D!="before"?O=N:Ut=N)}return O!=null?O:Ut}var kt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function D(pe){return pe<=247?e.charAt(pe):1424<=pe&&pe<=1524?"R":1536<=pe&&pe<=1785?r.charAt(pe-1536):1774<=pe&&pe<=2220?"r":8192<=pe&&pe<=8203?"w":pe==8204?"b":"L"}var O=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,N=/[stwN]/,X=/[LRr]/,q=/[Lb1n]/,re=/[1n]/;function se(pe,Ve,tt){this.level=pe,this.from=Ve,this.to=tt}return function(pe,Ve){var tt=Ve=="ltr"?"L":"R";if(pe.length==0||Ve=="ltr"&&!O.test(pe))return!1;for(var Mt=pe.length,Tt=[],nn=0;nn-1&&(O[r]=N.slice(0,X).concat(N.slice(X+1)))}}}function Je(e,r){var D=ut(e,r);if(!D.length)return;for(var O=Array.prototype.slice.call(arguments,2),N=0;N0}function Oe(e){e.prototype.on=function(r,D){Ae(this,r,D)},e.prototype.off=function(r,D){_t(this,r,D)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function le(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function he(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function _e(e){ae(e),le(e)}function Se(e){return e.target||e.srcElement}function ze(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),l&&e.ctrlKey&&r==1&&(r=3),r}var Et=function(){if(P&&m<9)return!1;var e=v("div");return"draggable"in e||"dragDrop"in e}(),$t;function on(e){if($t==null){var r=v("span","\u200B");p(e,v("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&($t=r.offsetWidth<=1&&r.offsetHeight>2&&!(P&&m<8))}var D=$t?v("span","\u200B"):v("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return D.setAttribute("cm-text",""),D}var gt;function Kt(e){if(gt!=null)return gt;var r=p(e,document.createTextNode("A\u062EA")),D=E(r,0,1).getBoundingClientRect(),O=E(r,1,2).getBoundingClientRect();return h(e),!D||D.left==D.right?!1:gt=O.right-D.right<3}var Ot=` +`&&S&&this._output.add_new_line()}var ye=this._output.get_code(w);return ye},t.exports.Beautifier=C},function(t,b,o){var u=o(6).Options;function f(a){u.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var i=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||i;var d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var s=0;s` ${o} `).trim():""}class P{constructor(t,b,o){this.id=t,this.definition=b,this.description=o,I.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var m;(function(t){t.iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9\\-]+",t.iconModifierExpression="~[A-Za-z]+";const b=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function o(a){if(a instanceof P)return["codicon","codicon-"+a.id];const i=b.exec(a.id);if(!i)return o(P.error);let[,d,s]=i;const n=["codicon","codicon-"+d];return s&&n.push("codicon-modifier-"+s.substr(1)),n}t.asClassNameArray=o;function u(a){return o(a).join(" ")}t.asClassName=u;function f(a){return"."+o(a).join(".")}t.asCSSSelector=f})(m||(m={})),function(t){t.add=new t("add",{fontCharacter:"\\ea60"}),t.plus=new t("plus",t.add.definition),t.gistNew=new t("gist-new",t.add.definition),t.repoCreate=new t("repo-create",t.add.definition),t.lightbulb=new t("lightbulb",{fontCharacter:"\\ea61"}),t.lightBulb=new t("light-bulb",{fontCharacter:"\\ea61"}),t.repo=new t("repo",{fontCharacter:"\\ea62"}),t.repoDelete=new t("repo-delete",{fontCharacter:"\\ea62"}),t.gistFork=new t("gist-fork",{fontCharacter:"\\ea63"}),t.repoForked=new t("repo-forked",{fontCharacter:"\\ea63"}),t.gitPullRequest=new t("git-pull-request",{fontCharacter:"\\ea64"}),t.gitPullRequestAbandoned=new t("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),t.recordKeys=new t("record-keys",{fontCharacter:"\\ea65"}),t.keyboard=new t("keyboard",{fontCharacter:"\\ea65"}),t.tag=new t("tag",{fontCharacter:"\\ea66"}),t.tagAdd=new t("tag-add",{fontCharacter:"\\ea66"}),t.tagRemove=new t("tag-remove",{fontCharacter:"\\ea66"}),t.person=new t("person",{fontCharacter:"\\ea67"}),t.personFollow=new t("person-follow",{fontCharacter:"\\ea67"}),t.personOutline=new t("person-outline",{fontCharacter:"\\ea67"}),t.personFilled=new t("person-filled",{fontCharacter:"\\ea67"}),t.gitBranch=new t("git-branch",{fontCharacter:"\\ea68"}),t.gitBranchCreate=new t("git-branch-create",{fontCharacter:"\\ea68"}),t.gitBranchDelete=new t("git-branch-delete",{fontCharacter:"\\ea68"}),t.sourceControl=new t("source-control",{fontCharacter:"\\ea68"}),t.mirror=new t("mirror",{fontCharacter:"\\ea69"}),t.mirrorPublic=new t("mirror-public",{fontCharacter:"\\ea69"}),t.star=new t("star",{fontCharacter:"\\ea6a"}),t.starAdd=new t("star-add",{fontCharacter:"\\ea6a"}),t.starDelete=new t("star-delete",{fontCharacter:"\\ea6a"}),t.starEmpty=new t("star-empty",{fontCharacter:"\\ea6a"}),t.comment=new t("comment",{fontCharacter:"\\ea6b"}),t.commentAdd=new t("comment-add",{fontCharacter:"\\ea6b"}),t.alert=new t("alert",{fontCharacter:"\\ea6c"}),t.warning=new t("warning",{fontCharacter:"\\ea6c"}),t.search=new t("search",{fontCharacter:"\\ea6d"}),t.searchSave=new t("search-save",{fontCharacter:"\\ea6d"}),t.logOut=new t("log-out",{fontCharacter:"\\ea6e"}),t.signOut=new t("sign-out",{fontCharacter:"\\ea6e"}),t.logIn=new t("log-in",{fontCharacter:"\\ea6f"}),t.signIn=new t("sign-in",{fontCharacter:"\\ea6f"}),t.eye=new t("eye",{fontCharacter:"\\ea70"}),t.eyeUnwatch=new t("eye-unwatch",{fontCharacter:"\\ea70"}),t.eyeWatch=new t("eye-watch",{fontCharacter:"\\ea70"}),t.circleFilled=new t("circle-filled",{fontCharacter:"\\ea71"}),t.primitiveDot=new t("primitive-dot",{fontCharacter:"\\ea71"}),t.closeDirty=new t("close-dirty",{fontCharacter:"\\ea71"}),t.debugBreakpoint=new t("debug-breakpoint",{fontCharacter:"\\ea71"}),t.debugBreakpointDisabled=new t("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),t.debugHint=new t("debug-hint",{fontCharacter:"\\ea71"}),t.primitiveSquare=new t("primitive-square",{fontCharacter:"\\ea72"}),t.edit=new t("edit",{fontCharacter:"\\ea73"}),t.pencil=new t("pencil",{fontCharacter:"\\ea73"}),t.info=new t("info",{fontCharacter:"\\ea74"}),t.issueOpened=new t("issue-opened",{fontCharacter:"\\ea74"}),t.gistPrivate=new t("gist-private",{fontCharacter:"\\ea75"}),t.gitForkPrivate=new t("git-fork-private",{fontCharacter:"\\ea75"}),t.lock=new t("lock",{fontCharacter:"\\ea75"}),t.mirrorPrivate=new t("mirror-private",{fontCharacter:"\\ea75"}),t.close=new t("close",{fontCharacter:"\\ea76"}),t.removeClose=new t("remove-close",{fontCharacter:"\\ea76"}),t.x=new t("x",{fontCharacter:"\\ea76"}),t.repoSync=new t("repo-sync",{fontCharacter:"\\ea77"}),t.sync=new t("sync",{fontCharacter:"\\ea77"}),t.clone=new t("clone",{fontCharacter:"\\ea78"}),t.desktopDownload=new t("desktop-download",{fontCharacter:"\\ea78"}),t.beaker=new t("beaker",{fontCharacter:"\\ea79"}),t.microscope=new t("microscope",{fontCharacter:"\\ea79"}),t.vm=new t("vm",{fontCharacter:"\\ea7a"}),t.deviceDesktop=new t("device-desktop",{fontCharacter:"\\ea7a"}),t.file=new t("file",{fontCharacter:"\\ea7b"}),t.fileText=new t("file-text",{fontCharacter:"\\ea7b"}),t.more=new t("more",{fontCharacter:"\\ea7c"}),t.ellipsis=new t("ellipsis",{fontCharacter:"\\ea7c"}),t.kebabHorizontal=new t("kebab-horizontal",{fontCharacter:"\\ea7c"}),t.mailReply=new t("mail-reply",{fontCharacter:"\\ea7d"}),t.reply=new t("reply",{fontCharacter:"\\ea7d"}),t.organization=new t("organization",{fontCharacter:"\\ea7e"}),t.organizationFilled=new t("organization-filled",{fontCharacter:"\\ea7e"}),t.organizationOutline=new t("organization-outline",{fontCharacter:"\\ea7e"}),t.newFile=new t("new-file",{fontCharacter:"\\ea7f"}),t.fileAdd=new t("file-add",{fontCharacter:"\\ea7f"}),t.newFolder=new t("new-folder",{fontCharacter:"\\ea80"}),t.fileDirectoryCreate=new t("file-directory-create",{fontCharacter:"\\ea80"}),t.trash=new t("trash",{fontCharacter:"\\ea81"}),t.trashcan=new t("trashcan",{fontCharacter:"\\ea81"}),t.history=new t("history",{fontCharacter:"\\ea82"}),t.clock=new t("clock",{fontCharacter:"\\ea82"}),t.folder=new t("folder",{fontCharacter:"\\ea83"}),t.fileDirectory=new t("file-directory",{fontCharacter:"\\ea83"}),t.symbolFolder=new t("symbol-folder",{fontCharacter:"\\ea83"}),t.logoGithub=new t("logo-github",{fontCharacter:"\\ea84"}),t.markGithub=new t("mark-github",{fontCharacter:"\\ea84"}),t.github=new t("github",{fontCharacter:"\\ea84"}),t.terminal=new t("terminal",{fontCharacter:"\\ea85"}),t.console=new t("console",{fontCharacter:"\\ea85"}),t.repl=new t("repl",{fontCharacter:"\\ea85"}),t.zap=new t("zap",{fontCharacter:"\\ea86"}),t.symbolEvent=new t("symbol-event",{fontCharacter:"\\ea86"}),t.error=new t("error",{fontCharacter:"\\ea87"}),t.stop=new t("stop",{fontCharacter:"\\ea87"}),t.variable=new t("variable",{fontCharacter:"\\ea88"}),t.symbolVariable=new t("symbol-variable",{fontCharacter:"\\ea88"}),t.array=new t("array",{fontCharacter:"\\ea8a"}),t.symbolArray=new t("symbol-array",{fontCharacter:"\\ea8a"}),t.symbolModule=new t("symbol-module",{fontCharacter:"\\ea8b"}),t.symbolPackage=new t("symbol-package",{fontCharacter:"\\ea8b"}),t.symbolNamespace=new t("symbol-namespace",{fontCharacter:"\\ea8b"}),t.symbolObject=new t("symbol-object",{fontCharacter:"\\ea8b"}),t.symbolMethod=new t("symbol-method",{fontCharacter:"\\ea8c"}),t.symbolFunction=new t("symbol-function",{fontCharacter:"\\ea8c"}),t.symbolConstructor=new t("symbol-constructor",{fontCharacter:"\\ea8c"}),t.symbolBoolean=new t("symbol-boolean",{fontCharacter:"\\ea8f"}),t.symbolNull=new t("symbol-null",{fontCharacter:"\\ea8f"}),t.symbolNumeric=new t("symbol-numeric",{fontCharacter:"\\ea90"}),t.symbolNumber=new t("symbol-number",{fontCharacter:"\\ea90"}),t.symbolStructure=new t("symbol-structure",{fontCharacter:"\\ea91"}),t.symbolStruct=new t("symbol-struct",{fontCharacter:"\\ea91"}),t.symbolParameter=new t("symbol-parameter",{fontCharacter:"\\ea92"}),t.symbolTypeParameter=new t("symbol-type-parameter",{fontCharacter:"\\ea92"}),t.symbolKey=new t("symbol-key",{fontCharacter:"\\ea93"}),t.symbolText=new t("symbol-text",{fontCharacter:"\\ea93"}),t.symbolReference=new t("symbol-reference",{fontCharacter:"\\ea94"}),t.goToFile=new t("go-to-file",{fontCharacter:"\\ea94"}),t.symbolEnum=new t("symbol-enum",{fontCharacter:"\\ea95"}),t.symbolValue=new t("symbol-value",{fontCharacter:"\\ea95"}),t.symbolRuler=new t("symbol-ruler",{fontCharacter:"\\ea96"}),t.symbolUnit=new t("symbol-unit",{fontCharacter:"\\ea96"}),t.activateBreakpoints=new t("activate-breakpoints",{fontCharacter:"\\ea97"}),t.archive=new t("archive",{fontCharacter:"\\ea98"}),t.arrowBoth=new t("arrow-both",{fontCharacter:"\\ea99"}),t.arrowDown=new t("arrow-down",{fontCharacter:"\\ea9a"}),t.arrowLeft=new t("arrow-left",{fontCharacter:"\\ea9b"}),t.arrowRight=new t("arrow-right",{fontCharacter:"\\ea9c"}),t.arrowSmallDown=new t("arrow-small-down",{fontCharacter:"\\ea9d"}),t.arrowSmallLeft=new t("arrow-small-left",{fontCharacter:"\\ea9e"}),t.arrowSmallRight=new t("arrow-small-right",{fontCharacter:"\\ea9f"}),t.arrowSmallUp=new t("arrow-small-up",{fontCharacter:"\\eaa0"}),t.arrowUp=new t("arrow-up",{fontCharacter:"\\eaa1"}),t.bell=new t("bell",{fontCharacter:"\\eaa2"}),t.bold=new t("bold",{fontCharacter:"\\eaa3"}),t.book=new t("book",{fontCharacter:"\\eaa4"}),t.bookmark=new t("bookmark",{fontCharacter:"\\eaa5"}),t.debugBreakpointConditionalUnverified=new t("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),t.debugBreakpointConditional=new t("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),t.debugBreakpointConditionalDisabled=new t("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),t.debugBreakpointDataUnverified=new t("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),t.debugBreakpointData=new t("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),t.debugBreakpointDataDisabled=new t("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),t.debugBreakpointLogUnverified=new t("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),t.debugBreakpointLog=new t("debug-breakpoint-log",{fontCharacter:"\\eaab"}),t.debugBreakpointLogDisabled=new t("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),t.briefcase=new t("briefcase",{fontCharacter:"\\eaac"}),t.broadcast=new t("broadcast",{fontCharacter:"\\eaad"}),t.browser=new t("browser",{fontCharacter:"\\eaae"}),t.bug=new t("bug",{fontCharacter:"\\eaaf"}),t.calendar=new t("calendar",{fontCharacter:"\\eab0"}),t.caseSensitive=new t("case-sensitive",{fontCharacter:"\\eab1"}),t.check=new t("check",{fontCharacter:"\\eab2"}),t.checklist=new t("checklist",{fontCharacter:"\\eab3"}),t.chevronDown=new t("chevron-down",{fontCharacter:"\\eab4"}),t.dropDownButton=new t("drop-down-button",t.chevronDown.definition),t.chevronLeft=new t("chevron-left",{fontCharacter:"\\eab5"}),t.chevronRight=new t("chevron-right",{fontCharacter:"\\eab6"}),t.chevronUp=new t("chevron-up",{fontCharacter:"\\eab7"}),t.chromeClose=new t("chrome-close",{fontCharacter:"\\eab8"}),t.chromeMaximize=new t("chrome-maximize",{fontCharacter:"\\eab9"}),t.chromeMinimize=new t("chrome-minimize",{fontCharacter:"\\eaba"}),t.chromeRestore=new t("chrome-restore",{fontCharacter:"\\eabb"}),t.circleOutline=new t("circle-outline",{fontCharacter:"\\eabc"}),t.debugBreakpointUnverified=new t("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),t.circleSlash=new t("circle-slash",{fontCharacter:"\\eabd"}),t.circuitBoard=new t("circuit-board",{fontCharacter:"\\eabe"}),t.clearAll=new t("clear-all",{fontCharacter:"\\eabf"}),t.clippy=new t("clippy",{fontCharacter:"\\eac0"}),t.closeAll=new t("close-all",{fontCharacter:"\\eac1"}),t.cloudDownload=new t("cloud-download",{fontCharacter:"\\eac2"}),t.cloudUpload=new t("cloud-upload",{fontCharacter:"\\eac3"}),t.code=new t("code",{fontCharacter:"\\eac4"}),t.collapseAll=new t("collapse-all",{fontCharacter:"\\eac5"}),t.colorMode=new t("color-mode",{fontCharacter:"\\eac6"}),t.commentDiscussion=new t("comment-discussion",{fontCharacter:"\\eac7"}),t.compareChanges=new t("compare-changes",{fontCharacter:"\\eafd"}),t.creditCard=new t("credit-card",{fontCharacter:"\\eac9"}),t.dash=new t("dash",{fontCharacter:"\\eacc"}),t.dashboard=new t("dashboard",{fontCharacter:"\\eacd"}),t.database=new t("database",{fontCharacter:"\\eace"}),t.debugContinue=new t("debug-continue",{fontCharacter:"\\eacf"}),t.debugDisconnect=new t("debug-disconnect",{fontCharacter:"\\ead0"}),t.debugPause=new t("debug-pause",{fontCharacter:"\\ead1"}),t.debugRestart=new t("debug-restart",{fontCharacter:"\\ead2"}),t.debugStart=new t("debug-start",{fontCharacter:"\\ead3"}),t.debugStepInto=new t("debug-step-into",{fontCharacter:"\\ead4"}),t.debugStepOut=new t("debug-step-out",{fontCharacter:"\\ead5"}),t.debugStepOver=new t("debug-step-over",{fontCharacter:"\\ead6"}),t.debugStop=new t("debug-stop",{fontCharacter:"\\ead7"}),t.debug=new t("debug",{fontCharacter:"\\ead8"}),t.deviceCameraVideo=new t("device-camera-video",{fontCharacter:"\\ead9"}),t.deviceCamera=new t("device-camera",{fontCharacter:"\\eada"}),t.deviceMobile=new t("device-mobile",{fontCharacter:"\\eadb"}),t.diffAdded=new t("diff-added",{fontCharacter:"\\eadc"}),t.diffIgnored=new t("diff-ignored",{fontCharacter:"\\eadd"}),t.diffModified=new t("diff-modified",{fontCharacter:"\\eade"}),t.diffRemoved=new t("diff-removed",{fontCharacter:"\\eadf"}),t.diffRenamed=new t("diff-renamed",{fontCharacter:"\\eae0"}),t.diff=new t("diff",{fontCharacter:"\\eae1"}),t.discard=new t("discard",{fontCharacter:"\\eae2"}),t.editorLayout=new t("editor-layout",{fontCharacter:"\\eae3"}),t.emptyWindow=new t("empty-window",{fontCharacter:"\\eae4"}),t.exclude=new t("exclude",{fontCharacter:"\\eae5"}),t.extensions=new t("extensions",{fontCharacter:"\\eae6"}),t.eyeClosed=new t("eye-closed",{fontCharacter:"\\eae7"}),t.fileBinary=new t("file-binary",{fontCharacter:"\\eae8"}),t.fileCode=new t("file-code",{fontCharacter:"\\eae9"}),t.fileMedia=new t("file-media",{fontCharacter:"\\eaea"}),t.filePdf=new t("file-pdf",{fontCharacter:"\\eaeb"}),t.fileSubmodule=new t("file-submodule",{fontCharacter:"\\eaec"}),t.fileSymlinkDirectory=new t("file-symlink-directory",{fontCharacter:"\\eaed"}),t.fileSymlinkFile=new t("file-symlink-file",{fontCharacter:"\\eaee"}),t.fileZip=new t("file-zip",{fontCharacter:"\\eaef"}),t.files=new t("files",{fontCharacter:"\\eaf0"}),t.filter=new t("filter",{fontCharacter:"\\eaf1"}),t.flame=new t("flame",{fontCharacter:"\\eaf2"}),t.foldDown=new t("fold-down",{fontCharacter:"\\eaf3"}),t.foldUp=new t("fold-up",{fontCharacter:"\\eaf4"}),t.fold=new t("fold",{fontCharacter:"\\eaf5"}),t.folderActive=new t("folder-active",{fontCharacter:"\\eaf6"}),t.folderOpened=new t("folder-opened",{fontCharacter:"\\eaf7"}),t.gear=new t("gear",{fontCharacter:"\\eaf8"}),t.gift=new t("gift",{fontCharacter:"\\eaf9"}),t.gistSecret=new t("gist-secret",{fontCharacter:"\\eafa"}),t.gist=new t("gist",{fontCharacter:"\\eafb"}),t.gitCommit=new t("git-commit",{fontCharacter:"\\eafc"}),t.gitCompare=new t("git-compare",{fontCharacter:"\\eafd"}),t.gitMerge=new t("git-merge",{fontCharacter:"\\eafe"}),t.githubAction=new t("github-action",{fontCharacter:"\\eaff"}),t.githubAlt=new t("github-alt",{fontCharacter:"\\eb00"}),t.globe=new t("globe",{fontCharacter:"\\eb01"}),t.grabber=new t("grabber",{fontCharacter:"\\eb02"}),t.graph=new t("graph",{fontCharacter:"\\eb03"}),t.gripper=new t("gripper",{fontCharacter:"\\eb04"}),t.heart=new t("heart",{fontCharacter:"\\eb05"}),t.home=new t("home",{fontCharacter:"\\eb06"}),t.horizontalRule=new t("horizontal-rule",{fontCharacter:"\\eb07"}),t.hubot=new t("hubot",{fontCharacter:"\\eb08"}),t.inbox=new t("inbox",{fontCharacter:"\\eb09"}),t.issueClosed=new t("issue-closed",{fontCharacter:"\\eba4"}),t.issueReopened=new t("issue-reopened",{fontCharacter:"\\eb0b"}),t.issues=new t("issues",{fontCharacter:"\\eb0c"}),t.italic=new t("italic",{fontCharacter:"\\eb0d"}),t.jersey=new t("jersey",{fontCharacter:"\\eb0e"}),t.json=new t("json",{fontCharacter:"\\eb0f"}),t.kebabVertical=new t("kebab-vertical",{fontCharacter:"\\eb10"}),t.key=new t("key",{fontCharacter:"\\eb11"}),t.law=new t("law",{fontCharacter:"\\eb12"}),t.lightbulbAutofix=new t("lightbulb-autofix",{fontCharacter:"\\eb13"}),t.linkExternal=new t("link-external",{fontCharacter:"\\eb14"}),t.link=new t("link",{fontCharacter:"\\eb15"}),t.listOrdered=new t("list-ordered",{fontCharacter:"\\eb16"}),t.listUnordered=new t("list-unordered",{fontCharacter:"\\eb17"}),t.liveShare=new t("live-share",{fontCharacter:"\\eb18"}),t.loading=new t("loading",{fontCharacter:"\\eb19"}),t.location=new t("location",{fontCharacter:"\\eb1a"}),t.mailRead=new t("mail-read",{fontCharacter:"\\eb1b"}),t.mail=new t("mail",{fontCharacter:"\\eb1c"}),t.markdown=new t("markdown",{fontCharacter:"\\eb1d"}),t.megaphone=new t("megaphone",{fontCharacter:"\\eb1e"}),t.mention=new t("mention",{fontCharacter:"\\eb1f"}),t.milestone=new t("milestone",{fontCharacter:"\\eb20"}),t.mortarBoard=new t("mortar-board",{fontCharacter:"\\eb21"}),t.move=new t("move",{fontCharacter:"\\eb22"}),t.multipleWindows=new t("multiple-windows",{fontCharacter:"\\eb23"}),t.mute=new t("mute",{fontCharacter:"\\eb24"}),t.noNewline=new t("no-newline",{fontCharacter:"\\eb25"}),t.note=new t("note",{fontCharacter:"\\eb26"}),t.octoface=new t("octoface",{fontCharacter:"\\eb27"}),t.openPreview=new t("open-preview",{fontCharacter:"\\eb28"}),t.package_=new t("package",{fontCharacter:"\\eb29"}),t.paintcan=new t("paintcan",{fontCharacter:"\\eb2a"}),t.pin=new t("pin",{fontCharacter:"\\eb2b"}),t.play=new t("play",{fontCharacter:"\\eb2c"}),t.run=new t("run",{fontCharacter:"\\eb2c"}),t.plug=new t("plug",{fontCharacter:"\\eb2d"}),t.preserveCase=new t("preserve-case",{fontCharacter:"\\eb2e"}),t.preview=new t("preview",{fontCharacter:"\\eb2f"}),t.project=new t("project",{fontCharacter:"\\eb30"}),t.pulse=new t("pulse",{fontCharacter:"\\eb31"}),t.question=new t("question",{fontCharacter:"\\eb32"}),t.quote=new t("quote",{fontCharacter:"\\eb33"}),t.radioTower=new t("radio-tower",{fontCharacter:"\\eb34"}),t.reactions=new t("reactions",{fontCharacter:"\\eb35"}),t.references=new t("references",{fontCharacter:"\\eb36"}),t.refresh=new t("refresh",{fontCharacter:"\\eb37"}),t.regex=new t("regex",{fontCharacter:"\\eb38"}),t.remoteExplorer=new t("remote-explorer",{fontCharacter:"\\eb39"}),t.remote=new t("remote",{fontCharacter:"\\eb3a"}),t.remove=new t("remove",{fontCharacter:"\\eb3b"}),t.replaceAll=new t("replace-all",{fontCharacter:"\\eb3c"}),t.replace=new t("replace",{fontCharacter:"\\eb3d"}),t.repoClone=new t("repo-clone",{fontCharacter:"\\eb3e"}),t.repoForcePush=new t("repo-force-push",{fontCharacter:"\\eb3f"}),t.repoPull=new t("repo-pull",{fontCharacter:"\\eb40"}),t.repoPush=new t("repo-push",{fontCharacter:"\\eb41"}),t.report=new t("report",{fontCharacter:"\\eb42"}),t.requestChanges=new t("request-changes",{fontCharacter:"\\eb43"}),t.rocket=new t("rocket",{fontCharacter:"\\eb44"}),t.rootFolderOpened=new t("root-folder-opened",{fontCharacter:"\\eb45"}),t.rootFolder=new t("root-folder",{fontCharacter:"\\eb46"}),t.rss=new t("rss",{fontCharacter:"\\eb47"}),t.ruby=new t("ruby",{fontCharacter:"\\eb48"}),t.saveAll=new t("save-all",{fontCharacter:"\\eb49"}),t.saveAs=new t("save-as",{fontCharacter:"\\eb4a"}),t.save=new t("save",{fontCharacter:"\\eb4b"}),t.screenFull=new t("screen-full",{fontCharacter:"\\eb4c"}),t.screenNormal=new t("screen-normal",{fontCharacter:"\\eb4d"}),t.searchStop=new t("search-stop",{fontCharacter:"\\eb4e"}),t.server=new t("server",{fontCharacter:"\\eb50"}),t.settingsGear=new t("settings-gear",{fontCharacter:"\\eb51"}),t.settings=new t("settings",{fontCharacter:"\\eb52"}),t.shield=new t("shield",{fontCharacter:"\\eb53"}),t.smiley=new t("smiley",{fontCharacter:"\\eb54"}),t.sortPrecedence=new t("sort-precedence",{fontCharacter:"\\eb55"}),t.splitHorizontal=new t("split-horizontal",{fontCharacter:"\\eb56"}),t.splitVertical=new t("split-vertical",{fontCharacter:"\\eb57"}),t.squirrel=new t("squirrel",{fontCharacter:"\\eb58"}),t.starFull=new t("star-full",{fontCharacter:"\\eb59"}),t.starHalf=new t("star-half",{fontCharacter:"\\eb5a"}),t.symbolClass=new t("symbol-class",{fontCharacter:"\\eb5b"}),t.symbolColor=new t("symbol-color",{fontCharacter:"\\eb5c"}),t.symbolConstant=new t("symbol-constant",{fontCharacter:"\\eb5d"}),t.symbolEnumMember=new t("symbol-enum-member",{fontCharacter:"\\eb5e"}),t.symbolField=new t("symbol-field",{fontCharacter:"\\eb5f"}),t.symbolFile=new t("symbol-file",{fontCharacter:"\\eb60"}),t.symbolInterface=new t("symbol-interface",{fontCharacter:"\\eb61"}),t.symbolKeyword=new t("symbol-keyword",{fontCharacter:"\\eb62"}),t.symbolMisc=new t("symbol-misc",{fontCharacter:"\\eb63"}),t.symbolOperator=new t("symbol-operator",{fontCharacter:"\\eb64"}),t.symbolProperty=new t("symbol-property",{fontCharacter:"\\eb65"}),t.wrench=new t("wrench",{fontCharacter:"\\eb65"}),t.wrenchSubaction=new t("wrench-subaction",{fontCharacter:"\\eb65"}),t.symbolSnippet=new t("symbol-snippet",{fontCharacter:"\\eb66"}),t.tasklist=new t("tasklist",{fontCharacter:"\\eb67"}),t.telescope=new t("telescope",{fontCharacter:"\\eb68"}),t.textSize=new t("text-size",{fontCharacter:"\\eb69"}),t.threeBars=new t("three-bars",{fontCharacter:"\\eb6a"}),t.thumbsdown=new t("thumbsdown",{fontCharacter:"\\eb6b"}),t.thumbsup=new t("thumbsup",{fontCharacter:"\\eb6c"}),t.tools=new t("tools",{fontCharacter:"\\eb6d"}),t.triangleDown=new t("triangle-down",{fontCharacter:"\\eb6e"}),t.triangleLeft=new t("triangle-left",{fontCharacter:"\\eb6f"}),t.triangleRight=new t("triangle-right",{fontCharacter:"\\eb70"}),t.triangleUp=new t("triangle-up",{fontCharacter:"\\eb71"}),t.twitter=new t("twitter",{fontCharacter:"\\eb72"}),t.unfold=new t("unfold",{fontCharacter:"\\eb73"}),t.unlock=new t("unlock",{fontCharacter:"\\eb74"}),t.unmute=new t("unmute",{fontCharacter:"\\eb75"}),t.unverified=new t("unverified",{fontCharacter:"\\eb76"}),t.verified=new t("verified",{fontCharacter:"\\eb77"}),t.versions=new t("versions",{fontCharacter:"\\eb78"}),t.vmActive=new t("vm-active",{fontCharacter:"\\eb79"}),t.vmOutline=new t("vm-outline",{fontCharacter:"\\eb7a"}),t.vmRunning=new t("vm-running",{fontCharacter:"\\eb7b"}),t.watch=new t("watch",{fontCharacter:"\\eb7c"}),t.whitespace=new t("whitespace",{fontCharacter:"\\eb7d"}),t.wholeWord=new t("whole-word",{fontCharacter:"\\eb7e"}),t.window=new t("window",{fontCharacter:"\\eb7f"}),t.wordWrap=new t("word-wrap",{fontCharacter:"\\eb80"}),t.zoomIn=new t("zoom-in",{fontCharacter:"\\eb81"}),t.zoomOut=new t("zoom-out",{fontCharacter:"\\eb82"}),t.listFilter=new t("list-filter",{fontCharacter:"\\eb83"}),t.listFlat=new t("list-flat",{fontCharacter:"\\eb84"}),t.listSelection=new t("list-selection",{fontCharacter:"\\eb85"}),t.selection=new t("selection",{fontCharacter:"\\eb85"}),t.listTree=new t("list-tree",{fontCharacter:"\\eb86"}),t.debugBreakpointFunctionUnverified=new t("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),t.debugBreakpointFunction=new t("debug-breakpoint-function",{fontCharacter:"\\eb88"}),t.debugBreakpointFunctionDisabled=new t("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),t.debugStackframeActive=new t("debug-stackframe-active",{fontCharacter:"\\eb89"}),t.debugStackframeDot=new t("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),t.debugStackframe=new t("debug-stackframe",{fontCharacter:"\\eb8b"}),t.debugStackframeFocused=new t("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),t.debugBreakpointUnsupported=new t("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),t.symbolString=new t("symbol-string",{fontCharacter:"\\eb8d"}),t.debugReverseContinue=new t("debug-reverse-continue",{fontCharacter:"\\eb8e"}),t.debugStepBack=new t("debug-step-back",{fontCharacter:"\\eb8f"}),t.debugRestartFrame=new t("debug-restart-frame",{fontCharacter:"\\eb90"}),t.callIncoming=new t("call-incoming",{fontCharacter:"\\eb92"}),t.callOutgoing=new t("call-outgoing",{fontCharacter:"\\eb93"}),t.menu=new t("menu",{fontCharacter:"\\eb94"}),t.expandAll=new t("expand-all",{fontCharacter:"\\eb95"}),t.feedback=new t("feedback",{fontCharacter:"\\eb96"}),t.groupByRefType=new t("group-by-ref-type",{fontCharacter:"\\eb97"}),t.ungroupByRefType=new t("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),t.account=new t("account",{fontCharacter:"\\eb99"}),t.bellDot=new t("bell-dot",{fontCharacter:"\\eb9a"}),t.debugConsole=new t("debug-console",{fontCharacter:"\\eb9b"}),t.library=new t("library",{fontCharacter:"\\eb9c"}),t.output=new t("output",{fontCharacter:"\\eb9d"}),t.runAll=new t("run-all",{fontCharacter:"\\eb9e"}),t.syncIgnored=new t("sync-ignored",{fontCharacter:"\\eb9f"}),t.pinned=new t("pinned",{fontCharacter:"\\eba0"}),t.githubInverted=new t("github-inverted",{fontCharacter:"\\eba1"}),t.debugAlt=new t("debug-alt",{fontCharacter:"\\eb91"}),t.serverProcess=new t("server-process",{fontCharacter:"\\eba2"}),t.serverEnvironment=new t("server-environment",{fontCharacter:"\\eba3"}),t.pass=new t("pass",{fontCharacter:"\\eba4"}),t.stopCircle=new t("stop-circle",{fontCharacter:"\\eba5"}),t.playCircle=new t("play-circle",{fontCharacter:"\\eba6"}),t.record=new t("record",{fontCharacter:"\\eba7"}),t.debugAltSmall=new t("debug-alt-small",{fontCharacter:"\\eba8"}),t.vmConnect=new t("vm-connect",{fontCharacter:"\\eba9"}),t.cloud=new t("cloud",{fontCharacter:"\\ebaa"}),t.merge=new t("merge",{fontCharacter:"\\ebab"}),t.exportIcon=new t("export",{fontCharacter:"\\ebac"}),t.graphLeft=new t("graph-left",{fontCharacter:"\\ebad"}),t.magnet=new t("magnet",{fontCharacter:"\\ebae"}),t.notebook=new t("notebook",{fontCharacter:"\\ebaf"}),t.redo=new t("redo",{fontCharacter:"\\ebb0"}),t.checkAll=new t("check-all",{fontCharacter:"\\ebb1"}),t.pinnedDirty=new t("pinned-dirty",{fontCharacter:"\\ebb2"}),t.passFilled=new t("pass-filled",{fontCharacter:"\\ebb3"}),t.circleLargeFilled=new t("circle-large-filled",{fontCharacter:"\\ebb4"}),t.circleLargeOutline=new t("circle-large-outline",{fontCharacter:"\\ebb5"}),t.combine=new t("combine",{fontCharacter:"\\ebb6"}),t.gather=new t("gather",{fontCharacter:"\\ebb6"}),t.table=new t("table",{fontCharacter:"\\ebb7"}),t.variableGroup=new t("variable-group",{fontCharacter:"\\ebb8"}),t.typeHierarchy=new t("type-hierarchy",{fontCharacter:"\\ebb9"}),t.typeHierarchySub=new t("type-hierarchy-sub",{fontCharacter:"\\ebba"}),t.typeHierarchySuper=new t("type-hierarchy-super",{fontCharacter:"\\ebbb"}),t.gitPullRequestCreate=new t("git-pull-request-create",{fontCharacter:"\\ebbc"}),t.runAbove=new t("run-above",{fontCharacter:"\\ebbd"}),t.runBelow=new t("run-below",{fontCharacter:"\\ebbe"}),t.notebookTemplate=new t("notebook-template",{fontCharacter:"\\ebbf"}),t.debugRerun=new t("debug-rerun",{fontCharacter:"\\ebc0"}),t.workspaceTrusted=new t("workspace-trusted",{fontCharacter:"\\ebc1"}),t.workspaceUntrusted=new t("workspace-untrusted",{fontCharacter:"\\ebc2"}),t.workspaceUnspecified=new t("workspace-unspecified",{fontCharacter:"\\ebc3"}),t.terminalCmd=new t("terminal-cmd",{fontCharacter:"\\ebc4"}),t.terminalDebian=new t("terminal-debian",{fontCharacter:"\\ebc5"}),t.terminalLinux=new t("terminal-linux",{fontCharacter:"\\ebc6"}),t.terminalPowershell=new t("terminal-powershell",{fontCharacter:"\\ebc7"}),t.terminalTmux=new t("terminal-tmux",{fontCharacter:"\\ebc8"}),t.terminalUbuntu=new t("terminal-ubuntu",{fontCharacter:"\\ebc9"}),t.terminalBash=new t("terminal-bash",{fontCharacter:"\\ebca"}),t.arrowSwap=new t("arrow-swap",{fontCharacter:"\\ebcb"}),t.copy=new t("copy",{fontCharacter:"\\ebcc"}),t.personAdd=new t("person-add",{fontCharacter:"\\ebcd"}),t.filterFilled=new t("filter-filled",{fontCharacter:"\\ebce"}),t.wand=new t("wand",{fontCharacter:"\\ebcf"}),t.debugLineByLine=new t("debug-line-by-line",{fontCharacter:"\\ebd0"}),t.inspect=new t("inspect",{fontCharacter:"\\ebd1"}),t.layers=new t("layers",{fontCharacter:"\\ebd2"}),t.layersDot=new t("layers-dot",{fontCharacter:"\\ebd3"}),t.layersActive=new t("layers-active",{fontCharacter:"\\ebd4"}),t.compass=new t("compass",{fontCharacter:"\\ebd5"}),t.compassDot=new t("compass-dot",{fontCharacter:"\\ebd6"}),t.compassActive=new t("compass-active",{fontCharacter:"\\ebd7"}),t.azure=new t("azure",{fontCharacter:"\\ebd8"}),t.issueDraft=new t("issue-draft",{fontCharacter:"\\ebd9"}),t.gitPullRequestClosed=new t("git-pull-request-closed",{fontCharacter:"\\ebda"}),t.gitPullRequestDraft=new t("git-pull-request-draft",{fontCharacter:"\\ebdb"}),t.debugAll=new t("debug-all",{fontCharacter:"\\ebdc"}),t.debugCoverage=new t("debug-coverage",{fontCharacter:"\\ebdd"}),t.runErrors=new t("run-errors",{fontCharacter:"\\ebde"}),t.folderLibrary=new t("folder-library",{fontCharacter:"\\ebdf"}),t.debugContinueSmall=new t("debug-continue-small",{fontCharacter:"\\ebe0"}),t.beakerStop=new t("beaker-stop",{fontCharacter:"\\ebe1"}),t.graphLine=new t("graph-line",{fontCharacter:"\\ebe2"}),t.graphScatter=new t("graph-scatter",{fontCharacter:"\\ebe3"}),t.pieChart=new t("pie-chart",{fontCharacter:"\\ebe4"}),t.bracket=new t("bracket",t.json.definition),t.bracketDot=new t("bracket-dot",{fontCharacter:"\\ebe5"}),t.bracketError=new t("bracket-error",{fontCharacter:"\\ebe6"}),t.lockSmall=new t("lock-small",{fontCharacter:"\\ebe7"}),t.azureDevops=new t("azure-devops",{fontCharacter:"\\ebe8"}),t.verifiedFilled=new t("verified-filled",{fontCharacter:"\\ebe9"})}(P||(P={}))},VpOo:function(Be,J){function L(Y,B){var I=B.x,F=B.y,T=B.width,R=B.height,P=B.r,m,t,b,o;T<0&&(I=I+T,T=-T),R<0&&(F=F+R,R=-R),typeof P=="number"?m=t=b=o=P:P instanceof Array?P.length===1?m=t=b=o=P[0]:P.length===2?(m=b=P[0],t=o=P[1]):P.length===3?(m=P[0],t=o=P[1],b=P[2]):(m=P[0],t=P[1],b=P[2],o=P[3]):m=t=b=o=0;var u;m+t>T&&(u=m+t,m*=T/u,t*=T/u),b+o>T&&(u=b+o,b*=T/u,o*=T/u),t+b>R&&(u=t+b,t*=R/u,b*=R/u),m+o>R&&(u=m+o,m*=R/u,o*=R/u),Y.moveTo(I+m,F),Y.lineTo(I+T-t,F),t!==0&&Y.arc(I+T-t,F+t,t,-Math.PI/2,0),Y.lineTo(I+T,F+R-b),b!==0&&Y.arc(I+T-b,F+R-b,b,0,Math.PI/2),Y.lineTo(I+o,F+R),o!==0&&Y.arc(I+o,F+R-o,o,Math.PI/2,Math.PI),Y.lineTo(I,F+m),m!==0&&Y.arc(I+m,F+m,m,Math.PI,Math.PI*1.5)}J.buildPath=L},"VrN/":function(Be,J,L){(function(Y,B){Be.exports=B()})(this,function(){"use strict";var Y=navigator.userAgent,B=navigator.platform,I=/gecko\/\d/i.test(Y),F=/MSIE \d/.test(Y),T=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Y),R=/Edge\/(\d+)/.exec(Y),P=F||T||R,m=P&&(F?document.documentMode||6:+(R||T)[1]),t=!R&&/WebKit\//.test(Y),b=t&&/Qt\/\d+\.\d+/.test(Y),o=!R&&/Chrome\//.test(Y),u=/Opera\//.test(Y),f=/Apple Computer/.test(navigator.vendor),a=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Y),i=/PhantomJS/.test(Y),d=!R&&/AppleWebKit/.test(Y)&&/Mobile\/\w+/.test(Y),s=/Android/.test(Y),n=d||s||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Y),l=d||/Mac/.test(B),c=/\bCrOS\b/.test(Y),x=/win/i.test(B),A=u&&Y.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(u=!1,t=!0);var C=l&&(b||u&&(A==null||A<12.11)),k=I||P&&m>=9;function w(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var y=function(e,r){var D=e.className,O=w(r).exec(D);if(O){var N=D.slice(O.index+O[0].length);e.className=D.slice(0,O.index)+(N?O[1]+N:"")}};function h(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function p(e,r){return h(e).appendChild(r)}function v(e,r,D,O){var N=document.createElement(e);if(D&&(N.className=D),O&&(N.style.cssText=O),typeof r=="string")N.appendChild(document.createTextNode(r));else if(r)for(var X=0;X=r)return q+(r-X);q+=re-X,q+=D-q%D,X=re+1}}var K=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};K.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},K.prototype.set=function(e,r){this.f=r;var D=+new Date+e;(!this.id||D=r)return O+Math.min(q,r-N);if(N+=X-O,N+=D-N%D,O=X+1,N>=r)return O}}var ve=[""];function de(e){for(;ve.length<=e;)ve.push(Je(ve)+" ");return ve[e]}function Je(e){return e[e.length-1]}function Rt(e,r){for(var D=[],O=0;O"\x80"&&(e.toUpperCase()!=e.toLowerCase()||He.test(e))}function ht(e,r){return r?r.source.indexOf("\\w")>-1&&ke(e)?!0:r.test(e):ke(e)}function ie(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var xe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function we(e){return e.charCodeAt(0)>=768&&xe.test(e)}function $e(e,r,D){for(;(D<0?r>0:rD?-1:1;;){if(r==D)return r;var N=(r+D)/2,X=O<0?Math.ceil(N):Math.floor(N);if(X==r)return e(X)?r:D;e(X)?D=X:r=X+O}}function yt(e,r,D,O){if(!e)return O(r,D,"ltr",0);for(var N=!1,X=0;Xr||r==D&&q.to==r)&&(O(Math.max(q.from,r),Math.min(q.to,D),q.level==1?"rtl":"ltr",X),N=!0)}N||O(r,D,"ltr")}var Ut=null;function We(e,r,D){var O;Ut=null;for(var N=0;Nr)return N;X.to==r&&(X.from!=X.to&&D=="before"?O=N:Ut=N),X.from==r&&(X.from!=X.to&&D!="before"?O=N:Ut=N)}return O!=null?O:Ut}var kt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function D(pe){return pe<=247?e.charAt(pe):1424<=pe&&pe<=1524?"R":1536<=pe&&pe<=1785?r.charAt(pe-1536):1774<=pe&&pe<=2220?"r":8192<=pe&&pe<=8203?"w":pe==8204?"b":"L"}var O=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,N=/[stwN]/,X=/[LRr]/,q=/[Lb1n]/,re=/[1n]/;function se(pe,Ve,nt){this.level=pe,this.from=Ve,this.to=nt}return function(pe,Ve){var nt=Ve=="ltr"?"L":"R";if(pe.length==0||Ve=="ltr"&&!O.test(pe))return!1;for(var Dt=pe.length,Tt=[],an=0;an-1&&(O[r]=N.slice(0,X).concat(N.slice(X+1)))}}}function Ze(e,r){var D=ut(e,r);if(!D.length)return;for(var O=Array.prototype.slice.call(arguments,2),N=0;N0}function Oe(e){e.prototype.on=function(r,D){Ae(this,r,D)},e.prototype.off=function(r,D){Et(this,r,D)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function le(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function he(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function _e(e){ae(e),le(e)}function Se(e){return e.target||e.srcElement}function ze(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),l&&e.ctrlKey&&r==1&&(r=3),r}var xt=function(){if(P&&m<9)return!1;var e=v("div");return"draggable"in e||"dragDrop"in e}(),Qt;function sn(e){if(Qt==null){var r=v("span","\u200B");p(e,v("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Qt=r.offsetWidth<=1&&r.offsetHeight>2&&!(P&&m<8))}var D=Qt?v("span","\u200B"):v("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return D.setAttribute("cm-text",""),D}var gt;function zt(e){if(gt!=null)return gt;var r=p(e,document.createTextNode("A\u062EA")),D=E(r,0,1).getBoundingClientRect(),O=E(r,1,2).getBoundingClientRect();return h(e),!D||D.left==D.right?!1:gt=O.right-D.right<3}var Ot=` b`.split(/\n/).length!=3?function(e){for(var r=0,D=[],O=e.length;r<=O;){var N=e.indexOf(` -`,r);N==-1&&(N=e.length);var X=e.slice(r,e.charAt(N-1)=="\r"?N-1:N),q=X.indexOf("\r");q!=-1?(D.push(X.slice(0,q)),r+=q+1):(D.push(X),r=N+1)}return D}:function(e){return e.split(/\r\n?|\n/)},At=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(r){return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch(D){}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},ft=function(){var e=v("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),be=null;function Fe(e){if(be!=null)return be;var r=p(e,v("span","x")),D=r.getBoundingClientRect(),O=E(r,0,1).getBoundingClientRect();return be=Math.abs(D.left-O.left)>1}var Nt={},yt={};function Gt(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Nt[e]=r}function Jt(e,r){yt[e]=r}function Ge(e){if(typeof e=="string"&&yt.hasOwnProperty(e))e=yt[e];else if(e&&typeof e.name=="string"&&yt.hasOwnProperty(e.name)){var r=yt[e.name];typeof r=="string"&&(r={name:r}),e=nt(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ge("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ge("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function lt(e,r){r=Ge(r);var D=Nt[r.name];if(!D)return lt(e,"text/plain");var O=D(e,r);if(It.hasOwnProperty(r.name)){var N=It[r.name];for(var X in N){if(!N.hasOwnProperty(X))continue;O.hasOwnProperty(X)&&(O["_"+X]=O[X]),O[X]=N[X]}}if(O.name=r.name,r.helperType&&(O.helperType=r.helperType),r.modeProps)for(var q in r.modeProps)O[q]=r.modeProps[q];return O}var It={};function Wt(e,r){var D=It.hasOwnProperty(e)?It[e]:It[e]={};M(r,D)}function sn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var D={};for(var O in r){var N=r[O];N instanceof Array&&(N=N.concat([])),D[O]=N}return D}function vn(e,r){for(var D;e.innerMode&&!(D=e.innerMode(r),!D||D.mode==e);)r=D.state,e=D.mode;return D||{mode:e,state:r}}function tr(e,r,D){return e.startState?e.startState(r,D):!0}var Hn=function(e,r,D){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=D};Hn.prototype.eol=function(){return this.pos>=this.string.length},Hn.prototype.sol=function(){return this.pos==this.lineStart},Hn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Hn.prototype.next=function(){if(this.posr},Hn.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Hn.prototype.skipToEnd=function(){this.pos=this.string.length},Hn.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},Hn.prototype.backUp=function(e){this.pos-=e},Hn.prototype.column=function(){return this.lastColumnPos0?null:(X&&r!==!1&&(this.pos+=X[0].length),X)}},Hn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Hn.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},Hn.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},Hn.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function wn(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var D=e;!D.lines;)for(var O=0;;++O){var N=D.children[O],X=N.chunkSize();if(r=e.first&&rD?pn(D,wn(e,D).text.length):G(r,wn(e,r.line).text.length)}function G(e,r){var D=e.ch;return D==null||D>r?pn(e.line,r):D<0?pn(e.line,0):e}function Q(e,r){for(var D=[],O=0;Othis.maxLookAhead&&(this.maxLookAhead=e),r},ee.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ee.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ee.fromSaved=function(e,r,D){return r instanceof ue?new ee(e,sn(e.mode,r.state),D,r.lookAhead):new ee(e,sn(e.mode,r),D)},ee.prototype.save=function(e){var r=e!==!1?sn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ue(r,this.maxLookAhead):r};function qe(e,r,D,O){var N=[e.state.modeGen],X={};kn(e,r.text,e.doc.mode,D,function(pe,Ve){return N.push(pe,Ve)},X,O);for(var q=D.state,re=function(pe){D.baseTokens=N;var Ve=e.state.overlays[pe],tt=1,Mt=0;D.state=!0,kn(e,r.text,Ve.mode,D,function(Tt,nn){for(var En=tt;MtTt&&N.splice(tt,1,Tt,N[tt+1],Ln),tt+=2,Mt=Math.min(Tt,Ln)}if(!nn)return;if(Ve.opaque)N.splice(En,tt-En,Tt,"overlay "+nn),tt=En+2;else for(;Ene.options.maxHighlightLength&&sn(e.doc.mode,O.state),X=qe(e,r,O);N&&(O.state=N),r.stateAfter=O.save(!N),r.styles=X.styles,X.classes?r.styleClasses=X.classes:r.styleClasses&&(r.styleClasses=null),D===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function An(e,r,D){var O=e.doc,N=e.display;if(!O.mode.startState)return new ee(O,!0,r);var X=dr(e,r,D),q=X>O.first&&wn(O,X-1).stateAfter,re=q?ee.fromSaved(O,q,X):new ee(O,tr(O.mode),X);return O.iter(X,r,function(se){Vn(e,se.text,re);var pe=re.line;se.stateAfter=pe==r-1||pe%5==0||pe>=N.viewFrom&&per.start)return X}throw new Error("Mode "+e.name+" failed to advance stream.")}var yn=function(e,r,D){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=D};function un(e,r,D,O){var N=e.doc,X=N.mode,q;r=W(N,r);var re=wn(N,r.line),se=An(e,r.line,D),pe=new Hn(re.text,e.options.tabSize,se),Ve;for(O&&(Ve=[]);(O||pe.pose.options.maxHighlightLength?(re=!1,q&&Vn(e,r,O,Ve.pos),Ve.pos=r.length,tt=null):tt=Cn(nr(D,Ve,O.state,Mt),X),Mt){var Tt=Mt[0].name;Tt&&(tt="m-"+(tt?Tt+" "+tt:Tt))}if(!re||pe!=tt){for(;seq;--re){if(re<=X.first)return X.first;var se=wn(X,re-1),pe=se.stateAfter;if(pe&&(!D||re+(pe instanceof ue?pe.lookAhead:0)<=X.modeFrontier))return re;var Ve=V(se.text,null,e.options.tabSize);(N==null||O>Ve)&&(N=re-1,O=Ve)}return N}function $n(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),e.highlightFrontierD;O--){var N=wn(e,O).stateAfter;if(N&&(!(N instanceof ue)||O+N.lookAhead=r:X.to>r);(O||(O=[])).push(new ar(q,X.from,se?null:X.to))}}return O}function br(e,r,D){var O;if(e)for(var N=0;N=r:X.to>r);if(re||X.from==r&&q.type=="bookmark"&&(!D||X.marker.insertLeft)){var se=X.from==null||(q.inclusiveLeft?X.from<=r:X.from0&&re)for(var er=0;er0)continue;var Ve=[se,1],tt=sr(pe.from,re.from),Mt=sr(pe.to,re.to);(tt<0||!q.inclusiveLeft&&!tt)&&Ve.push({from:pe.from,to:re.from}),(Mt>0||!q.inclusiveRight&&!Mt)&&Ve.push({from:re.to,to:pe.to}),N.splice.apply(N,Ve),se+=Ve.length-3}return N}function Xe(e){var r=e.markedSpans;if(!r)return;for(var D=0;Dr)&&(!O||pt(O,X.marker)<0)&&(O=X.marker)}return O}function Xt(e,r,D,O,N){var X=wn(e,r),q=In&&X.markedSpans;if(q)for(var re=0;re=0&&tt<=0||Ve<=0&&tt>=0)continue;if(Ve<=0&&(se.marker.inclusiveRight&&N.inclusiveLeft?sr(pe.to,D)>=0:sr(pe.to,D)>0)||Ve>=0&&(se.marker.inclusiveRight&&N.inclusiveLeft?sr(pe.from,O)<=0:sr(pe.from,O)<0))return!0}}function St(e){for(var r;r=it(e);)e=r.find(-1,!0).line;return e}function Ft(e){for(var r;r=Lt(e);)e=r.find(1,!0).line;return e}function at(e){for(var r,D;r=Lt(e);)e=r.find(1,!0).line,(D||(D=[])).push(e);return D}function qt(e,r){var D=wn(e,r),O=St(D);return D==O?r:ur(O)}function zt(e,r){if(r>e.lastLine())return r;var D=wn(e,r),O;if(!_n(e,D))return r;for(;O=Lt(D);)D=O.find(1,!0).line;return ur(D)+1}function _n(e,r){var D=In&&r.markedSpans;if(D)for(var O=void 0,N=0;Nr.maxLineLength&&(r.maxLineLength=N,r.maxLine=O)})}var On=function(e,r,D){this.text=e,Pe(this,r),this.height=D?D(this):1};On.prototype.lineNo=function(){return ur(this)},Oe(On);function Sn(e,r,D,O){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Xe(e),Pe(e,D);var N=O?O(e):1;N!=e.height&&rr(e,N)}function Ct(e){e.parent=null,Xe(e)}var xt={},Pt={};function Dt(e,r){if(!e||/^\s*$/.test(e))return null;var D=r.addModeClass?Pt:xt;return D[e]||(D[e]=e.replace(/\S+/g,"cm-$&"))}function wt(e,r){var D=_("span",null,null,t?"padding-right: .1px":null),O={pre:_("pre",[D],"CodeMirror-line"),content:D,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var N=0;N<=(r.rest?r.rest.length:0);N++){var X=N?r.rest[N-1]:r.line,q=void 0;O.pos=0,O.addToken=hn,Kt(e.display.measure)&&(q=Zt(X,e.doc.direction))&&(O.addToken=dn(O.addToken,q)),O.map=[];var re=r!=e.display.externalMeasured&&ur(X);Tn(X,O,en(e,X,re)),X.styleClasses&&(X.styleClasses.bgClass&&(O.bgClass=S(X.styleClasses.bgClass,O.bgClass||"")),X.styleClasses.textClass&&(O.textClass=S(X.styleClasses.textClass,O.textClass||""))),O.map.length==0&&O.map.push(0,0,O.content.appendChild(on(e.display.measure))),N==0?(r.measure.map=O.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(O.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(t){var se=O.content.lastChild;(/\bcm-tab\b/.test(se.className)||se.querySelector&&se.querySelector(".cm-tab"))&&(O.content.className="cm-tab-wrap-hack")}return Je(e,"renderLine",e,r.line,O.pre),O.pre.className&&(O.textClass=S(O.pre.className,O.textClass||"")),O}function gn(e){var r=v("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function hn(e,r,D,O,N,X,q){if(!r)return;var re=e.splitSpaces?bn(r,e.trailingSpace):r,se=e.cm.state.specialChars,pe=!1,Ve;if(!se.test(r))e.col+=r.length,Ve=document.createTextNode(re),e.map.push(e.pos,e.pos+r.length,Ve),P&&m<9&&(pe=!0),e.pos+=r.length;else{Ve=document.createDocumentFragment();for(var tt=0;;){se.lastIndex=tt;var Mt=se.exec(r),Tt=Mt?Mt.index-tt:r.length-tt;if(Tt){var nn=document.createTextNode(re.slice(tt,tt+Tt));P&&m<9?Ve.appendChild(v("span",[nn])):Ve.appendChild(nn),e.map.push(e.pos,e.pos+Tt,nn),e.col+=Tt,e.pos+=Tt}if(!Mt)break;tt+=Tt+1;var En=void 0;if(Mt[0]==" "){var Ln=e.cm.options.tabSize,Nn=Ln-e.col%Ln;En=Ve.appendChild(v("span",de(Nn),"cm-tab")),En.setAttribute("role","presentation"),En.setAttribute("cm-text"," "),e.col+=Nn}else Mt[0]=="\r"||Mt[0]==` -`?(En=Ve.appendChild(v("span",Mt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),En.setAttribute("cm-text",Mt[0]),e.col+=1):(En=e.cm.options.specialCharPlaceholder(Mt[0]),En.setAttribute("cm-text",Mt[0]),P&&m<9?Ve.appendChild(v("span",[En])):Ve.appendChild(En),e.col+=1);e.map.push(e.pos,e.pos+1,En),e.pos++}}if(e.trailingSpace=re.charCodeAt(r.length-1)==32,D||O||N||pe||X||q){var Xn=D||"";O&&(Xn+=O),N&&(Xn+=N);var jn=v("span",[Ve],Xn,X);if(q)for(var er in q)q.hasOwnProperty(er)&&er!="style"&&er!="class"&&jn.setAttribute(er,q[er]);return e.content.appendChild(jn)}e.content.appendChild(Ve)}function bn(e,r){if(e.length>1&&!/ /.test(e))return e;for(var D=r,O="",N=0;Npe&&tt.from<=pe);Mt++);if(tt.to>=Ve)return e(D,O,N,X,q,re,se);e(D,O.slice(0,tt.to-pe),N,X,null,re,se),X=null,O=O.slice(tt.to-pe),pe=tt.to}}}function rn(e,r,D,O){var N=!O&&D.widgetNode;N&&e.map.push(e.pos,e.pos+r,N),!O&&e.cm.display.input.needsContentAttribute&&(N||(N=e.content.appendChild(document.createElement("span"))),N.setAttribute("cm-marker",D.id)),N&&(e.cm.display.input.setUneditable(N),e.content.appendChild(N)),e.pos+=r,e.trailingSpace=!1}function Tn(e,r,D){var O=e.markedSpans,N=e.text,X=0;if(!O){for(var q=1;qse||kr.collapsed&&pr.to==se&&pr.from==se)){if(pr.to!=null&&pr.to!=se&&Tt>pr.to&&(Tt=pr.to,En=""),kr.className&&(nn+=" "+kr.className),kr.css&&(Mt=(Mt?Mt+";":"")+kr.css),kr.startStyle&&pr.from==se&&(Ln+=" "+kr.startStyle),kr.endStyle&&pr.to==Tt&&(er||(er=[])).push(kr.endStyle,pr.to),kr.title&&((Xn||(Xn={})).title=kr.title),kr.attributes)for(var ia in kr.attributes)(Xn||(Xn={}))[ia]=kr.attributes[ia];kr.collapsed&&(!Nn||pt(Nn.marker,kr)<0)&&(Nn=pr)}else pr.from>se&&Tt>pr.from&&(Tt=pr.from)}if(er)for(var Ba=0;Ba=re)break;for(var oi=Math.min(re,Tt);;){if(Ve){var ti=se+Ve.length;if(!Nn){var Ma=ti>oi?Ve.slice(0,oi-se):Ve;r.addToken(r,Ma,tt?tt+nn:nn,Ln,se+Ma.length==Tt?En:"",Mt,Xn)}if(ti>=oi){Ve=Ve.slice(oi-se),se=oi;break}se=ti,Ln=""}Ve=N.slice(X,X=D[pe++]),tt=Dt(D[pe++],r.cm.options)}}}function ir(e,r,D){this.line=r,this.rest=at(r),this.size=this.rest?ur(Qe(this.rest))-D+1:1,this.node=this.text=null,this.hidden=_n(e,r)}function hr(e,r,D){for(var O=[],N,X=r;X2&&X.push((se.bottom+pe.top)/2-D.top)}}X.push(D.bottom-D.top)}}function ge(e,r,D){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var O=0;OD)return{map:e.measure.maps[N],cache:e.measure.caches[N],before:!0}}function Ue(e,r){r=St(r);var D=ur(r),O=e.display.externalMeasured=new ir(e.doc,r,D);O.lineN=D;var N=O.built=wt(e,O);return O.text=N.pre,p(e.display.lineMeasure,N.pre),O}function Ye(e,r,D,O){return bt(e,Ke(e,r),D,O)}function ot(e,r){if(r>=e.display.viewFrom&&r=D.lineN&&rr)&&(X=se-re,N=X-1,r>=se&&(q="right")),N!=null){if(O=e[pe+2],re==se&&D==(O.insertLeft?"left":"right")&&(q=D),D=="left"&&N==0)for(;pe&&e[pe-2]==e[pe-3]&&e[pe-1].insertLeft;)O=e[(pe-=3)+2],q="left";if(D=="right"&&N==se-re)for(;pe=0&&!((D=e[N]).left!=D.right);N--);return D}function Rn(e,r,D,O){var N=tn(r.map,D,O),X=N.node,q=N.start,re=N.end,se=N.collapse,pe;if(X.nodeType==3){for(var Ve=0;Ve<4;Ve++){for(;q&&we(r.line.text.charAt(N.coverStart+q));)--q;for(;N.coverStart+re0&&(se=O="right");var tt;e.options.lineWrapping&&(tt=X.getClientRects()).length>1?pe=tt[O=="right"?tt.length-1:0]:pe=X.getBoundingClientRect()}if(P&&m<9&&!q&&(!pe||!pe.left&&!pe.right)){var Mt=X.parentNode.getClientRects()[0];Mt?pe={left:Mt.left,right:Mt.left+Nr(e.display),top:Mt.top,bottom:Mt.bottom}:pe=Bt}for(var Tt=pe.top-r.rect.top,nn=pe.bottom-r.rect.top,En=(Tt+nn)/2,Ln=r.view.measure.heights,Nn=0;Nn=O.text.length?(se=O.text.length,pe="before"):se<=0&&(se=0,pe="after"),!re)return q(pe=="before"?se-1:se,pe=="before");function Ve(nn,En,Ln){var Nn=re[En],Xn=Nn.level==1;return q(Ln?nn-1:nn,Xn!=Ln)}var tt=We(re,se,pe),Mt=Ut,Tt=Ve(se,tt,pe=="before");return Mt!=null&&(Tt.other=Ve(se,Mt,pe!="before")),Tt}function mn(e,r){var D=0;r=W(e.doc,r),e.options.lineWrapping||(D=Nr(e.display)*r.ch);var O=wn(e.doc,r.line),N=Vt(O)+wa(e.display);return{left:D,right:D,top:N,bottom:N+O.height}}function Mn(e,r,D,O,N){var X=pn(e,r,D);return X.xRel=N,O&&(X.outside=O),X}function gr(e,r,D){var O=e.doc;if(D+=e.display.viewOffset,D<0)return Mn(O.first,0,null,-1,-1);var N=Ar(O,D),X=O.first+O.size-1;if(N>X)return Mn(O.first+O.size-1,wn(O,X).text.length,null,1,1);r<0&&(r=0);for(var q=wn(O,N);;){var re=$r(e,q,N,r,D),se=Yt(q,re.ch+(re.xRel>0||re.outside>0?1:0));if(!se)return re;var pe=se.find(1);if(pe.line==N)return pe;q=wn(O,N=pe.line)}}function Or(e,r,D,O){O-=xn(r);var N=r.text.length,X=ct(function(q){return bt(e,D,q-1).bottom<=O},N,0);return N=ct(function(q){return bt(e,D,q).top>O},X,N),{begin:X,end:N}}function Qn(e,r,D,O){D||(D=Ke(e,r));var N=vr(e,r,bt(e,D,O),"line").top;return Or(e,r,D,N)}function Pr(e,r,D,O){return e.bottom<=D?!1:e.top>D?!0:(O?e.left:e.right)>r}function $r(e,r,D,O,N){N-=Vt(r);var X=Ke(e,r),q=xn(r),re=0,se=r.text.length,pe=!0,Ve=Zt(r,e.doc.direction);if(Ve){var tt=(e.options.lineWrapping?Br:Ir)(e,r,D,X,Ve,O,N);pe=tt.level!=1,re=pe?tt.from:tt.to-1,se=pe?tt.to:tt.from-1}var Mt=null,Tt=null,nn=ct(function(yr){var pr=bt(e,X,yr);return pr.top+=q,pr.bottom+=q,Pr(pr,O,N,!1)?(pr.top<=N&&pr.left<=O&&(Mt=yr,Tt=pr),!0):!1},re,se),En,Ln,Nn=!1;if(Tt){var Xn=O-Tt.left=er.bottom?1:0}return nn=$e(r.text,nn,1),Mn(D,nn,Ln,Nn,O-En)}function Ir(e,r,D,O,N,X,q){var re=ct(function(tt){var Mt=N[tt],Tt=Mt.level!=1;return Pr(or(e,pn(D,Tt?Mt.to:Mt.from,Tt?"before":"after"),"line",r,O),X,q,!0)},0,N.length-1),se=N[re];if(re>0){var pe=se.level!=1,Ve=or(e,pn(D,pe?se.from:se.to,pe?"after":"before"),"line",r,O);Pr(Ve,X,q,!0)&&Ve.top>q&&(se=N[re-1])}return se}function Br(e,r,D,O,N,X,q){var re=Or(e,r,O,q),se=re.begin,pe=re.end;/\s/.test(r.text.charAt(pe-1))&&pe--;for(var Ve=null,tt=null,Mt=0;Mt=pe||Tt.to<=se)continue;var nn=Tt.level!=1,En=bt(e,O,nn?Math.min(pe,Tt.to)-1:Math.max(se,Tt.from)).right,Ln=EnLn)&&(Ve=Tt,tt=Ln)}return Ve||(Ve=N[N.length-1]),Ve.frompe&&(Ve={from:Ve.from,to:pe,level:Ve.level}),Ve}var Ur;function jr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ur==null){Ur=v("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ur.appendChild(document.createTextNode("x")),Ur.appendChild(v("br"));Ur.appendChild(document.createTextNode("x"))}p(e.measure,Ur);var D=Ur.offsetHeight/50;return D>3&&(e.cachedTextHeight=D),h(e.measure),D||1}function Nr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=v("span","xxxxxxxxxx"),D=v("pre",[r],"CodeMirror-line-like");p(e.measure,D);var O=r.getBoundingClientRect(),N=(O.right-O.left)/10;return N>2&&(e.cachedCharWidth=N),N||10}function fr(e){for(var r=e.display,D={},O={},N=r.gutters.clientLeft,X=r.gutters.firstChild,q=0;X;X=X.nextSibling,++q){var re=e.display.gutterSpecs[q].className;D[re]=X.offsetLeft+X.clientLeft+N,O[re]=X.clientWidth}return{fixedPos:la(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:D,gutterWidth:O,wrapperWidth:r.wrapper.clientWidth}}function la(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Qa(e){var r=jr(e.display),D=e.options.lineWrapping,O=D&&Math.max(5,e.display.scroller.clientWidth/Nr(e.display)-3);return function(N){if(_n(e.doc,N))return 0;var X=0;if(N.widgets)for(var q=0;q0&&(pe=wn(e.doc,se.line).text).length==se.ch){var Ve=V(pe,pe.length,e.options.tabSize)-pe.length;se=pn(se.line,Math.max(0,Math.round((X-et(e.display).left)/Nr(e.display))-Ve))}return se}function qr(e,r){if(r>=e.display.viewTo)return null;if(r-=e.display.viewFrom,r<0)return null;for(var D=e.display.view,O=0;Or)&&(N.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=N.viewTo)In&&qt(e.doc,r)N.viewFrom?ea(e):(N.viewFrom+=O,N.viewTo+=O);else if(r<=N.viewFrom&&D>=N.viewTo)ea(e);else if(r<=N.viewFrom){var X=Ua(e,D,D+O,1);X?(N.view=N.view.slice(X.index),N.viewFrom=X.lineN,N.viewTo+=O):ea(e)}else if(D>=N.viewTo){var q=Ua(e,r,r,-1);q?(N.view=N.view.slice(0,q.index),N.viewTo=q.lineN):ea(e)}else{var re=Ua(e,r,r,-1),se=Ua(e,D,D+O,1);re&&se?(N.view=N.view.slice(0,re.index).concat(hr(e,re.lineN,se.lineN)).concat(N.view.slice(se.index)),N.viewTo+=O):ea(e)}var pe=N.externalMeasured;pe&&(D=N.lineN&&r=O.viewTo)return;var X=O.view[qr(e,r)];if(X.node==null)return;var q=X.changes||(X.changes=[]);$(q,D)==-1&&q.push(D)}function ea(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ua(e,r,D,O){var N=qr(e,r),X,q=e.display.view;if(!In||D==e.doc.first+e.doc.size)return{index:N,lineN:D};for(var re=e.display.viewFrom,se=0;se0){if(N==q.length-1)return null;X=re+q[N].size-r,N++}else X=re-r;r+=X,D+=X}for(;qt(e.doc,D)!=D;){if(N==(O<0?0:q.length-1))return null;D+=O*q[N-(O<0?1:0)].size,N+=O}return{index:N,lineN:D}}function hi(e,r,D){var O=e.display,N=O.view;N.length==0||r>=O.viewTo||D<=O.viewFrom?(O.view=hr(e,r,D),O.viewFrom=r):(O.viewFrom>r?O.view=hr(e,r,O.viewFrom).concat(O.view):O.viewFromD&&(O.view=O.view.slice(0,qr(e,D)))),O.viewTo=D}function si(e){for(var r=e.display.view,D=0,O=0;O=e.display.viewTo||re.to().line0?r.blinker=setInterval(function(){e.hasFocus()||Ci(e),r.cursorDiv.style.visibility=(D=!D)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}function Pi(e){e.state.focused||(e.display.input.focus(),li(e))}function no(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Ci(e))},100)}function li(e,r){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Je(e,"focus",e,r),e.state.focused=!0,U(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),t&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ba(e)}function Ci(e,r){if(e.state.delayingBlurEvent)return;e.state.focused&&(Je(e,"blur",e,r),e.state.focused=!1,y(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Ti(e){for(var r=e.display,D=r.lineDiv.offsetTop,O=0;O.005||Ve<-.005)&&(rr(N.line,q),Si(N.line),N.rest))for(var tt=0;tte.display.sizerWidth){var Mt=Math.ceil(re/Nr(e.display));Mt>e.display.maxLineLength&&(e.display.maxLineLength=Mt,e.display.maxLine=N.line,e.display.maxLineChanged=!0)}}}function Si(e){if(e.widgets)for(var r=0;r=q&&(X=Ar(r,Vt(wn(r,se))-e.wrapper.clientHeight),q=se)}return{from:X,to:Math.max(q,X+1)}}function co(e,r){if(dt(e,"scrollCursorIntoView"))return;var D=e.display,O=D.sizer.getBoundingClientRect(),N=null;if(r.top+O.top<0?N=!0:r.bottom+O.top>(window.innerHeight||document.documentElement.clientHeight)&&(N=!1),N!=null&&!i){var X=v("div","\u200B",null,`position: absolute; +`,r);N==-1&&(N=e.length);var X=e.slice(r,e.charAt(N-1)=="\r"?N-1:N),q=X.indexOf("\r");q!=-1?(D.push(X.slice(0,q)),r+=q+1):(D.push(X),r=N+1)}return D}:function(e){return e.split(/\r\n?|\n/)},At=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(r){return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch(D){}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},ft=function(){var e=v("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),be=null;function Fe(e){if(be!=null)return be;var r=p(e,v("span","x")),D=r.getBoundingClientRect(),O=E(r,0,1).getBoundingClientRect();return be=Math.abs(D.left-O.left)>1}var Nt={},bt={};function Kt(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Nt[e]=r}function Zt(e,r){bt[e]=r}function Ge(e){if(typeof e=="string"&&bt.hasOwnProperty(e))e=bt[e];else if(e&&typeof e.name=="string"&&bt.hasOwnProperty(e.name)){var r=bt[e.name];typeof r=="string"&&(r={name:r}),e=rt(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ge("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ge("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function lt(e,r){r=Ge(r);var D=Nt[r.name];if(!D)return lt(e,"text/plain");var O=D(e,r);if(Lt.hasOwnProperty(r.name)){var N=Lt[r.name];for(var X in N){if(!N.hasOwnProperty(X))continue;O.hasOwnProperty(X)&&(O["_"+X]=O[X]),O[X]=N[X]}}if(O.name=r.name,r.helperType&&(O.helperType=r.helperType),r.modeProps)for(var q in r.modeProps)O[q]=r.modeProps[q];return O}var Lt={};function Wt(e,r){var D=Lt.hasOwnProperty(e)?Lt[e]:Lt[e]={};M(r,D)}function ln(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var D={};for(var O in r){var N=r[O];N instanceof Array&&(N=N.concat([])),D[O]=N}return D}function gn(e,r){for(var D;e.innerMode&&!(D=e.innerMode(r),!D||D.mode==e);)r=D.state,e=D.mode;return D||{mode:e,state:r}}function tr(e,r,D){return e.startState?e.startState(r,D):!0}var Wn=function(e,r,D){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=D};Wn.prototype.eol=function(){return this.pos>=this.string.length},Wn.prototype.sol=function(){return this.pos==this.lineStart},Wn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wn.prototype.next=function(){if(this.posr},Wn.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Wn.prototype.skipToEnd=function(){this.pos=this.string.length},Wn.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},Wn.prototype.backUp=function(e){this.pos-=e},Wn.prototype.column=function(){return this.lastColumnPos0?null:(X&&r!==!1&&(this.pos+=X[0].length),X)}},Wn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wn.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},Wn.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},Wn.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function En(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var D=e;!D.lines;)for(var O=0;;++O){var N=D.children[O],X=N.chunkSize();if(r=e.first&&rD?fn(D,En(e,D).text.length):G(r,En(e,r.line).text.length)}function G(e,r){var D=e.ch;return D==null||D>r?fn(e.line,r):D<0?fn(e.line,0):e}function Q(e,r){for(var D=[],O=0;Othis.maxLookAhead&&(this.maxLookAhead=e),r},ee.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ee.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ee.fromSaved=function(e,r,D){return r instanceof ue?new ee(e,ln(e.mode,r.state),D,r.lookAhead):new ee(e,ln(e.mode,r),D)},ee.prototype.save=function(e){var r=e!==!1?ln(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ue(r,this.maxLookAhead):r};function qe(e,r,D,O){var N=[e.state.modeGen],X={};Nn(e,r.text,e.doc.mode,D,function(pe,Ve){return N.push(pe,Ve)},X,O);for(var q=D.state,re=function(pe){D.baseTokens=N;var Ve=e.state.overlays[pe],nt=1,Dt=0;D.state=!0,Nn(e,r.text,Ve.mode,D,function(Tt,an){for(var yn=nt;DtTt&&N.splice(nt,1,Tt,N[nt+1],Ln),nt+=2,Dt=Math.min(Tt,Ln)}if(!an)return;if(Ve.opaque)N.splice(yn,nt-yn,Tt,"overlay "+an),nt=yn+2;else for(;yne.options.maxHighlightLength&&ln(e.doc.mode,O.state),X=qe(e,r,O);N&&(O.state=N),r.stateAfter=O.save(!N),r.styles=X.styles,X.classes?r.styleClasses=X.classes:r.styleClasses&&(r.styleClasses=null),D===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function An(e,r,D){var O=e.doc,N=e.display;if(!O.mode.startState)return new ee(O,!0,r);var X=dr(e,r,D),q=X>O.first&&En(O,X-1).stateAfter,re=q?ee.fromSaved(O,q,X):new ee(O,tr(O.mode),X);return O.iter(X,r,function(se){Vn(e,se.text,re);var pe=re.line;se.stateAfter=pe==r-1||pe%5==0||pe>=N.viewFrom&&per.start)return X}throw new Error("Mode "+e.name+" failed to advance stream.")}var vn=function(e,r,D){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=D};function dn(e,r,D,O){var N=e.doc,X=N.mode,q;r=W(N,r);var re=En(N,r.line),se=An(e,r.line,D),pe=new Wn(re.text,e.options.tabSize,se),Ve;for(O&&(Ve=[]);(O||pe.pose.options.maxHighlightLength?(re=!1,q&&Vn(e,r,O,Ve.pos),Ve.pos=r.length,nt=null):nt=xn(nr(D,Ve,O.state,Dt),X),Dt){var Tt=Dt[0].name;Tt&&(nt="m-"+(nt?Tt+" "+nt:Tt))}if(!re||pe!=nt){for(;seq;--re){if(re<=X.first)return X.first;var se=En(X,re-1),pe=se.stateAfter;if(pe&&(!D||re+(pe instanceof ue?pe.lookAhead:0)<=X.modeFrontier))return re;var Ve=V(se.text,null,e.options.tabSize);(N==null||O>Ve)&&(N=re-1,O=Ve)}return N}function $n(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),e.highlightFrontierD;O--){var N=En(e,O).stateAfter;if(N&&(!(N instanceof ue)||O+N.lookAhead=r:X.to>r);(O||(O=[])).push(new ar(q,X.from,se?null:X.to))}}return O}function Sr(e,r,D){var O;if(e)for(var N=0;N=r:X.to>r);if(re||X.from==r&&q.type=="bookmark"&&(!D||X.marker.insertLeft)){var se=X.from==null||(q.inclusiveLeft?X.from<=r:X.from0&&re)for(var er=0;er0)continue;var Ve=[se,1],nt=or(pe.from,re.from),Dt=or(pe.to,re.to);(nt<0||!q.inclusiveLeft&&!nt)&&Ve.push({from:pe.from,to:re.from}),(Dt>0||!q.inclusiveRight&&!Dt)&&Ve.push({from:re.to,to:pe.to}),N.splice.apply(N,Ve),se+=Ve.length-3}return N}function Xe(e){var r=e.markedSpans;if(!r)return;for(var D=0;Dr)&&(!O||pt(O,X.marker)<0)&&(O=X.marker)}return O}function Vt(e,r,D,O,N){var X=En(e,r),q=kn&&X.markedSpans;if(q)for(var re=0;re=0&&nt<=0||Ve<=0&&nt>=0)continue;if(Ve<=0&&(se.marker.inclusiveRight&&N.inclusiveLeft?or(pe.to,D)>=0:or(pe.to,D)>0)||Ve>=0&&(se.marker.inclusiveRight&&N.inclusiveLeft?or(pe.from,O)<=0:or(pe.from,O)<0))return!0}}function St(e){for(var r;r=it(e);)e=r.find(-1,!0).line;return e}function nn(e){for(var r;r=Mt(e);)e=r.find(1,!0).line;return e}function Qe(e){for(var r,D;r=Mt(e);)e=r.find(1,!0).line,(D||(D=[])).push(e);return D}function en(e,r){var D=En(e,r),O=St(D);return D==O?r:ur(O)}function Bt(e,r){if(r>e.lastLine())return r;var D=En(e,r),O;if(!bn(e,D))return r;for(;O=Mt(D);)D=O.find(1,!0).line;return ur(D)+1}function bn(e,r){var D=kn&&r.markedSpans;if(D)for(var O=void 0,N=0;Nr.maxLineLength&&(r.maxLineLength=N,r.maxLine=O)})}var Sn=function(e,r,D){this.text=e,Le(this,r),this.height=D?D(this):1};Sn.prototype.lineNo=function(){return ur(this)},Oe(Sn);function wn(e,r,D,O){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Xe(e),Le(e,D);var N=O?O(e):1;N!=e.height&&rr(e,N)}function wt(e){e.parent=null,Xe(e)}var It={},Pt={};function Ct(e,r){if(!e||/^\s*$/.test(e))return null;var D=r.addModeClass?Pt:It;return D[e]||(D[e]=e.replace(/\S+/g,"cm-$&"))}function vt(e,r){var D=_("span",null,null,t?"padding-right: .1px":null),O={pre:_("pre",[D],"CodeMirror-line"),content:D,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var N=0;N<=(r.rest?r.rest.length:0);N++){var X=N?r.rest[N-1]:r.line,q=void 0;O.pos=0,O.addToken=$t,zt(e.display.measure)&&(q=qt(X,e.doc.direction))&&(O.addToken=pn(O.addToken,q)),O.map=[];var re=r!=e.display.externalMeasured&&ur(X);Tn(X,O,tn(e,X,re)),X.styleClasses&&(X.styleClasses.bgClass&&(O.bgClass=S(X.styleClasses.bgClass,O.bgClass||"")),X.styleClasses.textClass&&(O.textClass=S(X.styleClasses.textClass,O.textClass||""))),O.map.length==0&&O.map.push(0,0,O.content.appendChild(sn(e.display.measure))),N==0?(r.measure.map=O.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(O.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(t){var se=O.content.lastChild;(/\bcm-tab\b/.test(se.className)||se.querySelector&&se.querySelector(".cm-tab"))&&(O.content.className="cm-tab-wrap-hack")}return Ze(e,"renderLine",e,r.line,O.pre),O.pre.className&&(O.textClass=S(O.pre.className,O.textClass||"")),O}function Dn(e){var r=v("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function $t(e,r,D,O,N,X,q){if(!r)return;var re=e.splitSpaces?Cn(r,e.trailingSpace):r,se=e.cm.state.specialChars,pe=!1,Ve;if(!se.test(r))e.col+=r.length,Ve=document.createTextNode(re),e.map.push(e.pos,e.pos+r.length,Ve),P&&m<9&&(pe=!0),e.pos+=r.length;else{Ve=document.createDocumentFragment();for(var nt=0;;){se.lastIndex=nt;var Dt=se.exec(r),Tt=Dt?Dt.index-nt:r.length-nt;if(Tt){var an=document.createTextNode(re.slice(nt,nt+Tt));P&&m<9?Ve.appendChild(v("span",[an])):Ve.appendChild(an),e.map.push(e.pos,e.pos+Tt,an),e.col+=Tt,e.pos+=Tt}if(!Dt)break;nt+=Tt+1;var yn=void 0;if(Dt[0]==" "){var Ln=e.cm.options.tabSize,jn=Ln-e.col%Ln;yn=Ve.appendChild(v("span",de(jn),"cm-tab")),yn.setAttribute("role","presentation"),yn.setAttribute("cm-text"," "),e.col+=jn}else Dt[0]=="\r"||Dt[0]==` +`?(yn=Ve.appendChild(v("span",Dt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),yn.setAttribute("cm-text",Dt[0]),e.col+=1):(yn=e.cm.options.specialCharPlaceholder(Dt[0]),yn.setAttribute("cm-text",Dt[0]),P&&m<9?Ve.appendChild(v("span",[yn])):Ve.appendChild(yn),e.col+=1);e.map.push(e.pos,e.pos+1,yn),e.pos++}}if(e.trailingSpace=re.charCodeAt(r.length-1)==32,D||O||N||pe||X||q){var Xn=D||"";O&&(Xn+=O),N&&(Xn+=N);var Un=v("span",[Ve],Xn,X);if(q)for(var er in q)q.hasOwnProperty(er)&&er!="style"&&er!="class"&&Un.setAttribute(er,q[er]);return e.content.appendChild(Un)}e.content.appendChild(Ve)}function Cn(e,r){if(e.length>1&&!/ /.test(e))return e;for(var D=r,O="",N=0;Npe&&nt.from<=pe);Dt++);if(nt.to>=Ve)return e(D,O,N,X,q,re,se);e(D,O.slice(0,nt.to-pe),N,X,null,re,se),X=null,O=O.slice(nt.to-pe),pe=nt.to}}}function Yt(e,r,D,O){var N=!O&&D.widgetNode;N&&e.map.push(e.pos,e.pos+r,N),!O&&e.cm.display.input.needsContentAttribute&&(N||(N=e.content.appendChild(document.createElement("span"))),N.setAttribute("cm-marker",D.id)),N&&(e.cm.display.input.setUneditable(N),e.content.appendChild(N)),e.pos+=r,e.trailingSpace=!1}function Tn(e,r,D){var O=e.markedSpans,N=e.text,X=0;if(!O){for(var q=1;qse||kr.collapsed&&mr.to==se&&mr.from==se)){if(mr.to!=null&&mr.to!=se&&Tt>mr.to&&(Tt=mr.to,yn=""),kr.className&&(an+=" "+kr.className),kr.css&&(Dt=(Dt?Dt+";":"")+kr.css),kr.startStyle&&mr.from==se&&(Ln+=" "+kr.startStyle),kr.endStyle&&mr.to==Tt&&(er||(er=[])).push(kr.endStyle,mr.to),kr.title&&((Xn||(Xn={})).title=kr.title),kr.attributes)for(var ia in kr.attributes)(Xn||(Xn={}))[ia]=kr.attributes[ia];kr.collapsed&&(!jn||pt(jn.marker,kr)<0)&&(jn=mr)}else mr.from>se&&Tt>mr.from&&(Tt=mr.from)}if(er)for(var Ba=0;Ba=re)break;for(var oi=Math.min(re,Tt);;){if(Ve){var ti=se+Ve.length;if(!jn){var Ma=ti>oi?Ve.slice(0,oi-se):Ve;r.addToken(r,Ma,nt?nt+an:an,Ln,se+Ma.length==Tt?yn:"",Dt,Xn)}if(ti>=oi){Ve=Ve.slice(oi-se),se=oi;break}se=ti,Ln=""}Ve=N.slice(X,X=D[pe++]),nt=Ct(D[pe++],r.cm.options)}}}function zn(e,r,D){this.line=r,this.rest=Qe(r),this.size=this.rest?ur(Je(this.rest))-D+1:1,this.node=this.text=null,this.hidden=bn(e,r)}function fr(e,r,D){for(var O=[],N,X=r;X2&&X.push((se.bottom+pe.top)/2-D.top)}}X.push(D.bottom-D.top)}}function ge(e,r,D){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var O=0;OD)return{map:e.measure.maps[N],cache:e.measure.caches[N],before:!0}}function Ue(e,r){r=St(r);var D=ur(r),O=e.display.externalMeasured=new zn(e.doc,r,D);O.lineN=D;var N=O.built=vt(e,O);return O.text=N.pre,p(e.display.lineMeasure,N.pre),O}function Ye(e,r,D,O){return _t(e,Ke(e,r),D,O)}function ot(e,r){if(r>=e.display.viewFrom&&r=D.lineN&&rr)&&(X=se-re,N=X-1,r>=se&&(q="right")),N!=null){if(O=e[pe+2],re==se&&D==(O.insertLeft?"left":"right")&&(q=D),D=="left"&&N==0)for(;pe&&e[pe-2]==e[pe-3]&&e[pe-1].insertLeft;)O=e[(pe-=3)+2],q="left";if(D=="right"&&N==se-re)for(;pe=0&&!((D=e[N]).left!=D.right);N--);return D}function Rn(e,r,D,O){var N=rn(r.map,D,O),X=N.node,q=N.start,re=N.end,se=N.collapse,pe;if(X.nodeType==3){for(var Ve=0;Ve<4;Ve++){for(;q&&we(r.line.text.charAt(N.coverStart+q));)--q;for(;N.coverStart+re0&&(se=O="right");var nt;e.options.lineWrapping&&(nt=X.getClientRects()).length>1?pe=nt[O=="right"?nt.length-1:0]:pe=X.getBoundingClientRect()}if(P&&m<9&&!q&&(!pe||!pe.left&&!pe.right)){var Dt=X.parentNode.getClientRects()[0];Dt?pe={left:Dt.left,right:Dt.left+Nr(e.display),top:Dt.top,bottom:Dt.bottom}:pe=Ft}for(var Tt=pe.top-r.rect.top,an=pe.bottom-r.rect.top,yn=(Tt+an)/2,Ln=r.view.measure.heights,jn=0;jn=O.text.length?(se=O.text.length,pe="before"):se<=0&&(se=0,pe="after"),!re)return q(pe=="before"?se-1:se,pe=="before");function Ve(an,yn,Ln){var jn=re[yn],Xn=jn.level==1;return q(Ln?an-1:an,Xn!=Ln)}var nt=We(re,se,pe),Dt=Ut,Tt=Ve(se,nt,pe=="before");return Dt!=null&&(Tt.other=Ve(se,Dt,pe!="before")),Tt}function mn(e,r){var D=0;r=W(e.doc,r),e.options.lineWrapping||(D=Nr(e.display)*r.ch);var O=En(e.doc,r.line),N=Gt(O)+wa(e.display);return{left:D,right:D,top:N,bottom:N+O.height}}function Mn(e,r,D,O,N){var X=fn(e,r,D);return X.xRel=N,O&&(X.outside=O),X}function vr(e,r,D){var O=e.doc;if(D+=e.display.viewOffset,D<0)return Mn(O.first,0,null,-1,-1);var N=Rr(O,D),X=O.first+O.size-1;if(N>X)return Mn(O.first+O.size-1,En(O,X).text.length,null,1,1);r<0&&(r=0);for(var q=En(O,N);;){var re=$r(e,q,N,r,D),se=Xt(q,re.ch+(re.xRel>0||re.outside>0?1:0));if(!se)return re;var pe=se.find(1);if(pe.line==N)return pe;q=En(O,N=pe.line)}}function Or(e,r,D,O){O-=_n(r);var N=r.text.length,X=ct(function(q){return _t(e,D,q-1).bottom<=O},N,0);return N=ct(function(q){return _t(e,D,q).top>O},X,N),{begin:X,end:N}}function Qn(e,r,D,O){D||(D=Ke(e,r));var N=yr(e,r,_t(e,D,O),"line").top;return Or(e,r,D,N)}function Pr(e,r,D,O){return e.bottom<=D?!1:e.top>D?!0:(O?e.left:e.right)>r}function $r(e,r,D,O,N){N-=Gt(r);var X=Ke(e,r),q=_n(r),re=0,se=r.text.length,pe=!0,Ve=qt(r,e.doc.direction);if(Ve){var nt=(e.options.lineWrapping?Br:Ir)(e,r,D,X,Ve,O,N);pe=nt.level!=1,re=pe?nt.from:nt.to-1,se=pe?nt.to:nt.from-1}var Dt=null,Tt=null,an=ct(function(br){var mr=_t(e,X,br);return mr.top+=q,mr.bottom+=q,Pr(mr,O,N,!1)?(mr.top<=N&&mr.left<=O&&(Dt=br,Tt=mr),!0):!1},re,se),yn,Ln,jn=!1;if(Tt){var Xn=O-Tt.left=er.bottom?1:0}return an=$e(r.text,an,1),Mn(D,an,Ln,jn,O-yn)}function Ir(e,r,D,O,N,X,q){var re=ct(function(nt){var Dt=N[nt],Tt=Dt.level!=1;return Pr(ir(e,fn(D,Tt?Dt.to:Dt.from,Tt?"before":"after"),"line",r,O),X,q,!0)},0,N.length-1),se=N[re];if(re>0){var pe=se.level!=1,Ve=ir(e,fn(D,pe?se.from:se.to,pe?"after":"before"),"line",r,O);Pr(Ve,X,q,!0)&&Ve.top>q&&(se=N[re-1])}return se}function Br(e,r,D,O,N,X,q){var re=Or(e,r,O,q),se=re.begin,pe=re.end;/\s/.test(r.text.charAt(pe-1))&&pe--;for(var Ve=null,nt=null,Dt=0;Dt=pe||Tt.to<=se)continue;var an=Tt.level!=1,yn=_t(e,O,an?Math.min(pe,Tt.to)-1:Math.max(se,Tt.from)).right,Ln=ynLn)&&(Ve=Tt,nt=Ln)}return Ve||(Ve=N[N.length-1]),Ve.frompe&&(Ve={from:Ve.from,to:pe,level:Ve.level}),Ve}var Ur;function jr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ur==null){Ur=v("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ur.appendChild(document.createTextNode("x")),Ur.appendChild(v("br"));Ur.appendChild(document.createTextNode("x"))}p(e.measure,Ur);var D=Ur.offsetHeight/50;return D>3&&(e.cachedTextHeight=D),h(e.measure),D||1}function Nr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=v("span","xxxxxxxxxx"),D=v("pre",[r],"CodeMirror-line-like");p(e.measure,D);var O=r.getBoundingClientRect(),N=(O.right-O.left)/10;return N>2&&(e.cachedCharWidth=N),N||10}function pr(e){for(var r=e.display,D={},O={},N=r.gutters.clientLeft,X=r.gutters.firstChild,q=0;X;X=X.nextSibling,++q){var re=e.display.gutterSpecs[q].className;D[re]=X.offsetLeft+X.clientLeft+N,O[re]=X.clientWidth}return{fixedPos:la(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:D,gutterWidth:O,wrapperWidth:r.wrapper.clientWidth}}function la(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Qa(e){var r=jr(e.display),D=e.options.lineWrapping,O=D&&Math.max(5,e.display.scroller.clientWidth/Nr(e.display)-3);return function(N){if(bn(e.doc,N))return 0;var X=0;if(N.widgets)for(var q=0;q0&&(pe=En(e.doc,se.line).text).length==se.ch){var Ve=V(pe,pe.length,e.options.tabSize)-pe.length;se=fn(se.line,Math.max(0,Math.round((X-tt(e.display).left)/Nr(e.display))-Ve))}return se}function qr(e,r){if(r>=e.display.viewTo)return null;if(r-=e.display.viewFrom,r<0)return null;for(var D=e.display.view,O=0;Or)&&(N.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=N.viewTo)kn&&en(e.doc,r)N.viewFrom?ea(e):(N.viewFrom+=O,N.viewTo+=O);else if(r<=N.viewFrom&&D>=N.viewTo)ea(e);else if(r<=N.viewFrom){var X=Ua(e,D,D+O,1);X?(N.view=N.view.slice(X.index),N.viewFrom=X.lineN,N.viewTo+=O):ea(e)}else if(D>=N.viewTo){var q=Ua(e,r,r,-1);q?(N.view=N.view.slice(0,q.index),N.viewTo=q.lineN):ea(e)}else{var re=Ua(e,r,r,-1),se=Ua(e,D,D+O,1);re&&se?(N.view=N.view.slice(0,re.index).concat(fr(e,re.lineN,se.lineN)).concat(N.view.slice(se.index)),N.viewTo+=O):ea(e)}var pe=N.externalMeasured;pe&&(D=N.lineN&&r=O.viewTo)return;var X=O.view[qr(e,r)];if(X.node==null)return;var q=X.changes||(X.changes=[]);$(q,D)==-1&&q.push(D)}function ea(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ua(e,r,D,O){var N=qr(e,r),X,q=e.display.view;if(!kn||D==e.doc.first+e.doc.size)return{index:N,lineN:D};for(var re=e.display.viewFrom,se=0;se0){if(N==q.length-1)return null;X=re+q[N].size-r,N++}else X=re-r;r+=X,D+=X}for(;en(e.doc,D)!=D;){if(N==(O<0?0:q.length-1))return null;D+=O*q[N-(O<0?1:0)].size,N+=O}return{index:N,lineN:D}}function hi(e,r,D){var O=e.display,N=O.view;N.length==0||r>=O.viewTo||D<=O.viewFrom?(O.view=fr(e,r,D),O.viewFrom=r):(O.viewFrom>r?O.view=fr(e,r,O.viewFrom).concat(O.view):O.viewFromD&&(O.view=O.view.slice(0,qr(e,D)))),O.viewTo=D}function si(e){for(var r=e.display.view,D=0,O=0;O=e.display.viewTo||re.to().line0?r.blinker=setInterval(function(){e.hasFocus()||Ci(e),r.cursorDiv.style.visibility=(D=!D)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}function Pi(e){e.state.focused||(e.display.input.focus(),li(e))}function no(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Ci(e))},100)}function li(e,r){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Ze(e,"focus",e,r),e.state.focused=!0,U(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),t&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),ba(e)}function Ci(e,r){if(e.state.delayingBlurEvent)return;e.state.focused&&(Ze(e,"blur",e,r),e.state.focused=!1,y(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Ti(e){for(var r=e.display,D=r.lineDiv.offsetTop,O=0;O.005||Ve<-.005)&&(rr(N.line,q),Si(N.line),N.rest))for(var nt=0;nte.display.sizerWidth){var Dt=Math.ceil(re/Nr(e.display));Dt>e.display.maxLineLength&&(e.display.maxLineLength=Dt,e.display.maxLine=N.line,e.display.maxLineChanged=!0)}}}function Si(e){if(e.widgets)for(var r=0;r=q&&(X=Rr(r,Gt(En(r,se))-e.wrapper.clientHeight),q=se)}return{from:X,to:Math.max(q,X+1)}}function co(e,r){if(dt(e,"scrollCursorIntoView"))return;var D=e.display,O=D.sizer.getBoundingClientRect(),N=null;if(r.top+O.top<0?N=!0:r.bottom+O.top>(window.innerHeight||document.documentElement.clientHeight)&&(N=!1),N!=null&&!i){var X=v("div","\u200B",null,`position: absolute; top: `+(r.top-D.viewOffset-wa(e.display))+`px; - height: `+(r.bottom-r.top+rt(e)+D.barHeight)+`px; - left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(X),X.scrollIntoView(N),e.display.lineSpace.removeChild(X)}}function Ro(e,r,D,O){O==null&&(O=0);var N;!e.options.lineWrapping&&r==D&&(r=r.ch?pn(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,D=r.sticky=="before"?pn(r.line,r.ch+1,"before"):r);for(var X=0;X<5;X++){var q=!1,re=or(e,r),se=!D||D==r?re:or(e,D);N={left:Math.min(re.left,se.left),top:Math.min(re.top,se.top)-O,right:Math.max(re.left,se.left),bottom:Math.max(re.bottom,se.bottom)+O};var pe=Oi(e,N),Ve=e.doc.scrollTop,tt=e.doc.scrollLeft;if(pe.scrollTop!=null&&(Di(e,pe.scrollTop),Math.abs(e.doc.scrollTop-Ve)>1&&(q=!0)),pe.scrollLeft!=null&&(Ia(e,pe.scrollLeft),Math.abs(e.doc.scrollLeft-tt)>1&&(q=!0)),!q)break}return N}function Gi(e,r){var D=Oi(e,r);D.scrollTop!=null&&Di(e,D.scrollTop),D.scrollLeft!=null&&Ia(e,D.scrollLeft)}function Oi(e,r){var D=e.display,O=jr(e.display);r.top<0&&(r.top=0);var N=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:D.scroller.scrollTop,X=ce(e),q={};r.bottom-r.top>X&&(r.bottom=r.top+X);var re=e.doc.height+De(D),se=r.topre-O;if(r.topN+X){var Ve=Math.min(r.top,(pe?re:r.bottom)-X);Ve!=N&&(q.scrollTop=Ve)}var tt=e.options.fixedGutter?0:D.gutters.offsetWidth,Mt=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:D.scroller.scrollLeft-tt,Tt=je(e)-D.gutters.offsetWidth,nn=r.right-r.left>Tt;return nn&&(r.right=r.left+Tt),r.left<10?q.scrollLeft=0:r.leftTt+Mt-3&&(q.scrollLeft=r.right+(nn?0:10)-Tt),q}function Vi(e,r){if(r==null)return;Yi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r}function yi(e){Yi(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Ri(e,r,D){(r!=null||D!=null)&&Yi(e),r!=null&&(e.curOp.scrollLeft=r),D!=null&&(e.curOp.scrollTop=D)}function ho(e,r){Yi(e),e.curOp.scrollToPos=r}function Yi(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var D=mn(e,r.from),O=mn(e,r.to);Ai(e,D,O,r.margin)}}function Ai(e,r,D,O){var N=Oi(e,{left:Math.min(r.left,D.left),top:Math.min(r.top,D.top)-O,right:Math.max(r.right,D.right),bottom:Math.max(r.bottom,D.bottom)+O});Ri(e,N.scrollLeft,N.scrollTop)}function Di(e,r){if(Math.abs(e.doc.scrollTop-r)<2)return;I||ji(e,{top:r}),bi(e,r,!0),I&&ji(e),Ni(e,100)}function bi(e,r,D){if(r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),e.display.scroller.scrollTop==r&&!D)return;e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r)}function Ia(e,r,D,O){if(r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(D?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!O)return;e.doc.scrollLeft=r,Mr(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r)}function fi(e){var r=e.display,D=r.gutters.offsetWidth,O=Math.round(e.doc.height+De(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?D:0,docHeight:O,scrollHeight:O+rt(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:D}}var pi=function(e,r,D){this.cm=D;var O=this.vert=v("div",[v("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),N=this.horiz=v("div",[v("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");O.tabIndex=N.tabIndex=-1,e(O),e(N),Ae(O,"scroll",function(){O.clientHeight&&r(O.scrollTop,"vertical")}),Ae(N,"scroll",function(){N.clientWidth&&r(N.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,P&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,D=e.scrollHeight>e.clientHeight+1,O=e.nativeBarWidth;if(D){this.vert.style.display="block",this.vert.style.bottom=r?O+"px":"0";var N=e.viewHeight-(r?O:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+N)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=D?O+"px":"0",this.horiz.style.left=e.barLeft+"px";var X=e.viewWidth-e.barLeft-(D?O:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+X)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(O==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:D?O:0,bottom:r?O:0}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=l&&!a?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new K,this.disableVert=new K},pi.prototype.enableZeroWidthBar=function(e,r,D){e.style.pointerEvents="auto";function O(){var N=e.getBoundingClientRect(),X=D=="vert"?document.elementFromPoint(N.right-1,(N.top+N.bottom)/2):document.elementFromPoint((N.right+N.left)/2,N.bottom-1);X!=e?e.style.pointerEvents="none":r.set(1e3,O)}r.set(1e3,O)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var _i=function(){};_i.prototype.update=function(){return{bottom:0,right:0}},_i.prototype.setScrollLeft=function(){},_i.prototype.setScrollTop=function(){},_i.prototype.clear=function(){};function mi(e,r){r||(r=fi(e));var D=e.display.barWidth,O=e.display.barHeight;Xi(e,r);for(var N=0;N<4&&D!=e.display.barWidth||O!=e.display.barHeight;N++)D!=e.display.barWidth&&e.options.lineWrapping&&Ti(e),Xi(e,fi(e)),D=e.display.barWidth,O=e.display.barHeight}function Xi(e,r){var D=e.display,O=D.scrollbars.update(r);D.sizer.style.paddingRight=(D.barWidth=O.right)+"px",D.sizer.style.paddingBottom=(D.barHeight=O.bottom)+"px",D.heightForcer.style.borderBottom=O.bottom+"px solid transparent",O.right&&O.bottom?(D.scrollbarFiller.style.display="block",D.scrollbarFiller.style.height=O.bottom+"px",D.scrollbarFiller.style.width=O.right+"px"):D.scrollbarFiller.style.display="",O.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(D.gutterFiller.style.display="block",D.gutterFiller.style.height=O.bottom+"px",D.gutterFiller.style.width=r.gutterWidth+"px"):D.gutterFiller.style.display=""}var $i={native:pi,null:_i};function Qi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&y(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new $i[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),Ae(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,D){D=="horizontal"?Ia(e,r):Di(e,r)},e),e.display.scrollbars.addClass&&U(e.display.wrapper,e.display.scrollbars.addClass)}var ki=0;function ui(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ki},Lr(e.curOp)}function Ei(e){var r=e.curOp;r&&Bn(r,function(D){for(var O=0;O=D.viewTo)||D.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new qa(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Do(e){e.updatedDisplay=e.mustUpdate&&xi(e.cm,e.update)}function fo(e){var r=e.cm,D=r.display;e.updatedDisplay&&Ti(r),e.barMeasure=fi(r),D.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=Ye(r,D.maxLine,D.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(D.scroller.clientWidth,D.sizer.offsetLeft+e.adjustWidthTo+rt(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,D.sizer.offsetLeft+e.adjustWidthTo-je(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=D.input.prepareSelection())}function ao(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var D=+new Date+e.options.workTime,O=An(e,r.highlightFrontier),N=[];r.iter(O.line,Math.min(r.first+r.size,e.display.viewTo+500),function(X){if(O.line>=e.display.viewFrom){var q=X.styles,re=X.text.length>e.options.maxHighlightLength?sn(r.mode,O.state):null,se=qe(e,X,O,!0);re&&(O.state=re),X.styles=se.styles;var pe=X.styleClasses,Ve=se.classes;Ve?X.styleClasses=Ve:pe&&(X.styleClasses=null);for(var tt=!q||q.length!=X.styles.length||pe!=Ve&&(!pe||!Ve||pe.bgClass!=Ve.bgClass||pe.textClass!=Ve.textClass),Mt=0;!tt&&MtD)return Ni(e,e.options.workDelay),!0}),r.highlightFrontier=O.line,r.modeFrontier=Math.max(r.modeFrontier,O.line),N.length&&Wa(e,function(){for(var X=0;X=D.viewFrom&&r.visible.to<=D.viewTo&&(D.updateLineNumbers==null||D.updateLineNumbers>=D.viewTo)&&D.renderedView==D.view&&si(e)==0)return!1;oa(e)&&(ea(e),r.dims=fr(e));var N=O.first+O.size,X=Math.max(r.visible.from-e.options.viewportMargin,O.first),q=Math.min(N,r.visible.to+e.options.viewportMargin);D.viewFromq&&D.viewTo-q<20&&(q=Math.min(N,D.viewTo)),In&&(X=qt(e.doc,X),q=zt(e.doc,q));var re=X!=D.viewFrom||q!=D.viewTo||D.lastWrapHeight!=r.wrapperHeight||D.lastWrapWidth!=r.wrapperWidth;hi(e,X,q),D.viewOffset=Vt(wn(e.doc,D.viewFrom)),e.display.mover.style.top=D.viewOffset+"px";var se=si(e);if(!re&&se==0&&!r.force&&D.renderedView==D.view&&(D.updateLineNumbers==null||D.updateLineNumbers>=D.viewTo))return!1;var pe=oo(e);return se>4&&(D.lineDiv.style.display="none"),go(e,D.updateLineNumbers,r.dims),se>4&&(D.lineDiv.style.display=""),D.renderedView=D.view,so(pe),h(D.cursorDiv),h(D.selectionDiv),D.gutters.style.height=D.sizer.style.minHeight=0,re&&(D.lastWrapHeight=r.wrapperHeight,D.lastWrapWidth=r.wrapperWidth,Ni(e,400)),D.updateLineNumbers=null,!0}function Ji(e,r){for(var D=r.viewport,O=!0;;O=!1){if(!O||!e.options.lineWrapping||r.oldDisplayWidth==je(e)){if(D&&D.top!=null&&(D={top:Math.min(e.doc.height+De(e.display)-ce(e),D.top)}),r.visible=Ii(e.display,e.doc,D),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else O&&(r.visible=Ii(e.display,e.doc,D));if(!xi(e,r))break;Ti(e);var N=fi(e);Yr(e),mi(e,N),Hr(e,N),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ji(e,r){var D=new qa(e,r);if(xi(e,D)){Ti(e),Ji(e,D);var O=fi(e);Yr(e),mi(e,O),Hr(e,O),D.finish()}}function go(e,r,D){var O=e.display,N=e.options.lineNumbers,X=O.lineDiv,q=X.firstChild;function re(nn){var En=nn.nextSibling;return t&&l&&e.display.currentWheelTarget==nn?nn.style.display="none":nn.parentNode.removeChild(nn),En}for(var se=O.view,pe=O.viewFrom,Ve=0;Ve-1&&(Tt=!1),Wr(e,tt,pe,D)),Tt&&(h(tt.lineNumber),tt.lineNumber.appendChild(document.createTextNode(ra(e.options,pe)))),q=tt.node.nextSibling}pe+=tt.size}for(;q;)q=re(q)}function Zi(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px"}function Hr(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+rt(e)+"px"}function Mr(e){var r=e.display,D=r.view;if(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))return;for(var O=la(r)-r.scroller.scrollLeft+e.doc.scrollLeft,N=r.gutters.offsetWidth,X=O+"px",q=0;qq.clientWidth,se=q.scrollHeight>q.clientHeight;if(!(O&&re||N&&se))return;if(N&&l&&t){e:for(var pe=r.target,Ve=X.view;pe!=q;pe=pe.parentNode)for(var tt=0;tt=0&&sr(e,O.to())<=0)return D}return-1};var Fr=function(e,r){this.anchor=e,this.head=r};Fr.prototype.from=function(){return na(this.anchor,this.head)},Fr.prototype.to=function(){return Jr(this.anchor,this.head)},Fr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _r(e,r,D){var O=e&&e.options.selectionsMayTouch,N=r[D];r.sort(function(Mt,Tt){return sr(Mt.from(),Tt.from())}),D=$(r,N);for(var X=1;X0:se>=0){var pe=na(re.from(),q.from()),Ve=Jr(re.to(),q.to()),tt=re.empty()?q.from()==q.head:re.from()==re.head;X<=D&&--D,r.splice(--X,2,new Fr(tt?Ve:pe,tt?pe:Ve))}}return new za(r,D)}function Un(e,r){return new za([new Fr(e,r||e)],0)}function lr(e){return e.text?pn(e.from.line+e.text.length-1,Qe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Dr(e,r){if(sr(e,r.from)<0)return e;if(sr(e,r.to)<=0)return lr(r);var D=e.line+r.text.length-(r.to.line-r.from.line)-1,O=e.ch;return e.line==r.to.line&&(O+=lr(r).ch-r.to.ch),pn(D,O)}function aa(e,r){for(var D=[],O=0;O1&&e.remove(re.line+1,nn-1),e.insert(re.line+1,Nn)}Jn(e,"change",e,r)}function Ta(e,r,D){function O(N,X,q){if(N.linked)for(var re=0;re1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Qe(e.done)}function _s(e,r,D,O){var N=e.history;N.undone.length=0;var X=+new Date,q,re;if((N.lastOp==O||N.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&N.lastModTime>X-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(q=pl(N,N.lastOp==O)))re=Qe(q.changes),sr(r.from,r.to)==0&&sr(r.from,re.to)==0?re.to=lr(r):q.changes.push(rs(e,r));else{var se=Qe(N.done);for((!se||!se.ranges)&&Go(e.sel,N.done),q={changes:[rs(e,r)],generation:N.generation},N.done.push(q);N.done.length>N.undoDepth;)N.done.shift(),N.done[0].ranges||N.done.shift()}N.done.push(D),N.generation=++N.maxGeneration,N.lastModTime=N.lastSelTime=X,N.lastOp=N.lastSelOp=O,N.lastOrigin=N.lastSelOrigin=r.origin,re||Je(e,"historyAdded")}function ml(e,r,D,O){var N=r.charAt(0);return N=="*"||N=="+"&&D.ranges.length==O.ranges.length&&D.somethingSelected()==O.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,r,D,O){var N=e.history,X=O&&O.origin;D==N.lastSelOp||X&&N.lastSelOrigin==X&&(N.lastModTime==N.lastSelTime&&N.lastOrigin==X||ml(e,X,Qe(N.done),r))?N.done[N.done.length-1]=r:Go(r,N.done),N.lastSelTime=+new Date,N.lastSelOrigin=X,N.lastSelOp=D,O&&O.clearRedo!==!1&&bs(N.undone)}function Go(e,r){var D=Qe(r);D&&D.ranges&&D.equals(e)||r.push(e)}function Es(e,r,D,O){var N=r["spans_"+e.id],X=0;e.iter(Math.max(e.first,D),Math.min(e.first+e.size,O),function(q){q.markedSpans&&((N||(N=r["spans_"+e.id]={}))[X]=q.markedSpans),++X})}function vl(e){if(!e)return null;for(var r,D=0;D-1&&(Qe(re)[tt]=pe[tt],delete pe[tt]))}}return O}function as(e,r,D,O){if(O){var N=e.anchor;if(D){var X=sr(r,N)<0;X!=sr(D,N)<0?(N=r,r=D):X!=sr(r,D)<0&&(r=D)}return new Fr(N,r)}else return new Fr(D||r,r)}function Vo(e,r,D,O,N){N==null&&(N=e.cm&&(e.cm.display.shift||e.extend)),Ga(e,new za([as(e.sel.primary(),r,D,N)],0),O)}function ws(e,r,D){for(var O=[],N=e.cm&&(e.cm.display.shift||e.extend),X=0;X=r.ch:re.to>r.ch))){if(N&&(Je(se,"beforeCursorEnter"),se.explicitlyCleared))if(X.markedSpans){--q;continue}else break;if(!se.atomic)continue;if(D){var tt=se.find(O<0?1:-1),Mt=void 0;if((O<0?Ve:pe)&&(tt=As(e,tt,-O,tt&&tt.line==r.line?X:null)),tt&&tt.line==r.line&&(Mt=sr(tt,D))&&(O<0?Mt<0:Mt>0))return yo(e,tt,r,O,N)}var Tt=se.find(O<0?-1:1);return(O<0?pe:Ve)&&(Tt=As(e,Tt,O,Tt.line==r.line?X:null)),Tt?yo(e,Tt,r,O,N):null}}return r}function Xo(e,r,D,O,N){var X=O||1,q=yo(e,r,D,X,N)||!N&&yo(e,r,D,X,!0)||yo(e,r,D,-X,N)||!N&&yo(e,r,D,-X,!0);return q||(e.cantEdit=!0,pn(e.first,0))}function As(e,r,D,O){return D<0&&r.ch==0?r.line>e.first?W(e,pn(r.line-1)):null:D>0&&r.ch==(O||wn(e,r.line)).text.length?r.line=0;--N)Ls(e,{from:O[N].from,to:O[N].to,text:N?[""]:r.text,origin:r.origin});else Ls(e,r)}function Ls(e,r){if(r.text.length==1&&r.text[0]==""&&sr(r.from,r.to)==0)return;var D=aa(e,r);_s(e,r,D,e.cm?e.cm.curOp.id:NaN),Mo(e,r,D,wr(e,r));var O=[];Ta(e,function(N,X){!X&&$(O,N.history)==-1&&(Ns(N.history,r),O.push(N.history)),Mo(N,r,null,wr(N,r))})}function $o(e,r,D){var O=e.cm&&e.cm.state.suppressEdits;if(O&&!D)return;for(var N=e.history,X,q=e.sel,re=r=="undo"?N.done:N.undone,se=r=="undo"?N.undone:N.done,pe=0;pe=0;--Tt){var nn=Mt(Tt);if(nn)return nn.v}}function Ps(e,r){if(r==0)return;if(e.first+=r,e.sel=new za(Rt(e.sel.ranges,function(N){return new Fr(pn(N.anchor.line+r,N.anchor.ch),pn(N.head.line+r,N.head.ch))}),e.sel.primIndex),e.cm){Vr(e.cm,e.first,e.first-r,r);for(var D=e.cm.display,O=D.viewFrom;Oe.lastLine())return;if(r.from.lineX&&(r={from:r.from,to:pn(X,wn(e,X).text.length),text:[r.text[0]],origin:r.origin}),r.removed=xr(e,r.from,r.to),D||(D=aa(e,r)),e.cm?_l(e.cm,r,O):Wi(e,r,O),Yo(e,D,oe),e.cantEdit&&Xo(e,pn(e.firstLine(),0))&&(e.cantEdit=!1)}function _l(e,r,D){var O=e.doc,N=e.display,X=r.from,q=r.to,re=!1,se=X.line;e.options.lineWrapping||(se=ur(St(wn(O,X.line))),O.iter(se,q.line+1,function(Tt){if(Tt==N.maxLine)return re=!0,!0})),O.sel.contains(r.from,r.to)>-1&&Ne(e),Wi(O,r,D,Qa(e)),e.options.lineWrapping||(O.iter(se,X.line+r.text.length,function(Tt){var nn=cn(Tt);nn>N.maxLineLength&&(N.maxLine=Tt,N.maxLineLength=nn,N.maxLineChanged=!0,re=!1)}),re&&(e.curOp.updateMaxLine=!0)),$n(O,X.line),Ni(e,400);var pe=r.text.length-(q.line-X.line)-1;r.full?Vr(e):X.line==q.line&&r.text.length==1&&!vi(e.doc,r)?Xr(e,X.line,"text"):Vr(e,X.line,q.line+1,pe);var Ve=Te(e,"changes"),tt=Te(e,"change");if(tt||Ve){var Mt={from:X,to:q,text:r.text,removed:r.removed,origin:r.origin};tt&&Jn(e,"change",e,Mt),Ve&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Mt)}e.display.selForContextMenu=null}function _o(e,r,D,O,N){var X;O||(O=D),sr(O,D)<0&&(X=[O,D],D=X[0],O=X[1]),typeof r=="string"&&(r=e.splitLines(r)),bo(e,{from:D,to:O,text:r,origin:N})}function Is(e,r,D,O){D1||!(this.children[0]instanceof Po))){var re=[];this.collapse(re),this.children=[new Po(re)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r50){for(var q=N.lines.length%25+25,re=q;re10);e.parent.maybeSpill()},iterN:function(e,r,D){for(var O=0;Oe.display.maxLineLength&&(e.display.maxLine=pe,e.display.maxLineLength=Ve,e.display.maxLineChanged=!0)}O!=null&&e&&this.collapsed&&Vr(e,O,N+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Jn(e,"markerCleared",e,this,O,N),r&&Ei(e),this.parent&&this.parent.clear()},qi.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var D,O,N=0;N0||q==0&&X.clearWhenEmpty!==!1)return X;if(X.replacedWith&&(X.collapsed=!0,X.widgetNode=_("span",[X.replacedWith],"CodeMirror-widget"),O.handleMouseEvents||X.widgetNode.setAttribute("cm-ignore-events","true"),O.insertLeft&&(X.widgetNode.insertLeft=!0)),X.collapsed){if(Xt(e,r.line,r,D,X)||r.line!=D.line&&Xt(e,D.line,r,D,X))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fn()}X.addToHistory&&_s(e,{from:r,to:D,origin:"markText"},e.sel,NaN);var re=r.line,se=e.cm,pe;if(e.iter(re,D.line+1,function(tt){se&&X.collapsed&&!se.options.lineWrapping&&St(tt)==se.display.maxLine&&(pe=!0),X.collapsed&&re!=r.line&&rr(tt,0),Rr(tt,new ar(X,re==r.line?r.ch:null,re==D.line?D.ch:null)),++re}),X.collapsed&&e.iter(r.line,D.line+1,function(tt){_n(e,tt)&&rr(tt,0)}),X.clearOnEnter&&Ae(X,"beforeCursorEnter",function(){return X.clear()}),X.readOnly&&(mr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),X.collapsed&&(X.id=++Us,X.atomic=!0),se){if(pe&&(se.curOp.updateMaxLine=!0),X.collapsed)Vr(se,r.line,D.line+1);else if(X.className||X.startStyle||X.endStyle||X.css||X.attributes||X.title)for(var Ve=r.line;Ve<=D.line;Ve++)Xr(se,Ve,"text");X.atomic&&Os(se.doc),Jn(se,"markerAdded",se,X)}return X}var No=function(e,r){this.markers=e,this.primary=r;for(var D=0;D=0;se--)bo(this,O[se]);re?Ts(this,re):this.cm&&yi(this.cm)}),undo:fa(function(){$o(this,"undo")}),redo:fa(function(){$o(this,"redo")}),undoSelection:fa(function(){$o(this,"undo",!0)}),redoSelection:fa(function(){$o(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,D=0,O=0;O=e.ch)&&r.push(N.marker.parent||N.marker)}return r},findMarks:function(e,r,D){e=W(this,e),r=W(this,r);var O=[],N=e.line;return this.iter(e.line,r.line+1,function(X){var q=X.markedSpans;if(q)for(var re=0;re=se.to||se.from==null&&N!=e.line||se.from!=null&&N==r.line&&se.from>=r.ch)&&(!D||D(se.marker))&&O.push(se.marker.parent||se.marker)}++N}),O},getAllMarks:function(){var e=[];return this.iter(function(r){var D=r.markedSpans;if(D)for(var O=0;Oe)return r=e,!0;e-=X,++D}),W(this,pn(D,r))},indexFromPos:function(e){e=W(this,e);var r=e.ch;if(e.liner&&(r=e.from),e.to!=null&&e.to-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var Ve=e.dataTransfer.getData("Text");if(Ve){var tt;if(r.state.draggingText&&!r.state.draggingText.copy&&(tt=r.listSelections()),Yo(r.doc,Un(D,D)),tt)for(var Mt=0;Mt=0;re--)_o(e.doc,"",O[re].from,O[re].to,"+delete");yi(e)})}function os(e,r,D){var O=$e(e.text,r+D,D);return O<0||O>e.text.length?null:O}function ss(e,r,D){var O=os(e,r.ch,D);return O==null?null:new pn(r.line,O,D<0?"after":"before")}function ls(e,r,D,O,N){if(e){r.doc.direction=="rtl"&&(N=-N);var X=Zt(D,r.doc.direction);if(X){var q=N<0?Qe(X):X[0],re=N<0==(q.level==1),se=re?"after":"before",pe;if(q.level>0||r.doc.direction=="rtl"){var Ve=Ke(r,D);pe=N<0?D.text.length-1:0;var tt=bt(r,Ve,pe).top;pe=ct(function(Mt){return bt(r,Ve,Mt).top==tt},N<0==(q.level==1)?q.from:q.to-1,pe),se=="before"&&(pe=os(D,pe,1))}else pe=N<0?q.to:q.from;return new pn(O,pe,se)}}return new pn(O,N<0?D.text.length:0,N<0?"before":"after")}function Il(e,r,D,O){var N=Zt(r,e.doc.direction);if(!N)return ss(r,D,O);D.ch>=r.text.length?(D.ch=r.text.length,D.sticky="before"):D.ch<=0&&(D.ch=0,D.sticky="after");var X=We(N,D.ch,D.sticky),q=N[X];if(e.doc.direction=="ltr"&&q.level%2==0&&(O>0?q.to>D.ch:q.from=q.from&&Mt>=Ve.begin)){var Tt=tt?"before":"after";return new pn(D.line,Mt,Tt)}}var nn=function(Nn,Xn,jn){for(var er=function(ia,Ba){return Ba?new pn(D.line,re(ia,1),"before"):new pn(D.line,ia,"after")};Nn>=0&&Nn0==(yr.level!=1),kr=pr?jn.begin:re(jn.end,-1);if(yr.from<=kr&&kr0?Ve.end:re(Ve.begin,-1);return Ln!=null&&!(O>0&&Ln==r.text.length)&&(En=nn(O>0?0:N.length-1,O,pe(Ln)),En)?En:null}var Fo={selectAll:Ds,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),oe)},killLine:function(e){return wo(e,function(r){if(r.empty()){var D=wn(e.doc,r.head.line).text.length;return r.head.ch==D&&r.head.line0)N=new pn(N.line,N.ch+1),e.replaceRange(X.charAt(N.ch-1)+X.charAt(N.ch-2),pn(N.line,N.ch-2),N,"+transpose");else if(N.line>e.doc.first){var q=wn(e.doc,N.line-1).text;q&&(N=new pn(N.line,1),e.replaceRange(X.charAt(0)+e.doc.lineSeparator()+q.charAt(q.length-1),pn(N.line-1,q.length-1),N,"+transpose"))}}D.push(new Fr(N,N))}e.setSelections(D)})},newlineAndIndent:function(e){return Wa(e,function(){for(var r=e.listSelections(),D=r.length-1;D>=0;D--)e.replaceRange(e.doc.lineSeparator(),r[D].anchor,r[D].head,"+input");r=e.listSelections();for(var O=0;Oe&&sr(r,this.pos)==0&&D==this.button};var Ho,Wo;function Hl(e,r){var D=+new Date;return Wo&&Wo.compare(D,e,r)?(Ho=Wo=null,"triple"):Ho&&Ho.compare(D,e,r)?(Wo=new ds(D,e,r),Ho=null,"double"):(Ho=new ds(D,e,r),Wo=null,"single")}function el(e){var r=this,D=r.display;if(dt(r,e)||D.activeTouch&&D.input.supportsTouch())return;if(D.input.ensurePolled(),D.shift=e.shiftKey,Ra(D,e)){t||(D.scroller.draggable=!1,setTimeout(function(){return D.scroller.draggable=!0},100));return}if(cs(r,e))return;var O=Ca(r,e),N=ze(e),X=O?Hl(O,N):"single";if(window.focus(),N==1&&r.state.selectingText&&r.state.selectingText(e),O&&Wl(r,N,O,X,e))return;N==1?O?Kl(r,O,X,e):Se(e)==D.scroller&&ae(e):N==2?(O&&Vo(r.doc,O),setTimeout(function(){return D.input.focus()},20)):N==3&&(k?r.display.input.onContextMenu(e):no(r))}function Wl(e,r,D,O,N){var X="Click";return O=="double"?X="Double"+X:O=="triple"&&(X="Triple"+X),X=(r==1?"Left":r==2?"Middle":"Right")+X,Bo(e,Gs(X,N),N,function(q){if(typeof q=="string"&&(q=Fo[q]),!q)return!1;var re=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),re=q(e,D)!=me}finally{e.state.suppressEdits=!1}return re})}function zl(e,r,D){var O=e.getOption("configureMouse"),N=O?O(e,r,D):{};if(N.unit==null){var X=c?D.shiftKey&&D.metaKey:D.altKey;N.unit=X?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(N.extend==null||e.doc.extend)&&(N.extend=e.doc.extend||D.shiftKey),N.addNew==null&&(N.addNew=l?D.metaKey:D.ctrlKey),N.moveOnDrag==null&&(N.moveOnDrag=!(l?D.altKey:D.ctrlKey)),N}function Kl(e,r,D,O){P?setTimeout(H(Pi,e),0):e.curOp.focus=j();var N=zl(e,D,O),X=e.doc.sel,q;e.options.dragDrop&&Et&&!e.isReadOnly()&&D=="single"&&(q=X.contains(r))>-1&&(sr((q=X.ranges[q]).from(),r)<0||r.xRel>0)&&(sr(q.to(),r)>0||r.xRel<0)?Gl(e,O,r,N):Vl(e,O,r,N)}function Gl(e,r,D,O){var N=e.display,X=!1,q=ha(e,function(pe){t&&(N.scroller.draggable=!1),e.state.draggingText=!1,_t(N.wrapper.ownerDocument,"mouseup",q),_t(N.wrapper.ownerDocument,"mousemove",re),_t(N.scroller,"dragstart",se),_t(N.scroller,"drop",q),X||(ae(pe),O.addNew||Vo(e.doc,D,null,null,O.extend),t&&!f||P&&m==9?setTimeout(function(){N.wrapper.ownerDocument.body.focus({preventScroll:!0}),N.input.focus()},20):N.input.focus())}),re=function(pe){X=X||Math.abs(r.clientX-pe.clientX)+Math.abs(r.clientY-pe.clientY)>=10},se=function(){return X=!0};t&&(N.scroller.draggable=!0),e.state.draggingText=q,q.copy=!O.moveOnDrag,N.scroller.dragDrop&&N.scroller.dragDrop(),Ae(N.wrapper.ownerDocument,"mouseup",q),Ae(N.wrapper.ownerDocument,"mousemove",re),Ae(N.scroller,"dragstart",se),Ae(N.scroller,"drop",q),no(e),setTimeout(function(){return N.input.focus()},20)}function tl(e,r,D){if(D=="char")return new Fr(r,r);if(D=="word")return e.findWordAt(r);if(D=="line")return new Fr(pn(r.line,0),W(e.doc,pn(r.line+1,0)));var O=D(e,r);return new Fr(O.from,O.to)}function Vl(e,r,D,O){var N=e.display,X=e.doc;ae(r);var q,re,se=X.sel,pe=se.ranges;if(O.addNew&&!O.extend?(re=X.sel.contains(D),re>-1?q=pe[re]:q=new Fr(D,D)):(q=X.sel.primary(),re=X.sel.primIndex),O.unit=="rectangle")O.addNew||(q=new Fr(D,D)),D=Ca(e,r,!0,!0),re=-1;else{var Ve=tl(e,D,O.unit);O.extend?q=as(q,Ve.anchor,Ve.head,O.extend):q=Ve}O.addNew?re==-1?(re=pe.length,Ga(X,_r(e,pe.concat([q]),re),{scroll:!1,origin:"*mouse"})):pe.length>1&&pe[re].empty()&&O.unit=="char"&&!O.extend?(Ga(X,_r(e,pe.slice(0,re).concat(pe.slice(re+1)),0),{scroll:!1,origin:"*mouse"}),se=X.sel):is(X,re,q,fe):(re=0,Ga(X,new za([q],0),fe),se=X.sel);var tt=D;function Mt(jn){if(sr(tt,jn)==0)return;if(tt=jn,O.unit=="rectangle"){for(var er=[],yr=e.options.tabSize,pr=V(wn(X,D.line).text,D.ch,yr),kr=V(wn(X,jn.line).text,jn.ch,yr),ia=Math.min(pr,kr),Ba=Math.max(pr,kr),va=Math.min(D.line,jn.line),oi=Math.min(e.lastLine(),Math.max(D.line,jn.line));va<=oi;va++){var ti=wn(X,va).text,Ma=Ie(ti,ia,yr);ia==Ba?er.push(new Fr(pn(va,Ma),pn(va,Ma))):ti.length>Ma&&er.push(new Fr(pn(va,Ma),pn(va,Ie(ti,Ba,yr))))}er.length||er.push(new Fr(D,D)),Ga(X,_r(e,se.ranges.slice(0,re).concat(er),re),{origin:"*mouse",scroll:!1}),e.scrollIntoView(jn)}else{var ni=q,Ka=tl(e,jn,O.unit),ka=ni.anchor,La;sr(Ka.anchor,ka)>0?(La=Ka.head,ka=na(ni.from(),Ka.anchor)):(La=Ka.anchor,ka=Jr(ni.to(),Ka.head));var Ea=se.ranges.slice(0);Ea[re]=Yl(e,new Fr(W(X,ka),La)),Ga(X,_r(e,Ea,re),fe)}}var Tt=N.wrapper.getBoundingClientRect(),nn=0;function En(jn){var er=++nn,yr=Ca(e,jn,!0,O.unit=="rectangle");if(!yr)return;if(sr(yr,tt)!=0){e.curOp.focus=j(),Mt(yr);var pr=Ii(N,X);(yr.line>=pr.to||yr.lineTt.bottom?20:0;kr&&setTimeout(ha(e,function(){if(nn!=er)return;N.scroller.scrollTop+=kr,En(jn)}),50)}}function Ln(jn){e.state.selectingText=!1,nn=Infinity,jn&&(ae(jn),N.input.focus()),_t(N.wrapper.ownerDocument,"mousemove",Nn),_t(N.wrapper.ownerDocument,"mouseup",Xn),X.history.lastSelOrigin=null}var Nn=ha(e,function(jn){jn.buttons===0||!ze(jn)?Ln(jn):En(jn)}),Xn=ha(e,Ln);e.state.selectingText=Xn,Ae(N.wrapper.ownerDocument,"mousemove",Nn),Ae(N.wrapper.ownerDocument,"mouseup",Xn)}function Yl(e,r){var D=r.anchor,O=r.head,N=wn(e.doc,D.line);if(sr(D,O)==0&&D.sticky==O.sticky)return r;var X=Zt(N);if(!X)return r;var q=We(X,D.ch,D.sticky),re=X[q];if(re.from!=D.ch&&re.to!=D.ch)return r;var se=q+(re.from==D.ch==(re.level!=1)?0:1);if(se==0||se==X.length)return r;var pe;if(O.line!=D.line)pe=(O.line-D.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ve=We(X,O.ch,O.sticky),tt=Ve-q||(O.ch-D.ch)*(re.level==1?-1:1);Ve==se-1||Ve==se?pe=tt<0:pe=tt>0}var Mt=X[se+(pe?-1:0)],Tt=pe==(Mt.level==1),nn=Tt?Mt.from:Mt.to,En=Tt?"after":"before";return D.ch==nn&&D.sticky==En?r:new Fr(new pn(D.line,nn,En),O)}function nl(e,r,D,O){var N,X;if(r.touches)N=r.touches[0].clientX,X=r.touches[0].clientY;else try{N=r.clientX,X=r.clientY}catch(Mt){return!1}if(N>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;O&&ae(r);var q=e.display,re=q.lineDiv.getBoundingClientRect();if(X>re.bottom||!Te(e,D))return he(r);X-=re.top-q.viewOffset;for(var se=0;se=N){var Ve=Ar(e.doc,X),tt=e.display.gutterSpecs[se];return Je(e,D,e,Ve,tt.className,r),he(r)}}}function cs(e,r){return nl(e,r,"gutterClick",!0)}function rl(e,r){if(Ra(e.display,r)||Xl(e,r))return;if(dt(e,r,"contextmenu"))return;k||e.display.input.onContextMenu(r)}function Xl(e,r){return Te(e,"gutterContextMenu")?nl(e,r,"gutterContextMenu",!1):!1}function al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jt(e)}var Co={toString:function(){return"CodeMirror.Init"}},il={},qo={};function $l(e){var r=e.optionHandlers;function D(O,N,X,q){e.defaults[O]=N,X&&(r[O]=q?function(re,se,pe){pe!=Co&&X(re,se,pe)}:X)}e.defineOption=D,e.Init=Co,D("value","",function(O,N){return O.setValue(N)},!0),D("mode",null,function(O,N){O.doc.modeOption=N,Da(O)},!0),D("indentUnit",2,Da,!0),D("indentWithTabs",!1),D("smartIndent",!0),D("tabSize",4,function(O){Xa(O),jt(O),Vr(O)},!0),D("lineSeparator",null,function(O,N){if(O.doc.lineSep=N,!N)return;var X=[],q=O.doc.first;O.doc.iter(function(se){for(var pe=0;;){var Ve=se.text.indexOf(N,pe);if(Ve==-1)break;pe=Ve+N.length,X.push(pn(q,Ve))}q++});for(var re=X.length-1;re>=0;re--)_o(O.doc,N,X[re],pn(X[re].line,X[re].ch+N.length))}),D("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(O,N,X){O.state.specialChars=new RegExp(N.source+(N.test(" ")?"":"| "),"g"),X!=Co&&O.refresh()}),D("specialCharPlaceholder",gn,function(O){return O.refresh()},!0),D("electricChars",!0),D("inputStyle",n?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),D("spellcheck",!1,function(O,N){return O.getInputField().spellcheck=N},!0),D("autocorrect",!1,function(O,N){return O.getInputField().autocorrect=N},!0),D("autocapitalize",!1,function(O,N){return O.getInputField().autocapitalize=N},!0),D("rtlMoveVisually",!x),D("wholeLineUpdateBefore",!0),D("theme","default",function(O){al(O),di(O)},!0),D("keyMap","default",function(O,N,X){var q=Jo(N),re=X!=Co&&Jo(X);re&&re.detach&&re.detach(O,q),q.attach&&q.attach(O,re||null)}),D("extraKeys",null),D("configureMouse",null),D("lineWrapping",!1,Jl,!0),D("gutters",[],function(O,N){O.display.gutterSpecs=Fa(N,O.options.lineNumbers),di(O)},!0),D("fixedGutter",!0,function(O,N){O.display.gutters.style.left=N?la(O.display)+"px":"0",O.refresh()},!0),D("coverGutterNextToScrollbar",!1,function(O){return mi(O)},!0),D("scrollbarStyle","native",function(O){Qi(O),mi(O),O.display.scrollbars.setScrollTop(O.doc.scrollTop),O.display.scrollbars.setScrollLeft(O.doc.scrollLeft)},!0),D("lineNumbers",!1,function(O,N){O.display.gutterSpecs=Fa(O.options.gutters,N),di(O)},!0),D("firstLineNumber",1,di,!0),D("lineNumberFormatter",function(O){return O},di,!0),D("showCursorWhenSelecting",!1,Yr,!0),D("resetSelectionOnContextMenu",!0),D("lineWiseCopyCut",!0),D("pasteLinesPerSelection",!0),D("selectionsMayTouch",!1),D("readOnly",!1,function(O,N){N=="nocursor"&&(Ci(O),O.display.input.blur()),O.display.input.readOnlyChanged(N)}),D("screenReaderLabel",null,function(O,N){N=N===""?null:N,O.display.input.screenReaderLabelChanged(N)}),D("disableInput",!1,function(O,N){N||O.display.input.reset()},!0),D("dragDrop",!0,Ql),D("allowDropFileTypes",null),D("cursorBlinkRate",530),D("cursorScrollMargin",0),D("cursorHeight",1,Yr,!0),D("singleCursorHeightPerLine",!0,Yr,!0),D("workTime",100),D("workDelay",100),D("flattenSpans",!0,Xa,!0),D("addModeClass",!1,Xa,!0),D("pollInterval",100),D("undoDepth",200,function(O,N){return O.doc.history.undoDepth=N}),D("historyEventDelay",1250),D("viewportMargin",10,function(O){return O.refresh()},!0),D("maxHighlightLength",1e4,Xa,!0),D("moveInputWithCursor",!0,function(O,N){N||O.display.input.resetPosition()}),D("tabindex",null,function(O,N){return O.display.input.getField().tabIndex=N||""}),D("autofocus",null),D("direction","ltr",function(O,N){return O.doc.setDirection(N)},!0),D("phrases",null)}function Ql(e,r,D){var O=D&&D!=Co;if(!r!=!O){var N=e.display.dragFunctions,X=r?Ae:_t;X(e.display.scroller,"dragstart",N.start),X(e.display.scroller,"dragenter",N.enter),X(e.display.scroller,"dragover",N.over),X(e.display.scroller,"dragleave",N.leave),X(e.display.scroller,"drop",N.drop)}}function Jl(e){e.options.lineWrapping?(U(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(y(e.display.wrapper,"CodeMirror-wrap"),Ht(e)),ja(e),Vr(e),jt(e),setTimeout(function(){return mi(e)},100)}function pa(e,r){var D=this;if(!(this instanceof pa))return new pa(e,r);this.options=r=r?M(r):{},M(il,r,!1);var O=r.value;typeof O=="string"?O=new ei(O,r.mode,null,r.lineSeparator,r.direction):r.mode&&(O.modeOption=r.mode),this.doc=O;var N=new pa.inputStyles[r.inputStyle](this),X=this.display=new Ui(e,O,N,r);X.wrapper.CodeMirror=this,al(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Qi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new K,keySeq:null,specialChars:null},r.autofocus&&!n&&X.input.focus(),P&&m<11&&setTimeout(function(){return D.display.input.reset(!0)},20),Zl(this),Al(),ui(this),this.curOp.forceUpdate=!0,vs(this,O),r.autofocus&&!n||this.hasFocus()?setTimeout(function(){D.hasFocus()&&!D.state.focused&&li(D)},20):Ci(this);for(var q in qo)qo.hasOwnProperty(q)&&qo[q](this,r[q],Co);oa(this),r.finishInit&&r.finishInit(this);for(var re=0;re20*20}Ae(r.scroller,"touchstart",function(se){if(!dt(e,se)&&!X(se)&&!cs(e,se)){r.input.ensurePolled(),clearTimeout(D);var pe=+new Date;r.activeTouch={start:pe,moved:!1,prev:pe-O.end<=300?O:null},se.touches.length==1&&(r.activeTouch.left=se.touches[0].pageX,r.activeTouch.top=se.touches[0].pageY)}}),Ae(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ae(r.scroller,"touchend",function(se){var pe=r.activeTouch;if(pe&&!Ra(r,se)&&pe.left!=null&&!pe.moved&&new Date-pe.start<300){var Ve=e.coordsChar(r.activeTouch,"page"),tt;!pe.prev||q(pe,pe.prev)?tt=new Fr(Ve,Ve):!pe.prev.prev||q(pe,pe.prev.prev)?tt=e.findWordAt(Ve):tt=new Fr(pn(Ve.line,0),W(e.doc,pn(Ve.line+1,0))),e.setSelection(tt.anchor,tt.head),e.focus(),ae(se)}N()}),Ae(r.scroller,"touchcancel",N),Ae(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Di(e,r.scroller.scrollTop),Ia(e,r.scroller.scrollLeft,!0),Je(e,"scroll",e))}),Ae(r.scroller,"mousewheel",function(se){return Hi(e,se)}),Ae(r.scroller,"DOMMouseScroll",function(se){return Hi(e,se)}),Ae(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(se){dt(e,se)||_e(se)},over:function(se){dt(e,se)||(Rl(e,se),_e(se))},start:function(se){return Ol(e,se)},drop:ha(e,Sl),leave:function(se){dt(e,se)||Hs(e)}};var re=r.input.getField();Ae(re,"keyup",function(se){return Zs.call(e,se)}),Ae(re,"keydown",ha(e,Js)),Ae(re,"keypress",ha(e,qs)),Ae(re,"focus",function(se){return li(e,se)}),Ae(re,"blur",function(se){return Ci(e,se)})}var hs=[];pa.defineInitHook=function(e){return hs.push(e)};function zo(e,r,D,O){var N=e.doc,X;D==null&&(D="add"),D=="smart"&&(N.mode.indent?X=An(e,r).state:D="prev");var q=e.options.tabSize,re=wn(N,r),se=V(re.text,null,q);re.stateAfter&&(re.stateAfter=null);var pe=re.text.match(/^\s*/)[0],Ve;if(!O&&!/\S/.test(re.text))Ve=0,D="not";else if(D=="smart"&&(Ve=N.mode.indent(X,re.text.slice(pe.length),re.text),Ve==me||Ve>150)){if(!O)return;D="prev"}D=="prev"?r>N.first?Ve=V(wn(N,r-1).text,null,q):Ve=0:D=="add"?Ve=se+e.options.indentUnit:D=="subtract"?Ve=se-e.options.indentUnit:typeof D=="number"&&(Ve=se+D),Ve=Math.max(0,Ve);var tt="",Mt=0;if(e.options.indentWithTabs)for(var Tt=Math.floor(Ve/q);Tt;--Tt)Mt+=q,tt+=" ";if(Mtq,se=Ot(r),pe=null;if(re&&O.ranges.length>1)if(wi&&wi.text.join(` -`)==r){if(O.ranges.length%wi.text.length==0){pe=[];for(var Ve=0;Ve=0;Mt--){var Tt=O.ranges[Mt],nn=Tt.from(),En=Tt.to();Tt.empty()&&(D&&D>0?nn=pn(nn.line,nn.ch-D):e.state.overwrite&&!re?En=pn(En.line,Math.min(wn(X,En.line).text.length,En.ch+Qe(se).length)):re&&wi&&wi.lineWise&&wi.text.join(` + height: `+(r.bottom-r.top+at(e)+D.barHeight)+`px; + left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(X),X.scrollIntoView(N),e.display.lineSpace.removeChild(X)}}function Ro(e,r,D,O){O==null&&(O=0);var N;!e.options.lineWrapping&&r==D&&(r=r.ch?fn(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,D=r.sticky=="before"?fn(r.line,r.ch+1,"before"):r);for(var X=0;X<5;X++){var q=!1,re=ir(e,r),se=!D||D==r?re:ir(e,D);N={left:Math.min(re.left,se.left),top:Math.min(re.top,se.top)-O,right:Math.max(re.left,se.left),bottom:Math.max(re.bottom,se.bottom)+O};var pe=Oi(e,N),Ve=e.doc.scrollTop,nt=e.doc.scrollLeft;if(pe.scrollTop!=null&&(Di(e,pe.scrollTop),Math.abs(e.doc.scrollTop-Ve)>1&&(q=!0)),pe.scrollLeft!=null&&(Ia(e,pe.scrollLeft),Math.abs(e.doc.scrollLeft-nt)>1&&(q=!0)),!q)break}return N}function Gi(e,r){var D=Oi(e,r);D.scrollTop!=null&&Di(e,D.scrollTop),D.scrollLeft!=null&&Ia(e,D.scrollLeft)}function Oi(e,r){var D=e.display,O=jr(e.display);r.top<0&&(r.top=0);var N=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:D.scroller.scrollTop,X=ce(e),q={};r.bottom-r.top>X&&(r.bottom=r.top+X);var re=e.doc.height+De(D),se=r.topre-O;if(r.topN+X){var Ve=Math.min(r.top,(pe?re:r.bottom)-X);Ve!=N&&(q.scrollTop=Ve)}var nt=e.options.fixedGutter?0:D.gutters.offsetWidth,Dt=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:D.scroller.scrollLeft-nt,Tt=je(e)-D.gutters.offsetWidth,an=r.right-r.left>Tt;return an&&(r.right=r.left+Tt),r.left<10?q.scrollLeft=0:r.leftTt+Dt-3&&(q.scrollLeft=r.right+(an?0:10)-Tt),q}function Vi(e,r){if(r==null)return;Yi(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r}function yi(e){Yi(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Ri(e,r,D){(r!=null||D!=null)&&Yi(e),r!=null&&(e.curOp.scrollLeft=r),D!=null&&(e.curOp.scrollTop=D)}function ho(e,r){Yi(e),e.curOp.scrollToPos=r}function Yi(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var D=mn(e,r.from),O=mn(e,r.to);Ai(e,D,O,r.margin)}}function Ai(e,r,D,O){var N=Oi(e,{left:Math.min(r.left,D.left),top:Math.min(r.top,D.top)-O,right:Math.max(r.right,D.right),bottom:Math.max(r.bottom,D.bottom)+O});Ri(e,N.scrollLeft,N.scrollTop)}function Di(e,r){if(Math.abs(e.doc.scrollTop-r)<2)return;I||ji(e,{top:r}),bi(e,r,!0),I&&ji(e),Ni(e,100)}function bi(e,r,D){if(r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),e.display.scroller.scrollTop==r&&!D)return;e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r)}function Ia(e,r,D,O){if(r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(D?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!O)return;e.doc.scrollLeft=r,Dr(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r)}function fi(e){var r=e.display,D=r.gutters.offsetWidth,O=Math.round(e.doc.height+De(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?D:0,docHeight:O,scrollHeight:O+at(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:D}}var pi=function(e,r,D){this.cm=D;var O=this.vert=v("div",[v("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),N=this.horiz=v("div",[v("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");O.tabIndex=N.tabIndex=-1,e(O),e(N),Ae(O,"scroll",function(){O.clientHeight&&r(O.scrollTop,"vertical")}),Ae(N,"scroll",function(){N.clientWidth&&r(N.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,P&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,D=e.scrollHeight>e.clientHeight+1,O=e.nativeBarWidth;if(D){this.vert.style.display="block",this.vert.style.bottom=r?O+"px":"0";var N=e.viewHeight-(r?O:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+N)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=D?O+"px":"0",this.horiz.style.left=e.barLeft+"px";var X=e.viewWidth-e.barLeft-(D?O:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+X)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(O==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:D?O:0,bottom:r?O:0}},pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var e=l&&!a?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new K,this.disableVert=new K},pi.prototype.enableZeroWidthBar=function(e,r,D){e.style.pointerEvents="auto";function O(){var N=e.getBoundingClientRect(),X=D=="vert"?document.elementFromPoint(N.right-1,(N.top+N.bottom)/2):document.elementFromPoint((N.right+N.left)/2,N.bottom-1);X!=e?e.style.pointerEvents="none":r.set(1e3,O)}r.set(1e3,O)},pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var _i=function(){};_i.prototype.update=function(){return{bottom:0,right:0}},_i.prototype.setScrollLeft=function(){},_i.prototype.setScrollTop=function(){},_i.prototype.clear=function(){};function mi(e,r){r||(r=fi(e));var D=e.display.barWidth,O=e.display.barHeight;Xi(e,r);for(var N=0;N<4&&D!=e.display.barWidth||O!=e.display.barHeight;N++)D!=e.display.barWidth&&e.options.lineWrapping&&Ti(e),Xi(e,fi(e)),D=e.display.barWidth,O=e.display.barHeight}function Xi(e,r){var D=e.display,O=D.scrollbars.update(r);D.sizer.style.paddingRight=(D.barWidth=O.right)+"px",D.sizer.style.paddingBottom=(D.barHeight=O.bottom)+"px",D.heightForcer.style.borderBottom=O.bottom+"px solid transparent",O.right&&O.bottom?(D.scrollbarFiller.style.display="block",D.scrollbarFiller.style.height=O.bottom+"px",D.scrollbarFiller.style.width=O.right+"px"):D.scrollbarFiller.style.display="",O.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(D.gutterFiller.style.display="block",D.gutterFiller.style.height=O.bottom+"px",D.gutterFiller.style.width=r.gutterWidth+"px"):D.gutterFiller.style.display=""}var $i={native:pi,null:_i};function Qi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&y(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new $i[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),Ae(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,D){D=="horizontal"?Ia(e,r):Di(e,r)},e),e.display.scrollbars.addClass&&U(e.display.wrapper,e.display.scrollbars.addClass)}var ki=0;function ui(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ki},Lr(e.curOp)}function Ei(e){var r=e.curOp;r&&Hn(r,function(D){for(var O=0;O=D.viewTo)||D.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new qa(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Do(e){e.updatedDisplay=e.mustUpdate&&xi(e.cm,e.update)}function fo(e){var r=e.cm,D=r.display;e.updatedDisplay&&Ti(r),e.barMeasure=fi(r),D.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=Ye(r,D.maxLine,D.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(D.scroller.clientWidth,D.sizer.offsetLeft+e.adjustWidthTo+at(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,D.sizer.offsetLeft+e.adjustWidthTo-je(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=D.input.prepareSelection())}function ao(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)return;var D=+new Date+e.options.workTime,O=An(e,r.highlightFrontier),N=[];r.iter(O.line,Math.min(r.first+r.size,e.display.viewTo+500),function(X){if(O.line>=e.display.viewFrom){var q=X.styles,re=X.text.length>e.options.maxHighlightLength?ln(r.mode,O.state):null,se=qe(e,X,O,!0);re&&(O.state=re),X.styles=se.styles;var pe=X.styleClasses,Ve=se.classes;Ve?X.styleClasses=Ve:pe&&(X.styleClasses=null);for(var nt=!q||q.length!=X.styles.length||pe!=Ve&&(!pe||!Ve||pe.bgClass!=Ve.bgClass||pe.textClass!=Ve.textClass),Dt=0;!nt&&DtD)return Ni(e,e.options.workDelay),!0}),r.highlightFrontier=O.line,r.modeFrontier=Math.max(r.modeFrontier,O.line),N.length&&Wa(e,function(){for(var X=0;X=D.viewFrom&&r.visible.to<=D.viewTo&&(D.updateLineNumbers==null||D.updateLineNumbers>=D.viewTo)&&D.renderedView==D.view&&si(e)==0)return!1;oa(e)&&(ea(e),r.dims=pr(e));var N=O.first+O.size,X=Math.max(r.visible.from-e.options.viewportMargin,O.first),q=Math.min(N,r.visible.to+e.options.viewportMargin);D.viewFromq&&D.viewTo-q<20&&(q=Math.min(N,D.viewTo)),kn&&(X=en(e.doc,X),q=Bt(e.doc,q));var re=X!=D.viewFrom||q!=D.viewTo||D.lastWrapHeight!=r.wrapperHeight||D.lastWrapWidth!=r.wrapperWidth;hi(e,X,q),D.viewOffset=Gt(En(e.doc,D.viewFrom)),e.display.mover.style.top=D.viewOffset+"px";var se=si(e);if(!re&&se==0&&!r.force&&D.renderedView==D.view&&(D.updateLineNumbers==null||D.updateLineNumbers>=D.viewTo))return!1;var pe=oo(e);return se>4&&(D.lineDiv.style.display="none"),go(e,D.updateLineNumbers,r.dims),se>4&&(D.lineDiv.style.display=""),D.renderedView=D.view,so(pe),h(D.cursorDiv),h(D.selectionDiv),D.gutters.style.height=D.sizer.style.minHeight=0,re&&(D.lastWrapHeight=r.wrapperHeight,D.lastWrapWidth=r.wrapperWidth,Ni(e,400)),D.updateLineNumbers=null,!0}function Ji(e,r){for(var D=r.viewport,O=!0;;O=!1){if(!O||!e.options.lineWrapping||r.oldDisplayWidth==je(e)){if(D&&D.top!=null&&(D={top:Math.min(e.doc.height+De(e.display)-ce(e),D.top)}),r.visible=Ii(e.display,e.doc,D),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else O&&(r.visible=Ii(e.display,e.doc,D));if(!xi(e,r))break;Ti(e);var N=fi(e);Yr(e),mi(e,N),Hr(e,N),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ji(e,r){var D=new qa(e,r);if(xi(e,D)){Ti(e),Ji(e,D);var O=fi(e);Yr(e),mi(e,O),Hr(e,O),D.finish()}}function go(e,r,D){var O=e.display,N=e.options.lineNumbers,X=O.lineDiv,q=X.firstChild;function re(an){var yn=an.nextSibling;return t&&l&&e.display.currentWheelTarget==an?an.style.display="none":an.parentNode.removeChild(an),yn}for(var se=O.view,pe=O.viewFrom,Ve=0;Ve-1&&(Tt=!1),Wr(e,nt,pe,D)),Tt&&(h(nt.lineNumber),nt.lineNumber.appendChild(document.createTextNode(ra(e.options,pe)))),q=nt.node.nextSibling}pe+=nt.size}for(;q;)q=re(q)}function Zi(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px"}function Hr(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+at(e)+"px"}function Dr(e){var r=e.display,D=r.view;if(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))return;for(var O=la(r)-r.scroller.scrollLeft+e.doc.scrollLeft,N=r.gutters.offsetWidth,X=O+"px",q=0;qq.clientWidth,se=q.scrollHeight>q.clientHeight;if(!(O&&re||N&&se))return;if(N&&l&&t){e:for(var pe=r.target,Ve=X.view;pe!=q;pe=pe.parentNode)for(var nt=0;nt=0&&or(e,O.to())<=0)return D}return-1};var Fr=function(e,r){this.anchor=e,this.head=r};Fr.prototype.from=function(){return na(this.anchor,this.head)},Fr.prototype.to=function(){return Jr(this.anchor,this.head)},Fr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _r(e,r,D){var O=e&&e.options.selectionsMayTouch,N=r[D];r.sort(function(Dt,Tt){return or(Dt.from(),Tt.from())}),D=$(r,N);for(var X=1;X0:se>=0){var pe=na(re.from(),q.from()),Ve=Jr(re.to(),q.to()),nt=re.empty()?q.from()==q.head:re.from()==re.head;X<=D&&--D,r.splice(--X,2,new Fr(nt?Ve:pe,nt?pe:Ve))}}return new za(r,D)}function Fn(e,r){return new za([new Fr(e,r||e)],0)}function lr(e){return e.text?fn(e.from.line+e.text.length-1,Je(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ar(e,r){if(or(e,r.from)<0)return e;if(or(e,r.to)<=0)return lr(r);var D=e.line+r.text.length-(r.to.line-r.from.line)-1,O=e.ch;return e.line==r.to.line&&(O+=lr(r).ch-r.to.ch),fn(D,O)}function aa(e,r){for(var D=[],O=0;O1&&e.remove(re.line+1,an-1),e.insert(re.line+1,jn)}Jn(e,"change",e,r)}function Ta(e,r,D){function O(N,X,q){if(N.linked)for(var re=0;re1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Je(e.done)}function _s(e,r,D,O){var N=e.history;N.undone.length=0;var X=+new Date,q,re;if((N.lastOp==O||N.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&N.lastModTime>X-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(q=pl(N,N.lastOp==O)))re=Je(q.changes),or(r.from,r.to)==0&&or(r.from,re.to)==0?re.to=lr(r):q.changes.push(rs(e,r));else{var se=Je(N.done);for((!se||!se.ranges)&&Go(e.sel,N.done),q={changes:[rs(e,r)],generation:N.generation},N.done.push(q);N.done.length>N.undoDepth;)N.done.shift(),N.done[0].ranges||N.done.shift()}N.done.push(D),N.generation=++N.maxGeneration,N.lastModTime=N.lastSelTime=X,N.lastOp=N.lastSelOp=O,N.lastOrigin=N.lastSelOrigin=r.origin,re||Ze(e,"historyAdded")}function ml(e,r,D,O){var N=r.charAt(0);return N=="*"||N=="+"&&D.ranges.length==O.ranges.length&&D.somethingSelected()==O.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,r,D,O){var N=e.history,X=O&&O.origin;D==N.lastSelOp||X&&N.lastSelOrigin==X&&(N.lastModTime==N.lastSelTime&&N.lastOrigin==X||ml(e,X,Je(N.done),r))?N.done[N.done.length-1]=r:Go(r,N.done),N.lastSelTime=+new Date,N.lastSelOrigin=X,N.lastSelOp=D,O&&O.clearRedo!==!1&&bs(N.undone)}function Go(e,r){var D=Je(r);D&&D.ranges&&D.equals(e)||r.push(e)}function Es(e,r,D,O){var N=r["spans_"+e.id],X=0;e.iter(Math.max(e.first,D),Math.min(e.first+e.size,O),function(q){q.markedSpans&&((N||(N=r["spans_"+e.id]={}))[X]=q.markedSpans),++X})}function vl(e){if(!e)return null;for(var r,D=0;D-1&&(Je(re)[nt]=pe[nt],delete pe[nt]))}}return O}function as(e,r,D,O){if(O){var N=e.anchor;if(D){var X=or(r,N)<0;X!=or(D,N)<0?(N=r,r=D):X!=or(r,D)<0&&(r=D)}return new Fr(N,r)}else return new Fr(D||r,r)}function Vo(e,r,D,O,N){N==null&&(N=e.cm&&(e.cm.display.shift||e.extend)),Ga(e,new za([as(e.sel.primary(),r,D,N)],0),O)}function ws(e,r,D){for(var O=[],N=e.cm&&(e.cm.display.shift||e.extend),X=0;X=r.ch:re.to>r.ch))){if(N&&(Ze(se,"beforeCursorEnter"),se.explicitlyCleared))if(X.markedSpans){--q;continue}else break;if(!se.atomic)continue;if(D){var nt=se.find(O<0?1:-1),Dt=void 0;if((O<0?Ve:pe)&&(nt=As(e,nt,-O,nt&&nt.line==r.line?X:null)),nt&&nt.line==r.line&&(Dt=or(nt,D))&&(O<0?Dt<0:Dt>0))return yo(e,nt,r,O,N)}var Tt=se.find(O<0?-1:1);return(O<0?pe:Ve)&&(Tt=As(e,Tt,O,Tt.line==r.line?X:null)),Tt?yo(e,Tt,r,O,N):null}}return r}function Xo(e,r,D,O,N){var X=O||1,q=yo(e,r,D,X,N)||!N&&yo(e,r,D,X,!0)||yo(e,r,D,-X,N)||!N&&yo(e,r,D,-X,!0);return q||(e.cantEdit=!0,fn(e.first,0))}function As(e,r,D,O){return D<0&&r.ch==0?r.line>e.first?W(e,fn(r.line-1)):null:D>0&&r.ch==(O||En(e,r.line)).text.length?r.line=0;--N)Ls(e,{from:O[N].from,to:O[N].to,text:N?[""]:r.text,origin:r.origin});else Ls(e,r)}function Ls(e,r){if(r.text.length==1&&r.text[0]==""&&or(r.from,r.to)==0)return;var D=aa(e,r);_s(e,r,D,e.cm?e.cm.curOp.id:NaN),Mo(e,r,D,hr(e,r));var O=[];Ta(e,function(N,X){!X&&$(O,N.history)==-1&&(Ns(N.history,r),O.push(N.history)),Mo(N,r,null,hr(N,r))})}function $o(e,r,D){var O=e.cm&&e.cm.state.suppressEdits;if(O&&!D)return;for(var N=e.history,X,q=e.sel,re=r=="undo"?N.done:N.undone,se=r=="undo"?N.undone:N.done,pe=0;pe=0;--Tt){var an=Dt(Tt);if(an)return an.v}}function Ps(e,r){if(r==0)return;if(e.first+=r,e.sel=new za(Rt(e.sel.ranges,function(N){return new Fr(fn(N.anchor.line+r,N.anchor.ch),fn(N.head.line+r,N.head.ch))}),e.sel.primIndex),e.cm){Vr(e.cm,e.first,e.first-r,r);for(var D=e.cm.display,O=D.viewFrom;Oe.lastLine())return;if(r.from.lineX&&(r={from:r.from,to:fn(X,En(e,X).text.length),text:[r.text[0]],origin:r.origin}),r.removed=xr(e,r.from,r.to),D||(D=aa(e,r)),e.cm?_l(e.cm,r,O):Wi(e,r,O),Yo(e,D,oe),e.cantEdit&&Xo(e,fn(e.firstLine(),0))&&(e.cantEdit=!1)}function _l(e,r,D){var O=e.doc,N=e.display,X=r.from,q=r.to,re=!1,se=X.line;e.options.lineWrapping||(se=ur(St(En(O,X.line))),O.iter(se,q.line+1,function(Tt){if(Tt==N.maxLine)return re=!0,!0})),O.sel.contains(r.from,r.to)>-1&&Ne(e),Wi(O,r,D,Qa(e)),e.options.lineWrapping||(O.iter(se,X.line+r.text.length,function(Tt){var an=cn(Tt);an>N.maxLineLength&&(N.maxLine=Tt,N.maxLineLength=an,N.maxLineChanged=!0,re=!1)}),re&&(e.curOp.updateMaxLine=!0)),$n(O,X.line),Ni(e,400);var pe=r.text.length-(q.line-X.line)-1;r.full?Vr(e):X.line==q.line&&r.text.length==1&&!vi(e.doc,r)?Xr(e,X.line,"text"):Vr(e,X.line,q.line+1,pe);var Ve=Te(e,"changes"),nt=Te(e,"change");if(nt||Ve){var Dt={from:X,to:q,text:r.text,removed:r.removed,origin:r.origin};nt&&Jn(e,"change",e,Dt),Ve&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Dt)}e.display.selForContextMenu=null}function _o(e,r,D,O,N){var X;O||(O=D),or(O,D)<0&&(X=[O,D],D=X[0],O=X[1]),typeof r=="string"&&(r=e.splitLines(r)),bo(e,{from:D,to:O,text:r,origin:N})}function Is(e,r,D,O){D1||!(this.children[0]instanceof Po))){var re=[];this.collapse(re),this.children=[new Po(re)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r50){for(var q=N.lines.length%25+25,re=q;re10);e.parent.maybeSpill()},iterN:function(e,r,D){for(var O=0;Oe.display.maxLineLength&&(e.display.maxLine=pe,e.display.maxLineLength=Ve,e.display.maxLineChanged=!0)}O!=null&&e&&this.collapsed&&Vr(e,O,N+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Jn(e,"markerCleared",e,this,O,N),r&&Ei(e),this.parent&&this.parent.clear()},qi.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var D,O,N=0;N0||q==0&&X.clearWhenEmpty!==!1)return X;if(X.replacedWith&&(X.collapsed=!0,X.widgetNode=_("span",[X.replacedWith],"CodeMirror-widget"),O.handleMouseEvents||X.widgetNode.setAttribute("cm-ignore-events","true"),O.insertLeft&&(X.widgetNode.insertLeft=!0)),X.collapsed){if(Vt(e,r.line,r,D,X)||r.line!=D.line&&Vt(e,D.line,r,D,X))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bn()}X.addToHistory&&_s(e,{from:r,to:D,origin:"markText"},e.sel,NaN);var re=r.line,se=e.cm,pe;if(e.iter(re,D.line+1,function(nt){se&&X.collapsed&&!se.options.lineWrapping&&St(nt)==se.display.maxLine&&(pe=!0),X.collapsed&&re!=r.line&&rr(nt,0),Tr(nt,new ar(X,re==r.line?r.ch:null,re==D.line?D.ch:null)),++re}),X.collapsed&&e.iter(r.line,D.line+1,function(nt){bn(e,nt)&&rr(nt,0)}),X.clearOnEnter&&Ae(X,"beforeCursorEnter",function(){return X.clear()}),X.readOnly&&(gr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),X.collapsed&&(X.id=++Us,X.atomic=!0),se){if(pe&&(se.curOp.updateMaxLine=!0),X.collapsed)Vr(se,r.line,D.line+1);else if(X.className||X.startStyle||X.endStyle||X.css||X.attributes||X.title)for(var Ve=r.line;Ve<=D.line;Ve++)Xr(se,Ve,"text");X.atomic&&Os(se.doc),Jn(se,"markerAdded",se,X)}return X}var No=function(e,r){this.markers=e,this.primary=r;for(var D=0;D=0;se--)bo(this,O[se]);re?Ts(this,re):this.cm&&yi(this.cm)}),undo:fa(function(){$o(this,"undo")}),redo:fa(function(){$o(this,"redo")}),undoSelection:fa(function(){$o(this,"undo",!0)}),redoSelection:fa(function(){$o(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,D=0,O=0;O=e.ch)&&r.push(N.marker.parent||N.marker)}return r},findMarks:function(e,r,D){e=W(this,e),r=W(this,r);var O=[],N=e.line;return this.iter(e.line,r.line+1,function(X){var q=X.markedSpans;if(q)for(var re=0;re=se.to||se.from==null&&N!=e.line||se.from!=null&&N==r.line&&se.from>=r.ch)&&(!D||D(se.marker))&&O.push(se.marker.parent||se.marker)}++N}),O},getAllMarks:function(){var e=[];return this.iter(function(r){var D=r.markedSpans;if(D)for(var O=0;Oe)return r=e,!0;e-=X,++D}),W(this,fn(D,r))},indexFromPos:function(e){e=W(this,e);var r=e.ch;if(e.liner&&(r=e.from),e.to!=null&&e.to-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var Ve=e.dataTransfer.getData("Text");if(Ve){var nt;if(r.state.draggingText&&!r.state.draggingText.copy&&(nt=r.listSelections()),Yo(r.doc,Fn(D,D)),nt)for(var Dt=0;Dt=0;re--)_o(e.doc,"",O[re].from,O[re].to,"+delete");yi(e)})}function os(e,r,D){var O=$e(e.text,r+D,D);return O<0||O>e.text.length?null:O}function ss(e,r,D){var O=os(e,r.ch,D);return O==null?null:new fn(r.line,O,D<0?"after":"before")}function ls(e,r,D,O,N){if(e){r.doc.direction=="rtl"&&(N=-N);var X=qt(D,r.doc.direction);if(X){var q=N<0?Je(X):X[0],re=N<0==(q.level==1),se=re?"after":"before",pe;if(q.level>0||r.doc.direction=="rtl"){var Ve=Ke(r,D);pe=N<0?D.text.length-1:0;var nt=_t(r,Ve,pe).top;pe=ct(function(Dt){return _t(r,Ve,Dt).top==nt},N<0==(q.level==1)?q.from:q.to-1,pe),se=="before"&&(pe=os(D,pe,1))}else pe=N<0?q.to:q.from;return new fn(O,pe,se)}}return new fn(O,N<0?D.text.length:0,N<0?"before":"after")}function Il(e,r,D,O){var N=qt(r,e.doc.direction);if(!N)return ss(r,D,O);D.ch>=r.text.length?(D.ch=r.text.length,D.sticky="before"):D.ch<=0&&(D.ch=0,D.sticky="after");var X=We(N,D.ch,D.sticky),q=N[X];if(e.doc.direction=="ltr"&&q.level%2==0&&(O>0?q.to>D.ch:q.from=q.from&&Dt>=Ve.begin)){var Tt=nt?"before":"after";return new fn(D.line,Dt,Tt)}}var an=function(jn,Xn,Un){for(var er=function(ia,Ba){return Ba?new fn(D.line,re(ia,1),"before"):new fn(D.line,ia,"after")};jn>=0&&jn0==(br.level!=1),kr=mr?Un.begin:re(Un.end,-1);if(br.from<=kr&&kr0?Ve.end:re(Ve.begin,-1);return Ln!=null&&!(O>0&&Ln==r.text.length)&&(yn=an(O>0?0:N.length-1,O,pe(Ln)),yn)?yn:null}var Fo={selectAll:Ds,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),oe)},killLine:function(e){return wo(e,function(r){if(r.empty()){var D=En(e.doc,r.head.line).text.length;return r.head.ch==D&&r.head.line0)N=new fn(N.line,N.ch+1),e.replaceRange(X.charAt(N.ch-1)+X.charAt(N.ch-2),fn(N.line,N.ch-2),N,"+transpose");else if(N.line>e.doc.first){var q=En(e.doc,N.line-1).text;q&&(N=new fn(N.line,1),e.replaceRange(X.charAt(0)+e.doc.lineSeparator()+q.charAt(q.length-1),fn(N.line-1,q.length-1),N,"+transpose"))}}D.push(new Fr(N,N))}e.setSelections(D)})},newlineAndIndent:function(e){return Wa(e,function(){for(var r=e.listSelections(),D=r.length-1;D>=0;D--)e.replaceRange(e.doc.lineSeparator(),r[D].anchor,r[D].head,"+input");r=e.listSelections();for(var O=0;Oe&&or(r,this.pos)==0&&D==this.button};var Ho,Wo;function Hl(e,r){var D=+new Date;return Wo&&Wo.compare(D,e,r)?(Ho=Wo=null,"triple"):Ho&&Ho.compare(D,e,r)?(Wo=new ds(D,e,r),Ho=null,"double"):(Ho=new ds(D,e,r),Wo=null,"single")}function el(e){var r=this,D=r.display;if(dt(r,e)||D.activeTouch&&D.input.supportsTouch())return;if(D.input.ensurePolled(),D.shift=e.shiftKey,Ra(D,e)){t||(D.scroller.draggable=!1,setTimeout(function(){return D.scroller.draggable=!0},100));return}if(cs(r,e))return;var O=Ca(r,e),N=ze(e),X=O?Hl(O,N):"single";if(window.focus(),N==1&&r.state.selectingText&&r.state.selectingText(e),O&&Wl(r,N,O,X,e))return;N==1?O?Kl(r,O,X,e):Se(e)==D.scroller&&ae(e):N==2?(O&&Vo(r.doc,O),setTimeout(function(){return D.input.focus()},20)):N==3&&(k?r.display.input.onContextMenu(e):no(r))}function Wl(e,r,D,O,N){var X="Click";return O=="double"?X="Double"+X:O=="triple"&&(X="Triple"+X),X=(r==1?"Left":r==2?"Middle":"Right")+X,Bo(e,Gs(X,N),N,function(q){if(typeof q=="string"&&(q=Fo[q]),!q)return!1;var re=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),re=q(e,D)!=me}finally{e.state.suppressEdits=!1}return re})}function zl(e,r,D){var O=e.getOption("configureMouse"),N=O?O(e,r,D):{};if(N.unit==null){var X=c?D.shiftKey&&D.metaKey:D.altKey;N.unit=X?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(N.extend==null||e.doc.extend)&&(N.extend=e.doc.extend||D.shiftKey),N.addNew==null&&(N.addNew=l?D.metaKey:D.ctrlKey),N.moveOnDrag==null&&(N.moveOnDrag=!(l?D.altKey:D.ctrlKey)),N}function Kl(e,r,D,O){P?setTimeout(H(Pi,e),0):e.curOp.focus=j();var N=zl(e,D,O),X=e.doc.sel,q;e.options.dragDrop&&xt&&!e.isReadOnly()&&D=="single"&&(q=X.contains(r))>-1&&(or((q=X.ranges[q]).from(),r)<0||r.xRel>0)&&(or(q.to(),r)>0||r.xRel<0)?Gl(e,O,r,N):Vl(e,O,r,N)}function Gl(e,r,D,O){var N=e.display,X=!1,q=ha(e,function(pe){t&&(N.scroller.draggable=!1),e.state.draggingText=!1,Et(N.wrapper.ownerDocument,"mouseup",q),Et(N.wrapper.ownerDocument,"mousemove",re),Et(N.scroller,"dragstart",se),Et(N.scroller,"drop",q),X||(ae(pe),O.addNew||Vo(e.doc,D,null,null,O.extend),t&&!f||P&&m==9?setTimeout(function(){N.wrapper.ownerDocument.body.focus({preventScroll:!0}),N.input.focus()},20):N.input.focus())}),re=function(pe){X=X||Math.abs(r.clientX-pe.clientX)+Math.abs(r.clientY-pe.clientY)>=10},se=function(){return X=!0};t&&(N.scroller.draggable=!0),e.state.draggingText=q,q.copy=!O.moveOnDrag,N.scroller.dragDrop&&N.scroller.dragDrop(),Ae(N.wrapper.ownerDocument,"mouseup",q),Ae(N.wrapper.ownerDocument,"mousemove",re),Ae(N.scroller,"dragstart",se),Ae(N.scroller,"drop",q),no(e),setTimeout(function(){return N.input.focus()},20)}function tl(e,r,D){if(D=="char")return new Fr(r,r);if(D=="word")return e.findWordAt(r);if(D=="line")return new Fr(fn(r.line,0),W(e.doc,fn(r.line+1,0)));var O=D(e,r);return new Fr(O.from,O.to)}function Vl(e,r,D,O){var N=e.display,X=e.doc;ae(r);var q,re,se=X.sel,pe=se.ranges;if(O.addNew&&!O.extend?(re=X.sel.contains(D),re>-1?q=pe[re]:q=new Fr(D,D)):(q=X.sel.primary(),re=X.sel.primIndex),O.unit=="rectangle")O.addNew||(q=new Fr(D,D)),D=Ca(e,r,!0,!0),re=-1;else{var Ve=tl(e,D,O.unit);O.extend?q=as(q,Ve.anchor,Ve.head,O.extend):q=Ve}O.addNew?re==-1?(re=pe.length,Ga(X,_r(e,pe.concat([q]),re),{scroll:!1,origin:"*mouse"})):pe.length>1&&pe[re].empty()&&O.unit=="char"&&!O.extend?(Ga(X,_r(e,pe.slice(0,re).concat(pe.slice(re+1)),0),{scroll:!1,origin:"*mouse"}),se=X.sel):is(X,re,q,fe):(re=0,Ga(X,new za([q],0),fe),se=X.sel);var nt=D;function Dt(Un){if(or(nt,Un)==0)return;if(nt=Un,O.unit=="rectangle"){for(var er=[],br=e.options.tabSize,mr=V(En(X,D.line).text,D.ch,br),kr=V(En(X,Un.line).text,Un.ch,br),ia=Math.min(mr,kr),Ba=Math.max(mr,kr),va=Math.min(D.line,Un.line),oi=Math.min(e.lastLine(),Math.max(D.line,Un.line));va<=oi;va++){var ti=En(X,va).text,Ma=Ie(ti,ia,br);ia==Ba?er.push(new Fr(fn(va,Ma),fn(va,Ma))):ti.length>Ma&&er.push(new Fr(fn(va,Ma),fn(va,Ie(ti,Ba,br))))}er.length||er.push(new Fr(D,D)),Ga(X,_r(e,se.ranges.slice(0,re).concat(er),re),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Un)}else{var ni=q,Ka=tl(e,Un,O.unit),ka=ni.anchor,La;or(Ka.anchor,ka)>0?(La=Ka.head,ka=na(ni.from(),Ka.anchor)):(La=Ka.anchor,ka=Jr(ni.to(),Ka.head));var Ea=se.ranges.slice(0);Ea[re]=Yl(e,new Fr(W(X,ka),La)),Ga(X,_r(e,Ea,re),fe)}}var Tt=N.wrapper.getBoundingClientRect(),an=0;function yn(Un){var er=++an,br=Ca(e,Un,!0,O.unit=="rectangle");if(!br)return;if(or(br,nt)!=0){e.curOp.focus=j(),Dt(br);var mr=Ii(N,X);(br.line>=mr.to||br.lineTt.bottom?20:0;kr&&setTimeout(ha(e,function(){if(an!=er)return;N.scroller.scrollTop+=kr,yn(Un)}),50)}}function Ln(Un){e.state.selectingText=!1,an=Infinity,Un&&(ae(Un),N.input.focus()),Et(N.wrapper.ownerDocument,"mousemove",jn),Et(N.wrapper.ownerDocument,"mouseup",Xn),X.history.lastSelOrigin=null}var jn=ha(e,function(Un){Un.buttons===0||!ze(Un)?Ln(Un):yn(Un)}),Xn=ha(e,Ln);e.state.selectingText=Xn,Ae(N.wrapper.ownerDocument,"mousemove",jn),Ae(N.wrapper.ownerDocument,"mouseup",Xn)}function Yl(e,r){var D=r.anchor,O=r.head,N=En(e.doc,D.line);if(or(D,O)==0&&D.sticky==O.sticky)return r;var X=qt(N);if(!X)return r;var q=We(X,D.ch,D.sticky),re=X[q];if(re.from!=D.ch&&re.to!=D.ch)return r;var se=q+(re.from==D.ch==(re.level!=1)?0:1);if(se==0||se==X.length)return r;var pe;if(O.line!=D.line)pe=(O.line-D.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ve=We(X,O.ch,O.sticky),nt=Ve-q||(O.ch-D.ch)*(re.level==1?-1:1);Ve==se-1||Ve==se?pe=nt<0:pe=nt>0}var Dt=X[se+(pe?-1:0)],Tt=pe==(Dt.level==1),an=Tt?Dt.from:Dt.to,yn=Tt?"after":"before";return D.ch==an&&D.sticky==yn?r:new Fr(new fn(D.line,an,yn),O)}function nl(e,r,D,O){var N,X;if(r.touches)N=r.touches[0].clientX,X=r.touches[0].clientY;else try{N=r.clientX,X=r.clientY}catch(Dt){return!1}if(N>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;O&&ae(r);var q=e.display,re=q.lineDiv.getBoundingClientRect();if(X>re.bottom||!Te(e,D))return he(r);X-=re.top-q.viewOffset;for(var se=0;se=N){var Ve=Rr(e.doc,X),nt=e.display.gutterSpecs[se];return Ze(e,D,e,Ve,nt.className,r),he(r)}}}function cs(e,r){return nl(e,r,"gutterClick",!0)}function rl(e,r){if(Ra(e.display,r)||Xl(e,r))return;if(dt(e,r,"contextmenu"))return;k||e.display.input.onContextMenu(r)}function Xl(e,r){return Te(e,"gutterContextMenu")?nl(e,r,"gutterContextMenu",!1):!1}function al(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jt(e)}var Co={toString:function(){return"CodeMirror.Init"}},il={},qo={};function $l(e){var r=e.optionHandlers;function D(O,N,X,q){e.defaults[O]=N,X&&(r[O]=q?function(re,se,pe){pe!=Co&&X(re,se,pe)}:X)}e.defineOption=D,e.Init=Co,D("value","",function(O,N){return O.setValue(N)},!0),D("mode",null,function(O,N){O.doc.modeOption=N,Da(O)},!0),D("indentUnit",2,Da,!0),D("indentWithTabs",!1),D("smartIndent",!0),D("tabSize",4,function(O){Xa(O),jt(O),Vr(O)},!0),D("lineSeparator",null,function(O,N){if(O.doc.lineSep=N,!N)return;var X=[],q=O.doc.first;O.doc.iter(function(se){for(var pe=0;;){var Ve=se.text.indexOf(N,pe);if(Ve==-1)break;pe=Ve+N.length,X.push(fn(q,Ve))}q++});for(var re=X.length-1;re>=0;re--)_o(O.doc,N,X[re],fn(X[re].line,X[re].ch+N.length))}),D("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(O,N,X){O.state.specialChars=new RegExp(N.source+(N.test(" ")?"":"| "),"g"),X!=Co&&O.refresh()}),D("specialCharPlaceholder",Dn,function(O){return O.refresh()},!0),D("electricChars",!0),D("inputStyle",n?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),D("spellcheck",!1,function(O,N){return O.getInputField().spellcheck=N},!0),D("autocorrect",!1,function(O,N){return O.getInputField().autocorrect=N},!0),D("autocapitalize",!1,function(O,N){return O.getInputField().autocapitalize=N},!0),D("rtlMoveVisually",!x),D("wholeLineUpdateBefore",!0),D("theme","default",function(O){al(O),di(O)},!0),D("keyMap","default",function(O,N,X){var q=Jo(N),re=X!=Co&&Jo(X);re&&re.detach&&re.detach(O,q),q.attach&&q.attach(O,re||null)}),D("extraKeys",null),D("configureMouse",null),D("lineWrapping",!1,Jl,!0),D("gutters",[],function(O,N){O.display.gutterSpecs=Fa(N,O.options.lineNumbers),di(O)},!0),D("fixedGutter",!0,function(O,N){O.display.gutters.style.left=N?la(O.display)+"px":"0",O.refresh()},!0),D("coverGutterNextToScrollbar",!1,function(O){return mi(O)},!0),D("scrollbarStyle","native",function(O){Qi(O),mi(O),O.display.scrollbars.setScrollTop(O.doc.scrollTop),O.display.scrollbars.setScrollLeft(O.doc.scrollLeft)},!0),D("lineNumbers",!1,function(O,N){O.display.gutterSpecs=Fa(O.options.gutters,N),di(O)},!0),D("firstLineNumber",1,di,!0),D("lineNumberFormatter",function(O){return O},di,!0),D("showCursorWhenSelecting",!1,Yr,!0),D("resetSelectionOnContextMenu",!0),D("lineWiseCopyCut",!0),D("pasteLinesPerSelection",!0),D("selectionsMayTouch",!1),D("readOnly",!1,function(O,N){N=="nocursor"&&(Ci(O),O.display.input.blur()),O.display.input.readOnlyChanged(N)}),D("screenReaderLabel",null,function(O,N){N=N===""?null:N,O.display.input.screenReaderLabelChanged(N)}),D("disableInput",!1,function(O,N){N||O.display.input.reset()},!0),D("dragDrop",!0,Ql),D("allowDropFileTypes",null),D("cursorBlinkRate",530),D("cursorScrollMargin",0),D("cursorHeight",1,Yr,!0),D("singleCursorHeightPerLine",!0,Yr,!0),D("workTime",100),D("workDelay",100),D("flattenSpans",!0,Xa,!0),D("addModeClass",!1,Xa,!0),D("pollInterval",100),D("undoDepth",200,function(O,N){return O.doc.history.undoDepth=N}),D("historyEventDelay",1250),D("viewportMargin",10,function(O){return O.refresh()},!0),D("maxHighlightLength",1e4,Xa,!0),D("moveInputWithCursor",!0,function(O,N){N||O.display.input.resetPosition()}),D("tabindex",null,function(O,N){return O.display.input.getField().tabIndex=N||""}),D("autofocus",null),D("direction","ltr",function(O,N){return O.doc.setDirection(N)},!0),D("phrases",null)}function Ql(e,r,D){var O=D&&D!=Co;if(!r!=!O){var N=e.display.dragFunctions,X=r?Ae:Et;X(e.display.scroller,"dragstart",N.start),X(e.display.scroller,"dragenter",N.enter),X(e.display.scroller,"dragover",N.over),X(e.display.scroller,"dragleave",N.leave),X(e.display.scroller,"drop",N.drop)}}function Jl(e){e.options.lineWrapping?(U(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(y(e.display.wrapper,"CodeMirror-wrap"),Ht(e)),ja(e),Vr(e),jt(e),setTimeout(function(){return mi(e)},100)}function pa(e,r){var D=this;if(!(this instanceof pa))return new pa(e,r);this.options=r=r?M(r):{},M(il,r,!1);var O=r.value;typeof O=="string"?O=new ei(O,r.mode,null,r.lineSeparator,r.direction):r.mode&&(O.modeOption=r.mode),this.doc=O;var N=new pa.inputStyles[r.inputStyle](this),X=this.display=new Ui(e,O,N,r);X.wrapper.CodeMirror=this,al(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Qi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new K,keySeq:null,specialChars:null},r.autofocus&&!n&&X.input.focus(),P&&m<11&&setTimeout(function(){return D.display.input.reset(!0)},20),Zl(this),Al(),ui(this),this.curOp.forceUpdate=!0,vs(this,O),r.autofocus&&!n||this.hasFocus()?setTimeout(function(){D.hasFocus()&&!D.state.focused&&li(D)},20):Ci(this);for(var q in qo)qo.hasOwnProperty(q)&&qo[q](this,r[q],Co);oa(this),r.finishInit&&r.finishInit(this);for(var re=0;re20*20}Ae(r.scroller,"touchstart",function(se){if(!dt(e,se)&&!X(se)&&!cs(e,se)){r.input.ensurePolled(),clearTimeout(D);var pe=+new Date;r.activeTouch={start:pe,moved:!1,prev:pe-O.end<=300?O:null},se.touches.length==1&&(r.activeTouch.left=se.touches[0].pageX,r.activeTouch.top=se.touches[0].pageY)}}),Ae(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ae(r.scroller,"touchend",function(se){var pe=r.activeTouch;if(pe&&!Ra(r,se)&&pe.left!=null&&!pe.moved&&new Date-pe.start<300){var Ve=e.coordsChar(r.activeTouch,"page"),nt;!pe.prev||q(pe,pe.prev)?nt=new Fr(Ve,Ve):!pe.prev.prev||q(pe,pe.prev.prev)?nt=e.findWordAt(Ve):nt=new Fr(fn(Ve.line,0),W(e.doc,fn(Ve.line+1,0))),e.setSelection(nt.anchor,nt.head),e.focus(),ae(se)}N()}),Ae(r.scroller,"touchcancel",N),Ae(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Di(e,r.scroller.scrollTop),Ia(e,r.scroller.scrollLeft,!0),Ze(e,"scroll",e))}),Ae(r.scroller,"mousewheel",function(se){return Hi(e,se)}),Ae(r.scroller,"DOMMouseScroll",function(se){return Hi(e,se)}),Ae(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(se){dt(e,se)||_e(se)},over:function(se){dt(e,se)||(Rl(e,se),_e(se))},start:function(se){return Ol(e,se)},drop:ha(e,Sl),leave:function(se){dt(e,se)||Hs(e)}};var re=r.input.getField();Ae(re,"keyup",function(se){return Zs.call(e,se)}),Ae(re,"keydown",ha(e,Js)),Ae(re,"keypress",ha(e,qs)),Ae(re,"focus",function(se){return li(e,se)}),Ae(re,"blur",function(se){return Ci(e,se)})}var hs=[];pa.defineInitHook=function(e){return hs.push(e)};function zo(e,r,D,O){var N=e.doc,X;D==null&&(D="add"),D=="smart"&&(N.mode.indent?X=An(e,r).state:D="prev");var q=e.options.tabSize,re=En(N,r),se=V(re.text,null,q);re.stateAfter&&(re.stateAfter=null);var pe=re.text.match(/^\s*/)[0],Ve;if(!O&&!/\S/.test(re.text))Ve=0,D="not";else if(D=="smart"&&(Ve=N.mode.indent(X,re.text.slice(pe.length),re.text),Ve==me||Ve>150)){if(!O)return;D="prev"}D=="prev"?r>N.first?Ve=V(En(N,r-1).text,null,q):Ve=0:D=="add"?Ve=se+e.options.indentUnit:D=="subtract"?Ve=se-e.options.indentUnit:typeof D=="number"&&(Ve=se+D),Ve=Math.max(0,Ve);var nt="",Dt=0;if(e.options.indentWithTabs)for(var Tt=Math.floor(Ve/q);Tt;--Tt)Dt+=q,nt+=" ";if(Dtq,se=Ot(r),pe=null;if(re&&O.ranges.length>1)if(wi&&wi.text.join(` +`)==r){if(O.ranges.length%wi.text.length==0){pe=[];for(var Ve=0;Ve=0;Dt--){var Tt=O.ranges[Dt],an=Tt.from(),yn=Tt.to();Tt.empty()&&(D&&D>0?an=fn(an.line,an.ch-D):e.state.overwrite&&!re?yn=fn(yn.line,Math.min(En(X,yn.line).text.length,yn.ch+Je(se).length)):re&&wi&&wi.lineWise&&wi.text.join(` `)==se.join(` -`)&&(nn=En=pn(nn.line,0)));var Ln={from:nn,to:En,text:pe?pe[Mt%pe.length]:se,origin:N||(re?"paste":e.state.cutIncoming>q?"cut":"+input")};bo(e.doc,Ln),Jn(e,"inputRead",e,Ln)}r&&!re&&sl(e,r),yi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=tt),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,r){var D=e.clipboardData&&e.clipboardData.getData("Text");if(D)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Wa(r,function(){return fs(r,D,0,null,"paste")}),!0}function sl(e,r){if(!e.options.electricChars||!e.options.smartIndent)return;for(var D=e.doc.sel,O=D.ranges.length-1;O>=0;O--){var N=D.ranges[O];if(N.head.ch>100||O&&D.ranges[O-1].head.line==N.head.line)continue;var X=e.getModeAt(N.head),q=!1;if(X.electricChars){for(var re=0;re-1){q=zo(e,N.head.line,"smart");break}}else X.electricInput&&(X.electricInput.test(wn(e.doc,N.head.line).text.slice(0,N.head.ch))&&(q=zo(e,N.head.line,"smart")));q&&Jn(e,"electricInput",e,N.head.line)}}function ll(e){for(var r=[],D=[],O=0;OX&&(zo(this,re.head.line,O,!0),X=re.head.line,q==this.doc.sel.primIndex&&yi(this));else{var se=re.from(),pe=re.to(),Ve=Math.max(X,se.line);X=Math.min(this.lastLine(),pe.line-(pe.ch?0:1))+1;for(var tt=Ve;tt0&&is(this.doc,q,new Fr(se,Mt[q].to()),oe)}}}),getTokenAt:function(O,N){return un(this,O,N)},getLineTokens:function(O,N){return un(this,pn(O),N,!0)},getTokenTypeAt:function(O){O=W(this.doc,O);var N=en(this,wn(this.doc,O.line)),X=0,q=(N.length-1)/2,re=O.ch,se;if(re==0)se=N[2];else for(;;){var pe=X+q>>1;if((pe?N[pe*2-1]:0)>=re)q=pe;else if(N[pe*2+1]se&&(O=se,q=!0),re=wn(this.doc,O)}else re=O;return vr(this,re,{top:0,left:0},N||"page",X||q).top+(q?this.doc.height-Vt(re):0)},defaultTextHeight:function(){return jr(this.display)},defaultCharWidth:function(){return Nr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(O,N,X,q,re){var se=this.display;O=or(this,W(this.doc,O));var pe=O.bottom,Ve=O.left;if(N.style.position="absolute",N.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(N),se.sizer.appendChild(N),q=="over")pe=O.top;else if(q=="above"||q=="near"){var tt=Math.max(se.wrapper.clientHeight,this.doc.height),Mt=Math.max(se.sizer.clientWidth,se.lineSpace.clientWidth);(q=="above"||O.bottom+N.offsetHeight>tt)&&O.top>N.offsetHeight?pe=O.top-N.offsetHeight:O.bottom+N.offsetHeight<=tt&&(pe=O.bottom),Ve+N.offsetWidth>Mt&&(Ve=Mt-N.offsetWidth)}N.style.top=pe+"px",N.style.left=N.style.right="",re=="right"?(Ve=se.sizer.clientWidth-N.offsetWidth,N.style.right="0px"):(re=="left"?Ve=0:re=="middle"&&(Ve=(se.sizer.clientWidth-N.offsetWidth)/2),N.style.left=Ve+"px"),X&&Gi(this,{left:Ve,top:pe,right:Ve+N.offsetWidth,bottom:pe+N.offsetHeight})},triggerOnKeyDown:Aa(Js),triggerOnKeyPress:Aa(qs),triggerOnKeyUp:Zs,triggerOnMouseDown:Aa(el),execCommand:function(O){if(Fo.hasOwnProperty(O))return Fo[O].call(null,this)},triggerElectric:Aa(function(O){sl(this,O)}),findPosH:function(O,N,X,q){var re=1;N<0&&(re=-1,N=-N);for(var se=W(this.doc,O),pe=0;pe0&&Ve(X.charAt(q-1));)--q;for(;re.5||this.options.lineWrapping)&&ja(this),Je(this,"refresh",this)}),swapDoc:Aa(function(O){var N=this.doc;return N.cm=null,this.state.selectingText&&this.state.selectingText(),vs(this,O),jt(this),this.display.input.reset(),Ri(this,O.scrollLeft,O.scrollTop),this.curOp.forceScroll=!0,Jn(this,"swapDoc",this,N),N}),phrase:function(O){var N=this.options.phrases;return N&&Object.prototype.hasOwnProperty.call(N,O)?N[O]:O},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Oe(e),e.registerHelper=function(O,N,X){D.hasOwnProperty(O)||(D[O]=e[O]={_global:[]}),D[O][N]=X},e.registerGlobalHelper=function(O,N,X,q){e.registerHelper(O,N,q),D[O]._global.push({pred:X,val:q})}}function ps(e,r,D,O,N){var X=r,q=D,re=wn(e,r.line),se=N&&e.direction=="rtl"?-D:D;function pe(){var Xn=r.line+se;return Xn=e.first+e.size?!1:(r=new pn(Xn,r.ch,r.sticky),re=wn(e,Xn))}function Ve(Xn){var jn;if(O=="codepoint"){var er=re.text.charCodeAt(r.ch+(O>0?0:-1));isNaN(er)?jn=null:jn=new pn(r.line,Math.max(0,Math.min(re.text.length,r.ch+D*(er>=55296&&er<56320?2:1))),-D)}else N?jn=Il(e.cm,re,r,D):jn=ss(re,r,D);if(jn==null)if(!Xn&&pe())r=ls(N,e.cm,re,r.line,se);else return!1;else r=jn;return!0}if(O=="char"||O=="codepoint")Ve();else if(O=="column")Ve(!0);else if(O=="word"||O=="group")for(var tt=null,Mt=O=="group",Tt=e.cm&&e.cm.getHelper(r,"wordChars"),nn=!0;!(D<0&&!Ve(!nn));nn=!1){var En=re.text.charAt(r.ch)||` -`,Ln=ht(En,Tt)?"w":Mt&&En==` -`?"n":!Mt||/\s/.test(En)?null:"p";if(Mt&&!nn&&!Ln&&(Ln="s"),tt&&tt!=Ln){D<0&&(D=1,Ve(),r.sticky="after");break}if(Ln&&(tt=Ln),D>0&&!Ve(!nn))break}var Nn=Xo(e,r,X,q,!0);return sa(X,Nn)&&(Nn.hitSide=!0),Nn}function cl(e,r,D,O){var N=e.doc,X=r.left,q;if(O=="page"){var re=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),se=Math.max(re-.5*jr(e.display),3);q=(D>0?r.bottom:r.top)+D*se}else O=="line"&&(q=D>0?r.bottom+3:r.top-3);for(var pe;!(pe=gr(e,X,q),!pe.outside);){if(D<0?q<=0:q>=N.height){pe.hitSide=!0;break}q+=D*5}return pe}var ta=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new K,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ta.prototype.init=function(e){var r=this,D=this,O=D.cm,N=D.div=e.lineDiv;ul(N,O.options.spellcheck,O.options.autocorrect,O.options.autocapitalize);function X(re){for(var se=re.target;se;se=se.parentNode){if(se==N)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(se.className))break}return!1}Ae(N,"paste",function(re){if(!X(re)||dt(O,re)||ol(re,O))return;m<=11&&setTimeout(ha(O,function(){return r.updateFromDOM()}),20)}),Ae(N,"compositionstart",function(re){r.composing={data:re.data,done:!1}}),Ae(N,"compositionupdate",function(re){r.composing||(r.composing={data:re.data,done:!1})}),Ae(N,"compositionend",function(re){r.composing&&(re.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ae(N,"touchstart",function(){return D.forceCompositionEnd()}),Ae(N,"input",function(){r.composing||r.readFromDOMSoon()});function q(re){if(!X(re)||dt(O,re))return;if(O.somethingSelected())es({lineWise:!1,text:O.getSelections()}),re.type=="cut"&&O.replaceSelection("",null,"cut");else if(O.options.lineWiseCopyCut){var se=ll(O);es({lineWise:!0,text:se.text}),re.type=="cut"&&O.operation(function(){O.setSelections(se.ranges,0,oe),O.replaceSelection("",null,"cut")})}else return;if(re.clipboardData){re.clipboardData.clearData();var pe=wi.text.join(` -`);if(re.clipboardData.setData("Text",pe),re.clipboardData.getData("Text")==pe){re.preventDefault();return}}var Ve=dl(),tt=Ve.firstChild;O.display.lineSpace.insertBefore(Ve,O.display.lineSpace.firstChild),tt.value=wi.text.join(` -`);var Mt=document.activeElement;z(tt),setTimeout(function(){O.display.lineSpace.removeChild(Ve),Mt.focus(),Mt==N&&D.showPrimarySelection()},50)}Ae(N,"copy",q),Ae(N,"cut",q)},ta.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ta.prototype.prepareSelection=function(){var e=Ja(this.cm,!1);return e.focus=document.activeElement==this.div,e},ta.prototype.showSelection=function(e,r){if(!e||!this.cm.display.view.length)return;(e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e)},ta.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ta.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,D=r.doc.sel.primary(),O=D.from(),N=D.to();if(r.display.viewTo==r.display.viewFrom||O.line>=r.display.viewTo||N.line=r.display.viewFrom&&hl(r,O)||{node:re[0].measure.map[2],offset:0},pe=N.linee.firstLine()&&(O=pn(O.line-1,wn(e.doc,O.line-1).length)),N.ch==wn(e.doc,N.line).text.length&&N.liner.viewTo-1)return!1;var X,q,re;O.line==r.viewFrom||(X=qr(e,O.line))==0?(q=ur(r.view[0].line),re=r.view[0].node):(q=ur(r.view[X].line),re=r.view[X-1].node.nextSibling);var se=qr(e,N.line),pe,Ve;if(se==r.view.length-1?(pe=r.viewTo-1,Ve=r.lineDiv.lastChild):(pe=ur(r.view[se+1].line)-1,Ve=r.view[se+1].node.previousSibling),!re)return!1;for(var tt=e.doc.splitLines(tu(e,re,Ve,q,pe)),Mt=xr(e.doc,pn(q,0),pn(pe,wn(e.doc,pe).text.length));tt.length>1&&Mt.length>1;)if(Qe(tt)==Qe(Mt))tt.pop(),Mt.pop(),pe--;else if(tt[0]==Mt[0])tt.shift(),Mt.shift(),q++;else break;for(var Tt=0,nn=0,En=tt[0],Ln=Mt[0],Nn=Math.min(En.length,Ln.length);TtO.ch&&Xn.charCodeAt(Xn.length-nn-1)==jn.charCodeAt(jn.length-nn-1);)Tt--,nn++;tt[tt.length-1]=Xn.slice(0,Xn.length-nn).replace(/^\u200b+/,""),tt[0]=tt[0].slice(Tt).replace(/\u200b+$/,"");var yr=pn(q,Tt),pr=pn(pe,Mt.length?Qe(Mt).length-nn:0);if(tt.length>1||tt[0]||sr(yr,pr))return _o(e.doc,tt,yr,pr,"+input"),!0},ta.prototype.ensurePolled=function(){this.forceCompositionEnd()},ta.prototype.reset=function(){this.forceCompositionEnd()},ta.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},ta.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},ta.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wa(this.cm,function(){return Vr(e.cm)})},ta.prototype.setUneditable=function(e){e.contentEditable="false"},ta.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||ha(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},ta.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ta.prototype.onContextMenu=function(){},ta.prototype.resetPosition=function(){},ta.prototype.needsContentAttribute=!0;function hl(e,r){var D=ot(e,r.line);if(!D||D.hidden)return null;var O=wn(e.doc,r.line),N=ge(D,O,r.line),X=Zt(O,e.doc.direction),q="left";if(X){var re=We(X,r.ch);q=re%2?"right":"left"}var se=tn(N.map,r.ch,q);return se.offset=se.collapse=="right"?se.end:se.start,se}function eu(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function To(e,r){return r&&(e.bad=!0),e}function tu(e,r,D,O,N){var X="",q=!1,re=e.doc.lineSeparator(),se=!1;function pe(Tt){return function(nn){return nn.id==Tt}}function Ve(){q&&(X+=re,se&&(X+=re),q=se=!1)}function tt(Tt){Tt&&(Ve(),X+=Tt)}function Mt(Tt){if(Tt.nodeType==1){var nn=Tt.getAttribute("cm-text");if(nn){tt(nn);return}var En=Tt.getAttribute("cm-marker"),Ln;if(En){var Nn=e.findMarks(pn(O,0),pn(N+1,0),pe(+En));Nn.length&&(Ln=Nn[0].find(0))&&tt(xr(e.doc,Ln.from,Ln.to).join(re));return}if(Tt.getAttribute("contenteditable")=="false")return;var Xn=/^(pre|div|p|li|table|br)$/i.test(Tt.nodeName);if(!/^br$/i.test(Tt.nodeName)&&Tt.textContent.length==0)return;Xn&&Ve();for(var jn=0;jn=9&&r.hasSelection&&(r.hasSelection=null),D.poll()}),Ae(N,"paste",function(q){if(dt(O,q)||ol(q,O))return;O.state.pasteIncoming=+new Date,D.fastPoll()});function X(q){if(dt(O,q))return;if(O.somethingSelected())es({lineWise:!1,text:O.getSelections()});else if(O.options.lineWiseCopyCut){var re=ll(O);es({lineWise:!0,text:re.text}),q.type=="cut"?O.setSelections(re.ranges,null,oe):(D.prevInput="",N.value=re.text.join(` -`),z(N))}else return;q.type=="cut"&&(O.state.cutIncoming=+new Date)}Ae(N,"cut",X),Ae(N,"copy",X),Ae(e.scroller,"paste",function(q){if(Ra(e,q)||dt(O,q))return;if(!N.dispatchEvent){O.state.pasteIncoming=+new Date,D.focus();return}var re=new Event("paste");re.clipboardData=q.clipboardData,N.dispatchEvent(re)}),Ae(e.lineSpace,"selectstart",function(q){Ra(e,q)||ae(q)}),Ae(N,"compositionstart",function(){var q=O.getCursor("from");D.composing&&D.composing.range.clear(),D.composing={start:q,range:O.markText(q,O.getCursor("to"),{className:"CodeMirror-composing"})}}),Ae(N,"compositionend",function(){D.composing&&(D.poll(),D.composing.range.clear(),D.composing=null)})},Sa.prototype.createField=function(e){this.wrapper=dl(),this.textarea=this.wrapper.firstChild},Sa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Sa.prototype.prepareSelection=function(){var e=this.cm,r=e.display,D=e.doc,O=Ja(e);if(e.options.moveInputWithCursor){var N=or(e,D.sel.primary().head,"div"),X=r.wrapper.getBoundingClientRect(),q=r.lineDiv.getBoundingClientRect();O.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,N.top+q.top-X.top)),O.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,N.left+q.left-X.left))}return O},Sa.prototype.showSelection=function(e){var r=this.cm,D=r.display;p(D.cursorDiv,e.cursors),p(D.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Sa.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var r=this.cm;if(r.somethingSelected()){this.prevInput="";var D=r.getSelection();this.textarea.value=D,r.state.focused&&z(this.textarea),P&&m>=9&&(this.hasSelection=D)}else e||(this.prevInput=this.textarea.value="",P&&m>=9&&(this.hasSelection=null))},Sa.prototype.getField=function(){return this.textarea},Sa.prototype.supportsTouch=function(){return!1},Sa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!n||j()!=this.textarea))try{this.textarea.focus()}catch(e){}},Sa.prototype.blur=function(){this.textarea.blur()},Sa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Sa.prototype.receivedFocus=function(){this.slowPoll()},Sa.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Sa.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function D(){var O=r.poll();!O&&!e?(e=!0,r.polling.set(60,D)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,D)},Sa.prototype.poll=function(){var e=this,r=this.cm,D=this.textarea,O=this.prevInput;if(this.contextMenuPending||!r.state.focused||At(D)&&!O&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var N=D.value;if(N==O&&!r.somethingSelected())return!1;if(P&&m>=9&&this.hasSelection===N||l&&/[\uf700-\uf7ff]/.test(N))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var X=N.charCodeAt(0);if(X==8203&&!O&&(O="\u200B"),X==8666)return this.reset(),this.cm.execCommand("undo")}for(var q=0,re=Math.min(O.length,N.length);q1e3||N.indexOf(` -`)>-1?D.value=e.prevInput="":e.prevInput=N,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Sa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Sa.prototype.onKeyPress=function(){P&&m>=9&&(this.hasSelection=null),this.fastPoll()},Sa.prototype.onContextMenu=function(e){var r=this,D=r.cm,O=D.display,N=r.textarea;r.contextMenuPending&&r.contextMenuPending();var X=Ca(D,e),q=O.scroller.scrollTop;if(!X||u)return;var re=D.options.resetSelectionOnContextMenu;re&&D.doc.sel.contains(X)==-1&&ha(D,Ga)(D.doc,Un(X),oe);var se=N.style.cssText,pe=r.wrapper.style.cssText,Ve=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",N.style.cssText=`position: absolute; width: 30px; height: 30px; +`)&&(an=yn=fn(an.line,0)));var Ln={from:an,to:yn,text:pe?pe[Dt%pe.length]:se,origin:N||(re?"paste":e.state.cutIncoming>q?"cut":"+input")};bo(e.doc,Ln),Jn(e,"inputRead",e,Ln)}r&&!re&&sl(e,r),yi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=nt),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,r){var D=e.clipboardData&&e.clipboardData.getData("Text");if(D)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Wa(r,function(){return fs(r,D,0,null,"paste")}),!0}function sl(e,r){if(!e.options.electricChars||!e.options.smartIndent)return;for(var D=e.doc.sel,O=D.ranges.length-1;O>=0;O--){var N=D.ranges[O];if(N.head.ch>100||O&&D.ranges[O-1].head.line==N.head.line)continue;var X=e.getModeAt(N.head),q=!1;if(X.electricChars){for(var re=0;re-1){q=zo(e,N.head.line,"smart");break}}else X.electricInput&&(X.electricInput.test(En(e.doc,N.head.line).text.slice(0,N.head.ch))&&(q=zo(e,N.head.line,"smart")));q&&Jn(e,"electricInput",e,N.head.line)}}function ll(e){for(var r=[],D=[],O=0;OX&&(zo(this,re.head.line,O,!0),X=re.head.line,q==this.doc.sel.primIndex&&yi(this));else{var se=re.from(),pe=re.to(),Ve=Math.max(X,se.line);X=Math.min(this.lastLine(),pe.line-(pe.ch?0:1))+1;for(var nt=Ve;nt0&&is(this.doc,q,new Fr(se,Dt[q].to()),oe)}}}),getTokenAt:function(O,N){return dn(this,O,N)},getLineTokens:function(O,N){return dn(this,fn(O),N,!0)},getTokenTypeAt:function(O){O=W(this.doc,O);var N=tn(this,En(this.doc,O.line)),X=0,q=(N.length-1)/2,re=O.ch,se;if(re==0)se=N[2];else for(;;){var pe=X+q>>1;if((pe?N[pe*2-1]:0)>=re)q=pe;else if(N[pe*2+1]se&&(O=se,q=!0),re=En(this.doc,O)}else re=O;return yr(this,re,{top:0,left:0},N||"page",X||q).top+(q?this.doc.height-Gt(re):0)},defaultTextHeight:function(){return jr(this.display)},defaultCharWidth:function(){return Nr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(O,N,X,q,re){var se=this.display;O=ir(this,W(this.doc,O));var pe=O.bottom,Ve=O.left;if(N.style.position="absolute",N.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(N),se.sizer.appendChild(N),q=="over")pe=O.top;else if(q=="above"||q=="near"){var nt=Math.max(se.wrapper.clientHeight,this.doc.height),Dt=Math.max(se.sizer.clientWidth,se.lineSpace.clientWidth);(q=="above"||O.bottom+N.offsetHeight>nt)&&O.top>N.offsetHeight?pe=O.top-N.offsetHeight:O.bottom+N.offsetHeight<=nt&&(pe=O.bottom),Ve+N.offsetWidth>Dt&&(Ve=Dt-N.offsetWidth)}N.style.top=pe+"px",N.style.left=N.style.right="",re=="right"?(Ve=se.sizer.clientWidth-N.offsetWidth,N.style.right="0px"):(re=="left"?Ve=0:re=="middle"&&(Ve=(se.sizer.clientWidth-N.offsetWidth)/2),N.style.left=Ve+"px"),X&&Gi(this,{left:Ve,top:pe,right:Ve+N.offsetWidth,bottom:pe+N.offsetHeight})},triggerOnKeyDown:Aa(Js),triggerOnKeyPress:Aa(qs),triggerOnKeyUp:Zs,triggerOnMouseDown:Aa(el),execCommand:function(O){if(Fo.hasOwnProperty(O))return Fo[O].call(null,this)},triggerElectric:Aa(function(O){sl(this,O)}),findPosH:function(O,N,X,q){var re=1;N<0&&(re=-1,N=-N);for(var se=W(this.doc,O),pe=0;pe0&&Ve(X.charAt(q-1));)--q;for(;re.5||this.options.lineWrapping)&&ja(this),Ze(this,"refresh",this)}),swapDoc:Aa(function(O){var N=this.doc;return N.cm=null,this.state.selectingText&&this.state.selectingText(),vs(this,O),jt(this),this.display.input.reset(),Ri(this,O.scrollLeft,O.scrollTop),this.curOp.forceScroll=!0,Jn(this,"swapDoc",this,N),N}),phrase:function(O){var N=this.options.phrases;return N&&Object.prototype.hasOwnProperty.call(N,O)?N[O]:O},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Oe(e),e.registerHelper=function(O,N,X){D.hasOwnProperty(O)||(D[O]=e[O]={_global:[]}),D[O][N]=X},e.registerGlobalHelper=function(O,N,X,q){e.registerHelper(O,N,q),D[O]._global.push({pred:X,val:q})}}function ps(e,r,D,O,N){var X=r,q=D,re=En(e,r.line),se=N&&e.direction=="rtl"?-D:D;function pe(){var Xn=r.line+se;return Xn=e.first+e.size?!1:(r=new fn(Xn,r.ch,r.sticky),re=En(e,Xn))}function Ve(Xn){var Un;if(O=="codepoint"){var er=re.text.charCodeAt(r.ch+(O>0?0:-1));isNaN(er)?Un=null:Un=new fn(r.line,Math.max(0,Math.min(re.text.length,r.ch+D*(er>=55296&&er<56320?2:1))),-D)}else N?Un=Il(e.cm,re,r,D):Un=ss(re,r,D);if(Un==null)if(!Xn&&pe())r=ls(N,e.cm,re,r.line,se);else return!1;else r=Un;return!0}if(O=="char"||O=="codepoint")Ve();else if(O=="column")Ve(!0);else if(O=="word"||O=="group")for(var nt=null,Dt=O=="group",Tt=e.cm&&e.cm.getHelper(r,"wordChars"),an=!0;!(D<0&&!Ve(!an));an=!1){var yn=re.text.charAt(r.ch)||` +`,Ln=ht(yn,Tt)?"w":Dt&&yn==` +`?"n":!Dt||/\s/.test(yn)?null:"p";if(Dt&&!an&&!Ln&&(Ln="s"),nt&&nt!=Ln){D<0&&(D=1,Ve(),r.sticky="after");break}if(Ln&&(nt=Ln),D>0&&!Ve(!an))break}var jn=Xo(e,r,X,q,!0);return sa(X,jn)&&(jn.hitSide=!0),jn}function cl(e,r,D,O){var N=e.doc,X=r.left,q;if(O=="page"){var re=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),se=Math.max(re-.5*jr(e.display),3);q=(D>0?r.bottom:r.top)+D*se}else O=="line"&&(q=D>0?r.bottom+3:r.top-3);for(var pe;!(pe=vr(e,X,q),!pe.outside);){if(D<0?q<=0:q>=N.height){pe.hitSide=!0;break}q+=D*5}return pe}var ta=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new K,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ta.prototype.init=function(e){var r=this,D=this,O=D.cm,N=D.div=e.lineDiv;ul(N,O.options.spellcheck,O.options.autocorrect,O.options.autocapitalize);function X(re){for(var se=re.target;se;se=se.parentNode){if(se==N)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(se.className))break}return!1}Ae(N,"paste",function(re){if(!X(re)||dt(O,re)||ol(re,O))return;m<=11&&setTimeout(ha(O,function(){return r.updateFromDOM()}),20)}),Ae(N,"compositionstart",function(re){r.composing={data:re.data,done:!1}}),Ae(N,"compositionupdate",function(re){r.composing||(r.composing={data:re.data,done:!1})}),Ae(N,"compositionend",function(re){r.composing&&(re.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ae(N,"touchstart",function(){return D.forceCompositionEnd()}),Ae(N,"input",function(){r.composing||r.readFromDOMSoon()});function q(re){if(!X(re)||dt(O,re))return;if(O.somethingSelected())es({lineWise:!1,text:O.getSelections()}),re.type=="cut"&&O.replaceSelection("",null,"cut");else if(O.options.lineWiseCopyCut){var se=ll(O);es({lineWise:!0,text:se.text}),re.type=="cut"&&O.operation(function(){O.setSelections(se.ranges,0,oe),O.replaceSelection("",null,"cut")})}else return;if(re.clipboardData){re.clipboardData.clearData();var pe=wi.text.join(` +`);if(re.clipboardData.setData("Text",pe),re.clipboardData.getData("Text")==pe){re.preventDefault();return}}var Ve=dl(),nt=Ve.firstChild;O.display.lineSpace.insertBefore(Ve,O.display.lineSpace.firstChild),nt.value=wi.text.join(` +`);var Dt=document.activeElement;z(nt),setTimeout(function(){O.display.lineSpace.removeChild(Ve),Dt.focus(),Dt==N&&D.showPrimarySelection()},50)}Ae(N,"copy",q),Ae(N,"cut",q)},ta.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ta.prototype.prepareSelection=function(){var e=Ja(this.cm,!1);return e.focus=document.activeElement==this.div,e},ta.prototype.showSelection=function(e,r){if(!e||!this.cm.display.view.length)return;(e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e)},ta.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ta.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,D=r.doc.sel.primary(),O=D.from(),N=D.to();if(r.display.viewTo==r.display.viewFrom||O.line>=r.display.viewTo||N.line=r.display.viewFrom&&hl(r,O)||{node:re[0].measure.map[2],offset:0},pe=N.linee.firstLine()&&(O=fn(O.line-1,En(e.doc,O.line-1).length)),N.ch==En(e.doc,N.line).text.length&&N.liner.viewTo-1)return!1;var X,q,re;O.line==r.viewFrom||(X=qr(e,O.line))==0?(q=ur(r.view[0].line),re=r.view[0].node):(q=ur(r.view[X].line),re=r.view[X-1].node.nextSibling);var se=qr(e,N.line),pe,Ve;if(se==r.view.length-1?(pe=r.viewTo-1,Ve=r.lineDiv.lastChild):(pe=ur(r.view[se+1].line)-1,Ve=r.view[se+1].node.previousSibling),!re)return!1;for(var nt=e.doc.splitLines(tu(e,re,Ve,q,pe)),Dt=xr(e.doc,fn(q,0),fn(pe,En(e.doc,pe).text.length));nt.length>1&&Dt.length>1;)if(Je(nt)==Je(Dt))nt.pop(),Dt.pop(),pe--;else if(nt[0]==Dt[0])nt.shift(),Dt.shift(),q++;else break;for(var Tt=0,an=0,yn=nt[0],Ln=Dt[0],jn=Math.min(yn.length,Ln.length);TtO.ch&&Xn.charCodeAt(Xn.length-an-1)==Un.charCodeAt(Un.length-an-1);)Tt--,an++;nt[nt.length-1]=Xn.slice(0,Xn.length-an).replace(/^\u200b+/,""),nt[0]=nt[0].slice(Tt).replace(/\u200b+$/,"");var br=fn(q,Tt),mr=fn(pe,Dt.length?Je(Dt).length-an:0);if(nt.length>1||nt[0]||or(br,mr))return _o(e.doc,nt,br,mr,"+input"),!0},ta.prototype.ensurePolled=function(){this.forceCompositionEnd()},ta.prototype.reset=function(){this.forceCompositionEnd()},ta.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},ta.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},ta.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wa(this.cm,function(){return Vr(e.cm)})},ta.prototype.setUneditable=function(e){e.contentEditable="false"},ta.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||ha(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},ta.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ta.prototype.onContextMenu=function(){},ta.prototype.resetPosition=function(){},ta.prototype.needsContentAttribute=!0;function hl(e,r){var D=ot(e,r.line);if(!D||D.hidden)return null;var O=En(e.doc,r.line),N=ge(D,O,r.line),X=qt(O,e.doc.direction),q="left";if(X){var re=We(X,r.ch);q=re%2?"right":"left"}var se=rn(N.map,r.ch,q);return se.offset=se.collapse=="right"?se.end:se.start,se}function eu(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function To(e,r){return r&&(e.bad=!0),e}function tu(e,r,D,O,N){var X="",q=!1,re=e.doc.lineSeparator(),se=!1;function pe(Tt){return function(an){return an.id==Tt}}function Ve(){q&&(X+=re,se&&(X+=re),q=se=!1)}function nt(Tt){Tt&&(Ve(),X+=Tt)}function Dt(Tt){if(Tt.nodeType==1){var an=Tt.getAttribute("cm-text");if(an){nt(an);return}var yn=Tt.getAttribute("cm-marker"),Ln;if(yn){var jn=e.findMarks(fn(O,0),fn(N+1,0),pe(+yn));jn.length&&(Ln=jn[0].find(0))&&nt(xr(e.doc,Ln.from,Ln.to).join(re));return}if(Tt.getAttribute("contenteditable")=="false")return;var Xn=/^(pre|div|p|li|table|br)$/i.test(Tt.nodeName);if(!/^br$/i.test(Tt.nodeName)&&Tt.textContent.length==0)return;Xn&&Ve();for(var Un=0;Un=9&&r.hasSelection&&(r.hasSelection=null),D.poll()}),Ae(N,"paste",function(q){if(dt(O,q)||ol(q,O))return;O.state.pasteIncoming=+new Date,D.fastPoll()});function X(q){if(dt(O,q))return;if(O.somethingSelected())es({lineWise:!1,text:O.getSelections()});else if(O.options.lineWiseCopyCut){var re=ll(O);es({lineWise:!0,text:re.text}),q.type=="cut"?O.setSelections(re.ranges,null,oe):(D.prevInput="",N.value=re.text.join(` +`),z(N))}else return;q.type=="cut"&&(O.state.cutIncoming=+new Date)}Ae(N,"cut",X),Ae(N,"copy",X),Ae(e.scroller,"paste",function(q){if(Ra(e,q)||dt(O,q))return;if(!N.dispatchEvent){O.state.pasteIncoming=+new Date,D.focus();return}var re=new Event("paste");re.clipboardData=q.clipboardData,N.dispatchEvent(re)}),Ae(e.lineSpace,"selectstart",function(q){Ra(e,q)||ae(q)}),Ae(N,"compositionstart",function(){var q=O.getCursor("from");D.composing&&D.composing.range.clear(),D.composing={start:q,range:O.markText(q,O.getCursor("to"),{className:"CodeMirror-composing"})}}),Ae(N,"compositionend",function(){D.composing&&(D.poll(),D.composing.range.clear(),D.composing=null)})},Sa.prototype.createField=function(e){this.wrapper=dl(),this.textarea=this.wrapper.firstChild},Sa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Sa.prototype.prepareSelection=function(){var e=this.cm,r=e.display,D=e.doc,O=Ja(e);if(e.options.moveInputWithCursor){var N=ir(e,D.sel.primary().head,"div"),X=r.wrapper.getBoundingClientRect(),q=r.lineDiv.getBoundingClientRect();O.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,N.top+q.top-X.top)),O.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,N.left+q.left-X.left))}return O},Sa.prototype.showSelection=function(e){var r=this.cm,D=r.display;p(D.cursorDiv,e.cursors),p(D.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Sa.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var r=this.cm;if(r.somethingSelected()){this.prevInput="";var D=r.getSelection();this.textarea.value=D,r.state.focused&&z(this.textarea),P&&m>=9&&(this.hasSelection=D)}else e||(this.prevInput=this.textarea.value="",P&&m>=9&&(this.hasSelection=null))},Sa.prototype.getField=function(){return this.textarea},Sa.prototype.supportsTouch=function(){return!1},Sa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!n||j()!=this.textarea))try{this.textarea.focus()}catch(e){}},Sa.prototype.blur=function(){this.textarea.blur()},Sa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Sa.prototype.receivedFocus=function(){this.slowPoll()},Sa.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Sa.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function D(){var O=r.poll();!O&&!e?(e=!0,r.polling.set(60,D)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,D)},Sa.prototype.poll=function(){var e=this,r=this.cm,D=this.textarea,O=this.prevInput;if(this.contextMenuPending||!r.state.focused||At(D)&&!O&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var N=D.value;if(N==O&&!r.somethingSelected())return!1;if(P&&m>=9&&this.hasSelection===N||l&&/[\uf700-\uf7ff]/.test(N))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var X=N.charCodeAt(0);if(X==8203&&!O&&(O="\u200B"),X==8666)return this.reset(),this.cm.execCommand("undo")}for(var q=0,re=Math.min(O.length,N.length);q1e3||N.indexOf(` +`)>-1?D.value=e.prevInput="":e.prevInput=N,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Sa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Sa.prototype.onKeyPress=function(){P&&m>=9&&(this.hasSelection=null),this.fastPoll()},Sa.prototype.onContextMenu=function(e){var r=this,D=r.cm,O=D.display,N=r.textarea;r.contextMenuPending&&r.contextMenuPending();var X=Ca(D,e),q=O.scroller.scrollTop;if(!X||u)return;var re=D.options.resetSelectionOnContextMenu;re&&D.doc.sel.contains(X)==-1&&ha(D,Ga)(D.doc,Fn(X),oe);var se=N.style.cssText,pe=r.wrapper.style.cssText,Ve=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",N.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-Ve.top-5)+"px; left: "+(e.clientX-Ve.left-5)+`px; z-index: 1000; background: `+(P?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var tt;t&&(tt=window.scrollY),O.input.focus(),t&&window.scrollTo(null,tt),O.input.reset(),D.somethingSelected()||(N.value=r.prevInput=" "),r.contextMenuPending=Tt,O.selForContextMenu=D.doc.sel,clearTimeout(O.detectingSelectAll);function Mt(){if(N.selectionStart!=null){var En=D.somethingSelected(),Ln="\u200B"+(En?N.value:"");N.value="\u21DA",N.value=Ln,r.prevInput=En?"":"\u200B",N.selectionStart=1,N.selectionEnd=Ln.length,O.selForContextMenu=D.doc.sel}}function Tt(){if(r.contextMenuPending!=Tt)return;if(r.contextMenuPending=!1,r.wrapper.style.cssText=pe,N.style.cssText=se,P&&m<9&&O.scrollbars.setScrollTop(O.scroller.scrollTop=q),N.selectionStart!=null){(!P||P&&m<9)&&Mt();var En=0,Ln=function(){O.selForContextMenu==D.doc.sel&&N.selectionStart==0&&N.selectionEnd>0&&r.prevInput=="\u200B"?ha(D,Ds)(D):En++<10?O.detectingSelectAll=setTimeout(Ln,500):(O.selForContextMenu=null,O.input.reset())};O.detectingSelectAll=setTimeout(Ln,200)}}if(P&&m>=9&&Mt(),k){_e(e);var nn=function(){_t(window,"mouseup",nn),setTimeout(Tt,20)};Ae(window,"mouseup",nn)}else setTimeout(Tt,50)},Sa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sa.prototype.setUneditable=function(){},Sa.prototype.needsContentAttribute=!1;function ru(e,r){if(r=r?M(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var D=j();r.autofocus=D==e||e.getAttribute("autofocus")!=null&&D==document.body}function O(){e.value=re.getValue()}var N;if(e.form&&(Ae(e.form,"submit",O),!r.leaveSubmitMethodAlone)){var X=e.form;N=X.submit;try{var q=X.submit=function(){O(),X.submit=N,X.submit(),X.submit=q}}catch(se){}}r.finishInit=function(se){se.save=O,se.getTextArea=function(){return e},se.toTextArea=function(){se.toTextArea=isNaN,O(),e.parentNode.removeChild(se.getWrapperElement()),e.style.display="",e.form&&(_t(e.form,"submit",O),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=N))}},e.style.display="none";var re=pa(function(se){return e.parentNode.insertBefore(se,e.nextSibling)},r);return re}function au(e){e.off=_t,e.on=Ae,e.wheelEventPixels=Bi,e.Doc=ei,e.splitLines=Ot,e.countColumn=V,e.findColumn=Ie,e.isWordChar=ke,e.Pass=me,e.signal=Je,e.Line=On,e.changeEnd=lr,e.scrollbarModel=$i,e.Pos=pn,e.cmpPos=sr,e.modes=Nt,e.mimeModes=yt,e.resolveMode=Ge,e.getMode=lt,e.modeExtensions=It,e.extendMode=Wt,e.copyState=sn,e.startState=tr,e.innerMode=vn,e.commands=Fo,e.keyMap=zi,e.keyName=Vs,e.isModifierKey=Ks,e.lookupKey=xo,e.normalizeKeyMap=Pl,e.StringStream=Hn,e.SharedTextMarker=No,e.TextMarker=qi,e.LineWidget=ko,e.e_preventDefault=ae,e.e_stopPropagation=le,e.e_stop=_e,e.addClass=U,e.contains=g,e.rmClass=y,e.keyNames=eo}$l(pa),ql(pa);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ns in ei.prototype)ei.prototype.hasOwnProperty(ns)&&$(iu,ns)<0&&(pa.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(ei.prototype[ns]));return Oe(ei),pa.inputStyles={textarea:Sa,contenteditable:ta},pa.defineMode=function(e){!pa.defaults.mode&&e!="null"&&(pa.defaults.mode=e),Gt.apply(this,arguments)},pa.defineMIME=Jt,pa.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),pa.defineMIME("text/plain","null"),pa.defineExtension=function(e,r){pa.prototype[e]=r},pa.defineDocExtension=function(e,r){ei.prototype[e]=r},pa.fromTextArea=ru,au(pa),pa.version="5.58.2",pa})},WaYH:function(Be,J,L){"use strict";var Y=L("rePB"),B=L("Ff2n"),I=L("VTBJ"),F=L("1OyB"),T=L("vuIU"),R=L("JX7q"),P=L("Ji7U"),m=L("LK+K"),t=L("q1tI"),b=L("TSYQ"),o=L.n(b),u=L("sboe"),f=L("OZM5"),a=function(k){var w=k.prefixCls,y=k.level,h=k.isStart,p=k.isEnd;if(!y)return null;for(var v="".concat(w,"-indent-unit"),_=[],E=0;E0&&r.prevInput=="\u200B"?ha(D,Ds)(D):yn++<10?O.detectingSelectAll=setTimeout(Ln,500):(O.selForContextMenu=null,O.input.reset())};O.detectingSelectAll=setTimeout(Ln,200)}}if(P&&m>=9&&Dt(),k){_e(e);var an=function(){Et(window,"mouseup",an),setTimeout(Tt,20)};Ae(window,"mouseup",an)}else setTimeout(Tt,50)},Sa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sa.prototype.setUneditable=function(){},Sa.prototype.needsContentAttribute=!1;function ru(e,r){if(r=r?M(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var D=j();r.autofocus=D==e||e.getAttribute("autofocus")!=null&&D==document.body}function O(){e.value=re.getValue()}var N;if(e.form&&(Ae(e.form,"submit",O),!r.leaveSubmitMethodAlone)){var X=e.form;N=X.submit;try{var q=X.submit=function(){O(),X.submit=N,X.submit(),X.submit=q}}catch(se){}}r.finishInit=function(se){se.save=O,se.getTextArea=function(){return e},se.toTextArea=function(){se.toTextArea=isNaN,O(),e.parentNode.removeChild(se.getWrapperElement()),e.style.display="",e.form&&(Et(e.form,"submit",O),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=N))}},e.style.display="none";var re=pa(function(se){return e.parentNode.insertBefore(se,e.nextSibling)},r);return re}function au(e){e.off=Et,e.on=Ae,e.wheelEventPixels=Bi,e.Doc=ei,e.splitLines=Ot,e.countColumn=V,e.findColumn=Ie,e.isWordChar=ke,e.Pass=me,e.signal=Ze,e.Line=Sn,e.changeEnd=lr,e.scrollbarModel=$i,e.Pos=fn,e.cmpPos=or,e.modes=Nt,e.mimeModes=bt,e.resolveMode=Ge,e.getMode=lt,e.modeExtensions=Lt,e.extendMode=Wt,e.copyState=ln,e.startState=tr,e.innerMode=gn,e.commands=Fo,e.keyMap=zi,e.keyName=Vs,e.isModifierKey=Ks,e.lookupKey=xo,e.normalizeKeyMap=Pl,e.StringStream=Wn,e.SharedTextMarker=No,e.TextMarker=qi,e.LineWidget=ko,e.e_preventDefault=ae,e.e_stopPropagation=le,e.e_stop=_e,e.addClass=U,e.contains=g,e.rmClass=y,e.keyNames=eo}$l(pa),ql(pa);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ns in ei.prototype)ei.prototype.hasOwnProperty(ns)&&$(iu,ns)<0&&(pa.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(ei.prototype[ns]));return Oe(ei),pa.inputStyles={textarea:Sa,contenteditable:ta},pa.defineMode=function(e){!pa.defaults.mode&&e!="null"&&(pa.defaults.mode=e),Kt.apply(this,arguments)},pa.defineMIME=Zt,pa.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),pa.defineMIME("text/plain","null"),pa.defineExtension=function(e,r){pa.prototype[e]=r},pa.defineDocExtension=function(e,r){ei.prototype[e]=r},pa.fromTextArea=ru,au(pa),pa.version="5.58.2",pa})},WaYH:function(Be,J,L){"use strict";var Y=L("rePB"),B=L("Ff2n"),I=L("VTBJ"),F=L("1OyB"),T=L("vuIU"),R=L("JX7q"),P=L("Ji7U"),m=L("LK+K"),t=L("q1tI"),b=L("TSYQ"),o=L.n(b),u=L("sboe"),f=L("OZM5"),a=function(k){var w=k.prefixCls,y=k.level,h=k.isStart,p=k.isEnd;if(!y)return null;for(var v="".concat(w,"-indent-unit"),_=[],E=0;E1&&arguments[1]!==void 0?arguments[1]:!1,ye=oe.getAttribute("id")||oe.getAttribute("data-reactid")||oe.getAttribute("name");if(fe&&j[ye])return j[ye];var Ie=window.getComputedStyle(oe),ve=Ie.getPropertyValue("box-sizing")||Ie.getPropertyValue("-moz-box-sizing")||Ie.getPropertyValue("-webkit-box-sizing"),de=parseFloat(Ie.getPropertyValue("padding-bottom"))+parseFloat(Ie.getPropertyValue("padding-top")),Qe=parseFloat(Ie.getPropertyValue("border-bottom-width"))+parseFloat(Ie.getPropertyValue("border-top-width")),Rt=g.map(function(Me){return"".concat(Me,":").concat(Ie.getPropertyValue(Me))}).join(";"),Ee={sizingStyle:Rt,paddingSize:de,borderSize:Qe,boxSizing:ve};return fe&&ye&&(j[ye]=Ee),Ee}function z(oe){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;U||(U=document.createElement("textarea"),U.setAttribute("tab-index","-1"),U.setAttribute("aria-hidden","true"),document.body.appendChild(U)),oe.getAttribute("wrap")?U.setAttribute("wrap",oe.getAttribute("wrap")):U.removeAttribute("wrap");var ve=S(oe,fe),de=ve.paddingSize,Qe=ve.borderSize,Rt=ve.boxSizing,Ee=ve.sizingStyle;U.setAttribute("style","".concat(Ee,";").concat(E)),U.value=oe.value||oe.placeholder||"";var Me=Number.MIN_SAFE_INTEGER,nt=Number.MAX_SAFE_INTEGER,He=U.scrollHeight,ke;if(Rt==="border-box"?He+=Qe:Rt==="content-box"&&(He-=de),ye!==null||Ie!==null){U.value=" ";var ht=U.scrollHeight-de;ye!==null&&(Me=ht*ye,Rt==="border-box"&&(Me=Me+de+Qe),He=Math.max(Me,He)),Ie!==null&&(nt=ht*Ie,Rt==="border-box"&&(nt=nt+de+Qe),ke=He>nt?"":"hidden",He=Math.min(nt,He))}return{height:He,minHeight:Me,maxHeight:nt,overflowY:ke,resize:"none"}}var H=L("Gytx"),M=L.n(H),V;(function(oe){oe[oe.NONE=0]="NONE",oe[oe.RESIZING=1]="RESIZING",oe[oe.RESIZED=2]="RESIZED"})(V||(V={}));var K=function(oe){Object(F.a)(ye,oe);var fe=Object(T.a)(ye);function ye(Ie){var ve;return Object(B.a)(this,ye),ve=fe.call(this,Ie),ve.nextFrameActionId=void 0,ve.resizeFrameId=void 0,ve.textArea=void 0,ve.saveTextArea=function(de){ve.textArea=de},ve.handleResize=function(de){var Qe=ve.state.resizeStatus,Rt=ve.props,Ee=Rt.autoSize,Me=Rt.onResize;if(Qe!==V.NONE)return;typeof Me=="function"&&Me(de),Ee&&ve.resizeOnNextFrame()},ve.resizeOnNextFrame=function(){cancelAnimationFrame(ve.nextFrameActionId),ve.nextFrameActionId=requestAnimationFrame(ve.resizeTextarea)},ve.resizeTextarea=function(){var de=ve.props.autoSize;if(!de||!ve.textArea)return;var Qe=de.minRows,Rt=de.maxRows,Ee=z(ve.textArea,!1,Qe,Rt);ve.setState({textareaStyles:Ee,resizeStatus:V.RESIZING},function(){cancelAnimationFrame(ve.resizeFrameId),ve.resizeFrameId=requestAnimationFrame(function(){ve.setState({resizeStatus:V.RESIZED},function(){ve.resizeFrameId=requestAnimationFrame(function(){ve.setState({resizeStatus:V.NONE}),ve.fixFirefoxAutoScroll()})})})})},ve.renderTextArea=function(){var de=ve.props,Qe=de.prefixCls,Rt=Qe===void 0?"rc-textarea":Qe,Ee=de.autoSize,Me=de.onResize,nt=de.className,He=de.disabled,ke=ve.state,ht=ke.textareaStyles,ie=ke.resizeStatus,xe=Object(p.a)(ve.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),we=_()(Rt,nt,Object(m.a)({},"".concat(Rt,"-disabled"),He));"value"in xe&&(xe.value=xe.value||"");var $e=Object(P.a)(Object(P.a)(Object(P.a)({},ve.props.style),ht),ie===V.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return R.createElement(h,{onResize:ve.handleResize,disabled:!(Ee||Me)},R.createElement("textarea",Object(Y.a)({},xe,{className:we,style:$e,ref:ve.saveTextArea})))},ve.state={textareaStyles:{},resizeStatus:V.NONE},ve}return Object(I.a)(ye,[{key:"componentDidUpdate",value:function(ve){(ve.value!==this.props.value||!M()(ve.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ve=this.textArea.selectionStart,de=this.textArea.selectionEnd;this.textArea.setSelectionRange(ve,de)}}catch(Qe){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ye}(R.Component),$=K,Z=function(oe){Object(F.a)(ye,oe);var fe=Object(T.a)(ye);function ye(Ie){var ve;Object(B.a)(this,ye),ve=fe.call(this,Ie),ve.resizableTextArea=void 0,ve.focus=function(){ve.resizableTextArea.textArea.focus()},ve.saveTextArea=function(Qe){ve.resizableTextArea=Qe},ve.handleChange=function(Qe){var Rt=ve.props.onChange;ve.setValue(Qe.target.value,function(){ve.resizableTextArea.resizeTextarea()}),Rt&&Rt(Qe)},ve.handleKeyDown=function(Qe){var Rt=ve.props,Ee=Rt.onPressEnter,Me=Rt.onKeyDown;Qe.keyCode===13&&Ee&&Ee(Qe),Me&&Me(Qe)};var de=typeof Ie.value=="undefined"||Ie.value===null?Ie.defaultValue:Ie.value;return ve.state={value:de},ve}return Object(I.a)(ye,[{key:"setValue",value:function(ve,de){"value"in this.props||this.setState({value:ve},de)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return R.createElement($,Object(Y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ve){return"value"in ve?{value:ve.value}:null}}]),ye}(R.Component),me=J.default=Z},YH21:function(Be,J,L){var Y=L("H6uX");J.Dispatcher=Y;var B=L("ItGF"),I=L("Ze12"),F=I.isCanvasEl,T=I.transformCoordWithViewport,R=typeof window!="undefined"&&!!window.addEventListener,P=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,m=[];function t(n,l,c,x){return c=c||{},x||!B.canvasSupported?b(n,l,c):B.browser.firefox&&l.layerX!=null&&l.layerX!==l.offsetX?(c.zrX=l.layerX,c.zrY=l.layerY):l.offsetX!=null?(c.zrX=l.offsetX,c.zrY=l.offsetY):b(n,l,c),c}function b(n,l,c){if(B.domSupported&&n.getBoundingClientRect){var x=l.clientX,A=l.clientY;if(F(n)){var C=n.getBoundingClientRect();c.zrX=x-C.left,c.zrY=A-C.top;return}else if(T(m,n,x,A)){c.zrX=m[0],c.zrY=m[1];return}}c.zrX=c.zrY=0}function o(n){return n||window.event}function u(n,l,c){if(l=o(l),l.zrX!=null)return l;var x=l.type,A=x&&x.indexOf("touch")>=0;if(!A)t(n,l,l,c),l.zrDelta=l.wheelDelta?l.wheelDelta/120:-(l.detail||0)/3;else{var C=x!=="touchend"?l.targetTouches[0]:l.changedTouches[0];C&&t(n,C,l,c)}var k=l.button;return l.which==null&&k!==void 0&&P.test(l.type)&&(l.which=k&1?1:k&2?3:k&4?2:0),l}function f(n,l,c,x){R?n.addEventListener(l,c,x):n.attachEvent("on"+l,c)}function a(n,l,c,x){R?n.removeEventListener(l,c,x):n.detachEvent("on"+l,c)}var i=R?function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0}:function(n){n.returnValue=!1,n.cancelBubble=!0};function d(n){return n.which===2||n.which===3}function s(n){return n.which>1}J.clientToLocal=t,J.getNativeEvent=o,J.normalizeEvent=u,J.addEventListener=f,J.removeEventListener=a,J.stop=i,J.isMiddleOrRightButtonOnMouseUpDown=d,J.notLeftMouse=s},YgsL:function(Be,J,L){var Y=L("QBsz"),B=Y.distance;function I(T,R,P,m,t,b,o){var u=(P-T)*.5,f=(m-R)*.5;return(2*(R-P)+u+f)*o+(-3*(R-P)-2*u-f)*b+u*t+R}function F(T,R){for(var P=T.length,m=[],t=0,b=1;bP-2?P-1:f+1],n=T[f>P-3?P-1:f+2]);var l=a*a,c=a*l;m.push([I(i[0],d[0],s[0],n[0],a,l,c),I(i[1],d[1],s[1],n[1],a,l,c)])}return m}Be.exports=F},ZW9T:function(Be,J,L){"use strict";L.d(J,"a",function(){return H});var Y=L("k1fw"),B=L("oBTY"),I=L("miYZ"),F=L("tsqr"),T=L("rAM+"),R=L("tJVT"),P=L("PpiC"),m=L("q1tI"),t=L.n(m),b=L("bdgK"),o=L("9og8"),u=L("WmNS"),f=L.n(u),a={keywords:["print","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"]},i={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` +`,g=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],j={},U;function S(oe){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=oe.getAttribute("id")||oe.getAttribute("data-reactid")||oe.getAttribute("name");if(fe&&j[ye])return j[ye];var Ie=window.getComputedStyle(oe),ve=Ie.getPropertyValue("box-sizing")||Ie.getPropertyValue("-moz-box-sizing")||Ie.getPropertyValue("-webkit-box-sizing"),de=parseFloat(Ie.getPropertyValue("padding-bottom"))+parseFloat(Ie.getPropertyValue("padding-top")),Je=parseFloat(Ie.getPropertyValue("border-bottom-width"))+parseFloat(Ie.getPropertyValue("border-top-width")),Rt=g.map(function(Me){return"".concat(Me,":").concat(Ie.getPropertyValue(Me))}).join(";"),Ee={sizingStyle:Rt,paddingSize:de,borderSize:Je,boxSizing:ve};return fe&&ye&&(j[ye]=Ee),Ee}function z(oe){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;U||(U=document.createElement("textarea"),U.setAttribute("tab-index","-1"),U.setAttribute("aria-hidden","true"),document.body.appendChild(U)),oe.getAttribute("wrap")?U.setAttribute("wrap",oe.getAttribute("wrap")):U.removeAttribute("wrap");var ve=S(oe,fe),de=ve.paddingSize,Je=ve.borderSize,Rt=ve.boxSizing,Ee=ve.sizingStyle;U.setAttribute("style","".concat(Ee,";").concat(E)),U.value=oe.value||oe.placeholder||"";var Me=Number.MIN_SAFE_INTEGER,rt=Number.MAX_SAFE_INTEGER,He=U.scrollHeight,ke;if(Rt==="border-box"?He+=Je:Rt==="content-box"&&(He-=de),ye!==null||Ie!==null){U.value=" ";var ht=U.scrollHeight-de;ye!==null&&(Me=ht*ye,Rt==="border-box"&&(Me=Me+de+Je),He=Math.max(Me,He)),Ie!==null&&(rt=ht*Ie,Rt==="border-box"&&(rt=rt+de+Je),ke=He>rt?"":"hidden",He=Math.min(rt,He))}return{height:He,minHeight:Me,maxHeight:rt,overflowY:ke,resize:"none"}}var H=L("Gytx"),M=L.n(H),V;(function(oe){oe[oe.NONE=0]="NONE",oe[oe.RESIZING=1]="RESIZING",oe[oe.RESIZED=2]="RESIZED"})(V||(V={}));var K=function(oe){Object(F.a)(ye,oe);var fe=Object(T.a)(ye);function ye(Ie){var ve;return Object(B.a)(this,ye),ve=fe.call(this,Ie),ve.nextFrameActionId=void 0,ve.resizeFrameId=void 0,ve.textArea=void 0,ve.saveTextArea=function(de){ve.textArea=de},ve.handleResize=function(de){var Je=ve.state.resizeStatus,Rt=ve.props,Ee=Rt.autoSize,Me=Rt.onResize;if(Je!==V.NONE)return;typeof Me=="function"&&Me(de),Ee&&ve.resizeOnNextFrame()},ve.resizeOnNextFrame=function(){cancelAnimationFrame(ve.nextFrameActionId),ve.nextFrameActionId=requestAnimationFrame(ve.resizeTextarea)},ve.resizeTextarea=function(){var de=ve.props.autoSize;if(!de||!ve.textArea)return;var Je=de.minRows,Rt=de.maxRows,Ee=z(ve.textArea,!1,Je,Rt);ve.setState({textareaStyles:Ee,resizeStatus:V.RESIZING},function(){cancelAnimationFrame(ve.resizeFrameId),ve.resizeFrameId=requestAnimationFrame(function(){ve.setState({resizeStatus:V.RESIZED},function(){ve.resizeFrameId=requestAnimationFrame(function(){ve.setState({resizeStatus:V.NONE}),ve.fixFirefoxAutoScroll()})})})})},ve.renderTextArea=function(){var de=ve.props,Je=de.prefixCls,Rt=Je===void 0?"rc-textarea":Je,Ee=de.autoSize,Me=de.onResize,rt=de.className,He=de.disabled,ke=ve.state,ht=ke.textareaStyles,ie=ke.resizeStatus,xe=Object(p.a)(ve.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),we=_()(Rt,rt,Object(m.a)({},"".concat(Rt,"-disabled"),He));"value"in xe&&(xe.value=xe.value||"");var $e=Object(P.a)(Object(P.a)(Object(P.a)({},ve.props.style),ht),ie===V.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return R.createElement(h,{onResize:ve.handleResize,disabled:!(Ee||Me)},R.createElement("textarea",Object(Y.a)({},xe,{className:we,style:$e,ref:ve.saveTextArea})))},ve.state={textareaStyles:{},resizeStatus:V.NONE},ve}return Object(I.a)(ye,[{key:"componentDidUpdate",value:function(ve){(ve.value!==this.props.value||!M()(ve.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var ve=this.textArea.selectionStart,de=this.textArea.selectionEnd;this.textArea.setSelectionRange(ve,de)}}catch(Je){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ye}(R.Component),$=K,Z=function(oe){Object(F.a)(ye,oe);var fe=Object(T.a)(ye);function ye(Ie){var ve;Object(B.a)(this,ye),ve=fe.call(this,Ie),ve.resizableTextArea=void 0,ve.focus=function(){ve.resizableTextArea.textArea.focus()},ve.saveTextArea=function(Je){ve.resizableTextArea=Je},ve.handleChange=function(Je){var Rt=ve.props.onChange;ve.setValue(Je.target.value,function(){ve.resizableTextArea.resizeTextarea()}),Rt&&Rt(Je)},ve.handleKeyDown=function(Je){var Rt=ve.props,Ee=Rt.onPressEnter,Me=Rt.onKeyDown;Je.keyCode===13&&Ee&&Ee(Je),Me&&Me(Je)};var de=typeof Ie.value=="undefined"||Ie.value===null?Ie.defaultValue:Ie.value;return ve.state={value:de},ve}return Object(I.a)(ye,[{key:"setValue",value:function(ve,de){"value"in this.props||this.setState({value:ve},de)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return R.createElement($,Object(Y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ve){return"value"in ve?{value:ve.value}:null}}]),ye}(R.Component),me=J.default=Z},YH21:function(Be,J,L){var Y=L("H6uX");J.Dispatcher=Y;var B=L("ItGF"),I=L("Ze12"),F=I.isCanvasEl,T=I.transformCoordWithViewport,R=typeof window!="undefined"&&!!window.addEventListener,P=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,m=[];function t(n,l,c,x){return c=c||{},x||!B.canvasSupported?b(n,l,c):B.browser.firefox&&l.layerX!=null&&l.layerX!==l.offsetX?(c.zrX=l.layerX,c.zrY=l.layerY):l.offsetX!=null?(c.zrX=l.offsetX,c.zrY=l.offsetY):b(n,l,c),c}function b(n,l,c){if(B.domSupported&&n.getBoundingClientRect){var x=l.clientX,A=l.clientY;if(F(n)){var C=n.getBoundingClientRect();c.zrX=x-C.left,c.zrY=A-C.top;return}else if(T(m,n,x,A)){c.zrX=m[0],c.zrY=m[1];return}}c.zrX=c.zrY=0}function o(n){return n||window.event}function u(n,l,c){if(l=o(l),l.zrX!=null)return l;var x=l.type,A=x&&x.indexOf("touch")>=0;if(!A)t(n,l,l,c),l.zrDelta=l.wheelDelta?l.wheelDelta/120:-(l.detail||0)/3;else{var C=x!=="touchend"?l.targetTouches[0]:l.changedTouches[0];C&&t(n,C,l,c)}var k=l.button;return l.which==null&&k!==void 0&&P.test(l.type)&&(l.which=k&1?1:k&2?3:k&4?2:0),l}function f(n,l,c,x){R?n.addEventListener(l,c,x):n.attachEvent("on"+l,c)}function a(n,l,c,x){R?n.removeEventListener(l,c,x):n.detachEvent("on"+l,c)}var i=R?function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0}:function(n){n.returnValue=!1,n.cancelBubble=!0};function d(n){return n.which===2||n.which===3}function s(n){return n.which>1}J.clientToLocal=t,J.getNativeEvent=o,J.normalizeEvent=u,J.addEventListener=f,J.removeEventListener=a,J.stop=i,J.isMiddleOrRightButtonOnMouseUpDown=d,J.notLeftMouse=s},YgsL:function(Be,J,L){var Y=L("QBsz"),B=Y.distance;function I(T,R,P,m,t,b,o){var u=(P-T)*.5,f=(m-R)*.5;return(2*(R-P)+u+f)*o+(-3*(R-P)-2*u-f)*b+u*t+R}function F(T,R){for(var P=T.length,m=[],t=0,b=1;bP-2?P-1:f+1],n=T[f>P-3?P-1:f+2]);var l=a*a,c=a*l;m.push([I(i[0],d[0],s[0],n[0],a,l,c),I(i[1],d[1],s[1],n[1],a,l,c)])}return m}Be.exports=F},ZW9T:function(Be,J,L){"use strict";L.d(J,"a",function(){return H});var Y=L("k1fw"),B=L("oBTY"),I=L("miYZ"),F=L("tsqr"),T=L("rAM+"),R=L("tJVT"),P=L("PpiC"),m=L("q1tI"),t=L.n(m),b=L("bdgK"),o=L("9og8"),u=L("WmNS"),f=L.n(u),a={keywords:["print","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"]},i={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},d={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` @@ -402,7 +402,7 @@ b`.split(/\n/).length!=3?function(e){for(var r=0,D=[],O=e.length;r<=O;){var N=e. `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},s={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` -`)}]},n=L("5VLF"),l=L.n(n),c={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},x=function(V,K){return K.map(function($){return{label:$,kind:V.languages.CompletionItemKind.Keyword,insertText:$}})},A=function(V){return Object.keys(c.tables).map(function(K){return{label:K,kind:V.languages.CompletionItemKind.Variable,insertText:K}})},C=function(V,K){var $=c.tables[V];return $?$.map(function(Z){return{label:Z,kind:K.languages.CompletionItemKind.Field,insertText:Z}}):[]};function k(M,V,K,$,Z){var me=V.getWordUntilPosition(K),oe={startLineNumber:K.lineNumber,endLineNumber:K.lineNumber,startColumn:me.startColumn,endColumn:me.endColumn},fe=$.map(function(ye){return{label:ye,kind:M.languages.CompletionItemKind.Keyword,insertText:ye,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:oe}});return Z.map(function(ye){fe.push(Object(Y.a)(Object(Y.a)({},ye),{},{range:oe}))}),fe}var w=function(M){c.languages.map(function(Z){return M.languages.registerDocumentFormattingEditProvider(Z,{provideDocumentFormattingEdits:function(oe,fe,ye){return Object(o.a)(f.a.mark(function Ie(){var ve;return f.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return ve=l()(oe.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),Qe.abrupt("return",[{range:oe.getFullModelRange(),text:ve}]);case 2:case"end":return Qe.stop()}},Ie)}))()}}),Z});var V=d.quickKey.map(function(Z){return{label:Z.label,kind:M.languages.CompletionItemKind.Method,insertText:Z.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),K=s.quickKey.map(function(Z){return{label:Z.label,kind:M.languages.CompletionItemKind.Method,insertText:Z.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),$=i.quickKey.map(function(Z){return{label:Z.label,kind:M.languages.CompletionItemKind.Method,insertText:Z.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet}});M.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(me,oe){var fe=me.getWordUntilPosition(oe),ye={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:fe.startColumn,endColumn:fe.endColumn},Ie=me.getLineContent(oe.lineNumber).substring(fe.startColumn-2,fe.endColumn);return{suggestions:[].concat(Object(B.a)(d.keywords.map(function(ve){return{label:ve,kind:M.languages.CompletionItemKind.Function,documentation:ve,insertText:ve,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})),Object(B.a)(d.quickKey.map(function(ve){return{label:ve.label,kind:M.languages.CompletionItemKind.Function,documentation:ve.content,insertText:Ie.startsWith("#")?ve.content.replace(/#/,""):ve.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})))}}}),M.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(me,oe){var fe=me.getWordUntilPosition(oe),ye={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:fe.startColumn,endColumn:fe.endColumn};return{suggestions:Object(B.a)(a.keywords.map(function(Ie){return{label:Ie,kind:M.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}}))}}}),M.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(me,oe){var fe=me.getWordUntilPosition(oe),ye={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:fe.startColumn,endColumn:fe.endColumn},Ie=me.getLineContent(oe.lineNumber).substring(fe.startColumn-2,fe.endColumn);return{suggestions:[].concat(Object(B.a)(i.keywords.map(function(ve){return{label:ve,kind:M.languages.CompletionItemKind.Function,documentation:ve,insertText:ve,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})),Object(B.a)(i.quickKey.map(function(ve){return{label:ve.label,kind:M.languages.CompletionItemKind.Function,documentation:ve.content,insertText:Ie.startsWith("#")?ve.content.replace(/#/,""):ve.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})))}}}),M.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(me,oe){var fe=me.getWordUntilPosition(oe),ye={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:fe.startColumn,endColumn:fe.endColumn},Ie=me.getLineContent(oe.lineNumber).substring(fe.startColumn-2,fe.endColumn);return{suggestions:[].concat(Object(B.a)(s.keywords.map(function(ve){return{label:ve,kind:M.languages.CompletionItemKind.Function,documentation:ve,insertText:ve,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})),Object(B.a)(s.quickKey.map(function(ve){return{label:ve.label,kind:M.languages.CompletionItemKind.Function,documentation:ve.content,insertText:Ie.startsWith("#")?ve.content.replace(/#/,""):ve.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}})))}}})},y="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",h=L("fjLI"),p=L("LvDl"),v=L("+ua5");function _(M){return/^\d+$/.test(M)?"".concat(M,"px"):M}function E(){}var g=!1,j={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function U(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],V=M;if(Array.isArray(M)){for(var K=0;K0||tr.target.offsetWidth>0)&&dt.current.instance.layout()}}catch(Hn){sn.e(Hn)}finally{sn.f()}}),It.observe(Je.current)),It}function Et(){F.b.warn(decodeURIComponent(y))}var $t=function(){var Wt=dt.current.instance;if(me!=null&&Wt&&_e){var sn=Wt.getModel();sn&&me!==sn.getValue()&&(g=!0,sn.setValue(me),Wt.layout(),g=!1)}};Object(m.useEffect)(function(){Te.current&&clearTimeout(Te.current),Te.current=setTimeout(function(){$t()},500)},[me,_e,dt.current]),Object(m.useEffect)(function(){if(Le&&dt.current&&dt.current.instance){var It=dt.current.instance;It.changeViewZones(function(sn){var vn=document.createElement("div");vn.style.padding="10px 20px",vn.style.width="calc(100% - 20px)",vn.className="my-error-line-wrp",vn.innerHTML=ut,sn.addZone({afterLineNumber:Le||11,heightInLines:3,domNode:vn})});var Wt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};It.addOverlayWidget(Wt),It.revealPositionInCenter({lineNumber:20,column:1})}},[Le,dt.current,_e]);function on(){var It=dt.current.instance;if(It){var Wt=It.getSelection(),sn=dt.current.pastePos||{},vn=new S.Range(sn.startLineNumber||Wt.endLineNumber,sn.startColumn||Wt.endColumn,sn.endLineNumber||Wt.endLineNumber,sn.endColumn||Wt.endColumn);setTimeout(function(){It.executeEdits("",[{range:vn,text:""}])},300)}}function gt(It){(window.navigator.platform.match("Mac")?It.metaKey:It.ctrlKey)&&It.keyCode==83&&(It.preventDefault(),He())}var Kt=function(){if(ht&&dt.current.instance){var Wt=dt.current.instance.getContentHeight();Ge(Wt0||ct.target.offsetWidth>0)&&ht.layout()}}catch(vt){we.e(vt)}finally{we.f()}}),ie.observe(ve.current)),ie}Object(m.useEffect)(function(){ve.current&&Promise.all([L.e(15),L.e(27)]).then(L.t.bind(null,"M/lh",7)).then(function(ht){S=ht;var ie=S.editor.createDiffEditor(ve.current,Object(Y.a)(Object(Y.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Ie),{},{wordWrap:!0}));Ee(ie);var xe=Me(ie);return function(){ie.dispose();var we=ie.getModel();we&&we.dispose(),xe.unobserve(ve.current)}})},[]),Object(m.useEffect)(function(){Rt&&Rt.setModel({original:S.editor.createModel(me,fe),modified:S.editor.createModel(oe,fe)})},[me,oe,fe,Rt]);var nt=_(K),He=_(Z),ke={width:nt,height:He};return t.a.createElement("div",{className:"my-diff-editor",ref:ve,style:ke})}},Ze12:function(Be,J,L){var Y=L("ItGF"),B=L("hOwI"),I=B.buildTransformer,F="___zrEVENTSAVED",T=[];function R(o,u,f,a,i){return P(T,u,a,i,!0)&&P(o,f,T[0],T[1])}function P(o,u,f,a,i){if(u.getBoundingClientRect&&Y.domSupported&&!b(u)){var d=u[F]||(u[F]={}),s=m(u,d),n=t(s,d,i);if(n)return n(o,f,a),!0}return!1}function m(o,u){var f=u.markers;if(f)return f;f=u.markers=[];for(var a=["left","right"],i=["top","bottom"],d=0;d<4;d++){var s=document.createElement("div"),n=s.style,l=d%2,c=(d>>1)%2;n.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",i[c]+":0",a[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),o.appendChild(s),f.push(s)}return f}function t(o,u,f){for(var a=f?"invTrans":"trans",i=u[a],d=u.srcCoords,s=!0,n=[],l=[],c=0;c<4;c++){var x=o[c].getBoundingClientRect(),A=2*c,C=x.left,k=x.top;n.push(C,k),s=s&&d&&C===d[A]&&k===d[A+1],l.push(o[c].offsetLeft,o[c].offsetTop)}return s&&i?i:(u.srcCoords=n,u[a]=f?I(l,n):I(n,l))}function b(o){return o.nodeName.toUpperCase()==="CANVAS"}J.transformLocalCoord=R,J.transformCoordWithViewport=P,J.isCanvasEl=b},ZpRC:function(Be,J,L){"use strict";function Y(o){return typeof o=="object"&&o!=null&&o.nodeType===1}function B(o,u){return(!u||o!=="hidden")&&o!=="visible"&&o!=="clip"}function I(o,u){if(o.clientHeightu||d>o&&s=u&&n>=f?d-o-a:s>u&&nf?s-u+i:0}var T=function(o,u){var f=window,a=u.scrollMode,i=u.block,d=u.inline,s=u.boundary,n=u.skipOverflowHiddenElements,l=typeof s=="function"?s:function(ht){return ht!==s};if(!Y(o))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,x=[],A=o;Y(A)&&l(A);){if((A=A.parentElement)===c){x.push(A);break}A!=null&&A===document.body&&I(A)&&!I(document.documentElement)||A!=null&&I(A,n)&&x.push(A)}for(var C=f.visualViewport?f.visualViewport.width:innerWidth,k=f.visualViewport?f.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,h=o.getBoundingClientRect(),p=h.height,v=h.width,_=h.top,E=h.right,g=h.bottom,j=h.left,U=i==="start"||i==="nearest"?_:i==="end"?g:_+p/2,S=d==="center"?j+v/2:d==="end"?E:j,z=[],H=0;H=0&&j>=0&&g<=k&&E<=C&&_>=Z&&g<=oe&&j>=fe&&E<=me)return z;var ye=getComputedStyle(M),Ie=parseInt(ye.borderLeftWidth,10),ve=parseInt(ye.borderTopWidth,10),de=parseInt(ye.borderRightWidth,10),Qe=parseInt(ye.borderBottomWidth,10),Rt=0,Ee=0,Me="offsetWidth"in M?M.offsetWidth-M.clientWidth-Ie-de:0,nt="offsetHeight"in M?M.offsetHeight-M.clientHeight-ve-Qe:0;if(c===M)Rt=i==="start"?U:i==="end"?U-k:i==="nearest"?F(y,y+k,k,ve,Qe,y+U,y+U+p,p):U-k/2,Ee=d==="start"?S:d==="center"?S-C/2:d==="end"?S-C:F(w,w+C,C,Ie,de,w+S,w+S+v,v),Rt=Math.max(0,Rt+y),Ee=Math.max(0,Ee+w);else{Rt=i==="start"?U-Z-ve:i==="end"?U-oe+Qe+nt:i==="nearest"?F(Z,oe,K,ve,Qe+nt,U,U+p,p):U-(Z+K/2)+nt/2,Ee=d==="start"?S-fe-Ie:d==="center"?S-(fe+$/2)+Me/2:d==="end"?S-me+de+Me:F(fe,me,$,Ie,de+Me,S,S+v,v);var He=M.scrollLeft,ke=M.scrollTop;U+=ke-(Rt=Math.max(0,Math.min(ke+Rt,M.scrollHeight-K+nt))),S+=He-(Ee=Math.max(0,Math.min(He+Ee,M.scrollWidth-$+Me)))}z.push({el:M,top:Rt,left:Ee})}return z};function R(o){return o===Object(o)&&Object.keys(o).length!==0}function P(o,u){u===void 0&&(u="auto");var f="scrollBehavior"in document.body.style;o.forEach(function(a){var i=a.el,d=a.top,s=a.left;i.scroll&&f?i.scroll({top:d,left:s,behavior:u}):(i.scrollTop=d,i.scrollLeft=s)})}function m(o){return o===!1?{block:"end",inline:"nearest"}:R(o)?o:{block:"start",inline:"nearest"}}function t(o,u){var f=!o.ownerDocument.documentElement.contains(o);if(R(u)&&typeof u.behavior=="function")return u.behavior(f?[]:T(o,u));if(f)return;var a=m(u);return P(T(o,a),a.behavior)}var b=J.a=t},aKvl:function(Be,J,L){var Y=L("Sj9i"),B=Y.quadraticProjectPoint;function I(F,T,R,P,m,t,b,o,u){if(b===0)return!1;var f=b;if(u>T+f&&u>P+f&&u>t+f||uF+f&&o>R+f&&o>m+f||o0&&arguments[0]!==void 0?arguments[0]:[],V=M;if(Array.isArray(M)){for(var K=0;K0||tr.target.offsetWidth>0)&&dt.current.instance.layout()}}catch(Wn){ln.e(Wn)}finally{ln.f()}}),Lt.observe(Ze.current)),Lt}function xt(){F.b.warn(decodeURIComponent(y))}var Qt=function(){var Wt=dt.current.instance;if(me!=null&&Wt&&_e){var ln=Wt.getModel();ln&&me!==ln.getValue()&&(g=!0,ln.setValue(me),Wt.layout(),g=!1)}};Object(m.useEffect)(function(){Te.current&&clearTimeout(Te.current),Te.current=setTimeout(function(){Qt()},500)},[me,_e,dt.current]),Object(m.useEffect)(function(){if(Pe&&dt.current&&dt.current.instance){var Lt=dt.current.instance;Lt.changeViewZones(function(ln){var gn=document.createElement("div");gn.style.padding="10px 20px",gn.style.width="calc(100% - 20px)",gn.className="my-error-line-wrp",gn.innerHTML=ut,ln.addZone({afterLineNumber:Pe||11,heightInLines:3,domNode:gn})});var Wt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Lt.addOverlayWidget(Wt),Lt.revealPositionInCenter({lineNumber:20,column:1})}},[Pe,dt.current,_e]);function sn(){var Lt=dt.current.instance;if(Lt){var Wt=Lt.getSelection(),ln=dt.current.pastePos||{},gn=new S.Range(ln.startLineNumber||Wt.endLineNumber,ln.startColumn||Wt.endColumn,ln.endLineNumber||Wt.endLineNumber,ln.endColumn||Wt.endColumn);setTimeout(function(){Lt.executeEdits("",[{range:gn,text:""}])},300)}}function gt(Lt){(window.navigator.platform.match("Mac")?Lt.metaKey:Lt.ctrlKey)&&Lt.keyCode==83&&(Lt.preventDefault(),He())}var zt=function(){if(ht&&dt.current.instance){var Wt=dt.current.instance.getContentHeight();Ge(Wt0||ct.target.offsetWidth>0)&&ht.layout()}}catch(yt){we.e(yt)}finally{we.f()}}),ie.observe(ve.current)),ie}Object(m.useEffect)(function(){ve.current&&Promise.all([L.e(15),L.e(27)]).then(L.t.bind(null,"M/lh",7)).then(function(ht){S=ht;var ie=S.editor.createDiffEditor(ve.current,Object(Y.a)(Object(Y.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Ie),{},{wordWrap:!0}));Ee(ie);var xe=Me(ie);return function(){ie.dispose();var we=ie.getModel();we&&we.dispose(),xe.unobserve(ve.current)}})},[]),Object(m.useEffect)(function(){Rt&&Rt.setModel({original:S.editor.createModel(me,fe),modified:S.editor.createModel(oe,fe)})},[me,oe,fe,Rt]);var rt=_(K),He=_(Z),ke={width:rt,height:He};return t.a.createElement("div",{className:"my-diff-editor",ref:ve,style:ke})}},Ze12:function(Be,J,L){var Y=L("ItGF"),B=L("hOwI"),I=B.buildTransformer,F="___zrEVENTSAVED",T=[];function R(o,u,f,a,i){return P(T,u,a,i,!0)&&P(o,f,T[0],T[1])}function P(o,u,f,a,i){if(u.getBoundingClientRect&&Y.domSupported&&!b(u)){var d=u[F]||(u[F]={}),s=m(u,d),n=t(s,d,i);if(n)return n(o,f,a),!0}return!1}function m(o,u){var f=u.markers;if(f)return f;f=u.markers=[];for(var a=["left","right"],i=["top","bottom"],d=0;d<4;d++){var s=document.createElement("div"),n=s.style,l=d%2,c=(d>>1)%2;n.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",i[c]+":0",a[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),o.appendChild(s),f.push(s)}return f}function t(o,u,f){for(var a=f?"invTrans":"trans",i=u[a],d=u.srcCoords,s=!0,n=[],l=[],c=0;c<4;c++){var x=o[c].getBoundingClientRect(),A=2*c,C=x.left,k=x.top;n.push(C,k),s=s&&d&&C===d[A]&&k===d[A+1],l.push(o[c].offsetLeft,o[c].offsetTop)}return s&&i?i:(u.srcCoords=n,u[a]=f?I(l,n):I(n,l))}function b(o){return o.nodeName.toUpperCase()==="CANVAS"}J.transformLocalCoord=R,J.transformCoordWithViewport=P,J.isCanvasEl=b},ZpRC:function(Be,J,L){"use strict";function Y(o){return typeof o=="object"&&o!=null&&o.nodeType===1}function B(o,u){return(!u||o!=="hidden")&&o!=="visible"&&o!=="clip"}function I(o,u){if(o.clientHeightu||d>o&&s=u&&n>=f?d-o-a:s>u&&nf?s-u+i:0}var T=function(o,u){var f=window,a=u.scrollMode,i=u.block,d=u.inline,s=u.boundary,n=u.skipOverflowHiddenElements,l=typeof s=="function"?s:function(ht){return ht!==s};if(!Y(o))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,x=[],A=o;Y(A)&&l(A);){if((A=A.parentElement)===c){x.push(A);break}A!=null&&A===document.body&&I(A)&&!I(document.documentElement)||A!=null&&I(A,n)&&x.push(A)}for(var C=f.visualViewport?f.visualViewport.width:innerWidth,k=f.visualViewport?f.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,h=o.getBoundingClientRect(),p=h.height,v=h.width,_=h.top,E=h.right,g=h.bottom,j=h.left,U=i==="start"||i==="nearest"?_:i==="end"?g:_+p/2,S=d==="center"?j+v/2:d==="end"?E:j,z=[],H=0;H=0&&j>=0&&g<=k&&E<=C&&_>=Z&&g<=oe&&j>=fe&&E<=me)return z;var ye=getComputedStyle(M),Ie=parseInt(ye.borderLeftWidth,10),ve=parseInt(ye.borderTopWidth,10),de=parseInt(ye.borderRightWidth,10),Je=parseInt(ye.borderBottomWidth,10),Rt=0,Ee=0,Me="offsetWidth"in M?M.offsetWidth-M.clientWidth-Ie-de:0,rt="offsetHeight"in M?M.offsetHeight-M.clientHeight-ve-Je:0;if(c===M)Rt=i==="start"?U:i==="end"?U-k:i==="nearest"?F(y,y+k,k,ve,Je,y+U,y+U+p,p):U-k/2,Ee=d==="start"?S:d==="center"?S-C/2:d==="end"?S-C:F(w,w+C,C,Ie,de,w+S,w+S+v,v),Rt=Math.max(0,Rt+y),Ee=Math.max(0,Ee+w);else{Rt=i==="start"?U-Z-ve:i==="end"?U-oe+Je+rt:i==="nearest"?F(Z,oe,K,ve,Je+rt,U,U+p,p):U-(Z+K/2)+rt/2,Ee=d==="start"?S-fe-Ie:d==="center"?S-(fe+$/2)+Me/2:d==="end"?S-me+de+Me:F(fe,me,$,Ie,de+Me,S,S+v,v);var He=M.scrollLeft,ke=M.scrollTop;U+=ke-(Rt=Math.max(0,Math.min(ke+Rt,M.scrollHeight-K+rt))),S+=He-(Ee=Math.max(0,Math.min(He+Ee,M.scrollWidth-$+Me)))}z.push({el:M,top:Rt,left:Ee})}return z};function R(o){return o===Object(o)&&Object.keys(o).length!==0}function P(o,u){u===void 0&&(u="auto");var f="scrollBehavior"in document.body.style;o.forEach(function(a){var i=a.el,d=a.top,s=a.left;i.scroll&&f?i.scroll({top:d,left:s,behavior:u}):(i.scrollTop=d,i.scrollLeft=s)})}function m(o){return o===!1?{block:"end",inline:"nearest"}:R(o)?o:{block:"start",inline:"nearest"}}function t(o,u){var f=!o.ownerDocument.documentElement.contains(o);if(R(u)&&typeof u.behavior=="function")return u.behavior(f?[]:T(o,u));if(f)return;var a=m(u);return P(T(o,a),a.behavior)}var b=J.a=t},aKvl:function(Be,J,L){var Y=L("Sj9i"),B=Y.quadraticProjectPoint;function I(F,T,R,P,m,t,b,o,u){if(b===0)return!1;var f=b;if(u>T+f&&u>P+f&&u>t+f||uF+f&&o>R+f&&o>m+f||o1?$-1:0),me=1;me<$;me++)Z[me-1]=arguments[me];H.apply(void 0,[S].concat(Z))}},g.onKeyUp=function(S){var z=g.props.onKeyUp;if(g.stop(),g.recordCursorPosition(),z){for(var H=arguments.length,M=new Array(H>1?H-1:0),V=1;V=0)return parseInt(z.slice(z.indexOf("e-")+2),10);var H=0;return z.indexOf(".")>=0&&(H=z.length-z.indexOf(".")-1),H},g.getInputDisplayValue=function(S){var z=S||g.state,H=z.focused,M=z.inputValue,V=z.value,K;H?K=M:K=g.toPrecisionAsStep(V),K==null&&(K="");var $=g.formatWrapper(K);return C(g.props.decimalSeparator)&&($=$.toString().replace(".",g.props.decimalSeparator)),$},g.recordCursorPosition=function(){try{g.cursorStart=g.input.selectionStart,g.cursorEnd=g.input.selectionEnd,g.currentValue=g.input.value,g.cursorBefore=g.input.value.substring(0,g.cursorStart),g.cursorAfter=g.input.value.substring(g.cursorEnd)}catch(S){}},g.restoreByAfter=function(S){if(S===void 0)return!1;var z=g.input.value,H=z.lastIndexOf(S);if(H===-1)return!1;var M=g.cursorBefore.length;return g.lastKeyCode===u.a.DELETE&&g.cursorBefore.charAt(M-1)===S[0]?(g.fixCaret(M,M),!0):H+S.length===z.length?(g.fixCaret(H,H),!0):!1},g.partRestoreByAfter=function(S){return S===void 0?!1:Array.prototype.some.call(S,function(z,H){var M=S.substring(H);return g.restoreByAfter(M)})},g.isNotCompleteNumber=function(S){return isNaN(S)||S===""||S===null||S&&S.toString().indexOf(".")===S.toString().length-1},g.stop=function(){g.autoStepTimer&&clearTimeout(g.autoStepTimer)},g.down=function(S,z,H){g.pressingUpOrDown=!0,g.step("down",S,z,H)},g.up=function(S,z,H){g.pressingUpOrDown=!0,g.step("up",S,z,H)},g.saveInput=function(S){g.input=S};var j=E.value;j===void 0&&(j=E.defaultValue),g.state={focused:E.autoFocus};var U=g.getValidValue(g.toNumber(j));return g.state=a(a({},g.state),{},{inputValue:g.toPrecisionAsStep(U),value:U}),g}return Object(F.a)(_,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(g){var j=this.props,U=j.value,S=j.onChange,z=j.max,H=j.min,M=this.state.focused;if(g){if(!k(g.value,U)||!k(g.max,z)||!k(g.min,H)){var V=M?U:this.getValidValue(U),K;this.pressingUpOrDown?K=V:this.inputting?K=this.rawInput:K=this.toPrecisionAsStep(V),this.setState({value:V,inputValue:K})}var $="value"in this.props?U:this.state.value;"max"in this.props&&g.max!==z&&typeof $=="number"&&$>z&&S&&S(z),"min"in this.props&&g.min!==H&&typeof $=="number"&&$1&&arguments[1]!==void 0?arguments[1]:this.props.min,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,S=parseFloat(g);return isNaN(S)?g:(SU&&(S=U),S)}},{key:"setValue",value:function(g,j){var U=this.props.precision,S=this.isNotCompleteNumber(parseFloat(g))?null:parseFloat(g),z=this.state.value,H=z===void 0?null:z,M=this.state.inputValue,V=M===void 0?null:M,K=typeof S=="number"?S.toFixed(U):"".concat(S),$=S!==H||K!=="".concat(V);return"value"in this.props?(V=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:V},j)):this.setState({value:S,inputValue:this.toPrecisionAsStep(g)},j),$&&this.props.onChange(S),S}},{key:"getMaxPrecision",value:function(g){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.props,S=U.precision,z=U.step;if(C(S))return S;var H=this.getPrecision(j),M=this.getPrecision(z),V=this.getPrecision(g);return g?Math.max(V,H+M):H+M}},{key:"getPrecisionFactor",value:function(g){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.getMaxPrecision(g,j);return Math.pow(10,U)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(g){return this.props.formatter?this.props.formatter(g):g}},{key:"toPrecisionAsStep",value:function(g){if(this.isNotCompleteNumber(g)||g==="")return g;var j=Math.abs(this.getMaxPrecision(g));return isNaN(j)?g.toString():Number(g).toFixed(j)}},{key:"toNumber",value:function(g){var j=this.props.precision,U=this.state.focused,S=g&&g.length>16&&U;return this.isNotCompleteNumber(g)||S?g:C(j)?Math.round(g*Math.pow(10,j))/Math.pow(10,j):Number(g)}},{key:"upStep",value:function(g,j){var U=this.props.step,S=this.getPrecisionFactor(g,j),z=Math.abs(this.getMaxPrecision(g,j)),H=((S*g+S*U*j)/S).toFixed(z);return this.toNumber(H)}},{key:"downStep",value:function(g,j){var U=this.props.step,S=this.getPrecisionFactor(g,j),z=Math.abs(this.getMaxPrecision(g,j)),H=((S*g-S*U*j)/S).toFixed(z);return this.toNumber(H)}},{key:"step",value:function(g,j){var U=this,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,z=arguments.length>3?arguments[3]:void 0;this.stop(),j&&(j.persist(),j.preventDefault());var H=this.props;if(H.disabled)return;var M=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(M))return;var V=this["".concat(g,"Step")](M,S),K=V>H.max||VH.max?V=H.max:V=Z),dt=(kt||kt===0)&&(isNaN(kt)||Number(kt)<=me),Ne=Je||S||z,Te=dt||S||z,Oe=o()("".concat(U,"-handler"),"".concat(U,"-handler-up"),Object(B.a)({},"".concat(U,"-handler-up-disabled"),Ne)),ae=o()("".concat(U,"-handler"),"".concat(U,"-handler-down"),Object(B.a)({},"".concat(U,"-handler-down-disabled"),Te)),le=H?{onTouchStart:Ne?s:this.up,onTouchEnd:this.stop}:{onMouseDown:Ne?s:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},he=H?{onTouchStart:Te?s:this.down,onTouchEnd:this.stop}:{onMouseDown:Te?s:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return t.a.createElement("div",{className:Le,style:oe,title:fe,onMouseEnter:ye,onMouseLeave:Ie,onMouseOver:ve,onMouseOut:de,onFocus:function(){return null},onBlur:function(){return null}},t.a.createElement("div",{className:"".concat(U,"-handler-wrap")},t.a.createElement("span",Object.assign({unselectable:"on"},le,{role:"button","aria-label":"Increase Value","aria-disabled":Ne,className:Oe}),V||t.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-up-inner"),onClick:n})),t.a.createElement("span",Object.assign({unselectable:"on"},he,{role:"button","aria-label":"Decrease Value","aria-disabled":Te,className:ae}),K||t.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-down-inner"),onClick:n}))),t.a.createElement("div",{className:"".concat(U,"-input-wrap")},t.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":me,"aria-valuemax":Z,"aria-valuenow":kt,required:Qe,type:Me,placeholder:nt,onPaste:ct,onClick:Rt,onMouseUp:this.onMouseUp,className:"".concat(U,"-input"),tabIndex:Ee,autoComplete:M,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ut?this.onKeyDown:s,onKeyUp:ut?this.onKeyUp:s,autoFocus:we,maxLength:xe,readOnly:z,disabled:S,max:Z,min:me,step:ie,name:$e,title:fe,id:He,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(_t),pattern:ht,inputMode:ke,onInput:vt},Ae))))}}]),_}(t.a.Component);w.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:A,min:-A,step:1,style:{},onChange:s,onKeyDown:s,onPressEnter:s,onFocus:s,onBlur:s,parser:l,required:!1,autoComplete:"off"};var y=w,h=J.a=y},dqUG:function(Be,J,L){var Y=L("Gev7"),B=L("bYtY"),I=L("6GrX"),F=L("pzxd"),T=L("gut8"),R=T.ContextCachedBy,P=function(t){Y.call(this,t)};P.prototype={constructor:P,type:"text",brush:function(t,b){var o=this.style;this.__dirty&&F.normalizeTextStyle(o,!0),o.fill=o.stroke=o.shadowBlur=o.shadowColor=o.shadowOffsetX=o.shadowOffsetY=null;var u=o.text;if(u!=null&&(u+=""),!F.needDrawText(u,o)){t.__attrCachedBy=R.NONE;return}this.setTransform(t),F.renderText(this,t,u,o,null,b),this.restoreTransform(t)},getBoundingRect:function(){var t=this.style;if(this.__dirty&&F.normalizeTextStyle(t,!0),!this._rect){var b=t.text;b!=null?b+="":b="";var o=I.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(o.x+=t.x||0,o.y+=t.y||0,F.getStroke(t.textStroke,t.textStrokeWidth)){var u=t.textStrokeWidth;o.x-=u/2,o.y-=u/2,o.width+=u,o.height+=u}this._rect=o}return this._rect}},B.inherits(P,Y);var m=P;Be.exports=m},eozf:function(Be,J,L){"use strict";L.d(J,"b",function(){return Ie}),L.d(J,"c",function(){return ve});var Y=L("sRBo"),B=L("kaz8"),I=L("5Dmo"),F=L("3S7+"),T=L("/zsF"),R=L("PArb"),P=L("7Kak"),m=L("9yH6"),t=L("14J3"),b=L("BMrR"),o=L("+L6B"),u=L("2/Rp"),f=L("jCWc"),a=L("kPKH"),i=L("2qtc"),d=L("kLXV"),s=L("9og8"),n=L("miYZ"),l=L("tsqr"),c=L("oBTY"),x=L("k1fw"),A=L("tJVT"),C=L("OaEy"),k=L("2fM7"),w=L("iQDF"),y=L("+eQT"),h=L("WmNS"),p=L.n(h),v=L("q1tI"),_=L.n(v),E=L("/MfK"),g=L("w5pM"),j=L("Lyp1"),U=L("wd/R"),S=L.n(U),z=L("xKgJ"),H=L("ErOA"),M=L("LvDl"),V=L.n(M),K=L("1vsH"),$=L("zetH"),Z=L.n($),me=L("Ty5D"),oe=L("9kvl"),fe=L("AHFd");function ye(Ee,Me){for(var nt=[],He=Ee;HeS()(nt).endOf("day"),ie=Me100)throw l.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!gt.late_time)throw l.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var sn;ze=(sn=ze)===null||sn===void 0?void 0:sn.map(function(vn){var tr,Hn;if(vn.late_penalty===null||vn.late_penalty===void 0||vn.late_penalty<0||vn.late_penalty>100)throw l.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!vn.late_time)throw l.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!vn.group_name)throw l.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return vn.group_name=typeof(vn==null?void 0:vn.group_name)=="string"?[vn==null?void 0:vn.group_name]:vn==null?void 0:vn.group_name,vn.group_id=vn==null||((tr=vn.group_name)===null||tr===void 0||((Hn=tr.map(function(wn){var xr,Er,rr=(xr=We.group_settings)===null||xr===void 0||((Er=xr.filter(function(ur){return(ur==null?void 0:ur.group_name)===wn}))===null||Er===void 0)?void 0:Er[0];return rr==null?void 0:rr.group_id}))===null||Hn===void 0))?void 0:Hn.toString().split(","),vn}),Wt.allow_late_settings=ze}ft(Wt)},ft=function(lt){var It,Wt;if(lt.total_score===null){l.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(lt!=null&<.work_efficiency&<.eff_score===null){l.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var sn=lt.challenge_settings.reduce(function(Hn,wn){return Hn+Number(wn.challenge_score)},0);if((sn==null?void 0:sn.toFixed(10))!==((It=lt.total_score-lt.eff_score)===null||It===void 0?void 0:It.toFixed(10))){l.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(lt.total_score,"\u5206"));return}var vn={shixun_evaluation:lt.shixun_evaluation,challenge_settings:lt.challenge_settings},tr=function(){var Hn=Object(s.a)(p.a.mark(function wn(){var xr;return p.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:return Te(!0),rr.next=3,Object(H.a)("/api/homework_commons/".concat(Ut.categoryId,"/publish_setting.json"),{method:"post",body:Object(x.a)({},lt)});case 3:xr=rr.sent,xr.status===0&&(l.b.success("\u66F4\u65B0\u6210\u529F"),_t(!0),Ot(),vt({type:"shixunHomeworks/getWorkList",payload:Object(x.a)({},Ut)})),Te(!1);case 6:case"end":return rr.stop()}},wn)}));return function(){return Hn.apply(this,arguments)}}();!Object(M.isEqual)(Zt,vn)&&!(kt!=null&&(Wt=kt.homework_status)!==null&&Wt!==void 0&&Wt.includes("\u672A\u53D1\u5E03"))?d.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:tr}):tr()},be=function(lt,It){var Wt,sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"group_id";return It?It.find(function(vn){return vn[sn]===lt}):We==null||((Wt=We.group_settings)===null||Wt===void 0)?void 0:Wt.find(function(vn){return vn.group_id[0]===lt})},Fe=(We==null?void 0:We.allow_late)||(We==null?void 0:We.anonymous_comment),Nt=function(lt){var It=be(lt,We==null?void 0:We.allow_late_settings,"id"),Wt=be(lt,We==null?void 0:We.anonymous_comment_settings);return(We==null?void 0:We.allow_late)&&It&&(It==null?void 0:It.late_time)!==null||(We==null?void 0:We.anonymous_comment)&&Wt&&(Wt==null?void 0:Wt.evaluation_start)!==null},yt=Object(v.useMemo)(function(){var Ge;if(We!=null&&We.unified_setting){var lt;return!(kt!=null&&(lt=kt.homework_status)!==null&<!==void 0&<.includes("\u5DF2\u622A\u6B62"))||(We==null?void 0:We.allow_late)||(We==null?void 0:We.anonymous_comment)}var It=We==null||((Ge=We.group_settings)===null||Ge===void 0)?void 0:Ge.some(function(Wt){return S()(Wt.end_time)<=S()()});return!It||(We==null?void 0:We.allow_late)||(We==null?void 0:We.all_group_late)},[We,kt]),Gt=We==null?void 0:We.anonymous_comment,Jt=function(lt){if(!lt)return!1;var It=be(lt,We==null?void 0:We.anonymous_comment_settings);return(We==null?void 0:We.anonymous_comment)&&It&&(It==null?void 0:It.evaluation_start)!==null};return _.a.createElement("section",{className:[Z.a.form," bg-white pl30 pr30 pt10"].join(" ")},_.a.createElement(b.a,null,_.a.createElement(a.a,{span:24},_.a.createElement(b.a,{align:"middle"},_.a.createElement(a.a,{flex:"1"}),_.a.createElement(a.a,null,Object(z.c)()&&ut&&_.a.createElement(u.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return _t(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")))),_.a.createElement("div",null,_.a.createElement("label",null,"\u53D1\u5E03\u65B9\u5F0F\uFF1A")," ",_.a.createElement(m.a.Group,{disabled:ut||!(kt!=null&&(nt=kt.homework_status)!==null&&nt!==void 0&&nt.includes("\u672A\u53D1\u5E03")),value:gt.unified_setting,onChange:function(lt){var It;if(!(kt!=null&&(It=kt.homework_status)!==null&&It!==void 0&&It.includes("\u672A\u53D1\u5E03"))){l.b.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(gt.unified_setting=!gt.unified_setting,gt.unified_setting||(gt.unified_late=!1),Kt(Object.assign({},gt)),gt.unified_setting===!1&&le==""){he(le.concat({}));return}gt.unified_setting&&(he([]),Et([{late_penalty:5}]))}},_.a.createElement(m.a,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),_.a.createElement(m.a,{disabled:(We==null||((He=We.group_settings)===null||He===void 0)?void 0:He.length)===0,value:!1},"\u5206\u73ED\u53D1\u5E03")),(We==null||((ke=We.group_settings)===null||ke===void 0)?void 0:ke.length)===0&&_.a.createElement("p",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09"))),gt.unified_setting&&_.a.createElement("div",null,_.a.createElement(b.a,{align:"middle",className:"mt25 pl30"},_.a.createElement(a.a,null,"\u53D1\u5E03\u65F6\u95F4:"),_.a.createElement(a.a,{className:"ml5"},_.a.createElement(y.a,{disabled:ut||!(kt!=null&&(ht=kt.homework_status)!==null&&ht!==void 0&&ht.includes("\u672A\u53D1\u5E03")||kt!=null&&(ie=kt.homework_status)!==null&&ie!==void 0&&ie.includes("\u672A\u5F00\u59CB")),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:function(lt){return Ie(lt,We==null?void 0:We.course_end_date)},disabledTime:function(lt){return ve(lt)},value:gt.publish_time?S()(gt.publish_time):"",onChange:function(lt,It){gt.publish_time=It,(gt.end_time==""||!gt.end_time)&>.unified_setting&&(gt.end_time=S()(lt).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),Kt(Object.assign({},gt))}})),_.a.createElement(a.a,null,_.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4)"))),_.a.createElement(b.a,{align:"middle",className:"mt25 pl30"},_.a.createElement(a.a,null,"\u622A\u6B62\u65F6\u95F4:"),_.a.createElement(a.a,{className:"ml5"},_.a.createElement(y.a,{style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:S()(Object(K.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ut||Fe,disabledDate:function(lt){return Ie(lt,We==null?void 0:We.course_end_date,gt.publish_time)},disabledTime:function(lt){return ve(lt,gt.publish_time)},value:gt.end_time?S()(gt.end_time):"",onChange:function(lt,It){gt.end_time=It,Kt(Object.assign({},gt))}})),_.a.createElement(a.a,null,_.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))),!gt.unified_setting&&((xe=le)===null||xe===void 0?void 0:xe.length)>0&&_.a.createElement(b.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},_.a.createElement(a.a,{span:24},_.a.createElement(b.a,null,_.a.createElement(a.a,{span:10}),_.a.createElement(a.a,{span:10},_.a.createElement(b.a,{className:"c-grey-c ml30"},_.a.createElement(a.a,{flex:"1"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4)"),_.a.createElement(a.a,{flex:"1"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9)"))),_.a.createElement(a.a,{span:4}))),le&&le.map(function(Ge,lt){var It,Wt,sn,vn,tr;return _.a.createElement(a.a,{span:24,key:lt},_.a.createElement(b.a,{gutter:[8,16]},_.a.createElement(a.a,{span:10},_.a.createElement(b.a,{gutter:[8,16]},_.a.createElement(a.a,null,"\u53D1\u5E03\u89C4\u5219 ",lt+1),_.a.createElement(a.a,{flex:"1",style:{maxWidth:300}},_.a.createElement(k.a,{disabled:ut||!(kt!=null&&(It=kt.homework_status)!==null&&It!==void 0&&It.includes("\u672A\u53D1\u5E03"))&&Ge.id,className:"ml20",mode:"multiple",style:{width:"100%"},value:Ge.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(wn){le[lt].group_name=wn,le[lt].group_id=Ge.group_id;var xr=Object(M.flattenDeep)(le.map(function(rr){return rr.group_name})),Er=ze.map(function(rr){var ur=(rr==null?void 0:rr.group_name)||[];return Object(x.a)(Object(x.a)({},rr),{},{group_name:Object(M.remove)(ur,function(Ar){return xr.includes(Ar)})})});Et(Er),he(le.slice())}},We.group_settings&&We.group_settings.map(function(Hn){var wn=le.map(function(xr){return xr.group_name}).flat();if(!wn.includes(Hn.group_name))return _.a.createElement(Qe,{value:Hn.group_name,key:Hn.id},Hn.group_name)}))))),_.a.createElement(a.a,{span:10},_.a.createElement("div",{className:"ml30"},_.a.createElement(de,{ranges:{\u6B64\u523B:[Ge.publish_time?S()(Ge.publish_time):S()(),S()()]},allowClear:!1,disabled:ut||(S()()<=S()((Wt=be((sn=Ge.group_id)===null||sn===void 0?void 0:sn[0]))===null||Wt===void 0?void 0:Wt.publish_time)?!1:[!0,Nt((vn=Ge.group_id)===null||vn===void 0?void 0:vn[0])]),style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],disabledDate:function(wn){return Ie(wn,We==null?void 0:We.course_end_date)},disabledTime:function(wn){return ve(wn)},showTime:{showNow:!0,format:"HH:mm",defaultValue:[S()(Object(K.d)(),"HH:mm"),S()(Object(K.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Ge.publish_time&&[S()(Ge.publish_time),Ge.end_time?S()(Ge.end_time):void 0],onChange:function(wn,xr){le[lt].publish_time=xr[0],le[lt].end_time=xr[1],he(Object(c.a)(le))}}))),!ut&&_.a.createElement(a.a,{span:4},lt>0&&!Ge.id&&_.a.createElement(E.a,{onClick:function(){le=le.filter(function(wn,xr){return lt!==xr}),he(le.slice()),setTimeout(function(){return he(le.slice())},10)}}),le.length<(We==null||((tr=We.group_settings)===null||tr===void 0)?void 0:tr.length)&&_.a.createElement(g.a,{className:"c-green ml20",onClick:function(){he(le.concat({}))}}))))})),_.a.createElement(R.a,null),_.a.createElement(b.a,null,_.a.createElement(a.a,null,_.a.createElement("strong",null,"\u8865\u4EA4\u8BBE\u7F6E"),_.a.createElement(F.a,{placement:"right",title:"\u4F5C\u4E1A\u622A\u6B62\u540E\u624D\u53EF\u5F00\u542F\u8865\u4EA4\uFF0C\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"},_.a.createElement(j.a,{style:{marginLeft:4,cursor:"pointer"}}))),_.a.createElement(a.a,{span:24,className:"mt15 pl30"},_.a.createElement(B.a,{checked:gt.allow_late,disabled:ut||yt,onChange:function(){gt.allow_late=!gt.allow_late,ze==""&&Et([{late_penalty:5}]),Kt(Object.assign({},gt))}},_.a.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")),_.a.createElement(F.a,{overlayStyle:{width:380,maxWidth:380},title:_.a.createElement("div",{style:{display:"flex",flexFlow:"column"}},_.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219\u8BF4\u660E"),_.a.createElement("span",null,"\u5F00\u542F\u8865\u4EA4\uFF0C\u5B66\u751F\u53EA\u5728\u8865\u4EA4\u65F6\u95F4\u5185\u624D\u901A\u5173\u5219\u6263\u9664\u5206\u503C\uFF0C\u672A\u901A\u5173\u4E0D\u6263\u5206\uFF1B"),_.a.createElement("span",null,"\u5B66\u751F\u5728\u6B63\u5E38\u4F5C\u4E1A\u89C4\u5B9A\u65F6\u95F4\u5185\u901A\u5173\uFF0C\u5728\u8865\u4EA4\u9636\u6BB5\u518D\u6B21\u901A\u5173\u4E0D\u6263\u5206\u3002"))},_.a.createElement(j.a,null)))),(gt==null?void 0:gt.allow_late)&&_.a.createElement("div",{style:{marginLeft:22}},_.a.createElement("div",{className:"ml30 mt20"},_.a.createElement("span",null,"\u8865\u4EA4\u65B9\u5F0F\uFF1A"),_.a.createElement(m.a.Group,{disabled:ut||(We==null?void 0:We.anonymous_comment)||(We==null?void 0:We.allow_late),value:gt.unified_late,onChange:function(lt){gt.unified_late=lt.target.value,ze==""&&!lt.target.value&&Et([{penalty_type:fe.a.Percent,late_penalty:20}]),Kt(Object(x.a)({},gt))}},(gt==null?void 0:gt.unified_setting)&&_.a.createElement(m.a,{value:!0}," \u7EDF\u4E00\u8865\u4EA4 "),(We==null||((we=We.group_settings)===null||we===void 0)?void 0:we.length)>0&&_.a.createElement(m.a,{value:!1}," \u5206\u73ED\u8865\u4EA4 "))),gt!=null&>.unified_late?_.a.createElement(_.a.Fragment,null,_.a.createElement(b.a,{align:"middle",className:"mt25 pl30"},_.a.createElement(a.a,null,"\u8865\u4EA4\u6263\u5206:"),_.a.createElement(a.a,{className:"ml5"},_.a.createElement(fe.b,{disabled:ut||Gt,value:{type:gt.penalty_type,inputValue:gt.late_penalty},onChange:function(lt){Kt(Object(x.a)(Object(x.a)({},gt),{},{late_penalty:lt.inputValue,penalty_type:lt.type}))}})),_.a.createElement(a.a,{flex:"1",className:"ml5"},_.a.createElement("span",{className:"c-grey-c ml10"},gt.penalty_type===fe.a.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6210\u7EE9\u5C06\u6263\u9664\u8865\u4EA4\u5173\u5361\u5206\u503C\u7684\u767E\u5206\u6BD4)"))),_.a.createElement(b.a,{align:"middle",className:"mt25 pl30"},_.a.createElement(a.a,null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),_.a.createElement(a.a,{className:"ml5"},_.a.createElement(y.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:S()(Object(K.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ut||Gt,value:gt.late_time?S()(gt.late_time):"",disabledDate:function(lt){return Ie(lt,We==null?void 0:We.course_end_date)},onChange:function(lt,It){gt.late_time=It,Kt(Object.assign({},gt))}})),_.a.createElement(a.a,null,_.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u5EF6\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))):ze.map(function(Ge,lt){var It;return _.a.createElement(a.a,{span:24,key:lt},_.a.createElement(b.a,{className:"mt25"},_.a.createElement(a.a,{style:{marginLeft:30}},_.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219",lt+1,"\uFF1A"),_.a.createElement(k.a,{disabled:ut||!(kt!=null&&(It=kt.homework_status)!==null&&It!==void 0&&It.includes("\u672A\u53D1\u5E03"))&&Ge.id||(We==null?void 0:We.anonymous_comment),mode:"multiple",style:{width:306},value:typeof Ge.group_name=="string"?[Ge.group_name]:Ge.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(sn){ze[lt].group_name=sn,ze[lt].group_id=Ge.group_id,Et(ze.slice())}},We.group_settings&&We.group_settings.map(function(Wt){var sn=ze.map(function(tr){return tr.group_name}).flat(),vn=le.map(function(tr){return tr.group_name}).flat();if(gt!=null&>.unified_setting){if(!sn.includes(Wt.group_name))return _.a.createElement(Qe,{value:Wt.group_name,key:Wt.id},Wt.group_name)}else if(vn.includes(Wt.group_name)&&(!sn.includes(Wt.group_name)&&S()(Wt.end_time)<=S()()))return _.a.createElement(Qe,{value:Wt.group_name,key:Wt.id},Wt.group_name)}))),_.a.createElement(a.a,{className:"ml20"},_.a.createElement("span",null,"\u8865\u4EA4\u6263\u5206\uFF1A"),_.a.createElement(fe.b,{disabled:ut||Jt(Ge.id),value:{type:Ge.penalty_type,inputValue:Ge.late_penalty},onChange:function(sn){ze[lt].late_penalty=sn.inputValue,ze[lt].penalty_type=sn.type,Et(Object(c.a)(ze))}})),_.a.createElement(a.a,{className:"ml20"},_.a.createElement("span",null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),_.a.createElement(y.a,{disabled:ut||Jt(Ge.id),style:{width:200},showTime:{format:"HH:mm",defaultValue:S()(Object(K.d)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:function(sn){return Ie(sn,We==null?void 0:We.course_end_date)},format:"YYYY-MM-DD HH:mm",value:Ge!=null&&Ge.late_time?S()(Ge.late_time):void 0,onChange:function(sn,vn){ze[lt].late_time=vn,Et(Object(c.a)(ze))}})),!ut&&_.a.createElement(a.a,{className:"ml20"},lt>0&&!Ge.id&&_.a.createElement(E.a,{onClick:function(){ze=ze.filter(function(sn,vn){return lt!==vn}),Et(ze.slice()),setTimeout(function(){return Et(ze.slice())},10)}}),_.a.createElement(g.a,{className:"c-green ml20",onClick:function(){Et(ze.concat({penalty_type:fe.a.Percent,late_minus_score:20}))}}))))})),_.a.createElement(R.a,null),!ut&&_.a.createElement(a.a,{className:"mb50"},_.a.createElement(u.a,{type:"primary",size:"large",style:{marginTop:"40px"},loading:Ne,onClick:function(){return At()}},"\u63D0\u4EA4"),_.a.createElement(u.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){_t(!0),Ot()}},"\u53D6\u6D88")))};J.a=Object(oe.a)(function(Ee){var Me=Ee.shixunHomeworks,nt=Ee.loading;return{shixunHomeworks:Me,loading:nt.effects}})(Rt)},fW2E:function(Be,J){var L={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function Y(B,I,F){return L.hasOwnProperty(I)?F*=B.dpr:F}Be.exports=Y},fjLI:function(Be,J,L){"use strict";L.d(J,"f",function(){return f}),L.d(J,"b",function(){return a}),L.d(J,"a",function(){return i}),L.d(J,"d",function(){return d}),L.d(J,"e",function(){return s}),L.d(J,"c",function(){return n});var Y=L("8HAY"),B=L("Vhoy"),I=L("MI8n"),F=L("JYp7"),T=L("pmY6"),R=L("24hK"),P=L("nnTU"),m=L("T8No"),t=L("Cg/j"),b=L("t9D7"),o=function(l,c,x,A){var C=arguments.length,k=C<3?c:A===null?A=Object.getOwnPropertyDescriptor(c,x):A,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,x,A);else for(var y=l.length-1;y>=0;y--)(w=l[y])&&(k=(C<3?w(k):C>3?w(c,x,k):w(c,x))||k);return C>3&&k&&Object.defineProperty(c,x,k),k},u=function(l,c){return function(x,A){c(x,A,l)}};function f(l){return l.command!==void 0}class a{constructor(l){this.id=a._idPool++,this._debugName=l}}a._idPool=0,a.CommandPalette=new a("CommandPalette"),a.EditorContext=new a("EditorContext"),a.SimpleEditorContext=new a("SimpleEditorContext"),a.EditorContextCopy=new a("EditorContextCopy"),a.EditorContextPeek=new a("EditorContextPeek"),a.MenubarEditMenu=new a("MenubarEditMenu"),a.MenubarCopy=new a("MenubarCopy"),a.MenubarGoMenu=new a("MenubarGoMenu"),a.MenubarSelectionMenu=new a("MenubarSelectionMenu"),a.InlineCompletionsActions=new a("InlineCompletionsActions");const i=Object(t.c)("menuService"),d=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new I.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:l=>l===a.CommandPalette}}addCommand(l){return this.addCommands(F.a.single(l))}addCommands(l){for(const c of l)this._commands.set(c.id,c);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(T.i)(()=>{let c=!1;for(const x of l)c=this._commands.delete(x.id)||c;c&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(l){return this._commands.get(l)}getCommands(){const l=new Map;return this._commands.forEach((c,x)=>l.set(x,c)),l}appendMenuItem(l,c){return this.appendMenuItems(F.a.single({id:l,item:c}))}appendMenuItems(l){const c=new Set,x=new R.a;for(const{id:A,item:C}of l){let k=this._menuItems.get(A);k||(k=new R.a,this._menuItems.set(A,k)),x.push(k.push(C)),c.add(A)}return this._onDidChangeMenu.fire(c),Object(T.i)(()=>{if(x.size>0){for(let A of x)A();this._onDidChangeMenu.fire(c),x.clear()}})}getMenuItems(l){let c;return this._menuItems.has(l)?c=[...this._menuItems.get(l)]:c=[],l===a.CommandPalette&&this._appendImplicitItems(c),c}_appendImplicitItems(l){const c=new Set;for(const x of l)f(x)&&(c.add(x.command.id),x.alt&&c.add(x.alt.id));this._commands.forEach((x,A)=>{c.has(A)||l.push({command:x})})}};class s extends Y.e{constructor(l,c,x,A){super(`submenuitem.${l.submenu.id}`,typeof l.title=="string"?l.title:l.title.value,[],"submenu");this.item=l,this._menuService=c,this._contextKeyService=x,this._options=A}get actions(){const l=[],c=this._menuService.createMenu(this.item.submenu,this._contextKeyService),x=c.getActions(this._options);c.dispose();for(const[,A]of x)A.length>0&&(l.push(...A),l.push(new Y.d));return l.length&&l.pop(),l}}let n=class l{constructor(c,x,A,C,k){var w,y;if(this._commandService=k,this.id=c.id,this.label=(A==null?void 0:A.renderShortTitle)&&c.shortTitle?typeof c.shortTitle=="string"?c.shortTitle:c.shortTitle.value:typeof c.title=="string"?c.title:c.title.value,this.tooltip=(y=typeof c.tooltip=="string"?c.tooltip:(w=c.tooltip)===null||w===void 0?void 0:w.value)!==null&&y!==void 0?y:"",this.enabled=!c.precondition||C.contextMatchesRules(c.precondition),this.checked=void 0,c.toggled){const h=c.toggled.condition?c.toggled:{condition:c.toggled};this.checked=C.contextMatchesRules(h.condition),this.checked&&h.tooltip&&(this.tooltip=typeof h.tooltip=="string"?h.tooltip:h.tooltip.value),h.title&&(this.label=typeof h.title=="string"?h.title:h.title.value)}this.item=c,this.alt=x?new l(x,void 0,A,C,k):void 0,this._options=A,b.d.isThemeIcon(c.icon)&&(this.class=B.a.asClassName(c.icon))}dispose(){}run(...c){var x,A;let C=[];return((x=this._options)===null||x===void 0?void 0:x.arg)&&(C=[...C,this._options.arg]),((A=this._options)===null||A===void 0?void 0:A.shouldForwardArgs)&&(C=[...C,...c]),this._commandService.executeCommand(this.id,...C)}};n=o([u(3,m.b),u(4,P.b)],n)},fyJ8:function(Be,J,L){"use strict";var Y=L("rePB"),B=L("VTBJ"),I=L("Ff2n"),F=L("U8pU"),T=L("q1tI"),R=L.n(T),P=L("TSYQ"),m=L.n(P),t=L("c+Xe"),b=L("sR1s");function o(d){return d&&Object(F.a)(d)==="object"&&!Array.isArray(d)&&!T.isValidElement(d)}function u(d){return typeof d=="string"?!0:Object(t.c)(d)}function f(d,s){var n,l=d.prefixCls,c=d.className,x=d.record,A=d.index,C=d.dataIndex,k=d.render,w=d.children,y=d.component,h=y===void 0?"td":y,p=d.colSpan,v=d.rowSpan,_=d.fixLeft,E=d.fixRight,g=d.firstFixLeft,j=d.lastFixLeft,U=d.firstFixRight,S=d.lastFixRight,z=d.appendNode,H=d.additionalProps,M=H===void 0?{}:H,V=d.ellipsis,K=d.align,$=d.rowType,Z=d.isSticky,me="".concat(l,"-cell"),oe,fe;if(w)fe=w;else{var ye=Object(b.b)(x,C);if(fe=ye,k){var Ie=k(ye,x,A);o(Ie)?(fe=Ie.children,oe=Ie.props):fe=Ie}}Object(F.a)(fe)==="object"&&!Array.isArray(fe)&&!T.isValidElement(fe)&&(fe=null),V&&(j||U)&&(fe=T.createElement("span",{className:"".concat(me,"-content")},fe));var ve=oe||{},de=ve.colSpan,Qe=ve.rowSpan,Rt=ve.style,Ee=ve.className,Me=Object(I.a)(ve,["colSpan","rowSpan","style","className"]),nt=de!==void 0?de:p,He=Qe!==void 0?Qe:v;if(nt===0||He===0)return null;var ke={},ht=typeof _=="number",ie=typeof E=="number";ht&&(ke.position="sticky",ke.left=_),ie&&(ke.position="sticky",ke.right=E);var xe={};K&&(xe.textAlign=K);var we,$e=V===!0?{showTitle:!0}:V;$e&&($e.showTitle||$==="header")&&(typeof fe=="string"||typeof fe=="number"?we=fe.toString():T.isValidElement(fe)&&typeof fe.props.children=="string"&&(we=fe.props.children));var ct=Object(B.a)(Object(B.a)(Object(B.a)({title:we},Me),M),{},{colSpan:nt&&nt!==1?nt:null,rowSpan:He&&He!==1?He:null,className:m()(me,c,(n={},Object(Y.a)(n,"".concat(me,"-fix-left"),ht),Object(Y.a)(n,"".concat(me,"-fix-left-first"),g),Object(Y.a)(n,"".concat(me,"-fix-left-last"),j),Object(Y.a)(n,"".concat(me,"-fix-right"),ie),Object(Y.a)(n,"".concat(me,"-fix-right-first"),U),Object(Y.a)(n,"".concat(me,"-fix-right-last"),S),Object(Y.a)(n,"".concat(me,"-ellipsis"),V),Object(Y.a)(n,"".concat(me,"-with-append"),z),Object(Y.a)(n,"".concat(me,"-fix-sticky"),(ht||ie)&&Z),n),M.className,Ee),style:Object(B.a)(Object(B.a)(Object(B.a)(Object(B.a)({},M.style),xe),ke),Rt),ref:u(h)?s:null});return T.createElement(h,Object.assign({},ct),z,fe)}var a=T.forwardRef(f);a.displayName="Cell";var i=T.memo(a,function(d,s){return s.shouldCellUpdate?!s.shouldCellUpdate(s.record,d.record):!1});J.a=i},gMzb:function(Be,J,L){"use strict";var Y=L("k1fw"),B=L("oBTY"),I=L("9og8"),F=L("tJVT"),T=L("sRBo"),R=L("kaz8"),P=L("WmNS"),m=L.n(P),t=L("q1tI"),b=L.n(t),o=L("9kvl"),u=L("wlus"),f=L("w5pM"),a=L("ErOA"),i=L("OaEy"),d=L("2fM7"),s=L("y8nQ"),n=L("Vl3Y"),l=L("Ty5D"),c=L("yQHh"),x=L.n(c),A=R.a.Group,C=function(v){var _,E,g,j,U,S,z,H,M=v.classroomList,V=v.loading,K=v.user,$=v.exercise_id,Z=$===void 0?null:$,me=v.homework_common_id,oe=me===void 0?null:me,fe=v.setitem,ye=v.item,Ie=v.type,ve=v.rz,de=v.dispatch,Qe=Object(t.useState)([]),Rt=Object(F.a)(Qe,2),Ee=Rt[0],Me=Rt[1],nt=Object(t.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20}),He=Object(F.a)(nt,2),ke=He[0],ht=He[1],ie=Object(l.i)(),xe=Object(t.useState)(!1),we=Object(F.a)(xe,2),$e=we[0],ct=we[1],vt=Object(t.useState)(!1),Ut=Object(F.a)(vt,2),We=Ut[0],kt=Ut[1],Zt=n.a.useForm(),Le=Object(F.a)(Zt,1),Ae=Le[0];Object(t.useEffect)(function(){ve&&(ke.zydatas=ve,ht(Object(Y.a)({},ke)),ye!=null&&ye.ec_course_id&&ut())},[ye,ve]);function ut(){return _t.apply(this,arguments)}function _t(){return _t=Object(I.a)(m.a.mark(function ae(){return m.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return console.log("----",ye),he.next=3,Je(ye==null?void 0:ye.ec_major_school_id);case 3:return he.next=5,Ne(ye==null?void 0:ye.ec_year_id);case 5:return he.next=7,Oe(ye==null?void 0:ye.ec_course_id);case 7:Ae.setFieldsValue({ec_course_id:ye==null?void 0:ye.ec_course_id,ec_major_school_id:ye==null?void 0:ye.ec_major_school_id,ec_point_ids:ye==null?void 0:ye.ec_point_ids,ec_year_id:ye==null?void 0:ye.ec_year_id});case 8:case"end":return he.stop()}},ae)})),_t.apply(this,arguments)}function Je(ae){return dt.apply(this,arguments)}function dt(){return dt=Object(I.a)(m.a.mark(function ae(le){var he;return m.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,Object(a.a)("/api/ec_major_schools/".concat(le,"/ec_years/get_year_list.json"),{method:"get"});case 2:he=Se.sent,ke.jbdatas=he==null?void 0:he.data,ht(Object(Y.a)({},ke)),Ae.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]});case 6:case"end":return Se.stop()}},ae)})),dt.apply(this,arguments)}function Ne(ae){return Te.apply(this,arguments)}function Te(){return Te=Object(I.a)(m.a.mark(function ae(le){var he;return m.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,Object(a.a)("/api/ec_years/".concat(le,"/ec_courses/get_courses.json"),{method:"get"});case 2:he=Se.sent,ke.kcdatas=he==null?void 0:he.data,ht(Object(Y.a)({},ke)),Ae.setFieldsValue({ec_course_id:"",ec_point_ids:[]});case 6:case"end":return Se.stop()}},ae)})),Te.apply(this,arguments)}var Oe=function(){var ae=Object(I.a)(m.a.mark(function le(he){var _e;return m.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,Object(a.a)("/api/ec_courses/".concat(he,"/ec_points.json"),{method:"get",params:{ec_course_id:he}});case 2:_e=ze.sent,ke.zsdatas=_e==null?void 0:_e.data,ht(Object(Y.a)({},ke));case 5:case"end":return ze.stop()}},le)}));return function(he){return ae.apply(this,arguments)}}();return b.a.createElement("div",{className:x.a.from},b.a.createElement(n.a,{form:Ae,layout:"inline",onValuesChange:function(le){console.log("----",le),le.ec_major_school_id&&(ke.jbdatas=[],ke.kcdatas=[],ke.zsdatas=[],ht(Object(Y.a)({},ke)),Je(le.ec_major_school_id)),le.ec_year_id&&(ke.kcdatas=[],ke.zsdatas=[],ht(Object(Y.a)({},ke)),Ne(le.ec_year_id)),le.ec_course_id&&(ke.zsdatas=[],ht(Object(Y.a)({},ke)),Oe(le.ec_course_id))},onFinish:function(){var ae=Object(I.a)(m.a.mark(function le(he){return m.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:fe(he);case 1:case"end":return Se.stop()}},le)}));return function(le){return ae.apply(this,arguments)}}()},b.a.createElement(n.a.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},b.a.createElement(d.a,{style:{width:150},disabled:((_=ke.zydatas)===null||_===void 0?void 0:_.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},ke==null||((E=ke.zydatas)===null||E===void 0)?void 0:E.map(function(ae,le){return b.a.createElement(d.a.Option,{key:le,value:ae==null?void 0:ae.ec_major_school_id},ae==null?void 0:ae.name)}))),b.a.createElement(n.a.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},b.a.createElement(d.a,{style:{width:150},disabled:((g=ke.jbdatas)===null||g===void 0?void 0:g.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},ke==null||((j=ke.jbdatas)===null||j===void 0)?void 0:j.map(function(ae,le){return b.a.createElement(d.a.Option,{key:le,value:ae==null?void 0:ae.ec_year_id},ae==null?void 0:ae.year)}))),b.a.createElement(n.a.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},b.a.createElement(d.a,{style:{width:150},disabled:((U=ke.kcdatas)===null||U===void 0?void 0:U.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},ke==null||((S=ke.kcdatas)===null||S===void 0)?void 0:S.map(function(ae,le){return b.a.createElement(d.a.Option,{key:le,value:ae==null?void 0:ae.id},ae==null?void 0:ae.name)}))),b.a.createElement(n.a.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},b.a.createElement(d.a,{onChange:function(){Ae.submit()},style:{width:150},mode:"multiple",disabled:((z=ke.zsdatas)===null||z===void 0?void 0:z.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},ke==null||((H=ke.zsdatas)===null||H===void 0)?void 0:H.map(function(ae,le){return b.a.createElement(d.a.Option,{key:le,value:ae==null?void 0:ae.id},ae==null?void 0:ae.name)})))))},k=Object(o.a)(function(p){var v=p.classroomList,_=p.loading,E=p.globalSetting,g=p.user;return{classroomList:v,globalSetting:E,loading:_.effects,user:g}})(C),w=R.a.Group,y=function(v){var _,E,g,j=v.classroomList,U=v.loading,S=v.user,z=v.exercise_id,H=z===void 0?null:z,M=v.homework_common_id,V=M===void 0?null:M,K=v.setitem,$=v.type,Z=v.dispatch,me=Object(t.useState)([{}]),oe=Object(F.a)(me,2),fe=oe[0],ye=oe[1],Ie=Object(t.useState)([]),ve=Object(F.a)(Ie,2),de=ve[0],Qe=ve[1];function Rt(){return Ee.apply(this,arguments)}function Ee(){return Ee=Object(I.a)(m.a.mark(function He(){var ke,ht,ie,xe,we;return m.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return ct.next=2,Object(a.a)("/api/ec_courses/".concat(0,"/ec_points/get_work_points.json"),{method:"get",params:{exercise_id:H,homework_common_id:V}});case 2:ht=ct.sent,(ht==null||((ke=ht.data)===null||ke===void 0)?void 0:ke.length)>0&&(we=[],ht==null||((ie=ht.data)===null||ie===void 0)||ie.map(function(vt){var Ut;vt==null||((Ut=vt.ec_point_ids)===null||Ut===void 0)||Ut.map(function(We){we.push(We)})}),K(Object(Y.a)(Object(Y.a)({},ht==null||((xe=ht.data)===null||xe===void 0)?void 0:xe[0]),{},{ec_point_ids:we})),ye(ht==null?void 0:ht.data));case 4:case"end":return ct.stop()}},He)})),Ee.apply(this,arguments)}Object(t.useEffect)(function(){var He,ke;S!=null&&(He=S.userInfo)!==null&&He!==void 0&&(ke=He.course)!==null&&ke!==void 0&&ke.course_school_id&&Me()},[S==null||((_=S.userInfo)===null||_===void 0||((E=_.course)===null||E===void 0))?void 0:E.course_school_id]);function Me(){return nt.apply(this,arguments)}function nt(){return nt=Object(I.a)(m.a.mark(function He(){var ke,ht,ie;return m.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,Object(a.a)("/api/schools/".concat(S==null||((ke=S.userInfo)===null||ke===void 0||((ht=ke.course)===null||ht===void 0))?void 0:ht.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:ie=we.sent,Qe(ie==null?void 0:ie.data),(V||H)&&Rt();case 5:case"end":return we.stop()}},He)})),nt.apply(this,arguments)}return console.log(fe),b.a.createElement("div",{style:{display:(g=S.userInfo.course)!==null&&g!==void 0&&g.is_openengineering?"":"none"}},b.a.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),fe==null?void 0:fe.map(function(He,ke){return b.a.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"}},b.a.createElement(k,{rz:de,item:He,type:ke,setitem:function(ie){fe.splice(ke,1,ie),ye(Object(B.a)(fe));var xe=[];fe==null||fe.map(function(we){var $e;we==null||(($e=we.ec_point_ids)===null||$e===void 0)||$e.map(function(ct){xe.push(ct)})}),K(Object(Y.a)(Object(Y.a)({},ie),{},{ec_point_ids:xe}))}}),ke!=0&&b.a.createElement(u.a,{onClick:function(){fe.splice(ke,1),ye(Object(B.a)(fe))},style:{marginLeft:10,fontSize:"20px"}}),b.a.createElement(f.a,{onClick:function(){fe.push({}),ye(Object(B.a)(fe))},style:{marginLeft:10,fontSize:"20px"}}))}))},h=J.a=Object(o.a)(function(p){var v=p.classroomList,_=p.loading,E=p.globalSetting,g=p.user;return{classroomList:v,globalSetting:E,loading:_.effects,user:g}})(y)},gut8:function(Be,J){var L={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Y=9;J.ContextCachedBy=L,J.WILL_BE_RESTORED=Y},h7HQ:function(Be,J,L){var Y=L("y+Vt"),B=L("T6xi"),I=Y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(F,T){B.buildPath(F,T,!0)}});Be.exports=I},hOwI:function(Be,J){var L=Math.log(2);function Y(I,F,T,R,P,m){var t=R+"-"+P,b=I.length;if(m.hasOwnProperty(t))return m[t];if(F===1){var o=Math.round(Math.log((1<B&&R>F||RT?P:0}Be.exports=L},iXp4:function(Be,J,L){var Y=L("ItGF"),B=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function I(F){return Y.browser.ie&&Y.browser.version>=11?function(){var T=this.__clipPaths,R=this.style,P;if(T)for(var m=0;mbt&&(fn=bt-tn),Object(T.useMemo)(function(){if(!Ce.length)return[0,0];for(var Rn=Ce.length,zn=Rn,cr=0;crKe+fn){zn=cr-1;break}}for(var jt=0,Qt=Rn-1;Qt>=0;Qt-=1){var Pn=De.get(Ce[Qt].key)||x;if(Pn[ot]1&&arguments[1]!==void 0?arguments[1]:!1,je=et&&typeof et.getBoundingClientRect=="function"&&et.getBoundingClientRect().width;if(je){if(rt){var ce=getComputedStyle(et),Ce=ce.marginLeft,ge=ce.marginRight;je+=+Ce.replace("px","")+ +ge.replace("px","")}je=+je.toFixed(6)}return je||0},we=function(et,rt,je){et&&Object(U.a)(et.style)==="object"&&(et.style[rt]=je)},$e=function(){return Ee.any},ct=L("bdgK"),vt=L("i8i4"),Ut=L.n(vt),We=L("wgJM"),kt=L("l4aY"),Zt=L("m+aA"),Le=L("c+Xe"),Ae=L("zT1h"),ut=L("QC+M");function _t(De,et,rt){return rt?De[0]===et[0]:De[0]===et[0]&&De[1]===et[1]}function Je(De,et,rt){var je=De[et]||{};return Object(F.a)(Object(F.a)({},je),rt)}function dt(De,et,rt,je){for(var ce=rt.points,Ce=Object.keys(De),ge=0;ge1&&arguments[1]!==void 0?arguments[1]:2;et();var Ce=Object(We.a)(function(){ce<=1?je({isCanceled:function(){return Ce!==De.current}}):rt(je,ce-1)});De.current=Ce}return T.useEffect(function(){return function(){et()}},[]),[rt,et]},vn=[yt,Gt,Jt,Ge],tr=!1,Hn=!0;function wn(De){return De===Jt||De===Ge}var xr=function(De,et){var rt=T.useState(Nt),je=Object(B.a)(rt,2),ce=je[0],Ce=je[1],ge=sn(),Ue=Object(B.a)(ge,2),Ye=Ue[0],ot=Ue[1];function Ke(){Ce(yt)}return Wt(function(){if(ce!==Nt&&ce!==Ge){var bt=vn.indexOf(ce),Bt=vn[bt+1],tn=et(ce);tn===tr?Ce(Bt):Ye(function(fn){function Rn(){if(fn.isCanceled())return;Ce(Bt)}tn===!0?Rn():Promise.resolve(tn).then(Rn)})}},[De,ce]),T.useEffect(function(){return function(){ot()}},[]),[Ke,ce]},Er=function(De){var et=Object(T.useRef)(),rt=Object(T.useRef)(De);rt.current=De;var je=T.useCallback(function(ge){rt.current(ge)},[]);function ce(ge){ge&&(ge.removeEventListener(Kt,je),ge.removeEventListener(gt,je))}function Ce(ge){et.current&&et.current!==ge&&ce(et.current),ge&&ge!==et.current&&(ge.addEventListener(Kt,je),ge.addEventListener(gt,je),et.current=ge)}return T.useEffect(function(){return function(){ce(et.current)}},[]),[Ce,ce]};function rr(De,et,rt,je){var ce=je.motionEnter,Ce=ce===void 0?!0:ce,ge=je.motionAppear,Ue=ge===void 0?!0:ge,Ye=je.motionLeave,ot=Ye===void 0?!0:Ye,Ke=je.motionDeadline,bt=je.motionLeaveImmediately,Bt=je.onAppearPrepare,tn=je.onEnterPrepare,fn=je.onLeavePrepare,Rn=je.onAppearStart,zn=je.onEnterStart,cr=je.onLeaveStart,an=je.onAppearActive,jt=je.onEnterActive,Qt=je.onLeaveActive,Pn=je.onAppearEnd,xn=je.onEnterEnd,vr=je.onLeaveEnd,qn=je.onVisibleChanged,Sr=lt(),or=Object(B.a)(Sr,2),mn=or[0],Mn=or[1],gr=lt(At),Or=Object(B.a)(gr,2),Qn=Or[0],Pr=Or[1],$r=lt(null),Ir=Object(B.a)($r,2),Br=Ir[0],Ur=Ir[1],jr=Object(T.useRef)(!1),Nr=Object(T.useRef)(null),fr=Object(T.useRef)(!1),la=Object(T.useRef)(null);function Qa(){var Qr=rt();return Qr||la.current}var ja=Object(T.useRef)(!1);function Ca(Qr){var zr=Qa();if(Qr&&!Qr.deadline&&Qr.target!==zr)return;var ba;Qn===ft&&ja.current?ba=Pn==null?void 0:Pn(zr,Qr):Qn===be&&ja.current?ba=xn==null?void 0:xn(zr,Qr):Qn===Fe&&ja.current&&(ba=vr==null?void 0:vr(zr,Qr)),ba!==!1&&!fr.current&&(Pr(At),Ur(null))}var qr=Er(Ca),Vr=Object(B.a)(qr,1),Xr=Vr[0],ea=T.useMemo(function(){var Qr,zr,ba;switch(Qn){case"appear":return Qr={},Object(Y.a)(Qr,yt,Bt),Object(Y.a)(Qr,Gt,Rn),Object(Y.a)(Qr,Jt,an),Qr;case"enter":return zr={},Object(Y.a)(zr,yt,tn),Object(Y.a)(zr,Gt,zn),Object(Y.a)(zr,Jt,jt),zr;case"leave":return ba={},Object(Y.a)(ba,yt,fn),Object(Y.a)(ba,Gt,cr),Object(Y.a)(ba,Jt,Qt),ba;default:return{}}},[Qn]),Ua=xr(Qn,function(Qr){if(Qr===yt){var zr=ea[yt];return zr?zr(Qa()):tr}if(Yr in ea){var ba;Ur(((ba=ea[Yr])===null||ba===void 0?void 0:ba.call(ea,Qa(),null))||null)}return Yr===Jt&&(Xr(Qa()),Ke>0&&(clearTimeout(Nr.current),Nr.current=setTimeout(function(){Ca({deadline:!0})},Ke))),Hn}),hi=Object(B.a)(Ua,2),si=hi[0],Yr=hi[1],Ja=wn(Yr);ja.current=Ja,Wt(function(){Mn(et);var Qr=jr.current;if(jr.current=!0,!De)return;var zr;!Qr&&et&&Ue&&(zr=ft),Qr&&et&&Ce&&(zr=be),(Qr&&!et&&ot||!Qr&&bt&&!et&&ot)&&(zr=Fe),zr&&(Pr(zr),si())},[et]),Object(T.useEffect)(function(){(Qn===ft&&!Ue||Qn===be&&!Ce||Qn===Fe&&!ot)&&Pr(At)},[Ue,Ce,ot]),Object(T.useEffect)(function(){return function(){clearTimeout(Nr.current),fr.current=!0}},[]),Object(T.useEffect)(function(){mn!==void 0&&Qn===At&&(qn==null||qn(mn))},[mn,Qn]);var Za=Br;return ea[yt]&&Yr===Gt&&(Za=Object(F.a)({transition:"none"},Za)),[Qn,Yr,Za,mn!=null?mn:et]}var ur=function(De){Object(h.a)(rt,De);var et=Object(p.a)(rt);function rt(){return Object(k.a)(this,rt),et.apply(this,arguments)}return Object(w.a)(rt,[{key:"render",value:function(){return this.props.children}}]),rt}(T.Component),Ar=ur;function Kr(De){var et=De;Object(U.a)(De)==="object"&&(et=De.transitionSupport);function rt(ce){return!!(ce.motionName&&et)}var je=T.forwardRef(function(ce,Ce){var ge=ce.visible,Ue=ge===void 0?!0:ge,Ye=ce.removeOnLeave,ot=Ye===void 0?!0:Ye,Ke=ce.forceRender,bt=ce.children,Bt=ce.motionName,tn=ce.leavedClassName,fn=ce.eventProps,Rn=rt(ce),zn=Object(T.useRef)(),cr=Object(T.useRef)();function an(){try{return Object(Zt.a)(zn.current||cr.current)}catch(Pr){return null}}var jt=rr(Rn,Ue,an,ce),Qt=Object(B.a)(jt,4),Pn=Qt[0],xn=Qt[1],vr=Qt[2],qn=Qt[3],Sr=T.useRef(qn);qn&&(Sr.current=!0);var or=Object(T.useRef)(Ce);or.current=Ce;var mn=T.useCallback(function(Pr){zn.current=Pr,Object(Le.b)(or.current,Pr)},[]),Mn,gr=Object(F.a)(Object(F.a)({},fn),{},{visible:Ue});if(!bt)Mn=null;else if(Pn===At||!rt(ce))qn?Mn=bt(Object(F.a)({},gr),mn):!ot&&Sr.current?Mn=bt(Object(F.a)(Object(F.a)({},gr),{},{className:tn}),mn):Ke?Mn=bt(Object(F.a)(Object(F.a)({},gr),{},{style:{display:"none"}}),mn):Mn=null;else{var Or,Qn;xn===yt?Qn="prepare":wn(xn)?Qn="active":xn===Gt&&(Qn="start"),Mn=bt(Object(F.a)(Object(F.a)({},gr),{},{className:P()(Ot(Bt,Pn),(Or={},Object(Y.a)(Or,Ot(Bt,"".concat(Pn,"-").concat(Qn)),Qn),Object(Y.a)(Or,Bt,typeof Bt=="string"),Or)),style:vr}),mn)}return T.createElement(Ar,{ref:cr},Mn)});return je.displayName="CSSMotion",je}var ra=Kr(on),pn="add",sr="keep",sa="remove",ya="removed";function Jr(De){var et;return De&&Object(U.a)(De)==="object"&&"key"in De?et=De:et={key:De},Object(F.a)(Object(F.a)({},et),{},{key:String(et.key)})}function na(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return De.map(Jr)}function te(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=[],je=0,ce=et.length,Ce=na(De),ge=na(et);Ce.forEach(function(ot){for(var Ke=!1,bt=je;bt1});return Ye.forEach(function(ot){rt=rt.filter(function(Ke){var bt=Ke.key,Bt=Ke.status;return bt!==ot||Bt!==sa}),rt.forEach(function(Ke){Ke.key===ot&&(Ke.status=sr)})}),rt}var W=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function G(De){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ra,rt=function(je){Object(h.a)(Ce,je);var ce=Object(p.a)(Ce);function Ce(){var ge;return Object(k.a)(this,Ce),ge=ce.apply(this,arguments),ge.state={keyEntities:[]},ge.removeKey=function(Ue){ge.setState(function(Ye){var ot=Ye.keyEntities;return{keyEntities:ot.map(function(Ke){return Ke.key!==Ue?Ke:Object(F.a)(Object(F.a)({},Ke),{},{status:ya})})}})},ge}return Object(w.a)(Ce,[{key:"render",value:function(){var Ue=this,Ye=this.state.keyEntities,ot=this.props,Ke=ot.component,bt=ot.children,Bt=ot.onVisibleChanged,tn=Object(I.a)(ot,["component","children","onVisibleChanged"]),fn=Ke||T.Fragment,Rn={};return W.forEach(function(zn){Rn[zn]=tn[zn],delete tn[zn]}),delete tn.keys,T.createElement(fn,tn,Ye.map(function(zn){var cr=zn.status,an=Object(I.a)(zn,["status"]),jt=cr===pn||cr===sr;return T.createElement(et,Object(C.a)({},Rn,{key:an.key,visible:jt,eventProps:an,onVisibleChanged:function(Pn){Bt==null||Bt(Pn,{key:an.key}),Pn||Ue.removeKey(an.key)}}),bt)}))}}],[{key:"getDerivedStateFromProps",value:function(Ue,Ye){var ot=Ue.keys,Ke=Ye.keyEntities,bt=na(ot),Bt=te(Ke,bt);return{keyEntities:Bt.filter(function(tn){var fn=Ke.find(function(Rn){var zn=Rn.key;return tn.key===zn});return!(fn&&fn.status===ya&&tn.status===sa)})}}}]),Ce}(T.Component);return rt.defaultProps={component:"div"},rt}var Q=G(on),ue=ra;function ee(De){var et=De.prefixCls,rt=De.motion,je=De.animation,ce=De.transitionName;return rt||(je?{motionName:"".concat(et,"-").concat(je)}:ce?{motionName:ce}:null)}function qe(De){var et=De.prefixCls,rt=De.visible,je=De.zIndex,ce=De.mask,Ce=De.maskMotion,ge=De.maskAnimation,Ue=De.maskTransitionName;if(!ce)return null;var Ye={};return(Ce||Ue||ge)&&(Ye=Object(F.a)({motionAppear:!0},ee({motion:Ce,prefixCls:et,transitionName:Ue,animation:ge}))),T.createElement(ue,Object(C.a)({},Ye,{visible:rt,removeOnLeave:!0}),function(ot){var Ke=ot.className;return T.createElement("div",{style:{zIndex:je},className:P()("".concat(et,"-mask"),Ke)})})}var en=L("9mu1"),An=L("o0o1"),Vn=L.n(An),ln=L("HaE+"),nr=["measure","align",null,"motion"],yn=function(De,et){var rt=Object(T.useState)(null),je=Object(B.a)(rt,2),ce=je[0],Ce=je[1],ge=Object(T.useRef)(),Ue=Object(T.useRef)(!1);function Ye(bt){Ue.current||Ce(bt)}function ot(){We.a.cancel(ge.current)}function Ke(bt){ot(),ge.current=Object(We.a)(function(){Ye(function(Bt){switch(ce){case"align":return"motion";case"motion":return"stable";default:}return Bt}),bt==null||bt()})}return Object(T.useEffect)(function(){Ye("measure")},[De]),Object(T.useEffect)(function(){switch(ce){case"measure":et();break;default:}ce&&(ge.current=Object(We.a)(Object(ln.a)(Vn.a.mark(function bt(){var Bt,tn;return Vn.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:Bt=nr.indexOf(ce),tn=nr[Bt+1],tn&&Bt!==-1&&Ye(tn);case 3:case"end":return Rn.stop()}},bt)}))))},[ce]),Object(T.useEffect)(function(){return function(){Ue.current=!0,ot()}},[]),[ce,Ke]},un=function(De){var et=T.useState({width:0,height:0}),rt=Object(B.a)(et,2),je=rt[0],ce=rt[1];function Ce(Ue){ce({width:Ue.offsetWidth,height:Ue.offsetHeight})}var ge=T.useMemo(function(){var Ue={};if(De){var Ye=je.width,ot=je.height;De.indexOf("height")!==-1&&ot?Ue.height=ot:De.indexOf("minHeight")!==-1&&ot&&(Ue.minHeight=ot),De.indexOf("width")!==-1&&Ye?Ue.width=Ye:De.indexOf("minWidth")!==-1&&Ye&&(Ue.minWidth=Ye)}return Ue},[De,je]);return[ge,Ce]},Cn=T.forwardRef(function(De,et){var rt=De.visible,je=De.prefixCls,ce=De.className,Ce=De.style,ge=De.children,Ue=De.zIndex,Ye=De.stretch,ot=De.destroyPopupOnHide,Ke=De.forceRender,bt=De.align,Bt=De.point,tn=De.getRootDomNode,fn=De.getClassNameFromAlign,Rn=De.onAlign,zn=De.onMouseEnter,cr=De.onMouseLeave,an=De.onMouseDown,jt=De.onTouchStart,Qt=Object(T.useRef)(),Pn=Object(T.useRef)(),xn=Object(T.useState)(),vr=Object(B.a)(xn,2),qn=vr[0],Sr=vr[1],or=un(Ye),mn=Object(B.a)(or,2),Mn=mn[0],gr=mn[1];function Or(){Ye&&gr(tn())}var Qn=yn(rt,Or),Pr=Object(B.a)(Qn,2),$r=Pr[0],Ir=Pr[1],Br=Object(T.useRef)();function Ur(){return Bt||tn}function jr(){var qr;(qr=Qt.current)===null||qr===void 0||qr.forceAlign()}function Nr(qr,Vr){var Xr=fn(Vr);qn!==Xr&&Sr(Xr),$r==="align"&&(qn!==Xr?Promise.resolve().then(function(){jr()}):Ir(function(){var ea;(ea=Br.current)===null||ea===void 0||ea.call(Br)}),Rn==null||Rn(qr,Vr))}var fr=Object(F.a)({},ee(De));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(qr){var Vr=fr[qr];fr[qr]=function(Xr,ea){return Ir(),Vr==null?void 0:Vr(Xr,ea)}});function la(){return new Promise(function(qr){Br.current=qr})}T.useEffect(function(){!fr.motionName&&$r==="motion"&&Ir()},[fr.motionName,$r]),T.useImperativeHandle(et,function(){return{forceAlign:jr,getElement:function(){return Pn.current}}});var Qa=Object(F.a)(Object(F.a)({},Mn),{},{zIndex:Ue,opacity:$r==="motion"||$r==="stable"||!rt?void 0:0,pointerEvents:$r==="stable"?void 0:"none"},Ce),ja=!0;(bt==null?void 0:bt.points)&&($r==="align"||$r==="stable")&&(ja=!1);var Ca=ge;return T.Children.count(ge)>1&&(Ca=T.createElement("div",{className:"".concat(je,"-content")},ge)),T.createElement(ue,Object(C.a)({visible:rt,ref:Pn,leavedClassName:"".concat(je,"-hidden")},fr,{onAppearPrepare:la,onEnterPrepare:la,removeOnLeave:ot,forceRender:Ke}),function(qr,Vr){var Xr=qr.className,ea=qr.style,Ua=P()(je,ce,qn,Xr);return T.createElement(en.a,{target:Ur(),key:"popup",ref:Qt,monitorWindowResize:!0,disabled:ja,align:bt,onAlign:Nr},T.createElement("div",{ref:Vr,className:Ua,onMouseEnter:zn,onMouseLeave:cr,onMouseDownCapture:an,onTouchStartCapture:jt,style:Object(F.a)(Object(F.a)({},ea),Qa)},Ca))})});Cn.displayName="PopupInner";var kn=Cn,dr=T.forwardRef(function(De,et){var rt=De.prefixCls,je=De.visible,ce=De.zIndex,Ce=De.children,ge=De.mobile;ge=ge===void 0?{}:ge;var Ue=ge.popupClassName,Ye=ge.popupStyle,ot=ge.popupMotion,Ke=ot===void 0?{}:ot,bt=ge.popupRender,Bt=T.useRef();T.useImperativeHandle(et,function(){return{forceAlign:function(){},getElement:function(){return Bt.current}}});var tn=Object(F.a)({zIndex:ce},Ye),fn=Ce;return T.Children.count(Ce)>1&&(fn=T.createElement("div",{className:"".concat(rt,"-content")},Ce)),bt&&(fn=bt(fn)),T.createElement(ue,Object(C.a)({visible:je,ref:Bt,removeOnLeave:!0},Ke),function(Rn,zn){var cr=Rn.className,an=Rn.style,jt=P()(rt,Ue,cr);return T.createElement("div",{ref:zn,className:jt,style:Object(F.a)(Object(F.a)({},an),tn)},fn)})});dr.displayName="MobilePopupInner";var $n=dr,Zn=["visible","mobile"],In=T.forwardRef(function(De,et){var rt=De.visible,je=De.mobile,ce=Object(I.a)(De,Zn),Ce=Object(T.useState)(rt),ge=Object(B.a)(Ce,2),Ue=ge[0],Ye=ge[1],ot=Object(T.useState)(!1),Ke=Object(B.a)(ot,2),bt=Ke[0],Bt=Ke[1],tn=Object(F.a)(Object(F.a)({},ce),{},{visible:Ue});Object(T.useEffect)(function(){Ye(rt),rt&&je&&Bt(Ne())},[rt,je]);var fn=bt?T.createElement($n,Object(C.a)({},tn,{mobile:je,ref:et})):T.createElement(kn,Object(C.a)({},tn,{ref:et}));return T.createElement("div",null,T.createElement(qe,tn),fn)});In.displayName="Popup";var mr=In,Fn=T.createContext(null),ar=Fn;function Gn(){}function Wn(){return""}function Rr(De){return De?De.ownerDocument:window.document}var Tr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function br(De){var et=function(rt){Object(h.a)(ce,rt);var je=Object(p.a)(ce);function ce(Ce){var ge;Object(k.a)(this,ce),ge=je.call(this,Ce),ge.popupRef=T.createRef(),ge.triggerRef=T.createRef(),ge.attachId=void 0,ge.clickOutsideHandler=void 0,ge.touchOutsideHandler=void 0,ge.contextMenuOutsideHandler1=void 0,ge.contextMenuOutsideHandler2=void 0,ge.mouseDownTimeout=void 0,ge.focusTime=void 0,ge.preClickTime=void 0,ge.preTouchTime=void 0,ge.delayTimer=void 0,ge.hasPopupMouseDown=void 0,ge.onMouseEnter=function(Ye){var ot=ge.props.mouseEnterDelay;ge.fireEvents("onMouseEnter",Ye),ge.delaySetPopupVisible(!0,ot,ot?null:Ye)},ge.onMouseMove=function(Ye){ge.fireEvents("onMouseMove",Ye),ge.setPoint(Ye)},ge.onMouseLeave=function(Ye){ge.fireEvents("onMouseLeave",Ye),ge.delaySetPopupVisible(!1,ge.props.mouseLeaveDelay)},ge.onPopupMouseEnter=function(){ge.clearDelayTimer()},ge.onPopupMouseLeave=function(Ye){var ot;if(Ye.relatedTarget&&!Ye.relatedTarget.setTimeout&&Object(kt.a)((ot=ge.popupRef.current)===null||ot===void 0?void 0:ot.getElement(),Ye.relatedTarget))return;ge.delaySetPopupVisible(!1,ge.props.mouseLeaveDelay)},ge.onFocus=function(Ye){ge.fireEvents("onFocus",Ye),ge.clearDelayTimer(),ge.isFocusToShow()&&(ge.focusTime=Date.now(),ge.delaySetPopupVisible(!0,ge.props.focusDelay))},ge.onMouseDown=function(Ye){ge.fireEvents("onMouseDown",Ye),ge.preClickTime=Date.now()},ge.onTouchStart=function(Ye){ge.fireEvents("onTouchStart",Ye),ge.preTouchTime=Date.now()},ge.onBlur=function(Ye){ge.fireEvents("onBlur",Ye),ge.clearDelayTimer(),ge.isBlurToHide()&&ge.delaySetPopupVisible(!1,ge.props.blurDelay)},ge.onContextMenu=function(Ye){Ye.preventDefault(),ge.fireEvents("onContextMenu",Ye),ge.setPopupVisible(!0,Ye)},ge.onContextMenuClose=function(){ge.isContextMenuToShow()&&ge.close()},ge.onClick=function(Ye){if(ge.fireEvents("onClick",Ye),ge.focusTime){var ot;if(ge.preClickTime&&ge.preTouchTime?ot=Math.min(ge.preClickTime,ge.preTouchTime):ge.preClickTime?ot=ge.preClickTime:ge.preTouchTime&&(ot=ge.preTouchTime),Math.abs(ot-ge.focusTime)<20)return;ge.focusTime=0}ge.preClickTime=0,ge.preTouchTime=0,ge.isClickToShow()&&(ge.isClickToHide()||ge.isBlurToHide())&&Ye&&Ye.preventDefault&&Ye.preventDefault();var Ke=!ge.state.popupVisible;(ge.isClickToHide()&&!Ke||Ke&&ge.isClickToShow())&&ge.setPopupVisible(!ge.state.popupVisible,Ye)},ge.onPopupMouseDown=function(){if(ge.hasPopupMouseDown=!0,clearTimeout(ge.mouseDownTimeout),ge.mouseDownTimeout=window.setTimeout(function(){ge.hasPopupMouseDown=!1},0),ge.context){var Ye;(Ye=ge.context).onPopupMouseDown.apply(Ye,arguments)}},ge.onDocumentClick=function(Ye){if(ge.props.mask&&!ge.props.maskClosable)return;var ot=Ye.target,Ke=ge.getRootDomNode(),bt=ge.getPopupDomNode();(!Object(kt.a)(Ke,ot)||ge.isContextMenuOnly())&&!Object(kt.a)(bt,ot)&&!ge.hasPopupMouseDown&&ge.close()},ge.getRootDomNode=function(){var Ye=ge.props.getTriggerDOMNode;if(Ye)return Ye(ge.triggerRef.current);try{var ot=Object(Zt.a)(ge.triggerRef.current);if(ot)return ot}catch(Ke){}return Ut.a.findDOMNode(Object(y.a)(ge))},ge.getPopupClassNameFromAlign=function(Ye){var ot=[],Ke=ge.props,bt=Ke.popupPlacement,Bt=Ke.builtinPlacements,tn=Ke.prefixCls,fn=Ke.alignPoint,Rn=Ke.getPopupClassNameFromAlign;return bt&&Bt&&ot.push(dt(Bt,tn,Ye,fn)),Rn&&ot.push(Rn(Ye)),ot.join(" ")},ge.getComponent=function(){var Ye=ge.props,ot=Ye.prefixCls,Ke=Ye.destroyPopupOnHide,bt=Ye.popupClassName,Bt=Ye.onPopupAlign,tn=Ye.popupMotion,fn=Ye.popupAnimation,Rn=Ye.popupTransitionName,zn=Ye.popupStyle,cr=Ye.mask,an=Ye.maskAnimation,jt=Ye.maskTransitionName,Qt=Ye.maskMotion,Pn=Ye.zIndex,xn=Ye.popup,vr=Ye.stretch,qn=Ye.alignPoint,Sr=Ye.mobile,or=Ye.forceRender,mn=ge.state,Mn=mn.popupVisible,gr=mn.point,Or=ge.getPopupAlign(),Qn={};return ge.isMouseEnterToShow()&&(Qn.onMouseEnter=ge.onPopupMouseEnter),ge.isMouseLeaveToHide()&&(Qn.onMouseLeave=ge.onPopupMouseLeave),Qn.onMouseDown=ge.onPopupMouseDown,Qn.onTouchStart=ge.onPopupMouseDown,T.createElement(mr,Object(C.a)({prefixCls:ot,destroyPopupOnHide:Ke,visible:Mn,point:qn&&gr,className:bt,align:Or,onAlign:Bt,animation:fn,getClassNameFromAlign:ge.getPopupClassNameFromAlign},Qn,{stretch:vr,getRootDomNode:ge.getRootDomNode,style:zn,mask:cr,zIndex:Pn,transitionName:Rn,maskAnimation:an,maskTransitionName:jt,maskMotion:Qt,ref:ge.popupRef,motion:tn,mobile:Sr,forceRender:or}),typeof xn=="function"?xn():xn)},ge.attachParent=function(Ye){We.a.cancel(ge.attachId);var ot=ge.props,Ke=ot.getPopupContainer,bt=ot.getDocument,Bt=ge.getRootDomNode(),tn;Ke?(Bt||Ke.length===0)&&(tn=Ke(Bt)):tn=bt(ge.getRootDomNode()).body,tn?tn.appendChild(Ye):ge.attachId=Object(We.a)(function(){ge.attachParent(Ye)})},ge.getContainer=function(){var Ye=ge.props.getDocument,ot=Ye(ge.getRootDomNode()).createElement("div");return ot.style.position="absolute",ot.style.top="0",ot.style.left="0",ot.style.width="100%",ge.attachParent(ot),ot},ge.setPoint=function(Ye){var ot=ge.props.alignPoint;if(!ot||!Ye)return;ge.setState({point:{pageX:Ye.pageX,pageY:Ye.pageY}})},ge.handlePortalUpdate=function(){ge.state.prevPopupVisible!==ge.state.popupVisible&&ge.props.afterPopupVisibleChange(ge.state.popupVisible)},ge.triggerContextValue={onPopupMouseDown:ge.onPopupMouseDown};var Ue;return"popupVisible"in Ce?Ue=!!Ce.popupVisible:Ue=!!Ce.defaultPopupVisible,ge.state={prevPopupVisible:Ue,popupVisible:Ue},Tr.forEach(function(Ye){ge["fire".concat(Ye)]=function(ot){ge.fireEvents(Ye,ot)}}),ge}return Object(w.a)(ce,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ge=this.props,Ue=this.state;if(Ue.popupVisible){var Ye;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ye=ge.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ae.a)(Ye,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ye=Ye||ge.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ae.a)(Ye,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ye=Ye||ge.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ae.a)(Ye,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ae.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),We.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var ge;return((ge=this.popupRef.current)===null||ge===void 0?void 0:ge.getElement())||null}},{key:"getPopupAlign",value:function(){var ge=this.props,Ue=ge.popupPlacement,Ye=ge.popupAlign,ot=ge.builtinPlacements;return Ue&&ot?Je(ot,Ue,Ye):Ye}},{key:"setPopupVisible",value:function(ge,Ue){var Ye=this.props.alignPoint,ot=this.state.popupVisible;this.clearDelayTimer(),ot!==ge&&("popupVisible"in this.props||this.setState({popupVisible:ge,prevPopupVisible:ot}),this.props.onPopupVisibleChange(ge)),Ye&&Ue&&ge&&this.setPoint(Ue)}},{key:"delaySetPopupVisible",value:function(ge,Ue,Ye){var ot=this,Ke=Ue*1e3;if(this.clearDelayTimer(),Ke){var bt=Ye?{pageX:Ye.pageX,pageY:Ye.pageY}:null;this.delayTimer=window.setTimeout(function(){ot.setPopupVisible(ge,bt),ot.clearDelayTimer()},Ke)}else this.setPopupVisible(ge,Ye)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(ge){var Ue=this.props.children.props,Ye=this.props;return Ue[ge]&&Ye[ge]?this["fire".concat(ge)]:Ue[ge]||Ye[ge]}},{key:"isClickToShow",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.showAction;return Ue.indexOf("click")!==-1||Ye.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var ge=this.props.action;return ge==="contextMenu"||ge.length===1&&ge[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.showAction;return Ue.indexOf("contextMenu")!==-1||Ye.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.hideAction;return Ue.indexOf("click")!==-1||Ye.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.showAction;return Ue.indexOf("hover")!==-1||Ye.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.hideAction;return Ue.indexOf("hover")!==-1||Ye.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.showAction;return Ue.indexOf("focus")!==-1||Ye.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.hideAction;return Ue.indexOf("focus")!==-1||Ye.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var ge;(ge=this.popupRef.current)===null||ge===void 0||ge.forceAlign()}}},{key:"fireEvents",value:function(ge,Ue){var Ye=this.props.children.props[ge];Ye&&Ye(Ue);var ot=this.props[ge];ot&&ot(Ue)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var ge=this.state.popupVisible,Ue=this.props,Ye=Ue.children,ot=Ue.forceRender,Ke=Ue.alignPoint,bt=Ue.className,Bt=Ue.autoDestroy,tn=T.Children.only(Ye),fn={key:"trigger"};this.isContextMenuToShow()?fn.onContextMenu=this.onContextMenu:fn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(fn.onClick=this.onClick,fn.onMouseDown=this.onMouseDown,fn.onTouchStart=this.onTouchStart):(fn.onClick=this.createTwoChains("onClick"),fn.onMouseDown=this.createTwoChains("onMouseDown"),fn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(fn.onMouseEnter=this.onMouseEnter,Ke&&(fn.onMouseMove=this.onMouseMove)):fn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?fn.onMouseLeave=this.onMouseLeave:fn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(fn.onFocus=this.onFocus,fn.onBlur=this.onBlur):(fn.onFocus=this.createTwoChains("onFocus"),fn.onBlur=this.createTwoChains("onBlur"));var Rn=P()(tn&&tn.props&&tn.props.className,bt);Rn&&(fn.className=Rn);var zn=Object(F.a)({},fn);Object(Le.c)(tn)&&(zn.ref=Object(Le.a)(this.triggerRef,tn.ref));var cr=T.cloneElement(tn,zn),an;return(ge||this.popupRef.current||ot)&&(an=T.createElement(De,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!ge&&Bt&&(an=null),T.createElement(ar.Provider,{value:this.triggerContextValue},cr,an)}}],[{key:"getDerivedStateFromProps",value:function(ge,Ue){var Ye=ge.popupVisible,ot={};return Ye!==void 0&&Ue.popupVisible!==Ye&&(ot.popupVisible=Ye,ot.prevPopupVisible=Ue.popupVisible),ot}}]),ce}(T.Component);return et.contextType=ar,et.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Wn,getDocument:Rr,onPopupVisibleChange:Gn,afterPopupVisibleChange:Gn,onPopupAlign:Gn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},et}var wr=br(ut.a),ne={adjustX:1,adjustY:1},Re={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}},Xe={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}},Pe=Re,st=0,Ze={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pt=function(et,rt,je){var ce=He(rt),Ce=et.getState();et.setState({defaultActiveFirst:Object(F.a)(Object(F.a)({},Ce.defaultActiveFirst),{},Object(Y.a)({},ce,je))})},mt=function(De){Object(h.a)(rt,De);var et=Object(p.a)(rt);function rt(je){var ce;Object(k.a)(this,rt),ce=et.call(this,je),ce.onDestroy=function(Ke){ce.props.onDestroy(Ke)},ce.onKeyDown=function(Ke){var bt=Ke.keyCode,Bt=ce.menuInstance,tn=ce.props.store,fn=ce.getVisible();if(bt===d.a.ENTER)return ce.onTitleClick(Ke),pt(tn,ce.props.eventKey,!0),!0;if(bt===d.a.RIGHT)return fn?Bt.onKeyDown(Ke):(ce.triggerOpenChange(!0),pt(tn,ce.props.eventKey,!0)),!0;if(bt===d.a.LEFT){var Rn;if(fn)Rn=Bt.onKeyDown(Ke);else return;return Rn||(ce.triggerOpenChange(!1),Rn=!0),Rn}return fn&&(bt===d.a.UP||bt===d.a.DOWN)?Bt.onKeyDown(Ke):void 0},ce.onOpenChange=function(Ke){ce.props.onOpenChange(Ke)},ce.onPopupVisibleChange=function(Ke){ce.triggerOpenChange(Ke,Ke?"mouseenter":"mouseleave")},ce.onMouseEnter=function(Ke){var bt=ce.props,Bt=bt.eventKey,tn=bt.onMouseEnter,fn=bt.store;pt(fn,ce.props.eventKey,!1),tn({key:Bt,domEvent:Ke})},ce.onMouseLeave=function(Ke){var bt=ce.props,Bt=bt.parentMenu,tn=bt.eventKey,fn=bt.onMouseLeave;Bt.subMenuInstance=Object(y.a)(ce),fn({key:tn,domEvent:Ke})},ce.onTitleMouseEnter=function(Ke){var bt=ce.props,Bt=bt.eventKey,tn=bt.onItemHover,fn=bt.onTitleMouseEnter;tn({key:Bt,hover:!0}),fn({key:Bt,domEvent:Ke})},ce.onTitleMouseLeave=function(Ke){var bt=ce.props,Bt=bt.parentMenu,tn=bt.eventKey,fn=bt.onItemHover,Rn=bt.onTitleMouseLeave;Bt.subMenuInstance=Object(y.a)(ce),fn({key:tn,hover:!1}),Rn({key:tn,domEvent:Ke})},ce.onTitleClick=function(Ke){var bt=Object(y.a)(ce),Bt=bt.props;if(Bt.onTitleClick({key:Bt.eventKey,domEvent:Ke}),Bt.triggerSubMenuAction==="hover")return;ce.triggerOpenChange(!ce.getVisible(),"click"),pt(Bt.store,ce.props.eventKey,!1)},ce.onSubMenuClick=function(Ke){typeof ce.props.onClick=="function"&&ce.props.onClick(ce.addKeyPath(Ke))},ce.onSelect=function(Ke){ce.props.onSelect(Ke)},ce.onDeselect=function(Ke){ce.props.onDeselect(Ke)},ce.getPrefixCls=function(){return"".concat(ce.props.rootPrefixCls,"-submenu")},ce.getActiveClassName=function(){return"".concat(ce.getPrefixCls(),"-active")},ce.getDisabledClassName=function(){return"".concat(ce.getPrefixCls(),"-disabled")},ce.getSelectedClassName=function(){return"".concat(ce.getPrefixCls(),"-selected")},ce.getOpenClassName=function(){return"".concat(ce.props.rootPrefixCls,"-submenu-open")},ce.getVisible=function(){return ce.state.isOpen},ce.getMode=function(){return ce.state.mode},ce.saveMenuInstance=function(Ke){ce.menuInstance=Ke},ce.addKeyPath=function(Ke){return Object(F.a)(Object(F.a)({},Ke),{},{keyPath:(Ke.keyPath||[]).concat(ce.props.eventKey)})},ce.triggerOpenChange=function(Ke,bt){var Bt=ce.props.eventKey,tn=function(){ce.onOpenChange({key:Bt,item:Object(y.a)(ce),trigger:bt,open:Ke})};bt==="mouseenter"?ce.mouseenterTimeout=setTimeout(function(){tn()},0):tn()},ce.isChildrenSelected=function(){var Ke={find:!1};return ht(ce.props.children,ce.props.selectedKeys,Ke),Ke.find},ce.isInlineMode=function(){return ce.getMode()==="inline"},ce.adjustWidth=function(){if(!ce.subMenuTitle||!ce.menuInstance)return;var Ke=vt.findDOMNode(ce.menuInstance);if(Ke.offsetWidth>=ce.subMenuTitle.offsetWidth)return;Ke.style.minWidth="".concat(ce.subMenuTitle.offsetWidth,"px")},ce.saveSubMenuTitle=function(Ke){ce.subMenuTitle=Ke},ce.getBaseProps=function(){var Ke=Object(y.a)(ce),bt=Ke.props,Bt=ce.getMode();return{mode:Bt==="horizontal"?"vertical":Bt,visible:ce.getVisible(),level:bt.level+1,inlineIndent:bt.inlineIndent,focusable:!1,onClick:ce.onSubMenuClick,onSelect:ce.onSelect,onDeselect:ce.onDeselect,onDestroy:ce.onDestroy,selectedKeys:bt.selectedKeys,eventKey:"".concat(bt.eventKey,"-menu-"),openKeys:bt.openKeys,motion:bt.motion,onOpenChange:ce.onOpenChange,subMenuOpenDelay:bt.subMenuOpenDelay,parentMenu:Object(y.a)(ce),subMenuCloseDelay:bt.subMenuCloseDelay,forceSubMenuRender:bt.forceSubMenuRender,triggerSubMenuAction:bt.triggerSubMenuAction,builtinPlacements:bt.builtinPlacements,defaultActiveFirst:bt.store.getState().defaultActiveFirst[He(bt.eventKey)],multiple:bt.multiple,prefixCls:bt.rootPrefixCls,id:ce.internalMenuId,manualRef:ce.saveMenuInstance,itemIcon:bt.itemIcon,expandIcon:bt.expandIcon,direction:bt.direction}},ce.getMotion=function(Ke,bt){var Bt=Object(y.a)(ce),tn=Bt.haveRendered,fn=ce.props,Rn=fn.motion,zn=fn.rootPrefixCls,cr=Object(F.a)(Object(F.a)({},Rn),{},{leavedClassName:"".concat(zn,"-hidden"),removeOnLeave:!1,motionAppear:tn||!bt||Ke!=="inline"});return cr};var Ce=je.store,ge=je.eventKey,Ue=Ce.getState(),Ye=Ue.defaultActiveFirst;ce.isRootMenu=!1;var ot=!1;return Ye&&(ot=Ye[ge]),pt(Ce,ge,ot),ce.state={mode:je.mode,isOpen:je.isOpen},ce}return Object(w.a)(rt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ce=this,Ce=this.props,ge=Ce.mode,Ue=Ce.parentMenu,Ye=Ce.manualRef,ot=Ce.isOpen,Ke=function(){ce.setState({mode:ge,isOpen:ot})},bt=ot!==this.state.isOpen,Bt=ge!==this.state.mode;if((Bt||bt)&&(We.a.cancel(this.updateStateRaf),Bt?this.updateStateRaf=Object(We.a)(Ke):Ke()),Ye&&Ye(this),ge!=="horizontal"||!(Ue==null?void 0:Ue.isRootMenu)||!ot)return;this.minWidthTimeout=setTimeout(function(){return ce.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ce=this.props,Ce=ce.onDestroy,ge=ce.eventKey;Ce&&Ce(ge),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),We.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(ce,Ce){var ge=this.getBaseProps();return T.createElement(Ht,Object(C.a)({},ge,{id:this.internalMenuId,className:ce,style:Ce}),this.props.children)}},{key:"renderChildren",value:function(){var ce=this,Ce=this.getBaseProps(),ge=Ce.mode,Ue=Ce.visible,Ye=Ce.forceSubMenuRender,ot=Ce.direction,Ke=this.getMotion(ge,Ue);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ue||Ye,!this.haveOpened)return T.createElement("div",null);var bt=P()("".concat(Ce.prefixCls,"-sub"),Object(Y.a)({},"".concat(Ce.prefixCls,"-rtl"),ot==="rtl"));return this.isInlineMode()?T.createElement(ue,Object(C.a)({visible:Ce.visible,forceRender:Ye},Ke),function(Bt){var tn=Bt.className,fn=Bt.style,Rn=P()(bt,tn);return ce.renderPopupMenu(Rn,fn)}):this.renderPopupMenu(bt)}},{key:"render",value:function(){var ce,Ce,ge,Ue=Object(F.a)({},this.props),Ye=this.getVisible(),ot=this.getPrefixCls(),Ke=this.isInlineMode(),bt=this.getMode(),Bt=P()(ot,"".concat(ot,"-").concat(bt),(ce={},Object(Y.a)(ce,Ue.className,!!Ue.className),Object(Y.a)(ce,this.getOpenClassName(),Ye),Object(Y.a)(ce,this.getActiveClassName(),Ue.active||Ye&&!Ke),Object(Y.a)(ce,this.getDisabledClassName(),Ue.disabled),Object(Y.a)(ce,this.getSelectedClassName(),this.isChildrenSelected()),ce));this.internalMenuId||(Ue.eventKey?this.internalMenuId="".concat(Ue.eventKey,"$Menu"):(st+=1,this.internalMenuId="$__$".concat(st,"$Menu")));var tn={},fn={},Rn={};Ue.disabled||(tn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},fn={onClick:this.onTitleClick},Rn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var zn={},cr=Ue.direction,an=cr==="rtl";Ke&&(an?zn.paddingRight=Ue.inlineIndent*Ue.level:zn.paddingLeft=Ue.inlineIndent*Ue.level);var jt={};this.getVisible()&&(jt={"aria-owns":this.internalMenuId});var Qt=null;bt!=="horizontal"&&(Qt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Qt=T.createElement(this.props.expandIcon,Object(F.a)({},this.props))));var Pn=T.createElement("div",Object(C.a)({ref:this.saveSubMenuTitle,style:zn,className:"".concat(ot,"-title"),role:"button"},Rn,fn,{"aria-expanded":Ye},jt,{"aria-haspopup":"true",title:typeof Ue.title=="string"?Ue.title:void 0}),Ue.title,Qt||T.createElement("i",{className:"".concat(ot,"-arrow")})),xn=this.renderChildren(),vr=((Ce=Ue.parentMenu)===null||Ce===void 0?void 0:Ce.isRootMenu)?Ue.parentMenu.props.getPopupContainer:function(Ur){return Ur.parentNode},qn=Ze[bt],Sr=Ue.popupOffset?{offset:Ue.popupOffset}:{},or=P()((ge={},Object(Y.a)(ge,Ue.popupClassName,Ue.popupClassName&&!Ke),Object(Y.a)(ge,"".concat(ot,"-rtl"),an),ge)),mn=Ue.disabled,Mn=Ue.triggerSubMenuAction,gr=Ue.subMenuOpenDelay,Or=Ue.forceSubMenuRender,Qn=Ue.subMenuCloseDelay,Pr=Ue.builtinPlacements;ie.forEach(function(Ur){return delete Ue[Ur]}),delete Ue.onClick;var $r=an?Object(F.a)(Object(F.a)({},Xe),Pr):Object(F.a)(Object(F.a)({},Re),Pr);delete Ue.direction;var Ir=this.getBaseProps(),Br=Ke?null:this.getMotion(Ir.mode,Ir.visible);return T.createElement("li",Object(C.a)({},Ue,tn,{className:Bt,role:"menuitem"}),T.createElement(wr,{prefixCls:ot,popupClassName:P()("".concat(ot,"-popup"),or),getPopupContainer:vr,builtinPlacements:$r,popupPlacement:qn,popupVisible:Ke?!1:Ye,popupAlign:Sr,popup:Ke?null:xn,action:mn||Ke?[]:[Mn],mouseEnterDelay:gr,mouseLeaveDelay:Qn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Or,popupMotion:Br},Pn),Ke?xn:null)}}]),rt}(T.Component);mt.defaultProps={onMouseEnter:Me,onMouseLeave:Me,onTitleMouseEnter:Me,onTitleMouseLeave:Me,onTitleClick:Me,manualRef:Me,mode:"vertical",title:""};var it=Object(v.b)(function(De,et){var rt=De.openKeys,je=De.activeKey,ce=De.selectedKeys,Ce=et.eventKey,ge=et.subMenuKey;return{isOpen:rt.indexOf(Ce)>-1,active:je[ge]===Ce,selectedKeys:ce}})(mt);it.isSubMenu=!0;var Lt=it,Yt="menuitem-overflowed",Xt=.5,St=function(De){Object(h.a)(rt,De);var et=Object(p.a)(rt);function rt(){var je;return Object(k.a)(this,rt),je=et.apply(this,arguments),je.resizeObserver=null,je.mutationObserver=null,je.originalTotalWidth=0,je.overflowedItems=[],je.menuItemSizes=[],je.cancelFrameId=null,je.state={lastVisibleIndex:void 0},je.childRef=T.createRef(),je.getMenuItemNodes=function(){var ce=je.props.prefixCls,Ce=je.childRef.current;return Ce?[].slice.call(Ce.children).filter(function(ge){return ge.className.split(" ").indexOf("".concat(ce,"-overflowed-submenu"))<0}):[]},je.getOverflowedSubMenuItem=function(ce,Ce,ge){var Ue=je.props,Ye=Ue.overflowedIndicator,ot=Ue.level,Ke=Ue.mode,bt=Ue.prefixCls,Bt=Ue.theme;if(ot!==1||Ke!=="horizontal")return null;var tn=je.props.children[0],fn=tn.props,Rn=fn.children,zn=fn.title,cr=fn.style,an=Object(I.a)(fn,["children","title","style"]),jt=Object(F.a)({},cr),Qt="".concat(ce,"-overflowed-indicator"),Pn="".concat(ce,"-overflowed-indicator");Ce.length===0&&ge!==!0?jt=Object(F.a)(Object(F.a)({},jt),{},{display:"none"}):ge&&(jt=Object(F.a)(Object(F.a)({},jt),{},{visibility:"hidden",position:"absolute"}),Qt="".concat(Qt,"-placeholder"),Pn="".concat(Pn,"-placeholder"));var xn=Bt?"".concat(bt,"-").concat(Bt):"",vr={};return ie.forEach(function(qn){an[qn]!==void 0&&(vr[qn]=an[qn])}),T.createElement(Lt,Object(C.a)({title:Ye,className:"".concat(bt,"-overflowed-submenu"),popupClassName:xn},vr,{key:Qt,eventKey:Pn,disabled:!1,style:jt}),Ce)},je.setChildrenWidthAndResize=function(){if(je.props.mode!=="horizontal")return;var ce=je.childRef.current;if(!ce)return;var Ce=ce.children;if(!Ce||Ce.length===0)return;var ge=ce.children[Ce.length-1];we(ge,"display","inline-block");var Ue=je.getMenuItemNodes(),Ye=Ue.filter(function(ot){return ot.className.split(" ").indexOf(Yt)>=0});Ye.forEach(function(ot){we(ot,"display","inline-block")}),je.menuItemSizes=Ue.map(function(ot){return xe(ot,!0)}),Ye.forEach(function(ot){we(ot,"display","none")}),je.overflowedIndicatorWidth=xe(ce.children[ce.children.length-1],!0),je.originalTotalWidth=je.menuItemSizes.reduce(function(ot,Ke){return ot+Ke},0),je.handleResize(),we(ge,"display","none")},je.handleResize=function(){if(je.props.mode!=="horizontal")return;var ce=je.childRef.current;if(!ce)return;var Ce=xe(ce);je.overflowedItems=[];var ge=0,Ue;je.originalTotalWidth>Ce+Xt&&(Ue=-1,je.menuItemSizes.forEach(function(Ye){ge+=Ye,ge+je.overflowedIndicatorWidth<=Ce&&(Ue+=1)})),je.setState({lastVisibleIndex:Ue})},je}return Object(w.a)(rt,[{key:"componentDidMount",value:function(){var ce=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ce=this.childRef.current;if(!Ce)return;this.resizeObserver=new ct.default(function(ge){ge.forEach(function(){var Ue=ce.cancelFrameId;cancelAnimationFrame(Ue),ce.cancelFrameId=requestAnimationFrame(ce.setChildrenWidthAndResize)})}),[].slice.call(Ce.children).concat(Ce).forEach(function(ge){ce.resizeObserver.observe(ge)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ce.resizeObserver.disconnect(),[].slice.call(Ce.children).concat(Ce).forEach(function(ge){ce.resizeObserver.observe(ge)}),ce.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ce,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ce){var Ce=this,ge=this.state.lastVisibleIndex;return(ce||[]).reduce(function(Ue,Ye,ot){var Ke=Ye;if(Ce.props.mode==="horizontal"){var bt=Ce.getOverflowedSubMenuItem(Ye.props.eventKey,[]);ge!==void 0&&Ce.props.className.indexOf("".concat(Ce.props.prefixCls,"-root"))!==-1&&(ot>ge&&(Ke=T.cloneElement(Ye,{style:{display:"none"},eventKey:"".concat(Ye.props.eventKey,"-hidden"),className:"".concat(Yt)})),ot===ge+1&&(Ce.overflowedItems=ce.slice(ge+1).map(function(tn){return T.cloneElement(tn,{key:tn.props.eventKey,mode:"vertical-left"})}),bt=Ce.getOverflowedSubMenuItem(Ye.props.eventKey,Ce.overflowedItems)));var Bt=[].concat(Object(b.a)(Ue),[bt,Ke]);return ot===ce.length-1&&Bt.push(Ce.getOverflowedSubMenuItem(Ye.props.eventKey,[],!0)),Bt}return[].concat(Object(b.a)(Ue),[Ke])},[])}},{key:"render",value:function(){var ce=this.props,Ce=ce.visible,ge=ce.prefixCls,Ue=ce.overflowedIndicator,Ye=ce.mode,ot=ce.level,Ke=ce.tag,bt=ce.children,Bt=ce.theme,tn=Object(I.a)(ce,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),fn=Ke;return T.createElement(fn,Object(C.a)({ref:this.childRef},tn),this.renderChildren(bt))}}]),rt}(T.Component);St.defaultProps={tag:"div",className:""};var Ft=St;function at(De){return De.length?De.every(function(et){return!!et.props.disabled}):!0}function qt(De,et,rt){var je=De.getState();De.setState({activeKey:Object(F.a)(Object(F.a)({},je.activeKey),{},Object(Y.a)({},et,rt))})}function zt(De){return De.eventKey||"0-menu-"}function _n(De,et){var rt=et,je=De.children,ce=De.eventKey;if(rt){var Ce;if(ke(je,function(ge,Ue){ge&&ge.props&&!ge.props.disabled&&rt===nt(ge,ce,Ue)&&(Ce=!0)}),Ce)return rt}return rt=null,De.defaultActiveFirst&&ke(je,function(ge,Ue){!rt&&ge&&!ge.props.disabled&&(rt=nt(ge,ce,Ue))}),rt}function Dn(De){if(!De)return;var et=this.instanceArray.indexOf(De);et!==-1?this.instanceArray[et]=De:this.instanceArray.push(De)}var Vt=function(De){Object(h.a)(rt,De);var et=Object(p.a)(rt);function rt(je){var ce;return Object(k.a)(this,rt),ce=et.call(this,je),ce.onKeyDown=function(Ce,ge){var Ue=Ce.keyCode,Ye;if(ce.getFlatInstanceArray().forEach(function(Ke){Ke&&Ke.props.active&&Ke.onKeyDown&&(Ye=Ke.onKeyDown(Ce))}),Ye)return 1;var ot=null;return(Ue===d.a.UP||Ue===d.a.DOWN)&&(ot=ce.step(Ue===d.a.UP?-1:1)),ot?(Ce.preventDefault(),qt(ce.props.store,zt(ce.props),ot.props.eventKey),typeof ge=="function"&&ge(ot),1):void 0},ce.onItemHover=function(Ce){var ge=Ce.key,Ue=Ce.hover;qt(ce.props.store,zt(ce.props),Ue?ge:null)},ce.onDeselect=function(Ce){ce.props.onDeselect(Ce)},ce.onSelect=function(Ce){ce.props.onSelect(Ce)},ce.onClick=function(Ce){ce.props.onClick(Ce)},ce.onOpenChange=function(Ce){ce.props.onOpenChange(Ce)},ce.onDestroy=function(Ce){ce.props.onDestroy(Ce)},ce.getFlatInstanceArray=function(){return ce.instanceArray},ce.step=function(Ce){var ge=ce.getFlatInstanceArray(),Ue=ce.props.store.getState().activeKey[zt(ce.props)],Ye=ge.length;if(!Ye)return null;Ce<0&&(ge=ge.concat().reverse());var ot=-1;if(ge.every(function(tn,fn){return tn&&tn.props.eventKey===Ue?(ot=fn,!1):!0}),!ce.props.defaultActiveFirst&&ot!==-1&&at(ge.slice(ot,Ye-1)))return;var Ke=(ot+1)%Ye,bt=Ke;do{var Bt=ge[bt];if(!Bt||Bt.props.disabled)bt=(bt+1)%Ye;else return Bt}while(bt!==Ke);return null},ce.renderCommonMenuItem=function(Ce,ge,Ue){var Ye=ce.props.store.getState(),ot=Object(y.a)(ce),Ke=ot.props,bt=nt(Ce,Ke.eventKey,ge),Bt=Ce.props;if(!Bt||typeof Ce.type=="string")return Ce;var tn=bt===Ye.activeKey,fn=Object(F.a)(Object(F.a)({mode:Bt.mode||Ke.mode,level:Ke.level,inlineIndent:Ke.inlineIndent,renderMenuItem:ce.renderMenuItem,rootPrefixCls:Ke.prefixCls,index:ge,parentMenu:Ke.parentMenu,manualRef:Bt.disabled?void 0:Object(E.a)(Ce.ref,Dn.bind(Object(y.a)(ce))),eventKey:bt,active:!Bt.disabled&&tn,multiple:Ke.multiple,onClick:function(zn){(Bt.onClick||Me)(zn),ce.onClick(zn)},onItemHover:ce.onItemHover,motion:Ke.motion,subMenuOpenDelay:Ke.subMenuOpenDelay,subMenuCloseDelay:Ke.subMenuCloseDelay,forceSubMenuRender:Ke.forceSubMenuRender,onOpenChange:ce.onOpenChange,onDeselect:ce.onDeselect,onSelect:ce.onSelect,builtinPlacements:Ke.builtinPlacements,itemIcon:Bt.itemIcon||ce.props.itemIcon,expandIcon:Bt.expandIcon||ce.props.expandIcon},Ue),{},{direction:Ke.direction});return(Ke.mode==="inline"||$e())&&(fn.triggerSubMenuAction="click"),T.cloneElement(Ce,Object(F.a)(Object(F.a)({},fn),{},{key:bt||ge}))},ce.renderMenuItem=function(Ce,ge,Ue){if(!Ce)return null;var Ye=ce.props.store.getState(),ot={openKeys:Ye.openKeys,selectedKeys:Ye.selectedKeys,triggerSubMenuAction:ce.props.triggerSubMenuAction,subMenuKey:Ue};return ce.renderCommonMenuItem(Ce,ge,ot)},je.store.setState({activeKey:Object(F.a)(Object(F.a)({},je.store.getState().activeKey),{},Object(Y.a)({},je.eventKey,_n(je,je.activeKey)))}),ce.instanceArray=[],ce}return Object(w.a)(rt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ce){return this.props.visible||ce.visible||this.props.className!==ce.className||!j()(this.props.style,ce.style)}},{key:"componentDidUpdate",value:function(ce){var Ce=this.props,ge="activeKey"in Ce?Ce.activeKey:Ce.store.getState().activeKey[zt(Ce)],Ue=_n(Ce,ge);if(Ue!==ge)qt(Ce.store,zt(Ce),Ue);else if("activeKey"in ce){var Ye=_n(ce,ce.activeKey);Ue!==Ye&&qt(Ce.store,zt(Ce),Ue)}}},{key:"render",value:function(){var ce=this,Ce=Object(C.a)({},this.props);this.instanceArray=[];var ge=P()(Ce.prefixCls,Ce.className,"".concat(Ce.prefixCls,"-").concat(Ce.mode)),Ue={className:ge,role:Ce.role||"menu"};Ce.id&&(Ue.id=Ce.id),Ce.focusable&&(Ue.tabIndex=0,Ue.onKeyDown=this.onKeyDown);var Ye=Ce.prefixCls,ot=Ce.eventKey,Ke=Ce.visible,bt=Ce.level,Bt=Ce.mode,tn=Ce.overflowedIndicator,fn=Ce.theme;return ie.forEach(function(Rn){return delete Ce[Rn]}),delete Ce.onClick,T.createElement(Ft,Object(C.a)({},Ce,{prefixCls:Ye,mode:Bt,tag:"ul",level:bt,theme:fn,visible:Ke,overflowedIndicator:tn},Ue),Object(m.a)(Ce.children).map(function(Rn,zn){return ce.renderMenuItem(Rn,zn,ot||"0-menu-")}))}}]),rt}(T.Component);Vt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Me};var cn=Object(v.b)()(Vt),Ht=cn,On=L("Kwbf");function Sn(De,et,rt){var je=De.prefixCls,ce=De.motion,Ce=De.defaultMotions,ge=Ce===void 0?{}:Ce,Ue=De.openAnimation,Ye=De.openTransitionName,ot=et.switchingModeFromInline;if(ce)return ce;if(Object(U.a)(Ue)==="object"&&Ue)Object(On.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ue=="string")return{motionName:"".concat(je,"-open-").concat(Ue)};if(Ye)return{motionName:Ye};var Ke=ge[rt];return Ke||(ot?null:ge.other)}var Ct=function(De){Object(h.a)(rt,De);var et=Object(p.a)(rt);function rt(je){var ce;Object(k.a)(this,rt),ce=et.call(this,je),ce.onSelect=function(Ue){var Ye=Object(y.a)(ce),ot=Ye.props;if(ot.selectable){var Ke=ce.store.getState(),bt=Ke.selectedKeys,Bt=Ue.key;ot.multiple?bt=bt.concat([Bt]):bt=[Bt],"selectedKeys"in ot||ce.store.setState({selectedKeys:bt}),ot.onSelect(Object(F.a)(Object(F.a)({},Ue),{},{selectedKeys:bt}))}},ce.onClick=function(Ue){var Ye=ce.getRealMenuMode(),ot=Object(y.a)(ce),Ke=ot.store,bt=ot.props.onOpenChange;Ye!=="inline"&&!("openKeys"in ce.props)&&(Ke.setState({openKeys:[]}),bt([])),ce.props.onClick(Ue)},ce.onKeyDown=function(Ue,Ye){ce.innerMenu.getWrappedInstance().onKeyDown(Ue,Ye)},ce.onOpenChange=function(Ue){var Ye=Object(y.a)(ce),ot=Ye.props,Ke=ce.store.getState().openKeys.concat(),bt=!1,Bt=function(fn){var Rn=!1;if(fn.open)Rn=Ke.indexOf(fn.key)===-1,Rn&&Ke.push(fn.key);else{var zn=Ke.indexOf(fn.key);Rn=zn!==-1,Rn&&Ke.splice(zn,1)}bt=bt||Rn};Array.isArray(Ue)?Ue.forEach(Bt):Bt(Ue),bt&&("openKeys"in ce.props||ce.store.setState({openKeys:Ke}),ot.onOpenChange(Ke))},ce.onDeselect=function(Ue){var Ye=Object(y.a)(ce),ot=Ye.props;if(ot.selectable){var Ke=ce.store.getState().selectedKeys.concat(),bt=Ue.key,Bt=Ke.indexOf(bt);Bt!==-1&&Ke.splice(Bt,1),"selectedKeys"in ot||ce.store.setState({selectedKeys:Ke}),ot.onDeselect(Object(F.a)(Object(F.a)({},Ue),{},{selectedKeys:Ke}))}},ce.onMouseEnter=function(Ue){ce.restoreModeVerticalFromInline();var Ye=ce.props.onMouseEnter;Ye&&Ye(Ue)},ce.onTransitionEnd=function(Ue){var Ye=Ue.propertyName==="width"&&Ue.target===Ue.currentTarget,ot=Ue.target.className,Ke=Object.prototype.toString.call(ot)==="[object SVGAnimatedString]"?ot.animVal:ot,bt=Ue.propertyName==="font-size"&&Ke.indexOf("anticon")>=0;(Ye||bt)&&ce.restoreModeVerticalFromInline()},ce.setInnerMenu=function(Ue){ce.innerMenu=Ue},ce.isRootMenu=!0;var Ce=je.defaultSelectedKeys,ge=je.defaultOpenKeys;return"selectedKeys"in je&&(Ce=je.selectedKeys||[]),"openKeys"in je&&(ge=je.openKeys||[]),ce.store=Object(v.c)({selectedKeys:Ce,openKeys:ge,activeKey:{"0-menu-":_n(je,je.activeKey)}}),ce.state={switchingModeFromInline:!1,prevProps:je,inlineOpenKeys:[],store:ce.store},ce}return Object(w.a)(rt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ce){var Ce=this.props,ge=Ce.siderCollapsed,Ue=Ce.inlineCollapsed,Ye=Ce.onOpenChange;(!ce.inlineCollapsed&&Ue||!ce.siderCollapsed&&ge)&&Ye([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var ce=this.props.collapsedWidth,Ce=this.store,ge=this.prevOpenKeys,Ue=this.getInlineCollapsed()&&(ce===0||ce==="0"||ce==="0px");Ue?(this.prevOpenKeys=Ce.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ge&&(this.store.setState({openKeys:ge}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ce=this.props.mode,Ce=this.state.switchingModeFromInline,ge=this.getInlineCollapsed();return Ce&&ge?"inline":ge?"vertical":ce}},{key:"getInlineCollapsed",value:function(){var ce=this.props,Ce=ce.inlineCollapsed,ge=ce.siderCollapsed;return ge!==void 0?ge:Ce}},{key:"restoreModeVerticalFromInline",value:function(){var ce=this.state.switchingModeFromInline;ce&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ce=Object(F.a)({},Object(_.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ce=this.getRealMenuMode();return ce.className+=" ".concat(ce.prefixCls,"-root"),ce.direction==="rtl"&&(ce.className+=" ".concat(ce.prefixCls,"-rtl")),ce=Object(F.a)(Object(F.a)({},ce),{},{mode:Ce,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Sn(this.props,this.state,Ce)}),delete ce.openAnimation,delete ce.openTransitionName,T.createElement(v.a,{store:this.store},T.createElement(Ht,Object(C.a)({},ce,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(ce,Ce){var ge=Ce.prevProps,Ue=Ce.store,Ye=Ue.getState(),ot={},Ke={prevProps:ce};return ge.mode==="inline"&&ce.mode!=="inline"&&(Ke.switchingModeFromInline=!0),"openKeys"in ce?ot.openKeys=ce.openKeys||[]:((ce.inlineCollapsed&&!ge.inlineCollapsed||ce.siderCollapsed&&!ge.siderCollapsed)&&(Ke.switchingModeFromInline=!0,Ke.inlineOpenKeys=Ye.openKeys,ot.openKeys=[]),(!ce.inlineCollapsed&&ge.inlineCollapsed||!ce.siderCollapsed&&ge.siderCollapsed)&&(ot.openKeys=Ce.inlineOpenKeys,Ke.inlineOpenKeys=[])),Object.keys(ot).length&&Ue.setState(ot),Ke}}]),rt}(T.Component);Ct.defaultProps={selectable:!0,onClick:Me,onSelect:Me,onOpenChange:Me,onDeselect:Me,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:T.createElement("span",null,"\xB7\xB7\xB7")};var xt=Ct,Pt=function(De){Object(h.a)(rt,De);var et=Object(p.a)(rt);function rt(){var je;return Object(k.a)(this,rt),je=et.apply(this,arguments),je.onKeyDown=function(ce){var Ce=ce.keyCode;return Ce===d.a.ENTER?(je.onClick(ce),!0):void 0},je.onMouseLeave=function(ce){var Ce=je.props,ge=Ce.eventKey,Ue=Ce.onItemHover,Ye=Ce.onMouseLeave;Ue({key:ge,hover:!1}),Ye({key:ge,domEvent:ce})},je.onMouseEnter=function(ce){var Ce=je.props,ge=Ce.eventKey,Ue=Ce.onItemHover,Ye=Ce.onMouseEnter;Ue({key:ge,hover:!0}),Ye({key:ge,domEvent:ce})},je.onClick=function(ce){var Ce=je.props,ge=Ce.eventKey,Ue=Ce.multiple,Ye=Ce.onClick,ot=Ce.onSelect,Ke=Ce.onDeselect,bt=Ce.isSelected,Bt={key:ge,keyPath:[ge],item:Object(y.a)(je),domEvent:ce};Ye(Bt),Ue?bt?Ke(Bt):ot(Bt):bt||ot(Bt)},je.saveNode=function(ce){je.node=ce},je}return Object(w.a)(rt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ce=this.props;ce.onDestroy&&ce.onDestroy(ce.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ce,Ce=Object(F.a)({},this.props),ge=P()(this.getPrefixCls(),Ce.className,(ce={},Object(Y.a)(ce,this.getActiveClassName(),!Ce.disabled&&Ce.active),Object(Y.a)(ce,this.getSelectedClassName(),Ce.isSelected),Object(Y.a)(ce,this.getDisabledClassName(),Ce.disabled),ce)),Ue=Object(F.a)(Object(F.a)({},Ce.attribute),{},{title:typeof Ce.title=="string"?Ce.title:void 0,className:ge,role:Ce.role||"menuitem","aria-disabled":Ce.disabled});Ce.role==="option"?Ue=Object(F.a)(Object(F.a)({},Ue),{},{role:"option","aria-selected":Ce.isSelected}):(Ce.role===null||Ce.role==="none")&&(Ue.role="none");var Ye={onClick:Ce.disabled?null:this.onClick,onMouseLeave:Ce.disabled?null:this.onMouseLeave,onMouseEnter:Ce.disabled?null:this.onMouseEnter},ot=Object(F.a)({},Ce.style);Ce.mode==="inline"&&(Ce.direction==="rtl"?ot.paddingRight=Ce.inlineIndent*Ce.level:ot.paddingLeft=Ce.inlineIndent*Ce.level),ie.forEach(function(bt){return delete Ce[bt]}),delete Ce.direction;var Ke=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ke=T.createElement(this.props.itemIcon,this.props)),T.createElement("li",Object(C.a)({},Object(_.a)(Ce,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ue,Ye,{style:ot,ref:this.saveNode}),Ce.children,Ke)}}]),rt}(T.Component);Pt.isMenuItem=!0,Pt.defaultProps={onSelect:Me,onMouseEnter:Me,onMouseLeave:Me,manualRef:Me};var Dt=Object(v.b)(function(De,et){var rt=De.activeKey,je=De.selectedKeys,ce=et.eventKey,Ce=et.subMenuKey;return{active:rt[Ce]===ce,isSelected:Array.isArray(je)?je.indexOf(ce)!==-1:je===ce}})(Pt),wt=Dt,gn=function(De){Object(h.a)(rt,De);var et=Object(p.a)(rt);function rt(){var je;return Object(k.a)(this,rt),je=et.apply(this,arguments),je.renderInnerMenuItem=function(ce){var Ce=je.props,ge=Ce.renderMenuItem,Ue=Ce.index;return ge(ce,Ue,je.props.subMenuKey)},je}return Object(w.a)(rt,[{key:"render",value:function(){var ce=Object(C.a)({},this.props),Ce=ce.className,ge=Ce===void 0?"":Ce,Ue=ce.rootPrefixCls,Ye="".concat(Ue,"-item-group-title"),ot="".concat(Ue,"-item-group-list"),Ke=ce.title,bt=ce.children;return ie.forEach(function(Bt){return delete ce[Bt]}),delete ce.direction,T.createElement("li",Object(C.a)({},ce,{onClick:function(tn){return tn.stopPropagation()},className:"".concat(ge," ").concat(Ue,"-item-group")}),T.createElement("div",{className:Ye,title:typeof Ke=="string"?Ke:void 0},Ke),T.createElement("ul",{className:ot},T.Children.map(bt,this.renderInnerMenuItem)))}}]),rt}(T.Component);gn.isMenuItemGroup=!0,gn.defaultProps={disabled:!0};var hn=gn,bn=function(et){var rt=et.className,je=et.rootPrefixCls,ce=et.style;return T.createElement("li",{className:"".concat(rt," ").concat(je,"-item-divider"),style:ce})};bn.defaultProps={disabled:!0,className:"",style:{}};var dn=bn,rn=xt,Tn=L("eDIo");function ir(De,et){var rt=De.prefixCls,je=De.editable,ce=De.locale,Ce=De.style;return!je||je.showAdd===!1?null:T.createElement("button",{ref:et,type:"button",className:"".concat(rt,"-nav-add"),style:Ce,"aria-label":(ce==null?void 0:ce.addAriaLabel)||"Add tab",onClick:function(Ue){je.onEdit("add",{event:Ue})}},je.addIcon||"+")}var hr=T.forwardRef(ir);function Kn(De,et){var rt=De.prefixCls,je=De.id,ce=De.tabs,Ce=De.locale,ge=De.mobile,Ue=De.moreIcon,Ye=Ue===void 0?"More":Ue,ot=De.moreTransitionName,Ke=De.style,bt=De.className,Bt=De.editable,tn=De.tabBarGutter,fn=De.rtl,Rn=De.onTabClick,zn=Object(T.useState)(!1),cr=Object(B.a)(zn,2),an=cr[0],jt=cr[1],Qt=Object(T.useState)(null),Pn=Object(B.a)(Qt,2),xn=Pn[0],vr=Pn[1],qn="".concat(je,"-more-popup"),Sr="".concat(rt,"-dropdown"),or=xn!==null?"".concat(qn,"-").concat(xn):null,mn=Ce==null?void 0:Ce.dropdownAriaLabel,Mn=T.createElement(rn,{onClick:function(Br){var Ur=Br.key,jr=Br.domEvent;Rn(Ur,jr),jt(!1)},id:qn,tabIndex:-1,role:"listbox","aria-activedescendant":or,selectedKeys:[xn],"aria-label":mn!==void 0?mn:"expanded dropdown"},ce.map(function(Ir){return T.createElement(wt,{key:Ir.key,id:"".concat(qn,"-").concat(Ir.key),role:"option","aria-controls":je&&"".concat(je,"-panel-").concat(Ir.key),disabled:Ir.disabled},Ir.tab)}));function gr(Ir){for(var Br=ce.filter(function(la){return!la.disabled}),Ur=Br.findIndex(function(la){return la.key===xn})||0,jr=Br.length,Nr=0;NrPr?(Or=Mn,qn.current="x"):(Or=gr,qn.current="y");var $r=Date.now();$r-xn.current>100&&(vr.current=!1),(et(-Or,-Or)||vr.current)&&(mn.preventDefault(),vr.current=!0),xn.current=$r}var or=Object(T.useRef)(null);or.current={onTouchStart:jt,onTouchMove:Qt,onTouchEnd:Pn,onWheel:Sr},T.useEffect(function(){function mn(Qn){or.current.onTouchStart(Qn)}function Mn(Qn){or.current.onTouchMove(Qn)}function gr(Qn){or.current.onTouchEnd(Qn)}function Or(Qn){or.current.onWheel(Qn)}return document.addEventListener("touchmove",Mn,{passive:!1}),document.addEventListener("touchend",gr,{passive:!1}),De.current.addEventListener("touchstart",mn,{passive:!1}),De.current.addEventListener("wheel",Or),function(){document.removeEventListener("touchmove",Mn),document.removeEventListener("touchend",gr)}},[])}function ua(){var De=Object(T.useRef)(new Map);function et(je){return De.current.has(je)||De.current.set(je,T.createRef()),De.current.get(je)}function rt(je){De.current.delete(je)}return[et,rt]}function xa(De,et){var rt=T.useRef(De),je=T.useState({}),ce=Object(B.a)(je,2),Ce=ce[1];function ge(Ue){var Ye=typeof Ue=="function"?Ue(rt.current):Ue;Ye!==rt.current&&et(Ye,rt.current),rt.current=Ye,Ce({})}return[rt.current,ge]}var ma=function(et){var rt=et.position,je=et.prefixCls,ce=et.extra;if(!ce)return null;var Ce,ge=ce;return rt==="right"&&(Ce=ge.right||!ge.left&&ge||null),rt==="left"&&(Ce=ge.left||null),Ce?T.createElement("div",{className:"".concat(je,"-extra-content")},Ce):null};function Ya(De,et){var rt,je=T.useContext(Gr),ce=je.prefixCls,Ce=je.tabs,ge=De.className,Ue=De.style,Ye=De.id,ot=De.animated,Ke=De.activeKey,bt=De.rtl,Bt=De.extra,tn=De.editable,fn=De.locale,Rn=De.tabPosition,zn=De.tabBarGutter,cr=De.children,an=De.onTabClick,jt=De.onTabScroll,Qt=Object(T.useRef)(),Pn=Object(T.useRef)(),xn=Object(T.useRef)(),vr=Object(T.useRef)(),qn=ua(),Sr=Object(B.a)(qn,2),or=Sr[0],mn=Sr[1],Mn=Rn==="top"||Rn==="bottom",gr=xa(0,function(Hr,Mr){Mn&&jt&&jt({direction:Hr>Mr?"left":"right"})}),Or=Object(B.a)(gr,2),Qn=Or[0],Pr=Or[1],$r=xa(0,function(Hr,Mr){!Mn&&jt&&jt({direction:Hr>Mr?"top":"bottom"})}),Ir=Object(B.a)($r,2),Br=Ir[0],Ur=Ir[1],jr=Object(T.useState)(0),Nr=Object(B.a)(jr,2),fr=Nr[0],la=Nr[1],Qa=Object(T.useState)(0),ja=Object(B.a)(Qa,2),Ca=ja[0],qr=ja[1],Vr=Object(T.useState)(0),Xr=Object(B.a)(Vr,2),ea=Xr[0],Ua=Xr[1],hi=Object(T.useState)(0),si=Object(B.a)(hi,2),Yr=si[0],Ja=si[1],Za=Object(T.useState)(null),Qr=Object(B.a)(Za,2),zr=Qr[0],ba=Qr[1],Pi=Object(T.useState)(null),no=Object(B.a)(Pi,2),li=no[0],Ci=no[1],Ti=Object(T.useState)(0),Si=Object(B.a)(Ti,2),Ii=Si[0],co=Si[1],Ro=Object(T.useState)(0),Gi=Object(B.a)(Ro,2),Oi=Gi[0],Vi=Gi[1],yi=i(new Map),Ri=Object(B.a)(yi,2),ho=Ri[0],Yi=Ri[1],Ai=c(Ce,ho,fr),Di="".concat(ce,"-nav-operations-hidden"),bi=0,Ia=0;Mn?bt?(bi=0,Ia=Math.max(0,fr-zr)):(bi=Math.min(0,zr-fr),Ia=0):(bi=Math.min(0,li-Ca),Ia=0);function fi(Hr){return HrIa?[Ia,!1]:[Hr,!0]}var pi=Object(T.useRef)(),_i=Object(T.useState)(),mi=Object(B.a)(_i,2),Xi=mi[0],$i=mi[1];function Qi(){$i(Date.now())}function ki(){window.clearTimeout(pi.current)}Zr(Qt,function(Hr,Mr){var oa=!1;function Fa(Mi,di){Mi(function(Ui){var ci=fi(Ui+di),_a=Object(B.a)(ci,2),Fi=_a[0],Bi=_a[1];return oa=Bi,Fi})}if(Mn){if(zr>=fr)return oa;Fa(Pr,Hr)}else{if(li>=Ca)return oa;Fa(Ur,Mr)}return ki(),Qi(),oa}),Object(T.useEffect)(function(){return ki(),Xi&&(pi.current=window.setTimeout(function(){$i(0)},100)),ki},[Xi]);function ui(){var Hr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ke,Mr=Ai.get(Hr);if(!Mr)return;if(Mn){var oa=Qn;bt?Mr.rightQn+zr&&(oa=Mr.right+Mr.width-zr):Mr.left<-Qn?oa=-Mr.left:Mr.left+Mr.width>-Qn+zr&&(oa=-(Mr.left+Mr.width-zr)),Ur(0),Pr(fi(oa)[0])}else{var Fa=Br;Mr.top<-Br?Fa=-Mr.top:Mr.top+Mr.height>-Br+li&&(Fa=-(Mr.top+Mr.height-li)),Pr(0),Ur(fi(Fa)[0])}}var Ei=A(Ai,{width:zr,height:li,left:Qn,top:Br},{width:ea,height:Yr},{width:Ii,height:Oi},Object(F.a)(Object(F.a)({},De),{},{tabs:Ce})),ro=Object(B.a)(Ei,2),Ao=ro[0],Do=ro[1],fo=Ce.map(function(Hr){var Mr=Hr.key;return T.createElement(n,{id:Ye,prefixCls:ce,key:Mr,rtl:bt,tab:Hr,closable:Hr.closable,editable:tn,active:Mr===Ke,tabPosition:Rn,tabBarGutter:zn,renderWrapper:cr,removeAriaLabel:fn==null?void 0:fn.removeAriaLabel,ref:or(Mr),onClick:function(Fa){an(Mr,Fa)},onRemove:function(){mn(Mr)},onFocus:function(){ui(Mr),Qi(),bt||(Qt.current.scrollLeft=0),Qt.current.scrollTop=0}})}),ao=a(function(){var Hr,Mr,oa,Fa,Mi,di,Ui,ci,_a,Fi=((Hr=Qt.current)===null||Hr===void 0?void 0:Hr.offsetWidth)||0,Bi=((Mr=Qt.current)===null||Mr===void 0?void 0:Mr.offsetHeight)||0,Hi=((oa=vr.current)===null||oa===void 0?void 0:oa.offsetWidth)||0,za=((Fa=vr.current)===null||Fa===void 0?void 0:Fa.offsetHeight)||0,Fr=((Mi=xn.current)===null||Mi===void 0?void 0:Mi.offsetWidth)||0,_r=((di=xn.current)===null||di===void 0?void 0:di.offsetHeight)||0;ba(Fi),Ci(Bi),co(Hi),Vi(za);var Un=(((Ui=Pn.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0)-Hi,lr=(((ci=Pn.current)===null||ci===void 0?void 0:ci.offsetHeight)||0)-za;la(Un),qr(lr);var Dr=(_a=xn.current)===null||_a===void 0?void 0:_a.className.includes(Di);Ua(Un-(Dr?0:Fr)),Ja(lr-(Dr?0:_r)),Yi(function(){var aa=new Map;return Ce.forEach(function(gi){var ii=gi.key,Da=or(ii).current;Da&&aa.set(ii,{width:Da.offsetWidth,height:Da.offsetHeight,left:Da.offsetLeft,top:Da.offsetTop})}),aa})}),po=Ce.slice(0,Ao),Wa=Ce.slice(Do+1),ha=[].concat(Object(b.a)(po),Object(b.a)(Wa)),Aa=Object(T.useState)(),fa=Object(B.a)(Aa,2),Ni=fa[0],mo=fa[1],qa=Ai.get(Ke),io=Object(T.useRef)();function oo(){u.a.cancel(io.current)}Object(T.useEffect)(function(){var Hr={};return qa&&(Mn?(bt?Hr.right=qa.right:Hr.left=qa.left,Hr.width=qa.width):(Hr.top=qa.top,Hr.height=qa.height)),oo(),io.current=u()(function(){mo(Hr)}),oo},[qa,Mn,bt]),Object(T.useEffect)(function(){ui()},[Ke,qa,Ai,Mn]),Object(T.useEffect)(function(){ao()},[bt,zn,Ke,Ce.map(function(Hr){return Hr.key}).join("_")]);var so=!!ha.length,xi="".concat(ce,"-nav-wrap"),Ji,ji,go,Zi;return Mn?bt?(ji=Qn>0,Ji=Qn+zr` "'(~:]+/,i=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,d=/^\s*\[[^\]]+?\]:.*$/,s=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,n=" ";function l(H,M,V){return M.f=M.inline=V,V(H,M)}function c(H,M,V){return M.f=M.block=V,V(H,M)}function x(H){return!H||!/\S/.test(H.string)}function A(H){if(H.linkTitle=!1,H.linkHref=!1,H.linkText=!1,H.em=!1,H.strong=!1,H.strikethrough=!1,H.quote=0,H.indentedCode=!1,H.f==k){var M=T;if(!M){var V=Y.innerMode(F,H.htmlState);M=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}M&&(H.f=p,H.block=C,H.htmlState=null)}return H.trailingSpace=0,H.trailingSpaceNewLine=!1,H.prevLine=H.thisLine,H.thisLine={stream:null},null}function C(H,M){var V=H.column()===M.indentation,K=x(M.prevLine.stream),$=M.indentedCode,Z=M.prevLine.hr,me=M.list!==!1,oe=(M.listStack[M.listStack.length-1]||0)+3;M.indentedCode=!1;var fe=M.indentation;if(M.indentationDiff===null&&(M.indentationDiff=M.indentation,me)){for(M.list=null;fe=4&&($||M.prevLine.fencedCodeEnd||M.prevLine.header||K))return H.skipToEnd(),M.indentedCode=!0,P.code;if(H.eatSpace())return null;if(V&&M.indentation<=oe&&(ve=H.match(u))&&ve[1].length<=6)return M.quote=0,M.header=ve[1].length,M.thisLine.header=!0,I.highlightFormatting&&(M.formatting="header"),M.f=M.inline,y(M);if(M.indentation<=oe&&H.eat(">"))return M.quote=V?1:M.quote+1,I.highlightFormatting&&(M.formatting="quote"),H.eatSpace(),y(M);if(!Ie&&!M.setext&&V&&M.indentation<=oe&&(ve=H.match(b))){var de=ve[1]?"ol":"ul";return M.indentation=fe+H.current().length,M.list=!0,M.quote=0,M.listStack.push(M.indentation),M.em=!1,M.strong=!1,M.code=!1,M.strikethrough=!1,I.taskLists&&H.match(o,!1)&&(M.taskList=!0),M.f=M.inline,I.highlightFormatting&&(M.formatting=["list","list-"+de]),y(M)}else{if(V&&M.indentation<=oe&&(ve=H.match(i,!0)))return M.quote=0,M.fencedEndRE=new RegExp(ve[1]+"+ *$"),M.localMode=I.fencedCodeBlockHighlighting&&R(ve[2]||I.fencedCodeBlockDefaultMode),M.localMode&&(M.localState=Y.startState(M.localMode)),M.f=M.block=w,I.highlightFormatting&&(M.formatting="code-block"),M.code=-1,y(M);if(M.setext||(!ye||!me)&&!M.quote&&M.list===!1&&!M.code&&!Ie&&!d.test(H.string)&&(ve=H.lookAhead(1))&&(ve=ve.match(f)))return M.setext?(M.header=M.setext,M.setext=0,H.skipToEnd(),I.highlightFormatting&&(M.formatting="header")):(M.header=ve[0].charAt(0)=="="?1:2,M.setext=M.header),M.thisLine.header=!0,M.f=M.inline,y(M);if(Ie)return H.skipToEnd(),M.hr=!0,M.thisLine.hr=!0,P.hr;if(H.peek()==="[")return l(H,M,j)}return l(H,M,M.inline)}function k(H,M){var V=F.token(H,M.htmlState);if(!T){var K=Y.innerMode(F,M.htmlState);(K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText||M.md_inside&&H.current().indexOf(">")>-1)&&(M.f=p,M.block=C,M.htmlState=null)}return V}function w(H,M){var V=M.listStack[M.listStack.length-1]||0,K=M.indentation=H.quote?M.push(P.formatting+"-"+H.formatting[V]+"-"+H.quote):M.push("error"))}if(H.taskOpen)return M.push("meta"),M.length?M.join(" "):null;if(H.taskClosed)return M.push("property"),M.length?M.join(" "):null;if(H.linkHref?M.push(P.linkHref,"url"):(H.strong&&M.push(P.strong),H.em&&M.push(P.em),H.strikethrough&&M.push(P.strikethrough),H.emoji&&M.push(P.emoji),H.linkText&&M.push(P.linkText),H.code&&M.push(P.code),H.image&&M.push(P.image),H.imageAltText&&M.push(P.imageAltText,"link"),H.imageMarker&&M.push(P.imageMarker)),H.header&&M.push(P.header,P.header+"-"+H.header),H.quote&&(M.push(P.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=H.quote?M.push(P.quote+"-"+H.quote):M.push(P.quote+"-"+I.maxBlockquoteDepth)),H.list!==!1){var K=(H.listStack.length-1)%3;K?K===1?M.push(P.list2):M.push(P.list3):M.push(P.list1)}return H.trailingSpaceNewLine?M.push("trailing-space-new-line"):H.trailingSpace&&M.push("trailing-space-"+(H.trailingSpace%2?"a":"b")),M.length?M.join(" "):null}function h(H,M){return H.match(a,!0)?y(M):void 0}function p(H,M){var V=M.text(H,M);if(typeof V!="undefined")return V;if(M.list)return M.list=null,y(M);if(M.taskList){var K=H.match(o,!0)[1]===" ";return K?M.taskOpen=!0:M.taskClosed=!0,I.highlightFormatting&&(M.formatting="task"),M.taskList=!1,y(M)}if(M.taskOpen=!1,M.taskClosed=!1,M.header&&H.match(/^#+$/,!0))return I.highlightFormatting&&(M.formatting="header"),y(M);var $=H.next();if(M.linkTitle){M.linkTitle=!1;var Z=$;$==="("&&(Z=")"),Z=(Z+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var me="^\\s*(?:[^"+Z+"\\\\]+|\\\\\\\\|\\\\.)"+Z;if(H.match(new RegExp(me),!0))return P.linkHref}if($==="`"){var oe=M.formatting;I.highlightFormatting&&(M.formatting="code"),H.eatWhile("`");var fe=H.current().length;if(M.code==0&&(!M.quote||fe==1))return M.code=fe,y(M);if(fe==M.code){var ye=y(M);return M.code=0,ye}else return M.formatting=oe,y(M)}else if(M.code)return y(M);if($==="\\"&&(H.next(),I.highlightFormatting)){var Ie=y(M),ve=P.formatting+"-escape";return Ie?Ie+" "+ve:ve}if($==="!"&&H.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return M.imageMarker=!0,M.image=!0,I.highlightFormatting&&(M.formatting="image"),y(M);if($==="["&&M.imageMarker&&H.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return M.imageMarker=!1,M.imageAltText=!0,I.highlightFormatting&&(M.formatting="image"),y(M);if($==="]"&&M.imageAltText){I.highlightFormatting&&(M.formatting="image");var Ie=y(M);return M.imageAltText=!1,M.image=!1,M.inline=M.f=_,Ie}if($==="["&&!M.image)return M.linkText&&H.match(/^.*?\]/)||(M.linkText=!0,I.highlightFormatting&&(M.formatting="link")),y(M);if($==="]"&&M.linkText){I.highlightFormatting&&(M.formatting="link");var Ie=y(M);return M.linkText=!1,M.inline=M.f=H.match(/\(.*?\)| ?\[.*?\]/,!1)?_:p,Ie}if($==="<"&&H.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){M.f=M.inline=v,I.highlightFormatting&&(M.formatting="link");var Ie=y(M);return Ie?Ie+=" ":Ie="",Ie+P.linkInline}if($==="<"&&H.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){M.f=M.inline=v,I.highlightFormatting&&(M.formatting="link");var Ie=y(M);return Ie?Ie+=" ":Ie="",Ie+P.linkEmail}if(I.xml&&$==="<"&&H.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var de=H.string.indexOf(">",H.pos);if(de!=-1){var Qe=H.string.substring(H.start,de);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Qe)&&(M.md_inside=!0)}return H.backUp(1),M.htmlState=Y.startState(F),c(H,M,k)}if(I.xml&&$==="<"&&H.match(/^\/\w*?>/))return M.md_inside=!1,"tag";if($==="*"||$==="_"){for(var Rt=1,Ee=H.pos==1?" ":H.string.charAt(H.pos-2);Rt<3&&H.eat($);)Rt++;var Me=H.peek()||" ",nt=!/\s/.test(Me)&&(!s.test(Me)||/\s/.test(Ee)||s.test(Ee)),He=!/\s/.test(Ee)&&(!s.test(Ee)||/\s/.test(Me)||s.test(Me)),ke=null,ht=null;if(Rt%2&&(!M.em&&nt&&($==="*"||!He||s.test(Ee))?ke=!0:M.em==$&&He&&($==="*"||!nt||s.test(Me))&&(ke=!1)),Rt>1&&(!M.strong&&nt&&($==="*"||!He||s.test(Ee))?ht=!0:M.strong==$&&He&&($==="*"||!nt||s.test(Me))&&(ht=!1)),ht!=null||ke!=null){I.highlightFormatting&&(M.formatting=ke==null?"strong":ht==null?"em":"strong em"),ke===!0&&(M.em=$),ht===!0&&(M.strong=$);var ye=y(M);return ke===!1&&(M.em=!1),ht===!1&&(M.strong=!1),ye}}else if($===" "&&(H.eat("*")||H.eat("_"))){if(H.peek()===" ")return y(M);H.backUp(1)}if(I.strikethrough){if($==="~"&&H.eatWhile($)){if(M.strikethrough){I.highlightFormatting&&(M.formatting="strikethrough");var ye=y(M);return M.strikethrough=!1,ye}else if(H.match(/^[^\s]/,!1))return M.strikethrough=!0,I.highlightFormatting&&(M.formatting="strikethrough"),y(M)}else if($===" "&&H.match(/^~~/,!0)){if(H.peek()===" ")return y(M);H.backUp(2)}}if(I.emoji&&$===":"&&H.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){M.emoji=!0,I.highlightFormatting&&(M.formatting="emoji");var ie=y(M);return M.emoji=!1,ie}return $===" "&&(H.match(/^ +$/,!1)?M.trailingSpace++:M.trailingSpace&&(M.trailingSpaceNewLine=!0)),y(M)}function v(H,M){var V=H.next();if(V===">"){M.f=M.inline=p,I.highlightFormatting&&(M.formatting="link");var K=y(M);return K?K+=" ":K="",K+P.linkInline}return H.match(/^[^>]+/,!0),P.linkInline}function _(H,M){if(H.eatSpace())return null;var V=H.next();return V==="("||V==="["?(M.f=M.inline=g(V==="("?")":"]"),I.highlightFormatting&&(M.formatting="link-string"),M.linkHref=!0,y(M)):"error"}var E={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function g(H){return function(M,V){var K=M.next();if(K===H){V.f=V.inline=p,I.highlightFormatting&&(V.formatting="link-string");var $=y(V);return V.linkHref=!1,$}return M.match(E[H]),V.linkHref=!0,y(V)}}function j(H,M){return H.match(/^([^\]\\]|\\.)*\]:/,!1)?(M.f=U,H.next(),I.highlightFormatting&&(M.formatting="link"),M.linkText=!0,y(M)):l(H,M,p)}function U(H,M){if(H.match(/^\]:/,!0)){M.f=M.inline=S,I.highlightFormatting&&(M.formatting="link");var V=y(M);return M.linkText=!1,V}return H.match(/^([^\]\\]|\\.)+/,!0),P.linkText}function S(H,M){return H.eatSpace()?null:(H.match(/^[^\s]+/,!0),H.peek()===void 0?M.linkTitle=!0:H.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),M.f=M.inline=p,P.linkHref+" url")}var z={startState:function(){return{f:C,prevLine:{stream:null},thisLine:{stream:null},block:C,htmlState:null,indentation:0,inline:p,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(H){return{f:H.f,prevLine:H.prevLine,thisLine:H.thisLine,block:H.block,htmlState:H.htmlState&&Y.copyState(F,H.htmlState),indentation:H.indentation,localMode:H.localMode,localState:H.localMode?Y.copyState(H.localMode,H.localState):null,inline:H.inline,text:H.text,formatting:!1,linkText:H.linkText,linkTitle:H.linkTitle,linkHref:H.linkHref,code:H.code,em:H.em,strong:H.strong,strikethrough:H.strikethrough,emoji:H.emoji,header:H.header,setext:H.setext,hr:H.hr,taskList:H.taskList,list:H.list,listStack:H.listStack.slice(0),quote:H.quote,indentedCode:H.indentedCode,trailingSpace:H.trailingSpace,trailingSpaceNewLine:H.trailingSpaceNewLine,md_inside:H.md_inside,fencedEndRE:H.fencedEndRE}},token:function(H,M){if(M.formatting=!1,H!=M.thisLine.stream){if(M.header=0,M.hr=!1,H.match(/^\s*$/,!0))return A(M),null;if(M.prevLine=M.thisLine,M.thisLine={stream:H},M.taskList=!1,M.trailingSpace=0,M.trailingSpaceNewLine=!1,!M.localState&&(M.f=M.block,M.f!=k)){var V=H.match(/^\s*/,!0)[0].replace(/\t/g,n).length;if(M.indentation=V,M.indentationDiff=null,V>0)return null}}return M.f(H,M)},innerMode:function(H){return H.block==k?{state:H.htmlState,mode:F}:H.localState?{state:H.localState,mode:H.localMode}:{state:H,mode:z}},indent:function(H,M,V){return H.block==k&&F.indent?F.indent(H.htmlState,M,V):H.localState&&H.localMode.indent?H.localMode.indent(H.localState,M,V):Y.Pass},blankLine:A,getType:y,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return z},"xml"),Y.defineMIME("text/markdown","markdown"),Y.defineMIME("text/x-markdown","markdown")})},loD1:function(Be,J){function L(Y,B,I,F,T,R,P){if(T===0)return!1;var m=T,t=0,b=Y;if(P>B+m&&P>F+m||PY+m&&R>I+m||R=b.x&&m<=b.x+b.width&&t>=b.y&&t<=b.y+b.height},clone:function(){return new R(this.x,this.y,this.width,this.height)},copy:function(m){this.x=m.x,this.y=m.y,this.width=m.width,this.height=m.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},R.create=function(m){return new R(m.x,m.y,m.width,m.height)};var P=R;Be.exports=P},mLcG:function(Be,J){var L=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Y){setTimeout(Y,16)};Be.exports=L},mgmH:function(Be,J,L){"use strict";L.d(J,"d",function(){return f}),L.d(J,"b",function(){return a}),L.d(J,"e",function(){return i}),L.d(J,"c",function(){return d}),L.d(J,"n",function(){return s}),L.d(J,"g",function(){return n}),L.d(J,"h",function(){return l}),L.d(J,"j",function(){return x}),L.d(J,"a",function(){return A}),L.d(J,"l",function(){return C}),L.d(J,"f",function(){return k}),L.d(J,"k",function(){return w}),L.d(J,"m",function(){return y}),L.d(J,"i",function(){return h}),L.d(J,"o",function(){return p}),L.d(J,"t",function(){return v}),L.d(J,"s",function(){return _}),L.d(J,"p",function(){return E}),L.d(J,"q",function(){return g}),L.d(J,"r",function(){return j}),L.d(J,"v",function(){return U}),L.d(J,"u",function(){return S});var Y=L("miYZ"),B=L("tsqr"),I=L("k1fw"),F=L("9og8"),T=L("WmNS"),R=L.n(T),P=L("oUNq"),m=L("9kvl"),t=L("1vsH"),b=L("m3rI"),o=function(){Object(m.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},u=function(){Object(m.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},f=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return o(),$.next=3,Object(P.t)(Object(I.a)({},M));case 3:if(V=$.sent,!(V.status===0)){$.next=7;break}return $.next=7,Object(t.w)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/export_couser_info.json"),query:M}));case 7:u();case 8:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),a=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.r)(Object(I.a)({},M));case 2:if(V=$.sent,!(V.status===0)){$.next=8;break}B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_member_act_score")),$.next=13;break;case 8:if(!(V.status===-2)){$.next=12;break}return $.abrupt("return",V);case 12:V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),i=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.u)(Object(I.a)({},M));case 2:if(V=$.sent,!(V.status===0)){$.next=8;break}B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_score")),$.next=13;break;case 8:if(!(V.status===-2)){$.next=12;break}return $.abrupt("return",V);case 12:V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_score")));case 13:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),d=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.s)(Object(I.a)({},M));case 2:if(V=$.sent,!(V.status===0)){$.next=8;break}B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")),$.next=13;break;case 8:if(!(V.status===-2)){$.next=12;break}return $.abrupt("return",V);case 12:V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),s=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.z)(Object(I.a)({},M));case 2:if(V=$.sent,!(V.status===0)){$.next=8;break}B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")),$.next=13;break;case 8:if(!(V.status===-2)){$.next=12;break}return $.abrupt("return",V);case 12:V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),n=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.v)(Object(I.a)({},M));case 2:if(V=$.sent,!(V.status===0)){$.next=8;break}B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_homework")),$.next=13;break;case 8:if(!(V.status===-2)){$.next=12;break}return $.abrupt("return",V);case 12:V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),l=function(){var z=Object(F.a)(R.a.mark(function H(M,V){var K;return R.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,Object(P.x)(Object(I.a)({},M));case 2:K=Z.sent,K.status===0?(B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/").concat(V))):K.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/").concat(V)));case 4:case"end":return Z.stop()}},H)}));return function(M,V){return z.apply(this,arguments)}}(),c=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return o(),$.next=3,Object(P.w)(Object(I.a)({},M));case 3:if(V=$.sent,!(V.status===0)){$.next=7;break}return $.next=7,Object(t.w)("",Object(t.Y)({url:b.a.API_SERVER+"/api/homework_commons/".concat(M.categoryId,"/works_list.zip"),query:M}));case 7:u();case 8:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),x=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return o(),$.next=3,Object(P.A)(Object(I.a)({},M));case 3:if(V=$.sent,!(V.status===0)){$.next=7;break}return $.next=7,Object(t.w)("",Object(t.Y)({url:b.a.API_SERVER+"/api/polls/".concat(M.categoryId,"/commit_result.xlsx"),query:M}));case 7:u();case 8:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),A=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/attendances/export_xlsx_data.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),C=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/video_study_statics.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),k=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/export_course_students_info.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),w=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/item_banks/export.xlsx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),y=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),h=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.y)(Object(I.a)({},M));case 2:V=$.sent,V.status===0?(B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/exercise_score"))):V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/exercise_score")));case 4:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),p=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),K.next=3,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/export_records/".concat(M.id,".xlsx"),query:M}));case 3:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),v=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),_=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(M==null?void 0:M.ec_year_id,"/ec_training_objectives.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),E=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)(M==null?void 0:M.name,Object(t.Y)({url:b.a.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),g=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(M==null?void 0:M.ec_year_id,"/ec_courses.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),j=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(M==null?void 0:M.ec_year_id,"/ec_graduation_requirements.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),U=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/rank_list.xlsx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),S=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/question_rank_list.xlsx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}()},n1HI:function(Be,J,L){var Y=L("hX1E"),B=Y.normalizeRadian,I=Math.PI*2;function F(T,R,P,m,t,b,o,u,f){if(o===0)return!1;var a=o;u-=T,f-=R;var i=Math.sqrt(u*u+f*f);if(i-a>P||i+at&&(t+=I);var s=Math.atan2(f,u);return s<0&&(s+=I),s>=m&&s<=t||s+I>=m&&s+I<=t}J.containStroke=F},n6Mw:function(Be,J,L){var Y=L("SrGk"),B=L("bYtY"),I=L("Fofx");function F(R,P){Y.call(this,R,P,"clipPath","__clippath_in_use__")}B.inherits(F,Y),F.prototype.update=function(R){var P=this.getSvgElement(R);P&&this.updateDom(P,R.__clipPaths,!1);var m=this.getTextSvgElement(R);m&&this.updateDom(m,R.__clipPaths,!0),this.markUsed(R)},F.prototype.updateDom=function(R,P,m){if(P&&P.length>0){var t=this.getDefs(!0),b=P[0],o,u,f=m?"_textDom":"_dom";b[f]?(u=b[f].getAttribute("id"),o=b[f],t.contains(o)||t.appendChild(o)):(u="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,o=this.createElement("clipPath"),o.setAttribute("id",u),t.appendChild(o),b[f]=o);var a=this.getSvgProxy(b);if(b.transform&&b.parent.invTransform&&!m){var i=Array.prototype.slice.call(b.transform);I.mul(b.transform,b.parent.invTransform,b.transform),a.brush(b),b.transform=i}else a.brush(b);var d=this.getSvgElement(b);o.innerHTML="",o.appendChild(d.cloneNode()),R.setAttribute("clip-path","url(#"+u+")"),P.length>1&&this.updateDom(o,P.slice(1),m)}else R&&R.setAttribute("clip-path","none")},F.prototype.markUsed=function(R){var P=this;R.__clipPaths&&B.each(R.__clipPaths,function(m){m._dom&&Y.prototype.markUsed.call(P,m._dom),m._textDom&&Y.prototype.markUsed.call(P,m._textDom)})};var T=F;Be.exports=T},n6Qo:function(Be,J,L){"use strict";L.d(J,"a",function(){return m});var Y=L("q1tI"),B=L("biw7"),I=L("fyJ8");function F(t){var b=t.className,o=t.index,u=t.children,f=t.colSpan,a=t.rowSpan,i=Y.useContext(B.a),d=i.prefixCls,s=i.fixedInfoList,n=s[o];return Y.createElement(I.a,Object.assign({className:b,index:o,component:"td",prefixCls:d,record:null,dataIndex:null,render:function(){return{children:u,props:{colSpan:f,rowSpan:a}}}},n))}function T(t){return Y.createElement("tr",Object.assign({},t))}function R(t){var b=t.children,o=Y.useContext(B.a),u=o.prefixCls;return Y.createElement("tfoot",{className:"".concat(u,"-summary")},b)}var P=J.b=R,m={Cell:F,Row:T}},nCxF:function(Be,J,L){var Y=L("QBsz"),B=Y.min,I=Y.max,F=Y.scale,T=Y.distance,R=Y.add,P=Y.clone,m=Y.sub;function t(b,o,u,f){var a=[],i=[],d=[],s=[],n,l,c,x;if(f){c=[Infinity,Infinity],x=[-Infinity,-Infinity];for(var A=0,C=b.length;A{f();const i=this._commands.get(o);(i==null?void 0:i.isEmpty())&&this._commands.delete(o)});return this._onDidRegisterCommand.fire(o),a}registerCommandAlias(t,b){return m.registerCommand(t,(o,...u)=>o.get(P).executeCommand(b,...u))}getCommand(t){const b=this._commands.get(t);return!b||b.isEmpty()?void 0:B.a.first(b)}getCommands(){const t=new Map;for(const b of this._commands.keys()){const o=this.getCommand(b);o&&t.set(b,o)}return t}};m.registerCommand("noop",()=>{})},oOBs:function(Be,J,L){Be.exports={leftdiv:"leftdiv___1FhsT",listClass:"listClass___1Y2ac",spantitle:"spantitle___1pL39",rightdiv:"rightdiv___3ZICD"}},ogmK:function(Be,J,L){"use strict";L.d(J,"a",function(){return br});var Y=L("1OyB"),B=L("vuIU"),I=L("Ji7U"),F=L("LK+K"),T=L("rePB"),R=L("VTBJ"),P=L("ODXe"),m=L("q1tI"),t=L("TSYQ"),b=L.n(t),o=L("Kwbf"),u=L("6cGi"),f=L("U8pU"),a=L("4IlW"),i=m.createContext({}),d=i,s={visibility:"hidden"};function n(ne){var Re=ne.prefixCls,Xe=ne.prevIcon,Pe=Xe===void 0?"\u2039":Xe,st=ne.nextIcon,Ze=st===void 0?"\u203A":st,pt=ne.superPrevIcon,mt=pt===void 0?"\xAB":pt,it=ne.superNextIcon,Lt=it===void 0?"\xBB":it,Yt=ne.onSuperPrev,Xt=ne.onSuperNext,St=ne.onPrev,Ft=ne.onNext,at=ne.children,qt=m.useContext(d),zt=qt.hideNextBtn,_n=qt.hidePrevBtn;return m.createElement("div",{className:Re},Yt&&m.createElement("button",{type:"button",onClick:Yt,tabIndex:-1,className:"".concat(Re,"-super-prev-btn"),style:_n?s:{}},mt),St&&m.createElement("button",{type:"button",onClick:St,tabIndex:-1,className:"".concat(Re,"-prev-btn"),style:_n?s:{}},Pe),m.createElement("div",{className:"".concat(Re,"-view")},at),Ft&&m.createElement("button",{type:"button",onClick:Ft,tabIndex:-1,className:"".concat(Re,"-next-btn"),style:zt?s:{}},Ze),Xt&&m.createElement("button",{type:"button",onClick:Xt,tabIndex:-1,className:"".concat(Re,"-super-next-btn"),style:zt?s:{}},Lt))}var l=n;function c(ne){var Re=m.useContext(d),Xe=Re.hideHeader;if(Xe)return null;var Pe=ne.prefixCls,st=ne.generateConfig,Ze=ne.locale,pt=ne.value,mt=ne.format,it="".concat(Pe,"-header");return m.createElement(l,{prefixCls:it},pt?st.locale.format(Ze.locale,pt,mt):"\xA0")}var x=c,A=L("YrtM"),C=L("KQm4"),k=new Map;function w(ne,Re,Xe){if(k.get(ne)&&cancelAnimationFrame(k.get(ne)),Xe<=0){k.set(ne,requestAnimationFrame(function(){ne.scrollTop=Re}));return}var Pe=Re-ne.scrollTop,st=Pe/Xe*10;k.set(ne,requestAnimationFrame(function(){ne.scrollTop+=st,ne.scrollTop!==Re&&w(ne,Re,Xe-10)}))}function y(ne,Re){var Xe=Re.onLeftRight,Pe=Re.onCtrlLeftRight,st=Re.onUpDown,Ze=Re.onPageUpDown,pt=Re.onEnter,mt=ne.which,it=ne.ctrlKey,Lt=ne.metaKey;switch(mt){case a.a.LEFT:if(it||Lt){if(Pe)return Pe(-1),!0}else if(Xe)return Xe(-1),!0;break;case a.a.RIGHT:if(it||Lt){if(Pe)return Pe(1),!0}else if(Xe)return Xe(1),!0;break;case a.a.UP:if(st)return st(-1),!0;break;case a.a.DOWN:if(st)return st(1),!0;break;case a.a.PAGE_UP:if(Ze)return Ze(-1),!0;break;case a.a.PAGE_DOWN:if(Ze)return Ze(1),!0;break;case a.a.ENTER:if(pt)return pt(),!0;break}return!1}function h(ne,Re,Xe,Pe){var st=ne;if(!st)switch(Re){case"time":st=Pe?"hh:mm:ss a":"HH:mm:ss";break;case"week":st="gggg-wo";break;case"month":st="YYYY-MM";break;case"quarter":st="YYYY-[Q]Q";break;case"year":st="YYYY";break;default:st=Xe?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return st}function p(ne,Re){var Xe=ne==="time"?8:10;return Math.max(Xe,Re.length)+2}var v=null,_=new Set;function E(ne){return!v&&typeof window!="undefined"&&window.addEventListener&&(v=function(Xe){Object(C.a)(_).forEach(function(Pe){Pe(Xe)})},window.addEventListener("mousedown",v)),_.add(ne),function(){_.delete(ne),_.size===0&&(window.removeEventListener("mousedown",v),v=null)}}var g=function(Re){return Re==="month"||Re==="date"?"year":Re},j=function(Re){return Re==="date"?"month":Re},U=function(Re){return Re==="month"||Re==="date"?"quarter":Re},S=function(Re){return Re==="date"?"week":Re},z={year:g,month:j,quarter:U,week:S,time:null,date:null};function H(ne,Re){return ne.some(function(Xe){return Xe&&Xe.contains(Re)})}function M(ne){var Re=ne.prefixCls,Xe=ne.units,Pe=ne.onSelect,st=ne.value,Ze=ne.active,pt=ne.hideDisabledOptions,mt="".concat(Re,"-cell"),it=m.useContext(d),Lt=it.open,Yt=m.useRef(null),Xt=m.useRef(new Map);return m.useLayoutEffect(function(){var St=Xt.current.get(st);St&&Lt!==!1&&w(Yt.current,St.offsetTop,120)},[st]),m.useLayoutEffect(function(){if(Lt){var St=Xt.current.get(st);St&&w(Yt.current,St.offsetTop,0)}},[Lt]),m.createElement("ul",{className:b()("".concat(Re,"-column"),Object(T.a)({},"".concat(Re,"-column-active"),Ze)),ref:Yt,style:{position:"relative"}},Xe.map(function(St){var Ft;return pt&&St.disabled?null:m.createElement("li",{key:St.value,ref:function(qt){Xt.current.set(St.value,qt)},className:b()(mt,(Ft={},Object(T.a)(Ft,"".concat(mt,"-disabled"),St.disabled),Object(T.a)(Ft,"".concat(mt,"-selected"),st===St.value),Ft)),onClick:function(){if(St.disabled)return;Pe(St.value)}},m.createElement("div",{className:"".concat(mt,"-inner")},St.label))}))}var V=M;function K(ne,Re){for(var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Pe=String(ne);Pe.length=12,xt%=12);var bn=m.useMemo(function(){if(!Lt)return[!1,!1];var Bn=[!0,!0];return hn.forEach(function(Yn){var Jn=Yn.disabled,Cr=Yn.value;if(Jn)return;Cr>=12?Bn[1]=!1:Bn[0]=!1}),Bn},[Lt,hn]),dn=Object(P.a)(bn,2),rn=dn[0],Tn=dn[1],ir=m.useMemo(function(){return Lt?hn.filter(Ct?function(Bn){return Bn.value>=12}:function(Bn){return Bn.value<12}).map(function(Bn){var Yn=Bn.value%12,Jn=Yn===0?"12":K(Yn,2);return Object(R.a)(Object(R.a)({},Bn),{},{label:Jn,value:Yn})}):hn},[Lt,hn]),hr=de(0,59,Ft,_n&&_n(xt)),Kn=de(0,59,qt,Dn&&Dn(xt,Pt));Pe.current={onUpDown:function(Yn){var Jn=Ht[st];if(Jn)for(var Cr=Jn.units.findIndex(function(xa){return xa.value===Jn.value}),Wr=Jn.units.length,Zr=1;Zr1&&(pt=Re.addDate(pt,-7)),pt}function Le(ne,Re,Xe){var Pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Re){case"year":return Xe.addYear(ne,Pe*10);case"quarter":case"month":return Xe.addYear(ne,Pe);default:return Xe.addMonth(ne,Pe)}}var Ae=m.createContext({}),ut=Ae;function _t(ne){var Re=ne.cellPrefixCls,Xe=ne.generateConfig,Pe=ne.rangedValue,st=ne.hoverRangedValue,Ze=ne.isInView,pt=ne.isSameCell,mt=ne.offsetCell,it=ne.today,Lt=ne.value;function Yt(Xt){var St,Ft=mt(Xt,-1),at=mt(Xt,1),qt=oe(Pe,0),zt=oe(Pe,1),_n=oe(st,0),Dn=oe(st,1),Vt=kt(Xe,_n,Dn,Xt);function cn(Pt){return pt(qt,Pt)}function Ht(Pt){return pt(zt,Pt)}var On=pt(_n,Xt),Sn=pt(Dn,Xt),Ct=(Vt||Sn)&&(!Ze(Ft)||Ht(Ft)),xt=(Vt||On)&&(!Ze(at)||cn(at));return St={},Object(T.a)(St,"".concat(Re,"-in-view"),Ze(Xt)),Object(T.a)(St,"".concat(Re,"-in-range"),kt(Xe,qt,zt,Xt)),Object(T.a)(St,"".concat(Re,"-range-start"),cn(Xt)),Object(T.a)(St,"".concat(Re,"-range-end"),Ht(Xt)),Object(T.a)(St,"".concat(Re,"-range-start-single"),cn(Xt)&&!zt),Object(T.a)(St,"".concat(Re,"-range-end-single"),Ht(Xt)&&!qt),Object(T.a)(St,"".concat(Re,"-range-start-near-hover"),cn(Xt)&&(pt(Ft,_n)||kt(Xe,_n,Dn,Ft))),Object(T.a)(St,"".concat(Re,"-range-end-near-hover"),Ht(Xt)&&(pt(at,Dn)||kt(Xe,_n,Dn,at))),Object(T.a)(St,"".concat(Re,"-range-hover"),Vt),Object(T.a)(St,"".concat(Re,"-range-hover-start"),On),Object(T.a)(St,"".concat(Re,"-range-hover-end"),Sn),Object(T.a)(St,"".concat(Re,"-range-hover-edge-start"),Ct),Object(T.a)(St,"".concat(Re,"-range-hover-edge-end"),xt),Object(T.a)(St,"".concat(Re,"-range-hover-edge-start-near-range"),Ct&&pt(Ft,zt)),Object(T.a)(St,"".concat(Re,"-range-hover-edge-end-near-range"),xt&&pt(at,qt)),Object(T.a)(St,"".concat(Re,"-today"),pt(it,Xt)),Object(T.a)(St,"".concat(Re,"-selected"),pt(Lt,Xt)),St}return Yt}function Je(ne){for(var Re=ne.prefixCls,Xe=ne.disabledDate,Pe=ne.onSelect,st=ne.rowNum,Ze=ne.colNum,pt=ne.prefixColumn,mt=ne.rowClassName,it=ne.baseDate,Lt=ne.getCellClassName,Yt=ne.getCellText,Xt=ne.getCellNode,St=ne.getCellDate,Ft=ne.titleCell,at=ne.headerCells,qt=m.useContext(d),zt=qt.onDateMouseEnter,_n=qt.onDateMouseLeave,Dn="".concat(Re,"-cell"),Vt=[],cn=0;cn2&&arguments[2]!==void 0?arguments[2]:!1;(Ue===qt||gr)&&(Ra(mn),Sn&&Sn(mn),Wr&&Wr(mn,Mn),Ct&&!We(mt,mn,ca)&&Ct(mn))},Rn=function(mn){return ga.current&&ga.current.onKeyDown?([a.a.LEFT,a.a.RIGHT,a.a.UP,a.a.DOWN,a.a.PAGE_UP,a.a.PAGE_DOWN,a.a.ENTER].includes(mn.which)&&mn.preventDefault(),ga.current.onKeyDown(mn)):(Object(o.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},zn=function(mn){ga.current&&ga.current.onBlur&&ga.current.onBlur(mn)};Jn&&Ya!=="right"&&(Jn.current={onKeyDown:Rn,onClose:function(){ga.current&&ga.current.onClose&&ga.current.onClose()}}),m.useEffect(function(){it&&!Na.current&&rt(it)},[it]),m.useEffect(function(){Na.current=!1},[]);var cr,an=Object(R.a)(Object(R.a)({},ne),{},{operationRef:ga,prefixCls:Pe,viewDate:et,value:ca,onViewDateChange:je,sourceMode:bt,onPanelChange:tn,disabledDate:Ue!=="decade"?St:void 0});delete an.onChange,delete an.onSelect;switch(Ue){case"decade":cr=m.createElement(W,Object.assign({},an,{onSelect:function(mn,Mn){je(mn),fn(mn,Mn)}}));break;case"year":cr=m.createElement(Ar,Object.assign({},an,{onSelect:function(mn,Mn){je(mn),fn(mn,Mn)}}));break;case"month":cr=m.createElement(Nt,Object.assign({},an,{onSelect:function(mn,Mn){je(mn),fn(mn,Mn)}}));break;case"quarter":cr=m.createElement(sn,Object.assign({},an,{onSelect:function(mn,Mn){je(mn),fn(mn,Mn)}}));break;case"week":cr=m.createElement(on,Object.assign({},an,{onSelect:function(mn,Mn){je(mn),fn(mn,Mn)}}));break;case"time":delete an.showTime,cr=m.createElement(nt,Object.assign({},an,Object(f.a)(Vt)==="object"?Vt:null,{onSelect:function(mn,Mn){je(mn),fn(mn,Mn)}}));break;default:Vt?cr=m.createElement(Et,Object.assign({},an,{onSelect:function(mn,Mn){je(mn),fn(mn,Mn)}})):cr=m.createElement(he,Object.assign({},an,{onSelect:function(mn,Mn){je(mn),fn(mn,Mn)}}))}var jt,Qt,Pn=function(){var mn=mt.getNow(),Mn=Ie(mt.getHour(mn),mt.getMinute(mn),mt.getSecond(mn),Lr?dn:1,Gr?Tn:1,Bn?hr:1),gr=ye(mt,mn,Mn[0],Mn[1],Mn[2]);fn(gr,"submit")};Zr||(jt=G(Pe,Ue,Ht),Qt=Q({prefixCls:Pe,components:gn,needConfirmButton:Kn,okDisabled:!ca||St&&St(ca),locale:pt,showNow:Dn,onNow:Kn&&Pn,onOk:function(){ca&&(fn(ca,"submit",!0),wt&&wt(ca))}}));var xn;if(cn&&Ue==="date"&&qt==="date"&&!Vt){var vr=mt.getNow(),qn="".concat(Pe,"-today-btn"),Sr=St&&St(vr);xn=m.createElement("a",{className:b()(qn,Sr&&"".concat(qn,"-disabled")),"aria-disabled":Sr,onClick:function(){Sr||fn(vr,"mouse",!0)}},pt.today)}return m.createElement(d.Provider,{value:Object(R.a)(Object(R.a)({},Yn),{},{hideHeader:"hideHeader"in ne?On:Yn.hideHeader,hidePrevBtn:ma&&Ya==="right",hideNextBtn:ma&&Ya==="left"})},m.createElement("div",{tabIndex:_n,className:b()("".concat(Pe,"-panel"),st,(Re={},Object(T.a)(Re,"".concat(Pe,"-panel-has-range"),Oa&&Oa[0]&&Oa[1]),Object(T.a)(Re,"".concat(Pe,"-panel-has-range-hover"),Pa&&Pa[0]&&Pa[1]),Object(T.a)(Re,"".concat(Pe,"-panel-rtl"),hn==="rtl"),Re)),style:Ze,onKeyDown:Rn,onBlur:zn,onMouseDown:Pt,ref:Cr},cr,jt||Qt||xn?m.createElement("div",{className:"".concat(Pe,"-footer")},jt,Qt,xn):null))}var ee=ue,qe=L("uciX"),en={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function An(ne){var Re,Xe=ne.prefixCls,Pe=ne.popupElement,st=ne.popupStyle,Ze=ne.visible,pt=ne.dropdownClassName,mt=ne.dropdownAlign,it=ne.transitionName,Lt=ne.getPopupContainer,Yt=ne.children,Xt=ne.range,St=ne.popupPlacement,Ft=ne.direction,at="".concat(Xe,"-dropdown"),qt=function(){return St!==void 0?St:Ft==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(qe.a,{showAction:[],hideAction:[],popupPlacement:qt(),builtinPlacements:en,prefixCls:at,popupTransitionName:it,popup:Pe,popupAlign:mt,popupVisible:Ze,popupClassName:b()(pt,(Re={},Object(T.a)(Re,"".concat(at,"-range"),Xt),Object(T.a)(Re,"".concat(at,"-rtl"),Ft==="rtl"),Re)),popupStyle:st,getPopupContainer:Lt},Yt)}var Vn=An;function ln(ne){var Re=ne.open,Xe=ne.value,Pe=ne.isClickOutside,st=ne.triggerOpen,Ze=ne.forwardKeyDown,pt=ne.blurToCancel,mt=ne.onSubmit,it=ne.onCancel,Lt=ne.onFocus,Yt=ne.onBlur,Xt=Object(m.useState)(!1),St=Object(P.a)(Xt,2),Ft=St[0],at=St[1],qt=Object(m.useState)(!1),zt=Object(P.a)(qt,2),_n=zt[0],Dn=zt[1],Vt=Object(m.useRef)(!1),cn=Object(m.useRef)(!1),Ht={onMouseDown:function(){at(!0),st(!0)},onKeyDown:function(Sn){switch(Sn.which){case a.a.ENTER:{Re?mt()!==!1&&at(!0):st(!0),Sn.preventDefault();return}case a.a.TAB:{Ft&&Re&&!Sn.shiftKey?(at(!1),Sn.preventDefault()):!Ft&&Re&&(!Ze(Sn)&&Sn.shiftKey&&(at(!0),Sn.preventDefault()));return}case a.a.ESC:{at(!0),it();return}}!Re&&![a.a.SHIFT].includes(Sn.which)?st(!0):Ft||Ze(Sn)},onFocus:function(Sn){at(!0),Dn(!0),Lt&&Lt(Sn)},onBlur:function(Sn){if(Vt.current||!Pe(document.activeElement)){Vt.current=!1;return}pt?setTimeout(function(){Pe(document.activeElement)&&it()},0):Re&&(st(!1),cn.current&&mt()),Dn(!1),Yt&&Yt(Sn)}};return Object(m.useEffect)(function(){cn.current=!1},[Re]),Object(m.useEffect)(function(){cn.current=!0},[Xe]),Object(m.useEffect)(function(){return E(function(On){var Sn=On.target;Re&&(Pe(Sn)?_n||st(!1):(Vt.current=!0,requestAnimationFrame(function(){Vt.current=!1})))})}),[Ht,{focused:_n,typing:Ft}]}function nr(ne){var Re=ne.valueTexts,Xe=ne.onTextChange,Pe=m.useState(""),st=Object(P.a)(Pe,2),Ze=st[0],pt=st[1],mt=m.useRef([]);mt.current=Re;function it(Yt){pt(Yt),Xe(Yt)}function Lt(){pt(mt.current[0])}return m.useEffect(function(){Re.every(function(Yt){return Yt!==Ze})&&Lt()},[Re.join("||")]),[Ze,it,Lt]}var yn=L("Gytx"),un=L.n(yn);function Cn(ne,Re){var Xe=Re.formatList,Pe=Re.generateConfig,st=Re.locale;return Object(A.a)(function(){if(!ne)return[[""],""];for(var Ze="",pt=[],mt=0;mt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Lt.current),_n){it(zt);return}Lt.current=requestAnimationFrame(function(){it(zt)})}var Xt=Cn(mt,{formatList:Xe,generateConfig:Pe,locale:st}),St=Object(P.a)(Xt,2),Ft=St[1];function at(zt){Yt(zt)}function qt(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Yt(null,zt)}return Object(m.useEffect)(function(){qt(!0)},[ne]),Object(m.useEffect)(function(){return function(){return cancelAnimationFrame(Lt.current)}},[]),[Ft,at,qt]}function dr(ne){var Re,Xe=ne.prefixCls,Pe=Xe===void 0?"rc-picker":Xe,st=ne.id,Ze=ne.tabIndex,pt=ne.style,mt=ne.className,it=ne.dropdownClassName,Lt=ne.dropdownAlign,Yt=ne.popupStyle,Xt=ne.transitionName,St=ne.generateConfig,Ft=ne.locale,at=ne.inputReadOnly,qt=ne.allowClear,zt=ne.autoFocus,_n=ne.showTime,Dn=ne.picker,Vt=Dn===void 0?"date":Dn,cn=ne.format,Ht=ne.use12Hours,On=ne.value,Sn=ne.defaultValue,Ct=ne.open,xt=ne.defaultOpen,Pt=ne.defaultOpenValue,Dt=ne.suffixIcon,wt=ne.clearIcon,gn=ne.disabled,hn=ne.disabledDate,bn=ne.placeholder,dn=ne.getPopupContainer,rn=ne.pickerRef,Tn=ne.panelRender,ir=ne.onChange,hr=ne.onOpenChange,Kn=ne.onFocus,Lr=ne.onBlur,Gr=ne.onMouseDown,Bn=ne.onMouseUp,Yn=ne.onMouseEnter,Jn=ne.onMouseLeave,Cr=ne.onContextMenu,Wr=ne.onClick,Zr=ne.direction,ua=ne.autoComplete,xa=ua===void 0?"off":ua,ma=m.useRef(null),Ya=Vt==="date"&&!!_n||Vt==="time",Oa=Z(h(cn,Vt,_n,Ht)),Pa=m.useRef(null),ga=m.useRef(null),Na=Object(u.a)(null,{value:On,defaultValue:Sn}),ai=Object(P.a)(Na,2),da=ai[0],ca=ai[1],Ra=m.useState(da),wa=Object(P.a)(Ra,2),De=wa[0],et=wa[1],rt=m.useRef(null),je=Object(u.a)(!1,{value:Ct,defaultValue:xt,postState:function(fr){return gn?!1:fr},onChange:function(fr){hr&&hr(fr),!fr&&rt.current&&rt.current.onClose&&rt.current.onClose()}}),ce=Object(P.a)(je,2),Ce=ce[0],ge=ce[1],Ue=Cn(De,{formatList:Oa,generateConfig:St,locale:Ft}),Ye=Object(P.a)(Ue,2),ot=Ye[0],Ke=Ye[1],bt=nr({valueTexts:ot,onTextChange:function(fr){var la=St.locale.parse(Ft.locale,fr,Oa);la&&(!hn||!hn(la))&&et(la)}}),Bt=Object(P.a)(bt,3),tn=Bt[0],fn=Bt[1],Rn=Bt[2],zn=function(fr){et(fr),ca(fr),ir&&!We(St,da,fr)&&ir(fr,fr?St.locale.format(Ft.locale,fr,Oa[0]):"")},cr=function(fr){if(gn&&fr)return;ge(fr)},an=function(fr){return Ce&&rt.current&&rt.current.onKeyDown?rt.current.onKeyDown(fr):(Object(o.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},jt=function(){Bn&&Bn.apply(void 0,arguments),ma.current&&(ma.current.focus(),cr(!0))},Qt=ln({blurToCancel:Ya,open:Ce,value:tn,triggerOpen:cr,forwardKeyDown:an,isClickOutside:function(fr){return!H([Pa.current,ga.current],fr)},onSubmit:function(){return hn&&hn(De)?!1:(zn(De),cr(!1),Rn(),!0)},onCancel:function(){cr(!1),et(da),Rn()},onFocus:Kn,onBlur:Lr}),Pn=Object(P.a)(Qt,2),xn=Pn[0],vr=Pn[1],qn=vr.focused,Sr=vr.typing;m.useEffect(function(){Ce||(et(da),!ot.length||ot[0]===""?fn(""):Ke!==tn&&Rn())},[Ce,ot]),m.useEffect(function(){Ce||Rn()},[Vt]),m.useEffect(function(){et(da)},[da]),rn&&(rn.current={focus:function(){ma.current&&ma.current.focus()},blur:function(){ma.current&&ma.current.blur()}});var or=Object(R.a)(Object(R.a)({},ne),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),mn=m.createElement(ee,Object.assign({},or,{generateConfig:St,className:b()(Object(T.a)({},"".concat(Pe,"-panel-focused"),!Sr)),value:De,locale:Ft,tabIndex:-1,onChange:et,direction:Zr}));Tn&&(mn=Tn(mn));var Mn=m.createElement("div",{className:"".concat(Pe,"-panel-container"),onMouseDown:function(fr){fr.preventDefault()}},mn),gr;Dt&&(gr=m.createElement("span",{className:"".concat(Pe,"-suffix")},Dt));var Or;qt&&da&&!gn&&(Or=m.createElement("span",{onMouseDown:function(fr){fr.preventDefault(),fr.stopPropagation()},onMouseUp:function(fr){fr.preventDefault(),fr.stopPropagation(),zn(null),cr(!1)},className:"".concat(Pe,"-clear")},wt||m.createElement("span",{className:"".concat(Pe,"-clear-btn")})));var Qn=function(fr,la){(la==="submit"||la!=="key"&&!Ya)&&(zn(fr),cr(!1))},Pr=Zr==="rtl"?"bottomRight":"bottomLeft",$r=kn(tn,{formatList:Oa,generateConfig:St,locale:Ft}),Ir=Object(P.a)($r,3),Br=Ir[0],Ur=Ir[1],jr=Ir[2];return m.createElement(d.Provider,{value:{operationRef:rt,hideHeader:Vt==="time",panelRef:Pa,onSelect:Qn,open:Ce,defaultOpenValue:Pt,onDateMouseEnter:Ur,onDateMouseLeave:jr}},m.createElement(Vn,{visible:Ce,popupElement:Mn,popupStyle:Yt,prefixCls:Pe,dropdownClassName:it,dropdownAlign:Lt,getPopupContainer:dn,transitionName:Xt,popupPlacement:Pr,direction:Zr},m.createElement("div",{className:b()(Pe,mt,(Re={},Object(T.a)(Re,"".concat(Pe,"-disabled"),gn),Object(T.a)(Re,"".concat(Pe,"-focused"),qn),Object(T.a)(Re,"".concat(Pe,"-rtl"),Zr==="rtl"),Re)),style:pt,onMouseDown:Gr,onMouseUp:jt,onMouseEnter:Yn,onMouseLeave:Jn,onContextMenu:Cr,onClick:Wr},m.createElement("div",{className:b()("".concat(Pe,"-input"),Object(T.a)({},"".concat(Pe,"-input-placeholder"),!!Br)),ref:ga},m.createElement("input",Object.assign({id:st,tabIndex:Ze,disabled:gn,readOnly:at||!Sr,value:Br||tn,onChange:function(fr){fn(fr.target.value)},autoFocus:zt,placeholder:bn,ref:ma,title:tn},xn,{size:p(Vt,Oa[0])},me(ne),{autoComplete:xa})),gr,Or))))}var $n=function(ne){Object(I.a)(Xe,ne);var Re=Object(F.a)(Xe);function Xe(){var Pe;return Object(Y.a)(this,Xe),Pe=Re.apply(this,arguments),Pe.pickerRef=m.createRef(),Pe.focus=function(){Pe.pickerRef.current&&Pe.pickerRef.current.focus()},Pe.blur=function(){Pe.pickerRef.current&&Pe.pickerRef.current.blur()},Pe}return Object(B.a)(Xe,[{key:"render",value:function(){return m.createElement(dr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Xe}(m.Component),Zn=$n;function In(ne,Re,Xe){var Pe=ne.picker,st=ne.locale,Ze=ne.selectedValue,pt=ne.disabledDate,mt=ne.disabled,it=ne.generateConfig,Lt=oe(Ze,0),Yt=oe(Ze,1);function Xt(zt){var _n=it.getYear(zt),Dn=it.locale.getWeek(st.locale,zt);return _n*100+Dn}function St(zt){var _n=it.getYear(zt),Dn=it.getMonth(zt);return _n*100+Dn}function Ft(zt){var _n=it.getYear(zt),Dn=xe(it,zt);return _n*10+Dn}var at=m.useCallback(function(zt){if(pt&&pt(zt))return!0;if(mt[1]&&Yt)return!ct(it,zt,Yt)&&it.isAfter(zt,Yt);if(Re&&Yt)switch(Pe){case"quarter":return Ft(zt)>Ft(Yt);case"month":return St(zt)>St(Yt);case"week":return Xt(zt)>Xt(Yt);default:return!ct(it,zt,Yt)&&it.isAfter(zt,Yt)}return!1},[pt,mt[1],Yt,Re]),qt=m.useCallback(function(zt){if(pt&&pt(zt))return!0;if(mt[0]&&Lt)return!ct(it,zt,Yt)&&it.isAfter(Lt,zt);if(Xe&&Lt)switch(Pe){case"quarter":return Ft(zt)0&&arguments[0]!==void 0?arguments[0]:!1,Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lr=null;jr&&Ia&&Ia[0]&&Ia[1]&&at.isAfter(Ia[1],Ia[0])&&(lr=Ia);var Dr=On;if(On&&Object(f.a)(On)==="object"&&On.defaultValue){var aa=On.defaultValue;Dr=Object(R.a)(Object(R.a)({},On),{},{defaultValue:oe(aa,Ke)||void 0})}var gi=null;return rn&&(gi=function(Da,Xa){return rn(Da,Xa,{range:Ke?"end":"start"})}),m.createElement(ut.Provider,{value:{inRange:!0,panelPosition:_r,rangedValue:Yi||qn,hoverRangedValue:lr}},m.createElement(ee,Object.assign({},ne,Un,{dateRender:gi,showTime:Dr,mode:Mn[Ke],generateConfig:at,style:void 0,direction:Na,disabledDate:Ke===0?$r:Ir,disabledTime:function(Da){return dn?dn(Da,Ke===0?"start":"end"):!1},className:b()(Object(T.a)({},"".concat(Ze,"-panel-focused"),Ke===0?!fa:!so)),value:oe(qn,Ke),locale:qt,tabIndex:-1,onPanelChange:function(Da,Xa){Or(fe(Mn,Xa,Ke),fe(qn,Da,Ke));var vi=Da;_r==="right"&&Mn[Ke]===Xa&&(vi=Le(vi,Xa,at,-1)),Pn(vi,Ke)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var oa=0,Fa=0;Ke&&rt.current&&ce.current&&et.current&&(oa=rt.current.offsetWidth+ce.current.offsetWidth,et.current.offsetWidth&&oa>et.current.offsetWidth&&(Fa=oa));var Mi=Na==="rtl"?{right:oa}:{left:oa};function di(){var _r,Un=G(Ze,Mn[Ke],Cr),lr=Q({prefixCls:Ze,components:Pa,needConfirmButton:Ra,okDisabled:!oe(qn,Ke)||bn&&bn(qn[Ke]),locale:qt,rangeList:Hr,onOk:function(){oe(qn,Ke)&&(Ua(qn,Ke),Oa&&Oa(qn))}});if(Ht!=="time"&&!On){var Dr=Qt(Ke),aa=Le(Dr,Ht,at),gi=Mn[Ke],ii=gi===Ht,Da=Mr(ii?"left":!1,{pickerValue:Dr,onPickerValueChange:function(Ta){Pn(Ta,Ke)}}),Xa=Mr("right",{pickerValue:aa,onPickerValueChange:function(Ta){Pn(Le(Ta,Ht,at,-1),Ke)}});Na==="rtl"?_r=m.createElement(m.Fragment,null,Xa,ii&&Da):_r=m.createElement(m.Fragment,null,Da,ii&&Xa)}else _r=Mr();var vi=m.createElement(m.Fragment,null,m.createElement("div",{className:"".concat(Ze,"-panels")},_r),(Un||lr)&&m.createElement("div",{className:"".concat(Ze,"-footer")},Un,lr));return Tn&&(vi=Tn(vi)),m.createElement("div",{className:"".concat(Ze,"-panel-container"),style:{marginLeft:Fa},ref:et,onMouseDown:function(Ta){Ta.preventDefault()}},vi)}var Ui=m.createElement("div",{className:b()("".concat(Ze,"-range-wrapper"),"".concat(Ze,"-").concat(Ht,"-range-wrapper")),style:{minWidth:Ca}},m.createElement("div",{className:"".concat(Ze,"-range-arrow"),style:Mi}),di()),ci;Lr&&(ci=m.createElement("span",{className:"".concat(Ze,"-suffix")},Lr));var _a;Kn&&(oe(zn,0)&&!tn[0]||oe(zn,1)&&!tn[1])&&(_a=m.createElement("span",{onMouseDown:function(Un){Un.preventDefault(),Un.stopPropagation()},onMouseUp:function(Un){Un.preventDefault(),Un.stopPropagation();var lr=zn;tn[0]||(lr=fe(lr,null,0)),tn[1]||(lr=fe(lr,null,1)),Ua(lr,null),Xr(!1,Ke)},className:"".concat(Ze,"-clear")},Gr||m.createElement("span",{className:"".concat(Ze,"-clear-btn")})));var Fi={size:p(Ht,Ue[0])},Bi=0,Hi=0;rt.current&&je.current&&ce.current&&(Ke===0?Hi=rt.current.offsetWidth:(Bi=oa,Hi=je.current.offsetWidth));var za=Na==="rtl"?{right:Bi}:{left:Bi},Fr=function(Un,lr){var Dr=fe(qn,Un,Ke);lr==="submit"||lr!=="key"&&!Ra?(Ua(Dr,Ke),Ke===0?$i():ro()):Sr(Dr)};return m.createElement(d.Provider,{value:{operationRef:Bt,hideHeader:Ht==="time",onDateMouseEnter:Ao,onDateMouseLeave:Do,hideRanges:!0,onSelect:Fr,open:jr}},m.createElement(Vn,{visible:jr,popupElement:Ui,popupStyle:Lt,prefixCls:Ze,dropdownClassName:Yt,dropdownAlign:St,getPopupContainer:Ft,transitionName:Xt,range:!0,direction:Na},m.createElement("div",Object.assign({ref:De,className:b()(Ze,"".concat(Ze,"-range"),it,(Re={},Object(T.a)(Re,"".concat(Ze,"-disabled"),tn[0]&&tn[1]),Object(T.a)(Re,"".concat(Ze,"-focused"),Ke===0?Aa:oo),Object(T.a)(Re,"".concat(Ze,"-rtl"),Na==="rtl"),Re)),style:mt,onClick:xi,onMouseDown:Ji},me(ne)),m.createElement("div",{className:b()("".concat(Ze,"-input"),(Xe={},Object(T.a)(Xe,"".concat(Ze,"-input-active"),Ke===0),Object(T.a)(Xe,"".concat(Ze,"-input-placeholder"),!!mi),Xe)),ref:rt},m.createElement("input",Object.assign({id:pt,disabled:tn[0],readOnly:Yn||!fa,value:mi||Si,onChange:function(Un){Ii(Un.target.value)},autoFocus:_n,placeholder:oe(zt,0)||"",ref:Ce},Wa,Fi,{autoComplete:ca}))),m.createElement("div",{className:"".concat(Ze,"-range-separator"),ref:ce},xt),m.createElement("div",{className:b()("".concat(Ze,"-input"),(Pe={},Object(T.a)(Pe,"".concat(Ze,"-input-active"),Ke===1),Object(T.a)(Pe,"".concat(Ze,"-input-placeholder"),!!ui),Pe)),ref:je},m.createElement("input",Object.assign({disabled:tn[1],readOnly:Yn||!so,value:ui||Oi,onChange:function(Un){Vi(Un.target.value)},placeholder:oe(zt,1)||"",ref:ge},qa,Fi,{autoComplete:ca}))),m.createElement("div",{className:"".concat(Ze,"-active-bar"),style:Object(R.a)(Object(R.a)({},za),{},{width:Hi,position:"absolute"})}),ci,_a)))}var Tr=function(ne){Object(I.a)(Xe,ne);var Re=Object(F.a)(Xe);function Xe(){var Pe;return Object(Y.a)(this,Xe),Pe=Re.apply(this,arguments),Pe.pickerRef=m.createRef(),Pe.focus=function(){Pe.pickerRef.current&&Pe.pickerRef.current.focus()},Pe.blur=function(){Pe.pickerRef.current&&Pe.pickerRef.current.blur()},Pe}return Object(B.a)(Xe,[{key:"render",value:function(){return m.createElement(Rr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Xe}(m.Component),br=Tr,wr=J.b=Zn},osHv:function(Be,J,L){(function(Y){Y(L("VrN/"))})(function(Y){"use strict";var B=Y.Pos;function I(s,n){return s.line-n.line||s.ch-n.ch}var F="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",T=F+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",R=new RegExp("<(/?)(["+F+"]["+T+"]*)","g");function P(s,n,l,c){this.line=n,this.ch=l,this.cm=s,this.text=s.getLine(n),this.min=c?Math.max(c.from,s.firstLine()):s.firstLine(),this.max=c?Math.min(c.to-1,s.lastLine()):s.lastLine()}function m(s,n){var l=s.cm.getTokenTypeAt(B(s.line,n));return l&&/\btag\b/.test(l)}function t(s){return s.line>=s.max?void 0:(s.ch=0,s.text=s.cm.getLine(++s.line),!0)}function b(s){return s.line<=s.min?void 0:(s.text=s.cm.getLine(--s.line),s.ch=s.text.length,!0)}function o(s){for(;;){var n=s.text.indexOf(">",s.ch);if(n==-1){if(t(s))continue;return}if(!m(s,n+1)){s.ch=n+1;continue}var l=s.text.lastIndexOf("/",n),c=l>-1&&!/\S/.test(s.text.slice(l+1,n));return s.ch=n+1,c?"selfClose":"regular"}}function u(s){for(;;){var n=s.ch?s.text.lastIndexOf("<",s.ch-1):-1;if(n==-1){if(b(s))continue;return}if(!m(s,n+1)){s.ch=n;continue}R.lastIndex=n,s.ch=n;var l=R.exec(s.text);if(l&&l.index==n)return l}}function f(s){for(;;){R.lastIndex=s.ch;var n=R.exec(s.text);if(!n){if(t(s))continue;return}if(!m(s,n.index+1)){s.ch=n.index+1;continue}return s.ch=n.index+n[0].length,n}}function a(s){for(;;){var n=s.ch?s.text.lastIndexOf(">",s.ch-1):-1;if(n==-1){if(b(s))continue;return}if(!m(s,n+1)){s.ch=n;continue}var l=s.text.lastIndexOf("/",n),c=l>-1&&!/\S/.test(s.text.slice(l+1,n));return s.ch=n+1,c?"selfClose":"regular"}}function i(s,n){for(var l=[];;){var c=f(s),x,A=s.line,C=s.ch-(c?c[0].length:0);if(!c||!(x=o(s)))return;if(x=="selfClose")continue;if(c[1]){for(var k=l.length-1;k>=0;--k)if(l[k]==c[2]){l.length=k;break}if(k<0&&(!n||n==c[2]))return{tag:c[2],from:B(A,C),to:B(s.line,s.ch)}}else l.push(c[2])}}function d(s,n){for(var l=[];;){var c=a(s);if(!c)return;if(c=="selfClose"){u(s);continue}var x=s.line,A=s.ch,C=u(s);if(!C)return;if(C[1])l.push(C[2]);else{for(var k=l.length-1;k>=0;--k)if(l[k]==C[2]){l.length=k;break}if(k<0&&(!n||n==C[2]))return{tag:C[2],from:B(s.line,s.ch),to:B(x,A)}}}}Y.registerHelper("fold","xml",function(s,n){for(var l=new P(s,n.line,0);;){var c=f(l);if(!c||l.line!=n.line)return;var x=o(l);if(!x)return;if(!c[1]&&x!="selfClose"){var A=B(l.line,l.ch),C=i(l,c[2]);return C&&I(C.from,A)>0?{from:A,to:C.from}:null}}}),Y.findMatchingTag=function(s,n,l){var c=new P(s,n.line,n.ch,l);if(c.text.indexOf(">")==-1&&c.text.indexOf("<")==-1)return;var x=o(c),A=x&&B(c.line,c.ch),C=x&&u(c);if(!x||!C||I(c,n)>0)return;var k={from:B(c.line,c.ch),to:A,tag:C[2]};return x=="selfClose"?{open:k,close:null,at:"open"}:C[1]?{open:d(c,C[2]),close:k,at:"close"}:(c=new P(s,A.line,A.ch,l),{open:k,close:i(c,C[2]),at:"open"})},Y.findEnclosingTag=function(s,n,l,c){for(var x=new P(s,n.line,n.ch,l);;){var A=d(x,c);if(!A)break;var C=new P(s,n.line,n.ch,l),k=i(C,A.tag);if(k)return{open:A,close:k}}},Y.scanForClosingTag=function(s,n,l,c){var x=new P(s,n.line,n.ch,c?{from:0,to:c}:null);return i(x,l)}})},p5ED:function(Be,J,L){"use strict";var Y=L("+L6B"),B=L("2/Rp"),I=L("5Dmo"),F=L("3S7+"),T=L("k1fw"),R=L("tJVT"),P=L("q1tI"),m=L.n(P),t=L("vHTk"),b=L.n(t),o=L("yEEn"),u=L("ZW9T"),f=L("1vsH");J.a=function(a){var i=a.name,d=a.data,s=a.theme,n=a.type,l=a.filename,c=a.monacoEditor,x=a.className,A=a.style,C=a.close,k=a.onClose,w=a.hasMask,y=Object(P.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),h=Object(R.a)(y,2),p=h[0],v=h[1],_=Object(P.useState)(""),E=Object(R.a)(_,2),g=E[0],j=E[1],U,S=1024*1024,z=10*S,H=Object(P.useRef)();n==="office"&&(U=Object(f.T)(d).filesize,U>z&&(n="other")),l&&(c.filename=l),Object(P.useEffect)(function(){var K,$,Z=(K=document.cookie)===null||K===void 0||(($=K.replace(/\s/g,""))===null||$===void 0)?void 0:$.split(";");Z==null||Z.map(function(me){var oe=me.split("=");oe[0]==="_educoder_session"&&j(oe[1])})},[]);var M=function(){if(d.startsWith("http")||d.startsWith("/")){V();return}Object(f.z)(l||"educoder",d,l)},V=function(){Object(f.x)(l||i,d)};return console.log("data:",d,"fileanme:",l," name:",i),m.a.createElement("div",{style:Object(T.a)({},A||{}),className:"".concat(w&&b.a.bgBlack," ").concat(n?b.a.wrp:"hide")},C&&m.a.createElement("div",{className:b.a.close,ref:H},m.a.createElement(F.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return H.current}},m.a.createElement("span",{onClick:V},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(F.a,{title:"\u5173\u95ED",getPopupContainer:function(){return H.current}},m.a.createElement("span",{className:"",onClick:k},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(b.a[x]," ").concat(x," ").concat(b.a.monaco," ").concat(n==="txt"?"show":"hide")},n==="txt"&&m.a.createElement(u.b,c)),n==="audio"&&m.a.createElement("audio",{src:"".concat(d!=null&&d.startsWith("/")||(d==null?void 0:d.indexOf("https://"))>-1?d:"data:audio/mp3;base64,").concat(d),autoPlay:!0}),n==="video"&&m.a.createElement(m.a.Fragment,null,d!=null&&d.startsWith("/")?m.a.createElement("video",{controls:!0,src:"".concat(d),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(d),autoPlay:!0})),n==="html"&&m.a.createElement("iframe",{src:d+"&disposition=inline"}),n==="pdf"&&m.a.createElement("embed",{className:b.a.embed,src:d}),n==="image"&&m.a.createElement(m.a.Fragment,null,m.a.createElement("img",{src:"".concat(d!=null&&d.startsWith("/")||(d==null?void 0:d.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(d)})),n==="other"&&m.a.createElement("div",null,m.a.createElement(B.a,{type:"primary",size:"large",onClick:M},m.a.createElement(o.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(n==="download"||n==="office")&&m.a.createElement(B.a,{type:"primary",size:"large",onClick:M},m.a.createElement(o.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Be,J,L){},pmY6:function(Be,J,L){"use strict";L.d(J,"h",function(){return b}),L.d(J,"g",function(){return u}),L.d(J,"f",function(){return f}),L.d(J,"e",function(){return a}),L.d(J,"i",function(){return i}),L.d(J,"b",function(){return d}),L.d(J,"a",function(){return s}),L.d(J,"d",function(){return n}),L.d(J,"c",function(){return l});var Y=L("C/vA"),B=L("JYp7");const I=!1;let F=null;function T(c){F=c}if(I){const c="__is_disposable_tracked__";T(new class{trackDisposable(x){const A=new Error("Potentially leaked disposable").stack;setTimeout(()=>{x[c]||console.log(A)},3e3)}setParent(x,A){if(x&&x!==s.None)try{x[c]=!0}catch(C){}}markAsDisposed(x){if(x&&x!==s.None)try{x[c]=!0}catch(A){}}markAsSingleton(x){}})}function R(c){return F==null||F.trackDisposable(c),c}function P(c){F==null||F.markAsDisposed(c)}function m(c,x){F==null||F.setParent(c,x)}function t(c,x){if(!F)return;for(const A of c)F.setParent(A,x)}function b(c){return F==null||F.markAsSingleton(c),c}class o extends Error{constructor(c){super(`Encountered errors while disposing of store. Errors: [${c.join(", ")}]`);this.errors=c}}function u(c){return typeof c.dispose=="function"&&c.dispose.length===0}function f(c){if(B.a.is(c)){let x=[];for(const A of c)if(A)try{A.dispose()}catch(C){x.push(C)}if(x.length===1)throw x[0];if(x.length>1)throw new o(x);return Array.isArray(c)?[]:c}else if(c)return c.dispose(),c}function a(...c){const x=i(()=>f(c));return t(c,x),x}function i(c){const x=R({dispose:Object(Y.a)(()=>{P(x),c()})});return x}class d{constructor(){this._toDispose=new Set,this._isDisposed=!1,R(this)}dispose(){if(this._isDisposed)return;P(this),this._isDisposed=!0,this.clear()}clear(){try{f(this._toDispose.values())}finally{this._toDispose.clear()}}add(c){if(!c)return c;if(c===this)throw new Error("Cannot register a disposable on itself!");return m(c,this),this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(c),c}}d.DISABLE_DISPOSED_WARNING=!1;class s{constructor(){this._store=new d,R(this),m(this._store,this)}dispose(){P(this),this._store.dispose()}_register(c){if(c===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(c)}}s.None=Object.freeze({dispose(){}});class n{constructor(){this._isDisposed=!1,R(this)}get value(){return this._isDisposed?void 0:this._value}set value(c){var x;if(this._isDisposed||c===this._value)return;(x=this._value)===null||x===void 0||x.dispose(),c&&m(c,this),this._value=c}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,P(this),(c=this._value)===null||c===void 0||c.dispose(),this._value=void 0}clearAndLeak(){const c=this._value;return this._value=void 0,c&&m(c,null),c}}class l{constructor(c){this.object=c}dispose(){}}},psGv:function(Be,J,L){var Y,B;(function(){var I;(function(){"use strict";var P=[,,function(o){function u(i){this.__parent=i,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}u.prototype.clone_empty=function(){var i=new u(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},u.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},u.prototype.has_match=function(i){for(var d=this.__items.length-1;d>=0;d--)if(this.__items[d].match(i))return!0;return!1},u.prototype.set_indent=function(i,d){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=d||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},u.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},u.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},u.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},u.prototype.is_empty=function(){return this.__items.length===0},u.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},u.prototype.push=function(i){this.__items.push(i);var d=i.lastIndexOf(` +*/var t=!B.canvasSupported,b={canvas:R},o={},u="4.3.1";function f(l,c){var x=new n(Y(),l,c);return o[x.id]=x,x}function a(l){if(l)l.dispose();else{for(var c in o)o.hasOwnProperty(c)&&o[c].dispose();o={}}return this}function i(l){return o[l]}function d(l,c){b[l]=c}function s(l){delete o[l]}var n=function(l,c,x){x=x||{},this.dom=c,this.id=l;var A=this,C=new T,k=x.renderer;if(t){if(!b.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");k="vml"}else(!k||!b[k])&&(k="canvas");var w=new b[k](c,C,x,l);this.storage=C,this.painter=w;var y=!B.node&&!B.worker?new m(w.getViewportRoot(),w.root):null;this.handler=new F(C,w,y,w.root),this.animation=new P({stage:{update:I.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var h=C.delFromStorage,p=C.addToStorage;C.delFromStorage=function(v){h.call(C,v),v&&v.removeSelfFromZr(A)},C.addToStorage=function(v){p.call(C,v),v.addSelfToZr(A)}};n.prototype={constructor:n,getId:function(){return this.id},add:function(l){this.storage.addRoot(l),this._needsRefresh=!0},remove:function(l){this.storage.delRoot(l),this._needsRefresh=!0},configLayer:function(l,c){this.painter.configLayer&&this.painter.configLayer(l,c),this._needsRefresh=!0},setBackgroundColor:function(l){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(l),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var l;this._needsRefresh&&(l=!0,this.refreshImmediately()),this._needsRefreshHover&&(l=!0,this.refreshHoverImmediately()),l&&this.trigger("rendered")},addHover:function(l,c){if(this.painter.addHover){var x=this.painter.addHover(l,c);return this.refreshHover(),x}},removeHover:function(l){this.painter.removeHover&&(this.painter.removeHover(l),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(l){l=l||{},this.painter.resize(l.width,l.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(l,c){return this.painter.pathToImage(l,c)},setCursorStyle:function(l){this.handler.setCursorStyle(l)},findHover:function(l,c){return this.handler.findHover(l,c)},on:function(l,c,x){this.handler.on(l,c,x)},off:function(l,c){this.handler.off(l,c)},trigger:function(l,c){this.handler.trigger(l,c)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,s(this.id)}},J.version=u,J.init=f,J.dispose=a,J.getInstance=i,J.registerPainter=d},bT9E:function(Be,J,L){"use strict";L.d(J,"a",function(){return B});var Y=L("VTBJ");function B(I,F){var T=Object(Y.a)({},I);return Array.isArray(F)&&F.forEach(function(R){delete T[R]}),T}},bYtY:function(Be,J){var L={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Y={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},B=Object.prototype.toString,I=Array.prototype,F=I.forEach,T=I.filter,R=I.slice,P=I.map,m=I.reduce,t={};function b(Ee,Me){Ee==="createCanvas"&&(s=null),t[Ee]=Me}function o(Ee){if(Ee==null||typeof Ee!="object")return Ee;var Me=Ee,rt=B.call(Ee);if(rt==="[object Array]"){if(!Ie(Ee)){Me=[];for(var He=0,ke=Ee.length;He1?$-1:0),me=1;me<$;me++)Z[me-1]=arguments[me];H.apply(void 0,[S].concat(Z))}},g.onKeyUp=function(S){var z=g.props.onKeyUp;if(g.stop(),g.recordCursorPosition(),z){for(var H=arguments.length,M=new Array(H>1?H-1:0),V=1;V=0)return parseInt(z.slice(z.indexOf("e-")+2),10);var H=0;return z.indexOf(".")>=0&&(H=z.length-z.indexOf(".")-1),H},g.getInputDisplayValue=function(S){var z=S||g.state,H=z.focused,M=z.inputValue,V=z.value,K;H?K=M:K=g.toPrecisionAsStep(V),K==null&&(K="");var $=g.formatWrapper(K);return C(g.props.decimalSeparator)&&($=$.toString().replace(".",g.props.decimalSeparator)),$},g.recordCursorPosition=function(){try{g.cursorStart=g.input.selectionStart,g.cursorEnd=g.input.selectionEnd,g.currentValue=g.input.value,g.cursorBefore=g.input.value.substring(0,g.cursorStart),g.cursorAfter=g.input.value.substring(g.cursorEnd)}catch(S){}},g.restoreByAfter=function(S){if(S===void 0)return!1;var z=g.input.value,H=z.lastIndexOf(S);if(H===-1)return!1;var M=g.cursorBefore.length;return g.lastKeyCode===u.a.DELETE&&g.cursorBefore.charAt(M-1)===S[0]?(g.fixCaret(M,M),!0):H+S.length===z.length?(g.fixCaret(H,H),!0):!1},g.partRestoreByAfter=function(S){return S===void 0?!1:Array.prototype.some.call(S,function(z,H){var M=S.substring(H);return g.restoreByAfter(M)})},g.isNotCompleteNumber=function(S){return isNaN(S)||S===""||S===null||S&&S.toString().indexOf(".")===S.toString().length-1},g.stop=function(){g.autoStepTimer&&clearTimeout(g.autoStepTimer)},g.down=function(S,z,H){g.pressingUpOrDown=!0,g.step("down",S,z,H)},g.up=function(S,z,H){g.pressingUpOrDown=!0,g.step("up",S,z,H)},g.saveInput=function(S){g.input=S};var j=E.value;j===void 0&&(j=E.defaultValue),g.state={focused:E.autoFocus};var U=g.getValidValue(g.toNumber(j));return g.state=a(a({},g.state),{},{inputValue:g.toPrecisionAsStep(U),value:U}),g}return Object(F.a)(_,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(g){var j=this.props,U=j.value,S=j.onChange,z=j.max,H=j.min,M=this.state.focused;if(g){if(!k(g.value,U)||!k(g.max,z)||!k(g.min,H)){var V=M?U:this.getValidValue(U),K;this.pressingUpOrDown?K=V:this.inputting?K=this.rawInput:K=this.toPrecisionAsStep(V),this.setState({value:V,inputValue:K})}var $="value"in this.props?U:this.state.value;"max"in this.props&&g.max!==z&&typeof $=="number"&&$>z&&S&&S(z),"min"in this.props&&g.min!==H&&typeof $=="number"&&$1&&arguments[1]!==void 0?arguments[1]:this.props.min,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,S=parseFloat(g);return isNaN(S)?g:(SU&&(S=U),S)}},{key:"setValue",value:function(g,j){var U=this.props.precision,S=this.isNotCompleteNumber(parseFloat(g))?null:parseFloat(g),z=this.state.value,H=z===void 0?null:z,M=this.state.inputValue,V=M===void 0?null:M,K=typeof S=="number"?S.toFixed(U):"".concat(S),$=S!==H||K!=="".concat(V);return"value"in this.props?(V=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:V},j)):this.setState({value:S,inputValue:this.toPrecisionAsStep(g)},j),$&&this.props.onChange(S),S}},{key:"getMaxPrecision",value:function(g){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.props,S=U.precision,z=U.step;if(C(S))return S;var H=this.getPrecision(j),M=this.getPrecision(z),V=this.getPrecision(g);return g?Math.max(V,H+M):H+M}},{key:"getPrecisionFactor",value:function(g){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.getMaxPrecision(g,j);return Math.pow(10,U)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(g){return this.props.formatter?this.props.formatter(g):g}},{key:"toPrecisionAsStep",value:function(g){if(this.isNotCompleteNumber(g)||g==="")return g;var j=Math.abs(this.getMaxPrecision(g));return isNaN(j)?g.toString():Number(g).toFixed(j)}},{key:"toNumber",value:function(g){var j=this.props.precision,U=this.state.focused,S=g&&g.length>16&&U;return this.isNotCompleteNumber(g)||S?g:C(j)?Math.round(g*Math.pow(10,j))/Math.pow(10,j):Number(g)}},{key:"upStep",value:function(g,j){var U=this.props.step,S=this.getPrecisionFactor(g,j),z=Math.abs(this.getMaxPrecision(g,j)),H=((S*g+S*U*j)/S).toFixed(z);return this.toNumber(H)}},{key:"downStep",value:function(g,j){var U=this.props.step,S=this.getPrecisionFactor(g,j),z=Math.abs(this.getMaxPrecision(g,j)),H=((S*g-S*U*j)/S).toFixed(z);return this.toNumber(H)}},{key:"step",value:function(g,j){var U=this,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,z=arguments.length>3?arguments[3]:void 0;this.stop(),j&&(j.persist(),j.preventDefault());var H=this.props;if(H.disabled)return;var M=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(M))return;var V=this["".concat(g,"Step")](M,S),K=V>H.max||VH.max?V=H.max:V=Z),dt=(kt||kt===0)&&(isNaN(kt)||Number(kt)<=me),Ne=Ze||S||z,Te=dt||S||z,Oe=o()("".concat(U,"-handler"),"".concat(U,"-handler-up"),Object(B.a)({},"".concat(U,"-handler-up-disabled"),Ne)),ae=o()("".concat(U,"-handler"),"".concat(U,"-handler-down"),Object(B.a)({},"".concat(U,"-handler-down-disabled"),Te)),le=H?{onTouchStart:Ne?s:this.up,onTouchEnd:this.stop}:{onMouseDown:Ne?s:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},he=H?{onTouchStart:Te?s:this.down,onTouchEnd:this.stop}:{onMouseDown:Te?s:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return t.a.createElement("div",{className:Pe,style:oe,title:fe,onMouseEnter:ye,onMouseLeave:Ie,onMouseOver:ve,onMouseOut:de,onFocus:function(){return null},onBlur:function(){return null}},t.a.createElement("div",{className:"".concat(U,"-handler-wrap")},t.a.createElement("span",Object.assign({unselectable:"on"},le,{role:"button","aria-label":"Increase Value","aria-disabled":Ne,className:Oe}),V||t.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-up-inner"),onClick:n})),t.a.createElement("span",Object.assign({unselectable:"on"},he,{role:"button","aria-label":"Decrease Value","aria-disabled":Te,className:ae}),K||t.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-down-inner"),onClick:n}))),t.a.createElement("div",{className:"".concat(U,"-input-wrap")},t.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":me,"aria-valuemax":Z,"aria-valuenow":kt,required:Je,type:Me,placeholder:rt,onPaste:ct,onClick:Rt,onMouseUp:this.onMouseUp,className:"".concat(U,"-input"),tabIndex:Ee,autoComplete:M,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ut?this.onKeyDown:s,onKeyUp:ut?this.onKeyUp:s,autoFocus:we,maxLength:xe,readOnly:z,disabled:S,max:Z,min:me,step:ie,name:$e,title:fe,id:He,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Et),pattern:ht,inputMode:ke,onInput:yt},Ae))))}}]),_}(t.a.Component);w.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:A,min:-A,step:1,style:{},onChange:s,onKeyDown:s,onPressEnter:s,onFocus:s,onBlur:s,parser:l,required:!1,autoComplete:"off"};var y=w,h=J.a=y},dqUG:function(Be,J,L){var Y=L("Gev7"),B=L("bYtY"),I=L("6GrX"),F=L("pzxd"),T=L("gut8"),R=T.ContextCachedBy,P=function(t){Y.call(this,t)};P.prototype={constructor:P,type:"text",brush:function(t,b){var o=this.style;this.__dirty&&F.normalizeTextStyle(o,!0),o.fill=o.stroke=o.shadowBlur=o.shadowColor=o.shadowOffsetX=o.shadowOffsetY=null;var u=o.text;if(u!=null&&(u+=""),!F.needDrawText(u,o)){t.__attrCachedBy=R.NONE;return}this.setTransform(t),F.renderText(this,t,u,o,null,b),this.restoreTransform(t)},getBoundingRect:function(){var t=this.style;if(this.__dirty&&F.normalizeTextStyle(t,!0),!this._rect){var b=t.text;b!=null?b+="":b="";var o=I.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(o.x+=t.x||0,o.y+=t.y||0,F.getStroke(t.textStroke,t.textStrokeWidth)){var u=t.textStrokeWidth;o.x-=u/2,o.y-=u/2,o.width+=u,o.height+=u}this._rect=o}return this._rect}},B.inherits(P,Y);var m=P;Be.exports=m},eozf:function(Be,J,L){"use strict";L.d(J,"b",function(){return Ie}),L.d(J,"c",function(){return ve});var Y=L("sRBo"),B=L("kaz8"),I=L("5Dmo"),F=L("3S7+"),T=L("/zsF"),R=L("PArb"),P=L("7Kak"),m=L("9yH6"),t=L("14J3"),b=L("BMrR"),o=L("+L6B"),u=L("2/Rp"),f=L("jCWc"),a=L("kPKH"),i=L("2qtc"),d=L("kLXV"),s=L("9og8"),n=L("miYZ"),l=L("tsqr"),c=L("oBTY"),x=L("k1fw"),A=L("tJVT"),C=L("OaEy"),k=L("2fM7"),w=L("iQDF"),y=L("+eQT"),h=L("WmNS"),p=L.n(h),v=L("q1tI"),_=L.n(v),E=L("/MfK"),g=L("w5pM"),j=L("Lyp1"),U=L("wd/R"),S=L.n(U),z=L("xKgJ"),H=L("ErOA"),M=L("LvDl"),V=L.n(M),K=L("1vsH"),$=L("zetH"),Z=L.n($),me=L("Ty5D"),oe=L("9kvl"),fe=L("AHFd");function ye(Ee,Me){for(var rt=[],He=Ee;HeS()(rt).endOf("day"),ie=Me100)throw l.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!gt.late_time)throw l.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else{var ln;ze=(ln=ze)===null||ln===void 0?void 0:ln.map(function(gn){var tr,Wn;if(gn.late_penalty===null||gn.late_penalty===void 0||gn.late_penalty<0||gn.late_penalty>100)throw l.b.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!gn.late_time)throw l.b.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!gn.group_name)throw l.b.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return gn.group_name=typeof(gn==null?void 0:gn.group_name)=="string"?[gn==null?void 0:gn.group_name]:gn==null?void 0:gn.group_name,gn.group_id=gn==null||((tr=gn.group_name)===null||tr===void 0||((Wn=tr.map(function(En){var xr,Er,rr=(xr=We.group_settings)===null||xr===void 0||((Er=xr.filter(function(ur){return(ur==null?void 0:ur.group_name)===En}))===null||Er===void 0)?void 0:Er[0];return rr==null?void 0:rr.group_id}))===null||Wn===void 0))?void 0:Wn.toString().split(","),gn}),Wt.allow_late_settings=ze}ft(Wt)},ft=function(lt){var Lt,Wt;if(lt.total_score===null){l.b.warn("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(lt!=null&<.work_efficiency&<.eff_score===null){l.b.warn("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}var ln=lt.challenge_settings.reduce(function(Wn,En){return Wn+Number(En.challenge_score)},0);if((ln==null?void 0:ln.toFixed(10))!==((Lt=lt.total_score-lt.eff_score)===null||Lt===void 0?void 0:Lt.toFixed(10))){l.b.warn("\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A".concat(lt.total_score,"\u5206"));return}var gn={shixun_evaluation:lt.shixun_evaluation,challenge_settings:lt.challenge_settings},tr=function(){var Wn=Object(s.a)(p.a.mark(function En(){var xr;return p.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:return Te(!0),rr.next=3,Object(H.a)("/api/homework_commons/".concat(Ut.categoryId,"/publish_setting.json"),{method:"post",body:Object(x.a)({},lt)});case 3:xr=rr.sent,xr.status===0&&(l.b.success("\u66F4\u65B0\u6210\u529F"),Et(!0),Ot(),yt({type:"shixunHomeworks/getWorkList",payload:Object(x.a)({},Ut)})),Te(!1);case 6:case"end":return rr.stop()}},En)}));return function(){return Wn.apply(this,arguments)}}();!Object(M.isEqual)(qt,gn)&&!(kt!=null&&(Wt=kt.homework_status)!==null&&Wt!==void 0&&Wt.includes("\u672A\u53D1\u5E03"))?d.a.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:tr}):tr()},be=function(lt,Lt){var Wt,ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"group_id";return Lt?Lt.find(function(gn){return gn[ln]===lt}):We==null||((Wt=We.group_settings)===null||Wt===void 0)?void 0:Wt.find(function(gn){return gn.group_id[0]===lt})},Fe=(We==null?void 0:We.allow_late)||(We==null?void 0:We.anonymous_comment),Nt=function(lt){var Lt=be(lt,We==null?void 0:We.allow_late_settings,"id"),Wt=be(lt,We==null?void 0:We.anonymous_comment_settings);return(We==null?void 0:We.allow_late)&&Lt&&(Lt==null?void 0:Lt.late_time)!==null||(We==null?void 0:We.anonymous_comment)&&Wt&&(Wt==null?void 0:Wt.evaluation_start)!==null},bt=Object(v.useMemo)(function(){var Ge;if(We!=null&&We.unified_setting){var lt;return!(kt!=null&&(lt=kt.homework_status)!==null&<!==void 0&<.includes("\u5DF2\u622A\u6B62"))||(We==null?void 0:We.allow_late)||(We==null?void 0:We.anonymous_comment)}var Lt=We==null||((Ge=We.group_settings)===null||Ge===void 0)?void 0:Ge.some(function(Wt){return S()(Wt.end_time)<=S()()});return!Lt||(We==null?void 0:We.allow_late)||(We==null?void 0:We.all_group_late)},[We,kt]),Kt=We==null?void 0:We.anonymous_comment,Zt=function(lt){if(!lt)return!1;var Lt=be(lt,We==null?void 0:We.anonymous_comment_settings);return(We==null?void 0:We.anonymous_comment)&&Lt&&(Lt==null?void 0:Lt.evaluation_start)!==null};return _.a.createElement("section",{className:[Z.a.form," bg-white pl30 pr30 pt10"].join(" ")},_.a.createElement(b.a,null,_.a.createElement(a.a,{span:24},_.a.createElement(b.a,{align:"middle"},_.a.createElement(a.a,{flex:"1"}),_.a.createElement(a.a,null,Object(z.c)()&&ut&&_.a.createElement(u.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return Et(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")))),_.a.createElement("div",null,_.a.createElement("label",null,"\u53D1\u5E03\u65B9\u5F0F\uFF1A")," ",_.a.createElement(m.a.Group,{disabled:ut||!(kt!=null&&(rt=kt.homework_status)!==null&&rt!==void 0&&rt.includes("\u672A\u53D1\u5E03")),value:gt.unified_setting,onChange:function(lt){var Lt;if(!(kt!=null&&(Lt=kt.homework_status)!==null&&Lt!==void 0&&Lt.includes("\u672A\u53D1\u5E03"))){l.b.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(gt.unified_setting=!gt.unified_setting,gt.unified_setting||(gt.unified_late=!1),zt(Object.assign({},gt)),gt.unified_setting===!1&&le==""){he(le.concat({}));return}gt.unified_setting&&(he([]),xt([{late_penalty:5}]))}},_.a.createElement(m.a,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),_.a.createElement(m.a,{disabled:(We==null||((He=We.group_settings)===null||He===void 0)?void 0:He.length)===0,value:!1},"\u5206\u73ED\u53D1\u5E03")),(We==null||((ke=We.group_settings)===null||ke===void 0)?void 0:ke.length)===0&&_.a.createElement("p",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09"))),gt.unified_setting&&_.a.createElement("div",null,_.a.createElement(b.a,{align:"middle",className:"mt25 pl30"},_.a.createElement(a.a,null,"\u53D1\u5E03\u65F6\u95F4:"),_.a.createElement(a.a,{className:"ml5"},_.a.createElement(y.a,{disabled:ut||!(kt!=null&&(ht=kt.homework_status)!==null&&ht!==void 0&&ht.includes("\u672A\u53D1\u5E03")||kt!=null&&(ie=kt.homework_status)!==null&&ie!==void 0&&ie.includes("\u672A\u5F00\u59CB")),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:function(lt){return Ie(lt,We==null?void 0:We.course_end_date)},disabledTime:function(lt){return ve(lt)},value:gt.publish_time?S()(gt.publish_time):"",onChange:function(lt,Lt){gt.publish_time=Lt,(gt.end_time==""||!gt.end_time)&>.unified_setting&&(gt.end_time=S()(lt).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),zt(Object.assign({},gt))}})),_.a.createElement(a.a,null,_.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4)"))),_.a.createElement(b.a,{align:"middle",className:"mt25 pl30"},_.a.createElement(a.a,null,"\u622A\u6B62\u65F6\u95F4:"),_.a.createElement(a.a,{className:"ml5"},_.a.createElement(y.a,{style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:S()(Object(K.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ut||Fe,disabledDate:function(lt){return Ie(lt,We==null?void 0:We.course_end_date,gt.publish_time)},disabledTime:function(lt){return ve(lt,gt.publish_time)},value:gt.end_time?S()(gt.end_time):"",onChange:function(lt,Lt){gt.end_time=Lt,zt(Object.assign({},gt))}})),_.a.createElement(a.a,null,_.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))),!gt.unified_setting&&((xe=le)===null||xe===void 0?void 0:xe.length)>0&&_.a.createElement(b.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},_.a.createElement(a.a,{span:24},_.a.createElement(b.a,null,_.a.createElement(a.a,{span:10}),_.a.createElement(a.a,{span:10},_.a.createElement(b.a,{className:"c-grey-c ml30"},_.a.createElement(a.a,{flex:"1"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4)"),_.a.createElement(a.a,{flex:"1"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9)"))),_.a.createElement(a.a,{span:4}))),le&&le.map(function(Ge,lt){var Lt,Wt,ln,gn,tr;return _.a.createElement(a.a,{span:24,key:lt},_.a.createElement(b.a,{gutter:[8,16]},_.a.createElement(a.a,{span:10},_.a.createElement(b.a,{gutter:[8,16]},_.a.createElement(a.a,null,"\u53D1\u5E03\u89C4\u5219 ",lt+1),_.a.createElement(a.a,{flex:"1",style:{maxWidth:300}},_.a.createElement(k.a,{disabled:ut||!(kt!=null&&(Lt=kt.homework_status)!==null&&Lt!==void 0&&Lt.includes("\u672A\u53D1\u5E03"))&&Ge.id,className:"ml20",mode:"multiple",style:{width:"100%"},value:Ge.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(En){le[lt].group_name=En,le[lt].group_id=Ge.group_id;var xr=Object(M.flattenDeep)(le.map(function(rr){return rr.group_name})),Er=ze.map(function(rr){var ur=(rr==null?void 0:rr.group_name)||[];return Object(x.a)(Object(x.a)({},rr),{},{group_name:Object(M.remove)(ur,function(Rr){return xr.includes(Rr)})})});xt(Er),he(le.slice())}},We.group_settings&&We.group_settings.map(function(Wn){var En=le.map(function(xr){return xr.group_name}).flat();if(!En.includes(Wn.group_name))return _.a.createElement(Je,{value:Wn.group_name,key:Wn.id},Wn.group_name)}))))),_.a.createElement(a.a,{span:10},_.a.createElement("div",{className:"ml30"},_.a.createElement(de,{ranges:{\u6B64\u523B:[Ge.publish_time?S()(Ge.publish_time):S()(),S()()]},allowClear:!1,disabled:ut||(S()()<=S()((Wt=be((ln=Ge.group_id)===null||ln===void 0?void 0:ln[0]))===null||Wt===void 0?void 0:Wt.publish_time)?!1:[!0,Nt((gn=Ge.group_id)===null||gn===void 0?void 0:gn[0])]),style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],disabledDate:function(En){return Ie(En,We==null?void 0:We.course_end_date)},disabledTime:function(En){return ve(En)},showTime:{showNow:!0,format:"HH:mm",defaultValue:[S()(Object(K.d)(),"HH:mm"),S()(Object(K.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Ge.publish_time&&[S()(Ge.publish_time),Ge.end_time?S()(Ge.end_time):void 0],onChange:function(En,xr){le[lt].publish_time=xr[0],le[lt].end_time=xr[1],he(Object(c.a)(le))}}))),!ut&&_.a.createElement(a.a,{span:4},lt>0&&!Ge.id&&_.a.createElement(E.a,{onClick:function(){le=le.filter(function(En,xr){return lt!==xr}),he(le.slice()),setTimeout(function(){return he(le.slice())},10)}}),le.length<(We==null||((tr=We.group_settings)===null||tr===void 0)?void 0:tr.length)&&_.a.createElement(g.a,{className:"c-green ml20",onClick:function(){he(le.concat({}))}}))))})),_.a.createElement(R.a,null),_.a.createElement(b.a,null,_.a.createElement(a.a,null,_.a.createElement("strong",null,"\u8865\u4EA4\u8BBE\u7F6E"),_.a.createElement(F.a,{placement:"right",title:"\u4F5C\u4E1A\u622A\u6B62\u540E\u624D\u53EF\u5F00\u542F\u8865\u4EA4\uFF0C\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"},_.a.createElement(j.a,{style:{marginLeft:4,cursor:"pointer"}}))),_.a.createElement(a.a,{span:24,className:"mt15 pl30"},_.a.createElement(B.a,{checked:gt.allow_late,disabled:ut||bt,onChange:function(){gt.allow_late=!gt.allow_late,ze==""&&xt([{late_penalty:5}]),zt(Object.assign({},gt))}},_.a.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")),_.a.createElement(F.a,{overlayStyle:{width:380,maxWidth:380},title:_.a.createElement("div",{style:{display:"flex",flexFlow:"column"}},_.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219\u8BF4\u660E"),_.a.createElement("span",null,"\u5F00\u542F\u8865\u4EA4\uFF0C\u5B66\u751F\u53EA\u5728\u8865\u4EA4\u65F6\u95F4\u5185\u624D\u901A\u5173\u5219\u6263\u9664\u5206\u503C\uFF0C\u672A\u901A\u5173\u4E0D\u6263\u5206\uFF1B"),_.a.createElement("span",null,"\u5B66\u751F\u5728\u6B63\u5E38\u4F5C\u4E1A\u89C4\u5B9A\u65F6\u95F4\u5185\u901A\u5173\uFF0C\u5728\u8865\u4EA4\u9636\u6BB5\u518D\u6B21\u901A\u5173\u4E0D\u6263\u5206\u3002"))},_.a.createElement(j.a,null)))),(gt==null?void 0:gt.allow_late)&&_.a.createElement("div",{style:{marginLeft:22}},_.a.createElement("div",{className:"ml30 mt20"},_.a.createElement("span",null,"\u8865\u4EA4\u65B9\u5F0F\uFF1A"),_.a.createElement(m.a.Group,{disabled:ut||(We==null?void 0:We.anonymous_comment)||(We==null?void 0:We.allow_late),value:gt.unified_late,onChange:function(lt){gt.unified_late=lt.target.value,ze==""&&!lt.target.value&&xt([{penalty_type:fe.a.Percent,late_penalty:20}]),zt(Object(x.a)({},gt))}},(gt==null?void 0:gt.unified_setting)&&_.a.createElement(m.a,{value:!0}," \u7EDF\u4E00\u8865\u4EA4 "),(We==null||((we=We.group_settings)===null||we===void 0)?void 0:we.length)>0&&_.a.createElement(m.a,{value:!1}," \u5206\u73ED\u8865\u4EA4 "))),gt!=null&>.unified_late?_.a.createElement(_.a.Fragment,null,_.a.createElement(b.a,{align:"middle",className:"mt25 pl30"},_.a.createElement(a.a,null,"\u8865\u4EA4\u6263\u5206:"),_.a.createElement(a.a,{className:"ml5"},_.a.createElement(fe.b,{disabled:ut||Kt,value:{type:gt.penalty_type,inputValue:gt.late_penalty},onChange:function(lt){zt(Object(x.a)(Object(x.a)({},gt),{},{late_penalty:lt.inputValue,penalty_type:lt.type}))}})),_.a.createElement(a.a,{flex:"1",className:"ml5"},_.a.createElement("span",{className:"c-grey-c ml10"},gt.penalty_type===fe.a.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6210\u7EE9\u5C06\u6263\u9664\u8865\u4EA4\u5173\u5361\u5206\u503C\u7684\u767E\u5206\u6BD4)"))),_.a.createElement(b.a,{align:"middle",className:"mt25 pl30"},_.a.createElement(a.a,null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),_.a.createElement(a.a,{className:"ml5"},_.a.createElement(y.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:S()(Object(K.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ut||Kt,value:gt.late_time?S()(gt.late_time):"",disabledDate:function(lt){return Ie(lt,We==null?void 0:We.course_end_date)},onChange:function(lt,Lt){gt.late_time=Lt,zt(Object.assign({},gt))}})),_.a.createElement(a.a,null,_.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u5EF6\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))):ze.map(function(Ge,lt){var Lt;return _.a.createElement(a.a,{span:24,key:lt},_.a.createElement(b.a,{className:"mt25"},_.a.createElement(a.a,{style:{marginLeft:30}},_.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219",lt+1,"\uFF1A"),_.a.createElement(k.a,{disabled:ut||!(kt!=null&&(Lt=kt.homework_status)!==null&&Lt!==void 0&&Lt.includes("\u672A\u53D1\u5E03"))&&Ge.id||(We==null?void 0:We.anonymous_comment),mode:"multiple",style:{width:306},value:typeof Ge.group_name=="string"?[Ge.group_name]:Ge.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(ln){ze[lt].group_name=ln,ze[lt].group_id=Ge.group_id,xt(ze.slice())}},We.group_settings&&We.group_settings.map(function(Wt){var ln=ze.map(function(tr){return tr.group_name}).flat(),gn=le.map(function(tr){return tr.group_name}).flat();if(gt!=null&>.unified_setting){if(!ln.includes(Wt.group_name))return _.a.createElement(Je,{value:Wt.group_name,key:Wt.id},Wt.group_name)}else if(gn.includes(Wt.group_name)&&(!ln.includes(Wt.group_name)&&S()(Wt.end_time)<=S()()))return _.a.createElement(Je,{value:Wt.group_name,key:Wt.id},Wt.group_name)}))),_.a.createElement(a.a,{className:"ml20"},_.a.createElement("span",null,"\u8865\u4EA4\u6263\u5206\uFF1A"),_.a.createElement(fe.b,{disabled:ut||Zt(Ge.id),value:{type:Ge.penalty_type,inputValue:Ge.late_penalty},onChange:function(ln){ze[lt].late_penalty=ln.inputValue,ze[lt].penalty_type=ln.type,xt(Object(c.a)(ze))}})),_.a.createElement(a.a,{className:"ml20"},_.a.createElement("span",null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),_.a.createElement(y.a,{disabled:ut||Zt(Ge.id),style:{width:200},showTime:{format:"HH:mm",defaultValue:S()(Object(K.d)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:function(ln){return Ie(ln,We==null?void 0:We.course_end_date)},format:"YYYY-MM-DD HH:mm",value:Ge!=null&&Ge.late_time?S()(Ge.late_time):void 0,onChange:function(ln,gn){ze[lt].late_time=gn,xt(Object(c.a)(ze))}})),!ut&&_.a.createElement(a.a,{className:"ml20"},lt>0&&!Ge.id&&_.a.createElement(E.a,{onClick:function(){ze=ze.filter(function(ln,gn){return lt!==gn}),xt(ze.slice()),setTimeout(function(){return xt(ze.slice())},10)}}),_.a.createElement(g.a,{className:"c-green ml20",onClick:function(){xt(ze.concat({penalty_type:fe.a.Percent,late_minus_score:20}))}}))))})),_.a.createElement(R.a,null),!ut&&_.a.createElement(a.a,{className:"mb50"},_.a.createElement(u.a,{type:"primary",size:"large",style:{marginTop:"40px"},loading:Ne,onClick:function(){return At()}},"\u63D0\u4EA4"),_.a.createElement(u.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Et(!0),Ot()}},"\u53D6\u6D88")))};J.a=Object(oe.a)(function(Ee){var Me=Ee.shixunHomeworks,rt=Ee.loading;return{shixunHomeworks:Me,loading:rt.effects}})(Rt)},fW2E:function(Be,J){var L={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function Y(B,I,F){return L.hasOwnProperty(I)?F*=B.dpr:F}Be.exports=Y},fjLI:function(Be,J,L){"use strict";L.d(J,"f",function(){return f}),L.d(J,"b",function(){return a}),L.d(J,"a",function(){return i}),L.d(J,"d",function(){return d}),L.d(J,"e",function(){return s}),L.d(J,"c",function(){return n});var Y=L("8HAY"),B=L("Vhoy"),I=L("MI8n"),F=L("JYp7"),T=L("pmY6"),R=L("24hK"),P=L("nnTU"),m=L("T8No"),t=L("Cg/j"),b=L("t9D7"),o=function(l,c,x,A){var C=arguments.length,k=C<3?c:A===null?A=Object.getOwnPropertyDescriptor(c,x):A,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,x,A);else for(var y=l.length-1;y>=0;y--)(w=l[y])&&(k=(C<3?w(k):C>3?w(c,x,k):w(c,x))||k);return C>3&&k&&Object.defineProperty(c,x,k),k},u=function(l,c){return function(x,A){c(x,A,l)}};function f(l){return l.command!==void 0}class a{constructor(l){this.id=a._idPool++,this._debugName=l}}a._idPool=0,a.CommandPalette=new a("CommandPalette"),a.EditorContext=new a("EditorContext"),a.SimpleEditorContext=new a("SimpleEditorContext"),a.EditorContextCopy=new a("EditorContextCopy"),a.EditorContextPeek=new a("EditorContextPeek"),a.MenubarEditMenu=new a("MenubarEditMenu"),a.MenubarCopy=new a("MenubarCopy"),a.MenubarGoMenu=new a("MenubarGoMenu"),a.MenubarSelectionMenu=new a("MenubarSelectionMenu"),a.InlineCompletionsActions=new a("InlineCompletionsActions");const i=Object(t.c)("menuService"),d=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new I.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:l=>l===a.CommandPalette}}addCommand(l){return this.addCommands(F.a.single(l))}addCommands(l){for(const c of l)this._commands.set(c.id,c);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(T.i)(()=>{let c=!1;for(const x of l)c=this._commands.delete(x.id)||c;c&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(l){return this._commands.get(l)}getCommands(){const l=new Map;return this._commands.forEach((c,x)=>l.set(x,c)),l}appendMenuItem(l,c){return this.appendMenuItems(F.a.single({id:l,item:c}))}appendMenuItems(l){const c=new Set,x=new R.a;for(const{id:A,item:C}of l){let k=this._menuItems.get(A);k||(k=new R.a,this._menuItems.set(A,k)),x.push(k.push(C)),c.add(A)}return this._onDidChangeMenu.fire(c),Object(T.i)(()=>{if(x.size>0){for(let A of x)A();this._onDidChangeMenu.fire(c),x.clear()}})}getMenuItems(l){let c;return this._menuItems.has(l)?c=[...this._menuItems.get(l)]:c=[],l===a.CommandPalette&&this._appendImplicitItems(c),c}_appendImplicitItems(l){const c=new Set;for(const x of l)f(x)&&(c.add(x.command.id),x.alt&&c.add(x.alt.id));this._commands.forEach((x,A)=>{c.has(A)||l.push({command:x})})}};class s extends Y.e{constructor(l,c,x,A){super(`submenuitem.${l.submenu.id}`,typeof l.title=="string"?l.title:l.title.value,[],"submenu");this.item=l,this._menuService=c,this._contextKeyService=x,this._options=A}get actions(){const l=[],c=this._menuService.createMenu(this.item.submenu,this._contextKeyService),x=c.getActions(this._options);c.dispose();for(const[,A]of x)A.length>0&&(l.push(...A),l.push(new Y.d));return l.length&&l.pop(),l}}let n=class l{constructor(c,x,A,C,k){var w,y;if(this._commandService=k,this.id=c.id,this.label=(A==null?void 0:A.renderShortTitle)&&c.shortTitle?typeof c.shortTitle=="string"?c.shortTitle:c.shortTitle.value:typeof c.title=="string"?c.title:c.title.value,this.tooltip=(y=typeof c.tooltip=="string"?c.tooltip:(w=c.tooltip)===null||w===void 0?void 0:w.value)!==null&&y!==void 0?y:"",this.enabled=!c.precondition||C.contextMatchesRules(c.precondition),this.checked=void 0,c.toggled){const h=c.toggled.condition?c.toggled:{condition:c.toggled};this.checked=C.contextMatchesRules(h.condition),this.checked&&h.tooltip&&(this.tooltip=typeof h.tooltip=="string"?h.tooltip:h.tooltip.value),h.title&&(this.label=typeof h.title=="string"?h.title:h.title.value)}this.item=c,this.alt=x?new l(x,void 0,A,C,k):void 0,this._options=A,b.d.isThemeIcon(c.icon)&&(this.class=B.a.asClassName(c.icon))}dispose(){}run(...c){var x,A;let C=[];return((x=this._options)===null||x===void 0?void 0:x.arg)&&(C=[...C,this._options.arg]),((A=this._options)===null||A===void 0?void 0:A.shouldForwardArgs)&&(C=[...C,...c]),this._commandService.executeCommand(this.id,...C)}};n=o([u(3,m.b),u(4,P.b)],n)},fyJ8:function(Be,J,L){"use strict";var Y=L("rePB"),B=L("VTBJ"),I=L("Ff2n"),F=L("U8pU"),T=L("q1tI"),R=L.n(T),P=L("TSYQ"),m=L.n(P),t=L("c+Xe"),b=L("sR1s");function o(d){return d&&Object(F.a)(d)==="object"&&!Array.isArray(d)&&!T.isValidElement(d)}function u(d){return typeof d=="string"?!0:Object(t.c)(d)}function f(d,s){var n,l=d.prefixCls,c=d.className,x=d.record,A=d.index,C=d.dataIndex,k=d.render,w=d.children,y=d.component,h=y===void 0?"td":y,p=d.colSpan,v=d.rowSpan,_=d.fixLeft,E=d.fixRight,g=d.firstFixLeft,j=d.lastFixLeft,U=d.firstFixRight,S=d.lastFixRight,z=d.appendNode,H=d.additionalProps,M=H===void 0?{}:H,V=d.ellipsis,K=d.align,$=d.rowType,Z=d.isSticky,me="".concat(l,"-cell"),oe,fe;if(w)fe=w;else{var ye=Object(b.b)(x,C);if(fe=ye,k){var Ie=k(ye,x,A);o(Ie)?(fe=Ie.children,oe=Ie.props):fe=Ie}}Object(F.a)(fe)==="object"&&!Array.isArray(fe)&&!T.isValidElement(fe)&&(fe=null),V&&(j||U)&&(fe=T.createElement("span",{className:"".concat(me,"-content")},fe));var ve=oe||{},de=ve.colSpan,Je=ve.rowSpan,Rt=ve.style,Ee=ve.className,Me=Object(I.a)(ve,["colSpan","rowSpan","style","className"]),rt=de!==void 0?de:p,He=Je!==void 0?Je:v;if(rt===0||He===0)return null;var ke={},ht=typeof _=="number",ie=typeof E=="number";ht&&(ke.position="sticky",ke.left=_),ie&&(ke.position="sticky",ke.right=E);var xe={};K&&(xe.textAlign=K);var we,$e=V===!0?{showTitle:!0}:V;$e&&($e.showTitle||$==="header")&&(typeof fe=="string"||typeof fe=="number"?we=fe.toString():T.isValidElement(fe)&&typeof fe.props.children=="string"&&(we=fe.props.children));var ct=Object(B.a)(Object(B.a)(Object(B.a)({title:we},Me),M),{},{colSpan:rt&&rt!==1?rt:null,rowSpan:He&&He!==1?He:null,className:m()(me,c,(n={},Object(Y.a)(n,"".concat(me,"-fix-left"),ht),Object(Y.a)(n,"".concat(me,"-fix-left-first"),g),Object(Y.a)(n,"".concat(me,"-fix-left-last"),j),Object(Y.a)(n,"".concat(me,"-fix-right"),ie),Object(Y.a)(n,"".concat(me,"-fix-right-first"),U),Object(Y.a)(n,"".concat(me,"-fix-right-last"),S),Object(Y.a)(n,"".concat(me,"-ellipsis"),V),Object(Y.a)(n,"".concat(me,"-with-append"),z),Object(Y.a)(n,"".concat(me,"-fix-sticky"),(ht||ie)&&Z),n),M.className,Ee),style:Object(B.a)(Object(B.a)(Object(B.a)(Object(B.a)({},M.style),xe),ke),Rt),ref:u(h)?s:null});return T.createElement(h,Object.assign({},ct),z,fe)}var a=T.forwardRef(f);a.displayName="Cell";var i=T.memo(a,function(d,s){return s.shouldCellUpdate?!s.shouldCellUpdate(s.record,d.record):!1});J.a=i},gMzb:function(Be,J,L){"use strict";var Y=L("k1fw"),B=L("oBTY"),I=L("9og8"),F=L("tJVT"),T=L("sRBo"),R=L("kaz8"),P=L("WmNS"),m=L.n(P),t=L("q1tI"),b=L.n(t),o=L("9kvl"),u=L("wlus"),f=L("w5pM"),a=L("ErOA"),i=L("OaEy"),d=L("2fM7"),s=L("y8nQ"),n=L("Vl3Y"),l=L("Ty5D"),c=L("yQHh"),x=L.n(c),A=R.a.Group,C=function(v){var _,E,g,j,U,S,z,H,M=v.classroomList,V=v.loading,K=v.user,$=v.exercise_id,Z=$===void 0?null:$,me=v.homework_common_id,oe=me===void 0?null:me,fe=v.setitem,ye=v.item,Ie=v.type,ve=v.rz,de=v.dispatch,Je=Object(t.useState)([]),Rt=Object(F.a)(Je,2),Ee=Rt[0],Me=Rt[1],rt=Object(t.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20}),He=Object(F.a)(rt,2),ke=He[0],ht=He[1],ie=Object(l.i)(),xe=Object(t.useState)(!1),we=Object(F.a)(xe,2),$e=we[0],ct=we[1],yt=Object(t.useState)(!1),Ut=Object(F.a)(yt,2),We=Ut[0],kt=Ut[1],qt=n.a.useForm(),Pe=Object(F.a)(qt,1),Ae=Pe[0];Object(t.useEffect)(function(){ve&&(ke.zydatas=ve,ht(Object(Y.a)({},ke)),ye!=null&&ye.ec_course_id&&ut())},[ye,ve]);function ut(){return Et.apply(this,arguments)}function Et(){return Et=Object(I.a)(m.a.mark(function ae(){return m.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return console.log("----",ye),he.next=3,Ze(ye==null?void 0:ye.ec_major_school_id);case 3:return he.next=5,Ne(ye==null?void 0:ye.ec_year_id);case 5:return he.next=7,Oe(ye==null?void 0:ye.ec_course_id);case 7:Ae.setFieldsValue({ec_course_id:ye==null?void 0:ye.ec_course_id,ec_major_school_id:ye==null?void 0:ye.ec_major_school_id,ec_point_ids:ye==null?void 0:ye.ec_point_ids,ec_year_id:ye==null?void 0:ye.ec_year_id});case 8:case"end":return he.stop()}},ae)})),Et.apply(this,arguments)}function Ze(ae){return dt.apply(this,arguments)}function dt(){return dt=Object(I.a)(m.a.mark(function ae(le){var he;return m.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,Object(a.a)("/api/ec_major_schools/".concat(le,"/ec_years/get_year_list.json"),{method:"get"});case 2:he=Se.sent,ke.jbdatas=he==null?void 0:he.data,ht(Object(Y.a)({},ke)),Ae.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]});case 6:case"end":return Se.stop()}},ae)})),dt.apply(this,arguments)}function Ne(ae){return Te.apply(this,arguments)}function Te(){return Te=Object(I.a)(m.a.mark(function ae(le){var he;return m.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,Object(a.a)("/api/ec_years/".concat(le,"/ec_courses/get_courses.json"),{method:"get"});case 2:he=Se.sent,ke.kcdatas=he==null?void 0:he.data,ht(Object(Y.a)({},ke)),Ae.setFieldsValue({ec_course_id:"",ec_point_ids:[]});case 6:case"end":return Se.stop()}},ae)})),Te.apply(this,arguments)}var Oe=function(){var ae=Object(I.a)(m.a.mark(function le(he){var _e;return m.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,Object(a.a)("/api/ec_courses/".concat(he,"/ec_points.json"),{method:"get",params:{ec_course_id:he}});case 2:_e=ze.sent,ke.zsdatas=_e==null?void 0:_e.data,ht(Object(Y.a)({},ke));case 5:case"end":return ze.stop()}},le)}));return function(he){return ae.apply(this,arguments)}}();return b.a.createElement("div",{className:x.a.from},b.a.createElement(n.a,{form:Ae,layout:"inline",onValuesChange:function(le){console.log("----",le),le.ec_major_school_id&&(ke.jbdatas=[],ke.kcdatas=[],ke.zsdatas=[],ht(Object(Y.a)({},ke)),Ze(le.ec_major_school_id)),le.ec_year_id&&(ke.kcdatas=[],ke.zsdatas=[],ht(Object(Y.a)({},ke)),Ne(le.ec_year_id)),le.ec_course_id&&(ke.zsdatas=[],ht(Object(Y.a)({},ke)),Oe(le.ec_course_id))},onFinish:function(){var ae=Object(I.a)(m.a.mark(function le(he){return m.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:fe(he);case 1:case"end":return Se.stop()}},le)}));return function(le){return ae.apply(this,arguments)}}()},b.a.createElement(n.a.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},b.a.createElement(d.a,{style:{width:150},disabled:((_=ke.zydatas)===null||_===void 0?void 0:_.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},ke==null||((E=ke.zydatas)===null||E===void 0)?void 0:E.map(function(ae,le){return b.a.createElement(d.a.Option,{key:le,value:ae==null?void 0:ae.ec_major_school_id},ae==null?void 0:ae.name)}))),b.a.createElement(n.a.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},b.a.createElement(d.a,{style:{width:150},disabled:((g=ke.jbdatas)===null||g===void 0?void 0:g.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},ke==null||((j=ke.jbdatas)===null||j===void 0)?void 0:j.map(function(ae,le){return b.a.createElement(d.a.Option,{key:le,value:ae==null?void 0:ae.ec_year_id},ae==null?void 0:ae.year)}))),b.a.createElement(n.a.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},b.a.createElement(d.a,{style:{width:150},disabled:((U=ke.kcdatas)===null||U===void 0?void 0:U.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},ke==null||((S=ke.kcdatas)===null||S===void 0)?void 0:S.map(function(ae,le){return b.a.createElement(d.a.Option,{key:le,value:ae==null?void 0:ae.id},ae==null?void 0:ae.name)}))),b.a.createElement(n.a.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},b.a.createElement(d.a,{onChange:function(){Ae.submit()},style:{width:150},mode:"multiple",disabled:((z=ke.zsdatas)===null||z===void 0?void 0:z.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},ke==null||((H=ke.zsdatas)===null||H===void 0)?void 0:H.map(function(ae,le){return b.a.createElement(d.a.Option,{key:le,value:ae==null?void 0:ae.id},ae==null?void 0:ae.name)})))))},k=Object(o.a)(function(p){var v=p.classroomList,_=p.loading,E=p.globalSetting,g=p.user;return{classroomList:v,globalSetting:E,loading:_.effects,user:g}})(C),w=R.a.Group,y=function(v){var _,E,g,j=v.classroomList,U=v.loading,S=v.user,z=v.exercise_id,H=z===void 0?null:z,M=v.homework_common_id,V=M===void 0?null:M,K=v.setitem,$=v.type,Z=v.dispatch,me=Object(t.useState)([{}]),oe=Object(F.a)(me,2),fe=oe[0],ye=oe[1],Ie=Object(t.useState)([]),ve=Object(F.a)(Ie,2),de=ve[0],Je=ve[1];function Rt(){return Ee.apply(this,arguments)}function Ee(){return Ee=Object(I.a)(m.a.mark(function He(){var ke,ht,ie,xe,we;return m.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return ct.next=2,Object(a.a)("/api/ec_courses/".concat(0,"/ec_points/get_work_points.json"),{method:"get",params:{exercise_id:H,homework_common_id:V}});case 2:ht=ct.sent,(ht==null||((ke=ht.data)===null||ke===void 0)?void 0:ke.length)>0&&(we=[],ht==null||((ie=ht.data)===null||ie===void 0)||ie.map(function(yt){var Ut;yt==null||((Ut=yt.ec_point_ids)===null||Ut===void 0)||Ut.map(function(We){we.push(We)})}),K(Object(Y.a)(Object(Y.a)({},ht==null||((xe=ht.data)===null||xe===void 0)?void 0:xe[0]),{},{ec_point_ids:we})),ye(ht==null?void 0:ht.data));case 4:case"end":return ct.stop()}},He)})),Ee.apply(this,arguments)}Object(t.useEffect)(function(){var He,ke;S!=null&&(He=S.userInfo)!==null&&He!==void 0&&(ke=He.course)!==null&&ke!==void 0&&ke.course_school_id&&Me()},[S==null||((_=S.userInfo)===null||_===void 0||((E=_.course)===null||E===void 0))?void 0:E.course_school_id]);function Me(){return rt.apply(this,arguments)}function rt(){return rt=Object(I.a)(m.a.mark(function He(){var ke,ht,ie;return m.a.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,Object(a.a)("/api/schools/".concat(S==null||((ke=S.userInfo)===null||ke===void 0||((ht=ke.course)===null||ht===void 0))?void 0:ht.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:ie=we.sent,Je(ie==null?void 0:ie.data),(V||H)&&Rt();case 5:case"end":return we.stop()}},He)})),rt.apply(this,arguments)}return console.log(fe),b.a.createElement("div",{style:{display:(g=S.userInfo.course)!==null&&g!==void 0&&g.is_openengineering?"":"none"}},b.a.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),fe==null?void 0:fe.map(function(He,ke){return b.a.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"}},b.a.createElement(k,{rz:de,item:He,type:ke,setitem:function(ie){fe.splice(ke,1,ie),ye(Object(B.a)(fe));var xe=[];fe==null||fe.map(function(we){var $e;we==null||(($e=we.ec_point_ids)===null||$e===void 0)||$e.map(function(ct){xe.push(ct)})}),K(Object(Y.a)(Object(Y.a)({},ie),{},{ec_point_ids:xe}))}}),ke!=0&&b.a.createElement(u.a,{onClick:function(){fe.splice(ke,1),ye(Object(B.a)(fe))},style:{marginLeft:10,fontSize:"20px"}}),b.a.createElement(f.a,{onClick:function(){fe.push({}),ye(Object(B.a)(fe))},style:{marginLeft:10,fontSize:"20px"}}))}))},h=J.a=Object(o.a)(function(p){var v=p.classroomList,_=p.loading,E=p.globalSetting,g=p.user;return{classroomList:v,globalSetting:E,loading:_.effects,user:g}})(y)},gut8:function(Be,J){var L={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Y=9;J.ContextCachedBy=L,J.WILL_BE_RESTORED=Y},h7HQ:function(Be,J,L){var Y=L("y+Vt"),B=L("T6xi"),I=Y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(F,T){B.buildPath(F,T,!0)}});Be.exports=I},hOwI:function(Be,J){var L=Math.log(2);function Y(I,F,T,R,P,m){var t=R+"-"+P,b=I.length;if(m.hasOwnProperty(t))return m[t];if(F===1){var o=Math.round(Math.log((1<B&&R>F||RT?P:0}Be.exports=L},iXp4:function(Be,J,L){var Y=L("ItGF"),B=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function I(F){return Y.browser.ie&&Y.browser.version>=11?function(){var T=this.__clipPaths,R=this.style,P;if(T)for(var m=0;m_t&&(hn=_t-rn),Object(T.useMemo)(function(){if(!Ce.length)return[0,0];for(var Rn=Ce.length,Kn=Rn,cr=0;crKe+hn){Kn=cr-1;break}}for(var jt=0,Jt=Rn-1;Jt>=0;Jt-=1){var In=De.get(Ce[Jt].key)||x;if(In[ot]1&&arguments[1]!==void 0?arguments[1]:!1,je=tt&&typeof tt.getBoundingClientRect=="function"&&tt.getBoundingClientRect().width;if(je){if(at){var ce=getComputedStyle(tt),Ce=ce.marginLeft,ge=ce.marginRight;je+=+Ce.replace("px","")+ +ge.replace("px","")}je=+je.toFixed(6)}return je||0},we=function(tt,at,je){tt&&Object(U.a)(tt.style)==="object"&&(tt.style[at]=je)},$e=function(){return Ee.any},ct=L("bdgK"),yt=L("i8i4"),Ut=L.n(yt),We=L("wgJM"),kt=L("l4aY"),qt=L("m+aA"),Pe=L("c+Xe"),Ae=L("zT1h"),ut=L("QC+M");function Et(De,tt,at){return at?De[0]===tt[0]:De[0]===tt[0]&&De[1]===tt[1]}function Ze(De,tt,at){var je=De[tt]||{};return Object(F.a)(Object(F.a)({},je),at)}function dt(De,tt,at,je){for(var ce=at.points,Ce=Object.keys(De),ge=0;ge1&&arguments[1]!==void 0?arguments[1]:2;tt();var Ce=Object(We.a)(function(){ce<=1?je({isCanceled:function(){return Ce!==De.current}}):at(je,ce-1)});De.current=Ce}return T.useEffect(function(){return function(){tt()}},[]),[at,tt]},gn=[bt,Kt,Zt,Ge],tr=!1,Wn=!0;function En(De){return De===Zt||De===Ge}var xr=function(De,tt){var at=T.useState(Nt),je=Object(B.a)(at,2),ce=je[0],Ce=je[1],ge=ln(),Ue=Object(B.a)(ge,2),Ye=Ue[0],ot=Ue[1];function Ke(){Ce(bt)}return Wt(function(){if(ce!==Nt&&ce!==Ge){var _t=gn.indexOf(ce),Ft=gn[_t+1],rn=tt(ce);rn===tr?Ce(Ft):Ye(function(hn){function Rn(){if(hn.isCanceled())return;Ce(Ft)}rn===!0?Rn():Promise.resolve(rn).then(Rn)})}},[De,ce]),T.useEffect(function(){return function(){ot()}},[]),[Ke,ce]},Er=function(De){var tt=Object(T.useRef)(),at=Object(T.useRef)(De);at.current=De;var je=T.useCallback(function(ge){at.current(ge)},[]);function ce(ge){ge&&(ge.removeEventListener(zt,je),ge.removeEventListener(gt,je))}function Ce(ge){tt.current&&tt.current!==ge&&ce(tt.current),ge&&ge!==tt.current&&(ge.addEventListener(zt,je),ge.addEventListener(gt,je),tt.current=ge)}return T.useEffect(function(){return function(){ce(tt.current)}},[]),[Ce,ce]};function rr(De,tt,at,je){var ce=je.motionEnter,Ce=ce===void 0?!0:ce,ge=je.motionAppear,Ue=ge===void 0?!0:ge,Ye=je.motionLeave,ot=Ye===void 0?!0:Ye,Ke=je.motionDeadline,_t=je.motionLeaveImmediately,Ft=je.onAppearPrepare,rn=je.onEnterPrepare,hn=je.onLeavePrepare,Rn=je.onAppearStart,Kn=je.onEnterStart,cr=je.onLeaveStart,on=je.onAppearActive,jt=je.onEnterActive,Jt=je.onLeaveActive,In=je.onAppearEnd,_n=je.onEnterEnd,yr=je.onLeaveEnd,qn=je.onVisibleChanged,Cr=lt(),ir=Object(B.a)(Cr,2),mn=ir[0],Mn=ir[1],vr=lt(At),Or=Object(B.a)(vr,2),Qn=Or[0],Pr=Or[1],$r=lt(null),Ir=Object(B.a)($r,2),Br=Ir[0],Ur=Ir[1],jr=Object(T.useRef)(!1),Nr=Object(T.useRef)(null),pr=Object(T.useRef)(!1),la=Object(T.useRef)(null);function Qa(){var Qr=at();return Qr||la.current}var ja=Object(T.useRef)(!1);function Ca(Qr){var zr=Qa();if(Qr&&!Qr.deadline&&Qr.target!==zr)return;var ba;Qn===ft&&ja.current?ba=In==null?void 0:In(zr,Qr):Qn===be&&ja.current?ba=_n==null?void 0:_n(zr,Qr):Qn===Fe&&ja.current&&(ba=yr==null?void 0:yr(zr,Qr)),ba!==!1&&!pr.current&&(Pr(At),Ur(null))}var qr=Er(Ca),Vr=Object(B.a)(qr,1),Xr=Vr[0],ea=T.useMemo(function(){var Qr,zr,ba;switch(Qn){case"appear":return Qr={},Object(Y.a)(Qr,bt,Ft),Object(Y.a)(Qr,Kt,Rn),Object(Y.a)(Qr,Zt,on),Qr;case"enter":return zr={},Object(Y.a)(zr,bt,rn),Object(Y.a)(zr,Kt,Kn),Object(Y.a)(zr,Zt,jt),zr;case"leave":return ba={},Object(Y.a)(ba,bt,hn),Object(Y.a)(ba,Kt,cr),Object(Y.a)(ba,Zt,Jt),ba;default:return{}}},[Qn]),Ua=xr(Qn,function(Qr){if(Qr===bt){var zr=ea[bt];return zr?zr(Qa()):tr}if(Yr in ea){var ba;Ur(((ba=ea[Yr])===null||ba===void 0?void 0:ba.call(ea,Qa(),null))||null)}return Yr===Zt&&(Xr(Qa()),Ke>0&&(clearTimeout(Nr.current),Nr.current=setTimeout(function(){Ca({deadline:!0})},Ke))),Wn}),hi=Object(B.a)(Ua,2),si=hi[0],Yr=hi[1],Ja=En(Yr);ja.current=Ja,Wt(function(){Mn(tt);var Qr=jr.current;if(jr.current=!0,!De)return;var zr;!Qr&&tt&&Ue&&(zr=ft),Qr&&tt&&Ce&&(zr=be),(Qr&&!tt&&ot||!Qr&&_t&&!tt&&ot)&&(zr=Fe),zr&&(Pr(zr),si())},[tt]),Object(T.useEffect)(function(){(Qn===ft&&!Ue||Qn===be&&!Ce||Qn===Fe&&!ot)&&Pr(At)},[Ue,Ce,ot]),Object(T.useEffect)(function(){return function(){clearTimeout(Nr.current),pr.current=!0}},[]),Object(T.useEffect)(function(){mn!==void 0&&Qn===At&&(qn==null||qn(mn))},[mn,Qn]);var Za=Br;return ea[bt]&&Yr===Kt&&(Za=Object(F.a)({transition:"none"},Za)),[Qn,Yr,Za,mn!=null?mn:tt]}var ur=function(De){Object(h.a)(at,De);var tt=Object(p.a)(at);function at(){return Object(k.a)(this,at),tt.apply(this,arguments)}return Object(w.a)(at,[{key:"render",value:function(){return this.props.children}}]),at}(T.Component),Rr=ur;function Kr(De){var tt=De;Object(U.a)(De)==="object"&&(tt=De.transitionSupport);function at(ce){return!!(ce.motionName&&tt)}var je=T.forwardRef(function(ce,Ce){var ge=ce.visible,Ue=ge===void 0?!0:ge,Ye=ce.removeOnLeave,ot=Ye===void 0?!0:Ye,Ke=ce.forceRender,_t=ce.children,Ft=ce.motionName,rn=ce.leavedClassName,hn=ce.eventProps,Rn=at(ce),Kn=Object(T.useRef)(),cr=Object(T.useRef)();function on(){try{return Object(qt.a)(Kn.current||cr.current)}catch(Pr){return null}}var jt=rr(Rn,Ue,on,ce),Jt=Object(B.a)(jt,4),In=Jt[0],_n=Jt[1],yr=Jt[2],qn=Jt[3],Cr=T.useRef(qn);qn&&(Cr.current=!0);var ir=Object(T.useRef)(Ce);ir.current=Ce;var mn=T.useCallback(function(Pr){Kn.current=Pr,Object(Pe.b)(ir.current,Pr)},[]),Mn,vr=Object(F.a)(Object(F.a)({},hn),{},{visible:Ue});if(!_t)Mn=null;else if(In===At||!at(ce))qn?Mn=_t(Object(F.a)({},vr),mn):!ot&&Cr.current?Mn=_t(Object(F.a)(Object(F.a)({},vr),{},{className:rn}),mn):Ke?Mn=_t(Object(F.a)(Object(F.a)({},vr),{},{style:{display:"none"}}),mn):Mn=null;else{var Or,Qn;_n===bt?Qn="prepare":En(_n)?Qn="active":_n===Kt&&(Qn="start"),Mn=_t(Object(F.a)(Object(F.a)({},vr),{},{className:P()(Ot(Ft,In),(Or={},Object(Y.a)(Or,Ot(Ft,"".concat(In,"-").concat(Qn)),Qn),Object(Y.a)(Or,Ft,typeof Ft=="string"),Or)),style:yr}),mn)}return T.createElement(Rr,{ref:cr},Mn)});return je.displayName="CSSMotion",je}var ra=Kr(sn),fn="add",or="keep",sa="remove",ya="removed";function Jr(De){var tt;return De&&Object(U.a)(De)==="object"&&"key"in De?tt=De:tt={key:De},Object(F.a)(Object(F.a)({},tt),{},{key:String(tt.key)})}function na(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return De.map(Jr)}function te(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],at=[],je=0,ce=tt.length,Ce=na(De),ge=na(tt);Ce.forEach(function(ot){for(var Ke=!1,_t=je;_t1});return Ye.forEach(function(ot){at=at.filter(function(Ke){var _t=Ke.key,Ft=Ke.status;return _t!==ot||Ft!==sa}),at.forEach(function(Ke){Ke.key===ot&&(Ke.status=or)})}),at}var W=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function G(De){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ra,at=function(je){Object(h.a)(Ce,je);var ce=Object(p.a)(Ce);function Ce(){var ge;return Object(k.a)(this,Ce),ge=ce.apply(this,arguments),ge.state={keyEntities:[]},ge.removeKey=function(Ue){ge.setState(function(Ye){var ot=Ye.keyEntities;return{keyEntities:ot.map(function(Ke){return Ke.key!==Ue?Ke:Object(F.a)(Object(F.a)({},Ke),{},{status:ya})})}})},ge}return Object(w.a)(Ce,[{key:"render",value:function(){var Ue=this,Ye=this.state.keyEntities,ot=this.props,Ke=ot.component,_t=ot.children,Ft=ot.onVisibleChanged,rn=Object(I.a)(ot,["component","children","onVisibleChanged"]),hn=Ke||T.Fragment,Rn={};return W.forEach(function(Kn){Rn[Kn]=rn[Kn],delete rn[Kn]}),delete rn.keys,T.createElement(hn,rn,Ye.map(function(Kn){var cr=Kn.status,on=Object(I.a)(Kn,["status"]),jt=cr===fn||cr===or;return T.createElement(tt,Object(C.a)({},Rn,{key:on.key,visible:jt,eventProps:on,onVisibleChanged:function(In){Ft==null||Ft(In,{key:on.key}),In||Ue.removeKey(on.key)}}),_t)}))}}],[{key:"getDerivedStateFromProps",value:function(Ue,Ye){var ot=Ue.keys,Ke=Ye.keyEntities,_t=na(ot),Ft=te(Ke,_t);return{keyEntities:Ft.filter(function(rn){var hn=Ke.find(function(Rn){var Kn=Rn.key;return rn.key===Kn});return!(hn&&hn.status===ya&&rn.status===sa)})}}}]),Ce}(T.Component);return at.defaultProps={component:"div"},at}var Q=G(sn),ue=ra;function ee(De){var tt=De.prefixCls,at=De.motion,je=De.animation,ce=De.transitionName;return at||(je?{motionName:"".concat(tt,"-").concat(je)}:ce?{motionName:ce}:null)}function qe(De){var tt=De.prefixCls,at=De.visible,je=De.zIndex,ce=De.mask,Ce=De.maskMotion,ge=De.maskAnimation,Ue=De.maskTransitionName;if(!ce)return null;var Ye={};return(Ce||Ue||ge)&&(Ye=Object(F.a)({motionAppear:!0},ee({motion:Ce,prefixCls:tt,transitionName:Ue,animation:ge}))),T.createElement(ue,Object(C.a)({},Ye,{visible:at,removeOnLeave:!0}),function(ot){var Ke=ot.className;return T.createElement("div",{style:{zIndex:je},className:P()("".concat(tt,"-mask"),Ke)})})}var tn=L("9mu1"),An=L("o0o1"),Vn=L.n(An),un=L("HaE+"),nr=["measure","align",null,"motion"],vn=function(De,tt){var at=Object(T.useState)(null),je=Object(B.a)(at,2),ce=je[0],Ce=je[1],ge=Object(T.useRef)(),Ue=Object(T.useRef)(!1);function Ye(_t){Ue.current||Ce(_t)}function ot(){We.a.cancel(ge.current)}function Ke(_t){ot(),ge.current=Object(We.a)(function(){Ye(function(Ft){switch(ce){case"align":return"motion";case"motion":return"stable";default:}return Ft}),_t==null||_t()})}return Object(T.useEffect)(function(){Ye("measure")},[De]),Object(T.useEffect)(function(){switch(ce){case"measure":tt();break;default:}ce&&(ge.current=Object(We.a)(Object(un.a)(Vn.a.mark(function _t(){var Ft,rn;return Vn.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:Ft=nr.indexOf(ce),rn=nr[Ft+1],rn&&Ft!==-1&&Ye(rn);case 3:case"end":return Rn.stop()}},_t)}))))},[ce]),Object(T.useEffect)(function(){return function(){Ue.current=!0,ot()}},[]),[ce,Ke]},dn=function(De){var tt=T.useState({width:0,height:0}),at=Object(B.a)(tt,2),je=at[0],ce=at[1];function Ce(Ue){ce({width:Ue.offsetWidth,height:Ue.offsetHeight})}var ge=T.useMemo(function(){var Ue={};if(De){var Ye=je.width,ot=je.height;De.indexOf("height")!==-1&&ot?Ue.height=ot:De.indexOf("minHeight")!==-1&&ot&&(Ue.minHeight=ot),De.indexOf("width")!==-1&&Ye?Ue.width=Ye:De.indexOf("minWidth")!==-1&&Ye&&(Ue.minWidth=Ye)}return Ue},[De,je]);return[ge,Ce]},xn=T.forwardRef(function(De,tt){var at=De.visible,je=De.prefixCls,ce=De.className,Ce=De.style,ge=De.children,Ue=De.zIndex,Ye=De.stretch,ot=De.destroyPopupOnHide,Ke=De.forceRender,_t=De.align,Ft=De.point,rn=De.getRootDomNode,hn=De.getClassNameFromAlign,Rn=De.onAlign,Kn=De.onMouseEnter,cr=De.onMouseLeave,on=De.onMouseDown,jt=De.onTouchStart,Jt=Object(T.useRef)(),In=Object(T.useRef)(),_n=Object(T.useState)(),yr=Object(B.a)(_n,2),qn=yr[0],Cr=yr[1],ir=dn(Ye),mn=Object(B.a)(ir,2),Mn=mn[0],vr=mn[1];function Or(){Ye&&vr(rn())}var Qn=vn(at,Or),Pr=Object(B.a)(Qn,2),$r=Pr[0],Ir=Pr[1],Br=Object(T.useRef)();function Ur(){return Ft||rn}function jr(){var qr;(qr=Jt.current)===null||qr===void 0||qr.forceAlign()}function Nr(qr,Vr){var Xr=hn(Vr);qn!==Xr&&Cr(Xr),$r==="align"&&(qn!==Xr?Promise.resolve().then(function(){jr()}):Ir(function(){var ea;(ea=Br.current)===null||ea===void 0||ea.call(Br)}),Rn==null||Rn(qr,Vr))}var pr=Object(F.a)({},ee(De));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(qr){var Vr=pr[qr];pr[qr]=function(Xr,ea){return Ir(),Vr==null?void 0:Vr(Xr,ea)}});function la(){return new Promise(function(qr){Br.current=qr})}T.useEffect(function(){!pr.motionName&&$r==="motion"&&Ir()},[pr.motionName,$r]),T.useImperativeHandle(tt,function(){return{forceAlign:jr,getElement:function(){return In.current}}});var Qa=Object(F.a)(Object(F.a)({},Mn),{},{zIndex:Ue,opacity:$r==="motion"||$r==="stable"||!at?void 0:0,pointerEvents:$r==="stable"?void 0:"none"},Ce),ja=!0;(_t==null?void 0:_t.points)&&($r==="align"||$r==="stable")&&(ja=!1);var Ca=ge;return T.Children.count(ge)>1&&(Ca=T.createElement("div",{className:"".concat(je,"-content")},ge)),T.createElement(ue,Object(C.a)({visible:at,ref:In,leavedClassName:"".concat(je,"-hidden")},pr,{onAppearPrepare:la,onEnterPrepare:la,removeOnLeave:ot,forceRender:Ke}),function(qr,Vr){var Xr=qr.className,ea=qr.style,Ua=P()(je,ce,qn,Xr);return T.createElement(tn.a,{target:Ur(),key:"popup",ref:Jt,monitorWindowResize:!0,disabled:ja,align:_t,onAlign:Nr},T.createElement("div",{ref:Vr,className:Ua,onMouseEnter:Kn,onMouseLeave:cr,onMouseDownCapture:on,onTouchStartCapture:jt,style:Object(F.a)(Object(F.a)({},ea),Qa)},Ca))})});xn.displayName="PopupInner";var Nn=xn,dr=T.forwardRef(function(De,tt){var at=De.prefixCls,je=De.visible,ce=De.zIndex,Ce=De.children,ge=De.mobile;ge=ge===void 0?{}:ge;var Ue=ge.popupClassName,Ye=ge.popupStyle,ot=ge.popupMotion,Ke=ot===void 0?{}:ot,_t=ge.popupRender,Ft=T.useRef();T.useImperativeHandle(tt,function(){return{forceAlign:function(){},getElement:function(){return Ft.current}}});var rn=Object(F.a)({zIndex:ce},Ye),hn=Ce;return T.Children.count(Ce)>1&&(hn=T.createElement("div",{className:"".concat(at,"-content")},Ce)),_t&&(hn=_t(hn)),T.createElement(ue,Object(C.a)({visible:je,ref:Ft,removeOnLeave:!0},Ke),function(Rn,Kn){var cr=Rn.className,on=Rn.style,jt=P()(at,Ue,cr);return T.createElement("div",{ref:Kn,className:jt,style:Object(F.a)(Object(F.a)({},on),rn)},hn)})});dr.displayName="MobilePopupInner";var $n=dr,Zn=["visible","mobile"],kn=T.forwardRef(function(De,tt){var at=De.visible,je=De.mobile,ce=Object(I.a)(De,Zn),Ce=Object(T.useState)(at),ge=Object(B.a)(Ce,2),Ue=ge[0],Ye=ge[1],ot=Object(T.useState)(!1),Ke=Object(B.a)(ot,2),_t=Ke[0],Ft=Ke[1],rn=Object(F.a)(Object(F.a)({},ce),{},{visible:Ue});Object(T.useEffect)(function(){Ye(at),at&&je&&Ft(Ne())},[at,je]);var hn=_t?T.createElement($n,Object(C.a)({},rn,{mobile:je,ref:tt})):T.createElement(Nn,Object(C.a)({},rn,{ref:tt}));return T.createElement("div",null,T.createElement(qe,rn),hn)});kn.displayName="Popup";var gr=kn,Bn=T.createContext(null),ar=Bn;function sr(){}function Pn(){return""}function Tr(De){return De?De.ownerDocument:window.document}var Mr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Sr(De){var tt=function(at){Object(h.a)(ce,at);var je=Object(p.a)(ce);function ce(Ce){var ge;Object(k.a)(this,ce),ge=je.call(this,Ce),ge.popupRef=T.createRef(),ge.triggerRef=T.createRef(),ge.attachId=void 0,ge.clickOutsideHandler=void 0,ge.touchOutsideHandler=void 0,ge.contextMenuOutsideHandler1=void 0,ge.contextMenuOutsideHandler2=void 0,ge.mouseDownTimeout=void 0,ge.focusTime=void 0,ge.preClickTime=void 0,ge.preTouchTime=void 0,ge.delayTimer=void 0,ge.hasPopupMouseDown=void 0,ge.onMouseEnter=function(Ye){var ot=ge.props.mouseEnterDelay;ge.fireEvents("onMouseEnter",Ye),ge.delaySetPopupVisible(!0,ot,ot?null:Ye)},ge.onMouseMove=function(Ye){ge.fireEvents("onMouseMove",Ye),ge.setPoint(Ye)},ge.onMouseLeave=function(Ye){ge.fireEvents("onMouseLeave",Ye),ge.delaySetPopupVisible(!1,ge.props.mouseLeaveDelay)},ge.onPopupMouseEnter=function(){ge.clearDelayTimer()},ge.onPopupMouseLeave=function(Ye){var ot;if(Ye.relatedTarget&&!Ye.relatedTarget.setTimeout&&Object(kt.a)((ot=ge.popupRef.current)===null||ot===void 0?void 0:ot.getElement(),Ye.relatedTarget))return;ge.delaySetPopupVisible(!1,ge.props.mouseLeaveDelay)},ge.onFocus=function(Ye){ge.fireEvents("onFocus",Ye),ge.clearDelayTimer(),ge.isFocusToShow()&&(ge.focusTime=Date.now(),ge.delaySetPopupVisible(!0,ge.props.focusDelay))},ge.onMouseDown=function(Ye){ge.fireEvents("onMouseDown",Ye),ge.preClickTime=Date.now()},ge.onTouchStart=function(Ye){ge.fireEvents("onTouchStart",Ye),ge.preTouchTime=Date.now()},ge.onBlur=function(Ye){ge.fireEvents("onBlur",Ye),ge.clearDelayTimer(),ge.isBlurToHide()&&ge.delaySetPopupVisible(!1,ge.props.blurDelay)},ge.onContextMenu=function(Ye){Ye.preventDefault(),ge.fireEvents("onContextMenu",Ye),ge.setPopupVisible(!0,Ye)},ge.onContextMenuClose=function(){ge.isContextMenuToShow()&&ge.close()},ge.onClick=function(Ye){if(ge.fireEvents("onClick",Ye),ge.focusTime){var ot;if(ge.preClickTime&&ge.preTouchTime?ot=Math.min(ge.preClickTime,ge.preTouchTime):ge.preClickTime?ot=ge.preClickTime:ge.preTouchTime&&(ot=ge.preTouchTime),Math.abs(ot-ge.focusTime)<20)return;ge.focusTime=0}ge.preClickTime=0,ge.preTouchTime=0,ge.isClickToShow()&&(ge.isClickToHide()||ge.isBlurToHide())&&Ye&&Ye.preventDefault&&Ye.preventDefault();var Ke=!ge.state.popupVisible;(ge.isClickToHide()&&!Ke||Ke&&ge.isClickToShow())&&ge.setPopupVisible(!ge.state.popupVisible,Ye)},ge.onPopupMouseDown=function(){if(ge.hasPopupMouseDown=!0,clearTimeout(ge.mouseDownTimeout),ge.mouseDownTimeout=window.setTimeout(function(){ge.hasPopupMouseDown=!1},0),ge.context){var Ye;(Ye=ge.context).onPopupMouseDown.apply(Ye,arguments)}},ge.onDocumentClick=function(Ye){if(ge.props.mask&&!ge.props.maskClosable)return;var ot=Ye.target,Ke=ge.getRootDomNode(),_t=ge.getPopupDomNode();(!Object(kt.a)(Ke,ot)||ge.isContextMenuOnly())&&!Object(kt.a)(_t,ot)&&!ge.hasPopupMouseDown&&ge.close()},ge.getRootDomNode=function(){var Ye=ge.props.getTriggerDOMNode;if(Ye)return Ye(ge.triggerRef.current);try{var ot=Object(qt.a)(ge.triggerRef.current);if(ot)return ot}catch(Ke){}return Ut.a.findDOMNode(Object(y.a)(ge))},ge.getPopupClassNameFromAlign=function(Ye){var ot=[],Ke=ge.props,_t=Ke.popupPlacement,Ft=Ke.builtinPlacements,rn=Ke.prefixCls,hn=Ke.alignPoint,Rn=Ke.getPopupClassNameFromAlign;return _t&&Ft&&ot.push(dt(Ft,rn,Ye,hn)),Rn&&ot.push(Rn(Ye)),ot.join(" ")},ge.getComponent=function(){var Ye=ge.props,ot=Ye.prefixCls,Ke=Ye.destroyPopupOnHide,_t=Ye.popupClassName,Ft=Ye.onPopupAlign,rn=Ye.popupMotion,hn=Ye.popupAnimation,Rn=Ye.popupTransitionName,Kn=Ye.popupStyle,cr=Ye.mask,on=Ye.maskAnimation,jt=Ye.maskTransitionName,Jt=Ye.maskMotion,In=Ye.zIndex,_n=Ye.popup,yr=Ye.stretch,qn=Ye.alignPoint,Cr=Ye.mobile,ir=Ye.forceRender,mn=ge.state,Mn=mn.popupVisible,vr=mn.point,Or=ge.getPopupAlign(),Qn={};return ge.isMouseEnterToShow()&&(Qn.onMouseEnter=ge.onPopupMouseEnter),ge.isMouseLeaveToHide()&&(Qn.onMouseLeave=ge.onPopupMouseLeave),Qn.onMouseDown=ge.onPopupMouseDown,Qn.onTouchStart=ge.onPopupMouseDown,T.createElement(gr,Object(C.a)({prefixCls:ot,destroyPopupOnHide:Ke,visible:Mn,point:qn&&vr,className:_t,align:Or,onAlign:Ft,animation:hn,getClassNameFromAlign:ge.getPopupClassNameFromAlign},Qn,{stretch:yr,getRootDomNode:ge.getRootDomNode,style:Kn,mask:cr,zIndex:In,transitionName:Rn,maskAnimation:on,maskTransitionName:jt,maskMotion:Jt,ref:ge.popupRef,motion:rn,mobile:Cr,forceRender:ir}),typeof _n=="function"?_n():_n)},ge.attachParent=function(Ye){We.a.cancel(ge.attachId);var ot=ge.props,Ke=ot.getPopupContainer,_t=ot.getDocument,Ft=ge.getRootDomNode(),rn;Ke?(Ft||Ke.length===0)&&(rn=Ke(Ft)):rn=_t(ge.getRootDomNode()).body,rn?rn.appendChild(Ye):ge.attachId=Object(We.a)(function(){ge.attachParent(Ye)})},ge.getContainer=function(){var Ye=ge.props.getDocument,ot=Ye(ge.getRootDomNode()).createElement("div");return ot.style.position="absolute",ot.style.top="0",ot.style.left="0",ot.style.width="100%",ge.attachParent(ot),ot},ge.setPoint=function(Ye){var ot=ge.props.alignPoint;if(!ot||!Ye)return;ge.setState({point:{pageX:Ye.pageX,pageY:Ye.pageY}})},ge.handlePortalUpdate=function(){ge.state.prevPopupVisible!==ge.state.popupVisible&&ge.props.afterPopupVisibleChange(ge.state.popupVisible)},ge.triggerContextValue={onPopupMouseDown:ge.onPopupMouseDown};var Ue;return"popupVisible"in Ce?Ue=!!Ce.popupVisible:Ue=!!Ce.defaultPopupVisible,ge.state={prevPopupVisible:Ue,popupVisible:Ue},Mr.forEach(function(Ye){ge["fire".concat(Ye)]=function(ot){ge.fireEvents(Ye,ot)}}),ge}return Object(w.a)(ce,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ge=this.props,Ue=this.state;if(Ue.popupVisible){var Ye;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ye=ge.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ae.a)(Ye,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ye=Ye||ge.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ae.a)(Ye,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ye=Ye||ge.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ae.a)(Ye,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ae.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),We.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var ge;return((ge=this.popupRef.current)===null||ge===void 0?void 0:ge.getElement())||null}},{key:"getPopupAlign",value:function(){var ge=this.props,Ue=ge.popupPlacement,Ye=ge.popupAlign,ot=ge.builtinPlacements;return Ue&&ot?Ze(ot,Ue,Ye):Ye}},{key:"setPopupVisible",value:function(ge,Ue){var Ye=this.props.alignPoint,ot=this.state.popupVisible;this.clearDelayTimer(),ot!==ge&&("popupVisible"in this.props||this.setState({popupVisible:ge,prevPopupVisible:ot}),this.props.onPopupVisibleChange(ge)),Ye&&Ue&&ge&&this.setPoint(Ue)}},{key:"delaySetPopupVisible",value:function(ge,Ue,Ye){var ot=this,Ke=Ue*1e3;if(this.clearDelayTimer(),Ke){var _t=Ye?{pageX:Ye.pageX,pageY:Ye.pageY}:null;this.delayTimer=window.setTimeout(function(){ot.setPopupVisible(ge,_t),ot.clearDelayTimer()},Ke)}else this.setPopupVisible(ge,Ye)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(ge){var Ue=this.props.children.props,Ye=this.props;return Ue[ge]&&Ye[ge]?this["fire".concat(ge)]:Ue[ge]||Ye[ge]}},{key:"isClickToShow",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.showAction;return Ue.indexOf("click")!==-1||Ye.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var ge=this.props.action;return ge==="contextMenu"||ge.length===1&&ge[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.showAction;return Ue.indexOf("contextMenu")!==-1||Ye.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.hideAction;return Ue.indexOf("click")!==-1||Ye.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.showAction;return Ue.indexOf("hover")!==-1||Ye.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.hideAction;return Ue.indexOf("hover")!==-1||Ye.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.showAction;return Ue.indexOf("focus")!==-1||Ye.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var ge=this.props,Ue=ge.action,Ye=ge.hideAction;return Ue.indexOf("focus")!==-1||Ye.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var ge;(ge=this.popupRef.current)===null||ge===void 0||ge.forceAlign()}}},{key:"fireEvents",value:function(ge,Ue){var Ye=this.props.children.props[ge];Ye&&Ye(Ue);var ot=this.props[ge];ot&&ot(Ue)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var ge=this.state.popupVisible,Ue=this.props,Ye=Ue.children,ot=Ue.forceRender,Ke=Ue.alignPoint,_t=Ue.className,Ft=Ue.autoDestroy,rn=T.Children.only(Ye),hn={key:"trigger"};this.isContextMenuToShow()?hn.onContextMenu=this.onContextMenu:hn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(hn.onClick=this.onClick,hn.onMouseDown=this.onMouseDown,hn.onTouchStart=this.onTouchStart):(hn.onClick=this.createTwoChains("onClick"),hn.onMouseDown=this.createTwoChains("onMouseDown"),hn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(hn.onMouseEnter=this.onMouseEnter,Ke&&(hn.onMouseMove=this.onMouseMove)):hn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?hn.onMouseLeave=this.onMouseLeave:hn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(hn.onFocus=this.onFocus,hn.onBlur=this.onBlur):(hn.onFocus=this.createTwoChains("onFocus"),hn.onBlur=this.createTwoChains("onBlur"));var Rn=P()(rn&&rn.props&&rn.props.className,_t);Rn&&(hn.className=Rn);var Kn=Object(F.a)({},hn);Object(Pe.c)(rn)&&(Kn.ref=Object(Pe.a)(this.triggerRef,rn.ref));var cr=T.cloneElement(rn,Kn),on;return(ge||this.popupRef.current||ot)&&(on=T.createElement(De,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!ge&&Ft&&(on=null),T.createElement(ar.Provider,{value:this.triggerContextValue},cr,on)}}],[{key:"getDerivedStateFromProps",value:function(ge,Ue){var Ye=ge.popupVisible,ot={};return Ye!==void 0&&Ue.popupVisible!==Ye&&(ot.popupVisible=Ye,ot.prevPopupVisible=Ue.popupVisible),ot}}]),ce}(T.Component);return tt.contextType=ar,tt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Pn,getDocument:Tr,onPopupVisibleChange:sr,afterPopupVisibleChange:sr,onPopupAlign:sr,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},tt}var hr=Sr(ut.a),ne={adjustX:1,adjustY:1},Re={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}},Xe={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ne,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ne,offset:[4,0]}},Le=Re,st=0,et={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pt=function(tt,at,je){var ce=He(at),Ce=tt.getState();tt.setState({defaultActiveFirst:Object(F.a)(Object(F.a)({},Ce.defaultActiveFirst),{},Object(Y.a)({},ce,je))})},mt=function(De){Object(h.a)(at,De);var tt=Object(p.a)(at);function at(je){var ce;Object(k.a)(this,at),ce=tt.call(this,je),ce.onDestroy=function(Ke){ce.props.onDestroy(Ke)},ce.onKeyDown=function(Ke){var _t=Ke.keyCode,Ft=ce.menuInstance,rn=ce.props.store,hn=ce.getVisible();if(_t===d.a.ENTER)return ce.onTitleClick(Ke),pt(rn,ce.props.eventKey,!0),!0;if(_t===d.a.RIGHT)return hn?Ft.onKeyDown(Ke):(ce.triggerOpenChange(!0),pt(rn,ce.props.eventKey,!0)),!0;if(_t===d.a.LEFT){var Rn;if(hn)Rn=Ft.onKeyDown(Ke);else return;return Rn||(ce.triggerOpenChange(!1),Rn=!0),Rn}return hn&&(_t===d.a.UP||_t===d.a.DOWN)?Ft.onKeyDown(Ke):void 0},ce.onOpenChange=function(Ke){ce.props.onOpenChange(Ke)},ce.onPopupVisibleChange=function(Ke){ce.triggerOpenChange(Ke,Ke?"mouseenter":"mouseleave")},ce.onMouseEnter=function(Ke){var _t=ce.props,Ft=_t.eventKey,rn=_t.onMouseEnter,hn=_t.store;pt(hn,ce.props.eventKey,!1),rn({key:Ft,domEvent:Ke})},ce.onMouseLeave=function(Ke){var _t=ce.props,Ft=_t.parentMenu,rn=_t.eventKey,hn=_t.onMouseLeave;Ft.subMenuInstance=Object(y.a)(ce),hn({key:rn,domEvent:Ke})},ce.onTitleMouseEnter=function(Ke){var _t=ce.props,Ft=_t.eventKey,rn=_t.onItemHover,hn=_t.onTitleMouseEnter;rn({key:Ft,hover:!0}),hn({key:Ft,domEvent:Ke})},ce.onTitleMouseLeave=function(Ke){var _t=ce.props,Ft=_t.parentMenu,rn=_t.eventKey,hn=_t.onItemHover,Rn=_t.onTitleMouseLeave;Ft.subMenuInstance=Object(y.a)(ce),hn({key:rn,hover:!1}),Rn({key:rn,domEvent:Ke})},ce.onTitleClick=function(Ke){var _t=Object(y.a)(ce),Ft=_t.props;if(Ft.onTitleClick({key:Ft.eventKey,domEvent:Ke}),Ft.triggerSubMenuAction==="hover")return;ce.triggerOpenChange(!ce.getVisible(),"click"),pt(Ft.store,ce.props.eventKey,!1)},ce.onSubMenuClick=function(Ke){typeof ce.props.onClick=="function"&&ce.props.onClick(ce.addKeyPath(Ke))},ce.onSelect=function(Ke){ce.props.onSelect(Ke)},ce.onDeselect=function(Ke){ce.props.onDeselect(Ke)},ce.getPrefixCls=function(){return"".concat(ce.props.rootPrefixCls,"-submenu")},ce.getActiveClassName=function(){return"".concat(ce.getPrefixCls(),"-active")},ce.getDisabledClassName=function(){return"".concat(ce.getPrefixCls(),"-disabled")},ce.getSelectedClassName=function(){return"".concat(ce.getPrefixCls(),"-selected")},ce.getOpenClassName=function(){return"".concat(ce.props.rootPrefixCls,"-submenu-open")},ce.getVisible=function(){return ce.state.isOpen},ce.getMode=function(){return ce.state.mode},ce.saveMenuInstance=function(Ke){ce.menuInstance=Ke},ce.addKeyPath=function(Ke){return Object(F.a)(Object(F.a)({},Ke),{},{keyPath:(Ke.keyPath||[]).concat(ce.props.eventKey)})},ce.triggerOpenChange=function(Ke,_t){var Ft=ce.props.eventKey,rn=function(){ce.onOpenChange({key:Ft,item:Object(y.a)(ce),trigger:_t,open:Ke})};_t==="mouseenter"?ce.mouseenterTimeout=setTimeout(function(){rn()},0):rn()},ce.isChildrenSelected=function(){var Ke={find:!1};return ht(ce.props.children,ce.props.selectedKeys,Ke),Ke.find},ce.isInlineMode=function(){return ce.getMode()==="inline"},ce.adjustWidth=function(){if(!ce.subMenuTitle||!ce.menuInstance)return;var Ke=yt.findDOMNode(ce.menuInstance);if(Ke.offsetWidth>=ce.subMenuTitle.offsetWidth)return;Ke.style.minWidth="".concat(ce.subMenuTitle.offsetWidth,"px")},ce.saveSubMenuTitle=function(Ke){ce.subMenuTitle=Ke},ce.getBaseProps=function(){var Ke=Object(y.a)(ce),_t=Ke.props,Ft=ce.getMode();return{mode:Ft==="horizontal"?"vertical":Ft,visible:ce.getVisible(),level:_t.level+1,inlineIndent:_t.inlineIndent,focusable:!1,onClick:ce.onSubMenuClick,onSelect:ce.onSelect,onDeselect:ce.onDeselect,onDestroy:ce.onDestroy,selectedKeys:_t.selectedKeys,eventKey:"".concat(_t.eventKey,"-menu-"),openKeys:_t.openKeys,motion:_t.motion,onOpenChange:ce.onOpenChange,subMenuOpenDelay:_t.subMenuOpenDelay,parentMenu:Object(y.a)(ce),subMenuCloseDelay:_t.subMenuCloseDelay,forceSubMenuRender:_t.forceSubMenuRender,triggerSubMenuAction:_t.triggerSubMenuAction,builtinPlacements:_t.builtinPlacements,defaultActiveFirst:_t.store.getState().defaultActiveFirst[He(_t.eventKey)],multiple:_t.multiple,prefixCls:_t.rootPrefixCls,id:ce.internalMenuId,manualRef:ce.saveMenuInstance,itemIcon:_t.itemIcon,expandIcon:_t.expandIcon,direction:_t.direction}},ce.getMotion=function(Ke,_t){var Ft=Object(y.a)(ce),rn=Ft.haveRendered,hn=ce.props,Rn=hn.motion,Kn=hn.rootPrefixCls,cr=Object(F.a)(Object(F.a)({},Rn),{},{leavedClassName:"".concat(Kn,"-hidden"),removeOnLeave:!1,motionAppear:rn||!_t||Ke!=="inline"});return cr};var Ce=je.store,ge=je.eventKey,Ue=Ce.getState(),Ye=Ue.defaultActiveFirst;ce.isRootMenu=!1;var ot=!1;return Ye&&(ot=Ye[ge]),pt(Ce,ge,ot),ce.state={mode:je.mode,isOpen:je.isOpen},ce}return Object(w.a)(at,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ce=this,Ce=this.props,ge=Ce.mode,Ue=Ce.parentMenu,Ye=Ce.manualRef,ot=Ce.isOpen,Ke=function(){ce.setState({mode:ge,isOpen:ot})},_t=ot!==this.state.isOpen,Ft=ge!==this.state.mode;if((Ft||_t)&&(We.a.cancel(this.updateStateRaf),Ft?this.updateStateRaf=Object(We.a)(Ke):Ke()),Ye&&Ye(this),ge!=="horizontal"||!(Ue==null?void 0:Ue.isRootMenu)||!ot)return;this.minWidthTimeout=setTimeout(function(){return ce.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ce=this.props,Ce=ce.onDestroy,ge=ce.eventKey;Ce&&Ce(ge),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),We.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(ce,Ce){var ge=this.getBaseProps();return T.createElement(Ht,Object(C.a)({},ge,{id:this.internalMenuId,className:ce,style:Ce}),this.props.children)}},{key:"renderChildren",value:function(){var ce=this,Ce=this.getBaseProps(),ge=Ce.mode,Ue=Ce.visible,Ye=Ce.forceSubMenuRender,ot=Ce.direction,Ke=this.getMotion(ge,Ue);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ue||Ye,!this.haveOpened)return T.createElement("div",null);var _t=P()("".concat(Ce.prefixCls,"-sub"),Object(Y.a)({},"".concat(Ce.prefixCls,"-rtl"),ot==="rtl"));return this.isInlineMode()?T.createElement(ue,Object(C.a)({visible:Ce.visible,forceRender:Ye},Ke),function(Ft){var rn=Ft.className,hn=Ft.style,Rn=P()(_t,rn);return ce.renderPopupMenu(Rn,hn)}):this.renderPopupMenu(_t)}},{key:"render",value:function(){var ce,Ce,ge,Ue=Object(F.a)({},this.props),Ye=this.getVisible(),ot=this.getPrefixCls(),Ke=this.isInlineMode(),_t=this.getMode(),Ft=P()(ot,"".concat(ot,"-").concat(_t),(ce={},Object(Y.a)(ce,Ue.className,!!Ue.className),Object(Y.a)(ce,this.getOpenClassName(),Ye),Object(Y.a)(ce,this.getActiveClassName(),Ue.active||Ye&&!Ke),Object(Y.a)(ce,this.getDisabledClassName(),Ue.disabled),Object(Y.a)(ce,this.getSelectedClassName(),this.isChildrenSelected()),ce));this.internalMenuId||(Ue.eventKey?this.internalMenuId="".concat(Ue.eventKey,"$Menu"):(st+=1,this.internalMenuId="$__$".concat(st,"$Menu")));var rn={},hn={},Rn={};Ue.disabled||(rn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},hn={onClick:this.onTitleClick},Rn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Kn={},cr=Ue.direction,on=cr==="rtl";Ke&&(on?Kn.paddingRight=Ue.inlineIndent*Ue.level:Kn.paddingLeft=Ue.inlineIndent*Ue.level);var jt={};this.getVisible()&&(jt={"aria-owns":this.internalMenuId});var Jt=null;_t!=="horizontal"&&(Jt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Jt=T.createElement(this.props.expandIcon,Object(F.a)({},this.props))));var In=T.createElement("div",Object(C.a)({ref:this.saveSubMenuTitle,style:Kn,className:"".concat(ot,"-title"),role:"button"},Rn,hn,{"aria-expanded":Ye},jt,{"aria-haspopup":"true",title:typeof Ue.title=="string"?Ue.title:void 0}),Ue.title,Jt||T.createElement("i",{className:"".concat(ot,"-arrow")})),_n=this.renderChildren(),yr=((Ce=Ue.parentMenu)===null||Ce===void 0?void 0:Ce.isRootMenu)?Ue.parentMenu.props.getPopupContainer:function(Ur){return Ur.parentNode},qn=et[_t],Cr=Ue.popupOffset?{offset:Ue.popupOffset}:{},ir=P()((ge={},Object(Y.a)(ge,Ue.popupClassName,Ue.popupClassName&&!Ke),Object(Y.a)(ge,"".concat(ot,"-rtl"),on),ge)),mn=Ue.disabled,Mn=Ue.triggerSubMenuAction,vr=Ue.subMenuOpenDelay,Or=Ue.forceSubMenuRender,Qn=Ue.subMenuCloseDelay,Pr=Ue.builtinPlacements;ie.forEach(function(Ur){return delete Ue[Ur]}),delete Ue.onClick;var $r=on?Object(F.a)(Object(F.a)({},Xe),Pr):Object(F.a)(Object(F.a)({},Re),Pr);delete Ue.direction;var Ir=this.getBaseProps(),Br=Ke?null:this.getMotion(Ir.mode,Ir.visible);return T.createElement("li",Object(C.a)({},Ue,rn,{className:Ft,role:"menuitem"}),T.createElement(hr,{prefixCls:ot,popupClassName:P()("".concat(ot,"-popup"),ir),getPopupContainer:yr,builtinPlacements:$r,popupPlacement:qn,popupVisible:Ke?!1:Ye,popupAlign:Cr,popup:Ke?null:_n,action:mn||Ke?[]:[Mn],mouseEnterDelay:vr,mouseLeaveDelay:Qn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Or,popupMotion:Br},In),Ke?_n:null)}}]),at}(T.Component);mt.defaultProps={onMouseEnter:Me,onMouseLeave:Me,onTitleMouseEnter:Me,onTitleMouseLeave:Me,onTitleClick:Me,manualRef:Me,mode:"vertical",title:""};var it=Object(v.b)(function(De,tt){var at=De.openKeys,je=De.activeKey,ce=De.selectedKeys,Ce=tt.eventKey,ge=tt.subMenuKey;return{isOpen:at.indexOf(Ce)>-1,active:je[ge]===Ce,selectedKeys:ce}})(mt);it.isSubMenu=!0;var Mt=it,Xt="menuitem-overflowed",Vt=.5,St=function(De){Object(h.a)(at,De);var tt=Object(p.a)(at);function at(){var je;return Object(k.a)(this,at),je=tt.apply(this,arguments),je.resizeObserver=null,je.mutationObserver=null,je.originalTotalWidth=0,je.overflowedItems=[],je.menuItemSizes=[],je.cancelFrameId=null,je.state={lastVisibleIndex:void 0},je.childRef=T.createRef(),je.getMenuItemNodes=function(){var ce=je.props.prefixCls,Ce=je.childRef.current;return Ce?[].slice.call(Ce.children).filter(function(ge){return ge.className.split(" ").indexOf("".concat(ce,"-overflowed-submenu"))<0}):[]},je.getOverflowedSubMenuItem=function(ce,Ce,ge){var Ue=je.props,Ye=Ue.overflowedIndicator,ot=Ue.level,Ke=Ue.mode,_t=Ue.prefixCls,Ft=Ue.theme;if(ot!==1||Ke!=="horizontal")return null;var rn=je.props.children[0],hn=rn.props,Rn=hn.children,Kn=hn.title,cr=hn.style,on=Object(I.a)(hn,["children","title","style"]),jt=Object(F.a)({},cr),Jt="".concat(ce,"-overflowed-indicator"),In="".concat(ce,"-overflowed-indicator");Ce.length===0&&ge!==!0?jt=Object(F.a)(Object(F.a)({},jt),{},{display:"none"}):ge&&(jt=Object(F.a)(Object(F.a)({},jt),{},{visibility:"hidden",position:"absolute"}),Jt="".concat(Jt,"-placeholder"),In="".concat(In,"-placeholder"));var _n=Ft?"".concat(_t,"-").concat(Ft):"",yr={};return ie.forEach(function(qn){on[qn]!==void 0&&(yr[qn]=on[qn])}),T.createElement(Mt,Object(C.a)({title:Ye,className:"".concat(_t,"-overflowed-submenu"),popupClassName:_n},yr,{key:Jt,eventKey:In,disabled:!1,style:jt}),Ce)},je.setChildrenWidthAndResize=function(){if(je.props.mode!=="horizontal")return;var ce=je.childRef.current;if(!ce)return;var Ce=ce.children;if(!Ce||Ce.length===0)return;var ge=ce.children[Ce.length-1];we(ge,"display","inline-block");var Ue=je.getMenuItemNodes(),Ye=Ue.filter(function(ot){return ot.className.split(" ").indexOf(Xt)>=0});Ye.forEach(function(ot){we(ot,"display","inline-block")}),je.menuItemSizes=Ue.map(function(ot){return xe(ot,!0)}),Ye.forEach(function(ot){we(ot,"display","none")}),je.overflowedIndicatorWidth=xe(ce.children[ce.children.length-1],!0),je.originalTotalWidth=je.menuItemSizes.reduce(function(ot,Ke){return ot+Ke},0),je.handleResize(),we(ge,"display","none")},je.handleResize=function(){if(je.props.mode!=="horizontal")return;var ce=je.childRef.current;if(!ce)return;var Ce=xe(ce);je.overflowedItems=[];var ge=0,Ue;je.originalTotalWidth>Ce+Vt&&(Ue=-1,je.menuItemSizes.forEach(function(Ye){ge+=Ye,ge+je.overflowedIndicatorWidth<=Ce&&(Ue+=1)})),je.setState({lastVisibleIndex:Ue})},je}return Object(w.a)(at,[{key:"componentDidMount",value:function(){var ce=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ce=this.childRef.current;if(!Ce)return;this.resizeObserver=new ct.default(function(ge){ge.forEach(function(){var Ue=ce.cancelFrameId;cancelAnimationFrame(Ue),ce.cancelFrameId=requestAnimationFrame(ce.setChildrenWidthAndResize)})}),[].slice.call(Ce.children).concat(Ce).forEach(function(ge){ce.resizeObserver.observe(ge)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ce.resizeObserver.disconnect(),[].slice.call(Ce.children).concat(Ce).forEach(function(ge){ce.resizeObserver.observe(ge)}),ce.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ce,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ce){var Ce=this,ge=this.state.lastVisibleIndex;return(ce||[]).reduce(function(Ue,Ye,ot){var Ke=Ye;if(Ce.props.mode==="horizontal"){var _t=Ce.getOverflowedSubMenuItem(Ye.props.eventKey,[]);ge!==void 0&&Ce.props.className.indexOf("".concat(Ce.props.prefixCls,"-root"))!==-1&&(ot>ge&&(Ke=T.cloneElement(Ye,{style:{display:"none"},eventKey:"".concat(Ye.props.eventKey,"-hidden"),className:"".concat(Xt)})),ot===ge+1&&(Ce.overflowedItems=ce.slice(ge+1).map(function(rn){return T.cloneElement(rn,{key:rn.props.eventKey,mode:"vertical-left"})}),_t=Ce.getOverflowedSubMenuItem(Ye.props.eventKey,Ce.overflowedItems)));var Ft=[].concat(Object(b.a)(Ue),[_t,Ke]);return ot===ce.length-1&&Ft.push(Ce.getOverflowedSubMenuItem(Ye.props.eventKey,[],!0)),Ft}return[].concat(Object(b.a)(Ue),[Ke])},[])}},{key:"render",value:function(){var ce=this.props,Ce=ce.visible,ge=ce.prefixCls,Ue=ce.overflowedIndicator,Ye=ce.mode,ot=ce.level,Ke=ce.tag,_t=ce.children,Ft=ce.theme,rn=Object(I.a)(ce,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),hn=Ke;return T.createElement(hn,Object(C.a)({ref:this.childRef},rn),this.renderChildren(_t))}}]),at}(T.Component);St.defaultProps={tag:"div",className:""};var nn=St;function Qe(De){return De.length?De.every(function(tt){return!!tt.props.disabled}):!0}function en(De,tt,at){var je=De.getState();De.setState({activeKey:Object(F.a)(Object(F.a)({},je.activeKey),{},Object(Y.a)({},tt,at))})}function Bt(De){return De.eventKey||"0-menu-"}function bn(De,tt){var at=tt,je=De.children,ce=De.eventKey;if(at){var Ce;if(ke(je,function(ge,Ue){ge&&ge.props&&!ge.props.disabled&&at===rt(ge,ce,Ue)&&(Ce=!0)}),Ce)return at}return at=null,De.defaultActiveFirst&&ke(je,function(ge,Ue){!at&&ge&&!ge.props.disabled&&(at=rt(ge,ce,Ue))}),at}function On(De){if(!De)return;var tt=this.instanceArray.indexOf(De);tt!==-1?this.instanceArray[tt]=De:this.instanceArray.push(De)}var Gt=function(De){Object(h.a)(at,De);var tt=Object(p.a)(at);function at(je){var ce;return Object(k.a)(this,at),ce=tt.call(this,je),ce.onKeyDown=function(Ce,ge){var Ue=Ce.keyCode,Ye;if(ce.getFlatInstanceArray().forEach(function(Ke){Ke&&Ke.props.active&&Ke.onKeyDown&&(Ye=Ke.onKeyDown(Ce))}),Ye)return 1;var ot=null;return(Ue===d.a.UP||Ue===d.a.DOWN)&&(ot=ce.step(Ue===d.a.UP?-1:1)),ot?(Ce.preventDefault(),en(ce.props.store,Bt(ce.props),ot.props.eventKey),typeof ge=="function"&&ge(ot),1):void 0},ce.onItemHover=function(Ce){var ge=Ce.key,Ue=Ce.hover;en(ce.props.store,Bt(ce.props),Ue?ge:null)},ce.onDeselect=function(Ce){ce.props.onDeselect(Ce)},ce.onSelect=function(Ce){ce.props.onSelect(Ce)},ce.onClick=function(Ce){ce.props.onClick(Ce)},ce.onOpenChange=function(Ce){ce.props.onOpenChange(Ce)},ce.onDestroy=function(Ce){ce.props.onDestroy(Ce)},ce.getFlatInstanceArray=function(){return ce.instanceArray},ce.step=function(Ce){var ge=ce.getFlatInstanceArray(),Ue=ce.props.store.getState().activeKey[Bt(ce.props)],Ye=ge.length;if(!Ye)return null;Ce<0&&(ge=ge.concat().reverse());var ot=-1;if(ge.every(function(rn,hn){return rn&&rn.props.eventKey===Ue?(ot=hn,!1):!0}),!ce.props.defaultActiveFirst&&ot!==-1&&Qe(ge.slice(ot,Ye-1)))return;var Ke=(ot+1)%Ye,_t=Ke;do{var Ft=ge[_t];if(!Ft||Ft.props.disabled)_t=(_t+1)%Ye;else return Ft}while(_t!==Ke);return null},ce.renderCommonMenuItem=function(Ce,ge,Ue){var Ye=ce.props.store.getState(),ot=Object(y.a)(ce),Ke=ot.props,_t=rt(Ce,Ke.eventKey,ge),Ft=Ce.props;if(!Ft||typeof Ce.type=="string")return Ce;var rn=_t===Ye.activeKey,hn=Object(F.a)(Object(F.a)({mode:Ft.mode||Ke.mode,level:Ke.level,inlineIndent:Ke.inlineIndent,renderMenuItem:ce.renderMenuItem,rootPrefixCls:Ke.prefixCls,index:ge,parentMenu:Ke.parentMenu,manualRef:Ft.disabled?void 0:Object(E.a)(Ce.ref,On.bind(Object(y.a)(ce))),eventKey:_t,active:!Ft.disabled&&rn,multiple:Ke.multiple,onClick:function(Kn){(Ft.onClick||Me)(Kn),ce.onClick(Kn)},onItemHover:ce.onItemHover,motion:Ke.motion,subMenuOpenDelay:Ke.subMenuOpenDelay,subMenuCloseDelay:Ke.subMenuCloseDelay,forceSubMenuRender:Ke.forceSubMenuRender,onOpenChange:ce.onOpenChange,onDeselect:ce.onDeselect,onSelect:ce.onSelect,builtinPlacements:Ke.builtinPlacements,itemIcon:Ft.itemIcon||ce.props.itemIcon,expandIcon:Ft.expandIcon||ce.props.expandIcon},Ue),{},{direction:Ke.direction});return(Ke.mode==="inline"||$e())&&(hn.triggerSubMenuAction="click"),T.cloneElement(Ce,Object(F.a)(Object(F.a)({},hn),{},{key:_t||ge}))},ce.renderMenuItem=function(Ce,ge,Ue){if(!Ce)return null;var Ye=ce.props.store.getState(),ot={openKeys:Ye.openKeys,selectedKeys:Ye.selectedKeys,triggerSubMenuAction:ce.props.triggerSubMenuAction,subMenuKey:Ue};return ce.renderCommonMenuItem(Ce,ge,ot)},je.store.setState({activeKey:Object(F.a)(Object(F.a)({},je.store.getState().activeKey),{},Object(Y.a)({},je.eventKey,bn(je,je.activeKey)))}),ce.instanceArray=[],ce}return Object(w.a)(at,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ce){return this.props.visible||ce.visible||this.props.className!==ce.className||!j()(this.props.style,ce.style)}},{key:"componentDidUpdate",value:function(ce){var Ce=this.props,ge="activeKey"in Ce?Ce.activeKey:Ce.store.getState().activeKey[Bt(Ce)],Ue=bn(Ce,ge);if(Ue!==ge)en(Ce.store,Bt(Ce),Ue);else if("activeKey"in ce){var Ye=bn(ce,ce.activeKey);Ue!==Ye&&en(Ce.store,Bt(Ce),Ue)}}},{key:"render",value:function(){var ce=this,Ce=Object(C.a)({},this.props);this.instanceArray=[];var ge=P()(Ce.prefixCls,Ce.className,"".concat(Ce.prefixCls,"-").concat(Ce.mode)),Ue={className:ge,role:Ce.role||"menu"};Ce.id&&(Ue.id=Ce.id),Ce.focusable&&(Ue.tabIndex=0,Ue.onKeyDown=this.onKeyDown);var Ye=Ce.prefixCls,ot=Ce.eventKey,Ke=Ce.visible,_t=Ce.level,Ft=Ce.mode,rn=Ce.overflowedIndicator,hn=Ce.theme;return ie.forEach(function(Rn){return delete Ce[Rn]}),delete Ce.onClick,T.createElement(nn,Object(C.a)({},Ce,{prefixCls:Ye,mode:Ft,tag:"ul",level:_t,theme:hn,visible:Ke,overflowedIndicator:rn},Ue),Object(m.a)(Ce.children).map(function(Rn,Kn){return ce.renderMenuItem(Rn,Kn,ot||"0-menu-")}))}}]),at}(T.Component);Gt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Me};var cn=Object(v.b)()(Gt),Ht=cn,Sn=L("Kwbf");function wn(De,tt,at){var je=De.prefixCls,ce=De.motion,Ce=De.defaultMotions,ge=Ce===void 0?{}:Ce,Ue=De.openAnimation,Ye=De.openTransitionName,ot=tt.switchingModeFromInline;if(ce)return ce;if(Object(U.a)(Ue)==="object"&&Ue)Object(Sn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ue=="string")return{motionName:"".concat(je,"-open-").concat(Ue)};if(Ye)return{motionName:Ye};var Ke=ge[at];return Ke||(ot?null:ge.other)}var wt=function(De){Object(h.a)(at,De);var tt=Object(p.a)(at);function at(je){var ce;Object(k.a)(this,at),ce=tt.call(this,je),ce.onSelect=function(Ue){var Ye=Object(y.a)(ce),ot=Ye.props;if(ot.selectable){var Ke=ce.store.getState(),_t=Ke.selectedKeys,Ft=Ue.key;ot.multiple?_t=_t.concat([Ft]):_t=[Ft],"selectedKeys"in ot||ce.store.setState({selectedKeys:_t}),ot.onSelect(Object(F.a)(Object(F.a)({},Ue),{},{selectedKeys:_t}))}},ce.onClick=function(Ue){var Ye=ce.getRealMenuMode(),ot=Object(y.a)(ce),Ke=ot.store,_t=ot.props.onOpenChange;Ye!=="inline"&&!("openKeys"in ce.props)&&(Ke.setState({openKeys:[]}),_t([])),ce.props.onClick(Ue)},ce.onKeyDown=function(Ue,Ye){ce.innerMenu.getWrappedInstance().onKeyDown(Ue,Ye)},ce.onOpenChange=function(Ue){var Ye=Object(y.a)(ce),ot=Ye.props,Ke=ce.store.getState().openKeys.concat(),_t=!1,Ft=function(hn){var Rn=!1;if(hn.open)Rn=Ke.indexOf(hn.key)===-1,Rn&&Ke.push(hn.key);else{var Kn=Ke.indexOf(hn.key);Rn=Kn!==-1,Rn&&Ke.splice(Kn,1)}_t=_t||Rn};Array.isArray(Ue)?Ue.forEach(Ft):Ft(Ue),_t&&("openKeys"in ce.props||ce.store.setState({openKeys:Ke}),ot.onOpenChange(Ke))},ce.onDeselect=function(Ue){var Ye=Object(y.a)(ce),ot=Ye.props;if(ot.selectable){var Ke=ce.store.getState().selectedKeys.concat(),_t=Ue.key,Ft=Ke.indexOf(_t);Ft!==-1&&Ke.splice(Ft,1),"selectedKeys"in ot||ce.store.setState({selectedKeys:Ke}),ot.onDeselect(Object(F.a)(Object(F.a)({},Ue),{},{selectedKeys:Ke}))}},ce.onMouseEnter=function(Ue){ce.restoreModeVerticalFromInline();var Ye=ce.props.onMouseEnter;Ye&&Ye(Ue)},ce.onTransitionEnd=function(Ue){var Ye=Ue.propertyName==="width"&&Ue.target===Ue.currentTarget,ot=Ue.target.className,Ke=Object.prototype.toString.call(ot)==="[object SVGAnimatedString]"?ot.animVal:ot,_t=Ue.propertyName==="font-size"&&Ke.indexOf("anticon")>=0;(Ye||_t)&&ce.restoreModeVerticalFromInline()},ce.setInnerMenu=function(Ue){ce.innerMenu=Ue},ce.isRootMenu=!0;var Ce=je.defaultSelectedKeys,ge=je.defaultOpenKeys;return"selectedKeys"in je&&(Ce=je.selectedKeys||[]),"openKeys"in je&&(ge=je.openKeys||[]),ce.store=Object(v.c)({selectedKeys:Ce,openKeys:ge,activeKey:{"0-menu-":bn(je,je.activeKey)}}),ce.state={switchingModeFromInline:!1,prevProps:je,inlineOpenKeys:[],store:ce.store},ce}return Object(w.a)(at,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ce){var Ce=this.props,ge=Ce.siderCollapsed,Ue=Ce.inlineCollapsed,Ye=Ce.onOpenChange;(!ce.inlineCollapsed&&Ue||!ce.siderCollapsed&&ge)&&Ye([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var ce=this.props.collapsedWidth,Ce=this.store,ge=this.prevOpenKeys,Ue=this.getInlineCollapsed()&&(ce===0||ce==="0"||ce==="0px");Ue?(this.prevOpenKeys=Ce.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ge&&(this.store.setState({openKeys:ge}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ce=this.props.mode,Ce=this.state.switchingModeFromInline,ge=this.getInlineCollapsed();return Ce&&ge?"inline":ge?"vertical":ce}},{key:"getInlineCollapsed",value:function(){var ce=this.props,Ce=ce.inlineCollapsed,ge=ce.siderCollapsed;return ge!==void 0?ge:Ce}},{key:"restoreModeVerticalFromInline",value:function(){var ce=this.state.switchingModeFromInline;ce&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ce=Object(F.a)({},Object(_.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ce=this.getRealMenuMode();return ce.className+=" ".concat(ce.prefixCls,"-root"),ce.direction==="rtl"&&(ce.className+=" ".concat(ce.prefixCls,"-rtl")),ce=Object(F.a)(Object(F.a)({},ce),{},{mode:Ce,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:wn(this.props,this.state,Ce)}),delete ce.openAnimation,delete ce.openTransitionName,T.createElement(v.a,{store:this.store},T.createElement(Ht,Object(C.a)({},ce,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(ce,Ce){var ge=Ce.prevProps,Ue=Ce.store,Ye=Ue.getState(),ot={},Ke={prevProps:ce};return ge.mode==="inline"&&ce.mode!=="inline"&&(Ke.switchingModeFromInline=!0),"openKeys"in ce?ot.openKeys=ce.openKeys||[]:((ce.inlineCollapsed&&!ge.inlineCollapsed||ce.siderCollapsed&&!ge.siderCollapsed)&&(Ke.switchingModeFromInline=!0,Ke.inlineOpenKeys=Ye.openKeys,ot.openKeys=[]),(!ce.inlineCollapsed&&ge.inlineCollapsed||!ce.siderCollapsed&&ge.siderCollapsed)&&(ot.openKeys=Ce.inlineOpenKeys,Ke.inlineOpenKeys=[])),Object.keys(ot).length&&Ue.setState(ot),Ke}}]),at}(T.Component);wt.defaultProps={selectable:!0,onClick:Me,onSelect:Me,onOpenChange:Me,onDeselect:Me,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:T.createElement("span",null,"\xB7\xB7\xB7")};var It=wt,Pt=function(De){Object(h.a)(at,De);var tt=Object(p.a)(at);function at(){var je;return Object(k.a)(this,at),je=tt.apply(this,arguments),je.onKeyDown=function(ce){var Ce=ce.keyCode;return Ce===d.a.ENTER?(je.onClick(ce),!0):void 0},je.onMouseLeave=function(ce){var Ce=je.props,ge=Ce.eventKey,Ue=Ce.onItemHover,Ye=Ce.onMouseLeave;Ue({key:ge,hover:!1}),Ye({key:ge,domEvent:ce})},je.onMouseEnter=function(ce){var Ce=je.props,ge=Ce.eventKey,Ue=Ce.onItemHover,Ye=Ce.onMouseEnter;Ue({key:ge,hover:!0}),Ye({key:ge,domEvent:ce})},je.onClick=function(ce){var Ce=je.props,ge=Ce.eventKey,Ue=Ce.multiple,Ye=Ce.onClick,ot=Ce.onSelect,Ke=Ce.onDeselect,_t=Ce.isSelected,Ft={key:ge,keyPath:[ge],item:Object(y.a)(je),domEvent:ce};Ye(Ft),Ue?_t?Ke(Ft):ot(Ft):_t||ot(Ft)},je.saveNode=function(ce){je.node=ce},je}return Object(w.a)(at,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ce=this.props;ce.onDestroy&&ce.onDestroy(ce.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ce,Ce=Object(F.a)({},this.props),ge=P()(this.getPrefixCls(),Ce.className,(ce={},Object(Y.a)(ce,this.getActiveClassName(),!Ce.disabled&&Ce.active),Object(Y.a)(ce,this.getSelectedClassName(),Ce.isSelected),Object(Y.a)(ce,this.getDisabledClassName(),Ce.disabled),ce)),Ue=Object(F.a)(Object(F.a)({},Ce.attribute),{},{title:typeof Ce.title=="string"?Ce.title:void 0,className:ge,role:Ce.role||"menuitem","aria-disabled":Ce.disabled});Ce.role==="option"?Ue=Object(F.a)(Object(F.a)({},Ue),{},{role:"option","aria-selected":Ce.isSelected}):(Ce.role===null||Ce.role==="none")&&(Ue.role="none");var Ye={onClick:Ce.disabled?null:this.onClick,onMouseLeave:Ce.disabled?null:this.onMouseLeave,onMouseEnter:Ce.disabled?null:this.onMouseEnter},ot=Object(F.a)({},Ce.style);Ce.mode==="inline"&&(Ce.direction==="rtl"?ot.paddingRight=Ce.inlineIndent*Ce.level:ot.paddingLeft=Ce.inlineIndent*Ce.level),ie.forEach(function(_t){return delete Ce[_t]}),delete Ce.direction;var Ke=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ke=T.createElement(this.props.itemIcon,this.props)),T.createElement("li",Object(C.a)({},Object(_.a)(Ce,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ue,Ye,{style:ot,ref:this.saveNode}),Ce.children,Ke)}}]),at}(T.Component);Pt.isMenuItem=!0,Pt.defaultProps={onSelect:Me,onMouseEnter:Me,onMouseLeave:Me,manualRef:Me};var Ct=Object(v.b)(function(De,tt){var at=De.activeKey,je=De.selectedKeys,ce=tt.eventKey,Ce=tt.subMenuKey;return{active:at[Ce]===ce,isSelected:Array.isArray(je)?je.indexOf(ce)!==-1:je===ce}})(Pt),vt=Ct,Dn=function(De){Object(h.a)(at,De);var tt=Object(p.a)(at);function at(){var je;return Object(k.a)(this,at),je=tt.apply(this,arguments),je.renderInnerMenuItem=function(ce){var Ce=je.props,ge=Ce.renderMenuItem,Ue=Ce.index;return ge(ce,Ue,je.props.subMenuKey)},je}return Object(w.a)(at,[{key:"render",value:function(){var ce=Object(C.a)({},this.props),Ce=ce.className,ge=Ce===void 0?"":Ce,Ue=ce.rootPrefixCls,Ye="".concat(Ue,"-item-group-title"),ot="".concat(Ue,"-item-group-list"),Ke=ce.title,_t=ce.children;return ie.forEach(function(Ft){return delete ce[Ft]}),delete ce.direction,T.createElement("li",Object(C.a)({},ce,{onClick:function(rn){return rn.stopPropagation()},className:"".concat(ge," ").concat(Ue,"-item-group")}),T.createElement("div",{className:Ye,title:typeof Ke=="string"?Ke:void 0},Ke),T.createElement("ul",{className:ot},T.Children.map(_t,this.renderInnerMenuItem)))}}]),at}(T.Component);Dn.isMenuItemGroup=!0,Dn.defaultProps={disabled:!0};var $t=Dn,Cn=function(tt){var at=tt.className,je=tt.rootPrefixCls,ce=tt.style;return T.createElement("li",{className:"".concat(at," ").concat(je,"-item-divider"),style:ce})};Cn.defaultProps={disabled:!0,className:"",style:{}};var pn=Cn,Yt=It,Tn=L("eDIo");function zn(De,tt){var at=De.prefixCls,je=De.editable,ce=De.locale,Ce=De.style;return!je||je.showAdd===!1?null:T.createElement("button",{ref:tt,type:"button",className:"".concat(at,"-nav-add"),style:Ce,"aria-label":(ce==null?void 0:ce.addAriaLabel)||"Add tab",onClick:function(Ue){je.onEdit("add",{event:Ue})}},je.addIcon||"+")}var fr=T.forwardRef(zn);function Gn(De,tt){var at=De.prefixCls,je=De.id,ce=De.tabs,Ce=De.locale,ge=De.mobile,Ue=De.moreIcon,Ye=Ue===void 0?"More":Ue,ot=De.moreTransitionName,Ke=De.style,_t=De.className,Ft=De.editable,rn=De.tabBarGutter,hn=De.rtl,Rn=De.onTabClick,Kn=Object(T.useState)(!1),cr=Object(B.a)(Kn,2),on=cr[0],jt=cr[1],Jt=Object(T.useState)(null),In=Object(B.a)(Jt,2),_n=In[0],yr=In[1],qn="".concat(je,"-more-popup"),Cr="".concat(at,"-dropdown"),ir=_n!==null?"".concat(qn,"-").concat(_n):null,mn=Ce==null?void 0:Ce.dropdownAriaLabel,Mn=T.createElement(Yt,{onClick:function(Br){var Ur=Br.key,jr=Br.domEvent;Rn(Ur,jr),jt(!1)},id:qn,tabIndex:-1,role:"listbox","aria-activedescendant":ir,selectedKeys:[_n],"aria-label":mn!==void 0?mn:"expanded dropdown"},ce.map(function(Ir){return T.createElement(vt,{key:Ir.key,id:"".concat(qn,"-").concat(Ir.key),role:"option","aria-controls":je&&"".concat(je,"-panel-").concat(Ir.key),disabled:Ir.disabled},Ir.tab)}));function vr(Ir){for(var Br=ce.filter(function(la){return!la.disabled}),Ur=Br.findIndex(function(la){return la.key===_n})||0,jr=Br.length,Nr=0;NrPr?(Or=Mn,qn.current="x"):(Or=vr,qn.current="y");var $r=Date.now();$r-_n.current>100&&(yr.current=!1),(tt(-Or,-Or)||yr.current)&&(mn.preventDefault(),yr.current=!0),_n.current=$r}var ir=Object(T.useRef)(null);ir.current={onTouchStart:jt,onTouchMove:Jt,onTouchEnd:In,onWheel:Cr},T.useEffect(function(){function mn(Qn){ir.current.onTouchStart(Qn)}function Mn(Qn){ir.current.onTouchMove(Qn)}function vr(Qn){ir.current.onTouchEnd(Qn)}function Or(Qn){ir.current.onWheel(Qn)}return document.addEventListener("touchmove",Mn,{passive:!1}),document.addEventListener("touchend",vr,{passive:!1}),De.current.addEventListener("touchstart",mn,{passive:!1}),De.current.addEventListener("wheel",Or),function(){document.removeEventListener("touchmove",Mn),document.removeEventListener("touchend",vr)}},[])}function ua(){var De=Object(T.useRef)(new Map);function tt(je){return De.current.has(je)||De.current.set(je,T.createRef()),De.current.get(je)}function at(je){De.current.delete(je)}return[tt,at]}function xa(De,tt){var at=T.useRef(De),je=T.useState({}),ce=Object(B.a)(je,2),Ce=ce[1];function ge(Ue){var Ye=typeof Ue=="function"?Ue(at.current):Ue;Ye!==at.current&&tt(Ye,at.current),at.current=Ye,Ce({})}return[at.current,ge]}var ma=function(tt){var at=tt.position,je=tt.prefixCls,ce=tt.extra;if(!ce)return null;var Ce,ge=ce;return at==="right"&&(Ce=ge.right||!ge.left&&ge||null),at==="left"&&(Ce=ge.left||null),Ce?T.createElement("div",{className:"".concat(je,"-extra-content")},Ce):null};function Ya(De,tt){var at,je=T.useContext(Gr),ce=je.prefixCls,Ce=je.tabs,ge=De.className,Ue=De.style,Ye=De.id,ot=De.animated,Ke=De.activeKey,_t=De.rtl,Ft=De.extra,rn=De.editable,hn=De.locale,Rn=De.tabPosition,Kn=De.tabBarGutter,cr=De.children,on=De.onTabClick,jt=De.onTabScroll,Jt=Object(T.useRef)(),In=Object(T.useRef)(),_n=Object(T.useRef)(),yr=Object(T.useRef)(),qn=ua(),Cr=Object(B.a)(qn,2),ir=Cr[0],mn=Cr[1],Mn=Rn==="top"||Rn==="bottom",vr=xa(0,function(Hr,Dr){Mn&&jt&&jt({direction:Hr>Dr?"left":"right"})}),Or=Object(B.a)(vr,2),Qn=Or[0],Pr=Or[1],$r=xa(0,function(Hr,Dr){!Mn&&jt&&jt({direction:Hr>Dr?"top":"bottom"})}),Ir=Object(B.a)($r,2),Br=Ir[0],Ur=Ir[1],jr=Object(T.useState)(0),Nr=Object(B.a)(jr,2),pr=Nr[0],la=Nr[1],Qa=Object(T.useState)(0),ja=Object(B.a)(Qa,2),Ca=ja[0],qr=ja[1],Vr=Object(T.useState)(0),Xr=Object(B.a)(Vr,2),ea=Xr[0],Ua=Xr[1],hi=Object(T.useState)(0),si=Object(B.a)(hi,2),Yr=si[0],Ja=si[1],Za=Object(T.useState)(null),Qr=Object(B.a)(Za,2),zr=Qr[0],ba=Qr[1],Pi=Object(T.useState)(null),no=Object(B.a)(Pi,2),li=no[0],Ci=no[1],Ti=Object(T.useState)(0),Si=Object(B.a)(Ti,2),Ii=Si[0],co=Si[1],Ro=Object(T.useState)(0),Gi=Object(B.a)(Ro,2),Oi=Gi[0],Vi=Gi[1],yi=i(new Map),Ri=Object(B.a)(yi,2),ho=Ri[0],Yi=Ri[1],Ai=c(Ce,ho,pr),Di="".concat(ce,"-nav-operations-hidden"),bi=0,Ia=0;Mn?_t?(bi=0,Ia=Math.max(0,pr-zr)):(bi=Math.min(0,zr-pr),Ia=0):(bi=Math.min(0,li-Ca),Ia=0);function fi(Hr){return HrIa?[Ia,!1]:[Hr,!0]}var pi=Object(T.useRef)(),_i=Object(T.useState)(),mi=Object(B.a)(_i,2),Xi=mi[0],$i=mi[1];function Qi(){$i(Date.now())}function ki(){window.clearTimeout(pi.current)}Zr(Jt,function(Hr,Dr){var oa=!1;function Fa(Mi,di){Mi(function(Ui){var ci=fi(Ui+di),_a=Object(B.a)(ci,2),Fi=_a[0],Bi=_a[1];return oa=Bi,Fi})}if(Mn){if(zr>=pr)return oa;Fa(Pr,Hr)}else{if(li>=Ca)return oa;Fa(Ur,Dr)}return ki(),Qi(),oa}),Object(T.useEffect)(function(){return ki(),Xi&&(pi.current=window.setTimeout(function(){$i(0)},100)),ki},[Xi]);function ui(){var Hr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ke,Dr=Ai.get(Hr);if(!Dr)return;if(Mn){var oa=Qn;_t?Dr.rightQn+zr&&(oa=Dr.right+Dr.width-zr):Dr.left<-Qn?oa=-Dr.left:Dr.left+Dr.width>-Qn+zr&&(oa=-(Dr.left+Dr.width-zr)),Ur(0),Pr(fi(oa)[0])}else{var Fa=Br;Dr.top<-Br?Fa=-Dr.top:Dr.top+Dr.height>-Br+li&&(Fa=-(Dr.top+Dr.height-li)),Pr(0),Ur(fi(Fa)[0])}}var Ei=A(Ai,{width:zr,height:li,left:Qn,top:Br},{width:ea,height:Yr},{width:Ii,height:Oi},Object(F.a)(Object(F.a)({},De),{},{tabs:Ce})),ro=Object(B.a)(Ei,2),Ao=ro[0],Do=ro[1],fo=Ce.map(function(Hr){var Dr=Hr.key;return T.createElement(n,{id:Ye,prefixCls:ce,key:Dr,rtl:_t,tab:Hr,closable:Hr.closable,editable:rn,active:Dr===Ke,tabPosition:Rn,tabBarGutter:Kn,renderWrapper:cr,removeAriaLabel:hn==null?void 0:hn.removeAriaLabel,ref:ir(Dr),onClick:function(Fa){on(Dr,Fa)},onRemove:function(){mn(Dr)},onFocus:function(){ui(Dr),Qi(),_t||(Jt.current.scrollLeft=0),Jt.current.scrollTop=0}})}),ao=a(function(){var Hr,Dr,oa,Fa,Mi,di,Ui,ci,_a,Fi=((Hr=Jt.current)===null||Hr===void 0?void 0:Hr.offsetWidth)||0,Bi=((Dr=Jt.current)===null||Dr===void 0?void 0:Dr.offsetHeight)||0,Hi=((oa=yr.current)===null||oa===void 0?void 0:oa.offsetWidth)||0,za=((Fa=yr.current)===null||Fa===void 0?void 0:Fa.offsetHeight)||0,Fr=((Mi=_n.current)===null||Mi===void 0?void 0:Mi.offsetWidth)||0,_r=((di=_n.current)===null||di===void 0?void 0:di.offsetHeight)||0;ba(Fi),Ci(Bi),co(Hi),Vi(za);var Fn=(((Ui=In.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0)-Hi,lr=(((ci=In.current)===null||ci===void 0?void 0:ci.offsetHeight)||0)-za;la(Fn),qr(lr);var Ar=(_a=_n.current)===null||_a===void 0?void 0:_a.className.includes(Di);Ua(Fn-(Ar?0:Fr)),Ja(lr-(Ar?0:_r)),Yi(function(){var aa=new Map;return Ce.forEach(function(gi){var ii=gi.key,Da=ir(ii).current;Da&&aa.set(ii,{width:Da.offsetWidth,height:Da.offsetHeight,left:Da.offsetLeft,top:Da.offsetTop})}),aa})}),po=Ce.slice(0,Ao),Wa=Ce.slice(Do+1),ha=[].concat(Object(b.a)(po),Object(b.a)(Wa)),Aa=Object(T.useState)(),fa=Object(B.a)(Aa,2),Ni=fa[0],mo=fa[1],qa=Ai.get(Ke),io=Object(T.useRef)();function oo(){u.a.cancel(io.current)}Object(T.useEffect)(function(){var Hr={};return qa&&(Mn?(_t?Hr.right=qa.right:Hr.left=qa.left,Hr.width=qa.width):(Hr.top=qa.top,Hr.height=qa.height)),oo(),io.current=u()(function(){mo(Hr)}),oo},[qa,Mn,_t]),Object(T.useEffect)(function(){ui()},[Ke,qa,Ai,Mn]),Object(T.useEffect)(function(){ao()},[_t,Kn,Ke,Ce.map(function(Hr){return Hr.key}).join("_")]);var so=!!ha.length,xi="".concat(ce,"-nav-wrap"),Ji,ji,go,Zi;return Mn?_t?(ji=Qn>0,Ji=Qn+zr` "'(~:]+/,i=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,d=/^\s*\[[^\]]+?\]:.*$/,s=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,n=" ";function l(H,M,V){return M.f=M.inline=V,V(H,M)}function c(H,M,V){return M.f=M.block=V,V(H,M)}function x(H){return!H||!/\S/.test(H.string)}function A(H){if(H.linkTitle=!1,H.linkHref=!1,H.linkText=!1,H.em=!1,H.strong=!1,H.strikethrough=!1,H.quote=0,H.indentedCode=!1,H.f==k){var M=T;if(!M){var V=Y.innerMode(F,H.htmlState);M=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}M&&(H.f=p,H.block=C,H.htmlState=null)}return H.trailingSpace=0,H.trailingSpaceNewLine=!1,H.prevLine=H.thisLine,H.thisLine={stream:null},null}function C(H,M){var V=H.column()===M.indentation,K=x(M.prevLine.stream),$=M.indentedCode,Z=M.prevLine.hr,me=M.list!==!1,oe=(M.listStack[M.listStack.length-1]||0)+3;M.indentedCode=!1;var fe=M.indentation;if(M.indentationDiff===null&&(M.indentationDiff=M.indentation,me)){for(M.list=null;fe=4&&($||M.prevLine.fencedCodeEnd||M.prevLine.header||K))return H.skipToEnd(),M.indentedCode=!0,P.code;if(H.eatSpace())return null;if(V&&M.indentation<=oe&&(ve=H.match(u))&&ve[1].length<=6)return M.quote=0,M.header=ve[1].length,M.thisLine.header=!0,I.highlightFormatting&&(M.formatting="header"),M.f=M.inline,y(M);if(M.indentation<=oe&&H.eat(">"))return M.quote=V?1:M.quote+1,I.highlightFormatting&&(M.formatting="quote"),H.eatSpace(),y(M);if(!Ie&&!M.setext&&V&&M.indentation<=oe&&(ve=H.match(b))){var de=ve[1]?"ol":"ul";return M.indentation=fe+H.current().length,M.list=!0,M.quote=0,M.listStack.push(M.indentation),M.em=!1,M.strong=!1,M.code=!1,M.strikethrough=!1,I.taskLists&&H.match(o,!1)&&(M.taskList=!0),M.f=M.inline,I.highlightFormatting&&(M.formatting=["list","list-"+de]),y(M)}else{if(V&&M.indentation<=oe&&(ve=H.match(i,!0)))return M.quote=0,M.fencedEndRE=new RegExp(ve[1]+"+ *$"),M.localMode=I.fencedCodeBlockHighlighting&&R(ve[2]||I.fencedCodeBlockDefaultMode),M.localMode&&(M.localState=Y.startState(M.localMode)),M.f=M.block=w,I.highlightFormatting&&(M.formatting="code-block"),M.code=-1,y(M);if(M.setext||(!ye||!me)&&!M.quote&&M.list===!1&&!M.code&&!Ie&&!d.test(H.string)&&(ve=H.lookAhead(1))&&(ve=ve.match(f)))return M.setext?(M.header=M.setext,M.setext=0,H.skipToEnd(),I.highlightFormatting&&(M.formatting="header")):(M.header=ve[0].charAt(0)=="="?1:2,M.setext=M.header),M.thisLine.header=!0,M.f=M.inline,y(M);if(Ie)return H.skipToEnd(),M.hr=!0,M.thisLine.hr=!0,P.hr;if(H.peek()==="[")return l(H,M,j)}return l(H,M,M.inline)}function k(H,M){var V=F.token(H,M.htmlState);if(!T){var K=Y.innerMode(F,M.htmlState);(K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText||M.md_inside&&H.current().indexOf(">")>-1)&&(M.f=p,M.block=C,M.htmlState=null)}return V}function w(H,M){var V=M.listStack[M.listStack.length-1]||0,K=M.indentation=H.quote?M.push(P.formatting+"-"+H.formatting[V]+"-"+H.quote):M.push("error"))}if(H.taskOpen)return M.push("meta"),M.length?M.join(" "):null;if(H.taskClosed)return M.push("property"),M.length?M.join(" "):null;if(H.linkHref?M.push(P.linkHref,"url"):(H.strong&&M.push(P.strong),H.em&&M.push(P.em),H.strikethrough&&M.push(P.strikethrough),H.emoji&&M.push(P.emoji),H.linkText&&M.push(P.linkText),H.code&&M.push(P.code),H.image&&M.push(P.image),H.imageAltText&&M.push(P.imageAltText,"link"),H.imageMarker&&M.push(P.imageMarker)),H.header&&M.push(P.header,P.header+"-"+H.header),H.quote&&(M.push(P.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=H.quote?M.push(P.quote+"-"+H.quote):M.push(P.quote+"-"+I.maxBlockquoteDepth)),H.list!==!1){var K=(H.listStack.length-1)%3;K?K===1?M.push(P.list2):M.push(P.list3):M.push(P.list1)}return H.trailingSpaceNewLine?M.push("trailing-space-new-line"):H.trailingSpace&&M.push("trailing-space-"+(H.trailingSpace%2?"a":"b")),M.length?M.join(" "):null}function h(H,M){return H.match(a,!0)?y(M):void 0}function p(H,M){var V=M.text(H,M);if(typeof V!="undefined")return V;if(M.list)return M.list=null,y(M);if(M.taskList){var K=H.match(o,!0)[1]===" ";return K?M.taskOpen=!0:M.taskClosed=!0,I.highlightFormatting&&(M.formatting="task"),M.taskList=!1,y(M)}if(M.taskOpen=!1,M.taskClosed=!1,M.header&&H.match(/^#+$/,!0))return I.highlightFormatting&&(M.formatting="header"),y(M);var $=H.next();if(M.linkTitle){M.linkTitle=!1;var Z=$;$==="("&&(Z=")"),Z=(Z+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var me="^\\s*(?:[^"+Z+"\\\\]+|\\\\\\\\|\\\\.)"+Z;if(H.match(new RegExp(me),!0))return P.linkHref}if($==="`"){var oe=M.formatting;I.highlightFormatting&&(M.formatting="code"),H.eatWhile("`");var fe=H.current().length;if(M.code==0&&(!M.quote||fe==1))return M.code=fe,y(M);if(fe==M.code){var ye=y(M);return M.code=0,ye}else return M.formatting=oe,y(M)}else if(M.code)return y(M);if($==="\\"&&(H.next(),I.highlightFormatting)){var Ie=y(M),ve=P.formatting+"-escape";return Ie?Ie+" "+ve:ve}if($==="!"&&H.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return M.imageMarker=!0,M.image=!0,I.highlightFormatting&&(M.formatting="image"),y(M);if($==="["&&M.imageMarker&&H.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return M.imageMarker=!1,M.imageAltText=!0,I.highlightFormatting&&(M.formatting="image"),y(M);if($==="]"&&M.imageAltText){I.highlightFormatting&&(M.formatting="image");var Ie=y(M);return M.imageAltText=!1,M.image=!1,M.inline=M.f=_,Ie}if($==="["&&!M.image)return M.linkText&&H.match(/^.*?\]/)||(M.linkText=!0,I.highlightFormatting&&(M.formatting="link")),y(M);if($==="]"&&M.linkText){I.highlightFormatting&&(M.formatting="link");var Ie=y(M);return M.linkText=!1,M.inline=M.f=H.match(/\(.*?\)| ?\[.*?\]/,!1)?_:p,Ie}if($==="<"&&H.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){M.f=M.inline=v,I.highlightFormatting&&(M.formatting="link");var Ie=y(M);return Ie?Ie+=" ":Ie="",Ie+P.linkInline}if($==="<"&&H.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){M.f=M.inline=v,I.highlightFormatting&&(M.formatting="link");var Ie=y(M);return Ie?Ie+=" ":Ie="",Ie+P.linkEmail}if(I.xml&&$==="<"&&H.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var de=H.string.indexOf(">",H.pos);if(de!=-1){var Je=H.string.substring(H.start,de);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Je)&&(M.md_inside=!0)}return H.backUp(1),M.htmlState=Y.startState(F),c(H,M,k)}if(I.xml&&$==="<"&&H.match(/^\/\w*?>/))return M.md_inside=!1,"tag";if($==="*"||$==="_"){for(var Rt=1,Ee=H.pos==1?" ":H.string.charAt(H.pos-2);Rt<3&&H.eat($);)Rt++;var Me=H.peek()||" ",rt=!/\s/.test(Me)&&(!s.test(Me)||/\s/.test(Ee)||s.test(Ee)),He=!/\s/.test(Ee)&&(!s.test(Ee)||/\s/.test(Me)||s.test(Me)),ke=null,ht=null;if(Rt%2&&(!M.em&&rt&&($==="*"||!He||s.test(Ee))?ke=!0:M.em==$&&He&&($==="*"||!rt||s.test(Me))&&(ke=!1)),Rt>1&&(!M.strong&&rt&&($==="*"||!He||s.test(Ee))?ht=!0:M.strong==$&&He&&($==="*"||!rt||s.test(Me))&&(ht=!1)),ht!=null||ke!=null){I.highlightFormatting&&(M.formatting=ke==null?"strong":ht==null?"em":"strong em"),ke===!0&&(M.em=$),ht===!0&&(M.strong=$);var ye=y(M);return ke===!1&&(M.em=!1),ht===!1&&(M.strong=!1),ye}}else if($===" "&&(H.eat("*")||H.eat("_"))){if(H.peek()===" ")return y(M);H.backUp(1)}if(I.strikethrough){if($==="~"&&H.eatWhile($)){if(M.strikethrough){I.highlightFormatting&&(M.formatting="strikethrough");var ye=y(M);return M.strikethrough=!1,ye}else if(H.match(/^[^\s]/,!1))return M.strikethrough=!0,I.highlightFormatting&&(M.formatting="strikethrough"),y(M)}else if($===" "&&H.match(/^~~/,!0)){if(H.peek()===" ")return y(M);H.backUp(2)}}if(I.emoji&&$===":"&&H.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){M.emoji=!0,I.highlightFormatting&&(M.formatting="emoji");var ie=y(M);return M.emoji=!1,ie}return $===" "&&(H.match(/^ +$/,!1)?M.trailingSpace++:M.trailingSpace&&(M.trailingSpaceNewLine=!0)),y(M)}function v(H,M){var V=H.next();if(V===">"){M.f=M.inline=p,I.highlightFormatting&&(M.formatting="link");var K=y(M);return K?K+=" ":K="",K+P.linkInline}return H.match(/^[^>]+/,!0),P.linkInline}function _(H,M){if(H.eatSpace())return null;var V=H.next();return V==="("||V==="["?(M.f=M.inline=g(V==="("?")":"]"),I.highlightFormatting&&(M.formatting="link-string"),M.linkHref=!0,y(M)):"error"}var E={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function g(H){return function(M,V){var K=M.next();if(K===H){V.f=V.inline=p,I.highlightFormatting&&(V.formatting="link-string");var $=y(V);return V.linkHref=!1,$}return M.match(E[H]),V.linkHref=!0,y(V)}}function j(H,M){return H.match(/^([^\]\\]|\\.)*\]:/,!1)?(M.f=U,H.next(),I.highlightFormatting&&(M.formatting="link"),M.linkText=!0,y(M)):l(H,M,p)}function U(H,M){if(H.match(/^\]:/,!0)){M.f=M.inline=S,I.highlightFormatting&&(M.formatting="link");var V=y(M);return M.linkText=!1,V}return H.match(/^([^\]\\]|\\.)+/,!0),P.linkText}function S(H,M){return H.eatSpace()?null:(H.match(/^[^\s]+/,!0),H.peek()===void 0?M.linkTitle=!0:H.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),M.f=M.inline=p,P.linkHref+" url")}var z={startState:function(){return{f:C,prevLine:{stream:null},thisLine:{stream:null},block:C,htmlState:null,indentation:0,inline:p,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(H){return{f:H.f,prevLine:H.prevLine,thisLine:H.thisLine,block:H.block,htmlState:H.htmlState&&Y.copyState(F,H.htmlState),indentation:H.indentation,localMode:H.localMode,localState:H.localMode?Y.copyState(H.localMode,H.localState):null,inline:H.inline,text:H.text,formatting:!1,linkText:H.linkText,linkTitle:H.linkTitle,linkHref:H.linkHref,code:H.code,em:H.em,strong:H.strong,strikethrough:H.strikethrough,emoji:H.emoji,header:H.header,setext:H.setext,hr:H.hr,taskList:H.taskList,list:H.list,listStack:H.listStack.slice(0),quote:H.quote,indentedCode:H.indentedCode,trailingSpace:H.trailingSpace,trailingSpaceNewLine:H.trailingSpaceNewLine,md_inside:H.md_inside,fencedEndRE:H.fencedEndRE}},token:function(H,M){if(M.formatting=!1,H!=M.thisLine.stream){if(M.header=0,M.hr=!1,H.match(/^\s*$/,!0))return A(M),null;if(M.prevLine=M.thisLine,M.thisLine={stream:H},M.taskList=!1,M.trailingSpace=0,M.trailingSpaceNewLine=!1,!M.localState&&(M.f=M.block,M.f!=k)){var V=H.match(/^\s*/,!0)[0].replace(/\t/g,n).length;if(M.indentation=V,M.indentationDiff=null,V>0)return null}}return M.f(H,M)},innerMode:function(H){return H.block==k?{state:H.htmlState,mode:F}:H.localState?{state:H.localState,mode:H.localMode}:{state:H,mode:z}},indent:function(H,M,V){return H.block==k&&F.indent?F.indent(H.htmlState,M,V):H.localState&&H.localMode.indent?H.localMode.indent(H.localState,M,V):Y.Pass},blankLine:A,getType:y,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return z},"xml"),Y.defineMIME("text/markdown","markdown"),Y.defineMIME("text/x-markdown","markdown")})},loD1:function(Be,J){function L(Y,B,I,F,T,R,P){if(T===0)return!1;var m=T,t=0,b=Y;if(P>B+m&&P>F+m||PY+m&&R>I+m||R=b.x&&m<=b.x+b.width&&t>=b.y&&t<=b.y+b.height},clone:function(){return new R(this.x,this.y,this.width,this.height)},copy:function(m){this.x=m.x,this.y=m.y,this.width=m.width,this.height=m.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},R.create=function(m){return new R(m.x,m.y,m.width,m.height)};var P=R;Be.exports=P},mLcG:function(Be,J){var L=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Y){setTimeout(Y,16)};Be.exports=L},mgmH:function(Be,J,L){"use strict";L.d(J,"d",function(){return f}),L.d(J,"b",function(){return a}),L.d(J,"e",function(){return i}),L.d(J,"c",function(){return d}),L.d(J,"n",function(){return s}),L.d(J,"g",function(){return n}),L.d(J,"h",function(){return l}),L.d(J,"j",function(){return x}),L.d(J,"a",function(){return A}),L.d(J,"l",function(){return C}),L.d(J,"f",function(){return k}),L.d(J,"k",function(){return w}),L.d(J,"m",function(){return y}),L.d(J,"i",function(){return h}),L.d(J,"o",function(){return p}),L.d(J,"t",function(){return v}),L.d(J,"s",function(){return _}),L.d(J,"p",function(){return E}),L.d(J,"q",function(){return g}),L.d(J,"r",function(){return j}),L.d(J,"v",function(){return U}),L.d(J,"u",function(){return S});var Y=L("miYZ"),B=L("tsqr"),I=L("k1fw"),F=L("9og8"),T=L("WmNS"),R=L.n(T),P=L("oUNq"),m=L("9kvl"),t=L("1vsH"),b=L("m3rI"),o=function(){Object(m.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},u=function(){Object(m.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},f=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return o(),$.next=3,Object(P.t)(Object(I.a)({},M));case 3:if(V=$.sent,!(V.status===0)){$.next=7;break}return $.next=7,Object(t.w)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/export_couser_info.json"),query:M}));case 7:u();case 8:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),a=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.r)(Object(I.a)({},M));case 2:if(V=$.sent,!(V.status===0)){$.next=8;break}B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_member_act_score")),$.next=13;break;case 8:if(!(V.status===-2)){$.next=12;break}return $.abrupt("return",V);case 12:V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),i=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.u)(Object(I.a)({},M));case 2:if(V=$.sent,!(V.status===0)){$.next=8;break}B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_score")),$.next=13;break;case 8:if(!(V.status===-2)){$.next=12;break}return $.abrupt("return",V);case 12:V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_score")));case 13:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),d=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.s)(Object(I.a)({},M));case 2:if(V=$.sent,!(V.status===0)){$.next=8;break}B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")),$.next=13;break;case 8:if(!(V.status===-2)){$.next=12;break}return $.abrupt("return",V);case 12:V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),s=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.z)(Object(I.a)({},M));case 2:if(V=$.sent,!(V.status===0)){$.next=8;break}B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")),$.next=13;break;case 8:if(!(V.status===-2)){$.next=12;break}return $.abrupt("return",V);case 12:V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),n=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.v)(Object(I.a)({},M));case 2:if(V=$.sent,!(V.status===0)){$.next=8;break}B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_homework")),$.next=13;break;case 8:if(!(V.status===-2)){$.next=12;break}return $.abrupt("return",V);case 12:V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),l=function(){var z=Object(F.a)(R.a.mark(function H(M,V){var K;return R.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,Object(P.x)(Object(I.a)({},M));case 2:K=Z.sent,K.status===0?(B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/").concat(V))):K.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/").concat(V)));case 4:case"end":return Z.stop()}},H)}));return function(M,V){return z.apply(this,arguments)}}(),c=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return o(),$.next=3,Object(P.w)(Object(I.a)({},M));case 3:if(V=$.sent,!(V.status===0)){$.next=7;break}return $.next=7,Object(t.w)("",Object(t.Y)({url:b.a.API_SERVER+"/api/homework_commons/".concat(M.categoryId,"/works_list.zip"),query:M}));case 7:u();case 8:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),x=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return o(),$.next=3,Object(P.A)(Object(I.a)({},M));case 3:if(V=$.sent,!(V.status===0)){$.next=7;break}return $.next=7,Object(t.w)("",Object(t.Y)({url:b.a.API_SERVER+"/api/polls/".concat(M.categoryId,"/commit_result.xlsx"),query:M}));case 7:u();case 8:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),A=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/attendances/export_xlsx_data.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),C=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/video_study_statics.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),k=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/".concat(M.coursesId,"/export_course_students_info.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),w=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/item_banks/export.xlsx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),y=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),h=function(){var z=Object(F.a)(R.a.mark(function H(M){var V;return R.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.next=2,Object(P.y)(Object(I.a)({},M));case 2:V=$.sent,V.status===0?(B.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/exercise_score"))):V.status===-3&&(Object(m.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),m.d.push("/classrooms/".concat(M.coursesId,"/exportlist/exercise_score")));case 4:case"end":return $.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),p=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),K.next=3,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/export_records/".concat(M.id,".xlsx"),query:M}));case 3:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),v=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),_=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(M==null?void 0:M.ec_year_id,"/ec_training_objectives.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),E=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)(M==null?void 0:M.name,Object(t.Y)({url:b.a.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),g=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(M==null?void 0:M.ec_year_id,"/ec_courses.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),j=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/ec_years/".concat(M==null?void 0:M.ec_year_id,"/ec_graduation_requirements.xlsx"),query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),U=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/rank_list.xlsx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}(),S=function(){var z=Object(F.a)(R.a.mark(function H(M){return R.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Object(t.v)("",Object(t.Y)({url:b.a.API_SERVER+"/api/courses/question_rank_list.xlsx",query:M}));case 2:case"end":return K.stop()}},H)}));return function(M){return z.apply(this,arguments)}}()},n1HI:function(Be,J,L){var Y=L("hX1E"),B=Y.normalizeRadian,I=Math.PI*2;function F(T,R,P,m,t,b,o,u,f){if(o===0)return!1;var a=o;u-=T,f-=R;var i=Math.sqrt(u*u+f*f);if(i-a>P||i+at&&(t+=I);var s=Math.atan2(f,u);return s<0&&(s+=I),s>=m&&s<=t||s+I>=m&&s+I<=t}J.containStroke=F},n6Mw:function(Be,J,L){var Y=L("SrGk"),B=L("bYtY"),I=L("Fofx");function F(R,P){Y.call(this,R,P,"clipPath","__clippath_in_use__")}B.inherits(F,Y),F.prototype.update=function(R){var P=this.getSvgElement(R);P&&this.updateDom(P,R.__clipPaths,!1);var m=this.getTextSvgElement(R);m&&this.updateDom(m,R.__clipPaths,!0),this.markUsed(R)},F.prototype.updateDom=function(R,P,m){if(P&&P.length>0){var t=this.getDefs(!0),b=P[0],o,u,f=m?"_textDom":"_dom";b[f]?(u=b[f].getAttribute("id"),o=b[f],t.contains(o)||t.appendChild(o)):(u="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,o=this.createElement("clipPath"),o.setAttribute("id",u),t.appendChild(o),b[f]=o);var a=this.getSvgProxy(b);if(b.transform&&b.parent.invTransform&&!m){var i=Array.prototype.slice.call(b.transform);I.mul(b.transform,b.parent.invTransform,b.transform),a.brush(b),b.transform=i}else a.brush(b);var d=this.getSvgElement(b);o.innerHTML="",o.appendChild(d.cloneNode()),R.setAttribute("clip-path","url(#"+u+")"),P.length>1&&this.updateDom(o,P.slice(1),m)}else R&&R.setAttribute("clip-path","none")},F.prototype.markUsed=function(R){var P=this;R.__clipPaths&&B.each(R.__clipPaths,function(m){m._dom&&Y.prototype.markUsed.call(P,m._dom),m._textDom&&Y.prototype.markUsed.call(P,m._textDom)})};var T=F;Be.exports=T},n6Qo:function(Be,J,L){"use strict";L.d(J,"a",function(){return m});var Y=L("q1tI"),B=L("biw7"),I=L("fyJ8");function F(t){var b=t.className,o=t.index,u=t.children,f=t.colSpan,a=t.rowSpan,i=Y.useContext(B.a),d=i.prefixCls,s=i.fixedInfoList,n=s[o];return Y.createElement(I.a,Object.assign({className:b,index:o,component:"td",prefixCls:d,record:null,dataIndex:null,render:function(){return{children:u,props:{colSpan:f,rowSpan:a}}}},n))}function T(t){return Y.createElement("tr",Object.assign({},t))}function R(t){var b=t.children,o=Y.useContext(B.a),u=o.prefixCls;return Y.createElement("tfoot",{className:"".concat(u,"-summary")},b)}var P=J.b=R,m={Cell:F,Row:T}},nCxF:function(Be,J,L){var Y=L("QBsz"),B=Y.min,I=Y.max,F=Y.scale,T=Y.distance,R=Y.add,P=Y.clone,m=Y.sub;function t(b,o,u,f){var a=[],i=[],d=[],s=[],n,l,c,x;if(f){c=[Infinity,Infinity],x=[-Infinity,-Infinity];for(var A=0,C=b.length;A{f();const i=this._commands.get(o);(i==null?void 0:i.isEmpty())&&this._commands.delete(o)});return this._onDidRegisterCommand.fire(o),a}registerCommandAlias(t,b){return m.registerCommand(t,(o,...u)=>o.get(P).executeCommand(b,...u))}getCommand(t){const b=this._commands.get(t);return!b||b.isEmpty()?void 0:B.a.first(b)}getCommands(){const t=new Map;for(const b of this._commands.keys()){const o=this.getCommand(b);o&&t.set(b,o)}return t}};m.registerCommand("noop",()=>{})},oOBs:function(Be,J,L){Be.exports={leftdiv:"leftdiv___1FhsT",listClass:"listClass___1Y2ac",spantitle:"spantitle___1pL39",rightdiv:"rightdiv___3ZICD"}},ogmK:function(Be,J,L){"use strict";L.d(J,"a",function(){return Sr});var Y=L("1OyB"),B=L("vuIU"),I=L("Ji7U"),F=L("LK+K"),T=L("rePB"),R=L("VTBJ"),P=L("ODXe"),m=L("q1tI"),t=L("TSYQ"),b=L.n(t),o=L("Kwbf"),u=L("6cGi"),f=L("U8pU"),a=L("4IlW"),i=m.createContext({}),d=i,s={visibility:"hidden"};function n(ne){var Re=ne.prefixCls,Xe=ne.prevIcon,Le=Xe===void 0?"\u2039":Xe,st=ne.nextIcon,et=st===void 0?"\u203A":st,pt=ne.superPrevIcon,mt=pt===void 0?"\xAB":pt,it=ne.superNextIcon,Mt=it===void 0?"\xBB":it,Xt=ne.onSuperPrev,Vt=ne.onSuperNext,St=ne.onPrev,nn=ne.onNext,Qe=ne.children,en=m.useContext(d),Bt=en.hideNextBtn,bn=en.hidePrevBtn;return m.createElement("div",{className:Re},Xt&&m.createElement("button",{type:"button",onClick:Xt,tabIndex:-1,className:"".concat(Re,"-super-prev-btn"),style:bn?s:{}},mt),St&&m.createElement("button",{type:"button",onClick:St,tabIndex:-1,className:"".concat(Re,"-prev-btn"),style:bn?s:{}},Le),m.createElement("div",{className:"".concat(Re,"-view")},Qe),nn&&m.createElement("button",{type:"button",onClick:nn,tabIndex:-1,className:"".concat(Re,"-next-btn"),style:Bt?s:{}},et),Vt&&m.createElement("button",{type:"button",onClick:Vt,tabIndex:-1,className:"".concat(Re,"-super-next-btn"),style:Bt?s:{}},Mt))}var l=n;function c(ne){var Re=m.useContext(d),Xe=Re.hideHeader;if(Xe)return null;var Le=ne.prefixCls,st=ne.generateConfig,et=ne.locale,pt=ne.value,mt=ne.format,it="".concat(Le,"-header");return m.createElement(l,{prefixCls:it},pt?st.locale.format(et.locale,pt,mt):"\xA0")}var x=c,A=L("YrtM"),C=L("KQm4"),k=new Map;function w(ne,Re,Xe){if(k.get(ne)&&cancelAnimationFrame(k.get(ne)),Xe<=0){k.set(ne,requestAnimationFrame(function(){ne.scrollTop=Re}));return}var Le=Re-ne.scrollTop,st=Le/Xe*10;k.set(ne,requestAnimationFrame(function(){ne.scrollTop+=st,ne.scrollTop!==Re&&w(ne,Re,Xe-10)}))}function y(ne,Re){var Xe=Re.onLeftRight,Le=Re.onCtrlLeftRight,st=Re.onUpDown,et=Re.onPageUpDown,pt=Re.onEnter,mt=ne.which,it=ne.ctrlKey,Mt=ne.metaKey;switch(mt){case a.a.LEFT:if(it||Mt){if(Le)return Le(-1),!0}else if(Xe)return Xe(-1),!0;break;case a.a.RIGHT:if(it||Mt){if(Le)return Le(1),!0}else if(Xe)return Xe(1),!0;break;case a.a.UP:if(st)return st(-1),!0;break;case a.a.DOWN:if(st)return st(1),!0;break;case a.a.PAGE_UP:if(et)return et(-1),!0;break;case a.a.PAGE_DOWN:if(et)return et(1),!0;break;case a.a.ENTER:if(pt)return pt(),!0;break}return!1}function h(ne,Re,Xe,Le){var st=ne;if(!st)switch(Re){case"time":st=Le?"hh:mm:ss a":"HH:mm:ss";break;case"week":st="gggg-wo";break;case"month":st="YYYY-MM";break;case"quarter":st="YYYY-[Q]Q";break;case"year":st="YYYY";break;default:st=Xe?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return st}function p(ne,Re){var Xe=ne==="time"?8:10;return Math.max(Xe,Re.length)+2}var v=null,_=new Set;function E(ne){return!v&&typeof window!="undefined"&&window.addEventListener&&(v=function(Xe){Object(C.a)(_).forEach(function(Le){Le(Xe)})},window.addEventListener("mousedown",v)),_.add(ne),function(){_.delete(ne),_.size===0&&(window.removeEventListener("mousedown",v),v=null)}}var g=function(Re){return Re==="month"||Re==="date"?"year":Re},j=function(Re){return Re==="date"?"month":Re},U=function(Re){return Re==="month"||Re==="date"?"quarter":Re},S=function(Re){return Re==="date"?"week":Re},z={year:g,month:j,quarter:U,week:S,time:null,date:null};function H(ne,Re){return ne.some(function(Xe){return Xe&&Xe.contains(Re)})}function M(ne){var Re=ne.prefixCls,Xe=ne.units,Le=ne.onSelect,st=ne.value,et=ne.active,pt=ne.hideDisabledOptions,mt="".concat(Re,"-cell"),it=m.useContext(d),Mt=it.open,Xt=m.useRef(null),Vt=m.useRef(new Map);return m.useLayoutEffect(function(){var St=Vt.current.get(st);St&&Mt!==!1&&w(Xt.current,St.offsetTop,120)},[st]),m.useLayoutEffect(function(){if(Mt){var St=Vt.current.get(st);St&&w(Xt.current,St.offsetTop,0)}},[Mt]),m.createElement("ul",{className:b()("".concat(Re,"-column"),Object(T.a)({},"".concat(Re,"-column-active"),et)),ref:Xt,style:{position:"relative"}},Xe.map(function(St){var nn;return pt&&St.disabled?null:m.createElement("li",{key:St.value,ref:function(en){Vt.current.set(St.value,en)},className:b()(mt,(nn={},Object(T.a)(nn,"".concat(mt,"-disabled"),St.disabled),Object(T.a)(nn,"".concat(mt,"-selected"),st===St.value),nn)),onClick:function(){if(St.disabled)return;Le(St.value)}},m.createElement("div",{className:"".concat(mt,"-inner")},St.label))}))}var V=M;function K(ne,Re){for(var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Le=String(ne);Le.length=12,It%=12);var Cn=m.useMemo(function(){if(!Mt)return[!1,!1];var Hn=[!0,!0];return $t.forEach(function(Yn){var Jn=Yn.disabled,wr=Yn.value;if(Jn)return;wr>=12?Hn[1]=!1:Hn[0]=!1}),Hn},[Mt,$t]),pn=Object(P.a)(Cn,2),Yt=pn[0],Tn=pn[1],zn=m.useMemo(function(){return Mt?$t.filter(wt?function(Hn){return Hn.value>=12}:function(Hn){return Hn.value<12}).map(function(Hn){var Yn=Hn.value%12,Jn=Yn===0?"12":K(Yn,2);return Object(R.a)(Object(R.a)({},Hn),{},{label:Jn,value:Yn})}):$t},[Mt,$t]),fr=de(0,59,nn,bn&&bn(It)),Gn=de(0,59,en,On&&On(It,Pt));Le.current={onUpDown:function(Yn){var Jn=Ht[st];if(Jn)for(var wr=Jn.units.findIndex(function(xa){return xa.value===Jn.value}),Wr=Jn.units.length,Zr=1;Zr1&&(pt=Re.addDate(pt,-7)),pt}function Pe(ne,Re,Xe){var Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Re){case"year":return Xe.addYear(ne,Le*10);case"quarter":case"month":return Xe.addYear(ne,Le);default:return Xe.addMonth(ne,Le)}}var Ae=m.createContext({}),ut=Ae;function Et(ne){var Re=ne.cellPrefixCls,Xe=ne.generateConfig,Le=ne.rangedValue,st=ne.hoverRangedValue,et=ne.isInView,pt=ne.isSameCell,mt=ne.offsetCell,it=ne.today,Mt=ne.value;function Xt(Vt){var St,nn=mt(Vt,-1),Qe=mt(Vt,1),en=oe(Le,0),Bt=oe(Le,1),bn=oe(st,0),On=oe(st,1),Gt=kt(Xe,bn,On,Vt);function cn(Pt){return pt(en,Pt)}function Ht(Pt){return pt(Bt,Pt)}var Sn=pt(bn,Vt),wn=pt(On,Vt),wt=(Gt||wn)&&(!et(nn)||Ht(nn)),It=(Gt||Sn)&&(!et(Qe)||cn(Qe));return St={},Object(T.a)(St,"".concat(Re,"-in-view"),et(Vt)),Object(T.a)(St,"".concat(Re,"-in-range"),kt(Xe,en,Bt,Vt)),Object(T.a)(St,"".concat(Re,"-range-start"),cn(Vt)),Object(T.a)(St,"".concat(Re,"-range-end"),Ht(Vt)),Object(T.a)(St,"".concat(Re,"-range-start-single"),cn(Vt)&&!Bt),Object(T.a)(St,"".concat(Re,"-range-end-single"),Ht(Vt)&&!en),Object(T.a)(St,"".concat(Re,"-range-start-near-hover"),cn(Vt)&&(pt(nn,bn)||kt(Xe,bn,On,nn))),Object(T.a)(St,"".concat(Re,"-range-end-near-hover"),Ht(Vt)&&(pt(Qe,On)||kt(Xe,bn,On,Qe))),Object(T.a)(St,"".concat(Re,"-range-hover"),Gt),Object(T.a)(St,"".concat(Re,"-range-hover-start"),Sn),Object(T.a)(St,"".concat(Re,"-range-hover-end"),wn),Object(T.a)(St,"".concat(Re,"-range-hover-edge-start"),wt),Object(T.a)(St,"".concat(Re,"-range-hover-edge-end"),It),Object(T.a)(St,"".concat(Re,"-range-hover-edge-start-near-range"),wt&&pt(nn,Bt)),Object(T.a)(St,"".concat(Re,"-range-hover-edge-end-near-range"),It&&pt(Qe,en)),Object(T.a)(St,"".concat(Re,"-today"),pt(it,Vt)),Object(T.a)(St,"".concat(Re,"-selected"),pt(Mt,Vt)),St}return Xt}function Ze(ne){for(var Re=ne.prefixCls,Xe=ne.disabledDate,Le=ne.onSelect,st=ne.rowNum,et=ne.colNum,pt=ne.prefixColumn,mt=ne.rowClassName,it=ne.baseDate,Mt=ne.getCellClassName,Xt=ne.getCellText,Vt=ne.getCellNode,St=ne.getCellDate,nn=ne.titleCell,Qe=ne.headerCells,en=m.useContext(d),Bt=en.onDateMouseEnter,bn=en.onDateMouseLeave,On="".concat(Re,"-cell"),Gt=[],cn=0;cn2&&arguments[2]!==void 0?arguments[2]:!1;(Ue===en||vr)&&(Ra(mn),wn&&wn(mn),Wr&&Wr(mn,Mn),wt&&!We(mt,mn,ca)&&wt(mn))},Rn=function(mn){return ga.current&&ga.current.onKeyDown?([a.a.LEFT,a.a.RIGHT,a.a.UP,a.a.DOWN,a.a.PAGE_UP,a.a.PAGE_DOWN,a.a.ENTER].includes(mn.which)&&mn.preventDefault(),ga.current.onKeyDown(mn)):(Object(o.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Kn=function(mn){ga.current&&ga.current.onBlur&&ga.current.onBlur(mn)};Jn&&Ya!=="right"&&(Jn.current={onKeyDown:Rn,onClose:function(){ga.current&&ga.current.onClose&&ga.current.onClose()}}),m.useEffect(function(){it&&!Na.current&&at(it)},[it]),m.useEffect(function(){Na.current=!1},[]);var cr,on=Object(R.a)(Object(R.a)({},ne),{},{operationRef:ga,prefixCls:Le,viewDate:tt,value:ca,onViewDateChange:je,sourceMode:_t,onPanelChange:rn,disabledDate:Ue!=="decade"?St:void 0});delete on.onChange,delete on.onSelect;switch(Ue){case"decade":cr=m.createElement(W,Object.assign({},on,{onSelect:function(mn,Mn){je(mn),hn(mn,Mn)}}));break;case"year":cr=m.createElement(Rr,Object.assign({},on,{onSelect:function(mn,Mn){je(mn),hn(mn,Mn)}}));break;case"month":cr=m.createElement(Nt,Object.assign({},on,{onSelect:function(mn,Mn){je(mn),hn(mn,Mn)}}));break;case"quarter":cr=m.createElement(ln,Object.assign({},on,{onSelect:function(mn,Mn){je(mn),hn(mn,Mn)}}));break;case"week":cr=m.createElement(sn,Object.assign({},on,{onSelect:function(mn,Mn){je(mn),hn(mn,Mn)}}));break;case"time":delete on.showTime,cr=m.createElement(rt,Object.assign({},on,Object(f.a)(Gt)==="object"?Gt:null,{onSelect:function(mn,Mn){je(mn),hn(mn,Mn)}}));break;default:Gt?cr=m.createElement(xt,Object.assign({},on,{onSelect:function(mn,Mn){je(mn),hn(mn,Mn)}})):cr=m.createElement(he,Object.assign({},on,{onSelect:function(mn,Mn){je(mn),hn(mn,Mn)}}))}var jt,Jt,In=function(){var mn=mt.getNow(),Mn=Ie(mt.getHour(mn),mt.getMinute(mn),mt.getSecond(mn),Lr?pn:1,Gr?Tn:1,Hn?fr:1),vr=ye(mt,mn,Mn[0],Mn[1],Mn[2]);hn(vr,"submit")};Zr||(jt=G(Le,Ue,Ht),Jt=Q({prefixCls:Le,components:Dn,needConfirmButton:Gn,okDisabled:!ca||St&&St(ca),locale:pt,showNow:On,onNow:Gn&&In,onOk:function(){ca&&(hn(ca,"submit",!0),vt&&vt(ca))}}));var _n;if(cn&&Ue==="date"&&en==="date"&&!Gt){var yr=mt.getNow(),qn="".concat(Le,"-today-btn"),Cr=St&&St(yr);_n=m.createElement("a",{className:b()(qn,Cr&&"".concat(qn,"-disabled")),"aria-disabled":Cr,onClick:function(){Cr||hn(yr,"mouse",!0)}},pt.today)}return m.createElement(d.Provider,{value:Object(R.a)(Object(R.a)({},Yn),{},{hideHeader:"hideHeader"in ne?Sn:Yn.hideHeader,hidePrevBtn:ma&&Ya==="right",hideNextBtn:ma&&Ya==="left"})},m.createElement("div",{tabIndex:bn,className:b()("".concat(Le,"-panel"),st,(Re={},Object(T.a)(Re,"".concat(Le,"-panel-has-range"),Oa&&Oa[0]&&Oa[1]),Object(T.a)(Re,"".concat(Le,"-panel-has-range-hover"),Pa&&Pa[0]&&Pa[1]),Object(T.a)(Re,"".concat(Le,"-panel-rtl"),$t==="rtl"),Re)),style:et,onKeyDown:Rn,onBlur:Kn,onMouseDown:Pt,ref:wr},cr,jt||Jt||_n?m.createElement("div",{className:"".concat(Le,"-footer")},jt,Jt,_n):null))}var ee=ue,qe=L("uciX"),tn={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function An(ne){var Re,Xe=ne.prefixCls,Le=ne.popupElement,st=ne.popupStyle,et=ne.visible,pt=ne.dropdownClassName,mt=ne.dropdownAlign,it=ne.transitionName,Mt=ne.getPopupContainer,Xt=ne.children,Vt=ne.range,St=ne.popupPlacement,nn=ne.direction,Qe="".concat(Xe,"-dropdown"),en=function(){return St!==void 0?St:nn==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(qe.a,{showAction:[],hideAction:[],popupPlacement:en(),builtinPlacements:tn,prefixCls:Qe,popupTransitionName:it,popup:Le,popupAlign:mt,popupVisible:et,popupClassName:b()(pt,(Re={},Object(T.a)(Re,"".concat(Qe,"-range"),Vt),Object(T.a)(Re,"".concat(Qe,"-rtl"),nn==="rtl"),Re)),popupStyle:st,getPopupContainer:Mt},Xt)}var Vn=An;function un(ne){var Re=ne.open,Xe=ne.value,Le=ne.isClickOutside,st=ne.triggerOpen,et=ne.forwardKeyDown,pt=ne.blurToCancel,mt=ne.onSubmit,it=ne.onCancel,Mt=ne.onFocus,Xt=ne.onBlur,Vt=Object(m.useState)(!1),St=Object(P.a)(Vt,2),nn=St[0],Qe=St[1],en=Object(m.useState)(!1),Bt=Object(P.a)(en,2),bn=Bt[0],On=Bt[1],Gt=Object(m.useRef)(!1),cn=Object(m.useRef)(!1),Ht={onMouseDown:function(){Qe(!0),st(!0)},onKeyDown:function(wn){switch(wn.which){case a.a.ENTER:{Re?mt()!==!1&&Qe(!0):st(!0),wn.preventDefault();return}case a.a.TAB:{nn&&Re&&!wn.shiftKey?(Qe(!1),wn.preventDefault()):!nn&&Re&&(!et(wn)&&wn.shiftKey&&(Qe(!0),wn.preventDefault()));return}case a.a.ESC:{Qe(!0),it();return}}!Re&&![a.a.SHIFT].includes(wn.which)?st(!0):nn||et(wn)},onFocus:function(wn){Qe(!0),On(!0),Mt&&Mt(wn)},onBlur:function(wn){if(Gt.current||!Le(document.activeElement)){Gt.current=!1;return}pt?setTimeout(function(){Le(document.activeElement)&&it()},0):Re&&(st(!1),cn.current&&mt()),On(!1),Xt&&Xt(wn)}};return Object(m.useEffect)(function(){cn.current=!1},[Re]),Object(m.useEffect)(function(){cn.current=!0},[Xe]),Object(m.useEffect)(function(){return E(function(Sn){var wn=Sn.target;Re&&(Le(wn)?bn||st(!1):(Gt.current=!0,requestAnimationFrame(function(){Gt.current=!1})))})}),[Ht,{focused:bn,typing:nn}]}function nr(ne){var Re=ne.valueTexts,Xe=ne.onTextChange,Le=m.useState(""),st=Object(P.a)(Le,2),et=st[0],pt=st[1],mt=m.useRef([]);mt.current=Re;function it(Xt){pt(Xt),Xe(Xt)}function Mt(){pt(mt.current[0])}return m.useEffect(function(){Re.every(function(Xt){return Xt!==et})&&Mt()},[Re.join("||")]),[et,it,Mt]}var vn=L("Gytx"),dn=L.n(vn);function xn(ne,Re){var Xe=Re.formatList,Le=Re.generateConfig,st=Re.locale;return Object(A.a)(function(){if(!ne)return[[""],""];for(var et="",pt=[],mt=0;mt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Mt.current),bn){it(Bt);return}Mt.current=requestAnimationFrame(function(){it(Bt)})}var Vt=xn(mt,{formatList:Xe,generateConfig:Le,locale:st}),St=Object(P.a)(Vt,2),nn=St[1];function Qe(Bt){Xt(Bt)}function en(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Xt(null,Bt)}return Object(m.useEffect)(function(){en(!0)},[ne]),Object(m.useEffect)(function(){return function(){return cancelAnimationFrame(Mt.current)}},[]),[nn,Qe,en]}function dr(ne){var Re,Xe=ne.prefixCls,Le=Xe===void 0?"rc-picker":Xe,st=ne.id,et=ne.tabIndex,pt=ne.style,mt=ne.className,it=ne.dropdownClassName,Mt=ne.dropdownAlign,Xt=ne.popupStyle,Vt=ne.transitionName,St=ne.generateConfig,nn=ne.locale,Qe=ne.inputReadOnly,en=ne.allowClear,Bt=ne.autoFocus,bn=ne.showTime,On=ne.picker,Gt=On===void 0?"date":On,cn=ne.format,Ht=ne.use12Hours,Sn=ne.value,wn=ne.defaultValue,wt=ne.open,It=ne.defaultOpen,Pt=ne.defaultOpenValue,Ct=ne.suffixIcon,vt=ne.clearIcon,Dn=ne.disabled,$t=ne.disabledDate,Cn=ne.placeholder,pn=ne.getPopupContainer,Yt=ne.pickerRef,Tn=ne.panelRender,zn=ne.onChange,fr=ne.onOpenChange,Gn=ne.onFocus,Lr=ne.onBlur,Gr=ne.onMouseDown,Hn=ne.onMouseUp,Yn=ne.onMouseEnter,Jn=ne.onMouseLeave,wr=ne.onContextMenu,Wr=ne.onClick,Zr=ne.direction,ua=ne.autoComplete,xa=ua===void 0?"off":ua,ma=m.useRef(null),Ya=Gt==="date"&&!!bn||Gt==="time",Oa=Z(h(cn,Gt,bn,Ht)),Pa=m.useRef(null),ga=m.useRef(null),Na=Object(u.a)(null,{value:Sn,defaultValue:wn}),ai=Object(P.a)(Na,2),da=ai[0],ca=ai[1],Ra=m.useState(da),wa=Object(P.a)(Ra,2),De=wa[0],tt=wa[1],at=m.useRef(null),je=Object(u.a)(!1,{value:wt,defaultValue:It,postState:function(pr){return Dn?!1:pr},onChange:function(pr){fr&&fr(pr),!pr&&at.current&&at.current.onClose&&at.current.onClose()}}),ce=Object(P.a)(je,2),Ce=ce[0],ge=ce[1],Ue=xn(De,{formatList:Oa,generateConfig:St,locale:nn}),Ye=Object(P.a)(Ue,2),ot=Ye[0],Ke=Ye[1],_t=nr({valueTexts:ot,onTextChange:function(pr){var la=St.locale.parse(nn.locale,pr,Oa);la&&(!$t||!$t(la))&&tt(la)}}),Ft=Object(P.a)(_t,3),rn=Ft[0],hn=Ft[1],Rn=Ft[2],Kn=function(pr){tt(pr),ca(pr),zn&&!We(St,da,pr)&&zn(pr,pr?St.locale.format(nn.locale,pr,Oa[0]):"")},cr=function(pr){if(Dn&&pr)return;ge(pr)},on=function(pr){return Ce&&at.current&&at.current.onKeyDown?at.current.onKeyDown(pr):(Object(o.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},jt=function(){Hn&&Hn.apply(void 0,arguments),ma.current&&(ma.current.focus(),cr(!0))},Jt=un({blurToCancel:Ya,open:Ce,value:rn,triggerOpen:cr,forwardKeyDown:on,isClickOutside:function(pr){return!H([Pa.current,ga.current],pr)},onSubmit:function(){return $t&&$t(De)?!1:(Kn(De),cr(!1),Rn(),!0)},onCancel:function(){cr(!1),tt(da),Rn()},onFocus:Gn,onBlur:Lr}),In=Object(P.a)(Jt,2),_n=In[0],yr=In[1],qn=yr.focused,Cr=yr.typing;m.useEffect(function(){Ce||(tt(da),!ot.length||ot[0]===""?hn(""):Ke!==rn&&Rn())},[Ce,ot]),m.useEffect(function(){Ce||Rn()},[Gt]),m.useEffect(function(){tt(da)},[da]),Yt&&(Yt.current={focus:function(){ma.current&&ma.current.focus()},blur:function(){ma.current&&ma.current.blur()}});var ir=Object(R.a)(Object(R.a)({},ne),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),mn=m.createElement(ee,Object.assign({},ir,{generateConfig:St,className:b()(Object(T.a)({},"".concat(Le,"-panel-focused"),!Cr)),value:De,locale:nn,tabIndex:-1,onChange:tt,direction:Zr}));Tn&&(mn=Tn(mn));var Mn=m.createElement("div",{className:"".concat(Le,"-panel-container"),onMouseDown:function(pr){pr.preventDefault()}},mn),vr;Ct&&(vr=m.createElement("span",{className:"".concat(Le,"-suffix")},Ct));var Or;en&&da&&!Dn&&(Or=m.createElement("span",{onMouseDown:function(pr){pr.preventDefault(),pr.stopPropagation()},onMouseUp:function(pr){pr.preventDefault(),pr.stopPropagation(),Kn(null),cr(!1)},className:"".concat(Le,"-clear")},vt||m.createElement("span",{className:"".concat(Le,"-clear-btn")})));var Qn=function(pr,la){(la==="submit"||la!=="key"&&!Ya)&&(Kn(pr),cr(!1))},Pr=Zr==="rtl"?"bottomRight":"bottomLeft",$r=Nn(rn,{formatList:Oa,generateConfig:St,locale:nn}),Ir=Object(P.a)($r,3),Br=Ir[0],Ur=Ir[1],jr=Ir[2];return m.createElement(d.Provider,{value:{operationRef:at,hideHeader:Gt==="time",panelRef:Pa,onSelect:Qn,open:Ce,defaultOpenValue:Pt,onDateMouseEnter:Ur,onDateMouseLeave:jr}},m.createElement(Vn,{visible:Ce,popupElement:Mn,popupStyle:Xt,prefixCls:Le,dropdownClassName:it,dropdownAlign:Mt,getPopupContainer:pn,transitionName:Vt,popupPlacement:Pr,direction:Zr},m.createElement("div",{className:b()(Le,mt,(Re={},Object(T.a)(Re,"".concat(Le,"-disabled"),Dn),Object(T.a)(Re,"".concat(Le,"-focused"),qn),Object(T.a)(Re,"".concat(Le,"-rtl"),Zr==="rtl"),Re)),style:pt,onMouseDown:Gr,onMouseUp:jt,onMouseEnter:Yn,onMouseLeave:Jn,onContextMenu:wr,onClick:Wr},m.createElement("div",{className:b()("".concat(Le,"-input"),Object(T.a)({},"".concat(Le,"-input-placeholder"),!!Br)),ref:ga},m.createElement("input",Object.assign({id:st,tabIndex:et,disabled:Dn,readOnly:Qe||!Cr,value:Br||rn,onChange:function(pr){hn(pr.target.value)},autoFocus:Bt,placeholder:Cn,ref:ma,title:rn},_n,{size:p(Gt,Oa[0])},me(ne),{autoComplete:xa})),vr,Or))))}var $n=function(ne){Object(I.a)(Xe,ne);var Re=Object(F.a)(Xe);function Xe(){var Le;return Object(Y.a)(this,Xe),Le=Re.apply(this,arguments),Le.pickerRef=m.createRef(),Le.focus=function(){Le.pickerRef.current&&Le.pickerRef.current.focus()},Le.blur=function(){Le.pickerRef.current&&Le.pickerRef.current.blur()},Le}return Object(B.a)(Xe,[{key:"render",value:function(){return m.createElement(dr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Xe}(m.Component),Zn=$n;function kn(ne,Re,Xe){var Le=ne.picker,st=ne.locale,et=ne.selectedValue,pt=ne.disabledDate,mt=ne.disabled,it=ne.generateConfig,Mt=oe(et,0),Xt=oe(et,1);function Vt(Bt){var bn=it.getYear(Bt),On=it.locale.getWeek(st.locale,Bt);return bn*100+On}function St(Bt){var bn=it.getYear(Bt),On=it.getMonth(Bt);return bn*100+On}function nn(Bt){var bn=it.getYear(Bt),On=xe(it,Bt);return bn*10+On}var Qe=m.useCallback(function(Bt){if(pt&&pt(Bt))return!0;if(mt[1]&&Xt)return!ct(it,Bt,Xt)&&it.isAfter(Bt,Xt);if(Re&&Xt)switch(Le){case"quarter":return nn(Bt)>nn(Xt);case"month":return St(Bt)>St(Xt);case"week":return Vt(Bt)>Vt(Xt);default:return!ct(it,Bt,Xt)&&it.isAfter(Bt,Xt)}return!1},[pt,mt[1],Xt,Re]),en=m.useCallback(function(Bt){if(pt&&pt(Bt))return!0;if(mt[0]&&Mt)return!ct(it,Bt,Xt)&&it.isAfter(Mt,Bt);if(Xe&&Mt)switch(Le){case"quarter":return nn(Bt)0&&arguments[0]!==void 0?arguments[0]:!1,Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lr=null;jr&&Ia&&Ia[0]&&Ia[1]&&Qe.isAfter(Ia[1],Ia[0])&&(lr=Ia);var Ar=Sn;if(Sn&&Object(f.a)(Sn)==="object"&&Sn.defaultValue){var aa=Sn.defaultValue;Ar=Object(R.a)(Object(R.a)({},Sn),{},{defaultValue:oe(aa,Ke)||void 0})}var gi=null;return Yt&&(gi=function(Da,Xa){return Yt(Da,Xa,{range:Ke?"end":"start"})}),m.createElement(ut.Provider,{value:{inRange:!0,panelPosition:_r,rangedValue:Yi||qn,hoverRangedValue:lr}},m.createElement(ee,Object.assign({},ne,Fn,{dateRender:gi,showTime:Ar,mode:Mn[Ke],generateConfig:Qe,style:void 0,direction:Na,disabledDate:Ke===0?$r:Ir,disabledTime:function(Da){return pn?pn(Da,Ke===0?"start":"end"):!1},className:b()(Object(T.a)({},"".concat(et,"-panel-focused"),Ke===0?!fa:!so)),value:oe(qn,Ke),locale:en,tabIndex:-1,onPanelChange:function(Da,Xa){Or(fe(Mn,Xa,Ke),fe(qn,Da,Ke));var vi=Da;_r==="right"&&Mn[Ke]===Xa&&(vi=Pe(vi,Xa,Qe,-1)),In(vi,Ke)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var oa=0,Fa=0;Ke&&at.current&&ce.current&&tt.current&&(oa=at.current.offsetWidth+ce.current.offsetWidth,tt.current.offsetWidth&&oa>tt.current.offsetWidth&&(Fa=oa));var Mi=Na==="rtl"?{right:oa}:{left:oa};function di(){var _r,Fn=G(et,Mn[Ke],wr),lr=Q({prefixCls:et,components:Pa,needConfirmButton:Ra,okDisabled:!oe(qn,Ke)||Cn&&Cn(qn[Ke]),locale:en,rangeList:Hr,onOk:function(){oe(qn,Ke)&&(Ua(qn,Ke),Oa&&Oa(qn))}});if(Ht!=="time"&&!Sn){var Ar=Jt(Ke),aa=Pe(Ar,Ht,Qe),gi=Mn[Ke],ii=gi===Ht,Da=Dr(ii?"left":!1,{pickerValue:Ar,onPickerValueChange:function(Ta){In(Ta,Ke)}}),Xa=Dr("right",{pickerValue:aa,onPickerValueChange:function(Ta){In(Pe(Ta,Ht,Qe,-1),Ke)}});Na==="rtl"?_r=m.createElement(m.Fragment,null,Xa,ii&&Da):_r=m.createElement(m.Fragment,null,Da,ii&&Xa)}else _r=Dr();var vi=m.createElement(m.Fragment,null,m.createElement("div",{className:"".concat(et,"-panels")},_r),(Fn||lr)&&m.createElement("div",{className:"".concat(et,"-footer")},Fn,lr));return Tn&&(vi=Tn(vi)),m.createElement("div",{className:"".concat(et,"-panel-container"),style:{marginLeft:Fa},ref:tt,onMouseDown:function(Ta){Ta.preventDefault()}},vi)}var Ui=m.createElement("div",{className:b()("".concat(et,"-range-wrapper"),"".concat(et,"-").concat(Ht,"-range-wrapper")),style:{minWidth:Ca}},m.createElement("div",{className:"".concat(et,"-range-arrow"),style:Mi}),di()),ci;Lr&&(ci=m.createElement("span",{className:"".concat(et,"-suffix")},Lr));var _a;Gn&&(oe(Kn,0)&&!rn[0]||oe(Kn,1)&&!rn[1])&&(_a=m.createElement("span",{onMouseDown:function(Fn){Fn.preventDefault(),Fn.stopPropagation()},onMouseUp:function(Fn){Fn.preventDefault(),Fn.stopPropagation();var lr=Kn;rn[0]||(lr=fe(lr,null,0)),rn[1]||(lr=fe(lr,null,1)),Ua(lr,null),Xr(!1,Ke)},className:"".concat(et,"-clear")},Gr||m.createElement("span",{className:"".concat(et,"-clear-btn")})));var Fi={size:p(Ht,Ue[0])},Bi=0,Hi=0;at.current&&je.current&&ce.current&&(Ke===0?Hi=at.current.offsetWidth:(Bi=oa,Hi=je.current.offsetWidth));var za=Na==="rtl"?{right:Bi}:{left:Bi},Fr=function(Fn,lr){var Ar=fe(qn,Fn,Ke);lr==="submit"||lr!=="key"&&!Ra?(Ua(Ar,Ke),Ke===0?$i():ro()):Cr(Ar)};return m.createElement(d.Provider,{value:{operationRef:Ft,hideHeader:Ht==="time",onDateMouseEnter:Ao,onDateMouseLeave:Do,hideRanges:!0,onSelect:Fr,open:jr}},m.createElement(Vn,{visible:jr,popupElement:Ui,popupStyle:Mt,prefixCls:et,dropdownClassName:Xt,dropdownAlign:St,getPopupContainer:nn,transitionName:Vt,range:!0,direction:Na},m.createElement("div",Object.assign({ref:De,className:b()(et,"".concat(et,"-range"),it,(Re={},Object(T.a)(Re,"".concat(et,"-disabled"),rn[0]&&rn[1]),Object(T.a)(Re,"".concat(et,"-focused"),Ke===0?Aa:oo),Object(T.a)(Re,"".concat(et,"-rtl"),Na==="rtl"),Re)),style:mt,onClick:xi,onMouseDown:Ji},me(ne)),m.createElement("div",{className:b()("".concat(et,"-input"),(Xe={},Object(T.a)(Xe,"".concat(et,"-input-active"),Ke===0),Object(T.a)(Xe,"".concat(et,"-input-placeholder"),!!mi),Xe)),ref:at},m.createElement("input",Object.assign({id:pt,disabled:rn[0],readOnly:Yn||!fa,value:mi||Si,onChange:function(Fn){Ii(Fn.target.value)},autoFocus:bn,placeholder:oe(Bt,0)||"",ref:Ce},Wa,Fi,{autoComplete:ca}))),m.createElement("div",{className:"".concat(et,"-range-separator"),ref:ce},It),m.createElement("div",{className:b()("".concat(et,"-input"),(Le={},Object(T.a)(Le,"".concat(et,"-input-active"),Ke===1),Object(T.a)(Le,"".concat(et,"-input-placeholder"),!!ui),Le)),ref:je},m.createElement("input",Object.assign({disabled:rn[1],readOnly:Yn||!so,value:ui||Oi,onChange:function(Fn){Vi(Fn.target.value)},placeholder:oe(Bt,1)||"",ref:ge},qa,Fi,{autoComplete:ca}))),m.createElement("div",{className:"".concat(et,"-active-bar"),style:Object(R.a)(Object(R.a)({},za),{},{width:Hi,position:"absolute"})}),ci,_a)))}var Mr=function(ne){Object(I.a)(Xe,ne);var Re=Object(F.a)(Xe);function Xe(){var Le;return Object(Y.a)(this,Xe),Le=Re.apply(this,arguments),Le.pickerRef=m.createRef(),Le.focus=function(){Le.pickerRef.current&&Le.pickerRef.current.focus()},Le.blur=function(){Le.pickerRef.current&&Le.pickerRef.current.blur()},Le}return Object(B.a)(Xe,[{key:"render",value:function(){return m.createElement(Tr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Xe}(m.Component),Sr=Mr,hr=J.b=Zn},osHv:function(Be,J,L){(function(Y){Y(L("VrN/"))})(function(Y){"use strict";var B=Y.Pos;function I(s,n){return s.line-n.line||s.ch-n.ch}var F="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",T=F+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",R=new RegExp("<(/?)(["+F+"]["+T+"]*)","g");function P(s,n,l,c){this.line=n,this.ch=l,this.cm=s,this.text=s.getLine(n),this.min=c?Math.max(c.from,s.firstLine()):s.firstLine(),this.max=c?Math.min(c.to-1,s.lastLine()):s.lastLine()}function m(s,n){var l=s.cm.getTokenTypeAt(B(s.line,n));return l&&/\btag\b/.test(l)}function t(s){return s.line>=s.max?void 0:(s.ch=0,s.text=s.cm.getLine(++s.line),!0)}function b(s){return s.line<=s.min?void 0:(s.text=s.cm.getLine(--s.line),s.ch=s.text.length,!0)}function o(s){for(;;){var n=s.text.indexOf(">",s.ch);if(n==-1){if(t(s))continue;return}if(!m(s,n+1)){s.ch=n+1;continue}var l=s.text.lastIndexOf("/",n),c=l>-1&&!/\S/.test(s.text.slice(l+1,n));return s.ch=n+1,c?"selfClose":"regular"}}function u(s){for(;;){var n=s.ch?s.text.lastIndexOf("<",s.ch-1):-1;if(n==-1){if(b(s))continue;return}if(!m(s,n+1)){s.ch=n;continue}R.lastIndex=n,s.ch=n;var l=R.exec(s.text);if(l&&l.index==n)return l}}function f(s){for(;;){R.lastIndex=s.ch;var n=R.exec(s.text);if(!n){if(t(s))continue;return}if(!m(s,n.index+1)){s.ch=n.index+1;continue}return s.ch=n.index+n[0].length,n}}function a(s){for(;;){var n=s.ch?s.text.lastIndexOf(">",s.ch-1):-1;if(n==-1){if(b(s))continue;return}if(!m(s,n+1)){s.ch=n;continue}var l=s.text.lastIndexOf("/",n),c=l>-1&&!/\S/.test(s.text.slice(l+1,n));return s.ch=n+1,c?"selfClose":"regular"}}function i(s,n){for(var l=[];;){var c=f(s),x,A=s.line,C=s.ch-(c?c[0].length:0);if(!c||!(x=o(s)))return;if(x=="selfClose")continue;if(c[1]){for(var k=l.length-1;k>=0;--k)if(l[k]==c[2]){l.length=k;break}if(k<0&&(!n||n==c[2]))return{tag:c[2],from:B(A,C),to:B(s.line,s.ch)}}else l.push(c[2])}}function d(s,n){for(var l=[];;){var c=a(s);if(!c)return;if(c=="selfClose"){u(s);continue}var x=s.line,A=s.ch,C=u(s);if(!C)return;if(C[1])l.push(C[2]);else{for(var k=l.length-1;k>=0;--k)if(l[k]==C[2]){l.length=k;break}if(k<0&&(!n||n==C[2]))return{tag:C[2],from:B(s.line,s.ch),to:B(x,A)}}}}Y.registerHelper("fold","xml",function(s,n){for(var l=new P(s,n.line,0);;){var c=f(l);if(!c||l.line!=n.line)return;var x=o(l);if(!x)return;if(!c[1]&&x!="selfClose"){var A=B(l.line,l.ch),C=i(l,c[2]);return C&&I(C.from,A)>0?{from:A,to:C.from}:null}}}),Y.findMatchingTag=function(s,n,l){var c=new P(s,n.line,n.ch,l);if(c.text.indexOf(">")==-1&&c.text.indexOf("<")==-1)return;var x=o(c),A=x&&B(c.line,c.ch),C=x&&u(c);if(!x||!C||I(c,n)>0)return;var k={from:B(c.line,c.ch),to:A,tag:C[2]};return x=="selfClose"?{open:k,close:null,at:"open"}:C[1]?{open:d(c,C[2]),close:k,at:"close"}:(c=new P(s,A.line,A.ch,l),{open:k,close:i(c,C[2]),at:"open"})},Y.findEnclosingTag=function(s,n,l,c){for(var x=new P(s,n.line,n.ch,l);;){var A=d(x,c);if(!A)break;var C=new P(s,n.line,n.ch,l),k=i(C,A.tag);if(k)return{open:A,close:k}}},Y.scanForClosingTag=function(s,n,l,c){var x=new P(s,n.line,n.ch,c?{from:0,to:c}:null);return i(x,l)}})},p5ED:function(Be,J,L){"use strict";var Y=L("+L6B"),B=L("2/Rp"),I=L("5Dmo"),F=L("3S7+"),T=L("k1fw"),R=L("tJVT"),P=L("q1tI"),m=L.n(P),t=L("vHTk"),b=L.n(t),o=L("yEEn"),u=L("ZW9T"),f=L("1vsH");J.a=function(a){var i=a.name,d=a.data,s=a.theme,n=a.type,l=a.filename,c=a.monacoEditor,x=a.className,A=a.style,C=a.close,k=a.onClose,w=a.hasMask,y=Object(P.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),h=Object(R.a)(y,2),p=h[0],v=h[1],_=Object(P.useState)(""),E=Object(R.a)(_,2),g=E[0],j=E[1],U,S=1024*1024,z=10*S,H=Object(P.useRef)();n==="office"&&(U=Object(f.T)(d).filesize,U>z&&(n="other")),l&&(c.filename=l),Object(P.useEffect)(function(){var K,$,Z=(K=document.cookie)===null||K===void 0||(($=K.replace(/\s/g,""))===null||$===void 0)?void 0:$.split(";");Z==null||Z.map(function(me){var oe=me.split("=");oe[0]==="_educoder_session"&&j(oe[1])})},[]);var M=function(){if(d.startsWith("http")||d.startsWith("/")){V();return}Object(f.z)(l||"educoder",d,l)},V=function(){Object(f.x)(l||i,d)};return console.log("data:",d,"fileanme:",l," name:",i),m.a.createElement("div",{style:Object(T.a)({},A||{}),className:"".concat(w&&b.a.bgBlack," ").concat(n?b.a.wrp:"hide")},C&&m.a.createElement("div",{className:b.a.close,ref:H},m.a.createElement(F.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return H.current}},m.a.createElement("span",{onClick:V},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(F.a,{title:"\u5173\u95ED",getPopupContainer:function(){return H.current}},m.a.createElement("span",{className:"",onClick:k},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(b.a[x]," ").concat(x," ").concat(b.a.monaco," ").concat(n==="txt"?"show":"hide")},n==="txt"&&m.a.createElement(u.b,c)),n==="audio"&&m.a.createElement("audio",{src:"".concat(d!=null&&d.startsWith("/")||(d==null?void 0:d.indexOf("https://"))>-1?d:"data:audio/mp3;base64,").concat(d),autoPlay:!0}),n==="video"&&m.a.createElement(m.a.Fragment,null,d!=null&&d.startsWith("/")?m.a.createElement("video",{controls:!0,src:"".concat(d),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(d),autoPlay:!0})),n==="html"&&m.a.createElement("iframe",{src:d+"&disposition=inline"}),n==="pdf"&&m.a.createElement("embed",{className:b.a.embed,src:d}),n==="image"&&m.a.createElement(m.a.Fragment,null,m.a.createElement("img",{src:"".concat(d!=null&&d.startsWith("/")||(d==null?void 0:d.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(d)})),n==="other"&&m.a.createElement("div",null,m.a.createElement(B.a,{type:"primary",size:"large",onClick:M},m.a.createElement(o.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(n==="download"||n==="office")&&m.a.createElement(B.a,{type:"primary",size:"large",onClick:M},m.a.createElement(o.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Be,J,L){},pmY6:function(Be,J,L){"use strict";L.d(J,"h",function(){return b}),L.d(J,"g",function(){return u}),L.d(J,"f",function(){return f}),L.d(J,"e",function(){return a}),L.d(J,"i",function(){return i}),L.d(J,"b",function(){return d}),L.d(J,"a",function(){return s}),L.d(J,"d",function(){return n}),L.d(J,"c",function(){return l});var Y=L("C/vA"),B=L("JYp7");const I=!1;let F=null;function T(c){F=c}if(I){const c="__is_disposable_tracked__";T(new class{trackDisposable(x){const A=new Error("Potentially leaked disposable").stack;setTimeout(()=>{x[c]||console.log(A)},3e3)}setParent(x,A){if(x&&x!==s.None)try{x[c]=!0}catch(C){}}markAsDisposed(x){if(x&&x!==s.None)try{x[c]=!0}catch(A){}}markAsSingleton(x){}})}function R(c){return F==null||F.trackDisposable(c),c}function P(c){F==null||F.markAsDisposed(c)}function m(c,x){F==null||F.setParent(c,x)}function t(c,x){if(!F)return;for(const A of c)F.setParent(A,x)}function b(c){return F==null||F.markAsSingleton(c),c}class o extends Error{constructor(c){super(`Encountered errors while disposing of store. Errors: [${c.join(", ")}]`);this.errors=c}}function u(c){return typeof c.dispose=="function"&&c.dispose.length===0}function f(c){if(B.a.is(c)){let x=[];for(const A of c)if(A)try{A.dispose()}catch(C){x.push(C)}if(x.length===1)throw x[0];if(x.length>1)throw new o(x);return Array.isArray(c)?[]:c}else if(c)return c.dispose(),c}function a(...c){const x=i(()=>f(c));return t(c,x),x}function i(c){const x=R({dispose:Object(Y.a)(()=>{P(x),c()})});return x}class d{constructor(){this._toDispose=new Set,this._isDisposed=!1,R(this)}dispose(){if(this._isDisposed)return;P(this),this._isDisposed=!0,this.clear()}clear(){try{f(this._toDispose.values())}finally{this._toDispose.clear()}}add(c){if(!c)return c;if(c===this)throw new Error("Cannot register a disposable on itself!");return m(c,this),this._isDisposed?d.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(c),c}}d.DISABLE_DISPOSED_WARNING=!1;class s{constructor(){this._store=new d,R(this),m(this._store,this)}dispose(){P(this),this._store.dispose()}_register(c){if(c===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(c)}}s.None=Object.freeze({dispose(){}});class n{constructor(){this._isDisposed=!1,R(this)}get value(){return this._isDisposed?void 0:this._value}set value(c){var x;if(this._isDisposed||c===this._value)return;(x=this._value)===null||x===void 0||x.dispose(),c&&m(c,this),this._value=c}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,P(this),(c=this._value)===null||c===void 0||c.dispose(),this._value=void 0}clearAndLeak(){const c=this._value;return this._value=void 0,c&&m(c,null),c}}class l{constructor(c){this.object=c}dispose(){}}},psGv:function(Be,J,L){var Y,B;(function(){var I;(function(){"use strict";var P=[,,function(o){function u(i){this.__parent=i,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}u.prototype.clone_empty=function(){var i=new u(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},u.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},u.prototype.has_match=function(i){for(var d=this.__items.length-1;d>=0;d--)if(this.__items[d].match(i))return!0;return!1},u.prototype.set_indent=function(i,d){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=d||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},u.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},u.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},u.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},u.prototype.is_empty=function(){return this.__items.length===0},u.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},u.prototype.push=function(i){this.__items.push(i);var d=i.lastIndexOf(` `);d!==-1?this.__character_count=i.length-d:this.__character_count+=i.length},u.prototype.pop=function(){var i=null;return this.is_empty()||(i=this.__items.pop(),this.__character_count-=i.length),i},u.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},u.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},u.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},u.prototype.toString=function(){var i="";return this.is_empty()?this.__parent.indent_empty_lines&&(i=this.__parent.get_indent_string(this.__indent_count)):(i=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),i+=this.__items.join("")),i};function f(i,d){this.__cache=[""],this.__indent_size=i.indent_size,this.__indent_string=i.indent_char,i.indent_with_tabs||(this.__indent_string=new Array(i.indent_size+1).join(i.indent_char)),d=d||"",i.indent_level>0&&(d=new Array(i.indent_level+1).join(this.__indent_string)),this.__base_string=d,this.__base_string_length=d.length}f.prototype.get_indent_size=function(i,d){var s=this.__base_string_length;return d=d||0,i<0&&(s=0),s+=i*this.__indent_size,s+=d,s},f.prototype.get_indent_string=function(i,d){var s=this.__base_string;return d=d||0,i<0&&(i=0,s=""),d+=i*this.__indent_size,this.__ensure_cache(d),s+=this.__cache[d],s},f.prototype.__ensure_cache=function(i){for(;i>=this.__cache.length;)this.__add_column()},f.prototype.__add_column=function(){var i=this.__cache.length,d=0,s="";this.__indent_size&&i>=this.__indent_size&&(d=Math.floor(i/this.__indent_size),i-=d*this.__indent_size,s=new Array(d+1).join(this.__indent_string)),i&&(s+=new Array(i+1).join(" ")),this.__cache.push(s)};function a(i,d){this.__indent_cache=new f(i,d),this.raw=!1,this._end_with_newline=i.end_with_newline,this.indent_size=i.indent_size,this.wrap_line_length=i.wrap_line_length,this.indent_empty_lines=i.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new u(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(i,d){return this.__indent_cache.get_indent_string(i,d)},a.prototype.get_indent_size=function(i,d){return this.__indent_cache.get_indent_size(i,d)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(i){return this.is_empty()||!i&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(i){this.trim(!0);var d=this.current_line.pop();d&&(d[d.length-1]===` `&&(d=d.replace(/\n+$/g,"")),this.current_line.push(d)),this._end_with_newline&&this.__add_outputline();var s=this.__lines.join(` `);return i!==` @@ -429,20 +429,20 @@ You passed in: '`+this.raw_options[i]+"'");return n},u.prototype._is_valid_selec `)),U=V+U.replace(/\n/g,` `+V)}H&&(U?U=H+U+` `+M:U=H+M),_.print_newline(!1),U&&(E.text=U,E.whitespace_before="",E.newlines=0,_.add_raw_token(E),_.print_newline(!0))}},y.prototype._handle_tag_open=function(_,E,g,j){var U=this._get_tag_open_token(E);return(g.is_unformatted||g.is_content_unformatted)&&!g.is_empty_element&&E.type===s.TAG_OPEN&&E.text.indexOf("]*)/),this.tag_check=g?g[1]:""):(g=E.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=g?g[1]:"",(E.text.startsWith("{{#>")||E.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&E.next!==null?this.tag_check=E.next.text.split(" ")[0]:this.tag_check=E.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),E.type===s.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||E.closed&&E.closed.text==="/>";var j=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(j=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(j)))}};y.prototype._get_tag_open_token=function(_){var E=new h(this._tag_stack.get_parser_token(),_);return E.alignment_size=this._options.wrap_attributes_indent_size,E.is_end_tag=E.is_end_tag||C(E.tag_check,this._options.void_elements),E.is_empty_element=E.tag_complete||E.is_start_tag&&E.is_end_tag,E.is_unformatted=!E.tag_complete&&C(E.tag_check,this._options.unformatted),E.is_content_unformatted=!E.is_empty_element&&C(E.tag_check,this._options.content_unformatted),E.is_inline_element=C(E.tag_name,this._options.inline)||E.tag_name.includes("-")||E.tag_start_char==="{",E},y.prototype._set_tag_position=function(_,E,g,j,U){if(g.is_empty_element||(g.is_end_tag?g.start_tag_token=this._tag_stack.try_pop(g.tag_name):(this._do_optional_end_element(g)&&(g.is_inline_element||_.print_newline(!1)),this._tag_stack.record_tag(g),(g.tag_name==="script"||g.tag_name==="style")&&!(g.is_unformatted||g.is_content_unformatted)&&(g.custom_beautifier_name=A(g.tag_check,E)))),C(g.tag_check,this._options.extra_liners)&&(_.print_newline(!1),_._output.just_added_blankline()||_.print_newline(!0)),g.is_empty_element){if(g.tag_start_char==="{"&&g.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),g.indent_content=!0;var S=_.current_line_has_match(/{{#if/);S||_.print_newline(!1)}g.tag_name==="!--"&&U.type===s.TAG_CLOSE&&j.is_end_tag&&g.text.indexOf(` -`)===-1||(g.is_inline_element||g.is_unformatted||_.print_newline(!1),this._calcluate_parent_multiline(_,g))}else if(g.is_end_tag){var z=!1;z=g.start_tag_token&&g.start_tag_token.multiline_content,z=z||!g.is_inline_element&&!(j.is_inline_element||j.is_unformatted)&&!(U.type===s.TAG_CLOSE&&g.start_tag_token===j)&&U.type!=="TK_CONTENT",(g.is_content_unformatted||g.is_unformatted)&&(z=!1),z&&_.print_newline(!1)}else g.indent_content=!g.custom_beautifier_name,g.tag_start_char==="<"&&(g.tag_name==="html"?g.indent_content=this._options.indent_inner_html:g.tag_name==="head"?g.indent_content=this._options.indent_head_inner_html:g.tag_name==="body"&&(g.indent_content=this._options.indent_body_inner_html)),!(g.is_inline_element||g.is_unformatted)&&(U.type!=="TK_CONTENT"||g.is_content_unformatted)&&_.print_newline(!1),this._calcluate_parent_multiline(_,g)},y.prototype._calcluate_parent_multiline=function(_,E){E.parent&&_._output.just_added_newline()&&!((E.is_inline_element||E.is_unformatted)&&E.parent.is_inline_element)&&(E.parent.multiline_content=!0)};var p=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],v=["a","audio","del","ins","map","noscript","video"];y.prototype._do_optional_end_element=function(_){var E=null;if(_.is_empty_element||!_.is_start_tag||!_.parent)return;if(_.tag_name==="body")E=E||this._tag_stack.try_pop("head");else if(_.tag_name==="li")E=E||this._tag_stack.try_pop("li",["ol","ul"]);else if(_.tag_name==="dd"||_.tag_name==="dt")E=E||this._tag_stack.try_pop("dt",["dl"]),E=E||this._tag_stack.try_pop("dd",["dl"]);else if(_.parent.tag_name==="p"&&p.indexOf(_.tag_name)!==-1){var g=_.parent.parent;(!g||v.indexOf(g.tag_name)===-1)&&(E=E||this._tag_stack.try_pop("p"))}else _.tag_name==="rp"||_.tag_name==="rt"?(E=E||this._tag_stack.try_pop("rt",["ruby","rtc"]),E=E||this._tag_stack.try_pop("rp",["ruby","rtc"])):_.tag_name==="optgroup"?E=E||this._tag_stack.try_pop("optgroup",["select"]):_.tag_name==="option"?E=E||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):_.tag_name==="colgroup"?E=E||this._tag_stack.try_pop("caption",["table"]):_.tag_name==="thead"?(E=E||this._tag_stack.try_pop("caption",["table"]),E=E||this._tag_stack.try_pop("colgroup",["table"])):_.tag_name==="tbody"||_.tag_name==="tfoot"?(E=E||this._tag_stack.try_pop("caption",["table"]),E=E||this._tag_stack.try_pop("colgroup",["table"]),E=E||this._tag_stack.try_pop("thead",["table"]),E=E||this._tag_stack.try_pop("tbody",["table"])):_.tag_name==="tr"?(E=E||this._tag_stack.try_pop("caption",["table"]),E=E||this._tag_stack.try_pop("colgroup",["table"]),E=E||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(_.tag_name==="th"||_.tag_name==="td")&&(E=E||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),E=E||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return _.parent=this._tag_stack.get_parser_token(),E},o.exports.Beautifier=y},function(o,u,f){var a=f(6).Options;function i(d){a.call(this,d,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}i.prototype=new a,o.exports.Options=i},function(o,u,f){var a=f(9).Tokenizer,i=f(9).TOKEN,d=f(13).Directives,s=f(14).TemplatablePattern,n=f(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},c=new d(/<\!--/,/-->/),x=function(A,C){a.call(this,A,C),this._current_tag_name="";var k=new s(this._input).read_options(this._options),w=new n(this._input);if(this.__patterns={word:k.until(/[\n\r\t <]/),single_quote:k.until_after(/'/),double_quote:k.until_after(/"/),attribute:k.until(/[\n\r\t =>]|\/>/),element_name:k.until(/[\n\r\t >\/]/),handlebars_comment:w.starting_with(/{{!--/).until_after(/--}}/),handlebars:w.starting_with(/{{/).until_after(/}}/),handlebars_open:w.until(/[\n\r\t }]/),handlebars_raw_close:w.until(/}}/),comment:w.starting_with(//),cdata:w.starting_with(//),conditional_comment:w.starting_with(//),processing:w.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var y=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=w.matching(y).until_after(y)}};x.prototype=new a,x.prototype._is_comment=function(A){return!1},x.prototype._is_opening=function(A){return A.type===l.TAG_OPEN},x.prototype._is_closing=function(A,C){return A.type===l.TAG_CLOSE&&C&&((A.text===">"||A.text==="/>")&&C.text[0]==="<"||A.text==="}}"&&C.text[0]==="{"&&C.text[1]==="{")},x.prototype._reset=function(){this._current_tag_name=""},x.prototype._get_next_token=function(A,C){var k=null;this._readWhitespace();var w=this._input.peek();return w===null?this._create_token(l.EOF,""):(k=k||this._read_open_handlebars(w,C),k=k||this._read_attribute(w,A,C),k=k||this._read_close(w,C),k=k||this._read_raw_content(w,A,C),k=k||this._read_content_word(w),k=k||this._read_comment_or_cdata(w),k=k||this._read_processing(w),k=k||this._read_open(w,C),k=k||this._create_token(l.UNKNOWN,this._input.next()),k)},x.prototype._read_comment_or_cdata=function(A){var C=null,k=null,w=null;if(A==="<"){var y=this._input.peek(1);y==="!"&&(k=this.__patterns.comment.read(),k?(w=c.get_directives(k),w&&w.ignore==="start"&&(k+=c.readIgnored(this._input))):k=this.__patterns.cdata.read()),k&&(C=this._create_token(l.COMMENT,k),C.directives=w)}return C},x.prototype._read_processing=function(A){var C=null,k=null,w=null;if(A==="<"){var y=this._input.peek(1);(y==="!"||y==="?")&&(k=this.__patterns.conditional_comment.read(),k=k||this.__patterns.processing.read()),k&&(C=this._create_token(l.COMMENT,k),C.directives=w)}return C},x.prototype._read_open=function(A,C){var k=null,w=null;return C||A==="<"&&(k=this._input.next(),this._input.peek()==="/"&&(k+=this._input.next()),k+=this.__patterns.element_name.read(),w=this._create_token(l.TAG_OPEN,k)),w},x.prototype._read_open_handlebars=function(A,C){var k=null,w=null;return C||this._options.indent_handlebars&&A==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(k=this.__patterns.handlebars_comment.read(),k=k||this.__patterns.handlebars.read(),w=this._create_token(l.COMMENT,k)):(k=this.__patterns.handlebars_open.read(),w=this._create_token(l.TAG_OPEN,k))),w},x.prototype._read_close=function(A,C){var k=null,w=null;return C&&(C.text[0]==="<"&&(A===">"||A==="/"&&this._input.peek(1)===">")?(k=this._input.next(),A==="/"&&(k+=this._input.next()),w=this._create_token(l.TAG_CLOSE,k)):C.text[0]==="{"&&A==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),w=this._create_token(l.TAG_CLOSE,"}}"))),w},x.prototype._read_attribute=function(A,C,k){var w=null,y="";if(k&&k.text[0]==="<")if(A==="=")w=this._create_token(l.EQUALS,this._input.next());else if(A==='"'||A==="'"){var h=this._input.next();A==='"'?h+=this.__patterns.double_quote.read():h+=this.__patterns.single_quote.read(),w=this._create_token(l.VALUE,h)}else y=this.__patterns.attribute.read(),y&&(C.type===l.EQUALS?w=this._create_token(l.VALUE,y):w=this._create_token(l.ATTRIBUTE,y));return w},x.prototype._is_content_unformatted=function(A){return this._options.void_elements.indexOf(A)===-1&&(this._options.content_unformatted.indexOf(A)!==-1||this._options.unformatted.indexOf(A)!==-1)},x.prototype._read_raw_content=function(A,C,k){var w="";if(k&&k.text[0]==="{")w=this.__patterns.handlebars_raw_close.read();else if(C.type===l.TAG_CLOSE&&C.opened.text[0]==="<"&&C.text[0]!=="/"){var y=C.opened.text.substr(1).toLowerCase();if(y==="script"||y==="style"){var h=this._read_comment_or_cdata(A);if(h)return h.type=l.TEXT,h;w=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(y)&&(w=this._input.readUntil(new RegExp("","ig")))}return w?this._create_token(l.TEXT,w):null},x.prototype._read_content_word=function(A){var C="";if(this._options.unformatted_content_delimiter&&(A===this._options.unformatted_content_delimiter[0]&&(C=this.__patterns.unformatted_content_delimiter.read())),C||(C=this.__patterns.word.read()),C)return this._create_token(l.TEXT,C)},o.exports.Tokenizer=x,o.exports.TOKEN=l}],m={};function t(o){var u=m[o];if(u!==void 0)return u.exports;var f=m[o]={exports:{}};return P[o](f,f.exports,t),f.exports}var b=t(18);I=b})();var F=I;if(!0)!(Y=[L,L("6UM0"),L("TXwP")],B=function(P){var m=L("6UM0"),t=L("TXwP");return{html_beautify:function(b,o){return F(b,o,m.js_beautify,t.css_beautify)}}}.apply(J,Y),B!==void 0&&(Be.exports=B));else var T,R})()},pzxd:function(Be,J,L){var Y=L("bYtY"),B=Y.retrieve2,I=Y.retrieve3,F=Y.each,T=Y.normalizeCssArray,R=Y.isString,P=Y.isObject,m=L("6GrX"),t=L("VpOo"),b=L("Xnb7"),o=L("fW2E"),u=L("gut8"),f=u.ContextCachedBy,a=u.WILL_BE_RESTORED,i=m.DEFAULT_FONT,d={left:1,right:1,center:1},s={top:1,bottom:1,middle:1},n=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],l={},c={};function x(V){return A(V),F(V.rich,A),V}function A(V){if(V){V.font=m.makeFont(V);var K=V.textAlign;K==="middle"&&(K="center"),V.textAlign=K==null||d[K]?K:"left";var $=V.textVerticalAlign||V.textBaseline;$==="center"&&($="middle"),V.textVerticalAlign=$==null||s[$]?$:"top";var Z=V.textPadding;Z&&(V.textPadding=T(V.textPadding))}}function C(V,K,$,Z,me,oe){Z.rich?w(V,K,$,Z,me,oe):k(V,K,$,Z,me,oe)}function k(V,K,$,Z,me,oe){"use strict";var fe=v(Z),ye,Ie=!1,ve=K.__attrCachedBy===f.PLAIN_TEXT;oe!==a?(oe&&(ye=oe.style,Ie=!fe&&ve&&ye),K.__attrCachedBy=fe?f.NONE:f.PLAIN_TEXT):ve&&(K.__attrCachedBy=f.NONE);var de=Z.font||i;(!Ie||de!==(ye.font||i))&&(K.font=de);var Qe=V.__computedFont;V.__styleFont!==de&&(V.__styleFont=de,Qe=V.__computedFont=K.font);var Rt=Z.textPadding,Ee=Z.textLineHeight,Me=V.__textCotentBlock;(!Me||V.__dirtyText)&&(Me=V.__textCotentBlock=m.parsePlainText($,Qe,Rt,Ee,Z.truncate));var nt=Me.outerHeight,He=Me.lines,ke=Me.lineHeight,ht=g(c,V,Z,me),ie=ht.baseX,xe=ht.baseY,we=ht.textAlign||"left",$e=ht.textVerticalAlign;h(K,Z,me,ie,xe);var ct=m.adjustTextY(xe,nt,$e),vt=ie,Ut=ct;if(fe||Rt){var We=m.getWidth($,Qe),kt=We;Rt&&(kt+=Rt[1]+Rt[3]);var Zt=m.adjustTextX(ie,kt,we);fe&&_(V,K,Z,Zt,ct,kt,nt),Rt&&(vt=H(ie,we,Rt),Ut+=Rt[0])}K.textAlign=we,K.textBaseline="middle",K.globalAlpha=Z.opacity||1;for(var Le=0;Le=0&&(Le=we[Zt],Le.textAlign==="right");)p(V,K,Le,Z,ct,ke,kt,"right"),vt-=Le.width,kt-=Le.width,Zt--;for(We+=(oe-(We-He)-(ht-kt)-vt)/2;Ut<=Zt;)Le=we[Ut],p(V,K,Le,Z,ct,ke,We+Le.width/2,"center"),We+=Le.width,Ut++;ke+=ct}}function h(V,K,$,Z,me){if($&&K.textRotation){var oe=K.textOrigin;oe==="center"?(Z=$.width/2+$.x,me=$.height/2+$.y):oe&&(Z=oe[0]+$.x,me=oe[1]+$.y),V.translate(Z,me),V.rotate(-K.textRotation),V.translate(-Z,-me)}}function p(V,K,$,Z,me,oe,fe,ye){var Ie=Z.rich[$.styleName]||{};Ie.text=$.text;var ve=$.textVerticalAlign,de=oe+me/2;ve==="top"?de=oe+$.height/2:ve==="bottom"&&(de=oe+me-$.height/2),!$.isLineHolder&&v(Ie)&&_(V,K,Ie,ye==="right"?fe-$.width:ye==="center"?fe-$.width/2:fe,de-$.height/2,$.width,$.height);var Qe=$.textPadding;Qe&&(fe=H(fe,ye,Qe),de-=$.height/2-Qe[2]-$.textHeight/2),j(K,"shadowBlur",I(Ie.textShadowBlur,Z.textShadowBlur,0)),j(K,"shadowColor",Ie.textShadowColor||Z.textShadowColor||"transparent"),j(K,"shadowOffsetX",I(Ie.textShadowOffsetX,Z.textShadowOffsetX,0)),j(K,"shadowOffsetY",I(Ie.textShadowOffsetY,Z.textShadowOffsetY,0)),j(K,"textAlign",ye),j(K,"textBaseline","middle"),j(K,"font",$.font||i);var Rt=U(Ie.textStroke||Z.textStroke,Me),Ee=S(Ie.textFill||Z.textFill),Me=B(Ie.textStrokeWidth,Z.textStrokeWidth);Rt&&(j(K,"lineWidth",Me),j(K,"strokeStyle",Rt),K.strokeText($.text,fe,de)),Ee&&(j(K,"fillStyle",Ee),K.fillText($.text,fe,de))}function v(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function _(V,K,$,Z,me,oe,fe){var ye=$.textBackgroundColor,Ie=$.textBorderWidth,ve=$.textBorderColor,de=R(ye);if(j(K,"shadowBlur",$.textBoxShadowBlur||0),j(K,"shadowColor",$.textBoxShadowColor||"transparent"),j(K,"shadowOffsetX",$.textBoxShadowOffsetX||0),j(K,"shadowOffsetY",$.textBoxShadowOffsetY||0),de||Ie&&ve){K.beginPath();var Qe=$.textBorderRadius;Qe?t.buildPath(K,{x:Z,y:me,width:oe,height:fe,r:Qe}):K.rect(Z,me,oe,fe),K.closePath()}if(de)if(j(K,"fillStyle",ye),$.fillOpacity!=null){var Rt=K.globalAlpha;K.globalAlpha=$.fillOpacity*$.opacity,K.fill(),K.globalAlpha=Rt}else K.fill();else if(P(ye)){var Ee=ye.image;Ee=b.createOrUpdateImage(Ee,null,V,E,ye),Ee&&b.isImageReady(Ee)&&K.drawImage(Ee,Z,me,oe,fe)}if(Ie&&ve)if(j(K,"lineWidth",Ie),j(K,"strokeStyle",ve),$.strokeOpacity!=null){var Rt=K.globalAlpha;K.globalAlpha=$.strokeOpacity*$.opacity,K.stroke(),K.globalAlpha=Rt}else K.stroke()}function E(V,K){K.image=V}function g(V,K,$,Z){var me=$.x||0,oe=$.y||0,fe=$.textAlign,ye=$.textVerticalAlign;if(Z){var Ie=$.textPosition;if(Ie instanceof Array)me=Z.x+z(Ie[0],Z.width),oe=Z.y+z(Ie[1],Z.height);else{var ve=K&&K.calculateTextPosition?K.calculateTextPosition(l,$,Z):m.calculateTextPosition(l,$,Z);me=ve.x,oe=ve.y,fe=fe||ve.textAlign,ye=ye||ve.textVerticalAlign}var de=$.textOffset;de&&(me+=de[0],oe+=de[1])}return V=V||{},V.baseX=me,V.baseY=oe,V.textAlign=fe,V.textVerticalAlign=ye,V}function j(V,K,$){return V[K]=o(V,K,$),V[K]}function U(V,K){return V==null||K<=0||V==="transparent"||V==="none"?null:V.image||V.colorStops?"#000":V}function S(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function z(V,K){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*K:parseFloat(V):V}function H(V,K,$){return K==="right"?V-$[1]:K==="center"?V+$[3]/2-$[1]/2:V+$[3]}function M(V,K){return V!=null&&(V||K.textBackgroundColor||K.textBorderWidth&&K.textBorderColor||K.textPadding)}J.normalizeTextStyle=x,J.renderText=C,J.getBoxPosition=g,J.getStroke=U,J.getFill=S,J.parsePercent=z,J.needDrawText=M},qH13:function(Be,J,L){var Y=L("ItGF"),B=L("QBsz"),I=B.applyTransform,F=L("mFDi"),T=L("Qe9p"),R=L("6GrX"),P=L("pzxd"),m=L("ni6a"),t=L("Gev7"),b=L("Dagg"),o=L("dqUG"),u=L("y+Vt"),f=L("IMiH"),a=L("QuXc"),i=L("06Qe"),d=f.CMD,s=Math.round,n=Math.sqrt,l=Math.abs,c=Math.cos,x=Math.sin,A=Math.max;if(!Y.canvasSupported){var C=",",k="progid:DXImageTransform.Microsoft",w=21600,y=w/2,h=1e5,p=1e3,v=function(ie){ie.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",ie.coordsize=w+","+w,ie.coordorigin="0,0"},_=function(ie){return String(ie).replace(/&/g,"&").replace(/"/g,""")},E=function(ie,xe,we){return"rgb("+[ie,xe,we].join(",")+")"},g=function(ie,xe){xe&&ie&&xe.parentNode!==ie&&ie.appendChild(xe)},j=function(ie,xe){xe&&ie&&xe.parentNode===ie&&ie.removeChild(xe)},U=function(ie,xe,we){return(parseFloat(ie)||0)*h+(parseFloat(xe)||0)*p+we},S=P.parsePercent,z=function(ie,xe,we){var $e=T.parse(xe);we=+we,isNaN(we)&&(we=1),$e&&(ie.color=E($e[0],$e[1],$e[2]),ie.opacity=we*$e[3])},H=function(ie){var xe=T.parse(ie);return[E(xe[0],xe[1],xe[2]),xe[3]]},M=function(ie,xe,we){var $e=xe.fill;if($e!=null)if($e instanceof a){var ct,vt=0,Ut=[0,0],We=0,kt=1,Zt=we.getBoundingRect(),Le=Zt.width,Ae=Zt.height;if($e.type==="linear"){ct="gradient";var ut=we.transform,_t=[$e.x*Le,$e.y*Ae],Je=[$e.x2*Le,$e.y2*Ae];ut&&(I(_t,_t,ut),I(Je,Je,ut));var dt=Je[0]-_t[0],Ne=Je[1]-_t[1];vt=Math.atan2(dt,Ne)*180/Math.PI,vt<0&&(vt+=360),vt<1e-6&&(vt=0)}else{ct="gradientradial";var _t=[$e.x*Le,$e.y*Ae],ut=we.transform,Te=we.scale,Oe=Le,ae=Ae;Ut=[(_t[0]-Zt.x)/Oe,(_t[1]-Zt.y)/ae],ut&&I(_t,_t,ut),Oe/=Te[0]*w,ae/=Te[1]*w;var le=A(Oe,ae);We=2*0/le,kt=2*$e.r/le-We}var he=$e.colorStops.slice();he.sort(function(ft,be){return ft.offset-be.offset});for(var _e=he.length,Se=[],ze=[],Et=0;Et<_e;Et++){var $t=he[Et],on=H($t.color);ze.push($t.offset*kt+We+" "+on[0]),(Et===0||Et===_e-1)&&Se.push(on)}if(_e>=2){var gt=Se[0][0],Kt=Se[1][0],Ot=Se[0][1]*xe.opacity,At=Se[1][1]*xe.opacity;ie.type=ct,ie.method="none",ie.focus="100%",ie.angle=vt,ie.color=gt,ie.color2=Kt,ie.colors=ze.join(","),ie.opacity=At,ie.opacity2=Ot}ct==="radial"&&(ie.focusposition=Ut.join(","))}else z(ie,$e,xe.opacity)},V=function(ie,xe){xe.lineDash&&(ie.dashstyle=xe.lineDash.join(" ")),xe.stroke!=null&&!(xe.stroke instanceof a)&&z(ie,xe.stroke,xe.opacity)},K=function(ie,xe,we,$e){var ct=xe==="fill",vt=ie.getElementsByTagName(xe)[0];we[xe]!=null&&we[xe]!=="none"&&(ct||!ct&&we.lineWidth)?(ie[ct?"filled":"stroked"]="true",we[xe]instanceof a&&j(ie,vt),vt||(vt=i.createNode(xe)),ct?M(vt,we,$e):V(vt,we),g(ie,vt)):(ie[ct?"filled":"stroked"]="false",j(ie,vt))},$=[[],[],[]],Z=function(ie,xe){var we=d.M,$e=d.C,ct=d.L,vt=d.A,Ut=d.Q,We=[],kt,Zt,Le,Ae,ut,_t,Je=ie.data,dt=ie.len();for(Ae=0;Ae.01?be&&(Fe+=270/w):Math.abs(Nt-gt)<1e-4?be&&Feon?Te-=270/w:Te+=270/w:be&&Ntgt?Ne+=270/w:Ne-=270/w),We.push(yt,s(((on-Kt)*ze+_e)*w-y),C,s(((gt-Ot)*Et+Se)*w-y),C,s(((on+Kt)*ze+_e)*w-y),C,s(((gt+Ot)*Et+Se)*w-y),C,s((Fe*ze+_e)*w-y),C,s((Nt*Et+Se)*w-y),C,s((Ne*ze+_e)*w-y),C,s((Te*Et+Se)*w-y)),ut=Ne,_t=Te;break;case d.R:var Gt=$[0],Jt=$[1];Gt[0]=Je[Ae++],Gt[1]=Je[Ae++],Jt[0]=Gt[0]+Je[Ae++],Jt[1]=Gt[1]+Je[Ae++],xe&&(I(Gt,Gt,xe),I(Jt,Jt,xe)),Gt[0]=s(Gt[0]*w-y),Jt[0]=s(Jt[0]*w-y),Gt[1]=s(Gt[1]*w-y),Jt[1]=s(Jt[1]*w-y),We.push(" m ",Gt[0],C,Gt[1]," l ",Jt[0],C,Gt[1]," l ",Jt[0],C,Jt[1]," l ",Gt[0],C,Jt[1]);break;case d.Z:We.push(" x ")}if(kt>0){We.push(Zt);for(var Ge=0;GeIe&&(ye=0,fe={});var we=ve.style,$e;try{we.font=ie,$e=we.fontFamily.split(",")[0]}catch(ct){}xe={style:we.fontStyle||oe,variant:we.fontVariant||oe,weight:we.fontWeight||oe,size:parseFloat(we.fontSize||12)|0,family:$e||"Microsoft YaHei"},fe[ie]=xe,ye++}return xe},Qe;R.$override("measureText",function(ie,xe){var we=i.doc;Qe||(Qe=we.createElement("div"),Qe.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",i.doc.body.appendChild(Qe));try{Qe.style.font=xe}catch($e){}return Qe.innerHTML="",Qe.appendChild(we.createTextNode(ie)),{width:Qe.offsetWidth}});for(var Rt=new F,Ee=function(ie,xe,we,$e){var ct=this.style;this.__dirty&&P.normalizeTextStyle(ct,!0);var vt=ct.text;if(vt!=null&&(vt+=""),!vt)return;if(ct.rich){var Ut=R.parseRichText(vt,ct);vt=[];for(var We=0;We=0&&(this.delFromStorage(m),this._roots.splice(u,1),m instanceof I&&m.delChildrenFromStorage(this))},addToStorage:function(m){return m&&(m.__storage=this,m.dirty(!1)),this},delFromStorage:function(m){return m&&(m.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:T};var P=R;Be.exports=P},rA99:function(Be,J,L){var Y=L("y+Vt"),B=L("QBsz"),I=L("Sj9i"),F=I.quadraticSubdivide,T=I.cubicSubdivide,R=I.quadraticAt,P=I.cubicAt,m=I.quadraticDerivativeAt,t=I.cubicDerivativeAt,b=[];function o(f,a,i){var d=f.cpx2,s=f.cpy2;return d===null||s===null?[(i?t:P)(f.x1,f.cpx1,f.cpx2,f.x2,a),(i?t:P)(f.y1,f.cpy1,f.cpy2,f.y2,a)]:[(i?m:R)(f.x1,f.cpx1,f.x2,a),(i?m:R)(f.y1,f.cpy1,f.y2,a)]}var u=Y.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(f,a){var i=a.x1,d=a.y1,s=a.x2,n=a.y2,l=a.cpx1,c=a.cpy1,x=a.cpx2,A=a.cpy2,C=a.percent;if(C===0)return;f.moveTo(i,d),x==null||A==null?(C<1&&(F(i,l,s,C,b),l=b[1],s=b[2],F(d,c,n,C,b),c=b[1],n=b[2]),f.quadraticCurveTo(l,c,s,n)):(C<1&&(T(i,l,x,s,C,b),l=b[1],x=b[2],s=b[3],T(d,c,A,n,C,b),c=b[1],A=b[2],n=b[3]),f.bezierCurveTo(l,c,x,A,s,n))},pointAt:function(f){return o(this.shape,f,!1)},tangentAt:function(f){var a=o(this.shape,f,!0);return B.normalize(a,a)}});Be.exports=u},"rAM+":function(Be,J,L){"use strict";L.d(J,"a",function(){return B});var Y=L("Qw5x");function B(I,F){var T;if(typeof Symbol=="undefined"||I[Symbol.iterator]==null){if(Array.isArray(I)||(T=Object(Y.a)(I))||F&&I&&typeof I.length=="number"){T&&(I=T);var R=0,P=function(){};return{s:P,n:function(){return R>=I.length?{done:!0}:{done:!1,value:I[R++]}},e:function(u){throw u},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,t=!1,b;return{s:function(){T=I[Symbol.iterator]()},n:function(){var u=T.next();return m=u.done,u},e:function(u){t=!0,b=u},f:function(){try{!m&&T.return!=null&&T.return()}finally{if(t)throw b}}}}},rUJ1:function(Be,J){const L=/[&<>"']/,Y=/[&<>"']/g,B=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,F={"&":"&","<":"<",">":">",'"':""","'":"'"},T=w=>F[w];function R(w,y){if(y){if(L.test(w))return w.replace(Y,T)}else if(B.test(w))return w.replace(I,T);return w}const P=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(w){return w.replace(P,(y,h)=>(h=h.toLowerCase(),h==="colon"?":":h.charAt(0)==="#"?h.charAt(1)==="x"?String.fromCharCode(parseInt(h.substring(2),16)):String.fromCharCode(+h.substring(1)):""))}const t=/(^|[^\[])\^/g;function b(w,y){w=w.source||w,y=y||"";const h={replace:(p,v)=>(v=v.source||v,v=v.replace(t,"$1"),w=w.replace(p,v),h),getRegex:()=>new RegExp(w,y)};return h}const o=/[^\w:]/g,u=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function f(w,y,h){if(w){let p;try{p=decodeURIComponent(m(h)).replace(o,"").toLowerCase()}catch(v){return null}if(p.indexOf("javascript:")===0||p.indexOf("vbscript:")===0||p.indexOf("data:")===0)return null}y&&!u.test(h)&&(h=n(y,h));try{h=encodeURI(h).replace(/%25/g,"%")}catch(p){return null}return h}const a={},i=/^[^:]+:\/*[^/]*$/,d=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function n(w,y){a[" "+w]||(i.test(w)?a[" "+w]=w+"/":a[" "+w]=A(w,"/",!0)),w=a[" "+w];const h=w.indexOf(":")===-1;return y.substring(0,2)==="//"?h?y:w.replace(d,"$1")+y:y.charAt(0)==="/"?h?y:w.replace(s,"$1")+y:w+y}const l={exec:function(){}};function c(w){let y=1,h,p;for(;y{let j=!1,U=E;for(;--U>=0&&g[U]==="\\";)j=!j;return j?"|":" |"}),p=h.split(/ \|/);let v=0;if(p.length>y)p.splice(y);else for(;p.length0)){gt.next=7;break}return a.b.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),gt.abrupt("return");case 7:return Et={homework_ids:Object(d.a)(V.actionTabs.selectArrs),group_ids:Le.length>0?Le.map(function(Kt){return Kt.id}):(Se=V.detailShixunsList)===null||Se===void 0?void 0:Se.course_groups,end_time:h()(ze.end_time).format("YYYY-MM-DD HH:mm"),publish_time:h()(ze.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!Le.length},gt.next=10,Object(p.a)("/api/courses/".concat(Z.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:Object(s.a)({},Et)});case 10:$t=gt.sent,$t.status===0&&(Oe(),Object(v.cb)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u53D1\u5E03"]),a.b.success("\u53D1\u5E03\u6210\u529F"),K({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Object(g.c)()?V.actionTabs.detail?(K({type:"shixunHomeworks/setActionTabs",payload:{}}),K({type:"shixunHomeworks/getWorkList",payload:Object(s.a)({},Z)}),K({type:"shixunHomeworks/getWorkSetting",payload:Object(s.a)({},Z)})):K({type:"classroomList/getClassroomTeacherShixunsList",payload:Object(s.a)(Object(s.a)({},V.actionTabs.params),{},{type:4})}):K({type:"classroomList/getClassroomShixunsList",payload:Object(s.a)({},V.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||K({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:w.a.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}));case 12:case"end":return gt.stop()}},_e)}));return function(){return he.apply(this,arguments)}}(),Oe=function(){de(1),Me([]),Ae([])},ae=ke>ve*we,le=V.detailShixunsList;return w.a.createElement(B.a,{width:600,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",visible:V.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Te,onCancel:function(){Oe(),K({type:"classroomList/setActionTabs",payload:{}})}},w.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",w.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),w.a.createElement(c.a,{form:fe},w.a.createElement("div",{style:{paddingLeft:0}},w.a.createElement(m.a,{className:"mt30",align:"middle"},w.a.createElement(b.a,null,w.a.createElement(c.a.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},w.a.createElement(u.a,{style:{width:155,marginRight:"25px"},getPopupContainer:function(_e){return _e.parentNode},disabledDate:function(_e){return Object(S.b)(_e,$)},disabledTime:function(_e){return Object(S.c)(_e)},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:h()(Object(v.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),w.a.createElement(b.a,{className:"ml20"},w.a.createElement(c.a.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4:"},w.a.createElement(u.a,{style:{width:170},getPopupContainer:function(_e){return _e.parentNode},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:h()(Object(v.d)(),"HH:mm")},disabledDate:function(_e){return Object(S.b)(_e,$,fe.getFieldValue("publish_time"))},disabledTime:function(_e){return Object(S.c)(_e,fe.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})))),V.actionTabs.type===2&&w.a.createElement(m.a,{style:{marginBottom:"10px"}},w.a.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),w.a.createElement(R.a.Group,{value:Je,onChange:function(_e){dt(_e.target.value),Ae([])}},w.a.createElement(R.a,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),w.a.createElement(R.a,{className:"ml20",disabled:Ee.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),Ee.length<=0&&V.actionTabs.type===2&&w.a.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(V.actionTabs.type===1||!Je)&&Ee.length>0&&w.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},w.a.createElement("span",{style:{flex:1}},w.a.createElement(F.a,{checked:Le.length===Ee.length,onChange:function(_e){Le.length===Ee.length?Ae([]):Ae(Ee)}},"\u5168\u9009")),w.a.createElement("span",{style:{width:16}}),w.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Le.length||0,"\u4E2A\u5206\u73ED")),(V.actionTabs.type===1||!Je)&&Ee.length>0&&w.a.createElement(U.a,{data:Ee,selectedRowKeys:Le,setSelectedRowKeys:Ae})))};J.a=Object(E.a)(function(H){var M=H.classroomList;return{classroomList:M}})(z)},rmlV:function(Be,J,L){var Y=L("y+Vt"),B=Y.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(I,F){var T=.5522848,R=F.cx,P=F.cy,m=F.rx,t=F.ry,b=m*T,o=t*T;I.moveTo(R-m,P),I.bezierCurveTo(R-m,P-o,R-b,P-t,R,P-t),I.bezierCurveTo(R+b,P-t,R+m,P-o,R+m,P),I.bezierCurveTo(R+m,P+o,R+b,P+t,R,P+t),I.bezierCurveTo(R-b,P+t,R-m,P+o,R-m,P),I.closePath()}});Be.exports=B},sR1s:function(Be,J,L){"use strict";L.d(J,"b",function(){return F}),L.d(J,"a",function(){return T}),L.d(J,"c",function(){return R}),L.d(J,"d",function(){return P});var Y=L("U8pU"),B="RC_TABLE_KEY";function I(m){return m==null?[]:Array.isArray(m)?m:[m]}function F(m,t){if(!t&&typeof t!="number")return m;for(var b=I(t),o=m,u=0;u-1)){var a=F.parse(f)[3],i=F.toHex(f);u.setAttribute("stop-color","#"+i),u.setAttribute("stop-opacity",a)}else u.setAttribute("stop-color",t[b].color);m.appendChild(u)}P._dom=m},T.prototype.markUsed=function(P){if(P.style){var m=P.style.fill;m&&m._dom&&Y.prototype.markUsed.call(this,m._dom),m=P.style.stroke,m&&m._dom&&Y.prototype.markUsed.call(this,m._dom)}};var R=T;Be.exports=R},sboe:function(Be,J,L){"use strict";L.d(J,"a",function(){return I});var Y=L("q1tI"),B=L.n(Y),I=Y.createContext(null)},t23M:function(Be,J,L){"use strict";var Y=L("VTBJ"),B=L("1OyB"),I=L("vuIU"),F=L("Ji7U"),T=L("LK+K"),R=L("q1tI"),P=L.n(R),m=L("m+aA"),t=L("Zm9Q"),b=L("Kwbf"),o=L("c+Xe"),u=L("bdgK"),f="rc-observer-key",a=function(i){Object(F.a)(s,i);var d=Object(T.a)(s);function s(){var n;return Object(B.a)(this,s),n=d.apply(this,arguments),n.resizeObserver=null,n.childNode=null,n.currentElement=null,n.state={width:0,height:0,offsetHeight:0,offsetWidth:0},n.onResize=function(l){var c=n.props.onResize,x=l[0].target,A=x.getBoundingClientRect(),C=A.width,k=A.height,w=x.offsetWidth,y=x.offsetHeight,h=Math.floor(C),p=Math.floor(k);if(n.state.width!==h||n.state.height!==p||n.state.offsetWidth!==w||n.state.offsetHeight!==y){var v={width:h,height:p,offsetWidth:w,offsetHeight:y};n.setState(v),c&&Promise.resolve().then(function(){c(Object(Y.a)(Object(Y.a)({},v),{},{offsetWidth:w,offsetHeight:y}))})}},n.setChildNode=function(l){n.childNode=l},n}return Object(I.a)(s,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var l=this.props.disabled;if(l){this.destroyObserver();return}var c=Object(m.a)(this.childNode||this),x=c!==this.currentElement;x&&(this.destroyObserver(),this.currentElement=c),!this.resizeObserver&&c&&(this.resizeObserver=new u.default(this.onResize),this.resizeObserver.observe(c))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var l=this.props.children,c=Object(t.a)(l);if(c.length>1)Object(b.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return Object(b.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=c[0];if(R.isValidElement(x)&&Object(o.c)(x)){var A=x.ref;c[0]=R.cloneElement(x,{ref:Object(o.a)(A,this.setChildNode)})}return c.length===1?c[0]:c.map(function(C,k){return!R.isValidElement(C)||"key"in C&&C.key!==null?C:R.cloneElement(C,{key:"".concat(f,"-").concat(k)})})}}]),s}(R.Component);a.displayName="ResizeObserver",J.a=a},t9D7:function(Be,J,L){"use strict";L.d(J,"b",function(){return P}),L.d(J,"g",function(){return t}),L.d(J,"d",function(){return b}),L.d(J,"e",function(){return o}),L.d(J,"a",function(){return u}),L.d(J,"f",function(){return i}),L.d(J,"c",function(){return d});var Y=L("Vhoy"),B=L("MI8n"),I=L("pmY6"),F=L("Cg/j"),T=L("ic2d"),R=L("nEHx");const P=Object(F.c)("themeService");var m;(function(s){function n(l){return l&&typeof l=="object"&&typeof l.id=="string"}s.isThemeColor=n})(m||(m={}));function t(s){return{id:s}}var b;(function(s){function n(k){return k&&typeof k=="object"&&typeof k.id=="string"&&(typeof k.color=="undefined"||m.isThemeColor(k.color))}s.isThemeIcon=n;const l=new RegExp(`^\\$\\((${Y.a.iconNameExpression}(?:${Y.a.iconModifierExpression})?)\\)$`);function c(k){const w=l.exec(k);if(!w)return;let[,y]=w;return{id:y}}s.fromString=c;function x(k,w){let y=k.id;const h=y.lastIndexOf("~");return h!==-1&&(y=y.substring(0,h)),w&&(y=`${y}~${w}`),{id:y}}s.modify=x;function A(k,w){var y,h;return k.id===w.id&&((y=k.color)===null||y===void 0?void 0:y.id)===((h=w.color)===null||h===void 0?void 0:h.id)}s.isEqual=A;function C(k,w){return{id:k.id,color:w?t(w):void 0}}s.asThemeIcon=C,s.asClassNameArray=Y.a.asClassNameArray,s.asClassName=Y.a.asClassName,s.asCSSSelector=Y.a.asCSSSelector})(b||(b={}));function o(s){switch(s){case R.a.DARK:return"vs-dark";case R.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const u={ThemingContribution:"base.contributions.theming"};class f{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new B.b}onColorThemeChange(s){return this.themingParticipants.push(s),this.onThemingParticipantAddedEmitter.fire(s),Object(I.i)(()=>{const n=this.themingParticipants.indexOf(s);this.themingParticipants.splice(n,1)})}getThemingParticipants(){return this.themingParticipants}}let a=new f;T.a.add(u.ThemingContribution,a);function i(s){return a.onColorThemeChange(s)}class d extends I.a{constructor(s){super();this.themeService=s,this.theme=s.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(n=>this.onThemeChange(n)))}onThemeChange(s){this.theme=s,this.updateStyles()}updateStyles(){}}},u3os:function(Be,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.ver=J.clear=J.bind=void 0;var Y=L("P4Qj"),B=function(R,P){var m=(0,Y.getSensor)(R);return m.bind(P),function(){m.unbind(P)}};J.bind=B;var I=function(R){var P=(0,Y.getSensor)(R);(0,Y.removeSensor)(P)};J.clear=I;var F="1.0.1";J.ver=F},ulZh:function(Be,J,L){typeof window!="undefined"&&function(B,I){Be.exports=I()}(this,function(){return function(Y){var B={};function I(F){if(B[F])return B[F].exports;var T=B[F]={i:F,l:!1,exports:{}};return Y[F].call(T.exports,T,T.exports,I),T.l=!0,T.exports}return I.m=Y,I.c=B,I.d=function(F,T,R){I.o(F,T)||Object.defineProperty(F,T,{enumerable:!0,get:R})},I.r=function(F){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(F,"__esModule",{value:!0})},I.t=function(F,T){if(T&1&&(F=I(F)),T&8)return F;if(T&4&&typeof F=="object"&&F&&F.__esModule)return F;var R=Object.create(null);if(I.r(R),Object.defineProperty(R,"default",{enumerable:!0,value:F}),T&2&&typeof F!="string")for(var P in F)I.d(R,P,function(m){return F[m]}.bind(null,P));return R},I.n=function(F){var T=F&&F.__esModule?function(){return F.default}:function(){return F};return I.d(T,"a",T),T},I.o=function(F,T){return Object.prototype.hasOwnProperty.call(F,T)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Y,B,I){"use strict";var F=Object.prototype.hasOwnProperty,T="~";function R(){}Object.create&&(R.prototype=Object.create(null),new R().__proto__||(T=!1));function P(o,u,f){this.fn=o,this.context=u,this.once=f||!1}function m(o,u,f,a,i){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new P(f,a||o,i),s=T?T+u:u;return o._events[s]?o._events[s].fn?o._events[s]=[o._events[s],d]:o._events[s].push(d):(o._events[s]=d,o._eventsCount++),o}function t(o,u){--o._eventsCount===0?o._events=new R:delete o._events[u]}function b(){this._events=new R,this._eventsCount=0}b.prototype.eventNames=function(){var u=[],f,a;if(this._eventsCount===0)return u;for(a in f=this._events)F.call(f,a)&&u.push(T?a.slice(1):a);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},b.prototype.listeners=function(u){var f=T?T+u:u,a=this._events[f];if(!a)return[];if(a.fn)return[a.fn];for(var i=0,d=a.length,s=new Array(d);i0},!1)}function o(u,f){for(var a={main:[f]},i={main:[]},d={main:{}};b(a);)for(var s=Object.keys(a),n=0;n/),x=function(A,C){a.call(this,A,C),this._current_tag_name="";var k=new s(this._input).read_options(this._options),w=new n(this._input);if(this.__patterns={word:k.until(/[\n\r\t <]/),single_quote:k.until_after(/'/),double_quote:k.until_after(/"/),attribute:k.until(/[\n\r\t =>]|\/>/),element_name:k.until(/[\n\r\t >\/]/),handlebars_comment:w.starting_with(/{{!--/).until_after(/--}}/),handlebars:w.starting_with(/{{/).until_after(/}}/),handlebars_open:w.until(/[\n\r\t }]/),handlebars_raw_close:w.until(/}}/),comment:w.starting_with(//),cdata:w.starting_with(//),conditional_comment:w.starting_with(//),processing:w.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var y=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=w.matching(y).until_after(y)}};x.prototype=new a,x.prototype._is_comment=function(A){return!1},x.prototype._is_opening=function(A){return A.type===l.TAG_OPEN},x.prototype._is_closing=function(A,C){return A.type===l.TAG_CLOSE&&C&&((A.text===">"||A.text==="/>")&&C.text[0]==="<"||A.text==="}}"&&C.text[0]==="{"&&C.text[1]==="{")},x.prototype._reset=function(){this._current_tag_name=""},x.prototype._get_next_token=function(A,C){var k=null;this._readWhitespace();var w=this._input.peek();return w===null?this._create_token(l.EOF,""):(k=k||this._read_open_handlebars(w,C),k=k||this._read_attribute(w,A,C),k=k||this._read_close(w,C),k=k||this._read_raw_content(w,A,C),k=k||this._read_content_word(w),k=k||this._read_comment_or_cdata(w),k=k||this._read_processing(w),k=k||this._read_open(w,C),k=k||this._create_token(l.UNKNOWN,this._input.next()),k)},x.prototype._read_comment_or_cdata=function(A){var C=null,k=null,w=null;if(A==="<"){var y=this._input.peek(1);y==="!"&&(k=this.__patterns.comment.read(),k?(w=c.get_directives(k),w&&w.ignore==="start"&&(k+=c.readIgnored(this._input))):k=this.__patterns.cdata.read()),k&&(C=this._create_token(l.COMMENT,k),C.directives=w)}return C},x.prototype._read_processing=function(A){var C=null,k=null,w=null;if(A==="<"){var y=this._input.peek(1);(y==="!"||y==="?")&&(k=this.__patterns.conditional_comment.read(),k=k||this.__patterns.processing.read()),k&&(C=this._create_token(l.COMMENT,k),C.directives=w)}return C},x.prototype._read_open=function(A,C){var k=null,w=null;return C||A==="<"&&(k=this._input.next(),this._input.peek()==="/"&&(k+=this._input.next()),k+=this.__patterns.element_name.read(),w=this._create_token(l.TAG_OPEN,k)),w},x.prototype._read_open_handlebars=function(A,C){var k=null,w=null;return C||this._options.indent_handlebars&&A==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(k=this.__patterns.handlebars_comment.read(),k=k||this.__patterns.handlebars.read(),w=this._create_token(l.COMMENT,k)):(k=this.__patterns.handlebars_open.read(),w=this._create_token(l.TAG_OPEN,k))),w},x.prototype._read_close=function(A,C){var k=null,w=null;return C&&(C.text[0]==="<"&&(A===">"||A==="/"&&this._input.peek(1)===">")?(k=this._input.next(),A==="/"&&(k+=this._input.next()),w=this._create_token(l.TAG_CLOSE,k)):C.text[0]==="{"&&A==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),w=this._create_token(l.TAG_CLOSE,"}}"))),w},x.prototype._read_attribute=function(A,C,k){var w=null,y="";if(k&&k.text[0]==="<")if(A==="=")w=this._create_token(l.EQUALS,this._input.next());else if(A==='"'||A==="'"){var h=this._input.next();A==='"'?h+=this.__patterns.double_quote.read():h+=this.__patterns.single_quote.read(),w=this._create_token(l.VALUE,h)}else y=this.__patterns.attribute.read(),y&&(C.type===l.EQUALS?w=this._create_token(l.VALUE,y):w=this._create_token(l.ATTRIBUTE,y));return w},x.prototype._is_content_unformatted=function(A){return this._options.void_elements.indexOf(A)===-1&&(this._options.content_unformatted.indexOf(A)!==-1||this._options.unformatted.indexOf(A)!==-1)},x.prototype._read_raw_content=function(A,C,k){var w="";if(k&&k.text[0]==="{")w=this.__patterns.handlebars_raw_close.read();else if(C.type===l.TAG_CLOSE&&C.opened.text[0]==="<"&&C.text[0]!=="/"){var y=C.opened.text.substr(1).toLowerCase();if(y==="script"||y==="style"){var h=this._read_comment_or_cdata(A);if(h)return h.type=l.TEXT,h;w=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(y)&&(w=this._input.readUntil(new RegExp("","ig")))}return w?this._create_token(l.TEXT,w):null},x.prototype._read_content_word=function(A){var C="";if(this._options.unformatted_content_delimiter&&(A===this._options.unformatted_content_delimiter[0]&&(C=this.__patterns.unformatted_content_delimiter.read())),C||(C=this.__patterns.word.read()),C)return this._create_token(l.TEXT,C)},o.exports.Tokenizer=x,o.exports.TOKEN=l}],m={};function t(o){var u=m[o];if(u!==void 0)return u.exports;var f=m[o]={exports:{}};return P[o](f,f.exports,t),f.exports}var b=t(18);I=b})();var F=I;if(!0)!(Y=[L,L("6UM0"),L("TXwP")],B=function(P){var m=L("6UM0"),t=L("TXwP");return{html_beautify:function(b,o){return F(b,o,m.js_beautify,t.css_beautify)}}}.apply(J,Y),B!==void 0&&(Be.exports=B));else var T,R})()},pzxd:function(Be,J,L){var Y=L("bYtY"),B=Y.retrieve2,I=Y.retrieve3,F=Y.each,T=Y.normalizeCssArray,R=Y.isString,P=Y.isObject,m=L("6GrX"),t=L("VpOo"),b=L("Xnb7"),o=L("fW2E"),u=L("gut8"),f=u.ContextCachedBy,a=u.WILL_BE_RESTORED,i=m.DEFAULT_FONT,d={left:1,right:1,center:1},s={top:1,bottom:1,middle:1},n=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],l={},c={};function x(V){return A(V),F(V.rich,A),V}function A(V){if(V){V.font=m.makeFont(V);var K=V.textAlign;K==="middle"&&(K="center"),V.textAlign=K==null||d[K]?K:"left";var $=V.textVerticalAlign||V.textBaseline;$==="center"&&($="middle"),V.textVerticalAlign=$==null||s[$]?$:"top";var Z=V.textPadding;Z&&(V.textPadding=T(V.textPadding))}}function C(V,K,$,Z,me,oe){Z.rich?w(V,K,$,Z,me,oe):k(V,K,$,Z,me,oe)}function k(V,K,$,Z,me,oe){"use strict";var fe=v(Z),ye,Ie=!1,ve=K.__attrCachedBy===f.PLAIN_TEXT;oe!==a?(oe&&(ye=oe.style,Ie=!fe&&ve&&ye),K.__attrCachedBy=fe?f.NONE:f.PLAIN_TEXT):ve&&(K.__attrCachedBy=f.NONE);var de=Z.font||i;(!Ie||de!==(ye.font||i))&&(K.font=de);var Je=V.__computedFont;V.__styleFont!==de&&(V.__styleFont=de,Je=V.__computedFont=K.font);var Rt=Z.textPadding,Ee=Z.textLineHeight,Me=V.__textCotentBlock;(!Me||V.__dirtyText)&&(Me=V.__textCotentBlock=m.parsePlainText($,Je,Rt,Ee,Z.truncate));var rt=Me.outerHeight,He=Me.lines,ke=Me.lineHeight,ht=g(c,V,Z,me),ie=ht.baseX,xe=ht.baseY,we=ht.textAlign||"left",$e=ht.textVerticalAlign;h(K,Z,me,ie,xe);var ct=m.adjustTextY(xe,rt,$e),yt=ie,Ut=ct;if(fe||Rt){var We=m.getWidth($,Je),kt=We;Rt&&(kt+=Rt[1]+Rt[3]);var qt=m.adjustTextX(ie,kt,we);fe&&_(V,K,Z,qt,ct,kt,rt),Rt&&(yt=H(ie,we,Rt),Ut+=Rt[0])}K.textAlign=we,K.textBaseline="middle",K.globalAlpha=Z.opacity||1;for(var Pe=0;Pe=0&&(Pe=we[qt],Pe.textAlign==="right");)p(V,K,Pe,Z,ct,ke,kt,"right"),yt-=Pe.width,kt-=Pe.width,qt--;for(We+=(oe-(We-He)-(ht-kt)-yt)/2;Ut<=qt;)Pe=we[Ut],p(V,K,Pe,Z,ct,ke,We+Pe.width/2,"center"),We+=Pe.width,Ut++;ke+=ct}}function h(V,K,$,Z,me){if($&&K.textRotation){var oe=K.textOrigin;oe==="center"?(Z=$.width/2+$.x,me=$.height/2+$.y):oe&&(Z=oe[0]+$.x,me=oe[1]+$.y),V.translate(Z,me),V.rotate(-K.textRotation),V.translate(-Z,-me)}}function p(V,K,$,Z,me,oe,fe,ye){var Ie=Z.rich[$.styleName]||{};Ie.text=$.text;var ve=$.textVerticalAlign,de=oe+me/2;ve==="top"?de=oe+$.height/2:ve==="bottom"&&(de=oe+me-$.height/2),!$.isLineHolder&&v(Ie)&&_(V,K,Ie,ye==="right"?fe-$.width:ye==="center"?fe-$.width/2:fe,de-$.height/2,$.width,$.height);var Je=$.textPadding;Je&&(fe=H(fe,ye,Je),de-=$.height/2-Je[2]-$.textHeight/2),j(K,"shadowBlur",I(Ie.textShadowBlur,Z.textShadowBlur,0)),j(K,"shadowColor",Ie.textShadowColor||Z.textShadowColor||"transparent"),j(K,"shadowOffsetX",I(Ie.textShadowOffsetX,Z.textShadowOffsetX,0)),j(K,"shadowOffsetY",I(Ie.textShadowOffsetY,Z.textShadowOffsetY,0)),j(K,"textAlign",ye),j(K,"textBaseline","middle"),j(K,"font",$.font||i);var Rt=U(Ie.textStroke||Z.textStroke,Me),Ee=S(Ie.textFill||Z.textFill),Me=B(Ie.textStrokeWidth,Z.textStrokeWidth);Rt&&(j(K,"lineWidth",Me),j(K,"strokeStyle",Rt),K.strokeText($.text,fe,de)),Ee&&(j(K,"fillStyle",Ee),K.fillText($.text,fe,de))}function v(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function _(V,K,$,Z,me,oe,fe){var ye=$.textBackgroundColor,Ie=$.textBorderWidth,ve=$.textBorderColor,de=R(ye);if(j(K,"shadowBlur",$.textBoxShadowBlur||0),j(K,"shadowColor",$.textBoxShadowColor||"transparent"),j(K,"shadowOffsetX",$.textBoxShadowOffsetX||0),j(K,"shadowOffsetY",$.textBoxShadowOffsetY||0),de||Ie&&ve){K.beginPath();var Je=$.textBorderRadius;Je?t.buildPath(K,{x:Z,y:me,width:oe,height:fe,r:Je}):K.rect(Z,me,oe,fe),K.closePath()}if(de)if(j(K,"fillStyle",ye),$.fillOpacity!=null){var Rt=K.globalAlpha;K.globalAlpha=$.fillOpacity*$.opacity,K.fill(),K.globalAlpha=Rt}else K.fill();else if(P(ye)){var Ee=ye.image;Ee=b.createOrUpdateImage(Ee,null,V,E,ye),Ee&&b.isImageReady(Ee)&&K.drawImage(Ee,Z,me,oe,fe)}if(Ie&&ve)if(j(K,"lineWidth",Ie),j(K,"strokeStyle",ve),$.strokeOpacity!=null){var Rt=K.globalAlpha;K.globalAlpha=$.strokeOpacity*$.opacity,K.stroke(),K.globalAlpha=Rt}else K.stroke()}function E(V,K){K.image=V}function g(V,K,$,Z){var me=$.x||0,oe=$.y||0,fe=$.textAlign,ye=$.textVerticalAlign;if(Z){var Ie=$.textPosition;if(Ie instanceof Array)me=Z.x+z(Ie[0],Z.width),oe=Z.y+z(Ie[1],Z.height);else{var ve=K&&K.calculateTextPosition?K.calculateTextPosition(l,$,Z):m.calculateTextPosition(l,$,Z);me=ve.x,oe=ve.y,fe=fe||ve.textAlign,ye=ye||ve.textVerticalAlign}var de=$.textOffset;de&&(me+=de[0],oe+=de[1])}return V=V||{},V.baseX=me,V.baseY=oe,V.textAlign=fe,V.textVerticalAlign=ye,V}function j(V,K,$){return V[K]=o(V,K,$),V[K]}function U(V,K){return V==null||K<=0||V==="transparent"||V==="none"?null:V.image||V.colorStops?"#000":V}function S(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function z(V,K){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*K:parseFloat(V):V}function H(V,K,$){return K==="right"?V-$[1]:K==="center"?V+$[3]/2-$[1]/2:V+$[3]}function M(V,K){return V!=null&&(V||K.textBackgroundColor||K.textBorderWidth&&K.textBorderColor||K.textPadding)}J.normalizeTextStyle=x,J.renderText=C,J.getBoxPosition=g,J.getStroke=U,J.getFill=S,J.parsePercent=z,J.needDrawText=M},qH13:function(Be,J,L){var Y=L("ItGF"),B=L("QBsz"),I=B.applyTransform,F=L("mFDi"),T=L("Qe9p"),R=L("6GrX"),P=L("pzxd"),m=L("ni6a"),t=L("Gev7"),b=L("Dagg"),o=L("dqUG"),u=L("y+Vt"),f=L("IMiH"),a=L("QuXc"),i=L("06Qe"),d=f.CMD,s=Math.round,n=Math.sqrt,l=Math.abs,c=Math.cos,x=Math.sin,A=Math.max;if(!Y.canvasSupported){var C=",",k="progid:DXImageTransform.Microsoft",w=21600,y=w/2,h=1e5,p=1e3,v=function(ie){ie.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",ie.coordsize=w+","+w,ie.coordorigin="0,0"},_=function(ie){return String(ie).replace(/&/g,"&").replace(/"/g,""")},E=function(ie,xe,we){return"rgb("+[ie,xe,we].join(",")+")"},g=function(ie,xe){xe&&ie&&xe.parentNode!==ie&&ie.appendChild(xe)},j=function(ie,xe){xe&&ie&&xe.parentNode===ie&&ie.removeChild(xe)},U=function(ie,xe,we){return(parseFloat(ie)||0)*h+(parseFloat(xe)||0)*p+we},S=P.parsePercent,z=function(ie,xe,we){var $e=T.parse(xe);we=+we,isNaN(we)&&(we=1),$e&&(ie.color=E($e[0],$e[1],$e[2]),ie.opacity=we*$e[3])},H=function(ie){var xe=T.parse(ie);return[E(xe[0],xe[1],xe[2]),xe[3]]},M=function(ie,xe,we){var $e=xe.fill;if($e!=null)if($e instanceof a){var ct,yt=0,Ut=[0,0],We=0,kt=1,qt=we.getBoundingRect(),Pe=qt.width,Ae=qt.height;if($e.type==="linear"){ct="gradient";var ut=we.transform,Et=[$e.x*Pe,$e.y*Ae],Ze=[$e.x2*Pe,$e.y2*Ae];ut&&(I(Et,Et,ut),I(Ze,Ze,ut));var dt=Ze[0]-Et[0],Ne=Ze[1]-Et[1];yt=Math.atan2(dt,Ne)*180/Math.PI,yt<0&&(yt+=360),yt<1e-6&&(yt=0)}else{ct="gradientradial";var Et=[$e.x*Pe,$e.y*Ae],ut=we.transform,Te=we.scale,Oe=Pe,ae=Ae;Ut=[(Et[0]-qt.x)/Oe,(Et[1]-qt.y)/ae],ut&&I(Et,Et,ut),Oe/=Te[0]*w,ae/=Te[1]*w;var le=A(Oe,ae);We=2*0/le,kt=2*$e.r/le-We}var he=$e.colorStops.slice();he.sort(function(ft,be){return ft.offset-be.offset});for(var _e=he.length,Se=[],ze=[],xt=0;xt<_e;xt++){var Qt=he[xt],sn=H(Qt.color);ze.push(Qt.offset*kt+We+" "+sn[0]),(xt===0||xt===_e-1)&&Se.push(sn)}if(_e>=2){var gt=Se[0][0],zt=Se[1][0],Ot=Se[0][1]*xe.opacity,At=Se[1][1]*xe.opacity;ie.type=ct,ie.method="none",ie.focus="100%",ie.angle=yt,ie.color=gt,ie.color2=zt,ie.colors=ze.join(","),ie.opacity=At,ie.opacity2=Ot}ct==="radial"&&(ie.focusposition=Ut.join(","))}else z(ie,$e,xe.opacity)},V=function(ie,xe){xe.lineDash&&(ie.dashstyle=xe.lineDash.join(" ")),xe.stroke!=null&&!(xe.stroke instanceof a)&&z(ie,xe.stroke,xe.opacity)},K=function(ie,xe,we,$e){var ct=xe==="fill",yt=ie.getElementsByTagName(xe)[0];we[xe]!=null&&we[xe]!=="none"&&(ct||!ct&&we.lineWidth)?(ie[ct?"filled":"stroked"]="true",we[xe]instanceof a&&j(ie,yt),yt||(yt=i.createNode(xe)),ct?M(yt,we,$e):V(yt,we),g(ie,yt)):(ie[ct?"filled":"stroked"]="false",j(ie,yt))},$=[[],[],[]],Z=function(ie,xe){var we=d.M,$e=d.C,ct=d.L,yt=d.A,Ut=d.Q,We=[],kt,qt,Pe,Ae,ut,Et,Ze=ie.data,dt=ie.len();for(Ae=0;Ae.01?be&&(Fe+=270/w):Math.abs(Nt-gt)<1e-4?be&&Fesn?Te-=270/w:Te+=270/w:be&&Ntgt?Ne+=270/w:Ne-=270/w),We.push(bt,s(((sn-zt)*ze+_e)*w-y),C,s(((gt-Ot)*xt+Se)*w-y),C,s(((sn+zt)*ze+_e)*w-y),C,s(((gt+Ot)*xt+Se)*w-y),C,s((Fe*ze+_e)*w-y),C,s((Nt*xt+Se)*w-y),C,s((Ne*ze+_e)*w-y),C,s((Te*xt+Se)*w-y)),ut=Ne,Et=Te;break;case d.R:var Kt=$[0],Zt=$[1];Kt[0]=Ze[Ae++],Kt[1]=Ze[Ae++],Zt[0]=Kt[0]+Ze[Ae++],Zt[1]=Kt[1]+Ze[Ae++],xe&&(I(Kt,Kt,xe),I(Zt,Zt,xe)),Kt[0]=s(Kt[0]*w-y),Zt[0]=s(Zt[0]*w-y),Kt[1]=s(Kt[1]*w-y),Zt[1]=s(Zt[1]*w-y),We.push(" m ",Kt[0],C,Kt[1]," l ",Zt[0],C,Kt[1]," l ",Zt[0],C,Zt[1]," l ",Kt[0],C,Zt[1]);break;case d.Z:We.push(" x ")}if(kt>0){We.push(qt);for(var Ge=0;GeIe&&(ye=0,fe={});var we=ve.style,$e;try{we.font=ie,$e=we.fontFamily.split(",")[0]}catch(ct){}xe={style:we.fontStyle||oe,variant:we.fontVariant||oe,weight:we.fontWeight||oe,size:parseFloat(we.fontSize||12)|0,family:$e||"Microsoft YaHei"},fe[ie]=xe,ye++}return xe},Je;R.$override("measureText",function(ie,xe){var we=i.doc;Je||(Je=we.createElement("div"),Je.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",i.doc.body.appendChild(Je));try{Je.style.font=xe}catch($e){}return Je.innerHTML="",Je.appendChild(we.createTextNode(ie)),{width:Je.offsetWidth}});for(var Rt=new F,Ee=function(ie,xe,we,$e){var ct=this.style;this.__dirty&&P.normalizeTextStyle(ct,!0);var yt=ct.text;if(yt!=null&&(yt+=""),!yt)return;if(ct.rich){var Ut=R.parseRichText(yt,ct);yt=[];for(var We=0;We=0&&(this.delFromStorage(m),this._roots.splice(u,1),m instanceof I&&m.delChildrenFromStorage(this))},addToStorage:function(m){return m&&(m.__storage=this,m.dirty(!1)),this},delFromStorage:function(m){return m&&(m.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:T};var P=R;Be.exports=P},rA99:function(Be,J,L){var Y=L("y+Vt"),B=L("QBsz"),I=L("Sj9i"),F=I.quadraticSubdivide,T=I.cubicSubdivide,R=I.quadraticAt,P=I.cubicAt,m=I.quadraticDerivativeAt,t=I.cubicDerivativeAt,b=[];function o(f,a,i){var d=f.cpx2,s=f.cpy2;return d===null||s===null?[(i?t:P)(f.x1,f.cpx1,f.cpx2,f.x2,a),(i?t:P)(f.y1,f.cpy1,f.cpy2,f.y2,a)]:[(i?m:R)(f.x1,f.cpx1,f.x2,a),(i?m:R)(f.y1,f.cpy1,f.y2,a)]}var u=Y.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(f,a){var i=a.x1,d=a.y1,s=a.x2,n=a.y2,l=a.cpx1,c=a.cpy1,x=a.cpx2,A=a.cpy2,C=a.percent;if(C===0)return;f.moveTo(i,d),x==null||A==null?(C<1&&(F(i,l,s,C,b),l=b[1],s=b[2],F(d,c,n,C,b),c=b[1],n=b[2]),f.quadraticCurveTo(l,c,s,n)):(C<1&&(T(i,l,x,s,C,b),l=b[1],x=b[2],s=b[3],T(d,c,A,n,C,b),c=b[1],A=b[2],n=b[3]),f.bezierCurveTo(l,c,x,A,s,n))},pointAt:function(f){return o(this.shape,f,!1)},tangentAt:function(f){var a=o(this.shape,f,!0);return B.normalize(a,a)}});Be.exports=u},"rAM+":function(Be,J,L){"use strict";L.d(J,"a",function(){return B});var Y=L("Qw5x");function B(I,F){var T;if(typeof Symbol=="undefined"||I[Symbol.iterator]==null){if(Array.isArray(I)||(T=Object(Y.a)(I))||F&&I&&typeof I.length=="number"){T&&(I=T);var R=0,P=function(){};return{s:P,n:function(){return R>=I.length?{done:!0}:{done:!1,value:I[R++]}},e:function(u){throw u},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,t=!1,b;return{s:function(){T=I[Symbol.iterator]()},n:function(){var u=T.next();return m=u.done,u},e:function(u){t=!0,b=u},f:function(){try{!m&&T.return!=null&&T.return()}finally{if(t)throw b}}}}},rUJ1:function(Be,J){const L=/[&<>"']/,Y=/[&<>"']/g,B=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,F={"&":"&","<":"<",">":">",'"':""","'":"'"},T=w=>F[w];function R(w,y){if(y){if(L.test(w))return w.replace(Y,T)}else if(B.test(w))return w.replace(I,T);return w}const P=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(w){return w.replace(P,(y,h)=>(h=h.toLowerCase(),h==="colon"?":":h.charAt(0)==="#"?h.charAt(1)==="x"?String.fromCharCode(parseInt(h.substring(2),16)):String.fromCharCode(+h.substring(1)):""))}const t=/(^|[^\[])\^/g;function b(w,y){w=w.source||w,y=y||"";const h={replace:(p,v)=>(v=v.source||v,v=v.replace(t,"$1"),w=w.replace(p,v),h),getRegex:()=>new RegExp(w,y)};return h}const o=/[^\w:]/g,u=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function f(w,y,h){if(w){let p;try{p=decodeURIComponent(m(h)).replace(o,"").toLowerCase()}catch(v){return null}if(p.indexOf("javascript:")===0||p.indexOf("vbscript:")===0||p.indexOf("data:")===0)return null}y&&!u.test(h)&&(h=n(y,h));try{h=encodeURI(h).replace(/%25/g,"%")}catch(p){return null}return h}const a={},i=/^[^:]+:\/*[^/]*$/,d=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function n(w,y){a[" "+w]||(i.test(w)?a[" "+w]=w+"/":a[" "+w]=A(w,"/",!0)),w=a[" "+w];const h=w.indexOf(":")===-1;return y.substring(0,2)==="//"?h?y:w.replace(d,"$1")+y:y.charAt(0)==="/"?h?y:w.replace(s,"$1")+y:w+y}const l={exec:function(){}};function c(w){let y=1,h,p;for(;y{let j=!1,U=E;for(;--U>=0&&g[U]==="\\";)j=!j;return j?"|":" |"}),p=h.split(/ \|/);let v=0;if(p.length>y)p.splice(y);else for(;p.length0)){gt.next=7;break}return a.b.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),gt.abrupt("return");case 7:return xt={homework_ids:Object(d.a)(V.actionTabs.selectArrs),group_ids:Pe.length>0?Pe.map(function(zt){return zt.id}):(Se=V.detailShixunsList)===null||Se===void 0?void 0:Se.course_groups,end_time:h()(ze.end_time).format("YYYY-MM-DD HH:mm"),publish_time:h()(ze.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!Pe.length},gt.next=10,Object(p.a)("/api/courses/".concat(Z.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:Object(s.a)({},xt)});case 10:Qt=gt.sent,Qt.status===0&&(Oe(),Object(v.cb)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u53D1\u5E03"]),a.b.success("\u53D1\u5E03\u6210\u529F"),K({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Object(g.c)()?V.actionTabs.detail?(K({type:"shixunHomeworks/setActionTabs",payload:{}}),K({type:"shixunHomeworks/getWorkList",payload:Object(s.a)({},Z)}),K({type:"shixunHomeworks/getWorkSetting",payload:Object(s.a)({},Z)})):K({type:"classroomList/getClassroomTeacherShixunsList",payload:Object(s.a)(Object(s.a)({},V.actionTabs.params),{},{type:4})}):K({type:"classroomList/getClassroomShixunsList",payload:Object(s.a)({},V.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||K({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:w.a.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}));case 12:case"end":return gt.stop()}},_e)}));return function(){return he.apply(this,arguments)}}(),Oe=function(){de(1),Me([]),Ae([])},ae=ke>ve*we,le=V.detailShixunsList;return w.a.createElement(B.a,{width:600,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",visible:V.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:Te,onCancel:function(){Oe(),K({type:"classroomList/setActionTabs",payload:{}})}},w.a.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",w.a.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),w.a.createElement(c.a,{form:fe},w.a.createElement("div",{style:{paddingLeft:0}},w.a.createElement(m.a,{className:"mt30",align:"middle"},w.a.createElement(b.a,null,w.a.createElement(c.a.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},w.a.createElement(u.a,{style:{width:155,marginRight:"25px"},getPopupContainer:function(_e){return _e.parentNode},disabledDate:function(_e){return Object(S.b)(_e,$)},disabledTime:function(_e){return Object(S.c)(_e)},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:h()(Object(v.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),w.a.createElement(b.a,{className:"ml20"},w.a.createElement(c.a.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4:"},w.a.createElement(u.a,{style:{width:170},getPopupContainer:function(_e){return _e.parentNode},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:h()(Object(v.d)(),"HH:mm")},disabledDate:function(_e){return Object(S.b)(_e,$,fe.getFieldValue("publish_time"))},disabledTime:function(_e){return Object(S.c)(_e,fe.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})))),V.actionTabs.type===2&&w.a.createElement(m.a,{style:{marginBottom:"10px"}},w.a.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),w.a.createElement(R.a.Group,{value:Ze,onChange:function(_e){dt(_e.target.value),Ae([])}},w.a.createElement(R.a,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),w.a.createElement(R.a,{className:"ml20",disabled:Ee.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),Ee.length<=0&&V.actionTabs.type===2&&w.a.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(V.actionTabs.type===1||!Ze)&&Ee.length>0&&w.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},w.a.createElement("span",{style:{flex:1}},w.a.createElement(F.a,{checked:Pe.length===Ee.length,onChange:function(_e){Pe.length===Ee.length?Ae([]):Ae(Ee)}},"\u5168\u9009")),w.a.createElement("span",{style:{width:16}}),w.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Pe.length||0,"\u4E2A\u5206\u73ED")),(V.actionTabs.type===1||!Ze)&&Ee.length>0&&w.a.createElement(U.a,{data:Ee,selectedRowKeys:Pe,setSelectedRowKeys:Ae})))};J.a=Object(E.a)(function(H){var M=H.classroomList;return{classroomList:M}})(z)},rmlV:function(Be,J,L){var Y=L("y+Vt"),B=Y.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(I,F){var T=.5522848,R=F.cx,P=F.cy,m=F.rx,t=F.ry,b=m*T,o=t*T;I.moveTo(R-m,P),I.bezierCurveTo(R-m,P-o,R-b,P-t,R,P-t),I.bezierCurveTo(R+b,P-t,R+m,P-o,R+m,P),I.bezierCurveTo(R+m,P+o,R+b,P+t,R,P+t),I.bezierCurveTo(R-b,P+t,R-m,P+o,R-m,P),I.closePath()}});Be.exports=B},sR1s:function(Be,J,L){"use strict";L.d(J,"b",function(){return F}),L.d(J,"a",function(){return T}),L.d(J,"c",function(){return R}),L.d(J,"d",function(){return P});var Y=L("U8pU"),B="RC_TABLE_KEY";function I(m){return m==null?[]:Array.isArray(m)?m:[m]}function F(m,t){if(!t&&typeof t!="number")return m;for(var b=I(t),o=m,u=0;u-1)){var a=F.parse(f)[3],i=F.toHex(f);u.setAttribute("stop-color","#"+i),u.setAttribute("stop-opacity",a)}else u.setAttribute("stop-color",t[b].color);m.appendChild(u)}P._dom=m},T.prototype.markUsed=function(P){if(P.style){var m=P.style.fill;m&&m._dom&&Y.prototype.markUsed.call(this,m._dom),m=P.style.stroke,m&&m._dom&&Y.prototype.markUsed.call(this,m._dom)}};var R=T;Be.exports=R},sboe:function(Be,J,L){"use strict";L.d(J,"a",function(){return I});var Y=L("q1tI"),B=L.n(Y),I=Y.createContext(null)},t23M:function(Be,J,L){"use strict";var Y=L("VTBJ"),B=L("1OyB"),I=L("vuIU"),F=L("Ji7U"),T=L("LK+K"),R=L("q1tI"),P=L.n(R),m=L("m+aA"),t=L("Zm9Q"),b=L("Kwbf"),o=L("c+Xe"),u=L("bdgK"),f="rc-observer-key",a=function(i){Object(F.a)(s,i);var d=Object(T.a)(s);function s(){var n;return Object(B.a)(this,s),n=d.apply(this,arguments),n.resizeObserver=null,n.childNode=null,n.currentElement=null,n.state={width:0,height:0,offsetHeight:0,offsetWidth:0},n.onResize=function(l){var c=n.props.onResize,x=l[0].target,A=x.getBoundingClientRect(),C=A.width,k=A.height,w=x.offsetWidth,y=x.offsetHeight,h=Math.floor(C),p=Math.floor(k);if(n.state.width!==h||n.state.height!==p||n.state.offsetWidth!==w||n.state.offsetHeight!==y){var v={width:h,height:p,offsetWidth:w,offsetHeight:y};n.setState(v),c&&Promise.resolve().then(function(){c(Object(Y.a)(Object(Y.a)({},v),{},{offsetWidth:w,offsetHeight:y}))})}},n.setChildNode=function(l){n.childNode=l},n}return Object(I.a)(s,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var l=this.props.disabled;if(l){this.destroyObserver();return}var c=Object(m.a)(this.childNode||this),x=c!==this.currentElement;x&&(this.destroyObserver(),this.currentElement=c),!this.resizeObserver&&c&&(this.resizeObserver=new u.default(this.onResize),this.resizeObserver.observe(c))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var l=this.props.children,c=Object(t.a)(l);if(c.length>1)Object(b.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return Object(b.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var x=c[0];if(R.isValidElement(x)&&Object(o.c)(x)){var A=x.ref;c[0]=R.cloneElement(x,{ref:Object(o.a)(A,this.setChildNode)})}return c.length===1?c[0]:c.map(function(C,k){return!R.isValidElement(C)||"key"in C&&C.key!==null?C:R.cloneElement(C,{key:"".concat(f,"-").concat(k)})})}}]),s}(R.Component);a.displayName="ResizeObserver",J.a=a},t9D7:function(Be,J,L){"use strict";L.d(J,"b",function(){return P}),L.d(J,"g",function(){return t}),L.d(J,"d",function(){return b}),L.d(J,"e",function(){return o}),L.d(J,"a",function(){return u}),L.d(J,"f",function(){return i}),L.d(J,"c",function(){return d});var Y=L("Vhoy"),B=L("MI8n"),I=L("pmY6"),F=L("Cg/j"),T=L("ic2d"),R=L("nEHx");const P=Object(F.c)("themeService");var m;(function(s){function n(l){return l&&typeof l=="object"&&typeof l.id=="string"}s.isThemeColor=n})(m||(m={}));function t(s){return{id:s}}var b;(function(s){function n(k){return k&&typeof k=="object"&&typeof k.id=="string"&&(typeof k.color=="undefined"||m.isThemeColor(k.color))}s.isThemeIcon=n;const l=new RegExp(`^\\$\\((${Y.a.iconNameExpression}(?:${Y.a.iconModifierExpression})?)\\)$`);function c(k){const w=l.exec(k);if(!w)return;let[,y]=w;return{id:y}}s.fromString=c;function x(k,w){let y=k.id;const h=y.lastIndexOf("~");return h!==-1&&(y=y.substring(0,h)),w&&(y=`${y}~${w}`),{id:y}}s.modify=x;function A(k,w){var y,h;return k.id===w.id&&((y=k.color)===null||y===void 0?void 0:y.id)===((h=w.color)===null||h===void 0?void 0:h.id)}s.isEqual=A;function C(k,w){return{id:k.id,color:w?t(w):void 0}}s.asThemeIcon=C,s.asClassNameArray=Y.a.asClassNameArray,s.asClassName=Y.a.asClassName,s.asCSSSelector=Y.a.asCSSSelector})(b||(b={}));function o(s){switch(s){case R.a.DARK:return"vs-dark";case R.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const u={ThemingContribution:"base.contributions.theming"};class f{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new B.b}onColorThemeChange(s){return this.themingParticipants.push(s),this.onThemingParticipantAddedEmitter.fire(s),Object(I.i)(()=>{const n=this.themingParticipants.indexOf(s);this.themingParticipants.splice(n,1)})}getThemingParticipants(){return this.themingParticipants}}let a=new f;T.a.add(u.ThemingContribution,a);function i(s){return a.onColorThemeChange(s)}class d extends I.a{constructor(s){super();this.themeService=s,this.theme=s.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(n=>this.onThemeChange(n)))}onThemeChange(s){this.theme=s,this.updateStyles()}updateStyles(){}}},u3os:function(Be,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.ver=J.clear=J.bind=void 0;var Y=L("P4Qj"),B=function(R,P){var m=(0,Y.getSensor)(R);return m.bind(P),function(){m.unbind(P)}};J.bind=B;var I=function(R){var P=(0,Y.getSensor)(R);(0,Y.removeSensor)(P)};J.clear=I;var F="1.0.1";J.ver=F},ulZh:function(Be,J,L){typeof window!="undefined"&&function(B,I){Be.exports=I()}(this,function(){return function(Y){var B={};function I(F){if(B[F])return B[F].exports;var T=B[F]={i:F,l:!1,exports:{}};return Y[F].call(T.exports,T,T.exports,I),T.l=!0,T.exports}return I.m=Y,I.c=B,I.d=function(F,T,R){I.o(F,T)||Object.defineProperty(F,T,{enumerable:!0,get:R})},I.r=function(F){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(F,"__esModule",{value:!0})},I.t=function(F,T){if(T&1&&(F=I(F)),T&8)return F;if(T&4&&typeof F=="object"&&F&&F.__esModule)return F;var R=Object.create(null);if(I.r(R),Object.defineProperty(R,"default",{enumerable:!0,value:F}),T&2&&typeof F!="string")for(var P in F)I.d(R,P,function(m){return F[m]}.bind(null,P));return R},I.n=function(F){var T=F&&F.__esModule?function(){return F.default}:function(){return F};return I.d(T,"a",T),T},I.o=function(F,T){return Object.prototype.hasOwnProperty.call(F,T)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Y,B,I){"use strict";var F=Object.prototype.hasOwnProperty,T="~";function R(){}Object.create&&(R.prototype=Object.create(null),new R().__proto__||(T=!1));function P(o,u,f){this.fn=o,this.context=u,this.once=f||!1}function m(o,u,f,a,i){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new P(f,a||o,i),s=T?T+u:u;return o._events[s]?o._events[s].fn?o._events[s]=[o._events[s],d]:o._events[s].push(d):(o._events[s]=d,o._eventsCount++),o}function t(o,u){--o._eventsCount===0?o._events=new R:delete o._events[u]}function b(){this._events=new R,this._eventsCount=0}b.prototype.eventNames=function(){var u=[],f,a;if(this._eventsCount===0)return u;for(a in f=this._events)F.call(f,a)&&u.push(T?a.slice(1):a);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},b.prototype.listeners=function(u){var f=T?T+u:u,a=this._events[f];if(!a)return[];if(a.fn)return[a.fn];for(var i=0,d=a.length,s=new Array(d);i0},!1)}function o(u,f){for(var a={main:[f]},i={main:[]},d={main:{}};b(a);)for(var s=Object.keys(a),n=0;n=2*k/y||g<=U)return;var S=Number.POSITIVE_INFINITY,z;for(z=s.level-1;z>p;z--){var H=h[z].maxBitrate;if(S=k*H/(8*.8*E),S=g)return;var M=this.bwEstimator.getEstimate();b.logger.warn("Fragment "+s.sn+(n?" part "+n.index:"")+" of level "+s.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+z+` Current BW estimate: `+(Object(F.isFiniteNumber)(M)?(M/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+g.toFixed(3)+` s Estimated load time for the next fragment: `+S.toFixed(3)+` s Time to underbuffer: `+U.toFixed(3)+" s"),l.nextLoadLevel=z,this.bwEstimator.sample(w,C.loaded),this.clearTimer(),s.loader&&(this.fragCurrent=this.partCurrent=null,s.loader.abort()),l.trigger(R.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:s,part:n,stats:C})},i.onFragLoaded=function(s,n){var l=n.frag,c=n.part;if(l.type===t.PlaylistLevelType.MAIN&&Object(F.isFiniteNumber)(l.sn)){var x=c?c.stats:l.stats,A=c?c.duration:l.duration;if(this.clearTimer(),this.lastLoadedFragLevel=l.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var C=this.hls.levels[l.level],k=(C.loaded?C.loaded.bytes:0)+x.loaded,w=(C.loaded?C.loaded.duration:0)+A;C.loaded={bytes:k,duration:w},C.realBitrate=Math.round(8*k/w)}if(l.bitrateTest){var y={stats:x,frag:l,part:c,id:l.type};this.onFragBuffered(R.Events.FRAG_BUFFERED,y),l.bitrateTest=!1}}},i.onFragBuffered=function(s,n){var l=n.frag,c=n.part,x=c?c.stats:l.stats;if(x.aborted)return;if(l.type!==t.PlaylistLevelType.MAIN||l.sn==="initSegment")return;var A=x.parsing.end-x.loading.start;this.bwEstimator.sample(A,x.loaded),x.bwEstimate=this.bwEstimator.getEstimate(),l.bitrateTest?this.bitrateTestDelay=A/1e3:this.bitrateTestDelay=0},i.onError=function(s,n){switch(n.details){case m.ErrorDetails.FRAG_LOAD_ERROR:case m.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},i.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},i.getNextABRAutoLevel=function(){var s=this.fragCurrent,n=this.partCurrent,l=this.hls,c=l.maxAutoLevel,x=l.config,A=l.minAutoLevel,C=l.media,k=n?n.duration:s?s.duration:0,w=C?C.currentTime:0,y=C&&C.playbackRate!==0?Math.abs(C.playbackRate):1,h=this.bwEstimator?this.bwEstimator.getEstimate():x.abrEwmaDefaultEstimate,p=(P.BufferHelper.bufferInfo(C,w,x.maxBufferHole).end-w)/y,v=this.findBestLevel(h,A,c,p,x.abrBandWidthFactor,x.abrBandWidthUpFactor);if(v>=0)return v;b.logger.trace((p?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var _=k?Math.min(k,x.maxStarvationDelay):x.maxStarvationDelay,E=x.abrBandWidthFactor,g=x.abrBandWidthUpFactor;if(!p){var j=this.bitrateTestDelay;if(j){var U=k?Math.min(k,x.maxLoadingDelay):x.maxLoadingDelay;_=U-j,b.logger.trace("bitrate test took "+Math.round(1e3*j)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*_)+" ms"),E=g=1}}return v=this.findBestLevel(h,A,c,p+_,E,g),Math.max(v,0)},i.findBestLevel=function(s,n,l,c,x,A){for(var C,k=this.fragCurrent,w=this.partCurrent,y=this.lastLoadedFragLevel,h=this.hls.levels,p=h[y],v=!!(p!=null&&(C=p.details)!==null&&C!==void 0&&C.live),_=p==null?void 0:p.codecSet,E=w?w.duration:k?k.duration:0,g=l;g>=n;g--){var j=h[g];if(!j||_&&j.codecSet!==_)continue;var U=j.details,S=(w?U==null?void 0:U.partTarget:U==null?void 0:U.averagetargetduration)||E,z=void 0;g<=y?z=x*s:z=A*s;var H=h[g].maxBitrate,M=H*S/z;if(b.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+g+"/"+Math.round(z)+"/"+H+"/"+S+"/"+c+"/"+M),z>H&&(!M||v&&!this.bitrateTestDelay||M0&&p===-1?(this.log("Override startPosition with lastCurrentTime @"+v.toFixed(3)),this.state=T.State.IDLE):(this.loadedmetadata=!1,this.state=T.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=p,this.tick()},y.doTick=function(){switch(this.state){case T.State.IDLE:this.doTickIdle();break;case T.State.WAITING_TRACK:{var p,v=this.levels,_=this.trackId,E=v==null||((p=v[_])===null||p===void 0)?void 0:p.details;if(E){if(this.waitForCdnTuneIn(E))break;this.state=T.State.WAITING_INIT_PTS}break}case T.State.FRAG_LOADING_WAITING_RETRY:{var g,j=performance.now(),U=this.retryDate;(!U||j>=U||(g=this.media)!==null&&g!==void 0&&g.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=T.State.IDLE);break}case T.State.WAITING_INIT_PTS:{var S=this.waitingData;if(S){var z=S.frag,H=S.part,M=S.cache,V=S.complete;if(this.initPTS[z.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=T.State.FRAG_LOADING;var K=M.flush(),$={frag:z,part:H,payload:K,networkDetails:null};this._handleFragmentLoadProgress($),V&&k.prototype._handleFragmentLoadComplete.call(this,$)}else if(this.videoTrackCC!==this.waitingVideoCC)n.logger.log("Waiting fragment cc ("+z.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var Z=this.getLoadPosition(),me=P.BufferHelper.bufferInfo(this.mediaBuffer,Z,this.config.maxBufferHole),oe=Object(i.fragmentWithinToleranceTest)(me.end,this.config.maxFragLookUpTolerance,z);oe<0&&(n.logger.log("Waiting fragment cc ("+z.cc+") @ "+z.start+" cancelled because another fragment at "+me.end+" is needed"),this.clearWaitingFragment())}}else this.state=T.State.IDLE}}this.onTickEnd()},y.clearWaitingFragment=function(){var p=this.waitingData;p&&(this.fragmentTracker.removeFragment(p.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=T.State.IDLE)},y.onTickEnd=function(){var p=this.media;if(!p||!p.readyState)return;var v=this.mediaBuffer?this.mediaBuffer:p,_=v.buffered;!this.loadedmetadata&&_.length&&(this.loadedmetadata=!0),this.lastCurrentTime=p.currentTime},y.doTickIdle=function(){var p,v,_=this.hls,E=this.levels,g=this.media,j=this.trackId,U=_.config;if(!E||!E[j])return;if(!g&&(this.startFragRequested||!U.startFragPrefetch))return;var S=E[j],z=S.details;if(!z||z.live&&this.levelLastLoaded!==j||this.waitForCdnTuneIn(z)){this.state=T.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,o.ElementaryStreamTypes.AUDIO,b.PlaylistLevelType.AUDIO));var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,b.PlaylistLevelType.AUDIO);if(H===null)return;var M=H.len,V=this.getMaxBufferLength(),K=this.audioSwitch;if(M>=V&&!K)return;if(!K&&this._streamEnded(H,z)){_.trigger(R.Events.BUFFER_EOS,{type:"audio"}),this.state=T.State.ENDED;return}var $=z.fragments,Z=$[0].start,me=H.end;if(K){var oe=this.getLoadPosition();me=oe,z.PTSKnown&&oeZ||H.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),g.currentTime=Z+.05))}var fe=this.getNextFragment(me,z);if(!fe){this.bufferFlushed=!0;return}((p=fe.decryptdata)===null||p===void 0?void 0:p.keyFormat)==="identity"&&!((v=fe.decryptdata)!==null&&v!==void 0&&v.key)?this.loadKey(fe,z):this.loadFragment(fe,z,me)},y.getMaxBufferLength=function(){var p=k.prototype.getMaxBufferLength.call(this),v=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,b.PlaylistLevelType.MAIN);return v===null?p:Math.max(p,v.len)},y.onMediaDetaching=function(){this.videoBuffer=null,k.prototype.onMediaDetaching.call(this)},y.onAudioTracksUpdated=function(p,v){var _=v.audioTracks;this.resetTransmuxer(),this.levels=_.map(function(E){return new t.Level(E)})},y.onAudioTrackSwitching=function(p,v){var _=!!v.url;this.trackId=v.id;var E=this.fragCurrent;E!=null&&E.loader&&E.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),_?this.setInterval(A):this.resetTransmuxer(),_?(this.audioSwitch=!0,this.state=T.State.IDLE):this.state=T.State.STOPPED,this.tick()},y.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},y.onLevelLoaded=function(p,v){this.mainDetails=v.details},y.onAudioTrackLoaded=function(p,v){var _,E=this.levels,g=v.details,j=v.id;if(!E){this.warn("Audio tracks were reset while loading level "+j);return}this.log("Track "+j+" loaded ["+g.startSN+","+g.endSN+"],duration:"+g.totalduration);var U=E[j],S=0;if(g.live||(_=U.details)!==null&&_!==void 0&&_.live){var z=this.mainDetails;if(g.fragments[0]||(g.deltaUpdateFailed=!0),g.deltaUpdateFailed||!z)return;!U.details&&g.hasProgramDateTime&&z.hasProgramDateTime?(Object(d.alignMediaPlaylistByPDT)(g,z),S=g.fragments[0].start):S=this.alignPlaylists(g,U.details)}U.details=g,this.levelLastLoaded=j,!this.startFragRequested&&(this.mainDetails||!g.live)&&this.setStartPosition(U.details,S),this.state===T.State.WAITING_TRACK&&!this.waitForCdnTuneIn(g)&&(this.state=T.State.IDLE),this.tick()},y._handleFragmentLoadProgress=function(p){var v,_=p.frag,E=p.part,g=p.payload,j=this.config,U=this.trackId,S=this.levels;if(!S){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+_.sn+" of level "+_.level+" will not be buffered");return}var z=S[U];console.assert(z,"Audio track is defined on fragment load progress");var H=z.details;console.assert(H,"Audio track details are defined on fragment load progress");var M=j.defaultAudioCodec||z.audioCodec||"mp4a.40.2",V=this.transmuxer;V||(V=this.transmuxer=new f.default(this.hls,b.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var K=this.initPTS[_.cc],$=(v=_.initSegment)===null||v===void 0?void 0:v.data;if(K!==void 0){var Z=!1,me=E?E.index:-1,oe=me!==-1,fe=new a.ChunkMetadata(_.level,_.sn,_.stats.chunkCount,g.byteLength,me,oe);V.push(g,$,M,"",_,E,H.totalduration,Z,fe,K)}else{n.logger.log("Unknown video PTS for cc "+_.cc+", waiting for video PTS before demuxing audio frag "+_.sn+" of ["+H.startSN+" ,"+H.endSN+"],track "+U);var ye=this.waitingData=this.waitingData||{frag:_,part:E,cache:new u.default,complete:!1},Ie=ye.cache;Ie.push(new Uint8Array(g)),this.waitingVideoCC=this.videoTrackCC,this.state=T.State.WAITING_INIT_PTS}},y._handleFragmentLoadComplete=function(p){if(this.waitingData){this.waitingData.complete=!0;return}k.prototype._handleFragmentLoadComplete.call(this,p)},y.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},y.onBufferCreated=function(p,v){var _=v.tracks.audio;_&&(this.mediaBuffer=_.buffer),v.tracks.video&&(this.videoBuffer=v.tracks.video.buffer)},y.onFragBuffered=function(p,v){var _=v.frag,E=v.part;if(_.type!==b.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(_)){this.warn("Fragment "+_.sn+(E?" p: "+E.index:"")+" of level "+_.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}_.sn!=="initSegment"&&(this.fragPrevious=_,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(R.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(_,E)},y.onError=function(p,v){switch(v.details){case s.ErrorDetails.FRAG_LOAD_ERROR:case s.ErrorDetails.FRAG_LOAD_TIMEOUT:case s.ErrorDetails.KEY_LOAD_ERROR:case s.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(b.PlaylistLevelType.AUDIO,v);break;case s.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case s.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==T.State.ERROR&&this.state!==T.State.STOPPED&&(this.state=v.fatal?T.State.ERROR:T.State.IDLE,this.warn(v.details+" while loading frag, switching to "+this.state+" state"));break;case s.ErrorDetails.BUFFER_FULL_ERROR:if(v.parent==="audio"&&(this.state===T.State.PARSING||this.state===T.State.PARSED)){var _=!0,E=this.getFwdBufferInfo(this.mediaBuffer,b.PlaylistLevelType.AUDIO);E&&E.len>.5&&(_=!this.reduceMaxBufferLength(E.len)),_&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,k.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},y.onBufferFlushed=function(p,v){var _=v.type;_===o.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},y._handleTransmuxComplete=function(p){var v,_="audio",E=this.hls,g=p.remuxResult,j=p.chunkMeta,U=this.getCurrentContext(j);if(!U){this.warn("The loading context changed while buffering fragment "+j.sn+" of level "+j.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(j.level);return}var S=U.frag,z=U.part,H=g.audio,M=g.text,V=g.id3,K=g.initSegment;if(this.fragContextChanged(S))return;if(this.state=T.State.PARSING,this.audioSwitch&&H&&this.completeAudioSwitch(),K!=null&&K.tracks&&(this._bufferInitSegment(K.tracks,S,j),E.trigger(R.Events.FRAG_PARSING_INIT_SEGMENT,{frag:S,id:_,tracks:K.tracks})),H){var $=H.startPTS,Z=H.endPTS,me=H.startDTS,oe=H.endDTS;z&&(z.elementaryStreams[o.ElementaryStreamTypes.AUDIO]={startPTS:$,endPTS:Z,startDTS:me,endDTS:oe}),S.setElementaryStreamInfo(o.ElementaryStreamTypes.AUDIO,$,Z,me,oe),this.bufferFragmentData(H,S,z,j)}if(V!=null&&(v=V.samples)!==null&&v!==void 0&&v.length){var fe=l({frag:S,id:_},V);E.trigger(R.Events.FRAG_PARSING_METADATA,fe)}if(M){var ye=l({frag:S,id:_},M);E.trigger(R.Events.FRAG_PARSING_USERDATA,ye)}},y._bufferInitSegment=function(p,v,_){if(this.state!==T.State.PARSING)return;p.video&&delete p.video;var E=p.audio;if(!E)return;E.levelCodec=E.codec,E.id="audio",this.log("Init audio buffer, container:"+E.container+", codecs[parsed]=["+E.codec+"]"),this.hls.trigger(R.Events.BUFFER_CODECS,p);var g=E.initSegment;if(g!=null&&g.byteLength){var j={type:"audio",frag:v,part:null,chunkMeta:_,parent:v.type,data:g};this.hls.trigger(R.Events.BUFFER_APPENDING,j)}this.tick()},y.loadFragment=function(p,v,_){var E=this.fragmentTracker.getState(p);this.fragCurrent=p,(this.audioSwitch||E===m.FragmentState.NOT_LOADED||E===m.FragmentState.PARTIAL)&&(p.sn==="initSegment"?this._loadInitSegment(p):v.live&&!Object(F.isFiniteNumber)(this.initPTS[p.cc])?(this.log("Waiting for video PTS in continuity counter "+p.cc+" of live stream before loading audio fragment "+p.sn+" of level "+this.trackId),this.state=T.State.WAITING_INIT_PTS):(this.startFragRequested=!0,k.prototype.loadFragment.call(this,p,v,_)))},y.completeAudioSwitch=function(){var p=this.hls,v=this.media,_=this.trackId;v&&(this.log("Switching audio track : flushing all audio"),k.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,p.trigger(R.Events.AUDIO_TRACK_SWITCHED,{id:_})},w}(T.default);B.default=C},"./src/controller/audio-track-controller.ts":function(Y,B,I){"use strict";I.r(B);var F=I("./src/events.ts"),T=I("./src/errors.ts"),R=I("./src/controller/base-playlist-controller.ts"),P=I("./src/types/loader.ts");function m(f,a){for(var i=0;i=n.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var l=n[this.trackId];this.log("Now switching to audio-track index "+s);var c=n[s],x=c.id,A=c.groupId,C=A===void 0?"":A,k=c.name,w=c.type,y=c.url;if(this.trackId=s,this.trackName=k,this.selectDefaultTrack=!1,this.hls.trigger(F.Events.AUDIO_TRACK_SWITCHING,{id:x,groupId:C,name:k,type:w,url:y}),c.details&&!c.details.live)return;var h=this.switchParams(c.url,l==null?void 0:l.details);this.loadPlaylist(h)},i.selectInitialTrack=function(){var s=this.tracksInGroup;console.assert(s.length,"Initial audio track should be selected when tracks are known");var n=this.trackName,l=this.findTrackId(n)||this.findTrackId();l!==-1?this.setAudioTrack(l):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},i.findTrackId=function(s){for(var n=this.tracksInGroup,l=0;la.partTarget&&(c+=1)}if(Object(F.isFiniteNumber)(l))return new T.HlsUrlParameters(l,Object(F.isFiniteNumber)(c)?c:void 0,T.HlsSkip.No)}}},o.loadPlaylist=function(f){},o.shouldLoadTrack=function(f){return this.canLoad&&f&&!!f.url&&(!f.details||f.details.live)},o.playlistLoaded=function(f,a,i){var d=this,s=a.details,n=a.stats,l=n.loading.end?Math.max(0,self.performance.now()-n.loading.end):0;if(s.advancedDateTime=Date.now()-l,s.live||i!=null&&i.live){if(s.reloaded(i),i&&this.log("live playlist "+f+" "+(s.advanced?"REFRESHED "+s.lastPartSn+"-"+s.lastPartIndex:"MISSED")),i&&s.fragments.length>0&&Object(R.mergeDetails)(i,s),!this.canLoad||!s.live)return;var c,x=void 0,A=void 0;if(s.canBlockReload&&s.endSN&&s.advanced){var C=this.hls.config.lowLatencyMode,k=s.lastPartSn,w=s.endSN,y=s.lastPartIndex,h=y!==-1,p=k===w,v=C?0:y;h?(x=p?w+1:k,A=p?v:y+1):x=w+1;var _=s.age,E=_+s.ageHeader,g=Math.min(E-s.partTarget,s.targetduration*1.5);if(g>0){if(i&&g>i.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+i.tuneInGoal+" to: "+g+" with playlist age: "+s.age),g=0;else{var j=Math.floor(g/s.targetduration);if(x+=j,A!==void 0){var U=Math.round(g%s.targetduration/s.partTarget);A+=U}this.log("CDN Tune-in age: "+s.ageHeader+"s last advanced "+_.toFixed(2)+"s goal: "+g+" skip sn "+j+" to part "+A)}s.tuneInGoal=g}if(c=this.getDeliveryDirectives(s,a.deliveryDirectives,x,A),C||!p){this.loadPlaylist(c);return}}else c=this.getDeliveryDirectives(s,a.deliveryDirectives,x,A);var S=Object(R.computeReloadInterval)(s,n);x!==void 0&&s.canBlockReload&&(S-=s.partTarget||1),this.log("reload live playlist "+f+" in "+Math.round(S)+" ms"),this.timer=self.setTimeout(function(){return d.loadPlaylist(c)},S)}else this.clearTimer()},o.getDeliveryDirectives=function(f,a,i,d){var s=Object(T.getSkipValue)(f,i);return a!=null&&a.skip&&f.deltaUpdateFailed&&(i=a.msn,d=a.part,s=T.HlsSkip.No),new T.HlsUrlParameters(i,d,s)},o.retryLoadingOrFail=function(f){var a=this,i=this.hls.config,d=this.retryCount-1&&(s=f.context)!==null&&s!==void 0&&s.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+f.details+'"'),this.loadPlaylist();else{var n=Math.min(Math.pow(2,this.retryCount)*i.levelLoadingRetryDelay,i.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return a.loadPlaylist()},n),this.warn("retry playlist loading #"+this.retryCount+" in "+n+' ms after "'+f.details+'"')}}else this.warn('cannot recover from error "'+f.details+'"'),this.clearTimer(),f.fatal=!0;return d},b}()},"./src/controller/base-stream-controller.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"State",function(){return w}),I.d(B,"default",function(){return y});var F=I("./src/polyfills/number.ts"),T=I("./src/task-loop.ts"),R=I("./src/controller/fragment-tracker.ts"),P=I("./src/utils/buffer-helper.ts"),m=I("./src/utils/logger.ts"),t=I("./src/events.ts"),b=I("./src/errors.ts"),o=I("./src/types/transmuxer.ts"),u=I("./src/utils/mp4-tools.ts"),f=I("./src/utils/discontinuities.ts"),a=I("./src/controller/fragment-finders.ts"),i=I("./src/controller/level-helper.ts"),d=I("./src/loader/fragment-loader.ts"),s=I("./src/crypt/decrypter.ts"),n=I("./src/utils/time-ranges.ts"),l=I("./src/types/loader.ts");function c(h,p){for(var v=0;vK;(z0&&z&&z.key&&z.iv&&z.method==="AES-128"){var H=self.performance.now();return g.decrypter.webCryptoDecrypt(new Uint8Array(S),z.key.buffer,z.iv.buffer).then(function(M){var V=self.performance.now();return U.trigger(t.Events.FRAG_DECRYPTED,{frag:E,payload:M,stats:{tstart:H,tdecrypt:V}}),j.payload=M,j})}return j}).then(function(j){var U=g.fragCurrent,S=g.hls,z=g.levels;if(!z)throw new Error("init load aborted, missing levels");var H=z[E.level].details;console.assert(H,"Level details are defined when init segment is loaded");var M=E.stats;g.state=w.IDLE,g.fragLoadError=0,E.data=new Uint8Array(j.payload),M.parsing.start=M.buffering.start=self.performance.now(),M.parsing.end=M.buffering.end=self.performance.now(),j.frag===U&&S.trigger(t.Events.FRAG_BUFFERED,{stats:M,frag:U,part:null,id:E.type}),g.tick()}).catch(function(j){g.warn(j),g.resetFragmentLoading(E)})},v.fragContextChanged=function(E){var g=this.fragCurrent;return!E||!g||E.level!==g.level||E.sn!==g.sn||E.urlId!==g.urlId},v.fragBufferedComplete=function(E,g){var j=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+E.type+" sn: "+E.sn+(g?" part: "+g.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+E.level+" "+n.default.toString(P.BufferHelper.getBuffered(j))),this.state=w.IDLE,this.tick()},v._handleFragmentLoadComplete=function(E){var g=this.transmuxer;if(!g)return;var j=E.frag,U=E.part,S=E.partsLoaded,z=!S||S.length===0||S.some(function(M){return!M}),H=new o.ChunkMetadata(j.level,j.sn,j.stats.chunkCount+1,0,U?U.index:-1,!z);g.flush(H)},v._handleFragmentLoadProgress=function(E){},v._doFragLoad=function(E,g,j,U){var S=this;if(j===void 0&&(j=null),!this.levels)throw new Error("frag load aborted, missing levels");if(j=Math.max(E.start,j||0),this.config.lowLatencyMode&&g){var z=g.partList;if(z&&U){j>E.end&&g.fragmentHint&&(E=g.fragmentHint);var H=this.getNextPart(z,E,j);if(H>-1){var M=z[H];return this.log("Loading part sn: "+E.sn+" p: "+M.index+" cc: "+E.cc+" of playlist ["+g.startSN+"-"+g.endSN+"] parts [0-"+H+"-"+(z.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+E.level+", target: "+parseFloat(j.toFixed(3))),this.nextLoadPosition=M.start+M.duration,this.state=w.FRAG_LOADING,this.hls.trigger(t.Events.FRAG_LOADING,{frag:E,part:z[H],targetBufferTime:j}),this.doFragPartsLoad(E,z,H,U).catch(function(V){return S.handleFragLoadError(V)})}else if(!E.url||this.loadedEndOfParts(z,j))return Promise.resolve(null)}}return this.log("Loading fragment "+E.sn+" cc: "+E.cc+" "+(g?"of ["+g.startSN+"-"+g.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+E.level+", target: "+parseFloat(j.toFixed(3))),Object(F.isFiniteNumber)(E.sn)&&!this.bitrateTest&&(this.nextLoadPosition=E.start+E.duration),this.state=w.FRAG_LOADING,this.hls.trigger(t.Events.FRAG_LOADING,{frag:E,targetBufferTime:j}),this.fragmentLoader.load(E,U).catch(function(V){return S.handleFragLoadError(V)})},v.doFragPartsLoad=function(E,g,j,U){var S=this;return new Promise(function(z,H){var M=[],V=function K($){var Z=g[$];S.fragmentLoader.loadPart(E,Z,U).then(function(me){M[Z.index]=me;var oe=me.part;S.hls.trigger(t.Events.FRAG_LOADED,me);var fe=g[$+1];if(fe&&fe.fragment===E)K($+1);else return z({frag:E,part:oe,partsLoaded:M})}).catch(H)};V(j)})},v.handleFragLoadError=function(E){var g=E.data;return g&&g.details===b.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(g.frag,g.part):this.hls.trigger(t.Events.ERROR,g),null},v._handleTransmuxerFlush=function(E){var g=this.getCurrentContext(E);if(!g||this.state!==w.PARSING){this.fragCurrent||(this.state=w.IDLE);return}var j=g.frag,U=g.part,S=g.level,z=self.performance.now();j.stats.parsing.end=z,U&&(U.stats.parsing.end=z),this.updateLevelTiming(j,U,S,E.partial)},v.getCurrentContext=function(E){var g=this.levels,j=E.level,U=E.sn,S=E.part;if(!g||!g[j])return this.warn("Levels object was unset while buffering fragment "+U+" of level "+j+". The current chunk will not be buffered."),null;var z=g[j],H=S>-1?Object(i.getPartWith)(z,U,S):null,M=H?H.fragment:Object(i.getFragmentWithSN)(z,U,this.fragCurrent);return M?{frag:M,part:H,level:z}:null},v.bufferFragmentData=function(E,g,j,U){if(!E||this.state!==w.PARSING)return;var S=E.data1,z=E.data2,H=S;if(S&&z&&(H=Object(u.appendUint8Array)(S,z)),!H||!H.length)return;var M={type:E.type,frag:g,part:j,chunkMeta:U,parent:g.type,data:H};this.hls.trigger(t.Events.BUFFER_APPENDING,M),E.dropped&&E.independent&&!j&&this.flushBufferGap(g)},v.flushBufferGap=function(E){var g=this.media;if(!g)return;if(!P.BufferHelper.isBuffered(g,g.currentTime)){this.flushMainBuffer(0,E.start);return}var j=g.currentTime,U=P.BufferHelper.bufferInfo(g,j,0),S=E.duration,z=Math.min(this.config.maxFragLookUpTolerance*2,S*.25),H=Math.max(Math.min(E.start-z,U.end-z),j+z);E.start-H>z&&this.flushMainBuffer(H,E.start)},v.getFwdBufferInfo=function(E,g){var j=this.config,U=this.getLoadPosition();if(!Object(F.isFiniteNumber)(U))return null;var S=P.BufferHelper.bufferInfo(E,U,j.maxBufferHole);if(S.len===0&&S.nextStart!==void 0){var z=this.fragmentTracker.getBufferedFrag(U,g);if(z&&S.nextStart=j?(g.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+g.maxMaxBufferLength+"s"),!0):!1},v.getNextFragment=function(E,g){var j,U,S=g.fragments,z=S.length;if(!z)return null;var H=this.config,M=S[0].start,V;if(g.live){var K=H.initialLiveManifestSize;if(z-1&&jj.start&&j.loaded},v.getInitialLiveFragment=function(E,g){var j=this.fragPrevious,U=null;if(j){if(E.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+j.programDateTime),U=Object(a.findFragmentByPDT)(g,j.endProgramDateTime,this.config.maxFragLookUpTolerance)),!U){var S=j.sn+1;if(S>=E.startSN&&S<=E.endSN){var z=g[S-E.startSN];j.cc===z.cc&&(U=z,this.log("Live playlist, switching playlist, load frag with next SN: "+U.sn))}U||(U=Object(a.findFragWithCC)(g,j.cc),U&&this.log("Live playlist, switching playlist, load frag with same CC: "+U.sn))}}else{var H=this.hls.liveSyncPosition;H!==null&&(U=this.getFragmentAtPosition(H,this.bitrateTest?E.fragmentEnd:E.edge,E))}return U},v.getFragmentAtPosition=function(E,g,j){var U=this.config,S=this.fragPrevious,z=j.fragments,H=j.endSN,M=j.fragmentHint,V=U.maxFragLookUpTolerance,K=!!(U.lowLatencyMode&&j.partList&&M);K&&M&&!this.bitrateTest&&(z=z.concat(M),H=M.sn);var $;if(Eg-V?0:V;$=Object(a.findFragmentByPTS)(S,z,E,Z)}else $=z[z.length-1];if($){var me=$.sn-j.startSN,oe=S&&$.level===S.level,fe=z[me+1],ye=this.fragmentTracker.getState($);if(ye===R.FragmentState.BACKTRACKED){$=null;for(var Ie=me;z[Ie]&&this.fragmentTracker.getState(z[Ie])===R.FragmentState.BACKTRACKED;)S?$=z[Ie--]:$=z[--Ie];$||($=fe)}else S&&$.sn===S.sn&&!K&&(oe&&($.sn=z-g.maxFragLookUpTolerance&&S<=H;if(U!==null&&j.duration>U&&(S"+E.startSN+" prev-sn: "+(S?S.sn:"na")+" fragments: "+H),$}return M},v.waitForCdnTuneIn=function(E){var g=3;return E.live&&E.canBlockReload&&E.tuneInGoal>Math.max(E.partHoldBack,E.partTarget*g)},v.setStartPosition=function(E,g){var j=this.startPosition;if(j"+E))}}]),p}(T.default)},"./src/controller/buffer-controller.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return a});var F=I("./src/polyfills/number.ts"),T=I("./src/events.ts"),R=I("./src/utils/logger.ts"),P=I("./src/errors.ts"),m=I("./src/utils/buffer-helper.ts"),t=I("./src/utils/mediasource-helper.ts"),b=I("./src/loader/fragment.ts"),o=I("./src/controller/buffer-operation-queue.ts"),u=Object(t.getMediaSource)(),f=/([ha]vc.)(?:\.[^.,]+)+/,a=function(){function i(s){var n=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var l=n.hls,c=n.media,x=n.mediaSource;R.logger.log("[buffer-controller]: Media source opened"),c&&(n.updateMediaElementDuration(),l.trigger(T.Events.MEDIA_ATTACHED,{media:c})),x&&x.removeEventListener("sourceopen",n._onMediaSourceOpen),n.checkPendingTracks()},this._onMediaSourceClose=function(){R.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){R.logger.log("[buffer-controller]: Media source ended")},this.hls=s,this._initSourceBuffer(),this.registerListeners()}var d=i.prototype;return d.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},d.destroy=function(){this.unregisterListeners(),this.details=null},d.registerListeners=function(){var n=this.hls;n.on(T.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.on(T.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(T.Events.BUFFER_RESET,this.onBufferReset,this),n.on(T.Events.BUFFER_APPENDING,this.onBufferAppending,this),n.on(T.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(T.Events.BUFFER_EOS,this.onBufferEos,this),n.on(T.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),n.on(T.Events.LEVEL_UPDATED,this.onLevelUpdated,this),n.on(T.Events.FRAG_PARSED,this.onFragParsed,this),n.on(T.Events.FRAG_CHANGED,this.onFragChanged,this)},d.unregisterListeners=function(){var n=this.hls;n.off(T.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.off(T.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(T.Events.BUFFER_RESET,this.onBufferReset,this),n.off(T.Events.BUFFER_APPENDING,this.onBufferAppending,this),n.off(T.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(T.Events.BUFFER_EOS,this.onBufferEos,this),n.off(T.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),n.off(T.Events.LEVEL_UPDATED,this.onLevelUpdated,this),n.off(T.Events.FRAG_PARSED,this.onFragParsed,this),n.off(T.Events.FRAG_CHANGED,this.onFragChanged,this)},d._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new o.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},d.onManifestParsed=function(n,l){var c=2;(l.audio&&!l.video||!l.altAudio)&&(c=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=c,this.details=null,R.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},d.onMediaAttaching=function(n,l){var c=this.media=l.media;if(c&&u){var x=this.mediaSource=new u;x.addEventListener("sourceopen",this._onMediaSourceOpen),x.addEventListener("sourceended",this._onMediaSourceEnded),x.addEventListener("sourceclose",this._onMediaSourceClose),c.src=self.URL.createObjectURL(x),this._objectUrl=c.src}},d.onMediaDetaching=function(){var n=this.media,l=this.mediaSource,c=this._objectUrl;if(l){if(R.logger.log("[buffer-controller]: media source detaching"),l.readyState==="open")try{l.endOfStream()}catch(x){R.logger.warn("[buffer-controller]: onMediaDetaching: "+x.message+" while calling endOfStream")}this.onBufferReset(),l.removeEventListener("sourceopen",this._onMediaSourceOpen),l.removeEventListener("sourceended",this._onMediaSourceEnded),l.removeEventListener("sourceclose",this._onMediaSourceClose),n&&(c&&self.URL.revokeObjectURL(c),n.src===c?(n.removeAttribute("src"),n.load()):R.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(T.Events.MEDIA_DETACHED,void 0)},d.onBufferReset=function(){var n=this;this.getSourceBufferTypes().forEach(function(l){var c=n.sourceBuffer[l];try{c&&(n.removeBufferListeners(l),n.mediaSource&&n.mediaSource.removeSourceBuffer(c),n.sourceBuffer[l]=void 0)}catch(x){R.logger.warn("[buffer-controller]: Failed to reset the "+l+" buffer",x)}}),this._initSourceBuffer()},d.onBufferCodecs=function(n,l){var c=this,x=this.getSourceBufferTypes().length;if(Object.keys(l).forEach(function(A){if(x){var C=c.tracks[A];if(C&&typeof C.buffer.changeType=="function"){var k=l[A],w=k.codec,y=k.levelCodec,h=k.container,p=(C.levelCodec||C.codec).replace(f,"$1"),v=(y||w).replace(f,"$1");if(p!==v){var _=h+";codecs="+(y||w);c.appendChangeType(A,_)}}}else c.pendingTracks[A]=l[A]}),x)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},d.appendChangeType=function(n,l){var c=this,x=this.operationQueue,A={execute:function(){var k=c.sourceBuffer[n];k&&(R.logger.log("[buffer-controller]: changing "+n+" sourceBuffer type to "+l),k.changeType(l)),x.shiftAndExecuteNext(n)},onStart:function(){},onComplete:function(){},onError:function(k){R.logger.warn("[buffer-controller]: Failed to change "+n+" SourceBuffer type",k)}};x.append(A,n)},d.onBufferAppending=function(n,l){var c=this,x=this.hls,A=this.operationQueue,C=this.tracks,k=l.data,w=l.type,y=l.frag,h=l.part,p=l.chunkMeta,v=p.buffering[w],_=self.performance.now();v.start=_;var E=y.stats.buffering,g=h?h.stats.buffering:null;E.start===0&&(E.start=_),g&&g.start===0&&(g.start=_);var j=C.audio,U=w==="audio"&&p.id===1&&(j==null?void 0:j.container)==="audio/mpeg",S={execute:function(){if(v.executeStart=self.performance.now(),U){var H=c.sourceBuffer[w];if(H){var M=y.start-H.timestampOffset;Math.abs(M)>=.1&&(R.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+y.start+" (delta: "+M+") sn: "+y.sn+")"),H.timestampOffset=y.start)}}c.appendExecutor(k,w)},onStart:function(){},onComplete:function(){var H=self.performance.now();v.executeEnd=v.end=H,E.first===0&&(E.first=H),g&&g.first===0&&(g.first=H);var M=c.sourceBuffer,V={};for(var K in M)V[K]=m.BufferHelper.getBuffered(M[K]);c.appendError=0,c.hls.trigger(T.Events.BUFFER_APPENDED,{type:w,frag:y,part:h,chunkMeta:p,parent:y.type,timeRanges:V})},onError:function(H){R.logger.error("[buffer-controller]: Error encountered while trying to append to the "+w+" SourceBuffer",H);var M={type:P.ErrorTypes.MEDIA_ERROR,parent:y.type,details:P.ErrorDetails.BUFFER_APPEND_ERROR,err:H,fatal:!1};H.code===DOMException.QUOTA_EXCEEDED_ERR?M.details=P.ErrorDetails.BUFFER_FULL_ERROR:(c.appendError++,M.details=P.ErrorDetails.BUFFER_APPEND_ERROR,c.appendError>x.config.appendErrorMaxRetry&&(R.logger.error("[buffer-controller]: Failed "+x.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),M.fatal=!0)),x.trigger(T.Events.ERROR,M)}};A.append(S,w)},d.onBufferFlushing=function(n,l){var c=this,x=this.operationQueue,A=function(k){return{execute:c.removeExecutor.bind(c,k,l.startOffset,l.endOffset),onStart:function(){},onComplete:function(){c.hls.trigger(T.Events.BUFFER_FLUSHED,{type:k})},onError:function(y){R.logger.warn("[buffer-controller]: Failed to remove from "+k+" SourceBuffer",y)}}};l.type?x.append(A(l.type),l.type):this.getSourceBufferTypes().forEach(function(C){x.append(A(C),C)})},d.onFragParsed=function(n,l){var c=this,x=l.frag,A=l.part,C=[],k=A?A.elementaryStreams:x.elementaryStreams;k[b.ElementaryStreamTypes.AUDIOVIDEO]?C.push("audiovideo"):(k[b.ElementaryStreamTypes.AUDIO]&&C.push("audio"),k[b.ElementaryStreamTypes.VIDEO]&&C.push("video"));var w=function(){var h=self.performance.now();x.stats.buffering.end=h,A&&(A.stats.buffering.end=h);var p=A?A.stats:x.stats;c.hls.trigger(T.Events.FRAG_BUFFERED,{frag:x,part:A,stats:p,id:x.type})};C.length===0&&R.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+x.type+" level: "+x.level+" sn: "+x.sn),this.blockBuffers(w,C)},d.onFragChanged=function(n,l){this.flushBackBuffer()},d.onBufferEos=function(n,l){var c=this,x=this.getSourceBufferTypes().reduce(function(A,C){var k=c.sourceBuffer[C];return(!l.type||l.type===C)&&(k&&!k.ended&&(k.ended=!0,R.logger.log("[buffer-controller]: "+C+" sourceBuffer now EOS"))),A&&!!(!k||k.ended)},!0);x&&this.blockBuffers(function(){var A=c.mediaSource;if(!A||A.readyState!=="open")return;A.endOfStream()})},d.onLevelUpdated=function(n,l){var c=l.details;if(!c.fragments.length)return;this.details=c,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},d.flushBackBuffer=function(){var n=this.hls,l=this.details,c=this.media,x=this.sourceBuffer;if(!c||l===null)return;var A=this.getSourceBufferTypes();if(!A.length)return;var C=l.live&&n.config.liveBackBufferLength!==null?n.config.liveBackBufferLength:n.config.backBufferLength;if(!Object(F.isFiniteNumber)(C)||C<0)return;var k=c.currentTime,w=l.levelTargetDuration,y=Math.max(C,w),h=Math.floor(k/w)*w-y;A.forEach(function(p){var v=x[p];if(v){var _=m.BufferHelper.getBuffered(v);_.length>0&&h>_.start(0)&&(n.trigger(T.Events.BACK_BUFFER_REACHED,{bufferEnd:h}),l.live&&n.trigger(T.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:h}),n.trigger(T.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:h,type:p}))}})},d.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var n=this.details,l=this.hls,c=this.media,x=this.mediaSource,A=n.fragments[0].start+n.totalduration,C=c.duration,k=Object(F.isFiniteNumber)(x.duration)?x.duration:0;n.live&&l.config.liveDurationInfinity?(R.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),x.duration=Infinity,this.updateSeekableRange(n)):(A>k&&A>C||!Object(F.isFiniteNumber)(C))&&(R.logger.log("[buffer-controller]: Updating Media Source duration to "+A.toFixed(3)),x.duration=A)},d.updateSeekableRange=function(n){var l=this.mediaSource,c=n.fragments,x=c.length;if(x&&n.live&&l!==null&&l!==void 0&&l.setLiveSeekableRange){var A=Math.max(0,c[0].start),C=Math.max(A,A+n.totalduration);l.setLiveSeekableRange(A,C)}},d.checkPendingTracks=function(){var n=this.bufferCodecEventsExpected,l=this.operationQueue,c=this.pendingTracks,x=Object.keys(c).length;if(x&&!n||x===2){this.createSourceBuffers(c),this.pendingTracks={};var A=this.getSourceBufferTypes();if(A.length===0){this.hls.trigger(T.Events.ERROR,{type:P.ErrorTypes.MEDIA_ERROR,details:P.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}A.forEach(function(C){l.executeNext(C)})}},d.createSourceBuffers=function(n){var l=this.sourceBuffer,c=this.mediaSource;if(!c)throw Error("createSourceBuffers called when mediaSource was null");var x=0;for(var A in n)if(!l[A]){var C=n[A];if(!C)throw Error("source buffer exists for track "+A+", however track does not");var k=C.levelCodec||C.codec,w=C.container+";codecs="+k;R.logger.log("[buffer-controller]: creating sourceBuffer("+w+")");try{var y=l[A]=c.addSourceBuffer(w),h=A;this.addBufferListener(h,"updatestart",this._onSBUpdateStart),this.addBufferListener(h,"updateend",this._onSBUpdateEnd),this.addBufferListener(h,"error",this._onSBUpdateError),this.tracks[A]={buffer:y,codec:k,container:C.container,levelCodec:C.levelCodec,id:C.id},x++}catch(p){R.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+p.message),this.hls.trigger(T.Events.ERROR,{type:P.ErrorTypes.MEDIA_ERROR,details:P.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:p,mimeType:w})}}x&&this.hls.trigger(T.Events.BUFFER_CREATED,{tracks:this.tracks})},d._onSBUpdateStart=function(n){var l=this.operationQueue,c=l.current(n);c.onStart()},d._onSBUpdateEnd=function(n){var l=this.operationQueue,c=l.current(n);c.onComplete(),l.shiftAndExecuteNext(n)},d._onSBUpdateError=function(n,l){R.logger.error("[buffer-controller]: "+n+" SourceBuffer error",l),this.hls.trigger(T.Events.ERROR,{type:P.ErrorTypes.MEDIA_ERROR,details:P.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var c=this.operationQueue.current(n);c&&c.onError(l)},d.removeExecutor=function(n,l,c){var x=this.media,A=this.mediaSource,C=this.operationQueue,k=this.sourceBuffer,w=k[n];if(!x||!A||!w){R.logger.warn("[buffer-controller]: Attempting to remove from the "+n+" SourceBuffer, but it does not exist"),C.shiftAndExecuteNext(n);return}var y=Object(F.isFiniteNumber)(x.duration)?x.duration:Infinity,h=Object(F.isFiniteNumber)(A.duration)?A.duration:Infinity,p=Math.max(0,l),v=Math.min(c,y,h);v>p?(R.logger.log("[buffer-controller]: Removing ["+p+","+v+"] from the "+n+" SourceBuffer"),console.assert(!w.updating,n+" sourceBuffer must not be updating"),w.remove(p,v)):C.shiftAndExecuteNext(n)},d.appendExecutor=function(n,l){var c=this.operationQueue,x=this.sourceBuffer,A=x[l];if(!A){R.logger.warn("[buffer-controller]: Attempting to append to the "+l+" SourceBuffer, but it does not exist"),c.shiftAndExecuteNext(l);return}A.ended=!1,console.assert(!A.updating,l+" sourceBuffer must not be updating"),A.appendBuffer(n)},d.blockBuffers=function(n,l){var c=this;if(l===void 0&&(l=this.getSourceBufferTypes()),!l.length){R.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(n);return}var x=this.operationQueue,A=l.map(function(C){return x.appendBlocker(C)});Promise.all(A).then(function(){n(),l.forEach(function(C){var k=c.sourceBuffer[C];(!k||!k.updating)&&x.shiftAndExecuteNext(C)})})},d.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},d.addBufferListener=function(n,l,c){var x=this.sourceBuffer[n];if(!x)return;var A=c.bind(this,n);this.listeners[n].push({event:l,listener:A}),x.addEventListener(l,A)},d.removeBufferListeners=function(n){var l=this.sourceBuffer[n];if(!l)return;this.listeners[n].forEach(function(c){l.removeEventListener(c.event,c.listener)})},i}()},"./src/controller/buffer-operation-queue.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return T});var F=I("./src/utils/logger.ts"),T=function(){function R(m){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=m}var P=R.prototype;return P.append=function(t,b){var o=this.queues[b];o.push(t),o.length===1&&this.buffers[b]&&this.executeNext(b)},P.insertAbort=function(t,b){var o=this.queues[b];o.unshift(t),this.executeNext(b)},P.appendBlocker=function(t){var b,o=new Promise(function(f){b=f}),u={execute:b,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(u,t),o},P.executeNext=function(t){var b=this.buffers,o=this.queues,u=b[t],f=o[t];if(f.length){var a=f[0];try{a.execute()}catch(i){F.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),a.onError(i),(!u||!u.updating)&&(f.shift(),this.executeNext(t))}}},P.shiftAndExecuteNext=function(t){this.queues[t].shift(),this.executeNext(t)},P.current=function(t){return this.queues[t][0]},R}()},"./src/controller/cap-level-controller.ts":function(Y,B,I){"use strict";I.r(B);var F=I("./src/events.ts");function T(m,t){for(var b=0;b0&&this.mediaWidth>0){var o=this.hls.levels;if(o.length){var u=this.hls;u.autoLevelCapping=this.getMaxLevel(o.length-1),u.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=u.autoLevelCapping}}},t.getMaxLevel=function(o){var u=this,f=this.hls.levels;if(!f.length)return-1;var a=f.filter(function(i,d){return m.isLevelAllowed(d,u.restrictedLevels)&&d<=o});return this.clientRect=null,m.getMaxLevelByMediaSize(a,this.mediaWidth,this.mediaHeight)},t.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},t.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},t.getDimensions=function(){if(this.clientRect)return this.clientRect;var o=this.media,u={width:0,height:0};if(o){var f=o.getBoundingClientRect();u.width=f.width,u.height=f.height,!u.width&&!u.height&&(u.width=f.right-f.left||o.width||0,u.height=f.bottom-f.top||o.height||0)}return this.clientRect=u,u},m.isLevelAllowed=function(o,u){return u===void 0&&(u=[]),u.indexOf(o)===-1},m.getMaxLevelByMediaSize=function(o,u,f){if(!o||!o.length)return-1;for(var a=function(l,c){return c?l.width!==c.width||l.height!==c.height:!0},i=o.length-1,d=0;d=u||s.height>=f)&&a(s,o[d+1])){i=d;break}}return i},R(m,[{key:"mediaWidth",get:function(){return this.getDimensions().width*m.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*m.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var o=1;try{o=self.devicePixelRatio}catch(u){}return o}}]),m}();B.default=P},"./src/controller/cmcd-controller.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return a});var F=I("./src/events.ts"),T=I("./src/types/cmcd.ts"),R=I("./src/utils/buffer-helper.ts"),P=I("./src/utils/logger.ts");function m(i,d){for(var s=0;s=i.length?{done:!0}:{done:!1,value:i[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(i,d){if(!i)return;if(typeof i=="string")return u(i,d);var s=Object.prototype.toString.call(i).slice(8,-1);if(s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set")return Array.from(i);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return u(i,d)}function u(i,d){(d==null||d>i.length)&&(d=i.length);for(var s=0,n=new Array(d);sl&&(l=C.bitrate)}return l>0?l:NaN},d.getBufferLength=function(n){var l=this.hls.media,c=n===T.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!c||!l)return NaN;var x=R.BufferHelper.bufferInfo(c,l.currentTime,this.config.maxBufferHole);return x.len*1e3},d.createPlaylistLoader=function(){var n=this.config.pLoader,l=this.applyPlaylistData,c=n||this.config.loader;return function(){function x(C){this.loader=void 0,this.loader=new c(C)}var A=x.prototype;return A.destroy=function(){this.loader.destroy()},A.abort=function(){this.loader.abort()},A.load=function(k,w,y){l(k),this.loader.load(k,w,y)},t(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},d.createFragmentLoader=function(){var n=this.config.fLoader,l=this.applyFragmentData,c=n||this.config.loader;return function(){function x(C){this.loader=void 0,this.loader=new c(C)}var A=x.prototype;return A.destroy=function(){this.loader.destroy()},A.abort=function(){this.loader.abort()},A.load=function(k,w,y){l(k),this.loader.load(k,w,y)},t(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},i.uuid=function(){var n=URL.createObjectURL(new Blob),l=n.toString();return URL.revokeObjectURL(n),l.substr(l.lastIndexOf("/")+1)},i.serialize=function(n){for(var l=[],c=function(U){return!Number.isNaN(U)&&U!=null&&U!==""&&U!==!1},x=function(U){return Math.round(U)},A=function(U){return x(U/100)*100},C=function(U){return encodeURIComponent(U)},k={br:x,d:x,bl:A,dl:A,mtp:A,nor:C,rtp:A,tb:x},w=Object.keys(n||{}).sort(),y=b(w),h;!(h=y()).done;){var p=h.value,v=n[p];if(!c(v))continue;if(p==="v"&&v===1)continue;if(p=="pr"&&v===1)continue;var _=k[p];_&&(v=_(v));var E=typeof v,g=void 0;p==="ot"||p==="sf"||p==="st"?g=p+"="+v:E==="boolean"?g=p:E==="number"?g=p+"="+v:g=p+"="+JSON.stringify(v),l.push(g)}return l.join(",")},i.toHeaders=function(n){for(var l=Object.keys(n),c={},x=["Object","Request","Session","Status"],A=[{},{},{},{}],C={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},k=0,w=l;kb){this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var C=b-this._requestLicenseFailureCount+1;R.logger.warn("Retrying license request, "+C+" attempts left"),this._requestLicense(l,c)}break}},i._generateLicenseRequestChallenge=function(s,n){switch(s.mediaKeySystemDomain){case P.KeySystems.WIDEVINE:return n}throw new Error("unsupported key-system: "+s.mediaKeySystemDomain)},i._requestLicense=function(s,n){R.logger.log("Requesting content license for key-system");var l=this._mediaKeysList[0];if(!l){R.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var c=this.getLicenseServerUrl(l.mediaKeySystemDomain),x=this._createLicenseXhr(c,s,n);R.logger.log("Sending license request to URL: "+c);var A=this._generateLicenseRequestChallenge(l,s);x.send(A)}catch(C){R.logger.error("Failure requesting DRM license: "+C),this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},i.onMediaAttached=function(s,n){if(!this._emeEnabled)return;var l=n.media;this._media=l,l.addEventListener("encrypted",this._onMediaEncrypted)},i.onMediaDetached=function(){var s=this._media,n=this._mediaKeysList;if(!s)return;s.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(n.map(function(l){if(l.mediaKeysSession)return l.mediaKeysSession.close().catch(function(){})})).then(function(){return s.setMediaKeys(null)}).catch(function(){})},i.onManifestParsed=function(s,n){if(!this._emeEnabled)return;var l=n.levels.map(function(x){return x.audioCodec}).filter(function(x){return!!x}),c=n.levels.map(function(x){return x.videoCodec}).filter(function(x){return!!x});this._attemptKeySystemAccess(P.KeySystems.WIDEVINE,l,c)},t(a,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),a}();B.default=f},"./src/controller/fps-controller.ts":function(Y,B,I){"use strict";I.r(B);var F=I("./src/events.ts"),T=I("./src/utils/logger.ts"),R=function(){function P(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}var m=P.prototype;return m.setStreamController=function(b){this.streamController=b},m.registerListeners=function(){this.hls.on(F.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},m.unregisterListeners=function(){this.hls.off(F.Events.MEDIA_ATTACHING,this.onMediaAttaching)},m.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},m.onMediaAttaching=function(b,o){var u=this.hls.config;if(u.capLevelOnFPSDrop){var f=o.media instanceof self.HTMLVideoElement?o.media:null;this.media=f,f&&typeof f.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),u.fpsDroppedMonitoringPeriod)}},m.checkFPS=function(b,o,u){var f=performance.now();if(o){if(this.lastTime){var a=f-this.lastTime,i=u-this.lastDroppedFrames,d=o-this.lastDecodedFrames,s=1e3*i/a,n=this.hls;if(n.trigger(F.Events.FPS_DROP,{currentDropped:i,currentDecoded:d,totalDroppedFrames:u}),s>0&&i>n.config.fpsDroppedMonitoringThreshold*d){var l=n.currentLevel;T.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+l),l>0&&(n.autoLevelCapping===-1||n.autoLevelCapping>=l)&&(l=l-1,n.trigger(F.Events.FPS_DROP_LEVEL_CAPPING,{level:l,droppedLevel:n.currentLevel}),n.autoLevelCapping=l,this.streamController.nextLevelSwitch())}}this.lastTime=f,this.lastDroppedFrames=u,this.lastDecodedFrames=o}},m.checkFPSInterval=function(){var b=this.media;if(b)if(this.isVideoPlaybackQualityAvailable){var o=b.getVideoPlaybackQuality();this.checkFPS(b,o.totalVideoFrames,o.droppedVideoFrames)}else this.checkFPS(b,b.webkitDecodedFrameCount,b.webkitDroppedFrameCount)},P}();B.default=R},"./src/controller/fragment-finders.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"findFragmentByPDT",function(){return R}),I.d(B,"findFragmentByPTS",function(){return P}),I.d(B,"fragmentWithinToleranceTest",function(){return m}),I.d(B,"pdtWithinToleranceTest",function(){return t}),I.d(B,"findFragWithCC",function(){return b});var F=I("./src/polyfills/number.ts"),T=I("./src/utils/binary-search.ts");function R(o,u,f){if(u===null||!Array.isArray(o)||!o.length||!Object(F.isFiniteNumber)(u))return null;var a=o[0].programDateTime;if(u<(a||0))return null;var i=o[o.length-1].endProgramDateTime;if(u>=(i||0))return null;f=f||0;for(var d=0;do&&f.start?-1:0}function t(o,u,f){var a=Math.min(u,f.duration+(f.deltaPTS?f.deltaPTS:0))*1e3,i=f.endProgramDateTime||0;return i-a>o}function b(o,u){return T.default.search(o,function(f){return f.ccu?-1:0})}},"./src/controller/fragment-tracker.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"FragmentState",function(){return R}),I.d(B,"FragmentTracker",function(){return P});var F=I("./src/events.ts"),T=I("./src/types/loader.ts"),R;(function(b){b.NOT_LOADED="NOT_LOADED",b.BACKTRACKED="BACKTRACKED",b.APPENDING="APPENDING",b.PARTIAL="PARTIAL",b.OK="OK"})(R||(R={}));var P=function(){function b(u){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=u,this._registerListeners()}var o=b.prototype;return o._registerListeners=function(){var f=this.hls;f.on(F.Events.BUFFER_APPENDED,this.onBufferAppended,this),f.on(F.Events.FRAG_BUFFERED,this.onFragBuffered,this),f.on(F.Events.FRAG_LOADED,this.onFragLoaded,this)},o._unregisterListeners=function(){var f=this.hls;f.off(F.Events.BUFFER_APPENDED,this.onBufferAppended,this),f.off(F.Events.FRAG_BUFFERED,this.onFragBuffered,this),f.off(F.Events.FRAG_LOADED,this.onFragLoaded,this)},o.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},o.getAppendedFrag=function(f,a){if(a===T.PlaylistLevelType.MAIN){var i=this.activeFragment,d=this.activeParts;if(!i)return null;if(d)for(var s=d.length;s--;){var n=d[s],l=n?n.end:i.appendedPTS;if(n.start<=f&&l!==void 0&&f<=l)return s>9&&(this.activeParts=d.slice(s-9)),n}else if(i.start<=f&&i.appendedPTS!==void 0&&f<=i.appendedPTS)return i}return this.getBufferedFrag(f,a)},o.getBufferedFrag=function(f,a){for(var i=this.fragments,d=Object.keys(i),s=d.length;s--;){var n=i[d[s]];if((n==null?void 0:n.body.type)===a&&n.buffered){var l=n.body;if(l.start<=f&&f<=l.end)return l}}return null},o.detectEvictedFragments=function(f,a,i){var d=this;Object.keys(this.fragments).forEach(function(s){var n=d.fragments[s];if(!n)return;if(!n.buffered){n.body.type===i&&d.removeFragment(n.body);return}var l=n.range[f];if(!l)return;l.time.some(function(c){var x=!d.isTimeBuffered(c.startPTS,c.endPTS,a);return x&&d.removeFragment(n.body),x})})},o.detectPartialFragments=function(f){var a=this,i=this.timeRanges,d=f.frag,s=f.part;if(!i||d.sn==="initSegment")return;var n=t(d),l=this.fragments[n];if(!l)return;Object.keys(i).forEach(function(c){var x=d.elementaryStreams[c];if(!x)return;var A=i[c],C=s!==null||x.partial===!0;l.range[c]=a.getBufferedTimes(d,s,C,A)}),l.backtrack=l.loaded=null,Object.keys(l.range).length?l.buffered=!0:this.removeFragment(l.body)},o.fragBuffered=function(f){var a=t(f),i=this.fragments[a];i&&(i.backtrack=i.loaded=null,i.buffered=!0)},o.getBufferedTimes=function(f,a,i,d){for(var s={time:[],partial:i},n=a?a.start:f.start,l=a?a.end:f.end,c=f.minEndPTS||l,x=f.maxStartPTS||n,A=0;A=C&&c<=k){s.time.push({startPTS:Math.max(n,d.start(A)),endPTS:Math.min(l,d.end(A))});break}else if(nC)s.partial=!0,s.time.push({startPTS:Math.max(n,d.start(A)),endPTS:Math.min(l,d.end(A))});else if(l<=C)break}return s},o.getPartialFragment=function(f){var a=null,i,d,s,n=0,l=this.bufferPadding,c=this.fragments;return Object.keys(c).forEach(function(x){var A=c[x];if(!A)return;m(A)&&(d=A.body.start-l,s=A.body.end+l,f>=d&&f<=s&&(i=Math.min(f-d,s-f),n<=i&&(a=A.body,n=i)))}),a},o.getState=function(f){var a=t(f),i=this.fragments[a];return i?i.buffered?m(i)?R.PARTIAL:R.OK:i.backtrack?R.BACKTRACKED:R.APPENDING:R.NOT_LOADED},o.backtrack=function(f,a){var i=t(f),d=this.fragments[i];if(!d||d.backtrack)return null;var s=d.backtrack=a||d.loaded;return d.loaded=null,s},o.getBacktrackData=function(f){var a=t(f),i=this.fragments[a];if(i){var d,s=i.backtrack;if(s!=null&&(d=s.payload)!==null&&d!==void 0&&d.byteLength)return s;this.removeFragment(f)}return null},o.isTimeBuffered=function(f,a,i){for(var d,s,n=0;n=d&&a<=s)return!0;if(a<=d)return!1}return!1},o.onFragLoaded=function(f,a){var i=a.frag,d=a.part;if(i.sn==="initSegment"||i.bitrateTest||d)return;var s=t(i);this.fragments[s]={body:i,loaded:a,backtrack:null,buffered:!1,range:Object.create(null)}},o.onBufferAppended=function(f,a){var i=this,d=a.frag,s=a.part,n=a.timeRanges;if(d.type===T.PlaylistLevelType.MAIN)if(this.activeFragment=d,s){var l=this.activeParts;l||(this.activeParts=l=[]),l.push(s)}else this.activeParts=null;this.timeRanges=n,Object.keys(n).forEach(function(c){var x=n[c];if(i.detectEvictedFragments(c,x),!s)for(var A=0;Af&&d.removeFragment(l)}})},o.removeFragment=function(f){var a=t(f);f.stats.loaded=0,f.clearElementaryStreamInfo(),delete this.fragments[a]},o.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},b}();function m(b){var o,u;return b.buffered&&(((o=b.range.video)===null||o===void 0?void 0:o.partial)||((u=b.range.audio)===null||u===void 0?void 0:u.partial))}function t(b){return b.type+"_"+b.level+"_"+b.urlId+"_"+b.sn}},"./src/controller/gap-controller.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"STALL_MINIMUM_DURATION_MS",function(){return m}),I.d(B,"MAX_START_GAP_JUMP",function(){return t}),I.d(B,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return b}),I.d(B,"SKIP_BUFFER_RANGE_START",function(){return o}),I.d(B,"default",function(){return u});var F=I("./src/utils/buffer-helper.ts"),T=I("./src/errors.ts"),R=I("./src/events.ts"),P=I("./src/utils/logger.ts"),m=250,t=2,b=.1,o=.05,u=function(){function f(i,d,s,n){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=i,this.media=d,this.fragmentTracker=s,this.hls=n}var a=f.prototype;return a.destroy=function(){this.hls=this.fragmentTracker=this.media=null},a.poll=function(d){var s=this.config,n=this.media,l=this.stalled,c=n.currentTime,x=n.seeking,A=this.seeking&&!x,C=!this.seeking&&x;if(this.seeking=x,c!==d){if(this.moved=!0,l!==null){if(this.stallReported){var k=self.performance.now()-l;P.logger.warn("playback not stuck anymore @"+c+", after "+Math.round(k)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((C||A)&&(this.stalled=null),n.paused||n.ended||n.playbackRate===0||!F.BufferHelper.getBuffered(n).length)return;var w=F.BufferHelper.bufferInfo(n,c,0),y=w.len>0,h=w.nextStart||0;if(!y&&!h)return;if(x){var p=w.len>t,v=!h||h-c>t&&!this.fragmentTracker.getPartialFragment(c);if(p||v)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var _,E=Math.max(h,w.start||0)-c,g=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,j=g==null||((_=g.details)===null||_===void 0)?void 0:_.live,U=j?g.details.targetduration*2:t;if(E>0&&E<=U){this._trySkipBufferHole(null);return}}var S=self.performance.now();if(l===null){this.stalled=S;return}var z=S-l;!x&&z>=m&&this._reportStall(w.len);var H=F.BufferHelper.bufferInfo(n,c,s.maxBufferHole);this._tryFixBufferStall(H,z)},a._tryFixBufferStall=function(d,s){var n=this.config,l=this.fragmentTracker,c=this.media,x=c.currentTime,A=l.getPartialFragment(x);if(A){var C=this._trySkipBufferHole(A);if(C)return}d.len>n.maxBufferHole&&s>n.highBufferWatchdogPeriod*1e3&&(P.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},a._reportStall=function(d){var s=this.hls,n=this.media,l=this.stallReported;l||(this.stallReported=!0,P.logger.warn("Playback stalling at @"+n.currentTime+" due to low buffer (buffer="+d+")"),s.trigger(R.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:d}))},a._trySkipBufferHole=function(d){for(var s=this.config,n=this.hls,l=this.media,c=l.currentTime,x=0,A=F.BufferHelper.getBuffered(l),C=0;C=x&&c.05&&this.forwardBufferLength>1){var C=Math.min(2,Math.max(1,n)),k=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20;f.playbackRate=Math.min(C,Math.max(1,k))}else f.playbackRate!==1&&f.playbackRate!==0&&(f.playbackRate=1)},o.estimateLiveEdge=function(){var f=this.levelDetails;return f===null?null:f.edge+f.age},o.computeLatency=function(){var f=this.estimateLiveEdge();return f===null?null:f-this.currentTime},m(b,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var f=this.config,a=this.levelDetails;return f.liveMaxLatencyDuration!==void 0?f.liveMaxLatencyDuration:a?f.liveMaxLatencyDurationCount*a.targetduration:0}},{key:"targetLatency",get:function(){var f=this.levelDetails;if(f===null)return null;var a=f.holdBack,i=f.partHoldBack,d=f.targetduration,s=this.config,n=s.liveSyncDuration,l=s.liveSyncDurationCount,c=s.lowLatencyMode,x=this.hls.userConfig,A=c&&i||a;(x.liveSyncDuration||x.liveSyncDurationCount||A===0)&&(A=n!==void 0?n:l*d);var C=d,k=1;return A+Math.min(this.stallCount*k,C)}},{key:"liveSyncPosition",get:function(){var f=this.estimateLiveEdge(),a=this.targetLatency,i=this.levelDetails;if(f===null||a===null||i===null)return null;var d=i.edge,s=f-a-this.edgeStalled,n=d-i.totalduration,l=d-(this.config.lowLatencyMode&&i.partTarget||i.targetduration);return Math.min(Math.max(n,s),l)}},{key:"drift",get:function(){var f=this.levelDetails;return f===null?1:f.drift}},{key:"edgeStalled",get:function(){var f=this.levelDetails;if(f===null)return 0;var a=(this.config.lowLatencyMode&&f.partTarget||f.targetduration)*3;return Math.max(f.age-a,0)}},{key:"forwardBufferLength",get:function(){var f=this.media,a=this.levelDetails;if(!f||!a)return 0;var i=f.buffered.length;return i?f.buffered.end(i-1):a.edge-this.currentTime}}]),b}()},"./src/controller/level-controller.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return s});var F=I("./src/types/level.ts"),T=I("./src/events.ts"),R=I("./src/errors.ts"),P=I("./src/utils/codecs.ts"),m=I("./src/controller/level-helper.ts"),t=I("./src/controller/base-playlist-controller.ts"),b=I("./src/types/loader.ts");function o(){return o=Object.assign||function(n){for(var l=1;l0){h=k[0].bitrate,k.sort(function(z,H){return z.bitrate-H.bitrate}),this._levels=k;for(var j=0;jthis.hls.config.fragLoadingMaxRetry&&(p=C.frag.level)):p=C.frag.level}break;case R.ErrorDetails.LEVEL_LOAD_ERROR:case R.ErrorDetails.LEVEL_LOAD_TIMEOUT:k&&(k.deliveryDirectives&&(h=!1),p=k.level),y=!0;break;case R.ErrorDetails.REMUX_ALLOC_ERROR:p=C.level,y=!0;break}p!==void 0&&this.recoverLevel(C,p,y,h)},c.recoverLevel=function(A,C,k,w){var y=A.details,h=this._levels[C];if(h.loadError++,k){var p=this.retryLoadingOrFail(A);if(p)A.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(w){var v=h.url.length;if(v>1&&h.loadError1){var w=(C.urlId+1)%k;this.warn("Switching to redundant URL-id "+w),this._levels.forEach(function(y){y.urlId=w}),this.level=A}},c.onFragLoaded=function(A,C){var k=C.frag;if(k!==void 0&&k.type===b.PlaylistLevelType.MAIN){var w=this._levels[k.level];w!==void 0&&(w.fragmentError=0,w.loadError=0)}},c.onLevelLoaded=function(A,C){var k,w=C.level,y=C.details,h=this._levels[w];if(!h){var p;this.warn("Invalid level index "+w),(p=C.deliveryDirectives)!==null&&p!==void 0&&p.skip&&(y.deltaUpdateFailed=!0);return}w===this.currentLevelIndex?(h.fragmentError===0&&(h.loadError=0,this.retryCount=0),this.playlistLoaded(w,C,h.details)):(k=C.deliveryDirectives)!==null&&k!==void 0&&k.skip&&(y.deltaUpdateFailed=!0)},c.onAudioTrackSwitched=function(A,C){var k=this.hls.levels[this.currentLevelIndex];if(!k)return;if(k.audioGroupIds){for(var w=-1,y=this.hls.audioTracks[C.id].groupId,h=0;h0){var w=k.urlId,y=k.url[w];if(A)try{y=A.addDirectives(y)}catch(h){this.warn("Could not construct new URL with HLS Delivery Directives: "+h)}this.log("Attempt loading level index "+C+(A?" at sn "+A.msn+" part "+A.part:"")+" with URL-id "+w+" "+y),this.clearTimer(),this.hls.trigger(T.Events.LEVEL_LOADING,{url:y,level:C,id:w,deliveryDirectives:A||null})}},c.removeLevel=function(A,C){var k=function(h,p){return p!==C},w=this._levels.filter(function(y,h){return h!==A?!0:y.url.length>1&&C!==void 0?(y.url=y.url.filter(k),y.audioGroupIds&&(y.audioGroupIds=y.audioGroupIds.filter(k)),y.textGroupIds&&(y.textGroupIds=y.textGroupIds.filter(k)),y.urlId=0,!0):!1}).map(function(y,h){var p=y.details;return p!=null&&p.fragments&&p.fragments.forEach(function(v){v.level=h}),y});this._levels=w,this.hls.trigger(T.Events.LEVELS_UPDATED,{levels:w})},f(l,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(A){var C,k=this._levels;if(k.length===0)return;if(this.currentLevelIndex===A&&(C=k[A])!==null&&C!==void 0&&C.details)return;if(A<0||A>=k.length){var w=A<0;if(this.hls.trigger(T.Events.ERROR,{type:R.ErrorTypes.OTHER_ERROR,details:R.ErrorDetails.LEVEL_SWITCH_ERROR,level:A,fatal:w,reason:"invalid level idx"}),w)return;A=Math.min(A,k.length-1)}this.clearTimer();var y=this.currentLevelIndex,h=k[y],p=k[A];this.log("switching to level "+A+" from "+y),this.currentLevelIndex=A;var v=o({},p,{level:A,maxBitrate:p.maxBitrate,uri:p.uri,urlId:p.urlId});delete v._urlId,this.hls.trigger(T.Events.LEVEL_SWITCHING,v);var _=p.details;if(!_||_.live){var E=this.switchParams(p.uri,h==null?void 0:h.details);this.loadPlaylist(E)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(A){this.manualLevelIndex=A,this._startLevel===void 0&&(this._startLevel=A),A!==-1&&(this.level=A)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(A){this._firstLevel=A}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var A=this.hls.config.startLevel;return A!==void 0?A:this._firstLevel}else return this._startLevel},set:function(A){this._startLevel=A}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(A){this.level=A,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=A)}}]),l}(t.default)},"./src/controller/level-helper.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"addGroupId",function(){return R}),I.d(B,"assignTrackIdsByGroup",function(){return P}),I.d(B,"updatePTS",function(){return m}),I.d(B,"updateFragPTSDTS",function(){return b}),I.d(B,"mergeDetails",function(){return o}),I.d(B,"mapPartIntersection",function(){return u}),I.d(B,"mapFragmentIntersection",function(){return f}),I.d(B,"adjustSliding",function(){return a}),I.d(B,"addSliding",function(){return i}),I.d(B,"computeReloadInterval",function(){return d}),I.d(B,"getFragmentWithSN",function(){return s}),I.d(B,"getPartWith",function(){return n});var F=I("./src/polyfills/number.ts"),T=I("./src/utils/logger.ts");function R(l,c,x){switch(c){case"audio":l.audioGroupIds||(l.audioGroupIds=[]),l.audioGroupIds.push(x);break;case"text":l.textGroupIds||(l.textGroupIds=[]),l.textGroupIds.push(x);break}}function P(l){var c={};l.forEach(function(x){var A=x.groupId||"";x.id=c[A]=c[A]||0,c[A]++})}function m(l,c,x){var A=l[c],C=l[x];t(A,C)}function t(l,c){var x=c.startPTS;if(Object(F.isFiniteNumber)(x)){var A=0,C;c.sn>l.sn?(A=x-l.start,C=l):(A=l.start-x,C=c),C.duration!==A&&(C.duration=A)}else if(c.sn>l.sn){var k=l.cc===c.cc;k&&l.minEndPTS?c.start=l.start+(l.minEndPTS-l.start):c.start=l.start+l.duration}else c.start=Math.max(l.start-c.duration,0)}function b(l,c,x,A,C,k){var w=A-x;w<=0&&(T.logger.warn("Fragment should have a positive duration",c),A=x+c.duration,k=C+c.duration);var y=x,h=A,p=c.startPTS,v=c.endPTS;if(Object(F.isFiniteNumber)(p)){var _=Math.abs(p-x);Object(F.isFiniteNumber)(c.deltaPTS)?c.deltaPTS=Math.max(_,c.deltaPTS):c.deltaPTS=_,y=Math.max(x,p),x=Math.min(x,p),C=Math.min(C,c.startDTS),h=Math.min(A,v),A=Math.max(A,v),k=Math.max(k,c.endDTS)}c.duration=A-x;var E=x-c.start;c.appendedPTS=A,c.start=c.startPTS=x,c.maxStartPTS=y,c.startDTS=C,c.endPTS=A,c.minEndPTS=h,c.endDTS=k;var g=c.sn;if(!l||gl.endSN)return 0;var j,U=g-l.startSN,S=l.fragments;for(S[U]=c,j=U;j>0;j--)t(S[j],S[j-1]);for(j=U;j=0;C--){var k=A[C].initSegment;if(k){x=k;break}}l.fragmentHint&&delete l.fragmentHint.endPTS;var w=0,y;if(f(l,c,function(j,U){j.relurl&&(w=j.cc-U.cc),Object(F.isFiniteNumber)(j.startPTS)&&Object(F.isFiniteNumber)(j.endPTS)&&(U.start=U.startPTS=j.startPTS,U.startDTS=j.startDTS,U.appendedPTS=j.appendedPTS,U.maxStartPTS=j.maxStartPTS,U.endPTS=j.endPTS,U.endDTS=j.endDTS,U.minEndPTS=j.minEndPTS,U.duration=j.endPTS-j.startPTS,U.duration&&(y=U),c.PTSKnown=c.alignedSliding=!0),U.elementaryStreams=j.elementaryStreams,U.loader=j.loader,U.stats=j.stats,U.urlId=j.urlId,j.initSegment&&(U.initSegment=j.initSegment,x=j.initSegment)}),x){var h=c.fragmentHint?c.fragments.concat(c.fragmentHint):c.fragments;h.forEach(function(j){var U;(!j.initSegment||j.initSegment.relurl===((U=x)===null||U===void 0?void 0:U.relurl))&&(j.initSegment=x)})}if(c.skippedSegments&&(c.deltaUpdateFailed=c.fragments.some(function(j){return!j}),c.deltaUpdateFailed)){T.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var p=c.skippedSegments;p--;)c.fragments.shift();c.startSN=c.fragments[0].sn,c.startCC=c.fragments[0].cc}var v=c.fragments;if(w){T.logger.warn("discontinuity sliding from playlist, take drift into account");for(var _=0;_=A.length)return;i(c,A[x].start)}function i(l,c){if(c){for(var x=l.fragments,A=l.skippedSegments;A0&&C0&&h===-1&&(this.log("Override startPosition with lastCurrentTime @"+p.toFixed(3)),h=p),this.state=T.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=h,this.tick()}else this._forceStartLoad=!0,this.state=T.State.STOPPED},w.stopLoad=function(){this._forceStartLoad=!1,C.prototype.stopLoad.call(this)},w.doTick=function(){switch(this.state){case T.State.IDLE:this.doTickIdle();break;case T.State.WAITING_LEVEL:{var h,p=this.levels,v=this.level,_=p==null||((h=p[v])===null||h===void 0)?void 0:h.details;if(_&&(!_.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(_))break;this.state=T.State.IDLE;break}break}case T.State.FRAG_LOADING_WAITING_RETRY:{var E,g=self.performance.now(),j=this.retryDate;(!j||g>=j||(E=this.media)!==null&&E!==void 0&&E.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=T.State.IDLE)}break;default:break}this.onTickEnd()},w.onTickEnd=function(){C.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},w.doTickIdle=function(){var h,p,v=this.hls,_=this.levelLastLoaded,E=this.levels,g=this.media,j=v.config,U=v.nextLoadLevel;if(_===null||!g&&(this.startFragRequested||!j.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!E||!E[U])return;var S=E[U];this.level=v.nextLoadLevel=U;var z=S.details;if(!z||this.state===T.State.WAITING_LEVEL||z.live&&this.levelLastLoaded!==U){this.state=T.State.WAITING_LEVEL;return}var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:g,b.PlaylistLevelType.MAIN);if(H===null)return;var M=H.len,V=this.getMaxBufferLength(S.maxBitrate);if(M>=V)return;if(this._streamEnded(H,z)){var K={};this.altAudio&&(K.type="video"),this.hls.trigger(P.Events.BUFFER_EOS,K),this.state=T.State.ENDED;return}var $=H.end,Z=this.getNextFragment($,z);if(this.couldBacktrack&&!this.fragPrevious&&Z&&Z.sn!=="initSegment"){var me=Z.sn-z.startSN;me>1&&(Z=z.fragments[me-1],this.fragmentTracker.removeFragment(Z))}if(Z&&this.fragmentTracker.getState(Z)===t.FragmentState.OK&&this.nextLoadPosition>$){var oe=this.audioOnly&&!this.altAudio?o.ElementaryStreamTypes.AUDIO:o.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(g,oe,b.PlaylistLevelType.MAIN),Z=this.getNextFragment(this.nextLoadPosition,z)}if(!Z)return;Z.initSegment&&!Z.initSegment.data&&!this.bitrateTest&&(Z=Z.initSegment),((h=Z.decryptdata)===null||h===void 0?void 0:h.keyFormat)==="identity"&&!((p=Z.decryptdata)!==null&&p!==void 0&&p.key)?this.loadKey(Z,z):this.loadFragment(Z,z,$)},w.loadFragment=function(h,p,v){var _,E=this.fragmentTracker.getState(h);if(this.fragCurrent=h,E===t.FragmentState.BACKTRACKED){var g=this.fragmentTracker.getBacktrackData(h);if(g){this._handleFragmentLoadProgress(g),this._handleFragmentLoadComplete(g);return}else E=t.FragmentState.NOT_LOADED}E===t.FragmentState.NOT_LOADED||E===t.FragmentState.PARTIAL?h.sn==="initSegment"?this._loadInitSegment(h):this.bitrateTest?(h.bitrateTest=!0,this.log("Fragment "+h.sn+" of level "+h.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(h)):(this.startFragRequested=!0,C.prototype.loadFragment.call(this,h,p,v)):E===t.FragmentState.APPENDING?this.reduceMaxBufferLength(h.duration)&&this.fragmentTracker.removeFragment(h):((_=this.media)===null||_===void 0?void 0:_.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},w.getAppendedFrag=function(h){var p=this.fragmentTracker.getAppendedFrag(h,b.PlaylistLevelType.MAIN);return p&&"fragment"in p?p.fragment:p},w.getBufferedFrag=function(h){return this.fragmentTracker.getBufferedFrag(h,b.PlaylistLevelType.MAIN)},w.followingBufferedFrag=function(h){return h?this.getBufferedFrag(h.end+.5):null},w.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},w.nextLevelSwitch=function(){var h=this.levels,p=this.media;if(p!=null&&p.readyState){var v,_=this.getAppendedFrag(p.currentTime);if(_&&_.start>1&&this.flushMainBuffer(0,_.start-1),!p.paused&&h){var E=this.hls.nextLoadLevel,g=h[E],j=this.fragLastKbps;j&&this.fragCurrent?v=this.fragCurrent.duration*g.maxBitrate/(1e3*j)+1:v=0}else v=0;var U=this.getBufferedFrag(p.currentTime+v);if(U){var S=this.followingBufferedFrag(U);if(S){this.abortCurrentFrag();var z=S.maxStartPTS?S.maxStartPTS:S.start,H=S.duration,M=Math.max(U.end,z+Math.min(Math.max(H-this.config.maxFragLookUpTolerance,H*.5),H*.75));this.flushMainBuffer(M,Number.POSITIVE_INFINITY)}}}},w.abortCurrentFrag=function(){var h=this.fragCurrent;this.fragCurrent=null,h!=null&&h.loader&&h.loader.abort(),this.state===T.State.KEY_LOADING&&(this.state=T.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},w.flushMainBuffer=function(h,p){C.prototype.flushMainBuffer.call(this,h,p,this.altAudio?"video":null)},w.onMediaAttached=function(h,p){C.prototype.onMediaAttached.call(this,h,p);var v=p.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),v.addEventListener("playing",this.onvplaying),v.addEventListener("seeked",this.onvseeked),this.gapController=new a.default(this.config,v,this.fragmentTracker,this.hls)},w.onMediaDetaching=function(){var h=this.media;h&&(h.removeEventListener("playing",this.onvplaying),h.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),C.prototype.onMediaDetaching.call(this)},w.onMediaPlaying=function(){this.tick()},w.onMediaSeeked=function(){var h=this.media,p=h?h.currentTime:null;Object(F.isFiniteNumber)(p)&&this.log("Media seeked to "+p.toFixed(3)),this.tick()},w.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(P.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},w.onManifestParsed=function(h,p){var v=!1,_=!1,E;p.levels.forEach(function(g){E=g.audioCodec,E&&(E.indexOf("mp4a.40.2")!==-1&&(v=!0),E.indexOf("mp4a.40.5")!==-1&&(_=!0))}),this.audioCodecSwitch=v&&_&&!Object(R.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=p.levels,this.startFragRequested=!1},w.onLevelLoading=function(h,p){var v=this.levels;if(!v||this.state!==T.State.IDLE)return;var _=v[p.level];(!_.details||_.details.live&&this.levelLastLoaded!==p.level||this.waitForCdnTuneIn(_.details))&&(this.state=T.State.WAITING_LEVEL)},w.onLevelLoaded=function(h,p){var v,_=this.levels,E=p.level,g=p.details,j=g.totalduration;if(!_){this.warn("Levels were reset while loading level "+E);return}this.log("Level "+E+" loaded ["+g.startSN+","+g.endSN+"], cc ["+g.startCC+", "+g.endCC+"] duration:"+j);var U=this.fragCurrent;U&&(this.state===T.State.FRAG_LOADING||this.state===T.State.FRAG_LOADING_WAITING_RETRY)&&(U.level!==p.level&&U.loader&&(this.state=T.State.IDLE,U.loader.abort()));var S=_[E],z=0;if(g.live||(v=S.details)!==null&&v!==void 0&&v.live){if(g.fragments[0]||(g.deltaUpdateFailed=!0),g.deltaUpdateFailed)return;z=this.alignPlaylists(g,S.details)}if(S.details=g,this.levelLastLoaded=E,this.hls.trigger(P.Events.LEVEL_UPDATED,{details:g,level:E}),this.state===T.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(g))return;this.state=T.State.IDLE}this.startFragRequested?g.live&&this.synchronizeToLiveEdge(g):this.setStartPosition(g,z),this.tick()},w._handleFragmentLoadProgress=function(h){var p,v=h.frag,_=h.part,E=h.payload,g=this.levels;if(!g){this.warn("Levels were reset while fragment load was in progress. Fragment "+v.sn+" of level "+v.level+" will not be buffered");return}var j=g[v.level],U=j.details;if(!U){this.warn("Dropping fragment "+v.sn+" of level "+v.level+" after level details were reset");return}var S=j.videoCodec,z=U.PTSKnown||!U.live,H=(p=v.initSegment)===null||p===void 0?void 0:p.data,M=this._getAudioCodec(j),V=this.transmuxer=this.transmuxer||new u.default(this.hls,b.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),K=_?_.index:-1,$=K!==-1,Z=new f.ChunkMetadata(v.level,v.sn,v.stats.chunkCount,E.byteLength,K,$),me=this.initPTS[v.cc];V.push(E,H,M,S,v,_,U.totalduration,z,Z,me)},w.onAudioTrackSwitching=function(h,p){var v=this.altAudio,_=!!p.url,E=p.id;if(!_){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var g=this.fragCurrent;g!=null&&g.loader&&(this.log("Switching to main audio track, cancel main fragment load"),g.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var j=this.hls;v&&j.trigger(P.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),j.trigger(P.Events.AUDIO_TRACK_SWITCHED,{id:E})}},w.onAudioTrackSwitched=function(h,p){var v=p.id,_=!!this.hls.audioTracks[v].url;if(_){var E=this.videoBuffer;E&&this.mediaBuffer!==E&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=E)}this.altAudio=_,this.tick()},w.onBufferCreated=function(h,p){var v=p.tracks,_,E,g=!1;for(var j in v){var U=v[j];if(U.id==="main"){if(E=j,_=U,j==="video"){var S=v[j];S&&(this.videoBuffer=S.buffer)}}else g=!0}g&&_?(this.log("Alternate track found, use "+E+".buffered to schedule main fragment loading"),this.mediaBuffer=_.buffer):this.mediaBuffer=this.media},w.onFragBuffered=function(h,p){var v=p.frag,_=p.part;if(v&&v.type!==b.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(v)){this.warn("Fragment "+v.sn+(_?" p: "+_.index:"")+" of level "+v.level+" finished buffering, but was aborted. state: "+this.state),this.state===T.State.PARSED&&(this.state=T.State.IDLE);return}var E=_?_.stats:v.stats;this.fragLastKbps=Math.round(8*E.total/(E.buffering.end-E.loading.first)),v.sn!=="initSegment"&&(this.fragPrevious=v),this.fragBufferedComplete(v,_)},w.onError=function(h,p){switch(p.details){case i.ErrorDetails.FRAG_LOAD_ERROR:case i.ErrorDetails.FRAG_LOAD_TIMEOUT:case i.ErrorDetails.KEY_LOAD_ERROR:case i.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(b.PlaylistLevelType.MAIN,p);break;case i.ErrorDetails.LEVEL_LOAD_ERROR:case i.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==T.State.ERROR&&(p.fatal?(this.warn(""+p.details),this.state=T.State.ERROR):!p.levelRetry&&this.state===T.State.WAITING_LEVEL&&(this.state=T.State.IDLE));break;case i.ErrorDetails.BUFFER_FULL_ERROR:if(p.parent==="main"&&(this.state===T.State.PARSING||this.state===T.State.PARSED)){var v=!0,_=this.getFwdBufferInfo(this.media,b.PlaylistLevelType.MAIN);_&&_.len>.5&&(v=!this.reduceMaxBufferLength(_.len)),v&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},w.checkBuffer=function(){var h=this.media,p=this.gapController;if(!h||!p||!h.readyState)return;var v=m.BufferHelper.getBuffered(h);!this.loadedmetadata&&v.length?(this.loadedmetadata=!0,this.seekToStartPos()):p.poll(this.lastCurrentTime),this.lastCurrentTime=h.currentTime},w.onFragLoadEmergencyAborted=function(){this.state=T.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},w.onBufferFlushed=function(h,p){var v=p.type;if(v!==o.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var _=(v===o.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(_,v,b.PlaylistLevelType.MAIN)}},w.onLevelsUpdated=function(h,p){this.levels=p.levels},w.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},w.seekToStartPos=function(){var h=this.media,p=h.currentTime,v=this.startPosition;if(v>=0&&p0&&(g1&&h.seeking===!1){var v=h.currentTime;if(m.BufferHelper.isBuffered(h,v)?p=this.getAppendedFrag(v):m.BufferHelper.isBuffered(h,v+.1)&&(p=this.getAppendedFrag(v+.1)),p){var _=this.fragPlaying,E=p.level;(!_||p.sn!==_.sn||_.level!==E||p.urlId!==_.urlId)&&(this.hls.trigger(P.Events.FRAG_CHANGED,{frag:p}),(!_||_.level!==E)&&this.hls.trigger(P.Events.LEVEL_SWITCHED,{level:E}),this.fragPlaying=p)}}},n(k,[{key:"nextLevel",get:function(){var h=this.nextBufferedFrag;return h?h.level:-1}},{key:"currentLevel",get:function(){var h=this.media;if(h){var p=this.getAppendedFrag(h.currentTime);if(p)return p.level}return-1}},{key:"nextBufferedFrag",get:function(){var h=this.media;if(h){var p=this.getAppendedFrag(h.currentTime);return this.followingBufferedFrag(p)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),k}(T.default)},"./src/controller/subtitle-stream-controller.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"SubtitleStreamController",function(){return l});var F=I("./src/events.ts"),T=I("./src/utils/logger.ts"),R=I("./src/utils/buffer-helper.ts"),P=I("./src/controller/fragment-finders.ts"),m=I("./src/utils/discontinuities.ts"),t=I("./src/controller/level-helper.ts"),b=I("./src/controller/fragment-tracker.ts"),o=I("./src/controller/base-stream-controller.ts"),u=I("./src/types/loader.ts"),f=I("./src/types/level.ts");function a(c,x){for(var A=0;A=p[E].start&&_<=p[E].end){v=p[E];break}var g=y.start+y.duration;v?v.end=g:(v={start:_,end:g},p.push(v)),this.fragmentTracker.fragBuffered(y)},A.onBufferFlushing=function(k,w){var y=w.startOffset,h=w.endOffset;if(y===0&&h!==Number.POSITIVE_INFINITY){var p=this.currentTrackId,v=this.levels;if(!v.length||!v[p]||!v[p].details)return;var _=v[p].details,E=_.targetduration,g=h-E;if(g<=0)return;w.endOffsetSubtitles=Math.max(0,g),this.tracksBuffered.forEach(function(j){for(var U=0;U=_.length||p!==v||!E)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,h.live||(y=E.details)!==null&&y!==void 0&&y.live){var g=this.mainDetails;if(h.deltaUpdateFailed||!g)return;var j=g.fragments[0];if(!E.details)h.hasProgramDateTime&&g.hasProgramDateTime?Object(m.alignMediaPlaylistByPDT)(h,g):j&&Object(t.addSliding)(h,j.start);else{var U=this.alignPlaylists(h,E.details);U===0&&j&&Object(t.addSliding)(h,j.start)}}if(E.details=h,this.levelLastLoaded=p,this.tick(),h.live&&!this.fragCurrent&&this.media&&this.state===o.State.IDLE){var S=Object(P.findFragmentByPTS)(null,h.fragments,this.media.currentTime,0);S||(this.warn("Subtitle playlist not aligned with playback"),E.details=void 0)}},A._handleFragmentLoadComplete=function(k){var w=k.frag,y=k.payload,h=w.decryptdata,p=this.hls;if(this.fragContextChanged(w))return;if(y&&y.byteLength>0&&h&&h.key&&h.iv&&h.method==="AES-128"){var v=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(y),h.key.buffer,h.iv.buffer).then(function(_){var E=performance.now();p.trigger(F.Events.FRAG_DECRYPTED,{frag:w,payload:_,stats:{tstart:v,tdecrypt:E}})})}},A.doTick=function(){if(!this.media){this.state=o.State.IDLE;return}if(this.state===o.State.IDLE){var k,w=this.currentTrackId,y=this.levels;if(!y.length||!y[w]||!y[w].details)return;var h=y[w].details,p=h.targetduration,v=this.config,_=this.media,E=R.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,_.currentTime-p,v.maxBufferHole),g=E.end,j=E.len,U=this.getMaxBufferLength()+p;if(j>U)return;console.assert(h,"Subtitle track details are defined on idle subtitle stream controller tick");var S=h.fragments,z=S.length,H=h.edge,M,V=this.fragPrevious;if(g-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},d.pollTrackChange=function(n){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,n)},d.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var n=f(this.media.textTracks);n.forEach(function(l){Object(T.clearCurrentCues)(l)}),this.subtitleTrack=-1,this.media=null},d.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},d.onManifestParsed=function(n,l){this.tracks=l.subtitleTracks},d.onSubtitleTrackLoaded=function(n,l){var c=l.id,x=l.details,A=this.trackId,C=this.tracksInGroup[A];if(!C){this.warn("Invalid subtitle track id "+c);return}var k=C.details;C.details=l.details,this.log("subtitle track "+c+" loaded ["+x.startSN+"-"+x.endSN+"]"),c===this.trackId&&(this.retryCount=0,this.playlistLoaded(c,l,k))},d.onLevelLoading=function(n,l){this.switchLevel(l.level)},d.onLevelSwitching=function(n,l){this.switchLevel(l.level)},d.switchLevel=function(n){var l=this.hls.levels[n];if(!(l!=null&&l.textGroupIds))return;var c=l.textGroupIds[l.urlId];if(this.groupId!==c){var x=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,A=this.tracks.filter(function(w){return!c||w.groupId===c});this.tracksInGroup=A;var C=this.findTrackId(x==null?void 0:x.name)||this.findTrackId();this.groupId=c;var k={subtitleTracks:A};this.log("Updating subtitle tracks, "+A.length+' track(s) found in "'+c+'" group-id'),this.hls.trigger(F.Events.SUBTITLE_TRACKS_UPDATED,k),C!==-1&&this.setSubtitleTrack(C,x)}},d.findTrackId=function(n){for(var l=this.tracksInGroup,c=0;c=x.length)return;this.clearTimer();var A=x[n];if(this.log("Switching to subtitle track "+n),this.trackId=n,A){var C=A.id,k=A.groupId,w=k===void 0?"":k,y=A.name,h=A.type,p=A.url;this.hls.trigger(F.Events.SUBTITLE_TRACK_SWITCH,{id:C,groupId:w,name:y,type:h,url:p});var v=this.switchParams(A.url,l==null?void 0:l.details);this.loadPlaylist(v)}else this.hls.trigger(F.Events.SUBTITLE_TRACK_SWITCH,{id:n})},d.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var n=-1,l=f(this.media.textTracks),c=0;c=0&&(h[0]=Math.min(h[0],x),h[1]=Math.max(h[1],A),w=!0,p/(A-x)>.5))return}if(w||k.push([x,A]),this.config.renderTextTracksNatively){var v=this.captionsTracks[c];this.Cues.newCue(v,x,A,C)}else{var _=this.Cues.newCue(null,x,A,C);this.hls.trigger(T.Events.CUES_PARSED,{type:"captions",cues:_,track:c})}},n.onInitPtsFound=function(c,x){var A=this,C=x.frag,k=x.id,w=x.initPTS,y=x.timescale,h=this.unparsedVttFrags;k==="main"&&(this.initPTS[C.cc]=w,this.timescale[C.cc]=y),h.length&&(this.unparsedVttFrags=[],h.forEach(function(p){A.onFragLoaded(T.Events.FRAG_LOADED,p)}))},n.getExistingTrack=function(c){var x=this.media;if(x)for(var A=0;A>>8^y&255^99,b[C]=y,o[y]=C;var h=A[C],p=A[h],v=A[p],_=A[y]*257^y*16843008;f[C]=_<<24|_>>>8,a[C]=_<<16|_>>>16,i[C]=_<<8|_>>>24,d[C]=_,_=v*16843009^p*65537^h*257^C*16843008,n[y]=_<<24|_>>>8,l[y]=_<<16|_>>>16,c[y]=_<<8|_>>>24,x[y]=_,C?(C=h^A[A[A[v^h]]],k^=A[A[k]]):C=k=1}},m.expandKey=function(b){for(var o=this.uint8ArrayToUint32Array_(b),u=!0,f=0;f>>6)+1;var _=(c[x+2]&60)>>>2;if(_>v.length-1){l.trigger(R.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+_});return}return w=(c[x+2]&1)<<2,w|=(c[x+3]&192)>>>6,F.logger.log("manifest codec:"+A+", ADTS type:"+C+", samplingIndex:"+_),/firefox/i.test(h)?_>=6?(C=5,y=new Array(4),k=_-3):(C=2,y=new Array(2),k=_):h.indexOf("android")!==-1?(C=2,y=new Array(2),k=_):(C=5,y=new Array(4),A&&(A.indexOf("mp4a.40.29")!==-1||A.indexOf("mp4a.40.5")!==-1)||!A&&_>=6?k=_-3:((A&&A.indexOf("mp4a.40.2")!==-1&&(_>=6&&w===1||/vivaldi/i.test(h))||!A&&w===1)&&(C=2,y=new Array(2)),k=_)),y[0]=C<<3,y[0]|=(_&14)>>1,y[1]|=(_&1)<<7,y[1]|=w<<3,C===5&&(y[1]|=(k&14)>>1,y[2]=(k&1)<<7,y[2]|=2<<2,y[3]=0),{config:y,samplerate:v[_],channelCount:w,codec:"mp4a.40."+C,manifestCodec:p}}function m(l,c){return l[c]===255&&(l[c+1]&246)===240}function t(l,c){return l[c+1]&1?7:9}function b(l,c){return(l[c+3]&3)<<11|l[c+4]<<3|(l[c+5]&224)>>>5}function o(l,c){return c+5=l.length)return!1;var A=b(l,c);if(A<=x)return!1;var C=c+A;return C===l.length||u(l,C)}return!1}function i(l,c,x,A,C){if(!l.samplerate){var k=P(c,x,A,C);if(!k)return;l.config=k.config,l.samplerate=k.samplerate,l.channelCount=k.channelCount,l.codec=k.codec,l.manifestCodec=k.manifestCodec,F.logger.log("parsed codec:"+l.codec+", rate:"+k.samplerate+", channels:"+k.channelCount)}}function d(l){return 1024*9e4/l}function s(l,c,x,A,C){var k=t(l,c),w=b(l,c);if(w-=k,w>0){var y=x+A*C;return{headerLength:k,frameLength:w,stamp:y}}}function n(l,c,x,A,C){var k=d(l.samplerate),w=s(c,x,A,C,k);if(w){var y=w.frameLength,h=w.headerLength,p=w.stamp,v=h+y,_=Math.max(0,x+v-c.length),E;_?(E=new Uint8Array(v-h),E.set(c.subarray(x+h,c.length),0)):E=c.subarray(x+h,x+v);var g={unit:E,pts:p};return _||l.samples.push(g),{sample:g,length:v,missing:_}}}},"./src/demux/base-audio-demuxer.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"initPTSFn",function(){return b});var F=I("./src/polyfills/number.ts"),T=I("./src/demux/id3.ts"),R=I("./src/demux/dummy-demuxed-track.ts"),P=I("./src/utils/mp4-tools.ts"),m=I("./src/utils/typed-array.ts"),t=function(){function o(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var u=o.prototype;return u.resetInitSegment=function(a,i,d){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},u.resetTimeStamp=function(){},u.resetContiguity=function(){},u.canParse=function(a,i){return!1},u.appendFrame=function(a,i,d){},u.demux=function(a,i){this.cachedData&&(a=Object(P.appendUint8Array)(this.cachedData,a),this.cachedData=null);var d=T.getID3Data(a,0),s=d?d.length:0,n,l,c=this._audioTrack,x=this._id3Track,A=d?T.getTimeStamp(d):void 0,C=a.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=b(A,i)),d&&d.length>0&&x.samples.push({pts:this.initPTS,dts:this.initPTS,data:d}),l=this.initPTS;st?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,b=t>>3,t-=b>>3,this.bytesAvailable-=b,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},P.readBits=function(t){var b=Math.min(this.bitsAvailable,t),o=this.word>>>32-b;return t>32&&F.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=b,this.bitsAvailable>0?this.word<<=b:this.bytesAvailable>0&&this.loadWord(),b=t-b,b>0&&this.bitsAvailable?o<>>t)!==0)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},P.skipUEG=function(){this.skipBits(1+this.skipLZ())},P.skipEG=function(){this.skipBits(1+this.skipLZ())},P.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},P.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},P.readBoolean=function(){return this.readBits(1)===1},P.readUByte=function(){return this.readBits(8)},P.readUShort=function(){return this.readBits(16)},P.readUInt=function(){return this.readBits(32)},P.skipScalingList=function(t){for(var b=8,o=8,u,f=0;f0?C.subarray(w,w+y):void 0},P=function(C,k){var w=0;return w=(C[k]&127)<<21,w|=(C[k+1]&127)<<14,w|=(C[k+2]&127)<<7,w|=C[k+3]&127,w},m=function(C,k){return F(C,k)&&P(C,k+6)+10<=C.length-k},t=function(C){for(var k=u(C),w=0;w>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:g+=String.fromCharCode(v);break;case 12:case 13:_=C[j++],g+=String.fromCharCode((v&31)<<6|_&63);break;case 14:_=C[j++],E=C[j++],g+=String.fromCharCode((v&15)<<12|(_&63)<<6|(E&63)<<0);break;default:}}return g},l={decodeTextFrame:i},c;function x(){return!c&&typeof self.TextDecoder!="undefined"&&(c=new self.TextDecoder("utf-8")),c}},"./src/demux/mp3demuxer.ts":function(Y,B,I){"use strict";I.r(B);var F=I("./src/demux/base-audio-demuxer.ts"),T=I("./src/demux/id3.ts"),R=I("./src/utils/logger.ts"),P=I("./src/demux/mpegaudio.ts");function m(o,u){o.prototype=Object.create(u.prototype),o.prototype.constructor=o,t(o,u)}function t(o,u){return t=Object.setPrototypeOf||function(a,i){return a.__proto__=i,a},t(o,u)}var b=function(o){m(u,o);function u(){return o.apply(this,arguments)||this}var f=u.prototype;return f.resetInitSegment=function(i,d,s){o.prototype.resetInitSegment.call(this,i,d,s),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:i,duration:s,inputTimeScale:9e4,dropped:0}},u.probe=function(i){if(!i)return!1;for(var d=T.getID3Data(i,0)||[],s=d.length,n=i.length;s0},m.demux=function(b){var o=b,u=Object(T.dummyTrack)();if(this.config.progressive){this.remainderData&&(o=Object(F.appendUint8Array)(this.remainderData,b));var f=Object(F.segmentValidRange)(o);this.remainderData=f.remainder,u.samples=f.valid||new Uint8Array}else u.samples=o;return{audioTrack:Object(T.dummyTrack)(),avcTrack:u,id3Track:Object(T.dummyTrack)(),textTrack:Object(T.dummyTrack)()}},m.flush=function(){var b=Object(T.dummyTrack)();return b.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(T.dummyTrack)(),avcTrack:b,id3Track:Object(T.dummyTrack)(),textTrack:Object(T.dummyTrack)()}},m.demuxSampleAes=function(b,o,u){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},m.destroy=function(){},P}();R.minProbeByteLength=1024,B.default=R},"./src/demux/mpegaudio.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"appendFrame",function(){return t}),I.d(B,"parseHeader",function(){return b}),I.d(B,"isHeaderPattern",function(){return o}),I.d(B,"isHeader",function(){return u}),I.d(B,"canParse",function(){return f}),I.d(B,"probe",function(){return a});var F=null,T=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],R=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],P=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],m=[0,1,1,4];function t(i,d,s,n,l){if(s+24>d.length)return;var c=b(d,s);if(c&&s+c.frameLength<=d.length){var x=c.samplesPerFrame*9e4/c.sampleRate,A=n+l*x,C={unit:d.subarray(s,s+c.frameLength),pts:A,dts:A};return i.config=[],i.channelCount=c.channelCount,i.samplerate=c.sampleRate,i.samples.push(C),{sample:C,length:c.frameLength,missing:0}}}function b(i,d){var s=i[d+1]>>3&3,n=i[d+1]>>1&3,l=i[d+2]>>4&15,c=i[d+2]>>2&3;if(s!==1&&l!==0&&l!==15&&c!==3){var x=i[d+2]>>1&1,A=i[d+3]>>6,C=s===3?3-n:n===3?3:4,k=T[C*14+l-1]*1e3,w=s===3?0:s===2?1:2,y=R[w*3+c],h=A===3?1:2,p=P[s][n],v=m[n],_=p*8*v,E=Math.floor(p*k/y+x)*v;if(F===null){var g=navigator.userAgent||"",j=g.match(/Chrome\/(\d+)/i);F=j?parseInt(j[1]):0}var U=!!F&&F<=87;return U&&n===2&&k>=224e3&&A===0&&(i[d+3]=i[d+3]|128),{sampleRate:y,channelCount:h,frameLength:E,samplesPerFrame:_}}}function o(i,d){return i[d]===255&&(i[d+1]&224)===224&&(i[d+1]&6)!==0}function u(i,d){return d+1=b.length){u();return}if(b[o].unit.length<32)continue;var f=this.decrypter.isSync();if(this.decryptAacSample(b,o,u,f),!f)return}},m.getAvcEncryptedData=function(b){for(var o=Math.floor((b.length-48)/160)*16+16,u=new Int8Array(o),f=0,a=32;a<=b.length-16;a+=160,f+=16)u.set(b.subarray(a,a+16),f);return u},m.getAvcDecryptedUnit=function(b,o){for(var u=new Uint8Array(o),f=0,a=32;a<=b.length-16;a+=160,f+=16)b.set(u.subarray(f,f+16),a);return b},m.decryptAvcSample=function(b,o,u,f,a,i){var d=Object(T.discardEPB)(a.data),s=this.getAvcEncryptedData(d),n=this;this.decryptBuffer(s.buffer,function(l){a.data=n.getAvcDecryptedUnit(d,l),i||n.decryptAvcSamples(b,o,u+1,f)})},m.decryptAvcSamples=function(b,o,u,f){if(b instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;o++,u=0){if(o>=b.length){f();return}for(var a=b[o].units;!(u>=a.length);u++){var i=a[u];if(i.data.length<=48||i.type!==1&&i.type!==5)continue;var d=this.decrypter.isSync();if(this.decryptAvcSample(b,o,u,f,i,d),!d)return}}},P}();B.default=R},"./src/demux/transmuxer-interface.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return a});var F=I("./node_modules/webworkify-webpack/index.js"),T=I.n(F),R=I("./src/events.ts"),P=I("./src/demux/transmuxer.ts"),m=I("./src/utils/logger.ts"),t=I("./src/errors.ts"),b=I("./src/utils/mediasource-helper.ts"),o=I("./node_modules/eventemitter3/index.js"),u=I.n(o),f=Object(b.getMediaSource)()||{isTypeSupported:function(){return!1}},a=function(){function i(s,n,l,c){var x=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=s,this.id=n,this.onTransmuxComplete=l,this.onFlush=c;var A=s.config,C=function(p,v){v=v||{},v.frag=x.frag,v.id=x.id,s.trigger(p,v)};this.observer=new o.EventEmitter,this.observer.on(R.Events.FRAG_DECRYPTED,C),this.observer.on(R.Events.ERROR,C);var k={mp4:f.isTypeSupported("video/mp4"),mpeg:f.isTypeSupported("audio/mpeg"),mp3:f.isTypeSupported('audio/mp4; codecs="mp3"')},w=navigator.vendor;if(A.enableWorker&&typeof Worker!="undefined"){m.logger.log("demuxing in webworker");var y;try{y=this.worker=F("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),y.addEventListener("message",this.onwmsg),y.onerror=function(h){s.trigger(R.Events.ERROR,{type:t.ErrorTypes.OTHER_ERROR,details:t.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(h.message+" ("+h.filename+":"+h.lineno+")")})},y.postMessage({cmd:"init",typeSupported:k,vendor:w,id:n,config:JSON.stringify(A)})}catch(h){m.logger.warn("Error in worker:",h),m.logger.error("Error while initializing DemuxerWorker, fallback to inline"),y&&self.URL.revokeObjectURL(y.objectURL),this.transmuxer=new P.default(this.observer,k,A,w,n),this.worker=null}}else this.transmuxer=new P.default(this.observer,k,A,w,n)}var d=i.prototype;return d.destroy=function(){var n=this.worker;if(n)n.removeEventListener("message",this.onwmsg),n.terminate(),this.worker=null;else{var l=this.transmuxer;l&&(l.destroy(),this.transmuxer=null)}var c=this.observer;c&&c.removeAllListeners(),this.observer=null},d.push=function(n,l,c,x,A,C,k,w,y,h){var p=this;y.transmuxing.start=self.performance.now();var v=this.transmuxer,_=this.worker,E=C?C.start:A.start,g=A.decryptdata,j=this.frag,U=!(j&&A.cc===j.cc),S=!(j&&y.level===j.level),z=j?y.sn-j.sn:-1,H=this.part?y.part-this.part.index:1,M=!S&&(z===1||z===0&&H===1),V=self.performance.now();(S||z||A.stats.parsing.start===0)&&(A.stats.parsing.start=V),C&&(H||!M)&&(C.stats.parsing.start=V);var K=new P.TransmuxState(U,M,w,S,E);if(!M||U){m.logger.log("[transmuxer-interface, "+A.type+"]: Starting new transmux session for sn: "+y.sn+" p: "+y.part+" level: "+y.level+" id: "+y.id+` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(i,d){if(!i)return;if(typeof i=="string")return u(i,d);var s=Object.prototype.toString.call(i).slice(8,-1);if(s==="Object"&&i.constructor&&(s=i.constructor.name),s==="Map"||s==="Set")return Array.from(i);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return u(i,d)}function u(i,d){(d==null||d>i.length)&&(d=i.length);for(var s=0,n=new Array(d);sl&&(l=C.bitrate)}return l>0?l:NaN},d.getBufferLength=function(n){var l=this.hls.media,c=n===T.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!c||!l)return NaN;var x=R.BufferHelper.bufferInfo(c,l.currentTime,this.config.maxBufferHole);return x.len*1e3},d.createPlaylistLoader=function(){var n=this.config.pLoader,l=this.applyPlaylistData,c=n||this.config.loader;return function(){function x(C){this.loader=void 0,this.loader=new c(C)}var A=x.prototype;return A.destroy=function(){this.loader.destroy()},A.abort=function(){this.loader.abort()},A.load=function(k,w,y){l(k),this.loader.load(k,w,y)},t(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},d.createFragmentLoader=function(){var n=this.config.fLoader,l=this.applyFragmentData,c=n||this.config.loader;return function(){function x(C){this.loader=void 0,this.loader=new c(C)}var A=x.prototype;return A.destroy=function(){this.loader.destroy()},A.abort=function(){this.loader.abort()},A.load=function(k,w,y){l(k),this.loader.load(k,w,y)},t(x,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),x}()},i.uuid=function(){var n=URL.createObjectURL(new Blob),l=n.toString();return URL.revokeObjectURL(n),l.substr(l.lastIndexOf("/")+1)},i.serialize=function(n){for(var l=[],c=function(U){return!Number.isNaN(U)&&U!=null&&U!==""&&U!==!1},x=function(U){return Math.round(U)},A=function(U){return x(U/100)*100},C=function(U){return encodeURIComponent(U)},k={br:x,d:x,bl:A,dl:A,mtp:A,nor:C,rtp:A,tb:x},w=Object.keys(n||{}).sort(),y=b(w),h;!(h=y()).done;){var p=h.value,v=n[p];if(!c(v))continue;if(p==="v"&&v===1)continue;if(p=="pr"&&v===1)continue;var _=k[p];_&&(v=_(v));var E=typeof v,g=void 0;p==="ot"||p==="sf"||p==="st"?g=p+"="+v:E==="boolean"?g=p:E==="number"?g=p+"="+v:g=p+"="+JSON.stringify(v),l.push(g)}return l.join(",")},i.toHeaders=function(n){for(var l=Object.keys(n),c={},x=["Object","Request","Session","Status"],A=[{},{},{},{}],C={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},k=0,w=l;kb){this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var C=b-this._requestLicenseFailureCount+1;R.logger.warn("Retrying license request, "+C+" attempts left"),this._requestLicense(l,c)}break}},i._generateLicenseRequestChallenge=function(s,n){switch(s.mediaKeySystemDomain){case P.KeySystems.WIDEVINE:return n}throw new Error("unsupported key-system: "+s.mediaKeySystemDomain)},i._requestLicense=function(s,n){R.logger.log("Requesting content license for key-system");var l=this._mediaKeysList[0];if(!l){R.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var c=this.getLicenseServerUrl(l.mediaKeySystemDomain),x=this._createLicenseXhr(c,s,n);R.logger.log("Sending license request to URL: "+c);var A=this._generateLicenseRequestChallenge(l,s);x.send(A)}catch(C){R.logger.error("Failure requesting DRM license: "+C),this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},i.onMediaAttached=function(s,n){if(!this._emeEnabled)return;var l=n.media;this._media=l,l.addEventListener("encrypted",this._onMediaEncrypted)},i.onMediaDetached=function(){var s=this._media,n=this._mediaKeysList;if(!s)return;s.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(n.map(function(l){if(l.mediaKeysSession)return l.mediaKeysSession.close().catch(function(){})})).then(function(){return s.setMediaKeys(null)}).catch(function(){})},i.onManifestParsed=function(s,n){if(!this._emeEnabled)return;var l=n.levels.map(function(x){return x.audioCodec}).filter(function(x){return!!x}),c=n.levels.map(function(x){return x.videoCodec}).filter(function(x){return!!x});this._attemptKeySystemAccess(P.KeySystems.WIDEVINE,l,c)},t(a,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),a}();B.default=f},"./src/controller/fps-controller.ts":function(Y,B,I){"use strict";I.r(B);var F=I("./src/events.ts"),T=I("./src/utils/logger.ts"),R=function(){function P(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}var m=P.prototype;return m.setStreamController=function(b){this.streamController=b},m.registerListeners=function(){this.hls.on(F.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},m.unregisterListeners=function(){this.hls.off(F.Events.MEDIA_ATTACHING,this.onMediaAttaching)},m.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},m.onMediaAttaching=function(b,o){var u=this.hls.config;if(u.capLevelOnFPSDrop){var f=o.media instanceof self.HTMLVideoElement?o.media:null;this.media=f,f&&typeof f.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),u.fpsDroppedMonitoringPeriod)}},m.checkFPS=function(b,o,u){var f=performance.now();if(o){if(this.lastTime){var a=f-this.lastTime,i=u-this.lastDroppedFrames,d=o-this.lastDecodedFrames,s=1e3*i/a,n=this.hls;if(n.trigger(F.Events.FPS_DROP,{currentDropped:i,currentDecoded:d,totalDroppedFrames:u}),s>0&&i>n.config.fpsDroppedMonitoringThreshold*d){var l=n.currentLevel;T.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+l),l>0&&(n.autoLevelCapping===-1||n.autoLevelCapping>=l)&&(l=l-1,n.trigger(F.Events.FPS_DROP_LEVEL_CAPPING,{level:l,droppedLevel:n.currentLevel}),n.autoLevelCapping=l,this.streamController.nextLevelSwitch())}}this.lastTime=f,this.lastDroppedFrames=u,this.lastDecodedFrames=o}},m.checkFPSInterval=function(){var b=this.media;if(b)if(this.isVideoPlaybackQualityAvailable){var o=b.getVideoPlaybackQuality();this.checkFPS(b,o.totalVideoFrames,o.droppedVideoFrames)}else this.checkFPS(b,b.webkitDecodedFrameCount,b.webkitDroppedFrameCount)},P}();B.default=R},"./src/controller/fragment-finders.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"findFragmentByPDT",function(){return R}),I.d(B,"findFragmentByPTS",function(){return P}),I.d(B,"fragmentWithinToleranceTest",function(){return m}),I.d(B,"pdtWithinToleranceTest",function(){return t}),I.d(B,"findFragWithCC",function(){return b});var F=I("./src/polyfills/number.ts"),T=I("./src/utils/binary-search.ts");function R(o,u,f){if(u===null||!Array.isArray(o)||!o.length||!Object(F.isFiniteNumber)(u))return null;var a=o[0].programDateTime;if(u<(a||0))return null;var i=o[o.length-1].endProgramDateTime;if(u>=(i||0))return null;f=f||0;for(var d=0;do&&f.start?-1:0}function t(o,u,f){var a=Math.min(u,f.duration+(f.deltaPTS?f.deltaPTS:0))*1e3,i=f.endProgramDateTime||0;return i-a>o}function b(o,u){return T.default.search(o,function(f){return f.ccu?-1:0})}},"./src/controller/fragment-tracker.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"FragmentState",function(){return R}),I.d(B,"FragmentTracker",function(){return P});var F=I("./src/events.ts"),T=I("./src/types/loader.ts"),R;(function(b){b.NOT_LOADED="NOT_LOADED",b.BACKTRACKED="BACKTRACKED",b.APPENDING="APPENDING",b.PARTIAL="PARTIAL",b.OK="OK"})(R||(R={}));var P=function(){function b(u){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=u,this._registerListeners()}var o=b.prototype;return o._registerListeners=function(){var f=this.hls;f.on(F.Events.BUFFER_APPENDED,this.onBufferAppended,this),f.on(F.Events.FRAG_BUFFERED,this.onFragBuffered,this),f.on(F.Events.FRAG_LOADED,this.onFragLoaded,this)},o._unregisterListeners=function(){var f=this.hls;f.off(F.Events.BUFFER_APPENDED,this.onBufferAppended,this),f.off(F.Events.FRAG_BUFFERED,this.onFragBuffered,this),f.off(F.Events.FRAG_LOADED,this.onFragLoaded,this)},o.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},o.getAppendedFrag=function(f,a){if(a===T.PlaylistLevelType.MAIN){var i=this.activeFragment,d=this.activeParts;if(!i)return null;if(d)for(var s=d.length;s--;){var n=d[s],l=n?n.end:i.appendedPTS;if(n.start<=f&&l!==void 0&&f<=l)return s>9&&(this.activeParts=d.slice(s-9)),n}else if(i.start<=f&&i.appendedPTS!==void 0&&f<=i.appendedPTS)return i}return this.getBufferedFrag(f,a)},o.getBufferedFrag=function(f,a){for(var i=this.fragments,d=Object.keys(i),s=d.length;s--;){var n=i[d[s]];if((n==null?void 0:n.body.type)===a&&n.buffered){var l=n.body;if(l.start<=f&&f<=l.end)return l}}return null},o.detectEvictedFragments=function(f,a,i){var d=this;Object.keys(this.fragments).forEach(function(s){var n=d.fragments[s];if(!n)return;if(!n.buffered){n.body.type===i&&d.removeFragment(n.body);return}var l=n.range[f];if(!l)return;l.time.some(function(c){var x=!d.isTimeBuffered(c.startPTS,c.endPTS,a);return x&&d.removeFragment(n.body),x})})},o.detectPartialFragments=function(f){var a=this,i=this.timeRanges,d=f.frag,s=f.part;if(!i||d.sn==="initSegment")return;var n=t(d),l=this.fragments[n];if(!l)return;Object.keys(i).forEach(function(c){var x=d.elementaryStreams[c];if(!x)return;var A=i[c],C=s!==null||x.partial===!0;l.range[c]=a.getBufferedTimes(d,s,C,A)}),l.backtrack=l.loaded=null,Object.keys(l.range).length?l.buffered=!0:this.removeFragment(l.body)},o.fragBuffered=function(f){var a=t(f),i=this.fragments[a];i&&(i.backtrack=i.loaded=null,i.buffered=!0)},o.getBufferedTimes=function(f,a,i,d){for(var s={time:[],partial:i},n=a?a.start:f.start,l=a?a.end:f.end,c=f.minEndPTS||l,x=f.maxStartPTS||n,A=0;A=C&&c<=k){s.time.push({startPTS:Math.max(n,d.start(A)),endPTS:Math.min(l,d.end(A))});break}else if(nC)s.partial=!0,s.time.push({startPTS:Math.max(n,d.start(A)),endPTS:Math.min(l,d.end(A))});else if(l<=C)break}return s},o.getPartialFragment=function(f){var a=null,i,d,s,n=0,l=this.bufferPadding,c=this.fragments;return Object.keys(c).forEach(function(x){var A=c[x];if(!A)return;m(A)&&(d=A.body.start-l,s=A.body.end+l,f>=d&&f<=s&&(i=Math.min(f-d,s-f),n<=i&&(a=A.body,n=i)))}),a},o.getState=function(f){var a=t(f),i=this.fragments[a];return i?i.buffered?m(i)?R.PARTIAL:R.OK:i.backtrack?R.BACKTRACKED:R.APPENDING:R.NOT_LOADED},o.backtrack=function(f,a){var i=t(f),d=this.fragments[i];if(!d||d.backtrack)return null;var s=d.backtrack=a||d.loaded;return d.loaded=null,s},o.getBacktrackData=function(f){var a=t(f),i=this.fragments[a];if(i){var d,s=i.backtrack;if(s!=null&&(d=s.payload)!==null&&d!==void 0&&d.byteLength)return s;this.removeFragment(f)}return null},o.isTimeBuffered=function(f,a,i){for(var d,s,n=0;n=d&&a<=s)return!0;if(a<=d)return!1}return!1},o.onFragLoaded=function(f,a){var i=a.frag,d=a.part;if(i.sn==="initSegment"||i.bitrateTest||d)return;var s=t(i);this.fragments[s]={body:i,loaded:a,backtrack:null,buffered:!1,range:Object.create(null)}},o.onBufferAppended=function(f,a){var i=this,d=a.frag,s=a.part,n=a.timeRanges;if(d.type===T.PlaylistLevelType.MAIN)if(this.activeFragment=d,s){var l=this.activeParts;l||(this.activeParts=l=[]),l.push(s)}else this.activeParts=null;this.timeRanges=n,Object.keys(n).forEach(function(c){var x=n[c];if(i.detectEvictedFragments(c,x),!s)for(var A=0;Af&&d.removeFragment(l)}})},o.removeFragment=function(f){var a=t(f);f.stats.loaded=0,f.clearElementaryStreamInfo(),delete this.fragments[a]},o.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},b}();function m(b){var o,u;return b.buffered&&(((o=b.range.video)===null||o===void 0?void 0:o.partial)||((u=b.range.audio)===null||u===void 0?void 0:u.partial))}function t(b){return b.type+"_"+b.level+"_"+b.urlId+"_"+b.sn}},"./src/controller/gap-controller.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"STALL_MINIMUM_DURATION_MS",function(){return m}),I.d(B,"MAX_START_GAP_JUMP",function(){return t}),I.d(B,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return b}),I.d(B,"SKIP_BUFFER_RANGE_START",function(){return o}),I.d(B,"default",function(){return u});var F=I("./src/utils/buffer-helper.ts"),T=I("./src/errors.ts"),R=I("./src/events.ts"),P=I("./src/utils/logger.ts"),m=250,t=2,b=.1,o=.05,u=function(){function f(i,d,s,n){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=i,this.media=d,this.fragmentTracker=s,this.hls=n}var a=f.prototype;return a.destroy=function(){this.hls=this.fragmentTracker=this.media=null},a.poll=function(d){var s=this.config,n=this.media,l=this.stalled,c=n.currentTime,x=n.seeking,A=this.seeking&&!x,C=!this.seeking&&x;if(this.seeking=x,c!==d){if(this.moved=!0,l!==null){if(this.stallReported){var k=self.performance.now()-l;P.logger.warn("playback not stuck anymore @"+c+", after "+Math.round(k)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((C||A)&&(this.stalled=null),n.paused||n.ended||n.playbackRate===0||!F.BufferHelper.getBuffered(n).length)return;var w=F.BufferHelper.bufferInfo(n,c,0),y=w.len>0,h=w.nextStart||0;if(!y&&!h)return;if(x){var p=w.len>t,v=!h||h-c>t&&!this.fragmentTracker.getPartialFragment(c);if(p||v)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var _,E=Math.max(h,w.start||0)-c,g=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,j=g==null||((_=g.details)===null||_===void 0)?void 0:_.live,U=j?g.details.targetduration*2:t;if(E>0&&E<=U){this._trySkipBufferHole(null);return}}var S=self.performance.now();if(l===null){this.stalled=S;return}var z=S-l;!x&&z>=m&&this._reportStall(w.len);var H=F.BufferHelper.bufferInfo(n,c,s.maxBufferHole);this._tryFixBufferStall(H,z)},a._tryFixBufferStall=function(d,s){var n=this.config,l=this.fragmentTracker,c=this.media,x=c.currentTime,A=l.getPartialFragment(x);if(A){var C=this._trySkipBufferHole(A);if(C)return}d.len>n.maxBufferHole&&s>n.highBufferWatchdogPeriod*1e3&&(P.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},a._reportStall=function(d){var s=this.hls,n=this.media,l=this.stallReported;l||(this.stallReported=!0,P.logger.warn("Playback stalling at @"+n.currentTime+" due to low buffer (buffer="+d+")"),s.trigger(R.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:d}))},a._trySkipBufferHole=function(d){for(var s=this.config,n=this.hls,l=this.media,c=l.currentTime,x=0,A=F.BufferHelper.getBuffered(l),C=0;C=x&&c.05&&this.forwardBufferLength>1){var C=Math.min(2,Math.max(1,n)),k=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20;f.playbackRate=Math.min(C,Math.max(1,k))}else f.playbackRate!==1&&f.playbackRate!==0&&(f.playbackRate=1)},o.estimateLiveEdge=function(){var f=this.levelDetails;return f===null?null:f.edge+f.age},o.computeLatency=function(){var f=this.estimateLiveEdge();return f===null?null:f-this.currentTime},m(b,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var f=this.config,a=this.levelDetails;return f.liveMaxLatencyDuration!==void 0?f.liveMaxLatencyDuration:a?f.liveMaxLatencyDurationCount*a.targetduration:0}},{key:"targetLatency",get:function(){var f=this.levelDetails;if(f===null)return null;var a=f.holdBack,i=f.partHoldBack,d=f.targetduration,s=this.config,n=s.liveSyncDuration,l=s.liveSyncDurationCount,c=s.lowLatencyMode,x=this.hls.userConfig,A=c&&i||a;(x.liveSyncDuration||x.liveSyncDurationCount||A===0)&&(A=n!==void 0?n:l*d);var C=d,k=1;return A+Math.min(this.stallCount*k,C)}},{key:"liveSyncPosition",get:function(){var f=this.estimateLiveEdge(),a=this.targetLatency,i=this.levelDetails;if(f===null||a===null||i===null)return null;var d=i.edge,s=f-a-this.edgeStalled,n=d-i.totalduration,l=d-(this.config.lowLatencyMode&&i.partTarget||i.targetduration);return Math.min(Math.max(n,s),l)}},{key:"drift",get:function(){var f=this.levelDetails;return f===null?1:f.drift}},{key:"edgeStalled",get:function(){var f=this.levelDetails;if(f===null)return 0;var a=(this.config.lowLatencyMode&&f.partTarget||f.targetduration)*3;return Math.max(f.age-a,0)}},{key:"forwardBufferLength",get:function(){var f=this.media,a=this.levelDetails;if(!f||!a)return 0;var i=f.buffered.length;return i?f.buffered.end(i-1):a.edge-this.currentTime}}]),b}()},"./src/controller/level-controller.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return s});var F=I("./src/types/level.ts"),T=I("./src/events.ts"),R=I("./src/errors.ts"),P=I("./src/utils/codecs.ts"),m=I("./src/controller/level-helper.ts"),t=I("./src/controller/base-playlist-controller.ts"),b=I("./src/types/loader.ts");function o(){return o=Object.assign||function(n){for(var l=1;l0){h=k[0].bitrate,k.sort(function(z,H){return z.bitrate-H.bitrate}),this._levels=k;for(var j=0;jthis.hls.config.fragLoadingMaxRetry&&(p=C.frag.level)):p=C.frag.level}break;case R.ErrorDetails.LEVEL_LOAD_ERROR:case R.ErrorDetails.LEVEL_LOAD_TIMEOUT:k&&(k.deliveryDirectives&&(h=!1),p=k.level),y=!0;break;case R.ErrorDetails.REMUX_ALLOC_ERROR:p=C.level,y=!0;break}p!==void 0&&this.recoverLevel(C,p,y,h)},c.recoverLevel=function(A,C,k,w){var y=A.details,h=this._levels[C];if(h.loadError++,k){var p=this.retryLoadingOrFail(A);if(p)A.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(w){var v=h.url.length;if(v>1&&h.loadError1){var w=(C.urlId+1)%k;this.warn("Switching to redundant URL-id "+w),this._levels.forEach(function(y){y.urlId=w}),this.level=A}},c.onFragLoaded=function(A,C){var k=C.frag;if(k!==void 0&&k.type===b.PlaylistLevelType.MAIN){var w=this._levels[k.level];w!==void 0&&(w.fragmentError=0,w.loadError=0)}},c.onLevelLoaded=function(A,C){var k,w=C.level,y=C.details,h=this._levels[w];if(!h){var p;this.warn("Invalid level index "+w),(p=C.deliveryDirectives)!==null&&p!==void 0&&p.skip&&(y.deltaUpdateFailed=!0);return}w===this.currentLevelIndex?(h.fragmentError===0&&(h.loadError=0,this.retryCount=0),this.playlistLoaded(w,C,h.details)):(k=C.deliveryDirectives)!==null&&k!==void 0&&k.skip&&(y.deltaUpdateFailed=!0)},c.onAudioTrackSwitched=function(A,C){var k=this.hls.levels[this.currentLevelIndex];if(!k)return;if(k.audioGroupIds){for(var w=-1,y=this.hls.audioTracks[C.id].groupId,h=0;h0){var w=k.urlId,y=k.url[w];if(A)try{y=A.addDirectives(y)}catch(h){this.warn("Could not construct new URL with HLS Delivery Directives: "+h)}this.log("Attempt loading level index "+C+(A?" at sn "+A.msn+" part "+A.part:"")+" with URL-id "+w+" "+y),this.clearTimer(),this.hls.trigger(T.Events.LEVEL_LOADING,{url:y,level:C,id:w,deliveryDirectives:A||null})}},c.removeLevel=function(A,C){var k=function(h,p){return p!==C},w=this._levels.filter(function(y,h){return h!==A?!0:y.url.length>1&&C!==void 0?(y.url=y.url.filter(k),y.audioGroupIds&&(y.audioGroupIds=y.audioGroupIds.filter(k)),y.textGroupIds&&(y.textGroupIds=y.textGroupIds.filter(k)),y.urlId=0,!0):!1}).map(function(y,h){var p=y.details;return p!=null&&p.fragments&&p.fragments.forEach(function(v){v.level=h}),y});this._levels=w,this.hls.trigger(T.Events.LEVELS_UPDATED,{levels:w})},f(l,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(A){var C,k=this._levels;if(k.length===0)return;if(this.currentLevelIndex===A&&(C=k[A])!==null&&C!==void 0&&C.details)return;if(A<0||A>=k.length){var w=A<0;if(this.hls.trigger(T.Events.ERROR,{type:R.ErrorTypes.OTHER_ERROR,details:R.ErrorDetails.LEVEL_SWITCH_ERROR,level:A,fatal:w,reason:"invalid level idx"}),w)return;A=Math.min(A,k.length-1)}this.clearTimer();var y=this.currentLevelIndex,h=k[y],p=k[A];this.log("switching to level "+A+" from "+y),this.currentLevelIndex=A;var v=o({},p,{level:A,maxBitrate:p.maxBitrate,uri:p.uri,urlId:p.urlId});delete v._urlId,this.hls.trigger(T.Events.LEVEL_SWITCHING,v);var _=p.details;if(!_||_.live){var E=this.switchParams(p.uri,h==null?void 0:h.details);this.loadPlaylist(E)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(A){this.manualLevelIndex=A,this._startLevel===void 0&&(this._startLevel=A),A!==-1&&(this.level=A)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(A){this._firstLevel=A}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var A=this.hls.config.startLevel;return A!==void 0?A:this._firstLevel}else return this._startLevel},set:function(A){this._startLevel=A}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(A){this.level=A,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=A)}}]),l}(t.default)},"./src/controller/level-helper.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"addGroupId",function(){return R}),I.d(B,"assignTrackIdsByGroup",function(){return P}),I.d(B,"updatePTS",function(){return m}),I.d(B,"updateFragPTSDTS",function(){return b}),I.d(B,"mergeDetails",function(){return o}),I.d(B,"mapPartIntersection",function(){return u}),I.d(B,"mapFragmentIntersection",function(){return f}),I.d(B,"adjustSliding",function(){return a}),I.d(B,"addSliding",function(){return i}),I.d(B,"computeReloadInterval",function(){return d}),I.d(B,"getFragmentWithSN",function(){return s}),I.d(B,"getPartWith",function(){return n});var F=I("./src/polyfills/number.ts"),T=I("./src/utils/logger.ts");function R(l,c,x){switch(c){case"audio":l.audioGroupIds||(l.audioGroupIds=[]),l.audioGroupIds.push(x);break;case"text":l.textGroupIds||(l.textGroupIds=[]),l.textGroupIds.push(x);break}}function P(l){var c={};l.forEach(function(x){var A=x.groupId||"";x.id=c[A]=c[A]||0,c[A]++})}function m(l,c,x){var A=l[c],C=l[x];t(A,C)}function t(l,c){var x=c.startPTS;if(Object(F.isFiniteNumber)(x)){var A=0,C;c.sn>l.sn?(A=x-l.start,C=l):(A=l.start-x,C=c),C.duration!==A&&(C.duration=A)}else if(c.sn>l.sn){var k=l.cc===c.cc;k&&l.minEndPTS?c.start=l.start+(l.minEndPTS-l.start):c.start=l.start+l.duration}else c.start=Math.max(l.start-c.duration,0)}function b(l,c,x,A,C,k){var w=A-x;w<=0&&(T.logger.warn("Fragment should have a positive duration",c),A=x+c.duration,k=C+c.duration);var y=x,h=A,p=c.startPTS,v=c.endPTS;if(Object(F.isFiniteNumber)(p)){var _=Math.abs(p-x);Object(F.isFiniteNumber)(c.deltaPTS)?c.deltaPTS=Math.max(_,c.deltaPTS):c.deltaPTS=_,y=Math.max(x,p),x=Math.min(x,p),C=Math.min(C,c.startDTS),h=Math.min(A,v),A=Math.max(A,v),k=Math.max(k,c.endDTS)}c.duration=A-x;var E=x-c.start;c.appendedPTS=A,c.start=c.startPTS=x,c.maxStartPTS=y,c.startDTS=C,c.endPTS=A,c.minEndPTS=h,c.endDTS=k;var g=c.sn;if(!l||gl.endSN)return 0;var j,U=g-l.startSN,S=l.fragments;for(S[U]=c,j=U;j>0;j--)t(S[j],S[j-1]);for(j=U;j=0;C--){var k=A[C].initSegment;if(k){x=k;break}}l.fragmentHint&&delete l.fragmentHint.endPTS;var w=0,y;if(f(l,c,function(j,U){j.relurl&&(w=j.cc-U.cc),Object(F.isFiniteNumber)(j.startPTS)&&Object(F.isFiniteNumber)(j.endPTS)&&(U.start=U.startPTS=j.startPTS,U.startDTS=j.startDTS,U.appendedPTS=j.appendedPTS,U.maxStartPTS=j.maxStartPTS,U.endPTS=j.endPTS,U.endDTS=j.endDTS,U.minEndPTS=j.minEndPTS,U.duration=j.endPTS-j.startPTS,U.duration&&(y=U),c.PTSKnown=c.alignedSliding=!0),U.elementaryStreams=j.elementaryStreams,U.loader=j.loader,U.stats=j.stats,U.urlId=j.urlId,j.initSegment&&(U.initSegment=j.initSegment,x=j.initSegment)}),x){var h=c.fragmentHint?c.fragments.concat(c.fragmentHint):c.fragments;h.forEach(function(j){var U;(!j.initSegment||j.initSegment.relurl===((U=x)===null||U===void 0?void 0:U.relurl))&&(j.initSegment=x)})}if(c.skippedSegments&&(c.deltaUpdateFailed=c.fragments.some(function(j){return!j}),c.deltaUpdateFailed)){T.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var p=c.skippedSegments;p--;)c.fragments.shift();c.startSN=c.fragments[0].sn,c.startCC=c.fragments[0].cc}var v=c.fragments;if(w){T.logger.warn("discontinuity sliding from playlist, take drift into account");for(var _=0;_=A.length)return;i(c,A[x].start)}function i(l,c){if(c){for(var x=l.fragments,A=l.skippedSegments;A0&&C0&&h===-1&&(this.log("Override startPosition with lastCurrentTime @"+p.toFixed(3)),h=p),this.state=T.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=h,this.tick()}else this._forceStartLoad=!0,this.state=T.State.STOPPED},w.stopLoad=function(){this._forceStartLoad=!1,C.prototype.stopLoad.call(this)},w.doTick=function(){switch(this.state){case T.State.IDLE:this.doTickIdle();break;case T.State.WAITING_LEVEL:{var h,p=this.levels,v=this.level,_=p==null||((h=p[v])===null||h===void 0)?void 0:h.details;if(_&&(!_.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(_))break;this.state=T.State.IDLE;break}break}case T.State.FRAG_LOADING_WAITING_RETRY:{var E,g=self.performance.now(),j=this.retryDate;(!j||g>=j||(E=this.media)!==null&&E!==void 0&&E.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=T.State.IDLE)}break;default:break}this.onTickEnd()},w.onTickEnd=function(){C.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},w.doTickIdle=function(){var h,p,v=this.hls,_=this.levelLastLoaded,E=this.levels,g=this.media,j=v.config,U=v.nextLoadLevel;if(_===null||!g&&(this.startFragRequested||!j.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!E||!E[U])return;var S=E[U];this.level=v.nextLoadLevel=U;var z=S.details;if(!z||this.state===T.State.WAITING_LEVEL||z.live&&this.levelLastLoaded!==U){this.state=T.State.WAITING_LEVEL;return}var H=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:g,b.PlaylistLevelType.MAIN);if(H===null)return;var M=H.len,V=this.getMaxBufferLength(S.maxBitrate);if(M>=V)return;if(this._streamEnded(H,z)){var K={};this.altAudio&&(K.type="video"),this.hls.trigger(P.Events.BUFFER_EOS,K),this.state=T.State.ENDED;return}var $=H.end,Z=this.getNextFragment($,z);if(this.couldBacktrack&&!this.fragPrevious&&Z&&Z.sn!=="initSegment"){var me=Z.sn-z.startSN;me>1&&(Z=z.fragments[me-1],this.fragmentTracker.removeFragment(Z))}if(Z&&this.fragmentTracker.getState(Z)===t.FragmentState.OK&&this.nextLoadPosition>$){var oe=this.audioOnly&&!this.altAudio?o.ElementaryStreamTypes.AUDIO:o.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(g,oe,b.PlaylistLevelType.MAIN),Z=this.getNextFragment(this.nextLoadPosition,z)}if(!Z)return;Z.initSegment&&!Z.initSegment.data&&!this.bitrateTest&&(Z=Z.initSegment),((h=Z.decryptdata)===null||h===void 0?void 0:h.keyFormat)==="identity"&&!((p=Z.decryptdata)!==null&&p!==void 0&&p.key)?this.loadKey(Z,z):this.loadFragment(Z,z,$)},w.loadFragment=function(h,p,v){var _,E=this.fragmentTracker.getState(h);if(this.fragCurrent=h,E===t.FragmentState.BACKTRACKED){var g=this.fragmentTracker.getBacktrackData(h);if(g){this._handleFragmentLoadProgress(g),this._handleFragmentLoadComplete(g);return}else E=t.FragmentState.NOT_LOADED}E===t.FragmentState.NOT_LOADED||E===t.FragmentState.PARTIAL?h.sn==="initSegment"?this._loadInitSegment(h):this.bitrateTest?(h.bitrateTest=!0,this.log("Fragment "+h.sn+" of level "+h.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(h)):(this.startFragRequested=!0,C.prototype.loadFragment.call(this,h,p,v)):E===t.FragmentState.APPENDING?this.reduceMaxBufferLength(h.duration)&&this.fragmentTracker.removeFragment(h):((_=this.media)===null||_===void 0?void 0:_.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},w.getAppendedFrag=function(h){var p=this.fragmentTracker.getAppendedFrag(h,b.PlaylistLevelType.MAIN);return p&&"fragment"in p?p.fragment:p},w.getBufferedFrag=function(h){return this.fragmentTracker.getBufferedFrag(h,b.PlaylistLevelType.MAIN)},w.followingBufferedFrag=function(h){return h?this.getBufferedFrag(h.end+.5):null},w.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},w.nextLevelSwitch=function(){var h=this.levels,p=this.media;if(p!=null&&p.readyState){var v,_=this.getAppendedFrag(p.currentTime);if(_&&_.start>1&&this.flushMainBuffer(0,_.start-1),!p.paused&&h){var E=this.hls.nextLoadLevel,g=h[E],j=this.fragLastKbps;j&&this.fragCurrent?v=this.fragCurrent.duration*g.maxBitrate/(1e3*j)+1:v=0}else v=0;var U=this.getBufferedFrag(p.currentTime+v);if(U){var S=this.followingBufferedFrag(U);if(S){this.abortCurrentFrag();var z=S.maxStartPTS?S.maxStartPTS:S.start,H=S.duration,M=Math.max(U.end,z+Math.min(Math.max(H-this.config.maxFragLookUpTolerance,H*.5),H*.75));this.flushMainBuffer(M,Number.POSITIVE_INFINITY)}}}},w.abortCurrentFrag=function(){var h=this.fragCurrent;this.fragCurrent=null,h!=null&&h.loader&&h.loader.abort(),this.state===T.State.KEY_LOADING&&(this.state=T.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},w.flushMainBuffer=function(h,p){C.prototype.flushMainBuffer.call(this,h,p,this.altAudio?"video":null)},w.onMediaAttached=function(h,p){C.prototype.onMediaAttached.call(this,h,p);var v=p.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),v.addEventListener("playing",this.onvplaying),v.addEventListener("seeked",this.onvseeked),this.gapController=new a.default(this.config,v,this.fragmentTracker,this.hls)},w.onMediaDetaching=function(){var h=this.media;h&&(h.removeEventListener("playing",this.onvplaying),h.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),C.prototype.onMediaDetaching.call(this)},w.onMediaPlaying=function(){this.tick()},w.onMediaSeeked=function(){var h=this.media,p=h?h.currentTime:null;Object(F.isFiniteNumber)(p)&&this.log("Media seeked to "+p.toFixed(3)),this.tick()},w.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(P.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},w.onManifestParsed=function(h,p){var v=!1,_=!1,E;p.levels.forEach(function(g){E=g.audioCodec,E&&(E.indexOf("mp4a.40.2")!==-1&&(v=!0),E.indexOf("mp4a.40.5")!==-1&&(_=!0))}),this.audioCodecSwitch=v&&_&&!Object(R.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=p.levels,this.startFragRequested=!1},w.onLevelLoading=function(h,p){var v=this.levels;if(!v||this.state!==T.State.IDLE)return;var _=v[p.level];(!_.details||_.details.live&&this.levelLastLoaded!==p.level||this.waitForCdnTuneIn(_.details))&&(this.state=T.State.WAITING_LEVEL)},w.onLevelLoaded=function(h,p){var v,_=this.levels,E=p.level,g=p.details,j=g.totalduration;if(!_){this.warn("Levels were reset while loading level "+E);return}this.log("Level "+E+" loaded ["+g.startSN+","+g.endSN+"], cc ["+g.startCC+", "+g.endCC+"] duration:"+j);var U=this.fragCurrent;U&&(this.state===T.State.FRAG_LOADING||this.state===T.State.FRAG_LOADING_WAITING_RETRY)&&(U.level!==p.level&&U.loader&&(this.state=T.State.IDLE,U.loader.abort()));var S=_[E],z=0;if(g.live||(v=S.details)!==null&&v!==void 0&&v.live){if(g.fragments[0]||(g.deltaUpdateFailed=!0),g.deltaUpdateFailed)return;z=this.alignPlaylists(g,S.details)}if(S.details=g,this.levelLastLoaded=E,this.hls.trigger(P.Events.LEVEL_UPDATED,{details:g,level:E}),this.state===T.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(g))return;this.state=T.State.IDLE}this.startFragRequested?g.live&&this.synchronizeToLiveEdge(g):this.setStartPosition(g,z),this.tick()},w._handleFragmentLoadProgress=function(h){var p,v=h.frag,_=h.part,E=h.payload,g=this.levels;if(!g){this.warn("Levels were reset while fragment load was in progress. Fragment "+v.sn+" of level "+v.level+" will not be buffered");return}var j=g[v.level],U=j.details;if(!U){this.warn("Dropping fragment "+v.sn+" of level "+v.level+" after level details were reset");return}var S=j.videoCodec,z=U.PTSKnown||!U.live,H=(p=v.initSegment)===null||p===void 0?void 0:p.data,M=this._getAudioCodec(j),V=this.transmuxer=this.transmuxer||new u.default(this.hls,b.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),K=_?_.index:-1,$=K!==-1,Z=new f.ChunkMetadata(v.level,v.sn,v.stats.chunkCount,E.byteLength,K,$),me=this.initPTS[v.cc];V.push(E,H,M,S,v,_,U.totalduration,z,Z,me)},w.onAudioTrackSwitching=function(h,p){var v=this.altAudio,_=!!p.url,E=p.id;if(!_){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var g=this.fragCurrent;g!=null&&g.loader&&(this.log("Switching to main audio track, cancel main fragment load"),g.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var j=this.hls;v&&j.trigger(P.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),j.trigger(P.Events.AUDIO_TRACK_SWITCHED,{id:E})}},w.onAudioTrackSwitched=function(h,p){var v=p.id,_=!!this.hls.audioTracks[v].url;if(_){var E=this.videoBuffer;E&&this.mediaBuffer!==E&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=E)}this.altAudio=_,this.tick()},w.onBufferCreated=function(h,p){var v=p.tracks,_,E,g=!1;for(var j in v){var U=v[j];if(U.id==="main"){if(E=j,_=U,j==="video"){var S=v[j];S&&(this.videoBuffer=S.buffer)}}else g=!0}g&&_?(this.log("Alternate track found, use "+E+".buffered to schedule main fragment loading"),this.mediaBuffer=_.buffer):this.mediaBuffer=this.media},w.onFragBuffered=function(h,p){var v=p.frag,_=p.part;if(v&&v.type!==b.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(v)){this.warn("Fragment "+v.sn+(_?" p: "+_.index:"")+" of level "+v.level+" finished buffering, but was aborted. state: "+this.state),this.state===T.State.PARSED&&(this.state=T.State.IDLE);return}var E=_?_.stats:v.stats;this.fragLastKbps=Math.round(8*E.total/(E.buffering.end-E.loading.first)),v.sn!=="initSegment"&&(this.fragPrevious=v),this.fragBufferedComplete(v,_)},w.onError=function(h,p){switch(p.details){case i.ErrorDetails.FRAG_LOAD_ERROR:case i.ErrorDetails.FRAG_LOAD_TIMEOUT:case i.ErrorDetails.KEY_LOAD_ERROR:case i.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(b.PlaylistLevelType.MAIN,p);break;case i.ErrorDetails.LEVEL_LOAD_ERROR:case i.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==T.State.ERROR&&(p.fatal?(this.warn(""+p.details),this.state=T.State.ERROR):!p.levelRetry&&this.state===T.State.WAITING_LEVEL&&(this.state=T.State.IDLE));break;case i.ErrorDetails.BUFFER_FULL_ERROR:if(p.parent==="main"&&(this.state===T.State.PARSING||this.state===T.State.PARSED)){var v=!0,_=this.getFwdBufferInfo(this.media,b.PlaylistLevelType.MAIN);_&&_.len>.5&&(v=!this.reduceMaxBufferLength(_.len)),v&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},w.checkBuffer=function(){var h=this.media,p=this.gapController;if(!h||!p||!h.readyState)return;var v=m.BufferHelper.getBuffered(h);!this.loadedmetadata&&v.length?(this.loadedmetadata=!0,this.seekToStartPos()):p.poll(this.lastCurrentTime),this.lastCurrentTime=h.currentTime},w.onFragLoadEmergencyAborted=function(){this.state=T.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},w.onBufferFlushed=function(h,p){var v=p.type;if(v!==o.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var _=(v===o.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(_,v,b.PlaylistLevelType.MAIN)}},w.onLevelsUpdated=function(h,p){this.levels=p.levels},w.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},w.seekToStartPos=function(){var h=this.media,p=h.currentTime,v=this.startPosition;if(v>=0&&p0&&(g1&&h.seeking===!1){var v=h.currentTime;if(m.BufferHelper.isBuffered(h,v)?p=this.getAppendedFrag(v):m.BufferHelper.isBuffered(h,v+.1)&&(p=this.getAppendedFrag(v+.1)),p){var _=this.fragPlaying,E=p.level;(!_||p.sn!==_.sn||_.level!==E||p.urlId!==_.urlId)&&(this.hls.trigger(P.Events.FRAG_CHANGED,{frag:p}),(!_||_.level!==E)&&this.hls.trigger(P.Events.LEVEL_SWITCHED,{level:E}),this.fragPlaying=p)}}},n(k,[{key:"nextLevel",get:function(){var h=this.nextBufferedFrag;return h?h.level:-1}},{key:"currentLevel",get:function(){var h=this.media;if(h){var p=this.getAppendedFrag(h.currentTime);if(p)return p.level}return-1}},{key:"nextBufferedFrag",get:function(){var h=this.media;if(h){var p=this.getAppendedFrag(h.currentTime);return this.followingBufferedFrag(p)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),k}(T.default)},"./src/controller/subtitle-stream-controller.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"SubtitleStreamController",function(){return l});var F=I("./src/events.ts"),T=I("./src/utils/logger.ts"),R=I("./src/utils/buffer-helper.ts"),P=I("./src/controller/fragment-finders.ts"),m=I("./src/utils/discontinuities.ts"),t=I("./src/controller/level-helper.ts"),b=I("./src/controller/fragment-tracker.ts"),o=I("./src/controller/base-stream-controller.ts"),u=I("./src/types/loader.ts"),f=I("./src/types/level.ts");function a(c,x){for(var A=0;A=p[E].start&&_<=p[E].end){v=p[E];break}var g=y.start+y.duration;v?v.end=g:(v={start:_,end:g},p.push(v)),this.fragmentTracker.fragBuffered(y)},A.onBufferFlushing=function(k,w){var y=w.startOffset,h=w.endOffset;if(y===0&&h!==Number.POSITIVE_INFINITY){var p=this.currentTrackId,v=this.levels;if(!v.length||!v[p]||!v[p].details)return;var _=v[p].details,E=_.targetduration,g=h-E;if(g<=0)return;w.endOffsetSubtitles=Math.max(0,g),this.tracksBuffered.forEach(function(j){for(var U=0;U=_.length||p!==v||!E)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,h.live||(y=E.details)!==null&&y!==void 0&&y.live){var g=this.mainDetails;if(h.deltaUpdateFailed||!g)return;var j=g.fragments[0];if(!E.details)h.hasProgramDateTime&&g.hasProgramDateTime?Object(m.alignMediaPlaylistByPDT)(h,g):j&&Object(t.addSliding)(h,j.start);else{var U=this.alignPlaylists(h,E.details);U===0&&j&&Object(t.addSliding)(h,j.start)}}if(E.details=h,this.levelLastLoaded=p,this.tick(),h.live&&!this.fragCurrent&&this.media&&this.state===o.State.IDLE){var S=Object(P.findFragmentByPTS)(null,h.fragments,this.media.currentTime,0);S||(this.warn("Subtitle playlist not aligned with playback"),E.details=void 0)}},A._handleFragmentLoadComplete=function(k){var w=k.frag,y=k.payload,h=w.decryptdata,p=this.hls;if(this.fragContextChanged(w))return;if(y&&y.byteLength>0&&h&&h.key&&h.iv&&h.method==="AES-128"){var v=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(y),h.key.buffer,h.iv.buffer).then(function(_){var E=performance.now();p.trigger(F.Events.FRAG_DECRYPTED,{frag:w,payload:_,stats:{tstart:v,tdecrypt:E}})})}},A.doTick=function(){if(!this.media){this.state=o.State.IDLE;return}if(this.state===o.State.IDLE){var k,w=this.currentTrackId,y=this.levels;if(!y.length||!y[w]||!y[w].details)return;var h=y[w].details,p=h.targetduration,v=this.config,_=this.media,E=R.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,_.currentTime-p,v.maxBufferHole),g=E.end,j=E.len,U=this.getMaxBufferLength()+p;if(j>U)return;console.assert(h,"Subtitle track details are defined on idle subtitle stream controller tick");var S=h.fragments,z=S.length,H=h.edge,M,V=this.fragPrevious;if(g-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},d.pollTrackChange=function(n){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,n)},d.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var n=f(this.media.textTracks);n.forEach(function(l){Object(T.clearCurrentCues)(l)}),this.subtitleTrack=-1,this.media=null},d.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},d.onManifestParsed=function(n,l){this.tracks=l.subtitleTracks},d.onSubtitleTrackLoaded=function(n,l){var c=l.id,x=l.details,A=this.trackId,C=this.tracksInGroup[A];if(!C){this.warn("Invalid subtitle track id "+c);return}var k=C.details;C.details=l.details,this.log("subtitle track "+c+" loaded ["+x.startSN+"-"+x.endSN+"]"),c===this.trackId&&(this.retryCount=0,this.playlistLoaded(c,l,k))},d.onLevelLoading=function(n,l){this.switchLevel(l.level)},d.onLevelSwitching=function(n,l){this.switchLevel(l.level)},d.switchLevel=function(n){var l=this.hls.levels[n];if(!(l!=null&&l.textGroupIds))return;var c=l.textGroupIds[l.urlId];if(this.groupId!==c){var x=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,A=this.tracks.filter(function(w){return!c||w.groupId===c});this.tracksInGroup=A;var C=this.findTrackId(x==null?void 0:x.name)||this.findTrackId();this.groupId=c;var k={subtitleTracks:A};this.log("Updating subtitle tracks, "+A.length+' track(s) found in "'+c+'" group-id'),this.hls.trigger(F.Events.SUBTITLE_TRACKS_UPDATED,k),C!==-1&&this.setSubtitleTrack(C,x)}},d.findTrackId=function(n){for(var l=this.tracksInGroup,c=0;c=x.length)return;this.clearTimer();var A=x[n];if(this.log("Switching to subtitle track "+n),this.trackId=n,A){var C=A.id,k=A.groupId,w=k===void 0?"":k,y=A.name,h=A.type,p=A.url;this.hls.trigger(F.Events.SUBTITLE_TRACK_SWITCH,{id:C,groupId:w,name:y,type:h,url:p});var v=this.switchParams(A.url,l==null?void 0:l.details);this.loadPlaylist(v)}else this.hls.trigger(F.Events.SUBTITLE_TRACK_SWITCH,{id:n})},d.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var n=-1,l=f(this.media.textTracks),c=0;c=0&&(h[0]=Math.min(h[0],x),h[1]=Math.max(h[1],A),w=!0,p/(A-x)>.5))return}if(w||k.push([x,A]),this.config.renderTextTracksNatively){var v=this.captionsTracks[c];this.Cues.newCue(v,x,A,C)}else{var _=this.Cues.newCue(null,x,A,C);this.hls.trigger(T.Events.CUES_PARSED,{type:"captions",cues:_,track:c})}},n.onInitPtsFound=function(c,x){var A=this,C=x.frag,k=x.id,w=x.initPTS,y=x.timescale,h=this.unparsedVttFrags;k==="main"&&(this.initPTS[C.cc]=w,this.timescale[C.cc]=y),h.length&&(this.unparsedVttFrags=[],h.forEach(function(p){A.onFragLoaded(T.Events.FRAG_LOADED,p)}))},n.getExistingTrack=function(c){var x=this.media;if(x)for(var A=0;A>>8^y&255^99,b[C]=y,o[y]=C;var h=A[C],p=A[h],v=A[p],_=A[y]*257^y*16843008;f[C]=_<<24|_>>>8,a[C]=_<<16|_>>>16,i[C]=_<<8|_>>>24,d[C]=_,_=v*16843009^p*65537^h*257^C*16843008,n[y]=_<<24|_>>>8,l[y]=_<<16|_>>>16,c[y]=_<<8|_>>>24,x[y]=_,C?(C=h^A[A[A[v^h]]],k^=A[A[k]]):C=k=1}},m.expandKey=function(b){for(var o=this.uint8ArrayToUint32Array_(b),u=!0,f=0;f>>6)+1;var _=(c[x+2]&60)>>>2;if(_>v.length-1){l.trigger(R.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+_});return}return w=(c[x+2]&1)<<2,w|=(c[x+3]&192)>>>6,F.logger.log("manifest codec:"+A+", ADTS type:"+C+", samplingIndex:"+_),/firefox/i.test(h)?_>=6?(C=5,y=new Array(4),k=_-3):(C=2,y=new Array(2),k=_):h.indexOf("android")!==-1?(C=2,y=new Array(2),k=_):(C=5,y=new Array(4),A&&(A.indexOf("mp4a.40.29")!==-1||A.indexOf("mp4a.40.5")!==-1)||!A&&_>=6?k=_-3:((A&&A.indexOf("mp4a.40.2")!==-1&&(_>=6&&w===1||/vivaldi/i.test(h))||!A&&w===1)&&(C=2,y=new Array(2)),k=_)),y[0]=C<<3,y[0]|=(_&14)>>1,y[1]|=(_&1)<<7,y[1]|=w<<3,C===5&&(y[1]|=(k&14)>>1,y[2]=(k&1)<<7,y[2]|=2<<2,y[3]=0),{config:y,samplerate:v[_],channelCount:w,codec:"mp4a.40."+C,manifestCodec:p}}function m(l,c){return l[c]===255&&(l[c+1]&246)===240}function t(l,c){return l[c+1]&1?7:9}function b(l,c){return(l[c+3]&3)<<11|l[c+4]<<3|(l[c+5]&224)>>>5}function o(l,c){return c+5=l.length)return!1;var A=b(l,c);if(A<=x)return!1;var C=c+A;return C===l.length||u(l,C)}return!1}function i(l,c,x,A,C){if(!l.samplerate){var k=P(c,x,A,C);if(!k)return;l.config=k.config,l.samplerate=k.samplerate,l.channelCount=k.channelCount,l.codec=k.codec,l.manifestCodec=k.manifestCodec,F.logger.log("parsed codec:"+l.codec+", rate:"+k.samplerate+", channels:"+k.channelCount)}}function d(l){return 1024*9e4/l}function s(l,c,x,A,C){var k=t(l,c),w=b(l,c);if(w-=k,w>0){var y=x+A*C;return{headerLength:k,frameLength:w,stamp:y}}}function n(l,c,x,A,C){var k=d(l.samplerate),w=s(c,x,A,C,k);if(w){var y=w.frameLength,h=w.headerLength,p=w.stamp,v=h+y,_=Math.max(0,x+v-c.length),E;_?(E=new Uint8Array(v-h),E.set(c.subarray(x+h,c.length),0)):E=c.subarray(x+h,x+v);var g={unit:E,pts:p};return _||l.samples.push(g),{sample:g,length:v,missing:_}}}},"./src/demux/base-audio-demuxer.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"initPTSFn",function(){return b});var F=I("./src/polyfills/number.ts"),T=I("./src/demux/id3.ts"),R=I("./src/demux/dummy-demuxed-track.ts"),P=I("./src/utils/mp4-tools.ts"),m=I("./src/utils/typed-array.ts"),t=function(){function o(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var u=o.prototype;return u.resetInitSegment=function(a,i,d){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},u.resetTimeStamp=function(){},u.resetContiguity=function(){},u.canParse=function(a,i){return!1},u.appendFrame=function(a,i,d){},u.demux=function(a,i){this.cachedData&&(a=Object(P.appendUint8Array)(this.cachedData,a),this.cachedData=null);var d=T.getID3Data(a,0),s=d?d.length:0,n,l,c=this._audioTrack,x=this._id3Track,A=d?T.getTimeStamp(d):void 0,C=a.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=b(A,i)),d&&d.length>0&&x.samples.push({pts:this.initPTS,dts:this.initPTS,data:d}),l=this.initPTS;st?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,b=t>>3,t-=b>>3,this.bytesAvailable-=b,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},P.readBits=function(t){var b=Math.min(this.bitsAvailable,t),o=this.word>>>32-b;return t>32&&F.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=b,this.bitsAvailable>0?this.word<<=b:this.bytesAvailable>0&&this.loadWord(),b=t-b,b>0&&this.bitsAvailable?o<>>t)!==0)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},P.skipUEG=function(){this.skipBits(1+this.skipLZ())},P.skipEG=function(){this.skipBits(1+this.skipLZ())},P.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},P.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},P.readBoolean=function(){return this.readBits(1)===1},P.readUByte=function(){return this.readBits(8)},P.readUShort=function(){return this.readBits(16)},P.readUInt=function(){return this.readBits(32)},P.skipScalingList=function(t){for(var b=8,o=8,u,f=0;f0?C.subarray(w,w+y):void 0},P=function(C,k){var w=0;return w=(C[k]&127)<<21,w|=(C[k+1]&127)<<14,w|=(C[k+2]&127)<<7,w|=C[k+3]&127,w},m=function(C,k){return F(C,k)&&P(C,k+6)+10<=C.length-k},t=function(C){for(var k=u(C),w=0;w>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:g+=String.fromCharCode(v);break;case 12:case 13:_=C[j++],g+=String.fromCharCode((v&31)<<6|_&63);break;case 14:_=C[j++],E=C[j++],g+=String.fromCharCode((v&15)<<12|(_&63)<<6|(E&63)<<0);break;default:}}return g},l={decodeTextFrame:i},c;function x(){return!c&&typeof self.TextDecoder!="undefined"&&(c=new self.TextDecoder("utf-8")),c}},"./src/demux/mp3demuxer.ts":function(Y,B,I){"use strict";I.r(B);var F=I("./src/demux/base-audio-demuxer.ts"),T=I("./src/demux/id3.ts"),R=I("./src/utils/logger.ts"),P=I("./src/demux/mpegaudio.ts");function m(o,u){o.prototype=Object.create(u.prototype),o.prototype.constructor=o,t(o,u)}function t(o,u){return t=Object.setPrototypeOf||function(a,i){return a.__proto__=i,a},t(o,u)}var b=function(o){m(u,o);function u(){return o.apply(this,arguments)||this}var f=u.prototype;return f.resetInitSegment=function(i,d,s){o.prototype.resetInitSegment.call(this,i,d,s),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:i,duration:s,inputTimeScale:9e4,dropped:0}},u.probe=function(i){if(!i)return!1;for(var d=T.getID3Data(i,0)||[],s=d.length,n=i.length;s0},m.demux=function(b){var o=b,u=Object(T.dummyTrack)();if(this.config.progressive){this.remainderData&&(o=Object(F.appendUint8Array)(this.remainderData,b));var f=Object(F.segmentValidRange)(o);this.remainderData=f.remainder,u.samples=f.valid||new Uint8Array}else u.samples=o;return{audioTrack:Object(T.dummyTrack)(),avcTrack:u,id3Track:Object(T.dummyTrack)(),textTrack:Object(T.dummyTrack)()}},m.flush=function(){var b=Object(T.dummyTrack)();return b.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(T.dummyTrack)(),avcTrack:b,id3Track:Object(T.dummyTrack)(),textTrack:Object(T.dummyTrack)()}},m.demuxSampleAes=function(b,o,u){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},m.destroy=function(){},P}();R.minProbeByteLength=1024,B.default=R},"./src/demux/mpegaudio.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"appendFrame",function(){return t}),I.d(B,"parseHeader",function(){return b}),I.d(B,"isHeaderPattern",function(){return o}),I.d(B,"isHeader",function(){return u}),I.d(B,"canParse",function(){return f}),I.d(B,"probe",function(){return a});var F=null,T=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],R=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],P=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],m=[0,1,1,4];function t(i,d,s,n,l){if(s+24>d.length)return;var c=b(d,s);if(c&&s+c.frameLength<=d.length){var x=c.samplesPerFrame*9e4/c.sampleRate,A=n+l*x,C={unit:d.subarray(s,s+c.frameLength),pts:A,dts:A};return i.config=[],i.channelCount=c.channelCount,i.samplerate=c.sampleRate,i.samples.push(C),{sample:C,length:c.frameLength,missing:0}}}function b(i,d){var s=i[d+1]>>3&3,n=i[d+1]>>1&3,l=i[d+2]>>4&15,c=i[d+2]>>2&3;if(s!==1&&l!==0&&l!==15&&c!==3){var x=i[d+2]>>1&1,A=i[d+3]>>6,C=s===3?3-n:n===3?3:4,k=T[C*14+l-1]*1e3,w=s===3?0:s===2?1:2,y=R[w*3+c],h=A===3?1:2,p=P[s][n],v=m[n],_=p*8*v,E=Math.floor(p*k/y+x)*v;if(F===null){var g=navigator.userAgent||"",j=g.match(/Chrome\/(\d+)/i);F=j?parseInt(j[1]):0}var U=!!F&&F<=87;return U&&n===2&&k>=224e3&&A===0&&(i[d+3]=i[d+3]|128),{sampleRate:y,channelCount:h,frameLength:E,samplesPerFrame:_}}}function o(i,d){return i[d]===255&&(i[d+1]&224)===224&&(i[d+1]&6)!==0}function u(i,d){return d+1=b.length){u();return}if(b[o].unit.length<32)continue;var f=this.decrypter.isSync();if(this.decryptAacSample(b,o,u,f),!f)return}},m.getAvcEncryptedData=function(b){for(var o=Math.floor((b.length-48)/160)*16+16,u=new Int8Array(o),f=0,a=32;a<=b.length-16;a+=160,f+=16)u.set(b.subarray(a,a+16),f);return u},m.getAvcDecryptedUnit=function(b,o){for(var u=new Uint8Array(o),f=0,a=32;a<=b.length-16;a+=160,f+=16)b.set(u.subarray(f,f+16),a);return b},m.decryptAvcSample=function(b,o,u,f,a,i){var d=Object(T.discardEPB)(a.data),s=this.getAvcEncryptedData(d),n=this;this.decryptBuffer(s.buffer,function(l){a.data=n.getAvcDecryptedUnit(d,l),i||n.decryptAvcSamples(b,o,u+1,f)})},m.decryptAvcSamples=function(b,o,u,f){if(b instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;o++,u=0){if(o>=b.length){f();return}for(var a=b[o].units;!(u>=a.length);u++){var i=a[u];if(i.data.length<=48||i.type!==1&&i.type!==5)continue;var d=this.decrypter.isSync();if(this.decryptAvcSample(b,o,u,f,i,d),!d)return}}},P}();B.default=R},"./src/demux/transmuxer-interface.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return a});var F=I("./node_modules/webworkify-webpack/index.js"),T=I.n(F),R=I("./src/events.ts"),P=I("./src/demux/transmuxer.ts"),m=I("./src/utils/logger.ts"),t=I("./src/errors.ts"),b=I("./src/utils/mediasource-helper.ts"),o=I("./node_modules/eventemitter3/index.js"),u=I.n(o),f=Object(b.getMediaSource)()||{isTypeSupported:function(){return!1}},a=function(){function i(s,n,l,c){var x=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=s,this.id=n,this.onTransmuxComplete=l,this.onFlush=c;var A=s.config,C=function(p,v){v=v||{},v.frag=x.frag,v.id=x.id,s.trigger(p,v)};this.observer=new o.EventEmitter,this.observer.on(R.Events.FRAG_DECRYPTED,C),this.observer.on(R.Events.ERROR,C);var k={mp4:f.isTypeSupported("video/mp4"),mpeg:f.isTypeSupported("audio/mpeg"),mp3:f.isTypeSupported('audio/mp4; codecs="mp3"')},w=navigator.vendor;if(A.enableWorker&&typeof Worker!="undefined"){m.logger.log("demuxing in webworker");var y;try{y=this.worker=F("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),y.addEventListener("message",this.onwmsg),y.onerror=function(h){s.trigger(R.Events.ERROR,{type:t.ErrorTypes.OTHER_ERROR,details:t.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(h.message+" ("+h.filename+":"+h.lineno+")")})},y.postMessage({cmd:"init",typeSupported:k,vendor:w,id:n,config:JSON.stringify(A)})}catch(h){m.logger.warn("Error in worker:",h),m.logger.error("Error while initializing DemuxerWorker, fallback to inline"),y&&self.URL.revokeObjectURL(y.objectURL),this.transmuxer=new P.default(this.observer,k,A,w,n),this.worker=null}}else this.transmuxer=new P.default(this.observer,k,A,w,n)}var d=i.prototype;return d.destroy=function(){var n=this.worker;if(n)n.removeEventListener("message",this.onwmsg),n.terminate(),this.worker=null;else{var l=this.transmuxer;l&&(l.destroy(),this.transmuxer=null)}var c=this.observer;c&&c.removeAllListeners(),this.observer=null},d.push=function(n,l,c,x,A,C,k,w,y,h){var p=this;y.transmuxing.start=self.performance.now();var v=this.transmuxer,_=this.worker,E=C?C.start:A.start,g=A.decryptdata,j=this.frag,U=!(j&&A.cc===j.cc),S=!(j&&y.level===j.level),z=j?y.sn-j.sn:-1,H=this.part?y.part-this.part.index:1,M=!S&&(z===1||z===0&&H===1),V=self.performance.now();(S||z||A.stats.parsing.start===0)&&(A.stats.parsing.start=V),C&&(H||!M)&&(C.stats.parsing.start=V);var K=new P.TransmuxState(U,M,w,S,E);if(!M||U){m.logger.log("[transmuxer-interface, "+A.type+"]: Starting new transmux session for sn: "+y.sn+" p: "+y.part+" level: "+y.level+" id: "+y.id+` discontinuity: `+U+` trackSwitch: `+S+` contiguous: `+M+` accurateTimeOffset: `+w+` - timeOffset: `+E);var $=new P.TransmuxConfig(c,x,l,k,h);this.configureTransmuxer($)}if(this.frag=A,this.part=C,_)_.postMessage({cmd:"demux",data:n,decryptdata:g,chunkMeta:y,state:K},n instanceof ArrayBuffer?[n]:[]);else if(v){var Z=v.push(n,g,y,K);Object(P.isPromise)(Z)?Z.then(function(me){p.handleTransmuxComplete(me)}):this.handleTransmuxComplete(Z)}},d.flush=function(n){var l=this;n.transmuxing.start=self.performance.now();var c=this.transmuxer,x=this.worker;if(x)x.postMessage({cmd:"flush",chunkMeta:n});else if(c){var A=c.flush(n);Object(P.isPromise)(A)?A.then(function(C){l.handleFlushResult(C,n)}):this.handleFlushResult(A,n)}},d.handleFlushResult=function(n,l){var c=this;n.forEach(function(x){c.handleTransmuxComplete(x)}),this.onFlush(l)},d.onWorkerMessage=function(n){var l=n.data,c=this.hls;switch(l.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(l.data);break}case"flush":{this.onFlush(l.data);break}default:{l.data=l.data||{},l.data.frag=this.frag,l.data.id=this.id,c.trigger(l.event,l.data);break}}},d.configureTransmuxer=function(n){var l=this.worker,c=this.transmuxer;l?l.postMessage({cmd:"configure",config:n}):c&&c.configure(n)},d.handleTransmuxComplete=function(n){n.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(n)},i}()},"./src/demux/transmuxer-worker.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return t});var F=I("./src/demux/transmuxer.ts"),T=I("./src/events.ts"),R=I("./src/utils/logger.ts"),P=I("./node_modules/eventemitter3/index.js"),m=I.n(P);function t(a){var i=new P.EventEmitter,d=function(n,l){a.postMessage({event:n,data:l})};i.on(T.Events.FRAG_DECRYPTED,d),i.on(T.Events.ERROR,d),a.addEventListener("message",function(s){var n=s.data;switch(n.cmd){case"init":{var l=JSON.parse(n.config);a.transmuxer=new F.default(i,n.typeSupported,l,n.vendor,n.id),Object(R.enableLogs)(l.debug),d("init",null);break}case"configure":{a.transmuxer.configure(n.config);break}case"demux":{var c=a.transmuxer.push(n.data,n.decryptdata,n.chunkMeta,n.state);Object(F.isPromise)(c)?c.then(function(C){b(a,C)}):b(a,c);break}case"flush":{var x=n.chunkMeta,A=a.transmuxer.flush(x);Object(F.isPromise)(A)?A.then(function(C){u(a,C,x)}):u(a,A,x);break}default:break}})}function b(a,i){if(f(i.remuxResult))return;var d=[],s=i.remuxResult,n=s.audio,l=s.video;n&&o(d,n),l&&o(d,l),a.postMessage({event:"transmuxComplete",data:i},d)}function o(a,i){i.data1&&a.push(i.data1.buffer),i.data2&&a.push(i.data2.buffer)}function u(a,i,d){i.forEach(function(s){b(a,s)}),a.postMessage({event:"flush",data:d})}function f(a){return!a.audio&&!a.video&&!a.text&&!a.id3&&!a.initSegment}},"./src/demux/transmuxer.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return l}),I.d(B,"isPromise",function(){return A}),I.d(B,"TransmuxConfig",function(){return C}),I.d(B,"TransmuxState",function(){return k});var F=I("./src/events.ts"),T=I("./src/errors.ts"),R=I("./src/crypt/decrypter.ts"),P=I("./src/demux/aacdemuxer.ts"),m=I("./src/demux/mp4demuxer.ts"),t=I("./src/demux/tsdemuxer.ts"),b=I("./src/demux/mp3demuxer.ts"),o=I("./src/remux/mp4-remuxer.ts"),u=I("./src/remux/passthrough-remuxer.ts"),f=I("./src/demux/chunk-cache.ts"),a=I("./src/utils/mp4-tools.ts"),i=I("./src/utils/logger.ts"),d;try{d=self.performance.now.bind(self.performance)}catch(w){i.logger.debug("Unable to use Performance API on this environment"),d=self.Date.now}var s=[{demux:t.default,remux:o.default},{demux:m.default,remux:u.default},{demux:P.default,remux:o.default},{demux:b.default,remux:o.default}],n=1024;s.forEach(function(w){var y=w.demux;n=Math.max(n,y.minProbeByteLength)});var l=function(){function w(h,p,v,_,E){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new f.default,this.observer=h,this.typeSupported=p,this.config=v,this.vendor=_,this.id=E}var y=w.prototype;return y.configure=function(p){this.transmuxConfig=p,this.decrypter&&this.decrypter.reset()},y.push=function(p,v,_,E){var g=this,j=_.transmuxing;j.executeStart=d();var U=new Uint8Array(p),S=this.cache,z=this.config,H=this.currentTransmuxState,M=this.transmuxConfig;E&&(this.currentTransmuxState=E);var V=c(U,v);if(V&&V.method==="AES-128"){var K=this.getDecrypter();if(z.enableSoftwareAES){var $=K.softwareDecrypt(U,V.key.buffer,V.iv.buffer);if(!$)return j.executeEnd=d(),x(_);U=new Uint8Array($)}else return this.decryptionPromise=K.webCryptoDecrypt(U,V.key.buffer,V.iv.buffer).then(function(ke){var ht=g.push(ke,null,_);return g.decryptionPromise=null,ht}),this.decryptionPromise}var Z=E||H,me=Z.contiguous,oe=Z.discontinuity,fe=Z.trackSwitch,ye=Z.accurateTimeOffset,Ie=Z.timeOffset,ve=M.audioCodec,de=M.videoCodec,Qe=M.defaultInitPts,Rt=M.duration,Ee=M.initSegmentData;if((oe||fe)&&this.resetInitSegment(Ee,ve,de,Rt),oe&&this.resetInitialTimestamp(Qe),me||this.resetContiguity(),this.needsProbing(U,oe,fe)){if(S.dataLength){var Me=S.flush();U=Object(a.appendUint8Array)(Me,U)}this.configureTransmuxer(U,M)}var nt=this.transmux(U,V,Ie,ye,_),He=this.currentTransmuxState;return He.contiguous=!0,He.discontinuity=!1,He.trackSwitch=!1,j.executeEnd=d(),nt},y.flush=function(p){var v=this,_=p.transmuxing;_.executeStart=d();var E=this.decrypter,g=this.cache,j=this.currentTransmuxState,U=this.decryptionPromise;if(U)return U.then(function(){return v.flush(p)});var S=[],z=j.timeOffset;if(E){var H=E.flush();H&&S.push(this.push(H,null,p))}var M=g.dataLength;g.reset();var V=this.demuxer,K=this.remuxer;if(!V||!K)return M>=n&&this.observer.emit(F.Events.ERROR,F.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),_.executeEnd=d(),[x(p)];var $=V.flush(z);return A($)?$.then(function(Z){return v.flushRemux(S,Z,p),S}):(this.flushRemux(S,$,p),S)},y.flushRemux=function(p,v,_){var E=v.audioTrack,g=v.avcTrack,j=v.id3Track,U=v.textTrack,S=this.currentTransmuxState,z=S.accurateTimeOffset,H=S.timeOffset;i.logger.log("[transmuxer.ts]: Flushed fragment "+_.sn+(_.part>-1?" p: "+_.part:"")+" of level "+_.level);var M=this.remuxer.remux(E,g,j,U,H,z,!0,this.id);p.push({remuxResult:M,chunkMeta:_}),_.transmuxing.executeEnd=d()},y.resetInitialTimestamp=function(p){var v=this.demuxer,_=this.remuxer;if(!v||!_)return;v.resetTimeStamp(p),_.resetTimeStamp(p)},y.resetContiguity=function(){var p=this.demuxer,v=this.remuxer;if(!p||!v)return;p.resetContiguity(),v.resetNextTimestamp()},y.resetInitSegment=function(p,v,_,E){var g=this.demuxer,j=this.remuxer;if(!g||!j)return;g.resetInitSegment(v,_,E),j.resetInitSegment(p,v,_)},y.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},y.transmux=function(p,v,_,E,g){var j;return v&&v.method==="SAMPLE-AES"?j=this.transmuxSampleAes(p,v,_,E,g):j=this.transmuxUnencrypted(p,_,E,g),j},y.transmuxUnencrypted=function(p,v,_,E){var g=this.demuxer.demux(p,v,!1,!this.config.progressive),j=g.audioTrack,U=g.avcTrack,S=g.id3Track,z=g.textTrack,H=this.remuxer.remux(j,U,S,z,v,_,!1,this.id);return{remuxResult:H,chunkMeta:E}},y.transmuxSampleAes=function(p,v,_,E,g){var j=this;return this.demuxer.demuxSampleAes(p,v,_).then(function(U){var S=j.remuxer.remux(U.audioTrack,U.avcTrack,U.id3Track,U.textTrack,_,E,!1,j.id);return{remuxResult:S,chunkMeta:g}})},y.configureTransmuxer=function(p,v){for(var _=this.config,E=this.observer,g=this.typeSupported,j=this.vendor,U=v.audioCodec,S=v.defaultInitPts,z=v.duration,H=v.initSegmentData,M=v.videoCodec,V,K=0,$=s.length;K<$;K++)if(s[K].demux.probe(p)){V=s[K];break}V||(i.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),V={demux:m.default,remux:u.default});var Z=this.demuxer,me=this.remuxer,oe=V.remux,fe=V.demux;(!me||!(me instanceof oe))&&(this.remuxer=new oe(E,_,g,j)),(!Z||!(Z instanceof fe))&&(this.demuxer=new fe(E,_,g),this.probe=fe.probe),this.resetInitSegment(H,U,M,z),this.resetInitialTimestamp(S)},y.needsProbing=function(p,v,_){return!this.demuxer||!this.remuxer||v||_},y.getDecrypter=function(){var p=this.decrypter;return p||(p=this.decrypter=new R.default(this.observer,this.config)),p},w}();function c(w,y){var h=null;return w.byteLength>0&&y!=null&&y.key!=null&&y.iv!==null&&y.method!=null&&(h=y),h}var x=function(y){return{remuxResult:{},chunkMeta:y}};function A(w){return"then"in w&&w.then instanceof Function}var C=function(y,h,p,v,_){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=y,this.videoCodec=h,this.initSegmentData=p,this.duration=v,this.defaultInitPts=_},k=function(y,h,p,v,_){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=y,this.contiguous=h,this.accurateTimeOffset=p,this.trackSwitch=v,this.timeOffset=_}},"./src/demux/tsdemuxer.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"discardEPB",function(){return x});var F=I("./src/demux/adts.ts"),T=I("./src/demux/mpegaudio.ts"),R=I("./src/demux/exp-golomb.ts"),P=I("./src/demux/id3.ts"),m=I("./src/demux/sample-aes.ts"),t=I("./src/events.ts"),b=I("./src/utils/mp4-tools.ts"),o=I("./src/utils/logger.ts"),u=I("./src/errors.ts"),f={video:1,audio:2,id3:3,text:4},a=function(){function A(k,w,y){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=k,this.config=w,this.typeSupported=y}A.probe=function(w){var y=A.syncOffset(w);return y<0?!1:(y&&o.logger.warn("MPEG2-TS detected but first sync word found @ offset "+y+", junk ahead ?"),!0)},A.syncOffset=function(w){for(var y=Math.min(1e3,w.length-3*188),h=0;h>4,ve=void 0;if(Ie>1){if(ve=oe+5+w[oe+4],ve===oe+188)continue}else ve=oe+4;switch(ye){case j:fe&&(U&&(v=n(U))&&this.parseAVCPES(v,!1),U={data:[],size:0}),U&&(U.data.push(w.subarray(ve,oe+188)),U.size+=oe+188-ve);break;case S:fe&&(H&&(v=n(H))&&(E.isAAC?this.parseAACPES(v):this.parseMPEGPES(v)),H={data:[],size:0}),H&&(H.data.push(w.subarray(ve,oe+188)),H.size+=oe+188-ve);break;case z:fe&&(M&&(v=n(M))&&this.parseID3PES(v),M={data:[],size:0}),M&&(M.data.push(w.subarray(ve,oe+188)),M.size+=oe+188-ve);break;case 0:fe&&(ve+=w[ve]+1),$=this._pmtId=d(w,ve);break;case $:{fe&&(ve+=w[ve]+1);var de=s(w,ve,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,h);j=de.avc,j>0&&(_.pid=j),S=de.audio,S>0&&(E.pid=S,E.isAAC=de.isAAC),z=de.id3,z>0&&(g.pid=z),V&&!K&&(o.logger.log("reparse from beginning"),V=!1,oe=me-188),K=this.pmtParsed=!0;break}case 17:case 8191:break;default:V=!0;break}}else this.observer.emit(t.Events.ERROR,t.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});_.pesData=U,E.pesData=H,g.pesData=M;var Qe={audioTrack:E,avcTrack:_,id3Track:g,textTrack:this._txtTrack};return p&&this.extractRemainingSamples(Qe),Qe},C.flush=function(){var w=this.remainderData;this.remainderData=null;var y;return w?y=this.demux(w,-1,!1,!0):y={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(y),this.sampleAes?this.decrypt(y,this.sampleAes):y},C.extractRemainingSamples=function(w){var y=w.audioTrack,h=w.avcTrack,p=w.id3Track,v=h.pesData,_=y.pesData,E=p.pesData,g;v&&(g=n(v))?(this.parseAVCPES(g,!0),h.pesData=null):h.pesData=v,_&&(g=n(_))?(y.isAAC?this.parseAACPES(g):this.parseMPEGPES(g),y.pesData=null):(_!=null&&_.size&&o.logger.log("last AAC PES packet truncated,might overlap between fragments"),y.pesData=_),E&&(g=n(E))?(this.parseID3PES(g),p.pesData=null):p.pesData=E},C.demuxSampleAes=function(w,y,h){var p=this.demux(w,h,!0,!this.config.progressive),v=this.sampleAes=new m.default(this.observer,this.config,y);return this.decrypt(p,v)},C.decrypt=function(w,y){return new Promise(function(h){var p=w.audioTrack,v=w.avcTrack;p.samples&&p.isAAC?y.decryptAacSamples(p.samples,0,function(){v.samples?y.decryptAvcSamples(v.samples,0,0,function(){h(w)}):h(w)}):v.samples&&y.decryptAvcSamples(v.samples,0,0,function(){h(w)})})},C.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},C.parseAVCPES=function(w,y){var h=this,p=this._avcTrack,v=this.parseAVCNALu(w.data),_=!1,E=this.avcSample,g,j=!1;w.data=null,E&&v.length&&!p.audFound&&(l(E,p),E=this.avcSample=i(!1,w.pts,w.dts,"")),v.forEach(function(U){switch(U.type){case 1:{g=!0,E||(E=h.avcSample=i(!0,w.pts,w.dts,"")),_&&(E.debug+="NDR "),E.frame=!0;var S=U.data;if(j&&S.length>4){var z=new R.default(S).readSliceType();(z===2||z===4||z===7||z===9)&&(E.key=!0)}break}case 5:g=!0,E||(E=h.avcSample=i(!0,w.pts,w.dts,"")),_&&(E.debug+="IDR "),E.key=!0,E.frame=!0;break;case 6:{g=!0,_&&E&&(E.debug+="SEI ");var H=new R.default(x(U.data));H.readUByte();for(var M=0,V=0,K=!1,$=0;!K&&H.bytesAvailable>1;){M=0;do $=H.readUByte(),M+=$;while($===255);V=0;do $=H.readUByte(),V+=$;while($===255);if(M===4&&H.bytesAvailable!==0){K=!0;var Z=H.readUByte();if(Z===181){var me=H.readUShort();if(me===49){var oe=H.readUInt();if(oe===1195456820){var fe=H.readUByte();if(fe===3){for(var ye=H.readUByte(),Ie=H.readUByte(),ve=31&ye,de=[ye,Ie],Qe=0;Qe16){for(var Rt=[],Ee=0;Ee<16;Ee++)Rt.push(H.readUByte().toString(16)),(Ee===3||Ee===5||Ee===7||Ee===9)&&Rt.push("-");for(var Me=V-16,nt=new Uint8Array(Me),He=0;He=0){var H={data:w.subarray(S,E-p-1),type:z};_.push(H)}else{var M=this.getLastNalUnit();if(M&&(v&&E<=4-v&&(M.state&&(M.data=M.data.subarray(0,M.data.byteLength-v))),j=E-p-1,j>0)){var V=new Uint8Array(M.data.byteLength+j);V.set(M.data,0),V.set(w.subarray(0,j),M.data.byteLength),M.data=V,M.state=0}}E=0&&p>=0){var K={data:w.subarray(S,y),type:z,state:p};_.push(K)}if(_.length===0){var $=this.getLastNalUnit();if($){var Z=new Uint8Array($.data.byteLength+w.byteLength);Z.set($.data,0),Z.set(w,$.data.byteLength),$.data=Z}}return h.naluState=p,_},C.parseAACPES=function(w){var y=0,h=this._audioTrack,p=this.aacOverFlow,v=w.data;if(p){this.aacOverFlow=null;var _=p.sample.unit.byteLength,E=Math.min(p.missing,_),g=_-E;p.sample.unit.set(v.subarray(0,E),g),h.samples.push(p.sample),y=p.missing}var j,U;for(j=y,U=v.length;j1;){var _=new Uint8Array(v[0].length+v[1].length);_.set(v[0]),_.set(v[1],v[0].length),v[0]=_,v.splice(1,1)}k=v[0];var E=(k[0]<<16)+(k[1]<<8)+k[2];if(E===1){if(w=(k[4]<<8)+k[5],w&&w>A.size-6)return null;var g=k[7];g&192&&(h=(k[9]&14)*536870912+(k[10]&255)*4194304+(k[11]&254)*16384+(k[12]&255)*128+(k[13]&254)/2,g&64?(p=(k[14]&14)*536870912+(k[15]&255)*4194304+(k[16]&254)*16384+(k[17]&255)*128+(k[18]&254)/2,h-p>60*9e4&&(o.logger.warn(Math.round((h-p)/9e4)+"s delta between PTS and DTS, align them"),h=p)):p=h),y=k[8];var j=y+9;if(A.size<=j)return null;A.size-=j;for(var U=new Uint8Array(A.size),S=0,z=v.length;SH){j-=H;continue}else k=k.subarray(j),H-=j,j=0;U.set(k,C),C+=H}return w&&(w-=y+3),{data:U,pts:h,dts:p,len:w}}return null}function l(A,C){if(A.units.length&&A.frame){if(A.pts===void 0){var k=C.samples,w=k.length;if(w){var y=k[w-1];A.pts=y.pts,A.dts=y.dts}else{C.dropped++;return}}C.samples.push(A)}A.debug.length&&o.logger.log(A.pts+"/"+A.dts+":"+A.debug)}function c(A,C){var k=A.length;if(k>0){if(C.pts>=A[k-1].pts)A.push(C);else for(var w=k-1;w>=0;w--)if(C.ptsh)return v;return 0}},{key:"maxAutoLevel",get:function(){var y=this.levels,h=this.autoLevelCapping,p;return h===-1&&y&&y.length?p=y.length-1:p=h,p}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(y){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,y)}},{key:"audioTracks",get:function(){var y=this.audioTrackController;return y?y.audioTracks:[]}},{key:"audioTrack",get:function(){var y=this.audioTrackController;return y?y.audioTrack:-1},set:function(y){var h=this.audioTrackController;h&&(h.audioTrack=y)}},{key:"subtitleTracks",get:function(){var y=this.subtitleTrackController;return y?y.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var y=this.subtitleTrackController;return y?y.subtitleTrack:-1},set:function(y){var h=this.subtitleTrackController;h&&(h.subtitleTrack=y)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var y=this.subtitleTrackController;return y?y.subtitleDisplay:!1},set:function(y){var h=this.subtitleTrackController;h&&(h.subtitleDisplay=y)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(y){this.config.lowLatencyMode=y}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return n.Events}},{key:"ErrorTypes",get:function(){return l.ErrorTypes}},{key:"ErrorDetails",get:function(){return l.ErrorDetails}},{key:"DefaultConfig",get:function(){return C.defaultConfig?C.defaultConfig:i.hlsDefaultConfig},set:function(y){C.defaultConfig=y}}]),C}();A.defaultConfig=void 0},"./src/is-supported.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"isSupported",function(){return R}),I.d(B,"changeTypeSupported",function(){return P});var F=I("./src/utils/mediasource-helper.ts");function T(){return self.SourceBuffer||self.WebKitSourceBuffer}function R(){var m=Object(F.getMediaSource)();if(!m)return!1;var t=T(),b=m&&typeof m.isTypeSupported=="function"&&m.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),o=!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function";return!!b&&!!o}function P(){var m,t=T();return typeof(t==null||((m=t.prototype)===null||m===void 0)?void 0:m.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return a}),I.d(B,"LoadError",function(){return d});var F=I("./src/polyfills/number.ts"),T=I("./src/errors.ts");function R(s,n){s.prototype=Object.create(n.prototype),s.prototype.constructor=s,o(s,n)}function P(s){var n=typeof Map=="function"?new Map:void 0;return P=function(c){if(c===null||!b(c))return c;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(c))return n.get(c);n.set(c,x)}function x(){return m(c,arguments,u(this).constructor)}return x.prototype=Object.create(c.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),o(x,c)},P(s)}function m(s,n,l){return t()?m=Reflect.construct:m=function(x,A,C){var k=[null];k.push.apply(k,A);var w=Function.bind.apply(x,k),y=new w;return C&&o(y,C.prototype),y},m.apply(null,arguments)}function t(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(s){return!1}}function b(s){return Function.toString.call(s).indexOf("[native code]")!==-1}function o(s,n){return o=Object.setPrototypeOf||function(c,x){return c.__proto__=x,c},o(s,n)}function u(s){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},u(s)}var f=Math.pow(2,17),a=function(){function s(l){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=l}var n=s.prototype;return n.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},n.abort=function(){this.loader&&this.loader.abort()},n.load=function(c,x){var A=this,C=c.url;if(!C)return Promise.reject(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,networkDetails:null},"Fragment does not have a "+(C?"part list":"url")));this.abort();var k=this.config,w=k.fLoader,y=k.loader;return new Promise(function(h,p){A.loader&&A.loader.destroy();var v=A.loader=c.loader=w?new w(k):new y(k),_=i(c),E={timeout:k.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:k.fragLoadingMaxRetryTimeout,highWaterMark:f};c.stats=v.stats,v.load(_,E,{onSuccess:function(j,U,S,z){A.resetLoader(c,v),h({frag:c,part:null,payload:j.data,networkDetails:z})},onError:function(j,U,S){A.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,response:j,networkDetails:S}))},onAbort:function(j,U,S){A.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,networkDetails:S}))},onTimeout:function(j,U,S){A.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,networkDetails:S}))},onProgress:function(j,U,S,z){x&&x({frag:c,part:null,payload:S,networkDetails:z})}})})},n.loadPart=function(c,x,A){var C=this;this.abort();var k=this.config,w=k.fLoader,y=k.loader;return new Promise(function(h,p){C.loader&&C.loader.destroy();var v=C.loader=c.loader=w?new w(k):new y(k),_=i(c,x),E={timeout:k.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:k.fragLoadingMaxRetryTimeout,highWaterMark:f};x.stats=v.stats,v.load(_,E,{onSuccess:function(j,U,S,z){C.resetLoader(c,v),C.updateStatsFromPart(c,x);var H={frag:c,part:x,payload:j.data,networkDetails:z};A(H),h(H)},onError:function(j,U,S){C.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,part:x,response:j,networkDetails:S}))},onAbort:function(j,U,S){c.stats.aborted=x.stats.aborted,C.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,part:x,networkDetails:S}))},onTimeout:function(j,U,S){C.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,part:x,networkDetails:S}))}})})},n.updateStatsFromPart=function(c,x){var A=c.stats,C=x.stats,k=C.total;if(A.loaded+=C.loaded,k){var w=Math.round(c.duration/x.duration),y=Math.min(Math.round(A.loaded/k),w),h=w-y,p=h*Math.round(A.loaded/y);A.total=A.loaded+p}else A.total=Math.max(A.loaded,A.total);var v=A.loading,_=C.loading;v.start?v.first+=_.first-_.start:(v.start=_.start,v.first=_.first),v.end=_.end},n.resetLoader=function(c,x){c.loader=null,this.loader===x&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),x.destroy()},s}();function i(s,n){n===void 0&&(n=null);var l=n||s,c={frag:s,part:n,responseType:"arraybuffer",url:l.url,headers:{},rangeStart:0,rangeEnd:0},x=l.byteRangeStartOffset,A=l.byteRangeEndOffset;return Object(F.isFiniteNumber)(x)&&Object(F.isFiniteNumber)(A)&&(c.rangeStart=x,c.rangeEnd=A),c}var d=function(s){R(n,s);function n(l){for(var c,x=arguments.length,A=new Array(x>1?x-1:0),C=1;C>8*(15-k)&255;return C},c.setDecryptDataFromLevelKey=function(A,C){var k=A;return(A==null?void 0:A.method)==="AES-128"&&A.uri&&!A.iv&&(k=m.LevelKey.fromURI(A.uri),k.method=A.method,k.iv=this.createInitializationVector(C),k.keyFormat="identity"),k},c.setElementaryStreamInfo=function(A,C,k,w,y,h){h===void 0&&(h=!1);var p=this.elementaryStreams,v=p[A];if(!v){p[A]={startPTS:C,endPTS:k,startDTS:w,endDTS:y,partial:h};return}v.startPTS=Math.min(v.startPTS,C),v.endPTS=Math.max(v.endPTS,k),v.startDTS=Math.min(v.startDTS,w),v.endDTS=Math.max(v.endDTS,y)},c.clearElementaryStreamInfo=function(){var A=this.elementaryStreams;A[a.AUDIO]=null,A[a.VIDEO]=null,A[a.AUDIOVIDEO]=null},f(l,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var A=this.sn;typeof A!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&P.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),A=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,A)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(F.isFiniteNumber)(this.programDateTime))return null;var A=Object(F.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+A*1e3}},{key:"encrypted",get:function(){var A;return!!((A=this.decryptdata)!==null&&A!==void 0&&A.keyFormat&&this.decryptdata.uri)}}]),l}(i),s=function(n){b(l,n);function l(c,x,A,C,k){var w;w=n.call(this,A)||this,w.fragOffset=0,w.duration=0,w.gap=!1,w.independent=!1,w.relurl=void 0,w.fragment=void 0,w.index=void 0,w.stats=new t.LoadStats,w.duration=c.decimalFloatingPoint("DURATION"),w.gap=c.bool("GAP"),w.independent=c.bool("INDEPENDENT"),w.relurl=c.enumeratedString("URI"),w.fragment=x,w.index=C;var y=c.enumeratedString("BYTERANGE");return y&&w.setByteRange(y,k),k&&(w.fragOffset=k.fragOffset+k.duration),w}return f(l,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var x=this.elementaryStreams;return!!(x.audio||x.video||x.audiovideo)}}]),l}(i)},"./src/loader/key-loader.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return P});var F=I("./src/events.ts"),T=I("./src/errors.ts"),R=I("./src/utils/logger.ts"),P=function(){function m(b){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=b,this._registerListeners()}var t=m.prototype;return t._registerListeners=function(){this.hls.on(F.Events.KEY_LOADING,this.onKeyLoading,this)},t._unregisterListeners=function(){this.hls.off(F.Events.KEY_LOADING,this.onKeyLoading)},t.destroy=function(){this._unregisterListeners();for(var o in this.loaders){var u=this.loaders[o];u&&u.destroy()}this.loaders={}},t.onKeyLoading=function(o,u){var f=u.frag,a=f.type,i=this.loaders[a];if(!f.decryptdata){R.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var d=f.decryptdata.uri;if(d!==this.decrypturl||this.decryptkey===null){var s=this.hls.config;if(i&&(R.logger.warn("abort previous key loader for type:"+a),i.abort()),!d){R.logger.warn("key uri is falsy");return}var n=s.loader,l=f.loader=this.loaders[a]=new n(s);this.decrypturl=d,this.decryptkey=null;var c={url:d,frag:f,responseType:"arraybuffer"},x={timeout:s.fragLoadingTimeOut,maxRetry:0,retryDelay:s.fragLoadingRetryDelay,maxRetryDelay:s.fragLoadingMaxRetryTimeout,highWaterMark:0},A={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};l.load(c,x,A)}else this.decryptkey&&(f.decryptdata.key=this.decryptkey,this.hls.trigger(F.Events.KEY_LOADED,{frag:f}))},t.loadsuccess=function(o,u,f){var a=f.frag;if(!a.decryptdata){R.logger.error("after key load, decryptdata unset");return}this.decryptkey=a.decryptdata.key=new Uint8Array(o.data),a.loader=null,delete this.loaders[a.type],this.hls.trigger(F.Events.KEY_LOADED,{frag:a})},t.loaderror=function(o,u){var f=u.frag,a=f.loader;a&&a.abort(),delete this.loaders[f.type],this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:f,response:o})},t.loadtimeout=function(o,u){var f=u.frag,a=f.loader;a&&a.abort(),delete this.loaders[f.type],this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:f})},m}()},"./src/loader/level-details.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"LevelDetails",function(){return m});var F=I("./src/polyfills/number.ts");function T(t,b){for(var o=0;ou.endSN||f>0||f===0&&a>0,this.updated||this.advanced?this.misses=Math.floor(u.misses*.6):this.misses=u.misses+1,this.availabilityDelay=u.availabilityDelay},R(t,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(F.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||P}},{key:"drift",get:function(){var u=this.driftEndTime-this.driftStartTime;if(u>0){var f=this.driftEnd-this.driftStart;return f*1e3/u}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var u;return(u=this.fragments)!==null&&u!==void 0&&u.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),t}()},"./src/loader/level-key.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"LevelKey",function(){return m});var F=I("./node_modules/url-toolkit/src/url-toolkit.js"),T=I.n(F);function R(t,b){for(var o=0;o2){var p=h.shift()+".";return p+=parseInt(h.shift()).toString(16),p+=("000"+parseInt(h.shift()).toString(16)).substr(-4),p}return y},k.resolve=function(y,h){return T.buildAbsoluteURL(h,y,{alwaysNormalize:!0})},k.parseMasterPlaylist=function(y,h){var p=[],v={},_=!1;f.lastIndex=0;for(var E;(E=f.exec(y))!=null;)if(E[1]){var g=new b.AttrList(E[1]),j={attrs:g,bitrate:g.decimalInteger("AVERAGE-BANDWIDTH")||g.decimalInteger("BANDWIDTH"),name:g.NAME,url:k.resolve(E[2],h)},U=g.decimalResolution("RESOLUTION");U&&(j.width=U.width,j.height=U.height),c((g.CODECS||"").split(/[ ,]+/).filter(function(z){return z}),j),j.videoCodec&&j.videoCodec.indexOf("avc1")!==-1&&(j.videoCodec=k.convertAVC1ToAVCOTI(j.videoCodec)),p.push(j)}else if(E[3]){var S=new b.AttrList(E[3]);S["DATA-ID"]&&(_=!0,v[S["DATA-ID"]]=S)}return{levels:p,sessionData:_?v:null}},k.parseMasterPlaylistMedia=function(y,h,p,v){v===void 0&&(v=[]);var _,E=[],g=0;for(a.lastIndex=0;(_=a.exec(y))!==null;){var j=new b.AttrList(_[1]);if(j.TYPE===p){var U={attrs:j,bitrate:0,id:g++,groupId:j["GROUP-ID"],instreamId:j["INSTREAM-ID"],name:j.NAME||j.LANGUAGE||"",type:p,default:j.bool("DEFAULT"),autoselect:j.bool("AUTOSELECT"),forced:j.bool("FORCED"),lang:j.LANGUAGE,url:j.URI?k.resolve(j.URI,h):""};if(v.length){var S=k.findGroup(v,U.groupId)||v[0];x(U,S,"audioCodec"),x(U,S,"textCodec")}E.push(U)}}return E},k.parseLevelPlaylist=function(y,h,p,v,_){var E=new m.LevelDetails(h),g=E.fragments,j=null,U=0,S=0,z=0,H=0,M=null,V=new P.Fragment(v,h),K,$,Z,me=-1,oe=!1;for(i.lastIndex=0,E.m3u8=y;(K=i.exec(y))!==null;){oe&&(oe=!1,V=new P.Fragment(v,h),V.start=z,V.sn=U,V.cc=H,V.level=p,j&&(V.initSegment=j,V.rawProgramDateTime=j.rawProgramDateTime));var fe=K[1];if(fe){V.duration=parseFloat(fe);var ye=(" "+K[2]).slice(1);V.title=ye||null,V.tagList.push(ye?["INF",fe,ye]:["INF",fe])}else if(K[3])Object(F.isFiniteNumber)(V.duration)&&(V.start=z,Z&&(V.levelkey=Z),V.sn=U,V.level=p,V.cc=H,V.urlId=_,g.push(V),V.relurl=(" "+K[3]).slice(1),C(V,M),M=V,z+=V.duration,U++,S=0,oe=!0);else if(K[4]){var Ie=(" "+K[4]).slice(1);M?V.setByteRange(Ie,M):V.setByteRange(Ie)}else if(K[5])V.rawProgramDateTime=(" "+K[5]).slice(1),V.tagList.push(["PROGRAM-DATE-TIME",V.rawProgramDateTime]),me===-1&&(me=g.length);else{if(K=K[0].match(d),!K){o.logger.warn("No matches on slow regex match for level playlist!");continue}for($=1;$-1){o.logger.warn("Keyformat "+ct+" is not supported from the manifest");continue}else if(ct!=="identity")continue;ht&&(Z=t.LevelKey.fromURL(h,ie),ie&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(ht)>=0&&(Z.method=ht,Z.keyFormat=ct,$e&&(Z.keyID=$e),we&&(Z.keyFormatVersions=we),Z.iv=xe));break}case"START":{var Ut=new b.AttrList(de),We=Ut.decimalFloatingPoint("TIME-OFFSET");Object(F.isFiniteNumber)(We)&&(E.startTimeOffset=We);break}case"MAP":{var kt=new b.AttrList(de);V.relurl=kt.URI,kt.BYTERANGE&&V.setByteRange(kt.BYTERANGE),V.level=p,V.sn="initSegment",Z&&(V.levelkey=Z),V.initSegment=null,j=V,oe=!0;break}case"SERVER-CONTROL":{var Zt=new b.AttrList(de);E.canBlockReload=Zt.bool("CAN-BLOCK-RELOAD"),E.canSkipUntil=Zt.optionalFloat("CAN-SKIP-UNTIL",0),E.canSkipDateRanges=E.canSkipUntil>0&&Zt.bool("CAN-SKIP-DATERANGES"),E.partHoldBack=Zt.optionalFloat("PART-HOLD-BACK",0),E.holdBack=Zt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Le=new b.AttrList(de);E.partTarget=Le.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ae=E.partList;Ae||(Ae=E.partList=[]);var ut=S>0?Ae[Ae.length-1]:void 0,_t=S++,Je=new P.Part(new b.AttrList(de),V,h,_t,ut);Ae.push(Je),V.duration+=Je.duration;break}case"PRELOAD-HINT":{var dt=new b.AttrList(de);E.preloadHint=dt;break}case"RENDITION-REPORT":{var Ne=new b.AttrList(de);E.renditionReports=E.renditionReports||[],E.renditionReports.push(Ne);break}default:o.logger.warn("line parsed but not handled: "+K);break}}}M&&!M.relurl?(g.pop(),z-=M.duration,E.partList&&(E.fragmentHint=M)):E.partList&&(C(V,M),V.cc=H,E.fragmentHint=V);var Te=g.length,Oe=g[0],ae=g[Te-1];if(z+=E.skippedSegments*E.targetduration,z>0&&Te&&ae){E.averagetargetduration=z/Te;var le=ae.sn;E.endSN=le!=="initSegment"?le:0,Oe&&(E.startCC=Oe.cc,Oe.initSegment||E.fragments.every(function(he){return he.relurl&&n(he.relurl)})&&(o.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),V=new P.Fragment(v,h),V.relurl=ae.relurl,V.level=p,V.sn="initSegment",Oe.initSegment=V,E.needSidxRanges=!0))}else E.endSN=0,E.startCC=0;return E.fragmentHint&&(z+=E.fragmentHint.duration),E.totalduration=z,E.endCC=H,me>0&&A(g,me),E},k}();function c(k,w){["video","audio","text"].forEach(function(y){var h=k.filter(function(v){return Object(u.isCodecType)(v,y)});if(h.length){var p=h.filter(function(v){return v.lastIndexOf("avc1",0)===0||v.lastIndexOf("mp4a",0)===0});w[y+"Codec"]=p.length>0?p[0]:h[0],k=k.filter(function(v){return h.indexOf(v)===-1})}}),w.unknownCodecs=k}function x(k,w,y){var h=w[y];h&&(k[y]=h)}function A(k,w){for(var y=k[w],h=w;h--;){var p=k[h];if(!p)return;p.programDateTime=y.programDateTime-p.duration*1e3,y=p}}function C(k,w){k.rawProgramDateTime?k.programDateTime=Date.parse(k.rawProgramDateTime):w!=null&&w.programDateTime&&(k.programDateTime=w.endProgramDateTime),Object(F.isFiniteNumber)(k.programDateTime)||(k.programDateTime=null,k.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Y,B,I){"use strict";I.r(B);var F=I("./src/polyfills/number.ts"),T=I("./src/events.ts"),R=I("./src/errors.ts"),P=I("./src/utils/logger.ts"),m=I("./src/utils/mp4-tools.ts"),t=I("./src/loader/m3u8-parser.ts"),b=I("./src/types/loader.ts"),o=I("./src/utils/attr-list.ts");function u(i){var d=i.type;switch(d){case b.PlaylistContextType.AUDIO_TRACK:return b.PlaylistLevelType.AUDIO;case b.PlaylistContextType.SUBTITLE_TRACK:return b.PlaylistLevelType.SUBTITLE;default:return b.PlaylistLevelType.MAIN}}function f(i,d){var s=i.url;return(s===void 0||s.indexOf("data:")===0)&&(s=d.url),s}var a=function(){function i(s){this.hls=void 0,this.loaders=Object.create(null),this.hls=s,this.registerListeners()}var d=i.prototype;return d.registerListeners=function(){var n=this.hls;n.on(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.on(T.Events.LEVEL_LOADING,this.onLevelLoading,this),n.on(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.on(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},d.unregisterListeners=function(){var n=this.hls;n.off(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.off(T.Events.LEVEL_LOADING,this.onLevelLoading,this),n.off(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.off(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},d.createInternalLoader=function(n){var l=this.hls.config,c=l.pLoader,x=l.loader,A=c||x,C=new A(l);return n.loader=C,this.loaders[n.type]=C,C},d.getInternalLoader=function(n){return this.loaders[n.type]},d.resetInternalLoader=function(n){this.loaders[n]&&delete this.loaders[n]},d.destroyInternalLoaders=function(){for(var n in this.loaders){var l=this.loaders[n];l&&l.destroy(),this.resetInternalLoader(n)}},d.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},d.onManifestLoading=function(n,l){var c=l.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:b.PlaylistContextType.MANIFEST,url:c,deliveryDirectives:null})},d.onLevelLoading=function(n,l){var c=l.id,x=l.level,A=l.url,C=l.deliveryDirectives;this.load({id:c,groupId:null,level:x,responseType:"text",type:b.PlaylistContextType.LEVEL,url:A,deliveryDirectives:C})},d.onAudioTrackLoading=function(n,l){var c=l.id,x=l.groupId,A=l.url,C=l.deliveryDirectives;this.load({id:c,groupId:x,level:null,responseType:"text",type:b.PlaylistContextType.AUDIO_TRACK,url:A,deliveryDirectives:C})},d.onSubtitleTrackLoading=function(n,l){var c=l.id,x=l.groupId,A=l.url,C=l.deliveryDirectives;this.load({id:c,groupId:x,level:null,responseType:"text",type:b.PlaylistContextType.SUBTITLE_TRACK,url:A,deliveryDirectives:C})},d.load=function(n){var l,c=this.hls.config,x=this.getInternalLoader(n);if(x){var A=x.context;if(A&&A.url===n.url){P.logger.trace("[playlist-loader]: playlist request ongoing");return}P.logger.log("[playlist-loader]: aborting previous loader for type: "+n.type),x.abort()}var C,k,w,y;switch(n.type){case b.PlaylistContextType.MANIFEST:C=c.manifestLoadingMaxRetry,k=c.manifestLoadingTimeOut,w=c.manifestLoadingRetryDelay,y=c.manifestLoadingMaxRetryTimeout;break;case b.PlaylistContextType.LEVEL:case b.PlaylistContextType.AUDIO_TRACK:case b.PlaylistContextType.SUBTITLE_TRACK:C=0,k=c.levelLoadingTimeOut;break;default:C=c.levelLoadingMaxRetry,k=c.levelLoadingTimeOut,w=c.levelLoadingRetryDelay,y=c.levelLoadingMaxRetryTimeout;break}if(x=this.createInternalLoader(n),(l=n.deliveryDirectives)!==null&&l!==void 0&&l.part){var h;if(n.type===b.PlaylistContextType.LEVEL&&n.level!==null?h=this.hls.levels[n.level].details:n.type===b.PlaylistContextType.AUDIO_TRACK&&n.id!==null?h=this.hls.audioTracks[n.id].details:n.type===b.PlaylistContextType.SUBTITLE_TRACK&&n.id!==null&&(h=this.hls.subtitleTracks[n.id].details),h){var p=h.partTarget,v=h.targetduration;p&&v&&(k=Math.min(Math.max(p*3,v*.8)*1e3,k))}}var _={timeout:k,maxRetry:C,retryDelay:w,maxRetryDelay:y,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};x.load(n,_,E)},d.loadsuccess=function(n,l,c,x){if(x===void 0&&(x=null),c.isSidxRequest){this.handleSidxRequest(n,c),this.handlePlaylistLoaded(n,l,c,x);return}this.resetInternalLoader(c.type);var A=n.data;if(A.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(n,c,"no EXTM3U delimiter",x);return}l.parsing.start=performance.now(),A.indexOf("#EXTINF:")>0||A.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(n,l,c,x):this.handleMasterPlaylist(n,l,c,x)},d.loaderror=function(n,l,c){c===void 0&&(c=null),this.handleNetworkError(l,c,!1,n)},d.loadtimeout=function(n,l,c){c===void 0&&(c=null),this.handleNetworkError(l,c,!0)},d.handleMasterPlaylist=function(n,l,c,x){var A=this.hls,C=n.data,k=f(n,c),w=t.default.parseMasterPlaylist(C,k),y=w.levels,h=w.sessionData;if(!y.length){this.handleManifestParsingError(n,c,"no level found in manifest",x);return}var p=y.map(function(U){return{id:U.attrs.AUDIO,audioCodec:U.audioCodec}}),v=y.map(function(U){return{id:U.attrs.SUBTITLES,textCodec:U.textCodec}}),_=t.default.parseMasterPlaylistMedia(C,k,"AUDIO",p),E=t.default.parseMasterPlaylistMedia(C,k,"SUBTITLES",v),g=t.default.parseMasterPlaylistMedia(C,k,"CLOSED-CAPTIONS");if(_.length){var j=_.some(function(U){return!U.url});!j&&y[0].audioCodec&&!y[0].attrs.AUDIO&&(P.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),_.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new o.AttrList({}),bitrate:0,url:""}))}A.trigger(T.Events.MANIFEST_LOADED,{levels:y,audioTracks:_,subtitles:E,captions:g,url:k,stats:l,networkDetails:x,sessionData:h})},d.handleTrackOrLevelPlaylist=function(n,l,c,x){var A=this.hls,C=c.id,k=c.level,w=c.type,y=f(n,c),h=Object(F.isFiniteNumber)(C)?C:0,p=Object(F.isFiniteNumber)(k)?k:h,v=u(c),_=t.default.parseLevelPlaylist(n.data,y,p,v,h);if(!_.fragments.length){A.trigger(T.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:y,reason:"no fragments found in level",level:typeof c.level=="number"?c.level:void 0});return}if(w===b.PlaylistContextType.MANIFEST){var E={attrs:new o.AttrList({}),bitrate:0,details:_,name:"",url:y};A.trigger(T.Events.MANIFEST_LOADED,{levels:[E],audioTracks:[],url:y,stats:l,networkDetails:x,sessionData:null})}if(l.parsing.end=performance.now(),_.needSidxRanges){var g,j=(g=_.fragments[0].initSegment)===null||g===void 0?void 0:g.url;this.load({url:j,isSidxRequest:!0,type:w,level:k,levelDetails:_,id:C,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}c.levelDetails=_,this.handlePlaylistLoaded(n,l,c,x)},d.handleSidxRequest=function(n,l){var c=Object(m.parseSegmentIndex)(new Uint8Array(n.data));if(!c)return;var x=c.references,A=l.levelDetails;x.forEach(function(C,k){var w=C.info,y=A.fragments[k];y.byteRange.length===0&&y.setByteRange(String(1+w.end-w.start)+"@"+String(w.start)),y.initSegment&&y.initSegment.setByteRange(String(c.moovEndOffset)+"@0")})},d.handleManifestParsingError=function(n,l,c,x){this.hls.trigger(T.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:l.type===b.PlaylistContextType.MANIFEST,url:n.url,reason:c,response:n,context:l,networkDetails:x})},d.handleNetworkError=function(n,l,c,x){c===void 0&&(c=!1),P.logger.warn("[playlist-loader]: A network "+(c?"timeout":"error")+" occurred while loading "+n.type+" level: "+n.level+" id: "+n.id+' group-id: "'+n.groupId+'"');var A=R.ErrorDetails.UNKNOWN,C=!1,k=this.getInternalLoader(n);switch(n.type){case b.PlaylistContextType.MANIFEST:A=c?R.ErrorDetails.MANIFEST_LOAD_TIMEOUT:R.ErrorDetails.MANIFEST_LOAD_ERROR,C=!0;break;case b.PlaylistContextType.LEVEL:A=c?R.ErrorDetails.LEVEL_LOAD_TIMEOUT:R.ErrorDetails.LEVEL_LOAD_ERROR,C=!1;break;case b.PlaylistContextType.AUDIO_TRACK:A=c?R.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:R.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,C=!1;break;case b.PlaylistContextType.SUBTITLE_TRACK:A=c?R.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:R.ErrorDetails.SUBTITLE_LOAD_ERROR,C=!1;break}k&&this.resetInternalLoader(n.type);var w={type:R.ErrorTypes.NETWORK_ERROR,details:A,fatal:C,url:n.url,loader:k,context:n,networkDetails:l};x&&(w.response=x),this.hls.trigger(T.Events.ERROR,w)},d.handlePlaylistLoaded=function(n,l,c,x){var A=c.type,C=c.level,k=c.id,w=c.groupId,y=c.loader,h=c.levelDetails,p=c.deliveryDirectives;if(!(h!=null&&h.targetduration)){this.handleManifestParsingError(n,c,"invalid target duration",x);return}if(!y)return;h.live&&(y.getCacheAge&&(h.ageHeader=y.getCacheAge()||0),(!y.getCacheAge||isNaN(h.ageHeader))&&(h.ageHeader=0));switch(A){case b.PlaylistContextType.MANIFEST:case b.PlaylistContextType.LEVEL:this.hls.trigger(T.Events.LEVEL_LOADED,{details:h,level:C||0,id:k||0,stats:l,networkDetails:x,deliveryDirectives:p});break;case b.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(T.Events.AUDIO_TRACK_LOADED,{details:h,id:k||0,groupId:w||"",stats:l,networkDetails:x,deliveryDirectives:p});break;case b.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(T.Events.SUBTITLE_TRACK_LOADED,{details:h,id:k||0,groupId:w||"",stats:l,networkDetails:x,deliveryDirectives:p});break}},i}();B.default=a},"./src/polyfills/number.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"isFiniteNumber",function(){return F}),I.d(B,"MAX_SAFE_INTEGER",function(){return T});var F=Number.isFinite||function(R){return typeof R=="number"&&isFinite(R)},T=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Y,B,I){"use strict";I.r(B);var F=function(){function T(){}return T.getSilentFrame=function(P,m){switch(P){case"mp4a.40.2":if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(m===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(m===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},T}();B.default=F},"./src/remux/mp4-generator.ts":function(Y,B,I){"use strict";I.r(B);var F=Math.pow(2,32)-1,T=function(){function R(){}return R.init=function(){R.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var m;for(m in R.types)R.types.hasOwnProperty(m)&&(R.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.charCodeAt(3)]);var t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),b=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);R.HDLR_TYPES={video:t,audio:b};var o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),u=new Uint8Array([0,0,0,0,0,0,0,0]);R.STTS=R.STSC=R.STCO=u,R.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),R.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),R.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var f=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0,0,1]);R.FTYP=R.box(R.types.ftyp,f,i,f,a),R.DINF=R.box(R.types.dinf,R.box(R.types.dref,o))},R.box=function(m){for(var t=8,b=arguments.length,o=new Array(b>1?b-1:0),u=1;u>24&255,i[1]=t>>16&255,i[2]=t>>8&255,i[3]=t&255,i.set(m,4),f=0,t=8;f>24&255,m>>16&255,m>>8&255,m&255,b>>24,b>>16&255,b>>8&255,b&255,o>>24,o>>16&255,o>>8&255,o&255,85,196,0,0]))},R.mdia=function(m){return R.box(R.types.mdia,R.mdhd(m.timescale,m.duration),R.hdlr(m.type),R.minf(m))},R.mfhd=function(m){return R.box(R.types.mfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255]))},R.minf=function(m){return m.type==="audio"?R.box(R.types.minf,R.box(R.types.smhd,R.SMHD),R.DINF,R.stbl(m)):R.box(R.types.minf,R.box(R.types.vmhd,R.VMHD),R.DINF,R.stbl(m))},R.moof=function(m,t,b){return R.box(R.types.moof,R.mfhd(m),R.traf(b,t))},R.moov=function(m){for(var t=m.length,b=[];t--;)b[t]=R.trak(m[t]);return R.box.apply(null,[R.types.moov,R.mvhd(m[0].timescale,m[0].duration)].concat(b).concat(R.mvex(m)))},R.mvex=function(m){for(var t=m.length,b=[];t--;)b[t]=R.trex(m[t]);return R.box.apply(null,[R.types.mvex].concat(b))},R.mvhd=function(m,t){t*=m;var b=Math.floor(t/(F+1)),o=Math.floor(t%(F+1)),u=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,b>>24,b>>16&255,b>>8&255,b&255,o>>24,o>>16&255,o>>8&255,o&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return R.box(R.types.mvhd,u)},R.sdtp=function(m){var t=m.samples||[],b=new Uint8Array(4+t.length),o,u;for(o=0;o>>8&255),t.push(f&255),t=t.concat(Array.prototype.slice.call(u));for(o=0;o>>8&255),b.push(f&255),b=b.concat(Array.prototype.slice.call(u));var a=R.box(R.types.avcC,new Uint8Array([1,t[3],t[4],t[5],252|3,224|m.sps.length].concat(t).concat([m.pps.length]).concat(b))),i=m.width,d=m.height,s=m.pixelRatio[0],n=m.pixelRatio[1];return R.box(R.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>8&255,i&255,d>>8&255,d&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a,R.box(R.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),R.box(R.types.pasp,new Uint8Array([s>>24,s>>16&255,s>>8&255,s&255,n>>24,n>>16&255,n>>8&255,n&255])))},R.esds=function(m){var t=m.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(m.config).concat([6,1,2]))},R.mp4a=function(m){var t=m.samplerate;return R.box(R.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0]),R.box(R.types.esds,R.esds(m)))},R.mp3=function(m){var t=m.samplerate;return R.box(R.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0]))},R.stsd=function(m){return m.type==="audio"?!m.isAAC&&m.codec==="mp3"?R.box(R.types.stsd,R.STSD,R.mp3(m)):R.box(R.types.stsd,R.STSD,R.mp4a(m)):R.box(R.types.stsd,R.STSD,R.avc1(m))},R.tkhd=function(m){var t=m.id,b=m.duration*m.timescale,o=m.width,u=m.height,f=Math.floor(b/(F+1)),a=Math.floor(b%(F+1));return R.box(R.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,o>>8&255,o&255,0,0,u>>8&255,u&255,0,0]))},R.traf=function(m,t){var b=R.sdtp(m),o=m.id,u=Math.floor(t/(F+1)),f=Math.floor(t%(F+1));return R.box(R.types.traf,R.box(R.types.tfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255])),R.box(R.types.tfdt,new Uint8Array([1,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,f>>24,f>>16&255,f>>8&255,f&255])),R.trun(m,b.length+16+20+8+16+8+8),b)},R.trak=function(m){return m.duration=m.duration||4294967295,R.box(R.types.trak,R.tkhd(m),R.mdia(m))},R.trex=function(m){var t=m.id;return R.box(R.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},R.trun=function(m,t){var b=m.samples||[],o=b.length,u=12+16*o,f=new Uint8Array(u),a,i,d,s,n,l;for(t+=8+u,f.set([0,0,15,1,o>>>24&255,o>>>16&255,o>>>8&255,o&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),a=0;a>>24&255,d>>>16&255,d>>>8&255,d&255,s>>>24&255,s>>>16&255,s>>>8&255,s&255,n.isLeading<<2|n.dependsOn,n.isDependedOn<<6|n.hasRedundancy<<4|n.paddingValue<<1|n.isNonSync,n.degradPrio&240<<8,n.degradPrio&15,l>>>24&255,l>>>16&255,l>>>8&255,l&255],12+16*a);return R.box(R.types.trun,f)},R.initSegment=function(m){R.types||R.init();var t=R.moov(m),b=new Uint8Array(R.FTYP.byteLength+t.byteLength);return b.set(R.FTYP),b.set(t,R.FTYP.byteLength),b},R}();T.types=void 0,T.HDLR_TYPES=void 0,T.STTS=void 0,T.STSC=void 0,T.STCO=void 0,T.STSZ=void 0,T.VMHD=void 0,T.SMHD=void 0,T.STSD=void 0,T.FTYP=void 0,T.DINF=void 0,B.default=T},"./src/remux/mp4-remuxer.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return l}),I.d(B,"normalizePts",function(){return c});var F=I("./src/polyfills/number.ts"),T=I("./src/remux/aac-helper.ts"),R=I("./src/remux/mp4-generator.ts"),P=I("./src/events.ts"),m=I("./src/errors.ts"),t=I("./src/utils/logger.ts"),b=I("./src/types/loader.ts"),o=I("./src/utils/timescale-conversion.ts");function u(){return u=Object.assign||function(k){for(var w=1;w0?_:E.pts},h[0].pts);return p&&t.logger.debug("PTS rollover detected"),v},w.remux=function(h,p,v,_,E,g,j,U){var S,z,H,M,V,K,$=E,Z=E,me=h.pid>-1,oe=p.pid>-1,fe=p.samples.length,ye=h.samples.length>0,Ie=fe>1,ve=(!me||ye)&&(!oe||Ie)||this.ISGenerated||j;if(ve){this.ISGenerated||(H=this.generateIS(h,p,E));var de=this.isVideoContiguous,Qe=-1;if(Ie&&(Qe=x(p.samples),!de&&this.config.forceKeyFrameOnDiscontinuity))if(K=!0,Qe>0){t.logger.warn("[mp4-remuxer]: Dropped "+Qe+" out of "+fe+" video samples due to a missing keyframe");var Rt=this.getVideoStartPts(p.samples);p.samples=p.samples.slice(Qe),p.dropped+=Qe,Z+=(p.samples[0].pts-Rt)/(p.timescale||9e4)}else Qe===-1&&(t.logger.warn("[mp4-remuxer]: No keyframe found out of "+fe+" video samples"),K=!1);if(this.ISGenerated){if(ye&&Ie){var Ee=this.getVideoStartPts(p.samples),Me=c(h.samples[0].pts,Ee)-Ee,nt=Me/p.inputTimeScale;$+=Math.max(0,nt),Z+=Math.max(0,-nt)}if(ye){if(h.samplerate||(t.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),H=this.generateIS(h,p,E)),z=this.remuxAudio(h,$,this.isAudioContiguous,g,oe||Ie||U===b.PlaylistLevelType.AUDIO?Z:void 0),Ie){var He=z?z.endPTS-z.startPTS:0;p.inputTimeScale||(t.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),H=this.generateIS(h,p,E)),S=this.remuxVideo(p,Z,de,He)}}else Ie&&(S=this.remuxVideo(p,Z,de,0));S&&(S.firstKeyFrame=Qe,S.independent=Qe!==-1)}}return this.ISGenerated&&(v.samples.length&&(V=this.remuxID3(v,E)),_.samples.length&&(M=this.remuxText(_,E))),{audio:z,video:S,initSegment:H,independent:K,text:M,id3:V}},w.generateIS=function(h,p,v){var _=h.samples,E=p.samples,g=this.typeSupported,j={},U=!Object(F.isFiniteNumber)(this._initPTS),S="audio/mp4",z,H,M;if(U&&(z=H=Infinity),h.config&&_.length&&(h.timescale=h.samplerate,h.isAAC||(g.mpeg?(S="audio/mpeg",h.codec=""):g.mp3&&(h.codec="mp3")),j.audio={id:"audio",container:S,codec:h.codec,initSegment:!h.isAAC&&g.mpeg?new Uint8Array(0):R.default.initSegment([h]),metadata:{channelCount:h.channelCount}},U&&(M=h.inputTimeScale,z=H=_[0].pts-Math.round(M*v))),p.sps&&p.pps&&E.length&&(p.timescale=p.inputTimeScale,j.video={id:"main",container:"video/mp4",codec:p.codec,initSegment:R.default.initSegment([p]),metadata:{width:p.width,height:p.height}},U)){M=p.inputTimeScale;var V=this.getVideoStartPts(E),K=Math.round(M*v);H=Math.min(H,c(E[0].dts,V)-K),z=Math.min(z,V-K)}if(Object.keys(j).length)return this.ISGenerated=!0,U&&(this._initPTS=z,this._initDTS=H),{tracks:j,initPTS:z,timescale:M}},w.remuxVideo=function(h,p,v,_){var E=h.inputTimeScale,g=h.samples,j=[],U=g.length,S=this._initPTS,z=this.nextAvcDts,H=8,M,V,K,$=Number.POSITIVE_INFINITY,Z=Number.NEGATIVE_INFINITY,me=0,oe=!1;if(!v||z===null){var fe=p*E,ye=g[0].pts-c(g[0].dts,g[0].pts);z=fe-ye}for(var Ie=0;Ieve.pts){var de=9e4*.2;me=Math.max(Math.min(me,ve.pts-ve.dts),-1*de)}ve.dts0?Ie-1:Ie].dts&&(oe=!0)}oe&&g.sort(function(Kt,Ot){var At=Kt.dts-Ot.dts,ft=Kt.pts-Ot.pts;return At||ft}),V=g[0].dts,K=g[g.length-1].dts;var Qe=Math.round((K-V)/(U-1));if(me<0){if(meQe,ke=nt<-1;if(He||ke){He?t.logger.warn("AVC: "+Object(o.toMsFromMpegTsClock)(nt,!0)+" ms ("+nt+"dts) hole between fragments detected, filling it"):t.logger.warn("AVC: "+Object(o.toMsFromMpegTsClock)(-nt,!0)+" ms ("+nt+"dts) overlapping between fragments detected"),V=z;var ht=g[0].pts-nt;g[0].dts=V,g[0].pts=ht,t.logger.log("Video: First PTS/DTS adjusted: "+Object(o.toMsFromMpegTsClock)(ht,!0)+"/"+Object(o.toMsFromMpegTsClock)(V,!0)+", delta: "+Object(o.toMsFromMpegTsClock)(nt,!0)+" ms")}}n&&(V=Math.max(0,V));for(var ie=0,xe=0,we=0;we0?Ae-1:Ae].dts;if(le.stretchShortVideoTrack&&this.nextAudioPts!==null){var _e=Math.floor(le.maxBufferHole*E),Se=(_?$+_*E:this.nextAudioPts)-ut.pts;Se>_e?(M=Se-he,M<0&&(M=he),t.logger.log("[mp4-remuxer]: It is approximately "+Se/90+" ms to the next segment; using duration "+M/90+" ms for the last video frame.")):M=he}else M=he}var ze=Math.round(ut.pts-ut.dts);j.push(new A(ut.key,M,Je,ze))}if(j.length&&d&&d<70){var Et=j[0].flags;Et.dependsOn=2,Et.isNonSync=0}console.assert(M!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=z=K+M,this.isVideoContiguous=!0;var $t=R.default.moof(h.sequenceNumber++,V,u({},h,{samples:j})),on="video",gt={data1:$t,data2:Zt,startPTS:$/E,endPTS:(Z+M)/E,startDTS:V/E,endDTS:z/E,type:on,hasAudio:!1,hasVideo:!0,nb:j.length,dropped:h.dropped};return h.samples=[],h.dropped=0,console.assert(Zt.length,"MDAT length must not be zero"),gt},w.remuxAudio=function(h,p,v,_,E){var g=h.inputTimeScale,j=h.samplerate?h.samplerate:g,U=g/j,S=h.isAAC?a:i,z=S*U,H=this._initPTS,M=!h.isAAC&&this.typeSupported.mpeg,V=[],K=h.samples,$=M?0:8,Z=this.nextAudioPts||-1,me=p*g;if(this.isAudioContiguous=v=v||K.length&&Z>0&&(_&&Math.abs(me-Z)<9e3||Math.abs(c(K[0].pts-H,me)-Z)<20*z),K.forEach(function(Oe){Oe.pts=c(Oe.pts-H,me)}),!v||Z<0){if(K=K.filter(function(Oe){return Oe.pts>=0}),!K.length)return;E===0?Z=0:_?Z=Math.max(0,me):Z=K[0].pts}if(h.isAAC)for(var oe=E!==void 0,fe=this.config.maxAudioFramesDrift,ye=0,Ie=Z;ye=fe*z&&Rt0){xe+=$;try{ie=new Uint8Array(xe)}catch(Oe){this.observer.emit(P.Events.ERROR,P.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:xe,reason:"fail allocating audio mdat "+xe});return}if(!M){var Zt=new DataView(ie.buffer);Zt.setUint32(0,xe),ie.set(R.default.types.mdat,4)}}else return;ie.set(Ut,$);var Le=Ut.byteLength;$+=Le,V.push(new A(!0,S,Le,0)),ht=We}var Ae=V.length;if(!Ae)return;var ut=V[V.length-1];this.nextAudioPts=Z=ht+U*ut.duration;var _t=M?new Uint8Array(0):R.default.moof(h.sequenceNumber++,ke/U,u({},h,{samples:V}));h.samples=[];var Je=ke/g,dt=Z/g,Ne="audio",Te={data1:_t,data2:ie,startPTS:Je,endPTS:dt,startDTS:Je,endDTS:dt,type:Ne,hasAudio:!0,hasVideo:!1,nb:Ae};return this.isAudioContiguous=!0,console.assert(ie.length,"MDAT length must not be zero"),Te},w.remuxEmptyAudio=function(h,p,v,_){var E=h.inputTimeScale,g=h.samplerate?h.samplerate:E,j=E/g,U=this.nextAudioPts,S=(U!==null?U:_.startDTS*E)+this._initDTS,z=_.endDTS*E+this._initDTS,H=j*a,M=Math.ceil((z-S)/H),V=T.default.getSilentFrame(h.manifestCodec||h.codec,h.channelCount);if(t.logger.warn("[mp4-remuxer]: remux empty Audio"),!V){t.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var K=[],$=0;$4294967296;)k+=y;return k}function x(k){for(var w=0;w0?this.lastEndDTS=h:(P.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var p=!!k.audio,v=!!k.video,_="";p&&(_+="audio"),v&&(_+="video");var E={data1:A,startPTS:y,startDTS:y,endPTS:h,endDTS:h,type:_,hasAudio:p,hasVideo:v,nb:1,dropped:0};return x.audio=E.type==="audio"?E:void 0,x.video=E.type!=="audio"?E:void 0,x.text=s,x.id3=d,x.initSegment=C,x},o}(),t=function(u,f,a){return Object(T.getStartDTS)(u,f)-a};function b(o,u){var f=o==null?void 0:o.codec;return f&&f.length>4?f:f==="hvc1"?"hvc1.1.c.L120.90":f==="av01"?"av01.0.04M.08":f==="avc1"||u===R.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}B.default=m},"./src/task-loop.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return F});var F=function(){function T(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var R=T.prototype;return R.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},R.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},R.onHandlerDestroyed=function(){},R.hasInterval=function(){return!!this._tickInterval},R.hasNextTick=function(){return!!this._tickTimer},R.setInterval=function(m){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,m),!0)},R.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},R.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},R.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},R.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},R.doTick=function(){},T}()},"./src/types/cmcd.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"CMCDVersion",function(){return F}),I.d(B,"CMCDObjectType",function(){return T}),I.d(B,"CMCDStreamingFormat",function(){return R}),I.d(B,"CMCDStreamType",function(){return P});var F=1,T;(function(m){m.MANIFEST="m",m.AUDIO="a",m.VIDEO="v",m.MUXED="av",m.INIT="i",m.CAPTION="c",m.TIMED_TEXT="tt",m.KEY="k",m.OTHER="o"})(T||(T={}));var R;(function(m){m.DASH="d",m.HLS="h",m.SMOOTH="s",m.OTHER="o"})(R||(R={}));var P;(function(m){m.VOD="v",m.LIVE="l"})(P||(P={}))},"./src/types/level.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"HlsSkip",function(){return R}),I.d(B,"getSkipValue",function(){return P}),I.d(B,"HlsUrlParameters",function(){return m}),I.d(B,"Level",function(){return t});function F(b,o){for(var u=0;uNumber.MAX_SAFE_INTEGER?Infinity:o},m.hexadecimalInteger=function(b){if(this[b]){var o=(this[b]||"0x").slice(2);o=(o.length&1?"0":"")+o;for(var u=new Uint8Array(o.length/2),f=0;fNumber.MAX_SAFE_INTEGER?Infinity:o},m.decimalFloatingPoint=function(b){return parseFloat(this[b])},m.optionalFloat=function(b,o){var u=this[b];return u?parseFloat(u):o},m.enumeratedString=function(b){return this[b]},m.bool=function(b){return this[b]==="YES"},m.decimalResolution=function(b){var o=F.exec(this[b]);return o===null?void 0:{width:parseInt(o[1],10),height:parseInt(o[2],10)}},P.parseAttrList=function(b){var o,u={},f='"';for(T.lastIndex=0;(o=T.exec(b))!==null;){var a=o[2];a.indexOf(f)===0&&a.lastIndexOf(f)===a.length-1&&(a=a.slice(1,-1)),u[o[1]]=a}return u},P}()},"./src/utils/binary-search.ts":function(Y,B,I){"use strict";I.r(B);var F={search:function(R,P){for(var m=0,t=R.length-1,b=null,o=null;m<=t;){b=(m+t)/2|0,o=R[b];var u=P(o);if(u>0)m=b+1;else if(u<0)t=b-1;else return o}return null}};B.default=F},"./src/utils/buffer-helper.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"BufferHelper",function(){return R});var F=I("./src/utils/logger.ts"),T={length:0,start:function(){return 0},end:function(){return 0}},R=function(){function P(){}return P.isBuffered=function(t,b){try{if(t){for(var o=P.getBuffered(t),u=0;u=o.start(u)&&b<=o.end(u))return!0}}catch(f){}return!1},P.bufferInfo=function(t,b,o){try{if(t){var u=P.getBuffered(t),f=[],a;for(a=0;ai&&(u[a-1].end=t[f].end):u.push(t[f])}else u.push(t[f])}else u=t;for(var d=0,s,n=b,l=b,c=0;c=x&&b=v&&F.logger.log(this.time+" ["+v+"] "+_)},y}(),d=function(h){for(var p=[],v=0;vm&&(this.logger.log(a.DEBUG,"Too large cursor position "+this.pos),this.pos=m)},h.moveCursor=function(v){var _=this.pos+v;if(v>1)for(var E=this.pos+1;E<_+1;E++)this.chars[E].setPenState(this.currPenState);this.setCursor(_)},h.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},h.insertChar=function(v){v>=144&&this.backSpace();var _=R(v);if(this.pos>=m){this.logger.log(a.ERROR,"Cannot insert "+v.toString(16)+" ("+_+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(_,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(v){var _;for(_=v;_0&&(v?E="["+_.join(" | ")+"]":E=_.join(` + timeOffset: `+E);var $=new P.TransmuxConfig(c,x,l,k,h);this.configureTransmuxer($)}if(this.frag=A,this.part=C,_)_.postMessage({cmd:"demux",data:n,decryptdata:g,chunkMeta:y,state:K},n instanceof ArrayBuffer?[n]:[]);else if(v){var Z=v.push(n,g,y,K);Object(P.isPromise)(Z)?Z.then(function(me){p.handleTransmuxComplete(me)}):this.handleTransmuxComplete(Z)}},d.flush=function(n){var l=this;n.transmuxing.start=self.performance.now();var c=this.transmuxer,x=this.worker;if(x)x.postMessage({cmd:"flush",chunkMeta:n});else if(c){var A=c.flush(n);Object(P.isPromise)(A)?A.then(function(C){l.handleFlushResult(C,n)}):this.handleFlushResult(A,n)}},d.handleFlushResult=function(n,l){var c=this;n.forEach(function(x){c.handleTransmuxComplete(x)}),this.onFlush(l)},d.onWorkerMessage=function(n){var l=n.data,c=this.hls;switch(l.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(l.data);break}case"flush":{this.onFlush(l.data);break}default:{l.data=l.data||{},l.data.frag=this.frag,l.data.id=this.id,c.trigger(l.event,l.data);break}}},d.configureTransmuxer=function(n){var l=this.worker,c=this.transmuxer;l?l.postMessage({cmd:"configure",config:n}):c&&c.configure(n)},d.handleTransmuxComplete=function(n){n.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(n)},i}()},"./src/demux/transmuxer-worker.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return t});var F=I("./src/demux/transmuxer.ts"),T=I("./src/events.ts"),R=I("./src/utils/logger.ts"),P=I("./node_modules/eventemitter3/index.js"),m=I.n(P);function t(a){var i=new P.EventEmitter,d=function(n,l){a.postMessage({event:n,data:l})};i.on(T.Events.FRAG_DECRYPTED,d),i.on(T.Events.ERROR,d),a.addEventListener("message",function(s){var n=s.data;switch(n.cmd){case"init":{var l=JSON.parse(n.config);a.transmuxer=new F.default(i,n.typeSupported,l,n.vendor,n.id),Object(R.enableLogs)(l.debug),d("init",null);break}case"configure":{a.transmuxer.configure(n.config);break}case"demux":{var c=a.transmuxer.push(n.data,n.decryptdata,n.chunkMeta,n.state);Object(F.isPromise)(c)?c.then(function(C){b(a,C)}):b(a,c);break}case"flush":{var x=n.chunkMeta,A=a.transmuxer.flush(x);Object(F.isPromise)(A)?A.then(function(C){u(a,C,x)}):u(a,A,x);break}default:break}})}function b(a,i){if(f(i.remuxResult))return;var d=[],s=i.remuxResult,n=s.audio,l=s.video;n&&o(d,n),l&&o(d,l),a.postMessage({event:"transmuxComplete",data:i},d)}function o(a,i){i.data1&&a.push(i.data1.buffer),i.data2&&a.push(i.data2.buffer)}function u(a,i,d){i.forEach(function(s){b(a,s)}),a.postMessage({event:"flush",data:d})}function f(a){return!a.audio&&!a.video&&!a.text&&!a.id3&&!a.initSegment}},"./src/demux/transmuxer.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return l}),I.d(B,"isPromise",function(){return A}),I.d(B,"TransmuxConfig",function(){return C}),I.d(B,"TransmuxState",function(){return k});var F=I("./src/events.ts"),T=I("./src/errors.ts"),R=I("./src/crypt/decrypter.ts"),P=I("./src/demux/aacdemuxer.ts"),m=I("./src/demux/mp4demuxer.ts"),t=I("./src/demux/tsdemuxer.ts"),b=I("./src/demux/mp3demuxer.ts"),o=I("./src/remux/mp4-remuxer.ts"),u=I("./src/remux/passthrough-remuxer.ts"),f=I("./src/demux/chunk-cache.ts"),a=I("./src/utils/mp4-tools.ts"),i=I("./src/utils/logger.ts"),d;try{d=self.performance.now.bind(self.performance)}catch(w){i.logger.debug("Unable to use Performance API on this environment"),d=self.Date.now}var s=[{demux:t.default,remux:o.default},{demux:m.default,remux:u.default},{demux:P.default,remux:o.default},{demux:b.default,remux:o.default}],n=1024;s.forEach(function(w){var y=w.demux;n=Math.max(n,y.minProbeByteLength)});var l=function(){function w(h,p,v,_,E){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new f.default,this.observer=h,this.typeSupported=p,this.config=v,this.vendor=_,this.id=E}var y=w.prototype;return y.configure=function(p){this.transmuxConfig=p,this.decrypter&&this.decrypter.reset()},y.push=function(p,v,_,E){var g=this,j=_.transmuxing;j.executeStart=d();var U=new Uint8Array(p),S=this.cache,z=this.config,H=this.currentTransmuxState,M=this.transmuxConfig;E&&(this.currentTransmuxState=E);var V=c(U,v);if(V&&V.method==="AES-128"){var K=this.getDecrypter();if(z.enableSoftwareAES){var $=K.softwareDecrypt(U,V.key.buffer,V.iv.buffer);if(!$)return j.executeEnd=d(),x(_);U=new Uint8Array($)}else return this.decryptionPromise=K.webCryptoDecrypt(U,V.key.buffer,V.iv.buffer).then(function(ke){var ht=g.push(ke,null,_);return g.decryptionPromise=null,ht}),this.decryptionPromise}var Z=E||H,me=Z.contiguous,oe=Z.discontinuity,fe=Z.trackSwitch,ye=Z.accurateTimeOffset,Ie=Z.timeOffset,ve=M.audioCodec,de=M.videoCodec,Je=M.defaultInitPts,Rt=M.duration,Ee=M.initSegmentData;if((oe||fe)&&this.resetInitSegment(Ee,ve,de,Rt),oe&&this.resetInitialTimestamp(Je),me||this.resetContiguity(),this.needsProbing(U,oe,fe)){if(S.dataLength){var Me=S.flush();U=Object(a.appendUint8Array)(Me,U)}this.configureTransmuxer(U,M)}var rt=this.transmux(U,V,Ie,ye,_),He=this.currentTransmuxState;return He.contiguous=!0,He.discontinuity=!1,He.trackSwitch=!1,j.executeEnd=d(),rt},y.flush=function(p){var v=this,_=p.transmuxing;_.executeStart=d();var E=this.decrypter,g=this.cache,j=this.currentTransmuxState,U=this.decryptionPromise;if(U)return U.then(function(){return v.flush(p)});var S=[],z=j.timeOffset;if(E){var H=E.flush();H&&S.push(this.push(H,null,p))}var M=g.dataLength;g.reset();var V=this.demuxer,K=this.remuxer;if(!V||!K)return M>=n&&this.observer.emit(F.Events.ERROR,F.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),_.executeEnd=d(),[x(p)];var $=V.flush(z);return A($)?$.then(function(Z){return v.flushRemux(S,Z,p),S}):(this.flushRemux(S,$,p),S)},y.flushRemux=function(p,v,_){var E=v.audioTrack,g=v.avcTrack,j=v.id3Track,U=v.textTrack,S=this.currentTransmuxState,z=S.accurateTimeOffset,H=S.timeOffset;i.logger.log("[transmuxer.ts]: Flushed fragment "+_.sn+(_.part>-1?" p: "+_.part:"")+" of level "+_.level);var M=this.remuxer.remux(E,g,j,U,H,z,!0,this.id);p.push({remuxResult:M,chunkMeta:_}),_.transmuxing.executeEnd=d()},y.resetInitialTimestamp=function(p){var v=this.demuxer,_=this.remuxer;if(!v||!_)return;v.resetTimeStamp(p),_.resetTimeStamp(p)},y.resetContiguity=function(){var p=this.demuxer,v=this.remuxer;if(!p||!v)return;p.resetContiguity(),v.resetNextTimestamp()},y.resetInitSegment=function(p,v,_,E){var g=this.demuxer,j=this.remuxer;if(!g||!j)return;g.resetInitSegment(v,_,E),j.resetInitSegment(p,v,_)},y.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},y.transmux=function(p,v,_,E,g){var j;return v&&v.method==="SAMPLE-AES"?j=this.transmuxSampleAes(p,v,_,E,g):j=this.transmuxUnencrypted(p,_,E,g),j},y.transmuxUnencrypted=function(p,v,_,E){var g=this.demuxer.demux(p,v,!1,!this.config.progressive),j=g.audioTrack,U=g.avcTrack,S=g.id3Track,z=g.textTrack,H=this.remuxer.remux(j,U,S,z,v,_,!1,this.id);return{remuxResult:H,chunkMeta:E}},y.transmuxSampleAes=function(p,v,_,E,g){var j=this;return this.demuxer.demuxSampleAes(p,v,_).then(function(U){var S=j.remuxer.remux(U.audioTrack,U.avcTrack,U.id3Track,U.textTrack,_,E,!1,j.id);return{remuxResult:S,chunkMeta:g}})},y.configureTransmuxer=function(p,v){for(var _=this.config,E=this.observer,g=this.typeSupported,j=this.vendor,U=v.audioCodec,S=v.defaultInitPts,z=v.duration,H=v.initSegmentData,M=v.videoCodec,V,K=0,$=s.length;K<$;K++)if(s[K].demux.probe(p)){V=s[K];break}V||(i.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),V={demux:m.default,remux:u.default});var Z=this.demuxer,me=this.remuxer,oe=V.remux,fe=V.demux;(!me||!(me instanceof oe))&&(this.remuxer=new oe(E,_,g,j)),(!Z||!(Z instanceof fe))&&(this.demuxer=new fe(E,_,g),this.probe=fe.probe),this.resetInitSegment(H,U,M,z),this.resetInitialTimestamp(S)},y.needsProbing=function(p,v,_){return!this.demuxer||!this.remuxer||v||_},y.getDecrypter=function(){var p=this.decrypter;return p||(p=this.decrypter=new R.default(this.observer,this.config)),p},w}();function c(w,y){var h=null;return w.byteLength>0&&y!=null&&y.key!=null&&y.iv!==null&&y.method!=null&&(h=y),h}var x=function(y){return{remuxResult:{},chunkMeta:y}};function A(w){return"then"in w&&w.then instanceof Function}var C=function(y,h,p,v,_){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=y,this.videoCodec=h,this.initSegmentData=p,this.duration=v,this.defaultInitPts=_},k=function(y,h,p,v,_){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=y,this.contiguous=h,this.accurateTimeOffset=p,this.trackSwitch=v,this.timeOffset=_}},"./src/demux/tsdemuxer.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"discardEPB",function(){return x});var F=I("./src/demux/adts.ts"),T=I("./src/demux/mpegaudio.ts"),R=I("./src/demux/exp-golomb.ts"),P=I("./src/demux/id3.ts"),m=I("./src/demux/sample-aes.ts"),t=I("./src/events.ts"),b=I("./src/utils/mp4-tools.ts"),o=I("./src/utils/logger.ts"),u=I("./src/errors.ts"),f={video:1,audio:2,id3:3,text:4},a=function(){function A(k,w,y){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=k,this.config=w,this.typeSupported=y}A.probe=function(w){var y=A.syncOffset(w);return y<0?!1:(y&&o.logger.warn("MPEG2-TS detected but first sync word found @ offset "+y+", junk ahead ?"),!0)},A.syncOffset=function(w){for(var y=Math.min(1e3,w.length-3*188),h=0;h>4,ve=void 0;if(Ie>1){if(ve=oe+5+w[oe+4],ve===oe+188)continue}else ve=oe+4;switch(ye){case j:fe&&(U&&(v=n(U))&&this.parseAVCPES(v,!1),U={data:[],size:0}),U&&(U.data.push(w.subarray(ve,oe+188)),U.size+=oe+188-ve);break;case S:fe&&(H&&(v=n(H))&&(E.isAAC?this.parseAACPES(v):this.parseMPEGPES(v)),H={data:[],size:0}),H&&(H.data.push(w.subarray(ve,oe+188)),H.size+=oe+188-ve);break;case z:fe&&(M&&(v=n(M))&&this.parseID3PES(v),M={data:[],size:0}),M&&(M.data.push(w.subarray(ve,oe+188)),M.size+=oe+188-ve);break;case 0:fe&&(ve+=w[ve]+1),$=this._pmtId=d(w,ve);break;case $:{fe&&(ve+=w[ve]+1);var de=s(w,ve,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,h);j=de.avc,j>0&&(_.pid=j),S=de.audio,S>0&&(E.pid=S,E.isAAC=de.isAAC),z=de.id3,z>0&&(g.pid=z),V&&!K&&(o.logger.log("reparse from beginning"),V=!1,oe=me-188),K=this.pmtParsed=!0;break}case 17:case 8191:break;default:V=!0;break}}else this.observer.emit(t.Events.ERROR,t.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});_.pesData=U,E.pesData=H,g.pesData=M;var Je={audioTrack:E,avcTrack:_,id3Track:g,textTrack:this._txtTrack};return p&&this.extractRemainingSamples(Je),Je},C.flush=function(){var w=this.remainderData;this.remainderData=null;var y;return w?y=this.demux(w,-1,!1,!0):y={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(y),this.sampleAes?this.decrypt(y,this.sampleAes):y},C.extractRemainingSamples=function(w){var y=w.audioTrack,h=w.avcTrack,p=w.id3Track,v=h.pesData,_=y.pesData,E=p.pesData,g;v&&(g=n(v))?(this.parseAVCPES(g,!0),h.pesData=null):h.pesData=v,_&&(g=n(_))?(y.isAAC?this.parseAACPES(g):this.parseMPEGPES(g),y.pesData=null):(_!=null&&_.size&&o.logger.log("last AAC PES packet truncated,might overlap between fragments"),y.pesData=_),E&&(g=n(E))?(this.parseID3PES(g),p.pesData=null):p.pesData=E},C.demuxSampleAes=function(w,y,h){var p=this.demux(w,h,!0,!this.config.progressive),v=this.sampleAes=new m.default(this.observer,this.config,y);return this.decrypt(p,v)},C.decrypt=function(w,y){return new Promise(function(h){var p=w.audioTrack,v=w.avcTrack;p.samples&&p.isAAC?y.decryptAacSamples(p.samples,0,function(){v.samples?y.decryptAvcSamples(v.samples,0,0,function(){h(w)}):h(w)}):v.samples&&y.decryptAvcSamples(v.samples,0,0,function(){h(w)})})},C.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},C.parseAVCPES=function(w,y){var h=this,p=this._avcTrack,v=this.parseAVCNALu(w.data),_=!1,E=this.avcSample,g,j=!1;w.data=null,E&&v.length&&!p.audFound&&(l(E,p),E=this.avcSample=i(!1,w.pts,w.dts,"")),v.forEach(function(U){switch(U.type){case 1:{g=!0,E||(E=h.avcSample=i(!0,w.pts,w.dts,"")),_&&(E.debug+="NDR "),E.frame=!0;var S=U.data;if(j&&S.length>4){var z=new R.default(S).readSliceType();(z===2||z===4||z===7||z===9)&&(E.key=!0)}break}case 5:g=!0,E||(E=h.avcSample=i(!0,w.pts,w.dts,"")),_&&(E.debug+="IDR "),E.key=!0,E.frame=!0;break;case 6:{g=!0,_&&E&&(E.debug+="SEI ");var H=new R.default(x(U.data));H.readUByte();for(var M=0,V=0,K=!1,$=0;!K&&H.bytesAvailable>1;){M=0;do $=H.readUByte(),M+=$;while($===255);V=0;do $=H.readUByte(),V+=$;while($===255);if(M===4&&H.bytesAvailable!==0){K=!0;var Z=H.readUByte();if(Z===181){var me=H.readUShort();if(me===49){var oe=H.readUInt();if(oe===1195456820){var fe=H.readUByte();if(fe===3){for(var ye=H.readUByte(),Ie=H.readUByte(),ve=31&ye,de=[ye,Ie],Je=0;Je16){for(var Rt=[],Ee=0;Ee<16;Ee++)Rt.push(H.readUByte().toString(16)),(Ee===3||Ee===5||Ee===7||Ee===9)&&Rt.push("-");for(var Me=V-16,rt=new Uint8Array(Me),He=0;He=0){var H={data:w.subarray(S,E-p-1),type:z};_.push(H)}else{var M=this.getLastNalUnit();if(M&&(v&&E<=4-v&&(M.state&&(M.data=M.data.subarray(0,M.data.byteLength-v))),j=E-p-1,j>0)){var V=new Uint8Array(M.data.byteLength+j);V.set(M.data,0),V.set(w.subarray(0,j),M.data.byteLength),M.data=V,M.state=0}}E=0&&p>=0){var K={data:w.subarray(S,y),type:z,state:p};_.push(K)}if(_.length===0){var $=this.getLastNalUnit();if($){var Z=new Uint8Array($.data.byteLength+w.byteLength);Z.set($.data,0),Z.set(w,$.data.byteLength),$.data=Z}}return h.naluState=p,_},C.parseAACPES=function(w){var y=0,h=this._audioTrack,p=this.aacOverFlow,v=w.data;if(p){this.aacOverFlow=null;var _=p.sample.unit.byteLength,E=Math.min(p.missing,_),g=_-E;p.sample.unit.set(v.subarray(0,E),g),h.samples.push(p.sample),y=p.missing}var j,U;for(j=y,U=v.length;j1;){var _=new Uint8Array(v[0].length+v[1].length);_.set(v[0]),_.set(v[1],v[0].length),v[0]=_,v.splice(1,1)}k=v[0];var E=(k[0]<<16)+(k[1]<<8)+k[2];if(E===1){if(w=(k[4]<<8)+k[5],w&&w>A.size-6)return null;var g=k[7];g&192&&(h=(k[9]&14)*536870912+(k[10]&255)*4194304+(k[11]&254)*16384+(k[12]&255)*128+(k[13]&254)/2,g&64?(p=(k[14]&14)*536870912+(k[15]&255)*4194304+(k[16]&254)*16384+(k[17]&255)*128+(k[18]&254)/2,h-p>60*9e4&&(o.logger.warn(Math.round((h-p)/9e4)+"s delta between PTS and DTS, align them"),h=p)):p=h),y=k[8];var j=y+9;if(A.size<=j)return null;A.size-=j;for(var U=new Uint8Array(A.size),S=0,z=v.length;SH){j-=H;continue}else k=k.subarray(j),H-=j,j=0;U.set(k,C),C+=H}return w&&(w-=y+3),{data:U,pts:h,dts:p,len:w}}return null}function l(A,C){if(A.units.length&&A.frame){if(A.pts===void 0){var k=C.samples,w=k.length;if(w){var y=k[w-1];A.pts=y.pts,A.dts=y.dts}else{C.dropped++;return}}C.samples.push(A)}A.debug.length&&o.logger.log(A.pts+"/"+A.dts+":"+A.debug)}function c(A,C){var k=A.length;if(k>0){if(C.pts>=A[k-1].pts)A.push(C);else for(var w=k-1;w>=0;w--)if(C.ptsh)return v;return 0}},{key:"maxAutoLevel",get:function(){var y=this.levels,h=this.autoLevelCapping,p;return h===-1&&y&&y.length?p=y.length-1:p=h,p}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(y){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,y)}},{key:"audioTracks",get:function(){var y=this.audioTrackController;return y?y.audioTracks:[]}},{key:"audioTrack",get:function(){var y=this.audioTrackController;return y?y.audioTrack:-1},set:function(y){var h=this.audioTrackController;h&&(h.audioTrack=y)}},{key:"subtitleTracks",get:function(){var y=this.subtitleTrackController;return y?y.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var y=this.subtitleTrackController;return y?y.subtitleTrack:-1},set:function(y){var h=this.subtitleTrackController;h&&(h.subtitleTrack=y)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var y=this.subtitleTrackController;return y?y.subtitleDisplay:!1},set:function(y){var h=this.subtitleTrackController;h&&(h.subtitleDisplay=y)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(y){this.config.lowLatencyMode=y}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return n.Events}},{key:"ErrorTypes",get:function(){return l.ErrorTypes}},{key:"ErrorDetails",get:function(){return l.ErrorDetails}},{key:"DefaultConfig",get:function(){return C.defaultConfig?C.defaultConfig:i.hlsDefaultConfig},set:function(y){C.defaultConfig=y}}]),C}();A.defaultConfig=void 0},"./src/is-supported.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"isSupported",function(){return R}),I.d(B,"changeTypeSupported",function(){return P});var F=I("./src/utils/mediasource-helper.ts");function T(){return self.SourceBuffer||self.WebKitSourceBuffer}function R(){var m=Object(F.getMediaSource)();if(!m)return!1;var t=T(),b=m&&typeof m.isTypeSupported=="function"&&m.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),o=!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function";return!!b&&!!o}function P(){var m,t=T();return typeof(t==null||((m=t.prototype)===null||m===void 0)?void 0:m.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return a}),I.d(B,"LoadError",function(){return d});var F=I("./src/polyfills/number.ts"),T=I("./src/errors.ts");function R(s,n){s.prototype=Object.create(n.prototype),s.prototype.constructor=s,o(s,n)}function P(s){var n=typeof Map=="function"?new Map:void 0;return P=function(c){if(c===null||!b(c))return c;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(c))return n.get(c);n.set(c,x)}function x(){return m(c,arguments,u(this).constructor)}return x.prototype=Object.create(c.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),o(x,c)},P(s)}function m(s,n,l){return t()?m=Reflect.construct:m=function(x,A,C){var k=[null];k.push.apply(k,A);var w=Function.bind.apply(x,k),y=new w;return C&&o(y,C.prototype),y},m.apply(null,arguments)}function t(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(s){return!1}}function b(s){return Function.toString.call(s).indexOf("[native code]")!==-1}function o(s,n){return o=Object.setPrototypeOf||function(c,x){return c.__proto__=x,c},o(s,n)}function u(s){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},u(s)}var f=Math.pow(2,17),a=function(){function s(l){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=l}var n=s.prototype;return n.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},n.abort=function(){this.loader&&this.loader.abort()},n.load=function(c,x){var A=this,C=c.url;if(!C)return Promise.reject(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,networkDetails:null},"Fragment does not have a "+(C?"part list":"url")));this.abort();var k=this.config,w=k.fLoader,y=k.loader;return new Promise(function(h,p){A.loader&&A.loader.destroy();var v=A.loader=c.loader=w?new w(k):new y(k),_=i(c),E={timeout:k.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:k.fragLoadingMaxRetryTimeout,highWaterMark:f};c.stats=v.stats,v.load(_,E,{onSuccess:function(j,U,S,z){A.resetLoader(c,v),h({frag:c,part:null,payload:j.data,networkDetails:z})},onError:function(j,U,S){A.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,response:j,networkDetails:S}))},onAbort:function(j,U,S){A.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,networkDetails:S}))},onTimeout:function(j,U,S){A.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,networkDetails:S}))},onProgress:function(j,U,S,z){x&&x({frag:c,part:null,payload:S,networkDetails:z})}})})},n.loadPart=function(c,x,A){var C=this;this.abort();var k=this.config,w=k.fLoader,y=k.loader;return new Promise(function(h,p){C.loader&&C.loader.destroy();var v=C.loader=c.loader=w?new w(k):new y(k),_=i(c,x),E={timeout:k.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:k.fragLoadingMaxRetryTimeout,highWaterMark:f};x.stats=v.stats,v.load(_,E,{onSuccess:function(j,U,S,z){C.resetLoader(c,v),C.updateStatsFromPart(c,x);var H={frag:c,part:x,payload:j.data,networkDetails:z};A(H),h(H)},onError:function(j,U,S){C.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,part:x,response:j,networkDetails:S}))},onAbort:function(j,U,S){c.stats.aborted=x.stats.aborted,C.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,part:x,networkDetails:S}))},onTimeout:function(j,U,S){C.resetLoader(c,v),p(new d({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,part:x,networkDetails:S}))}})})},n.updateStatsFromPart=function(c,x){var A=c.stats,C=x.stats,k=C.total;if(A.loaded+=C.loaded,k){var w=Math.round(c.duration/x.duration),y=Math.min(Math.round(A.loaded/k),w),h=w-y,p=h*Math.round(A.loaded/y);A.total=A.loaded+p}else A.total=Math.max(A.loaded,A.total);var v=A.loading,_=C.loading;v.start?v.first+=_.first-_.start:(v.start=_.start,v.first=_.first),v.end=_.end},n.resetLoader=function(c,x){c.loader=null,this.loader===x&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),x.destroy()},s}();function i(s,n){n===void 0&&(n=null);var l=n||s,c={frag:s,part:n,responseType:"arraybuffer",url:l.url,headers:{},rangeStart:0,rangeEnd:0},x=l.byteRangeStartOffset,A=l.byteRangeEndOffset;return Object(F.isFiniteNumber)(x)&&Object(F.isFiniteNumber)(A)&&(c.rangeStart=x,c.rangeEnd=A),c}var d=function(s){R(n,s);function n(l){for(var c,x=arguments.length,A=new Array(x>1?x-1:0),C=1;C>8*(15-k)&255;return C},c.setDecryptDataFromLevelKey=function(A,C){var k=A;return(A==null?void 0:A.method)==="AES-128"&&A.uri&&!A.iv&&(k=m.LevelKey.fromURI(A.uri),k.method=A.method,k.iv=this.createInitializationVector(C),k.keyFormat="identity"),k},c.setElementaryStreamInfo=function(A,C,k,w,y,h){h===void 0&&(h=!1);var p=this.elementaryStreams,v=p[A];if(!v){p[A]={startPTS:C,endPTS:k,startDTS:w,endDTS:y,partial:h};return}v.startPTS=Math.min(v.startPTS,C),v.endPTS=Math.max(v.endPTS,k),v.startDTS=Math.min(v.startDTS,w),v.endDTS=Math.max(v.endDTS,y)},c.clearElementaryStreamInfo=function(){var A=this.elementaryStreams;A[a.AUDIO]=null,A[a.VIDEO]=null,A[a.AUDIOVIDEO]=null},f(l,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var A=this.sn;typeof A!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&P.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),A=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,A)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(F.isFiniteNumber)(this.programDateTime))return null;var A=Object(F.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+A*1e3}},{key:"encrypted",get:function(){var A;return!!((A=this.decryptdata)!==null&&A!==void 0&&A.keyFormat&&this.decryptdata.uri)}}]),l}(i),s=function(n){b(l,n);function l(c,x,A,C,k){var w;w=n.call(this,A)||this,w.fragOffset=0,w.duration=0,w.gap=!1,w.independent=!1,w.relurl=void 0,w.fragment=void 0,w.index=void 0,w.stats=new t.LoadStats,w.duration=c.decimalFloatingPoint("DURATION"),w.gap=c.bool("GAP"),w.independent=c.bool("INDEPENDENT"),w.relurl=c.enumeratedString("URI"),w.fragment=x,w.index=C;var y=c.enumeratedString("BYTERANGE");return y&&w.setByteRange(y,k),k&&(w.fragOffset=k.fragOffset+k.duration),w}return f(l,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var x=this.elementaryStreams;return!!(x.audio||x.video||x.audiovideo)}}]),l}(i)},"./src/loader/key-loader.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return P});var F=I("./src/events.ts"),T=I("./src/errors.ts"),R=I("./src/utils/logger.ts"),P=function(){function m(b){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=b,this._registerListeners()}var t=m.prototype;return t._registerListeners=function(){this.hls.on(F.Events.KEY_LOADING,this.onKeyLoading,this)},t._unregisterListeners=function(){this.hls.off(F.Events.KEY_LOADING,this.onKeyLoading)},t.destroy=function(){this._unregisterListeners();for(var o in this.loaders){var u=this.loaders[o];u&&u.destroy()}this.loaders={}},t.onKeyLoading=function(o,u){var f=u.frag,a=f.type,i=this.loaders[a];if(!f.decryptdata){R.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var d=f.decryptdata.uri;if(d!==this.decrypturl||this.decryptkey===null){var s=this.hls.config;if(i&&(R.logger.warn("abort previous key loader for type:"+a),i.abort()),!d){R.logger.warn("key uri is falsy");return}var n=s.loader,l=f.loader=this.loaders[a]=new n(s);this.decrypturl=d,this.decryptkey=null;var c={url:d,frag:f,responseType:"arraybuffer"},x={timeout:s.fragLoadingTimeOut,maxRetry:0,retryDelay:s.fragLoadingRetryDelay,maxRetryDelay:s.fragLoadingMaxRetryTimeout,highWaterMark:0},A={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};l.load(c,x,A)}else this.decryptkey&&(f.decryptdata.key=this.decryptkey,this.hls.trigger(F.Events.KEY_LOADED,{frag:f}))},t.loadsuccess=function(o,u,f){var a=f.frag;if(!a.decryptdata){R.logger.error("after key load, decryptdata unset");return}this.decryptkey=a.decryptdata.key=new Uint8Array(o.data),a.loader=null,delete this.loaders[a.type],this.hls.trigger(F.Events.KEY_LOADED,{frag:a})},t.loaderror=function(o,u){var f=u.frag,a=f.loader;a&&a.abort(),delete this.loaders[f.type],this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:f,response:o})},t.loadtimeout=function(o,u){var f=u.frag,a=f.loader;a&&a.abort(),delete this.loaders[f.type],this.hls.trigger(F.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:f})},m}()},"./src/loader/level-details.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"LevelDetails",function(){return m});var F=I("./src/polyfills/number.ts");function T(t,b){for(var o=0;ou.endSN||f>0||f===0&&a>0,this.updated||this.advanced?this.misses=Math.floor(u.misses*.6):this.misses=u.misses+1,this.availabilityDelay=u.availabilityDelay},R(t,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(F.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||P}},{key:"drift",get:function(){var u=this.driftEndTime-this.driftStartTime;if(u>0){var f=this.driftEnd-this.driftStart;return f*1e3/u}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var u;return(u=this.fragments)!==null&&u!==void 0&&u.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),t}()},"./src/loader/level-key.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"LevelKey",function(){return m});var F=I("./node_modules/url-toolkit/src/url-toolkit.js"),T=I.n(F);function R(t,b){for(var o=0;o2){var p=h.shift()+".";return p+=parseInt(h.shift()).toString(16),p+=("000"+parseInt(h.shift()).toString(16)).substr(-4),p}return y},k.resolve=function(y,h){return T.buildAbsoluteURL(h,y,{alwaysNormalize:!0})},k.parseMasterPlaylist=function(y,h){var p=[],v={},_=!1;f.lastIndex=0;for(var E;(E=f.exec(y))!=null;)if(E[1]){var g=new b.AttrList(E[1]),j={attrs:g,bitrate:g.decimalInteger("AVERAGE-BANDWIDTH")||g.decimalInteger("BANDWIDTH"),name:g.NAME,url:k.resolve(E[2],h)},U=g.decimalResolution("RESOLUTION");U&&(j.width=U.width,j.height=U.height),c((g.CODECS||"").split(/[ ,]+/).filter(function(z){return z}),j),j.videoCodec&&j.videoCodec.indexOf("avc1")!==-1&&(j.videoCodec=k.convertAVC1ToAVCOTI(j.videoCodec)),p.push(j)}else if(E[3]){var S=new b.AttrList(E[3]);S["DATA-ID"]&&(_=!0,v[S["DATA-ID"]]=S)}return{levels:p,sessionData:_?v:null}},k.parseMasterPlaylistMedia=function(y,h,p,v){v===void 0&&(v=[]);var _,E=[],g=0;for(a.lastIndex=0;(_=a.exec(y))!==null;){var j=new b.AttrList(_[1]);if(j.TYPE===p){var U={attrs:j,bitrate:0,id:g++,groupId:j["GROUP-ID"],instreamId:j["INSTREAM-ID"],name:j.NAME||j.LANGUAGE||"",type:p,default:j.bool("DEFAULT"),autoselect:j.bool("AUTOSELECT"),forced:j.bool("FORCED"),lang:j.LANGUAGE,url:j.URI?k.resolve(j.URI,h):""};if(v.length){var S=k.findGroup(v,U.groupId)||v[0];x(U,S,"audioCodec"),x(U,S,"textCodec")}E.push(U)}}return E},k.parseLevelPlaylist=function(y,h,p,v,_){var E=new m.LevelDetails(h),g=E.fragments,j=null,U=0,S=0,z=0,H=0,M=null,V=new P.Fragment(v,h),K,$,Z,me=-1,oe=!1;for(i.lastIndex=0,E.m3u8=y;(K=i.exec(y))!==null;){oe&&(oe=!1,V=new P.Fragment(v,h),V.start=z,V.sn=U,V.cc=H,V.level=p,j&&(V.initSegment=j,V.rawProgramDateTime=j.rawProgramDateTime));var fe=K[1];if(fe){V.duration=parseFloat(fe);var ye=(" "+K[2]).slice(1);V.title=ye||null,V.tagList.push(ye?["INF",fe,ye]:["INF",fe])}else if(K[3])Object(F.isFiniteNumber)(V.duration)&&(V.start=z,Z&&(V.levelkey=Z),V.sn=U,V.level=p,V.cc=H,V.urlId=_,g.push(V),V.relurl=(" "+K[3]).slice(1),C(V,M),M=V,z+=V.duration,U++,S=0,oe=!0);else if(K[4]){var Ie=(" "+K[4]).slice(1);M?V.setByteRange(Ie,M):V.setByteRange(Ie)}else if(K[5])V.rawProgramDateTime=(" "+K[5]).slice(1),V.tagList.push(["PROGRAM-DATE-TIME",V.rawProgramDateTime]),me===-1&&(me=g.length);else{if(K=K[0].match(d),!K){o.logger.warn("No matches on slow regex match for level playlist!");continue}for($=1;$-1){o.logger.warn("Keyformat "+ct+" is not supported from the manifest");continue}else if(ct!=="identity")continue;ht&&(Z=t.LevelKey.fromURL(h,ie),ie&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(ht)>=0&&(Z.method=ht,Z.keyFormat=ct,$e&&(Z.keyID=$e),we&&(Z.keyFormatVersions=we),Z.iv=xe));break}case"START":{var Ut=new b.AttrList(de),We=Ut.decimalFloatingPoint("TIME-OFFSET");Object(F.isFiniteNumber)(We)&&(E.startTimeOffset=We);break}case"MAP":{var kt=new b.AttrList(de);V.relurl=kt.URI,kt.BYTERANGE&&V.setByteRange(kt.BYTERANGE),V.level=p,V.sn="initSegment",Z&&(V.levelkey=Z),V.initSegment=null,j=V,oe=!0;break}case"SERVER-CONTROL":{var qt=new b.AttrList(de);E.canBlockReload=qt.bool("CAN-BLOCK-RELOAD"),E.canSkipUntil=qt.optionalFloat("CAN-SKIP-UNTIL",0),E.canSkipDateRanges=E.canSkipUntil>0&&qt.bool("CAN-SKIP-DATERANGES"),E.partHoldBack=qt.optionalFloat("PART-HOLD-BACK",0),E.holdBack=qt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Pe=new b.AttrList(de);E.partTarget=Pe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ae=E.partList;Ae||(Ae=E.partList=[]);var ut=S>0?Ae[Ae.length-1]:void 0,Et=S++,Ze=new P.Part(new b.AttrList(de),V,h,Et,ut);Ae.push(Ze),V.duration+=Ze.duration;break}case"PRELOAD-HINT":{var dt=new b.AttrList(de);E.preloadHint=dt;break}case"RENDITION-REPORT":{var Ne=new b.AttrList(de);E.renditionReports=E.renditionReports||[],E.renditionReports.push(Ne);break}default:o.logger.warn("line parsed but not handled: "+K);break}}}M&&!M.relurl?(g.pop(),z-=M.duration,E.partList&&(E.fragmentHint=M)):E.partList&&(C(V,M),V.cc=H,E.fragmentHint=V);var Te=g.length,Oe=g[0],ae=g[Te-1];if(z+=E.skippedSegments*E.targetduration,z>0&&Te&&ae){E.averagetargetduration=z/Te;var le=ae.sn;E.endSN=le!=="initSegment"?le:0,Oe&&(E.startCC=Oe.cc,Oe.initSegment||E.fragments.every(function(he){return he.relurl&&n(he.relurl)})&&(o.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),V=new P.Fragment(v,h),V.relurl=ae.relurl,V.level=p,V.sn="initSegment",Oe.initSegment=V,E.needSidxRanges=!0))}else E.endSN=0,E.startCC=0;return E.fragmentHint&&(z+=E.fragmentHint.duration),E.totalduration=z,E.endCC=H,me>0&&A(g,me),E},k}();function c(k,w){["video","audio","text"].forEach(function(y){var h=k.filter(function(v){return Object(u.isCodecType)(v,y)});if(h.length){var p=h.filter(function(v){return v.lastIndexOf("avc1",0)===0||v.lastIndexOf("mp4a",0)===0});w[y+"Codec"]=p.length>0?p[0]:h[0],k=k.filter(function(v){return h.indexOf(v)===-1})}}),w.unknownCodecs=k}function x(k,w,y){var h=w[y];h&&(k[y]=h)}function A(k,w){for(var y=k[w],h=w;h--;){var p=k[h];if(!p)return;p.programDateTime=y.programDateTime-p.duration*1e3,y=p}}function C(k,w){k.rawProgramDateTime?k.programDateTime=Date.parse(k.rawProgramDateTime):w!=null&&w.programDateTime&&(k.programDateTime=w.endProgramDateTime),Object(F.isFiniteNumber)(k.programDateTime)||(k.programDateTime=null,k.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Y,B,I){"use strict";I.r(B);var F=I("./src/polyfills/number.ts"),T=I("./src/events.ts"),R=I("./src/errors.ts"),P=I("./src/utils/logger.ts"),m=I("./src/utils/mp4-tools.ts"),t=I("./src/loader/m3u8-parser.ts"),b=I("./src/types/loader.ts"),o=I("./src/utils/attr-list.ts");function u(i){var d=i.type;switch(d){case b.PlaylistContextType.AUDIO_TRACK:return b.PlaylistLevelType.AUDIO;case b.PlaylistContextType.SUBTITLE_TRACK:return b.PlaylistLevelType.SUBTITLE;default:return b.PlaylistLevelType.MAIN}}function f(i,d){var s=i.url;return(s===void 0||s.indexOf("data:")===0)&&(s=d.url),s}var a=function(){function i(s){this.hls=void 0,this.loaders=Object.create(null),this.hls=s,this.registerListeners()}var d=i.prototype;return d.registerListeners=function(){var n=this.hls;n.on(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.on(T.Events.LEVEL_LOADING,this.onLevelLoading,this),n.on(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.on(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},d.unregisterListeners=function(){var n=this.hls;n.off(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.off(T.Events.LEVEL_LOADING,this.onLevelLoading,this),n.off(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),n.off(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},d.createInternalLoader=function(n){var l=this.hls.config,c=l.pLoader,x=l.loader,A=c||x,C=new A(l);return n.loader=C,this.loaders[n.type]=C,C},d.getInternalLoader=function(n){return this.loaders[n.type]},d.resetInternalLoader=function(n){this.loaders[n]&&delete this.loaders[n]},d.destroyInternalLoaders=function(){for(var n in this.loaders){var l=this.loaders[n];l&&l.destroy(),this.resetInternalLoader(n)}},d.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},d.onManifestLoading=function(n,l){var c=l.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:b.PlaylistContextType.MANIFEST,url:c,deliveryDirectives:null})},d.onLevelLoading=function(n,l){var c=l.id,x=l.level,A=l.url,C=l.deliveryDirectives;this.load({id:c,groupId:null,level:x,responseType:"text",type:b.PlaylistContextType.LEVEL,url:A,deliveryDirectives:C})},d.onAudioTrackLoading=function(n,l){var c=l.id,x=l.groupId,A=l.url,C=l.deliveryDirectives;this.load({id:c,groupId:x,level:null,responseType:"text",type:b.PlaylistContextType.AUDIO_TRACK,url:A,deliveryDirectives:C})},d.onSubtitleTrackLoading=function(n,l){var c=l.id,x=l.groupId,A=l.url,C=l.deliveryDirectives;this.load({id:c,groupId:x,level:null,responseType:"text",type:b.PlaylistContextType.SUBTITLE_TRACK,url:A,deliveryDirectives:C})},d.load=function(n){var l,c=this.hls.config,x=this.getInternalLoader(n);if(x){var A=x.context;if(A&&A.url===n.url){P.logger.trace("[playlist-loader]: playlist request ongoing");return}P.logger.log("[playlist-loader]: aborting previous loader for type: "+n.type),x.abort()}var C,k,w,y;switch(n.type){case b.PlaylistContextType.MANIFEST:C=c.manifestLoadingMaxRetry,k=c.manifestLoadingTimeOut,w=c.manifestLoadingRetryDelay,y=c.manifestLoadingMaxRetryTimeout;break;case b.PlaylistContextType.LEVEL:case b.PlaylistContextType.AUDIO_TRACK:case b.PlaylistContextType.SUBTITLE_TRACK:C=0,k=c.levelLoadingTimeOut;break;default:C=c.levelLoadingMaxRetry,k=c.levelLoadingTimeOut,w=c.levelLoadingRetryDelay,y=c.levelLoadingMaxRetryTimeout;break}if(x=this.createInternalLoader(n),(l=n.deliveryDirectives)!==null&&l!==void 0&&l.part){var h;if(n.type===b.PlaylistContextType.LEVEL&&n.level!==null?h=this.hls.levels[n.level].details:n.type===b.PlaylistContextType.AUDIO_TRACK&&n.id!==null?h=this.hls.audioTracks[n.id].details:n.type===b.PlaylistContextType.SUBTITLE_TRACK&&n.id!==null&&(h=this.hls.subtitleTracks[n.id].details),h){var p=h.partTarget,v=h.targetduration;p&&v&&(k=Math.min(Math.max(p*3,v*.8)*1e3,k))}}var _={timeout:k,maxRetry:C,retryDelay:w,maxRetryDelay:y,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};x.load(n,_,E)},d.loadsuccess=function(n,l,c,x){if(x===void 0&&(x=null),c.isSidxRequest){this.handleSidxRequest(n,c),this.handlePlaylistLoaded(n,l,c,x);return}this.resetInternalLoader(c.type);var A=n.data;if(A.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(n,c,"no EXTM3U delimiter",x);return}l.parsing.start=performance.now(),A.indexOf("#EXTINF:")>0||A.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(n,l,c,x):this.handleMasterPlaylist(n,l,c,x)},d.loaderror=function(n,l,c){c===void 0&&(c=null),this.handleNetworkError(l,c,!1,n)},d.loadtimeout=function(n,l,c){c===void 0&&(c=null),this.handleNetworkError(l,c,!0)},d.handleMasterPlaylist=function(n,l,c,x){var A=this.hls,C=n.data,k=f(n,c),w=t.default.parseMasterPlaylist(C,k),y=w.levels,h=w.sessionData;if(!y.length){this.handleManifestParsingError(n,c,"no level found in manifest",x);return}var p=y.map(function(U){return{id:U.attrs.AUDIO,audioCodec:U.audioCodec}}),v=y.map(function(U){return{id:U.attrs.SUBTITLES,textCodec:U.textCodec}}),_=t.default.parseMasterPlaylistMedia(C,k,"AUDIO",p),E=t.default.parseMasterPlaylistMedia(C,k,"SUBTITLES",v),g=t.default.parseMasterPlaylistMedia(C,k,"CLOSED-CAPTIONS");if(_.length){var j=_.some(function(U){return!U.url});!j&&y[0].audioCodec&&!y[0].attrs.AUDIO&&(P.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),_.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new o.AttrList({}),bitrate:0,url:""}))}A.trigger(T.Events.MANIFEST_LOADED,{levels:y,audioTracks:_,subtitles:E,captions:g,url:k,stats:l,networkDetails:x,sessionData:h})},d.handleTrackOrLevelPlaylist=function(n,l,c,x){var A=this.hls,C=c.id,k=c.level,w=c.type,y=f(n,c),h=Object(F.isFiniteNumber)(C)?C:0,p=Object(F.isFiniteNumber)(k)?k:h,v=u(c),_=t.default.parseLevelPlaylist(n.data,y,p,v,h);if(!_.fragments.length){A.trigger(T.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:y,reason:"no fragments found in level",level:typeof c.level=="number"?c.level:void 0});return}if(w===b.PlaylistContextType.MANIFEST){var E={attrs:new o.AttrList({}),bitrate:0,details:_,name:"",url:y};A.trigger(T.Events.MANIFEST_LOADED,{levels:[E],audioTracks:[],url:y,stats:l,networkDetails:x,sessionData:null})}if(l.parsing.end=performance.now(),_.needSidxRanges){var g,j=(g=_.fragments[0].initSegment)===null||g===void 0?void 0:g.url;this.load({url:j,isSidxRequest:!0,type:w,level:k,levelDetails:_,id:C,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}c.levelDetails=_,this.handlePlaylistLoaded(n,l,c,x)},d.handleSidxRequest=function(n,l){var c=Object(m.parseSegmentIndex)(new Uint8Array(n.data));if(!c)return;var x=c.references,A=l.levelDetails;x.forEach(function(C,k){var w=C.info,y=A.fragments[k];y.byteRange.length===0&&y.setByteRange(String(1+w.end-w.start)+"@"+String(w.start)),y.initSegment&&y.initSegment.setByteRange(String(c.moovEndOffset)+"@0")})},d.handleManifestParsingError=function(n,l,c,x){this.hls.trigger(T.Events.ERROR,{type:R.ErrorTypes.NETWORK_ERROR,details:R.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:l.type===b.PlaylistContextType.MANIFEST,url:n.url,reason:c,response:n,context:l,networkDetails:x})},d.handleNetworkError=function(n,l,c,x){c===void 0&&(c=!1),P.logger.warn("[playlist-loader]: A network "+(c?"timeout":"error")+" occurred while loading "+n.type+" level: "+n.level+" id: "+n.id+' group-id: "'+n.groupId+'"');var A=R.ErrorDetails.UNKNOWN,C=!1,k=this.getInternalLoader(n);switch(n.type){case b.PlaylistContextType.MANIFEST:A=c?R.ErrorDetails.MANIFEST_LOAD_TIMEOUT:R.ErrorDetails.MANIFEST_LOAD_ERROR,C=!0;break;case b.PlaylistContextType.LEVEL:A=c?R.ErrorDetails.LEVEL_LOAD_TIMEOUT:R.ErrorDetails.LEVEL_LOAD_ERROR,C=!1;break;case b.PlaylistContextType.AUDIO_TRACK:A=c?R.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:R.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,C=!1;break;case b.PlaylistContextType.SUBTITLE_TRACK:A=c?R.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:R.ErrorDetails.SUBTITLE_LOAD_ERROR,C=!1;break}k&&this.resetInternalLoader(n.type);var w={type:R.ErrorTypes.NETWORK_ERROR,details:A,fatal:C,url:n.url,loader:k,context:n,networkDetails:l};x&&(w.response=x),this.hls.trigger(T.Events.ERROR,w)},d.handlePlaylistLoaded=function(n,l,c,x){var A=c.type,C=c.level,k=c.id,w=c.groupId,y=c.loader,h=c.levelDetails,p=c.deliveryDirectives;if(!(h!=null&&h.targetduration)){this.handleManifestParsingError(n,c,"invalid target duration",x);return}if(!y)return;h.live&&(y.getCacheAge&&(h.ageHeader=y.getCacheAge()||0),(!y.getCacheAge||isNaN(h.ageHeader))&&(h.ageHeader=0));switch(A){case b.PlaylistContextType.MANIFEST:case b.PlaylistContextType.LEVEL:this.hls.trigger(T.Events.LEVEL_LOADED,{details:h,level:C||0,id:k||0,stats:l,networkDetails:x,deliveryDirectives:p});break;case b.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(T.Events.AUDIO_TRACK_LOADED,{details:h,id:k||0,groupId:w||"",stats:l,networkDetails:x,deliveryDirectives:p});break;case b.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(T.Events.SUBTITLE_TRACK_LOADED,{details:h,id:k||0,groupId:w||"",stats:l,networkDetails:x,deliveryDirectives:p});break}},i}();B.default=a},"./src/polyfills/number.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"isFiniteNumber",function(){return F}),I.d(B,"MAX_SAFE_INTEGER",function(){return T});var F=Number.isFinite||function(R){return typeof R=="number"&&isFinite(R)},T=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Y,B,I){"use strict";I.r(B);var F=function(){function T(){}return T.getSilentFrame=function(P,m){switch(P){case"mp4a.40.2":if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(m===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(m===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},T}();B.default=F},"./src/remux/mp4-generator.ts":function(Y,B,I){"use strict";I.r(B);var F=Math.pow(2,32)-1,T=function(){function R(){}return R.init=function(){R.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var m;for(m in R.types)R.types.hasOwnProperty(m)&&(R.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.charCodeAt(3)]);var t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),b=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);R.HDLR_TYPES={video:t,audio:b};var o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),u=new Uint8Array([0,0,0,0,0,0,0,0]);R.STTS=R.STSC=R.STCO=u,R.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),R.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),R.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var f=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0,0,1]);R.FTYP=R.box(R.types.ftyp,f,i,f,a),R.DINF=R.box(R.types.dinf,R.box(R.types.dref,o))},R.box=function(m){for(var t=8,b=arguments.length,o=new Array(b>1?b-1:0),u=1;u>24&255,i[1]=t>>16&255,i[2]=t>>8&255,i[3]=t&255,i.set(m,4),f=0,t=8;f>24&255,m>>16&255,m>>8&255,m&255,b>>24,b>>16&255,b>>8&255,b&255,o>>24,o>>16&255,o>>8&255,o&255,85,196,0,0]))},R.mdia=function(m){return R.box(R.types.mdia,R.mdhd(m.timescale,m.duration),R.hdlr(m.type),R.minf(m))},R.mfhd=function(m){return R.box(R.types.mfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255]))},R.minf=function(m){return m.type==="audio"?R.box(R.types.minf,R.box(R.types.smhd,R.SMHD),R.DINF,R.stbl(m)):R.box(R.types.minf,R.box(R.types.vmhd,R.VMHD),R.DINF,R.stbl(m))},R.moof=function(m,t,b){return R.box(R.types.moof,R.mfhd(m),R.traf(b,t))},R.moov=function(m){for(var t=m.length,b=[];t--;)b[t]=R.trak(m[t]);return R.box.apply(null,[R.types.moov,R.mvhd(m[0].timescale,m[0].duration)].concat(b).concat(R.mvex(m)))},R.mvex=function(m){for(var t=m.length,b=[];t--;)b[t]=R.trex(m[t]);return R.box.apply(null,[R.types.mvex].concat(b))},R.mvhd=function(m,t){t*=m;var b=Math.floor(t/(F+1)),o=Math.floor(t%(F+1)),u=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,b>>24,b>>16&255,b>>8&255,b&255,o>>24,o>>16&255,o>>8&255,o&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return R.box(R.types.mvhd,u)},R.sdtp=function(m){var t=m.samples||[],b=new Uint8Array(4+t.length),o,u;for(o=0;o>>8&255),t.push(f&255),t=t.concat(Array.prototype.slice.call(u));for(o=0;o>>8&255),b.push(f&255),b=b.concat(Array.prototype.slice.call(u));var a=R.box(R.types.avcC,new Uint8Array([1,t[3],t[4],t[5],252|3,224|m.sps.length].concat(t).concat([m.pps.length]).concat(b))),i=m.width,d=m.height,s=m.pixelRatio[0],n=m.pixelRatio[1];return R.box(R.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>8&255,i&255,d>>8&255,d&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a,R.box(R.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),R.box(R.types.pasp,new Uint8Array([s>>24,s>>16&255,s>>8&255,s&255,n>>24,n>>16&255,n>>8&255,n&255])))},R.esds=function(m){var t=m.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(m.config).concat([6,1,2]))},R.mp4a=function(m){var t=m.samplerate;return R.box(R.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0]),R.box(R.types.esds,R.esds(m)))},R.mp3=function(m){var t=m.samplerate;return R.box(R.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0]))},R.stsd=function(m){return m.type==="audio"?!m.isAAC&&m.codec==="mp3"?R.box(R.types.stsd,R.STSD,R.mp3(m)):R.box(R.types.stsd,R.STSD,R.mp4a(m)):R.box(R.types.stsd,R.STSD,R.avc1(m))},R.tkhd=function(m){var t=m.id,b=m.duration*m.timescale,o=m.width,u=m.height,f=Math.floor(b/(F+1)),a=Math.floor(b%(F+1));return R.box(R.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,o>>8&255,o&255,0,0,u>>8&255,u&255,0,0]))},R.traf=function(m,t){var b=R.sdtp(m),o=m.id,u=Math.floor(t/(F+1)),f=Math.floor(t%(F+1));return R.box(R.types.traf,R.box(R.types.tfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255])),R.box(R.types.tfdt,new Uint8Array([1,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,f>>24,f>>16&255,f>>8&255,f&255])),R.trun(m,b.length+16+20+8+16+8+8),b)},R.trak=function(m){return m.duration=m.duration||4294967295,R.box(R.types.trak,R.tkhd(m),R.mdia(m))},R.trex=function(m){var t=m.id;return R.box(R.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},R.trun=function(m,t){var b=m.samples||[],o=b.length,u=12+16*o,f=new Uint8Array(u),a,i,d,s,n,l;for(t+=8+u,f.set([0,0,15,1,o>>>24&255,o>>>16&255,o>>>8&255,o&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),a=0;a>>24&255,d>>>16&255,d>>>8&255,d&255,s>>>24&255,s>>>16&255,s>>>8&255,s&255,n.isLeading<<2|n.dependsOn,n.isDependedOn<<6|n.hasRedundancy<<4|n.paddingValue<<1|n.isNonSync,n.degradPrio&240<<8,n.degradPrio&15,l>>>24&255,l>>>16&255,l>>>8&255,l&255],12+16*a);return R.box(R.types.trun,f)},R.initSegment=function(m){R.types||R.init();var t=R.moov(m),b=new Uint8Array(R.FTYP.byteLength+t.byteLength);return b.set(R.FTYP),b.set(t,R.FTYP.byteLength),b},R}();T.types=void 0,T.HDLR_TYPES=void 0,T.STTS=void 0,T.STSC=void 0,T.STCO=void 0,T.STSZ=void 0,T.VMHD=void 0,T.SMHD=void 0,T.STSD=void 0,T.FTYP=void 0,T.DINF=void 0,B.default=T},"./src/remux/mp4-remuxer.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return l}),I.d(B,"normalizePts",function(){return c});var F=I("./src/polyfills/number.ts"),T=I("./src/remux/aac-helper.ts"),R=I("./src/remux/mp4-generator.ts"),P=I("./src/events.ts"),m=I("./src/errors.ts"),t=I("./src/utils/logger.ts"),b=I("./src/types/loader.ts"),o=I("./src/utils/timescale-conversion.ts");function u(){return u=Object.assign||function(k){for(var w=1;w0?_:E.pts},h[0].pts);return p&&t.logger.debug("PTS rollover detected"),v},w.remux=function(h,p,v,_,E,g,j,U){var S,z,H,M,V,K,$=E,Z=E,me=h.pid>-1,oe=p.pid>-1,fe=p.samples.length,ye=h.samples.length>0,Ie=fe>1,ve=(!me||ye)&&(!oe||Ie)||this.ISGenerated||j;if(ve){this.ISGenerated||(H=this.generateIS(h,p,E));var de=this.isVideoContiguous,Je=-1;if(Ie&&(Je=x(p.samples),!de&&this.config.forceKeyFrameOnDiscontinuity))if(K=!0,Je>0){t.logger.warn("[mp4-remuxer]: Dropped "+Je+" out of "+fe+" video samples due to a missing keyframe");var Rt=this.getVideoStartPts(p.samples);p.samples=p.samples.slice(Je),p.dropped+=Je,Z+=(p.samples[0].pts-Rt)/(p.timescale||9e4)}else Je===-1&&(t.logger.warn("[mp4-remuxer]: No keyframe found out of "+fe+" video samples"),K=!1);if(this.ISGenerated){if(ye&&Ie){var Ee=this.getVideoStartPts(p.samples),Me=c(h.samples[0].pts,Ee)-Ee,rt=Me/p.inputTimeScale;$+=Math.max(0,rt),Z+=Math.max(0,-rt)}if(ye){if(h.samplerate||(t.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),H=this.generateIS(h,p,E)),z=this.remuxAudio(h,$,this.isAudioContiguous,g,oe||Ie||U===b.PlaylistLevelType.AUDIO?Z:void 0),Ie){var He=z?z.endPTS-z.startPTS:0;p.inputTimeScale||(t.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),H=this.generateIS(h,p,E)),S=this.remuxVideo(p,Z,de,He)}}else Ie&&(S=this.remuxVideo(p,Z,de,0));S&&(S.firstKeyFrame=Je,S.independent=Je!==-1)}}return this.ISGenerated&&(v.samples.length&&(V=this.remuxID3(v,E)),_.samples.length&&(M=this.remuxText(_,E))),{audio:z,video:S,initSegment:H,independent:K,text:M,id3:V}},w.generateIS=function(h,p,v){var _=h.samples,E=p.samples,g=this.typeSupported,j={},U=!Object(F.isFiniteNumber)(this._initPTS),S="audio/mp4",z,H,M;if(U&&(z=H=Infinity),h.config&&_.length&&(h.timescale=h.samplerate,h.isAAC||(g.mpeg?(S="audio/mpeg",h.codec=""):g.mp3&&(h.codec="mp3")),j.audio={id:"audio",container:S,codec:h.codec,initSegment:!h.isAAC&&g.mpeg?new Uint8Array(0):R.default.initSegment([h]),metadata:{channelCount:h.channelCount}},U&&(M=h.inputTimeScale,z=H=_[0].pts-Math.round(M*v))),p.sps&&p.pps&&E.length&&(p.timescale=p.inputTimeScale,j.video={id:"main",container:"video/mp4",codec:p.codec,initSegment:R.default.initSegment([p]),metadata:{width:p.width,height:p.height}},U)){M=p.inputTimeScale;var V=this.getVideoStartPts(E),K=Math.round(M*v);H=Math.min(H,c(E[0].dts,V)-K),z=Math.min(z,V-K)}if(Object.keys(j).length)return this.ISGenerated=!0,U&&(this._initPTS=z,this._initDTS=H),{tracks:j,initPTS:z,timescale:M}},w.remuxVideo=function(h,p,v,_){var E=h.inputTimeScale,g=h.samples,j=[],U=g.length,S=this._initPTS,z=this.nextAvcDts,H=8,M,V,K,$=Number.POSITIVE_INFINITY,Z=Number.NEGATIVE_INFINITY,me=0,oe=!1;if(!v||z===null){var fe=p*E,ye=g[0].pts-c(g[0].dts,g[0].pts);z=fe-ye}for(var Ie=0;Ieve.pts){var de=9e4*.2;me=Math.max(Math.min(me,ve.pts-ve.dts),-1*de)}ve.dts0?Ie-1:Ie].dts&&(oe=!0)}oe&&g.sort(function(zt,Ot){var At=zt.dts-Ot.dts,ft=zt.pts-Ot.pts;return At||ft}),V=g[0].dts,K=g[g.length-1].dts;var Je=Math.round((K-V)/(U-1));if(me<0){if(meJe,ke=rt<-1;if(He||ke){He?t.logger.warn("AVC: "+Object(o.toMsFromMpegTsClock)(rt,!0)+" ms ("+rt+"dts) hole between fragments detected, filling it"):t.logger.warn("AVC: "+Object(o.toMsFromMpegTsClock)(-rt,!0)+" ms ("+rt+"dts) overlapping between fragments detected"),V=z;var ht=g[0].pts-rt;g[0].dts=V,g[0].pts=ht,t.logger.log("Video: First PTS/DTS adjusted: "+Object(o.toMsFromMpegTsClock)(ht,!0)+"/"+Object(o.toMsFromMpegTsClock)(V,!0)+", delta: "+Object(o.toMsFromMpegTsClock)(rt,!0)+" ms")}}n&&(V=Math.max(0,V));for(var ie=0,xe=0,we=0;we0?Ae-1:Ae].dts;if(le.stretchShortVideoTrack&&this.nextAudioPts!==null){var _e=Math.floor(le.maxBufferHole*E),Se=(_?$+_*E:this.nextAudioPts)-ut.pts;Se>_e?(M=Se-he,M<0&&(M=he),t.logger.log("[mp4-remuxer]: It is approximately "+Se/90+" ms to the next segment; using duration "+M/90+" ms for the last video frame.")):M=he}else M=he}var ze=Math.round(ut.pts-ut.dts);j.push(new A(ut.key,M,Ze,ze))}if(j.length&&d&&d<70){var xt=j[0].flags;xt.dependsOn=2,xt.isNonSync=0}console.assert(M!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=z=K+M,this.isVideoContiguous=!0;var Qt=R.default.moof(h.sequenceNumber++,V,u({},h,{samples:j})),sn="video",gt={data1:Qt,data2:qt,startPTS:$/E,endPTS:(Z+M)/E,startDTS:V/E,endDTS:z/E,type:sn,hasAudio:!1,hasVideo:!0,nb:j.length,dropped:h.dropped};return h.samples=[],h.dropped=0,console.assert(qt.length,"MDAT length must not be zero"),gt},w.remuxAudio=function(h,p,v,_,E){var g=h.inputTimeScale,j=h.samplerate?h.samplerate:g,U=g/j,S=h.isAAC?a:i,z=S*U,H=this._initPTS,M=!h.isAAC&&this.typeSupported.mpeg,V=[],K=h.samples,$=M?0:8,Z=this.nextAudioPts||-1,me=p*g;if(this.isAudioContiguous=v=v||K.length&&Z>0&&(_&&Math.abs(me-Z)<9e3||Math.abs(c(K[0].pts-H,me)-Z)<20*z),K.forEach(function(Oe){Oe.pts=c(Oe.pts-H,me)}),!v||Z<0){if(K=K.filter(function(Oe){return Oe.pts>=0}),!K.length)return;E===0?Z=0:_?Z=Math.max(0,me):Z=K[0].pts}if(h.isAAC)for(var oe=E!==void 0,fe=this.config.maxAudioFramesDrift,ye=0,Ie=Z;ye=fe*z&&Rt0){xe+=$;try{ie=new Uint8Array(xe)}catch(Oe){this.observer.emit(P.Events.ERROR,P.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:xe,reason:"fail allocating audio mdat "+xe});return}if(!M){var qt=new DataView(ie.buffer);qt.setUint32(0,xe),ie.set(R.default.types.mdat,4)}}else return;ie.set(Ut,$);var Pe=Ut.byteLength;$+=Pe,V.push(new A(!0,S,Pe,0)),ht=We}var Ae=V.length;if(!Ae)return;var ut=V[V.length-1];this.nextAudioPts=Z=ht+U*ut.duration;var Et=M?new Uint8Array(0):R.default.moof(h.sequenceNumber++,ke/U,u({},h,{samples:V}));h.samples=[];var Ze=ke/g,dt=Z/g,Ne="audio",Te={data1:Et,data2:ie,startPTS:Ze,endPTS:dt,startDTS:Ze,endDTS:dt,type:Ne,hasAudio:!0,hasVideo:!1,nb:Ae};return this.isAudioContiguous=!0,console.assert(ie.length,"MDAT length must not be zero"),Te},w.remuxEmptyAudio=function(h,p,v,_){var E=h.inputTimeScale,g=h.samplerate?h.samplerate:E,j=E/g,U=this.nextAudioPts,S=(U!==null?U:_.startDTS*E)+this._initDTS,z=_.endDTS*E+this._initDTS,H=j*a,M=Math.ceil((z-S)/H),V=T.default.getSilentFrame(h.manifestCodec||h.codec,h.channelCount);if(t.logger.warn("[mp4-remuxer]: remux empty Audio"),!V){t.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var K=[],$=0;$4294967296;)k+=y;return k}function x(k){for(var w=0;w0?this.lastEndDTS=h:(P.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var p=!!k.audio,v=!!k.video,_="";p&&(_+="audio"),v&&(_+="video");var E={data1:A,startPTS:y,startDTS:y,endPTS:h,endDTS:h,type:_,hasAudio:p,hasVideo:v,nb:1,dropped:0};return x.audio=E.type==="audio"?E:void 0,x.video=E.type!=="audio"?E:void 0,x.text=s,x.id3=d,x.initSegment=C,x},o}(),t=function(u,f,a){return Object(T.getStartDTS)(u,f)-a};function b(o,u){var f=o==null?void 0:o.codec;return f&&f.length>4?f:f==="hvc1"?"hvc1.1.c.L120.90":f==="av01"?"av01.0.04M.08":f==="avc1"||u===R.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}B.default=m},"./src/task-loop.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"default",function(){return F});var F=function(){function T(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var R=T.prototype;return R.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},R.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},R.onHandlerDestroyed=function(){},R.hasInterval=function(){return!!this._tickInterval},R.hasNextTick=function(){return!!this._tickTimer},R.setInterval=function(m){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,m),!0)},R.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},R.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},R.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},R.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},R.doTick=function(){},T}()},"./src/types/cmcd.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"CMCDVersion",function(){return F}),I.d(B,"CMCDObjectType",function(){return T}),I.d(B,"CMCDStreamingFormat",function(){return R}),I.d(B,"CMCDStreamType",function(){return P});var F=1,T;(function(m){m.MANIFEST="m",m.AUDIO="a",m.VIDEO="v",m.MUXED="av",m.INIT="i",m.CAPTION="c",m.TIMED_TEXT="tt",m.KEY="k",m.OTHER="o"})(T||(T={}));var R;(function(m){m.DASH="d",m.HLS="h",m.SMOOTH="s",m.OTHER="o"})(R||(R={}));var P;(function(m){m.VOD="v",m.LIVE="l"})(P||(P={}))},"./src/types/level.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"HlsSkip",function(){return R}),I.d(B,"getSkipValue",function(){return P}),I.d(B,"HlsUrlParameters",function(){return m}),I.d(B,"Level",function(){return t});function F(b,o){for(var u=0;uNumber.MAX_SAFE_INTEGER?Infinity:o},m.hexadecimalInteger=function(b){if(this[b]){var o=(this[b]||"0x").slice(2);o=(o.length&1?"0":"")+o;for(var u=new Uint8Array(o.length/2),f=0;fNumber.MAX_SAFE_INTEGER?Infinity:o},m.decimalFloatingPoint=function(b){return parseFloat(this[b])},m.optionalFloat=function(b,o){var u=this[b];return u?parseFloat(u):o},m.enumeratedString=function(b){return this[b]},m.bool=function(b){return this[b]==="YES"},m.decimalResolution=function(b){var o=F.exec(this[b]);return o===null?void 0:{width:parseInt(o[1],10),height:parseInt(o[2],10)}},P.parseAttrList=function(b){var o,u={},f='"';for(T.lastIndex=0;(o=T.exec(b))!==null;){var a=o[2];a.indexOf(f)===0&&a.lastIndexOf(f)===a.length-1&&(a=a.slice(1,-1)),u[o[1]]=a}return u},P}()},"./src/utils/binary-search.ts":function(Y,B,I){"use strict";I.r(B);var F={search:function(R,P){for(var m=0,t=R.length-1,b=null,o=null;m<=t;){b=(m+t)/2|0,o=R[b];var u=P(o);if(u>0)m=b+1;else if(u<0)t=b-1;else return o}return null}};B.default=F},"./src/utils/buffer-helper.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"BufferHelper",function(){return R});var F=I("./src/utils/logger.ts"),T={length:0,start:function(){return 0},end:function(){return 0}},R=function(){function P(){}return P.isBuffered=function(t,b){try{if(t){for(var o=P.getBuffered(t),u=0;u=o.start(u)&&b<=o.end(u))return!0}}catch(f){}return!1},P.bufferInfo=function(t,b,o){try{if(t){var u=P.getBuffered(t),f=[],a;for(a=0;ai&&(u[a-1].end=t[f].end):u.push(t[f])}else u.push(t[f])}else u=t;for(var d=0,s,n=b,l=b,c=0;c=x&&b=v&&F.logger.log(this.time+" ["+v+"] "+_)},y}(),d=function(h){for(var p=[],v=0;vm&&(this.logger.log(a.DEBUG,"Too large cursor position "+this.pos),this.pos=m)},h.moveCursor=function(v){var _=this.pos+v;if(v>1)for(var E=this.pos+1;E<_+1;E++)this.chars[E].setPenState(this.currPenState);this.setCursor(_)},h.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},h.insertChar=function(v){v>=144&&this.backSpace();var _=R(v);if(this.pos>=m){this.logger.log(a.ERROR,"Cannot insert "+v.toString(16)+" ("+_+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(_,this.currPenState),this.moveCursor(1)},h.clearFromPos=function(v){var _;for(_=v;_0&&(v?E="["+_.join(" | ")+"]":E=_.join(` `)),E},h.getTextAndFormat=function(){return this.rows},y}(),x=function(){function y(p,v,_){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=p,this.outputFilter=v,this.mode=null,this.verbose=0,this.displayedMemory=new c(_),this.nonDisplayedMemory=new c(_),this.lastOutputScreen=new c(_),this.currRollUpRow=this.displayedMemory.rows[P-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=_}var h=y.prototype;return h.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[P-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},h.getHandler=function(){return this.outputFilter},h.setHandler=function(v){this.outputFilter=v},h.setPAC=function(v){this.writeScreen.setPAC(v)},h.setBkgData=function(v){this.writeScreen.setBkgData(v)},h.setMode=function(v){if(v===this.mode)return;this.mode=v,this.logger.log(a.INFO,"MODE="+v),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=v},h.insertChars=function(v){for(var _=0;_=46,_.italics)_.foreground="white";else{var E=Math.floor(v/2)-16,g=["white","green","blue","cyan","red","yellow","magenta"];_.foreground=g[E]}this.logger.log(a.INFO,"MIDROW: "+JSON.stringify(_)),this.writeScreen.setPen(_)},h.outputDataUpdate=function(v){v===void 0&&(v=!1);var _=this.logger.time;if(_===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=_:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,_,this.lastOutputScreen),v&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:_),this.lastOutputScreen.copy(this.displayedMemory))},h.cueSplitAtTime=function(v){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,v,this.displayedMemory),this.cueStartTime=v))},y}(),A=function(){function y(p,v,_){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var E=new i;this.channels=[null,new x(p,v,E),new x(p+1,_,E)],this.cmdHistory=w(),this.logger=E}var h=y.prototype;return h.getHandler=function(v){return this.channels[v].getHandler()},h.setHandler=function(v,_){this.channels[v].setHandler(_)},h.addData=function(v,_){var E,g,j,U=!1;this.logger.time=v;for(var S=0;S<_.length;S+=2){if(g=_[S]&127,j=_[S+1]&127,g===0&&j===0)continue;if(this.logger.log(a.DATA,"["+d([_[S],_[S+1]])+"] -> ("+d([g,j])+")"),E=this.parseCmd(g,j),E||(E=this.parseMidrow(g,j)),E||(E=this.parsePAC(g,j)),E||(E=this.parseBackgroundAttributes(g,j)),!E&&(U=this.parseChars(g,j),U)){var z=this.currentChannel;if(z&&z>0){var H=this.channels[z];H.insertChars(U)}else this.logger.log(a.WARNING,"No channel found yet. TEXT-MODE?")}!E&&!U&&this.logger.log(a.WARNING,"Couldn't parse cleaned data "+d([g,j])+" orig: "+d([_[S],_[S+1]]))}},h.parseCmd=function(v,_){var E=this.cmdHistory,g=(v===20||v===28||v===21||v===29)&&_>=32&&_<=47,j=(v===23||v===31)&&_>=33&&_<=35;if(!(g||j))return!1;if(k(v,_,E))return C(null,null,E),this.logger.log(a.DEBUG,"Repeated command ("+d([v,_])+") is dropped"),!0;var U=v===20||v===21||v===23?1:2,S=this.channels[U];return v===20||v===21||v===28||v===29?_===32?S.ccRCL():_===33?S.ccBS():_===34?S.ccAOF():_===35?S.ccAON():_===36?S.ccDER():_===37?S.ccRU(2):_===38?S.ccRU(3):_===39?S.ccRU(4):_===40?S.ccFON():_===41?S.ccRDC():_===42?S.ccTR():_===43?S.ccRTD():_===44?S.ccEDM():_===45?S.ccCR():_===46?S.ccENM():_===47&&S.ccEOC():S.ccTO(_-32),C(v,_,E),this.currentChannel=U,!0},h.parseMidrow=function(v,_){var E=0;if((v===17||v===25)&&_>=32&&_<=47){if(v===17?E=1:E=2,E!==this.currentChannel)return this.logger.log(a.ERROR,"Mismatch channel in midrow parsing"),!1;var g=this.channels[E];return g?(g.ccMIDROW(_),this.logger.log(a.DEBUG,"MIDROW ("+d([v,_])+")"),!0):!1}return!1},h.parsePAC=function(v,_){var E,g=this.cmdHistory,j=(v>=17&&v<=23||v>=25&&v<=31)&&_>=64&&_<=127,U=(v===16||v===24)&&_>=64&&_<=95;if(!(j||U))return!1;if(k(v,_,g))return C(null,null,g),!0;var S=v<=23?1:2;_>=64&&_<=95?E=S===1?t[v]:o[v]:E=S===1?b[v]:u[v];var z=this.channels[S];return z?(z.setPAC(this.interpretPAC(E,_)),C(v,_,g),this.currentChannel=S,!0):!1},h.interpretPAC=function(v,_){var E,g={color:null,italics:!1,indent:null,underline:!1,row:v};return _>95?E=_-96:E=_-64,g.underline=(E&1)===1,E<=13?g.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(E/2)]:E<=15?(g.italics=!0,g.color="white"):g.indent=Math.floor((E-16)/2)*4,g},h.parseChars=function(v,_){var E,g=null,j=null;if(v>=25?(E=2,j=v-8):(E=1,j=v),j>=17&&j<=19){var U;j===17?U=_+80:j===18?U=_+112:U=_+144,this.logger.log(a.INFO,"Special char '"+R(U)+"' in channel "+E),g=[U]}else v>=32&&v<=127&&(g=_===0?[v]:[v,_]);if(g){var S=d(g);this.logger.log(a.DEBUG,"Char codes = "+S.join(",")),C(v,_,this.cmdHistory)}return g},h.parseBackgroundAttributes=function(v,_){var E=(v===16||v===24)&&_>=32&&_<=47,g=(v===23||v===31)&&_>=45&&_<=47;if(!(E||g))return!1;var j,U={};v===16||v===24?(j=Math.floor((_-32)/2),U.background=f[j],_%2===1&&(U.background=U.background+"_semi")):_===45?U.background="transparent":(U.foreground="black",_===47&&(U.underline=!0));var S=v<=23?1:2,z=this.channels[S];return z.setBkgData(U),C(v,_,this.cmdHistory),!0},h.reset=function(){for(var v=0;v=16?n--:n++;var C=Object(F.fixLineBreaks)(l.trim()),k=Object(T.generateCueId)(o,u,C);(!b||!b.cues||!b.cues.getCueById(k))&&(d=new c(o,u,C),d.id=k,d.line=x+1,d.align="left",d.position=10+Math.min(80,Math.floor(n*8/32)*10),a.push(d))}return b&&a.length&&(a.sort(function(w,y){return w.line==="auto"||y.line==="auto"?0:w.line>8&&y.line>8?y.line-w.line:w.line-y.line}),a.forEach(function(w){return Object(R.addCueToTrack)(b,w)})),a}};B.default=m},"./src/utils/discontinuities.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"findFirstFragWithCC",function(){return P}),I.d(B,"shouldAlignOnDiscontinuities",function(){return m}),I.d(B,"findDiscontinuousReferenceFrag",function(){return t}),I.d(B,"adjustSlidingStart",function(){return o}),I.d(B,"alignStream",function(){return u}),I.d(B,"alignPDT",function(){return a}),I.d(B,"alignFragmentByPDTDelta",function(){return i}),I.d(B,"alignMediaPlaylistByPDT",function(){return d});var F=I("./src/polyfills/number.ts"),T=I("./src/utils/logger.ts"),R=I("./src/controller/level-helper.ts");function P(s,n){for(var l=null,c=0,x=s.length;cl.startCC||s&&s.cc=this.minWeight_},P.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},P.destroy=function(){},R}();B.default=T},"./src/utils/ewma.ts":function(Y,B,I){"use strict";I.r(B);var F=function(){function T(P,m,t){m===void 0&&(m=0),t===void 0&&(t=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=P,this.alpha_=P?Math.exp(Math.log(.5)/P):0,this.estimate_=m,this.totalWeight_=t}var R=T.prototype;return R.sample=function(m,t){var b=Math.pow(this.alpha_,m);this.estimate_=t*(1-b)+b*this.estimate_,this.totalWeight_+=m},R.getTotalWeight=function(){return this.totalWeight_},R.getEstimate=function(){if(this.alpha_){var m=1-Math.pow(this.alpha_,this.totalWeight_);if(m)return this.estimate_/m}return this.estimate_},T}();B.default=F},"./src/utils/fetch-loader.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"fetchSupported",function(){return i});var F=I("./src/polyfills/number.ts"),T=I("./src/loader/load-stats.ts"),R=I("./src/demux/chunk-cache.ts");function P(c,x){c.prototype=Object.create(x.prototype),c.prototype.constructor=c,u(c,x)}function m(c){var x=typeof Map=="function"?new Map:void 0;return m=function(C){if(C===null||!o(C))return C;if(typeof C!="function")throw new TypeError("Super expression must either be null or a function");if(typeof x!="undefined"){if(x.has(C))return x.get(C);x.set(C,k)}function k(){return t(C,arguments,f(this).constructor)}return k.prototype=Object.create(C.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),u(k,C)},m(c)}function t(c,x,A){return b()?t=Reflect.construct:t=function(k,w,y){var h=[null];h.push.apply(h,w);var p=Function.bind.apply(k,h),v=new p;return y&&u(v,y.prototype),v},t.apply(null,arguments)}function b(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}function o(c){return Function.toString.call(c).indexOf("[native code]")!==-1}function u(c,x){return u=Object.setPrototypeOf||function(C,k){return C.__proto__=k,C},u(c,x)}function f(c){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},f(c)}function a(){return a=Object.assign||function(c){for(var x=1;x=y&&h(k,w,p.flush(),C)):h(k,w,j,C),E()}).catch(function(){return Promise.reject()})};return _()},c}();function s(c,x){var A={method:"GET",mode:"cors",credentials:"same-origin",signal:x,headers:new self.Headers(a({},c.headers))};return c.rangeEnd&&A.headers.set("Range","bytes="+c.rangeStart+"-"+String(c.rangeEnd-1)),A}function n(c,x){return new self.Request(c.url,x)}var l=function(c){P(x,c);function x(A,C,k){var w;return w=c.call(this,A)||this,w.code=void 0,w.details=void 0,w.code=C,w.details=k,w}return x}(m(Error));B.default=d},"./src/utils/imsc1-ttml-parser.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"IMSC1_CODEC",function(){return o}),I.d(B,"parseIMSC1",function(){return i});var F=I("./src/utils/mp4-tools.ts"),T=I("./src/utils/vttparser.ts"),R=I("./src/utils/vttcue.ts"),P=I("./src/demux/id3.ts"),m=I("./src/utils/timescale-conversion.ts"),t=I("./src/utils/webvtt-parser.ts");function b(){return b=Object.assign||function(y){for(var h=1;h"):F}function m(o){for(var u=arguments.length,f=new Array(u>1?u-1:0),a=1;a>24,x[A+1]=C>>16&255,x[A+2]=C>>8&255,x[A+3]=C&255}function u(x,A){var C=[];if(!A.length)return C;var k,w,y;"data"in x?(k=x.data,w=x.start,y=x.end):(k=x,w=0,y=k.byteLength);for(var h=w;h1?h+p:y;if(v===A[0])if(A.length===1)C.push({data:k,start:h+8,end:_});else{var E=u({data:k,start:h+8,end:_},A.slice(1));E.length&&P.apply(C,E)}h=_}return C}function f(x){var A=u(x,["moov"]),C=A[0],k=C?C.end:null,w=u(x,["sidx"]);if(!w||!w[0])return null;var y=[],h=w[0],p=h.data[0],v=p===0?8:16,_=b(h,v);v+=4;var E=0,g=0;p===0?v+=8:v+=16,v+=2;var j=h.end+g,U=t(h,v);v+=2;for(var S=0;S>>31;if(V===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var K=b(h,z);z+=4,y.push({referenceSize:M,subsegmentDuration:K,info:{duration:K/_,start:j,end:j+M-1}}),j+=M,z+=4,v=z}return{earliestPresentationTime:E,timescale:_,version:p,referencesCount:U,references:y,moovEndOffset:k}}function a(x){for(var A=[],C=u(x,["moov","trak"]),k=0;km)&&(this.startTime=m),this.endTime=t,this.screen=b,this.timelineController.createCaptionsTrack(this.trackName)},R.reset=function(){this.cueRanges=[]},T}()},"./src/utils/texttrack-utils.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"sendAddTrackEvent",function(){return T}),I.d(B,"addCueToTrack",function(){return R}),I.d(B,"clearCurrentCues",function(){return P}),I.d(B,"removeCuesInRange",function(){return m}),I.d(B,"getCuesInRange",function(){return b});var F=I("./src/utils/logger.ts");function T(o,u){var f;try{f=new Event("addtrack")}catch(a){f=document.createEvent("Event"),f.initEvent("addtrack",!1,!1)}f.track=o,u.dispatchEvent(f)}function R(o,u){var f=o.mode;if(f==="disabled"&&(o.mode="hidden"),o.cues&&!o.cues.getCueById(u.id))try{if(o.addCue(u),!o.cues.getCueById(u.id))throw new Error("addCue is failed for: "+u)}catch(i){F.logger.debug("[texttrack-utils]: "+i);var a=new self.TextTrackCue(u.startTime,u.endTime,u.text);a.id=u.id,o.addCue(a)}f==="disabled"&&(o.mode=f)}function P(o){var u=o.mode;if(u==="disabled"&&(o.mode="hidden"),o.cues)for(var f=o.cues.length;f--;)o.removeCue(o.cues[f]);u==="disabled"&&(o.mode=u)}function m(o,u,f){var a=o.mode;if(a==="disabled"&&(o.mode="hidden"),o.cues&&o.cues.length>0)for(var i=b(o.cues,u,f),d=0;do[f].endTime)return-1;for(var a=0,i=f;a<=i;){var d=Math.floor((i+a)/2);if(uo[d].startTime&&a-1)for(var d=i,s=o.length;d=u&&n.endTime<=f)a.push(n);else if(n.startTime>f)return a}return a}},"./src/utils/time-ranges.ts":function(Y,B,I){"use strict";I.r(B);var F={toString:function(R){for(var P="",m=R.length,t=0;t1?u-1:0),a=1;a100)throw new Error("Position must be between 0 and 100.");y=E,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",t({},i,{get:function(){return h},set:function(E){var g=m(E);if(!g)throw new SyntaxError("An invalid or illegal string was specified.");h=g,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",t({},i,{get:function(){return p},set:function(E){if(E<0||E>100)throw new Error("Size must be between 0 and 100.");p=E,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",t({},i,{get:function(){return v},set:function(E){var g=m(E);if(!g)throw new SyntaxError("An invalid or illegal string was specified.");v=g,this.hasBeenReset=!0}})),a.displayState=void 0}return b.prototype.getCueAsHTML=function(){var o=self.WebVTT;return o.convertCueToDOMTree(self,this.text)},b}()},"./src/utils/vttparser.ts":function(Y,B,I){"use strict";I.r(B),I.d(B,"parseTimeStamp",function(){return R}),I.d(B,"fixLineBreaks",function(){return u}),I.d(B,"VTTParser",function(){return f});var F=I("./src/utils/vttcue.ts"),T=function(){function a(){}var i=a.prototype;return i.decode=function(s,n){if(!s)return"";if(typeof s!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(s))},a}();function R(a){function i(s,n,l,c){return(s|0)*3600+(n|0)*60+(l|0)+parseFloat(c||0)}var d=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return d?parseFloat(d[2])>59?i(d[2],d[3],0,d[4]):i(d[1],d[2],d[3],d[4]):null}var P=function(){function a(){this.values=Object.create(null)}var i=a.prototype;return i.set=function(s,n){!this.get(s)&&n!==""&&(this.values[s]=n)},i.get=function(s,n,l){return l?this.has(s)?this.values[s]:n[l]:this.has(s)?this.values[s]:n},i.has=function(s){return s in this.values},i.alt=function(s,n,l){for(var c=0;c=0&&l<=100)return this.set(s,l),!0}return!1},a}();function m(a,i,d,s){var n=s?a.split(s):[a];for(var l in n){if(typeof n[l]!="string")continue;var c=n[l].split(d);if(c.length!==2)continue;var x=c[0],A=c[1];i(x,A)}}var t=new F.default(0,0,""),b=t.align==="middle"?"middle":"center";function o(a,i,d){var s=a;function n(){var x=R(a);if(x===null)throw new Error("Malformed timestamp: "+s);return a=a.replace(/^[^\sa-zA-Z-]+/,""),x}function l(x,A){var C=new P;m(x,function(y,h){var p;switch(y){case"region":for(var v=d.length-1;v>=0;v--)if(d[v].id===h){C.set(y,d[v].region);break}break;case"vertical":C.alt(y,h,["rl","lr"]);break;case"line":p=h.split(","),C.integer(y,p[0]),C.percent(y,p[0])&&C.set("snapToLines",!1),C.alt(y,p[0],["auto"]),p.length===2&&C.alt("lineAlign",p[1],["start",b,"end"]);break;case"position":p=h.split(","),C.percent(y,p[0]),p.length===2&&C.alt("positionAlign",p[1],["start",b,"end","line-left","line-right","auto"]);break;case"size":C.percent(y,h);break;case"align":C.alt(y,h,["start",b,"end","left","right"]);break}},/:/,/\s/),A.region=C.get("region",null),A.vertical=C.get("vertical","");var k=C.get("line","auto");k==="auto"&&t.line===-1&&(k=-1),A.line=k,A.lineAlign=C.get("lineAlign","start"),A.snapToLines=C.get("snapToLines",!0),A.size=C.get("size",100),A.align=C.get("align",b);var w=C.get("position","auto");w==="auto"&&t.position===50&&(w=A.align==="start"||A.align==="left"?0:A.align==="end"||A.align==="right"?100:50),A.position=w}function c(){a=a.replace(/^\s+/,"")}if(c(),i.startTime=n(),c(),a.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+s);a=a.substr(3),c(),i.endTime=n(),c(),l(a,i)}function u(a){return a.replace(//gi,` `)}var f=function(){function a(){this.state="INITIAL",this.buffer="",this.decoder=new T,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var i=a.prototype;return i.parse=function(s){var n=this;s&&(n.buffer+=n.decoder.decode(s,{stream:!0}));function l(){var w=n.buffer,y=0;for(w=u(w);y9?parseInt(s.substr(0,s.indexOf(":"))):0;if(!Object(F.isFiniteNumber)(n)||!Object(F.isFiniteNumber)(l)||!Object(F.isFiniteNumber)(c)||!Object(F.isFiniteNumber)(x))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+s);return n+=1e3*l,n+=60*1e3*c,n+=60*60*1e3*x,n},u=function(s){for(var n=5381,l=s.length;l;)n=n*33^s.charCodeAt(--l);return(n>>>0).toString()};function f(d,s,n){return u(d.toString())+u(s.toString())+u(n)}var a=function(s,n,l){var c=s[n],x=s[c.prevCC];if(!x||!x.new&&c.new){s.ccOffset=s.presentationOffset=c.start,c.new=!1;return}for(;(A=x)!==null&&A!==void 0&&A.new;){var A;s.ccOffset+=c.start-x.start,c.new=!1,c=x,x=s[c.prevCC]}s.presentationOffset=l};function i(d,s,n,l,c,x,A,C){var k=new T.VTTParser,w=Object(R.utf8ArrayToStr)(new Uint8Array(d)).trim().replace(t,` `).split(` `),y=[],h=Object(P.toMpegTsClockFromTimescale)(s,n),p="00:00.000",v=0,_=0,E,g=!0,j=!1;k.oncue=function(U){var S=l[c],z=l.ccOffset,H=(v-h)/9e4;if(S!=null&&S.new&&(_!==void 0?z=l.ccOffset=S.start:a(l,c,H)),H&&(z=H-l.presentationOffset),j){var M=U.endTime-U.startTime,V=Object(m.normalizePts)((U.startTime+z-_)*9e4,x*9e4)/9e4;U.startTime=V,U.endTime=V+M}var K=U.text.trim();U.text=decodeURIComponent(encodeURIComponent(K)),U.id||(U.id=f(U.startTime,U.endTime,K)),U.endTime>0&&y.push(U)},k.onparsingerror=function(U){E=U},k.onflush=function(){if(E){C(E);return}A(y)},w.forEach(function(U){if(g)if(b(U,"X-TIMESTAMP-MAP=")){g=!1,j=!0,U.substr(16).split(",").forEach(function(S){b(S,"LOCAL:")?p=S.substr(6):b(S,"MPEGTS:")&&(v=parseInt(S.substr(7)))});try{_=o(p)/1e3}catch(S){j=!1,E=S}return}else U===""&&(g=!1);k.parse(U+` -`)}),k.flush()}},"./src/utils/xhr-loader.ts":function(Y,B,I){"use strict";I.r(B);var F=I("./src/utils/logger.ts"),T=I("./src/loader/load-stats.ts"),R=/^age:\s*[\d.]+\s*$/m,P=function(){function m(b){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=b?b.xhrSetup:null,this.stats=new T.LoadStats,this.retryDelay=0}var t=m.prototype;return t.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},t.abortInternal=function(){var o=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),o&&(o.onreadystatechange=null,o.onprogress=null,o.readyState!==4&&(this.stats.aborted=!0,o.abort()))},t.abort=function(){var o;this.abortInternal(),(o=this.callbacks)!==null&&o!==void 0&&o.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},t.load=function(o,u,f){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=o,this.config=u,this.callbacks=f,this.retryDelay=u.retryDelay,this.loadInternal()},t.loadInternal=function(){var o=this.config,u=this.context;if(!o)return;var f=this.loader=new self.XMLHttpRequest,a=this.stats;a.loading.first=0,a.loaded=0;var i=this.xhrSetup;try{if(i)try{i(f,u.url)}catch(n){f.open("GET",u.url,!0),i(f,u.url)}f.readyState||f.open("GET",u.url,!0);var d=this.context.headers;if(d)for(var s in d)f.setRequestHeader(s,d[s])}catch(n){this.callbacks.onError({code:f.status,text:n.message},u,f);return}u.rangeEnd&&f.setRequestHeader("Range","bytes="+u.rangeStart+"-"+(u.rangeEnd-1)),f.onreadystatechange=this.readystatechange.bind(this),f.onprogress=this.loadprogress.bind(this),f.responseType=u.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.timeout),f.send()},t.readystatechange=function(){var o=this.context,u=this.loader,f=this.stats;if(!o||!u)return;var a=u.readyState,i=this.config;if(f.aborted)return;if(a>=2)if(self.clearTimeout(this.requestTimeout),f.loading.first===0&&(f.loading.first=Math.max(self.performance.now(),f.loading.start)),a===4){u.onreadystatechange=null,u.onprogress=null;var d=u.status;if(d>=200&&d<300){f.loading.end=Math.max(self.performance.now(),f.loading.first);var s,n;if(o.responseType==="arraybuffer"?(s=u.response,n=s.byteLength):(s=u.responseText,n=s.length),f.loaded=f.total=n,!this.callbacks)return;var l=this.callbacks.onProgress;if(l&&l(f,o,s,u),!this.callbacks)return;var c={url:u.responseURL,data:s};this.callbacks.onSuccess(c,f,o,u)}else f.retry>=i.maxRetry||d>=400&&d<499?(F.logger.error(d+" while loading "+o.url),this.callbacks.onError({code:d,text:u.statusText},o,u)):(F.logger.warn(d+" while loading "+o.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,i.maxRetryDelay),f.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.timeout)},t.loadtimeout=function(){F.logger.warn("timeout while loading "+this.context.url);var o=this.callbacks;o&&(this.abortInternal(),o.onTimeout(this.stats,this.context,this.loader))},t.loadprogress=function(o){var u=this.stats;u.loaded=o.loaded,o.lengthComputable&&(u.total=o.total)},t.getCacheAge=function(){var o=null;if(this.loader&&R.test(this.loader.getAllResponseHeaders())){var u=this.loader.getResponseHeader("age");o=u?parseFloat(u):null}return o},m}();B.default=P}}).default})},vHTk:function(Be,J,L){Be.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Be,J,L){var Y=L("SrGk"),B=L("bYtY");function I(R,P){Y.call(this,R,P,["filter"],"__filter_in_use__","_shadowDom")}B.inherits(I,Y),I.prototype.addWithoutUpdate=function(R,P){if(P&&F(P.style)){var m;if(P._shadowDom){m=P._shadowDom;var t=this.getDefs(!0);t.contains(P._shadowDom)||this.addDom(m)}else m=this.add(P);this.markUsed(P);var b=m.getAttribute("id");R.style.filter="url(#"+b+")"}},I.prototype.add=function(R){var P=this.createElement("filter");return R._shadowDomId=R._shadowDomId||this.nextId++,P.setAttribute("id","zr"+this._zrId+"-shadow-"+R._shadowDomId),this.updateDom(R,P),this.addDom(P),P},I.prototype.update=function(R,P){var m=P.style;if(F(m)){var t=this;Y.prototype.update.call(this,P,function(){t.updateDom(P,P._shadowDom)})}else this.remove(R,P)},I.prototype.remove=function(R,P){P._shadowDomId!=null&&(this.removeDom(R),R.style.filter="")},I.prototype.updateDom=function(R,P){var m=P.getElementsByTagName("feDropShadow");m.length===0?m=this.createElement("feDropShadow"):m=m[0];var t=R.style,b=R.scale&&R.scale[0]||1,o=R.scale&&R.scale[1]||1,u,f,a,i;if(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)u=t.shadowOffsetX||0,f=t.shadowOffsetY||0,a=t.shadowBlur,i=t.shadowColor;else if(t.textShadowBlur)u=t.textShadowOffsetX||0,f=t.textShadowOffsetY||0,a=t.textShadowBlur,i=t.textShadowColor;else{this.removeDom(P,t);return}m.setAttribute("dx",u/b),m.setAttribute("dy",f/o),m.setAttribute("flood-color",i);var d=a/2/b,s=a/2/o,n=d+" "+s;m.setAttribute("stdDeviation",n),P.setAttribute("x","-100%"),P.setAttribute("y","-100%"),P.setAttribute("width",Math.ceil(a/2*200)+"%"),P.setAttribute("height",Math.ceil(a/2*200)+"%"),P.appendChild(m),R._shadowDom=P},I.prototype.markUsed=function(R){R._shadowDom&&Y.prototype.markUsed.call(this,R._shadowDom)};function F(R){return R&&(R.shadowBlur||R.shadowOffsetX||R.shadowOffsetY||R.textShadowBlur||R.textShadowOffsetX||R.textShadowOffsetY)}var T=I;Be.exports=T},vWvF:function(Be,J,L){var Y=L("Bq2U"),B=L("SUKs"),I=L("bYtY"),F=I.isString,T=I.isFunction,R=I.isObject,P=I.isArrayLike,m=I.indexOf,t=function(){this.animators=[]};t.prototype={constructor:t,animate:function(a,i){var d,s=!1,n=this,l=this.__zr;if(a){var c=a.split("."),x=n;s=c[0]==="shape";for(var A=0,C=c.length;A0&&a.animate(i,!1).when(n==null?500:n,x).delay(l||0)}function u(a,i,d,s){if(!i)a.attr(d,s);else{var n={};n[i]={},n[i][d]=s,a.attr(n)}}var f=t;Be.exports=f},wCXF:function(Be,J,L){"use strict";L.d(J,"a",function(){return Ut});var Y=L("rePB"),B=L("VTBJ"),I=L("KQm4"),F=L("U8pU"),T=L("ODXe"),R=L("q1tI"),P=L("TSYQ"),m=L.n(P),t=L("Gytx"),b=L.n(t),o=L("Kwbf"),u=L("t23M"),f=L("qx4F"),a=L("6eGT"),i=L("IBYe"),d=L("Ff2n"),s=L("c+Xe"),n=L("fyJ8"),l=L("biw7");function c(Le,Ae,ut,_t,Je){var dt=ut[Le]||{},Ne=ut[Ae]||{},Te,Oe;dt.fixed==="left"?Te=_t.left[Le]:Ne.fixed==="right"&&(Oe=_t.right[Ae]);var ae=!1,le=!1,he=!1,_e=!1,Se=ut[Ae+1],ze=ut[Le-1];if(Je==="rtl"){if(Te!==void 0){var Et=ze&&ze.fixed==="left";_e=!Et}else if(Oe!==void 0){var $t=Se&&Se.fixed==="right";he=!$t}}else if(Te!==void 0){var on=Se&&Se.fixed==="left";ae=!on}else if(Oe!==void 0){var gt=ze&&ze.fixed==="right";le=!gt}return{fixLeft:Te,fixRight:Oe,lastFixLeft:ae,firstFixRight:le,lastFixRight:he,firstFixLeft:_e,isSticky:_t.isSticky}}var x=L("sR1s");function A(Le){var Ae=Le.cells,ut=Le.stickyOffsets,_t=Le.flattenColumns,Je=Le.rowComponent,dt=Le.cellComponent,Ne=Le.onHeaderRow,Te=Le.index,Oe=R.useContext(l.a),ae=Oe.prefixCls,le=Oe.direction,he;Ne&&(he=Ne(Ae.map(function(Se){return Se.column}),Te));var _e=Object(x.a)(Ae.map(function(Se){return Se.column}));return R.createElement(Je,Object.assign({},he),Ae.map(function(Se,ze){var Et=Se.column,$t=c(Se.colStart,Se.colEnd,_t,ut,le),on;return Et&&Et.onHeaderCell&&(on=Se.column.onHeaderCell(Et)),R.createElement(n.a,Object.assign({},Se,{ellipsis:Et.ellipsis,align:Et.align,component:dt,prefixCls:ae,key:_e[ze]},$t,{additionalProps:on,rowType:"header"}))}))}A.displayName="HeaderRow";var C=A;function k(Le){var Ae=[];function ut(Ne,Te){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ae[Oe]=Ae[Oe]||[];var ae=Te,le=Ne.filter(Boolean).map(function(he){var _e={key:he.key,className:he.className||"",children:he.title,column:he,colStart:ae},Se=1,ze=he.children;return ze&&ze.length>0&&(Se=ut(ze,ae,Oe+1).reduce(function(Et,$t){return Et+$t},0),_e.hasSubColumns=!0),"colSpan"in he&&(Se=he.colSpan),"rowSpan"in he&&(_e.rowSpan=he.rowSpan),_e.colSpan=Se,_e.colEnd=_e.colStart+Se-1,Ae[Oe].push(_e),ae+=Se,Se});return le}ut(Le,0);for(var _t=Ae.length,Je=function(Te){Ae[Te].forEach(function(Oe){!("rowSpan"in Oe)&&!Oe.hasSubColumns&&(Oe.rowSpan=_t-Te)})},dt=0;dt<_t;dt+=1)Je(dt);return Ae}function w(Le){var Ae=Le.stickyOffsets,ut=Le.columns,_t=Le.flattenColumns,Je=Le.onHeaderRow,dt=R.useContext(l.a),Ne=dt.prefixCls,Te=dt.getComponent,Oe=R.useMemo(function(){return k(ut)},[ut]),ae=Te(["header","wrapper"],"thead"),le=Te(["header","row"],"tr"),he=Te(["header","cell"],"th");return R.createElement(ae,{className:"".concat(Ne,"-thead")},Oe.map(function(_e,Se){var ze=R.createElement(C,{key:Se,flattenColumns:_t,cells:_e,stickyOffsets:Ae,rowComponent:le,cellComponent:he,onHeaderRow:Je,index:Se});return ze}))}var y=w,h=L("hW8S");function p(Le){for(var Ae=Le.colWidths,ut=Le.columns,_t=Le.columCount,Je=[],dt=_t||ut.length,Ne=!1,Te=dt-1;Te>=0;Te-=1){var Oe=Ae[Te],ae=ut&&ut[Te],le=ae&&ae[h.a];(Oe||le||Ne)&&(Je.unshift(R.createElement("col",Object.assign({key:Te,style:{width:Oe,minWidth:Oe}},le))),Ne=!0)}return R.createElement("colgroup",null,Je)}var v=p;function _(Le,Ae){return Object(R.useMemo)(function(){for(var ut=[],_t=0;_t1?Q-1:0),ee=1;ee=he&&(sn=he-_e),Ne({scrollLeft:sn/he*(le+2)}),gt.current.x=Ge.pageX},yt=function(){var Ge=Object(ie.b)(dt.current).top,lt=Ge+dt.current.offsetHeight,It=document.documentElement.scrollTop+window.innerHeight;lt-Object(f.a)()<=It||Ge>=It-Te?on(function(Wt){return Object(B.a)(Object(B.a)({},Wt),{},{isHiddenScrollBar:!0})}):on(function(Wt){return Object(B.a)(Object(B.a)({},Wt),{},{isHiddenScrollBar:!1})})},Gt=function(Ge){on(function(lt){return Object(B.a)(Object(B.a)({},lt),{},{scrollLeft:Ge/le*he||0})})};return R.useImperativeHandle(ut,function(){return{setScrollLeft:Gt}}),R.useEffect(function(){var Jt=Object(ht.a)(document.body,"mouseup",be,!1),Ge=Object(ht.a)(document.body,"mousemove",Nt,!1);return yt(),function(){Jt.remove(),Ge.remove()}},[_e,At]),R.useEffect(function(){var Jt=Object(ht.a)(window,"scroll",yt,!1),Ge=Object(ht.a)(window,"resize",yt,!1);return function(){Jt.remove(),Ge.remove()}},[]),R.useEffect(function(){$t.isHiddenScrollBar||on(function(Jt){var Ge,lt;return Object(B.a)(Object(B.a)({},Jt),{},{scrollLeft:dt.current.scrollLeft/((Ge=dt.current)===null||Ge===void 0?void 0:Ge.scrollWidth)*((lt=dt.current)===null||lt===void 0?void 0:lt.clientWidth)})})},[$t.isHiddenScrollBar]),le<=he||!_e||$t.isHiddenScrollBar?null:R.createElement("div",{style:{height:Object(f.a)(),width:he,bottom:Te},className:"".concat(ae,"-sticky-scroll")},R.createElement("div",{onMouseDown:Fe,ref:Se,className:m()("".concat(ae,"-sticky-scroll-bar"),Object(Y.a)({},"".concat(ae,"-sticky-scroll-bar-active"),At)),style:{width:"".concat(_e,"px"),transform:"translate3d(".concat($t.scrollLeft,"px, 0, 0)")}}))},we=R.forwardRef(xe);function $e(Le,Ae){return R.useMemo(function(){var ut=!!Le;return{isSticky:ut,stickyClassName:ut?"".concat(Ae,"-sticky-header"):"",offsetHeader:Object(F.a)(Le)==="object"&&Le.offsetHeader||0,offsetScroll:Object(F.a)(Le)==="object"&&Le.offsetScroll||0}},[Le,Ae])}var ct=[],vt={},Ut="rc-table-internal-hook",We=R.memo(function(Le){var Ae=Le.children;return Ae},function(Le,Ae){return b()(Le.props,Ae.props)?Le.pingLeft!==Ae.pingLeft||Le.pingRight!==Ae.pingRight:!1});function kt(Le){var Ae,ut=Le.prefixCls,_t=Le.className,Je=Le.rowClassName,dt=Le.style,Ne=Le.data,Te=Le.rowKey,Oe=Le.scroll,ae=Le.tableLayout,le=Le.direction,he=Le.title,_e=Le.footer,Se=Le.summary,ze=Le.id,Et=Le.showHeader,$t=Le.components,on=Le.emptyText,gt=Le.onRow,Kt=Le.onHeaderRow,Ot=Le.internalHooks,At=Le.transformColumns,ft=Le.internalRefs,be=Le.sticky,Fe=Ne||ct,Nt=!!Fe.length,yt=R.useState(0),Gt=Object(T.a)(yt,2),Jt=Gt[0],Ge=Gt[1];R.useEffect(function(){Ge(Object(f.a)())});var lt=R.useMemo(function(){return Object(x.c)($t,{})},[$t]),It=R.useCallback(function(Bn,Yn){return Object(x.b)(lt,Bn)||Yn},[lt]),Wt=R.useMemo(function(){return typeof Te=="function"?Te:function(Bn){var Yn=Bn&&Bn[Te];return Yn}},[Te]),sn=Object(h.c)(Le),vn=sn.expandIcon,tr=sn.expandedRowKeys,Hn=sn.defaultExpandedRowKeys,wn=sn.defaultExpandAllRows,xr=sn.expandedRowRender,Er=sn.onExpand,rr=sn.onExpandedRowsChange,ur=sn.expandRowByClick,Ar=sn.rowExpandable,Kr=sn.expandIconColumnIndex,ra=sn.expandedRowClassName,pn=sn.childrenColumnName,sr=sn.indentSize,sa=vn||He,ya=pn||"children",Jr=R.useMemo(function(){return xr?"row":Le.expandable&&Ot===Ut&&Le.expandable.__PARENT_RENDER_ICON__||Fe.some(function(Bn){return Bn&&Object(F.a)(Bn)==="object"&&Bn[ya]})?"nest":!1},[!!xr,Fe]),na=R.useState(function(){return Hn||(wn?ke(Fe,Wt,ya):[])}),te=Object(T.a)(na,2),W=te[0],G=te[1],Q=R.useMemo(function(){return new Set(tr||W||[])},[tr,W]),ue=R.useCallback(function(Bn){var Yn=Wt(Bn,Fe.indexOf(Bn)),Jn,Cr=Q.has(Yn);Cr?(Q.delete(Yn),Jn=Object(I.a)(Q)):Jn=[].concat(Object(I.a)(Q),[Yn]),G(Jn),Er&&Er(!Cr,Bn),rr&&rr(Jn)},[Wt,Q,Fe,Er,rr]),ee=R.useState(0),qe=Object(T.a)(ee,2),en=qe[0],An=qe[1],Vn=Object(fe.b)(Object(B.a)(Object(B.a)(Object(B.a)({},Le),sn),{},{expandable:!!xr,expandedKeys:Q,getRowKey:Wt,onTriggerExpand:ue,expandIcon:sa,expandIconColumnIndex:Kr,direction:le}),Ot===Ut?At:null),ln=Object(T.a)(Vn,2),nr=ln[0],yn=ln[1],un=R.useMemo(function(){return{columns:nr,flattenColumns:yn}},[nr,yn]),Cn=R.useRef(),kn=R.useRef(),dr=R.useRef(),$n=R.useState(!1),Zn=Object(T.a)($n,2),In=Zn[0],mr=Zn[1],Fn=R.useState(!1),ar=Object(T.a)(Fn,2),Gn=ar[0],Wn=ar[1],Rr=ve(new Map),Tr=Object(T.a)(Rr,2),br=Tr[0],wr=Tr[1],ne=Object(x.a)(yn),Re=ne.map(function(Bn){return br.get(Bn)}),Xe=R.useMemo(function(){return Re},[Re.join("_")]),Pe=Rt(Xe,yn.length,le),st=Oe&&Object(x.d)(Oe.y),Ze=Oe&&Object(x.d)(Oe.x),pt=Ze&&yn.some(function(Bn){var Yn=Bn.fixed;return Yn}),mt=R.useRef(),it=$e(be,ut),Lt=it.isSticky,Yt=it.offsetHeader,Xt=it.offsetScroll,St=it.stickyClassName,Ft,at,qt;st&&(at={overflowY:"scroll",maxHeight:Oe.y}),Ze&&(Ft={overflowX:"auto"},st||(at={overflowY:"hidden"}),qt={width:Oe.x===!0?"auto":Oe.x,minWidth:"100%"});var zt=R.useCallback(function(Bn,Yn){wr(function(Jn){var Cr=new Map(Jn);return Cr.set(Bn,Yn),Cr})},[]),_n=de(null),Dn=Object(T.a)(_n,2),Vt=Dn[0],cn=Dn[1];function Ht(Bn,Yn){if(!Yn)return;typeof Yn=="function"?Yn(Bn):Yn.scrollLeft!==Bn&&(Yn.scrollLeft=Bn)}var On=function(Yn){var Jn=Yn.currentTarget,Cr=Yn.scrollLeft,Wr=typeof Cr=="number"?Cr:Jn.scrollLeft,Zr=Jn||vt;if(!cn()||cn()===Zr){var ua;Vt(Zr),Ht(Wr,kn.current),Ht(Wr,dr.current),Ht(Wr,(ua=mt.current)===null||ua===void 0?void 0:ua.setScrollLeft)}if(Jn){var xa=Jn.scrollWidth,ma=Jn.clientWidth;mr(Wr>0),Wn(Wr0?[].concat(Object(B.a)(d),Object(B.a)(o(c).map(function(x){return Object(I.a)({fixed:l},x)}))):[].concat(Object(B.a)(d),[Object(I.a)(Object(I.a)({},s),{},{fixed:l})])},[])}function u(i){for(var d=!0,s=0;s=0;c-=1){var x=i[c];if(l&&x.fixed!=="right")l=!1;else if(!l&&x.fixed==="right"){Object(P.a)(!1,"Index ".concat(c+1," of `columns` missing `fixed='right'` prop."));break}}}function f(i){return i.map(function(d){var s=d.fixed,n=Object(F.a)(d,["fixed"]),l=s;return s==="left"?l="right":s==="right"&&(l="left"),Object(I.a)({fixed:l},n)})}function a(i,d){var s=i.prefixCls,n=i.columns,l=i.children,c=i.expandable,x=i.expandedKeys,A=i.getRowKey,C=i.onTriggerExpand,k=i.expandIcon,w=i.rowExpandable,y=i.expandIconColumnIndex,h=i.direction,p=i.expandRowByClick,v=T.useMemo(function(){return n||b(l)},[n,l]),_=T.useMemo(function(){if(c){var j,U=y||0,S=v[U],z=(j={},Object(Y.a)(j,t.a,{className:"".concat(s,"-expand-icon-col")}),Object(Y.a)(j,"title",""),Object(Y.a)(j,"fixed",S?S.fixed:null),Object(Y.a)(j,"className","".concat(s,"-row-expand-icon-cell")),Object(Y.a)(j,"render",function(V,K,$){var Z=A(K,$),me=x.has(Z),oe=w?w(K):!0,fe=k({prefixCls:s,expanded:me,expandable:oe,record:K,onExpand:C});return p?T.createElement("span",{onClick:function(Ie){return Ie.stopPropagation()}},fe):fe}),j),H=v.slice();return U>=0&&H.splice(U,0,z),H}return v},[c,v,A,x,k,h]),E=T.useMemo(function(){var j=_;return d&&(j=d(j)),j.length||(j=[{render:function(){return null}}]),j},[d,_,h]),g=T.useMemo(function(){return h==="rtl"?f(o(E)):o(E)},[E,h]);return[E,g]}J.b=a},x6Kt:function(Be,J,L){var Y=L("y+Vt"),B=L("VpOo"),I=L("nPnh"),F=I.subPixelOptimizeRect,T={},R=Y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(P,m){var t,b,o,u;this.subPixelOptimize?(F(T,m,this.style),t=T.x,b=T.y,o=T.width,u=T.height,T.r=m.r,m=T):(t=m.x,b=m.y,o=m.width,u=m.height),m.r?B.buildPath(P,m):P.rect(t,b,o,u),P.closePath();return}});Be.exports=R},xOL1:function(Be,J){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC"},"y+Vt":function(Be,J,L){var Y=L("Gev7"),B=L("bYtY"),I=L("IMiH"),F=L("2DNl"),T=L("3C/r"),R=T.prototype.getCanvasPattern,P=Math.abs,m=new I(!0);function t(o){Y.call(this,o),this.path=null}t.prototype={constructor:t,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(o,u){var f=this.style,a=this.path||m,i=f.hasStroke(),d=f.hasFill(),s=f.fill,n=f.stroke,l=d&&!!s.colorStops,c=i&&!!n.colorStops,x=d&&!!s.image,A=i&&!!n.image;if(f.bind(o,this,u),this.setTransform(o),this.__dirty){var C;l&&(C=C||this.getBoundingRect(),this._fillGradient=f.getGradient(o,s,C)),c&&(C=C||this.getBoundingRect(),this._strokeGradient=f.getGradient(o,n,C))}l?o.fillStyle=this._fillGradient:x&&(o.fillStyle=R.call(s,o)),c?o.strokeStyle=this._strokeGradient:A&&(o.strokeStyle=R.call(n,o));var k=f.lineDash,w=f.lineDashOffset,y=!!o.setLineDash,h=this.getGlobalScale();if(a.setScale(h[0],h[1],this.segmentIgnoreThreshold),this.__dirtyPath||k&&!y&&i?(a.beginPath(o),k&&!y&&(a.setLineDash(k),a.setLineDashOffset(w)),this.buildPath(a,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(o.beginPath(),this.path.rebuildPath(o)),d)if(f.fillOpacity!=null){var p=o.globalAlpha;o.globalAlpha=f.fillOpacity*f.opacity,a.fill(o),o.globalAlpha=p}else a.fill(o);if(k&&y&&(o.setLineDash(k),o.lineDashOffset=w),i)if(f.strokeOpacity!=null){var p=o.globalAlpha;o.globalAlpha=f.strokeOpacity*f.opacity,a.stroke(o),o.globalAlpha=p}else a.stroke(o);k&&y&&o.setLineDash([]),f.text!=null&&(this.restoreTransform(o),this.drawRectText(o,this.getBoundingRect()))},buildPath:function(o,u,f){},createPathProxy:function(){this.path=new I},getBoundingRect:function(){var o=this._rect,u=this.style,f=!o;if(f){var a=this.path;a||(a=this.path=new I),this.__dirtyPath&&(a.beginPath(),this.buildPath(a,this.shape,!1)),o=a.getBoundingRect()}if(this._rect=o,u.hasStroke()){var i=this._rectWithStroke||(this._rectWithStroke=o.clone());if(this.__dirty||f){i.copy(o);var d=u.lineWidth,s=u.strokeNoScale?this.getLineScale():1;u.hasFill()||(d=Math.max(d,this.strokeContainThreshold||4)),s>1e-10&&(i.width+=d/s,i.height+=d/s,i.x-=d/s/2,i.y-=d/s/2)}return i}return o},contain:function(o,u){var f=this.transformCoordToLocal(o,u),a=this.getBoundingRect(),i=this.style;if(o=f[0],u=f[1],a.contain(o,u)){var d=this.path.data;if(i.hasStroke()){var s=i.lineWidth,n=i.strokeNoScale?this.getLineScale():1;if(n>1e-10&&(i.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),F.containStroke(d,s/n,o,u)))return!0}if(i.hasFill())return F.contain(d,o,u)}return!1},dirty:function(o){o==null&&(o=!0),o&&(this.__dirtyPath=o,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(o){return this.animate("shape",o)},attrKV:function(o,u){o==="shape"?(this.setShape(u),this.__dirtyPath=!0,this._rect=null):Y.prototype.attrKV.call(this,o,u)},setShape:function(o,u){var f=this.shape;if(f){if(B.isObject(o))for(var a in o)o.hasOwnProperty(a)&&(f[a]=o[a]);else f[o]=u;this.dirty(!0)}return this},getLineScale:function(){var o=this.transform;return o&&P(o[0]-1)>1e-10&&P(o[3]-1)>1e-10?Math.sqrt(P(o[0]*o[3]-o[2]*o[1])):1}},t.extend=function(o){var u=function(a){t.call(this,a),o.style&&this.style.extendFrom(o.style,!1);var i=o.shape;if(i){this.shape=this.shape||{};var d=this.shape;for(var s in i)!d.hasOwnProperty(s)&&i.hasOwnProperty(s)&&(d[s]=i[s])}o.init&&o.init.call(this,a)};B.inherits(u,t);for(var f in o)f!=="style"&&f!=="shape"&&(u.prototype[f]=o[f]);return u},B.inherits(t,Y);var b=t;Be.exports=b},"y0+3":function(Be,J,L){"use strict";L.d(J,"a",function(){return o}),L.d(J,"b",function(){return f});var Y=/margin|padding|width|height|max|min|offset/,B={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function F(a){return a.nodeType===1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}}function T(a,i,d){if(i=i.toLowerCase(),d==="auto"){if(i==="height")return a.offsetHeight;if(i==="width")return a.offsetWidth}return i in B||(B[i]=Y.test(i)),B[i]?parseFloat(d)||0:d}function R(a,i){var d=arguments.length,s=F(a);return i=I[i]?"cssFloat"in a.style?"cssFloat":"styleFloat":i,d===1?s:T(a,i,s[i]||a.style[i])}function P(a,i,d){var s=arguments.length;if(i=I[i]?"cssFloat"in a.style?"cssFloat":"styleFloat":i,s===3)return typeof d=="number"&&Y.test(i)&&(d="".concat(d,"px")),a.style[i]=d,d;for(var n in i)i.hasOwnProperty(n)&&P(a,n,i[n]);return F(a)}function m(a){return a===document.body?document.documentElement.clientWidth:a.offsetWidth}function t(a){return a===document.body?window.innerHeight||document.documentElement.clientHeight:a.offsetHeight}function b(){var a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:a,height:i}}function o(){var a=document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return{width:a,height:i}}function u(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function f(a){var i=a.getBoundingClientRect(),d=document.documentElement;return{left:i.left+(window.pageXOffset||d.scrollLeft)-(d.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||d.scrollTop)-(d.clientTop||document.body.clientTop||0)}}},y23F:function(Be,J){function L(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}L.prototype={constructor:L,_dragStart:function(I){for(var F=I.target;F&&!F.draggable;)F=F.parent;F&&(this._draggingTarget=F,F.dragging=!0,this._x=I.offsetX,this._y=I.offsetY,this.dispatchToElement(Y(F,I),"dragstart",I.event))},_drag:function(I){var F=this._draggingTarget;if(F){var T=I.offsetX,R=I.offsetY,P=T-this._x,m=R-this._y;this._x=T,this._y=R,F.drift(P,m,I),this.dispatchToElement(Y(F,I),"drag",I.event);var t=this.findHover(T,R,F).target,b=this._dropTarget;this._dropTarget=t,F!==t&&(b&&t!==b&&this.dispatchToElement(Y(b,I),"dragleave",I.event),t&&t!==b&&this.dispatchToElement(Y(t,I),"dragenter",I.event))}},_dragEnd:function(I){var F=this._draggingTarget;F&&(F.dragging=!1),this.dispatchToElement(Y(F,I),"dragend",I.event),this._dropTarget&&this.dispatchToElement(Y(this._dropTarget,I),"drop",I.event),this._draggingTarget=null,this._dropTarget=null}};function Y(I,F){return{target:I,topTarget:F&&F.topTarget}}var B=L;Be.exports=B},yQHh:function(Be,J,L){},"yTi+":function(Be,J,L){Be.exports=L.p+"static/AssistantCode3.fdd8db3c.jpeg"},yxFR:function(Be,J,L){var Y=L("y+Vt"),B=L("nPnh"),I=B.subPixelOptimizeLine,F={},T=Y.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(R,P){var m,t,b,o;this.subPixelOptimize?(I(F,P,this.style),m=F.x1,t=F.y1,b=F.x2,o=F.y2):(m=P.x1,t=P.y1,b=P.x2,o=P.y2);var u=P.percent;if(u===0)return;R.moveTo(m,t),u<1&&(b=m*(1-u)+b*u,o=t*(1-u)+o*u),R.lineTo(b,o)},pointAt:function(R){var P=this.shape;return[P.x1*(1-R)+P.x2*R,P.y1*(1-R)+P.y2*R]}});Be.exports=T},zarK:function(Be,J,L){var Y=L("YH21"),B=Y.addEventListener,I=Y.removeEventListener,F=Y.normalizeEvent,T=Y.getNativeEvent,R=L("bYtY"),P=L("H6uX"),m=L("ItGF"),t=300,b=m.domSupported,o=function(){var g=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],j=["touchstart","touchend","touchmove"],U={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},S=R.map(g,function(z){var H=z.replace("mouse","pointer");return U.hasOwnProperty(H)?H:z});return{mouse:g,touch:j,pointer:S}}(),u={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function f(g){return g==="mousewheel"&&m.browser.firefox?"DOMMouseScroll":g}function a(g){var j=g.pointerType;return j==="pen"||j==="touch"}function i(g){g.touching=!0,g.touchTimer!=null&&(clearTimeout(g.touchTimer),g.touchTimer=null),g.touchTimer=setTimeout(function(){g.touching=!1,g.touchTimer=null},700)}function d(g){g&&(g.zrByTouch=!0)}function s(g,j){return F(g.dom,new l(g,j),!0)}function n(g,j){for(var U=j,S=!1;U&&U.nodeType!==9&&!(S=U.domBelongToZr||U!==j&&U===g.painterRoot);)U=U.parentNode;return S}function l(g,j){this.type=j.type,this.target=this.currentTarget=g.dom,this.pointerType=j.pointerType,this.clientX=j.clientX,this.clientY=j.clientY}var c=l.prototype;c.stopPropagation=c.stopImmediatePropagation=c.preventDefault=R.noop;var x={mousedown:function(g){g=F(this.dom,g),this._mayPointerCapture=[g.zrX,g.zrY],this.trigger("mousedown",g)},mousemove:function(g){g=F(this.dom,g);var j=this._mayPointerCapture;j&&(g.zrX!==j[0]||g.zrY!==j[1])&&h(this,!0),this.trigger("mousemove",g)},mouseup:function(g){g=F(this.dom,g),h(this,!1),this.trigger("mouseup",g)},mouseout:function(g){g=F(this.dom,g),this._pointerCapturing&&(g.zrEventControl="no_globalout");var j=g.toElement||g.relatedTarget;g.zrIsToLocalDOM=n(this,j),this.trigger("mouseout",g)},touchstart:function(g){g=F(this.dom,g),d(g),this._lastTouchMoment=new Date,this.handler.processGesture(g,"start"),x.mousemove.call(this,g),x.mousedown.call(this,g)},touchmove:function(g){g=F(this.dom,g),d(g),this.handler.processGesture(g,"change"),x.mousemove.call(this,g)},touchend:function(g){g=F(this.dom,g),d(g),this.handler.processGesture(g,"end"),x.mouseup.call(this,g),+new Date-this._lastTouchMoment=2)if(self.clearTimeout(this.requestTimeout),f.loading.first===0&&(f.loading.first=Math.max(self.performance.now(),f.loading.start)),a===4){u.onreadystatechange=null,u.onprogress=null;var d=u.status;if(d>=200&&d<300){f.loading.end=Math.max(self.performance.now(),f.loading.first);var s,n;if(o.responseType==="arraybuffer"?(s=u.response,n=s.byteLength):(s=u.responseText,n=s.length),f.loaded=f.total=n,!this.callbacks)return;var l=this.callbacks.onProgress;if(l&&l(f,o,s,u),!this.callbacks)return;var c={url:u.responseURL,data:s};this.callbacks.onSuccess(c,f,o,u)}else f.retry>=i.maxRetry||d>=400&&d<499?(F.logger.error(d+" while loading "+o.url),this.callbacks.onError({code:d,text:u.statusText},o,u)):(F.logger.warn(d+" while loading "+o.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,i.maxRetryDelay),f.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.timeout)},t.loadtimeout=function(){F.logger.warn("timeout while loading "+this.context.url);var o=this.callbacks;o&&(this.abortInternal(),o.onTimeout(this.stats,this.context,this.loader))},t.loadprogress=function(o){var u=this.stats;u.loaded=o.loaded,o.lengthComputable&&(u.total=o.total)},t.getCacheAge=function(){var o=null;if(this.loader&&R.test(this.loader.getAllResponseHeaders())){var u=this.loader.getResponseHeader("age");o=u?parseFloat(u):null}return o},m}();B.default=P}}).default})},vHTk:function(Be,J,L){Be.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Be,J,L){var Y=L("SrGk"),B=L("bYtY");function I(R,P){Y.call(this,R,P,["filter"],"__filter_in_use__","_shadowDom")}B.inherits(I,Y),I.prototype.addWithoutUpdate=function(R,P){if(P&&F(P.style)){var m;if(P._shadowDom){m=P._shadowDom;var t=this.getDefs(!0);t.contains(P._shadowDom)||this.addDom(m)}else m=this.add(P);this.markUsed(P);var b=m.getAttribute("id");R.style.filter="url(#"+b+")"}},I.prototype.add=function(R){var P=this.createElement("filter");return R._shadowDomId=R._shadowDomId||this.nextId++,P.setAttribute("id","zr"+this._zrId+"-shadow-"+R._shadowDomId),this.updateDom(R,P),this.addDom(P),P},I.prototype.update=function(R,P){var m=P.style;if(F(m)){var t=this;Y.prototype.update.call(this,P,function(){t.updateDom(P,P._shadowDom)})}else this.remove(R,P)},I.prototype.remove=function(R,P){P._shadowDomId!=null&&(this.removeDom(R),R.style.filter="")},I.prototype.updateDom=function(R,P){var m=P.getElementsByTagName("feDropShadow");m.length===0?m=this.createElement("feDropShadow"):m=m[0];var t=R.style,b=R.scale&&R.scale[0]||1,o=R.scale&&R.scale[1]||1,u,f,a,i;if(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)u=t.shadowOffsetX||0,f=t.shadowOffsetY||0,a=t.shadowBlur,i=t.shadowColor;else if(t.textShadowBlur)u=t.textShadowOffsetX||0,f=t.textShadowOffsetY||0,a=t.textShadowBlur,i=t.textShadowColor;else{this.removeDom(P,t);return}m.setAttribute("dx",u/b),m.setAttribute("dy",f/o),m.setAttribute("flood-color",i);var d=a/2/b,s=a/2/o,n=d+" "+s;m.setAttribute("stdDeviation",n),P.setAttribute("x","-100%"),P.setAttribute("y","-100%"),P.setAttribute("width",Math.ceil(a/2*200)+"%"),P.setAttribute("height",Math.ceil(a/2*200)+"%"),P.appendChild(m),R._shadowDom=P},I.prototype.markUsed=function(R){R._shadowDom&&Y.prototype.markUsed.call(this,R._shadowDom)};function F(R){return R&&(R.shadowBlur||R.shadowOffsetX||R.shadowOffsetY||R.textShadowBlur||R.textShadowOffsetX||R.textShadowOffsetY)}var T=I;Be.exports=T},vWvF:function(Be,J,L){var Y=L("Bq2U"),B=L("SUKs"),I=L("bYtY"),F=I.isString,T=I.isFunction,R=I.isObject,P=I.isArrayLike,m=I.indexOf,t=function(){this.animators=[]};t.prototype={constructor:t,animate:function(a,i){var d,s=!1,n=this,l=this.__zr;if(a){var c=a.split("."),x=n;s=c[0]==="shape";for(var A=0,C=c.length;A0&&a.animate(i,!1).when(n==null?500:n,x).delay(l||0)}function u(a,i,d,s){if(!i)a.attr(d,s);else{var n={};n[i]={},n[i][d]=s,a.attr(n)}}var f=t;Be.exports=f},wCXF:function(Be,J,L){"use strict";L.d(J,"a",function(){return Ut});var Y=L("rePB"),B=L("VTBJ"),I=L("KQm4"),F=L("U8pU"),T=L("ODXe"),R=L("q1tI"),P=L("TSYQ"),m=L.n(P),t=L("Gytx"),b=L.n(t),o=L("Kwbf"),u=L("t23M"),f=L("qx4F"),a=L("6eGT"),i=L("IBYe"),d=L("Ff2n"),s=L("c+Xe"),n=L("fyJ8"),l=L("biw7");function c(Pe,Ae,ut,Et,Ze){var dt=ut[Pe]||{},Ne=ut[Ae]||{},Te,Oe;dt.fixed==="left"?Te=Et.left[Pe]:Ne.fixed==="right"&&(Oe=Et.right[Ae]);var ae=!1,le=!1,he=!1,_e=!1,Se=ut[Ae+1],ze=ut[Pe-1];if(Ze==="rtl"){if(Te!==void 0){var xt=ze&&ze.fixed==="left";_e=!xt}else if(Oe!==void 0){var Qt=Se&&Se.fixed==="right";he=!Qt}}else if(Te!==void 0){var sn=Se&&Se.fixed==="left";ae=!sn}else if(Oe!==void 0){var gt=ze&&ze.fixed==="right";le=!gt}return{fixLeft:Te,fixRight:Oe,lastFixLeft:ae,firstFixRight:le,lastFixRight:he,firstFixLeft:_e,isSticky:Et.isSticky}}var x=L("sR1s");function A(Pe){var Ae=Pe.cells,ut=Pe.stickyOffsets,Et=Pe.flattenColumns,Ze=Pe.rowComponent,dt=Pe.cellComponent,Ne=Pe.onHeaderRow,Te=Pe.index,Oe=R.useContext(l.a),ae=Oe.prefixCls,le=Oe.direction,he;Ne&&(he=Ne(Ae.map(function(Se){return Se.column}),Te));var _e=Object(x.a)(Ae.map(function(Se){return Se.column}));return R.createElement(Ze,Object.assign({},he),Ae.map(function(Se,ze){var xt=Se.column,Qt=c(Se.colStart,Se.colEnd,Et,ut,le),sn;return xt&&xt.onHeaderCell&&(sn=Se.column.onHeaderCell(xt)),R.createElement(n.a,Object.assign({},Se,{ellipsis:xt.ellipsis,align:xt.align,component:dt,prefixCls:ae,key:_e[ze]},Qt,{additionalProps:sn,rowType:"header"}))}))}A.displayName="HeaderRow";var C=A;function k(Pe){var Ae=[];function ut(Ne,Te){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ae[Oe]=Ae[Oe]||[];var ae=Te,le=Ne.filter(Boolean).map(function(he){var _e={key:he.key,className:he.className||"",children:he.title,column:he,colStart:ae},Se=1,ze=he.children;return ze&&ze.length>0&&(Se=ut(ze,ae,Oe+1).reduce(function(xt,Qt){return xt+Qt},0),_e.hasSubColumns=!0),"colSpan"in he&&(Se=he.colSpan),"rowSpan"in he&&(_e.rowSpan=he.rowSpan),_e.colSpan=Se,_e.colEnd=_e.colStart+Se-1,Ae[Oe].push(_e),ae+=Se,Se});return le}ut(Pe,0);for(var Et=Ae.length,Ze=function(Te){Ae[Te].forEach(function(Oe){!("rowSpan"in Oe)&&!Oe.hasSubColumns&&(Oe.rowSpan=Et-Te)})},dt=0;dt=0;Te-=1){var Oe=Ae[Te],ae=ut&&ut[Te],le=ae&&ae[h.a];(Oe||le||Ne)&&(Ze.unshift(R.createElement("col",Object.assign({key:Te,style:{width:Oe,minWidth:Oe}},le))),Ne=!0)}return R.createElement("colgroup",null,Ze)}var v=p;function _(Pe,Ae){return Object(R.useMemo)(function(){for(var ut=[],Et=0;Et1?Q-1:0),ee=1;ee=he&&(ln=he-_e),Ne({scrollLeft:ln/he*(le+2)}),gt.current.x=Ge.pageX},bt=function(){var Ge=Object(ie.b)(dt.current).top,lt=Ge+dt.current.offsetHeight,Lt=document.documentElement.scrollTop+window.innerHeight;lt-Object(f.a)()<=Lt||Ge>=Lt-Te?sn(function(Wt){return Object(B.a)(Object(B.a)({},Wt),{},{isHiddenScrollBar:!0})}):sn(function(Wt){return Object(B.a)(Object(B.a)({},Wt),{},{isHiddenScrollBar:!1})})},Kt=function(Ge){sn(function(lt){return Object(B.a)(Object(B.a)({},lt),{},{scrollLeft:Ge/le*he||0})})};return R.useImperativeHandle(ut,function(){return{setScrollLeft:Kt}}),R.useEffect(function(){var Zt=Object(ht.a)(document.body,"mouseup",be,!1),Ge=Object(ht.a)(document.body,"mousemove",Nt,!1);return bt(),function(){Zt.remove(),Ge.remove()}},[_e,At]),R.useEffect(function(){var Zt=Object(ht.a)(window,"scroll",bt,!1),Ge=Object(ht.a)(window,"resize",bt,!1);return function(){Zt.remove(),Ge.remove()}},[]),R.useEffect(function(){Qt.isHiddenScrollBar||sn(function(Zt){var Ge,lt;return Object(B.a)(Object(B.a)({},Zt),{},{scrollLeft:dt.current.scrollLeft/((Ge=dt.current)===null||Ge===void 0?void 0:Ge.scrollWidth)*((lt=dt.current)===null||lt===void 0?void 0:lt.clientWidth)})})},[Qt.isHiddenScrollBar]),le<=he||!_e||Qt.isHiddenScrollBar?null:R.createElement("div",{style:{height:Object(f.a)(),width:he,bottom:Te},className:"".concat(ae,"-sticky-scroll")},R.createElement("div",{onMouseDown:Fe,ref:Se,className:m()("".concat(ae,"-sticky-scroll-bar"),Object(Y.a)({},"".concat(ae,"-sticky-scroll-bar-active"),At)),style:{width:"".concat(_e,"px"),transform:"translate3d(".concat(Qt.scrollLeft,"px, 0, 0)")}}))},we=R.forwardRef(xe);function $e(Pe,Ae){return R.useMemo(function(){var ut=!!Pe;return{isSticky:ut,stickyClassName:ut?"".concat(Ae,"-sticky-header"):"",offsetHeader:Object(F.a)(Pe)==="object"&&Pe.offsetHeader||0,offsetScroll:Object(F.a)(Pe)==="object"&&Pe.offsetScroll||0}},[Pe,Ae])}var ct=[],yt={},Ut="rc-table-internal-hook",We=R.memo(function(Pe){var Ae=Pe.children;return Ae},function(Pe,Ae){return b()(Pe.props,Ae.props)?Pe.pingLeft!==Ae.pingLeft||Pe.pingRight!==Ae.pingRight:!1});function kt(Pe){var Ae,ut=Pe.prefixCls,Et=Pe.className,Ze=Pe.rowClassName,dt=Pe.style,Ne=Pe.data,Te=Pe.rowKey,Oe=Pe.scroll,ae=Pe.tableLayout,le=Pe.direction,he=Pe.title,_e=Pe.footer,Se=Pe.summary,ze=Pe.id,xt=Pe.showHeader,Qt=Pe.components,sn=Pe.emptyText,gt=Pe.onRow,zt=Pe.onHeaderRow,Ot=Pe.internalHooks,At=Pe.transformColumns,ft=Pe.internalRefs,be=Pe.sticky,Fe=Ne||ct,Nt=!!Fe.length,bt=R.useState(0),Kt=Object(T.a)(bt,2),Zt=Kt[0],Ge=Kt[1];R.useEffect(function(){Ge(Object(f.a)())});var lt=R.useMemo(function(){return Object(x.c)(Qt,{})},[Qt]),Lt=R.useCallback(function(Hn,Yn){return Object(x.b)(lt,Hn)||Yn},[lt]),Wt=R.useMemo(function(){return typeof Te=="function"?Te:function(Hn){var Yn=Hn&&Hn[Te];return Yn}},[Te]),ln=Object(h.c)(Pe),gn=ln.expandIcon,tr=ln.expandedRowKeys,Wn=ln.defaultExpandedRowKeys,En=ln.defaultExpandAllRows,xr=ln.expandedRowRender,Er=ln.onExpand,rr=ln.onExpandedRowsChange,ur=ln.expandRowByClick,Rr=ln.rowExpandable,Kr=ln.expandIconColumnIndex,ra=ln.expandedRowClassName,fn=ln.childrenColumnName,or=ln.indentSize,sa=gn||He,ya=fn||"children",Jr=R.useMemo(function(){return xr?"row":Pe.expandable&&Ot===Ut&&Pe.expandable.__PARENT_RENDER_ICON__||Fe.some(function(Hn){return Hn&&Object(F.a)(Hn)==="object"&&Hn[ya]})?"nest":!1},[!!xr,Fe]),na=R.useState(function(){return Wn||(En?ke(Fe,Wt,ya):[])}),te=Object(T.a)(na,2),W=te[0],G=te[1],Q=R.useMemo(function(){return new Set(tr||W||[])},[tr,W]),ue=R.useCallback(function(Hn){var Yn=Wt(Hn,Fe.indexOf(Hn)),Jn,wr=Q.has(Yn);wr?(Q.delete(Yn),Jn=Object(I.a)(Q)):Jn=[].concat(Object(I.a)(Q),[Yn]),G(Jn),Er&&Er(!wr,Hn),rr&&rr(Jn)},[Wt,Q,Fe,Er,rr]),ee=R.useState(0),qe=Object(T.a)(ee,2),tn=qe[0],An=qe[1],Vn=Object(fe.b)(Object(B.a)(Object(B.a)(Object(B.a)({},Pe),ln),{},{expandable:!!xr,expandedKeys:Q,getRowKey:Wt,onTriggerExpand:ue,expandIcon:sa,expandIconColumnIndex:Kr,direction:le}),Ot===Ut?At:null),un=Object(T.a)(Vn,2),nr=un[0],vn=un[1],dn=R.useMemo(function(){return{columns:nr,flattenColumns:vn}},[nr,vn]),xn=R.useRef(),Nn=R.useRef(),dr=R.useRef(),$n=R.useState(!1),Zn=Object(T.a)($n,2),kn=Zn[0],gr=Zn[1],Bn=R.useState(!1),ar=Object(T.a)(Bn,2),sr=ar[0],Pn=ar[1],Tr=ve(new Map),Mr=Object(T.a)(Tr,2),Sr=Mr[0],hr=Mr[1],ne=Object(x.a)(vn),Re=ne.map(function(Hn){return Sr.get(Hn)}),Xe=R.useMemo(function(){return Re},[Re.join("_")]),Le=Rt(Xe,vn.length,le),st=Oe&&Object(x.d)(Oe.y),et=Oe&&Object(x.d)(Oe.x),pt=et&&vn.some(function(Hn){var Yn=Hn.fixed;return Yn}),mt=R.useRef(),it=$e(be,ut),Mt=it.isSticky,Xt=it.offsetHeader,Vt=it.offsetScroll,St=it.stickyClassName,nn,Qe,en;st&&(Qe={overflowY:"scroll",maxHeight:Oe.y}),et&&(nn={overflowX:"auto"},st||(Qe={overflowY:"hidden"}),en={width:Oe.x===!0?"auto":Oe.x,minWidth:"100%"});var Bt=R.useCallback(function(Hn,Yn){hr(function(Jn){var wr=new Map(Jn);return wr.set(Hn,Yn),wr})},[]),bn=de(null),On=Object(T.a)(bn,2),Gt=On[0],cn=On[1];function Ht(Hn,Yn){if(!Yn)return;typeof Yn=="function"?Yn(Hn):Yn.scrollLeft!==Hn&&(Yn.scrollLeft=Hn)}var Sn=function(Yn){var Jn=Yn.currentTarget,wr=Yn.scrollLeft,Wr=typeof wr=="number"?wr:Jn.scrollLeft,Zr=Jn||yt;if(!cn()||cn()===Zr){var ua;Gt(Zr),Ht(Wr,Nn.current),Ht(Wr,dr.current),Ht(Wr,(ua=mt.current)===null||ua===void 0?void 0:ua.setScrollLeft)}if(Jn){var xa=Jn.scrollWidth,ma=Jn.clientWidth;gr(Wr>0),Pn(Wr0?[].concat(Object(B.a)(d),Object(B.a)(o(c).map(function(x){return Object(I.a)({fixed:l},x)}))):[].concat(Object(B.a)(d),[Object(I.a)(Object(I.a)({},s),{},{fixed:l})])},[])}function u(i){for(var d=!0,s=0;s=0;c-=1){var x=i[c];if(l&&x.fixed!=="right")l=!1;else if(!l&&x.fixed==="right"){Object(P.a)(!1,"Index ".concat(c+1," of `columns` missing `fixed='right'` prop."));break}}}function f(i){return i.map(function(d){var s=d.fixed,n=Object(F.a)(d,["fixed"]),l=s;return s==="left"?l="right":s==="right"&&(l="left"),Object(I.a)({fixed:l},n)})}function a(i,d){var s=i.prefixCls,n=i.columns,l=i.children,c=i.expandable,x=i.expandedKeys,A=i.getRowKey,C=i.onTriggerExpand,k=i.expandIcon,w=i.rowExpandable,y=i.expandIconColumnIndex,h=i.direction,p=i.expandRowByClick,v=T.useMemo(function(){return n||b(l)},[n,l]),_=T.useMemo(function(){if(c){var j,U=y||0,S=v[U],z=(j={},Object(Y.a)(j,t.a,{className:"".concat(s,"-expand-icon-col")}),Object(Y.a)(j,"title",""),Object(Y.a)(j,"fixed",S?S.fixed:null),Object(Y.a)(j,"className","".concat(s,"-row-expand-icon-cell")),Object(Y.a)(j,"render",function(V,K,$){var Z=A(K,$),me=x.has(Z),oe=w?w(K):!0,fe=k({prefixCls:s,expanded:me,expandable:oe,record:K,onExpand:C});return p?T.createElement("span",{onClick:function(Ie){return Ie.stopPropagation()}},fe):fe}),j),H=v.slice();return U>=0&&H.splice(U,0,z),H}return v},[c,v,A,x,k,h]),E=T.useMemo(function(){var j=_;return d&&(j=d(j)),j.length||(j=[{render:function(){return null}}]),j},[d,_,h]),g=T.useMemo(function(){return h==="rtl"?f(o(E)):o(E)},[E,h]);return[E,g]}J.b=a},x6Kt:function(Be,J,L){var Y=L("y+Vt"),B=L("VpOo"),I=L("nPnh"),F=I.subPixelOptimizeRect,T={},R=Y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(P,m){var t,b,o,u;this.subPixelOptimize?(F(T,m,this.style),t=T.x,b=T.y,o=T.width,u=T.height,T.r=m.r,m=T):(t=m.x,b=m.y,o=m.width,u=m.height),m.r?B.buildPath(P,m):P.rect(t,b,o,u),P.closePath();return}});Be.exports=R},xOL1:function(Be,J){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC"},"y+Vt":function(Be,J,L){var Y=L("Gev7"),B=L("bYtY"),I=L("IMiH"),F=L("2DNl"),T=L("3C/r"),R=T.prototype.getCanvasPattern,P=Math.abs,m=new I(!0);function t(o){Y.call(this,o),this.path=null}t.prototype={constructor:t,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(o,u){var f=this.style,a=this.path||m,i=f.hasStroke(),d=f.hasFill(),s=f.fill,n=f.stroke,l=d&&!!s.colorStops,c=i&&!!n.colorStops,x=d&&!!s.image,A=i&&!!n.image;if(f.bind(o,this,u),this.setTransform(o),this.__dirty){var C;l&&(C=C||this.getBoundingRect(),this._fillGradient=f.getGradient(o,s,C)),c&&(C=C||this.getBoundingRect(),this._strokeGradient=f.getGradient(o,n,C))}l?o.fillStyle=this._fillGradient:x&&(o.fillStyle=R.call(s,o)),c?o.strokeStyle=this._strokeGradient:A&&(o.strokeStyle=R.call(n,o));var k=f.lineDash,w=f.lineDashOffset,y=!!o.setLineDash,h=this.getGlobalScale();if(a.setScale(h[0],h[1],this.segmentIgnoreThreshold),this.__dirtyPath||k&&!y&&i?(a.beginPath(o),k&&!y&&(a.setLineDash(k),a.setLineDashOffset(w)),this.buildPath(a,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(o.beginPath(),this.path.rebuildPath(o)),d)if(f.fillOpacity!=null){var p=o.globalAlpha;o.globalAlpha=f.fillOpacity*f.opacity,a.fill(o),o.globalAlpha=p}else a.fill(o);if(k&&y&&(o.setLineDash(k),o.lineDashOffset=w),i)if(f.strokeOpacity!=null){var p=o.globalAlpha;o.globalAlpha=f.strokeOpacity*f.opacity,a.stroke(o),o.globalAlpha=p}else a.stroke(o);k&&y&&o.setLineDash([]),f.text!=null&&(this.restoreTransform(o),this.drawRectText(o,this.getBoundingRect()))},buildPath:function(o,u,f){},createPathProxy:function(){this.path=new I},getBoundingRect:function(){var o=this._rect,u=this.style,f=!o;if(f){var a=this.path;a||(a=this.path=new I),this.__dirtyPath&&(a.beginPath(),this.buildPath(a,this.shape,!1)),o=a.getBoundingRect()}if(this._rect=o,u.hasStroke()){var i=this._rectWithStroke||(this._rectWithStroke=o.clone());if(this.__dirty||f){i.copy(o);var d=u.lineWidth,s=u.strokeNoScale?this.getLineScale():1;u.hasFill()||(d=Math.max(d,this.strokeContainThreshold||4)),s>1e-10&&(i.width+=d/s,i.height+=d/s,i.x-=d/s/2,i.y-=d/s/2)}return i}return o},contain:function(o,u){var f=this.transformCoordToLocal(o,u),a=this.getBoundingRect(),i=this.style;if(o=f[0],u=f[1],a.contain(o,u)){var d=this.path.data;if(i.hasStroke()){var s=i.lineWidth,n=i.strokeNoScale?this.getLineScale():1;if(n>1e-10&&(i.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),F.containStroke(d,s/n,o,u)))return!0}if(i.hasFill())return F.contain(d,o,u)}return!1},dirty:function(o){o==null&&(o=!0),o&&(this.__dirtyPath=o,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(o){return this.animate("shape",o)},attrKV:function(o,u){o==="shape"?(this.setShape(u),this.__dirtyPath=!0,this._rect=null):Y.prototype.attrKV.call(this,o,u)},setShape:function(o,u){var f=this.shape;if(f){if(B.isObject(o))for(var a in o)o.hasOwnProperty(a)&&(f[a]=o[a]);else f[o]=u;this.dirty(!0)}return this},getLineScale:function(){var o=this.transform;return o&&P(o[0]-1)>1e-10&&P(o[3]-1)>1e-10?Math.sqrt(P(o[0]*o[3]-o[2]*o[1])):1}},t.extend=function(o){var u=function(a){t.call(this,a),o.style&&this.style.extendFrom(o.style,!1);var i=o.shape;if(i){this.shape=this.shape||{};var d=this.shape;for(var s in i)!d.hasOwnProperty(s)&&i.hasOwnProperty(s)&&(d[s]=i[s])}o.init&&o.init.call(this,a)};B.inherits(u,t);for(var f in o)f!=="style"&&f!=="shape"&&(u.prototype[f]=o[f]);return u},B.inherits(t,Y);var b=t;Be.exports=b},"y0+3":function(Be,J,L){"use strict";L.d(J,"a",function(){return o}),L.d(J,"b",function(){return f});var Y=/margin|padding|width|height|max|min|offset/,B={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function F(a){return a.nodeType===1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}}function T(a,i,d){if(i=i.toLowerCase(),d==="auto"){if(i==="height")return a.offsetHeight;if(i==="width")return a.offsetWidth}return i in B||(B[i]=Y.test(i)),B[i]?parseFloat(d)||0:d}function R(a,i){var d=arguments.length,s=F(a);return i=I[i]?"cssFloat"in a.style?"cssFloat":"styleFloat":i,d===1?s:T(a,i,s[i]||a.style[i])}function P(a,i,d){var s=arguments.length;if(i=I[i]?"cssFloat"in a.style?"cssFloat":"styleFloat":i,s===3)return typeof d=="number"&&Y.test(i)&&(d="".concat(d,"px")),a.style[i]=d,d;for(var n in i)i.hasOwnProperty(n)&&P(a,n,i[n]);return F(a)}function m(a){return a===document.body?document.documentElement.clientWidth:a.offsetWidth}function t(a){return a===document.body?window.innerHeight||document.documentElement.clientHeight:a.offsetHeight}function b(){var a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:a,height:i}}function o(){var a=document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return{width:a,height:i}}function u(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function f(a){var i=a.getBoundingClientRect(),d=document.documentElement;return{left:i.left+(window.pageXOffset||d.scrollLeft)-(d.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||d.scrollTop)-(d.clientTop||document.body.clientTop||0)}}},y23F:function(Be,J){function L(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}L.prototype={constructor:L,_dragStart:function(I){for(var F=I.target;F&&!F.draggable;)F=F.parent;F&&(this._draggingTarget=F,F.dragging=!0,this._x=I.offsetX,this._y=I.offsetY,this.dispatchToElement(Y(F,I),"dragstart",I.event))},_drag:function(I){var F=this._draggingTarget;if(F){var T=I.offsetX,R=I.offsetY,P=T-this._x,m=R-this._y;this._x=T,this._y=R,F.drift(P,m,I),this.dispatchToElement(Y(F,I),"drag",I.event);var t=this.findHover(T,R,F).target,b=this._dropTarget;this._dropTarget=t,F!==t&&(b&&t!==b&&this.dispatchToElement(Y(b,I),"dragleave",I.event),t&&t!==b&&this.dispatchToElement(Y(t,I),"dragenter",I.event))}},_dragEnd:function(I){var F=this._draggingTarget;F&&(F.dragging=!1),this.dispatchToElement(Y(F,I),"dragend",I.event),this._dropTarget&&this.dispatchToElement(Y(this._dropTarget,I),"drop",I.event),this._draggingTarget=null,this._dropTarget=null}};function Y(I,F){return{target:I,topTarget:F&&F.topTarget}}var B=L;Be.exports=B},yQHh:function(Be,J,L){},"yTi+":function(Be,J,L){Be.exports=L.p+"static/AssistantCode3.fdd8db3c.jpeg"},yxFR:function(Be,J,L){var Y=L("y+Vt"),B=L("nPnh"),I=B.subPixelOptimizeLine,F={},T=Y.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(R,P){var m,t,b,o;this.subPixelOptimize?(I(F,P,this.style),m=F.x1,t=F.y1,b=F.x2,o=F.y2):(m=P.x1,t=P.y1,b=P.x2,o=P.y2);var u=P.percent;if(u===0)return;R.moveTo(m,t),u<1&&(b=m*(1-u)+b*u,o=t*(1-u)+o*u),R.lineTo(b,o)},pointAt:function(R){var P=this.shape;return[P.x1*(1-R)+P.x2*R,P.y1*(1-R)+P.y2*R]}});Be.exports=T},zarK:function(Be,J,L){var Y=L("YH21"),B=Y.addEventListener,I=Y.removeEventListener,F=Y.normalizeEvent,T=Y.getNativeEvent,R=L("bYtY"),P=L("H6uX"),m=L("ItGF"),t=300,b=m.domSupported,o=function(){var g=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],j=["touchstart","touchend","touchmove"],U={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},S=R.map(g,function(z){var H=z.replace("mouse","pointer");return U.hasOwnProperty(H)?H:z});return{mouse:g,touch:j,pointer:S}}(),u={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function f(g){return g==="mousewheel"&&m.browser.firefox?"DOMMouseScroll":g}function a(g){var j=g.pointerType;return j==="pen"||j==="touch"}function i(g){g.touching=!0,g.touchTimer!=null&&(clearTimeout(g.touchTimer),g.touchTimer=null),g.touchTimer=setTimeout(function(){g.touching=!1,g.touchTimer=null},700)}function d(g){g&&(g.zrByTouch=!0)}function s(g,j){return F(g.dom,new l(g,j),!0)}function n(g,j){for(var U=j,S=!1;U&&U.nodeType!==9&&!(S=U.domBelongToZr||U!==j&&U===g.painterRoot);)U=U.parentNode;return S}function l(g,j){this.type=j.type,this.target=this.currentTarget=g.dom,this.pointerType=j.pointerType,this.clientX=j.clientX,this.clientY=j.clientY}var c=l.prototype;c.stopPropagation=c.stopImmediatePropagation=c.preventDefault=R.noop;var x={mousedown:function(g){g=F(this.dom,g),this._mayPointerCapture=[g.zrX,g.zrY],this.trigger("mousedown",g)},mousemove:function(g){g=F(this.dom,g);var j=this._mayPointerCapture;j&&(g.zrX!==j[0]||g.zrY!==j[1])&&h(this,!0),this.trigger("mousemove",g)},mouseup:function(g){g=F(this.dom,g),h(this,!1),this.trigger("mouseup",g)},mouseout:function(g){g=F(this.dom,g),this._pointerCapturing&&(g.zrEventControl="no_globalout");var j=g.toElement||g.relatedTarget;g.zrIsToLocalDOM=n(this,j),this.trigger("mouseout",g)},touchstart:function(g){g=F(this.dom,g),d(g),this._lastTouchMoment=new Date,this.handler.processGesture(g,"start"),x.mousemove.call(this,g),x.mousedown.call(this,g)},touchmove:function(g){g=F(this.dom,g),d(g),this.handler.processGesture(g,"change"),x.mousemove.call(this,g)},touchend:function(g){g=F(this.dom,g),d(g),this.handler.processGesture(g,"end"),x.mouseup.call(this,g),+new Date-this._lastTouchMoment')}}catch(a){o=function(n){return h.createElement("<"+n+' xmlns="'+r+'" class="zrvml">')}}function e(){if(v||!h)return;v=!0;var a=h.styleSheets;a.length<31?h.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}_.doc=h,_.createNode=i,_.initVML=e},"0s+r":function(c,_,s){var d=s("bYtY"),r=s("QBsz"),x=s("y23F"),v=s("H6uX"),h=s("YH21"),i=s("C0SR"),o="silent";function e(E,T,A){return{type:E,event:A,target:T.target,topTarget:T.topTarget,cancelBubble:!1,offsetX:A.zrX,offsetY:A.zrY,gestureEvent:A.gestureEvent,pinchX:A.pinchX,pinchY:A.pinchY,pinchScale:A.pinchScale,wheelDelta:A.zrDelta,zrByTouch:A.zrByTouch,which:A.which,stop:a}}function a(){h.stop(this.event)}function n(){}n.prototype.dispose=function(){};var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],u=function(E,T,A,w){v.call(this),this.storage=E,this.painter=T,this.painterRoot=w,A=A||new n,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,x.call(this),this.setHandlerProxy(A)};u.prototype={constructor:u,setHandlerProxy:function(E){this.proxy&&this.proxy.dispose(),E&&(d.each(t,function(T){E.on&&E.on(T,this[T],this)},this),E.handler=this),this.proxy=E},mousemove:function(E){var T=E.zrX,A=E.zrY,w=f(this,T,A),O=this._hovered,g=O.target;g&&!g.__zr&&(O=this.findHover(O.x,O.y),g=O.target);var S=this._hovered=w?{x:T,y:A}:this.findHover(T,A),m=S.target,N=this.proxy;N.setCursor&&N.setCursor(m?m.cursor:"default"),g&&m!==g&&this.dispatchToElement(O,"mouseout",E),this.dispatchToElement(S,"mousemove",E),m&&m!==g&&this.dispatchToElement(S,"mouseover",E)},mouseout:function(E){var T=E.zrEventControl,A=E.zrIsToLocalDOM;T!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",E),T!=="no_globalout"&&(!A&&this.trigger("globalout",{type:"globalout",event:E}))},resize:function(E){this._hovered={}},dispatch:function(E,T){var A=this[E];A&&A.call(this,T)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(E){var T=this.proxy;T.setCursor&&T.setCursor(E)},dispatchToElement:function(E,T,A){E=E||{};var w=E.target;if(w&&w.silent)return;for(var O="on"+T,g=e(T,E,A);w&&!(w[O]&&(g.cancelBubble=w[O].call(w,g)),w.trigger(T,g),w=w.parent,g.cancelBubble););g.cancelBubble||(this.trigger(T,g),this.painter&&this.painter.eachOtherLayer(function(S){typeof S[O]=="function"&&S[O].call(S,g),S.trigger&&S.trigger(T,g)}))},findHover:function(E,T,A){for(var w=this.storage.getDisplayList(),O={x:E,y:T},g=w.length-1;g>=0;g--){var S;if(w[g]!==A&&!w[g].ignore&&(S=l(w[g],E,T))&&(!O.topTarget&&(O.topTarget=w[g]),S!==o)){O.target=w[g];break}}return O},processGesture:function(E,T){this._gestureMgr||(this._gestureMgr=new i);var A=this._gestureMgr;T==="start"&&A.clear();var w=A.recognize(E,this.findHover(E.zrX,E.zrY,null).target,this.proxy.dom);if(T==="end"&&A.clear(),w){var O=w.type;E.gestureEvent=O,this.dispatchToElement({target:w.target},O,w.event)}}},d.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(E){u.prototype[E]=function(T){var A=T.zrX,w=T.zrY,O=f(this,A,w),g,S;if((E!=="mouseup"||!O)&&(g=this.findHover(A,w),S=g.target),E==="mousedown")this._downEl=S,this._downPoint=[T.zrX,T.zrY],this._upEl=S;else if(E==="mouseup")this._upEl=S;else if(E==="click"){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[T.zrX,T.zrY])>4)return;this._downPoint=null}this.dispatchToElement(g,E,T)}});function l(E,T,A){if(E[E.rectHover?"rectContain":"contain"](T,A)){for(var w=E,O;w;){if(w.clipPath&&!w.clipPath.contain(T,A))return!1;w.silent&&(O=!0),w=w.parent}return O?o:!0}return!1}function f(E,T,A){var w=E.painter;return T<0||T>w.getWidth()||A<0||A>w.getHeight()}d.mixin(u,v),d.mixin(u,x);var y=u;c.exports=y},"1Jh7":function(c,_,s){var d=s("y+Vt"),r=s("T6xi"),x=d.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(v,h){r.buildPath(v,h,!1)}});c.exports=x},"1MYJ":function(c,_,s){var d=s("y+Vt"),r=d.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var x=this.__dirtyPath,v=this.shape.paths,h=0;h=this._maxSize&&t>0){var l=e.head;e.remove(l),delete a[l.key],n=l.value,this._lastRemovedEntry=l}u?u.value=o:u=new r(o),u.key=i,e.insertEntry(u),a[i]=u}return n},v.get=function(i){var o=this._map[i],e=this._list;if(o!=null)return o!==e.tail&&(e.remove(o),e.insertEntry(o)),o.value},v.clear=function(){this._list.clear(),this._map={}};var h=x;c.exports=h},"1bdT":function(c,_,s){var d=s("3gBT"),r=s("H6uX"),x=s("DN4a"),v=s("vWvF"),h=s("bYtY"),i=function(e){x.call(this,e),r.call(this,e),v.call(this,e),this.id=e.id||d()};i.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,a){switch(this.draggable){case"horizontal":a=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=a,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,a){},attrKV:function(e,a){if(e==="position"||e==="scale"||e==="origin"){if(a){var n=this[e];n||(n=this[e]=[]),n[0]=a[0],n[1]=a[1]}}else this[e]=a},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,a){if(typeof e=="string")this.attrKV(e,a);else if(h.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var a=this.__zr;a&&e.addSelfToZr(a),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=a,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var a=this.animators;if(a)for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,me=ve&&typeof ve.getBoundingClientRect=="function"&&ve.getBoundingClientRect().width;if(me){if(Ee){var ie=getComputedStyle(ve),de=ie.marginLeft,we=ie.marginRight;me+=+de.replace("px","")+ +we.replace("px","")}me=+me.toFixed(6)}return me||0},q=function(ve,Ee,me){ve&&Object(A.a)(ve.style)==="object"&&(ve.style[Ee]=me)},ue=function(){return W.any},le=s("KQm4"),ee=s("Ff2n"),se=s("i8i4"),Z=s("bdgK"),oe=s("uciX"),L=s("8XRh"),V={adjustX:1,adjustY:1},ae={topLeft:{points:["bl","tl"],overflow:V,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:V,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:V,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:V,offset:[4,0]}},Q={topLeft:{points:["bl","tl"],overflow:V,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:V,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:V,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:V,offset:[4,0]}},G=ae,R=0,U={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},re=function(ve,Ee,me){var ie=k(Ee),de=ve.getState();ve.setState({defaultActiveFirst:Object(d.a)(Object(d.a)({},de.defaultActiveFirst),{},Object(t.a)({},ie,me))})},$=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(me){var ie;Object(r.a)(this,Ee),ie=ve.call(this,me),ie.onDestroy=function(xe){ie.props.onDestroy(xe)},ie.onKeyDown=function(xe){var De=xe.keyCode,Fe=ie.menuInstance,Je=ie.props,Ye=Je.isOpen,Qe=Je.store;if(De===u.a.ENTER)return ie.onTitleClick(xe),re(Qe,ie.props.eventKey,!0),!0;if(De===u.a.RIGHT)return Ye?Fe.onKeyDown(xe):(ie.triggerOpenChange(!0),re(Qe,ie.props.eventKey,!0)),!0;if(De===u.a.LEFT){var $e;if(Ye)$e=Fe.onKeyDown(xe);else return;return $e||(ie.triggerOpenChange(!1),$e=!0),$e}return Ye&&(De===u.a.UP||De===u.a.DOWN)?Fe.onKeyDown(xe):void 0},ie.onOpenChange=function(xe){ie.props.onOpenChange(xe)},ie.onPopupVisibleChange=function(xe){ie.triggerOpenChange(xe,xe?"mouseenter":"mouseleave")},ie.onMouseEnter=function(xe){var De=ie.props,Fe=De.eventKey,Je=De.onMouseEnter,Ye=De.store;re(Ye,ie.props.eventKey,!1),Je({key:Fe,domEvent:xe})},ie.onMouseLeave=function(xe){var De=ie.props,Fe=De.parentMenu,Je=De.eventKey,Ye=De.onMouseLeave;Fe.subMenuInstance=Object(v.a)(ie),Ye({key:Je,domEvent:xe})},ie.onTitleMouseEnter=function(xe){var De=ie.props,Fe=De.eventKey,Je=De.onItemHover,Ye=De.onTitleMouseEnter;Je({key:Fe,hover:!0}),Ye({key:Fe,domEvent:xe})},ie.onTitleMouseLeave=function(xe){var De=ie.props,Fe=De.parentMenu,Je=De.eventKey,Ye=De.onItemHover,Qe=De.onTitleMouseLeave;Fe.subMenuInstance=Object(v.a)(ie),Ye({key:Je,hover:!1}),Qe({key:Je,domEvent:xe})},ie.onTitleClick=function(xe){var De=Object(v.a)(ie),Fe=De.props;if(Fe.onTitleClick({key:Fe.eventKey,domEvent:xe}),Fe.triggerSubMenuAction==="hover")return;ie.triggerOpenChange(!Fe.isOpen,"click"),re(Fe.store,ie.props.eventKey,!1)},ie.onSubMenuClick=function(xe){typeof ie.props.onClick=="function"&&ie.props.onClick(ie.addKeyPath(xe))},ie.onSelect=function(xe){ie.props.onSelect(xe)},ie.onDeselect=function(xe){ie.props.onDeselect(xe)},ie.getPrefixCls=function(){return"".concat(ie.props.rootPrefixCls,"-submenu")},ie.getActiveClassName=function(){return"".concat(ie.getPrefixCls(),"-active")},ie.getDisabledClassName=function(){return"".concat(ie.getPrefixCls(),"-disabled")},ie.getSelectedClassName=function(){return"".concat(ie.getPrefixCls(),"-selected")},ie.getOpenClassName=function(){return"".concat(ie.props.rootPrefixCls,"-submenu-open")},ie.saveMenuInstance=function(xe){ie.menuInstance=xe},ie.addKeyPath=function(xe){return Object(d.a)(Object(d.a)({},xe),{},{keyPath:(xe.keyPath||[]).concat(ie.props.eventKey)})},ie.triggerOpenChange=function(xe,De){var Fe=ie.props.eventKey,Je=function(){ie.onOpenChange({key:Fe,item:Object(v.a)(ie),trigger:De,open:xe})};De==="mouseenter"?ie.mouseenterTimeout=setTimeout(function(){Je()},0):Je()},ie.isChildrenSelected=function(){var xe={find:!1};return J(ie.props.children,ie.props.selectedKeys,xe),xe.find},ie.isOpen=function(){return ie.props.openKeys.indexOf(ie.props.eventKey)!==-1},ie.adjustWidth=function(){if(!ie.subMenuTitle||!ie.menuInstance)return;var xe=se.findDOMNode(ie.menuInstance);if(xe.offsetWidth>=ie.subMenuTitle.offsetWidth)return;xe.style.minWidth="".concat(ie.subMenuTitle.offsetWidth,"px")},ie.saveSubMenuTitle=function(xe){ie.subMenuTitle=xe},ie.getBaseProps=function(){var xe=Object(v.a)(ie),De=xe.props;return{mode:De.mode==="horizontal"?"vertical":De.mode,visible:ie.props.isOpen,level:De.level+1,inlineIndent:De.inlineIndent,focusable:!1,onClick:ie.onSubMenuClick,onSelect:ie.onSelect,onDeselect:ie.onDeselect,onDestroy:ie.onDestroy,selectedKeys:De.selectedKeys,eventKey:"".concat(De.eventKey,"-menu-"),openKeys:De.openKeys,motion:De.motion,onOpenChange:ie.onOpenChange,subMenuOpenDelay:De.subMenuOpenDelay,parentMenu:Object(v.a)(ie),subMenuCloseDelay:De.subMenuCloseDelay,forceSubMenuRender:De.forceSubMenuRender,triggerSubMenuAction:De.triggerSubMenuAction,builtinPlacements:De.builtinPlacements,defaultActiveFirst:De.store.getState().defaultActiveFirst[k(De.eventKey)],multiple:De.multiple,prefixCls:De.rootPrefixCls,id:ie.internalMenuId,manualRef:ie.saveMenuInstance,itemIcon:De.itemIcon,expandIcon:De.expandIcon,direction:De.direction}},ie.getMotion=function(xe,De){var Fe=Object(v.a)(ie),Je=Fe.haveRendered,Ye=ie.props,Qe=Ye.motion,$e=Ye.rootPrefixCls,dt=Object(d.a)(Object(d.a)({},Qe),{},{leavedClassName:"".concat($e,"-hidden"),removeOnLeave:!1,motionAppear:Je||!De||xe!=="inline"});return dt};var de=me.store,we=me.eventKey,ye=de.getState(),Te=ye.defaultActiveFirst;ie.isRootMenu=!1;var Re=!1;return Te&&(Re=Te[we]),re(de,we,Re),ie}return Object(x.a)(Ee,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ie=this,de=this.props,we=de.mode,ye=de.parentMenu,Te=de.manualRef;if(Te&&Te(this),we!=="horizontal"||!ye.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ie.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ie=this.props,de=ie.onDestroy,we=ie.eventKey;de&&de(we),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ie){var de=this,we=this.getBaseProps(),ye=this.getMotion(we.mode,we.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||we.visible||we.forceSubMenuRender,!this.haveOpened)return o.createElement("div",null);var Te=we.direction;return o.createElement(L.default,Object.assign({visible:we.visible},ye),function(Re){var xe=Re.className,De=Re.style,Fe=T()("".concat(we.prefixCls,"-sub"),xe,Object(t.a)({},"".concat(we.prefixCls,"-rtl"),Te==="rtl"));return o.createElement(je,Object.assign({},we,{id:de.internalMenuId,className:Fe,style:De}),ie)})}},{key:"render",value:function(){var ie,de=Object(d.a)({},this.props),we=de.isOpen,ye=this.getPrefixCls(),Te=de.mode==="inline",Re=T()(ye,"".concat(ye,"-").concat(de.mode),(ie={},Object(t.a)(ie,de.className,!!de.className),Object(t.a)(ie,this.getOpenClassName(),we),Object(t.a)(ie,this.getActiveClassName(),de.active||we&&!Te),Object(t.a)(ie,this.getDisabledClassName(),de.disabled),Object(t.a)(ie,this.getSelectedClassName(),this.isChildrenSelected()),ie));this.internalMenuId||(de.eventKey?this.internalMenuId="".concat(de.eventKey,"$Menu"):(R+=1,this.internalMenuId="$__$".concat(R,"$Menu")));var xe={},De={},Fe={};de.disabled||(xe={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},De={onClick:this.onTitleClick},Fe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Je={},Ye=de.direction;Te&&(Ye==="rtl"?Je.paddingRight=de.inlineIndent*de.level:Je.paddingLeft=de.inlineIndent*de.level);var Qe={};this.props.isOpen&&(Qe={"aria-owns":this.internalMenuId});var $e=null;de.mode!=="horizontal"&&($e=this.props.expandIcon,typeof this.props.expandIcon=="function"&&($e=o.createElement(this.props.expandIcon,Object(d.a)({},this.props))));var dt=o.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Je,className:"".concat(ye,"-title"),role:"button"},Fe,De,{"aria-expanded":we},Qe,{"aria-haspopup":"true",title:typeof de.title=="string"?de.title:void 0}),de.title,$e||o.createElement("i",{className:"".concat(ye,"-arrow")})),at=this.renderChildren(de.children),rt=de.parentMenu.isRootMenu?de.parentMenu.props.getPopupContainer:function(yt){return yt.parentNode},st=U[de.mode],lt=de.popupOffset?{offset:de.popupOffset}:{},mt=de.mode==="inline"?"":de.popupClassName;mt+=Ye==="rtl"?" ".concat(ye,"-rtl"):"";var nt=de.disabled,ft=de.triggerSubMenuAction,bt=de.subMenuOpenDelay,Ot=de.forceSubMenuRender,At=de.subMenuCloseDelay,vt=de.builtinPlacements;te.forEach(function(yt){return delete de[yt]}),delete de.onClick;var Ct=Ye==="rtl"?Object.assign({},Q,vt):Object.assign({},ae,vt);return delete de.direction,o.createElement("li",Object.assign({},de,xe,{className:Re,role:"menuitem"}),Te&&dt,Te&&at,!Te&&o.createElement(oe.a,{prefixCls:ye,popupClassName:T()("".concat(ye,"-popup"),mt),getPopupContainer:rt,builtinPlacements:Ct,popupPlacement:st,popupVisible:we,popupAlign:lt,popup:at,action:nt?[]:[ft],mouseEnterDelay:bt,mouseLeaveDelay:At,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ot},dt))}}]),Ee}(o.Component);$.defaultProps={onMouseEnter:X,onMouseLeave:X,onTitleMouseEnter:X,onTitleMouseLeave:X,onTitleClick:X,manualRef:X,mode:"vertical",title:""};var ce=Object(e.b)(function(Ne,ve){var Ee=Ne.openKeys,me=Ne.activeKey,ie=Ne.selectedKeys,de=ve.eventKey,we=ve.subMenuKey;return{isOpen:Ee.indexOf(de)>-1,active:me[we]===de,selectedKeys:ie}})($);ce.isSubMenu=!0;var pe=ce,ge="menuitem-overflowed",Ce=.5,Ae=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(){var me;return Object(r.a)(this,Ee),me=ve.apply(this,arguments),me.resizeObserver=null,me.mutationObserver=null,me.originalTotalWidth=0,me.overflowedItems=[],me.menuItemSizes=[],me.cancelFrameId=null,me.state={lastVisibleIndex:void 0},me.getMenuItemNodes=function(){var ie=me.props.prefixCls,de=se.findDOMNode(Object(v.a)(me));return de?[].slice.call(de.children).filter(function(we){return we.className.split(" ").indexOf("".concat(ie,"-overflowed-submenu"))<0}):[]},me.getOverflowedSubMenuItem=function(ie,de,we){var ye=me.props,Te=ye.overflowedIndicator,Re=ye.level,xe=ye.mode,De=ye.prefixCls,Fe=ye.theme;if(Re!==1||xe!=="horizontal")return null;var Je=me.props.children[0],Ye=Je.props,Qe=Ye.children,$e=Ye.title,dt=Ye.style,at=Object(ee.a)(Ye,["children","title","style"]),rt=Object(d.a)({},dt),st="".concat(ie,"-overflowed-indicator"),lt="".concat(ie,"-overflowed-indicator");de.length===0&&we!==!0?rt=Object(d.a)(Object(d.a)({},rt),{},{display:"none"}):we&&(rt=Object(d.a)(Object(d.a)({},rt),{},{visibility:"hidden",position:"absolute"}),st="".concat(st,"-placeholder"),lt="".concat(lt,"-placeholder"));var mt=Fe?"".concat(De,"-").concat(Fe):"",nt={};return te.forEach(function(ft){at[ft]!==void 0&&(nt[ft]=at[ft])}),o.createElement(pe,Object.assign({title:Te,className:"".concat(De,"-overflowed-submenu"),popupClassName:mt},nt,{key:st,eventKey:lt,disabled:!1,style:rt}),de)},me.setChildrenWidthAndResize=function(){if(me.props.mode!=="horizontal")return;var ie=se.findDOMNode(Object(v.a)(me));if(!ie)return;var de=ie.children;if(!de||de.length===0)return;var we=ie.children[de.length-1];q(we,"display","inline-block");var ye=me.getMenuItemNodes(),Te=ye.filter(function(Re){return Re.className.split(" ").indexOf(ge)>=0});Te.forEach(function(Re){q(Re,"display","inline-block")}),me.menuItemSizes=ye.map(function(Re){return ne(Re,!0)}),Te.forEach(function(Re){q(Re,"display","none")}),me.overflowedIndicatorWidth=ne(ie.children[ie.children.length-1],!0),me.originalTotalWidth=me.menuItemSizes.reduce(function(Re,xe){return Re+xe},0),me.handleResize(),q(we,"display","none")},me.handleResize=function(){if(me.props.mode!=="horizontal")return;var ie=se.findDOMNode(Object(v.a)(me));if(!ie)return;var de=ne(ie);me.overflowedItems=[];var we=0,ye;me.originalTotalWidth>de+Ce&&(ye=-1,me.menuItemSizes.forEach(function(Te){we+=Te,we+me.overflowedIndicatorWidth<=de&&(ye+=1)})),me.setState({lastVisibleIndex:ye})},me}return Object(x.a)(Ee,[{key:"componentDidMount",value:function(){var ie=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var de=se.findDOMNode(this);if(!de)return;this.resizeObserver=new Z.default(function(we){we.forEach(function(){var ye=ie.cancelFrameId;cancelAnimationFrame(ye),ie.cancelFrameId=requestAnimationFrame(ie.setChildrenWidthAndResize)})}),[].slice.call(de.children).concat(de).forEach(function(we){ie.resizeObserver.observe(we)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ie.resizeObserver.disconnect(),[].slice.call(de.children).concat(de).forEach(function(we){ie.resizeObserver.observe(we)}),ie.setChildrenWidthAndResize()}),this.mutationObserver.observe(de,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ie){var de=this,we=this.state.lastVisibleIndex;return(ie||[]).reduce(function(ye,Te,Re){var xe=Te;if(de.props.mode==="horizontal"){var De=de.getOverflowedSubMenuItem(Te.props.eventKey,[]);we!==void 0&&de.props.className.indexOf("".concat(de.props.prefixCls,"-root"))!==-1&&(Re>we&&(xe=o.cloneElement(Te,{style:{display:"none"},eventKey:"".concat(Te.props.eventKey,"-hidden"),className:"".concat(ge)})),Re===we+1&&(de.overflowedItems=ie.slice(we+1).map(function(Je){return o.cloneElement(Je,{key:Je.props.eventKey,mode:"vertical-left"})}),De=de.getOverflowedSubMenuItem(Te.props.eventKey,de.overflowedItems)));var Fe=[].concat(Object(le.a)(ye),[De,xe]);return Re===ie.length-1&&Fe.push(de.getOverflowedSubMenuItem(Te.props.eventKey,[],!0)),Fe}return[].concat(Object(le.a)(ye),[xe])},[])}},{key:"render",value:function(){var ie=this.props,de=ie.visible,we=ie.prefixCls,ye=ie.overflowedIndicator,Te=ie.mode,Re=ie.level,xe=ie.tag,De=ie.children,Fe=ie.theme,Je=Object(ee.a)(ie,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ye=xe;return o.createElement(Ye,Object.assign({},Je),this.renderChildren(De))}}]),Ee}(o.Component);Ae.defaultProps={tag:"div",className:""};var Se=Ae;function Me(Ne){return Ne.length?Ne.every(function(ve){return!!ve.props.disabled}):!0}function fe(Ne,ve,Ee){var me=Ne.getState();Ne.setState({activeKey:Object(d.a)(Object(d.a)({},me.activeKey),{},Object(t.a)({},ve,Ee))})}function he(Ne){return Ne.eventKey||"0-menu-"}function be(Ne,ve){var Ee=ve,me=Ne.children,ie=Ne.eventKey;if(Ee){var de;if(Y(me,function(we,ye){we&&we.props&&!we.props.disabled&&Ee===P(we,ie,ye)&&(de=!0)}),de)return Ee}return Ee=null,Ne.defaultActiveFirst&&Y(me,function(we,ye){!Ee&&we&&!we.props.disabled&&(Ee=P(we,ie,ye))}),Ee}function Ie(Ne){if(Ne){var ve=this.instanceArray.indexOf(Ne);ve!==-1?this.instanceArray[ve]=Ne:this.instanceArray.push(Ne)}}var _e=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(me){var ie;return Object(r.a)(this,Ee),ie=ve.call(this,me),ie.onKeyDown=function(de,we){var ye=de.keyCode,Te;if(ie.getFlatInstanceArray().forEach(function(xe){xe&&xe.props.active&&xe.onKeyDown&&(Te=xe.onKeyDown(de))}),Te)return 1;var Re=null;return(ye===u.a.UP||ye===u.a.DOWN)&&(Re=ie.step(ye===u.a.UP?-1:1)),Re?(de.preventDefault(),fe(ie.props.store,he(ie.props),Re.props.eventKey),typeof we=="function"&&we(Re),1):void 0},ie.onItemHover=function(de){var we=de.key,ye=de.hover;fe(ie.props.store,he(ie.props),ye?we:null)},ie.onDeselect=function(de){ie.props.onDeselect(de)},ie.onSelect=function(de){ie.props.onSelect(de)},ie.onClick=function(de){ie.props.onClick(de)},ie.onOpenChange=function(de){ie.props.onOpenChange(de)},ie.onDestroy=function(de){ie.props.onDestroy(de)},ie.getFlatInstanceArray=function(){return ie.instanceArray},ie.step=function(de){var we=ie.getFlatInstanceArray(),ye=ie.props.store.getState().activeKey[he(ie.props)],Te=we.length;if(!Te)return null;de<0&&(we=we.concat().reverse());var Re=-1;if(we.every(function(Je,Ye){return Je&&Je.props.eventKey===ye?(Re=Ye,!1):!0}),!ie.props.defaultActiveFirst&&Re!==-1&&Me(we.slice(Re,Te-1)))return;var xe=(Re+1)%Te,De=xe;do{var Fe=we[De];if(!Fe||Fe.props.disabled)De=(De+1)%Te;else return Fe}while(De!==xe);return null},ie.renderCommonMenuItem=function(de,we,ye){var Te=ie.props.store.getState(),Re=Object(v.a)(ie),xe=Re.props,De=P(de,xe.eventKey,we),Fe=de.props;if(!Fe||typeof de.type=="string")return de;var Je=De===Te.activeKey,Ye=Object(d.a)(Object(d.a)({mode:Fe.mode||xe.mode,level:xe.level,inlineIndent:xe.inlineIndent,renderMenuItem:ie.renderMenuItem,rootPrefixCls:xe.prefixCls,index:we,parentMenu:xe.parentMenu,manualRef:Fe.disabled?void 0:Object(l.a)(de.ref,Ie.bind(Object(v.a)(ie))),eventKey:De,active:!Fe.disabled&&Je,multiple:xe.multiple,onClick:function($e){(Fe.onClick||X)($e),ie.onClick($e)},onItemHover:ie.onItemHover,motion:xe.motion,subMenuOpenDelay:xe.subMenuOpenDelay,subMenuCloseDelay:xe.subMenuCloseDelay,forceSubMenuRender:xe.forceSubMenuRender,onOpenChange:ie.onOpenChange,onDeselect:ie.onDeselect,onSelect:ie.onSelect,builtinPlacements:xe.builtinPlacements,itemIcon:Fe.itemIcon||ie.props.itemIcon,expandIcon:Fe.expandIcon||ie.props.expandIcon},ye),{},{direction:xe.direction});return(xe.mode==="inline"||ue())&&(Ye.triggerSubMenuAction="click"),o.cloneElement(de,Ye)},ie.renderMenuItem=function(de,we,ye){if(!de)return null;var Te=ie.props.store.getState(),Re={openKeys:Te.openKeys,selectedKeys:Te.selectedKeys,triggerSubMenuAction:ie.props.triggerSubMenuAction,subMenuKey:ye};return ie.renderCommonMenuItem(de,we,Re)},me.store.setState({activeKey:Object(d.a)(Object(d.a)({},me.store.getState().activeKey),{},Object(t.a)({},me.eventKey,be(me,me.activeKey)))}),ie.instanceArray=[],ie}return Object(x.a)(Ee,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ie){return this.props.visible||ie.visible||this.props.className!==ie.className||!y()(this.props.style,ie.style)}},{key:"componentDidUpdate",value:function(ie){var de=this.props,we="activeKey"in de?de.activeKey:de.store.getState().activeKey[he(de)],ye=be(de,we);if(ye!==we)fe(de.store,he(de),ye);else if("activeKey"in ie){var Te=be(ie,ie.activeKey);ye!==Te&&fe(de.store,he(de),ye)}}},{key:"render",value:function(){var ie=this,de=Object(n.a)({},this.props);this.instanceArray=[];var we=T()(de.prefixCls,de.className,"".concat(de.prefixCls,"-").concat(de.mode)),ye={className:we,role:de.role||"menu"};de.id&&(ye.id=de.id),de.focusable&&(ye.tabIndex=0,ye.onKeyDown=this.onKeyDown);var Te=de.prefixCls,Re=de.eventKey,xe=de.visible,De=de.level,Fe=de.mode,Je=de.overflowedIndicator,Ye=de.theme;return te.forEach(function(Qe){return delete de[Qe]}),delete de.onClick,o.createElement(Se,Object.assign({},de,{prefixCls:Te,mode:Fe,tag:"ul",level:De,theme:Ye,visible:xe,overflowedIndicator:Je},ye),o.Children.map(de.children,function(Qe,$e){return ie.renderMenuItem(Qe,$e,Re||"0-menu-")}))}}]),Ee}(o.Component);_e.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:X};var Le=Object(e.b)()(_e),je=Le,Oe=s("Kwbf");function Pe(Ne,ve,Ee){var me=Ne.prefixCls,ie=Ne.motion,de=Ne.defaultMotions,we=de===void 0?{}:de,ye=Ne.openAnimation,Te=Ne.openTransitionName,Re=ve.switchingModeFromInline;if(ie)return ie;if(Object(A.a)(ye)==="object"&&ye)Object(Oe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ye=="string")return{motionName:"".concat(me,"-open-").concat(ye)};if(Te)return{motionName:Te};var xe=we[Ee];return xe||(Re?null:we.other)}var Ue=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(me){var ie;Object(r.a)(this,Ee),ie=ve.call(this,me),ie.inlineOpenKeys=[],ie.onSelect=function(ye){var Te=Object(v.a)(ie),Re=Te.props;if(Re.selectable){var xe=ie.store.getState(),De=xe.selectedKeys,Fe=ye.key;Re.multiple?De=De.concat([Fe]):De=[Fe],"selectedKeys"in Re||ie.store.setState({selectedKeys:De}),Re.onSelect(Object(d.a)(Object(d.a)({},ye),{},{selectedKeys:De}))}},ie.onClick=function(ye){var Te=ie.getRealMenuMode(),Re=Object(v.a)(ie),xe=Re.store,De=Re.props.onOpenChange;Te!=="inline"&&!("openKeys"in ie.props)&&(xe.setState({openKeys:[]}),De([])),ie.props.onClick(ye)},ie.onKeyDown=function(ye,Te){ie.innerMenu.getWrappedInstance().onKeyDown(ye,Te)},ie.onOpenChange=function(ye){var Te=Object(v.a)(ie),Re=Te.props,xe=ie.store.getState().openKeys.concat(),De=!1,Fe=function(Ye){var Qe=!1;if(Ye.open)Qe=xe.indexOf(Ye.key)===-1,Qe&&xe.push(Ye.key);else{var $e=xe.indexOf(Ye.key);Qe=$e!==-1,Qe&&xe.splice($e,1)}De=De||Qe};Array.isArray(ye)?ye.forEach(Fe):Fe(ye),De&&("openKeys"in ie.props||ie.store.setState({openKeys:xe}),Re.onOpenChange(xe))},ie.onDeselect=function(ye){var Te=Object(v.a)(ie),Re=Te.props;if(Re.selectable){var xe=ie.store.getState().selectedKeys.concat(),De=ye.key,Fe=xe.indexOf(De);Fe!==-1&&xe.splice(Fe,1),"selectedKeys"in Re||ie.store.setState({selectedKeys:xe}),Re.onDeselect(Object(d.a)(Object(d.a)({},ye),{},{selectedKeys:xe}))}},ie.onMouseEnter=function(ye){ie.restoreModeVerticalFromInline();var Te=ie.props.onMouseEnter;Te&&Te(ye)},ie.onTransitionEnd=function(ye){var Te=ye.propertyName==="width"&&ye.target===ye.currentTarget,Re=ye.target.className,xe=Object.prototype.toString.call(Re)==="[object SVGAnimatedString]"?Re.animVal:Re,De=ye.propertyName==="font-size"&&xe.indexOf("anticon")>=0;(Te||De)&&ie.restoreModeVerticalFromInline()},ie.setInnerMenu=function(ye){ie.innerMenu=ye},ie.isRootMenu=!0;var de=me.defaultSelectedKeys,we=me.defaultOpenKeys;return"selectedKeys"in me&&(de=me.selectedKeys||[]),"openKeys"in me&&(we=me.openKeys||[]),ie.store=Object(e.c)({selectedKeys:de,openKeys:we,activeKey:{"0-menu-":be(me,me.activeKey)}}),ie.state={switchingModeFromInline:!1},ie}return Object(x.a)(Ee,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ie){this.updateOpentKeysWhenSwitchMode(ie),this.updateMiniStore();var de=this.props,we=de.siderCollapsed,ye=de.inlineCollapsed,Te=de.onOpenChange;(!ie.inlineCollapsed&&ye||!ie.siderCollapsed&&we)&&Te([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ie){var de=this.props,we=this.store,ye=this.inlineOpenKeys,Te=we.getState(),Re={};ie.mode==="inline"&&de.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in de||((de.inlineCollapsed&&!ie.inlineCollapsed||de.siderCollapsed&&!ie.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Te.openKeys.concat(),Re.openKeys=[]),(!de.inlineCollapsed&&ie.inlineCollapsed||!de.siderCollapsed&&ie.siderCollapsed)&&(Re.openKeys=ye,this.inlineOpenKeys=[])),Object.keys(Re).length&&we.setState(Re)}},{key:"updateMenuDisplay",value:function(){var ie=this.props.collapsedWidth,de=this.store,we=this.prevOpenKeys,ye=this.getInlineCollapsed()&&(ie===0||ie==="0"||ie==="0px");ye?(this.prevOpenKeys=de.getState().openKeys.concat(),this.store.setState({openKeys:[]})):we&&(this.store.setState({openKeys:we}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ie=this.props.mode,de=this.state.switchingModeFromInline,we=this.getInlineCollapsed();return de&&we?"inline":we?"vertical":ie}},{key:"getInlineCollapsed",value:function(){var ie=this.props,de=ie.inlineCollapsed,we=ie.siderCollapsed;return we!==void 0?we:de}},{key:"restoreModeVerticalFromInline",value:function(){var ie=this.state.switchingModeFromInline;ie&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ie=Object(d.a)({},Object(a.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),de=this.getRealMenuMode();return ie.className+=" ".concat(ie.prefixCls,"-root"),ie.direction==="rtl"&&(ie.className+=" ".concat(ie.prefixCls,"-rtl")),ie=Object(d.a)(Object(d.a)({},ie),{},{mode:de,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Pe(this.props,this.state,de)}),delete ie.openAnimation,delete ie.openTransitionName,o.createElement(e.a,{store:this.store},o.createElement(je,Object.assign({},ie,{ref:this.setInnerMenu}),this.props.children))}}]),Ee}(o.Component);Ue.defaultProps={selectable:!0,onClick:X,onSelect:X,onOpenChange:X,onDeselect:X,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Be=Ue,ke=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(){var me;return Object(r.a)(this,Ee),me=ve.apply(this,arguments),me.onKeyDown=function(ie){var de=ie.keyCode;return de===u.a.ENTER?(me.onClick(ie),!0):void 0},me.onMouseLeave=function(ie){var de=me.props,we=de.eventKey,ye=de.onItemHover,Te=de.onMouseLeave;ye({key:we,hover:!1}),Te({key:we,domEvent:ie})},me.onMouseEnter=function(ie){var de=me.props,we=de.eventKey,ye=de.onItemHover,Te=de.onMouseEnter;ye({key:we,hover:!0}),Te({key:we,domEvent:ie})},me.onClick=function(ie){var de=me.props,we=de.eventKey,ye=de.multiple,Te=de.onClick,Re=de.onSelect,xe=de.onDeselect,De=de.isSelected,Fe={key:we,keyPath:[we],item:Object(v.a)(me),domEvent:ie};Te(Fe),ye?De?xe(Fe):Re(Fe):De||Re(Fe)},me.saveNode=function(ie){me.node=ie},me}return Object(x.a)(Ee,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ie=this.props;ie.onDestroy&&ie.onDestroy(ie.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ie,de=Object(d.a)({},this.props),we=T()(this.getPrefixCls(),de.className,(ie={},Object(t.a)(ie,this.getActiveClassName(),!de.disabled&&de.active),Object(t.a)(ie,this.getSelectedClassName(),de.isSelected),Object(t.a)(ie,this.getDisabledClassName(),de.disabled),ie)),ye=Object(d.a)(Object(d.a)({},de.attribute),{},{title:typeof de.title=="string"?de.title:void 0,className:we,role:de.role||"menuitem","aria-disabled":de.disabled});de.role==="option"?ye=Object(d.a)(Object(d.a)({},ye),{},{role:"option","aria-selected":de.isSelected}):(de.role===null||de.role==="none")&&(ye.role="none");var Te={onClick:de.disabled?null:this.onClick,onMouseLeave:de.disabled?null:this.onMouseLeave,onMouseEnter:de.disabled?null:this.onMouseEnter},Re=Object(d.a)({},de.style);de.mode==="inline"&&(de.direction==="rtl"?Re.paddingRight=de.inlineIndent*de.level:Re.paddingLeft=de.inlineIndent*de.level),te.forEach(function(De){return delete de[De]}),delete de.direction;var xe=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(xe=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object.assign({},Object(a.default)(de,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ye,Te,{style:Re,ref:this.saveNode}),de.children,xe)}}]),Ee}(o.Component);ke.isMenuItem=!0,ke.defaultProps={onSelect:X,onMouseEnter:X,onMouseLeave:X,manualRef:X};var Ge=Object(e.b)(function(Ne,ve){var Ee=Ne.activeKey,me=Ne.selectedKeys,ie=ve.eventKey,de=ve.subMenuKey;return{active:Ee[de]===ie,isSelected:me.indexOf(ie)!==-1}})(ke),ze=Ge,Xe=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(){var me;return Object(r.a)(this,Ee),me=ve.apply(this,arguments),me.renderInnerMenuItem=function(ie){var de=me.props,we=de.renderMenuItem,ye=de.index;return we(ie,ye,me.props.subMenuKey)},me}return Object(x.a)(Ee,[{key:"render",value:function(){var ie=Object(n.a)({},this.props),de=ie.className,we=de===void 0?"":de,ye=ie.rootPrefixCls,Te="".concat(ye,"-item-group-title"),Re="".concat(ye,"-item-group-list"),xe=ie.title,De=ie.children;return te.forEach(function(Fe){return delete ie[Fe]}),delete ie.onClick,delete ie.direction,o.createElement("li",Object.assign({},ie,{className:"".concat(we," ").concat(ye,"-item-group")}),o.createElement("div",{className:Te,title:typeof xe=="string"?xe:void 0},xe),o.createElement("ul",{className:Re},o.Children.map(De,this.renderInnerMenuItem)))}}]),Ee}(o.Component);Xe.isMenuItemGroup=!0,Xe.defaultProps={disabled:!0};var He=Xe,We=function(ve){var Ee=ve.className,me=ve.rootPrefixCls,ie=ve.style;return o.createElement("li",{className:"".concat(Ee," ").concat(me,"-item-divider"),style:ie})};We.defaultProps={disabled:!0,className:"",style:{}};var Ke=We,Ve=_.e=Be},"1uat":function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("MlIO"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.Hasher,h=r.x64,i=h.Word,o=h.WordArray,e=r.algo;function a(){return i.create.apply(i,arguments)}var n=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],t=[];(function(){for(var l=0;l<80;l++)t[l]=a()})();var u=e.SHA512=v.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(l,f){for(var y=this._hash.words,E=y[0],T=y[1],A=y[2],w=y[3],O=y[4],g=y[5],S=y[6],m=y[7],N=E.high,I=E.low,b=T.high,p=T.low,C=A.high,F=A.low,z=w.high,H=w.low,D=O.high,K=O.low,B=g.high,M=g.low,j=S.high,W=S.low,X=m.high,P=m.low,k=N,Y=I,J=b,te=p,ne=C,q=F,ue=z,le=H,ee=D,se=K,Z=B,oe=M,L=j,V=W,ae=X,Q=P,G=0;G<80;G++){var R,U,re=t[G];if(G<16)U=re.high=l[f+G*2]|0,R=re.low=l[f+G*2+1]|0;else{var $=t[G-15],ce=$.high,pe=$.low,ge=(ce>>>1|pe<<31)^(ce>>>8|pe<<24)^ce>>>7,Ce=(pe>>>1|ce<<31)^(pe>>>8|ce<<24)^(pe>>>7|ce<<25),Ae=t[G-2],Se=Ae.high,Me=Ae.low,fe=(Se>>>19|Me<<13)^(Se<<3|Me>>>29)^Se>>>6,he=(Me>>>19|Se<<13)^(Me<<3|Se>>>29)^(Me>>>6|Se<<26),be=t[G-7],Ie=be.high,_e=be.low,Le=t[G-16],je=Le.high,Oe=Le.low;R=Ce+_e,U=ge+Ie+(R>>>0>>0?1:0),R=R+he,U=U+fe+(R>>>0>>0?1:0),R=R+Oe,U=U+je+(R>>>0>>0?1:0),re.high=U,re.low=R}var Pe=ee&Z^~ee&L,Ue=se&oe^~se&V,Be=k&J^k&ne^J&ne,ke=Y&te^Y&q^te&q,Ge=(k>>>28|Y<<4)^(k<<30|Y>>>2)^(k<<25|Y>>>7),ze=(Y>>>28|k<<4)^(Y<<30|k>>>2)^(Y<<25|k>>>7),Xe=(ee>>>14|se<<18)^(ee>>>18|se<<14)^(ee<<23|se>>>9),He=(se>>>14|ee<<18)^(se>>>18|ee<<14)^(se<<23|ee>>>9),We=n[G],Ke=We.high,Ve=We.low,Ne=Q+He,ve=ae+Xe+(Ne>>>0>>0?1:0),Ne=Ne+Ue,ve=ve+Pe+(Ne>>>0>>0?1:0),Ne=Ne+Ve,ve=ve+Ke+(Ne>>>0>>0?1:0),Ne=Ne+R,ve=ve+U+(Ne>>>0>>0?1:0),Ee=ze+ke,me=Ge+Be+(Ee>>>0>>0?1:0);ae=L,Q=V,L=Z,V=oe,Z=ee,oe=se,se=le+Ne|0,ee=ue+ve+(se>>>0>>0?1:0)|0,ue=ne,le=q,ne=J,q=te,J=k,te=Y,Y=Ne+Ee|0,k=ve+me+(Y>>>0>>0?1:0)|0}I=E.low=I+Y,E.high=N+k+(I>>>0>>0?1:0),p=T.low=p+te,T.high=b+J+(p>>>0>>0?1:0),F=A.low=F+q,A.high=C+ne+(F>>>0>>0?1:0),H=w.low=H+le,w.high=z+ue+(H>>>0>>0?1:0),K=O.low=K+se,O.high=D+ee+(K>>>0>>0?1:0),M=g.low=M+oe,g.high=B+Z+(M>>>0>>0?1:0),W=S.low=W+V,S.high=j+L+(W>>>0>>0?1:0),P=m.low=P+Q,m.high=X+ae+(P>>>0>>0?1:0)},_doFinalize:function(){var l=this._data,f=l.words,y=this._nDataBytes*8,E=l.sigBytes*8;f[E>>>5]|=128<<24-E%32,f[(E+128>>>10<<5)+30]=Math.floor(y/4294967296),f[(E+128>>>10<<5)+31]=y,l.sigBytes=f.length*4,this._process();var T=this._hash.toX32();return T},clone:function(){var l=v.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});r.SHA512=v._createHelper(u),r.HmacSHA512=v._createHmacHelper(u)}(),d.SHA512})},"24YM":function(c,_,s){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SensorTabIndex=_.SensorClassName=_.SizeSensorId=void 0;var d="size-sensor-id";_.SizeSensorId=d;var r="size-sensor-object";_.SensorClassName=r;var x="-1";_.SensorTabIndex=x},"2DNl":function(c,_,s){var d=s("IMiH"),r=s("loD1"),x=s("59Ip"),v=s("aKvl"),h=s("n1HI"),i=s("hX1E"),o=i.normalizeRadian,e=s("Sj9i"),a=s("hyiK"),n=d.CMD,t=Math.PI*2,u=1e-4;function l(m,N){return Math.abs(m-N)N&&D>b&&D>C&&D>z||D1&&E(),j=e.cubicAt(N,b,C,z,y[0]),M>1&&(W=e.cubicAt(N,b,C,z,y[1]))),M===2?PN&&z>b&&z>C||z=0&&D<=1){for(var K=0,B=e.quadraticAt(N,b,C,D),M=0;MI||z<-I)return 0;var H=Math.sqrt(I*I-z*z);f[0]=-H,f[1]=H;var D=Math.abs(b-p);if(D<1e-4)return 0;if(D%t<1e-4){b=0,p=t;var K=C?1:-1;return F>=f[0]+m&&F<=f[1]+m?K:0}if(C){var H=b;b=o(p),p=o(H)}else b=o(b),p=o(p);b>p&&(p+=t);for(var B=0,M=0;M<2;M++){var j=f[M];if(j+m>F){var W=Math.atan2(z,j),K=C?1:-1;W<0&&(W=t+W),(W>=b&&W<=p||W+t>=b&&W+t<=p)&&(W>Math.PI/2&&W1&&(I||(C+=a(F,z,H,D,b,p))),K===1&&(F=m[K],z=m[K+1],H=F,D=z);switch(B){case n.M:H=m[K++],D=m[K++],F=H,z=D;break;case n.L:if(I){if(r.containStroke(F,z,m[K],m[K+1],N,b,p))return!0}else C+=a(F,z,m[K],m[K+1],b,p)||0;F=m[K++],z=m[K++];break;case n.C:if(I){if(x.containStroke(F,z,m[K++],m[K++],m[K++],m[K++],m[K],m[K+1],N,b,p))return!0}else C+=T(F,z,m[K++],m[K++],m[K++],m[K++],m[K],m[K+1],b,p)||0;F=m[K++],z=m[K++];break;case n.Q:if(I){if(v.containStroke(F,z,m[K++],m[K++],m[K],m[K+1],N,b,p))return!0}else C+=A(F,z,m[K++],m[K++],m[K],m[K+1],b,p)||0;F=m[K++],z=m[K++];break;case n.A:var M=m[K++],j=m[K++],W=m[K++],X=m[K++],P=m[K++],k=m[K++];K+=1;var Y=1-m[K++],J=Math.cos(P)*W+M,te=Math.sin(P)*X+j;K>1?C+=a(F,z,J,te,b,p):(H=J,D=te);var ne=(b-M)*X/W+M;if(I){if(h.containStroke(M,j,X,P,P+k,Y,N,ne,p))return!0}else C+=w(M,j,X,P,P+k,Y,ne,p);F=Math.cos(P+k)*W+M,z=Math.sin(P+k)*X+j;break;case n.R:H=F=m[K++],D=z=m[K++];var q=m[K++],ue=m[K++],J=H+q,te=D+ue;if(I){if(r.containStroke(H,D,J,D,N,b,p)||r.containStroke(J,D,J,te,N,b,p)||r.containStroke(J,te,H,te,N,b,p)||r.containStroke(H,te,H,D,N,b,p))return!0}else C+=a(J,D,J,te,b,p),C+=a(H,te,H,D,b,p);break;case n.Z:if(I){if(r.containStroke(F,z,H,D,N,b,p))return!0}else C+=a(F,z,H,D,b,p);F=H,z=D;break}}return!I&&!l(z,D)&&(C+=a(F,z,H,D,b,p)||0),C!==0}function g(m,N,I){return O(m,0,!1,N,I)}function S(m,N,I,b){return O(m,N,!0,I,b)}_.contain=g,_.containStroke=S},"2fw6":function(c,_,s){var d=s("y+Vt"),r=d.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(x,v,h){h&&x.moveTo(v.cx+v.r,v.cy),x.arc(v.cx,v.cy,v.r,0,Math.PI*2,!0)}});c.exports=r},"3C/r":function(c,_){var s=function(r,x){this.image=r,this.repeat=x,this.type="pattern"};s.prototype.getCanvasPattern=function(r){return r.createPattern(this.image,this.repeat||"repeat")};var d=s;c.exports=d},"3CBa":function(c,_,s){var d=s("hydK"),r=d.createElement,x=s("bYtY"),v=s("SUKs"),h=s("y+Vt"),i=s("Dagg"),o=s("dqUG"),e=s("DBLp"),a=s("sW+o"),n=s("n6Mw"),t=s("vKoX"),u=s("P47w"),l=u.path,f=u.image,y=u.text;function E(p){return parseInt(p,10)}function T(p){return p instanceof h?l:p instanceof i?f:p instanceof o?y:l}function A(p,C){return C&&p&&C.parentNode!==p}function w(p,C,F){if(A(p,C)&&F){var z=F.nextSibling;z?p.insertBefore(C,z):p.appendChild(C)}}function O(p,C){if(A(p,C)){var F=p.firstChild;F?p.insertBefore(C,F):p.appendChild(C)}}function g(p,C){C&&p&&C.parentNode===p&&p.removeChild(C)}function S(p){return p.__textSvgEl}function m(p){return p.__svgEl}var N=function(p,C,F,z){this.root=p,this.storage=C,this._opts=F=x.extend({},F||{});var H=r("svg");H.setAttribute("xmlns","http://www.w3.org/2000/svg"),H.setAttribute("version","1.1"),H.setAttribute("baseProfile","full"),H.style.cssText="user-select:none;position:absolute;left:0;top:0;";var D=r("g");H.appendChild(D);var K=r("g");H.appendChild(K),this.gradientManager=new a(z,K),this.clipPathManager=new n(z,K),this.shadowManager=new t(z,K);var B=document.createElement("div");B.style.cssText="overflow:hidden;position:relative",this._svgDom=H,this._svgRoot=K,this._backgroundRoot=D,this._viewport=B,p.appendChild(B),B.appendChild(H),this.resize(F.width,F.height),this._visibleList=[]};N.prototype={constructor:N,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var p=this.getViewportRoot();if(p)return{offsetLeft:p.offsetLeft||0,offsetTop:p.offsetTop||0}},refresh:function(){var p=this.storage.getDisplayList(!0);this._paintList(p)},setBackgroundColor:function(p){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var C=r("rect");C.setAttribute("width",this.getWidth()),C.setAttribute("height",this.getHeight()),C.setAttribute("x",0),C.setAttribute("y",0),C.setAttribute("id",0),C.style.fill=p,this._backgroundRoot.appendChild(C),this._backgroundNode=C},_paintList:function(p){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var C=this._svgRoot,F=this._visibleList,z=p.length,H=[],D;for(D=0;D=0;--K)if(D[K]===H)return!0;return!1}),F}else return null;else return F[0]},resize:function(p,C){var F=this._viewport;F.style.display="none";var z=this._opts;if(p!=null&&(z.width=p),C!=null&&(z.height=C),p=this._getSize(0),C=this._getSize(1),F.style.display="",this._width!==p||this._height!==C){this._width=p,this._height=C;var H=F.style;H.width=p+"px",H.height=C+"px";var D=this._svgDom;D.setAttribute("width",p),D.setAttribute("height",C)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",p),this._backgroundNode.setAttribute("height",C))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(p){var C=this._opts,F=["width","height"][p],z=["clientWidth","clientHeight"][p],H=["paddingLeft","paddingTop"][p],D=["paddingRight","paddingBottom"][p];if(C[F]!=null&&C[F]!=="auto")return parseFloat(C[F]);var K=this.root,B=document.defaultView.getComputedStyle(K);return(K[z]||E(B[F])||E(K.style[F]))-(E(B[H])||0)-(E(B[D])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var p=encodeURIComponent(this._svgDom.outerHTML.replace(/> +(window.webpackJsonp=window.webpackJsonp||[]).push([[229,3,6,8,9],{"+QRC":function(c,_,s){"use strict";var d=s("E9nw"),r={"text/plain":"Text","text/html":"Url",default:"Text"},x="Copy to clipboard: #{key}, Enter";function v(i){var o=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,o)}function h(i,o){var e,a,n,t,u,l,f=!1;o||(o={}),e=o.debug||!1;try{n=d(),t=document.createRange(),u=document.getSelection(),l=document.createElement("span"),l.textContent=i,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(E){if(E.stopPropagation(),o.format)if(E.preventDefault(),typeof E.clipboardData=="undefined"){e&&console.warn("unable to use e.clipboardData"),e&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=r[o.format]||r.default;window.clipboardData.setData(T,i)}else E.clipboardData.clearData(),E.clipboardData.setData(o.format,i);o.onCopy&&(E.preventDefault(),o.onCopy(E.clipboardData))}),document.body.appendChild(l),t.selectNodeContents(l),u.addRange(t);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");f=!0}catch(E){e&&console.error("unable to copy using execCommand: ",E),e&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",i),o.onCopy&&o.onCopy(window.clipboardData),f=!0}catch(T){e&&console.error("unable to copy using clipboardData: ",T),e&&console.error("falling back to prompt"),a=v("message"in o?o.message:x),window.prompt(a,i)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(t):u.removeAllRanges()),l&&document.body.removeChild(l),n()}return f}c.exports=h},"/GNS":function(c,_,s){c.exports=s.p+"static/search1.c4136dd4.png"},"06Qe":function(c,_,s){var d=s("ItGF"),r="urn:schemas-microsoft-com:vml",x=typeof window=="undefined"?null:window,v=!1,h=x&&x.document;function i(a){return o(a)}var o;if(h&&!d.canvasSupported)try{!h.namespaces.zrvml&&h.namespaces.add("zrvml",r),o=function(a){return h.createElement("')}}catch(a){o=function(n){return h.createElement("<"+n+' xmlns="'+r+'" class="zrvml">')}}function e(){if(v||!h)return;v=!0;var a=h.styleSheets;a.length<31?h.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}_.doc=h,_.createNode=i,_.initVML=e},"0s+r":function(c,_,s){var d=s("bYtY"),r=s("QBsz"),x=s("y23F"),v=s("H6uX"),h=s("YH21"),i=s("C0SR"),o="silent";function e(E,T,A){return{type:E,event:A,target:T.target,topTarget:T.topTarget,cancelBubble:!1,offsetX:A.zrX,offsetY:A.zrY,gestureEvent:A.gestureEvent,pinchX:A.pinchX,pinchY:A.pinchY,pinchScale:A.pinchScale,wheelDelta:A.zrDelta,zrByTouch:A.zrByTouch,which:A.which,stop:a}}function a(){h.stop(this.event)}function n(){}n.prototype.dispose=function(){};var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],u=function(E,T,A,w){v.call(this),this.storage=E,this.painter=T,this.painterRoot=w,A=A||new n,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,x.call(this),this.setHandlerProxy(A)};u.prototype={constructor:u,setHandlerProxy:function(E){this.proxy&&this.proxy.dispose(),E&&(d.each(t,function(T){E.on&&E.on(T,this[T],this)},this),E.handler=this),this.proxy=E},mousemove:function(E){var T=E.zrX,A=E.zrY,w=f(this,T,A),O=this._hovered,g=O.target;g&&!g.__zr&&(O=this.findHover(O.x,O.y),g=O.target);var S=this._hovered=w?{x:T,y:A}:this.findHover(T,A),m=S.target,N=this.proxy;N.setCursor&&N.setCursor(m?m.cursor:"default"),g&&m!==g&&this.dispatchToElement(O,"mouseout",E),this.dispatchToElement(S,"mousemove",E),m&&m!==g&&this.dispatchToElement(S,"mouseover",E)},mouseout:function(E){var T=E.zrEventControl,A=E.zrIsToLocalDOM;T!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",E),T!=="no_globalout"&&(!A&&this.trigger("globalout",{type:"globalout",event:E}))},resize:function(E){this._hovered={}},dispatch:function(E,T){var A=this[E];A&&A.call(this,T)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(E){var T=this.proxy;T.setCursor&&T.setCursor(E)},dispatchToElement:function(E,T,A){E=E||{};var w=E.target;if(w&&w.silent)return;for(var O="on"+T,g=e(T,E,A);w&&!(w[O]&&(g.cancelBubble=w[O].call(w,g)),w.trigger(T,g),w=w.parent,g.cancelBubble););g.cancelBubble||(this.trigger(T,g),this.painter&&this.painter.eachOtherLayer(function(S){typeof S[O]=="function"&&S[O].call(S,g),S.trigger&&S.trigger(T,g)}))},findHover:function(E,T,A){for(var w=this.storage.getDisplayList(),O={x:E,y:T},g=w.length-1;g>=0;g--){var S;if(w[g]!==A&&!w[g].ignore&&(S=l(w[g],E,T))&&(!O.topTarget&&(O.topTarget=w[g]),S!==o)){O.target=w[g];break}}return O},processGesture:function(E,T){this._gestureMgr||(this._gestureMgr=new i);var A=this._gestureMgr;T==="start"&&A.clear();var w=A.recognize(E,this.findHover(E.zrX,E.zrY,null).target,this.proxy.dom);if(T==="end"&&A.clear(),w){var O=w.type;E.gestureEvent=O,this.dispatchToElement({target:w.target},O,w.event)}}},d.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(E){u.prototype[E]=function(T){var A=T.zrX,w=T.zrY,O=f(this,A,w),g,S;if((E!=="mouseup"||!O)&&(g=this.findHover(A,w),S=g.target),E==="mousedown")this._downEl=S,this._downPoint=[T.zrX,T.zrY],this._upEl=S;else if(E==="mouseup")this._upEl=S;else if(E==="click"){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[T.zrX,T.zrY])>4)return;this._downPoint=null}this.dispatchToElement(g,E,T)}});function l(E,T,A){if(E[E.rectHover?"rectContain":"contain"](T,A)){for(var w=E,O;w;){if(w.clipPath&&!w.clipPath.contain(T,A))return!1;w.silent&&(O=!0),w=w.parent}return O?o:!0}return!1}function f(E,T,A){var w=E.painter;return T<0||T>w.getWidth()||A<0||A>w.getHeight()}d.mixin(u,v),d.mixin(u,x);var y=u;c.exports=y},"1Jh7":function(c,_,s){var d=s("y+Vt"),r=s("T6xi"),x=d.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(v,h){r.buildPath(v,h,!1)}});c.exports=x},"1MYJ":function(c,_,s){var d=s("y+Vt"),r=d.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var x=this.__dirtyPath,v=this.shape.paths,h=0;h=this._maxSize&&t>0){var l=e.head;e.remove(l),delete a[l.key],n=l.value,this._lastRemovedEntry=l}u?u.value=o:u=new r(o),u.key=i,e.insertEntry(u),a[i]=u}return n},v.get=function(i){var o=this._map[i],e=this._list;if(o!=null)return o!==e.tail&&(e.remove(o),e.insertEntry(o)),o.value},v.clear=function(){this._list.clear(),this._map={}};var h=x;c.exports=h},"1bdT":function(c,_,s){var d=s("3gBT"),r=s("H6uX"),x=s("DN4a"),v=s("vWvF"),h=s("bYtY"),i=function(e){x.call(this,e),r.call(this,e),v.call(this,e),this.id=e.id||d()};i.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,a){switch(this.draggable){case"horizontal":a=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=a,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,a){},attrKV:function(e,a){if(e==="position"||e==="scale"||e==="origin"){if(a){var n=this[e];n||(n=this[e]=[]),n[0]=a[0],n[1]=a[1]}}else this[e]=a},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,a){if(typeof e=="string")this.attrKV(e,a);else if(h.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var a=this.__zr;a&&e.addSelfToZr(a),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=a,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var a=this.animators;if(a)for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,me=ve&&typeof ve.getBoundingClientRect=="function"&&ve.getBoundingClientRect().width;if(me){if(Ee){var ie=getComputedStyle(ve),de=ie.marginLeft,we=ie.marginRight;me+=+de.replace("px","")+ +we.replace("px","")}me=+me.toFixed(6)}return me||0},q=function(ve,Ee,me){ve&&Object(A.a)(ve.style)==="object"&&(ve.style[Ee]=me)},ue=function(){return W.any},le=s("KQm4"),ee=s("Ff2n"),se=s("i8i4"),Z=s("bdgK"),oe=s("uciX"),L=s("8XRh"),V={adjustX:1,adjustY:1},ae={topLeft:{points:["bl","tl"],overflow:V,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:V,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:V,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:V,offset:[4,0]}},Q={topLeft:{points:["bl","tl"],overflow:V,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:V,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:V,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:V,offset:[4,0]}},G=ae,R=0,U={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},re=function(ve,Ee,me){var ie=k(Ee),de=ve.getState();ve.setState({defaultActiveFirst:Object(d.a)(Object(d.a)({},de.defaultActiveFirst),{},Object(t.a)({},ie,me))})},$=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(me){var ie;Object(r.a)(this,Ee),ie=ve.call(this,me),ie.onDestroy=function(ye){ie.props.onDestroy(ye)},ie.onKeyDown=function(ye){var De=ye.keyCode,Fe=ie.menuInstance,Je=ie.props,Ye=Je.isOpen,Qe=Je.store;if(De===u.a.ENTER)return ie.onTitleClick(ye),re(Qe,ie.props.eventKey,!0),!0;if(De===u.a.RIGHT)return Ye?Fe.onKeyDown(ye):(ie.triggerOpenChange(!0),re(Qe,ie.props.eventKey,!0)),!0;if(De===u.a.LEFT){var $e;if(Ye)$e=Fe.onKeyDown(ye);else return;return $e||(ie.triggerOpenChange(!1),$e=!0),$e}return Ye&&(De===u.a.UP||De===u.a.DOWN)?Fe.onKeyDown(ye):void 0},ie.onOpenChange=function(ye){ie.props.onOpenChange(ye)},ie.onPopupVisibleChange=function(ye){ie.triggerOpenChange(ye,ye?"mouseenter":"mouseleave")},ie.onMouseEnter=function(ye){var De=ie.props,Fe=De.eventKey,Je=De.onMouseEnter,Ye=De.store;re(Ye,ie.props.eventKey,!1),Je({key:Fe,domEvent:ye})},ie.onMouseLeave=function(ye){var De=ie.props,Fe=De.parentMenu,Je=De.eventKey,Ye=De.onMouseLeave;Fe.subMenuInstance=Object(v.a)(ie),Ye({key:Je,domEvent:ye})},ie.onTitleMouseEnter=function(ye){var De=ie.props,Fe=De.eventKey,Je=De.onItemHover,Ye=De.onTitleMouseEnter;Je({key:Fe,hover:!0}),Ye({key:Fe,domEvent:ye})},ie.onTitleMouseLeave=function(ye){var De=ie.props,Fe=De.parentMenu,Je=De.eventKey,Ye=De.onItemHover,Qe=De.onTitleMouseLeave;Fe.subMenuInstance=Object(v.a)(ie),Ye({key:Je,hover:!1}),Qe({key:Je,domEvent:ye})},ie.onTitleClick=function(ye){var De=Object(v.a)(ie),Fe=De.props;if(Fe.onTitleClick({key:Fe.eventKey,domEvent:ye}),Fe.triggerSubMenuAction==="hover")return;ie.triggerOpenChange(!Fe.isOpen,"click"),re(Fe.store,ie.props.eventKey,!1)},ie.onSubMenuClick=function(ye){typeof ie.props.onClick=="function"&&ie.props.onClick(ie.addKeyPath(ye))},ie.onSelect=function(ye){ie.props.onSelect(ye)},ie.onDeselect=function(ye){ie.props.onDeselect(ye)},ie.getPrefixCls=function(){return"".concat(ie.props.rootPrefixCls,"-submenu")},ie.getActiveClassName=function(){return"".concat(ie.getPrefixCls(),"-active")},ie.getDisabledClassName=function(){return"".concat(ie.getPrefixCls(),"-disabled")},ie.getSelectedClassName=function(){return"".concat(ie.getPrefixCls(),"-selected")},ie.getOpenClassName=function(){return"".concat(ie.props.rootPrefixCls,"-submenu-open")},ie.saveMenuInstance=function(ye){ie.menuInstance=ye},ie.addKeyPath=function(ye){return Object(d.a)(Object(d.a)({},ye),{},{keyPath:(ye.keyPath||[]).concat(ie.props.eventKey)})},ie.triggerOpenChange=function(ye,De){var Fe=ie.props.eventKey,Je=function(){ie.onOpenChange({key:Fe,item:Object(v.a)(ie),trigger:De,open:ye})};De==="mouseenter"?ie.mouseenterTimeout=setTimeout(function(){Je()},0):Je()},ie.isChildrenSelected=function(){var ye={find:!1};return J(ie.props.children,ie.props.selectedKeys,ye),ye.find},ie.isOpen=function(){return ie.props.openKeys.indexOf(ie.props.eventKey)!==-1},ie.adjustWidth=function(){if(!ie.subMenuTitle||!ie.menuInstance)return;var ye=se.findDOMNode(ie.menuInstance);if(ye.offsetWidth>=ie.subMenuTitle.offsetWidth)return;ye.style.minWidth="".concat(ie.subMenuTitle.offsetWidth,"px")},ie.saveSubMenuTitle=function(ye){ie.subMenuTitle=ye},ie.getBaseProps=function(){var ye=Object(v.a)(ie),De=ye.props;return{mode:De.mode==="horizontal"?"vertical":De.mode,visible:ie.props.isOpen,level:De.level+1,inlineIndent:De.inlineIndent,focusable:!1,onClick:ie.onSubMenuClick,onSelect:ie.onSelect,onDeselect:ie.onDeselect,onDestroy:ie.onDestroy,selectedKeys:De.selectedKeys,eventKey:"".concat(De.eventKey,"-menu-"),openKeys:De.openKeys,motion:De.motion,onOpenChange:ie.onOpenChange,subMenuOpenDelay:De.subMenuOpenDelay,parentMenu:Object(v.a)(ie),subMenuCloseDelay:De.subMenuCloseDelay,forceSubMenuRender:De.forceSubMenuRender,triggerSubMenuAction:De.triggerSubMenuAction,builtinPlacements:De.builtinPlacements,defaultActiveFirst:De.store.getState().defaultActiveFirst[k(De.eventKey)],multiple:De.multiple,prefixCls:De.rootPrefixCls,id:ie.internalMenuId,manualRef:ie.saveMenuInstance,itemIcon:De.itemIcon,expandIcon:De.expandIcon,direction:De.direction}},ie.getMotion=function(ye,De){var Fe=Object(v.a)(ie),Je=Fe.haveRendered,Ye=ie.props,Qe=Ye.motion,$e=Ye.rootPrefixCls,dt=Object(d.a)(Object(d.a)({},Qe),{},{leavedClassName:"".concat($e,"-hidden"),removeOnLeave:!1,motionAppear:Je||!De||ye!=="inline"});return dt};var de=me.store,we=me.eventKey,xe=de.getState(),Te=xe.defaultActiveFirst;ie.isRootMenu=!1;var Re=!1;return Te&&(Re=Te[we]),re(de,we,Re),ie}return Object(x.a)(Ee,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ie=this,de=this.props,we=de.mode,xe=de.parentMenu,Te=de.manualRef;if(Te&&Te(this),we!=="horizontal"||!xe.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ie.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ie=this.props,de=ie.onDestroy,we=ie.eventKey;de&&de(we),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ie){var de=this,we=this.getBaseProps(),xe=this.getMotion(we.mode,we.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||we.visible||we.forceSubMenuRender,!this.haveOpened)return o.createElement("div",null);var Te=we.direction;return o.createElement(L.default,Object.assign({visible:we.visible},xe),function(Re){var ye=Re.className,De=Re.style,Fe=T()("".concat(we.prefixCls,"-sub"),ye,Object(t.a)({},"".concat(we.prefixCls,"-rtl"),Te==="rtl"));return o.createElement(je,Object.assign({},we,{id:de.internalMenuId,className:Fe,style:De}),ie)})}},{key:"render",value:function(){var ie,de=Object(d.a)({},this.props),we=de.isOpen,xe=this.getPrefixCls(),Te=de.mode==="inline",Re=T()(xe,"".concat(xe,"-").concat(de.mode),(ie={},Object(t.a)(ie,de.className,!!de.className),Object(t.a)(ie,this.getOpenClassName(),we),Object(t.a)(ie,this.getActiveClassName(),de.active||we&&!Te),Object(t.a)(ie,this.getDisabledClassName(),de.disabled),Object(t.a)(ie,this.getSelectedClassName(),this.isChildrenSelected()),ie));this.internalMenuId||(de.eventKey?this.internalMenuId="".concat(de.eventKey,"$Menu"):(R+=1,this.internalMenuId="$__$".concat(R,"$Menu")));var ye={},De={},Fe={};de.disabled||(ye={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},De={onClick:this.onTitleClick},Fe={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Je={},Ye=de.direction;Te&&(Ye==="rtl"?Je.paddingRight=de.inlineIndent*de.level:Je.paddingLeft=de.inlineIndent*de.level);var Qe={};this.props.isOpen&&(Qe={"aria-owns":this.internalMenuId});var $e=null;de.mode!=="horizontal"&&($e=this.props.expandIcon,typeof this.props.expandIcon=="function"&&($e=o.createElement(this.props.expandIcon,Object(d.a)({},this.props))));var dt=o.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Je,className:"".concat(xe,"-title"),role:"button"},Fe,De,{"aria-expanded":we},Qe,{"aria-haspopup":"true",title:typeof de.title=="string"?de.title:void 0}),de.title,$e||o.createElement("i",{className:"".concat(xe,"-arrow")})),at=this.renderChildren(de.children),rt=de.parentMenu.isRootMenu?de.parentMenu.props.getPopupContainer:function(yt){return yt.parentNode},st=U[de.mode],lt=de.popupOffset?{offset:de.popupOffset}:{},mt=de.mode==="inline"?"":de.popupClassName;mt+=Ye==="rtl"?" ".concat(xe,"-rtl"):"";var nt=de.disabled,ft=de.triggerSubMenuAction,bt=de.subMenuOpenDelay,Ot=de.forceSubMenuRender,At=de.subMenuCloseDelay,vt=de.builtinPlacements;te.forEach(function(yt){return delete de[yt]}),delete de.onClick;var Ct=Ye==="rtl"?Object.assign({},Q,vt):Object.assign({},ae,vt);return delete de.direction,o.createElement("li",Object.assign({},de,ye,{className:Re,role:"menuitem"}),Te&&dt,Te&&at,!Te&&o.createElement(oe.a,{prefixCls:xe,popupClassName:T()("".concat(xe,"-popup"),mt),getPopupContainer:rt,builtinPlacements:Ct,popupPlacement:st,popupVisible:we,popupAlign:lt,popup:at,action:nt?[]:[ft],mouseEnterDelay:bt,mouseLeaveDelay:At,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ot},dt))}}]),Ee}(o.Component);$.defaultProps={onMouseEnter:X,onMouseLeave:X,onTitleMouseEnter:X,onTitleMouseLeave:X,onTitleClick:X,manualRef:X,mode:"vertical",title:""};var ce=Object(e.b)(function(Ne,ve){var Ee=Ne.openKeys,me=Ne.activeKey,ie=Ne.selectedKeys,de=ve.eventKey,we=ve.subMenuKey;return{isOpen:Ee.indexOf(de)>-1,active:me[we]===de,selectedKeys:ie}})($);ce.isSubMenu=!0;var pe=ce,ge="menuitem-overflowed",Ce=.5,Ae=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(){var me;return Object(r.a)(this,Ee),me=ve.apply(this,arguments),me.resizeObserver=null,me.mutationObserver=null,me.originalTotalWidth=0,me.overflowedItems=[],me.menuItemSizes=[],me.cancelFrameId=null,me.state={lastVisibleIndex:void 0},me.getMenuItemNodes=function(){var ie=me.props.prefixCls,de=se.findDOMNode(Object(v.a)(me));return de?[].slice.call(de.children).filter(function(we){return we.className.split(" ").indexOf("".concat(ie,"-overflowed-submenu"))<0}):[]},me.getOverflowedSubMenuItem=function(ie,de,we){var xe=me.props,Te=xe.overflowedIndicator,Re=xe.level,ye=xe.mode,De=xe.prefixCls,Fe=xe.theme;if(Re!==1||ye!=="horizontal")return null;var Je=me.props.children[0],Ye=Je.props,Qe=Ye.children,$e=Ye.title,dt=Ye.style,at=Object(ee.a)(Ye,["children","title","style"]),rt=Object(d.a)({},dt),st="".concat(ie,"-overflowed-indicator"),lt="".concat(ie,"-overflowed-indicator");de.length===0&&we!==!0?rt=Object(d.a)(Object(d.a)({},rt),{},{display:"none"}):we&&(rt=Object(d.a)(Object(d.a)({},rt),{},{visibility:"hidden",position:"absolute"}),st="".concat(st,"-placeholder"),lt="".concat(lt,"-placeholder"));var mt=Fe?"".concat(De,"-").concat(Fe):"",nt={};return te.forEach(function(ft){at[ft]!==void 0&&(nt[ft]=at[ft])}),o.createElement(pe,Object.assign({title:Te,className:"".concat(De,"-overflowed-submenu"),popupClassName:mt},nt,{key:st,eventKey:lt,disabled:!1,style:rt}),de)},me.setChildrenWidthAndResize=function(){if(me.props.mode!=="horizontal")return;var ie=se.findDOMNode(Object(v.a)(me));if(!ie)return;var de=ie.children;if(!de||de.length===0)return;var we=ie.children[de.length-1];q(we,"display","inline-block");var xe=me.getMenuItemNodes(),Te=xe.filter(function(Re){return Re.className.split(" ").indexOf(ge)>=0});Te.forEach(function(Re){q(Re,"display","inline-block")}),me.menuItemSizes=xe.map(function(Re){return ne(Re,!0)}),Te.forEach(function(Re){q(Re,"display","none")}),me.overflowedIndicatorWidth=ne(ie.children[ie.children.length-1],!0),me.originalTotalWidth=me.menuItemSizes.reduce(function(Re,ye){return Re+ye},0),me.handleResize(),q(we,"display","none")},me.handleResize=function(){if(me.props.mode!=="horizontal")return;var ie=se.findDOMNode(Object(v.a)(me));if(!ie)return;var de=ne(ie);me.overflowedItems=[];var we=0,xe;me.originalTotalWidth>de+Ce&&(xe=-1,me.menuItemSizes.forEach(function(Te){we+=Te,we+me.overflowedIndicatorWidth<=de&&(xe+=1)})),me.setState({lastVisibleIndex:xe})},me}return Object(x.a)(Ee,[{key:"componentDidMount",value:function(){var ie=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var de=se.findDOMNode(this);if(!de)return;this.resizeObserver=new Z.default(function(we){we.forEach(function(){var xe=ie.cancelFrameId;cancelAnimationFrame(xe),ie.cancelFrameId=requestAnimationFrame(ie.setChildrenWidthAndResize)})}),[].slice.call(de.children).concat(de).forEach(function(we){ie.resizeObserver.observe(we)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ie.resizeObserver.disconnect(),[].slice.call(de.children).concat(de).forEach(function(we){ie.resizeObserver.observe(we)}),ie.setChildrenWidthAndResize()}),this.mutationObserver.observe(de,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(ie){var de=this,we=this.state.lastVisibleIndex;return(ie||[]).reduce(function(xe,Te,Re){var ye=Te;if(de.props.mode==="horizontal"){var De=de.getOverflowedSubMenuItem(Te.props.eventKey,[]);we!==void 0&&de.props.className.indexOf("".concat(de.props.prefixCls,"-root"))!==-1&&(Re>we&&(ye=o.cloneElement(Te,{style:{display:"none"},eventKey:"".concat(Te.props.eventKey,"-hidden"),className:"".concat(ge)})),Re===we+1&&(de.overflowedItems=ie.slice(we+1).map(function(Je){return o.cloneElement(Je,{key:Je.props.eventKey,mode:"vertical-left"})}),De=de.getOverflowedSubMenuItem(Te.props.eventKey,de.overflowedItems)));var Fe=[].concat(Object(le.a)(xe),[De,ye]);return Re===ie.length-1&&Fe.push(de.getOverflowedSubMenuItem(Te.props.eventKey,[],!0)),Fe}return[].concat(Object(le.a)(xe),[ye])},[])}},{key:"render",value:function(){var ie=this.props,de=ie.visible,we=ie.prefixCls,xe=ie.overflowedIndicator,Te=ie.mode,Re=ie.level,ye=ie.tag,De=ie.children,Fe=ie.theme,Je=Object(ee.a)(ie,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Ye=ye;return o.createElement(Ye,Object.assign({},Je),this.renderChildren(De))}}]),Ee}(o.Component);Ae.defaultProps={tag:"div",className:""};var Se=Ae;function Me(Ne){return Ne.length?Ne.every(function(ve){return!!ve.props.disabled}):!0}function fe(Ne,ve,Ee){var me=Ne.getState();Ne.setState({activeKey:Object(d.a)(Object(d.a)({},me.activeKey),{},Object(t.a)({},ve,Ee))})}function he(Ne){return Ne.eventKey||"0-menu-"}function be(Ne,ve){var Ee=ve,me=Ne.children,ie=Ne.eventKey;if(Ee){var de;if(Y(me,function(we,xe){we&&we.props&&!we.props.disabled&&Ee===P(we,ie,xe)&&(de=!0)}),de)return Ee}return Ee=null,Ne.defaultActiveFirst&&Y(me,function(we,xe){!Ee&&we&&!we.props.disabled&&(Ee=P(we,ie,xe))}),Ee}function Ie(Ne){if(Ne){var ve=this.instanceArray.indexOf(Ne);ve!==-1?this.instanceArray[ve]=Ne:this.instanceArray.push(Ne)}}var _e=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(me){var ie;return Object(r.a)(this,Ee),ie=ve.call(this,me),ie.onKeyDown=function(de,we){var xe=de.keyCode,Te;if(ie.getFlatInstanceArray().forEach(function(ye){ye&&ye.props.active&&ye.onKeyDown&&(Te=ye.onKeyDown(de))}),Te)return 1;var Re=null;return(xe===u.a.UP||xe===u.a.DOWN)&&(Re=ie.step(xe===u.a.UP?-1:1)),Re?(de.preventDefault(),fe(ie.props.store,he(ie.props),Re.props.eventKey),typeof we=="function"&&we(Re),1):void 0},ie.onItemHover=function(de){var we=de.key,xe=de.hover;fe(ie.props.store,he(ie.props),xe?we:null)},ie.onDeselect=function(de){ie.props.onDeselect(de)},ie.onSelect=function(de){ie.props.onSelect(de)},ie.onClick=function(de){ie.props.onClick(de)},ie.onOpenChange=function(de){ie.props.onOpenChange(de)},ie.onDestroy=function(de){ie.props.onDestroy(de)},ie.getFlatInstanceArray=function(){return ie.instanceArray},ie.step=function(de){var we=ie.getFlatInstanceArray(),xe=ie.props.store.getState().activeKey[he(ie.props)],Te=we.length;if(!Te)return null;de<0&&(we=we.concat().reverse());var Re=-1;if(we.every(function(Je,Ye){return Je&&Je.props.eventKey===xe?(Re=Ye,!1):!0}),!ie.props.defaultActiveFirst&&Re!==-1&&Me(we.slice(Re,Te-1)))return;var ye=(Re+1)%Te,De=ye;do{var Fe=we[De];if(!Fe||Fe.props.disabled)De=(De+1)%Te;else return Fe}while(De!==ye);return null},ie.renderCommonMenuItem=function(de,we,xe){var Te=ie.props.store.getState(),Re=Object(v.a)(ie),ye=Re.props,De=P(de,ye.eventKey,we),Fe=de.props;if(!Fe||typeof de.type=="string")return de;var Je=De===Te.activeKey,Ye=Object(d.a)(Object(d.a)({mode:Fe.mode||ye.mode,level:ye.level,inlineIndent:ye.inlineIndent,renderMenuItem:ie.renderMenuItem,rootPrefixCls:ye.prefixCls,index:we,parentMenu:ye.parentMenu,manualRef:Fe.disabled?void 0:Object(l.a)(de.ref,Ie.bind(Object(v.a)(ie))),eventKey:De,active:!Fe.disabled&&Je,multiple:ye.multiple,onClick:function($e){(Fe.onClick||X)($e),ie.onClick($e)},onItemHover:ie.onItemHover,motion:ye.motion,subMenuOpenDelay:ye.subMenuOpenDelay,subMenuCloseDelay:ye.subMenuCloseDelay,forceSubMenuRender:ye.forceSubMenuRender,onOpenChange:ie.onOpenChange,onDeselect:ie.onDeselect,onSelect:ie.onSelect,builtinPlacements:ye.builtinPlacements,itemIcon:Fe.itemIcon||ie.props.itemIcon,expandIcon:Fe.expandIcon||ie.props.expandIcon},xe),{},{direction:ye.direction});return(ye.mode==="inline"||ue())&&(Ye.triggerSubMenuAction="click"),o.cloneElement(de,Ye)},ie.renderMenuItem=function(de,we,xe){if(!de)return null;var Te=ie.props.store.getState(),Re={openKeys:Te.openKeys,selectedKeys:Te.selectedKeys,triggerSubMenuAction:ie.props.triggerSubMenuAction,subMenuKey:xe};return ie.renderCommonMenuItem(de,we,Re)},me.store.setState({activeKey:Object(d.a)(Object(d.a)({},me.store.getState().activeKey),{},Object(t.a)({},me.eventKey,be(me,me.activeKey)))}),ie.instanceArray=[],ie}return Object(x.a)(Ee,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ie){return this.props.visible||ie.visible||this.props.className!==ie.className||!y()(this.props.style,ie.style)}},{key:"componentDidUpdate",value:function(ie){var de=this.props,we="activeKey"in de?de.activeKey:de.store.getState().activeKey[he(de)],xe=be(de,we);if(xe!==we)fe(de.store,he(de),xe);else if("activeKey"in ie){var Te=be(ie,ie.activeKey);xe!==Te&&fe(de.store,he(de),xe)}}},{key:"render",value:function(){var ie=this,de=Object(n.a)({},this.props);this.instanceArray=[];var we=T()(de.prefixCls,de.className,"".concat(de.prefixCls,"-").concat(de.mode)),xe={className:we,role:de.role||"menu"};de.id&&(xe.id=de.id),de.focusable&&(xe.tabIndex=0,xe.onKeyDown=this.onKeyDown);var Te=de.prefixCls,Re=de.eventKey,ye=de.visible,De=de.level,Fe=de.mode,Je=de.overflowedIndicator,Ye=de.theme;return te.forEach(function(Qe){return delete de[Qe]}),delete de.onClick,o.createElement(Se,Object.assign({},de,{prefixCls:Te,mode:Fe,tag:"ul",level:De,theme:Ye,visible:ye,overflowedIndicator:Je},xe),o.Children.map(de.children,function(Qe,$e){return ie.renderMenuItem(Qe,$e,Re||"0-menu-")}))}}]),Ee}(o.Component);_e.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:X};var Le=Object(e.b)()(_e),je=Le,Oe=s("Kwbf");function Pe(Ne,ve,Ee){var me=Ne.prefixCls,ie=Ne.motion,de=Ne.defaultMotions,we=de===void 0?{}:de,xe=Ne.openAnimation,Te=Ne.openTransitionName,Re=ve.switchingModeFromInline;if(ie)return ie;if(Object(A.a)(xe)==="object"&&xe)Object(Oe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof xe=="string")return{motionName:"".concat(me,"-open-").concat(xe)};if(Te)return{motionName:Te};var ye=we[Ee];return ye||(Re?null:we.other)}var Ue=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(me){var ie;Object(r.a)(this,Ee),ie=ve.call(this,me),ie.inlineOpenKeys=[],ie.onSelect=function(xe){var Te=Object(v.a)(ie),Re=Te.props;if(Re.selectable){var ye=ie.store.getState(),De=ye.selectedKeys,Fe=xe.key;Re.multiple?De=De.concat([Fe]):De=[Fe],"selectedKeys"in Re||ie.store.setState({selectedKeys:De}),Re.onSelect(Object(d.a)(Object(d.a)({},xe),{},{selectedKeys:De}))}},ie.onClick=function(xe){var Te=ie.getRealMenuMode(),Re=Object(v.a)(ie),ye=Re.store,De=Re.props.onOpenChange;Te!=="inline"&&!("openKeys"in ie.props)&&(ye.setState({openKeys:[]}),De([])),ie.props.onClick(xe)},ie.onKeyDown=function(xe,Te){ie.innerMenu.getWrappedInstance().onKeyDown(xe,Te)},ie.onOpenChange=function(xe){var Te=Object(v.a)(ie),Re=Te.props,ye=ie.store.getState().openKeys.concat(),De=!1,Fe=function(Ye){var Qe=!1;if(Ye.open)Qe=ye.indexOf(Ye.key)===-1,Qe&&ye.push(Ye.key);else{var $e=ye.indexOf(Ye.key);Qe=$e!==-1,Qe&&ye.splice($e,1)}De=De||Qe};Array.isArray(xe)?xe.forEach(Fe):Fe(xe),De&&("openKeys"in ie.props||ie.store.setState({openKeys:ye}),Re.onOpenChange(ye))},ie.onDeselect=function(xe){var Te=Object(v.a)(ie),Re=Te.props;if(Re.selectable){var ye=ie.store.getState().selectedKeys.concat(),De=xe.key,Fe=ye.indexOf(De);Fe!==-1&&ye.splice(Fe,1),"selectedKeys"in Re||ie.store.setState({selectedKeys:ye}),Re.onDeselect(Object(d.a)(Object(d.a)({},xe),{},{selectedKeys:ye}))}},ie.onMouseEnter=function(xe){ie.restoreModeVerticalFromInline();var Te=ie.props.onMouseEnter;Te&&Te(xe)},ie.onTransitionEnd=function(xe){var Te=xe.propertyName==="width"&&xe.target===xe.currentTarget,Re=xe.target.className,ye=Object.prototype.toString.call(Re)==="[object SVGAnimatedString]"?Re.animVal:Re,De=xe.propertyName==="font-size"&&ye.indexOf("anticon")>=0;(Te||De)&&ie.restoreModeVerticalFromInline()},ie.setInnerMenu=function(xe){ie.innerMenu=xe},ie.isRootMenu=!0;var de=me.defaultSelectedKeys,we=me.defaultOpenKeys;return"selectedKeys"in me&&(de=me.selectedKeys||[]),"openKeys"in me&&(we=me.openKeys||[]),ie.store=Object(e.c)({selectedKeys:de,openKeys:we,activeKey:{"0-menu-":be(me,me.activeKey)}}),ie.state={switchingModeFromInline:!1},ie}return Object(x.a)(Ee,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ie){this.updateOpentKeysWhenSwitchMode(ie),this.updateMiniStore();var de=this.props,we=de.siderCollapsed,xe=de.inlineCollapsed,Te=de.onOpenChange;(!ie.inlineCollapsed&&xe||!ie.siderCollapsed&&we)&&Te([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ie){var de=this.props,we=this.store,xe=this.inlineOpenKeys,Te=we.getState(),Re={};ie.mode==="inline"&&de.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in de||((de.inlineCollapsed&&!ie.inlineCollapsed||de.siderCollapsed&&!ie.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Te.openKeys.concat(),Re.openKeys=[]),(!de.inlineCollapsed&&ie.inlineCollapsed||!de.siderCollapsed&&ie.siderCollapsed)&&(Re.openKeys=xe,this.inlineOpenKeys=[])),Object.keys(Re).length&&we.setState(Re)}},{key:"updateMenuDisplay",value:function(){var ie=this.props.collapsedWidth,de=this.store,we=this.prevOpenKeys,xe=this.getInlineCollapsed()&&(ie===0||ie==="0"||ie==="0px");xe?(this.prevOpenKeys=de.getState().openKeys.concat(),this.store.setState({openKeys:[]})):we&&(this.store.setState({openKeys:we}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ie=this.props.mode,de=this.state.switchingModeFromInline,we=this.getInlineCollapsed();return de&&we?"inline":we?"vertical":ie}},{key:"getInlineCollapsed",value:function(){var ie=this.props,de=ie.inlineCollapsed,we=ie.siderCollapsed;return we!==void 0?we:de}},{key:"restoreModeVerticalFromInline",value:function(){var ie=this.state.switchingModeFromInline;ie&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var ie=Object(d.a)({},Object(a.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),de=this.getRealMenuMode();return ie.className+=" ".concat(ie.prefixCls,"-root"),ie.direction==="rtl"&&(ie.className+=" ".concat(ie.prefixCls,"-rtl")),ie=Object(d.a)(Object(d.a)({},ie),{},{mode:de,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Pe(this.props,this.state,de)}),delete ie.openAnimation,delete ie.openTransitionName,o.createElement(e.a,{store:this.store},o.createElement(je,Object.assign({},ie,{ref:this.setInnerMenu}),this.props.children))}}]),Ee}(o.Component);Ue.defaultProps={selectable:!0,onClick:X,onSelect:X,onOpenChange:X,onDeselect:X,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"\xB7\xB7\xB7")};var Be=Ue,ke=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(){var me;return Object(r.a)(this,Ee),me=ve.apply(this,arguments),me.onKeyDown=function(ie){var de=ie.keyCode;return de===u.a.ENTER?(me.onClick(ie),!0):void 0},me.onMouseLeave=function(ie){var de=me.props,we=de.eventKey,xe=de.onItemHover,Te=de.onMouseLeave;xe({key:we,hover:!1}),Te({key:we,domEvent:ie})},me.onMouseEnter=function(ie){var de=me.props,we=de.eventKey,xe=de.onItemHover,Te=de.onMouseEnter;xe({key:we,hover:!0}),Te({key:we,domEvent:ie})},me.onClick=function(ie){var de=me.props,we=de.eventKey,xe=de.multiple,Te=de.onClick,Re=de.onSelect,ye=de.onDeselect,De=de.isSelected,Fe={key:we,keyPath:[we],item:Object(v.a)(me),domEvent:ie};Te(Fe),xe?De?ye(Fe):Re(Fe):De||Re(Fe)},me.saveNode=function(ie){me.node=ie},me}return Object(x.a)(Ee,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ie=this.props;ie.onDestroy&&ie.onDestroy(ie.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var ie,de=Object(d.a)({},this.props),we=T()(this.getPrefixCls(),de.className,(ie={},Object(t.a)(ie,this.getActiveClassName(),!de.disabled&&de.active),Object(t.a)(ie,this.getSelectedClassName(),de.isSelected),Object(t.a)(ie,this.getDisabledClassName(),de.disabled),ie)),xe=Object(d.a)(Object(d.a)({},de.attribute),{},{title:typeof de.title=="string"?de.title:void 0,className:we,role:de.role||"menuitem","aria-disabled":de.disabled});de.role==="option"?xe=Object(d.a)(Object(d.a)({},xe),{},{role:"option","aria-selected":de.isSelected}):(de.role===null||de.role==="none")&&(xe.role="none");var Te={onClick:de.disabled?null:this.onClick,onMouseLeave:de.disabled?null:this.onMouseLeave,onMouseEnter:de.disabled?null:this.onMouseEnter},Re=Object(d.a)({},de.style);de.mode==="inline"&&(de.direction==="rtl"?Re.paddingRight=de.inlineIndent*de.level:Re.paddingLeft=de.inlineIndent*de.level),te.forEach(function(De){return delete de[De]}),delete de.direction;var ye=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ye=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object.assign({},Object(a.default)(de,["onClick","onMouseEnter","onMouseLeave","onSelect"]),xe,Te,{style:Re,ref:this.saveNode}),de.children,ye)}}]),Ee}(o.Component);ke.isMenuItem=!0,ke.defaultProps={onSelect:X,onMouseEnter:X,onMouseLeave:X,manualRef:X};var Ge=Object(e.b)(function(Ne,ve){var Ee=Ne.activeKey,me=Ne.selectedKeys,ie=ve.eventKey,de=ve.subMenuKey;return{active:Ee[de]===ie,isSelected:me.indexOf(ie)!==-1}})(ke),ze=Ge,Xe=function(Ne){Object(h.a)(Ee,Ne);var ve=Object(i.a)(Ee);function Ee(){var me;return Object(r.a)(this,Ee),me=ve.apply(this,arguments),me.renderInnerMenuItem=function(ie){var de=me.props,we=de.renderMenuItem,xe=de.index;return we(ie,xe,me.props.subMenuKey)},me}return Object(x.a)(Ee,[{key:"render",value:function(){var ie=Object(n.a)({},this.props),de=ie.className,we=de===void 0?"":de,xe=ie.rootPrefixCls,Te="".concat(xe,"-item-group-title"),Re="".concat(xe,"-item-group-list"),ye=ie.title,De=ie.children;return te.forEach(function(Fe){return delete ie[Fe]}),delete ie.onClick,delete ie.direction,o.createElement("li",Object.assign({},ie,{className:"".concat(we," ").concat(xe,"-item-group")}),o.createElement("div",{className:Te,title:typeof ye=="string"?ye:void 0},ye),o.createElement("ul",{className:Re},o.Children.map(De,this.renderInnerMenuItem)))}}]),Ee}(o.Component);Xe.isMenuItemGroup=!0,Xe.defaultProps={disabled:!0};var He=Xe,We=function(ve){var Ee=ve.className,me=ve.rootPrefixCls,ie=ve.style;return o.createElement("li",{className:"".concat(Ee," ").concat(me,"-item-divider"),style:ie})};We.defaultProps={disabled:!0,className:"",style:{}};var Ke=We,Ve=_.e=Be},"1uat":function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("MlIO"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.Hasher,h=r.x64,i=h.Word,o=h.WordArray,e=r.algo;function a(){return i.create.apply(i,arguments)}var n=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],t=[];(function(){for(var l=0;l<80;l++)t[l]=a()})();var u=e.SHA512=v.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(l,f){for(var y=this._hash.words,E=y[0],T=y[1],A=y[2],w=y[3],O=y[4],g=y[5],S=y[6],m=y[7],N=E.high,I=E.low,b=T.high,p=T.low,C=A.high,F=A.low,z=w.high,H=w.low,D=O.high,K=O.low,B=g.high,M=g.low,j=S.high,W=S.low,X=m.high,P=m.low,k=N,Y=I,J=b,te=p,ne=C,q=F,ue=z,le=H,ee=D,se=K,Z=B,oe=M,L=j,V=W,ae=X,Q=P,G=0;G<80;G++){var R,U,re=t[G];if(G<16)U=re.high=l[f+G*2]|0,R=re.low=l[f+G*2+1]|0;else{var $=t[G-15],ce=$.high,pe=$.low,ge=(ce>>>1|pe<<31)^(ce>>>8|pe<<24)^ce>>>7,Ce=(pe>>>1|ce<<31)^(pe>>>8|ce<<24)^(pe>>>7|ce<<25),Ae=t[G-2],Se=Ae.high,Me=Ae.low,fe=(Se>>>19|Me<<13)^(Se<<3|Me>>>29)^Se>>>6,he=(Me>>>19|Se<<13)^(Me<<3|Se>>>29)^(Me>>>6|Se<<26),be=t[G-7],Ie=be.high,_e=be.low,Le=t[G-16],je=Le.high,Oe=Le.low;R=Ce+_e,U=ge+Ie+(R>>>0>>0?1:0),R=R+he,U=U+fe+(R>>>0>>0?1:0),R=R+Oe,U=U+je+(R>>>0>>0?1:0),re.high=U,re.low=R}var Pe=ee&Z^~ee&L,Ue=se&oe^~se&V,Be=k&J^k&ne^J&ne,ke=Y&te^Y&q^te&q,Ge=(k>>>28|Y<<4)^(k<<30|Y>>>2)^(k<<25|Y>>>7),ze=(Y>>>28|k<<4)^(Y<<30|k>>>2)^(Y<<25|k>>>7),Xe=(ee>>>14|se<<18)^(ee>>>18|se<<14)^(ee<<23|se>>>9),He=(se>>>14|ee<<18)^(se>>>18|ee<<14)^(se<<23|ee>>>9),We=n[G],Ke=We.high,Ve=We.low,Ne=Q+He,ve=ae+Xe+(Ne>>>0>>0?1:0),Ne=Ne+Ue,ve=ve+Pe+(Ne>>>0>>0?1:0),Ne=Ne+Ve,ve=ve+Ke+(Ne>>>0>>0?1:0),Ne=Ne+R,ve=ve+U+(Ne>>>0>>0?1:0),Ee=ze+ke,me=Ge+Be+(Ee>>>0>>0?1:0);ae=L,Q=V,L=Z,V=oe,Z=ee,oe=se,se=le+Ne|0,ee=ue+ve+(se>>>0>>0?1:0)|0,ue=ne,le=q,ne=J,q=te,J=k,te=Y,Y=Ne+Ee|0,k=ve+me+(Y>>>0>>0?1:0)|0}I=E.low=I+Y,E.high=N+k+(I>>>0>>0?1:0),p=T.low=p+te,T.high=b+J+(p>>>0>>0?1:0),F=A.low=F+q,A.high=C+ne+(F>>>0>>0?1:0),H=w.low=H+le,w.high=z+ue+(H>>>0>>0?1:0),K=O.low=K+se,O.high=D+ee+(K>>>0>>0?1:0),M=g.low=M+oe,g.high=B+Z+(M>>>0>>0?1:0),W=S.low=W+V,S.high=j+L+(W>>>0>>0?1:0),P=m.low=P+Q,m.high=X+ae+(P>>>0>>0?1:0)},_doFinalize:function(){var l=this._data,f=l.words,y=this._nDataBytes*8,E=l.sigBytes*8;f[E>>>5]|=128<<24-E%32,f[(E+128>>>10<<5)+30]=Math.floor(y/4294967296),f[(E+128>>>10<<5)+31]=y,l.sigBytes=f.length*4,this._process();var T=this._hash.toX32();return T},clone:function(){var l=v.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});r.SHA512=v._createHelper(u),r.HmacSHA512=v._createHmacHelper(u)}(),d.SHA512})},"24YM":function(c,_,s){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SensorTabIndex=_.SensorClassName=_.SizeSensorId=void 0;var d="size-sensor-id";_.SizeSensorId=d;var r="size-sensor-object";_.SensorClassName=r;var x="-1";_.SensorTabIndex=x},"2DNl":function(c,_,s){var d=s("IMiH"),r=s("loD1"),x=s("59Ip"),v=s("aKvl"),h=s("n1HI"),i=s("hX1E"),o=i.normalizeRadian,e=s("Sj9i"),a=s("hyiK"),n=d.CMD,t=Math.PI*2,u=1e-4;function l(m,N){return Math.abs(m-N)N&&D>b&&D>C&&D>z||D1&&E(),j=e.cubicAt(N,b,C,z,y[0]),M>1&&(W=e.cubicAt(N,b,C,z,y[1]))),M===2?PN&&z>b&&z>C||z=0&&D<=1){for(var K=0,B=e.quadraticAt(N,b,C,D),M=0;MI||z<-I)return 0;var H=Math.sqrt(I*I-z*z);f[0]=-H,f[1]=H;var D=Math.abs(b-p);if(D<1e-4)return 0;if(D%t<1e-4){b=0,p=t;var K=C?1:-1;return F>=f[0]+m&&F<=f[1]+m?K:0}if(C){var H=b;b=o(p),p=o(H)}else b=o(b),p=o(p);b>p&&(p+=t);for(var B=0,M=0;M<2;M++){var j=f[M];if(j+m>F){var W=Math.atan2(z,j),K=C?1:-1;W<0&&(W=t+W),(W>=b&&W<=p||W+t>=b&&W+t<=p)&&(W>Math.PI/2&&W1&&(I||(C+=a(F,z,H,D,b,p))),K===1&&(F=m[K],z=m[K+1],H=F,D=z);switch(B){case n.M:H=m[K++],D=m[K++],F=H,z=D;break;case n.L:if(I){if(r.containStroke(F,z,m[K],m[K+1],N,b,p))return!0}else C+=a(F,z,m[K],m[K+1],b,p)||0;F=m[K++],z=m[K++];break;case n.C:if(I){if(x.containStroke(F,z,m[K++],m[K++],m[K++],m[K++],m[K],m[K+1],N,b,p))return!0}else C+=T(F,z,m[K++],m[K++],m[K++],m[K++],m[K],m[K+1],b,p)||0;F=m[K++],z=m[K++];break;case n.Q:if(I){if(v.containStroke(F,z,m[K++],m[K++],m[K],m[K+1],N,b,p))return!0}else C+=A(F,z,m[K++],m[K++],m[K],m[K+1],b,p)||0;F=m[K++],z=m[K++];break;case n.A:var M=m[K++],j=m[K++],W=m[K++],X=m[K++],P=m[K++],k=m[K++];K+=1;var Y=1-m[K++],J=Math.cos(P)*W+M,te=Math.sin(P)*X+j;K>1?C+=a(F,z,J,te,b,p):(H=J,D=te);var ne=(b-M)*X/W+M;if(I){if(h.containStroke(M,j,X,P,P+k,Y,N,ne,p))return!0}else C+=w(M,j,X,P,P+k,Y,ne,p);F=Math.cos(P+k)*W+M,z=Math.sin(P+k)*X+j;break;case n.R:H=F=m[K++],D=z=m[K++];var q=m[K++],ue=m[K++],J=H+q,te=D+ue;if(I){if(r.containStroke(H,D,J,D,N,b,p)||r.containStroke(J,D,J,te,N,b,p)||r.containStroke(J,te,H,te,N,b,p)||r.containStroke(H,te,H,D,N,b,p))return!0}else C+=a(J,D,J,te,b,p),C+=a(H,te,H,D,b,p);break;case n.Z:if(I){if(r.containStroke(F,z,H,D,N,b,p))return!0}else C+=a(F,z,H,D,b,p);F=H,z=D;break}}return!I&&!l(z,D)&&(C+=a(F,z,H,D,b,p)||0),C!==0}function g(m,N,I){return O(m,0,!1,N,I)}function S(m,N,I,b){return O(m,N,!0,I,b)}_.contain=g,_.containStroke=S},"2fw6":function(c,_,s){var d=s("y+Vt"),r=d.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(x,v,h){h&&x.moveTo(v.cx+v.r,v.cy),x.arc(v.cx,v.cy,v.r,0,Math.PI*2,!0)}});c.exports=r},"3C/r":function(c,_){var s=function(r,x){this.image=r,this.repeat=x,this.type="pattern"};s.prototype.getCanvasPattern=function(r){return r.createPattern(this.image,this.repeat||"repeat")};var d=s;c.exports=d},"3CBa":function(c,_,s){var d=s("hydK"),r=d.createElement,x=s("bYtY"),v=s("SUKs"),h=s("y+Vt"),i=s("Dagg"),o=s("dqUG"),e=s("DBLp"),a=s("sW+o"),n=s("n6Mw"),t=s("vKoX"),u=s("P47w"),l=u.path,f=u.image,y=u.text;function E(p){return parseInt(p,10)}function T(p){return p instanceof h?l:p instanceof i?f:p instanceof o?y:l}function A(p,C){return C&&p&&C.parentNode!==p}function w(p,C,F){if(A(p,C)&&F){var z=F.nextSibling;z?p.insertBefore(C,z):p.appendChild(C)}}function O(p,C){if(A(p,C)){var F=p.firstChild;F?p.insertBefore(C,F):p.appendChild(C)}}function g(p,C){C&&p&&C.parentNode===p&&p.removeChild(C)}function S(p){return p.__textSvgEl}function m(p){return p.__svgEl}var N=function(p,C,F,z){this.root=p,this.storage=C,this._opts=F=x.extend({},F||{});var H=r("svg");H.setAttribute("xmlns","http://www.w3.org/2000/svg"),H.setAttribute("version","1.1"),H.setAttribute("baseProfile","full"),H.style.cssText="user-select:none;position:absolute;left:0;top:0;";var D=r("g");H.appendChild(D);var K=r("g");H.appendChild(K),this.gradientManager=new a(z,K),this.clipPathManager=new n(z,K),this.shadowManager=new t(z,K);var B=document.createElement("div");B.style.cssText="overflow:hidden;position:relative",this._svgDom=H,this._svgRoot=K,this._backgroundRoot=D,this._viewport=B,p.appendChild(B),B.appendChild(H),this.resize(F.width,F.height),this._visibleList=[]};N.prototype={constructor:N,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var p=this.getViewportRoot();if(p)return{offsetLeft:p.offsetLeft||0,offsetTop:p.offsetTop||0}},refresh:function(){var p=this.storage.getDisplayList(!0);this._paintList(p)},setBackgroundColor:function(p){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var C=r("rect");C.setAttribute("width",this.getWidth()),C.setAttribute("height",this.getHeight()),C.setAttribute("x",0),C.setAttribute("y",0),C.setAttribute("id",0),C.style.fill=p,this._backgroundRoot.appendChild(C),this._backgroundNode=C},_paintList:function(p){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var C=this._svgRoot,F=this._visibleList,z=p.length,H=[],D;for(D=0;D=0;--K)if(D[K]===H)return!0;return!1}),F}else return null;else return F[0]},resize:function(p,C){var F=this._viewport;F.style.display="none";var z=this._opts;if(p!=null&&(z.width=p),C!=null&&(z.height=C),p=this._getSize(0),C=this._getSize(1),F.style.display="",this._width!==p||this._height!==C){this._width=p,this._height=C;var H=F.style;H.width=p+"px",H.height=C+"px";var D=this._svgDom;D.setAttribute("width",p),D.setAttribute("height",C)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",p),this._backgroundNode.setAttribute("height",C))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(p){var C=this._opts,F=["width","height"][p],z=["clientWidth","clientHeight"][p],H=["paddingLeft","paddingTop"][p],D=["paddingRight","paddingBottom"][p];if(C[F]!=null&&C[F]!=="auto")return parseFloat(C[F]);var K=this.root,B=document.defaultView.getComputedStyle(K);return(K[z]||E(B[F])||E(K.style[F]))-(E(B[H])||0)-(E(B[D])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var p=encodeURIComponent(this._svgDom.outerHTML.replace(/> \r<`));return"data:image/svg+xml;charset=UTF-8,"+p}};function I(p){return function(){v('In SVG mode painter not support method "'+p+'"')}}x.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(p){N.prototype[p]=I(p)});var b=N;c.exports=b},"3e3G":function(c,_,s){var d=s("bYtY"),r=s("QuXc"),x=function(h,i,o,e,a){this.x=h==null?.5:h,this.y=i==null?.5:i,this.r=o==null?.5:o,this.type="radial",this.global=a||!1,r.call(this,e)};x.prototype={constructor:x},d.inherits(x,r);var v=x;c.exports=v},"3gBT":function(c,_){var s=2311;function d(){return s++}c.exports=d},"3y9D":function(c,_,s){(function(d,r){c.exports=_=r(s("Ib8C"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.WordArray,h=x.Hasher,i=r.algo,o=[],e=i.SHA1=h.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,n){for(var t=this._hash.words,u=t[0],l=t[1],f=t[2],y=t[3],E=t[4],T=0;T<80;T++){if(T<16)o[T]=a[n+T]|0;else{var A=o[T-3]^o[T-8]^o[T-14]^o[T-16];o[T]=A<<1|A>>>31}var w=(u<<5|u>>>27)+E+o[T];T<20?w+=(l&f|~l&y)+1518500249:T<40?w+=(l^f^y)+1859775393:T<60?w+=(l&f|l&y|f&y)-1894007588:w+=(l^f^y)-899497514,E=y,y=f,f=l<<30|l>>>2,l=u,u=w}t[0]=t[0]+u|0,t[1]=t[1]+l|0,t[2]=t[2]+f|0,t[3]=t[3]+y|0,t[4]=t[4]+E|0},_doFinalize:function(){var a=this._data,n=a.words,t=this._nDataBytes*8,u=a.sigBytes*8;return n[u>>>5]|=128<<24-u%32,n[(u+64>>>9<<4)+14]=Math.floor(t/4294967296),n[(u+64>>>9<<4)+15]=t,a.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var a=h.clone.call(this);return a._hash=this._hash.clone(),a}});r.SHA1=h._createHelper(e),r.HmacSHA1=h._createHmacHelper(e)}(),d.SHA1})},4:function(c,_){},"4fz+":function(c,_,s){var d=s("bYtY"),r=s("1bdT"),x=s("mFDi"),v=function(i){i=i||{},r.call(this,i);for(var o in i)i.hasOwnProperty(o)&&(this[o]=i[o]);this._children=[],this.__storage=null,this.__dirty=!0};v.prototype={constructor:v,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(i){return this._children[i]},childOfName:function(i){for(var o=this._children,e=0;e=0&&(e.splice(a,0,i),this._doAdd(i))}return this},_doAdd:function(i){i.parent&&i.parent.remove(i),i.parent=this;var o=this.__storage,e=this.__zr;o&&o!==i.__storage&&(o.addToStorage(i),i instanceof v&&i.addChildrenToStorage(o)),e&&e.refresh()},remove:function(i){var o=this.__zr,e=this.__storage,a=this._children,n=d.indexOf(a,i);return n<0?this:(a.splice(n,1),i.parent=null,e&&(e.delFromStorage(i),i instanceof v&&i.delChildrenFromStorage(e)),o&&o.refresh(),this)},removeAll:function(){var i=this._children,o=this.__storage,e,a;for(a=0;a1e-4){I[0]=A-O,I[1]=w-g,b[0]=A+O,b[1]=w+g;return}if(e[0]=i(S)*O+A,e[1]=h(S)*g+w,a[0]=i(m)*O+A,a[1]=h(m)*g+w,p(I,e,a),C(b,e,a),S=S%o,S<0&&(S=S+o),m=m%o,m<0&&(m=m+o),S>m&&!N?m+=o:SS&&(n[0]=i(H)*O+A,n[1]=h(H)*g+w,p(I,n,I),C(b,n,b))}_.fromPoints=t,_.fromLine=u,_.fromCubic=y,_.fromQuadratic=E,_.fromArc=T},"4qgm":function(c,_){c.exports="data:image/png;base64,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"},"4u4S":function(c,_){c.exports="data:image/png;base64,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"},"59Ip":function(c,_,s){var d=s("Sj9i");function r(x,v,h,i,o,e,a,n,t,u,l){if(t===0)return!1;var f=t;if(l>v+f&&l>i+f&&l>e+f&&l>n+f||lx+f&&u>h+f&&u>o+f&&u>a+f||u>>24)&16711935|(O<<24|O>>>8)&4278255360,g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360;var S=T[w];S.high^=g,S.low^=O}for(var m=0;m<24;m++){for(var N=0;N<5;N++){for(var I=0,b=0,p=0;p<5;p++){var S=T[N+5*p];I^=S.high,b^=S.low}var C=l[N];C.high=I,C.low=b}for(var N=0;N<5;N++)for(var F=l[(N+4)%5],z=l[(N+1)%5],H=z.high,D=z.low,I=F.high^(H<<1|D>>>31),b=F.low^(D<<1|H>>>31),p=0;p<5;p++){var S=T[N+5*p];S.high^=I,S.low^=b}for(var K=1;K<25;K++){var I,b,S=T[K],B=S.high,M=S.low,j=n[K];j<32?(I=B<>>32-j,b=M<>>32-j):(I=M<>>64-j,b=B<>>64-j);var W=l[t[K]];W.high=I,W.low=b}var X=l[0],P=T[0];X.high=P.high,X.low=P.low;for(var N=0;N<5;N++)for(var p=0;p<5;p++){var K=N+5*p,S=T[K],k=l[K],Y=l[(N+1)%5+5*p],J=l[(N+2)%5+5*p];S.high=k.high^~Y.high&J.high,S.low=k.low^~Y.low&J.low}var S=T[0],te=u[m];S.high^=te.high,S.low^=te.low}},_doFinalize:function(){var y=this._data,E=y.words,T=this._nDataBytes*8,A=y.sigBytes*8,w=this.blockSize*32;E[A>>>5]|=1<<24-A%32,E[(r.ceil((A+1)/w)*w>>>5)-1]|=128,y.sigBytes=E.length*4,this._process();for(var O=this._state,g=this.cfg.outputLength/8,S=g/8,m=[],N=0;N>>24)&16711935|(b<<24|b>>>8)&4278255360,p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,m.push(p),m.push(b)}return new h.init(m,g)},clone:function(){for(var y=i.clone.call(this),E=y._state=this._state.slice(0),T=0;T<25;T++)E[T]=E[T].clone();return y}});x.SHA3=i._createHelper(f),x.HmacSHA3=i._createHmacHelper(f)}(Math),d.SHA3})},"6+eU":function(c,_,s){"use strict";s.d(_,"a",function(){return m});var d=s("wx14"),r=s("rePB"),x=s("VTBJ"),v=s("1OyB"),h=s("vuIU"),i=s("Ji7U"),o=s("LK+K"),e=s("q1tI"),a=s.n(e),n=s("TSYQ"),t=s.n(n),u=function(I){var b,p="".concat(I.rootPrefixCls,"-item"),C=t()(p,"".concat(p,"-").concat(I.page),(b={},Object(r.a)(b,"".concat(p,"-active"),I.active),Object(r.a)(b,I.className,!!I.className),Object(r.a)(b,"".concat(p,"-disabled"),!I.page),b)),F=function(){I.onClick(I.page)},z=function(D){I.onKeyPress(D,I.onClick,I.page)};return a.a.createElement("li",{title:I.showTitle?I.page:null,className:C,onClick:F,onKeyPress:z,tabIndex:"0"},I.itemRender(I.page,"page",a.a.createElement("a",{rel:"nofollow"},I.page)))},l=u,f={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},y=function(N){Object(i.a)(b,N);var I=Object(o.a)(b);function b(){var p;Object(v.a)(this,b);for(var C=arguments.length,F=new Array(C),z=0;z=0||H.relatedTarget.className.indexOf("".concat(M,"-next"))>=0))return;p.setState({goInputText:""}),B(p.getValidValue())},p.go=function(H){var D=p.state.goInputText;if(D==="")return;(H.keyCode===f.ENTER||H.type==="click")&&(p.setState({goInputText:""}),p.props.quickGo(p.getValidValue()))},p}return Object(h.a)(b,[{key:"getValidValue",value:function(){var C=this.state,F=C.goInputText,z=C.current;return!F||isNaN(F)?z:Number(F)}},{key:"getPageSizeOptions",value:function(){var C=this.props,F=C.pageSize,z=C.pageSizeOptions;return z.some(function(H){return H.toString()===F.toString()})?z:z.concat([F.toString()]).sort(function(H,D){var K=isNaN(Number(H))?0:Number(H),B=isNaN(Number(D))?0:Number(D);return K-B})}},{key:"render",value:function(){var C=this,F=this.props,z=F.pageSize,H=F.locale,D=F.rootPrefixCls,K=F.changeSize,B=F.quickGo,M=F.goButton,j=F.selectComponentClass,W=F.buildOptionText,X=F.selectPrefixCls,P=F.disabled,k=this.state.goInputText,Y="".concat(D,"-options"),J=j,te=null,ne=null,q=null;if(!K&&!B)return null;var ue=this.getPageSizeOptions();if(K&&J){var le=ue.map(function(ee,se){return a.a.createElement(J.Option,{key:se,value:ee.toString()},(W||C.buildOptionText)(ee))});te=a.a.createElement(J,{disabled:P,prefixCls:X,showSearch:!1,className:"".concat(Y,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(z||ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(se){return se.parentNode}},le)}return B&&(M&&(q=typeof M=="boolean"?a.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:P,className:"".concat(Y,"-quick-jumper-button")},H.jump_to_confirm):a.a.createElement("span",{onClick:this.go,onKeyUp:this.go},M)),ne=a.a.createElement("div",{className:"".concat(Y,"-quick-jumper")},H.jump_to,a.a.createElement("input",{disabled:P,type:"text",value:k,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),H.page,q)),a.a.createElement("li",{className:"".concat(Y)},te,ne)}}]),b}(a.a.Component);y.defaultProps={pageSizeOptions:["10","20","50","100"]};var E=y,T=s("N2Kk");function A(){}function w(N){return typeof N=="number"&&isFinite(N)&&Math.floor(N)===N}function O(N,I,b){return b}function g(N,I,b){var p=typeof N=="undefined"?I.pageSize:N;return Math.floor((b.total-1)/p)+1}var S=function(N){Object(i.a)(b,N);var I=Object(o.a)(b);function b(p){var C;Object(v.a)(this,b),C=I.call(this,p),C.getJumpPrevPage=function(){return Math.max(1,C.state.current-(C.props.showLessItems?3:5))},C.getJumpNextPage=function(){return Math.min(g(void 0,C.state,C.props),C.state.current+(C.props.showLessItems?3:5))},C.getItemIcon=function(K,B){var M=C.props.prefixCls,j=K||a.a.createElement("button",{type:"button","aria-label":B,className:"".concat(M,"-item-link")});return typeof K=="function"&&(j=a.a.createElement(K,Object(x.a)({},C.props))),j},C.savePaginationNode=function(K){C.paginationNode=K},C.isValid=function(K){return w(K)&&K!==C.state.current},C.shouldDisplayQuickJumper=function(){var K=C.props,B=K.showQuickJumper,M=K.pageSize,j=K.total;return j<=M?!1:B},C.handleKeyDown=function(K){(K.keyCode===f.ARROW_UP||K.keyCode===f.ARROW_DOWN)&&K.preventDefault()},C.handleKeyUp=function(K){var B=C.getValidValue(K),M=C.state.currentInputValue;B!==M&&C.setState({currentInputValue:B}),K.keyCode===f.ENTER?C.handleChange(B):K.keyCode===f.ARROW_UP?C.handleChange(B-1):K.keyCode===f.ARROW_DOWN&&C.handleChange(B+1)},C.changePageSize=function(K){var B=C.state.current,M=g(K,C.state,C.props);B=B>M?M:B,M===0&&(B=C.state.current),typeof K=="number"&&("pageSize"in C.props||C.setState({pageSize:K}),"current"in C.props||C.setState({current:B,currentInputValue:B})),C.props.onShowSizeChange(B,K),"onChange"in C.props&&C.props.onChange&&C.props.onChange(B,K)},C.handleChange=function(K){var B=C.props.disabled,M=K;if(C.isValid(M)&&!B){var j=g(void 0,C.state,C.props);M>j?M=j:M<1&&(M=1),"current"in C.props||C.setState({current:M,currentInputValue:M});var W=C.state.pageSize;return C.props.onChange(M,W),M}return C.state.current},C.prev=function(){C.hasPrev()&&C.handleChange(C.state.current-1)},C.next=function(){C.hasNext()&&C.handleChange(C.state.current+1)},C.jumpPrev=function(){C.handleChange(C.getJumpPrevPage())},C.jumpNext=function(){C.handleChange(C.getJumpNextPage())},C.hasPrev=function(){return C.state.current>1},C.hasNext=function(){return C.state.current2?M-2:0),W=2;W=z?D=z:D=Number(F),D}},{key:"getShowSizeChanger",value:function(){var C=this.props,F=C.showSizeChanger,z=C.total,H=C.totalBoundaryShowSizeChanger;return typeof F!="undefined"?F:z>H}},{key:"renderPrev",value:function(C){var F=this.props,z=F.prevIcon,H=F.itemRender,D=H(C,"prev",this.getItemIcon(z,"prev page")),K=!this.hasPrev();return Object(e.isValidElement)(D)?Object(e.cloneElement)(D,{disabled:K}):D}},{key:"renderNext",value:function(C){var F=this.props,z=F.nextIcon,H=F.itemRender,D=H(C,"next",this.getItemIcon(z,"next page")),K=!this.hasNext();return Object(e.isValidElement)(D)?Object(e.cloneElement)(D,{disabled:K}):D}},{key:"render",value:function(){var C=this,F=this.props,z=F.prefixCls,H=F.className,D=F.style,K=F.disabled,B=F.hideOnSinglePage,M=F.total,j=F.locale,W=F.showQuickJumper,X=F.showLessItems,P=F.showTitle,k=F.showTotal,Y=F.simple,J=F.itemRender,te=F.showPrevNextJumpers,ne=F.jumpPrevIcon,q=F.jumpNextIcon,ue=F.selectComponentClass,le=F.selectPrefixCls,ee=F.pageSizeOptions,se=this.state,Z=se.current,oe=se.pageSize,L=se.currentInputValue;if(B===!0&&M<=oe)return null;var V=g(void 0,this.state,this.props),ae=[],Q=null,G=null,R=null,U=null,re=null,$=W&&W.goButton,ce=X?1:2,pe=Z-1>0?Z-1:0,ge=Z+1=ce*2&&Z!==1+2&&(ae[0]=Object(e.cloneElement)(ae[0],{className:"".concat(z,"-item-after-jump-prev")}),ae.unshift(Q)),V-Z>=ce*2&&Z!==V-2&&(ae[ae.length-1]=Object(e.cloneElement)(ae[ae.length-1],{className:"".concat(z,"-item-before-jump-next")}),ae.push(G)),be!==1&&ae.unshift(R),Ie!==V&&ae.push(U)}var je=null;k&&(je=a.a.createElement("li",{className:"".concat(z,"-total-text")},k(M,[M===0?0:(Z-1)*oe+1,Z*oe>M?M:Z*oe])));var Oe=!this.hasPrev()||!V,Pe=!this.hasNext()||!V;return a.a.createElement("ul",Object(d.a)({className:t()(z,H,Object(r.a)({},"".concat(z,"-disabled"),K)),style:D,unselectable:"unselectable",ref:this.savePaginationNode},Ce),je,a.a.createElement("li",{title:P?j.prev_page:null,onClick:this.prev,tabIndex:Oe?null:0,onKeyPress:this.runIfEnterPrev,className:t()("".concat(z,"-prev"),Object(r.a)({},"".concat(z,"-disabled"),Oe)),"aria-disabled":Oe},this.renderPrev(pe)),ae,a.a.createElement("li",{title:P?j.next_page:null,onClick:this.next,tabIndex:Pe?null:0,onKeyPress:this.runIfEnterNext,className:t()("".concat(z,"-next"),Object(r.a)({},"".concat(z,"-disabled"),Pe)),"aria-disabled":Pe},this.renderNext(ge)),a.a.createElement(E,{disabled:K,locale:j,rootPrefixCls:z,selectComponentClass:ue,selectPrefixCls:le,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Z,pageSize:oe,pageSizeOptions:ee,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:$}))}}],[{key:"getDerivedStateFromProps",value:function(C,F){var z={};if("current"in C&&(z.current=C.current,C.current!==F.current&&(z.currentInputValue=z.current)),"pageSize"in C&&C.pageSize!==F.pageSize){var H=F.current,D=g(C.pageSize,F,C);H=H>D?D:H,"current"in C||(z.current=H,z.currentInputValue=H),z.pageSize=C.pageSize}return z}}]),b}(a.a.Component);S.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:A,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:A,locale:T.a,style:{},itemRender:O,totalBoundaryShowSizeChanger:50};var m=S},"6GrX":function(c,_,s){var d=s("mFDi"),r=s("Xnb7"),x=s("bYtY"),v=x.getContext,h=x.extend,i=x.retrieve2,o=x.retrieve3,e=x.trim,a={},n=0,t=5e3,u=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,l="12px sans-serif",f={};function y(B,M){f[B]=M}function E(B,M){M=M||l;var j=B+":"+M;if(a[j])return a[j];for(var W=(B+"").split(` `),X=0,P=0,k=W.length;Pt&&(n=0,a={}),n++,a[j]=X,X}function T(B,M,j,W,X,P,k,Y){return k?w(B,M,j,W,X,P,k,Y):A(B,M,j,W,X,P,Y)}function A(B,M,j,W,X,P,k){var Y=z(B,M,X,P,k),J=E(B,M);X&&(J+=X[1]+X[3]);var te=Y.outerHeight,ne=O(0,J,j),q=g(0,te,W),ue=new d(ne,q,J,te);return ue.lineHeight=Y.lineHeight,ue}function w(B,M,j,W,X,P,k,Y){var J=H(B,{rich:k,truncate:Y,font:M,textAlign:j,textPadding:X,textLineHeight:P}),te=J.outerWidth,ne=J.outerHeight,q=O(0,te,j),ue=g(0,ne,W);return new d(q,ue,te,ne)}function O(B,M,j){return j==="right"?B-=M:j==="center"&&(B-=M/2),B}function g(B,M,j){return j==="middle"?B-=M/2:j==="bottom"&&(B-=M),B}function S(B,M,j){var W=M.textPosition,X=M.textDistance,P=j.x,k=j.y;X=X||0;var Y=j.height,J=j.width,te=Y/2,ne="left",q="top";switch(W){case"left":P-=X,k+=te,ne="right",q="middle";break;case"right":P+=X+J,k+=te,q="middle";break;case"top":P+=J/2,k-=X,ne="center",q="bottom";break;case"bottom":P+=J/2,k+=Y+X,ne="center";break;case"inside":P+=J/2,k+=te,ne="center",q="middle";break;case"insideLeft":P+=X,k+=te,q="middle";break;case"insideRight":P+=J-X,k+=te,ne="right",q="middle";break;case"insideTop":P+=J/2,k+=X,ne="center";break;case"insideBottom":P+=J/2,k+=Y-X,ne="center",q="bottom";break;case"insideTopLeft":P+=X,k+=X;break;case"insideTopRight":P+=J-X,k+=X,ne="right";break;case"insideBottomLeft":P+=X,k+=Y-X,q="bottom";break;case"insideBottomRight":P+=J-X,k+=Y-X,ne="right",q="bottom";break}return B=B||{},B.x=P,B.y=k,B.textAlign=ne,B.textVerticalAlign=q,B}function m(B,M,j){var W={textPosition:B,textDistance:j};return S({},W,M)}function N(B,M,j,W,X){if(!M)return"";var P=(B+"").split(` `);X=I(M,j,W,X);for(var k=0,Y=P.length;k>>24)&16711935|(I<<24|I>>>8)&4278255360}var b=this._hash.words,p=u.words,C=l.words,F=e.words,z=a.words,H=n.words,D=t.words,K,B,M,j,W,X,P,k,Y,J;X=K=b[0],P=B=b[1],k=M=b[2],Y=j=b[3],J=W=b[4];for(var te,m=0;m<80;m+=1)te=K+g[S+F[m]]|0,m<16?te+=y(B,M,j)+p[0]:m<32?te+=E(B,M,j)+p[1]:m<48?te+=T(B,M,j)+p[2]:m<64?te+=A(B,M,j)+p[3]:te+=w(B,M,j)+p[4],te=te|0,te=O(te,H[m]),te=te+W|0,K=W,W=j,j=O(M,10),M=B,B=te,te=X+g[S+z[m]]|0,m<16?te+=w(P,k,Y)+C[0]:m<32?te+=A(P,k,Y)+C[1]:m<48?te+=T(P,k,Y)+C[2]:m<64?te+=E(P,k,Y)+C[3]:te+=y(P,k,Y)+C[4],te=te|0,te=O(te,D[m]),te=te+J|0,X=J,J=Y,Y=O(k,10),k=P,P=te;te=b[1]+M+Y|0,b[1]=b[2]+j+J|0,b[2]=b[3]+W+X|0,b[3]=b[4]+K+P|0,b[4]=b[0]+B+k|0,b[0]=te},_doFinalize:function(){var g=this._data,S=g.words,m=this._nDataBytes*8,N=g.sigBytes*8;S[N>>>5]|=128<<24-N%32,S[(N+64>>>9<<4)+14]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,g.sigBytes=(S.length+1)*4,this._process();for(var I=this._hash,b=I.words,p=0;p<5;p++){var C=b[p];b[p]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return I},clone:function(){var g=i.clone.call(this);return g._hash=this._hash.clone(),g}});function y(g,S,m){return g^S^m}function E(g,S,m){return g&S|~g&m}function T(g,S,m){return(g|~S)^m}function A(g,S,m){return g&m|S&~m}function w(g,S,m){return g^(S|~m)}function O(g,S){return g<>>32-S}x.RIPEMD160=i._createHelper(f),x.HmacRIPEMD160=i._createHmacHelper(f)}(Math),d.RIPEMD160})},ETIr:function(c,_,s){(function(d,r){c.exports=_=r(s("Ib8C"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.WordArray,h=r.enc,i=h.Base64={stringify:function(e){var a=e.words,n=e.sigBytes,t=this._map;e.clamp();for(var u=[],l=0;l>>2]>>>24-l%4*8&255,y=a[l+1>>>2]>>>24-(l+1)%4*8&255,E=a[l+2>>>2]>>>24-(l+2)%4*8&255,T=f<<16|y<<8|E,A=0;A<4&&l+A*.75>>6*(3-A)&63));var w=t.charAt(64);if(w)for(;u.length%4;)u.push(w);return u.join("")},parse:function(e){var a=e.length,n=this._map,t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var u=0;u>>6-l%4*2,E=f|y;t[u>>>2]|=E<<24-u%4*8,u++}return v.create(t,u)}}(),d.enc.Base64})},"F+F2":function(c,_,s){(function(d,r){c.exports=_=r(s("Ib8C"))})(this,function(d){return function(){if(typeof ArrayBuffer!="function")return;var r=d,x=r.lib,v=x.WordArray,h=v.init,i=v.init=function(o){if(o instanceof ArrayBuffer&&(o=new Uint8Array(o)),(o instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&o instanceof Uint8ClampedArray||o instanceof Int16Array||o instanceof Uint16Array||o instanceof Int32Array||o instanceof Uint32Array||o instanceof Float32Array||o instanceof Float64Array)&&(o=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)),o instanceof Uint8Array){for(var e=o.byteLength,a=[],n=0;n>>2]|=o[n]<<24-n%4*8;h.call(this,a,e)}else h.apply(this,arguments)};i.prototype=v}(),d.lib.WordArray})},FOrL:function(c,_,s){c.exports=s.p+"static/nodata.a6b3f948.png"},FPkq:function(c,_,s){c.exports=s.p+"static/qrCode.dd0fe9b2.png"},Fofx:function(c,_){var s=typeof Float32Array=="undefined"?Array:Float32Array;function d(){var n=new s(6);return r(n),n}function r(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function x(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function v(n,t,u){var l=t[0]*u[0]+t[2]*u[1],f=t[1]*u[0]+t[3]*u[1],y=t[0]*u[2]+t[2]*u[3],E=t[1]*u[2]+t[3]*u[3],T=t[0]*u[4]+t[2]*u[5]+t[4],A=t[1]*u[4]+t[3]*u[5]+t[5];return n[0]=l,n[1]=f,n[2]=y,n[3]=E,n[4]=T,n[5]=A,n}function h(n,t,u){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+u[0],n[5]=t[5]+u[1],n}function i(n,t,u){var l=t[0],f=t[2],y=t[4],E=t[1],T=t[3],A=t[5],w=Math.sin(u),O=Math.cos(u);return n[0]=l*O+E*w,n[1]=-l*w+E*O,n[2]=f*O+T*w,n[3]=-f*w+O*T,n[4]=O*y+w*A,n[5]=O*A-w*y,n}function o(n,t,u){var l=u[0],f=u[1];return n[0]=t[0]*l,n[1]=t[1]*f,n[2]=t[2]*l,n[3]=t[3]*f,n[4]=t[4]*l,n[5]=t[5]*f,n}function e(n,t){var u=t[0],l=t[2],f=t[4],y=t[1],E=t[3],T=t[5],A=u*E-y*l;return A?(A=1/A,n[0]=E*A,n[1]=-y*A,n[2]=-l*A,n[3]=u*A,n[4]=(l*T-E*f)*A,n[5]=(y*f-u*T)*A,n):null}function a(n){var t=d();return x(t,n),t}_.create=d,_.identity=r,_.copy=x,_.mul=v,_.translate=h,_.rotate=i,_.scale=o,_.invert=e,_.clone=a},FxDU:function(c,_,s){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.createSensor=void 0;var d=s("QO+J"),r=s("j5sG"),x=typeof ResizeObserver!="undefined"?r.createSensor:d.createSensor;_.createSensor=x},GABl:function(c,_){c.exports="data:image/png;base64,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"},GRuw:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("lPiR"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.WordArray,h=r.algo,i=h.SHA256,o=h.SHA224=i.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});r.SHA224=i._createHelper(o),r.HmacSHA224=i._createHmacHelper(o)}(),d.SHA224})},Gev7:function(c,_,s){var d=s("bYtY"),r=s("K2GJ"),x=s("1bdT"),v=s("ni6a");function h(o){o=o||{},x.call(this,o);for(var e in o)o.hasOwnProperty(e)&&e!=="style"&&(this[e]=o[e]);this.style=new r(o.style,this),this._rect=null,this.__clipPaths=null}h.prototype={constructor:h,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(o){},afterBrush:function(o){},brush:function(o,e){},getBoundingRect:function(){},contain:function(o,e){return this.rectContain(o,e)},traverse:function(o,e){o.call(e,this)},rectContain:function(o,e){var a=this.transformCoordToLocal(o,e),n=this.getBoundingRect();return n.contain(a[0],a[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(o){return this.animate("style",o)},attrKV:function(o,e){o!=="style"?x.prototype.attrKV.call(this,o,e):this.style.set(e)},setStyle:function(o,e){return this.style.set(o,e),this.dirty(!1),this},useStyle:function(o){return this.style=new r(o,this),this.dirty(!1),this},calculateTextPosition:null},d.inherits(h,x),d.mixin(h,v);var i=h;c.exports=i},GfqC:function(c,_,s){"use strict";var d=s("q1tI"),r=s.n(d),x=s("TSYQ"),v=s.n(x);function h(j,W){var X="cannot "+j.method+" "+j.action+" "+W.status+"'",P=new Error(X);return P.status=W.status,P.method=j.method,P.url=j.action,P}function i(j){var W=j.responseText||j.response;if(!W)return W;try{return JSON.parse(W)}catch(X){return W}}function o(j){var W=new XMLHttpRequest;j.onProgress&&W.upload&&(W.upload.onprogress=function(Y){Y.total>0&&(Y.percent=Y.loaded/Y.total*100),j.onProgress(Y)});var X=new FormData;j.data&&Object.keys(j.data).forEach(function(k){var Y=j.data[k];if(Array.isArray(Y)){Y.forEach(function(J){X.append(k+"[]",J)});return}X.append(k,j.data[k])}),j.file instanceof Blob?X.append(j.filename,j.file,j.file.name):X.append(j.filename,j.file),W.onerror=function(Y){j.onError(Y)},W.onload=function(){return W.status<200||W.status>=300?j.onError(h(j,W),i(W)):j.onSuccess(i(W),W)},W.open(j.method,j.action,!0),j.withCredentials&&"withCredentials"in W&&(W.withCredentials=!0);var P=j.headers||{};return P["X-Requested-With"]!==null&&W.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(P).forEach(function(k){P[k]!==null&&W.setRequestHeader(k,P[k])}),W.send(X),{abort:function(){W.abort()}}}var e=+new Date,a=0;function n(){return"rc-upload-"+e+"-"+ ++a}function t(j,W){return j.indexOf(W,j.length-W.length)!==-1}var u=function(j,W){if(j&&W){var X=Array.isArray(W)?W:W.split(","),P=j.name||"",k=j.type||"",Y=k.replace(/\/.*$/,"");return X.some(function(J){var te=J.trim();return te.charAt(0)==="."?t(P.toLowerCase(),te.toLowerCase()):/\/\*$/.test(te)?Y===te.replace(/\/.*$/,""):k===te})}return!0};function l(j,W){var X=j.createReader(),P=[];function k(){X.readEntries(function(Y){var J=Array.prototype.slice.apply(Y);P=P.concat(J);var te=!J.length;te?W(P):k()})}k()}var f=function(W,X,P){var k=function Y(J,te){te=te||"",J.isFile?J.file(function(ne){P(ne)&&(J.fullPath&&!ne.webkitRelativePath&&(Object.defineProperties(ne,{webkitRelativePath:{writable:!0}}),ne.webkitRelativePath=J.fullPath.replace(/^\//,""),Object.defineProperties(ne,{webkitRelativePath:{writable:!1}})),X([ne]))}):J.isDirectory&&l(J,function(ne){ne.forEach(function(q){Y(q,""+te+J.name+"/")})})};W.forEach(function(Y){k(Y.webkitGetAsEntry())})},y=f,E=Object.assign||function(j){for(var W=1;W=0)continue;if(!Object.prototype.hasOwnProperty.call(j,P))continue;X[P]=j[P]}return X}function g(j,W){if(!(j instanceof W))throw new TypeError("Cannot call a class as a function")}function S(j,W){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:j}function m(j,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);j.prototype=Object.create(W&&W.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(j,W):j.__proto__=W)}var N=function(W){return Object.keys(W).reduce(function(X,P){return(P.substr(0,5)==="data-"||P.substr(0,5)==="aria-"||P==="role")&&(X[P]=W[P]),X},{})},I=function(j){m(W,j);function W(){var X,P,k,Y;g(this,W);for(var J=arguments.length,te=Array(J),ne=0;ne3&&(e=s.call(e,1));for(var n=i.length,t=0;t4&&(e=s.call(e,1,e.length-1));for(var n=e[e.length-1],t=i.length,u=0;uthis._ux||T(S-this._yi)>this._uy||this._len<5;return this.addData(o.L,g,S),this._ctx&&m&&(this._needsDash()?this._dashedLineTo(g,S):this._ctx.lineTo(g,S)),m&&(this._xi=g,this._yi=S),this},bezierCurveTo:function(g,S,m,N,I,b){return this.addData(o.C,g,S,m,N,I,b),this._ctx&&(this._needsDash()?this._dashedBezierTo(g,S,m,N,I,b):this._ctx.bezierCurveTo(g,S,m,N,I,b)),this._xi=I,this._yi=b,this},quadraticCurveTo:function(g,S,m,N){return this.addData(o.Q,g,S,m,N),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(g,S,m,N):this._ctx.quadraticCurveTo(g,S,m,N)),this._xi=m,this._yi=N,this},arc:function(g,S,m,N,I,b){return this.addData(o.A,g,S,m,m,N,I-N,0,b?0:1),this._ctx&&this._ctx.arc(g,S,m,N,I,b),this._xi=f(I)*m+g,this._yi=y(I)*m+S,this},arcTo:function(g,S,m,N,I){return this._ctx&&this._ctx.arcTo(g,S,m,N,I),this},rect:function(g,S,m,N){return this._ctx&&this._ctx.rect(g,S,m,N),this.addData(o.R,g,S,m,N),this},closePath:function(){this.addData(o.Z);var g=this._ctx,S=this._x0,m=this._y0;return g&&(this._needsDash()&&this._dashedLineTo(S,m),g.closePath()),this._xi=S,this._yi=m,this},fill:function(g){g&&g.fill(),this.toStatic()},stroke:function(g){g&&g.stroke(),this.toStatic()},setLineDash:function(g){if(g instanceof Array){this._lineDash=g,this._dashIdx=0;for(var S=0,m=0;mS.length&&(this._expandData(),S=this.data);for(var m=0;m0&&D<=g||F<0&&D>=g||F===0&&(z>0&&K<=S||z<0&&K>=S);){if(j=this._dashIdx,B=I[j],D+=F*B,K+=z*B,this._dashIdx=(j+1)%M,F>0&&Dp||z>0&&KC)continue;b[j%2?"moveTo":"lineTo"](F>=0?u(D,g):l(D,g),z>=0?u(K,S):l(K,S))}F=D-g,z=K-S,this._dashOffset=-E(F*F+z*z)},_dashedBezierTo:function(g,S,m,N,I,b){var p=this._dashSum,C=this._dashOffset,F=this._lineDash,z=this._ctx,H=this._xi,D=this._yi,K,B,M,j=d.cubicAt,W=0,X=this._dashIdx,P=F.length,k,Y,J=0;for(C<0&&(C=p+C),C%=p,K=0;K<1;K+=.1)B=j(H,g,m,I,K+.1)-j(H,g,m,I,K),M=j(D,S,N,b,K+.1)-j(D,S,N,b,K),W+=E(B*B+M*M);for(;XC);X++);for(K=(J-C)/W;K<=1;)k=j(H,g,m,I,K),Y=j(D,S,N,b,K),X%2?z.moveTo(k,Y):z.lineTo(k,Y),K+=F[X]/W,X=(X+1)%P;X%2!==0&&z.lineTo(I,b),B=I-k,M=b-Y,this._dashOffset=-E(B*B+M*M)},_dashedQuadraticTo:function(g,S,m,N){var I=m,b=N;m=(m+2*g)/3,N=(N+2*S)/3,g=(this._xi+2*g)/3,S=(this._yi+2*S)/3,this._dashedBezierTo(g,S,m,N,I,b)},toStatic:function(){var g=this.data;g instanceof Array&&(g.length=this._len,A&&(this.data=new Float32Array(g)))},getBoundingRect:function(){e[0]=e[1]=n[0]=n[1]=Number.MAX_VALUE,a[0]=a[1]=t[0]=t[1]=-Number.MAX_VALUE;for(var g=this.data,S=0,m=0,N=0,I=0,b=0;bF||T(C-b)>z||D===H-1)&&(g.lineTo(p,C),I=p,b=C);break;case o.C:g.bezierCurveTo(S[D++],S[D++],S[D++],S[D++],S[D++],S[D++]),I=S[D-2],b=S[D-1];break;case o.Q:g.quadraticCurveTo(S[D++],S[D++],S[D++],S[D++]),I=S[D-2],b=S[D-1];break;case o.A:var B=S[D++],M=S[D++],j=S[D++],W=S[D++],X=S[D++],P=S[D++],k=S[D++],Y=S[D++],J=j>W?j:W,te=j>W?1:j/W,ne=j>W?W/j:1,q=Math.abs(j-W)>.001,ue=X+P;q?(g.translate(B,M),g.rotate(k),g.scale(te,ne),g.arc(0,0,J,X,ue,1-Y),g.scale(1/te,1/ne),g.rotate(-k),g.translate(-B,-M)):g.arc(B,M,J,X,ue,1-Y),D===1&&(m=f(X)*j+B,N=y(X)*W+M),I=f(ue)*j+B,b=y(ue)*W+M;break;case o.R:m=I=S[D],N=b=S[D+1],g.rect(S[D++],S[D++],S[D++],S[D++]);break;case o.Z:g.closePath(),I=m,b=N}}}},w.CMD=o;var O=w;c.exports=O},Ib8C:function(c,_,s){(function(d){(function(r,x){c.exports=_=x()})(this,function(){var r=r||function(x,v){var h;if(typeof window!="undefined"&&window.crypto&&(h=window.crypto),typeof self!="undefined"&&self.crypto&&(h=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(h=globalThis.crypto),!h&&typeof window!="undefined"&&window.msCrypto&&(h=window.msCrypto),!h&&typeof d!="undefined"&&d.crypto&&(h=d.crypto),!h&&!0)try{h=s(4)}catch(w){}var i=function(){if(h){if(typeof h.getRandomValues=="function")try{return h.getRandomValues(new Uint32Array(1))[0]}catch(w){}if(typeof h.randomBytes=="function")try{return h.randomBytes(4).readInt32LE()}catch(w){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function w(){}return function(O){var g;return w.prototype=O,g=new w,w.prototype=null,g}}(),e={},a=e.lib={},n=a.Base=function(){return{extend:function(w){var O=o(this);return w&&O.mixIn(w),(!O.hasOwnProperty("init")||this.init===O.init)&&(O.init=function(){O.$super.init.apply(this,arguments)}),O.init.prototype=O,O.$super=this,O},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var O in w)w.hasOwnProperty(O)&&(this[O]=w[O]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=a.WordArray=n.extend({init:function(w,O){w=this.words=w||[],O!=v?this.sigBytes=O:this.sigBytes=w.length*4},toString:function(w){return(w||l).stringify(this)},concat:function(w){var O=this.words,g=w.words,S=this.sigBytes,m=w.sigBytes;if(this.clamp(),S%4)for(var N=0;N>>2]>>>24-N%4*8&255;O[S+N>>>2]|=I<<24-(S+N)%4*8}else for(var b=0;b>>2]=g[b>>>2];return this.sigBytes+=m,this},clamp:function(){var w=this.words,O=this.sigBytes;w[O>>>2]&=4294967295<<32-O%4*8,w.length=x.ceil(O/4)},clone:function(){var w=n.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var O=[],g=0;g>>2]>>>24-m%4*8&255;S.push((N>>>4).toString(16)),S.push((N&15).toString(16))}return S.join("")},parse:function(w){for(var O=w.length,g=[],S=0;S>>3]|=parseInt(w.substr(S,2),16)<<24-S%8*4;return new t.init(g,O/2)}},f=u.Latin1={stringify:function(w){for(var O=w.words,g=w.sigBytes,S=[],m=0;m>>2]>>>24-m%4*8&255;S.push(String.fromCharCode(N))}return S.join("")},parse:function(w){for(var O=w.length,g=[],S=0;S>>2]|=(w.charCodeAt(S)&255)<<24-S%4*8;return new t.init(g,O)}},y=u.Utf8={stringify:function(w){try{return decodeURIComponent(escape(f.stringify(w)))}catch(O){throw new Error("Malformed UTF-8 data")}},parse:function(w){return f.parse(unescape(encodeURIComponent(w)))}},E=a.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=y.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var O,g=this._data,S=g.words,m=g.sigBytes,N=this.blockSize,I=N*4,b=m/I;w?b=x.ceil(b):b=x.max((b|0)-this._minBufferSize,0);var p=b*N,C=x.min(p*4,m);if(p){for(var F=0;F=11),domSupported:typeof document!="undefined"}}c.exports=d},JWDV:function(c,_,s){c.exports=s.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(c,_){c.exports="data:image/png;base64,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"},Jq4h:function(c,_,s){c.exports=s.p+"static/qrcode.2267e4d5.png"},K2GJ:function(c,_,s){var d=s("fW2E"),r=s("gut8"),x=r.ContextCachedBy,v=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],h=function(u){this.extendFrom(u,!1)};function i(u,l,f){var y=l.x==null?0:l.x,E=l.x2==null?1:l.x2,T=l.y==null?0:l.y,A=l.y2==null?0:l.y2;l.global||(y=y*f.width+f.x,E=E*f.width+f.x,T=T*f.height+f.y,A=A*f.height+f.y),y=isNaN(y)?0:y,E=isNaN(E)?1:E,T=isNaN(T)?0:T,A=isNaN(A)?0:A;var w=u.createLinearGradient(y,T,E,A);return w}function o(u,l,f){var y=f.width,E=f.height,T=Math.min(y,E),A=l.x==null?.5:l.x,w=l.y==null?.5:l.y,O=l.r==null?.5:l.r;l.global||(A=A*y+f.x,w=w*E+f.y,O=O*T);var g=u.createRadialGradient(A,w,0,A,w,O);return g}h.prototype={constructor:h,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(u,l,f){var y=this,E=f&&f.style,T=!E||u.__attrCachedBy!==x.STYLE_BIND;u.__attrCachedBy=x.STYLE_BIND;for(var A=0;A0},extendFrom:function(u,l){if(u)for(var f in u)u.hasOwnProperty(f)&&(l===!0||(l===!1?!this.hasOwnProperty(f):u[f]!=null))&&(this[f]=u[f])},set:function(u,l){typeof u=="string"?this[u]=l:this.extendFrom(u,!0)},clone:function(){var u=new this.constructor;return u.extendFrom(this,!0),u},getGradient:function(u,l,f){for(var y=l.type==="radial"?o:i,E=y(u,l,f),T=l.colorStops,A=0;Ale)){se.next=7;break}return x.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(le/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),se.abrupt("return",!1);case 7:return M.push({name:ue.name,file:ue}),j(Object(v.a)(M)),D.onChange(M),se.abrupt("return",!1);case 11:case"end":return se.stop()}},q)}));function ne(q){return te.apply(this,arguments)}return ne}()},J=function(){var te=Object(e.a)(u.a.mark(function ne(q,ue){var le,ee,se,Z,oe,L,V,ae,Q,G;return u.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return ue.file_name=q.name,V=q.name,U.next=4,Object(y.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(ae=U.sent,ae.data=JSON.parse(m(ae.data)),!((ae==null?void 0:ae.status)!==0)){U.next=12;break}return M[M.findIndex(function(re){return re.name===V})].status="error",M[M.findIndex(function(re){return re.name===V})].file.status="error",D.onChange(M),x.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),U.abrupt("return");case 12:return P=new g.a({endpoint:ae==null||((le=ae.data)===null||le===void 0)?void 0:le.end_point,region:ae==null||((ee=ae.data)===null||ee===void 0)?void 0:ee.region,accessKeyId:ae==null||((se=ae.data)===null||se===void 0)?void 0:se.access_key_id,accessKeySecret:ae==null||((Z=ae.data)===null||Z===void 0)?void 0:Z.access_key_secret,bucket:ae==null||((oe=ae.data)===null||oe===void 0)?void 0:oe.bucket,stsToken:ae==null||((L=ae.data)===null||L===void 0)?void 0:L.security_token}),console.log(q,"file"),k(P),Q=q.name.split("."),Q.pop(),G=ue.realFileName?Q:Object(A.a)(),U.abrupt("return",new Promise(function(re,$){try{var ce;P.multipartUpload("".concat(D.identifier,"/").concat(G).concat(V.indexOf(".")>-1?"."+V.split(".").pop():""),new Blob([q.file],{type:q.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(ge,Ce,Ae){try{console.log("\u8FDB\u5EA6",ge,Ce,Ae);var Se=M.findIndex(function(Me){return Me.name===V});M[Se].file.percent=ge*100,M[Se].tempCheckpoint=Ce,j(Object(v.a)(M))}catch(Me){}},checkpoint:M[M.findIndex(function(pe){return pe.name===V})].tempCheckpoint,callback:{customValue:{id:V+""},url:ae==null||((ce=ae.data)===null||ce===void 0)?void 0:ce.callback_url,host:ae==null?void 0:ae.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(y.e)(ue)}}).then(function(pe){var ge,Ce=M.findIndex(function(he){return he.name===V}),Ae="done";if(((ge=pe.data)===null||ge===void 0?void 0:ge.status)===0){var Se;q.response=(Se=pe.data)===null||Se===void 0?void 0:Se.data;var Me=M.findIndex(function(he){return he.name===V});M[Me].status="done",M[Me].file.status="done"}else{var fe;x.b.warn((fe=pe.data)===null||fe===void 0?void 0:fe.message),Ae="error"}M[Ce].status=Ae,M[Ce].file.status=Ae,D.onChange(M),re(pe==null?void 0:pe.data)}).catch(function(pe){M[M.findIndex(function(ge){return ge.name===V})].status="error",M[M.findIndex(function(ge){return ge.name===V})].file.status="error",x.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),j(Object(v.a)(M)),D.onChange(M),$(pe),console.log("err:",pe)})}catch(pe){}}));case 19:case"end":return U.stop()}},ne)}));return function(q,ue){return te.apply(this,arguments)}}();return Object(l.useEffect)(function(){M.every(function(te){return te==="done"||te==="error"})&&D.onComplete(M)},[M]),Object(l.useEffect)(function(){if(H){var te;(te=P)===null||te===void 0||te.cancel()}},[H]),Object(l.useEffect)(function(){D.uploading&&M.map(function(){var te=Object(e.a)(u.a.mark(function ne(q){var ue,le;return u.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!((!q.status||q.status==="error")&&!H)){se.next=6;break}return q.status="uploading",q.file.status="uploading",se.next=5,J(q,{login:z==null||((ue=z.userInfo)===null||ue===void 0)?void 0:ue.login,container_type:D.container_type,container_id:D.container_id,description:D.description,realFileName:D.realFileName});case 5:le=se.sent;case 6:case"end":return se.stop()}},ne)}));return function(ne){return te.apply(this,arguments)}}())},[D.uploading]),f.a.createElement(S,Object(d.a)({},Y,{height:D.height,className:D.className}),f.a.createElement("p",{className:"ant-upload-hint"},D.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};_.b=Object(w.a)(function(C){var F=C.loading,z=C.globalSetting,H=C.user;return{globalSetting:z,loading:F.models.competitions,user:H}})(p)},KmYQ:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("OLod"))})(this,function(d){return d.pad.ZeroPadding={pad:function(r,x){var v=x*4;r.clamp(),r.sigBytes+=v-(r.sigBytes%v||v)},unpad:function(r){for(var x=r.words,v=r.sigBytes-1,v=r.sigBytes-1;v>=0;v--)if(x[v>>>2]>>>24-v%4*8&255){r.sigBytes=v+1;break}}},d.pad.ZeroPadding})},LPTA:function(c,_){var s=1;typeof window!="undefined"&&(s=Math.max(window.devicePixelRatio||1,1));var d=0,r=s;_.debugMode=d,_.devicePixelRatio=r},LdHM:function(c,_,s){"use strict";s.d(_,"b",function(){return O}),s.d(_,"a",function(){return S});var d=s("1OyB"),r=s("vuIU"),x=s("Ji7U"),v=s("LK+K"),h=s("q1tI"),i=s("rePB"),o=s("Ff2n"),e=s("ODXe"),a=s("4IlW"),n=s("bX4T"),t=s("YrtM"),u=s("TSYQ"),l=s.n(u),f=s("+nKL"),y=s("8OUc"),E=function(P,k){var Y=P.prefixCls,J=P.id,te=P.flattenOptions,ne=P.childrenAsData,q=P.values,ue=P.searchValue,le=P.multiple,ee=P.defaultActiveFirstOption,se=P.height,Z=P.itemHeight,oe=P.notFoundContent,L=P.open,V=P.menuItemSelectedIcon,ae=P.virtual,Q=P.onSelect,G=P.onToggleOpen,R=P.onActiveValue,U=P.onScroll,re=P.onMouseEnter,$="".concat(Y,"-item"),ce=Object(t.a)(function(){return te},[L,te],function(Le,je){return je[0]&&Le[1]!==je[1]}),pe=h.useRef(null),ge=function(je){je.preventDefault()},Ce=function(je){pe.current&&pe.current.scrollTo({index:je})},Ae=function(je){for(var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pe=ce.length,Ue=0;Ue1&&arguments[1]!==void 0?arguments[1]:!1;return Object(N.a)(X).map(function(k,Y){if(!h.isValidElement(k)||!k.type)return null;var J=k.type.isSelectOptGroup,te=k.key,ne=k.props,q=ne.children,ue=Object(o.a)(ne,["children"]);return P||!J?I(k):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(te===null?Y:te,"__"),label:te},ue),{},{options:b(q)})}).filter(function(k){return k})}var p=s("2Qr1"),C=s("qNPg"),F=s("U8pU"),z=s("Kwbf"),H=s("WKfj");function D(X){var P=X.mode,k=X.options,Y=X.children,J=X.backfill,te=X.allowClear,ne=X.placeholder,q=X.getInputElement,ue=X.showSearch,le=X.onSearch,ee=X.defaultOpen,se=X.autoFocus,Z=X.labelInValue,oe=X.value,L=X.inputValue,V=X.optionLabelProp,ae=P==="multiple"||P==="tags",Q=ue!==void 0?ue:ae||P==="combobox",G=k||b(Y);if(Object(z.a)(P!=="tags"||G.every(function($){return!$.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),P==="tags"||P==="combobox"){var R=G.some(function($){return $.options?$.options.some(function(ce){return typeof("value"in ce?ce.value:ce.key)=="number"}):typeof("value"in $?$.value:$.key)=="number"});Object(z.a)(!R,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(z.a)(P!=="combobox"||!V,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(z.a)(P==="combobox"||!J,"`backfill` only works with `combobox` mode."),Object(z.a)(P==="combobox"||!q,"`getInputElement` only work with `combobox` mode."),Object(z.b)(P!=="combobox"||!q||!te||!ne,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),le&&!Q&&P!=="combobox"&&P!=="tags"&&Object(z.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(z.b)(!ee||se,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),oe!=null){var U=Object(H.d)(oe);Object(z.a)(!Z||U.every(function($){return Object(F.a)($)==="object"&&("key"in $||"value"in $)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(z.a)(!ae||Array.isArray(oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(Y){var re=null;Object(N.a)(Y).some(function($){if(!h.isValidElement($)||!$.type)return!1;var ce=$.type;if(ce.isSelectOption)return!1;if(ce.isSelectOptGroup){var pe=Object(N.a)($.props.children).every(function(ge){return!h.isValidElement(ge)||!$.type||ge.type.isSelectOption?!0:(re=ge.type,!1)});return!pe}return re=ce,!0}),re&&Object(z.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(re.displayName||re.name||re,"`.")),Object(z.a)(L===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var K=D,B=Object(C.a)({prefixCls:"rc-select",components:{optionList:A},convertChildrenToData:b,flattenOptions:p.d,getLabeledValue:p.e,filterOptions:p.b,isValueDisabled:p.g,findValueOption:p.c,warningProps:K,fillOptionsWithMissingValue:p.a}),M=function(X){Object(x.a)(k,X);var P=Object(v.a)(k);function k(){var Y;return Object(d.a)(this,k),Y=P.apply(this,arguments),Y.selectRef=h.createRef(),Y.focus=function(){Y.selectRef.current.focus()},Y.blur=function(){Y.selectRef.current.blur()},Y}return Object(r.a)(k,[{key:"render",value:function(){return h.createElement(B,Object.assign({ref:this.selectRef},this.props))}}]),k}(h.Component);M.Option=O,M.OptGroup=S;var j=M,W=_.c=j},Lf5v:function(c,_,s){"use strict";var d=s("5NDa"),r=s("5rEg"),x=s("2qtc"),v=s("kLXV"),h=s("k1fw"),i=s("oBTY"),o=s("9og8"),e=s("miYZ"),a=s("tsqr"),n=s("y8nQ"),t=s("Vl3Y"),u=s("tJVT"),l=s("DZo9"),f=s("8z0m"),y=s("WmNS"),E=s.n(y),T=s("q1tI"),A=s.n(T),w=s("m3rI"),O=s("ErOA"),g=s("sckv"),S=s.n(g),m=s("KhGG"),N=s("1vsH"),I=f.a.Dragger,b=function(C){var F,z=C.dispatch,H=C.id,D=C.onClose,K=C.onOK,B=C.visible,M=C.wrapClassName,j=C.local,W=C.containerId,X=C.rootIdentifier,P=Object(T.useState)({}),k=Object(u.a)(P,2),Y=k[0],J=k[1],te=Object(T.useState)([]),ne=Object(u.a)(te,2),q=ne[0],ue=ne[1],le=Object(T.useState)([]),ee=Object(u.a)(le,2),se=ee[0],Z=ee[1],oe=Object(T.useState)(0),L=Object(u.a)(oe,2),V=L[0],ae=L[1],Q=Object(T.useState)(!1),G=Object(u.a)(Q,2),R=G[0],U=G[1],re=Object(T.useState)(!1),$=Object(u.a)(re,2),ce=$[0],pe=$[1],ge=t.a.useForm(),Ce=Object(u.a)(ge,1),Ae=Ce[0],Se=Object(T.useState)([]),Me=Object(u.a)(Se,2),fe=Me[0],he=Me[1],be=Object(T.useRef)([]);Object(T.useEffect)(function(){B&&(Ae.resetFields(),he([]),Z([]),ue([]),ae(0),pe(!1),U(!1))},[B]);var Ie=function(ve){if(ve.file.status==="done"||ve.file.status==="uploading"){var Ee,me,ie;if(he(ve.fileList),!ve.file.response)return;if((Ee=ve.file.response)!==null&&Ee!==void 0&&Ee.id){a.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}he(fe.filter(function(de){return de.uid!==ve.file.uid})),((me=ve.file.response)===null||me===void 0?void 0:me.message)&&a.b.info((ie=ve.file.response)===null||ie===void 0?void 0:ie.message)}},_e=function(){var Ne=Object(o.a)(E.a.mark(function ve(Ee){var me,ie,de;return E.a.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(V){ye.next=8;break}return ie=fe.filter(function(Te){return Te.uid!==Ee.uid}),he(ie),be.current=Object(i.a)(ie),ue(q.filter(function(Te){return Te!==Ee.name})),a.b.info("\u5220\u9664\u6210\u529F"),ie.length||(Ae.setFieldsValue({file:void 0}),Ae.validateFields()),ye.abrupt("return");case 8:if(Ee.response){ye.next=11;break}return a.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),ye.abrupt("return");case 11:return ye.next=13,Object(O.a)("/api/shixuns/".concat(H,"/destroy_data_sets.json"),{method:"Delete",body:{id:[Ee==null||((me=Ee.response)===null||me===void 0)?void 0:me.id]}});case 13:de=ye.sent,de.status===0&&(he(fe.filter(function(Te){return Te.uid!==Ee.uid})),a.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return ye.stop()}},ve)}));return function(Ee){return Ne.apply(this,arguments)}}(),Le=function(ve){if(fe!=null&&fe.some(function(me){return me.name===ve.name}))return a.b.info("".concat(ve.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var Ee={name:ve.name,uid:ve.uid,file:ve,percent:0};return fe.push(Ee),be.current=Object(i.a)(fe),he(Object(i.a)(fe)),!1},je={height:300,multiple:!0,disabled:V>0,withCredentials:!0,fileList:fe,action:"".concat(w.a.API_SERVER,"/api/attachments.json"),onChange:Ie,onRemove:_e,beforeUpload:Le},Oe=function(ve,Ee,me,ie,de){var we=new FormData;Object.keys(ve).forEach(function(Te){we.append(Te,ve[Te])});var ye=new window.XMLHttpRequest;return ye.withCredentials=!0,ye.addEventListener("load",function(Te){var Re;me(JSON.parse(Te==null||((Re=Te.target)===null||Re===void 0)?void 0:Re.response))},!1),ye.addEventListener("error",function(Te){de&&de(Te)},!1),ye.upload.onprogress=function(Te){ie&&ie(Te)},ye.open("POST",Ee),ye.send(we),ye},Pe=function(ve,Ee){if(ve.lengthComputable){var me=Math.floor(ve.loaded/ve.total*100),ie=Object(h.a)(Object(h.a)({},Ee),{},{percent:me,status:me===100?"done":"uploading"});console.log(be.current,333),be.current=be.current.map(function(de){return de.uid===Ee.uid?ie:de}),he(be.current)}},Ue=function(ve,Ee){var me=Object(h.a)(Object(h.a)({},Ee),{},{status:"error"});a.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),be.current=be.current.map(function(ie){return ie.uid===Ee.uid?me:ie}),be.current.every(function(ie){return ie.status==="done"||ie.status==="error"})&&(pe(!1),ae(2)),he(be.current)},Be=function(ve,Ee){var me=Object(h.a)(Object(h.a)({},Ee),{},{status:"done"});if(ve.status===0||(me=Object(h.a)(Object(h.a)({},Ee),{},{status:"error"}),a.b.error("\u4E0A\u4F20\u5931\u8D25!")),be.current=be.current.map(function(ie){return ie.uid===Ee.uid?me:ie}),be.current.every(function(ie){return ie.status==="done"})){a.b.success("\u4E0A\u4F20\u5B8C\u6210!"),He(!0);return}be.current.every(function(ie){return ie.status==="done"||ie.status==="error"})&&(pe(!1),ae(2)),he(be.current)},ke=function(){var ve=!0;return window.navigator.onLine==!0?ve=!0:ve=!1,ve},Ge=function(){var Ne=Object(o.a)(E.a.mark(function ve(Ee){var me,ie,de,we,ye,Te,Re,xe;return E.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(pe(!0),!(V===3)){Fe.next=4;break}return ae(2),Fe.abrupt("return");case 4:if(!(V===2||V===1)){Fe.next=7;break}return ze(),Fe.abrupt("return");case 7:return me=Ee||{},ie=me.commitMessage,de=ie===void 0?"":ie,we=me.fileOss,ye=we===void 0?[]:we,Te=j?fe:ye,Re=Te.map(function(Je){return Je.name}),Fe.next=12,Object(O.a)("/api/shixuns/".concat(H,"/check_data_sets"),{method:"post",body:{files_name:Re}});case 12:if(xe=Fe.sent,!(xe.status===-3)){Fe.next=17;break}return ue(xe==null?void 0:xe.exist_files),pe(!1),Fe.abrupt("return");case 17:if(!(JSON.stringify(xe)==="{}")){Fe.next=21;break}return pe(!1),a.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),Fe.abrupt("return");case 21:xe.status===0&&(fe.forEach(function(Je){var Ye=Oe({file:Je.file,description:de},"".concat(w.a.API_SERVER,"/api/shixuns/").concat(H,"/upload_data_sets.json"),function(Qe){return Be(Qe,Je)},function(Qe){return Pe(Qe,Je)},function(Qe){return Ue(Qe,Je)});se.push(Ye)}),ae(1));case 22:case"end":return Fe.stop()}},ve)}));return function(Ee){return Ne.apply(this,arguments)}}(),ze=function(){var ve=Object(h.a)({},Ae.getFieldsValue())||{},Ee=ve.commitMessage,me=Ee===void 0?"":Ee,ie=be.current.filter(function(we){return we.status==="error"}),de=be.current.map(function(we){return Object(h.a)(Object(h.a)({},we),{},{status:we.status==="error"?"uploading":we.status})});he(de),ie.forEach(function(we){var ye=Oe({file:we.file,description:me},"".concat(w.a.API_SERVER,"/api/shixuns/").concat(H,"/upload_data_sets.json"),function(Te){return Be(Te,we)},function(Te){return Pe(Te,we)},function(Te){return Ue(Te,we)});se.push(ye)})},Xe=function(ve){if(console.log(ve,"changedValues"),"fileOss"in ve){var Ee,me;if(ve!=null&&ve.fileOss.every(function(ie){return ie.status==="done"})&&ve!==null&&ve!==void 0&&(Ee=ve.fileOss)!==null&&Ee!==void 0&&Ee.length){a.b.success("\u4E0A\u4F20\u5B8C\u6210!"),He(!0);return}if(ve!=null&&ve.fileOss.every(function(ie){return ie.status==="done"||ie.status==="error"})&&ve!==null&&ve!==void 0&&(me=ve.fileOss)!==null&&me!==void 0&&me.length){ae(3),pe(!1);return}ue(q.filter(function(ie){var de;return ve==null||((de=ve.fileOss)===null||de===void 0)?void 0:de.some(function(we){return we.name===ie})}))}J(Object(h.a)({},Ae.getFieldsValue()))},He=function(ve){ve||(U(!0),se.forEach(function(Ee){Ee.abort()})),K(),D()},We=function(){var ve=Object(h.a)({},Ae.getFieldsValue())||{},Ee=ve.fileOss,me=Ee===void 0?[]:Ee,ie=fe==null?void 0:fe.every(function(we){return we.status==="done"}),de=me==null?void 0:me.every(function(we){return we.status==="done"});if(!ie||!de){v.a.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){He()}});return}He()},Ke=function(){return A.a.createElement(A.a.Fragment,null,A.a.createElement("div",null,A.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(S.a.colorBlue)})),A.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",A.a.createElement("span",{className:"".concat(S.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},Ve=function(ve){console.log(ve,444)};return A.a.createElement(v.a,{visible:B,wrapClassName:M,onOk:function(){Object(N.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),Ae.submit()},centered:!0,okText:V===0?"\u786E\u5B9A":V===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:ce},onCancel:We,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},A.a.createElement("div",{className:S.a.wrap},A.a.createElement(t.a,{className:"mt10",form:Ae,scrollToFirstError:!0,layout:"vertical",onFinish:Ge,onValuesChange:Xe},j?A.a.createElement(t.a.Item,{label:A.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",A.a.createElement("span",{style:{visibility:"hidden"},className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7500M)")),name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},A.a.createElement(I,je," ",Ke())):A.a.createElement(t.a.Item,{label:A.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",A.a.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7100GB)")),name:"fileOss",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},A.a.createElement(m.b,{identifier:X,cancelUpload:R,container_type:"Shixun",container_id:W,uploading:V<3?V:0,disabled:V>0,height:300,maxSize:100*1024*1024*1024,description:Y.commitMessage||"",text:Ke(),onComplete:Ve,realFileName:!0})),!!q.length&&A.a.createElement("span",{className:S.a.repeatedName},q.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),A.a.createElement(t.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},A.a.createElement(r.a,{bordered:!1,disabled:V>0,maxLength:100,suffix:"".concat(((F=Y.commitMessage)===null||F===void 0?void 0:F.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};_.a=b},MEGo:function(c,_,s){var d=s("4fz+"),r=s("Dagg"),x=s("dqUG"),v=s("2fw6"),h=s("x6Kt"),i=s("rmlV"),o=s("yxFR"),e=s("y+Vt"),a=s("h7HQ"),n=s("1Jh7"),t=s("SKnc"),u=s("K2GJ"),l=s("Fofx"),f=s("NC18"),y=f.createFromString,E=s("bYtY"),T=E.isString,A=E.extend,w=E.defaults,O=E.trim,g=E.each,S=/[\s,]+/;function m(k){if(T(k)){var Y=new DOMParser;k=Y.parseFromString(k,"text/xml")}for(k.nodeType===9&&(k=k.firstChild);k.nodeName.toLowerCase()!=="svg"||k.nodeType!==1;)k=k.nextSibling;return k}function N(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}N.prototype.parse=function(k,Y){Y=Y||{};var J=m(k);if(!J)throw new Error("Illegal svg");var te=new d;this._root=te;var ne=J.getAttribute("viewBox")||"",q=parseFloat(J.getAttribute("width")||Y.width),ue=parseFloat(J.getAttribute("height")||Y.height);isNaN(q)&&(q=null),isNaN(ue)&&(ue=null),H(J,te,null,!0);for(var le=J.firstChild;le;)this._parseNode(le,te),le=le.nextSibling;var ee,se;if(ne){var Z=O(ne).split(S);Z.length>=4&&(ee={x:parseFloat(Z[0]||0),y:parseFloat(Z[1]||0),width:parseFloat(Z[2]),height:parseFloat(Z[3])})}if(ee&&q!=null&&ue!=null&&(se=X(ee,q,ue),!Y.ignoreViewBox)){var oe=te;te=new d,te.add(oe),oe.scale=se.scale.slice(),oe.position=se.position.slice()}return!Y.ignoreRootClip&&q!=null&&ue!=null&&te.setClipPath(new h({shape:{x:0,y:0,width:q,height:ue}})),{root:te,width:q,height:ue,viewBoxRect:ee,viewBoxTransform:se}},N.prototype._parseNode=function(k,Y){var J=k.nodeName.toLowerCase();J==="defs"?this._isDefine=!0:J==="text"&&(this._isText=!0);var te;if(this._isDefine){var ne=b[J];if(ne){var q=ne.call(this,k),ue=k.getAttribute("id");ue&&(this._defs[ue]=q)}}else{var ne=I[J];ne&&(te=ne.call(this,k,Y),Y.add(te))}for(var le=k.firstChild;le;)le.nodeType===1&&this._parseNode(le,te),le.nodeType===3&&this._isText&&this._parseText(le,te),le=le.nextSibling;J==="defs"?this._isDefine=!1:J==="text"&&(this._isText=!1)},N.prototype._parseText=function(k,Y){if(k.nodeType===1){var J=k.getAttribute("dx")||0,te=k.getAttribute("dy")||0;this._textX+=parseFloat(J),this._textY+=parseFloat(te)}var ne=new x({style:{text:k.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});C(Y,ne),H(k,ne,this._defs);var q=ne.style.fontSize;q&&q<9&&(ne.style.fontSize=9,ne.scale=ne.scale||[1,1],ne.scale[0]*=q/9,ne.scale[1]*=q/9);var ue=ne.getBoundingRect();return this._textX+=ue.width,Y.add(ne),ne};var I={g:function(k,Y){var J=new d;return C(Y,J),H(k,J,this._defs),J},rect:function(k,Y){var J=new h;return C(Y,J),H(k,J,this._defs),J.setShape({x:parseFloat(k.getAttribute("x")||0),y:parseFloat(k.getAttribute("y")||0),width:parseFloat(k.getAttribute("width")||0),height:parseFloat(k.getAttribute("height")||0)}),J},circle:function(k,Y){var J=new v;return C(Y,J),H(k,J,this._defs),J.setShape({cx:parseFloat(k.getAttribute("cx")||0),cy:parseFloat(k.getAttribute("cy")||0),r:parseFloat(k.getAttribute("r")||0)}),J},line:function(k,Y){var J=new o;return C(Y,J),H(k,J,this._defs),J.setShape({x1:parseFloat(k.getAttribute("x1")||0),y1:parseFloat(k.getAttribute("y1")||0),x2:parseFloat(k.getAttribute("x2")||0),y2:parseFloat(k.getAttribute("y2")||0)}),J},ellipse:function(k,Y){var J=new i;return C(Y,J),H(k,J,this._defs),J.setShape({cx:parseFloat(k.getAttribute("cx")||0),cy:parseFloat(k.getAttribute("cy")||0),rx:parseFloat(k.getAttribute("rx")||0),ry:parseFloat(k.getAttribute("ry")||0)}),J},polygon:function(k,Y){var J=k.getAttribute("points");J&&(J=F(J));var te=new a({shape:{points:J||[]}});return C(Y,te),H(k,te,this._defs),te},polyline:function(k,Y){var J=new e;C(Y,J),H(k,J,this._defs);var te=k.getAttribute("points");te&&(te=F(te));var ne=new n({shape:{points:te||[]}});return ne},image:function(k,Y){var J=new r;return C(Y,J),H(k,J,this._defs),J.setStyle({image:k.getAttribute("xlink:href"),x:k.getAttribute("x"),y:k.getAttribute("y"),width:k.getAttribute("width"),height:k.getAttribute("height")}),J},text:function(k,Y){var J=k.getAttribute("x")||0,te=k.getAttribute("y")||0,ne=k.getAttribute("dx")||0,q=k.getAttribute("dy")||0;this._textX=parseFloat(J)+parseFloat(ne),this._textY=parseFloat(te)+parseFloat(q);var ue=new d;return C(Y,ue),H(k,ue,this._defs),ue},tspan:function(k,Y){var J=k.getAttribute("x"),te=k.getAttribute("y");J!=null&&(this._textX=parseFloat(J)),te!=null&&(this._textY=parseFloat(te));var ne=k.getAttribute("dx")||0,q=k.getAttribute("dy")||0,ue=new d;return C(Y,ue),H(k,ue,this._defs),this._textX+=ne,this._textY+=q,ue},path:function(k,Y){var J=k.getAttribute("d")||"",te=y(J);return C(Y,te),H(k,te,this._defs),te}},b={lineargradient:function(k){var Y=parseInt(k.getAttribute("x1")||0,10),J=parseInt(k.getAttribute("y1")||0,10),te=parseInt(k.getAttribute("x2")||10,10),ne=parseInt(k.getAttribute("y2")||0,10),q=new t(Y,J,te,ne);return p(k,q),q},radialgradient:function(k){}};function p(k,Y){for(var J=k.firstChild;J;){if(J.nodeType===1){var te=J.getAttribute("offset");te.indexOf("%")>0?te=parseInt(te,10)/100:te?te=parseFloat(te):te=0;var ne=J.getAttribute("stop-color")||"#000000";Y.addColorStop(te,ne)}J=J.nextSibling}}function C(k,Y){k&&k.__inheritedStyle&&(Y.__inheritedStyle||(Y.__inheritedStyle={}),w(Y.__inheritedStyle,k.__inheritedStyle))}function F(k){for(var Y=O(k).split(S),J=[],te=0;te0;q-=2){var ue=ne[q],le=ne[q-1];te=te||l.create();switch(le){case"translate":ue=O(ue).split(S),l.translate(te,te,[parseFloat(ue[0]),parseFloat(ue[1]||0)]);break;case"scale":ue=O(ue).split(S),l.scale(te,te,[parseFloat(ue[0]),parseFloat(ue[1]||ue[0])]);break;case"rotate":ue=O(ue).split(S),l.rotate(te,te,parseFloat(ue[0]));break;case"skew":ue=O(ue).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var ue=O(ue).split(S);te[0]=parseFloat(ue[0]),te[1]=parseFloat(ue[1]),te[2]=parseFloat(ue[2]),te[3]=parseFloat(ue[3]),te[4]=parseFloat(ue[4]),te[5]=parseFloat(ue[5]);break}}Y.setLocalTransform(te)}}var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(k){var Y=k.getAttribute("style"),J={};if(!Y)return J;var te={};j.lastIndex=0;for(var ne;(ne=j.exec(Y))!=null;)te[ne[1]]=ne[2];for(var q in z)z.hasOwnProperty(q)&&te[q]!=null&&(J[z[q]]=te[q]);return J}function X(k,Y,J){var te=Y/k.width,ne=J/k.height,q=Math.min(te,ne),ue=[q,q],le=[-(k.x+k.width/2)*q+Y/2,-(k.y+k.height/2)*q+J/2];return{scale:ue,position:le}}function P(k,Y){var J=new N;return J.parse(k,Y)}_.parseXML=m,_.makeViewBoxTransform=X,_.parseSVG=P},MKOG:function(c,_,s){var d=s("bYtY"),r=s("YH21"),x=r.Dispatcher,v=s("mLcG"),h=s("Bq2U"),i=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,x.call(this)};i.prototype={constructor:i,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var a=e.getClips(),n=0;n=0&&this._clips.splice(a,1)},removeAnimator:function(e){for(var a=e.getClips(),n=0;n1&&(I*=v(K),b*=v(K));var B=(m===N?-1:1)*v((I*I*(b*b)-I*I*(D*D)-b*b*(H*H))/(I*I*(D*D)+b*b*(H*H)))||0,M=B*I*D/b,j=B*-b*H/I,W=(w+g)/2+i(z)*M-h(z)*j,X=(O+S)/2+h(z)*M+i(z)*j,P=n([1,0],[(H-M)/I,(D-j)/b]),k=[(H-M)/I,(D-j)/b],Y=[(-1*H-M)/I,(-1*D-j)/b],J=n(k,Y);a(k,Y)<=-1&&(J=o),a(k,Y)>=1&&(J=0),N===0&&J>0&&(J=J-2*o),N===1&&J<0&&(J=J+2*o),F.addData(C,W,X,I,b,P,J,z,N)}var u=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,l=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function f(w){if(!w)return new r;for(var O=0,g=0,S=O,m=g,N,I=new r,b=r.CMD,p=w.match(u),C=0;C1&&arguments[1]!==void 0?arguments[1]:60,h=null;return function(){for(var i=this,o=arguments.length,e=new Array(o),a=0;a=0;E-=1){var T=e.get(E)||new Set;T.forEach(function(A){var w=A.parent,O=A.node;if(n(O)||!A.parent||y.has(A.parent.key))return;if(n(A.parent.node)){y.add(w.key);return}var g=!0,S=!1;(w.children||[]).filter(function(m){return!n(m.node)}).forEach(function(m){var N=m.key,I=t.has(N);g&&!I&&(g=!1),!S&&(I||u.has(N))&&(S=!0)}),g&&t.add(w.key),S&&u.add(w.key),y.add(w.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(r(u,t))}}function h(o,e,a,n,t){for(var u=new Set(o),l=new Set(e),f=0;f<=n;f+=1){var y=a.get(f)||new Set;y.forEach(function(w){var O=w.key,g=w.node,S=w.children,m=S===void 0?[]:S;!u.has(O)&&!l.has(O)&&!t(g)&&m.filter(function(N){return!t(N.node)}).forEach(function(N){u.delete(N.key)})})}l=new Set;for(var E=new Set,T=n;T>=0;T-=1){var A=a.get(T)||new Set;A.forEach(function(w){var O=w.parent,g=w.node;if(t(g)||!w.parent||E.has(w.parent.key))return;if(t(w.parent.node)){E.add(O.key);return}var S=!0,m=!1;(O.children||[]).filter(function(N){return!t(N.node)}).forEach(function(N){var I=N.key,b=u.has(I);S&&!b&&(S=!1),!m&&(b||l.has(I))&&(m=!0)}),S||u.delete(O.key),m&&l.add(O.key),E.add(O.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(r(l,u))}}function i(o,e,a,n){var t=[],u;n?u=n:u=x;var l=new Set(o.filter(function(T){var A=!!a[T];return A||t.push(T),A})),f=new Map,y=0;Object.keys(a).forEach(function(T){var A=a[T],w=A.level,O=f.get(w);O||(O=new Set,f.set(w,O)),O.add(A),y=Math.max(y,w)}),Object(d.a)(!t.length,"Tree missing follow keys: ".concat(t.slice(0,100).map(function(T){return"'".concat(T,"'")}).join(", ")));var E;return e===!0?E=v(l,f,y,u):E=h(l,e.halfCheckedKeys,f,y,u),E}},OLES:function(c,_,s){"use strict";var d=s("U8pU"),r=s("VTBJ"),x=s("Ff2n"),v=s("q1tI"),h=s("uciX"),i=s("7ixt"),o=function(l){var f=l.overlay,y=l.prefixCls,E=l.id,T=l.overlayInnerStyle;return v.createElement("div",{className:"".concat(y,"-inner"),id:E,role:"tooltip",style:T},typeof f=="function"?f():f)},e=o,a=function(l,f){var y=l.overlayClassName,E=l.trigger,T=E===void 0?["hover"]:E,A=l.mouseEnterDelay,w=A===void 0?0:A,O=l.mouseLeaveDelay,g=O===void 0?.1:O,S=l.overlayStyle,m=l.prefixCls,N=m===void 0?"rc-tooltip":m,I=l.children,b=l.onVisibleChange,p=l.afterVisibleChange,C=l.transitionName,F=l.animation,z=l.placement,H=z===void 0?"right":z,D=l.align,K=D===void 0?{}:D,B=l.destroyTooltipOnHide,M=B===void 0?!1:B,j=l.defaultVisible,W=l.getTooltipContainer,X=l.overlayInnerStyle,P=Object(x.a)(l,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),k=Object(v.useRef)(null);Object(v.useImperativeHandle)(f,function(){return k.current});var Y=Object(r.a)({},P);"visible"in l&&(Y.popupVisible=l.visible);var J=function(){var le=l.arrowContent,ee=le===void 0?null:le,se=l.overlay,Z=l.id;return[v.createElement("div",{className:"".concat(N,"-arrow"),key:"arrow"},ee),v.createElement(e,{key:"content",prefixCls:N,id:Z,overlay:se,overlayInnerStyle:X})]},te=!1,ne=!1;if(typeof M=="boolean")te=M;else if(M&&Object(d.a)(M)==="object"){var q=M.keepParent;te=q===!0,ne=q===!1}return v.createElement(h.a,Object.assign({popupClassName:y,prefixCls:N,popup:J,action:T,builtinPlacements:i.a,popupPlacement:H,ref:k,popupAlign:K,getPopupContainer:W,onPopupVisibleChange:b,afterPopupVisibleChange:p,popupTransitionName:C,popupAnimation:F,defaultPopupVisible:j,destroyPopupOnHide:te,autoDestroy:ne,mouseLeaveDelay:g,popupStyle:S,mouseEnterDelay:w},Y),I)},n=Object(v.forwardRef)(a),t=_.a=n},OLod:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("K3mO"))})(this,function(d){d.lib.Cipher||function(r){var x=d,v=x.lib,h=v.Base,i=v.WordArray,o=v.BufferedBlockAlgorithm,e=x.enc,a=e.Utf8,n=e.Base64,t=x.algo,u=t.EvpKDF,l=v.Cipher=o.extend({cfg:h.extend(),createEncryptor:function(C,F){return this.create(this._ENC_XFORM_MODE,C,F)},createDecryptor:function(C,F){return this.create(this._DEC_XFORM_MODE,C,F)},init:function(C,F,z){this.cfg=this.cfg.extend(z),this._xformMode=C,this._key=F,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var F=this._doFinalize();return F},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(F){return typeof F=="string"?p:N}return function(F){return{encrypt:function(z,H,D){return C(H).encrypt(F,z,H,D)},decrypt:function(z,H,D){return C(H).decrypt(F,z,H,D)}}}}()}),f=v.StreamCipher=l.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1}),y=x.mode={},E=v.BlockCipherMode=h.extend({createEncryptor:function(C,F){return this.Encryptor.create(C,F)},createDecryptor:function(C,F){return this.Decryptor.create(C,F)},init:function(C,F){this._cipher=C,this._iv=F}}),T=y.CBC=function(){var C=E.extend();C.Encryptor=C.extend({processBlock:function(z,H){var D=this._cipher,K=D.blockSize;F.call(this,z,H,K),D.encryptBlock(z,H),this._prevBlock=z.slice(H,H+K)}}),C.Decryptor=C.extend({processBlock:function(z,H){var D=this._cipher,K=D.blockSize,B=z.slice(H,H+K);D.decryptBlock(z,H),F.call(this,z,H,K),this._prevBlock=B}});function F(z,H,D){var K,B=this._iv;B?(K=B,this._iv=r):K=this._prevBlock;for(var M=0;M>>2]&255;C.sigBytes-=F}},O=v.BlockCipher=l.extend({cfg:l.cfg.extend({mode:T,padding:w}),reset:function(){var C;l.reset.call(this);var F=this.cfg,z=F.iv,H=F.mode;this._xformMode==this._ENC_XFORM_MODE?C=H.createEncryptor:(C=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,z&&z.words):(this._mode=C.call(H,this,z&&z.words),this._mode.__creator=C)},_doProcessBlock:function(C,F){this._mode.processBlock(C,F)},_doFinalize:function(){var C,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),F.unpad(C)),C},blockSize:128/32}),g=v.CipherParams=h.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),S=x.format={},m=S.OpenSSL={stringify:function(C){var F,z=C.ciphertext,H=C.salt;return H?F=i.create([1398893684,1701076831]).concat(H).concat(z):F=z,F.toString(n)},parse:function(C){var F,z=n.parse(C),H=z.words;return H[0]==1398893684&&H[1]==1701076831&&(F=i.create(H.slice(2,4)),H.splice(0,4),z.sigBytes-=16),g.create({ciphertext:z,salt:F})}},N=v.SerializableCipher=h.extend({cfg:h.extend({format:m}),encrypt:function(C,F,z,H){H=this.cfg.extend(H);var D=C.createEncryptor(z,H),K=D.finalize(F),B=D.cfg;return g.create({ciphertext:K,key:z,iv:B.iv,algorithm:C,mode:B.mode,padding:B.padding,blockSize:C.blockSize,formatter:H.format})},decrypt:function(C,F,z,H){H=this.cfg.extend(H),F=this._parse(F,H.format);var D=C.createDecryptor(z,H).finalize(F.ciphertext);return D},_parse:function(C,F){return typeof C=="string"?F.parse(C,this):C}}),I=x.kdf={},b=I.OpenSSL={execute:function(C,F,z,H){H||(H=i.random(64/8));var D=u.create({keySize:F+z}).compute(C,H),K=i.create(D.words.slice(F),z*4);return D.sigBytes=F*4,g.create({key:D,iv:K,salt:H})}},p=v.PasswordBasedCipher=N.extend({cfg:N.cfg.extend({kdf:b}),encrypt:function(C,F,z,H){H=this.cfg.extend(H);var D=H.kdf.execute(z,C.keySize,C.ivSize);H.iv=D.iv;var K=N.encrypt.call(this,C,F,D.key,H);return K.mixIn(D),K},decrypt:function(C,F,z,H){H=this.cfg.extend(H),F=this._parse(F,H.format);var D=H.kdf.execute(z,C.keySize,C.ivSize,F.salt);H.iv=D.iv;var K=N.decrypt.call(this,C,F,D.key,H);return K}})}()})},OS9S:function(c,_,s){var d=s("bYtY"),r=d.inherits,x=s("Gev7"),v=s("mFDi");function h(e){x.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}h.prototype.incremental=!0,h.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},h.prototype.addDisplayable=function(e,a){a?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},h.prototype.addDisplayables=function(e,a){a=a||!1;for(var n=0;n=0&&I.splice(b,1),I}function t(m,N){var I=m.slice();return I.indexOf(N)===-1&&I.push(N),I}function u(m){return m.split("-")}function l(m,N){return"".concat(m,"-").concat(N)}function f(m){return m&&m.type&&m.type.isTreeNode}function y(m,N){var I=[m],b=N[m];function p(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];C.forEach(function(F){var z=F.key,H=F.children;I.push(z),p(H)})}return p(b.children),I}function E(m,N){var I=m.clientY,b=N.selectHandle.getBoundingClientRect(),p=b.top,C=b.bottom,F=b.height,z=Math.max(F*e,a);return I<=p+z?-1:I>=C-z?1:0}function T(m,N){if(!m)return;var I=N.multiple;return I?m.slice():m.length?[m[0]]:m}var A=function(N){return N};function w(m,N){if(!m)return[];var I=N||{},b=I.processProps,p=b===void 0?A:b,C=Array.isArray(m)?m:[m];return C.map(function(F){var z=F.children,H=Object(x.a)(F,["children"]),D=w(z,N);return h.a.createElement(o.a,Object.assign({},p(H)),D)})}function O(m){if(!m)return null;var N;if(Array.isArray(m))N={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(r.a)(m)==="object")N={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(i.a)(!1,"`checkedKeys` is not an array or an object"),null;return N}function g(m,N){var I=new Set;function b(p){if(I.has(p))return;var C=N[p];if(!C)return;I.add(p);var F=C.parent,z=C.node;if(z.disabled)return;F&&b(F.key)}return(m||[]).forEach(function(p){b(p)}),Object(d.a)(I)}function S(m){var N={};return Object.keys(m).forEach(function(I){(I.startsWith("data-")||I.startsWith("aria-"))&&(N[I]=m[I])}),N}},Ohmc:function(c,_,s){c.exports=s.p+"static/certificate.fc32dc1b.jpg"},P47w:function(c,_,s){var d=s("hydK"),r=d.createElement,x=s("IMiH"),v=s("mFDi"),h=s("Fofx"),i=s("6GrX"),o=s("pzxd"),e=s("dqUG"),a=x.CMD,n=Array.prototype.join,t="none",u=Math.round,l=Math.sin,f=Math.cos,y=Math.PI,E=Math.PI*2,T=180/y,A=1e-4;function w(k){return u(k*1e4)/1e4}function O(k){return k-A}function g(k,Y){var J=Y?k.textFill:k.fill;return J!=null&&J!==t}function S(k,Y){var J=Y?k.textStroke:k.stroke;return J!=null&&J!==t}function m(k,Y){Y&&N(k,"transform","matrix("+n.call(Y,",")+")")}function N(k,Y,J){(!J||J.type!=="linear"&&J.type!=="radial")&&k.setAttribute(Y,J)}function I(k,Y,J){k.setAttributeNS("http://www.w3.org/1999/xlink",Y,J)}function b(k,Y,J,te){if(g(Y,J)){var ne=J?Y.textFill:Y.fill;ne=ne==="transparent"?t:ne,N(k,"fill",ne),N(k,"fill-opacity",Y.fillOpacity!=null?Y.fillOpacity*Y.opacity:Y.opacity)}else N(k,"fill",t);if(S(Y,J)){var q=J?Y.textStroke:Y.stroke;q=q==="transparent"?t:q,N(k,"stroke",q);var ue=J?Y.textStrokeWidth:Y.lineWidth,le=!J&&Y.strokeNoScale?te.getLineScale():1;N(k,"stroke-width",ue/le),N(k,"paint-order",J?"stroke":"fill"),N(k,"stroke-opacity",Y.strokeOpacity!=null?Y.strokeOpacity:Y.opacity);var ee=Y.lineDash;ee?(N(k,"stroke-dasharray",Y.lineDash.join(",")),N(k,"stroke-dashoffset",u(Y.lineDashOffset||0))):N(k,"stroke-dasharray",""),Y.lineCap&&N(k,"stroke-linecap",Y.lineCap),Y.lineJoin&&N(k,"stroke-linejoin",Y.lineJoin),Y.miterLimit&&N(k,"stroke-miterlimit",Y.miterLimit)}else N(k,"stroke",t)}function p(k){for(var Y=[],J=k.data,te=k.len(),ne=0;ne=E:-V>=E),U=V>0?V%E:V%E+E,re=!1;R?re=!0:O(G)?re=!1:re=U>=y===!!Q;var $=w(ee+Z*f(L)),ce=w(se+oe*l(L));R&&(Q?V=E-1e-4:V=-E+1e-4,re=!0,ne===9&&Y.push("M",$,ce));var pe=w(ee+Z*f(L+V)),ge=w(se+oe*l(L+V));Y.push("A",w(Z),w(oe),u(ae*T),+re,+Q,pe,ge);break;case a.Z:ue="Z";break;case a.R:var pe=w(J[ne++]),ge=w(J[ne++]),Ce=w(J[ne++]),Ae=w(J[ne++]);Y.push("M",pe,ge,"L",pe+Ce,ge,"L",pe+Ce,ge+Ae,"L",pe,ge+Ae,"L",pe,ge);break}ue&&Y.push(ue);for(var Se=0;SeMe){for(;Ae>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],f=this._C=[t[2]<<16|t[2]>>>16,t[0]&4294901760|t[1]&65535,t[3]<<16|t[3]>>>16,t[1]&4294901760|t[2]&65535,t[0]<<16|t[0]>>>16,t[2]&4294901760|t[3]&65535,t[1]<<16|t[1]>>>16,t[3]&4294901760|t[0]&65535];this._b=0;for(var y=0;y<4;y++)n.call(this);for(var y=0;y<8;y++)f[y]^=l[y+4&7];if(u){var E=u.words,T=E[0],A=E[1],w=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,O=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,g=w>>>16|O&4294901760,S=O<<16|w&65535;f[0]^=w,f[1]^=g,f[2]^=O,f[3]^=S,f[4]^=w,f[5]^=g,f[6]^=O,f[7]^=S;for(var y=0;y<4;y++)n.call(this)}},_doProcessBlock:function(t,u){var l=this._X;n.call(this),i[0]=l[0]^l[5]>>>16^l[3]<<16,i[1]=l[2]^l[7]>>>16^l[5]<<16,i[2]=l[4]^l[1]>>>16^l[7]<<16,i[3]=l[6]^l[3]>>>16^l[1]<<16;for(var f=0;f<4;f++)i[f]=(i[f]<<8|i[f]>>>24)&16711935|(i[f]<<24|i[f]>>>8)&4278255360,t[u+f]^=i[f]},blockSize:128/32,ivSize:64/32});function n(){for(var t=this._X,u=this._C,l=0;l<8;l++)o[l]=u[l];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0>>0?1:0)|0,this._b=u[7]>>>0>>0?1:0;for(var l=0;l<8;l++){var f=t[l]+u[l],y=f&65535,E=f>>>16,T=((y*y>>>17)+y*E>>>15)+E*E,A=((f&4294901760)*f|0)+((f&65535)*f|0);e[l]=T^A}t[0]=e[0]+(e[7]<<16|e[7]>>>16)+(e[6]<<16|e[6]>>>16)|0,t[1]=e[1]+(e[0]<<8|e[0]>>>24)+e[7]|0,t[2]=e[2]+(e[1]<<16|e[1]>>>16)+(e[0]<<16|e[0]>>>16)|0,t[3]=e[3]+(e[2]<<8|e[2]>>>24)+e[1]|0,t[4]=e[4]+(e[3]<<16|e[3]>>>16)+(e[2]<<16|e[2]>>>16)|0,t[5]=e[5]+(e[4]<<8|e[4]>>>24)+e[3]|0,t[6]=e[6]+(e[5]<<16|e[5]>>>16)+(e[4]<<16|e[4]>>>16)|0,t[7]=e[7]+(e[6]<<8|e[6]>>>24)+e[5]|0}r.RabbitLegacy=v._createHelper(a)}(),d.RabbitLegacy})},QBsz:function(c,_){var s=typeof Float32Array=="undefined"?Array:Float32Array;function d(b,p){var C=new s(2);return b==null&&(b=0),p==null&&(p=0),C[0]=b,C[1]=p,C}function r(b,p){return b[0]=p[0],b[1]=p[1],b}function x(b){var p=new s(2);return p[0]=b[0],p[1]=b[1],p}function v(b,p,C){return b[0]=p,b[1]=C,b}function h(b,p,C){return b[0]=p[0]+C[0],b[1]=p[1]+C[1],b}function i(b,p,C,F){return b[0]=p[0]+C[0]*F,b[1]=p[1]+C[1]*F,b}function o(b,p,C){return b[0]=p[0]-C[0],b[1]=p[1]-C[1],b}function e(b){return Math.sqrt(n(b))}var a=e;function n(b){return b[0]*b[0]+b[1]*b[1]}var t=n;function u(b,p,C){return b[0]=p[0]*C[0],b[1]=p[1]*C[1],b}function l(b,p,C){return b[0]=p[0]/C[0],b[1]=p[1]/C[1],b}function f(b,p){return b[0]*p[0]+b[1]*p[1]}function y(b,p,C){return b[0]=p[0]*C,b[1]=p[1]*C,b}function E(b,p){var C=e(p);return C===0?(b[0]=0,b[1]=0):(b[0]=p[0]/C,b[1]=p[1]/C),b}function T(b,p){return Math.sqrt((b[0]-p[0])*(b[0]-p[0])+(b[1]-p[1])*(b[1]-p[1]))}var A=T;function w(b,p){return(b[0]-p[0])*(b[0]-p[0])+(b[1]-p[1])*(b[1]-p[1])}var O=w;function g(b,p){return b[0]=-p[0],b[1]=-p[1],b}function S(b,p,C,F){return b[0]=p[0]+F*(C[0]-p[0]),b[1]=p[1]+F*(C[1]-p[1]),b}function m(b,p,C){var F=p[0],z=p[1];return b[0]=C[0]*F+C[2]*z+C[4],b[1]=C[1]*F+C[3]*z+C[5],b}function N(b,p,C){return b[0]=Math.min(p[0],C[0]),b[1]=Math.min(p[1],C[1]),b}function I(b,p,C){return b[0]=Math.max(p[0],C[0]),b[1]=Math.max(p[1],C[1]),b}_.create=d,_.copy=r,_.clone=x,_.set=v,_.add=h,_.scaleAndAdd=i,_.sub=o,_.len=e,_.length=a,_.lenSquare=n,_.lengthSquare=t,_.mul=u,_.div=l,_.dot=f,_.scale=y,_.normalize=E,_.distance=T,_.dist=A,_.distanceSquare=w,_.distSquare=O,_.negate=g,_.lerp=S,_.applyTransform=m,_.min=N,_.max=I},"QO+J":function(c,_,s){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.createSensor=void 0;var d=x(s("NohK")),r=s("24YM");function x(h){return h&&h.__esModule?h:{default:h}}var v=function(i){var o=void 0,e=[],a=function(){getComputedStyle(i).position==="static"&&(i.style.position="relative");var y=document.createElement("object");return y.onload=function(){y.contentDocument.defaultView.addEventListener("resize",n),n()},y.style.display="block",y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.height="100%",y.style.width="100%",y.style.overflow="hidden",y.style.pointerEvents="none",y.style.zIndex="-1",y.style.opacity="0",y.setAttribute("class",r.SensorClassName),y.setAttribute("tabindex",r.SensorTabIndex),y.type="text/html",i.appendChild(y),y.data="about:blank",y},n=(0,d.default)(function(){e.forEach(function(f){f(i)})}),t=function(y){o||(o=a()),e.indexOf(y)===-1&&e.push(y)},u=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",n),o.parentNode.removeChild(o),o=void 0,e=[])},l=function(y){var E=e.indexOf(y);E!==-1&&e.splice(E,1),e.length===0&&o&&u()};return{element:i,bind:t,destroy:u,unbind:l}};_.createSensor=v},Qe9p:function(c,_,s){var d=s("1RvN"),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function x(p){return p=Math.round(p),p<0?0:p>255?255:p}function v(p){return p=Math.round(p),p<0?0:p>360?360:p}function h(p){return p<0?0:p>1?1:p}function i(p){return p.length&&p.charAt(p.length-1)==="%"?x(parseFloat(p)/100*255):x(parseInt(p,10))}function o(p){return p.length&&p.charAt(p.length-1)==="%"?h(parseFloat(p)/100):h(parseFloat(p))}function e(p,C,F){return F<0?F+=1:F>1&&(F-=1),F*6<1?p+(C-p)*F*6:F*2<1?C:F*3<2?p+(C-p)*(2/3-F)*6:p}function a(p,C,F){return p+(C-p)*F}function n(p,C,F,z,H){return p[0]=C,p[1]=F,p[2]=z,p[3]=H,p}function t(p,C){return p[0]=C[0],p[1]=C[1],p[2]=C[2],p[3]=C[3],p}var u=new d(20),l=null;function f(p,C){l&&t(l,C),l=u.put(p,l||C.slice())}function y(p,C){if(!p)return;C=C||[];var F=u.get(p);if(F)return t(C,F);p=p+"";var z=p.replace(/ /g,"").toLowerCase();if(z in r)return t(C,r[z]),f(p,C),C;if(z.charAt(0)==="#"){if(z.length===4){var H=parseInt(z.substr(1),16);if(!(H>=0&&H<=4095)){n(C,0,0,0,1);return}return n(C,(H&3840)>>4|(H&3840)>>8,H&240|(H&240)>>4,H&15|(H&15)<<4,1),f(p,C),C}else if(z.length===7){var H=parseInt(z.substr(1),16);if(!(H>=0&&H<=16777215)){n(C,0,0,0,1);return}return n(C,(H&16711680)>>16,(H&65280)>>8,H&255,1),f(p,C),C}return}var D=z.indexOf("("),K=z.indexOf(")");if(D!==-1&&K+1===z.length){var B=z.substr(0,D),M=z.substr(D+1,K-(D+1)).split(","),j=1;switch(B){case"rgba":if(M.length!==4){n(C,0,0,0,1);return}j=o(M.pop());case"rgb":if(M.length!==3){n(C,0,0,0,1);return}return n(C,i(M[0]),i(M[1]),i(M[2]),j),f(p,C),C;case"hsla":if(M.length!==4){n(C,0,0,0,1);return}return M[3]=o(M[3]),E(M,C),f(p,C),C;case"hsl":if(M.length!==3){n(C,0,0,0,1);return}return E(M,C),f(p,C),C;default:return}}n(C,0,0,0,1);return}function E(p,C){var F=(parseFloat(p[0])%360+360)%360/360,z=o(p[1]),H=o(p[2]),D=H<=.5?H*(z+1):H+z-H*z,K=H*2-D;return C=C||[],n(C,x(e(K,D,F+1/3)*255),x(e(K,D,F)*255),x(e(K,D,F-1/3)*255),1),p.length===4&&(C[3]=p[3]),C}function T(p){if(!p)return;var C=p[0]/255,F=p[1]/255,z=p[2]/255,H=Math.min(C,F,z),D=Math.max(C,F,z),K=D-H,B=(D+H)/2,M,j;if(K===0)M=0,j=0;else{B<.5?j=K/(D+H):j=K/(2-D-H);var W=((D-C)/6+K/2)/K,X=((D-F)/6+K/2)/K,P=((D-z)/6+K/2)/K;C===D?M=P-X:F===D?M=1/3+W-P:z===D&&(M=2/3+X-W),M<0&&(M+=1),M>1&&(M-=1)}var k=[M*360,j,B];return p[3]!=null&&k.push(p[3]),k}function A(p,C){var F=y(p);if(F){for(var z=0;z<3;z++)C<0?F[z]=F[z]*(1-C)|0:F[z]=(255-F[z])*C+F[z]|0,F[z]>255?F[z]=255:p[z]<0&&(F[z]=0);return b(F,F.length===4?"rgba":"rgb")}}function w(p){var C=y(p);if(C)return((1<<24)+(C[0]<<16)+(C[1]<<8)+ +C[2]).toString(16).slice(1)}function O(p,C,F){if(!(C&&C.length)||!(p>=0&&p<=1))return;F=F||[];var z=p*(C.length-1),H=Math.floor(z),D=Math.ceil(z),K=C[H],B=C[D],M=z-H;return F[0]=x(a(K[0],B[0],M)),F[1]=x(a(K[1],B[1],M)),F[2]=x(a(K[2],B[2],M)),F[3]=h(a(K[3],B[3],M)),F}var g=O;function S(p,C,F){if(!(C&&C.length)||!(p>=0&&p<=1))return;var z=p*(C.length-1),H=Math.floor(z),D=Math.ceil(z),K=y(C[H]),B=y(C[D]),M=z-H,j=b([x(a(K[0],B[0],M)),x(a(K[1],B[1],M)),x(a(K[2],B[2],M)),h(a(K[3],B[3],M))],"rgba");return F?{color:j,leftIndex:H,rightIndex:D,value:z}:j}var m=S;function N(p,C,F,z){if(p=y(p),p)return p=T(p),C!=null&&(p[0]=v(C)),F!=null&&(p[1]=o(F)),z!=null&&(p[2]=o(z)),b(E(p),"rgba")}function I(p,C){if(p=y(p),p&&C!=null)return p[3]=h(C),b(p,"rgba")}function b(p,C){if(!p||!p.length)return;var F=p[0]+","+p[1]+","+p[2];return(C==="rgba"||C==="hsva"||C==="hsla")&&(F+=","+p[3]),C+"("+F+")"}_.parse=y,_.lift=A,_.toHex=w,_.fastLerp=O,_.fastMapToColor=g,_.lerp=S,_.mapToColor=m,_.modifyHSL=N,_.modifyAlpha=I,_.stringify=b},QuXc:function(c,_){var s=function(r){this.colorStops=r||[]};s.prototype={constructor:s,addColorStop:function(r,x){this.colorStops.push({offset:r,color:x})}};var d=s;c.exports=d},RDYZ:function(c,_,s){var d=s("dMvE");function r(v){this._target=v.target,this._life=v.life||1e3,this._delay=v.delay||0,this._initialized=!1,this.loop=v.loop==null?!1:v.loop,this.gap=v.gap||0,this.easing=v.easing||"Linear",this.onframe=v.onframe,this.ondestroy=v.ondestroy,this.onrestart=v.onrestart,this._pausedTime=0,this._paused=!1}r.prototype={constructor:r,step:function(v,h){if(this._initialized||(this._startTime=v+this._delay,this._initialized=!0),this._paused){this._pausedTime+=h;return}var i=(v-this._startTime-this._pausedTime)/this._life;if(i<0)return;i=Math.min(i,1);var o=this.easing,e=typeof o=="string"?d[o]:o,a=typeof e=="function"?e(i):i;return this.fire("frame",a),i===1?this.loop?(this.restart(v),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(v){var h=(v-this._startTime-this._pausedTime)%this._life;this._startTime=v-h+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(v,h){v="on"+v,this[v]&&this[v](this._target,h)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var x=r;c.exports=x},RMFE:function(c,_){c.exports="data:image/png;base64,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"},RXMa:function(c,_,s){var d=s("y+Vt"),r=d.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(x,v){var h=v.cx,i=v.cy,o=Math.PI*2;x.moveTo(h+v.r,i),x.arc(h,i,v.r,0,o,!1),x.moveTo(h+v.r0,i),x.arc(h,i,v.r0,0,o,!0)}});c.exports=r},S6kV:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("OLod"))})(this,function(d){return d.mode.OFB=function(){var r=d.lib.BlockCipherMode.extend(),x=r.Encryptor=r.extend({processBlock:function(v,h){var i=this._cipher,o=i.blockSize,e=this._iv,a=this._keystream;e&&(a=this._keystream=e.slice(0),this._iv=void 0),i.encryptBlock(a,0);for(var n=0;n-i&&pi||p<-i}function y(p,C,F,z,H){var D=1-H;return D*D*(D*p+3*H*C)+H*H*(H*z+3*D*F)}function E(p,C,F,z,H){var D=1-H;return 3*(((C-p)*D+2*(F-C)*H)*D+(z-F)*H*H)}function T(p,C,F,z,H,D){var K=z+3*(C-F)-p,B=3*(F-C*2+p),M=3*(C-p),j=p-H,W=B*B-3*K*M,X=B*M-9*K*j,P=M*M-3*B*j,k=0;if(l(W)&&l(X))if(l(B))D[0]=0;else{var Y=-M/B;Y>=0&&Y<=1&&(D[k++]=Y)}else{var J=X*X-4*W*P;if(l(J)){var te=X/W,Y=-B/K+te,ne=-te/2;Y>=0&&Y<=1&&(D[k++]=Y),ne>=0&&ne<=1&&(D[k++]=ne)}else if(J>0){var q=h(J),ue=W*B+1.5*K*(-X+q),le=W*B+1.5*K*(-X-q);ue<0?ue=-v(-ue,a):ue=v(ue,a),le<0?le=-v(-le,a):le=v(le,a);var Y=(-B-(ue+le))/(3*K);Y>=0&&Y<=1&&(D[k++]=Y)}else{var ee=(2*W*B-3*K*X)/(2*h(W*W*W)),se=Math.acos(ee)/3,Z=h(W),oe=Math.cos(se),Y=(-B-2*Z*oe)/(3*K),ne=(-B+Z*(oe+e*Math.sin(se)))/(3*K),L=(-B+Z*(oe-e*Math.sin(se)))/(3*K);Y>=0&&Y<=1&&(D[k++]=Y),ne>=0&&ne<=1&&(D[k++]=ne),L>=0&&L<=1&&(D[k++]=L)}}return k}function A(p,C,F,z,H){var D=6*F-12*C+6*p,K=9*C+3*z-3*p-9*F,B=3*C-3*p,M=0;if(l(K)){if(f(D)){var j=-B/D;j>=0&&j<=1&&(H[M++]=j)}}else{var W=D*D-4*K*B;if(l(W))H[0]=-D/(2*K);else if(W>0){var X=h(W),j=(-D+X)/(2*K),P=(-D-X)/(2*K);j>=0&&j<=1&&(H[M++]=j),P>=0&&P<=1&&(H[M++]=P)}}return M}function w(p,C,F,z,H,D){var K=(C-p)*H+p,B=(F-C)*H+C,M=(z-F)*H+F,j=(B-K)*H+K,W=(M-B)*H+B,X=(W-j)*H+j;D[0]=p,D[1]=K,D[2]=j,D[3]=X,D[4]=X,D[5]=W,D[6]=M,D[7]=z}function O(p,C,F,z,H,D,K,B,M,j,W){var X,P=.005,k=Infinity,Y,J,te,ne;n[0]=M,n[1]=j;for(var q=0;q<1;q+=.05)t[0]=y(p,F,H,K,q),t[1]=y(C,z,D,B,q),te=x(n,t),te=0&&te=0&&j<=1&&(H[M++]=j)}}else{var W=K*K-4*D*B;if(l(W)){var j=-K/(2*D);j>=0&&j<=1&&(H[M++]=j)}else if(W>0){var X=h(W),j=(-K+X)/(2*D),P=(-K-X)/(2*D);j>=0&&j<=1&&(H[M++]=j),P>=0&&P<=1&&(H[M++]=P)}}return M}function N(p,C,F){var z=p+F-2*C;return z===0?.5:(p-C)/z}function I(p,C,F,z,H){var D=(C-p)*z+p,K=(F-C)*z+C,B=(K-D)*z+D;H[0]=p,H[1]=D,H[2]=B,H[3]=B,H[4]=K,H[5]=F}function b(p,C,F,z,H,D,K,B,M){var j,W=.005,X=Infinity;n[0]=K,n[1]=B;for(var P=0;P<1;P+=.05){t[0]=g(p,F,H,P),t[1]=g(C,z,D,P);var k=x(n,t);k=0&&k=0;--O)if(w[O]===A)return!0;return!1}),T):null:T[0]},l.prototype.update=function(y,E){if(!y)return;var T=this.getDefs(!1);if(y[this._domName]&&T.contains(y[this._domName]))typeof E=="function"&&E(y);else{var A=this.add(y);A&&(y[this._domName]=A)}},l.prototype.addDom=function(y){var E=this.getDefs(!0);E.appendChild(y)},l.prototype.removeDom=function(y){var E=this.getDefs(!1);E&&y[this._domName]&&(E.removeChild(y[this._domName]),y[this._domName]=null)},l.prototype.getDoms=function(){var y=this.getDefs(!1);if(!y)return[];var E=[];return x.each(this._tagNames,function(T){var A=y.getElementsByTagName(T);E=E.concat([].slice.call(A))}),E},l.prototype.markAllUnused=function(){var y=this.getDoms(),E=this;x.each(y,function(T){T[E._markLabel]=t})},l.prototype.markUsed=function(y){y&&(y[this._markLabel]=u)},l.prototype.removeUnused=function(){var y=this.getDefs(!1);if(!y)return;var E=this.getDoms(),T=this;x.each(E,function(A){A[T._markLabel]!==u&&y.removeChild(A)})},l.prototype.getSvgProxy=function(y){return y instanceof v?e:y instanceof h?a:y instanceof i?n:e},l.prototype.getTextSvgElement=function(y){return y.__textSvgEl},l.prototype.getSvgElement=function(y){return y.__svgEl};var f=l;c.exports=f},T6xi:function(c,_,s){var d=s("YgsL"),r=s("nCxF");function x(v,h,i){var o=h.points,e=h.smooth;if(o&&o.length>=2){if(e&&e!=="spline"){var a=r(o,e,i,h.smoothConstraint);v.moveTo(o[0][0],o[0][1]);for(var n=o.length,t=0;t<(i?n:n-1);t++){var u=a[t*2],l=a[t*2+1],f=o[(t+1)%n];v.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e==="spline"&&(o=d(o,i)),v.moveTo(o[0][0],o[0][1]);for(var t=1,y=o.length;th&&(u=e+a,e*=h/u,a*=h/u),n+t>h&&(u=n+t,n*=h/u,t*=h/u),a+n>i&&(u=a+n,a*=i/u,n*=i/u),e+t>i&&(u=e+t,e*=i/u,t*=i/u),d.moveTo(x+e,v),d.lineTo(x+h-a,v),a!==0&&d.arc(x+h-a,v+a,a,-Math.PI/2,0),d.lineTo(x+h,v+i-n),n!==0&&d.arc(x+h-n,v+i-n,n,0,Math.PI/2),d.lineTo(x+t,v+i),t!==0&&d.arc(x+t,v+i-t,t,Math.PI/2,Math.PI),d.lineTo(x,v+e),e!==0&&d.arc(x+e,v+e,e,Math.PI,Math.PI*1.5)}_.buildPath=s},W6BS:function(c,_){c.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WYAk:function(c,_,s){(function(d,r){c.exports=_=r(s("Ib8C"))})(this,function(d){(function(){var r=d,x=r.lib,v=x.Base,h=r.enc,i=h.Utf8,o=r.algo,e=o.HMAC=v.extend({init:function(a,n){a=this._hasher=new a.init,typeof n=="string"&&(n=i.parse(n));var t=a.blockSize,u=t*4;n.sigBytes>u&&(n=a.finalize(n)),n.clamp();for(var l=this._oKey=n.clone(),f=this._iKey=n.clone(),y=l.words,E=f.words,T=0;T>>24)&16711935|(I<<24|I>>>8)&4278255360}var b=this._hash.words,p=u.words,C=l.words,F=e.words,z=a.words,H=n.words,D=t.words,K,B,M,j,W,X,P,k,Y,J;X=K=b[0],P=B=b[1],k=M=b[2],Y=j=b[3],J=W=b[4];for(var te,m=0;m<80;m+=1)te=K+g[S+F[m]]|0,m<16?te+=y(B,M,j)+p[0]:m<32?te+=E(B,M,j)+p[1]:m<48?te+=T(B,M,j)+p[2]:m<64?te+=A(B,M,j)+p[3]:te+=w(B,M,j)+p[4],te=te|0,te=O(te,H[m]),te=te+W|0,K=W,W=j,j=O(M,10),M=B,B=te,te=X+g[S+z[m]]|0,m<16?te+=w(P,k,Y)+C[0]:m<32?te+=A(P,k,Y)+C[1]:m<48?te+=T(P,k,Y)+C[2]:m<64?te+=E(P,k,Y)+C[3]:te+=y(P,k,Y)+C[4],te=te|0,te=O(te,D[m]),te=te+J|0,X=J,J=Y,Y=O(k,10),k=P,P=te;te=b[1]+M+Y|0,b[1]=b[2]+j+J|0,b[2]=b[3]+W+X|0,b[3]=b[4]+K+P|0,b[4]=b[0]+B+k|0,b[0]=te},_doFinalize:function(){var g=this._data,S=g.words,m=this._nDataBytes*8,N=g.sigBytes*8;S[N>>>5]|=128<<24-N%32,S[(N+64>>>9<<4)+14]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,g.sigBytes=(S.length+1)*4,this._process();for(var I=this._hash,b=I.words,p=0;p<5;p++){var C=b[p];b[p]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return I},clone:function(){var g=i.clone.call(this);return g._hash=this._hash.clone(),g}});function y(g,S,m){return g^S^m}function E(g,S,m){return g&S|~g&m}function T(g,S,m){return(g|~S)^m}function A(g,S,m){return g&m|S&~m}function w(g,S,m){return g^(S|~m)}function O(g,S){return g<>>32-S}x.RIPEMD160=i._createHelper(f),x.HmacRIPEMD160=i._createHmacHelper(f)}(Math),d.RIPEMD160})},ETIr:function(c,_,s){(function(d,r){c.exports=_=r(s("Ib8C"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.WordArray,h=r.enc,i=h.Base64={stringify:function(e){var a=e.words,n=e.sigBytes,t=this._map;e.clamp();for(var u=[],l=0;l>>2]>>>24-l%4*8&255,y=a[l+1>>>2]>>>24-(l+1)%4*8&255,E=a[l+2>>>2]>>>24-(l+2)%4*8&255,T=f<<16|y<<8|E,A=0;A<4&&l+A*.75>>6*(3-A)&63));var w=t.charAt(64);if(w)for(;u.length%4;)u.push(w);return u.join("")},parse:function(e){var a=e.length,n=this._map,t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var u=0;u>>6-l%4*2,E=f|y;t[u>>>2]|=E<<24-u%4*8,u++}return v.create(t,u)}}(),d.enc.Base64})},"F+F2":function(c,_,s){(function(d,r){c.exports=_=r(s("Ib8C"))})(this,function(d){return function(){if(typeof ArrayBuffer!="function")return;var r=d,x=r.lib,v=x.WordArray,h=v.init,i=v.init=function(o){if(o instanceof ArrayBuffer&&(o=new Uint8Array(o)),(o instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&o instanceof Uint8ClampedArray||o instanceof Int16Array||o instanceof Uint16Array||o instanceof Int32Array||o instanceof Uint32Array||o instanceof Float32Array||o instanceof Float64Array)&&(o=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)),o instanceof Uint8Array){for(var e=o.byteLength,a=[],n=0;n>>2]|=o[n]<<24-n%4*8;h.call(this,a,e)}else h.apply(this,arguments)};i.prototype=v}(),d.lib.WordArray})},FOrL:function(c,_,s){c.exports=s.p+"static/nodata.a6b3f948.png"},FPkq:function(c,_,s){c.exports=s.p+"static/qrCode.dd0fe9b2.png"},Fofx:function(c,_){var s=typeof Float32Array=="undefined"?Array:Float32Array;function d(){var n=new s(6);return r(n),n}function r(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function x(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function v(n,t,u){var l=t[0]*u[0]+t[2]*u[1],f=t[1]*u[0]+t[3]*u[1],y=t[0]*u[2]+t[2]*u[3],E=t[1]*u[2]+t[3]*u[3],T=t[0]*u[4]+t[2]*u[5]+t[4],A=t[1]*u[4]+t[3]*u[5]+t[5];return n[0]=l,n[1]=f,n[2]=y,n[3]=E,n[4]=T,n[5]=A,n}function h(n,t,u){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+u[0],n[5]=t[5]+u[1],n}function i(n,t,u){var l=t[0],f=t[2],y=t[4],E=t[1],T=t[3],A=t[5],w=Math.sin(u),O=Math.cos(u);return n[0]=l*O+E*w,n[1]=-l*w+E*O,n[2]=f*O+T*w,n[3]=-f*w+O*T,n[4]=O*y+w*A,n[5]=O*A-w*y,n}function o(n,t,u){var l=u[0],f=u[1];return n[0]=t[0]*l,n[1]=t[1]*f,n[2]=t[2]*l,n[3]=t[3]*f,n[4]=t[4]*l,n[5]=t[5]*f,n}function e(n,t){var u=t[0],l=t[2],f=t[4],y=t[1],E=t[3],T=t[5],A=u*E-y*l;return A?(A=1/A,n[0]=E*A,n[1]=-y*A,n[2]=-l*A,n[3]=u*A,n[4]=(l*T-E*f)*A,n[5]=(y*f-u*T)*A,n):null}function a(n){var t=d();return x(t,n),t}_.create=d,_.identity=r,_.copy=x,_.mul=v,_.translate=h,_.rotate=i,_.scale=o,_.invert=e,_.clone=a},FxDU:function(c,_,s){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.createSensor=void 0;var d=s("QO+J"),r=s("j5sG"),x=typeof ResizeObserver!="undefined"?r.createSensor:d.createSensor;_.createSensor=x},GABl:function(c,_){c.exports="data:image/png;base64,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"},GRuw:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("lPiR"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.WordArray,h=r.algo,i=h.SHA256,o=h.SHA224=i.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});r.SHA224=i._createHelper(o),r.HmacSHA224=i._createHmacHelper(o)}(),d.SHA224})},Gev7:function(c,_,s){var d=s("bYtY"),r=s("K2GJ"),x=s("1bdT"),v=s("ni6a");function h(o){o=o||{},x.call(this,o);for(var e in o)o.hasOwnProperty(e)&&e!=="style"&&(this[e]=o[e]);this.style=new r(o.style,this),this._rect=null,this.__clipPaths=null}h.prototype={constructor:h,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(o){},afterBrush:function(o){},brush:function(o,e){},getBoundingRect:function(){},contain:function(o,e){return this.rectContain(o,e)},traverse:function(o,e){o.call(e,this)},rectContain:function(o,e){var a=this.transformCoordToLocal(o,e),n=this.getBoundingRect();return n.contain(a[0],a[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(o){return this.animate("style",o)},attrKV:function(o,e){o!=="style"?x.prototype.attrKV.call(this,o,e):this.style.set(e)},setStyle:function(o,e){return this.style.set(o,e),this.dirty(!1),this},useStyle:function(o){return this.style=new r(o,this),this.dirty(!1),this},calculateTextPosition:null},d.inherits(h,x),d.mixin(h,v);var i=h;c.exports=i},GfqC:function(c,_,s){"use strict";var d=s("q1tI"),r=s.n(d),x=s("TSYQ"),v=s.n(x);function h(j,W){var X="cannot "+j.method+" "+j.action+" "+W.status+"'",P=new Error(X);return P.status=W.status,P.method=j.method,P.url=j.action,P}function i(j){var W=j.responseText||j.response;if(!W)return W;try{return JSON.parse(W)}catch(X){return W}}function o(j){var W=new XMLHttpRequest;j.onProgress&&W.upload&&(W.upload.onprogress=function(Y){Y.total>0&&(Y.percent=Y.loaded/Y.total*100),j.onProgress(Y)});var X=new FormData;j.data&&Object.keys(j.data).forEach(function(k){var Y=j.data[k];if(Array.isArray(Y)){Y.forEach(function(J){X.append(k+"[]",J)});return}X.append(k,j.data[k])}),j.file instanceof Blob?X.append(j.filename,j.file,j.file.name):X.append(j.filename,j.file),W.onerror=function(Y){j.onError(Y)},W.onload=function(){return W.status<200||W.status>=300?j.onError(h(j,W),i(W)):j.onSuccess(i(W),W)},W.open(j.method,j.action,!0),j.withCredentials&&"withCredentials"in W&&(W.withCredentials=!0);var P=j.headers||{};return P["X-Requested-With"]!==null&&W.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(P).forEach(function(k){P[k]!==null&&W.setRequestHeader(k,P[k])}),W.send(X),{abort:function(){W.abort()}}}var e=+new Date,a=0;function n(){return"rc-upload-"+e+"-"+ ++a}function t(j,W){return j.indexOf(W,j.length-W.length)!==-1}var u=function(j,W){if(j&&W){var X=Array.isArray(W)?W:W.split(","),P=j.name||"",k=j.type||"",Y=k.replace(/\/.*$/,"");return X.some(function(J){var te=J.trim();return te.charAt(0)==="."?t(P.toLowerCase(),te.toLowerCase()):/\/\*$/.test(te)?Y===te.replace(/\/.*$/,""):k===te})}return!0};function l(j,W){var X=j.createReader(),P=[];function k(){X.readEntries(function(Y){var J=Array.prototype.slice.apply(Y);P=P.concat(J);var te=!J.length;te?W(P):k()})}k()}var f=function(W,X,P){var k=function Y(J,te){te=te||"",J.isFile?J.file(function(ne){P(ne)&&(J.fullPath&&!ne.webkitRelativePath&&(Object.defineProperties(ne,{webkitRelativePath:{writable:!0}}),ne.webkitRelativePath=J.fullPath.replace(/^\//,""),Object.defineProperties(ne,{webkitRelativePath:{writable:!1}})),X([ne]))}):J.isDirectory&&l(J,function(ne){ne.forEach(function(q){Y(q,""+te+J.name+"/")})})};W.forEach(function(Y){k(Y.webkitGetAsEntry())})},y=f,E=Object.assign||function(j){for(var W=1;W=0)continue;if(!Object.prototype.hasOwnProperty.call(j,P))continue;X[P]=j[P]}return X}function g(j,W){if(!(j instanceof W))throw new TypeError("Cannot call a class as a function")}function S(j,W){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:j}function m(j,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);j.prototype=Object.create(W&&W.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(j,W):j.__proto__=W)}var N=function(W){return Object.keys(W).reduce(function(X,P){return(P.substr(0,5)==="data-"||P.substr(0,5)==="aria-"||P==="role")&&(X[P]=W[P]),X},{})},I=function(j){m(W,j);function W(){var X,P,k,Y;g(this,W);for(var J=arguments.length,te=Array(J),ne=0;ne3&&(e=s.call(e,1));for(var n=i.length,t=0;t4&&(e=s.call(e,1,e.length-1));for(var n=e[e.length-1],t=i.length,u=0;uthis._ux||T(S-this._yi)>this._uy||this._len<5;return this.addData(o.L,g,S),this._ctx&&m&&(this._needsDash()?this._dashedLineTo(g,S):this._ctx.lineTo(g,S)),m&&(this._xi=g,this._yi=S),this},bezierCurveTo:function(g,S,m,N,I,b){return this.addData(o.C,g,S,m,N,I,b),this._ctx&&(this._needsDash()?this._dashedBezierTo(g,S,m,N,I,b):this._ctx.bezierCurveTo(g,S,m,N,I,b)),this._xi=I,this._yi=b,this},quadraticCurveTo:function(g,S,m,N){return this.addData(o.Q,g,S,m,N),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(g,S,m,N):this._ctx.quadraticCurveTo(g,S,m,N)),this._xi=m,this._yi=N,this},arc:function(g,S,m,N,I,b){return this.addData(o.A,g,S,m,m,N,I-N,0,b?0:1),this._ctx&&this._ctx.arc(g,S,m,N,I,b),this._xi=f(I)*m+g,this._yi=y(I)*m+S,this},arcTo:function(g,S,m,N,I){return this._ctx&&this._ctx.arcTo(g,S,m,N,I),this},rect:function(g,S,m,N){return this._ctx&&this._ctx.rect(g,S,m,N),this.addData(o.R,g,S,m,N),this},closePath:function(){this.addData(o.Z);var g=this._ctx,S=this._x0,m=this._y0;return g&&(this._needsDash()&&this._dashedLineTo(S,m),g.closePath()),this._xi=S,this._yi=m,this},fill:function(g){g&&g.fill(),this.toStatic()},stroke:function(g){g&&g.stroke(),this.toStatic()},setLineDash:function(g){if(g instanceof Array){this._lineDash=g,this._dashIdx=0;for(var S=0,m=0;mS.length&&(this._expandData(),S=this.data);for(var m=0;m0&&D<=g||F<0&&D>=g||F===0&&(z>0&&K<=S||z<0&&K>=S);){if(j=this._dashIdx,B=I[j],D+=F*B,K+=z*B,this._dashIdx=(j+1)%M,F>0&&Dp||z>0&&KC)continue;b[j%2?"moveTo":"lineTo"](F>=0?u(D,g):l(D,g),z>=0?u(K,S):l(K,S))}F=D-g,z=K-S,this._dashOffset=-E(F*F+z*z)},_dashedBezierTo:function(g,S,m,N,I,b){var p=this._dashSum,C=this._dashOffset,F=this._lineDash,z=this._ctx,H=this._xi,D=this._yi,K,B,M,j=d.cubicAt,W=0,X=this._dashIdx,P=F.length,k,Y,J=0;for(C<0&&(C=p+C),C%=p,K=0;K<1;K+=.1)B=j(H,g,m,I,K+.1)-j(H,g,m,I,K),M=j(D,S,N,b,K+.1)-j(D,S,N,b,K),W+=E(B*B+M*M);for(;XC);X++);for(K=(J-C)/W;K<=1;)k=j(H,g,m,I,K),Y=j(D,S,N,b,K),X%2?z.moveTo(k,Y):z.lineTo(k,Y),K+=F[X]/W,X=(X+1)%P;X%2!==0&&z.lineTo(I,b),B=I-k,M=b-Y,this._dashOffset=-E(B*B+M*M)},_dashedQuadraticTo:function(g,S,m,N){var I=m,b=N;m=(m+2*g)/3,N=(N+2*S)/3,g=(this._xi+2*g)/3,S=(this._yi+2*S)/3,this._dashedBezierTo(g,S,m,N,I,b)},toStatic:function(){var g=this.data;g instanceof Array&&(g.length=this._len,A&&(this.data=new Float32Array(g)))},getBoundingRect:function(){e[0]=e[1]=n[0]=n[1]=Number.MAX_VALUE,a[0]=a[1]=t[0]=t[1]=-Number.MAX_VALUE;for(var g=this.data,S=0,m=0,N=0,I=0,b=0;bF||T(C-b)>z||D===H-1)&&(g.lineTo(p,C),I=p,b=C);break;case o.C:g.bezierCurveTo(S[D++],S[D++],S[D++],S[D++],S[D++],S[D++]),I=S[D-2],b=S[D-1];break;case o.Q:g.quadraticCurveTo(S[D++],S[D++],S[D++],S[D++]),I=S[D-2],b=S[D-1];break;case o.A:var B=S[D++],M=S[D++],j=S[D++],W=S[D++],X=S[D++],P=S[D++],k=S[D++],Y=S[D++],J=j>W?j:W,te=j>W?1:j/W,ne=j>W?W/j:1,q=Math.abs(j-W)>.001,ue=X+P;q?(g.translate(B,M),g.rotate(k),g.scale(te,ne),g.arc(0,0,J,X,ue,1-Y),g.scale(1/te,1/ne),g.rotate(-k),g.translate(-B,-M)):g.arc(B,M,J,X,ue,1-Y),D===1&&(m=f(X)*j+B,N=y(X)*W+M),I=f(ue)*j+B,b=y(ue)*W+M;break;case o.R:m=I=S[D],N=b=S[D+1],g.rect(S[D++],S[D++],S[D++],S[D++]);break;case o.Z:g.closePath(),I=m,b=N}}}},w.CMD=o;var O=w;c.exports=O},Ib8C:function(c,_,s){(function(d){(function(r,x){c.exports=_=x()})(this,function(){var r=r||function(x,v){var h;if(typeof window!="undefined"&&window.crypto&&(h=window.crypto),typeof self!="undefined"&&self.crypto&&(h=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(h=globalThis.crypto),!h&&typeof window!="undefined"&&window.msCrypto&&(h=window.msCrypto),!h&&typeof d!="undefined"&&d.crypto&&(h=d.crypto),!h&&!0)try{h=s(4)}catch(w){}var i=function(){if(h){if(typeof h.getRandomValues=="function")try{return h.getRandomValues(new Uint32Array(1))[0]}catch(w){}if(typeof h.randomBytes=="function")try{return h.randomBytes(4).readInt32LE()}catch(w){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function w(){}return function(O){var g;return w.prototype=O,g=new w,w.prototype=null,g}}(),e={},a=e.lib={},n=a.Base=function(){return{extend:function(w){var O=o(this);return w&&O.mixIn(w),(!O.hasOwnProperty("init")||this.init===O.init)&&(O.init=function(){O.$super.init.apply(this,arguments)}),O.init.prototype=O,O.$super=this,O},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var O in w)w.hasOwnProperty(O)&&(this[O]=w[O]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=a.WordArray=n.extend({init:function(w,O){w=this.words=w||[],O!=v?this.sigBytes=O:this.sigBytes=w.length*4},toString:function(w){return(w||l).stringify(this)},concat:function(w){var O=this.words,g=w.words,S=this.sigBytes,m=w.sigBytes;if(this.clamp(),S%4)for(var N=0;N>>2]>>>24-N%4*8&255;O[S+N>>>2]|=I<<24-(S+N)%4*8}else for(var b=0;b>>2]=g[b>>>2];return this.sigBytes+=m,this},clamp:function(){var w=this.words,O=this.sigBytes;w[O>>>2]&=4294967295<<32-O%4*8,w.length=x.ceil(O/4)},clone:function(){var w=n.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var O=[],g=0;g>>2]>>>24-m%4*8&255;S.push((N>>>4).toString(16)),S.push((N&15).toString(16))}return S.join("")},parse:function(w){for(var O=w.length,g=[],S=0;S>>3]|=parseInt(w.substr(S,2),16)<<24-S%8*4;return new t.init(g,O/2)}},f=u.Latin1={stringify:function(w){for(var O=w.words,g=w.sigBytes,S=[],m=0;m>>2]>>>24-m%4*8&255;S.push(String.fromCharCode(N))}return S.join("")},parse:function(w){for(var O=w.length,g=[],S=0;S>>2]|=(w.charCodeAt(S)&255)<<24-S%4*8;return new t.init(g,O)}},y=u.Utf8={stringify:function(w){try{return decodeURIComponent(escape(f.stringify(w)))}catch(O){throw new Error("Malformed UTF-8 data")}},parse:function(w){return f.parse(unescape(encodeURIComponent(w)))}},E=a.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=y.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var O,g=this._data,S=g.words,m=g.sigBytes,N=this.blockSize,I=N*4,b=m/I;w?b=x.ceil(b):b=x.max((b|0)-this._minBufferSize,0);var p=b*N,C=x.min(p*4,m);if(p){for(var F=0;F=11),domSupported:typeof document!="undefined"}}c.exports=d},JWDV:function(c,_,s){c.exports=s.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(c,_){c.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(c,_,s){c.exports=s.p+"static/qrcode.2267e4d5.png"},K2GJ:function(c,_,s){var d=s("fW2E"),r=s("gut8"),x=r.ContextCachedBy,v=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],h=function(u){this.extendFrom(u,!1)};function i(u,l,f){var y=l.x==null?0:l.x,E=l.x2==null?1:l.x2,T=l.y==null?0:l.y,A=l.y2==null?0:l.y2;l.global||(y=y*f.width+f.x,E=E*f.width+f.x,T=T*f.height+f.y,A=A*f.height+f.y),y=isNaN(y)?0:y,E=isNaN(E)?1:E,T=isNaN(T)?0:T,A=isNaN(A)?0:A;var w=u.createLinearGradient(y,T,E,A);return w}function o(u,l,f){var y=f.width,E=f.height,T=Math.min(y,E),A=l.x==null?.5:l.x,w=l.y==null?.5:l.y,O=l.r==null?.5:l.r;l.global||(A=A*y+f.x,w=w*E+f.y,O=O*T);var g=u.createRadialGradient(A,w,0,A,w,O);return g}h.prototype={constructor:h,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(u,l,f){var y=this,E=f&&f.style,T=!E||u.__attrCachedBy!==x.STYLE_BIND;u.__attrCachedBy=x.STYLE_BIND;for(var A=0;A0},extendFrom:function(u,l){if(u)for(var f in u)u.hasOwnProperty(f)&&(l===!0||(l===!1?!this.hasOwnProperty(f):u[f]!=null))&&(this[f]=u[f])},set:function(u,l){typeof u=="string"?this[u]=l:this.extendFrom(u,!0)},clone:function(){var u=new this.constructor;return u.extendFrom(this,!0),u},getGradient:function(u,l,f){for(var y=l.type==="radial"?o:i,E=y(u,l,f),T=l.colorStops,A=0;Ale)){se.next=7;break}return x.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(le/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),se.abrupt("return",!1);case 7:return M.push({name:ue.name,file:ue}),j(Object(v.a)(M)),D.onChange(M),se.abrupt("return",!1);case 11:case"end":return se.stop()}},q)}));function ne(q){return te.apply(this,arguments)}return ne}()},J=function(){var te=Object(e.a)(u.a.mark(function ne(q,ue){var le,ee,se,Z,oe,L,V,ae,Q,G;return u.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return ue.file_name=q.name,V=q.name,U.next=4,Object(y.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(ae=U.sent,ae.data=JSON.parse(m(ae.data)),!((ae==null?void 0:ae.status)!==0)){U.next=12;break}return M[M.findIndex(function(re){return re.name===V})].status="error",M[M.findIndex(function(re){return re.name===V})].file.status="error",D.onChange(M),x.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),U.abrupt("return");case 12:return P=new g.a({endpoint:ae==null||((le=ae.data)===null||le===void 0)?void 0:le.end_point,region:ae==null||((ee=ae.data)===null||ee===void 0)?void 0:ee.region,accessKeyId:ae==null||((se=ae.data)===null||se===void 0)?void 0:se.access_key_id,accessKeySecret:ae==null||((Z=ae.data)===null||Z===void 0)?void 0:Z.access_key_secret,bucket:ae==null||((oe=ae.data)===null||oe===void 0)?void 0:oe.bucket,stsToken:ae==null||((L=ae.data)===null||L===void 0)?void 0:L.security_token}),console.log(q,"file"),k(P),Q=q.name.split("."),Q.pop(),G=ue.realFileName?Q:Object(A.a)(),U.abrupt("return",new Promise(function(re,$){try{var ce;P.multipartUpload("".concat(D.identifier,"/").concat(G).concat(V.indexOf(".")>-1?"."+V.split(".").pop():""),new Blob([q.file],{type:q.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(ge,Ce,Ae){try{console.log("\u8FDB\u5EA6",ge,Ce,Ae);var Se=M.findIndex(function(Me){return Me.name===V});M[Se].file.percent=ge*100,M[Se].tempCheckpoint=Ce,j(Object(v.a)(M))}catch(Me){}},checkpoint:M[M.findIndex(function(pe){return pe.name===V})].tempCheckpoint,callback:{customValue:{id:V+""},url:ae==null||((ce=ae.data)===null||ce===void 0)?void 0:ce.callback_url,host:ae==null?void 0:ae.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(y.e)(ue)}}).then(function(pe){var ge,Ce=M.findIndex(function(he){return he.name===V}),Ae="done";if(((ge=pe.data)===null||ge===void 0?void 0:ge.status)===0){var Se;q.response=(Se=pe.data)===null||Se===void 0?void 0:Se.data;var Me=M.findIndex(function(he){return he.name===V});M[Me].status="done",M[Me].file.status="done"}else{var fe;x.b.warn((fe=pe.data)===null||fe===void 0?void 0:fe.message),Ae="error"}M[Ce].status=Ae,M[Ce].file.status=Ae,D.onChange(M),re(pe==null?void 0:pe.data)}).catch(function(pe){M[M.findIndex(function(ge){return ge.name===V})].status="error",M[M.findIndex(function(ge){return ge.name===V})].file.status="error",x.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),j(Object(v.a)(M)),D.onChange(M),$(pe),console.log("err:",pe)})}catch(pe){}}));case 19:case"end":return U.stop()}},ne)}));return function(q,ue){return te.apply(this,arguments)}}();return Object(l.useEffect)(function(){M.every(function(te){return te==="done"||te==="error"})&&D.onComplete(M)},[M]),Object(l.useEffect)(function(){if(H){var te;(te=P)===null||te===void 0||te.cancel()}},[H]),Object(l.useEffect)(function(){D.uploading&&M.map(function(){var te=Object(e.a)(u.a.mark(function ne(q){var ue,le;return u.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!((!q.status||q.status==="error")&&!H)){se.next=6;break}return q.status="uploading",q.file.status="uploading",se.next=5,J(q,{login:z==null||((ue=z.userInfo)===null||ue===void 0)?void 0:ue.login,container_type:D.container_type,container_id:D.container_id,description:D.description,realFileName:D.realFileName});case 5:le=se.sent;case 6:case"end":return se.stop()}},ne)}));return function(ne){return te.apply(this,arguments)}}())},[D.uploading]),f.a.createElement(S,Object(d.a)({},Y,{height:D.height,className:D.className}),f.a.createElement("p",{className:"ant-upload-hint"},D.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};_.b=Object(w.a)(function(C){var F=C.loading,z=C.globalSetting,H=C.user;return{globalSetting:z,loading:F.models.competitions,user:H}})(p)},KmYQ:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("OLod"))})(this,function(d){return d.pad.ZeroPadding={pad:function(r,x){var v=x*4;r.clamp(),r.sigBytes+=v-(r.sigBytes%v||v)},unpad:function(r){for(var x=r.words,v=r.sigBytes-1,v=r.sigBytes-1;v>=0;v--)if(x[v>>>2]>>>24-v%4*8&255){r.sigBytes=v+1;break}}},d.pad.ZeroPadding})},LPTA:function(c,_){var s=1;typeof window!="undefined"&&(s=Math.max(window.devicePixelRatio||1,1));var d=0,r=s;_.debugMode=d,_.devicePixelRatio=r},LdHM:function(c,_,s){"use strict";s.d(_,"b",function(){return O}),s.d(_,"a",function(){return S});var d=s("1OyB"),r=s("vuIU"),x=s("Ji7U"),v=s("LK+K"),h=s("q1tI"),i=s("rePB"),o=s("Ff2n"),e=s("ODXe"),a=s("4IlW"),n=s("bX4T"),t=s("YrtM"),u=s("TSYQ"),l=s.n(u),f=s("+nKL"),y=s("8OUc"),E=function(P,k){var Y=P.prefixCls,J=P.id,te=P.flattenOptions,ne=P.childrenAsData,q=P.values,ue=P.searchValue,le=P.multiple,ee=P.defaultActiveFirstOption,se=P.height,Z=P.itemHeight,oe=P.notFoundContent,L=P.open,V=P.menuItemSelectedIcon,ae=P.virtual,Q=P.onSelect,G=P.onToggleOpen,R=P.onActiveValue,U=P.onScroll,re=P.onMouseEnter,$="".concat(Y,"-item"),ce=Object(t.a)(function(){return te},[L,te],function(Le,je){return je[0]&&Le[1]!==je[1]}),pe=h.useRef(null),ge=function(je){je.preventDefault()},Ce=function(je){pe.current&&pe.current.scrollTo({index:je})},Ae=function(je){for(var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pe=ce.length,Ue=0;Ue1&&arguments[1]!==void 0?arguments[1]:!1;return Object(N.a)(X).map(function(k,Y){if(!h.isValidElement(k)||!k.type)return null;var J=k.type.isSelectOptGroup,te=k.key,ne=k.props,q=ne.children,ue=Object(o.a)(ne,["children"]);return P||!J?I(k):Object(m.a)(Object(m.a)({key:"__RC_SELECT_GRP__".concat(te===null?Y:te,"__"),label:te},ue),{},{options:b(q)})}).filter(function(k){return k})}var p=s("2Qr1"),C=s("qNPg"),F=s("U8pU"),z=s("Kwbf"),H=s("WKfj");function D(X){var P=X.mode,k=X.options,Y=X.children,J=X.backfill,te=X.allowClear,ne=X.placeholder,q=X.getInputElement,ue=X.showSearch,le=X.onSearch,ee=X.defaultOpen,se=X.autoFocus,Z=X.labelInValue,oe=X.value,L=X.inputValue,V=X.optionLabelProp,ae=P==="multiple"||P==="tags",Q=ue!==void 0?ue:ae||P==="combobox",G=k||b(Y);if(Object(z.a)(P!=="tags"||G.every(function($){return!$.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),P==="tags"||P==="combobox"){var R=G.some(function($){return $.options?$.options.some(function(ce){return typeof("value"in ce?ce.value:ce.key)=="number"}):typeof("value"in $?$.value:$.key)=="number"});Object(z.a)(!R,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(z.a)(P!=="combobox"||!V,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(z.a)(P==="combobox"||!J,"`backfill` only works with `combobox` mode."),Object(z.a)(P==="combobox"||!q,"`getInputElement` only work with `combobox` mode."),Object(z.b)(P!=="combobox"||!q||!te||!ne,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),le&&!Q&&P!=="combobox"&&P!=="tags"&&Object(z.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(z.b)(!ee||se,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),oe!=null){var U=Object(H.d)(oe);Object(z.a)(!Z||U.every(function($){return Object(F.a)($)==="object"&&("key"in $||"value"in $)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(z.a)(!ae||Array.isArray(oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(Y){var re=null;Object(N.a)(Y).some(function($){if(!h.isValidElement($)||!$.type)return!1;var ce=$.type;if(ce.isSelectOption)return!1;if(ce.isSelectOptGroup){var pe=Object(N.a)($.props.children).every(function(ge){return!h.isValidElement(ge)||!$.type||ge.type.isSelectOption?!0:(re=ge.type,!1)});return!pe}return re=ce,!0}),re&&Object(z.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(re.displayName||re.name||re,"`.")),Object(z.a)(L===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var K=D,B=Object(C.a)({prefixCls:"rc-select",components:{optionList:A},convertChildrenToData:b,flattenOptions:p.d,getLabeledValue:p.e,filterOptions:p.b,isValueDisabled:p.g,findValueOption:p.c,warningProps:K,fillOptionsWithMissingValue:p.a}),M=function(X){Object(x.a)(k,X);var P=Object(v.a)(k);function k(){var Y;return Object(d.a)(this,k),Y=P.apply(this,arguments),Y.selectRef=h.createRef(),Y.focus=function(){Y.selectRef.current.focus()},Y.blur=function(){Y.selectRef.current.blur()},Y}return Object(r.a)(k,[{key:"render",value:function(){return h.createElement(B,Object.assign({ref:this.selectRef},this.props))}}]),k}(h.Component);M.Option=O,M.OptGroup=S;var j=M,W=_.c=j},Lf5v:function(c,_,s){"use strict";var d=s("5NDa"),r=s("5rEg"),x=s("2qtc"),v=s("kLXV"),h=s("k1fw"),i=s("oBTY"),o=s("9og8"),e=s("miYZ"),a=s("tsqr"),n=s("y8nQ"),t=s("Vl3Y"),u=s("tJVT"),l=s("DZo9"),f=s("8z0m"),y=s("WmNS"),E=s.n(y),T=s("q1tI"),A=s.n(T),w=s("m3rI"),O=s("ErOA"),g=s("sckv"),S=s.n(g),m=s("KhGG"),N=s("1vsH"),I=f.a.Dragger,b=function(C){var F,z=C.dispatch,H=C.id,D=C.onClose,K=C.onOK,B=C.visible,M=C.wrapClassName,j=C.local,W=C.containerId,X=C.rootIdentifier,P=Object(T.useState)({}),k=Object(u.a)(P,2),Y=k[0],J=k[1],te=Object(T.useState)([]),ne=Object(u.a)(te,2),q=ne[0],ue=ne[1],le=Object(T.useState)([]),ee=Object(u.a)(le,2),se=ee[0],Z=ee[1],oe=Object(T.useState)(0),L=Object(u.a)(oe,2),V=L[0],ae=L[1],Q=Object(T.useState)(!1),G=Object(u.a)(Q,2),R=G[0],U=G[1],re=Object(T.useState)(!1),$=Object(u.a)(re,2),ce=$[0],pe=$[1],ge=t.a.useForm(),Ce=Object(u.a)(ge,1),Ae=Ce[0],Se=Object(T.useState)([]),Me=Object(u.a)(Se,2),fe=Me[0],he=Me[1],be=Object(T.useRef)([]);Object(T.useEffect)(function(){B&&(Ae.resetFields(),he([]),Z([]),ue([]),ae(0),pe(!1),U(!1))},[B]);var Ie=function(ve){if(ve.file.status==="done"||ve.file.status==="uploading"){var Ee,me,ie;if(he(ve.fileList),!ve.file.response)return;if((Ee=ve.file.response)!==null&&Ee!==void 0&&Ee.id){a.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}he(fe.filter(function(de){return de.uid!==ve.file.uid})),((me=ve.file.response)===null||me===void 0?void 0:me.message)&&a.b.info((ie=ve.file.response)===null||ie===void 0?void 0:ie.message)}},_e=function(){var Ne=Object(o.a)(E.a.mark(function ve(Ee){var me,ie,de;return E.a.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(V){xe.next=8;break}return ie=fe.filter(function(Te){return Te.uid!==Ee.uid}),he(ie),be.current=Object(i.a)(ie),ue(q.filter(function(Te){return Te!==Ee.name})),a.b.info("\u5220\u9664\u6210\u529F"),ie.length||(Ae.setFieldsValue({file:void 0}),Ae.validateFields()),xe.abrupt("return");case 8:if(Ee.response){xe.next=11;break}return a.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),xe.abrupt("return");case 11:return xe.next=13,Object(O.a)("/api/shixuns/".concat(H,"/destroy_data_sets.json"),{method:"Delete",body:{id:[Ee==null||((me=Ee.response)===null||me===void 0)?void 0:me.id]}});case 13:de=xe.sent,de.status===0&&(he(fe.filter(function(Te){return Te.uid!==Ee.uid})),a.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return xe.stop()}},ve)}));return function(Ee){return Ne.apply(this,arguments)}}(),Le=function(ve){if(fe!=null&&fe.some(function(me){return me.name===ve.name}))return a.b.info("".concat(ve.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var Ee={name:ve.name,uid:ve.uid,file:ve,percent:0};return fe.push(Ee),be.current=Object(i.a)(fe),he(Object(i.a)(fe)),!1},je={height:300,multiple:!0,disabled:V>0,withCredentials:!0,fileList:fe,action:"".concat(w.a.API_SERVER,"/api/attachments.json"),onChange:Ie,onRemove:_e,beforeUpload:Le},Oe=function(ve,Ee,me,ie,de,we){var xe=new FormData;Object.keys(ve).forEach(function(Re){xe.append(Re,ve[Re])});var Te=new window.XMLHttpRequest;return Te.withCredentials=!0,Te.addEventListener("load",function(Re){var ye;me(JSON.parse(Re==null||((ye=Re.target)===null||ye===void 0)?void 0:ye.response))},!1),Te.addEventListener("error",function(Re){de&&de(Re)},!1),Te.upload.onprogress=function(Re){ie&&ie(Re)},Te.open("POST",Ee),Te.send(xe),Te},Pe=function(ve,Ee){if(ve.lengthComputable){var me=Math.floor(ve.loaded/ve.total*100),ie=Object(h.a)(Object(h.a)({},Ee),{},{percent:me,status:me===100?"done":"uploading"});console.log(be.current,333),be.current=be.current.map(function(de){return de.uid===Ee.uid?ie:de}),he(be.current)}},Ue=function(ve,Ee){debugger;var me=Object(h.a)(Object(h.a)({},Ee),{},{status:"error"});a.b.warn(a.b?a.b:"\u4E0A\u4F20\u5931\u8D25"),be.current=be.current.map(function(ie){return ie.uid===Ee.uid?me:ie}),be.current.every(function(ie){return ie.status==="done"||ie.status==="error"})&&(pe(!1),ae(2)),he(be.current)},Be=function(ve,Ee){var me=Object(h.a)(Object(h.a)({},Ee),{},{status:"done"});if(ve.status===0||(me=Object(h.a)(Object(h.a)({},Ee),{},{status:"error"}),a.b.error("\u4E0A\u4F20\u5931\u8D25!")),be.current=be.current.map(function(ie){return ie.uid===Ee.uid?me:ie}),be.current.every(function(ie){return ie.status==="done"})){a.b.success("\u4E0A\u4F20\u5B8C\u6210!"),He(!0);return}be.current.every(function(ie){return ie.status==="done"||ie.status==="error"})&&(pe(!1),ae(2)),he(be.current)},ke=function(){var ve=!0;return window.navigator.onLine==!0?ve=!0:ve=!1,ve},Ge=function(){var Ne=Object(o.a)(E.a.mark(function ve(Ee){var me,ie,de,we,xe,Te,Re,ye;return E.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(pe(!0),!(V===3)){Fe.next=4;break}return ae(2),Fe.abrupt("return");case 4:if(!(V===2||V===1)){Fe.next=7;break}return ze(),Fe.abrupt("return");case 7:return me=Ee||{},ie=me.commitMessage,de=ie===void 0?"":ie,we=me.fileOss,xe=we===void 0?[]:we,Te=j?fe:xe,Re=Te.map(function(Je){return Je.name}),Fe.next=12,Object(O.a)("/api/shixuns/".concat(H,"/check_data_sets"),{method:"post",body:{files_name:Re}});case 12:if(ye=Fe.sent,!(ye.status===-3)){Fe.next=17;break}return ue(ye==null?void 0:ye.exist_files),pe(!1),Fe.abrupt("return");case 17:if(!(JSON.stringify(ye)==="{}")){Fe.next=21;break}return pe(!1),a.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),Fe.abrupt("return");case 21:ye.status===0&&(fe.forEach(function(Je){var Ye=Oe({file:Je.file,description:de,message:ye.message},"".concat(w.a.API_SERVER,"/api/shixuns/").concat(H,"/upload_data_sets.json"),function(Qe){return Be(Qe,Je)},function(Qe){return Pe(Qe,Je)},function(Qe){return Ue(Qe,Je)});se.push(Ye)}),ae(1));case 22:case"end":return Fe.stop()}},ve)}));return function(Ee){return Ne.apply(this,arguments)}}(),ze=function(){var ve=Object(h.a)({},Ae.getFieldsValue())||{},Ee=ve.commitMessage,me=Ee===void 0?"":Ee,ie=be.current.filter(function(we){return we.status==="error"}),de=be.current.map(function(we){return Object(h.a)(Object(h.a)({},we),{},{status:we.status==="error"?"uploading":we.status})});he(de),ie.forEach(function(we){var xe=Oe({file:we.file,description:me},"".concat(w.a.API_SERVER,"/api/shixuns/").concat(H,"/upload_data_sets.json"),function(Te){return Be(Te,we)},function(Te){return Pe(Te,we)},function(Te){return Ue(Te,we)});se.push(xe)})},Xe=function(ve){if(console.log(ve,"changedValues"),"fileOss"in ve){var Ee,me;if(ve!=null&&ve.fileOss.every(function(ie){return ie.status==="done"})&&ve!==null&&ve!==void 0&&(Ee=ve.fileOss)!==null&&Ee!==void 0&&Ee.length){a.b.success("\u4E0A\u4F20\u5B8C\u6210!"),He(!0);return}if(ve!=null&&ve.fileOss.every(function(ie){return ie.status==="done"||ie.status==="error"})&&ve!==null&&ve!==void 0&&(me=ve.fileOss)!==null&&me!==void 0&&me.length){ae(3),pe(!1);return}ue(q.filter(function(ie){var de;return ve==null||((de=ve.fileOss)===null||de===void 0)?void 0:de.some(function(we){return we.name===ie})}))}J(Object(h.a)({},Ae.getFieldsValue()))},He=function(ve){ve||(U(!0),se.forEach(function(Ee){Ee.abort()})),K(),D()},We=function(){var ve=Object(h.a)({},Ae.getFieldsValue())||{},Ee=ve.fileOss,me=Ee===void 0?[]:Ee,ie=fe==null?void 0:fe.every(function(we){return we.status==="done"}),de=me==null?void 0:me.every(function(we){return we.status==="done"});if(!ie||!de){v.a.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){He()}});return}He()},Ke=function(){return A.a.createElement(A.a.Fragment,null,A.a.createElement("div",null,A.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(S.a.colorBlue)})),A.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",A.a.createElement("span",{className:"".concat(S.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},Ve=function(ve){console.log(ve,444)};return A.a.createElement(v.a,{visible:B,wrapClassName:M,onOk:function(){Object(N.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),Ae.submit()},centered:!0,okText:V===0?"\u786E\u5B9A":V===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:ce},onCancel:We,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},A.a.createElement("div",{className:S.a.wrap},A.a.createElement(t.a,{className:"mt10",form:Ae,scrollToFirstError:!0,layout:"vertical",onFinish:Ge,onValuesChange:Xe},j?A.a.createElement(t.a.Item,{label:A.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",A.a.createElement("span",{style:{visibility:"hidden"},className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7500M)")),name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},A.a.createElement(I,je," ",Ke())):A.a.createElement(t.a.Item,{label:A.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",A.a.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7100GB)")),name:"fileOss",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},A.a.createElement(m.b,{identifier:X,cancelUpload:R,container_type:"Shixun",container_id:W,uploading:V<3?V:0,disabled:V>0,height:300,maxSize:100*1024*1024*1024,description:Y.commitMessage||"",text:Ke(),onComplete:Ve,realFileName:!0})),!!q.length&&A.a.createElement("span",{className:S.a.repeatedName},q.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),A.a.createElement(t.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},A.a.createElement(r.a,{bordered:!1,disabled:V>0,maxLength:100,suffix:"".concat(((F=Y.commitMessage)===null||F===void 0?void 0:F.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};_.a=b},MEGo:function(c,_,s){var d=s("4fz+"),r=s("Dagg"),x=s("dqUG"),v=s("2fw6"),h=s("x6Kt"),i=s("rmlV"),o=s("yxFR"),e=s("y+Vt"),a=s("h7HQ"),n=s("1Jh7"),t=s("SKnc"),u=s("K2GJ"),l=s("Fofx"),f=s("NC18"),y=f.createFromString,E=s("bYtY"),T=E.isString,A=E.extend,w=E.defaults,O=E.trim,g=E.each,S=/[\s,]+/;function m(k){if(T(k)){var Y=new DOMParser;k=Y.parseFromString(k,"text/xml")}for(k.nodeType===9&&(k=k.firstChild);k.nodeName.toLowerCase()!=="svg"||k.nodeType!==1;)k=k.nextSibling;return k}function N(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}N.prototype.parse=function(k,Y){Y=Y||{};var J=m(k);if(!J)throw new Error("Illegal svg");var te=new d;this._root=te;var ne=J.getAttribute("viewBox")||"",q=parseFloat(J.getAttribute("width")||Y.width),ue=parseFloat(J.getAttribute("height")||Y.height);isNaN(q)&&(q=null),isNaN(ue)&&(ue=null),H(J,te,null,!0);for(var le=J.firstChild;le;)this._parseNode(le,te),le=le.nextSibling;var ee,se;if(ne){var Z=O(ne).split(S);Z.length>=4&&(ee={x:parseFloat(Z[0]||0),y:parseFloat(Z[1]||0),width:parseFloat(Z[2]),height:parseFloat(Z[3])})}if(ee&&q!=null&&ue!=null&&(se=X(ee,q,ue),!Y.ignoreViewBox)){var oe=te;te=new d,te.add(oe),oe.scale=se.scale.slice(),oe.position=se.position.slice()}return!Y.ignoreRootClip&&q!=null&&ue!=null&&te.setClipPath(new h({shape:{x:0,y:0,width:q,height:ue}})),{root:te,width:q,height:ue,viewBoxRect:ee,viewBoxTransform:se}},N.prototype._parseNode=function(k,Y){var J=k.nodeName.toLowerCase();J==="defs"?this._isDefine=!0:J==="text"&&(this._isText=!0);var te;if(this._isDefine){var ne=b[J];if(ne){var q=ne.call(this,k),ue=k.getAttribute("id");ue&&(this._defs[ue]=q)}}else{var ne=I[J];ne&&(te=ne.call(this,k,Y),Y.add(te))}for(var le=k.firstChild;le;)le.nodeType===1&&this._parseNode(le,te),le.nodeType===3&&this._isText&&this._parseText(le,te),le=le.nextSibling;J==="defs"?this._isDefine=!1:J==="text"&&(this._isText=!1)},N.prototype._parseText=function(k,Y){if(k.nodeType===1){var J=k.getAttribute("dx")||0,te=k.getAttribute("dy")||0;this._textX+=parseFloat(J),this._textY+=parseFloat(te)}var ne=new x({style:{text:k.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});C(Y,ne),H(k,ne,this._defs);var q=ne.style.fontSize;q&&q<9&&(ne.style.fontSize=9,ne.scale=ne.scale||[1,1],ne.scale[0]*=q/9,ne.scale[1]*=q/9);var ue=ne.getBoundingRect();return this._textX+=ue.width,Y.add(ne),ne};var I={g:function(k,Y){var J=new d;return C(Y,J),H(k,J,this._defs),J},rect:function(k,Y){var J=new h;return C(Y,J),H(k,J,this._defs),J.setShape({x:parseFloat(k.getAttribute("x")||0),y:parseFloat(k.getAttribute("y")||0),width:parseFloat(k.getAttribute("width")||0),height:parseFloat(k.getAttribute("height")||0)}),J},circle:function(k,Y){var J=new v;return C(Y,J),H(k,J,this._defs),J.setShape({cx:parseFloat(k.getAttribute("cx")||0),cy:parseFloat(k.getAttribute("cy")||0),r:parseFloat(k.getAttribute("r")||0)}),J},line:function(k,Y){var J=new o;return C(Y,J),H(k,J,this._defs),J.setShape({x1:parseFloat(k.getAttribute("x1")||0),y1:parseFloat(k.getAttribute("y1")||0),x2:parseFloat(k.getAttribute("x2")||0),y2:parseFloat(k.getAttribute("y2")||0)}),J},ellipse:function(k,Y){var J=new i;return C(Y,J),H(k,J,this._defs),J.setShape({cx:parseFloat(k.getAttribute("cx")||0),cy:parseFloat(k.getAttribute("cy")||0),rx:parseFloat(k.getAttribute("rx")||0),ry:parseFloat(k.getAttribute("ry")||0)}),J},polygon:function(k,Y){var J=k.getAttribute("points");J&&(J=F(J));var te=new a({shape:{points:J||[]}});return C(Y,te),H(k,te,this._defs),te},polyline:function(k,Y){var J=new e;C(Y,J),H(k,J,this._defs);var te=k.getAttribute("points");te&&(te=F(te));var ne=new n({shape:{points:te||[]}});return ne},image:function(k,Y){var J=new r;return C(Y,J),H(k,J,this._defs),J.setStyle({image:k.getAttribute("xlink:href"),x:k.getAttribute("x"),y:k.getAttribute("y"),width:k.getAttribute("width"),height:k.getAttribute("height")}),J},text:function(k,Y){var J=k.getAttribute("x")||0,te=k.getAttribute("y")||0,ne=k.getAttribute("dx")||0,q=k.getAttribute("dy")||0;this._textX=parseFloat(J)+parseFloat(ne),this._textY=parseFloat(te)+parseFloat(q);var ue=new d;return C(Y,ue),H(k,ue,this._defs),ue},tspan:function(k,Y){var J=k.getAttribute("x"),te=k.getAttribute("y");J!=null&&(this._textX=parseFloat(J)),te!=null&&(this._textY=parseFloat(te));var ne=k.getAttribute("dx")||0,q=k.getAttribute("dy")||0,ue=new d;return C(Y,ue),H(k,ue,this._defs),this._textX+=ne,this._textY+=q,ue},path:function(k,Y){var J=k.getAttribute("d")||"",te=y(J);return C(Y,te),H(k,te,this._defs),te}},b={lineargradient:function(k){var Y=parseInt(k.getAttribute("x1")||0,10),J=parseInt(k.getAttribute("y1")||0,10),te=parseInt(k.getAttribute("x2")||10,10),ne=parseInt(k.getAttribute("y2")||0,10),q=new t(Y,J,te,ne);return p(k,q),q},radialgradient:function(k){}};function p(k,Y){for(var J=k.firstChild;J;){if(J.nodeType===1){var te=J.getAttribute("offset");te.indexOf("%")>0?te=parseInt(te,10)/100:te?te=parseFloat(te):te=0;var ne=J.getAttribute("stop-color")||"#000000";Y.addColorStop(te,ne)}J=J.nextSibling}}function C(k,Y){k&&k.__inheritedStyle&&(Y.__inheritedStyle||(Y.__inheritedStyle={}),w(Y.__inheritedStyle,k.__inheritedStyle))}function F(k){for(var Y=O(k).split(S),J=[],te=0;te0;q-=2){var ue=ne[q],le=ne[q-1];te=te||l.create();switch(le){case"translate":ue=O(ue).split(S),l.translate(te,te,[parseFloat(ue[0]),parseFloat(ue[1]||0)]);break;case"scale":ue=O(ue).split(S),l.scale(te,te,[parseFloat(ue[0]),parseFloat(ue[1]||ue[0])]);break;case"rotate":ue=O(ue).split(S),l.rotate(te,te,parseFloat(ue[0]));break;case"skew":ue=O(ue).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var ue=O(ue).split(S);te[0]=parseFloat(ue[0]),te[1]=parseFloat(ue[1]),te[2]=parseFloat(ue[2]),te[3]=parseFloat(ue[3]),te[4]=parseFloat(ue[4]),te[5]=parseFloat(ue[5]);break}}Y.setLocalTransform(te)}}var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(k){var Y=k.getAttribute("style"),J={};if(!Y)return J;var te={};j.lastIndex=0;for(var ne;(ne=j.exec(Y))!=null;)te[ne[1]]=ne[2];for(var q in z)z.hasOwnProperty(q)&&te[q]!=null&&(J[z[q]]=te[q]);return J}function X(k,Y,J){var te=Y/k.width,ne=J/k.height,q=Math.min(te,ne),ue=[q,q],le=[-(k.x+k.width/2)*q+Y/2,-(k.y+k.height/2)*q+J/2];return{scale:ue,position:le}}function P(k,Y){var J=new N;return J.parse(k,Y)}_.parseXML=m,_.makeViewBoxTransform=X,_.parseSVG=P},MKOG:function(c,_,s){var d=s("bYtY"),r=s("YH21"),x=r.Dispatcher,v=s("mLcG"),h=s("Bq2U"),i=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,x.call(this)};i.prototype={constructor:i,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var a=e.getClips(),n=0;n=0&&this._clips.splice(a,1)},removeAnimator:function(e){for(var a=e.getClips(),n=0;n1&&(I*=v(K),b*=v(K));var B=(m===N?-1:1)*v((I*I*(b*b)-I*I*(D*D)-b*b*(H*H))/(I*I*(D*D)+b*b*(H*H)))||0,M=B*I*D/b,j=B*-b*H/I,W=(w+g)/2+i(z)*M-h(z)*j,X=(O+S)/2+h(z)*M+i(z)*j,P=n([1,0],[(H-M)/I,(D-j)/b]),k=[(H-M)/I,(D-j)/b],Y=[(-1*H-M)/I,(-1*D-j)/b],J=n(k,Y);a(k,Y)<=-1&&(J=o),a(k,Y)>=1&&(J=0),N===0&&J>0&&(J=J-2*o),N===1&&J<0&&(J=J+2*o),F.addData(C,W,X,I,b,P,J,z,N)}var u=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,l=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function f(w){if(!w)return new r;for(var O=0,g=0,S=O,m=g,N,I=new r,b=r.CMD,p=w.match(u),C=0;C1&&arguments[1]!==void 0?arguments[1]:60,h=null;return function(){for(var i=this,o=arguments.length,e=new Array(o),a=0;a=0;E-=1){var T=e.get(E)||new Set;T.forEach(function(A){var w=A.parent,O=A.node;if(n(O)||!A.parent||y.has(A.parent.key))return;if(n(A.parent.node)){y.add(w.key);return}var g=!0,S=!1;(w.children||[]).filter(function(m){return!n(m.node)}).forEach(function(m){var N=m.key,I=t.has(N);g&&!I&&(g=!1),!S&&(I||u.has(N))&&(S=!0)}),g&&t.add(w.key),S&&u.add(w.key),y.add(w.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(r(u,t))}}function h(o,e,a,n,t){for(var u=new Set(o),l=new Set(e),f=0;f<=n;f+=1){var y=a.get(f)||new Set;y.forEach(function(w){var O=w.key,g=w.node,S=w.children,m=S===void 0?[]:S;!u.has(O)&&!l.has(O)&&!t(g)&&m.filter(function(N){return!t(N.node)}).forEach(function(N){u.delete(N.key)})})}l=new Set;for(var E=new Set,T=n;T>=0;T-=1){var A=a.get(T)||new Set;A.forEach(function(w){var O=w.parent,g=w.node;if(t(g)||!w.parent||E.has(w.parent.key))return;if(t(w.parent.node)){E.add(O.key);return}var S=!0,m=!1;(O.children||[]).filter(function(N){return!t(N.node)}).forEach(function(N){var I=N.key,b=u.has(I);S&&!b&&(S=!1),!m&&(b||l.has(I))&&(m=!0)}),S||u.delete(O.key),m&&l.add(O.key),E.add(O.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(r(l,u))}}function i(o,e,a,n){var t=[],u;n?u=n:u=x;var l=new Set(o.filter(function(T){var A=!!a[T];return A||t.push(T),A})),f=new Map,y=0;Object.keys(a).forEach(function(T){var A=a[T],w=A.level,O=f.get(w);O||(O=new Set,f.set(w,O)),O.add(A),y=Math.max(y,w)}),Object(d.a)(!t.length,"Tree missing follow keys: ".concat(t.slice(0,100).map(function(T){return"'".concat(T,"'")}).join(", ")));var E;return e===!0?E=v(l,f,y,u):E=h(l,e.halfCheckedKeys,f,y,u),E}},OLES:function(c,_,s){"use strict";var d=s("U8pU"),r=s("VTBJ"),x=s("Ff2n"),v=s("q1tI"),h=s("uciX"),i=s("7ixt"),o=function(l){var f=l.overlay,y=l.prefixCls,E=l.id,T=l.overlayInnerStyle;return v.createElement("div",{className:"".concat(y,"-inner"),id:E,role:"tooltip",style:T},typeof f=="function"?f():f)},e=o,a=function(l,f){var y=l.overlayClassName,E=l.trigger,T=E===void 0?["hover"]:E,A=l.mouseEnterDelay,w=A===void 0?0:A,O=l.mouseLeaveDelay,g=O===void 0?.1:O,S=l.overlayStyle,m=l.prefixCls,N=m===void 0?"rc-tooltip":m,I=l.children,b=l.onVisibleChange,p=l.afterVisibleChange,C=l.transitionName,F=l.animation,z=l.placement,H=z===void 0?"right":z,D=l.align,K=D===void 0?{}:D,B=l.destroyTooltipOnHide,M=B===void 0?!1:B,j=l.defaultVisible,W=l.getTooltipContainer,X=l.overlayInnerStyle,P=Object(x.a)(l,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),k=Object(v.useRef)(null);Object(v.useImperativeHandle)(f,function(){return k.current});var Y=Object(r.a)({},P);"visible"in l&&(Y.popupVisible=l.visible);var J=function(){var le=l.arrowContent,ee=le===void 0?null:le,se=l.overlay,Z=l.id;return[v.createElement("div",{className:"".concat(N,"-arrow"),key:"arrow"},ee),v.createElement(e,{key:"content",prefixCls:N,id:Z,overlay:se,overlayInnerStyle:X})]},te=!1,ne=!1;if(typeof M=="boolean")te=M;else if(M&&Object(d.a)(M)==="object"){var q=M.keepParent;te=q===!0,ne=q===!1}return v.createElement(h.a,Object.assign({popupClassName:y,prefixCls:N,popup:J,action:T,builtinPlacements:i.a,popupPlacement:H,ref:k,popupAlign:K,getPopupContainer:W,onPopupVisibleChange:b,afterPopupVisibleChange:p,popupTransitionName:C,popupAnimation:F,defaultPopupVisible:j,destroyPopupOnHide:te,autoDestroy:ne,mouseLeaveDelay:g,popupStyle:S,mouseEnterDelay:w},Y),I)},n=Object(v.forwardRef)(a),t=_.a=n},OLod:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("K3mO"))})(this,function(d){d.lib.Cipher||function(r){var x=d,v=x.lib,h=v.Base,i=v.WordArray,o=v.BufferedBlockAlgorithm,e=x.enc,a=e.Utf8,n=e.Base64,t=x.algo,u=t.EvpKDF,l=v.Cipher=o.extend({cfg:h.extend(),createEncryptor:function(C,F){return this.create(this._ENC_XFORM_MODE,C,F)},createDecryptor:function(C,F){return this.create(this._DEC_XFORM_MODE,C,F)},init:function(C,F,z){this.cfg=this.cfg.extend(z),this._xformMode=C,this._key=F,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var F=this._doFinalize();return F},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(F){return typeof F=="string"?p:N}return function(F){return{encrypt:function(z,H,D){return C(H).encrypt(F,z,H,D)},decrypt:function(z,H,D){return C(H).decrypt(F,z,H,D)}}}}()}),f=v.StreamCipher=l.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1}),y=x.mode={},E=v.BlockCipherMode=h.extend({createEncryptor:function(C,F){return this.Encryptor.create(C,F)},createDecryptor:function(C,F){return this.Decryptor.create(C,F)},init:function(C,F){this._cipher=C,this._iv=F}}),T=y.CBC=function(){var C=E.extend();C.Encryptor=C.extend({processBlock:function(z,H){var D=this._cipher,K=D.blockSize;F.call(this,z,H,K),D.encryptBlock(z,H),this._prevBlock=z.slice(H,H+K)}}),C.Decryptor=C.extend({processBlock:function(z,H){var D=this._cipher,K=D.blockSize,B=z.slice(H,H+K);D.decryptBlock(z,H),F.call(this,z,H,K),this._prevBlock=B}});function F(z,H,D){var K,B=this._iv;B?(K=B,this._iv=r):K=this._prevBlock;for(var M=0;M>>2]&255;C.sigBytes-=F}},O=v.BlockCipher=l.extend({cfg:l.cfg.extend({mode:T,padding:w}),reset:function(){var C;l.reset.call(this);var F=this.cfg,z=F.iv,H=F.mode;this._xformMode==this._ENC_XFORM_MODE?C=H.createEncryptor:(C=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,z&&z.words):(this._mode=C.call(H,this,z&&z.words),this._mode.__creator=C)},_doProcessBlock:function(C,F){this._mode.processBlock(C,F)},_doFinalize:function(){var C,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),F.unpad(C)),C},blockSize:128/32}),g=v.CipherParams=h.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),S=x.format={},m=S.OpenSSL={stringify:function(C){var F,z=C.ciphertext,H=C.salt;return H?F=i.create([1398893684,1701076831]).concat(H).concat(z):F=z,F.toString(n)},parse:function(C){var F,z=n.parse(C),H=z.words;return H[0]==1398893684&&H[1]==1701076831&&(F=i.create(H.slice(2,4)),H.splice(0,4),z.sigBytes-=16),g.create({ciphertext:z,salt:F})}},N=v.SerializableCipher=h.extend({cfg:h.extend({format:m}),encrypt:function(C,F,z,H){H=this.cfg.extend(H);var D=C.createEncryptor(z,H),K=D.finalize(F),B=D.cfg;return g.create({ciphertext:K,key:z,iv:B.iv,algorithm:C,mode:B.mode,padding:B.padding,blockSize:C.blockSize,formatter:H.format})},decrypt:function(C,F,z,H){H=this.cfg.extend(H),F=this._parse(F,H.format);var D=C.createDecryptor(z,H).finalize(F.ciphertext);return D},_parse:function(C,F){return typeof C=="string"?F.parse(C,this):C}}),I=x.kdf={},b=I.OpenSSL={execute:function(C,F,z,H){H||(H=i.random(64/8));var D=u.create({keySize:F+z}).compute(C,H),K=i.create(D.words.slice(F),z*4);return D.sigBytes=F*4,g.create({key:D,iv:K,salt:H})}},p=v.PasswordBasedCipher=N.extend({cfg:N.cfg.extend({kdf:b}),encrypt:function(C,F,z,H){H=this.cfg.extend(H);var D=H.kdf.execute(z,C.keySize,C.ivSize);H.iv=D.iv;var K=N.encrypt.call(this,C,F,D.key,H);return K.mixIn(D),K},decrypt:function(C,F,z,H){H=this.cfg.extend(H),F=this._parse(F,H.format);var D=H.kdf.execute(z,C.keySize,C.ivSize,F.salt);H.iv=D.iv;var K=N.decrypt.call(this,C,F,D.key,H);return K}})}()})},OS9S:function(c,_,s){var d=s("bYtY"),r=d.inherits,x=s("Gev7"),v=s("mFDi");function h(e){x.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}h.prototype.incremental=!0,h.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},h.prototype.addDisplayable=function(e,a){a?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},h.prototype.addDisplayables=function(e,a){a=a||!1;for(var n=0;n=0&&I.splice(b,1),I}function t(m,N){var I=m.slice();return I.indexOf(N)===-1&&I.push(N),I}function u(m){return m.split("-")}function l(m,N){return"".concat(m,"-").concat(N)}function f(m){return m&&m.type&&m.type.isTreeNode}function y(m,N){var I=[m],b=N[m];function p(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];C.forEach(function(F){var z=F.key,H=F.children;I.push(z),p(H)})}return p(b.children),I}function E(m,N){var I=m.clientY,b=N.selectHandle.getBoundingClientRect(),p=b.top,C=b.bottom,F=b.height,z=Math.max(F*e,a);return I<=p+z?-1:I>=C-z?1:0}function T(m,N){if(!m)return;var I=N.multiple;return I?m.slice():m.length?[m[0]]:m}var A=function(N){return N};function w(m,N){if(!m)return[];var I=N||{},b=I.processProps,p=b===void 0?A:b,C=Array.isArray(m)?m:[m];return C.map(function(F){var z=F.children,H=Object(x.a)(F,["children"]),D=w(z,N);return h.a.createElement(o.a,Object.assign({},p(H)),D)})}function O(m){if(!m)return null;var N;if(Array.isArray(m))N={checkedKeys:m,halfCheckedKeys:void 0};else if(Object(r.a)(m)==="object")N={checkedKeys:m.checked||void 0,halfCheckedKeys:m.halfChecked||void 0};else return Object(i.a)(!1,"`checkedKeys` is not an array or an object"),null;return N}function g(m,N){var I=new Set;function b(p){if(I.has(p))return;var C=N[p];if(!C)return;I.add(p);var F=C.parent,z=C.node;if(z.disabled)return;F&&b(F.key)}return(m||[]).forEach(function(p){b(p)}),Object(d.a)(I)}function S(m){var N={};return Object.keys(m).forEach(function(I){(I.startsWith("data-")||I.startsWith("aria-"))&&(N[I]=m[I])}),N}},Ohmc:function(c,_,s){c.exports=s.p+"static/certificate.fc32dc1b.jpg"},P47w:function(c,_,s){var d=s("hydK"),r=d.createElement,x=s("IMiH"),v=s("mFDi"),h=s("Fofx"),i=s("6GrX"),o=s("pzxd"),e=s("dqUG"),a=x.CMD,n=Array.prototype.join,t="none",u=Math.round,l=Math.sin,f=Math.cos,y=Math.PI,E=Math.PI*2,T=180/y,A=1e-4;function w(k){return u(k*1e4)/1e4}function O(k){return k-A}function g(k,Y){var J=Y?k.textFill:k.fill;return J!=null&&J!==t}function S(k,Y){var J=Y?k.textStroke:k.stroke;return J!=null&&J!==t}function m(k,Y){Y&&N(k,"transform","matrix("+n.call(Y,",")+")")}function N(k,Y,J){(!J||J.type!=="linear"&&J.type!=="radial")&&k.setAttribute(Y,J)}function I(k,Y,J){k.setAttributeNS("http://www.w3.org/1999/xlink",Y,J)}function b(k,Y,J,te){if(g(Y,J)){var ne=J?Y.textFill:Y.fill;ne=ne==="transparent"?t:ne,N(k,"fill",ne),N(k,"fill-opacity",Y.fillOpacity!=null?Y.fillOpacity*Y.opacity:Y.opacity)}else N(k,"fill",t);if(S(Y,J)){var q=J?Y.textStroke:Y.stroke;q=q==="transparent"?t:q,N(k,"stroke",q);var ue=J?Y.textStrokeWidth:Y.lineWidth,le=!J&&Y.strokeNoScale?te.getLineScale():1;N(k,"stroke-width",ue/le),N(k,"paint-order",J?"stroke":"fill"),N(k,"stroke-opacity",Y.strokeOpacity!=null?Y.strokeOpacity:Y.opacity);var ee=Y.lineDash;ee?(N(k,"stroke-dasharray",Y.lineDash.join(",")),N(k,"stroke-dashoffset",u(Y.lineDashOffset||0))):N(k,"stroke-dasharray",""),Y.lineCap&&N(k,"stroke-linecap",Y.lineCap),Y.lineJoin&&N(k,"stroke-linejoin",Y.lineJoin),Y.miterLimit&&N(k,"stroke-miterlimit",Y.miterLimit)}else N(k,"stroke",t)}function p(k){for(var Y=[],J=k.data,te=k.len(),ne=0;ne=E:-V>=E),U=V>0?V%E:V%E+E,re=!1;R?re=!0:O(G)?re=!1:re=U>=y===!!Q;var $=w(ee+Z*f(L)),ce=w(se+oe*l(L));R&&(Q?V=E-1e-4:V=-E+1e-4,re=!0,ne===9&&Y.push("M",$,ce));var pe=w(ee+Z*f(L+V)),ge=w(se+oe*l(L+V));Y.push("A",w(Z),w(oe),u(ae*T),+re,+Q,pe,ge);break;case a.Z:ue="Z";break;case a.R:var pe=w(J[ne++]),ge=w(J[ne++]),Ce=w(J[ne++]),Ae=w(J[ne++]);Y.push("M",pe,ge,"L",pe+Ce,ge,"L",pe+Ce,ge+Ae,"L",pe,ge+Ae,"L",pe,ge);break}ue&&Y.push(ue);for(var Se=0;SeMe){for(;Ae>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],f=this._C=[t[2]<<16|t[2]>>>16,t[0]&4294901760|t[1]&65535,t[3]<<16|t[3]>>>16,t[1]&4294901760|t[2]&65535,t[0]<<16|t[0]>>>16,t[2]&4294901760|t[3]&65535,t[1]<<16|t[1]>>>16,t[3]&4294901760|t[0]&65535];this._b=0;for(var y=0;y<4;y++)n.call(this);for(var y=0;y<8;y++)f[y]^=l[y+4&7];if(u){var E=u.words,T=E[0],A=E[1],w=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,O=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,g=w>>>16|O&4294901760,S=O<<16|w&65535;f[0]^=w,f[1]^=g,f[2]^=O,f[3]^=S,f[4]^=w,f[5]^=g,f[6]^=O,f[7]^=S;for(var y=0;y<4;y++)n.call(this)}},_doProcessBlock:function(t,u){var l=this._X;n.call(this),i[0]=l[0]^l[5]>>>16^l[3]<<16,i[1]=l[2]^l[7]>>>16^l[5]<<16,i[2]=l[4]^l[1]>>>16^l[7]<<16,i[3]=l[6]^l[3]>>>16^l[1]<<16;for(var f=0;f<4;f++)i[f]=(i[f]<<8|i[f]>>>24)&16711935|(i[f]<<24|i[f]>>>8)&4278255360,t[u+f]^=i[f]},blockSize:128/32,ivSize:64/32});function n(){for(var t=this._X,u=this._C,l=0;l<8;l++)o[l]=u[l];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0>>0?1:0)|0,this._b=u[7]>>>0>>0?1:0;for(var l=0;l<8;l++){var f=t[l]+u[l],y=f&65535,E=f>>>16,T=((y*y>>>17)+y*E>>>15)+E*E,A=((f&4294901760)*f|0)+((f&65535)*f|0);e[l]=T^A}t[0]=e[0]+(e[7]<<16|e[7]>>>16)+(e[6]<<16|e[6]>>>16)|0,t[1]=e[1]+(e[0]<<8|e[0]>>>24)+e[7]|0,t[2]=e[2]+(e[1]<<16|e[1]>>>16)+(e[0]<<16|e[0]>>>16)|0,t[3]=e[3]+(e[2]<<8|e[2]>>>24)+e[1]|0,t[4]=e[4]+(e[3]<<16|e[3]>>>16)+(e[2]<<16|e[2]>>>16)|0,t[5]=e[5]+(e[4]<<8|e[4]>>>24)+e[3]|0,t[6]=e[6]+(e[5]<<16|e[5]>>>16)+(e[4]<<16|e[4]>>>16)|0,t[7]=e[7]+(e[6]<<8|e[6]>>>24)+e[5]|0}r.RabbitLegacy=v._createHelper(a)}(),d.RabbitLegacy})},QBsz:function(c,_){var s=typeof Float32Array=="undefined"?Array:Float32Array;function d(b,p){var C=new s(2);return b==null&&(b=0),p==null&&(p=0),C[0]=b,C[1]=p,C}function r(b,p){return b[0]=p[0],b[1]=p[1],b}function x(b){var p=new s(2);return p[0]=b[0],p[1]=b[1],p}function v(b,p,C){return b[0]=p,b[1]=C,b}function h(b,p,C){return b[0]=p[0]+C[0],b[1]=p[1]+C[1],b}function i(b,p,C,F){return b[0]=p[0]+C[0]*F,b[1]=p[1]+C[1]*F,b}function o(b,p,C){return b[0]=p[0]-C[0],b[1]=p[1]-C[1],b}function e(b){return Math.sqrt(n(b))}var a=e;function n(b){return b[0]*b[0]+b[1]*b[1]}var t=n;function u(b,p,C){return b[0]=p[0]*C[0],b[1]=p[1]*C[1],b}function l(b,p,C){return b[0]=p[0]/C[0],b[1]=p[1]/C[1],b}function f(b,p){return b[0]*p[0]+b[1]*p[1]}function y(b,p,C){return b[0]=p[0]*C,b[1]=p[1]*C,b}function E(b,p){var C=e(p);return C===0?(b[0]=0,b[1]=0):(b[0]=p[0]/C,b[1]=p[1]/C),b}function T(b,p){return Math.sqrt((b[0]-p[0])*(b[0]-p[0])+(b[1]-p[1])*(b[1]-p[1]))}var A=T;function w(b,p){return(b[0]-p[0])*(b[0]-p[0])+(b[1]-p[1])*(b[1]-p[1])}var O=w;function g(b,p){return b[0]=-p[0],b[1]=-p[1],b}function S(b,p,C,F){return b[0]=p[0]+F*(C[0]-p[0]),b[1]=p[1]+F*(C[1]-p[1]),b}function m(b,p,C){var F=p[0],z=p[1];return b[0]=C[0]*F+C[2]*z+C[4],b[1]=C[1]*F+C[3]*z+C[5],b}function N(b,p,C){return b[0]=Math.min(p[0],C[0]),b[1]=Math.min(p[1],C[1]),b}function I(b,p,C){return b[0]=Math.max(p[0],C[0]),b[1]=Math.max(p[1],C[1]),b}_.create=d,_.copy=r,_.clone=x,_.set=v,_.add=h,_.scaleAndAdd=i,_.sub=o,_.len=e,_.length=a,_.lenSquare=n,_.lengthSquare=t,_.mul=u,_.div=l,_.dot=f,_.scale=y,_.normalize=E,_.distance=T,_.dist=A,_.distanceSquare=w,_.distSquare=O,_.negate=g,_.lerp=S,_.applyTransform=m,_.min=N,_.max=I},"QO+J":function(c,_,s){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.createSensor=void 0;var d=x(s("NohK")),r=s("24YM");function x(h){return h&&h.__esModule?h:{default:h}}var v=function(i){var o=void 0,e=[],a=function(){getComputedStyle(i).position==="static"&&(i.style.position="relative");var y=document.createElement("object");return y.onload=function(){y.contentDocument.defaultView.addEventListener("resize",n),n()},y.style.display="block",y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.height="100%",y.style.width="100%",y.style.overflow="hidden",y.style.pointerEvents="none",y.style.zIndex="-1",y.style.opacity="0",y.setAttribute("class",r.SensorClassName),y.setAttribute("tabindex",r.SensorTabIndex),y.type="text/html",i.appendChild(y),y.data="about:blank",y},n=(0,d.default)(function(){e.forEach(function(f){f(i)})}),t=function(y){o||(o=a()),e.indexOf(y)===-1&&e.push(y)},u=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",n),o.parentNode.removeChild(o),o=void 0,e=[])},l=function(y){var E=e.indexOf(y);E!==-1&&e.splice(E,1),e.length===0&&o&&u()};return{element:i,bind:t,destroy:u,unbind:l}};_.createSensor=v},Qe9p:function(c,_,s){var d=s("1RvN"),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function x(p){return p=Math.round(p),p<0?0:p>255?255:p}function v(p){return p=Math.round(p),p<0?0:p>360?360:p}function h(p){return p<0?0:p>1?1:p}function i(p){return p.length&&p.charAt(p.length-1)==="%"?x(parseFloat(p)/100*255):x(parseInt(p,10))}function o(p){return p.length&&p.charAt(p.length-1)==="%"?h(parseFloat(p)/100):h(parseFloat(p))}function e(p,C,F){return F<0?F+=1:F>1&&(F-=1),F*6<1?p+(C-p)*F*6:F*2<1?C:F*3<2?p+(C-p)*(2/3-F)*6:p}function a(p,C,F){return p+(C-p)*F}function n(p,C,F,z,H){return p[0]=C,p[1]=F,p[2]=z,p[3]=H,p}function t(p,C){return p[0]=C[0],p[1]=C[1],p[2]=C[2],p[3]=C[3],p}var u=new d(20),l=null;function f(p,C){l&&t(l,C),l=u.put(p,l||C.slice())}function y(p,C){if(!p)return;C=C||[];var F=u.get(p);if(F)return t(C,F);p=p+"";var z=p.replace(/ /g,"").toLowerCase();if(z in r)return t(C,r[z]),f(p,C),C;if(z.charAt(0)==="#"){if(z.length===4){var H=parseInt(z.substr(1),16);if(!(H>=0&&H<=4095)){n(C,0,0,0,1);return}return n(C,(H&3840)>>4|(H&3840)>>8,H&240|(H&240)>>4,H&15|(H&15)<<4,1),f(p,C),C}else if(z.length===7){var H=parseInt(z.substr(1),16);if(!(H>=0&&H<=16777215)){n(C,0,0,0,1);return}return n(C,(H&16711680)>>16,(H&65280)>>8,H&255,1),f(p,C),C}return}var D=z.indexOf("("),K=z.indexOf(")");if(D!==-1&&K+1===z.length){var B=z.substr(0,D),M=z.substr(D+1,K-(D+1)).split(","),j=1;switch(B){case"rgba":if(M.length!==4){n(C,0,0,0,1);return}j=o(M.pop());case"rgb":if(M.length!==3){n(C,0,0,0,1);return}return n(C,i(M[0]),i(M[1]),i(M[2]),j),f(p,C),C;case"hsla":if(M.length!==4){n(C,0,0,0,1);return}return M[3]=o(M[3]),E(M,C),f(p,C),C;case"hsl":if(M.length!==3){n(C,0,0,0,1);return}return E(M,C),f(p,C),C;default:return}}n(C,0,0,0,1);return}function E(p,C){var F=(parseFloat(p[0])%360+360)%360/360,z=o(p[1]),H=o(p[2]),D=H<=.5?H*(z+1):H+z-H*z,K=H*2-D;return C=C||[],n(C,x(e(K,D,F+1/3)*255),x(e(K,D,F)*255),x(e(K,D,F-1/3)*255),1),p.length===4&&(C[3]=p[3]),C}function T(p){if(!p)return;var C=p[0]/255,F=p[1]/255,z=p[2]/255,H=Math.min(C,F,z),D=Math.max(C,F,z),K=D-H,B=(D+H)/2,M,j;if(K===0)M=0,j=0;else{B<.5?j=K/(D+H):j=K/(2-D-H);var W=((D-C)/6+K/2)/K,X=((D-F)/6+K/2)/K,P=((D-z)/6+K/2)/K;C===D?M=P-X:F===D?M=1/3+W-P:z===D&&(M=2/3+X-W),M<0&&(M+=1),M>1&&(M-=1)}var k=[M*360,j,B];return p[3]!=null&&k.push(p[3]),k}function A(p,C){var F=y(p);if(F){for(var z=0;z<3;z++)C<0?F[z]=F[z]*(1-C)|0:F[z]=(255-F[z])*C+F[z]|0,F[z]>255?F[z]=255:p[z]<0&&(F[z]=0);return b(F,F.length===4?"rgba":"rgb")}}function w(p){var C=y(p);if(C)return((1<<24)+(C[0]<<16)+(C[1]<<8)+ +C[2]).toString(16).slice(1)}function O(p,C,F){if(!(C&&C.length)||!(p>=0&&p<=1))return;F=F||[];var z=p*(C.length-1),H=Math.floor(z),D=Math.ceil(z),K=C[H],B=C[D],M=z-H;return F[0]=x(a(K[0],B[0],M)),F[1]=x(a(K[1],B[1],M)),F[2]=x(a(K[2],B[2],M)),F[3]=h(a(K[3],B[3],M)),F}var g=O;function S(p,C,F){if(!(C&&C.length)||!(p>=0&&p<=1))return;var z=p*(C.length-1),H=Math.floor(z),D=Math.ceil(z),K=y(C[H]),B=y(C[D]),M=z-H,j=b([x(a(K[0],B[0],M)),x(a(K[1],B[1],M)),x(a(K[2],B[2],M)),h(a(K[3],B[3],M))],"rgba");return F?{color:j,leftIndex:H,rightIndex:D,value:z}:j}var m=S;function N(p,C,F,z){if(p=y(p),p)return p=T(p),C!=null&&(p[0]=v(C)),F!=null&&(p[1]=o(F)),z!=null&&(p[2]=o(z)),b(E(p),"rgba")}function I(p,C){if(p=y(p),p&&C!=null)return p[3]=h(C),b(p,"rgba")}function b(p,C){if(!p||!p.length)return;var F=p[0]+","+p[1]+","+p[2];return(C==="rgba"||C==="hsva"||C==="hsla")&&(F+=","+p[3]),C+"("+F+")"}_.parse=y,_.lift=A,_.toHex=w,_.fastLerp=O,_.fastMapToColor=g,_.lerp=S,_.mapToColor=m,_.modifyHSL=N,_.modifyAlpha=I,_.stringify=b},QuXc:function(c,_){var s=function(r){this.colorStops=r||[]};s.prototype={constructor:s,addColorStop:function(r,x){this.colorStops.push({offset:r,color:x})}};var d=s;c.exports=d},RDYZ:function(c,_,s){var d=s("dMvE");function r(v){this._target=v.target,this._life=v.life||1e3,this._delay=v.delay||0,this._initialized=!1,this.loop=v.loop==null?!1:v.loop,this.gap=v.gap||0,this.easing=v.easing||"Linear",this.onframe=v.onframe,this.ondestroy=v.ondestroy,this.onrestart=v.onrestart,this._pausedTime=0,this._paused=!1}r.prototype={constructor:r,step:function(v,h){if(this._initialized||(this._startTime=v+this._delay,this._initialized=!0),this._paused){this._pausedTime+=h;return}var i=(v-this._startTime-this._pausedTime)/this._life;if(i<0)return;i=Math.min(i,1);var o=this.easing,e=typeof o=="string"?d[o]:o,a=typeof e=="function"?e(i):i;return this.fire("frame",a),i===1?this.loop?(this.restart(v),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(v){var h=(v-this._startTime-this._pausedTime)%this._life;this._startTime=v-h+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(v,h){v="on"+v,this[v]&&this[v](this._target,h)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var x=r;c.exports=x},RMFE:function(c,_){c.exports="data:image/png;base64,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"},RXMa:function(c,_,s){var d=s("y+Vt"),r=d.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(x,v){var h=v.cx,i=v.cy,o=Math.PI*2;x.moveTo(h+v.r,i),x.arc(h,i,v.r,0,o,!1),x.moveTo(h+v.r0,i),x.arc(h,i,v.r0,0,o,!0)}});c.exports=r},S6kV:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("OLod"))})(this,function(d){return d.mode.OFB=function(){var r=d.lib.BlockCipherMode.extend(),x=r.Encryptor=r.extend({processBlock:function(v,h){var i=this._cipher,o=i.blockSize,e=this._iv,a=this._keystream;e&&(a=this._keystream=e.slice(0),this._iv=void 0),i.encryptBlock(a,0);for(var n=0;n-i&&pi||p<-i}function y(p,C,F,z,H){var D=1-H;return D*D*(D*p+3*H*C)+H*H*(H*z+3*D*F)}function E(p,C,F,z,H){var D=1-H;return 3*(((C-p)*D+2*(F-C)*H)*D+(z-F)*H*H)}function T(p,C,F,z,H,D){var K=z+3*(C-F)-p,B=3*(F-C*2+p),M=3*(C-p),j=p-H,W=B*B-3*K*M,X=B*M-9*K*j,P=M*M-3*B*j,k=0;if(l(W)&&l(X))if(l(B))D[0]=0;else{var Y=-M/B;Y>=0&&Y<=1&&(D[k++]=Y)}else{var J=X*X-4*W*P;if(l(J)){var te=X/W,Y=-B/K+te,ne=-te/2;Y>=0&&Y<=1&&(D[k++]=Y),ne>=0&&ne<=1&&(D[k++]=ne)}else if(J>0){var q=h(J),ue=W*B+1.5*K*(-X+q),le=W*B+1.5*K*(-X-q);ue<0?ue=-v(-ue,a):ue=v(ue,a),le<0?le=-v(-le,a):le=v(le,a);var Y=(-B-(ue+le))/(3*K);Y>=0&&Y<=1&&(D[k++]=Y)}else{var ee=(2*W*B-3*K*X)/(2*h(W*W*W)),se=Math.acos(ee)/3,Z=h(W),oe=Math.cos(se),Y=(-B-2*Z*oe)/(3*K),ne=(-B+Z*(oe+e*Math.sin(se)))/(3*K),L=(-B+Z*(oe-e*Math.sin(se)))/(3*K);Y>=0&&Y<=1&&(D[k++]=Y),ne>=0&&ne<=1&&(D[k++]=ne),L>=0&&L<=1&&(D[k++]=L)}}return k}function A(p,C,F,z,H){var D=6*F-12*C+6*p,K=9*C+3*z-3*p-9*F,B=3*C-3*p,M=0;if(l(K)){if(f(D)){var j=-B/D;j>=0&&j<=1&&(H[M++]=j)}}else{var W=D*D-4*K*B;if(l(W))H[0]=-D/(2*K);else if(W>0){var X=h(W),j=(-D+X)/(2*K),P=(-D-X)/(2*K);j>=0&&j<=1&&(H[M++]=j),P>=0&&P<=1&&(H[M++]=P)}}return M}function w(p,C,F,z,H,D){var K=(C-p)*H+p,B=(F-C)*H+C,M=(z-F)*H+F,j=(B-K)*H+K,W=(M-B)*H+B,X=(W-j)*H+j;D[0]=p,D[1]=K,D[2]=j,D[3]=X,D[4]=X,D[5]=W,D[6]=M,D[7]=z}function O(p,C,F,z,H,D,K,B,M,j,W){var X,P=.005,k=Infinity,Y,J,te,ne;n[0]=M,n[1]=j;for(var q=0;q<1;q+=.05)t[0]=y(p,F,H,K,q),t[1]=y(C,z,D,B,q),te=x(n,t),te=0&&te=0&&j<=1&&(H[M++]=j)}}else{var W=K*K-4*D*B;if(l(W)){var j=-K/(2*D);j>=0&&j<=1&&(H[M++]=j)}else if(W>0){var X=h(W),j=(-K+X)/(2*D),P=(-K-X)/(2*D);j>=0&&j<=1&&(H[M++]=j),P>=0&&P<=1&&(H[M++]=P)}}return M}function N(p,C,F){var z=p+F-2*C;return z===0?.5:(p-C)/z}function I(p,C,F,z,H){var D=(C-p)*z+p,K=(F-C)*z+C,B=(K-D)*z+D;H[0]=p,H[1]=D,H[2]=B,H[3]=B,H[4]=K,H[5]=F}function b(p,C,F,z,H,D,K,B,M){var j,W=.005,X=Infinity;n[0]=K,n[1]=B;for(var P=0;P<1;P+=.05){t[0]=g(p,F,H,P),t[1]=g(C,z,D,P);var k=x(n,t);k=0&&k=0;--O)if(w[O]===A)return!0;return!1}),T):null:T[0]},l.prototype.update=function(y,E){if(!y)return;var T=this.getDefs(!1);if(y[this._domName]&&T.contains(y[this._domName]))typeof E=="function"&&E(y);else{var A=this.add(y);A&&(y[this._domName]=A)}},l.prototype.addDom=function(y){var E=this.getDefs(!0);E.appendChild(y)},l.prototype.removeDom=function(y){var E=this.getDefs(!1);E&&y[this._domName]&&(E.removeChild(y[this._domName]),y[this._domName]=null)},l.prototype.getDoms=function(){var y=this.getDefs(!1);if(!y)return[];var E=[];return x.each(this._tagNames,function(T){var A=y.getElementsByTagName(T);E=E.concat([].slice.call(A))}),E},l.prototype.markAllUnused=function(){var y=this.getDoms(),E=this;x.each(y,function(T){T[E._markLabel]=t})},l.prototype.markUsed=function(y){y&&(y[this._markLabel]=u)},l.prototype.removeUnused=function(){var y=this.getDefs(!1);if(!y)return;var E=this.getDoms(),T=this;x.each(E,function(A){A[T._markLabel]!==u&&y.removeChild(A)})},l.prototype.getSvgProxy=function(y){return y instanceof v?e:y instanceof h?a:y instanceof i?n:e},l.prototype.getTextSvgElement=function(y){return y.__textSvgEl},l.prototype.getSvgElement=function(y){return y.__svgEl};var f=l;c.exports=f},T6xi:function(c,_,s){var d=s("YgsL"),r=s("nCxF");function x(v,h,i){var o=h.points,e=h.smooth;if(o&&o.length>=2){if(e&&e!=="spline"){var a=r(o,e,i,h.smoothConstraint);v.moveTo(o[0][0],o[0][1]);for(var n=o.length,t=0;t<(i?n:n-1);t++){var u=a[t*2],l=a[t*2+1],f=o[(t+1)%n];v.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e==="spline"&&(o=d(o,i)),v.moveTo(o[0][0],o[0][1]);for(var t=1,y=o.length;th&&(u=e+a,e*=h/u,a*=h/u),n+t>h&&(u=n+t,n*=h/u,t*=h/u),a+n>i&&(u=a+n,a*=i/u,n*=i/u),e+t>i&&(u=e+t,e*=i/u,t*=i/u),d.moveTo(x+e,v),d.lineTo(x+h-a,v),a!==0&&d.arc(x+h-a,v+a,a,-Math.PI/2,0),d.lineTo(x+h,v+i-n),n!==0&&d.arc(x+h-n,v+i-n,n,0,Math.PI/2),d.lineTo(x+t,v+i),t!==0&&d.arc(x+t,v+i-t,t,Math.PI/2,Math.PI),d.lineTo(x,v+e),e!==0&&d.arc(x+e,v+e,e,Math.PI,Math.PI*1.5)}_.buildPath=s},W6BS:function(c,_){c.exports="data:image/png;base64,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"},WYAk:function(c,_,s){(function(d,r){c.exports=_=r(s("Ib8C"))})(this,function(d){(function(){var r=d,x=r.lib,v=x.Base,h=r.enc,i=h.Utf8,o=r.algo,e=o.HMAC=v.extend({init:function(a,n){a=this._hasher=new a.init,typeof n=="string"&&(n=i.parse(n));var t=a.blockSize,u=t*4;n.sigBytes>u&&(n=a.finalize(n)),n.clamp();for(var l=this._oKey=n.clone(),f=this._iKey=n.clone(),y=l.words,E=f.words,T=0;T0)?new Array(m).join(g.indent):""},w.prototype.endline=function(O,g,S){return!g.pretty||g.suppressPrettyCount?"":g.newline},w.prototype.attribute=function(O,g,S){var m;return this.openAttribute(O,g,S),m=" "+O.name+'="'+O.value+'"',this.closeAttribute(O,g,S),m},w.prototype.cdata=function(O,g,S){var m;return this.openNode(O,g,S),g.state=r.OpenTag,m=this.indent(O,g,S)+""+this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),m},w.prototype.comment=function(O,g,S){var m;return this.openNode(O,g,S),g.state=r.OpenTag,m=this.indent(O,g,S)+""+this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),m},w.prototype.declaration=function(O,g,S){var m;return this.openNode(O,g,S),g.state=r.OpenTag,m=this.indent(O,g,S)+"",m+=this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),m},w.prototype.docType=function(O,g,S){var m,N,I,b,p;if(S||(S=0),this.openNode(O,g,S),g.state=r.OpenTag,b=this.indent(O,g,S),b+="0){for(b+=" [",b+=this.endline(O,g,S),g.state=r.InsideTag,p=O.children,N=0,I=p.length;N",b+=this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),b},w.prototype.element=function(O,g,S){var m,N,I,b,p,C,F,z,H,D,K,B,M,j;S||(S=0),D=!1,K="",this.openNode(O,g,S),g.state=r.OpenTag,K+=this.indent(O,g,S)+"<"+O.name,B=O.attribs;for(H in B){if(!A.call(B,H))continue;m=B[H],K+=this.attribute(m,g,S)}if(I=O.children.length,b=I===0?null:O.children[0],I===0||O.children.every(function(W){return(W.type===d.Text||W.type===d.Raw)&&W.value===""}))g.allowEmpty?(K+=">",g.state=r.CloseTag,K+=""+this.endline(O,g,S)):(g.state=r.CloseTag,K+=g.spaceBeforeSlash+"/>"+this.endline(O,g,S));else if(g.pretty&&I===1&&(b.type===d.Text||b.type===d.Raw)&&b.value!=null)K+=">",g.state=r.InsideTag,g.suppressPrettyCount++,D=!0,K+=this.writeChildNode(b,g,S+1),g.suppressPrettyCount--,D=!1,g.state=r.CloseTag,K+=""+this.endline(O,g,S);else{if(g.dontPrettyTextNodes){for(M=O.children,p=0,F=M.length;p"+this.endline(O,g,S),g.state=r.InsideTag,j=O.children,C=0,z=j.length;C",D&&g.suppressPrettyCount--,K+=this.endline(O,g,S),g.state=r.None}return this.closeNode(O,g,S),K},w.prototype.writeChildNode=function(O,g,S){switch(O.type){case d.CData:return this.cdata(O,g,S);case d.Comment:return this.comment(O,g,S);case d.Element:return this.element(O,g,S);case d.Raw:return this.raw(O,g,S);case d.Text:return this.text(O,g,S);case d.ProcessingInstruction:return this.processingInstruction(O,g,S);case d.Dummy:return"";case d.Declaration:return this.declaration(O,g,S);case d.DocType:return this.docType(O,g,S);case d.AttributeDeclaration:return this.dtdAttList(O,g,S);case d.ElementDeclaration:return this.dtdElement(O,g,S);case d.EntityDeclaration:return this.dtdEntity(O,g,S);case d.NotationDeclaration:return this.dtdNotation(O,g,S);default:throw new Error("Unknown XML node type: "+O.constructor.name)}},w.prototype.processingInstruction=function(O,g,S){var m;return this.openNode(O,g,S),g.state=r.OpenTag,m=this.indent(O,g,S)+"",m+=this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),m},w.prototype.raw=function(O,g,S){var m;return this.openNode(O,g,S),g.state=r.OpenTag,m=this.indent(O,g,S),g.state=r.InsideTag,m+=O.value,g.state=r.CloseTag,m+=this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),m},w.prototype.text=function(O,g,S){var m;return this.openNode(O,g,S),g.state=r.OpenTag,m=this.indent(O,g,S),g.state=r.InsideTag,m+=O.value,g.state=r.CloseTag,m+=this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),m},w.prototype.dtdAttList=function(O,g,S){var m;return this.openNode(O,g,S),g.state=r.OpenTag,m=this.indent(O,g,S)+""+this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),m},w.prototype.dtdElement=function(O,g,S){var m;return this.openNode(O,g,S),g.state=r.OpenTag,m=this.indent(O,g,S)+""+this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),m},w.prototype.dtdEntity=function(O,g,S){var m;return this.openNode(O,g,S),g.state=r.OpenTag,m=this.indent(O,g,S)+""+this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),m},w.prototype.dtdNotation=function(O,g,S){var m;return this.openNode(O,g,S),g.state=r.OpenTag,m=this.indent(O,g,S)+""+this.endline(O,g,S),g.state=r.None,this.closeNode(O,g,S),m},w.prototype.openNode=function(O,g,S){},w.prototype.closeNode=function(O,g,S){},w.prototype.openAttribute=function(O,g,S){},w.prototype.closeAttribute=function(O,g,S){},w}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(c,_,s){"use strict";(function(){var d,r,x,v,h,i,o,e,a,n;n=c("./Utility"),e=n.assign,a=n.isFunction,x=c("./XMLDOMImplementation"),v=c("./XMLDocument"),h=c("./XMLDocumentCB"),o=c("./XMLStringWriter"),i=c("./XMLStreamWriter"),d=c("./NodeType"),r=c("./WriterState"),_.exports.create=function(t,u,l,f){var y,E;if(t==null)throw new Error("Root element needs a name.");return f=e({},u,l,f),y=new v(f),E=y.element(t),f.headless||(y.declaration(f),(f.pubID!=null||f.sysID!=null)&&y.dtd(f)),E},_.exports.begin=function(t,u,l){var f;return a(t)&&(f=[t,u],u=f[0],l=f[1],t={}),u?new h(t,u,l):new v(t)},_.exports.stringWriter=function(t){return new o(t)},_.exports.streamWriter=function(t,u){return new i(t,u)},_.exports.implementation=new x,_.exports.nodeType=d,_.exports.writerState=r}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(c,_,s){_.exports=r;var d=Object.prototype.hasOwnProperty;function r(){for(var x={},v=0;vh?t=n(t):t.length>5]|=128<>>9<<4)+14]=u;for(var l=1732584193,f=-271733879,y=-1732584194,E=271733878,T=0;T>16)+(u>>16)+(l>>16);return f<<16|l&65535}function n(t,u){return t<>>32-u}_.exports=function(u){return d.hash(u,x,16)}},{"./helpers":285}],287:[function(c,_,s){"use strict";var d=c("./helpers");function r(o,e){o[e>>5]|=128<<24-e%32,o[(e+64>>9<<4)+15]=e;for(var a=Array(80),n=1732584193,t=-271733879,u=-1732584194,l=271733878,f=-1009589776,y=0;y>16)+(e>>16)+(a>>16);return n<<16|a&65535}function i(o,e){return o<>>32-e}_.exports=function(e){return d.hash(e,r,20,!0)}},{"./helpers":285}],288:[function(c,_,s){"use strict";_.exports=function(){return function(){}}},{}],289:[function(c,_,s){(function(d){"use strict";var r=c("babel-runtime/helpers/typeof"),x=v(r);function v(n){return n&&n.__esModule?n:{default:n}}var h=c("stream"),i=h.Stream,o=c("../lib/common/utils/isArray"),e=o.isArray;_.exports.string=function(t){return typeof t=="string"},_.exports.array=e,_.exports.buffer=d.isBuffer;function a(n){return n instanceof i}_.exports.writableStream=function(t){return a(t)&&typeof t._write=="function"&&(0,x.default)(t._writableState)==="object"}}).call(this,{isBuffer:c("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(c,_,s){"use strict";s.encodeURIComponent=function(d){try{return encodeURIComponent(d)}catch(r){return d}},s.escape=c("escape-html"),s.timestamp=function(r){if(r){var x=r;return typeof x=="string"&&(x=Number(x)),String(r).length===10&&(x*=1e3),new Date(x)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(c,_,s){(function(d,r){"use strict";var x=c("babel-runtime/core-js/json/stringify"),v=o(x),h=c("babel-runtime/helpers/typeof"),i=o(h);function o(g){return g&&g.__esModule?g:{default:g}}var e=c("util"),a=c("url"),n=c("http"),t=c("https"),u=c("debug")("urllib"),l=c("humanize-ms"),f,y=0,E=Math.pow(2,31)-10,T=/^https?:\/\//i;function A(g,S){return g===void 0?S:g}function w(g,S){return function(m,N,I){if(m)return S(m);g({data:N,status:I.statusCode,headers:I.headers,res:I})}}s.TIMEOUTS=[l("300s"),l("300s")];var O=["json","text"];s.request=function(S,m,N){return arguments.length===2&&typeof m=="function"&&(N=m,m=null),typeof N=="function"?s.requestWithCallback(S,m,N):(f||(f=c("any-promise")),new f(function(I,b){s.requestWithCallback(S,m,w(I,b))}))},s.requestWithCallback=function(S,m,N){if(!S||typeof S!="string"&&(typeof S=="undefined"?"undefined":(0,i.default)(S))!=="object"){var I=e.format("expect request url to be a string or a http request options, but got %j",S);throw new Error(I)}arguments.length===2&&typeof m=="function"&&(N=m,m=null),m=m||{},y>=E&&(y=0);var b=++y;m.requestUrls=m.requestUrls||[];var p={requestId:b,url:S,args:m,ctx:m.ctx};m.emitter&&m.emitter.emit("request",p),m.timeout=m.timeout||s.TIMEOUTS,m.maxRedirects=m.maxRedirects||10,m.streaming=m.streaming||m.customResponse;var C=Date.now(),F;typeof S=="string"?(T.test(S)||(S="http://"+S),F=a.parse(S)):F=S;var z=(m.type||m.method||F.method||"GET").toUpperCase(),H=F.port||80,D=n,K=A(m.agent,s.agent),B=m.fixJSONCtlChars;F.protocol==="https:"&&(D=t,K=A(m.httpsAgent,s.httpsAgent),F.port||(H=443));var M={host:F.hostname||F.host||"localhost",path:F.path||"/",method:z,port:H,agent:K,headers:m.headers||{},lookup:m.lookup};Array.isArray(m.timeout)?M.requestTimeout=m.timeout[m.timeout.length-1]:typeof m.timeout!="undefined"&&(M.requestTimeout=m.timeout);for(var j=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],W=0;W=0)return u("Request#%d %s: got digest auth header WWW-Authenticate: %s",b,S,je),m.headers=m.headers||{},m.headers.Authorization=digestAuthHeader(M.method,M.path,je,m.digestAuth),u("Request#%d %s: auth with digest header: %s",b,S,m.headers.Authorization),Ie.headers["set-cookie"]&&(m.headers.Cookie=Ie.headers["set-cookie"].join(";")),s.requestWithCallback(S,m,_e)}var Oe=Date.now()-C;Q&&(Q.contentDownload=Oe),u("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Oe,Z,oe,M.method,M.host,M.path,se,Q);var Pe={status:oe,statusCode:oe,headers:Le,size:Z,aborted:L,rt:Oe,keepAliveSocket:se,data:be,requestUrls:m.requestUrls,timing:Q,remoteAddress:V,remotePort:ae};if(he){var Ue="";K&&typeof K.getCurrentStatus=="function"&&(Ue=", agent status: "+(0,v.default)(K.getCurrentStatus())),he.message+=", "+M.method+" "+S+" "+oe+" (connected: "+ee+", keepalive socket: "+se+Ue+`) -headers: `+(0,v.default)(Le),he.data=be,he.path=M.path,he.status=oe,he.headers=Le,he.res=Pe}_e(he,be,m.streaming?Ie:Pe),m.emitter&&(p.url=S,p.socket=Me&&Me.connection,p.options=M,p.size=te,m.emitter.emit("response",{requestId:b,error:he,ctx:m.ctx,req:p,res:Pe}))}function re(he){var be=null;if(m.followRedirect&&statuses.redirect[he.statusCode]){m._followRedirectCount=(m._followRedirectCount||0)+1;var Ie=he.headers.location;if(!Ie)be=new Error("Got statusCode "+he.statusCode+" but cannot resolve next location from headers"),be.name="FollowRedirectError";else if(m._followRedirectCount>m.maxRedirects)be=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+S),be.name="MaxRedirectError";else{var _e=m.formatRedirectUrl?m.formatRedirectUrl(S,Ie):a.resolve(S,Ie);u("Request#%d %s: `redirected` from %s to %s",b,M.path,S,_e),R(),m.headers&&m.headers.Host&&T.test(Ie)&&(m.headers.Host=null);var Le=N;return N=null,s.requestWithCallback(_e,m,Le),{redirect:!0,error:null}}}return{redirect:!1,error:be}}!M.headers["User-Agent"]&&!M.headers["user-agent"]&&(M.headers["User-Agent"]=navigator.userAgent),m.gzip&&(!M.headers["Accept-Encoding"]&&!M.headers["accept-encoding"]&&(M.headers["Accept-Encoding"]="gzip"));function $(he,be,Ie){var _e=he.headers["content-encoding"];return Ie(null,be,_e)}var ce=m.writeStream;u("Request#%d %s %s with headers %j, options.path: %s",b,z,S,M.headers,M.path),m.requestUrls.push(S);function pe(he){if(Q&&(Q.waiting=Date.now()-C),u("Request#%d %s `req response` event emit: status %d, headers: %j",b,S,he.statusCode,he.headers),m.streaming){var be=re(he);if(be.redirect){he.resume();return}return be.error?(he.resume(),U(be.error,null,he)):U(null,null,he)}if(he.on("close",function(){u("Request#%d %s: `res close` event emit, total size %d",b,S,Z)}),he.on("error",function(){u("Request#%d %s: `res error` event emit, total size %d",b,S,Z)}),he.on("aborted",function(){L=!0,u("Request#%d %s: `res aborted` event emit, total size %d",b,S,Z)}),ce){var be=re(he);if(be.redirect){he.resume();return}return be.error?(he.resume(),ce.end(),U(be.error,null,he)):(m.consumeWriteStream===!1?he.on("end",U.bind(null,null,null,he)):isNode010||isNode012?first([[ce,"close"],[he,"aborted"]],function(Le,je,Oe){u("Request#%d %s: writeStream or res %s event emitted",b,S,Oe),U(le||null,null,he)}):ce.on("close",function(){u("Request#%d %s: writeStream close event emitted",b,S),U(le||null,null,he)}),he.pipe(ce))}var Ie=[];he.on("data",function(_e){u("Request#%d %s: `res data` event emit, size %d",b,S,_e.length),Z+=_e.length,Ie.push(_e)}),he.on("end",function(){var _e=r.concat(Ie,Z);if(u("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",b,S,Z,he._dumped),le)return U(le,_e,he);var Le=re(he);if(Le.error)return U(Le.error,_e,he);if(Le.redirect)return;$(he,_e,function(je,Oe,Pe){if(je)return U(je,_e,he);if(!Pe&&O.indexOf(m.dataType)>=0){try{Oe=decodeBodyByCharset(Oe,he)}catch(Be){return u("decodeBodyByCharset error: %s",Be),U(null,Oe,he)}if(m.dataType==="json")if(Z===0)Oe=null;else{var Ue=parseJSON(Oe,B);Ue.error?je=Ue.error:Oe=Ue.data}}L&&u("Request#%d %s: Remote socket was terminated before `response.end()` was called",b,S),U(je,Oe,he)})})}var ge,Ce;Array.isArray(m.timeout)?(ge=l(m.timeout[0]),Ce=l(m.timeout[1])):ge=Ce=l(m.timeout),u("ConnectTimeout: %d, ResponseTimeout: %d",ge,Ce);function Ae(){u("Connect timer ticking, timeout: %d",ge),q=setTimeout(function(){q=null,oe===-1&&(oe=-2);var he="Connect timeout for "+ge+"ms",be="ConnectionTimeoutError";Me.socket||(be="SocketAssignTimeoutError",he+=", working sockets is full"),le=new Error(he),le.name=be,le.requestId=b,u("ConnectTimeout: Request#%d %s %s: %s, connected: %s",b,S,le.name,he,ee),fe()},ge)}function Se(){u("Response timer ticking, timeout: %d",Ce),ue=setTimeout(function(){ue=null;var he="Response timeout for "+Ce+"ms",be="ResponseTimeoutError";le=new Error(he),le.name=be,le.requestId=b,u("ResponseTimeout: Request#%d %s %s: %s, connected: %s",b,S,le.name,he,ee),fe()},Ce)}var Me;M.mode=m.mode?m.mode:"";try{Me=D.request(M,pe)}catch(he){return U(he)}typeof window=="undefined"?Ae():Me.on("requestTimeout",function(){oe===-1&&(oe=-2);var he="Connect timeout for "+ge+"ms",be="ConnectionTimeoutError";le=new Error(he),le.name=be,le.requestId=b,fe()});function fe(){u("Request#%d %s abort, connected: %s",b,S,ee),Me.socket||(le.noSocket=!0,U(le)),Me.abort()}return Q&&Me.on("finish",function(){Q.requestSent=Date.now()-C}),Me.once("socket",function(he){Q&&(Q.queuing=Date.now()-C),isNode010&&he.socket&&(he=he.socket);var be=he.readyState;if(be==="opening"){he.once("lookup",function(Ie,_e,Le){u("Request#%d %s lookup: %s, %s, %s",b,S,Ie,_e,Le),Q&&(Q.dnslookup=Date.now()-C),_e&&(V=_e)}),he.once("connect",function(){Q&&(Q.connected=Date.now()-C),G(),Se(),u("Request#%d %s new socket connected",b,S),ee=!0,V||(V=he.remoteAddress),ae=he.remotePort});return}u("Request#%d %s reuse socket connected, readyState: %s",b,S,be),ee=!0,se=!0,V||(V=he.remoteAddress),ae=he.remotePort,G(),Se()}),Me.on("error",function(he){(he.name==="Error"||he.name==="TypeError")&&(he.name=ee?"ResponseError":"RequestError"),he.message+=' (req "error")',u("Request#%d %s `req error` event emit, %s: %s",b,S,he.name,he.message),U(le||he)}),ce&&ce.once("error",function(he){he.message+=' (writeStream "error")',le=he,u("Request#%d %s `writeStream error` event emit, %s: %s",b,S,he.name,he.message),fe()}),m.stream?(m.stream.pipe(Me),m.stream.once("error",function(he){he.message+=' (stream "error")',le=he,u("Request#%d %s `readStream error` event emit, %s: %s",b,S,he.name,he.message),fe()})):Me.end(k),Me.requestId=b,Me}}).call(this,c("_process"),c("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n1HI:function(c,_,s){var d=s("hX1E"),r=d.normalizeRadian,x=Math.PI*2;function v(h,i,o,e,a,n,t,u,l){if(t===0)return!1;var f=t;u-=h,l-=i;var y=Math.sqrt(u*u+l*l);if(y-f>o||y+fa&&(a+=x);var T=Math.atan2(l,u);return T<0&&(T+=x),T>=e&&T<=a||T+x>=e&&T+x<=a}_.containStroke=v},n6Mw:function(c,_,s){var d=s("SrGk"),r=s("bYtY"),x=s("Fofx");function v(i,o){d.call(this,i,o,"clipPath","__clippath_in_use__")}r.inherits(v,d),v.prototype.update=function(i){var o=this.getSvgElement(i);o&&this.updateDom(o,i.__clipPaths,!1);var e=this.getTextSvgElement(i);e&&this.updateDom(e,i.__clipPaths,!0),this.markUsed(i)},v.prototype.updateDom=function(i,o,e){if(o&&o.length>0){var a=this.getDefs(!0),n=o[0],t,u,l=e?"_textDom":"_dom";n[l]?(u=n[l].getAttribute("id"),t=n[l],a.contains(t)||a.appendChild(t)):(u="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,t=this.createElement("clipPath"),t.setAttribute("id",u),a.appendChild(t),n[l]=t);var f=this.getSvgProxy(n);if(n.transform&&n.parent.invTransform&&!e){var y=Array.prototype.slice.call(n.transform);x.mul(n.transform,n.parent.invTransform,n.transform),f.brush(n),n.transform=y}else f.brush(n);var E=this.getSvgElement(n);t.innerHTML="",t.appendChild(E.cloneNode()),i.setAttribute("clip-path","url(#"+u+")"),o.length>1&&this.updateDom(t,o.slice(1),e)}else i&&i.setAttribute("clip-path","none")},v.prototype.markUsed=function(i){var o=this;i.__clipPaths&&r.each(i.__clipPaths,function(e){e._dom&&d.prototype.markUsed.call(o,e._dom),e._textDom&&d.prototype.markUsed.call(o,e._textDom)})};var h=v;c.exports=h},n6Qo:function(c,_,s){"use strict";s.d(_,"a",function(){return e});var d=s("q1tI"),r=s("biw7"),x=s("fyJ8");function v(a){var n=a.className,t=a.index,u=a.children,l=a.colSpan,f=a.rowSpan,y=d.useContext(r.a),E=y.prefixCls,T=y.fixedInfoList,A=T[t];return d.createElement(x.a,Object.assign({className:n,index:t,component:"td",prefixCls:E,record:null,dataIndex:null,render:function(){return{children:u,props:{colSpan:l,rowSpan:f}}}},A))}function h(a){return d.createElement("tr",Object.assign({},a))}function i(a){var n=a.children,t=d.useContext(r.a),u=t.prefixCls;return d.createElement("tfoot",{className:"".concat(u,"-summary")},n)}var o=_.b=i,e={Cell:v,Row:h}},nCxF:function(c,_,s){var d=s("QBsz"),r=d.min,x=d.max,v=d.scale,h=d.distance,i=d.add,o=d.clone,e=d.sub;function a(n,t,u,l){var f=[],y=[],E=[],T=[],A,w,O,g;if(l){O=[Infinity,Infinity],g=[-Infinity,-Infinity];for(var S=0,m=n.length;S>>2]&255;r.sigBytes-=x}},d.pad.Iso10126})},onxn:function(c,_){c.exports="data:image/png;base64,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"},pA7S:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.WordArray,h=x.BlockCipher,i=r.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],e=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],n=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],t=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=h.extend({_doReset:function(){for(var E=this._key,T=E.words,A=[],w=0;w<56;w++){var O=o[w]-1;A[w]=T[O>>>5]>>>31-O%32&1}for(var g=this._subKeys=[],S=0;S<16;S++){for(var m=g[S]=[],N=a[S],w=0;w<24;w++)m[w/6|0]|=A[(e[w]-1+N)%28]<<31-w%6,m[4+(w/6|0)]|=A[28+(e[w+24]-1+N)%28]<<31-w%6;m[0]=m[0]<<1|m[0]>>>31;for(var w=1;w<7;w++)m[w]=m[w]>>>(w-1)*4+3;m[7]=m[7]<<5|m[7]>>>27}for(var I=this._invSubKeys=[],w=0;w<16;w++)I[w]=g[15-w]},encryptBlock:function(E,T){this._doCryptBlock(E,T,this._subKeys)},decryptBlock:function(E,T){this._doCryptBlock(E,T,this._invSubKeys)},_doCryptBlock:function(E,T,A){this._lBlock=E[T],this._rBlock=E[T+1],l.call(this,4,252645135),l.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),l.call(this,1,1431655765);for(var w=0;w<16;w++){for(var O=A[w],g=this._lBlock,S=this._rBlock,m=0,N=0;N<8;N++)m|=n[N][((S^O[N])&t[N])>>>0];this._lBlock=S,this._rBlock=g^m}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,l.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),l.call(this,16,65535),l.call(this,4,252645135),E[T]=this._lBlock,E[T+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function l(E,T){var A=(this._lBlock>>>E^this._rBlock)&T;this._rBlock^=A,this._lBlock^=A<>>E^this._lBlock)&T;this._lBlock^=A,this._rBlock^=A<192.");var A=T.slice(0,2),w=T.length<4?T.slice(0,2):T.slice(2,4),O=T.length<6?T.slice(0,2):T.slice(4,6);this._des1=u.createEncryptor(v.create(A)),this._des2=u.createEncryptor(v.create(w)),this._des3=u.createEncryptor(v.create(O))},encryptBlock:function(E,T){this._des1.encryptBlock(E,T),this._des2.decryptBlock(E,T),this._des3.encryptBlock(E,T)},decryptBlock:function(E,T){this._des3.decryptBlock(E,T),this._des2.encryptBlock(E,T),this._des1.decryptBlock(E,T)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=h._createHelper(y)}(),d.TripleDES})},pzxd:function(c,_,s){var d=s("bYtY"),r=d.retrieve2,x=d.retrieve3,v=d.each,h=d.normalizeCssArray,i=d.isString,o=d.isObject,e=s("6GrX"),a=s("VpOo"),n=s("Xnb7"),t=s("fW2E"),u=s("gut8"),l=u.ContextCachedBy,f=u.WILL_BE_RESTORED,y=e.DEFAULT_FONT,E={left:1,right:1,center:1},T={top:1,bottom:1,middle:1},A=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],w={},O={};function g(P){return S(P),v(P.rich,S),P}function S(P){if(P){P.font=e.makeFont(P);var k=P.textAlign;k==="middle"&&(k="center"),P.textAlign=k==null||E[k]?k:"left";var Y=P.textVerticalAlign||P.textBaseline;Y==="center"&&(Y="middle"),P.textVerticalAlign=Y==null||T[Y]?Y:"top";var J=P.textPadding;J&&(P.textPadding=h(P.textPadding))}}function m(P,k,Y,J,te,ne){J.rich?I(P,k,Y,J,te,ne):N(P,k,Y,J,te,ne)}function N(P,k,Y,J,te,ne){"use strict";var q=F(J),ue,le=!1,ee=k.__attrCachedBy===l.PLAIN_TEXT;ne!==f?(ne&&(ue=ne.style,le=!q&&ee&&ue),k.__attrCachedBy=q?l.NONE:l.PLAIN_TEXT):ee&&(k.__attrCachedBy=l.NONE);var se=J.font||y;(!le||se!==(ue.font||y))&&(k.font=se);var Z=P.__computedFont;P.__styleFont!==se&&(P.__styleFont=se,Z=P.__computedFont=k.font);var oe=J.textPadding,L=J.textLineHeight,V=P.__textCotentBlock;(!V||P.__dirtyText)&&(V=P.__textCotentBlock=e.parsePlainText(Y,Z,oe,L,J.truncate));var ae=V.outerHeight,Q=V.lines,G=V.lineHeight,R=D(O,P,J,te),U=R.baseX,re=R.baseY,$=R.textAlign||"left",ce=R.textVerticalAlign;p(k,J,te,U,re);var pe=e.adjustTextY(re,ae,ce),ge=U,Ce=pe;if(q||oe){var Ae=e.getWidth(Y,Z),Se=Ae;oe&&(Se+=oe[1]+oe[3]);var Me=e.adjustTextX(U,Se,$);q&&z(P,k,J,Me,pe,Se,ae),oe&&(ge=W(U,$,oe),Ce+=oe[0])}k.textAlign=$,k.textBaseline="middle",k.globalAlpha=J.opacity||1;for(var fe=0;fe=0&&(fe=$[Me],fe.textAlign==="right");)C(P,k,fe,J,pe,G,Se,"right"),ge-=fe.width,Se-=fe.width,Me--;for(Ae+=(ne-(Ae-Q)-(R-Se)-ge)/2;Ce<=Me;)fe=$[Ce],C(P,k,fe,J,pe,G,Ae+fe.width/2,"center"),Ae+=fe.width,Ce++;G+=pe}}function p(P,k,Y,J,te){if(Y&&k.textRotation){var ne=k.textOrigin;ne==="center"?(J=Y.width/2+Y.x,te=Y.height/2+Y.y):ne&&(J=ne[0]+Y.x,te=ne[1]+Y.y),P.translate(J,te),P.rotate(-k.textRotation),P.translate(-J,-te)}}function C(P,k,Y,J,te,ne,q,ue){var le=J.rich[Y.styleName]||{};le.text=Y.text;var ee=Y.textVerticalAlign,se=ne+te/2;ee==="top"?se=ne+Y.height/2:ee==="bottom"&&(se=ne+te-Y.height/2),!Y.isLineHolder&&F(le)&&z(P,k,le,ue==="right"?q-Y.width:ue==="center"?q-Y.width/2:q,se-Y.height/2,Y.width,Y.height);var Z=Y.textPadding;Z&&(q=W(q,ue,Z),se-=Y.height/2-Z[2]-Y.textHeight/2),K(k,"shadowBlur",x(le.textShadowBlur,J.textShadowBlur,0)),K(k,"shadowColor",le.textShadowColor||J.textShadowColor||"transparent"),K(k,"shadowOffsetX",x(le.textShadowOffsetX,J.textShadowOffsetX,0)),K(k,"shadowOffsetY",x(le.textShadowOffsetY,J.textShadowOffsetY,0)),K(k,"textAlign",ue),K(k,"textBaseline","middle"),K(k,"font",Y.font||y);var oe=B(le.textStroke||J.textStroke,V),L=M(le.textFill||J.textFill),V=r(le.textStrokeWidth,J.textStrokeWidth);oe&&(K(k,"lineWidth",V),K(k,"strokeStyle",oe),k.strokeText(Y.text,q,se)),L&&(K(k,"fillStyle",L),k.fillText(Y.text,q,se))}function F(P){return!!(P.textBackgroundColor||P.textBorderWidth&&P.textBorderColor)}function z(P,k,Y,J,te,ne,q){var ue=Y.textBackgroundColor,le=Y.textBorderWidth,ee=Y.textBorderColor,se=i(ue);if(K(k,"shadowBlur",Y.textBoxShadowBlur||0),K(k,"shadowColor",Y.textBoxShadowColor||"transparent"),K(k,"shadowOffsetX",Y.textBoxShadowOffsetX||0),K(k,"shadowOffsetY",Y.textBoxShadowOffsetY||0),se||le&&ee){k.beginPath();var Z=Y.textBorderRadius;Z?a.buildPath(k,{x:J,y:te,width:ne,height:q,r:Z}):k.rect(J,te,ne,q),k.closePath()}if(se)if(K(k,"fillStyle",ue),Y.fillOpacity!=null){var oe=k.globalAlpha;k.globalAlpha=Y.fillOpacity*Y.opacity,k.fill(),k.globalAlpha=oe}else k.fill();else if(o(ue)){var L=ue.image;L=n.createOrUpdateImage(L,null,P,H,ue),L&&n.isImageReady(L)&&k.drawImage(L,J,te,ne,q)}if(le&&ee)if(K(k,"lineWidth",le),K(k,"strokeStyle",ee),Y.strokeOpacity!=null){var oe=k.globalAlpha;k.globalAlpha=Y.strokeOpacity*Y.opacity,k.stroke(),k.globalAlpha=oe}else k.stroke()}function H(P,k){k.image=P}function D(P,k,Y,J){var te=Y.x||0,ne=Y.y||0,q=Y.textAlign,ue=Y.textVerticalAlign;if(J){var le=Y.textPosition;if(le instanceof Array)te=J.x+j(le[0],J.width),ne=J.y+j(le[1],J.height);else{var ee=k&&k.calculateTextPosition?k.calculateTextPosition(w,Y,J):e.calculateTextPosition(w,Y,J);te=ee.x,ne=ee.y,q=q||ee.textAlign,ue=ue||ee.textVerticalAlign}var se=Y.textOffset;se&&(te+=se[0],ne+=se[1])}return P=P||{},P.baseX=te,P.baseY=ne,P.textAlign=q,P.textVerticalAlign=ue,P}function K(P,k,Y){return P[k]=t(P,k,Y),P[k]}function B(P,k){return P==null||k<=0||P==="transparent"||P==="none"?null:P.image||P.colorStops?"#000":P}function M(P){return P==null||P==="none"?null:P.image||P.colorStops?"#000":P}function j(P,k){return typeof P=="string"?P.lastIndexOf("%")>=0?parseFloat(P)/100*k:parseFloat(P):P}function W(P,k,Y){return k==="right"?P-Y[1]:k==="center"?P+Y[3]/2-Y[1]/2:P+Y[3]}function X(P,k){return P!=null&&(P||k.textBackgroundColor||k.textBorderWidth&&k.textBorderColor||k.textPadding)}_.normalizeTextStyle=g,_.renderText=m,_.getBoxPosition=D,_.getStroke=B,_.getFill=M,_.parsePercent=j,_.needDrawText=X},qBft:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("OLod"))})(this,function(d){return d.pad.AnsiX923={pad:function(r,x){var v=r.sigBytes,h=x*4,i=h-v%h,o=v+i-1;r.clamp(),r.words[o>>>2]|=i<<24-o%4*8,r.sigBytes+=i},unpad:function(r){var x=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=x}},d.pad.Ansix923})},qH13:function(c,_,s){var d=s("ItGF"),r=s("QBsz"),x=r.applyTransform,v=s("mFDi"),h=s("Qe9p"),i=s("6GrX"),o=s("pzxd"),e=s("ni6a"),a=s("Gev7"),n=s("Dagg"),t=s("dqUG"),u=s("y+Vt"),l=s("IMiH"),f=s("QuXc"),y=s("06Qe"),E=l.CMD,T=Math.round,A=Math.sqrt,w=Math.abs,O=Math.cos,g=Math.sin,S=Math.max;if(!d.canvasSupported){var m=",",N="progid:DXImageTransform.Microsoft",I=21600,b=I/2,p=1e5,C=1e3,F=function(U){U.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",U.coordsize=I+","+I,U.coordorigin="0,0"},z=function(U){return String(U).replace(/&/g,"&").replace(/"/g,""")},H=function(U,re,$){return"rgb("+[U,re,$].join(",")+")"},D=function(U,re){re&&U&&re.parentNode!==U&&U.appendChild(re)},K=function(U,re){re&&U&&re.parentNode===U&&U.removeChild(re)},B=function(U,re,$){return(parseFloat(U)||0)*p+(parseFloat(re)||0)*C+$},M=o.parsePercent,j=function(U,re,$){var ce=h.parse(re);$=+$,isNaN($)&&($=1),ce&&(U.color=H(ce[0],ce[1],ce[2]),U.opacity=$*ce[3])},W=function(U){var re=h.parse(U);return[H(re[0],re[1],re[2]),re[3]]},X=function(U,re,$){var ce=re.fill;if(ce!=null)if(ce instanceof f){var pe,ge=0,Ce=[0,0],Ae=0,Se=1,Me=$.getBoundingRect(),fe=Me.width,he=Me.height;if(ce.type==="linear"){pe="gradient";var be=$.transform,Ie=[ce.x*fe,ce.y*he],_e=[ce.x2*fe,ce.y2*he];be&&(x(Ie,Ie,be),x(_e,_e,be));var Le=_e[0]-Ie[0],je=_e[1]-Ie[1];ge=Math.atan2(Le,je)*180/Math.PI,ge<0&&(ge+=360),ge<1e-6&&(ge=0)}else{pe="gradientradial";var Ie=[ce.x*fe,ce.y*he],be=$.transform,Oe=$.scale,Pe=fe,Ue=he;Ce=[(Ie[0]-Me.x)/Pe,(Ie[1]-Me.y)/Ue],be&&x(Ie,Ie,be),Pe/=Oe[0]*I,Ue/=Oe[1]*I;var Be=S(Pe,Ue);Ae=2*0/Be,Se=2*ce.r/Be-Ae}var ke=ce.colorStops.slice();ke.sort(function(me,ie){return me.offset-ie.offset});for(var Ge=ke.length,ze=[],Xe=[],He=0;He=2){var Ve=ze[0][0],Ne=ze[1][0],ve=ze[0][1]*re.opacity,Ee=ze[1][1]*re.opacity;U.type=pe,U.method="none",U.focus="100%",U.angle=ge,U.color=Ve,U.color2=Ne,U.colors=Xe.join(","),U.opacity=Ee,U.opacity2=ve}pe==="radial"&&(U.focusposition=Ce.join(","))}else j(U,ce,re.opacity)},P=function(U,re){re.lineDash&&(U.dashstyle=re.lineDash.join(" ")),re.stroke!=null&&!(re.stroke instanceof f)&&j(U,re.stroke,re.opacity)},k=function(U,re,$,ce){var pe=re==="fill",ge=U.getElementsByTagName(re)[0];$[re]!=null&&$[re]!=="none"&&(pe||!pe&&$.lineWidth)?(U[pe?"filled":"stroked"]="true",$[re]instanceof f&&K(U,ge),ge||(ge=y.createNode(re)),pe?X(ge,$,ce):P(ge,$),D(U,ge)):(U[pe?"filled":"stroked"]="false",K(U,ge))},Y=[[],[],[]],J=function(U,re){var $=E.M,ce=E.C,pe=E.L,ge=E.A,Ce=E.Q,Ae=[],Se,Me,fe,he,be,Ie,_e=U.data,Le=U.len();for(he=0;he.01?ie&&(de+=270/I):Math.abs(we-Ve)<1e-4?ie&&deKe?Oe-=270/I:Oe+=270/I:ie&&weVe?je+=270/I:je-=270/I),Ae.push(ye,T(((Ke-Ne)*Xe+Ge)*I-b),m,T(((Ve-ve)*He+ze)*I-b),m,T(((Ke+Ne)*Xe+Ge)*I-b),m,T(((Ve+ve)*He+ze)*I-b),m,T((de*Xe+Ge)*I-b),m,T((we*He+ze)*I-b),m,T((je*Xe+Ge)*I-b),m,T((Oe*He+ze)*I-b)),be=je,Ie=Oe;break;case E.R:var Te=Y[0],Re=Y[1];Te[0]=_e[he++],Te[1]=_e[he++],Re[0]=Te[0]+_e[he++],Re[1]=Te[1]+_e[he++],re&&(x(Te,Te,re),x(Re,Re,re)),Te[0]=T(Te[0]*I-b),Re[0]=T(Re[0]*I-b),Te[1]=T(Te[1]*I-b),Re[1]=T(Re[1]*I-b),Ae.push(" m ",Te[0],m,Te[1]," l ",Re[0],m,Te[1]," l ",Re[0],m,Re[1]," l ",Te[0],m,Re[1]);break;case E.Z:Ae.push(" x ")}if(Se>0){Ae.push(Me);for(var xe=0;xele&&(ue=0,q={});var $=ee.style,ce;try{$.font=U,ce=$.fontFamily.split(",")[0]}catch(pe){}re={style:$.fontStyle||ne,variant:$.fontVariant||ne,weight:$.fontWeight||ne,size:parseFloat($.fontSize||12)|0,family:ce||"Microsoft YaHei"},q[U]=re,ue++}return re},Z;i.$override("measureText",function(U,re){var $=y.doc;Z||(Z=$.createElement("div"),Z.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",y.doc.body.appendChild(Z));try{Z.style.font=re}catch(ce){}return Z.innerHTML="",Z.appendChild($.createTextNode(U)),{width:Z.offsetWidth}});for(var oe=new v,L=function(U,re,$,ce){var pe=this.style;this.__dirty&&o.normalizeTextStyle(pe,!0);var ge=pe.text;if(ge!=null&&(ge+=""),!ge)return;if(pe.rich){var Ce=i.parseRichText(ge,pe);ge=[];for(var Ae=0;Aem.maxRedirects)be=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+S),be.name="MaxRedirectError";else{var _e=m.formatRedirectUrl?m.formatRedirectUrl(S,Ie):a.resolve(S,Ie);u("Request#%d %s: `redirected` from %s to %s",b,M.path,S,_e),R(),m.headers&&m.headers.Host&&T.test(Ie)&&(m.headers.Host=null);var Le=N;return N=null,s.requestWithCallback(_e,m,Le),{redirect:!0,error:null}}}return{redirect:!1,error:be}}!M.headers["User-Agent"]&&!M.headers["user-agent"]&&(M.headers["User-Agent"]=navigator.userAgent),m.gzip&&(!M.headers["Accept-Encoding"]&&!M.headers["accept-encoding"]&&(M.headers["Accept-Encoding"]="gzip"));function $(he,be,Ie){var _e=he.headers["content-encoding"];return Ie(null,be,_e)}var ce=m.writeStream;u("Request#%d %s %s with headers %j, options.path: %s",b,z,S,M.headers,M.path),m.requestUrls.push(S);function pe(he){if(Q&&(Q.waiting=Date.now()-C),u("Request#%d %s `req response` event emit: status %d, headers: %j",b,S,he.statusCode,he.headers),m.streaming){var be=re(he);if(be.redirect){he.resume();return}return be.error?(he.resume(),U(be.error,null,he)):U(null,null,he)}if(he.on("close",function(){u("Request#%d %s: `res close` event emit, total size %d",b,S,Z)}),he.on("error",function(){u("Request#%d %s: `res error` event emit, total size %d",b,S,Z)}),he.on("aborted",function(){L=!0,u("Request#%d %s: `res aborted` event emit, total size %d",b,S,Z)}),ce){var be=re(he);if(be.redirect){he.resume();return}return be.error?(he.resume(),ce.end(),U(be.error,null,he)):(m.consumeWriteStream===!1?he.on("end",U.bind(null,null,null,he)):isNode010||isNode012?first([[ce,"close"],[he,"aborted"]],function(Le,je,Oe){u("Request#%d %s: writeStream or res %s event emitted",b,S,Oe),U(le||null,null,he)}):ce.on("close",function(){u("Request#%d %s: writeStream close event emitted",b,S),U(le||null,null,he)}),he.pipe(ce))}var Ie=[];he.on("data",function(_e){u("Request#%d %s: `res data` event emit, size %d",b,S,_e.length),Z+=_e.length,Ie.push(_e)}),he.on("end",function(){var _e=r.concat(Ie,Z);if(u("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",b,S,Z,he._dumped),le)return U(le,_e,he);var Le=re(he);if(Le.error)return U(Le.error,_e,he);if(Le.redirect)return;$(he,_e,function(je,Oe,Pe){if(je)return U(je,_e,he);if(!Pe&&O.indexOf(m.dataType)>=0){try{Oe=decodeBodyByCharset(Oe,he)}catch(Be){return u("decodeBodyByCharset error: %s",Be),U(null,Oe,he)}if(m.dataType==="json")if(Z===0)Oe=null;else{var Ue=parseJSON(Oe,B);Ue.error?je=Ue.error:Oe=Ue.data}}L&&u("Request#%d %s: Remote socket was terminated before `response.end()` was called",b,S),U(je,Oe,he)})})}var ge,Ce;Array.isArray(m.timeout)?(ge=l(m.timeout[0]),Ce=l(m.timeout[1])):ge=Ce=l(m.timeout),u("ConnectTimeout: %d, ResponseTimeout: %d",ge,Ce);function Ae(){u("Connect timer ticking, timeout: %d",ge),q=setTimeout(function(){q=null,oe===-1&&(oe=-2);var he="Connect timeout for "+ge+"ms",be="ConnectionTimeoutError";Me.socket||(be="SocketAssignTimeoutError",he+=", working sockets is full"),le=new Error(he),le.name=be,le.requestId=b,u("ConnectTimeout: Request#%d %s %s: %s, connected: %s",b,S,le.name,he,ee),fe()},ge)}function Se(){u("Response timer ticking, timeout: %d",Ce),ue=setTimeout(function(){ue=null;var he="Response timeout for "+Ce+"ms",be="ResponseTimeoutError";le=new Error(he),le.name=be,le.requestId=b,u("ResponseTimeout: Request#%d %s %s: %s, connected: %s",b,S,le.name,he,ee),fe()},Ce)}var Me;M.mode=m.mode?m.mode:"";try{Me=D.request(M,pe)}catch(he){return U(he)}typeof window=="undefined"?Ae():Me.on("requestTimeout",function(){oe===-1&&(oe=-2);var he="Connect timeout for "+ge+"ms",be="ConnectionTimeoutError";le=new Error(he),le.name=be,le.requestId=b,fe()});function fe(){u("Request#%d %s abort, connected: %s",b,S,ee),Me.socket||(le.noSocket=!0,U(le)),Me.abort()}return Q&&Me.on("finish",function(){Q.requestSent=Date.now()-C}),Me.once("socket",function(he){Q&&(Q.queuing=Date.now()-C),isNode010&&he.socket&&(he=he.socket);var be=he.readyState;if(be==="opening"){he.once("lookup",function(Ie,_e,Le){u("Request#%d %s lookup: %s, %s, %s",b,S,Ie,_e,Le),Q&&(Q.dnslookup=Date.now()-C),_e&&(V=_e)}),he.once("connect",function(){Q&&(Q.connected=Date.now()-C),G(),Se(),u("Request#%d %s new socket connected",b,S),ee=!0,V||(V=he.remoteAddress),ae=he.remotePort});return}u("Request#%d %s reuse socket connected, readyState: %s",b,S,be),ee=!0,se=!0,V||(V=he.remoteAddress),ae=he.remotePort,G(),Se()}),Me.on("error",function(he){(he.name==="Error"||he.name==="TypeError")&&(he.name=ee?"ResponseError":"RequestError"),he.message+=' (req "error")',u("Request#%d %s `req error` event emit, %s: %s",b,S,he.name,he.message),U(le||he)}),ce&&ce.once("error",function(he){he.message+=' (writeStream "error")',le=he,u("Request#%d %s `writeStream error` event emit, %s: %s",b,S,he.name,he.message),fe()}),m.stream?(m.stream.pipe(Me),m.stream.once("error",function(he){he.message+=' (stream "error")',le=he,u("Request#%d %s `readStream error` event emit, %s: %s",b,S,he.name,he.message),fe()})):Me.end(k),Me.requestId=b,Me}}).call(this,c("_process"),c("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n1HI:function(c,_,s){var d=s("hX1E"),r=d.normalizeRadian,x=Math.PI*2;function v(h,i,o,e,a,n,t,u,l){if(t===0)return!1;var f=t;u-=h,l-=i;var y=Math.sqrt(u*u+l*l);if(y-f>o||y+fa&&(a+=x);var T=Math.atan2(l,u);return T<0&&(T+=x),T>=e&&T<=a||T+x>=e&&T+x<=a}_.containStroke=v},n6Mw:function(c,_,s){var d=s("SrGk"),r=s("bYtY"),x=s("Fofx");function v(i,o){d.call(this,i,o,"clipPath","__clippath_in_use__")}r.inherits(v,d),v.prototype.update=function(i){var o=this.getSvgElement(i);o&&this.updateDom(o,i.__clipPaths,!1);var e=this.getTextSvgElement(i);e&&this.updateDom(e,i.__clipPaths,!0),this.markUsed(i)},v.prototype.updateDom=function(i,o,e){if(o&&o.length>0){var a=this.getDefs(!0),n=o[0],t,u,l=e?"_textDom":"_dom";n[l]?(u=n[l].getAttribute("id"),t=n[l],a.contains(t)||a.appendChild(t)):(u="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,t=this.createElement("clipPath"),t.setAttribute("id",u),a.appendChild(t),n[l]=t);var f=this.getSvgProxy(n);if(n.transform&&n.parent.invTransform&&!e){var y=Array.prototype.slice.call(n.transform);x.mul(n.transform,n.parent.invTransform,n.transform),f.brush(n),n.transform=y}else f.brush(n);var E=this.getSvgElement(n);t.innerHTML="",t.appendChild(E.cloneNode()),i.setAttribute("clip-path","url(#"+u+")"),o.length>1&&this.updateDom(t,o.slice(1),e)}else i&&i.setAttribute("clip-path","none")},v.prototype.markUsed=function(i){var o=this;i.__clipPaths&&r.each(i.__clipPaths,function(e){e._dom&&d.prototype.markUsed.call(o,e._dom),e._textDom&&d.prototype.markUsed.call(o,e._textDom)})};var h=v;c.exports=h},n6Qo:function(c,_,s){"use strict";s.d(_,"a",function(){return e});var d=s("q1tI"),r=s("biw7"),x=s("fyJ8");function v(a){var n=a.className,t=a.index,u=a.children,l=a.colSpan,f=a.rowSpan,y=d.useContext(r.a),E=y.prefixCls,T=y.fixedInfoList,A=T[t];return d.createElement(x.a,Object.assign({className:n,index:t,component:"td",prefixCls:E,record:null,dataIndex:null,render:function(){return{children:u,props:{colSpan:l,rowSpan:f}}}},A))}function h(a){return d.createElement("tr",Object.assign({},a))}function i(a){var n=a.children,t=d.useContext(r.a),u=t.prefixCls;return d.createElement("tfoot",{className:"".concat(u,"-summary")},n)}var o=_.b=i,e={Cell:v,Row:h}},nCxF:function(c,_,s){var d=s("QBsz"),r=d.min,x=d.max,v=d.scale,h=d.distance,i=d.add,o=d.clone,e=d.sub;function a(n,t,u,l){var f=[],y=[],E=[],T=[],A,w,O,g;if(l){O=[Infinity,Infinity],g=[-Infinity,-Infinity];for(var S=0,m=n.length;S>>2]&255;r.sigBytes-=x}},d.pad.Iso10126})},onxn:function(c,_){c.exports="data:image/png;base64,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"},pA7S:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.WordArray,h=x.BlockCipher,i=r.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],e=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],n=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],t=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=h.extend({_doReset:function(){for(var E=this._key,T=E.words,A=[],w=0;w<56;w++){var O=o[w]-1;A[w]=T[O>>>5]>>>31-O%32&1}for(var g=this._subKeys=[],S=0;S<16;S++){for(var m=g[S]=[],N=a[S],w=0;w<24;w++)m[w/6|0]|=A[(e[w]-1+N)%28]<<31-w%6,m[4+(w/6|0)]|=A[28+(e[w+24]-1+N)%28]<<31-w%6;m[0]=m[0]<<1|m[0]>>>31;for(var w=1;w<7;w++)m[w]=m[w]>>>(w-1)*4+3;m[7]=m[7]<<5|m[7]>>>27}for(var I=this._invSubKeys=[],w=0;w<16;w++)I[w]=g[15-w]},encryptBlock:function(E,T){this._doCryptBlock(E,T,this._subKeys)},decryptBlock:function(E,T){this._doCryptBlock(E,T,this._invSubKeys)},_doCryptBlock:function(E,T,A){this._lBlock=E[T],this._rBlock=E[T+1],l.call(this,4,252645135),l.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),l.call(this,1,1431655765);for(var w=0;w<16;w++){for(var O=A[w],g=this._lBlock,S=this._rBlock,m=0,N=0;N<8;N++)m|=n[N][((S^O[N])&t[N])>>>0];this._lBlock=S,this._rBlock=g^m}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,l.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),l.call(this,16,65535),l.call(this,4,252645135),E[T]=this._lBlock,E[T+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function l(E,T){var A=(this._lBlock>>>E^this._rBlock)&T;this._rBlock^=A,this._lBlock^=A<>>E^this._lBlock)&T;this._lBlock^=A,this._rBlock^=A<192.");var A=T.slice(0,2),w=T.length<4?T.slice(0,2):T.slice(2,4),O=T.length<6?T.slice(0,2):T.slice(4,6);this._des1=u.createEncryptor(v.create(A)),this._des2=u.createEncryptor(v.create(w)),this._des3=u.createEncryptor(v.create(O))},encryptBlock:function(E,T){this._des1.encryptBlock(E,T),this._des2.decryptBlock(E,T),this._des3.encryptBlock(E,T)},decryptBlock:function(E,T){this._des3.decryptBlock(E,T),this._des2.encryptBlock(E,T),this._des1.decryptBlock(E,T)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=h._createHelper(y)}(),d.TripleDES})},pzxd:function(c,_,s){var d=s("bYtY"),r=d.retrieve2,x=d.retrieve3,v=d.each,h=d.normalizeCssArray,i=d.isString,o=d.isObject,e=s("6GrX"),a=s("VpOo"),n=s("Xnb7"),t=s("fW2E"),u=s("gut8"),l=u.ContextCachedBy,f=u.WILL_BE_RESTORED,y=e.DEFAULT_FONT,E={left:1,right:1,center:1},T={top:1,bottom:1,middle:1},A=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],w={},O={};function g(P){return S(P),v(P.rich,S),P}function S(P){if(P){P.font=e.makeFont(P);var k=P.textAlign;k==="middle"&&(k="center"),P.textAlign=k==null||E[k]?k:"left";var Y=P.textVerticalAlign||P.textBaseline;Y==="center"&&(Y="middle"),P.textVerticalAlign=Y==null||T[Y]?Y:"top";var J=P.textPadding;J&&(P.textPadding=h(P.textPadding))}}function m(P,k,Y,J,te,ne){J.rich?I(P,k,Y,J,te,ne):N(P,k,Y,J,te,ne)}function N(P,k,Y,J,te,ne){"use strict";var q=F(J),ue,le=!1,ee=k.__attrCachedBy===l.PLAIN_TEXT;ne!==f?(ne&&(ue=ne.style,le=!q&&ee&&ue),k.__attrCachedBy=q?l.NONE:l.PLAIN_TEXT):ee&&(k.__attrCachedBy=l.NONE);var se=J.font||y;(!le||se!==(ue.font||y))&&(k.font=se);var Z=P.__computedFont;P.__styleFont!==se&&(P.__styleFont=se,Z=P.__computedFont=k.font);var oe=J.textPadding,L=J.textLineHeight,V=P.__textCotentBlock;(!V||P.__dirtyText)&&(V=P.__textCotentBlock=e.parsePlainText(Y,Z,oe,L,J.truncate));var ae=V.outerHeight,Q=V.lines,G=V.lineHeight,R=D(O,P,J,te),U=R.baseX,re=R.baseY,$=R.textAlign||"left",ce=R.textVerticalAlign;p(k,J,te,U,re);var pe=e.adjustTextY(re,ae,ce),ge=U,Ce=pe;if(q||oe){var Ae=e.getWidth(Y,Z),Se=Ae;oe&&(Se+=oe[1]+oe[3]);var Me=e.adjustTextX(U,Se,$);q&&z(P,k,J,Me,pe,Se,ae),oe&&(ge=W(U,$,oe),Ce+=oe[0])}k.textAlign=$,k.textBaseline="middle",k.globalAlpha=J.opacity||1;for(var fe=0;fe=0&&(fe=$[Me],fe.textAlign==="right");)C(P,k,fe,J,pe,G,Se,"right"),ge-=fe.width,Se-=fe.width,Me--;for(Ae+=(ne-(Ae-Q)-(R-Se)-ge)/2;Ce<=Me;)fe=$[Ce],C(P,k,fe,J,pe,G,Ae+fe.width/2,"center"),Ae+=fe.width,Ce++;G+=pe}}function p(P,k,Y,J,te){if(Y&&k.textRotation){var ne=k.textOrigin;ne==="center"?(J=Y.width/2+Y.x,te=Y.height/2+Y.y):ne&&(J=ne[0]+Y.x,te=ne[1]+Y.y),P.translate(J,te),P.rotate(-k.textRotation),P.translate(-J,-te)}}function C(P,k,Y,J,te,ne,q,ue){var le=J.rich[Y.styleName]||{};le.text=Y.text;var ee=Y.textVerticalAlign,se=ne+te/2;ee==="top"?se=ne+Y.height/2:ee==="bottom"&&(se=ne+te-Y.height/2),!Y.isLineHolder&&F(le)&&z(P,k,le,ue==="right"?q-Y.width:ue==="center"?q-Y.width/2:q,se-Y.height/2,Y.width,Y.height);var Z=Y.textPadding;Z&&(q=W(q,ue,Z),se-=Y.height/2-Z[2]-Y.textHeight/2),K(k,"shadowBlur",x(le.textShadowBlur,J.textShadowBlur,0)),K(k,"shadowColor",le.textShadowColor||J.textShadowColor||"transparent"),K(k,"shadowOffsetX",x(le.textShadowOffsetX,J.textShadowOffsetX,0)),K(k,"shadowOffsetY",x(le.textShadowOffsetY,J.textShadowOffsetY,0)),K(k,"textAlign",ue),K(k,"textBaseline","middle"),K(k,"font",Y.font||y);var oe=B(le.textStroke||J.textStroke,V),L=M(le.textFill||J.textFill),V=r(le.textStrokeWidth,J.textStrokeWidth);oe&&(K(k,"lineWidth",V),K(k,"strokeStyle",oe),k.strokeText(Y.text,q,se)),L&&(K(k,"fillStyle",L),k.fillText(Y.text,q,se))}function F(P){return!!(P.textBackgroundColor||P.textBorderWidth&&P.textBorderColor)}function z(P,k,Y,J,te,ne,q){var ue=Y.textBackgroundColor,le=Y.textBorderWidth,ee=Y.textBorderColor,se=i(ue);if(K(k,"shadowBlur",Y.textBoxShadowBlur||0),K(k,"shadowColor",Y.textBoxShadowColor||"transparent"),K(k,"shadowOffsetX",Y.textBoxShadowOffsetX||0),K(k,"shadowOffsetY",Y.textBoxShadowOffsetY||0),se||le&&ee){k.beginPath();var Z=Y.textBorderRadius;Z?a.buildPath(k,{x:J,y:te,width:ne,height:q,r:Z}):k.rect(J,te,ne,q),k.closePath()}if(se)if(K(k,"fillStyle",ue),Y.fillOpacity!=null){var oe=k.globalAlpha;k.globalAlpha=Y.fillOpacity*Y.opacity,k.fill(),k.globalAlpha=oe}else k.fill();else if(o(ue)){var L=ue.image;L=n.createOrUpdateImage(L,null,P,H,ue),L&&n.isImageReady(L)&&k.drawImage(L,J,te,ne,q)}if(le&&ee)if(K(k,"lineWidth",le),K(k,"strokeStyle",ee),Y.strokeOpacity!=null){var oe=k.globalAlpha;k.globalAlpha=Y.strokeOpacity*Y.opacity,k.stroke(),k.globalAlpha=oe}else k.stroke()}function H(P,k){k.image=P}function D(P,k,Y,J){var te=Y.x||0,ne=Y.y||0,q=Y.textAlign,ue=Y.textVerticalAlign;if(J){var le=Y.textPosition;if(le instanceof Array)te=J.x+j(le[0],J.width),ne=J.y+j(le[1],J.height);else{var ee=k&&k.calculateTextPosition?k.calculateTextPosition(w,Y,J):e.calculateTextPosition(w,Y,J);te=ee.x,ne=ee.y,q=q||ee.textAlign,ue=ue||ee.textVerticalAlign}var se=Y.textOffset;se&&(te+=se[0],ne+=se[1])}return P=P||{},P.baseX=te,P.baseY=ne,P.textAlign=q,P.textVerticalAlign=ue,P}function K(P,k,Y){return P[k]=t(P,k,Y),P[k]}function B(P,k){return P==null||k<=0||P==="transparent"||P==="none"?null:P.image||P.colorStops?"#000":P}function M(P){return P==null||P==="none"?null:P.image||P.colorStops?"#000":P}function j(P,k){return typeof P=="string"?P.lastIndexOf("%")>=0?parseFloat(P)/100*k:parseFloat(P):P}function W(P,k,Y){return k==="right"?P-Y[1]:k==="center"?P+Y[3]/2-Y[1]/2:P+Y[3]}function X(P,k){return P!=null&&(P||k.textBackgroundColor||k.textBorderWidth&&k.textBorderColor||k.textPadding)}_.normalizeTextStyle=g,_.renderText=m,_.getBoxPosition=D,_.getStroke=B,_.getFill=M,_.parsePercent=j,_.needDrawText=X},qBft:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("OLod"))})(this,function(d){return d.pad.AnsiX923={pad:function(r,x){var v=r.sigBytes,h=x*4,i=h-v%h,o=v+i-1;r.clamp(),r.words[o>>>2]|=i<<24-o%4*8,r.sigBytes+=i},unpad:function(r){var x=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=x}},d.pad.Ansix923})},qH13:function(c,_,s){var d=s("ItGF"),r=s("QBsz"),x=r.applyTransform,v=s("mFDi"),h=s("Qe9p"),i=s("6GrX"),o=s("pzxd"),e=s("ni6a"),a=s("Gev7"),n=s("Dagg"),t=s("dqUG"),u=s("y+Vt"),l=s("IMiH"),f=s("QuXc"),y=s("06Qe"),E=l.CMD,T=Math.round,A=Math.sqrt,w=Math.abs,O=Math.cos,g=Math.sin,S=Math.max;if(!d.canvasSupported){var m=",",N="progid:DXImageTransform.Microsoft",I=21600,b=I/2,p=1e5,C=1e3,F=function(U){U.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",U.coordsize=I+","+I,U.coordorigin="0,0"},z=function(U){return String(U).replace(/&/g,"&").replace(/"/g,""")},H=function(U,re,$){return"rgb("+[U,re,$].join(",")+")"},D=function(U,re){re&&U&&re.parentNode!==U&&U.appendChild(re)},K=function(U,re){re&&U&&re.parentNode===U&&U.removeChild(re)},B=function(U,re,$){return(parseFloat(U)||0)*p+(parseFloat(re)||0)*C+$},M=o.parsePercent,j=function(U,re,$){var ce=h.parse(re);$=+$,isNaN($)&&($=1),ce&&(U.color=H(ce[0],ce[1],ce[2]),U.opacity=$*ce[3])},W=function(U){var re=h.parse(U);return[H(re[0],re[1],re[2]),re[3]]},X=function(U,re,$){var ce=re.fill;if(ce!=null)if(ce instanceof f){var pe,ge=0,Ce=[0,0],Ae=0,Se=1,Me=$.getBoundingRect(),fe=Me.width,he=Me.height;if(ce.type==="linear"){pe="gradient";var be=$.transform,Ie=[ce.x*fe,ce.y*he],_e=[ce.x2*fe,ce.y2*he];be&&(x(Ie,Ie,be),x(_e,_e,be));var Le=_e[0]-Ie[0],je=_e[1]-Ie[1];ge=Math.atan2(Le,je)*180/Math.PI,ge<0&&(ge+=360),ge<1e-6&&(ge=0)}else{pe="gradientradial";var Ie=[ce.x*fe,ce.y*he],be=$.transform,Oe=$.scale,Pe=fe,Ue=he;Ce=[(Ie[0]-Me.x)/Pe,(Ie[1]-Me.y)/Ue],be&&x(Ie,Ie,be),Pe/=Oe[0]*I,Ue/=Oe[1]*I;var Be=S(Pe,Ue);Ae=2*0/Be,Se=2*ce.r/Be-Ae}var ke=ce.colorStops.slice();ke.sort(function(me,ie){return me.offset-ie.offset});for(var Ge=ke.length,ze=[],Xe=[],He=0;He=2){var Ve=ze[0][0],Ne=ze[1][0],ve=ze[0][1]*re.opacity,Ee=ze[1][1]*re.opacity;U.type=pe,U.method="none",U.focus="100%",U.angle=ge,U.color=Ve,U.color2=Ne,U.colors=Xe.join(","),U.opacity=Ee,U.opacity2=ve}pe==="radial"&&(U.focusposition=Ce.join(","))}else j(U,ce,re.opacity)},P=function(U,re){re.lineDash&&(U.dashstyle=re.lineDash.join(" ")),re.stroke!=null&&!(re.stroke instanceof f)&&j(U,re.stroke,re.opacity)},k=function(U,re,$,ce){var pe=re==="fill",ge=U.getElementsByTagName(re)[0];$[re]!=null&&$[re]!=="none"&&(pe||!pe&&$.lineWidth)?(U[pe?"filled":"stroked"]="true",$[re]instanceof f&&K(U,ge),ge||(ge=y.createNode(re)),pe?X(ge,$,ce):P(ge,$),D(U,ge)):(U[pe?"filled":"stroked"]="false",K(U,ge))},Y=[[],[],[]],J=function(U,re){var $=E.M,ce=E.C,pe=E.L,ge=E.A,Ce=E.Q,Ae=[],Se,Me,fe,he,be,Ie,_e=U.data,Le=U.len();for(he=0;he.01?ie&&(de+=270/I):Math.abs(we-Ve)<1e-4?ie&&deKe?Oe-=270/I:Oe+=270/I:ie&&weVe?je+=270/I:je-=270/I),Ae.push(xe,T(((Ke-Ne)*Xe+Ge)*I-b),m,T(((Ve-ve)*He+ze)*I-b),m,T(((Ke+Ne)*Xe+Ge)*I-b),m,T(((Ve+ve)*He+ze)*I-b),m,T((de*Xe+Ge)*I-b),m,T((we*He+ze)*I-b),m,T((je*Xe+Ge)*I-b),m,T((Oe*He+ze)*I-b)),be=je,Ie=Oe;break;case E.R:var Te=Y[0],Re=Y[1];Te[0]=_e[he++],Te[1]=_e[he++],Re[0]=Te[0]+_e[he++],Re[1]=Te[1]+_e[he++],re&&(x(Te,Te,re),x(Re,Re,re)),Te[0]=T(Te[0]*I-b),Re[0]=T(Re[0]*I-b),Te[1]=T(Te[1]*I-b),Re[1]=T(Re[1]*I-b),Ae.push(" m ",Te[0],m,Te[1]," l ",Re[0],m,Te[1]," l ",Re[0],m,Re[1]," l ",Te[0],m,Re[1]);break;case E.Z:Ae.push(" x ")}if(Se>0){Ae.push(Me);for(var ye=0;yele&&(ue=0,q={});var $=ee.style,ce;try{$.font=U,ce=$.fontFamily.split(",")[0]}catch(pe){}re={style:$.fontStyle||ne,variant:$.fontVariant||ne,weight:$.fontWeight||ne,size:parseFloat($.fontSize||12)|0,family:ce||"Microsoft YaHei"},q[U]=re,ue++}return re},Z;i.$override("measureText",function(U,re){var $=y.doc;Z||(Z=$.createElement("div"),Z.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",y.doc.body.appendChild(Z));try{Z.style.font=re}catch(ce){}return Z.innerHTML="",Z.appendChild($.createTextNode(U)),{width:Z.offsetWidth}});for(var oe=new v,L=function(U,re,$,ce){var pe=this.style;this.__dirty&&o.normalizeTextStyle(pe,!0);var ge=pe.text;if(ge!=null&&(ge+=""),!ge)return;if(pe.rich){var Ce=i.parseRichText(ge,pe);ge=[];for(var Ae=0;Ae>>2]>>>16-u%4*8&65535;t.push(String.fromCharCode(l))}return t.join("")},parse:function(e){for(var a=e.length,n=[],t=0;t>>1]|=e.charCodeAt(t)<<16-t%2*16;return v.create(n,a*2)}};h.Utf16LE={stringify:function(e){for(var a=e.words,n=e.sigBytes,t=[],u=0;u>>2]>>>16-u%4*8&65535);t.push(String.fromCharCode(l))}return t.join("")},parse:function(e){for(var a=e.length,n=[],t=0;t>>1]|=o(e.charCodeAt(t)<<16-t%2*16);return v.create(n,a*2)}};function o(e){return e<<8&4278255360|e>>>8&16711935}}(),d.enc.Utf16})},qgvg:function(c,_){c.exports="data:image/gif;base64,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"},qu8F:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("OLod"))})(this,function(d){/** @preserve * Counter block mode compatible with Dr Brian Gladman fileenc.c * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com - */return d.mode.CTRGladman=function(){var r=d.lib.BlockCipherMode.extend();function x(i){if((i>>24&255)===255){var o=i>>16&255,e=i>>8&255,a=i&255;o===255?(o=0,e===255?(e=0,a===255?a=0:++a):++e):++o,i=0,i+=o<<16,i+=e<<8,i+=a}else i+=1<<24;return i}function v(i){return(i[0]=x(i[0]))===0&&(i[1]=x(i[1])),i}var h=r.Encryptor=r.extend({processBlock:function(i,o){var e=this._cipher,a=e.blockSize,n=this._iv,t=this._counter;n&&(t=this._counter=n.slice(0),this._iv=void 0),v(t);var u=t.slice(0);e.encryptBlock(u,0);for(var l=0;l=0&&(this.delFromStorage(e),this._roots.splice(u,1),e instanceof x&&e.delChildrenFromStorage(this))},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:h};var o=i;c.exports=o},rA99:function(c,_,s){var d=s("y+Vt"),r=s("QBsz"),x=s("Sj9i"),v=x.quadraticSubdivide,h=x.cubicSubdivide,i=x.quadraticAt,o=x.cubicAt,e=x.quadraticDerivativeAt,a=x.cubicDerivativeAt,n=[];function t(l,f,y){var E=l.cpx2,T=l.cpy2;return E===null||T===null?[(y?a:o)(l.x1,l.cpx1,l.cpx2,l.x2,f),(y?a:o)(l.y1,l.cpy1,l.cpy2,l.y2,f)]:[(y?e:i)(l.x1,l.cpx1,l.x2,f),(y?e:i)(l.y1,l.cpy1,l.y2,f)]}var u=d.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(l,f){var y=f.x1,E=f.y1,T=f.x2,A=f.y2,w=f.cpx1,O=f.cpy1,g=f.cpx2,S=f.cpy2,m=f.percent;if(m===0)return;l.moveTo(y,E),g==null||S==null?(m<1&&(v(y,w,T,m,n),w=n[1],T=n[2],v(E,O,A,m,n),O=n[1],A=n[2]),l.quadraticCurveTo(w,O,T,A)):(m<1&&(h(y,w,g,T,m,n),w=n[1],g=n[2],T=n[3],h(E,O,S,A,m,n),O=n[1],S=n[2],A=n[3]),l.bezierCurveTo(w,O,g,S,T,A))},pointAt:function(l){return t(this.shape,l,!1)},tangentAt:function(l){var f=t(this.shape,l,!0);return r.normalize(f,f)}});c.exports=u},rHrb:function(c,_,s){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CopyToClipboard=void 0;var d=x(s("q1tI")),r=x(s("+QRC"));function x(w){return w&&w.__esModule?w:{default:w}}function v(w){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(g){return typeof g}:v=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},v(w)}function h(w,O){var g=Object.keys(w);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(w);O&&(S=S.filter(function(m){return Object.getOwnPropertyDescriptor(w,m).enumerable})),g.push.apply(g,S)}return g}function i(w){for(var O=1;O=0)continue;if(!Object.prototype.propertyIsEnumerable.call(w,S))continue;g[S]=w[S]}}return g}function e(w,O){if(w==null)return{};var g={},S=Object.keys(w),m,N;for(N=0;N=0)continue;g[m]=w[m]}return g}function a(w,O){if(!(w instanceof O))throw new TypeError("Cannot call a class as a function")}function n(w,O){for(var g=0;g-1)){var f=v.parse(l)[3],y=v.toHex(l);u.setAttribute("stop-color","#"+y),u.setAttribute("stop-opacity",f)}else u.setAttribute("stop-color",a[n].color);e.appendChild(u)}o._dom=e},h.prototype.markUsed=function(o){if(o.style){var e=o.style.fill;e&&e._dom&&d.prototype.markUsed.call(this,e._dom),e=o.style.stroke,e&&e._dom&&d.prototype.markUsed.call(this,e._dom)}};var i=h;c.exports=i},sboe:function(c,_,s){"use strict";s.d(_,"a",function(){return x});var d=s("q1tI"),r=s.n(d),x=d.createContext(null)},sckv:function(c,_,s){c.exports={wrap:"wrap___3kep6",colorBlue:"colorBlue___3r5Hq",repeatedName:"repeatedName___vESvE"}},t23M:function(c,_,s){"use strict";var d=s("VTBJ"),r=s("1OyB"),x=s("vuIU"),v=s("Ji7U"),h=s("LK+K"),i=s("q1tI"),o=s.n(i),e=s("m+aA"),a=s("Zm9Q"),n=s("Kwbf"),t=s("c+Xe"),u=s("bdgK"),l="rc-observer-key",f=function(y){Object(v.a)(T,y);var E=Object(h.a)(T);function T(){var A;return Object(r.a)(this,T),A=E.apply(this,arguments),A.resizeObserver=null,A.childNode=null,A.currentElement=null,A.state={width:0,height:0,offsetHeight:0,offsetWidth:0},A.onResize=function(w){var O=A.props.onResize,g=w[0].target,S=g.getBoundingClientRect(),m=S.width,N=S.height,I=g.offsetWidth,b=g.offsetHeight,p=Math.floor(m),C=Math.floor(N);if(A.state.width!==p||A.state.height!==C||A.state.offsetWidth!==I||A.state.offsetHeight!==b){var F={width:p,height:C,offsetWidth:I,offsetHeight:b};A.setState(F),O&&Promise.resolve().then(function(){O(Object(d.a)(Object(d.a)({},F),{},{offsetWidth:I,offsetHeight:b}))})}},A.setChildNode=function(w){A.childNode=w},A}return Object(x.a)(T,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var w=this.props.disabled;if(w){this.destroyObserver();return}var O=Object(e.a)(this.childNode||this),g=O!==this.currentElement;g&&(this.destroyObserver(),this.currentElement=O),!this.resizeObserver&&O&&(this.resizeObserver=new u.default(this.onResize),this.resizeObserver.observe(O))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var w=this.props.children,O=Object(a.a)(w);if(O.length>1)Object(n.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(O.length===0)return Object(n.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var g=O[0];if(i.isValidElement(g)&&Object(t.c)(g)){var S=g.ref;O[0]=i.cloneElement(g,{ref:Object(t.a)(S,this.setChildNode)})}return O.length===1?O[0]:O.map(function(m,N){return!i.isValidElement(m)||"key"in m&&m.key!==null?m:i.cloneElement(m,{key:"".concat(l,"-").concat(N)})})}}]),T}(i.Component);f.displayName="ResizeObserver",_.a=f},tWlo:function(c,_){c.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},u3os:function(c,_,s){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ver=_.clear=_.bind=void 0;var d=s("P4Qj"),r=function(i,o){var e=(0,d.getSensor)(i);return e.bind(o),function(){e.unbind(o)}};_.bind=r;var x=function(i){var o=(0,d.getSensor)(i);(0,d.removeSensor)(o)};_.clear=x;var v="1.0.1";_.ver=v},uGsb:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("MlIO"),s("1uat"))})(this,function(d){return function(){var r=d,x=r.x64,v=x.Word,h=x.WordArray,i=r.algo,o=i.SHA512,e=i.SHA384=o.extend({_doReset:function(){this._hash=new h.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var a=o._doFinalize.call(this);return a.sigBytes-=16,a}});r.SHA384=o._createHelper(e),r.HmacSHA384=o._createHmacHelper(e)}(),d.SHA384})},uGxW:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("OLod"))})(this,function(d){return d.pad.NoPadding={pad:function(){},unpad:function(){}},d.pad.NoPadding})},vKoX:function(c,_,s){var d=s("SrGk"),r=s("bYtY");function x(i,o){d.call(this,i,o,["filter"],"__filter_in_use__","_shadowDom")}r.inherits(x,d),x.prototype.addWithoutUpdate=function(i,o){if(o&&v(o.style)){var e;if(o._shadowDom){e=o._shadowDom;var a=this.getDefs(!0);a.contains(o._shadowDom)||this.addDom(e)}else e=this.add(o);this.markUsed(o);var n=e.getAttribute("id");i.style.filter="url(#"+n+")"}},x.prototype.add=function(i){var o=this.createElement("filter");return i._shadowDomId=i._shadowDomId||this.nextId++,o.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(i,o),this.addDom(o),o},x.prototype.update=function(i,o){var e=o.style;if(v(e)){var a=this;d.prototype.update.call(this,o,function(){a.updateDom(o,o._shadowDom)})}else this.remove(i,o)},x.prototype.remove=function(i,o){o._shadowDomId!=null&&(this.removeDom(i),i.style.filter="")},x.prototype.updateDom=function(i,o){var e=o.getElementsByTagName("feDropShadow");e.length===0?e=this.createElement("feDropShadow"):e=e[0];var a=i.style,n=i.scale&&i.scale[0]||1,t=i.scale&&i.scale[1]||1,u,l,f,y;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)u=a.shadowOffsetX||0,l=a.shadowOffsetY||0,f=a.shadowBlur,y=a.shadowColor;else if(a.textShadowBlur)u=a.textShadowOffsetX||0,l=a.textShadowOffsetY||0,f=a.textShadowBlur,y=a.textShadowColor;else{this.removeDom(o,a);return}e.setAttribute("dx",u/n),e.setAttribute("dy",l/t),e.setAttribute("flood-color",y);var E=f/2/n,T=f/2/t,A=E+" "+T;e.setAttribute("stdDeviation",A),o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width",Math.ceil(f/2*200)+"%"),o.setAttribute("height",Math.ceil(f/2*200)+"%"),o.appendChild(e),i._shadowDom=o},x.prototype.markUsed=function(i){i._shadowDom&&d.prototype.markUsed.call(this,i._shadowDom)};function v(i){return i&&(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY||i.textShadowBlur||i.textShadowOffsetX||i.textShadowOffsetY)}var h=x;c.exports=h},vWvF:function(c,_,s){var d=s("Bq2U"),r=s("SUKs"),x=s("bYtY"),v=x.isString,h=x.isFunction,i=x.isObject,o=x.isArrayLike,e=x.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(f,y){var E,T=!1,A=this,w=this.__zr;if(f){var O=f.split("."),g=A;T=O[0]==="shape";for(var S=0,m=O.length;S0&&f.animate(y,!1).when(A==null?500:A,g).delay(w||0)}function u(f,y,E,T){if(!y)f.attr(E,T);else{var A={};A[y]={},A[y][E]=T,f.attr(A)}}var l=a;c.exports=l},vsvx:function(c,_,s){c.exports=s.p+"static/course.f24848b5.svg"},w7YG:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.StreamCipher,h=r.algo,i=h.RC4=v.extend({_doReset:function(){for(var a=this._key,n=a.words,t=a.sigBytes,u=this._S=[],l=0;l<256;l++)u[l]=l;for(var l=0,f=0;l<256;l++){var y=l%t,E=n[y>>>2]>>>24-y%4*8&255;f=(f+u[l]+E)%256;var T=u[l];u[l]=u[f],u[f]=T}this._i=this._j=0},_doProcessBlock:function(a,n){a[n]^=o.call(this)},keySize:256/32,ivSize:0});function o(){for(var a=this._S,n=this._i,t=this._j,u=0,l=0;l<4;l++){n=(n+1)%256,t=(t+a[n])%256;var f=a[n];a[n]=a[t],a[t]=f,u|=a[(a[n]+a[t])%256]<<24-l*8}return this._i=n,this._j=t,u}r.RC4=v._createHelper(i);var e=h.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var a=this.cfg.drop;a>0;a--)o.call(this)}});r.RC4Drop=v._createHelper(e)}(),d.RC4})},wCXF:function(c,_,s){"use strict";s.d(_,"a",function(){return Ce});var d=s("rePB"),r=s("VTBJ"),x=s("KQm4"),v=s("U8pU"),h=s("ODXe"),i=s("q1tI"),o=s("TSYQ"),e=s.n(o),a=s("Gytx"),n=s.n(a),t=s("Kwbf"),u=s("t23M"),l=s("qx4F"),f=s("6eGT"),y=s("IBYe"),E=s("Ff2n"),T=s("c+Xe"),A=s("fyJ8"),w=s("biw7");function O(fe,he,be,Ie,_e){var Le=be[fe]||{},je=be[he]||{},Oe,Pe;Le.fixed==="left"?Oe=Ie.left[fe]:je.fixed==="right"&&(Pe=Ie.right[he]);var Ue=!1,Be=!1,ke=!1,Ge=!1,ze=be[he+1],Xe=be[fe-1];if(_e==="rtl"){if(Oe!==void 0){var He=Xe&&Xe.fixed==="left";Ge=!He}else if(Pe!==void 0){var We=ze&&ze.fixed==="right";ke=!We}}else if(Oe!==void 0){var Ke=ze&&ze.fixed==="left";Ue=!Ke}else if(Pe!==void 0){var Ve=Xe&&Xe.fixed==="right";Be=!Ve}return{fixLeft:Oe,fixRight:Pe,lastFixLeft:Ue,firstFixRight:Be,lastFixRight:ke,firstFixLeft:Ge,isSticky:Ie.isSticky}}var g=s("sR1s");function S(fe){var he=fe.cells,be=fe.stickyOffsets,Ie=fe.flattenColumns,_e=fe.rowComponent,Le=fe.cellComponent,je=fe.onHeaderRow,Oe=fe.index,Pe=i.useContext(w.a),Ue=Pe.prefixCls,Be=Pe.direction,ke;je&&(ke=je(he.map(function(ze){return ze.column}),Oe));var Ge=Object(g.a)(he.map(function(ze){return ze.column}));return i.createElement(_e,Object.assign({},ke),he.map(function(ze,Xe){var He=ze.column,We=O(ze.colStart,ze.colEnd,Ie,be,Be),Ke;return He&&He.onHeaderCell&&(Ke=ze.column.onHeaderCell(He)),i.createElement(A.a,Object.assign({},ze,{ellipsis:He.ellipsis,align:He.align,component:Le,prefixCls:Ue,key:Ge[Xe]},We,{additionalProps:Ke,rowType:"header"}))}))}S.displayName="HeaderRow";var m=S;function N(fe){var he=[];function be(je,Oe){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;he[Pe]=he[Pe]||[];var Ue=Oe,Be=je.filter(Boolean).map(function(ke){var Ge={key:ke.key,className:ke.className||"",children:ke.title,column:ke,colStart:Ue},ze=1,Xe=ke.children;return Xe&&Xe.length>0&&(ze=be(Xe,Ue,Pe+1).reduce(function(He,We){return He+We},0),Ge.hasSubColumns=!0),"colSpan"in ke&&(ze=ke.colSpan),"rowSpan"in ke&&(Ge.rowSpan=ke.rowSpan),Ge.colSpan=ze,Ge.colEnd=Ge.colStart+ze-1,he[Pe].push(Ge),Ue+=ze,ze});return Be}be(fe,0);for(var Ie=he.length,_e=function(Oe){he[Oe].forEach(function(Pe){!("rowSpan"in Pe)&&!Pe.hasSubColumns&&(Pe.rowSpan=Ie-Oe)})},Le=0;Le=0;Oe-=1){var Pe=he[Oe],Ue=be&&be[Oe],Be=Ue&&Ue[p.a];(Pe||Be||je)&&(_e.unshift(i.createElement("col",Object.assign({key:Oe,style:{width:Pe,minWidth:Pe}},Be))),je=!0)}return i.createElement("colgroup",null,_e)}var F=C;function z(fe,he){return Object(i.useMemo)(function(){for(var be=[],Ie=0;Ie1?it-1:0),Et=1;Et=ke&&(Ye=ke-Ge),je({scrollLeft:Ye/ke*(Be+2)}),Ve.current.x=xe.pageX},ye=function(){var xe=Object(U.b)(Le.current).top,De=xe+Le.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;De-Object(l.a)()<=Fe||xe>=Fe-Oe?Ke(function(Je){return Object(r.a)(Object(r.a)({},Je),{},{isHiddenScrollBar:!0})}):Ke(function(Je){return Object(r.a)(Object(r.a)({},Je),{},{isHiddenScrollBar:!1})})},Te=function(xe){Ke(function(De){return Object(r.a)(Object(r.a)({},De),{},{scrollLeft:xe/Be*ke||0})})};return i.useImperativeHandle(be,function(){return{setScrollLeft:Te}}),i.useEffect(function(){var Re=Object(R.a)(document.body,"mouseup",ie,!1),xe=Object(R.a)(document.body,"mousemove",we,!1);return ye(),function(){Re.remove(),xe.remove()}},[Ge,Ee]),i.useEffect(function(){var Re=Object(R.a)(window,"scroll",ye,!1),xe=Object(R.a)(window,"resize",ye,!1);return function(){Re.remove(),xe.remove()}},[]),i.useEffect(function(){We.isHiddenScrollBar||Ke(function(Re){var xe,De;return Object(r.a)(Object(r.a)({},Re),{},{scrollLeft:Le.current.scrollLeft/((xe=Le.current)===null||xe===void 0?void 0:xe.scrollWidth)*((De=Le.current)===null||De===void 0?void 0:De.clientWidth)})})},[We.isHiddenScrollBar]),Be<=ke||!Ge||We.isHiddenScrollBar?null:i.createElement("div",{style:{height:Object(l.a)(),width:ke,bottom:Oe},className:"".concat(Ue,"-sticky-scroll")},i.createElement("div",{onMouseDown:de,ref:ze,className:e()("".concat(Ue,"-sticky-scroll-bar"),Object(d.a)({},"".concat(Ue,"-sticky-scroll-bar-active"),Ee)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(We.scrollLeft,"px, 0, 0)")}}))},$=i.forwardRef(re);function ce(fe,he){return i.useMemo(function(){var be=!!fe;return{isSticky:be,stickyClassName:be?"".concat(he,"-sticky-header"):"",offsetHeader:Object(v.a)(fe)==="object"&&fe.offsetHeader||0,offsetScroll:Object(v.a)(fe)==="object"&&fe.offsetScroll||0}},[fe,he])}var pe=[],ge={},Ce="rc-table-internal-hook",Ae=i.memo(function(fe){var he=fe.children;return he},function(fe,he){return n()(fe.props,he.props)?fe.pingLeft!==he.pingLeft||fe.pingRight!==he.pingRight:!1});function Se(fe){var he,be=fe.prefixCls,Ie=fe.className,_e=fe.rowClassName,Le=fe.style,je=fe.data,Oe=fe.rowKey,Pe=fe.scroll,Ue=fe.tableLayout,Be=fe.direction,ke=fe.title,Ge=fe.footer,ze=fe.summary,Xe=fe.id,He=fe.showHeader,We=fe.components,Ke=fe.emptyText,Ve=fe.onRow,Ne=fe.onHeaderRow,ve=fe.internalHooks,Ee=fe.transformColumns,me=fe.internalRefs,ie=fe.sticky,de=je||pe,we=!!de.length,ye=i.useState(0),Te=Object(h.a)(ye,2),Re=Te[0],xe=Te[1];i.useEffect(function(){xe(Object(l.a)())});var De=i.useMemo(function(){return Object(g.c)(We,{})},[We]),Fe=i.useCallback(function(Ze,qe){return Object(g.b)(De,Ze)||qe},[De]),Je=i.useMemo(function(){return typeof Oe=="function"?Oe:function(Ze){var qe=Ze&&Ze[Oe];return qe}},[Oe]),Ye=Object(p.c)(fe),Qe=Ye.expandIcon,$e=Ye.expandedRowKeys,dt=Ye.defaultExpandedRowKeys,at=Ye.defaultExpandAllRows,rt=Ye.expandedRowRender,st=Ye.onExpand,lt=Ye.onExpandedRowsChange,mt=Ye.expandRowByClick,nt=Ye.rowExpandable,ft=Ye.expandIconColumnIndex,bt=Ye.expandedRowClassName,Ot=Ye.childrenColumnName,At=Ye.indentSize,vt=Qe||Q,Ct=Ot||"children",yt=i.useMemo(function(){return rt?"row":fe.expandable&&ve===Ce&&fe.expandable.__PARENT_RENDER_ICON__||de.some(function(Ze){return Ze&&Object(v.a)(Ze)==="object"&&Ze[Ct]})?"nest":!1},[!!rt,de]),Rt=i.useState(function(){return dt||(at?G(de,Je,Ct):[])}),ot=Object(h.a)(Rt,2),ut=ot[0],ht=ot[1],it=i.useMemo(function(){return new Set($e||ut||[])},[$e,ut]),xt=i.useCallback(function(Ze){var qe=Je(Ze,de.indexOf(Ze)),tt,ct=it.has(qe);ct?(it.delete(qe),tt=Object(x.a)(it)):tt=[].concat(Object(x.a)(it),[qe]),ht(tt),st&&st(!ct,Ze),lt&<(tt)},[Je,it,de,st,lt]),Et=i.useState(0),Dt=Object(h.a)(Et,2),Tt=Dt[0],Pt=Dt[1],mr=Object(q.b)(Object(r.a)(Object(r.a)(Object(r.a)({},fe),Ye),{},{expandable:!!rt,expandedKeys:it,getRowKey:Je,onTriggerExpand:xt,expandIcon:vt,expandIconColumnIndex:ft,direction:Be}),ve===Ce?Ee:null),Qt=Object(h.a)(mr,2),Ut=Qt[0],et=Qt[1],Nt=i.useMemo(function(){return{columns:Ut,flattenColumns:et}},[Ut,et]),Ft=i.useRef(),Zt=i.useRef(),wt=i.useRef(),vr=i.useState(!1),qt=Object(h.a)(vr,2),$t=qt[0],gr=qt[1],br=i.useState(!1),er=Object(h.a)(br,2),tr=er[0],yr=er[1],xr=ee(new Map),rr=Object(h.a)(xr,2),Er=rr[0],wr=rr[1],Cr=Object(g.a)(et),nr=Cr.map(function(Ze){return Er.get(Ze)}),ar=i.useMemo(function(){return nr},[nr.join("_")]),jt=oe(ar,et.length,Be),pt=Pe&&Object(g.d)(Pe.y),gt=Pe&&Object(g.d)(Pe.x),_t=gt&&et.some(function(Ze){var qe=Ze.fixed;return qe}),or=i.useRef(),kt=ce(ie,be),It=kt.isSticky,Ar=kt.offsetHeader,Sr=kt.offsetScroll,Or=kt.stickyClassName,zt,Lt,Wt;pt&&(Lt={overflowY:"scroll",maxHeight:Pe.y}),gt&&(zt={overflowX:"auto"},pt||(Lt={overflowY:"hidden"}),Wt={width:Pe.x===!0?"auto":Pe.x,minWidth:"100%"});var ir=i.useCallback(function(Ze,qe){wr(function(tt){var ct=new Map(tt);return ct.set(Ze,qe),ct})},[]),Tr=se(null),sr=Object(h.a)(Tr,2),_r=sr[0],lr=sr[1];function Ht(Ze,qe){if(!qe)return;typeof qe=="function"?qe(Ze):qe.scrollLeft!==Ze&&(qe.scrollLeft=Ze)}var St=function(qe){var tt=qe.currentTarget,ct=qe.scrollLeft,Mt=typeof ct=="number"?ct:tt.scrollLeft,pr=tt||ge;if(!lr()||lr()===pr){var Jt;_r(pr),Ht(Mt,Zt.current),Ht(Mt,wt.current),Ht(Mt,(Jt=or.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(tt){var jr=tt.scrollWidth,kr=tt.clientWidth;gr(Mt>0),yr(Mt0?[].concat(Object(r.a)(E),Object(r.a)(t(O).map(function(g){return Object(x.a)({fixed:w},g)}))):[].concat(Object(r.a)(E),[Object(x.a)(Object(x.a)({},T),{},{fixed:w})])},[])}function u(y){for(var E=!0,T=0;T=0;O-=1){var g=y[O];if(w&&g.fixed!=="right")w=!1;else if(!w&&g.fixed==="right"){Object(o.a)(!1,"Index ".concat(O+1," of `columns` missing `fixed='right'` prop."));break}}}function l(y){return y.map(function(E){var T=E.fixed,A=Object(v.a)(E,["fixed"]),w=T;return T==="left"?w="right":T==="right"&&(w="left"),Object(x.a)({fixed:w},A)})}function f(y,E){var T=y.prefixCls,A=y.columns,w=y.children,O=y.expandable,g=y.expandedKeys,S=y.getRowKey,m=y.onTriggerExpand,N=y.expandIcon,I=y.rowExpandable,b=y.expandIconColumnIndex,p=y.direction,C=y.expandRowByClick,F=h.useMemo(function(){return A||n(w)},[A,w]),z=h.useMemo(function(){if(O){var K,B=b||0,M=F[B],j=(K={},Object(d.a)(K,a.a,{className:"".concat(T,"-expand-icon-col")}),Object(d.a)(K,"title",""),Object(d.a)(K,"fixed",M?M.fixed:null),Object(d.a)(K,"className","".concat(T,"-row-expand-icon-cell")),Object(d.a)(K,"render",function(P,k,Y){var J=S(k,Y),te=g.has(J),ne=I?I(k):!0,q=N({prefixCls:T,expanded:te,expandable:ne,record:k,onExpand:m});return C?h.createElement("span",{onClick:function(le){return le.stopPropagation()}},q):q}),K),W=F.slice();return B>=0&&W.splice(B,0,j),W}return F},[O,F,S,g,N,p]),H=h.useMemo(function(){var K=z;return E&&(K=E(K)),K.length||(K=[{render:function(){return null}}]),K},[E,z,p]),D=h.useMemo(function(){return p==="rtl"?l(t(H)):t(H)},[H,p]);return[H,D]}_.b=f},wZgz:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.BlockCipher,h=r.algo,i=[],o=[],e=[],a=[],n=[],t=[],u=[],l=[],f=[],y=[];(function(){for(var A=[],w=0;w<256;w++)w<128?A[w]=w<<1:A[w]=w<<1^283;for(var O=0,g=0,w=0;w<256;w++){var S=g^g<<1^g<<2^g<<3^g<<4;S=S>>>8^S&255^99,i[O]=S,o[S]=O;var m=A[O],N=A[m],I=A[N],b=A[S]*257^S*16843008;e[O]=b<<24|b>>>8,a[O]=b<<16|b>>>16,n[O]=b<<8|b>>>24,t[O]=b;var b=I*16843009^N*65537^m*257^O*16843008;u[S]=b<<24|b>>>8,l[S]=b<<16|b>>>16,f[S]=b<<8|b>>>24,y[S]=b,O?(O=m^A[A[A[I^m]]],g^=A[A[g]]):O=g=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],T=h.AES=v.extend({_doReset:function(){var A;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var w=this._keyPriorReset=this._key,O=w.words,g=w.sigBytes/4,S=this._nRounds=g+6,m=(S+1)*4,N=this._keySchedule=[],I=0;I6&&I%g==4&&(A=i[A>>>24]<<24|i[A>>>16&255]<<16|i[A>>>8&255]<<8|i[A&255]):(A=A<<8|A>>>24,A=i[A>>>24]<<24|i[A>>>16&255]<<16|i[A>>>8&255]<<8|i[A&255],A^=E[I/g|0]<<24),N[I]=N[I-g]^A);for(var b=this._invKeySchedule=[],p=0;p>>24]]^l[i[A>>>16&255]]^f[i[A>>>8&255]]^y[i[A&255]]}},encryptBlock:function(A,w){this._doCryptBlock(A,w,this._keySchedule,e,a,n,t,i)},decryptBlock:function(A,w){var O=A[w+1];A[w+1]=A[w+3],A[w+3]=O,this._doCryptBlock(A,w,this._invKeySchedule,u,l,f,y,o);var O=A[w+1];A[w+1]=A[w+3],A[w+3]=O},_doCryptBlock:function(A,w,O,g,S,m,N,I){for(var b=this._nRounds,p=A[w]^O[0],C=A[w+1]^O[1],F=A[w+2]^O[2],z=A[w+3]^O[3],H=4,D=1;D>>24]^S[C>>>16&255]^m[F>>>8&255]^N[z&255]^O[H++],B=g[C>>>24]^S[F>>>16&255]^m[z>>>8&255]^N[p&255]^O[H++],M=g[F>>>24]^S[z>>>16&255]^m[p>>>8&255]^N[C&255]^O[H++],j=g[z>>>24]^S[p>>>16&255]^m[C>>>8&255]^N[F&255]^O[H++];p=K,C=B,F=M,z=j}var K=(I[p>>>24]<<24|I[C>>>16&255]<<16|I[F>>>8&255]<<8|I[z&255])^O[H++],B=(I[C>>>24]<<24|I[F>>>16&255]<<16|I[z>>>8&255]<<8|I[p&255])^O[H++],M=(I[F>>>24]<<24|I[z>>>16&255]<<16|I[p>>>8&255]<<8|I[C&255])^O[H++],j=(I[z>>>24]<<24|I[p>>>16&255]<<16|I[C>>>8&255]<<8|I[F&255])^O[H++];A[w]=K,A[w+1]=B,A[w+2]=M,A[w+3]=j},keySize:256/32});r.AES=v._createHelper(T)}(),d.AES})},wbyO:function(c,_,s){(function(d,r){c.exports=_=r(s("Ib8C"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.WordArray,h=r.enc,i=h.Base64url={stringify:function(e,a=!0){var n=e.words,t=e.sigBytes,u=a?this._safe_map:this._map;e.clamp();for(var l=[],f=0;f>>2]>>>24-f%4*8&255,E=n[f+1>>>2]>>>24-(f+1)%4*8&255,T=n[f+2>>>2]>>>24-(f+2)%4*8&255,A=y<<16|E<<8|T,w=0;w<4&&f+w*.75>>6*(3-w)&63));var O=u.charAt(64);if(O)for(;l.length%4;)l.push(O);return l.join("")},parse:function(e,a=!0){var n=e.length,t=a?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var l=0;l>>6-l%4*2,E=f|y;t[u>>>2]|=E<<24-u%4*8,u++}return v.create(t,u)}}(),d.enc.Base64url})},x6Kt:function(c,_,s){var d=s("y+Vt"),r=s("VpOo"),x=s("nPnh"),v=x.subPixelOptimizeRect,h={},i=d.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(o,e){var a,n,t,u;this.subPixelOptimize?(v(h,e,this.style),a=h.x,n=h.y,t=h.width,u=h.height,h.r=e.r,e=h):(a=e.x,n=e.y,t=e.width,u=e.height),e.r?r.buildPath(o,e):o.rect(a,n,t,u),o.closePath();return}});c.exports=i},"y+Vt":function(c,_,s){var d=s("Gev7"),r=s("bYtY"),x=s("IMiH"),v=s("2DNl"),h=s("3C/r"),i=h.prototype.getCanvasPattern,o=Math.abs,e=new x(!0);function a(t){d.call(this,t),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,u){var l=this.style,f=this.path||e,y=l.hasStroke(),E=l.hasFill(),T=l.fill,A=l.stroke,w=E&&!!T.colorStops,O=y&&!!A.colorStops,g=E&&!!T.image,S=y&&!!A.image;if(l.bind(t,this,u),this.setTransform(t),this.__dirty){var m;w&&(m=m||this.getBoundingRect(),this._fillGradient=l.getGradient(t,T,m)),O&&(m=m||this.getBoundingRect(),this._strokeGradient=l.getGradient(t,A,m))}w?t.fillStyle=this._fillGradient:g&&(t.fillStyle=i.call(T,t)),O?t.strokeStyle=this._strokeGradient:S&&(t.strokeStyle=i.call(A,t));var N=l.lineDash,I=l.lineDashOffset,b=!!t.setLineDash,p=this.getGlobalScale();if(f.setScale(p[0],p[1],this.segmentIgnoreThreshold),this.__dirtyPath||N&&!b&&y?(f.beginPath(t),N&&!b&&(f.setLineDash(N),f.setLineDashOffset(I)),this.buildPath(f,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),E)if(l.fillOpacity!=null){var C=t.globalAlpha;t.globalAlpha=l.fillOpacity*l.opacity,f.fill(t),t.globalAlpha=C}else f.fill(t);if(N&&b&&(t.setLineDash(N),t.lineDashOffset=I),y)if(l.strokeOpacity!=null){var C=t.globalAlpha;t.globalAlpha=l.strokeOpacity*l.opacity,f.stroke(t),t.globalAlpha=C}else f.stroke(t);N&&b&&t.setLineDash([]),l.text!=null&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,u,l){},createPathProxy:function(){this.path=new x},getBoundingRect:function(){var t=this._rect,u=this.style,l=!t;if(l){var f=this.path;f||(f=this.path=new x),this.__dirtyPath&&(f.beginPath(),this.buildPath(f,this.shape,!1)),t=f.getBoundingRect()}if(this._rect=t,u.hasStroke()){var y=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||l){y.copy(t);var E=u.lineWidth,T=u.strokeNoScale?this.getLineScale():1;u.hasFill()||(E=Math.max(E,this.strokeContainThreshold||4)),T>1e-10&&(y.width+=E/T,y.height+=E/T,y.x-=E/T/2,y.y-=E/T/2)}return y}return t},contain:function(t,u){var l=this.transformCoordToLocal(t,u),f=this.getBoundingRect(),y=this.style;if(t=l[0],u=l[1],f.contain(t,u)){var E=this.path.data;if(y.hasStroke()){var T=y.lineWidth,A=y.strokeNoScale?this.getLineScale():1;if(A>1e-10&&(y.hasFill()||(T=Math.max(T,this.strokeContainThreshold)),v.containStroke(E,T/A,t,u)))return!0}if(y.hasFill())return v.contain(E,t,u)}return!1},dirty:function(t){t==null&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,u){t==="shape"?(this.setShape(u),this.__dirtyPath=!0,this._rect=null):d.prototype.attrKV.call(this,t,u)},setShape:function(t,u){var l=this.shape;if(l){if(r.isObject(t))for(var f in t)t.hasOwnProperty(f)&&(l[f]=t[f]);else l[t]=u;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&o(t[0]-1)>1e-10&&o(t[3]-1)>1e-10?Math.sqrt(o(t[0]*t[3]-t[2]*t[1])):1}},a.extend=function(t){var u=function(f){a.call(this,f),t.style&&this.style.extendFrom(t.style,!1);var y=t.shape;if(y){this.shape=this.shape||{};var E=this.shape;for(var T in y)!E.hasOwnProperty(T)&&y.hasOwnProperty(T)&&(E[T]=y[T])}t.init&&t.init.call(this,f)};r.inherits(u,a);for(var l in t)l!=="style"&&l!=="shape"&&(u.prototype[l]=t[l]);return u},r.inherits(a,d);var n=a;c.exports=n},"y0+3":function(c,_,s){"use strict";s.d(_,"a",function(){return t}),s.d(_,"b",function(){return l});var d=/margin|padding|width|height|max|min|offset/,r={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function v(f){return f.nodeType===1?f.ownerDocument.defaultView.getComputedStyle(f,null):{}}function h(f,y,E){if(y=y.toLowerCase(),E==="auto"){if(y==="height")return f.offsetHeight;if(y==="width")return f.offsetWidth}return y in r||(r[y]=d.test(y)),r[y]?parseFloat(E)||0:E}function i(f,y){var E=arguments.length,T=v(f);return y=x[y]?"cssFloat"in f.style?"cssFloat":"styleFloat":y,E===1?T:h(f,y,T[y]||f.style[y])}function o(f,y,E){var T=arguments.length;if(y=x[y]?"cssFloat"in f.style?"cssFloat":"styleFloat":y,T===3)return typeof E=="number"&&d.test(y)&&(E="".concat(E,"px")),f.style[y]=E,E;for(var A in y)y.hasOwnProperty(A)&&o(f,A,y[A]);return v(f)}function e(f){return f===document.body?document.documentElement.clientWidth:f.offsetWidth}function a(f){return f===document.body?window.innerHeight||document.documentElement.clientHeight:f.offsetHeight}function n(){var f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),y=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:f,height:y}}function t(){var f=document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight;return{width:f,height:y}}function u(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function l(f){var y=f.getBoundingClientRect(),E=document.documentElement;return{left:y.left+(window.pageXOffset||E.scrollLeft)-(E.clientLeft||document.body.clientLeft||0),top:y.top+(window.pageYOffset||E.scrollTop)-(E.clientTop||document.body.clientTop||0)}}},y23F:function(c,_){function s(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}s.prototype={constructor:s,_dragStart:function(x){for(var v=x.target;v&&!v.draggable;)v=v.parent;v&&(this._draggingTarget=v,v.dragging=!0,this._x=x.offsetX,this._y=x.offsetY,this.dispatchToElement(d(v,x),"dragstart",x.event))},_drag:function(x){var v=this._draggingTarget;if(v){var h=x.offsetX,i=x.offsetY,o=h-this._x,e=i-this._y;this._x=h,this._y=i,v.drift(o,e,x),this.dispatchToElement(d(v,x),"drag",x.event);var a=this.findHover(h,i,v).target,n=this._dropTarget;this._dropTarget=a,v!==a&&(n&&a!==n&&this.dispatchToElement(d(n,x),"dragleave",x.event),a&&a!==n&&this.dispatchToElement(d(a,x),"dragenter",x.event))}},_dragEnd:function(x){var v=this._draggingTarget;v&&(v.dragging=!1),this.dispatchToElement(d(v,x),"dragend",x.event),this._dropTarget&&this.dispatchToElement(d(this._dropTarget,x),"drop",x.event),this._draggingTarget=null,this._dropTarget=null}};function d(x,v){return{target:x,topTarget:v&&v.topTarget}}var r=s;c.exports=r},yilW:function(c,_,s){c.exports=s.p+"static/learn.e7098108.svg"},yslc:function(c,_){c.exports="data:image/png;base64,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"},yxFR:function(c,_,s){var d=s("y+Vt"),r=s("nPnh"),x=r.subPixelOptimizeLine,v={},h=d.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(i,o){var e,a,n,t;this.subPixelOptimize?(x(v,o,this.style),e=v.x1,a=v.y1,n=v.x2,t=v.y2):(e=o.x1,a=o.y1,n=o.x2,t=o.y2);var u=o.percent;if(u===0)return;i.moveTo(e,a),u<1&&(n=e*(1-u)+n*u,t=a*(1-u)+t*u),i.lineTo(n,t)},pointAt:function(i){var o=this.shape;return[o.x1*(1-i)+o.x2*i,o.y1*(1-i)+o.y2*i]}});c.exports=h},zarK:function(c,_,s){var d=s("YH21"),r=d.addEventListener,x=d.removeEventListener,v=d.normalizeEvent,h=d.getNativeEvent,i=s("bYtY"),o=s("H6uX"),e=s("ItGF"),a=300,n=e.domSupported,t=function(){var D=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],K=["touchstart","touchend","touchmove"],B={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},M=i.map(D,function(j){var W=j.replace("mouse","pointer");return B.hasOwnProperty(W)?W:j});return{mouse:D,touch:K,pointer:M}}(),u={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function l(D){return D==="mousewheel"&&e.browser.firefox?"DOMMouseScroll":D}function f(D){var K=D.pointerType;return K==="pen"||K==="touch"}function y(D){D.touching=!0,D.touchTimer!=null&&(clearTimeout(D.touchTimer),D.touchTimer=null),D.touchTimer=setTimeout(function(){D.touching=!1,D.touchTimer=null},700)}function E(D){D&&(D.zrByTouch=!0)}function T(D,K){return v(D.dom,new w(D,K),!0)}function A(D,K){for(var B=K,M=!1;B&&B.nodeType!==9&&!(M=B.domBelongToZr||B!==K&&B===D.painterRoot);)B=B.parentNode;return M}function w(D,K){this.type=K.type,this.target=this.currentTarget=D.dom,this.pointerType=K.pointerType,this.clientX=K.clientX,this.clientY=K.clientY}var O=w.prototype;O.stopPropagation=O.stopImmediatePropagation=O.preventDefault=i.noop;var g={mousedown:function(D){D=v(this.dom,D),this._mayPointerCapture=[D.zrX,D.zrY],this.trigger("mousedown",D)},mousemove:function(D){D=v(this.dom,D);var K=this._mayPointerCapture;K&&(D.zrX!==K[0]||D.zrY!==K[1])&&p(this,!0),this.trigger("mousemove",D)},mouseup:function(D){D=v(this.dom,D),p(this,!1),this.trigger("mouseup",D)},mouseout:function(D){D=v(this.dom,D),this._pointerCapturing&&(D.zrEventControl="no_globalout");var K=D.toElement||D.relatedTarget;D.zrIsToLocalDOM=A(this,K),this.trigger("mouseout",D)},touchstart:function(D){D=v(this.dom,D),E(D),this._lastTouchMoment=new Date,this.handler.processGesture(D,"start"),g.mousemove.call(this,D),g.mousedown.call(this,D)},touchmove:function(D){D=v(this.dom,D),E(D),this.handler.processGesture(D,"change"),g.mousemove.call(this,D)},touchend:function(D){D=v(this.dom,D),E(D),this.handler.processGesture(D,"end"),g.mouseup.call(this,D),+new Date-this._lastTouchMoment"},series:[{type:"wordCloud",sizeRange:[10,30],rotationRange:[-90,90],rotationStep:45,gridSize:2,shape:"pentagon",maskImage:ge,textStyle:{normal:{color:function(){return"rgb("+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+")"}}},left:"center",top:"center",right:null,bottom:null,width:"100%",height:"100%",data:Ce}]};return Ae},re=(p=ee.rightData)!==null&&p!==void 0&&p.complete_count?Number((C=ee.rightData)===null||C===void 0?void 0:C.complete_count)/Number((F=ee.rightData)===null||F===void 0?void 0:F.challenge_count)*100:0;return ee.rightData?e.a.createElement("section",{className:u.a.rightWrap},!((z=ee.detail)!==null&&z!==void 0&&z.is_jupyter)&&((H=ee.detail)===null||H===void 0||((D=H.task_operation)===null||D===void 0)?void 0:D[2])&&(se==null||((K=se.userInfo)===null||K===void 0)?void 0:K.login)&&!!((B=ee.rightData)!==null&&B!==void 0&&B.complete_count)&&((M=ee.rightData)===null||M===void 0?void 0:M.complete_count)>0&&e.a.createElement("div",{className:u.a.learnWrap},e.a.createElement("div",{className:u.a.learnTopWrap},e.a.createElement("span",null,e.a.createElement("img",{className:u.a.titleImg,src:f.a,alt:""}),"\u5B66\u4E60\u8FDB\u5EA6"),e.a.createElement("span",null,e.a.createElement("span",{className:"".concat(u.a.color888," font14")},"\u5DF2\u5B8C\u6210 ",((j=ee.rightData)===null||j===void 0?void 0:j.complete_count)||0," \u5173 / \u5171",((W=ee.rightData)===null||W===void 0?void 0:W.challenge_count)||0," \u5173"))),e.a.createElement(v.a,{percent:re,showInfo:!1,status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})),!!((X=ee.rightData)!==null&&X!==void 0&&(P=X.paths)!==null&&P!==void 0&&P.length)&&e.a.createElement("div",{className:u.a.courseWrap},e.a.createElement("p",{className:"mb20 font16"},e.a.createElement("img",{className:u.a.titleImg,src:E.a,alt:""}),"\u6240\u5C5E\u8BFE\u7A0B"),e.a.createElement("div",null,(k=ee.rightData)===null||k===void 0?void 0:k.paths.map(function($,ce){return ce>2?null:e.a.createElement("div",{className:u.a.pathWrap,key:$.id},e.a.createElement("a",{href:"/paths/".concat($.id),target:"_blank"},e.a.createElement("img",{alt:"\u5B9E\u8BAD",src:"".concat(n.a.IMG_SERVER,"/").concat($.image_url),className:u.a.pathImg})),e.a.createElement("div",{className:u.a.pathContentWrap},e.a.createElement("a",{href:"/paths/".concat($.id),target:"_blank",className:u.a.pathContentName},$.name),e.a.createElement("p",{className:u.a.pathContent},e.a.createElement(r.a,{placement:"bottom",title:"\u7AE0\u8282"},e.a.createElement("span",{className:u.a.pathContentCount},e.a.createElement("i",{className:"iconfont icon-shixun mr3"}),$.stages_count)),e.a.createElement(r.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},e.a.createElement("span",{className:u.a.pathContentCount},e.a.createElement("i",{className:"iconfont icon-chengyuan mr3"}),$.members_count)))))}))),e.a.createElement("div",null),!!((Y=ee.rightData)!==null&&Y!==void 0&&(J=Y.recommands)!==null&&J!==void 0&&J.length)&&se.userInfo.main_site&&e.a.createElement("div",{className:u.a.recommandTrainingWrap},e.a.createElement("p",{className:"mb20 font16"},e.a.createElement("img",{className:u.a.titleImg,src:A.a,alt:""}),"\u63A8\u8350\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement("div",null,(te=ee.rightData)===null||te===void 0?void 0:te.recommands.map(function($,ce){return ce>2?null:e.a.createElement("div",{className:u.a.pathContentItem,key:ce},e.a.createElement("a",{href:"/shixuns/".concat($.identifier,"/challenges"),target:"_blank"},e.a.createElement("img",{src:"".concat(n.a.IMG_SERVER,"/").concat($.pic),className:u.a.pathImg})),e.a.createElement("div",{className:u.a.pathContentWrap,style:{marginBottom:-4}},e.a.createElement(r.a,{placement:"bottom",title:$.name},e.a.createElement("a",{href:"/shixuns/".concat($.identifier,"/challenges"),target:"_blank",className:u.a.pathContentName},$.name)),e.a.createElement("p",{className:"".concat(u.a.pathContent," ").concat(u.a.recommandContent)},e.a.createElement("span",null,$.stu_num," \u4EBA\u5B66\u4E60"),e.a.createElement("span",{className:u.a.recommandLevel},$.level))))}))),((ne=ee.rightData)===null||ne===void 0||((q=ne.tags)===null||q===void 0)?void 0:q.length)>0&&e.a.createElement("div",{className:u.a.skillWrap},e.a.createElement("p",{className:"".concat(u.a.skillTopWrap," font16 mb20")},e.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",e.a.createElement("span",{className:"ml5 c-grey-c"},(ue=ee.rightData)===null||ue===void 0||((le=ue.tags)===null||le===void 0)?void 0:le.length))),e.a.createElement(O.a,{option:U(),style:{height:370},opts:{renderer:"svg"}}))):null};_.a=Object(a.a)(function(I){var b=I.shixunsDetail,p=I.user,C=I.loading,F=I.globalSetting;return{shixunsDetail:b,user:p,globalSetting:F,loading:C.models.index}})(N)}}]); + */return d.mode.CTRGladman=function(){var r=d.lib.BlockCipherMode.extend();function x(i){if((i>>24&255)===255){var o=i>>16&255,e=i>>8&255,a=i&255;o===255?(o=0,e===255?(e=0,a===255?a=0:++a):++e):++o,i=0,i+=o<<16,i+=e<<8,i+=a}else i+=1<<24;return i}function v(i){return(i[0]=x(i[0]))===0&&(i[1]=x(i[1])),i}var h=r.Encryptor=r.extend({processBlock:function(i,o){var e=this._cipher,a=e.blockSize,n=this._iv,t=this._counter;n&&(t=this._counter=n.slice(0),this._iv=void 0),v(t);var u=t.slice(0);e.encryptBlock(u,0);for(var l=0;l=0&&(this.delFromStorage(e),this._roots.splice(u,1),e instanceof x&&e.delChildrenFromStorage(this))},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:h};var o=i;c.exports=o},rA99:function(c,_,s){var d=s("y+Vt"),r=s("QBsz"),x=s("Sj9i"),v=x.quadraticSubdivide,h=x.cubicSubdivide,i=x.quadraticAt,o=x.cubicAt,e=x.quadraticDerivativeAt,a=x.cubicDerivativeAt,n=[];function t(l,f,y){var E=l.cpx2,T=l.cpy2;return E===null||T===null?[(y?a:o)(l.x1,l.cpx1,l.cpx2,l.x2,f),(y?a:o)(l.y1,l.cpy1,l.cpy2,l.y2,f)]:[(y?e:i)(l.x1,l.cpx1,l.x2,f),(y?e:i)(l.y1,l.cpy1,l.y2,f)]}var u=d.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(l,f){var y=f.x1,E=f.y1,T=f.x2,A=f.y2,w=f.cpx1,O=f.cpy1,g=f.cpx2,S=f.cpy2,m=f.percent;if(m===0)return;l.moveTo(y,E),g==null||S==null?(m<1&&(v(y,w,T,m,n),w=n[1],T=n[2],v(E,O,A,m,n),O=n[1],A=n[2]),l.quadraticCurveTo(w,O,T,A)):(m<1&&(h(y,w,g,T,m,n),w=n[1],g=n[2],T=n[3],h(E,O,S,A,m,n),O=n[1],S=n[2],A=n[3]),l.bezierCurveTo(w,O,g,S,T,A))},pointAt:function(l){return t(this.shape,l,!1)},tangentAt:function(l){var f=t(this.shape,l,!0);return r.normalize(f,f)}});c.exports=u},rHrb:function(c,_,s){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CopyToClipboard=void 0;var d=x(s("q1tI")),r=x(s("+QRC"));function x(w){return w&&w.__esModule?w:{default:w}}function v(w){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(g){return typeof g}:v=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},v(w)}function h(w,O){var g=Object.keys(w);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(w);O&&(S=S.filter(function(m){return Object.getOwnPropertyDescriptor(w,m).enumerable})),g.push.apply(g,S)}return g}function i(w){for(var O=1;O=0)continue;if(!Object.prototype.propertyIsEnumerable.call(w,S))continue;g[S]=w[S]}}return g}function e(w,O){if(w==null)return{};var g={},S=Object.keys(w),m,N;for(N=0;N=0)continue;g[m]=w[m]}return g}function a(w,O){if(!(w instanceof O))throw new TypeError("Cannot call a class as a function")}function n(w,O){for(var g=0;g-1)){var f=v.parse(l)[3],y=v.toHex(l);u.setAttribute("stop-color","#"+y),u.setAttribute("stop-opacity",f)}else u.setAttribute("stop-color",a[n].color);e.appendChild(u)}o._dom=e},h.prototype.markUsed=function(o){if(o.style){var e=o.style.fill;e&&e._dom&&d.prototype.markUsed.call(this,e._dom),e=o.style.stroke,e&&e._dom&&d.prototype.markUsed.call(this,e._dom)}};var i=h;c.exports=i},sboe:function(c,_,s){"use strict";s.d(_,"a",function(){return x});var d=s("q1tI"),r=s.n(d),x=d.createContext(null)},sckv:function(c,_,s){c.exports={wrap:"wrap___3kep6",colorBlue:"colorBlue___3r5Hq",repeatedName:"repeatedName___vESvE"}},t23M:function(c,_,s){"use strict";var d=s("VTBJ"),r=s("1OyB"),x=s("vuIU"),v=s("Ji7U"),h=s("LK+K"),i=s("q1tI"),o=s.n(i),e=s("m+aA"),a=s("Zm9Q"),n=s("Kwbf"),t=s("c+Xe"),u=s("bdgK"),l="rc-observer-key",f=function(y){Object(v.a)(T,y);var E=Object(h.a)(T);function T(){var A;return Object(r.a)(this,T),A=E.apply(this,arguments),A.resizeObserver=null,A.childNode=null,A.currentElement=null,A.state={width:0,height:0,offsetHeight:0,offsetWidth:0},A.onResize=function(w){var O=A.props.onResize,g=w[0].target,S=g.getBoundingClientRect(),m=S.width,N=S.height,I=g.offsetWidth,b=g.offsetHeight,p=Math.floor(m),C=Math.floor(N);if(A.state.width!==p||A.state.height!==C||A.state.offsetWidth!==I||A.state.offsetHeight!==b){var F={width:p,height:C,offsetWidth:I,offsetHeight:b};A.setState(F),O&&Promise.resolve().then(function(){O(Object(d.a)(Object(d.a)({},F),{},{offsetWidth:I,offsetHeight:b}))})}},A.setChildNode=function(w){A.childNode=w},A}return Object(x.a)(T,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var w=this.props.disabled;if(w){this.destroyObserver();return}var O=Object(e.a)(this.childNode||this),g=O!==this.currentElement;g&&(this.destroyObserver(),this.currentElement=O),!this.resizeObserver&&O&&(this.resizeObserver=new u.default(this.onResize),this.resizeObserver.observe(O))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var w=this.props.children,O=Object(a.a)(w);if(O.length>1)Object(n.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(O.length===0)return Object(n.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var g=O[0];if(i.isValidElement(g)&&Object(t.c)(g)){var S=g.ref;O[0]=i.cloneElement(g,{ref:Object(t.a)(S,this.setChildNode)})}return O.length===1?O[0]:O.map(function(m,N){return!i.isValidElement(m)||"key"in m&&m.key!==null?m:i.cloneElement(m,{key:"".concat(l,"-").concat(N)})})}}]),T}(i.Component);f.displayName="ResizeObserver",_.a=f},tWlo:function(c,_){c.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},u3os:function(c,_,s){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ver=_.clear=_.bind=void 0;var d=s("P4Qj"),r=function(i,o){var e=(0,d.getSensor)(i);return e.bind(o),function(){e.unbind(o)}};_.bind=r;var x=function(i){var o=(0,d.getSensor)(i);(0,d.removeSensor)(o)};_.clear=x;var v="1.0.1";_.ver=v},uGsb:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("MlIO"),s("1uat"))})(this,function(d){return function(){var r=d,x=r.x64,v=x.Word,h=x.WordArray,i=r.algo,o=i.SHA512,e=i.SHA384=o.extend({_doReset:function(){this._hash=new h.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var a=o._doFinalize.call(this);return a.sigBytes-=16,a}});r.SHA384=o._createHelper(e),r.HmacSHA384=o._createHmacHelper(e)}(),d.SHA384})},uGxW:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("OLod"))})(this,function(d){return d.pad.NoPadding={pad:function(){},unpad:function(){}},d.pad.NoPadding})},vKoX:function(c,_,s){var d=s("SrGk"),r=s("bYtY");function x(i,o){d.call(this,i,o,["filter"],"__filter_in_use__","_shadowDom")}r.inherits(x,d),x.prototype.addWithoutUpdate=function(i,o){if(o&&v(o.style)){var e;if(o._shadowDom){e=o._shadowDom;var a=this.getDefs(!0);a.contains(o._shadowDom)||this.addDom(e)}else e=this.add(o);this.markUsed(o);var n=e.getAttribute("id");i.style.filter="url(#"+n+")"}},x.prototype.add=function(i){var o=this.createElement("filter");return i._shadowDomId=i._shadowDomId||this.nextId++,o.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(i,o),this.addDom(o),o},x.prototype.update=function(i,o){var e=o.style;if(v(e)){var a=this;d.prototype.update.call(this,o,function(){a.updateDom(o,o._shadowDom)})}else this.remove(i,o)},x.prototype.remove=function(i,o){o._shadowDomId!=null&&(this.removeDom(i),i.style.filter="")},x.prototype.updateDom=function(i,o){var e=o.getElementsByTagName("feDropShadow");e.length===0?e=this.createElement("feDropShadow"):e=e[0];var a=i.style,n=i.scale&&i.scale[0]||1,t=i.scale&&i.scale[1]||1,u,l,f,y;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)u=a.shadowOffsetX||0,l=a.shadowOffsetY||0,f=a.shadowBlur,y=a.shadowColor;else if(a.textShadowBlur)u=a.textShadowOffsetX||0,l=a.textShadowOffsetY||0,f=a.textShadowBlur,y=a.textShadowColor;else{this.removeDom(o,a);return}e.setAttribute("dx",u/n),e.setAttribute("dy",l/t),e.setAttribute("flood-color",y);var E=f/2/n,T=f/2/t,A=E+" "+T;e.setAttribute("stdDeviation",A),o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width",Math.ceil(f/2*200)+"%"),o.setAttribute("height",Math.ceil(f/2*200)+"%"),o.appendChild(e),i._shadowDom=o},x.prototype.markUsed=function(i){i._shadowDom&&d.prototype.markUsed.call(this,i._shadowDom)};function v(i){return i&&(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY||i.textShadowBlur||i.textShadowOffsetX||i.textShadowOffsetY)}var h=x;c.exports=h},vWvF:function(c,_,s){var d=s("Bq2U"),r=s("SUKs"),x=s("bYtY"),v=x.isString,h=x.isFunction,i=x.isObject,o=x.isArrayLike,e=x.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(f,y){var E,T=!1,A=this,w=this.__zr;if(f){var O=f.split("."),g=A;T=O[0]==="shape";for(var S=0,m=O.length;S0&&f.animate(y,!1).when(A==null?500:A,g).delay(w||0)}function u(f,y,E,T){if(!y)f.attr(E,T);else{var A={};A[y]={},A[y][E]=T,f.attr(A)}}var l=a;c.exports=l},vsvx:function(c,_,s){c.exports=s.p+"static/course.f24848b5.svg"},w7YG:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.StreamCipher,h=r.algo,i=h.RC4=v.extend({_doReset:function(){for(var a=this._key,n=a.words,t=a.sigBytes,u=this._S=[],l=0;l<256;l++)u[l]=l;for(var l=0,f=0;l<256;l++){var y=l%t,E=n[y>>>2]>>>24-y%4*8&255;f=(f+u[l]+E)%256;var T=u[l];u[l]=u[f],u[f]=T}this._i=this._j=0},_doProcessBlock:function(a,n){a[n]^=o.call(this)},keySize:256/32,ivSize:0});function o(){for(var a=this._S,n=this._i,t=this._j,u=0,l=0;l<4;l++){n=(n+1)%256,t=(t+a[n])%256;var f=a[n];a[n]=a[t],a[t]=f,u|=a[(a[n]+a[t])%256]<<24-l*8}return this._i=n,this._j=t,u}r.RC4=v._createHelper(i);var e=h.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var a=this.cfg.drop;a>0;a--)o.call(this)}});r.RC4Drop=v._createHelper(e)}(),d.RC4})},wCXF:function(c,_,s){"use strict";s.d(_,"a",function(){return Ce});var d=s("rePB"),r=s("VTBJ"),x=s("KQm4"),v=s("U8pU"),h=s("ODXe"),i=s("q1tI"),o=s("TSYQ"),e=s.n(o),a=s("Gytx"),n=s.n(a),t=s("Kwbf"),u=s("t23M"),l=s("qx4F"),f=s("6eGT"),y=s("IBYe"),E=s("Ff2n"),T=s("c+Xe"),A=s("fyJ8"),w=s("biw7");function O(fe,he,be,Ie,_e){var Le=be[fe]||{},je=be[he]||{},Oe,Pe;Le.fixed==="left"?Oe=Ie.left[fe]:je.fixed==="right"&&(Pe=Ie.right[he]);var Ue=!1,Be=!1,ke=!1,Ge=!1,ze=be[he+1],Xe=be[fe-1];if(_e==="rtl"){if(Oe!==void 0){var He=Xe&&Xe.fixed==="left";Ge=!He}else if(Pe!==void 0){var We=ze&&ze.fixed==="right";ke=!We}}else if(Oe!==void 0){var Ke=ze&&ze.fixed==="left";Ue=!Ke}else if(Pe!==void 0){var Ve=Xe&&Xe.fixed==="right";Be=!Ve}return{fixLeft:Oe,fixRight:Pe,lastFixLeft:Ue,firstFixRight:Be,lastFixRight:ke,firstFixLeft:Ge,isSticky:Ie.isSticky}}var g=s("sR1s");function S(fe){var he=fe.cells,be=fe.stickyOffsets,Ie=fe.flattenColumns,_e=fe.rowComponent,Le=fe.cellComponent,je=fe.onHeaderRow,Oe=fe.index,Pe=i.useContext(w.a),Ue=Pe.prefixCls,Be=Pe.direction,ke;je&&(ke=je(he.map(function(ze){return ze.column}),Oe));var Ge=Object(g.a)(he.map(function(ze){return ze.column}));return i.createElement(_e,Object.assign({},ke),he.map(function(ze,Xe){var He=ze.column,We=O(ze.colStart,ze.colEnd,Ie,be,Be),Ke;return He&&He.onHeaderCell&&(Ke=ze.column.onHeaderCell(He)),i.createElement(A.a,Object.assign({},ze,{ellipsis:He.ellipsis,align:He.align,component:Le,prefixCls:Ue,key:Ge[Xe]},We,{additionalProps:Ke,rowType:"header"}))}))}S.displayName="HeaderRow";var m=S;function N(fe){var he=[];function be(je,Oe){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;he[Pe]=he[Pe]||[];var Ue=Oe,Be=je.filter(Boolean).map(function(ke){var Ge={key:ke.key,className:ke.className||"",children:ke.title,column:ke,colStart:Ue},ze=1,Xe=ke.children;return Xe&&Xe.length>0&&(ze=be(Xe,Ue,Pe+1).reduce(function(He,We){return He+We},0),Ge.hasSubColumns=!0),"colSpan"in ke&&(ze=ke.colSpan),"rowSpan"in ke&&(Ge.rowSpan=ke.rowSpan),Ge.colSpan=ze,Ge.colEnd=Ge.colStart+ze-1,he[Pe].push(Ge),Ue+=ze,ze});return Be}be(fe,0);for(var Ie=he.length,_e=function(Oe){he[Oe].forEach(function(Pe){!("rowSpan"in Pe)&&!Pe.hasSubColumns&&(Pe.rowSpan=Ie-Oe)})},Le=0;Le=0;Oe-=1){var Pe=he[Oe],Ue=be&&be[Oe],Be=Ue&&Ue[p.a];(Pe||Be||je)&&(_e.unshift(i.createElement("col",Object.assign({key:Oe,style:{width:Pe,minWidth:Pe}},Be))),je=!0)}return i.createElement("colgroup",null,_e)}var F=C;function z(fe,he){return Object(i.useMemo)(function(){for(var be=[],Ie=0;Ie1?it-1:0),Et=1;Et=ke&&(Ye=ke-Ge),je({scrollLeft:Ye/ke*(Be+2)}),Ve.current.x=ye.pageX},xe=function(){var ye=Object(U.b)(Le.current).top,De=ye+Le.current.offsetHeight,Fe=document.documentElement.scrollTop+window.innerHeight;De-Object(l.a)()<=Fe||ye>=Fe-Oe?Ke(function(Je){return Object(r.a)(Object(r.a)({},Je),{},{isHiddenScrollBar:!0})}):Ke(function(Je){return Object(r.a)(Object(r.a)({},Je),{},{isHiddenScrollBar:!1})})},Te=function(ye){Ke(function(De){return Object(r.a)(Object(r.a)({},De),{},{scrollLeft:ye/Be*ke||0})})};return i.useImperativeHandle(be,function(){return{setScrollLeft:Te}}),i.useEffect(function(){var Re=Object(R.a)(document.body,"mouseup",ie,!1),ye=Object(R.a)(document.body,"mousemove",we,!1);return xe(),function(){Re.remove(),ye.remove()}},[Ge,Ee]),i.useEffect(function(){var Re=Object(R.a)(window,"scroll",xe,!1),ye=Object(R.a)(window,"resize",xe,!1);return function(){Re.remove(),ye.remove()}},[]),i.useEffect(function(){We.isHiddenScrollBar||Ke(function(Re){var ye,De;return Object(r.a)(Object(r.a)({},Re),{},{scrollLeft:Le.current.scrollLeft/((ye=Le.current)===null||ye===void 0?void 0:ye.scrollWidth)*((De=Le.current)===null||De===void 0?void 0:De.clientWidth)})})},[We.isHiddenScrollBar]),Be<=ke||!Ge||We.isHiddenScrollBar?null:i.createElement("div",{style:{height:Object(l.a)(),width:ke,bottom:Oe},className:"".concat(Ue,"-sticky-scroll")},i.createElement("div",{onMouseDown:de,ref:ze,className:e()("".concat(Ue,"-sticky-scroll-bar"),Object(d.a)({},"".concat(Ue,"-sticky-scroll-bar-active"),Ee)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(We.scrollLeft,"px, 0, 0)")}}))},$=i.forwardRef(re);function ce(fe,he){return i.useMemo(function(){var be=!!fe;return{isSticky:be,stickyClassName:be?"".concat(he,"-sticky-header"):"",offsetHeader:Object(v.a)(fe)==="object"&&fe.offsetHeader||0,offsetScroll:Object(v.a)(fe)==="object"&&fe.offsetScroll||0}},[fe,he])}var pe=[],ge={},Ce="rc-table-internal-hook",Ae=i.memo(function(fe){var he=fe.children;return he},function(fe,he){return n()(fe.props,he.props)?fe.pingLeft!==he.pingLeft||fe.pingRight!==he.pingRight:!1});function Se(fe){var he,be=fe.prefixCls,Ie=fe.className,_e=fe.rowClassName,Le=fe.style,je=fe.data,Oe=fe.rowKey,Pe=fe.scroll,Ue=fe.tableLayout,Be=fe.direction,ke=fe.title,Ge=fe.footer,ze=fe.summary,Xe=fe.id,He=fe.showHeader,We=fe.components,Ke=fe.emptyText,Ve=fe.onRow,Ne=fe.onHeaderRow,ve=fe.internalHooks,Ee=fe.transformColumns,me=fe.internalRefs,ie=fe.sticky,de=je||pe,we=!!de.length,xe=i.useState(0),Te=Object(h.a)(xe,2),Re=Te[0],ye=Te[1];i.useEffect(function(){ye(Object(l.a)())});var De=i.useMemo(function(){return Object(g.c)(We,{})},[We]),Fe=i.useCallback(function(Ze,qe){return Object(g.b)(De,Ze)||qe},[De]),Je=i.useMemo(function(){return typeof Oe=="function"?Oe:function(Ze){var qe=Ze&&Ze[Oe];return qe}},[Oe]),Ye=Object(p.c)(fe),Qe=Ye.expandIcon,$e=Ye.expandedRowKeys,dt=Ye.defaultExpandedRowKeys,at=Ye.defaultExpandAllRows,rt=Ye.expandedRowRender,st=Ye.onExpand,lt=Ye.onExpandedRowsChange,mt=Ye.expandRowByClick,nt=Ye.rowExpandable,ft=Ye.expandIconColumnIndex,bt=Ye.expandedRowClassName,Ot=Ye.childrenColumnName,At=Ye.indentSize,vt=Qe||Q,Ct=Ot||"children",yt=i.useMemo(function(){return rt?"row":fe.expandable&&ve===Ce&&fe.expandable.__PARENT_RENDER_ICON__||de.some(function(Ze){return Ze&&Object(v.a)(Ze)==="object"&&Ze[Ct]})?"nest":!1},[!!rt,de]),Rt=i.useState(function(){return dt||(at?G(de,Je,Ct):[])}),ot=Object(h.a)(Rt,2),ut=ot[0],ht=ot[1],it=i.useMemo(function(){return new Set($e||ut||[])},[$e,ut]),xt=i.useCallback(function(Ze){var qe=Je(Ze,de.indexOf(Ze)),tt,ct=it.has(qe);ct?(it.delete(qe),tt=Object(x.a)(it)):tt=[].concat(Object(x.a)(it),[qe]),ht(tt),st&&st(!ct,Ze),lt&<(tt)},[Je,it,de,st,lt]),Et=i.useState(0),Dt=Object(h.a)(Et,2),Tt=Dt[0],Pt=Dt[1],mr=Object(q.b)(Object(r.a)(Object(r.a)(Object(r.a)({},fe),Ye),{},{expandable:!!rt,expandedKeys:it,getRowKey:Je,onTriggerExpand:xt,expandIcon:vt,expandIconColumnIndex:ft,direction:Be}),ve===Ce?Ee:null),Qt=Object(h.a)(mr,2),Ut=Qt[0],et=Qt[1],Nt=i.useMemo(function(){return{columns:Ut,flattenColumns:et}},[Ut,et]),Ft=i.useRef(),Zt=i.useRef(),wt=i.useRef(),vr=i.useState(!1),qt=Object(h.a)(vr,2),$t=qt[0],gr=qt[1],br=i.useState(!1),er=Object(h.a)(br,2),tr=er[0],yr=er[1],xr=ee(new Map),rr=Object(h.a)(xr,2),Er=rr[0],wr=rr[1],Cr=Object(g.a)(et),nr=Cr.map(function(Ze){return Er.get(Ze)}),ar=i.useMemo(function(){return nr},[nr.join("_")]),jt=oe(ar,et.length,Be),pt=Pe&&Object(g.d)(Pe.y),gt=Pe&&Object(g.d)(Pe.x),_t=gt&&et.some(function(Ze){var qe=Ze.fixed;return qe}),or=i.useRef(),kt=ce(ie,be),It=kt.isSticky,Ar=kt.offsetHeader,Sr=kt.offsetScroll,Or=kt.stickyClassName,zt,Lt,Wt;pt&&(Lt={overflowY:"scroll",maxHeight:Pe.y}),gt&&(zt={overflowX:"auto"},pt||(Lt={overflowY:"hidden"}),Wt={width:Pe.x===!0?"auto":Pe.x,minWidth:"100%"});var ir=i.useCallback(function(Ze,qe){wr(function(tt){var ct=new Map(tt);return ct.set(Ze,qe),ct})},[]),Tr=se(null),sr=Object(h.a)(Tr,2),_r=sr[0],lr=sr[1];function Ht(Ze,qe){if(!qe)return;typeof qe=="function"?qe(Ze):qe.scrollLeft!==Ze&&(qe.scrollLeft=Ze)}var St=function(qe){var tt=qe.currentTarget,ct=qe.scrollLeft,Mt=typeof ct=="number"?ct:tt.scrollLeft,pr=tt||ge;if(!lr()||lr()===pr){var Jt;_r(pr),Ht(Mt,Zt.current),Ht(Mt,wt.current),Ht(Mt,(Jt=or.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(tt){var jr=tt.scrollWidth,kr=tt.clientWidth;gr(Mt>0),yr(Mt0?[].concat(Object(r.a)(E),Object(r.a)(t(O).map(function(g){return Object(x.a)({fixed:w},g)}))):[].concat(Object(r.a)(E),[Object(x.a)(Object(x.a)({},T),{},{fixed:w})])},[])}function u(y){for(var E=!0,T=0;T=0;O-=1){var g=y[O];if(w&&g.fixed!=="right")w=!1;else if(!w&&g.fixed==="right"){Object(o.a)(!1,"Index ".concat(O+1," of `columns` missing `fixed='right'` prop."));break}}}function l(y){return y.map(function(E){var T=E.fixed,A=Object(v.a)(E,["fixed"]),w=T;return T==="left"?w="right":T==="right"&&(w="left"),Object(x.a)({fixed:w},A)})}function f(y,E){var T=y.prefixCls,A=y.columns,w=y.children,O=y.expandable,g=y.expandedKeys,S=y.getRowKey,m=y.onTriggerExpand,N=y.expandIcon,I=y.rowExpandable,b=y.expandIconColumnIndex,p=y.direction,C=y.expandRowByClick,F=h.useMemo(function(){return A||n(w)},[A,w]),z=h.useMemo(function(){if(O){var K,B=b||0,M=F[B],j=(K={},Object(d.a)(K,a.a,{className:"".concat(T,"-expand-icon-col")}),Object(d.a)(K,"title",""),Object(d.a)(K,"fixed",M?M.fixed:null),Object(d.a)(K,"className","".concat(T,"-row-expand-icon-cell")),Object(d.a)(K,"render",function(P,k,Y){var J=S(k,Y),te=g.has(J),ne=I?I(k):!0,q=N({prefixCls:T,expanded:te,expandable:ne,record:k,onExpand:m});return C?h.createElement("span",{onClick:function(le){return le.stopPropagation()}},q):q}),K),W=F.slice();return B>=0&&W.splice(B,0,j),W}return F},[O,F,S,g,N,p]),H=h.useMemo(function(){var K=z;return E&&(K=E(K)),K.length||(K=[{render:function(){return null}}]),K},[E,z,p]),D=h.useMemo(function(){return p==="rtl"?l(t(H)):t(H)},[H,p]);return[H,D]}_.b=f},wZgz:function(c,_,s){(function(d,r,x){c.exports=_=r(s("Ib8C"),s("ETIr"),s("cv67"),s("K3mO"),s("OLod"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.BlockCipher,h=r.algo,i=[],o=[],e=[],a=[],n=[],t=[],u=[],l=[],f=[],y=[];(function(){for(var A=[],w=0;w<256;w++)w<128?A[w]=w<<1:A[w]=w<<1^283;for(var O=0,g=0,w=0;w<256;w++){var S=g^g<<1^g<<2^g<<3^g<<4;S=S>>>8^S&255^99,i[O]=S,o[S]=O;var m=A[O],N=A[m],I=A[N],b=A[S]*257^S*16843008;e[O]=b<<24|b>>>8,a[O]=b<<16|b>>>16,n[O]=b<<8|b>>>24,t[O]=b;var b=I*16843009^N*65537^m*257^O*16843008;u[S]=b<<24|b>>>8,l[S]=b<<16|b>>>16,f[S]=b<<8|b>>>24,y[S]=b,O?(O=m^A[A[A[I^m]]],g^=A[A[g]]):O=g=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],T=h.AES=v.extend({_doReset:function(){var A;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var w=this._keyPriorReset=this._key,O=w.words,g=w.sigBytes/4,S=this._nRounds=g+6,m=(S+1)*4,N=this._keySchedule=[],I=0;I6&&I%g==4&&(A=i[A>>>24]<<24|i[A>>>16&255]<<16|i[A>>>8&255]<<8|i[A&255]):(A=A<<8|A>>>24,A=i[A>>>24]<<24|i[A>>>16&255]<<16|i[A>>>8&255]<<8|i[A&255],A^=E[I/g|0]<<24),N[I]=N[I-g]^A);for(var b=this._invKeySchedule=[],p=0;p>>24]]^l[i[A>>>16&255]]^f[i[A>>>8&255]]^y[i[A&255]]}},encryptBlock:function(A,w){this._doCryptBlock(A,w,this._keySchedule,e,a,n,t,i)},decryptBlock:function(A,w){var O=A[w+1];A[w+1]=A[w+3],A[w+3]=O,this._doCryptBlock(A,w,this._invKeySchedule,u,l,f,y,o);var O=A[w+1];A[w+1]=A[w+3],A[w+3]=O},_doCryptBlock:function(A,w,O,g,S,m,N,I){for(var b=this._nRounds,p=A[w]^O[0],C=A[w+1]^O[1],F=A[w+2]^O[2],z=A[w+3]^O[3],H=4,D=1;D>>24]^S[C>>>16&255]^m[F>>>8&255]^N[z&255]^O[H++],B=g[C>>>24]^S[F>>>16&255]^m[z>>>8&255]^N[p&255]^O[H++],M=g[F>>>24]^S[z>>>16&255]^m[p>>>8&255]^N[C&255]^O[H++],j=g[z>>>24]^S[p>>>16&255]^m[C>>>8&255]^N[F&255]^O[H++];p=K,C=B,F=M,z=j}var K=(I[p>>>24]<<24|I[C>>>16&255]<<16|I[F>>>8&255]<<8|I[z&255])^O[H++],B=(I[C>>>24]<<24|I[F>>>16&255]<<16|I[z>>>8&255]<<8|I[p&255])^O[H++],M=(I[F>>>24]<<24|I[z>>>16&255]<<16|I[p>>>8&255]<<8|I[C&255])^O[H++],j=(I[z>>>24]<<24|I[p>>>16&255]<<16|I[C>>>8&255]<<8|I[F&255])^O[H++];A[w]=K,A[w+1]=B,A[w+2]=M,A[w+3]=j},keySize:256/32});r.AES=v._createHelper(T)}(),d.AES})},wbyO:function(c,_,s){(function(d,r){c.exports=_=r(s("Ib8C"))})(this,function(d){return function(){var r=d,x=r.lib,v=x.WordArray,h=r.enc,i=h.Base64url={stringify:function(e,a=!0){var n=e.words,t=e.sigBytes,u=a?this._safe_map:this._map;e.clamp();for(var l=[],f=0;f>>2]>>>24-f%4*8&255,E=n[f+1>>>2]>>>24-(f+1)%4*8&255,T=n[f+2>>>2]>>>24-(f+2)%4*8&255,A=y<<16|E<<8|T,w=0;w<4&&f+w*.75>>6*(3-w)&63));var O=u.charAt(64);if(O)for(;l.length%4;)l.push(O);return l.join("")},parse:function(e,a=!0){var n=e.length,t=a?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var l=0;l>>6-l%4*2,E=f|y;t[u>>>2]|=E<<24-u%4*8,u++}return v.create(t,u)}}(),d.enc.Base64url})},x6Kt:function(c,_,s){var d=s("y+Vt"),r=s("VpOo"),x=s("nPnh"),v=x.subPixelOptimizeRect,h={},i=d.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(o,e){var a,n,t,u;this.subPixelOptimize?(v(h,e,this.style),a=h.x,n=h.y,t=h.width,u=h.height,h.r=e.r,e=h):(a=e.x,n=e.y,t=e.width,u=e.height),e.r?r.buildPath(o,e):o.rect(a,n,t,u),o.closePath();return}});c.exports=i},"y+Vt":function(c,_,s){var d=s("Gev7"),r=s("bYtY"),x=s("IMiH"),v=s("2DNl"),h=s("3C/r"),i=h.prototype.getCanvasPattern,o=Math.abs,e=new x(!0);function a(t){d.call(this,t),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,u){var l=this.style,f=this.path||e,y=l.hasStroke(),E=l.hasFill(),T=l.fill,A=l.stroke,w=E&&!!T.colorStops,O=y&&!!A.colorStops,g=E&&!!T.image,S=y&&!!A.image;if(l.bind(t,this,u),this.setTransform(t),this.__dirty){var m;w&&(m=m||this.getBoundingRect(),this._fillGradient=l.getGradient(t,T,m)),O&&(m=m||this.getBoundingRect(),this._strokeGradient=l.getGradient(t,A,m))}w?t.fillStyle=this._fillGradient:g&&(t.fillStyle=i.call(T,t)),O?t.strokeStyle=this._strokeGradient:S&&(t.strokeStyle=i.call(A,t));var N=l.lineDash,I=l.lineDashOffset,b=!!t.setLineDash,p=this.getGlobalScale();if(f.setScale(p[0],p[1],this.segmentIgnoreThreshold),this.__dirtyPath||N&&!b&&y?(f.beginPath(t),N&&!b&&(f.setLineDash(N),f.setLineDashOffset(I)),this.buildPath(f,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),E)if(l.fillOpacity!=null){var C=t.globalAlpha;t.globalAlpha=l.fillOpacity*l.opacity,f.fill(t),t.globalAlpha=C}else f.fill(t);if(N&&b&&(t.setLineDash(N),t.lineDashOffset=I),y)if(l.strokeOpacity!=null){var C=t.globalAlpha;t.globalAlpha=l.strokeOpacity*l.opacity,f.stroke(t),t.globalAlpha=C}else f.stroke(t);N&&b&&t.setLineDash([]),l.text!=null&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,u,l){},createPathProxy:function(){this.path=new x},getBoundingRect:function(){var t=this._rect,u=this.style,l=!t;if(l){var f=this.path;f||(f=this.path=new x),this.__dirtyPath&&(f.beginPath(),this.buildPath(f,this.shape,!1)),t=f.getBoundingRect()}if(this._rect=t,u.hasStroke()){var y=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||l){y.copy(t);var E=u.lineWidth,T=u.strokeNoScale?this.getLineScale():1;u.hasFill()||(E=Math.max(E,this.strokeContainThreshold||4)),T>1e-10&&(y.width+=E/T,y.height+=E/T,y.x-=E/T/2,y.y-=E/T/2)}return y}return t},contain:function(t,u){var l=this.transformCoordToLocal(t,u),f=this.getBoundingRect(),y=this.style;if(t=l[0],u=l[1],f.contain(t,u)){var E=this.path.data;if(y.hasStroke()){var T=y.lineWidth,A=y.strokeNoScale?this.getLineScale():1;if(A>1e-10&&(y.hasFill()||(T=Math.max(T,this.strokeContainThreshold)),v.containStroke(E,T/A,t,u)))return!0}if(y.hasFill())return v.contain(E,t,u)}return!1},dirty:function(t){t==null&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,u){t==="shape"?(this.setShape(u),this.__dirtyPath=!0,this._rect=null):d.prototype.attrKV.call(this,t,u)},setShape:function(t,u){var l=this.shape;if(l){if(r.isObject(t))for(var f in t)t.hasOwnProperty(f)&&(l[f]=t[f]);else l[t]=u;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&o(t[0]-1)>1e-10&&o(t[3]-1)>1e-10?Math.sqrt(o(t[0]*t[3]-t[2]*t[1])):1}},a.extend=function(t){var u=function(f){a.call(this,f),t.style&&this.style.extendFrom(t.style,!1);var y=t.shape;if(y){this.shape=this.shape||{};var E=this.shape;for(var T in y)!E.hasOwnProperty(T)&&y.hasOwnProperty(T)&&(E[T]=y[T])}t.init&&t.init.call(this,f)};r.inherits(u,a);for(var l in t)l!=="style"&&l!=="shape"&&(u.prototype[l]=t[l]);return u},r.inherits(a,d);var n=a;c.exports=n},"y0+3":function(c,_,s){"use strict";s.d(_,"a",function(){return t}),s.d(_,"b",function(){return l});var d=/margin|padding|width|height|max|min|offset/,r={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function v(f){return f.nodeType===1?f.ownerDocument.defaultView.getComputedStyle(f,null):{}}function h(f,y,E){if(y=y.toLowerCase(),E==="auto"){if(y==="height")return f.offsetHeight;if(y==="width")return f.offsetWidth}return y in r||(r[y]=d.test(y)),r[y]?parseFloat(E)||0:E}function i(f,y){var E=arguments.length,T=v(f);return y=x[y]?"cssFloat"in f.style?"cssFloat":"styleFloat":y,E===1?T:h(f,y,T[y]||f.style[y])}function o(f,y,E){var T=arguments.length;if(y=x[y]?"cssFloat"in f.style?"cssFloat":"styleFloat":y,T===3)return typeof E=="number"&&d.test(y)&&(E="".concat(E,"px")),f.style[y]=E,E;for(var A in y)y.hasOwnProperty(A)&&o(f,A,y[A]);return v(f)}function e(f){return f===document.body?document.documentElement.clientWidth:f.offsetWidth}function a(f){return f===document.body?window.innerHeight||document.documentElement.clientHeight:f.offsetHeight}function n(){var f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),y=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:f,height:y}}function t(){var f=document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight;return{width:f,height:y}}function u(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function l(f){var y=f.getBoundingClientRect(),E=document.documentElement;return{left:y.left+(window.pageXOffset||E.scrollLeft)-(E.clientLeft||document.body.clientLeft||0),top:y.top+(window.pageYOffset||E.scrollTop)-(E.clientTop||document.body.clientTop||0)}}},y23F:function(c,_){function s(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}s.prototype={constructor:s,_dragStart:function(x){for(var v=x.target;v&&!v.draggable;)v=v.parent;v&&(this._draggingTarget=v,v.dragging=!0,this._x=x.offsetX,this._y=x.offsetY,this.dispatchToElement(d(v,x),"dragstart",x.event))},_drag:function(x){var v=this._draggingTarget;if(v){var h=x.offsetX,i=x.offsetY,o=h-this._x,e=i-this._y;this._x=h,this._y=i,v.drift(o,e,x),this.dispatchToElement(d(v,x),"drag",x.event);var a=this.findHover(h,i,v).target,n=this._dropTarget;this._dropTarget=a,v!==a&&(n&&a!==n&&this.dispatchToElement(d(n,x),"dragleave",x.event),a&&a!==n&&this.dispatchToElement(d(a,x),"dragenter",x.event))}},_dragEnd:function(x){var v=this._draggingTarget;v&&(v.dragging=!1),this.dispatchToElement(d(v,x),"dragend",x.event),this._dropTarget&&this.dispatchToElement(d(this._dropTarget,x),"drop",x.event),this._draggingTarget=null,this._dropTarget=null}};function d(x,v){return{target:x,topTarget:v&&v.topTarget}}var r=s;c.exports=r},yilW:function(c,_,s){c.exports=s.p+"static/learn.e7098108.svg"},yslc:function(c,_){c.exports="data:image/png;base64,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"},yxFR:function(c,_,s){var d=s("y+Vt"),r=s("nPnh"),x=r.subPixelOptimizeLine,v={},h=d.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(i,o){var e,a,n,t;this.subPixelOptimize?(x(v,o,this.style),e=v.x1,a=v.y1,n=v.x2,t=v.y2):(e=o.x1,a=o.y1,n=o.x2,t=o.y2);var u=o.percent;if(u===0)return;i.moveTo(e,a),u<1&&(n=e*(1-u)+n*u,t=a*(1-u)+t*u),i.lineTo(n,t)},pointAt:function(i){var o=this.shape;return[o.x1*(1-i)+o.x2*i,o.y1*(1-i)+o.y2*i]}});c.exports=h},zarK:function(c,_,s){var d=s("YH21"),r=d.addEventListener,x=d.removeEventListener,v=d.normalizeEvent,h=d.getNativeEvent,i=s("bYtY"),o=s("H6uX"),e=s("ItGF"),a=300,n=e.domSupported,t=function(){var D=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],K=["touchstart","touchend","touchmove"],B={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},M=i.map(D,function(j){var W=j.replace("mouse","pointer");return B.hasOwnProperty(W)?W:j});return{mouse:D,touch:K,pointer:M}}(),u={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function l(D){return D==="mousewheel"&&e.browser.firefox?"DOMMouseScroll":D}function f(D){var K=D.pointerType;return K==="pen"||K==="touch"}function y(D){D.touching=!0,D.touchTimer!=null&&(clearTimeout(D.touchTimer),D.touchTimer=null),D.touchTimer=setTimeout(function(){D.touching=!1,D.touchTimer=null},700)}function E(D){D&&(D.zrByTouch=!0)}function T(D,K){return v(D.dom,new w(D,K),!0)}function A(D,K){for(var B=K,M=!1;B&&B.nodeType!==9&&!(M=B.domBelongToZr||B!==K&&B===D.painterRoot);)B=B.parentNode;return M}function w(D,K){this.type=K.type,this.target=this.currentTarget=D.dom,this.pointerType=K.pointerType,this.clientX=K.clientX,this.clientY=K.clientY}var O=w.prototype;O.stopPropagation=O.stopImmediatePropagation=O.preventDefault=i.noop;var g={mousedown:function(D){D=v(this.dom,D),this._mayPointerCapture=[D.zrX,D.zrY],this.trigger("mousedown",D)},mousemove:function(D){D=v(this.dom,D);var K=this._mayPointerCapture;K&&(D.zrX!==K[0]||D.zrY!==K[1])&&p(this,!0),this.trigger("mousemove",D)},mouseup:function(D){D=v(this.dom,D),p(this,!1),this.trigger("mouseup",D)},mouseout:function(D){D=v(this.dom,D),this._pointerCapturing&&(D.zrEventControl="no_globalout");var K=D.toElement||D.relatedTarget;D.zrIsToLocalDOM=A(this,K),this.trigger("mouseout",D)},touchstart:function(D){D=v(this.dom,D),E(D),this._lastTouchMoment=new Date,this.handler.processGesture(D,"start"),g.mousemove.call(this,D),g.mousedown.call(this,D)},touchmove:function(D){D=v(this.dom,D),E(D),this.handler.processGesture(D,"change"),g.mousemove.call(this,D)},touchend:function(D){D=v(this.dom,D),E(D),this.handler.processGesture(D,"end"),g.mouseup.call(this,D),+new Date-this._lastTouchMoment"},series:[{type:"wordCloud",sizeRange:[10,30],rotationRange:[-90,90],rotationStep:45,gridSize:2,shape:"pentagon",maskImage:ge,textStyle:{normal:{color:function(){return"rgb("+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+")"}}},left:"center",top:"center",right:null,bottom:null,width:"100%",height:"100%",data:Ce}]};return Ae},re=(p=ee.rightData)!==null&&p!==void 0&&p.complete_count?Number((C=ee.rightData)===null||C===void 0?void 0:C.complete_count)/Number((F=ee.rightData)===null||F===void 0?void 0:F.challenge_count)*100:0;return ee.rightData?e.a.createElement("section",{className:u.a.rightWrap},!((z=ee.detail)!==null&&z!==void 0&&z.is_jupyter)&&((H=ee.detail)===null||H===void 0||((D=H.task_operation)===null||D===void 0)?void 0:D[2])&&(se==null||((K=se.userInfo)===null||K===void 0)?void 0:K.login)&&!!((B=ee.rightData)!==null&&B!==void 0&&B.complete_count)&&((M=ee.rightData)===null||M===void 0?void 0:M.complete_count)>0&&e.a.createElement("div",{className:u.a.learnWrap},e.a.createElement("div",{className:u.a.learnTopWrap},e.a.createElement("span",null,e.a.createElement("img",{className:u.a.titleImg,src:f.a,alt:""}),"\u5B66\u4E60\u8FDB\u5EA6"),e.a.createElement("span",null,e.a.createElement("span",{className:"".concat(u.a.color888," font14")},"\u5DF2\u5B8C\u6210 ",((j=ee.rightData)===null||j===void 0?void 0:j.complete_count)||0," \u5173 / \u5171",((W=ee.rightData)===null||W===void 0?void 0:W.challenge_count)||0," \u5173"))),e.a.createElement(v.a,{percent:re,showInfo:!1,status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})),!!((X=ee.rightData)!==null&&X!==void 0&&(P=X.paths)!==null&&P!==void 0&&P.length)&&e.a.createElement("div",{className:u.a.courseWrap},e.a.createElement("p",{className:"mb20 font16"},e.a.createElement("img",{className:u.a.titleImg,src:E.a,alt:""}),"\u6240\u5C5E\u8BFE\u7A0B"),e.a.createElement("div",null,(k=ee.rightData)===null||k===void 0?void 0:k.paths.map(function($,ce){return ce>2?null:e.a.createElement("div",{className:u.a.pathWrap,key:$.id},e.a.createElement("a",{href:"/paths/".concat($.id),target:"_blank"},e.a.createElement("img",{alt:"\u5B9E\u8BAD",src:"".concat(n.a.IMG_SERVER,"/").concat($.image_url),className:u.a.pathImg})),e.a.createElement("div",{className:u.a.pathContentWrap},e.a.createElement("a",{href:"/paths/".concat($.id),target:"_blank",className:u.a.pathContentName},$.name),e.a.createElement("p",{className:u.a.pathContent},e.a.createElement(r.a,{placement:"bottom",title:"\u7AE0\u8282"},e.a.createElement("span",{className:u.a.pathContentCount},e.a.createElement("i",{className:"iconfont icon-shixun mr3"}),$.stages_count)),e.a.createElement(r.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},e.a.createElement("span",{className:u.a.pathContentCount},e.a.createElement("i",{className:"iconfont icon-chengyuan mr3"}),$.members_count)))))}))),e.a.createElement("div",null),!!((Y=ee.rightData)!==null&&Y!==void 0&&(J=Y.recommands)!==null&&J!==void 0&&J.length)&&se.userInfo.main_site&&e.a.createElement("div",{className:u.a.recommandTrainingWrap},e.a.createElement("p",{className:"mb20 font16"},e.a.createElement("img",{className:u.a.titleImg,src:A.a,alt:""}),"\u63A8\u8350\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement("div",null,(te=ee.rightData)===null||te===void 0?void 0:te.recommands.map(function($,ce){return ce>2?null:e.a.createElement("div",{className:u.a.pathContentItem,key:ce},e.a.createElement("a",{href:"/shixuns/".concat($.identifier,"/challenges"),target:"_blank"},e.a.createElement("img",{src:"".concat(n.a.IMG_SERVER,"/").concat($.pic),className:u.a.pathImg})),e.a.createElement("div",{className:u.a.pathContentWrap,style:{marginBottom:-4}},e.a.createElement(r.a,{placement:"bottom",title:$.name},e.a.createElement("a",{href:"/shixuns/".concat($.identifier,"/challenges"),target:"_blank",className:u.a.pathContentName},$.name)),e.a.createElement("p",{className:"".concat(u.a.pathContent," ").concat(u.a.recommandContent)},e.a.createElement("span",null,$.stu_num," \u4EBA\u5B66\u4E60"),e.a.createElement("span",{className:u.a.recommandLevel},$.level))))}))),((ne=ee.rightData)===null||ne===void 0||((q=ne.tags)===null||q===void 0)?void 0:q.length)>0&&e.a.createElement("div",{className:u.a.skillWrap},e.a.createElement("p",{className:"".concat(u.a.skillTopWrap," font16 mb20")},e.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",e.a.createElement("span",{className:"ml5 c-grey-c"},(ue=ee.rightData)===null||ue===void 0||((le=ue.tags)===null||le===void 0)?void 0:le.length))),e.a.createElement(O.a,{option:U(),style:{height:370},opts:{renderer:"svg"}}))):null};_.a=Object(a.a)(function(I){var b=I.shixunsDetail,p=I.user,C=I.loading,F=I.globalSetting;return{shixunsDetail:b,user:p,globalSetting:F,loading:C.models.index}})(N)}}]); diff --git a/p__Shixuns__Edit.e6d4d307.async.js b/p__Shixuns__Edit.d65a028a.async.js similarity index 94% rename from p__Shixuns__Edit.e6d4d307.async.js rename to p__Shixuns__Edit.d65a028a.async.js index 552bf253e0..2f025adb60 100644 --- a/p__Shixuns__Edit.e6d4d307.async.js +++ b/p__Shixuns__Edit.d65a028a.async.js @@ -1,6 +1,6 @@ (window.webpackJsonp=window.webpackJsonp||[]).push([[240,3,5,6,7,8,9,10,13,20,247],{"+GGh":function(k,z){k.exports="data:image/png;base64,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"},"+NIl":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"use strict";P.defineMode("stex",function(g,T){"use strict";function b(i,n){i.cmdState.push(n)}function y(i){return i.cmdState.length>0?i.cmdState[i.cmdState.length-1]:null}function x(i){var n=i.cmdState.pop();n&&n.closeBracket()}function O(i){for(var n=i.cmdState,l=n.length-1;l>=0;l--){var h=n[l];if(h.name=="DEFAULT")continue;return h}return{styleIdentifier:function(){return null}}}function m(i,n,l){return function(){this.name=i,this.bracketNo=0,this.style=n,this.styles=l,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var e={};e.importmodule=m("importmodule","tag",["string","builtin"]),e.documentclass=m("documentclass","tag",["","atom"]),e.usepackage=m("usepackage","tag",["atom"]),e.begin=m("begin","tag",["atom"]),e.end=m("end","tag",["atom"]),e.label=m("label","tag",["atom"]),e.ref=m("ref","tag",["atom"]),e.eqref=m("eqref","tag",["atom"]),e.cite=m("cite","tag",["atom"]),e.bibitem=m("bibitem","tag",["atom"]),e.Bibitem=m("Bibitem","tag",["atom"]),e.RBibitem=m("RBibitem","tag",["atom"]),e.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function f(i,n){i.f=n}function a(i,n){var l;if(i.match(/^\\[a-zA-Z@]+/)){var h=i.current().slice(1);return l=e.hasOwnProperty(h)?e[h]:e.DEFAULT,l=new l,b(n,l),f(n,r),l.style}if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/\\]/))return"tag";if(i.match("\\["))return f(n,function(s,c){return u(s,c,"\\]")}),"keyword";if(i.match("\\("))return f(n,function(s,c){return u(s,c,"\\)")}),"keyword";if(i.match("$$"))return f(n,function(s,c){return u(s,c,"$$")}),"keyword";if(i.match("$"))return f(n,function(s,c){return u(s,c,"$")}),"keyword";var d=i.next();if(d=="%")return i.skipToEnd(),"comment";if(d=="}"||d=="]"){if(l=y(n),l)l.closeBracket(d),f(n,r);else return"error";return"bracket"}else return d=="{"||d=="["?(l=e.DEFAULT,l=new l,b(n,l),"bracket"):/\d/.test(d)?(i.eatWhile(/[\w.%]/),"atom"):(i.eatWhile(/[\w\-_]/),l=O(n),l.name=="begin"&&(l.argument=i.current()),l.styleIdentifier())}function u(i,n,l){if(i.eatSpace())return null;if(l&&i.match(l))return f(n,a),"keyword";if(i.match(/^\\[a-zA-Z@]+/))return"tag";if(i.match(/^[a-zA-Z]+/))return"variable-2";if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/]/))return"tag";if(i.match(/^[\^_&]/))return"tag";if(i.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(i.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var h=i.next();return h=="{"||h=="}"||h=="["||h=="]"||h=="("||h==")"?"bracket":h=="%"?(i.skipToEnd(),"comment"):"error"}function r(i,n){var l=i.peek(),h;return l=="{"||l=="["?(h=y(n),h.openBracket(l),i.eat(l),f(n,a),"bracket"):/[ \t\r]/.test(l)?(i.eat(l),null):(f(n,a),x(n),a(i,n))}return{startState:function(){var i=T.inMathMode?function(n,l){return u(n,l)}:a;return{cmdState:[],f:i}},copyState:function(i){return{cmdState:i.cmdState.slice(),f:i.f}},token:function(i,n){return n.f(i,n)},blankLine:function(i){i.f=a,i.cmdState.length=0},lineComment:"%"}}),P.defineMIME("text/x-stex","stex"),P.defineMIME("text/x-latex","stex")})},"+QRC":function(k,z,o){"use strict";var P=o("E9nw"),g={"text/plain":"Text","text/html":"Url",default:"Text"},T="Copy to clipboard: #{key}, Enter";function b(x){var O=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return x.replace(/#{\s*key\s*}/g,O)}function y(x,O){var m,e,f,a,u,r,i=!1;O||(O={}),m=O.debug||!1;try{f=P(),a=document.createRange(),u=document.getSelection(),r=document.createElement("span"),r.textContent=x,r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(l){if(l.stopPropagation(),O.format)if(l.preventDefault(),typeof l.clipboardData=="undefined"){m&&console.warn("unable to use e.clipboardData"),m&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=g[O.format]||g.default;window.clipboardData.setData(h,x)}else l.clipboardData.clearData(),l.clipboardData.setData(O.format,x);O.onCopy&&(l.preventDefault(),O.onCopy(l.clipboardData))}),document.body.appendChild(r),a.selectNodeContents(r),u.addRange(a);var n=document.execCommand("copy");if(!n)throw new Error("copy command was unsuccessful");i=!0}catch(l){m&&console.error("unable to copy using execCommand: ",l),m&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(O.format||"text",x),O.onCopy&&O.onCopy(window.clipboardData),i=!0}catch(h){m&&console.error("unable to copy using clipboardData: ",h),m&&console.error("falling back to prompt"),e=b("message"in O?O.message:T),window.prompt(e,x)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(a):u.removeAllRanges()),r&&document.body.removeChild(r),f()}return i}k.exports=y},"+Xk9":function(k,z,o){k.exports={btn:"btn___2veY9",s1:"s1___ZVDC_",s2:"s2___2Da-A"}},"+ua5":function(k,z,o){},"/GNS":function(k,z,o){k.exports=o.p+"static/search1.c4136dd4.png"},"/cxE":function(k,z,o){"use strict";o.d(z,"f",function(){return T}),o.d(z,"g",function(){return b}),o.d(z,"h",function(){return y}),o.d(z,"e",function(){return O}),o.d(z,"b",function(){return m}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return a});class P{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(u){setTimeout(()=>{throw u.stack?new Error(u.message+` -`+u.stack):u},0)}}emit(u){this.listeners.forEach(r=>{r(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}const g=new P;function T(u){O(u)||g.onUnexpectedError(u);return}function b(u){O(u)||g.onUnexpectedExternalError(u);return}function y(u){if(u instanceof Error){let{name:r,message:i}=u;const n=u.stacktrace||u.stack;return{$isError:!0,name:r,message:i,stack:n}}return u}const x="Canceled";function O(u){return u instanceof Error&&u.name===x&&u.message===x}function m(){const u=new Error(x);return u.name=u.message,u}function e(u){return u?new Error(`Illegal argument: ${u}`):new Error("Illegal argument")}function f(u){return u?new Error(`Illegal state: ${u}`):new Error("Illegal state")}class a extends Error{constructor(u){super("NotSupported");u&&(this.message=u)}}},"11/R":function(module,__webpack_exports__,__webpack_require__){"use strict";var antd_es_switch_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("BoS7"),antd_es_switch__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("Sdc0"),antd_es_popover_style__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("Q9mQ"),antd_es_popover__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("diRs"),antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("5Dmo"),antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("3S7+"),antd_es_input_number_style__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("giR+"),antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("fyUT"),antd_es_input_style__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("5NDa"),antd_es_input__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("5rEg"),antd_es_space_style__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("DYRE"),antd_es_space__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("zeV3"),antd_es_date_picker_style__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("iQDF"),antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("+eQT"),antd_es_badge_style__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("Awhp"),antd_es_badge__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("KrTs"),antd_es_auto_complete_style__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("O3gP"),antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("lrIw"),antd_es_radio_style__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("7Kak"),antd_es_radio__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("9yH6"),antd_es_checkbox_style__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("sRBo"),antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("kaz8"),antd_es_button_style__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("+L6B"),antd_es_button__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("2/Rp"),antd_es_menu_style__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("lUTK"),antd_es_menu__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("BvKs"),antd_es_modal_style__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("2qtc"),antd_es_modal__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("kLXV"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("jrin"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("k1fw"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("oBTY"),antd_es_message_style__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("miYZ"),antd_es_message__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("tsqr"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("9og8"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("tJVT"),antd_es_select_style__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("OaEy"),antd_es_select__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("2fM7"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("WmNS"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__),react__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("q1tI"),react__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_38__),umi__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("Ty5D"),umi__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("9kvl"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("1nVM"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_41__),moment__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("wd/R"),moment__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_42__),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("Z0Lh"),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("w5pM"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("wlus"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("y3Kf"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("8Skl"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("RCxd"),_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("ZW9T"),_utils_authority__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("xKgJ"),_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("FrRK"),_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("QNag"),_utils_fetch__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("ErOA"),_components_Permission__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("sLOW"),_utils_env__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("m3rI"),_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("NLgs"),timeFormat="YYYY-MM-DD HH:mm",Option=antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,handleDateString=function(z){if(!z)return z;var o=z.split(":");if(o[1]=="00"||o[1]=="30")return z;var P=parseInt(o[1]);if(P<30||P==60)return[o[0],"30"].join(":");if(P<60){var g=[o[0],"00"].join(":"),T="YYYY-MM-DD HH:mm",b=moment__WEBPACK_IMPORTED_MODULE_42___default()(g,T);return b.add(1,"hours"),b.format(T)}return z},radioStyle={display:"block",height:"30px",lineHeight:"30px"};function Setting(_ref){var _user$userInfo,_user$userInfo$shixun,_shixunsDetail$detail,_shixunsDetail$detail2,_shixunsDetail$detail3,_shixunsDetail$detail4,_shixunsDetail$detail5,_shixunsDetail$settin97,_shixunsDetail$settin98,_shixunsDetail$detail6,_shixunsDetail$detail7,_shixunsDetail$settin150,_shixunsDetail$settin151,_shixunsDetail$settin152,_shixunsDetail$settin153,_shixunsDetail$detail8,user=_ref.user,dispatch=_ref.dispatch,shixunsDetail=_ref.shixunsDetail,practiceSetting=_ref.practiceSetting,shixunId=Object(react__WEBPACK_IMPORTED_MODULE_38__.useRef)(),_useState=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!0),_useState2=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState,2),isShowSetting=_useState2[0],setIsShowSetting=_useState2[1],_useState3=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState4=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState3,2),taskPass=_useState4[0],setTaskPass=_useState4[1],_useState5=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState6=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState5,2),testSetPermission=_useState6[0],setTestSetPermission=_useState6[1],_useState7=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState8=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState7,2),isCopy=_useState8[0],setIsCopy=_useState8[1],_useState9=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState10=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState9,2),openValue=_useState10[0],setOpenValue=_useState10[1],_useState11=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState12=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState11,2),selectDepartmentList=_useState12[0],setSelectDepartmentList=_useState12[1],_useState13=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState14=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState13,2),departmentList=_useState14[0],setDepartmentList=_useState14[1],_useState15=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(""),_useState16=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState15,2),departmentValue=_useState16[0],setDepartmentValue=_useState16[1],_useState17=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState18=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState17,2),isOpenTime=_useState18[0],setIsOpenTime=_useState18[1],_useState19=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState20=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState19,2),openTime=_useState20[0],setOpenTime=_useState20[1],_useState21=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState22=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState21,2),vnc=_useState22[0],setVNC=_useState22[1],_useState23=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState24=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState23,2),windows_vnc=_useState24[0],setWindowVNC=_useState24[1],_useState25=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState26=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState25,2),virtual_machine=_useState26[0],setVirtualMachine=_useState26[1],_useState27=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState28=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState27,2),linux_vnc=_useState28[0],setLinuxVNC=_useState28[1],_useState29=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(""),_useState30=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState29,2),windows_start_template=_useState30[0],setWindowVNCTemplate=_useState30[1],_useState31=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState32=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState31,2),websshShow=_useState32[0],setWebsshShow=_useState32[1],_useState33=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState34=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState33,2),sshRadioValue=_useState34[0],setSshRadioValue=_useState34[1],_useState35=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState36=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState35,2),multiWebssh=_useState36[0],setMultiWebssh=_useState36[1],_useState37=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState38=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState37,2),hideCode=_useState38[0],setHideCode=_useState38[1],_useState39=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState40=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState39,2),codeEditPermission=_useState40[0],setCodeEditPermission=_useState40[1],_useState41=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState42=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState41,2),codeHidden=_useState42[0],setCodeHidden=_useState42[1],_useState43=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState44=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState43,2),forbidCopy=_useState44[0],setForbidCopy=_useState44[1],_useState45=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState46=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState45,2),display_git_address=_useState46[0],set_display_git_address=_useState46[1],_useState47=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState48=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState47,2),advancedsettingshow=_useState48[0],setAdvancedSettingShow=_useState48[1],_useState49=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)("vnc"),_useState50=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState49,2),windows_connection_mode=_useState50[0],setWindowsConnectionMode=_useState50[1],_useState51=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState52=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState51,2),evaluateScript=_useState52[0],setEvaluateScript=_useState52[1],_useState53=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState54=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState53,2),serviceConfigList=_useState54[0],setServiceConfigList=_useState54[1],_useState55=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState56=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState55,2),evaluationScript=_useState56[0],setevaluationScript=_useState56[1],_useState57=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState58=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState57,2),standardScriptList=_useState58[0],setStandardScripts=_useState58[1],_useState59=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)("1"),_useState60=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState59,2),MenuSelectKey=_useState60[0],setMenuSelectKey=_useState60[1],_useState61=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState62=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState61,2),disableDiscuss=_useState62[0],setDisableDiscuss=_useState62[1],_useState63=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState64=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState63,2),Remote=_useState64[0],setRemote=_useState64[1],_useState65=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState66=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState65,2),createTitle=_useState66[0],setCreateTitle=_useState66[1],_useState67=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState68=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState67,2),isupdate=_useState68[0],setIsupdate=_useState68[1],_useState69=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(3),_useState70=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState69,2),terminal_count=_useState70[0],setterminal_count=_useState70[1],_useState71=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState72=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState71,2),port=_useState72[0],setport=_useState72[1],_useState73=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState74=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState73,2),webssh_cloud=_useState74[0],setWebsshCloud=_useState74[1],_useState75=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(0),_useState76=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState75,2),survival_time=_useState76[0],setSurvivalTime=_useState76[1],_useState77=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([{template_name:"",template_identity:""}]),_useState78=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState77,2),shixun_virtual_templates=_useState78[0],setshixun_virtual_templates=_useState78[1],params=Object(umi__WEBPACK_IMPORTED_MODULE_39__.i)(),diffObj={forbid_copy:"forbidCopy",hide_code:"hideCode",multi_webssh:"multiWebssh",task_pass:"taskPass",test_set_permission:"testSetPermission",code_edit_permission:"codeEditPermission",can_copy:"isCopy",use_scope:"openValue",windows_vnc:"windows_vnc",windows_start_template:"windows_start_template",webssh_cloud:"webssh_cloud",opening_time:"openTime",webssh:"sshRadioValue",display_git_address:"display_git_address",show_code_dir:"codeHidden",choice_standard_scripts:"evaluationScript",evaluate_script:"evaluateScript"},_useState79=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState80=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState79,2),isRadiuvalue=_useState80[0],setIsRadiuValue=_useState80[1],editable=(_user$userInfo=user.userInfo)===null||_user$userInfo===void 0||((_user$userInfo$shixun=_user$userInfo.shixun)===null||_user$userInfo$shixun===void 0)?void 0:_user$userInfo$shixun.editable,handleGetDepartments=function(){var k=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(o){var P;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,dispatch({type:"shixunsDetail/getDepartments",payload:{q:o}});case 2:P=T.sent,P&&setDepartmentList(P.shools_name||[]);case 4:case"end":return T.stop()}},z)}));return function(o){return k.apply(this,arguments)}}();Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var k,z;(k=shixunsDetail.setting)!==null&&k!==void 0&&(z=k.shixun)!==null&&z!==void 0&&z.main_type&&handleInitState()},[shixunsDetail.setting]),Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var k,z;dispatch({type:"shixunsDetail/getSettingsData",payload:params}),shixunId.current=(k=location.pathname)===null||k===void 0||((z=k.split("/"))===null||z===void 0)?void 0:z[2]},[]);var handleSelectDepartment=function(z){if(selectDepartmentList.includes(z)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}setDepartmentValue(null),setSelectDepartmentList([].concat(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(selectDepartmentList),[z]))};function getRequiredStatus(){return _getRequiredStatus.apply(this,arguments)}function _getRequiredStatus(){return _getRequiredStatus=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function k(){var z;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(_utils_fetch__WEBPACK_IMPORTED_MODULE_53__.a)("/api/shixuns/".concat(shixunId.current,"/required_status"),{method:"get",params:{}});case 2:z=P.sent,z&&setCreateTitle(z==null?void 0:z.data);case 4:case"end":return P.stop()}},k)})),_getRequiredStatus.apply(this,arguments)}var handleChangeSeviceConfig=function(z,o,P){var g=serviceConfigList.map(function(T,b){return b===P?Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)({},T),{},Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__.a)({},o,z)):T});setServiceConfigList(g)},handleInitState=function(){var z,o,P,g,T,b,y,x,O,m,e,f,a,u,r,i,n,l,h,d,s,c,w,E,v,R,M,C,S,_,A,U,L,N,V,H,D,W,F,I,K,ee,he,de,Se,Te,ce,be,Ee,ue,le,$,me,re,ae,Oe,se,te,Q,J,ve,_e,Ae,Qe,tt,dt,mt,vt=(shixunsDetail==null||((z=shixunsDetail.setting)===null||z===void 0)?void 0:z.shixun)||{},Et=vt.choice_main_type,Ye=vt.main_type,Ue=vt.small_type,ft=vt.choice_small_type,jt=vt.is_secret_repository,yt=vt.standard_scripts,Pt=vt.evaluate_script,it=vt.shixun_service_configs;if(setEvaluateScript(Pt),setServiceConfigList(it),setStandardScripts(yt||[]),setWindowVNCTemplate((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.windows_start_template),setWebsshCloud((g=shixunsDetail.setting)===null||g===void 0||((T=g.shixun)===null||T===void 0)?void 0:T.webssh_cloud),setWindowVNC((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.windows_vnc),setVirtualMachine((x=shixunsDetail.setting)===null||x===void 0||((O=x.shixun)===null||O===void 0)?void 0:O.virtual_machine),setLinuxVNC((m=shixunsDetail.setting)===null||m===void 0||((e=m.shixun)===null||e===void 0)?void 0:e.linux_vnc),setWindowsConnectionMode(((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.windows_connection_mode)||"vnc"),setVNC((u=shixunsDetail.setting)===null||u===void 0||((r=u.shixun)===null||r===void 0)?void 0:r.vnc),setWebsshShow(!!((i=shixunsDetail.setting)!==null&&i!==void 0&&(n=i.shixun)!==null&&n!==void 0&&n.webssh)),setSshRadioValue((l=shixunsDetail.setting)===null||l===void 0||((h=l.shixun)===null||h===void 0)?void 0:h.webssh),setMultiWebssh((d=shixunsDetail.setting)===null||d===void 0||((s=d.shixun)===null||s===void 0)?void 0:s.multi_webssh),setHideCode((c=shixunsDetail.setting)===null||c===void 0||((w=c.shixun)===null||w===void 0)?void 0:w.hide_code),setCodeEditPermission((E=shixunsDetail.setting)===null||E===void 0||((v=E.shixun)===null||v===void 0)?void 0:v.code_edit_permission),setCodeHidden((R=shixunsDetail.setting)===null||R===void 0||((M=R.shixun)===null||M===void 0)?void 0:M.show_code_dir),setForbidCopy((C=shixunsDetail.setting)===null||C===void 0||((S=C.shixun)===null||S===void 0)?void 0:S.forbid_copy),setTaskPass((_=shixunsDetail.setting)===null||_===void 0||((A=_.shixun)===null||A===void 0)?void 0:A.task_pass),setTestSetPermission((U=shixunsDetail.setting)===null||U===void 0||((L=U.shixun)===null||L===void 0)?void 0:L.test_set_permission),set_display_git_address((N=shixunsDetail.setting.shixun)===null||N===void 0?void 0:N.display_git_address),setIsCopy((V=shixunsDetail.setting)===null||V===void 0||((H=V.shixun)===null||H===void 0)?void 0:H.can_copy),setOpenValue((D=shixunsDetail.setting)===null||D===void 0||((W=D.shixun)===null||W===void 0)?void 0:W.use_scope),setIsOpenTime(!!((F=shixunsDetail.setting)!==null&&F!==void 0&&(I=F.shixun)!==null&&I!==void 0&&I.opening_time)),setOpenTime((K=shixunsDetail.setting)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.opening_time),setSelectDepartmentList((he=shixunsDetail.setting)===null||he===void 0||((de=he.shixun)===null||de===void 0)?void 0:de.scope_partment),setevaluationScript((Se=shixunsDetail.setting)===null||Se===void 0||((Te=Se.shixun)===null||Te===void 0)?void 0:Te.choice_standard_scripts),setDisableDiscuss((ce=shixunsDetail.setting)===null||ce===void 0||((be=ce.shixun)===null||be===void 0)?void 0:be.is_disable_discuss),setterminal_count((Ee=shixunsDetail.setting)===null||Ee===void 0||((ue=Ee.shixun)===null||ue===void 0)?void 0:ue.terminal_count),setSurvivalTime((le=shixunsDetail.setting)===null||le===void 0||(($=le.shixun)===null||$===void 0)?void 0:$.survival_time),(shixunsDetail==null||((me=shixunsDetail.setting)===null||me===void 0||((re=me.shixun)===null||re===void 0||((ae=re.shixun_virtual_templates)===null||ae===void 0)))?void 0:ae.length)>0){var He,Ge;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((He=shixunsDetail.setting)===null||He===void 0||((Ge=He.shixun)===null||Ge===void 0))?void 0:Ge.shixun_virtual_templates))}setport((Oe=shixunsDetail.setting)===null||Oe===void 0||((se=Oe.shixun)===null||se===void 0)?void 0:se.port_mapping),(te=shixunsDetail.setting)!==null&&te!==void 0&&(Q=te.shixun)!==null&&Q!==void 0&&Q.windows_vnc||(J=shixunsDetail.setting)!==null&&J!==void 0&&(ve=J.shixun)!==null&&ve!==void 0&&ve.linux_vnc||(_e=shixunsDetail.setting)!==null&&_e!==void 0&&(Ae=_e.shixun)!==null&&Ae!==void 0&&Ae.vnc||(Qe=shixunsDetail.setting)!==null&&Qe!==void 0&&(tt=Qe.shixun)!==null&&tt!==void 0&&tt.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(dt=shixunsDetail.setting)!==null&&dt!==void 0&&(mt=dt.shixun)!==null&&mt!==void 0&&mt.webssh&&(setRemote(!0),setIsRadiuValue(3))};Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var _Object$keys$filter,_shixunsDetail$settin73,_shixunsDetail$settin74,_shixunsDetail$settin75,_shixunsDetail$settin76,_shixunsDetail$settin77,_shixunsDetail$settin78,_shixunsDetail$settin79,_shixunsDetail$settin82,_shixunsDetail$settin83,_shixunsDetail$settin84,confirmLeave=!1;(_Object$keys$filter=Object.keys(diffObj).filter(function(item){var _shixunsDetail$settin72;return((_shixunsDetail$settin72=shixunsDetail.setting)===null||_shixunsDetail$settin72===void 0?void 0:_shixunsDetail$settin72.shixun[item])!=eval(diffObj[item])}))!==null&&_Object$keys$filter!==void 0&&_Object$keys$filter.length&&(confirmLeave=!0),isOpenTime!=!!((_shixunsDetail$settin73=shixunsDetail.setting)!==null&&_shixunsDetail$settin73!==void 0&&(_shixunsDetail$settin74=_shixunsDetail$settin73.shixun)!==null&&_shixunsDetail$settin74!==void 0&&_shixunsDetail$settin74.opening_time)&&(confirmLeave=!0),disableDiscuss!=!!((_shixunsDetail$settin75=shixunsDetail.setting)!==null&&_shixunsDetail$settin75!==void 0&&(_shixunsDetail$settin76=_shixunsDetail$settin75.shixun)!==null&&_shixunsDetail$settin76!==void 0&&_shixunsDetail$settin76.is_disable_discuss)&&(confirmLeave=!0),selectDepartmentList.length!=((_shixunsDetail$settin77=shixunsDetail.setting)===null||_shixunsDetail$settin77===void 0||((_shixunsDetail$settin78=_shixunsDetail$settin77.shixun)===null||_shixunsDetail$settin78===void 0||((_shixunsDetail$settin79=_shixunsDetail$settin78.scope_partment)===null||_shixunsDetail$settin79===void 0))?void 0:_shixunsDetail$settin79.length)&&(confirmLeave=!0),selectDepartmentList==null||selectDepartmentList.map(function(k,z){var o,P;k!=((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.scope_partment[z])&&(confirmLeave=!0)}),serviceConfigList.length!=((_shixunsDetail$settin82=shixunsDetail.setting)===null||_shixunsDetail$settin82===void 0||((_shixunsDetail$settin83=_shixunsDetail$settin82.shixun)===null||_shixunsDetail$settin83===void 0||((_shixunsDetail$settin84=_shixunsDetail$settin83.shixun_service_configs)===null||_shixunsDetail$settin84===void 0))?void 0:_shixunsDetail$settin84.length)&&(confirmLeave=!0),serviceConfigList==null||serviceConfigList.map(function(k,z){var o,P,g,T,b,y,x,O,m,e,f,a;(k==null?void 0:k.cpu_limit)!=((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0||((g=P.shixun_service_configs[z])===null||g===void 0))?void 0:g.cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.lower_cpu_limit)!=((T=shixunsDetail.setting)===null||T===void 0||((b=T.shixun)===null||b===void 0||((y=b.shixun_service_configs[z])===null||y===void 0))?void 0:y.lower_cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.memory_limit)!=((x=shixunsDetail.setting)===null||x===void 0||((O=x.shixun)===null||O===void 0||((m=O.shixun_service_configs[z])===null||m===void 0))?void 0:m.memory_limit)&&(confirmLeave=!0),(k==null?void 0:k.request_limit)!=((e=shixunsDetail.setting)===null||e===void 0||((f=e.shixun)===null||f===void 0||((a=f.shixun_service_configs[z])===null||a===void 0))?void 0:a.request_limit)&&(confirmLeave=!0)}),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave}})},[taskPass,testSetPermission,isCopy,openValue,selectDepartmentList,isOpenTime,openTime,isRadiuvalue,sshRadioValue,multiWebssh,hideCode,display_git_address,codeHidden,codeEditPermission,forbidCopy,evaluationScript,evaluateScript,serviceConfigList,disableDiscuss,webssh_cloud]);var handleUseCustomScript=function(){dispatch({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:shixunId.current}}})};function handSubmeit(){return _handSubmeit.apply(this,arguments)}function _handSubmeit(){return _handSubmeit=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function k(){var z,o,P,g;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!(isOpenTime&&!openTime)){b.next=3;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),b.abrupt("return");case 3:if(!(hideCode===1&&Remote===!1)){b.next=6;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u81F3\u5C11\u52FE\u9009\u4E00\u79CD\u7F16\u7A0B\u9875\u9762\uFF01"),b.abrupt("return");case 6:if(!(openValue===1&&!selectDepartmentList.length)){b.next=9;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),b.abrupt("return");case 9:if(o=(z=shixunsDetail.detail)===null||z===void 0?void 0:z.is_jupyter,P=!1,isRadiuvalue==5&&virtual_machine&&(shixun_virtual_templates==null||shixun_virtual_templates.map(function(y){if(!(y!=null&&y.template_name)||!(y!=null&&y.template_identity)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0\u6216\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248\u4E0D\u80FD\u4E3A\u7A7A"),P=!0;return}})),!P){b.next=14;break}return b.abrupt("return");case 14:return b.next=16,dispatch({type:"shixunsDetail/updateSetting",payload:{id:shixunId.current,scope_partment:openValue===0?null:selectDepartmentList,shixun:{show_code_dir:codeHidden,forbid_copy:forbidCopy,hide_code:hideCode,multi_webssh:multiWebssh,task_pass:taskPass,test_set_permission:testSetPermission,display_git_address,vnc,windows_vnc,virtual_machine,linux_vnc,windows_start_template,webssh_cloud,webssh:websshShow?sshRadioValue:0,code_edit_permission:codeEditPermission,can_copy:isCopy,use_scope:openValue,opening_time:openTime,mirror_script_id:o?null:evaluationScript,is_disable_discuss:disableDiscuss,terminal_count,port_mapping:port,survival_time,shixun_virtual_templates,windows_connection_mode:windows_vnc?windows_connection_mode:null},shixun_info:{evaluate_script:o?null:evaluateScript},shixun_service_configs:serviceConfigList.map(function(y){return{mirror_repository_id:y.mirror_repository_id,cpu_limit:y.cpu_limit,lower_cpu_limit:y.lower_cpu_limit,memory_limit:y.memory_limit,request_limit:y.request_limit}})}});case 16:g=b.sent,(g==null?void 0:g.status)===0&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u4FEE\u6539\u6210\u529F"),dispatch({type:"shixunsDetail/getSettingsData",payload:params}),dispatch({type:"shixunsDetail/getShixunsDetail",payload:params}));case 18:case"end":return b.stop()}},k)})),_handSubmeit.apply(this,arguments)}var handleChangeEvaluationScript=function(z){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var o=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function g(){return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,handleGetScriptContent(z);case 2:antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return b.stop()}},g)}));function P(){return o.apply(this,arguments)}return P}()})},handleGetScriptContent=function(){var k=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(o){var P;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,dispatch({type:"shixunsDetail/getScriptContent",payload:{id:shixunId.current,script_id:o}});case 2:P=T.sent,P&&setEvaluateScript(P.content);case 4:case"end":return T.stop()}},z)}));return function(o){return k.apply(this,arguments)}}(),handleDeleteShixun=function(){var k=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(){var o,P,g,T,b,y,x;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(m.t0=m.sent,m.t0){m.next=5;break}m.t0={};case 5:x=m.t0,antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font14 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.modal)},!!((o=x.subjects)!==null&&o!==void 0&&o.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(P=x.subjects)===null||P===void 0||((g=P.splice(0,2))===null||g===void 0)?void 0:g.map(function(e){return"\u300A".concat(e,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},x==null?void 0:x.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),!!((T=x.courses)!==null&&T!==void 0&&T.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(b=x.courses)===null||b===void 0||((y=b.splice(0,2))===null||y===void 0)?void 0:y.map(function(e){return"\u300A".concat(e,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},x==null?void 0:x.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorYellow," mt30")},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:function(){var e=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function a(){var u;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,dispatch({type:"shixunsDetail/deleteShixun",payload:{id:shixunId.current}});case 2:u=i.sent,u.status===1&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.success("\u64CD\u4F5C\u6210\u529F"),umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns"));case 4:case"end":return i.stop()}},a)}));function f(){return e.apply(this,arguments)}return f}()});case 7:case"end":return m.stop()}},z)}));return function(){return k.apply(this,arguments)}}(),handleDeleteElseShixun=function(){if(Object(_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__.b)(dispatch,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return};function showExitmodel(k){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){setMenuSelectKey(k),parseInt(k)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus()),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}})}return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",display:"flex",background:"#fff",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",background:"#0A143D",width:"25%",maxWidth:"440px",padding:"20px 20px",color:"#ffffff"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{padding:"0px 15px",fontSize:"16px"}},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a,{selectedKeys:[MenuSelectKey],theme:"dark",style:{background:"#0A143D",marginTop:"30px",fontSize:"14px"},onClick:function(z){var o;if(practiceSetting!=null&&(o=practiceSetting.sideBar)!==null&&o!==void 0&&o.confirmLeave){showExitmodel(z.key);return}setMenuSelectKey(z.key),parseInt(z.key)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus())}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:1},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:2},"\u5173\u4E8E\u5B9E\u8BAD"))),isShowSetting&&(shixunsDetail==null||((_shixunsDetail$detail=shixunsDetail.detail)===null||_shixunsDetail$detail===void 0)?void 0:_shixunsDetail$detail.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_Permission__WEBPACK_IMPORTED_MODULE_54__.a,null),isShowSetting&&!(shixunsDetail!=null&&(_shixunsDetail$detail2=shixunsDetail.detail)!==null&&_shixunsDetail$detail2!==void 0&&_shixunsDetail$detail2.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{width:"calc(100% - 24%)",overflow:"auto"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px 40px",marginBottom:"70px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{flex:"1"}},"\u5173\u5361\u548C\u6D4B\u8BD5\u96C6"),(shixunsDetail==null||((_shixunsDetail$detail3=shixunsDetail.detail)===null||_shixunsDetail$detail3===void 0)?void 0:_shixunsDetail$detail3.shixun_status)!==2?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteElseShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u8DF3\u5173\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:taskPass,disabled:!editable,onChange:function(z){return setTaskPass(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u5B66\u4E60\u5B9E\u8BAD\u5173\u5361\u4EFB\u52A1\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u6D4B\u8BD5\u96C6\u89E3\u9501\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:testSetPermission,disabled:!editable,onChange:function(z){return setTestSetPermission(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u7684\u5185\u5BB9\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}},"\u6743\u9650"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u590D\u5236/\u5408\u5E76:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isCopy,onChange:function(z){return setIsCopy(z.target.checked)},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((_shixunsDetail$detail4=shixunsDetail.detail)===null||_shixunsDetail$detail4===void 0?void 0:_shixunsDetail$detail4.shixun_status)>1||((_shixunsDetail$detail5=shixunsDetail.detail)===null||_shixunsDetail$detail5===void 0?void 0:_shixunsDetail$detail5.public)===2)&&((_shixunsDetail$settin97=shixunsDetail.setting)===null||_shixunsDetail$settin97===void 0||((_shixunsDetail$settin98=_shixunsDetail$settin97.shixun)===null||_shixunsDetail$settin98===void 0)?void 0:_shixunsDetail$settin98.use_scope)===0&&((_shixunsDetail$detail6=shixunsDetail.detail)===null||_shixunsDetail$detail6===void 0?void 0:_shixunsDetail$detail6.identity)>2)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{padding:"4px 0px"}},"\u516C\u5F00\u7A0B\u5EA6:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:openValue,onChange:function(z){return setOpenValue(z.target.value)},disabled:!editable},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,value:0},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:1},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),openValue===1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__.a,{showSearch:!0,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.selectSchool,bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:departmentValue,onChange:function(z){setDepartmentValue(z),handleGetDepartments(z)},disabled:!editable,onSelect:handleSelectDepartment,options:departmentList==null?void 0:departmentList.map(function(k){return{value:k}})})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mt10"},selectDepartmentList==null?void 0:selectDepartmentList.map(function(k){return editable?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_badge__WEBPACK_IMPORTED_MODULE_15__.a,{count:"x",className:"mr20 current",onClick:function(){return setSelectDepartmentList(selectDepartmentList.filter(function(o){return o!==k}))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0},k)):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0,className:"mr20"},k)}))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5F00\u542F\u65F6\u95F4:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isOpenTime,onChange:function(z){setIsOpenTime(z.target.checked),z.target.checked||setOpenTime("")},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\u624D\u80FD\u5F00\u542F\u6311\u6218\uFF09")),isOpenTime&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__.a,{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.dataPicker),format:timeFormat,locale:antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default.a,bordered:!1,disabled:!editable,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(z){return z&&z0){var E,v;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((E=shixunsDetail.setting)===null||E===void 0||((v=E.shixun)===null||v===void 0))?void 0:v.shixun_virtual_templates))}else setshixun_virtual_templates([{template_name:"",template_identity:""}]);break}}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:"linux",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"Linux\u5BB9\u5668",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528Linux\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")),!linux_vnc&&!windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(z){return setport(z.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u5230\u6307\u5B9A\u7AEF\u53E3\uFF09"))),isRadiuvalue==5&&linux_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(z){return setWindowVNCTemplate(z.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Linux\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),isRadiuvalue==5&&windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(z){return setWindowVNCTemplate(z.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Windows\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{value:windows_connection_mode,onChange:function(z){return setWindowsConnectionMode(z)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"vnc"},"VNC\u65B9\u5F0F\u542F\u52A8"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"rdp"},"RDP\u65B9\u5F0F\u542F\u52A8")))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__.a,{title:Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)()?"":"\u53EA\u6709\u5E73\u53F0\u7BA1\u7406\u5458\u6216\u8FD0\u8425\u4EBA\u5458\u624D\u80FD\u914D\u7F6E\u865A\u62DF\u673A\u6A21\u5F0F"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{disabled:!Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)(),value:"virtual_machine",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u865A\u62DF\u673A\u56FE\u5F62\u5316\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528\u865A\u62DF\u673A\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09"))),isRadiuvalue==5&&virtual_machine&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",width:213,marginRight:42,color:"#333333"}},"\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",color:"#333333"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A")),shixun_virtual_templates==null?void 0:shixun_virtual_templates.map(function(k,z){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{maxLength:8,style:{width:213,height:32,marginRight:42},placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0",value:k==null?void 0:k.template_name,onChange:function(P){k.template_name=P.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{style:{width:380,height:32},placeholder:"\u8BF7\u8F93\u5165\u865A\u62DF\u673A\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248\u540D\u79F0",value:k==null?void 0:k.template_identity,onChange:function(P){k.template_identity=P.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&(shixun_virtual_templates==null?void 0:shixun_virtual_templates.length)<5&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__.a,{style:{fontSize:"16px",marginLeft:15,color:"#165DFF"},onClick:function(){var P={};P.template_name="",P.template_identity="",shixun_virtual_templates.push(P),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),z!=0&&Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__.a,{style:{fontSize:"16px",marginLeft:10,color:"#165DFF"},onClick:function(){shixun_virtual_templates.splice(z,1),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}))}))))))),hideCode&&websshShow?null:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u5E93\u5730\u5740\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:display_git_address,disabled:!editable,onChange:function(z){return set_display_git_address(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")}," ","\uFF08\u9009\u4E2D\u5219\u5BF9\u5B66\u5458\u516C\u5F00\u4EE3\u7801\u5E93\u5730\u5740\uFF0C\u5B66\u5458\u53EF\u4EE5\u5C06\u6240\u6709\u4EE3\u7801\u4E0B\u8F7D\u5230\u672C\u5730\uFF09")))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u76EE\u5F55\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeHidden,disabled:!editable,onChange:function(z){return setCodeHidden(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u9875\u9762\u663E\u793A\u7248\u672C\u5E93\u76EE\u5F55\uFF09")),codeHidden&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"54px",background:"#f5f5f5",marginTop:"10px",borderRadius:"8px",display:"flex",justifyContent:"left",alignItems:"center",padding:"0px 20px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",null,"\u4EE3\u7801\u5E93\u6587\u4EF6\u4FEE\u6539\u6743\u9650\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent,style:{padding:"0px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeEditPermission,disabled:!editable,onChange:function(z){return setCodeEditPermission(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u52FE\u9009\u540E\u5141\u8BB8\u5B66\u5458\u4FEE\u6539\u4EE3\u7801\u5E93\u6240\u6709\u6587\u4EF6\uFF0C\u5426\u5219\u4EC5\u53EF\u4FEE\u6539\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\uFF09"))))))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u7981\u7528\u7C98\u8D34\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:forbidCopy,disabled:!editable,onChange:function(z){return setForbidCopy(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u7F16\u7801\u533A\u57DF\u65E0\u6CD5\u4F7F\u7528\u7C98\u8D34\u529F\u80FD\uFF09")))),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__.a,{value:survival_time,onChange:function(z){return setSurvivalTime(z)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\u5206")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px",display:"none"}},"\u9AD8\u7EA7\u8BBE\u7F6E"," ",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{onClick:function(){return setAdvancedSettingShow(!advancedsettingshow)},style:{color:"#0152d9",fontSize:"14px",cursor:"pointer",marginLeft:"20px"}},advancedsettingshow?"\u6536\u8D77":"\u5C55\u5F00",advancedsettingshow?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__.a,null):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__.a,null))),advancedsettingshow&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,!((_shixunsDetail$detail7=shixunsDetail.detail)!==null&&_shixunsDetail$detail7!==void 0&&_shixunsDetail$detail7.is_jupyter)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexRow," ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexAlignCenter)},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{style:{fontSize:"16px"}},"\u8BC4\u6D4B\u811A\u672C\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{style:{width:"200px"},value:evaluationScript,disabled:((_shixunsDetail$settin150=shixunsDetail.setting)===null||_shixunsDetail$settin150===void 0||((_shixunsDetail$settin151=_shixunsDetail$settin150.shixun)===null||_shixunsDetail$settin151===void 0)?void 0:_shixunsDetail$settin151.status)===2?!0:!editable,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(z){handleChangeEvaluationScript(z),setevaluationScript(z)}},(standardScriptList||[]).map(function(k,z){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(Option,{value:parseInt(k.id),name:k.scptname,key:z},k.scptname)})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color0152d9," font14 current ml10"),style:{marginTop:"2px"},onClick:handleUseCustomScript},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_popover__WEBPACK_IMPORTED_MODULE_3__.a,{overlayClassName:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.popover,placement:"bottomLeft",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"challengeProgramNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"sourceClassNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step1/HelloWorld.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step2/Other.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step1.HelloWorld",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step2.Other",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'" "step2.Other")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__.a,null)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:evaluateScript,options:{readOnly:((_shixunsDetail$settin152=shixunsDetail.setting)===null||_shixunsDetail$settin152===void 0||((_shixunsDetail$settin153=_shixunsDetail$settin152.shixun)===null||_shixunsDetail$settin153===void 0)?void 0:_shixunsDetail$settin153.status)===2?!0:!editable},onChange:function(z){return setEvaluateScript(z)}})),((_shixunsDetail$detail8=shixunsDetail.detail)===null||_shixunsDetail$detail8===void 0?void 0:_shixunsDetail$detail8.identity)<3&&editable&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingName},"\u670D\u52A1\u914D\u7F6E"),serviceConfigList==null?void 0:serviceConfigList.map(function(k,z){var o,P,g,T,b,y,x,O;return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{key:z},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"font16"},k.name)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:k.cpu_limit,disabled:((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"cpu_limit",z)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:k.lower_cpu_limit,disabled:((g=shixunsDetail.setting)===null||g===void 0||((T=g.shixun)===null||T===void 0)?void 0:T.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"lower_cpu_limit",z)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:k.memory_limit,disabled:((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"memory_limit",z)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetMemoryInput,value:k.request_limit,disabled:((x=shixunsDetail.setting)===null||x===void 0||((O=x.shixun)===null||O===void 0)?void 0:O.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"request_limit",z)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetTip," ml5")},"\u6E29\u99A8\u63D0\u793A\uFF1A\u7EAF\u7F16\u7A0B\u7C7B\u578B\u5B9E\u8BAD\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF0C\u5BF9\u4E8E\u5927\u6570\u636E\u7B49\u5EFA\u8BAE\u4F7F\u7528\u6700\u5927\u5185\u5B58\u768430%")))}))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}}," ","\u8BC4\u8BBA\u533A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u8BC4\u8BBA\u533A\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_switch__WEBPACK_IMPORTED_MODULE_1__.a,{checked:!disableDiscuss,onChange:function(z){return setDisableDiscuss(!z)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5173\u95ED\u540E\uFF0C\u5B9E\u8DF5\u9879\u76EE\u8BE6\u60C5\u9875\u53CA\u5173\u5361\u6311\u6218\u9875\u9762\u4E0D\u663E\u793A\u4EFB\u4F55\u8BC4\u8BBA\uFF09"))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"70px",width:"76%",background:"#ffffff",boxShadow:"0px -4px 8px 1px #F1F1F1",position:"absolute",bottom:"0px",display:"flex",alignItems:"center",justifyContent:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginRight:"10px",width:"100px",height:"40px",borderRadius:"4px",border:"1px solid #0152d9",color:"#0152d9"},onClick:function(){umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns/".concat(params.id,"/challenges"))}},"\u53D6\u6D88"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginLeft:"10px",width:"100px",height:"40px",fontSize:"16px",background:"#0152d9",borderRadius:"4px"},type:"primary",onClick:function(){return handSubmeit()}},"\u4FDD\u5B58"))),!isShowSetting&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u8005"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"60",width:"60",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.img,src:"".concat(_utils_env__WEBPACK_IMPORTED_MODULE_55__.a.IMG_SERVER,"/images/").concat(createTitle==null?void 0:createTitle.user_image_url)}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.nameWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.name},createTitle==null?void 0:createTitle.user_name),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.actionGroup})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.schoolWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.school},createTitle==null?void 0:createTitle.user_school)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.created_at),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u66F4\u65B0\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.updated_at)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__.a,null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__.a,{onFinish:function(z){return setEvaluateScript(z)}}))}__webpack_exports__.a=Object(umi__WEBPACK_IMPORTED_MODULE_40__.a)(function(k){var z=k.user,o=k.shixunsDetail,P=k.practiceSetting;return{user:z,shixunsDetail:o,practiceSetting:P}})(Setting)},"19Vz":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){P.defineOption("placeholder","",function(m,e,f){var a=f&&f!=P.Init;if(e&&!a)m.on("blur",y),m.on("change",x),m.on("swapDoc",x),P.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){b(m)}),x(m);else if(!e&&a){m.off("blur",y),m.off("change",x),m.off("swapDoc",x),P.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),g(m);var u=m.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}e&&!m.hasFocus()&&y(m)});function g(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function T(m){g(m);var e=m.state.placeholder=document.createElement("pre");e.style.cssText="height: 0; overflow: visible",e.style.direction=m.getOption("direction"),e.className="CodeMirror-placeholder CodeMirror-line-like";var f=m.getOption("placeholder");typeof f=="string"&&(f=document.createTextNode(f)),e.appendChild(f),m.display.lineSpace.insertBefore(e,m.display.lineSpace.firstChild)}function b(m){setTimeout(function(){var e=!1,f=m.getInputField();f.nodeName=="TEXTAREA"?e=!f.value:m.lineCount()==1&&(e=!/[^\u200b]/.test(f.querySelector(".CodeMirror-line").textContent)),e?T(m):g(m)},20)}function y(m){O(m)&&T(m)}function x(m){var e=m.getWrapperElement(),f=O(m);e.className=e.className.replace(" CodeMirror-empty","")+(f?" CodeMirror-empty":""),f?T(m):g(m)}function O(m){return m.lineCount()===1&&m.getLine(0)===""}})},"1Sn+":function(k,z,o){},"1XHU":function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("q1tI"),b=o.n(T),y=o("9kvl"),x=o("3wET"),O=o.n(x),m=o("bUJZ"),e=o.n(m),f=o("Ct/S"),a=o.n(f),u=function(i){var n=i.visible,l=i.occupationValue,h=i.onCancel,d=h===void 0?function(){}:h,s=function(){return b.a.createElement("div",{className:a.a.flexColumn},b.a.createElement("img",{className:a.a.img,src:e.a}),b.a.createElement("span",{className:a.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},c=function(){return b.a.createElement("div",{className:a.a.flexColumn},b.a.createElement("img",{className:a.a.img,src:O.a}),b.a.createElement("span",{className:a.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},w=function(){return l===3?b.a.createElement(b.a.Fragment,null,c(),s()):l===2?s():c()};return b.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:n,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:function(){d(),y.d.push("/account/certification")},onCancel:function(){d()}},b.a.createElement("div",{className:a.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),b.a.createElement("div",{className:a.a.flexRow},w()))};z.a=Object(y.a)(function(r){var i=r.paperlibrary,n=r.loading,l=r.globalSetting;return{paperlibrary:i,globalSetting:l,loading:n.effects}})(u)},"1ZF9":function(k,z,o){k.exports=o.p+"static/Authorize.cc9c212f.png"},"1eCo":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"use strict";var g={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};P.defineMode("xml",function(b,y){var x=b.indentUnit,O={},m=y.htmlMode?g:T;for(var e in m)O[e]=m[e];for(var e in y)O[e]=y[e];var f,a;function u(A,U){function L(H){return U.tokenize=H,H(A,U)}var N=A.next();if(N=="<")return A.eat("!")?A.eat("[")?A.match("CDATA[")?L(n("atom","]]>")):null:A.match("--")?L(n("comment","-->")):A.match("DOCTYPE",!0,!0)?(A.eatWhile(/[\w\._\-]/),L(l(1))):null:A.eat("?")?(A.eatWhile(/[\w\._\-]/),U.tokenize=n("meta","?>"),"meta"):(f=A.eat("/")?"closeTag":"openTag",U.tokenize=r,"tag bracket");if(N=="&"){var V;return A.eat("#")?A.eat("x")?V=A.eatWhile(/[a-fA-F\d]/)&&A.eat(";"):V=A.eatWhile(/[\d]/)&&A.eat(";"):V=A.eatWhile(/[\w\.\-:]/)&&A.eat(";"),V?"atom":"error"}else return A.eatWhile(/[^&<]/),null}u.isInText=!0;function r(A,U){var L=A.next();if(L==">"||L=="/"&&A.eat(">"))return U.tokenize=u,f=L==">"?"endTag":"selfcloseTag","tag bracket";if(L=="=")return f="equals",null;if(L=="<"){U.tokenize=u,U.state=c,U.tagName=U.tagStart=null;var N=U.tokenize(A,U);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(L)?(U.tokenize=i(L),U.stringStartCol=A.column(),U.tokenize(A,U)):(A.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function i(A){var U=function(L,N){for(;!L.eol();)if(L.next()==A){N.tokenize=r;break}return"string"};return U.isInAttribute=!0,U}function n(A,U){return function(L,N){for(;!L.eol();){if(L.match(U)){N.tokenize=u;break}L.next()}return A}}function l(A){return function(U,L){for(var N;(N=U.next())!=null;){if(N=="<")return L.tokenize=l(A+1),L.tokenize(U,L);if(N==">")if(A==1){L.tokenize=u;break}else return L.tokenize=l(A-1),L.tokenize(U,L)}return"meta"}}function h(A,U,L){this.prev=A.context,this.tagName=U,this.indent=A.indented,this.startOfLine=L,(O.doNotIndent.hasOwnProperty(U)||A.context&&A.context.noIndent)&&(this.noIndent=!0)}function d(A){A.context&&(A.context=A.context.prev)}function s(A,U){for(var L;;){if(!A.context)return;if(L=A.context.tagName,!O.contextGrabbers.hasOwnProperty(L)||!O.contextGrabbers[L].hasOwnProperty(U))return;d(A)}}function c(A,U,L){return A=="openTag"?(L.tagStart=U.column(),w):A=="closeTag"?E:c}function w(A,U,L){return A=="word"?(L.tagName=U.current(),a="tag",M):O.allowMissingTagName&&A=="endTag"?(a="tag bracket",M(A,U,L)):(a="error",w)}function E(A,U,L){if(A=="word"){var N=U.current();return L.context&&L.context.tagName!=N&&O.implicitlyClosed.hasOwnProperty(L.context.tagName)&&d(L),L.context&&L.context.tagName==N||O.matchClosing===!1?(a="tag",v):(a="tag error",R)}else return O.allowMissingTagName&&A=="endTag"?(a="tag bracket",v(A,U,L)):(a="error",R)}function v(A,U,L){return A!="endTag"?(a="error",v):(d(L),c)}function R(A,U,L){return a="error",v(A,U,L)}function M(A,U,L){if(A=="word")return a="attribute",C;if(A=="endTag"||A=="selfcloseTag"){var N=L.tagName,V=L.tagStart;return L.tagName=L.tagStart=null,A=="selfcloseTag"||O.autoSelfClosers.hasOwnProperty(N)?s(L,N):(s(L,N),L.context=new h(L,N,V==L.indented)),c}return a="error",M}function C(A,U,L){return A=="equals"?S:(O.allowMissing||(a="error"),M(A,U,L))}function S(A,U,L){return A=="string"?_:A=="word"&&O.allowUnquoted?(a="string",M):(a="error",M(A,U,L))}function _(A,U,L){return A=="string"?_:M(A,U,L)}return{startState:function(A){var U={tokenize:u,state:c,indented:A||0,tagName:null,tagStart:null,context:null};return A!=null&&(U.baseIndent=A),U},token:function(A,U){if(!U.tagName&&A.sol()&&(U.indented=A.indentation()),A.eatSpace())return null;f=null;var L=U.tokenize(A,U);return(L||f)&&L!="comment"&&(a=null,U.state=U.state(f||L,A,U),a&&(L=a=="error"?L+" error":a)),L},indent:function(A,U,L){var N=A.context;if(A.tokenize.isInAttribute)return A.tagStart==A.indented?A.stringStartCol+1:A.indented+x;if(N&&N.noIndent)return P.Pass;if(A.tokenize!=r&&A.tokenize!=u)return L?L.match(/^(\s*)/)[0].length:0;if(A.tagName)return O.multilineTagIndentPastTag!==!1?A.tagStart+A.tagName.length+2:A.tagStart+x*(O.multilineTagIndentFactor||1);if(O.alignCDATA&&/$/,blockCommentStart:"",configuration:O.htmlMode?"html":"xml",helperType:O.htmlMode?"html":"xml",skipAttribute:function(A){A.state==S&&(A.state=M)},xmlCurrentTag:function(A){return A.tagName?{name:A.tagName,close:A.type=="closeTag"}:null},xmlCurrentContext:function(A){for(var U=[],L=A.context;L;L=L.prev)L.tagName&&U.push(L.tagName);return U.reverse()}}}),P.defineMIME("text/xml","xml"),P.defineMIME("application/xml","xml"),P.mimeModes.hasOwnProperty("text/html")||P.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(k,z,o){"use strict";o.d(z,"d",function(){return Qe}),o.d(z,"b",function(){return We}),o.d(z,"c",function(){return Dt}),o.d(z,"a",function(){return rn});var P=o("VTBJ"),g=o("1OyB"),T=o("vuIU"),b=o("JX7q"),y=o("Ji7U"),x=o("LK+K"),O=o("q1tI"),m=o("I8Z2"),e=o("BGR+"),f=o("wx14"),a=o("rePB"),u=o("4IlW"),r=o("2GS6"),i=o("Gytx"),n=o.n(i),l=o("TSYQ"),h=o.n(l),d=o("U8pU"),s=o("ODXe"),c=/iPhone/i,w=/iPod/i,E=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,R=/Android/i,M=/\bAndroid(?:.+)SD4930UR\b/i,C=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,S=/Windows Phone/i,_=/\bWindows(?:.+)ARM\b/i,A=/BlackBerry/i,U=/BB10/i,L=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,V=/Mobile(?:.+)Firefox\b/i;function H(Ct,Ke){return Ct.test(Ke)}function D(Ct){var Ke=Ct||(typeof navigator!="undefined"?navigator.userAgent:""),et=Ke.split("[FBAN");if(typeof et[1]!="undefined"){var at=et,Pe=Object(s.a)(at,1);Ke=Pe[0]}if(et=Ke.split("Twitter"),typeof et[1]!="undefined"){var Xe=et,ht=Object(s.a)(Xe,1);Ke=ht[0]}var _t={apple:{phone:H(c,Ke)&&!H(S,Ke),ipod:H(w,Ke),tablet:!H(c,Ke)&&H(E,Ke)&&!H(S,Ke),device:(H(c,Ke)||H(w,Ke)||H(E,Ke))&&!H(S,Ke)},amazon:{phone:H(M,Ke),tablet:!H(M,Ke)&&H(C,Ke),device:H(M,Ke)||H(C,Ke)},android:{phone:!H(S,Ke)&&H(M,Ke)||!H(S,Ke)&&H(v,Ke),tablet:!H(S,Ke)&&!H(M,Ke)&&!H(v,Ke)&&(H(C,Ke)||H(R,Ke)),device:!H(S,Ke)&&(H(M,Ke)||H(C,Ke)||H(v,Ke)||H(R,Ke))||H(/\bokhttp\b/i,Ke)},windows:{phone:H(S,Ke),tablet:H(_,Ke),device:H(S,Ke)||H(_,Ke)},other:{blackberry:H(A,Ke),blackberry10:H(U,Ke),opera:H(L,Ke),firefox:H(V,Ke),chrome:H(N,Ke),device:H(A,Ke)||H(U,Ke)||H(L,Ke)||H(V,Ke)||H(N,Ke)},any:null,phone:null,tablet:null};return _t.any=_t.apple.device||_t.android.device||_t.windows.device||_t.other.device,_t.phone=_t.apple.phone||_t.android.phone||_t.windows.phone,_t.tablet=_t.apple.tablet||_t.android.tablet||_t.windows.tablet,_t}var W=Object(P.a)(Object(P.a)({},D()),{},{isMobile:D}),F=W;function I(){}function K(Ct,Ke,et){var at=Ke||"";return Ct.key||"".concat(at,"item_").concat(et)}function ee(Ct){return"".concat(Ct,"-menu-")}function he(Ct,Ke){var et=-1;O.Children.forEach(Ct,function(at){et+=1,at&&at.type&&at.type.isMenuItemGroup?O.Children.forEach(at.props.children,function(Pe){et+=1,Ke(Pe,et)}):Ke(at,et)})}function de(Ct,Ke,et){if(!Ct||et.find)return;O.Children.forEach(Ct,function(at){if(at){var Pe=at.type;if(!Pe||!(Pe.isSubMenu||Pe.isMenuItem||Pe.isMenuItemGroup))return;Ke.indexOf(at.key)!==-1?et.find=!0:at.props.children&&de(at.props.children,Ke,et)}})}var Se=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Te=function(Ke){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=Ke&&typeof Ke.getBoundingClientRect=="function"&&Ke.getBoundingClientRect().width;if(at){if(et){var Pe=getComputedStyle(Ke),Xe=Pe.marginLeft,ht=Pe.marginRight;at+=+Xe.replace("px","")+ +ht.replace("px","")}at=+at.toFixed(6)}return at||0},ce=function(Ke,et,at){Ke&&Object(d.a)(Ke.style)==="object"&&(Ke.style[et]=at)},be=function(){return F.any},Ee=o("KQm4"),ue=o("Ff2n"),le=o("i8i4"),$=o("bdgK"),me=o("uciX"),re=o("8XRh"),ae={adjustX:1,adjustY:1},Oe={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},se={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},te=Oe,Q=0,J={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ve=function(Ke,et,at){var Pe=ee(et),Xe=Ke.getState();Ke.setState({defaultActiveFirst:Object(P.a)(Object(P.a)({},Xe.defaultActiveFirst),{},Object(a.a)({},Pe,at))})},_e=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(at){var Pe;Object(g.a)(this,et),Pe=Ke.call(this,at),Pe.onDestroy=function(ut){Pe.props.onDestroy(ut)},Pe.onKeyDown=function(ut){var Ft=ut.keyCode,It=Pe.menuInstance,on=Pe.props,mn=on.isOpen,Hn=on.store;if(Ft===u.a.ENTER)return Pe.onTitleClick(ut),ve(Hn,Pe.props.eventKey,!0),!0;if(Ft===u.a.RIGHT)return mn?It.onKeyDown(ut):(Pe.triggerOpenChange(!0),ve(Hn,Pe.props.eventKey,!0)),!0;if(Ft===u.a.LEFT){var Xn;if(mn)Xn=It.onKeyDown(ut);else return;return Xn||(Pe.triggerOpenChange(!1),Xn=!0),Xn}return mn&&(Ft===u.a.UP||Ft===u.a.DOWN)?It.onKeyDown(ut):void 0},Pe.onOpenChange=function(ut){Pe.props.onOpenChange(ut)},Pe.onPopupVisibleChange=function(ut){Pe.triggerOpenChange(ut,ut?"mouseenter":"mouseleave")},Pe.onMouseEnter=function(ut){var Ft=Pe.props,It=Ft.eventKey,on=Ft.onMouseEnter,mn=Ft.store;ve(mn,Pe.props.eventKey,!1),on({key:It,domEvent:ut})},Pe.onMouseLeave=function(ut){var Ft=Pe.props,It=Ft.parentMenu,on=Ft.eventKey,mn=Ft.onMouseLeave;It.subMenuInstance=Object(b.a)(Pe),mn({key:on,domEvent:ut})},Pe.onTitleMouseEnter=function(ut){var Ft=Pe.props,It=Ft.eventKey,on=Ft.onItemHover,mn=Ft.onTitleMouseEnter;on({key:It,hover:!0}),mn({key:It,domEvent:ut})},Pe.onTitleMouseLeave=function(ut){var Ft=Pe.props,It=Ft.parentMenu,on=Ft.eventKey,mn=Ft.onItemHover,Hn=Ft.onTitleMouseLeave;It.subMenuInstance=Object(b.a)(Pe),mn({key:on,hover:!1}),Hn({key:on,domEvent:ut})},Pe.onTitleClick=function(ut){var Ft=Object(b.a)(Pe),It=Ft.props;if(It.onTitleClick({key:It.eventKey,domEvent:ut}),It.triggerSubMenuAction==="hover")return;Pe.triggerOpenChange(!It.isOpen,"click"),ve(It.store,Pe.props.eventKey,!1)},Pe.onSubMenuClick=function(ut){typeof Pe.props.onClick=="function"&&Pe.props.onClick(Pe.addKeyPath(ut))},Pe.onSelect=function(ut){Pe.props.onSelect(ut)},Pe.onDeselect=function(ut){Pe.props.onDeselect(ut)},Pe.getPrefixCls=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu")},Pe.getActiveClassName=function(){return"".concat(Pe.getPrefixCls(),"-active")},Pe.getDisabledClassName=function(){return"".concat(Pe.getPrefixCls(),"-disabled")},Pe.getSelectedClassName=function(){return"".concat(Pe.getPrefixCls(),"-selected")},Pe.getOpenClassName=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu-open")},Pe.saveMenuInstance=function(ut){Pe.menuInstance=ut},Pe.addKeyPath=function(ut){return Object(P.a)(Object(P.a)({},ut),{},{keyPath:(ut.keyPath||[]).concat(Pe.props.eventKey)})},Pe.triggerOpenChange=function(ut,Ft){var It=Pe.props.eventKey,on=function(){Pe.onOpenChange({key:It,item:Object(b.a)(Pe),trigger:Ft,open:ut})};Ft==="mouseenter"?Pe.mouseenterTimeout=setTimeout(function(){on()},0):on()},Pe.isChildrenSelected=function(){var ut={find:!1};return de(Pe.props.children,Pe.props.selectedKeys,ut),ut.find},Pe.isOpen=function(){return Pe.props.openKeys.indexOf(Pe.props.eventKey)!==-1},Pe.adjustWidth=function(){if(!Pe.subMenuTitle||!Pe.menuInstance)return;var ut=le.findDOMNode(Pe.menuInstance);if(ut.offsetWidth>=Pe.subMenuTitle.offsetWidth)return;ut.style.minWidth="".concat(Pe.subMenuTitle.offsetWidth,"px")},Pe.saveSubMenuTitle=function(ut){Pe.subMenuTitle=ut},Pe.getBaseProps=function(){var ut=Object(b.a)(Pe),Ft=ut.props;return{mode:Ft.mode==="horizontal"?"vertical":Ft.mode,visible:Pe.props.isOpen,level:Ft.level+1,inlineIndent:Ft.inlineIndent,focusable:!1,onClick:Pe.onSubMenuClick,onSelect:Pe.onSelect,onDeselect:Pe.onDeselect,onDestroy:Pe.onDestroy,selectedKeys:Ft.selectedKeys,eventKey:"".concat(Ft.eventKey,"-menu-"),openKeys:Ft.openKeys,motion:Ft.motion,onOpenChange:Pe.onOpenChange,subMenuOpenDelay:Ft.subMenuOpenDelay,parentMenu:Object(b.a)(Pe),subMenuCloseDelay:Ft.subMenuCloseDelay,forceSubMenuRender:Ft.forceSubMenuRender,triggerSubMenuAction:Ft.triggerSubMenuAction,builtinPlacements:Ft.builtinPlacements,defaultActiveFirst:Ft.store.getState().defaultActiveFirst[ee(Ft.eventKey)],multiple:Ft.multiple,prefixCls:Ft.rootPrefixCls,id:Pe.internalMenuId,manualRef:Pe.saveMenuInstance,itemIcon:Ft.itemIcon,expandIcon:Ft.expandIcon,direction:Ft.direction}},Pe.getMotion=function(ut,Ft){var It=Object(b.a)(Pe),on=It.haveRendered,mn=Pe.props,Hn=mn.motion,Xn=mn.rootPrefixCls,Fn=Object(P.a)(Object(P.a)({},Hn),{},{leavedClassName:"".concat(Xn,"-hidden"),removeOnLeave:!1,motionAppear:on||!Ft||ut!=="inline"});return Fn};var Xe=at.store,ht=at.eventKey,_t=Xe.getState(),Ot=_t.defaultActiveFirst;Pe.isRootMenu=!1;var Nt=!1;return Ot&&(Nt=Ot[ht]),ve(Xe,ht,Nt),Pe}return Object(T.a)(et,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this,Xe=this.props,ht=Xe.mode,_t=Xe.parentMenu,Ot=Xe.manualRef;if(Ot&&Ot(this),ht!=="horizontal"||!_t.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Pe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Pe=this.props,Xe=Pe.onDestroy,ht=Pe.eventKey;Xe&&Xe(ht),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Pe){var Xe=this,ht=this.getBaseProps(),_t=this.getMotion(ht.mode,ht.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ht.visible||ht.forceSubMenuRender,!this.haveOpened)return O.createElement("div",null);var Ot=ht.direction;return O.createElement(re.default,Object.assign({visible:ht.visible},_t),function(Nt){var ut=Nt.className,Ft=Nt.style,It=h()("".concat(ht.prefixCls,"-sub"),ut,Object(a.a)({},"".concat(ht.prefixCls,"-rtl"),Ot==="rtl"));return O.createElement(it,Object.assign({},ht,{id:Xe.internalMenuId,className:It,style:Ft}),Pe)})}},{key:"render",value:function(){var Pe,Xe=Object(P.a)({},this.props),ht=Xe.isOpen,_t=this.getPrefixCls(),Ot=Xe.mode==="inline",Nt=h()(_t,"".concat(_t,"-").concat(Xe.mode),(Pe={},Object(a.a)(Pe,Xe.className,!!Xe.className),Object(a.a)(Pe,this.getOpenClassName(),ht),Object(a.a)(Pe,this.getActiveClassName(),Xe.active||ht&&!Ot),Object(a.a)(Pe,this.getDisabledClassName(),Xe.disabled),Object(a.a)(Pe,this.getSelectedClassName(),this.isChildrenSelected()),Pe));this.internalMenuId||(Xe.eventKey?this.internalMenuId="".concat(Xe.eventKey,"$Menu"):(Q+=1,this.internalMenuId="$__$".concat(Q,"$Menu")));var ut={},Ft={},It={};Xe.disabled||(ut={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ft={onClick:this.onTitleClick},It={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var on={},mn=Xe.direction;Ot&&(mn==="rtl"?on.paddingRight=Xe.inlineIndent*Xe.level:on.paddingLeft=Xe.inlineIndent*Xe.level);var Hn={};this.props.isOpen&&(Hn={"aria-owns":this.internalMenuId});var Xn=null;Xe.mode!=="horizontal"&&(Xn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Xn=O.createElement(this.props.expandIcon,Object(P.a)({},this.props))));var Fn=O.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:on,className:"".concat(_t,"-title"),role:"button"},It,Ft,{"aria-expanded":ht},Hn,{"aria-haspopup":"true",title:typeof Xe.title=="string"?Xe.title:void 0}),Xe.title,Xn||O.createElement("i",{className:"".concat(_t,"-arrow")})),xn=this.renderChildren(Xe.children),fr=Xe.parentMenu.isRootMenu?Xe.parentMenu.props.getPopupContainer:function(xr){return xr.parentNode},Yn=J[Xe.mode],ar=Xe.popupOffset?{offset:Xe.popupOffset}:{},nr=Xe.mode==="inline"?"":Xe.popupClassName;nr+=mn==="rtl"?" ".concat(_t,"-rtl"):"";var Rr=Xe.disabled,pr=Xe.triggerSubMenuAction,sn=Xe.subMenuOpenDelay,qt=Xe.forceSubMenuRender,On=Xe.subMenuCloseDelay,Fr=Xe.builtinPlacements;Se.forEach(function(xr){return delete Xe[xr]}),delete Xe.onClick;var Or=mn==="rtl"?Object.assign({},se,Fr):Object.assign({},Oe,Fr);return delete Xe.direction,O.createElement("li",Object.assign({},Xe,ut,{className:Nt,role:"menuitem"}),Ot&&Fn,Ot&&xn,!Ot&&O.createElement(me.a,{prefixCls:_t,popupClassName:h()("".concat(_t,"-popup"),nr),getPopupContainer:fr,builtinPlacements:Or,popupPlacement:Yn,popupVisible:ht,popupAlign:ar,popup:xn,action:Rr?[]:[pr],mouseEnterDelay:sn,mouseLeaveDelay:On,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:qt},Fn))}}]),et}(O.Component);_e.defaultProps={onMouseEnter:I,onMouseLeave:I,onTitleMouseEnter:I,onTitleMouseLeave:I,onTitleClick:I,manualRef:I,mode:"vertical",title:""};var Ae=Object(m.b)(function(Ct,Ke){var et=Ct.openKeys,at=Ct.activeKey,Pe=Ct.selectedKeys,Xe=Ke.eventKey,ht=Ke.subMenuKey;return{isOpen:et.indexOf(Xe)>-1,active:at[ht]===Xe,selectedKeys:Pe}})(_e);Ae.isSubMenu=!0;var Qe=Ae,tt="menuitem-overflowed",dt=.5,mt=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(){var at;return Object(g.a)(this,et),at=Ke.apply(this,arguments),at.resizeObserver=null,at.mutationObserver=null,at.originalTotalWidth=0,at.overflowedItems=[],at.menuItemSizes=[],at.cancelFrameId=null,at.state={lastVisibleIndex:void 0},at.getMenuItemNodes=function(){var Pe=at.props.prefixCls,Xe=le.findDOMNode(Object(b.a)(at));return Xe?[].slice.call(Xe.children).filter(function(ht){return ht.className.split(" ").indexOf("".concat(Pe,"-overflowed-submenu"))<0}):[]},at.getOverflowedSubMenuItem=function(Pe,Xe,ht){var _t=at.props,Ot=_t.overflowedIndicator,Nt=_t.level,ut=_t.mode,Ft=_t.prefixCls,It=_t.theme;if(Nt!==1||ut!=="horizontal")return null;var on=at.props.children[0],mn=on.props,Hn=mn.children,Xn=mn.title,Fn=mn.style,xn=Object(ue.a)(mn,["children","title","style"]),fr=Object(P.a)({},Fn),Yn="".concat(Pe,"-overflowed-indicator"),ar="".concat(Pe,"-overflowed-indicator");Xe.length===0&&ht!==!0?fr=Object(P.a)(Object(P.a)({},fr),{},{display:"none"}):ht&&(fr=Object(P.a)(Object(P.a)({},fr),{},{visibility:"hidden",position:"absolute"}),Yn="".concat(Yn,"-placeholder"),ar="".concat(ar,"-placeholder"));var nr=It?"".concat(Ft,"-").concat(It):"",Rr={};return Se.forEach(function(pr){xn[pr]!==void 0&&(Rr[pr]=xn[pr])}),O.createElement(Qe,Object.assign({title:Ot,className:"".concat(Ft,"-overflowed-submenu"),popupClassName:nr},Rr,{key:Yn,eventKey:ar,disabled:!1,style:fr}),Xe)},at.setChildrenWidthAndResize=function(){if(at.props.mode!=="horizontal")return;var Pe=le.findDOMNode(Object(b.a)(at));if(!Pe)return;var Xe=Pe.children;if(!Xe||Xe.length===0)return;var ht=Pe.children[Xe.length-1];ce(ht,"display","inline-block");var _t=at.getMenuItemNodes(),Ot=_t.filter(function(Nt){return Nt.className.split(" ").indexOf(tt)>=0});Ot.forEach(function(Nt){ce(Nt,"display","inline-block")}),at.menuItemSizes=_t.map(function(Nt){return Te(Nt,!0)}),Ot.forEach(function(Nt){ce(Nt,"display","none")}),at.overflowedIndicatorWidth=Te(Pe.children[Pe.children.length-1],!0),at.originalTotalWidth=at.menuItemSizes.reduce(function(Nt,ut){return Nt+ut},0),at.handleResize(),ce(ht,"display","none")},at.handleResize=function(){if(at.props.mode!=="horizontal")return;var Pe=le.findDOMNode(Object(b.a)(at));if(!Pe)return;var Xe=Te(Pe);at.overflowedItems=[];var ht=0,_t;at.originalTotalWidth>Xe+dt&&(_t=-1,at.menuItemSizes.forEach(function(Ot){ht+=Ot,ht+at.overflowedIndicatorWidth<=Xe&&(_t+=1)})),at.setState({lastVisibleIndex:_t})},at}return Object(T.a)(et,[{key:"componentDidMount",value:function(){var Pe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Xe=le.findDOMNode(this);if(!Xe)return;this.resizeObserver=new $.default(function(ht){ht.forEach(function(){var _t=Pe.cancelFrameId;cancelAnimationFrame(_t),Pe.cancelFrameId=requestAnimationFrame(Pe.setChildrenWidthAndResize)})}),[].slice.call(Xe.children).concat(Xe).forEach(function(ht){Pe.resizeObserver.observe(ht)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Pe.resizeObserver.disconnect(),[].slice.call(Xe.children).concat(Xe).forEach(function(ht){Pe.resizeObserver.observe(ht)}),Pe.setChildrenWidthAndResize()}),this.mutationObserver.observe(Xe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Pe){var Xe=this,ht=this.state.lastVisibleIndex;return(Pe||[]).reduce(function(_t,Ot,Nt){var ut=Ot;if(Xe.props.mode==="horizontal"){var Ft=Xe.getOverflowedSubMenuItem(Ot.props.eventKey,[]);ht!==void 0&&Xe.props.className.indexOf("".concat(Xe.props.prefixCls,"-root"))!==-1&&(Nt>ht&&(ut=O.cloneElement(Ot,{style:{display:"none"},eventKey:"".concat(Ot.props.eventKey,"-hidden"),className:"".concat(tt)})),Nt===ht+1&&(Xe.overflowedItems=Pe.slice(ht+1).map(function(on){return O.cloneElement(on,{key:on.props.eventKey,mode:"vertical-left"})}),Ft=Xe.getOverflowedSubMenuItem(Ot.props.eventKey,Xe.overflowedItems)));var It=[].concat(Object(Ee.a)(_t),[Ft,ut]);return Nt===Pe.length-1&&It.push(Xe.getOverflowedSubMenuItem(Ot.props.eventKey,[],!0)),It}return[].concat(Object(Ee.a)(_t),[ut])},[])}},{key:"render",value:function(){var Pe=this.props,Xe=Pe.visible,ht=Pe.prefixCls,_t=Pe.overflowedIndicator,Ot=Pe.mode,Nt=Pe.level,ut=Pe.tag,Ft=Pe.children,It=Pe.theme,on=Object(ue.a)(Pe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),mn=ut;return O.createElement(mn,Object.assign({},on),this.renderChildren(Ft))}}]),et}(O.Component);mt.defaultProps={tag:"div",className:""};var vt=mt;function Et(Ct){return Ct.length?Ct.every(function(Ke){return!!Ke.props.disabled}):!0}function Ye(Ct,Ke,et){var at=Ct.getState();Ct.setState({activeKey:Object(P.a)(Object(P.a)({},at.activeKey),{},Object(a.a)({},Ke,et))})}function Ue(Ct){return Ct.eventKey||"0-menu-"}function ft(Ct,Ke){var et=Ke,at=Ct.children,Pe=Ct.eventKey;if(et){var Xe;if(he(at,function(ht,_t){ht&&ht.props&&!ht.props.disabled&&et===K(ht,Pe,_t)&&(Xe=!0)}),Xe)return et}return et=null,Ct.defaultActiveFirst&&he(at,function(ht,_t){!et&&ht&&!ht.props.disabled&&(et=K(ht,Pe,_t))}),et}function jt(Ct){if(Ct){var Ke=this.instanceArray.indexOf(Ct);Ke!==-1?this.instanceArray[Ke]=Ct:this.instanceArray.push(Ct)}}var yt=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(at){var Pe;return Object(g.a)(this,et),Pe=Ke.call(this,at),Pe.onKeyDown=function(Xe,ht){var _t=Xe.keyCode,Ot;if(Pe.getFlatInstanceArray().forEach(function(ut){ut&&ut.props.active&&ut.onKeyDown&&(Ot=ut.onKeyDown(Xe))}),Ot)return 1;var Nt=null;return(_t===u.a.UP||_t===u.a.DOWN)&&(Nt=Pe.step(_t===u.a.UP?-1:1)),Nt?(Xe.preventDefault(),Ye(Pe.props.store,Ue(Pe.props),Nt.props.eventKey),typeof ht=="function"&&ht(Nt),1):void 0},Pe.onItemHover=function(Xe){var ht=Xe.key,_t=Xe.hover;Ye(Pe.props.store,Ue(Pe.props),_t?ht:null)},Pe.onDeselect=function(Xe){Pe.props.onDeselect(Xe)},Pe.onSelect=function(Xe){Pe.props.onSelect(Xe)},Pe.onClick=function(Xe){Pe.props.onClick(Xe)},Pe.onOpenChange=function(Xe){Pe.props.onOpenChange(Xe)},Pe.onDestroy=function(Xe){Pe.props.onDestroy(Xe)},Pe.getFlatInstanceArray=function(){return Pe.instanceArray},Pe.step=function(Xe){var ht=Pe.getFlatInstanceArray(),_t=Pe.props.store.getState().activeKey[Ue(Pe.props)],Ot=ht.length;if(!Ot)return null;Xe<0&&(ht=ht.concat().reverse());var Nt=-1;if(ht.every(function(on,mn){return on&&on.props.eventKey===_t?(Nt=mn,!1):!0}),!Pe.props.defaultActiveFirst&&Nt!==-1&&Et(ht.slice(Nt,Ot-1)))return;var ut=(Nt+1)%Ot,Ft=ut;do{var It=ht[Ft];if(!It||It.props.disabled)Ft=(Ft+1)%Ot;else return It}while(Ft!==ut);return null},Pe.renderCommonMenuItem=function(Xe,ht,_t){var Ot=Pe.props.store.getState(),Nt=Object(b.a)(Pe),ut=Nt.props,Ft=K(Xe,ut.eventKey,ht),It=Xe.props;if(!It||typeof Xe.type=="string")return Xe;var on=Ft===Ot.activeKey,mn=Object(P.a)(Object(P.a)({mode:It.mode||ut.mode,level:ut.level,inlineIndent:ut.inlineIndent,renderMenuItem:Pe.renderMenuItem,rootPrefixCls:ut.prefixCls,index:ht,parentMenu:ut.parentMenu,manualRef:It.disabled?void 0:Object(r.a)(Xe.ref,jt.bind(Object(b.a)(Pe))),eventKey:Ft,active:!It.disabled&&on,multiple:ut.multiple,onClick:function(Xn){(It.onClick||I)(Xn),Pe.onClick(Xn)},onItemHover:Pe.onItemHover,motion:ut.motion,subMenuOpenDelay:ut.subMenuOpenDelay,subMenuCloseDelay:ut.subMenuCloseDelay,forceSubMenuRender:ut.forceSubMenuRender,onOpenChange:Pe.onOpenChange,onDeselect:Pe.onDeselect,onSelect:Pe.onSelect,builtinPlacements:ut.builtinPlacements,itemIcon:It.itemIcon||Pe.props.itemIcon,expandIcon:It.expandIcon||Pe.props.expandIcon},_t),{},{direction:ut.direction});return(ut.mode==="inline"||be())&&(mn.triggerSubMenuAction="click"),O.cloneElement(Xe,mn)},Pe.renderMenuItem=function(Xe,ht,_t){if(!Xe)return null;var Ot=Pe.props.store.getState(),Nt={openKeys:Ot.openKeys,selectedKeys:Ot.selectedKeys,triggerSubMenuAction:Pe.props.triggerSubMenuAction,subMenuKey:_t};return Pe.renderCommonMenuItem(Xe,ht,Nt)},at.store.setState({activeKey:Object(P.a)(Object(P.a)({},at.store.getState().activeKey),{},Object(a.a)({},at.eventKey,ft(at,at.activeKey)))}),Pe.instanceArray=[],Pe}return Object(T.a)(et,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Pe){return this.props.visible||Pe.visible||this.props.className!==Pe.className||!n()(this.props.style,Pe.style)}},{key:"componentDidUpdate",value:function(Pe){var Xe=this.props,ht="activeKey"in Xe?Xe.activeKey:Xe.store.getState().activeKey[Ue(Xe)],_t=ft(Xe,ht);if(_t!==ht)Ye(Xe.store,Ue(Xe),_t);else if("activeKey"in Pe){var Ot=ft(Pe,Pe.activeKey);_t!==Ot&&Ye(Xe.store,Ue(Xe),_t)}}},{key:"render",value:function(){var Pe=this,Xe=Object(f.a)({},this.props);this.instanceArray=[];var ht=h()(Xe.prefixCls,Xe.className,"".concat(Xe.prefixCls,"-").concat(Xe.mode)),_t={className:ht,role:Xe.role||"menu"};Xe.id&&(_t.id=Xe.id),Xe.focusable&&(_t.tabIndex=0,_t.onKeyDown=this.onKeyDown);var Ot=Xe.prefixCls,Nt=Xe.eventKey,ut=Xe.visible,Ft=Xe.level,It=Xe.mode,on=Xe.overflowedIndicator,mn=Xe.theme;return Se.forEach(function(Hn){return delete Xe[Hn]}),delete Xe.onClick,O.createElement(vt,Object.assign({},Xe,{prefixCls:Ot,mode:It,tag:"ul",level:Ft,theme:mn,visible:ut,overflowedIndicator:on},_t),O.Children.map(Xe.children,function(Hn,Xn){return Pe.renderMenuItem(Hn,Xn,Nt||"0-menu-")}))}}]),et}(O.Component);yt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:I};var Pt=Object(m.b)()(yt),it=Pt,He=o("Kwbf");function Ge(Ct,Ke,et){var at=Ct.prefixCls,Pe=Ct.motion,Xe=Ct.defaultMotions,ht=Xe===void 0?{}:Xe,_t=Ct.openAnimation,Ot=Ct.openTransitionName,Nt=Ke.switchingModeFromInline;if(Pe)return Pe;if(Object(d.a)(_t)==="object"&&_t)Object(He.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof _t=="string")return{motionName:"".concat(at,"-open-").concat(_t)};if(Ot)return{motionName:Ot};var ut=ht[et];return ut||(Nt?null:ht.other)}var Ce=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(at){var Pe;Object(g.a)(this,et),Pe=Ke.call(this,at),Pe.inlineOpenKeys=[],Pe.onSelect=function(_t){var Ot=Object(b.a)(Pe),Nt=Ot.props;if(Nt.selectable){var ut=Pe.store.getState(),Ft=ut.selectedKeys,It=_t.key;Nt.multiple?Ft=Ft.concat([It]):Ft=[It],"selectedKeys"in Nt||Pe.store.setState({selectedKeys:Ft}),Nt.onSelect(Object(P.a)(Object(P.a)({},_t),{},{selectedKeys:Ft}))}},Pe.onClick=function(_t){var Ot=Pe.getRealMenuMode(),Nt=Object(b.a)(Pe),ut=Nt.store,Ft=Nt.props.onOpenChange;Ot!=="inline"&&!("openKeys"in Pe.props)&&(ut.setState({openKeys:[]}),Ft([])),Pe.props.onClick(_t)},Pe.onKeyDown=function(_t,Ot){Pe.innerMenu.getWrappedInstance().onKeyDown(_t,Ot)},Pe.onOpenChange=function(_t){var Ot=Object(b.a)(Pe),Nt=Ot.props,ut=Pe.store.getState().openKeys.concat(),Ft=!1,It=function(mn){var Hn=!1;if(mn.open)Hn=ut.indexOf(mn.key)===-1,Hn&&ut.push(mn.key);else{var Xn=ut.indexOf(mn.key);Hn=Xn!==-1,Hn&&ut.splice(Xn,1)}Ft=Ft||Hn};Array.isArray(_t)?_t.forEach(It):It(_t),Ft&&("openKeys"in Pe.props||Pe.store.setState({openKeys:ut}),Nt.onOpenChange(ut))},Pe.onDeselect=function(_t){var Ot=Object(b.a)(Pe),Nt=Ot.props;if(Nt.selectable){var ut=Pe.store.getState().selectedKeys.concat(),Ft=_t.key,It=ut.indexOf(Ft);It!==-1&&ut.splice(It,1),"selectedKeys"in Nt||Pe.store.setState({selectedKeys:ut}),Nt.onDeselect(Object(P.a)(Object(P.a)({},_t),{},{selectedKeys:ut}))}},Pe.onMouseEnter=function(_t){Pe.restoreModeVerticalFromInline();var Ot=Pe.props.onMouseEnter;Ot&&Ot(_t)},Pe.onTransitionEnd=function(_t){var Ot=_t.propertyName==="width"&&_t.target===_t.currentTarget,Nt=_t.target.className,ut=Object.prototype.toString.call(Nt)==="[object SVGAnimatedString]"?Nt.animVal:Nt,Ft=_t.propertyName==="font-size"&&ut.indexOf("anticon")>=0;(Ot||Ft)&&Pe.restoreModeVerticalFromInline()},Pe.setInnerMenu=function(_t){Pe.innerMenu=_t},Pe.isRootMenu=!0;var Xe=at.defaultSelectedKeys,ht=at.defaultOpenKeys;return"selectedKeys"in at&&(Xe=at.selectedKeys||[]),"openKeys"in at&&(ht=at.openKeys||[]),Pe.store=Object(m.c)({selectedKeys:Xe,openKeys:ht,activeKey:{"0-menu-":ft(at,at.activeKey)}}),Pe.state={switchingModeFromInline:!1},Pe}return Object(T.a)(et,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Pe){this.updateOpentKeysWhenSwitchMode(Pe),this.updateMiniStore();var Xe=this.props,ht=Xe.siderCollapsed,_t=Xe.inlineCollapsed,Ot=Xe.onOpenChange;(!Pe.inlineCollapsed&&_t||!Pe.siderCollapsed&&ht)&&Ot([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Pe){var Xe=this.props,ht=this.store,_t=this.inlineOpenKeys,Ot=ht.getState(),Nt={};Pe.mode==="inline"&&Xe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Xe||((Xe.inlineCollapsed&&!Pe.inlineCollapsed||Xe.siderCollapsed&&!Pe.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Ot.openKeys.concat(),Nt.openKeys=[]),(!Xe.inlineCollapsed&&Pe.inlineCollapsed||!Xe.siderCollapsed&&Pe.siderCollapsed)&&(Nt.openKeys=_t,this.inlineOpenKeys=[])),Object.keys(Nt).length&&ht.setState(Nt)}},{key:"updateMenuDisplay",value:function(){var Pe=this.props.collapsedWidth,Xe=this.store,ht=this.prevOpenKeys,_t=this.getInlineCollapsed()&&(Pe===0||Pe==="0"||Pe==="0px");_t?(this.prevOpenKeys=Xe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ht&&(this.store.setState({openKeys:ht}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Pe=this.props.mode,Xe=this.state.switchingModeFromInline,ht=this.getInlineCollapsed();return Xe&&ht?"inline":ht?"vertical":Pe}},{key:"getInlineCollapsed",value:function(){var Pe=this.props,Xe=Pe.inlineCollapsed,ht=Pe.siderCollapsed;return ht!==void 0?ht:Xe}},{key:"restoreModeVerticalFromInline",value:function(){var Pe=this.state.switchingModeFromInline;Pe&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Pe=Object(P.a)({},Object(e.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Xe=this.getRealMenuMode();return Pe.className+=" ".concat(Pe.prefixCls,"-root"),Pe.direction==="rtl"&&(Pe.className+=" ".concat(Pe.prefixCls,"-rtl")),Pe=Object(P.a)(Object(P.a)({},Pe),{},{mode:Xe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ge(this.props,this.state,Xe)}),delete Pe.openAnimation,delete Pe.openTransitionName,O.createElement(m.a,{store:this.store},O.createElement(it,Object.assign({},Pe,{ref:this.setInnerMenu}),this.props.children))}}]),et}(O.Component);Ce.defaultProps={selectable:!0,onClick:I,onSelect:I,onOpenChange:I,onDeselect:I,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:O.createElement("span",null,"\xB7\xB7\xB7")};var Ie=Ce,Fe=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(){var at;return Object(g.a)(this,et),at=Ke.apply(this,arguments),at.onKeyDown=function(Pe){var Xe=Pe.keyCode;return Xe===u.a.ENTER?(at.onClick(Pe),!0):void 0},at.onMouseLeave=function(Pe){var Xe=at.props,ht=Xe.eventKey,_t=Xe.onItemHover,Ot=Xe.onMouseLeave;_t({key:ht,hover:!1}),Ot({key:ht,domEvent:Pe})},at.onMouseEnter=function(Pe){var Xe=at.props,ht=Xe.eventKey,_t=Xe.onItemHover,Ot=Xe.onMouseEnter;_t({key:ht,hover:!0}),Ot({key:ht,domEvent:Pe})},at.onClick=function(Pe){var Xe=at.props,ht=Xe.eventKey,_t=Xe.multiple,Ot=Xe.onClick,Nt=Xe.onSelect,ut=Xe.onDeselect,Ft=Xe.isSelected,It={key:ht,keyPath:[ht],item:Object(b.a)(at),domEvent:Pe};Ot(It),_t?Ft?ut(It):Nt(It):Ft||Nt(It)},at.saveNode=function(Pe){at.node=Pe},at}return Object(T.a)(et,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Pe=this.props;Pe.onDestroy&&Pe.onDestroy(Pe.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Pe,Xe=Object(P.a)({},this.props),ht=h()(this.getPrefixCls(),Xe.className,(Pe={},Object(a.a)(Pe,this.getActiveClassName(),!Xe.disabled&&Xe.active),Object(a.a)(Pe,this.getSelectedClassName(),Xe.isSelected),Object(a.a)(Pe,this.getDisabledClassName(),Xe.disabled),Pe)),_t=Object(P.a)(Object(P.a)({},Xe.attribute),{},{title:typeof Xe.title=="string"?Xe.title:void 0,className:ht,role:Xe.role||"menuitem","aria-disabled":Xe.disabled});Xe.role==="option"?_t=Object(P.a)(Object(P.a)({},_t),{},{role:"option","aria-selected":Xe.isSelected}):(Xe.role===null||Xe.role==="none")&&(_t.role="none");var Ot={onClick:Xe.disabled?null:this.onClick,onMouseLeave:Xe.disabled?null:this.onMouseLeave,onMouseEnter:Xe.disabled?null:this.onMouseEnter},Nt=Object(P.a)({},Xe.style);Xe.mode==="inline"&&(Xe.direction==="rtl"?Nt.paddingRight=Xe.inlineIndent*Xe.level:Nt.paddingLeft=Xe.inlineIndent*Xe.level),Se.forEach(function(Ft){return delete Xe[Ft]}),delete Xe.direction;var ut=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ut=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object.assign({},Object(e.default)(Xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),_t,Ot,{style:Nt,ref:this.saveNode}),Xe.children,ut)}}]),et}(O.Component);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:I,onMouseEnter:I,onMouseLeave:I,manualRef:I};var Be=Object(m.b)(function(Ct,Ke){var et=Ct.activeKey,at=Ct.selectedKeys,Pe=Ke.eventKey,Xe=Ke.subMenuKey;return{active:et[Xe]===Pe,isSelected:at.indexOf(Pe)!==-1}})(Fe),We=Be,st=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(){var at;return Object(g.a)(this,et),at=Ke.apply(this,arguments),at.renderInnerMenuItem=function(Pe){var Xe=at.props,ht=Xe.renderMenuItem,_t=Xe.index;return ht(Pe,_t,at.props.subMenuKey)},at}return Object(T.a)(et,[{key:"render",value:function(){var Pe=Object(f.a)({},this.props),Xe=Pe.className,ht=Xe===void 0?"":Xe,_t=Pe.rootPrefixCls,Ot="".concat(_t,"-item-group-title"),Nt="".concat(_t,"-item-group-list"),ut=Pe.title,Ft=Pe.children;return Se.forEach(function(It){return delete Pe[It]}),delete Pe.onClick,delete Pe.direction,O.createElement("li",Object.assign({},Pe,{className:"".concat(ht," ").concat(_t,"-item-group")}),O.createElement("div",{className:Ot,title:typeof ut=="string"?ut:void 0},ut),O.createElement("ul",{className:Nt},O.Children.map(Ft,this.renderInnerMenuItem)))}}]),et}(O.Component);st.isMenuItemGroup=!0,st.defaultProps={disabled:!0};var Dt=st,Ht=function(Ke){var et=Ke.className,at=Ke.rootPrefixCls,Pe=Ke.style;return O.createElement("li",{className:"".concat(et," ").concat(at,"-item-divider"),style:Pe})};Ht.defaultProps={disabled:!0,className:"",style:{}};var rn=Ht,Bt=z.e=Ie},"1nVM":function(k,z,o){k.exports={titlesize:"titlesize___3R6Gt",wrap:"wrap___33HQq",labelWrap:"labelWrap___1iqwF",label:"label___27cm-",labelContent:"labelContent___1fVMu",flexRow:"flexRow___PEsIJ",color999:"color999___2Yr8Q",radio:"radio___OcreT",color0152d9:"color0152d9___1FV6h",popover:"popover___2xk-c",serviceSettingName:"serviceSettingName___Ld9Mm",flexJustifyCenter:"flexJustifyCenter___18x9a",flexAlignEnd:"flexAlignEnd___1C-X3",flexAlignCenter:"flexAlignCenter___2oSmu",flexColumn:"flexColumn___2ysFR",formWrap:"formWrap___EPA-v",titleWrap:"titleWrap___3_rFr",fieldWrap:"fieldWrap___2jAZP",button:"button___3XvNW",buttonFixed:"buttonFixed___2Zm2R",buttonWrap:"buttonWrap___1OYLR",width180:"width180___jK9Il",width100:"width100___3krQH",width280:"width280___2XLRF",difficultyHint:"difficultyHint___haMiD",color888:"color888___N5haY",serviceSettingWrap:"serviceSettingWrap___2mA8Y",serviceSetLeft:"serviceSetLeft___15ZiZ",serviceSetInput:"serviceSetInput___1xV8R",serviceSetMemoryInput:"serviceSetMemoryInput___1b9Wn",serviceSetTip:"serviceSetTip___3OSZX",installPackage:"installPackage___2Q149",selectSchool:"selectSchool___3jjwJ",dataPicker:"dataPicker___3FMTF",bg:"bg___SWlll",content:"content___3UkVO",head:"head___35V3S",headCount:"headCount___2pjjr",itemWrap:"itemWrap___1yg5K",imgWrap:"imgWrap___R0ss7",img:"img___VI1B8",manager:"manager___8Zuo9",itemContent:"itemContent___2pnzz",nameWrap:"nameWrap___3Ntoy",name:"name___3v0W9",actionGroup:"actionGroup___nzwV5",deleteIcon:"deleteIcon___tZStC",schoolWrap:"schoolWrap___qVkuP",school:"school___2WDSB",countWrap:"countWrap___1ZPyo",deletetitle:"deletetitle___3PnVP",yseTitle:"yseTitle___2rGJC",modal:"modal___TzuWu",colorOrange:"colorOrange___WAQOi",colorYellow:"colorYellow___giatj",graaytitle:"graaytitle___1xud8",graaymingl:"graaymingl___KdIA9",graayminglthree:"graayminglthree___1To0y",graaymingltow:"graaymingltow___2ZE_h"}},"1uat":function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("MlIO"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.Hasher,y=g.x64,x=y.Word,O=y.WordArray,m=g.algo;function e(){return x.create.apply(x,arguments)}var f=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],a=[];(function(){for(var r=0;r<80;r++)a[r]=e()})();var u=m.SHA512=b.extend({_doReset:function(){this._hash=new O.init([new x.init(1779033703,4089235720),new x.init(3144134277,2227873595),new x.init(1013904242,4271175723),new x.init(2773480762,1595750129),new x.init(1359893119,2917565137),new x.init(2600822924,725511199),new x.init(528734635,4215389547),new x.init(1541459225,327033209)])},_doProcessBlock:function(r,i){for(var n=this._hash.words,l=n[0],h=n[1],d=n[2],s=n[3],c=n[4],w=n[5],E=n[6],v=n[7],R=l.high,M=l.low,C=h.high,S=h.low,_=d.high,A=d.low,U=s.high,L=s.low,N=c.high,V=c.low,H=w.high,D=w.low,W=E.high,F=E.low,I=v.high,K=v.low,ee=R,he=M,de=C,Se=S,Te=_,ce=A,be=U,Ee=L,ue=N,le=V,$=H,me=D,re=W,ae=F,Oe=I,se=K,te=0;te<80;te++){var Q,J,ve=a[te];if(te<16)J=ve.high=r[i+te*2]|0,Q=ve.low=r[i+te*2+1]|0;else{var _e=a[te-15],Ae=_e.high,Qe=_e.low,tt=(Ae>>>1|Qe<<31)^(Ae>>>8|Qe<<24)^Ae>>>7,dt=(Qe>>>1|Ae<<31)^(Qe>>>8|Ae<<24)^(Qe>>>7|Ae<<25),mt=a[te-2],vt=mt.high,Et=mt.low,Ye=(vt>>>19|Et<<13)^(vt<<3|Et>>>29)^vt>>>6,Ue=(Et>>>19|vt<<13)^(Et<<3|vt>>>29)^(Et>>>6|vt<<26),ft=a[te-7],jt=ft.high,yt=ft.low,Pt=a[te-16],it=Pt.high,He=Pt.low;Q=dt+yt,J=tt+jt+(Q>>>0
      >>0?1:0),Q=Q+Ue,J=J+Ye+(Q>>>0>>0?1:0),Q=Q+He,J=J+it+(Q>>>0>>0?1:0),ve.high=J,ve.low=Q}var Ge=ue&$^~ue&re,Ce=le&me^~le&ae,Ie=ee&de^ee&Te^de&Te,Fe=he&Se^he&ce^Se&ce,Be=(ee>>>28|he<<4)^(ee<<30|he>>>2)^(ee<<25|he>>>7),We=(he>>>28|ee<<4)^(he<<30|ee>>>2)^(he<<25|ee>>>7),st=(ue>>>14|le<<18)^(ue>>>18|le<<14)^(ue<<23|le>>>9),Dt=(le>>>14|ue<<18)^(le>>>18|ue<<14)^(le<<23|ue>>>9),Ht=f[te],rn=Ht.high,Bt=Ht.low,Ct=se+Dt,Ke=Oe+st+(Ct>>>0>>0?1:0),Ct=Ct+Ce,Ke=Ke+Ge+(Ct>>>0>>0?1:0),Ct=Ct+Bt,Ke=Ke+rn+(Ct>>>0>>0?1:0),Ct=Ct+Q,Ke=Ke+J+(Ct>>>0>>0?1:0),et=We+Fe,at=Be+Ie+(et>>>0>>0?1:0);Oe=re,se=ae,re=$,ae=me,$=ue,me=le,le=Ee+Ct|0,ue=be+Ke+(le>>>0>>0?1:0)|0,be=Te,Ee=ce,Te=de,ce=Se,de=ee,Se=he,he=Ct+et|0,ee=Ke+at+(he>>>0>>0?1:0)|0}M=l.low=M+he,l.high=R+ee+(M>>>0>>0?1:0),S=h.low=S+Se,h.high=C+de+(S>>>0>>0?1:0),A=d.low=A+ce,d.high=_+Te+(A>>>0>>0?1:0),L=s.low=L+Ee,s.high=U+be+(L>>>0>>0?1:0),V=c.low=V+le,c.high=N+ue+(V>>>0>>0?1:0),D=w.low=D+me,w.high=H+$+(D>>>0>>0?1:0),F=E.low=F+ae,E.high=W+re+(F>>>0>>0?1:0),K=v.low=K+se,v.high=I+Oe+(K>>>0>>0?1:0)},_doFinalize:function(){var r=this._data,i=r.words,n=this._nDataBytes*8,l=r.sigBytes*8;i[l>>>5]|=128<<24-l%32,i[(l+128>>>10<<5)+30]=Math.floor(n/4294967296),i[(l+128>>>10<<5)+31]=n,r.sigBytes=i.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var r=b.clone.call(this);return r._hash=this._hash.clone(),r},blockSize:1024/32});g.SHA512=b._createHelper(u),g.HmacSHA512=b._createHmacHelper(u)}(),P.SHA512})},"24hK":function(k,z,o){"use strict";o.d(z,"a",function(){return g});class P{constructor(T){this.element=T,this.next=P.Undefined,this.prev=P.Undefined}}P.Undefined=new P(void 0);class g{constructor(){this._first=P.Undefined,this._last=P.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===P.Undefined}clear(){let T=this._first;for(;T!==P.Undefined;){const b=T.next;T.prev=P.Undefined,T.next=P.Undefined,T=b}this._first=P.Undefined,this._last=P.Undefined,this._size=0}unshift(T){return this._insert(T,!1)}push(T){return this._insert(T,!0)}_insert(T,b){const y=new P(T);if(this._first===P.Undefined)this._first=y,this._last=y;else if(b){const O=this._last;this._last=y,y.prev=O,O.next=y}else{const O=this._first;this._first=y,y.next=O,O.prev=y}this._size+=1;let x=!1;return()=>{x||(x=!0,this._remove(y))}}shift(){if(this._first===P.Undefined)return;{const T=this._first.element;return this._remove(this._first),T}}pop(){if(this._last===P.Undefined)return;{const T=this._last.element;return this._remove(this._last),T}}_remove(T){if(T.prev!==P.Undefined&&T.next!==P.Undefined){const b=T.prev;b.next=T.next,T.next.prev=b}else T.prev===P.Undefined&&T.next===P.Undefined?(this._first=P.Undefined,this._last=P.Undefined):T.next===P.Undefined?(this._last=this._last.prev,this._last.next=P.Undefined):T.prev===P.Undefined&&(this._first=this._first.next,this._first.prev=P.Undefined);this._size-=1}*[Symbol.iterator](){let T=this._first;for(;T!==P.Undefined;)yield T.element,T=T.next}}},"3/fG":function(k,z,o){"use strict";o.d(z,"a",function(){return g});function P(T,b){let y;return b.length===0?y=T:y=T.replace(/\{(\d+)\}/g,function(x,O){const m=O[0];return typeof b[m]!="undefined"?b[m]:x}),y}function g(T,b,...y){return P(b,y)}},"3d99":function(k,z,o){k.exports={flex_box_center:"flex_box_center___29402",flex_space_between:"flex_space_between___1DQkL",flex_box_vertical_center:"flex_box_vertical_center___2c5rw",flex_box_center_end:"flex_box_center_end___31UwQ",flex_box_column:"flex_box_column___27HfP",dataset:"dataset___1COtX",header:"header___3oVtK",title:"title___pTdL6",dataPath:"dataPath___2IjLi",pathTitle:"pathTitle___3y3r0",btns:"btns___3HrP1",content:"content___2DtrV",customTable:"customTable____cu3-",row:"row___18XmF",empty:"empty___1WFDJ",path:"path___2fzVn",text:"text___5NWvD",actionsBtns:"actionsBtns___YB-ud",customModal:"customModal___S24dW",shareModal:"shareModal___1fTc3",fileName:"fileName___3b0gK",renameModal:"renameModal___3antI",errorDes:"errorDes___3PXc9",uploadFileModal:"uploadFileModal___3cGWq"}},"3wET":function(k,z){k.exports="data:image/png;base64,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"},"3y9D":function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=T.Hasher,x=g.algo,O=[],m=x.SHA1=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,f){for(var a=this._hash.words,u=a[0],r=a[1],i=a[2],n=a[3],l=a[4],h=0;h<80;h++){if(h<16)O[h]=e[f+h]|0;else{var d=O[h-3]^O[h-8]^O[h-14]^O[h-16];O[h]=d<<1|d>>>31}var s=(u<<5|u>>>27)+l+O[h];h<20?s+=(r&i|~r&n)+1518500249:h<40?s+=(r^i^n)+1859775393:h<60?s+=(r&i|r&n|i&n)-1894007588:s+=(r^i^n)-899497514,l=n,n=i,i=r<<30|r>>>2,r=u,u=s}a[0]=a[0]+u|0,a[1]=a[1]+r|0,a[2]=a[2]+i|0,a[3]=a[3]+n|0,a[4]=a[4]+l|0},_doFinalize:function(){var e=this._data,f=e.words,a=this._nDataBytes*8,u=e.sigBytes*8;return f[u>>>5]|=128<<24-u%32,f[(u+64>>>9<<4)+14]=Math.floor(a/4294967296),f[(u+64>>>9<<4)+15]=a,e.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var e=y.clone.call(this);return e._hash=this._hash.clone(),e}});g.SHA1=y._createHelper(m),g.HmacSHA1=y._createHmacHelper(m)}(),P.SHA1})},4:function(k,z){},"498V":function(k,z,o){k.exports=o.p+"static/logo.22b9a281.svg"},"4SAo":function(k,z,o){k.exports={footerWrap:"footerWrap___2ePEu"}},"4qgm":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(k,z){k.exports="data:image/png;base64,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"},"55Ip":function(k,z,o){"use strict";o.d(z,"a",function(){return s});var P=o("Ty5D"),g=o("dI71"),T=o("q1tI"),b=o.n(T),y=o("YS25"),x=o("17x9"),O=o.n(x),m=o("wx14"),e=o("zLVn"),f=o("9R94"),a=function(S){Object(g.a)(_,S);function _(){for(var U,L=arguments.length,N=new Array(L),V=0;V>>24)&16711935|(c<<24|c>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var E=h[s];E.high^=w,E.low^=c}for(var v=0;v<24;v++){for(var R=0;R<5;R++){for(var M=0,C=0,S=0;S<5;S++){var E=h[R+5*S];M^=E.high,C^=E.low}var _=r[R];_.high=M,_.low=C}for(var R=0;R<5;R++)for(var A=r[(R+4)%5],U=r[(R+1)%5],L=U.high,N=U.low,M=A.high^(L<<1|N>>>31),C=A.low^(N<<1|L>>>31),S=0;S<5;S++){var E=h[R+5*S];E.high^=M,E.low^=C}for(var V=1;V<25;V++){var M,C,E=h[V],H=E.high,D=E.low,W=f[V];W<32?(M=H<>>32-W,C=D<>>32-W):(M=D<>>64-W,C=H<>>64-W);var F=r[a[V]];F.high=M,F.low=C}var I=r[0],K=h[0];I.high=K.high,I.low=K.low;for(var R=0;R<5;R++)for(var S=0;S<5;S++){var V=R+5*S,E=h[V],ee=r[V],he=r[(R+1)%5+5*S],de=r[(R+2)%5+5*S];E.high=ee.high^~he.high&de.high,E.low=ee.low^~he.low&de.low}var E=h[0],Se=u[v];E.high^=Se.high,E.low^=Se.low}},_doFinalize:function(){var n=this._data,l=n.words,h=this._nDataBytes*8,d=n.sigBytes*8,s=this.blockSize*32;l[d>>>5]|=1<<24-d%32,l[(g.ceil((d+1)/s)*s>>>5)-1]|=128,n.sigBytes=l.length*4,this._process();for(var c=this._state,w=this.cfg.outputLength/8,E=w/8,v=[],R=0;R>>24)&16711935|(C<<24|C>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,v.push(S),v.push(C)}return new y.init(v,w)},clone:function(){for(var n=x.clone.call(this),l=n._state=this._state.slice(0),h=0;h<25;h++)l[h]=l[h].clone();return n}});T.SHA3=x._createHelper(i),T.HmacSHA3=x._createHmacHelper(i)}(Math),P.SHA3})},"6+eU":function(k,z,o){"use strict";o.d(z,"a",function(){return v});var P=o("wx14"),g=o("rePB"),T=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),x=o("Ji7U"),O=o("LK+K"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),u=function(M){var C,S="".concat(M.rootPrefixCls,"-item"),_=a()(S,"".concat(S,"-").concat(M.page),(C={},Object(g.a)(C,"".concat(S,"-active"),M.active),Object(g.a)(C,M.className,!!M.className),Object(g.a)(C,"".concat(S,"-disabled"),!M.page),C)),A=function(){M.onClick(M.page)},U=function(N){M.onKeyPress(N,M.onClick,M.page)};return e.a.createElement("li",{title:M.showTitle?M.page:null,className:_,onClick:A,onKeyPress:U,tabIndex:"0"},M.itemRender(M.page,"page",e.a.createElement("a",{rel:"nofollow"},M.page)))},r=u,i={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},n=function(R){Object(x.a)(C,R);var M=Object(O.a)(C);function C(){var S;Object(b.a)(this,C);for(var _=arguments.length,A=new Array(_),U=0;U<_;U++)A[U]=arguments[U];return S=M.call.apply(M,[this].concat(A)),S.state={goInputText:""},S.buildOptionText=function(L){return"".concat(L," ").concat(S.props.locale.items_per_page)},S.changeSize=function(L){S.props.changeSize(Number(L))},S.handleChange=function(L){S.setState({goInputText:L.target.value})},S.handleBlur=function(L){var N=S.props,V=N.goButton,H=N.quickGo,D=N.rootPrefixCls,W=S.state.goInputText;if(V||W==="")return;if(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(D,"-prev"))>=0||L.relatedTarget.className.indexOf("".concat(D,"-next"))>=0))return;S.setState({goInputText:""}),H(S.getValidValue())},S.go=function(L){var N=S.state.goInputText;if(N==="")return;(L.keyCode===i.ENTER||L.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(y.a)(C,[{key:"getValidValue",value:function(){var _=this.state,A=_.goInputText,U=_.current;return!A||isNaN(A)?U:Number(A)}},{key:"getPageSizeOptions",value:function(){var _=this.props,A=_.pageSize,U=_.pageSizeOptions;return U.some(function(L){return L.toString()===A.toString()})?U:U.concat([A.toString()]).sort(function(L,N){var V=isNaN(Number(L))?0:Number(L),H=isNaN(Number(N))?0:Number(N);return V-H})}},{key:"render",value:function(){var _=this,A=this.props,U=A.pageSize,L=A.locale,N=A.rootPrefixCls,V=A.changeSize,H=A.quickGo,D=A.goButton,W=A.selectComponentClass,F=A.buildOptionText,I=A.selectPrefixCls,K=A.disabled,ee=this.state.goInputText,he="".concat(N,"-options"),de=W,Se=null,Te=null,ce=null;if(!V&&!H)return null;var be=this.getPageSizeOptions();if(V&&de){var Ee=be.map(function(ue,le){return e.a.createElement(de.Option,{key:le,value:ue.toString()},(F||_.buildOptionText)(ue))});Se=e.a.createElement(de,{disabled:K,prefixCls:I,showSearch:!1,className:"".concat(he,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(U||be[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},Ee)}return H&&(D&&(ce=typeof D=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(he,"-quick-jumper-button")},L.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},D)),Te=e.a.createElement("div",{className:"".concat(he,"-quick-jumper")},L.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),L.page,ce)),e.a.createElement("li",{className:"".concat(he)},Se,Te)}}]),C}(e.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=n,h=o("N2Kk");function d(){}function s(R){return typeof R=="number"&&isFinite(R)&&Math.floor(R)===R}function c(R,M,C){return C}function w(R,M,C){var S=typeof R=="undefined"?M.pageSize:R;return Math.floor((C.total-1)/S)+1}var E=function(R){Object(x.a)(C,R);var M=Object(O.a)(C);function C(S){var _;Object(b.a)(this,C),_=M.call(this,S),_.getJumpPrevPage=function(){return Math.max(1,_.state.current-(_.props.showLessItems?3:5))},_.getJumpNextPage=function(){return Math.min(w(void 0,_.state,_.props),_.state.current+(_.props.showLessItems?3:5))},_.getItemIcon=function(V,H){var D=_.props.prefixCls,W=V||e.a.createElement("button",{type:"button","aria-label":H,className:"".concat(D,"-item-link")});return typeof V=="function"&&(W=e.a.createElement(V,Object(T.a)({},_.props))),W},_.savePaginationNode=function(V){_.paginationNode=V},_.isValid=function(V){return s(V)&&V!==_.state.current},_.shouldDisplayQuickJumper=function(){var V=_.props,H=V.showQuickJumper,D=V.pageSize,W=V.total;return W<=D?!1:H},_.handleKeyDown=function(V){(V.keyCode===i.ARROW_UP||V.keyCode===i.ARROW_DOWN)&&V.preventDefault()},_.handleKeyUp=function(V){var H=_.getValidValue(V),D=_.state.currentInputValue;H!==D&&_.setState({currentInputValue:H}),V.keyCode===i.ENTER?_.handleChange(H):V.keyCode===i.ARROW_UP?_.handleChange(H-1):V.keyCode===i.ARROW_DOWN&&_.handleChange(H+1)},_.changePageSize=function(V){var H=_.state.current,D=w(V,_.state,_.props);H=H>D?D:H,D===0&&(H=_.state.current),typeof V=="number"&&("pageSize"in _.props||_.setState({pageSize:V}),"current"in _.props||_.setState({current:H,currentInputValue:H})),_.props.onShowSizeChange(H,V),"onChange"in _.props&&_.props.onChange&&_.props.onChange(H,V)},_.handleChange=function(V){var H=_.props.disabled,D=V;if(_.isValid(D)&&!H){var W=w(void 0,_.state,_.props);D>W?D=W:D<1&&(D=1),"current"in _.props||_.setState({current:D,currentInputValue:D});var F=_.state.pageSize;return _.props.onChange(D,F),D}return _.state.current},_.prev=function(){_.hasPrev()&&_.handleChange(_.state.current-1)},_.next=function(){_.hasNext()&&_.handleChange(_.state.current+1)},_.jumpPrev=function(){_.handleChange(_.getJumpPrevPage())},_.jumpNext=function(){_.handleChange(_.getJumpNextPage())},_.hasPrev=function(){return _.state.current>1},_.hasNext=function(){return _.state.current2?D-2:0),F=2;F=U?N=U:N=Number(A),N}},{key:"getShowSizeChanger",value:function(){var _=this.props,A=_.showSizeChanger,U=_.total,L=_.totalBoundaryShowSizeChanger;return typeof A!="undefined"?A:U>L}},{key:"renderPrev",value:function(_){var A=this.props,U=A.prevIcon,L=A.itemRender,N=L(_,"prev",this.getItemIcon(U,"prev page")),V=!this.hasPrev();return Object(m.isValidElement)(N)?Object(m.cloneElement)(N,{disabled:V}):N}},{key:"renderNext",value:function(_){var A=this.props,U=A.nextIcon,L=A.itemRender,N=L(_,"next",this.getItemIcon(U,"next page")),V=!this.hasNext();return Object(m.isValidElement)(N)?Object(m.cloneElement)(N,{disabled:V}):N}},{key:"render",value:function(){var _=this,A=this.props,U=A.prefixCls,L=A.className,N=A.style,V=A.disabled,H=A.hideOnSinglePage,D=A.total,W=A.locale,F=A.showQuickJumper,I=A.showLessItems,K=A.showTitle,ee=A.showTotal,he=A.simple,de=A.itemRender,Se=A.showPrevNextJumpers,Te=A.jumpPrevIcon,ce=A.jumpNextIcon,be=A.selectComponentClass,Ee=A.selectPrefixCls,ue=A.pageSizeOptions,le=this.state,$=le.current,me=le.pageSize,re=le.currentInputValue;if(H===!0&&D<=me)return null;var ae=w(void 0,this.state,this.props),Oe=[],se=null,te=null,Q=null,J=null,ve=null,_e=F&&F.goButton,Ae=I?1:2,Qe=$-1>0?$-1:0,tt=$+1=Ae*2&&$!==1+2&&(Oe[0]=Object(m.cloneElement)(Oe[0],{className:"".concat(U,"-item-after-jump-prev")}),Oe.unshift(se)),ae-$>=Ae*2&&$!==ae-2&&(Oe[Oe.length-1]=Object(m.cloneElement)(Oe[Oe.length-1],{className:"".concat(U,"-item-before-jump-next")}),Oe.push(te)),ft!==1&&Oe.unshift(Q),jt!==ae&&Oe.push(J)}var it=null;ee&&(it=e.a.createElement("li",{className:"".concat(U,"-total-text")},ee(D,[D===0?0:($-1)*me+1,$*me>D?D:$*me])));var He=!this.hasPrev()||!ae,Ge=!this.hasNext()||!ae;return e.a.createElement("ul",Object(P.a)({className:a()(U,L,Object(g.a)({},"".concat(U,"-disabled"),V)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},dt),it,e.a.createElement("li",{title:K?W.prev_page:null,onClick:this.prev,tabIndex:He?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(U,"-prev"),Object(g.a)({},"".concat(U,"-disabled"),He)),"aria-disabled":He},this.renderPrev(Qe)),Oe,e.a.createElement("li",{title:K?W.next_page:null,onClick:this.next,tabIndex:Ge?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(U,"-next"),Object(g.a)({},"".concat(U,"-disabled"),Ge)),"aria-disabled":Ge},this.renderNext(tt)),e.a.createElement(l,{disabled:V,locale:W,rootPrefixCls:U,selectComponentClass:be,selectPrefixCls:Ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$,pageSize:me,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(_,A){var U={};if("current"in _&&(U.current=_.current,_.current!==A.current&&(U.currentInputValue=U.current)),"pageSize"in _&&_.pageSize!==A.pageSize){var L=A.current,N=w(_.pageSize,A,_);L=L>N?N:L,"current"in _||(U.current=L,U.currentInputValue=L),U.pageSize=_.pageSize}return U}}]),C}(e.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:d,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:d,locale:h.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var v=E},"6Fuo":function(k,z,o){k.exports={flex_box_center:"flex_box_center___3p8A0",flex_space_between:"flex_space_between___2wMwo",flex_box_vertical_center:"flex_box_vertical_center___2fKhV",flex_box_center_end:"flex_box_center_end___27Yk8",flex_box_column:"flex_box_column___3Khbo",rightMenu:"rightMenu___20Eel",joinMenu:"joinMenu___2blJt",joinBoard:"joinBoard___2XUXK",joinCol:"joinCol___3o5gp"}},"6RRn":function(k,z,o){"use strict";var P=o("wCXF"),g=o("n6Qo");o.d(z,"b",function(){return g.a});var T=o("IBYe"),b=o("6eGT"),y=o("hW8S");o.d(z,"a",function(){return y.a}),z.c=P.b},"6UM0":function(k,z,o){var P,g;(function(){var T;(function(){"use strict";var y=[function(e,f,a){var u=a(1).Beautifier,r=a(5).Options;function i(n,l){var h=new u(n,l);return h.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new r}},function(e,f,a){var u=a(2).Output,r=a(3).Token,i=a(4),n=a(5).Options,l=a(7).Tokenizer,h=a(7).line_starters,d=a(7).positionable_operators,s=a(7).TOKEN;function c(I,K){return K.indexOf(I)!==-1}function w(I){return I.replace(/^\s+/g,"")}function E(I){for(var K={},ee=0;ee{r(u)})}onUnexpectedError(u){this.unexpectedErrorHandler(u),this.emit(u)}onUnexpectedExternalError(u){this.unexpectedErrorHandler(u)}}const g=new P;function T(u){O(u)||g.onUnexpectedError(u);return}function b(u){O(u)||g.onUnexpectedExternalError(u);return}function y(u){if(u instanceof Error){let{name:r,message:i}=u;const n=u.stacktrace||u.stack;return{$isError:!0,name:r,message:i,stack:n}}return u}const x="Canceled";function O(u){return u instanceof Error&&u.name===x&&u.message===x}function m(){const u=new Error(x);return u.name=u.message,u}function e(u){return u?new Error(`Illegal argument: ${u}`):new Error("Illegal argument")}function f(u){return u?new Error(`Illegal state: ${u}`):new Error("Illegal state")}class a extends Error{constructor(u){super("NotSupported");u&&(this.message=u)}}},"11/R":function(module,__webpack_exports__,__webpack_require__){"use strict";var antd_es_switch_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("BoS7"),antd_es_switch__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("Sdc0"),antd_es_popover_style__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("Q9mQ"),antd_es_popover__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("diRs"),antd_es_tooltip_style__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("5Dmo"),antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("3S7+"),antd_es_input_number_style__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("giR+"),antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("fyUT"),antd_es_input_style__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("5NDa"),antd_es_input__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("5rEg"),antd_es_space_style__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("DYRE"),antd_es_space__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("zeV3"),antd_es_date_picker_style__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("iQDF"),antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("+eQT"),antd_es_badge_style__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("Awhp"),antd_es_badge__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("KrTs"),antd_es_auto_complete_style__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("O3gP"),antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("lrIw"),antd_es_radio_style__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("7Kak"),antd_es_radio__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("9yH6"),antd_es_checkbox_style__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("sRBo"),antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("kaz8"),antd_es_button_style__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("+L6B"),antd_es_button__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("2/Rp"),antd_es_menu_style__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("lUTK"),antd_es_menu__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("BvKs"),antd_es_modal_style__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("2qtc"),antd_es_modal__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("kLXV"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("jrin"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("k1fw"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("oBTY"),antd_es_message_style__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("miYZ"),antd_es_message__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("tsqr"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("9og8"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("tJVT"),antd_es_select_style__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("OaEy"),antd_es_select__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("2fM7"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("WmNS"),_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default=__webpack_require__.n(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37__),react__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("q1tI"),react__WEBPACK_IMPORTED_MODULE_38___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_38__),umi__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("Ty5D"),umi__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__("9kvl"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__("1nVM"),_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default=__webpack_require__.n(_index_less_modules__WEBPACK_IMPORTED_MODULE_41__),moment__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__("wd/R"),moment__WEBPACK_IMPORTED_MODULE_42___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_42__),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__=__webpack_require__("Z0Lh"),antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default=__webpack_require__.n(antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__=__webpack_require__("w5pM"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__=__webpack_require__("wlus"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__=__webpack_require__("y3Kf"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__=__webpack_require__("8Skl"),_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__=__webpack_require__("RCxd"),_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__=__webpack_require__("ZW9T"),_utils_authority__WEBPACK_IMPORTED_MODULE_50__=__webpack_require__("xKgJ"),_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__=__webpack_require__("FrRK"),_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__=__webpack_require__("QNag"),_utils_fetch__WEBPACK_IMPORTED_MODULE_53__=__webpack_require__("ErOA"),_components_Permission__WEBPACK_IMPORTED_MODULE_54__=__webpack_require__("sLOW"),_utils_env__WEBPACK_IMPORTED_MODULE_55__=__webpack_require__("m3rI"),_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__=__webpack_require__("NLgs"),timeFormat="YYYY-MM-DD HH:mm",Option=antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,handleDateString=function(z){if(!z)return z;var o=z.split(":");if(o[1]=="00"||o[1]=="30")return z;var P=parseInt(o[1]);if(P<30||P==60)return[o[0],"30"].join(":");if(P<60){var g=[o[0],"00"].join(":"),T="YYYY-MM-DD HH:mm",b=moment__WEBPACK_IMPORTED_MODULE_42___default()(g,T);return b.add(1,"hours"),b.format(T)}return z},radioStyle={display:"block",height:"30px",lineHeight:"30px"};function Setting(_ref){var _user$userInfo,_user$userInfo$shixun,_shixunsDetail$detail,_shixunsDetail$detail2,_shixunsDetail$detail3,_shixunsDetail$detail4,_shixunsDetail$detail5,_shixunsDetail$settin97,_shixunsDetail$settin98,_shixunsDetail$detail6,_shixunsDetail$detail7,_shixunsDetail$settin150,_shixunsDetail$settin151,_shixunsDetail$settin152,_shixunsDetail$settin153,_shixunsDetail$detail8,user=_ref.user,dispatch=_ref.dispatch,shixunsDetail=_ref.shixunsDetail,practiceSetting=_ref.practiceSetting,shixunId=Object(react__WEBPACK_IMPORTED_MODULE_38__.useRef)(),_useState=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!0),_useState2=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState,2),isShowSetting=_useState2[0],setIsShowSetting=_useState2[1],_useState3=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState4=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState3,2),taskPass=_useState4[0],setTaskPass=_useState4[1],_useState5=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState6=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState5,2),testSetPermission=_useState6[0],setTestSetPermission=_useState6[1],_useState7=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState8=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState7,2),isCopy=_useState8[0],setIsCopy=_useState8[1],_useState9=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState10=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState9,2),openValue=_useState10[0],setOpenValue=_useState10[1],_useState11=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState12=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState11,2),selectDepartmentList=_useState12[0],setSelectDepartmentList=_useState12[1],_useState13=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState14=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState13,2),departmentList=_useState14[0],setDepartmentList=_useState14[1],_useState15=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(""),_useState16=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState15,2),departmentValue=_useState16[0],setDepartmentValue=_useState16[1],_useState17=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState18=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState17,2),isOpenTime=_useState18[0],setIsOpenTime=_useState18[1],_useState19=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState20=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState19,2),openTime=_useState20[0],setOpenTime=_useState20[1],_useState21=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState22=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState21,2),vnc=_useState22[0],setVNC=_useState22[1],_useState23=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState24=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState23,2),windows_vnc=_useState24[0],setWindowVNC=_useState24[1],_useState25=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState26=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState25,2),virtual_machine=_useState26[0],setVirtualMachine=_useState26[1],_useState27=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState28=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState27,2),linux_vnc=_useState28[0],setLinuxVNC=_useState28[1],_useState29=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(""),_useState30=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState29,2),windows_start_template=_useState30[0],setWindowVNCTemplate=_useState30[1],_useState31=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState32=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState31,2),websshShow=_useState32[0],setWebsshShow=_useState32[1],_useState33=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState34=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState33,2),sshRadioValue=_useState34[0],setSshRadioValue=_useState34[1],_useState35=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState36=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState35,2),multiWebssh=_useState36[0],setMultiWebssh=_useState36[1],_useState37=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState38=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState37,2),hideCode=_useState38[0],setHideCode=_useState38[1],_useState39=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState40=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState39,2),codeEditPermission=_useState40[0],setCodeEditPermission=_useState40[1],_useState41=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState42=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState41,2),codeHidden=_useState42[0],setCodeHidden=_useState42[1],_useState43=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState44=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState43,2),forbidCopy=_useState44[0],setForbidCopy=_useState44[1],_useState45=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState46=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState45,2),display_git_address=_useState46[0],set_display_git_address=_useState46[1],_useState47=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState48=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState47,2),advancedsettingshow=_useState48[0],setAdvancedSettingShow=_useState48[1],_useState49=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)("vnc"),_useState50=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState49,2),windows_connection_mode=_useState50[0],setWindowsConnectionMode=_useState50[1],_useState51=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState52=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState51,2),evaluateScript=_useState52[0],setEvaluateScript=_useState52[1],_useState53=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState54=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState53,2),serviceConfigList=_useState54[0],setServiceConfigList=_useState54[1],_useState55=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState56=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState55,2),evaluationScript=_useState56[0],setevaluationScript=_useState56[1],_useState57=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([]),_useState58=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState57,2),standardScriptList=_useState58[0],setStandardScripts=_useState58[1],_useState59=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)("1"),_useState60=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState59,2),MenuSelectKey=_useState60[0],setMenuSelectKey=_useState60[1],_useState61=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState62=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState61,2),disableDiscuss=_useState62[0],setDisableDiscuss=_useState62[1],_useState63=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState64=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState63,2),Remote=_useState64[0],setRemote=_useState64[1],_useState65=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState66=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState65,2),createTitle=_useState66[0],setCreateTitle=_useState66[1],_useState67=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState68=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState67,2),isupdate=_useState68[0],setIsupdate=_useState68[1],_useState69=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(3),_useState70=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState69,2),terminal_count=_useState70[0],setterminal_count=_useState70[1],_useState71=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(!1),_useState72=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState71,2),port=_useState72[0],setport=_useState72[1],_useState73=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState74=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState73,2),webssh_cloud=_useState74[0],setWebsshCloud=_useState74[1],_useState75=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(0),_useState76=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState75,2),survival_time=_useState76[0],setSurvivalTime=_useState76[1],_useState77=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)([{template_name:"",template_identity:""}]),_useState78=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState77,2),shixun_virtual_templates=_useState78[0],setshixun_virtual_templates=_useState78[1],params=Object(umi__WEBPACK_IMPORTED_MODULE_39__.i)(),diffObj={forbid_copy:"forbidCopy",hide_code:"hideCode",multi_webssh:"multiWebssh",task_pass:"taskPass",test_set_permission:"testSetPermission",code_edit_permission:"codeEditPermission",can_copy:"isCopy",use_scope:"openValue",windows_vnc:"windows_vnc",windows_start_template:"windows_start_template",webssh_cloud:"webssh_cloud",opening_time:"openTime",webssh:"sshRadioValue",display_git_address:"display_git_address",show_code_dir:"codeHidden",choice_standard_scripts:"evaluationScript",evaluate_script:"evaluateScript"},_useState79=Object(react__WEBPACK_IMPORTED_MODULE_38__.useState)(),_useState80=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_34__.a)(_useState79,2),isRadiuvalue=_useState80[0],setIsRadiuValue=_useState80[1],editable=(_user$userInfo=user.userInfo)===null||_user$userInfo===void 0||((_user$userInfo$shixun=_user$userInfo.shixun)===null||_user$userInfo$shixun===void 0)?void 0:_user$userInfo$shixun.editable,handleGetDepartments=function(){var k=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(o){var P;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,dispatch({type:"shixunsDetail/getDepartments",payload:{q:o}});case 2:P=T.sent,P&&setDepartmentList(P.shools_name||[]);case 4:case"end":return T.stop()}},z)}));return function(o){return k.apply(this,arguments)}}();Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var k,z;(k=shixunsDetail.setting)!==null&&k!==void 0&&(z=k.shixun)!==null&&z!==void 0&&z.main_type&&handleInitState()},[shixunsDetail.setting]),Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var k,z;dispatch({type:"shixunsDetail/getSettingsData",payload:params}),shixunId.current=(k=location.pathname)===null||k===void 0||((z=k.split("/"))===null||z===void 0)?void 0:z[2]},[]);var handleSelectDepartment=function(z){if(selectDepartmentList.includes(z)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}setDepartmentValue(null),setSelectDepartmentList([].concat(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(selectDepartmentList),[z]))};function getRequiredStatus(){return _getRequiredStatus.apply(this,arguments)}function _getRequiredStatus(){return _getRequiredStatus=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function k(){var z;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(_utils_fetch__WEBPACK_IMPORTED_MODULE_53__.a)("/api/shixuns/".concat(shixunId.current,"/required_status"),{method:"get",params:{}});case 2:z=P.sent,z&&setCreateTitle(z==null?void 0:z.data);case 4:case"end":return P.stop()}},k)})),_getRequiredStatus.apply(this,arguments)}var handleChangeSeviceConfig=function(z,o,P){var g=serviceConfigList.map(function(T,b){return b===P?Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_29__.a)({},T),{},Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_28__.a)({},o,z)):T});setServiceConfigList(g)},handleInitState=function(){var z,o,P,g,T,b,y,x,O,m,e,f,a,u,r,i,n,l,h,d,s,c,w,E,v,R,M,C,S,_,A,U,L,N,V,H,D,W,F,I,K,ee,he,de,Se,Te,ce,be,Ee,ue,le,$,me,re,ae,Oe,se,te,Q,J,ve,_e,Ae,Qe,tt,dt,mt,vt=(shixunsDetail==null||((z=shixunsDetail.setting)===null||z===void 0)?void 0:z.shixun)||{},yt=vt.choice_main_type,Ye=vt.main_type,Ue=vt.small_type,ft=vt.choice_small_type,jt=vt.is_secret_repository,bt=vt.standard_scripts,Pt=vt.evaluate_script,it=vt.shixun_service_configs;if(setEvaluateScript(Pt),setServiceConfigList(it),setStandardScripts(bt||[]),setWindowVNCTemplate((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.windows_start_template),setWebsshCloud((g=shixunsDetail.setting)===null||g===void 0||((T=g.shixun)===null||T===void 0)?void 0:T.webssh_cloud),setWindowVNC((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.windows_vnc),setVirtualMachine((x=shixunsDetail.setting)===null||x===void 0||((O=x.shixun)===null||O===void 0)?void 0:O.virtual_machine),setLinuxVNC((m=shixunsDetail.setting)===null||m===void 0||((e=m.shixun)===null||e===void 0)?void 0:e.linux_vnc),setWindowsConnectionMode(((f=shixunsDetail.setting)===null||f===void 0||((a=f.shixun)===null||a===void 0)?void 0:a.windows_connection_mode)||"vnc"),setVNC((u=shixunsDetail.setting)===null||u===void 0||((r=u.shixun)===null||r===void 0)?void 0:r.vnc),setWebsshShow(!!((i=shixunsDetail.setting)!==null&&i!==void 0&&(n=i.shixun)!==null&&n!==void 0&&n.webssh)),setSshRadioValue((l=shixunsDetail.setting)===null||l===void 0||((h=l.shixun)===null||h===void 0)?void 0:h.webssh),setMultiWebssh((d=shixunsDetail.setting)===null||d===void 0||((s=d.shixun)===null||s===void 0)?void 0:s.multi_webssh),setHideCode((c=shixunsDetail.setting)===null||c===void 0||((w=c.shixun)===null||w===void 0)?void 0:w.hide_code),setCodeEditPermission((E=shixunsDetail.setting)===null||E===void 0||((v=E.shixun)===null||v===void 0)?void 0:v.code_edit_permission),setCodeHidden((R=shixunsDetail.setting)===null||R===void 0||((M=R.shixun)===null||M===void 0)?void 0:M.show_code_dir),setForbidCopy((C=shixunsDetail.setting)===null||C===void 0||((S=C.shixun)===null||S===void 0)?void 0:S.forbid_copy),setTaskPass((_=shixunsDetail.setting)===null||_===void 0||((A=_.shixun)===null||A===void 0)?void 0:A.task_pass),setTestSetPermission((U=shixunsDetail.setting)===null||U===void 0||((L=U.shixun)===null||L===void 0)?void 0:L.test_set_permission),set_display_git_address((N=shixunsDetail.setting.shixun)===null||N===void 0?void 0:N.display_git_address),setIsCopy((V=shixunsDetail.setting)===null||V===void 0||((H=V.shixun)===null||H===void 0)?void 0:H.can_copy),setOpenValue((D=shixunsDetail.setting)===null||D===void 0||((W=D.shixun)===null||W===void 0)?void 0:W.use_scope),setIsOpenTime(!!((F=shixunsDetail.setting)!==null&&F!==void 0&&(I=F.shixun)!==null&&I!==void 0&&I.opening_time)),setOpenTime((K=shixunsDetail.setting)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.opening_time),setSelectDepartmentList((he=shixunsDetail.setting)===null||he===void 0||((de=he.shixun)===null||de===void 0)?void 0:de.scope_partment),setevaluationScript((Se=shixunsDetail.setting)===null||Se===void 0||((Te=Se.shixun)===null||Te===void 0)?void 0:Te.choice_standard_scripts),setDisableDiscuss((ce=shixunsDetail.setting)===null||ce===void 0||((be=ce.shixun)===null||be===void 0)?void 0:be.is_disable_discuss),setterminal_count((Ee=shixunsDetail.setting)===null||Ee===void 0||((ue=Ee.shixun)===null||ue===void 0)?void 0:ue.terminal_count),setSurvivalTime((le=shixunsDetail.setting)===null||le===void 0||(($=le.shixun)===null||$===void 0)?void 0:$.survival_time),(shixunsDetail==null||((me=shixunsDetail.setting)===null||me===void 0||((re=me.shixun)===null||re===void 0||((ae=re.shixun_virtual_templates)===null||ae===void 0)))?void 0:ae.length)>0){var He,Ge;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((He=shixunsDetail.setting)===null||He===void 0||((Ge=He.shixun)===null||Ge===void 0))?void 0:Ge.shixun_virtual_templates))}setport((Oe=shixunsDetail.setting)===null||Oe===void 0||((se=Oe.shixun)===null||se===void 0)?void 0:se.port_mapping),(te=shixunsDetail.setting)!==null&&te!==void 0&&(Q=te.shixun)!==null&&Q!==void 0&&Q.windows_vnc||(J=shixunsDetail.setting)!==null&&J!==void 0&&(ve=J.shixun)!==null&&ve!==void 0&&ve.linux_vnc||(_e=shixunsDetail.setting)!==null&&_e!==void 0&&(Ae=_e.shixun)!==null&&Ae!==void 0&&Ae.vnc||(Qe=shixunsDetail.setting)!==null&&Qe!==void 0&&(tt=Qe.shixun)!==null&&tt!==void 0&&tt.virtual_machine?(setIsRadiuValue(5),setRemote(!0)):(dt=shixunsDetail.setting)!==null&&dt!==void 0&&(mt=dt.shixun)!==null&&mt!==void 0&&mt.webssh&&(setRemote(!0),setIsRadiuValue(3))};Object(react__WEBPACK_IMPORTED_MODULE_38__.useEffect)(function(){var _Object$keys$filter,_shixunsDetail$settin73,_shixunsDetail$settin74,_shixunsDetail$settin75,_shixunsDetail$settin76,_shixunsDetail$settin77,_shixunsDetail$settin78,_shixunsDetail$settin79,_shixunsDetail$settin82,_shixunsDetail$settin83,_shixunsDetail$settin84,confirmLeave=!1;(_Object$keys$filter=Object.keys(diffObj).filter(function(item){var _shixunsDetail$settin72;return((_shixunsDetail$settin72=shixunsDetail.setting)===null||_shixunsDetail$settin72===void 0?void 0:_shixunsDetail$settin72.shixun[item])!=eval(diffObj[item])}))!==null&&_Object$keys$filter!==void 0&&_Object$keys$filter.length&&(confirmLeave=!0),isOpenTime!=!!((_shixunsDetail$settin73=shixunsDetail.setting)!==null&&_shixunsDetail$settin73!==void 0&&(_shixunsDetail$settin74=_shixunsDetail$settin73.shixun)!==null&&_shixunsDetail$settin74!==void 0&&_shixunsDetail$settin74.opening_time)&&(confirmLeave=!0),disableDiscuss!=!!((_shixunsDetail$settin75=shixunsDetail.setting)!==null&&_shixunsDetail$settin75!==void 0&&(_shixunsDetail$settin76=_shixunsDetail$settin75.shixun)!==null&&_shixunsDetail$settin76!==void 0&&_shixunsDetail$settin76.is_disable_discuss)&&(confirmLeave=!0),selectDepartmentList.length!=((_shixunsDetail$settin77=shixunsDetail.setting)===null||_shixunsDetail$settin77===void 0||((_shixunsDetail$settin78=_shixunsDetail$settin77.shixun)===null||_shixunsDetail$settin78===void 0||((_shixunsDetail$settin79=_shixunsDetail$settin78.scope_partment)===null||_shixunsDetail$settin79===void 0))?void 0:_shixunsDetail$settin79.length)&&(confirmLeave=!0),selectDepartmentList==null||selectDepartmentList.map(function(k,z){var o,P;k!=((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.scope_partment[z])&&(confirmLeave=!0)}),serviceConfigList.length!=((_shixunsDetail$settin82=shixunsDetail.setting)===null||_shixunsDetail$settin82===void 0||((_shixunsDetail$settin83=_shixunsDetail$settin82.shixun)===null||_shixunsDetail$settin83===void 0||((_shixunsDetail$settin84=_shixunsDetail$settin83.shixun_service_configs)===null||_shixunsDetail$settin84===void 0))?void 0:_shixunsDetail$settin84.length)&&(confirmLeave=!0),serviceConfigList==null||serviceConfigList.map(function(k,z){var o,P,g,T,b,y,x,O,m,e,f,a;(k==null?void 0:k.cpu_limit)!=((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0||((g=P.shixun_service_configs[z])===null||g===void 0))?void 0:g.cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.lower_cpu_limit)!=((T=shixunsDetail.setting)===null||T===void 0||((b=T.shixun)===null||b===void 0||((y=b.shixun_service_configs[z])===null||y===void 0))?void 0:y.lower_cpu_limit)&&(confirmLeave=!0),(k==null?void 0:k.memory_limit)!=((x=shixunsDetail.setting)===null||x===void 0||((O=x.shixun)===null||O===void 0||((m=O.shixun_service_configs[z])===null||m===void 0))?void 0:m.memory_limit)&&(confirmLeave=!0),(k==null?void 0:k.request_limit)!=((e=shixunsDetail.setting)===null||e===void 0||((f=e.shixun)===null||f===void 0||((a=f.shixun_service_configs[z])===null||a===void 0))?void 0:a.request_limit)&&(confirmLeave=!0)}),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave}})},[taskPass,testSetPermission,isCopy,openValue,selectDepartmentList,isOpenTime,openTime,isRadiuvalue,sshRadioValue,multiWebssh,hideCode,display_git_address,codeHidden,codeEditPermission,forbidCopy,evaluationScript,evaluateScript,serviceConfigList,disableDiscuss,webssh_cloud]);var handleUseCustomScript=function(){dispatch({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:shixunId.current}}})};function handSubmeit(){return _handSubmeit.apply(this,arguments)}function _handSubmeit(){return _handSubmeit=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function k(){var z,o,P,g;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!(isOpenTime&&!openTime)){b.next=3;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),b.abrupt("return");case 3:if(!(hideCode===1&&Remote===!1)){b.next=6;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u81F3\u5C11\u52FE\u9009\u4E00\u79CD\u7F16\u7A0B\u9875\u9762\uFF01"),b.abrupt("return");case 6:if(!(openValue===1&&!selectDepartmentList.length)){b.next=9;break}return antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),b.abrupt("return");case 9:if(o=(z=shixunsDetail.detail)===null||z===void 0?void 0:z.is_jupyter,P=!1,isRadiuvalue==5&&virtual_machine&&(shixun_virtual_templates==null||shixun_virtual_templates.map(function(y){if(!(y!=null&&y.template_name)||!(y!=null&&y.template_identity)){antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0\u6216\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248\u4E0D\u80FD\u4E3A\u7A7A"),P=!0;return}})),!P){b.next=14;break}return b.abrupt("return");case 14:return b.next=16,dispatch({type:"shixunsDetail/updateSetting",payload:{id:shixunId.current,scope_partment:openValue===0?null:selectDepartmentList,shixun:{show_code_dir:codeHidden,forbid_copy:forbidCopy,hide_code:hideCode,multi_webssh:multiWebssh,task_pass:taskPass,test_set_permission:testSetPermission,display_git_address,vnc,windows_vnc,virtual_machine,linux_vnc,windows_start_template,webssh_cloud,webssh:websshShow?sshRadioValue:0,code_edit_permission:codeEditPermission,can_copy:isCopy,use_scope:openValue,opening_time:openTime,mirror_script_id:o?null:evaluationScript,is_disable_discuss:disableDiscuss,terminal_count,port_mapping:port,survival_time,shixun_virtual_templates,windows_connection_mode:windows_vnc?windows_connection_mode:null},shixun_info:{evaluate_script:o?null:evaluateScript},shixun_service_configs:serviceConfigList.map(function(y){return{mirror_repository_id:y.mirror_repository_id,cpu_limit:y.cpu_limit,lower_cpu_limit:y.lower_cpu_limit,memory_limit:y.memory_limit,request_limit:y.request_limit}})}});case 16:g=b.sent,(g==null?void 0:g.status)===0&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.info("\u4FEE\u6539\u6210\u529F"),dispatch({type:"shixunsDetail/getSettingsData",payload:params}),dispatch({type:"shixunsDetail/getShixunsDetail",payload:params}));case 18:case"end":return b.stop()}},k)})),_handSubmeit.apply(this,arguments)}var handleChangeEvaluationScript=function(z){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var o=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function g(){return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,handleGetScriptContent(z);case 2:antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return b.stop()}},g)}));function P(){return o.apply(this,arguments)}return P}()})},handleGetScriptContent=function(){var k=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(o){var P;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,dispatch({type:"shixunsDetail/getScriptContent",payload:{id:shixunId.current,script_id:o}});case 2:P=T.sent,P&&setEvaluateScript(P.content);case 4:case"end":return T.stop()}},z)}));return function(o){return k.apply(this,arguments)}}(),handleDeleteShixun=function(){var k=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function z(){var o,P,g,T,b,y,x;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,dispatch({type:"shixunsDetail/getShixunQuote",payload:{id:shixunId.current}});case 2:if(m.t0=m.sent,m.t0){m.next=5;break}m.t0={};case 5:x=m.t0,antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"tc font14 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.modal)},!!((o=x.subjects)!==null&&o!==void 0&&o.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(P=x.subjects)===null||P===void 0||((g=P.splice(0,2))===null||g===void 0)?void 0:g.map(function(e){return"\u300A".concat(e,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},x==null?void 0:x.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),!!((T=x.courses)!==null&&T!==void 0&&T.length)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(b=x.courses)===null||b===void 0||((y=b.splice(0,2))===null||y===void 0)?void 0:y.map(function(e){return"\u300A".concat(e,"\u300B")}),"\u7B49",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorOrange},x==null?void 0:x.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.colorYellow," mt30")},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:function(){var e=Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_33__.a)(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.mark(function a(){var u;return _root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_37___default.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,dispatch({type:"shixunsDetail/deleteShixun",payload:{id:shixunId.current}});case 2:u=i.sent,u.status===1&&(antd_es_message__WEBPACK_IMPORTED_MODULE_32__.b.success("\u64CD\u4F5C\u6210\u529F"),umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns"));case 4:case"end":return i.stop()}},a)}));function f(){return e.apply(this,arguments)}return f}()});case 7:case"end":return m.stop()}},z)}));return function(){return k.apply(this,arguments)}}(),handleDeleteElseShixun=function(){if(Object(_utils_verifyLogin_tsx__WEBPACK_IMPORTED_MODULE_56__.b)(dispatch,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return};function showExitmodel(k){antd_es_modal__WEBPACK_IMPORTED_MODULE_27__.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){setMenuSelectKey(k),parseInt(k)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus()),dispatch({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}})}return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",display:"flex",background:"#fff",position:"relative"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"100%",background:"#0A143D",width:"25%",maxWidth:"440px",padding:"20px 20px",color:"#ffffff"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{padding:"0px 15px",fontSize:"16px"}},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a,{selectedKeys:[MenuSelectKey],theme:"dark",style:{background:"#0A143D",marginTop:"30px",fontSize:"14px"},onClick:function(z){var o;if(practiceSetting!=null&&(o=practiceSetting.sideBar)!==null&&o!==void 0&&o.confirmLeave){showExitmodel(z.key);return}setMenuSelectKey(z.key),parseInt(z.key)===1?(setIsShowSetting(!0),handleInitState()):(setIsShowSetting(!1),getRequiredStatus())}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:1},"\u8BBE\u7F6E"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_menu__WEBPACK_IMPORTED_MODULE_25__.a.Item,{key:2},"\u5173\u4E8E\u5B9E\u8BAD"))),isShowSetting&&(shixunsDetail==null||((_shixunsDetail$detail=shixunsDetail.detail)===null||_shixunsDetail$detail===void 0)?void 0:_shixunsDetail$detail.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_Permission__WEBPACK_IMPORTED_MODULE_54__.a,null),isShowSetting&&!(shixunsDetail!=null&&(_shixunsDetail$detail2=shixunsDetail.detail)!==null&&_shixunsDetail$detail2!==void 0&&_shixunsDetail$detail2.is_jupyter_lab)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{width:"calc(100% - 24%)",overflow:"auto"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px 40px",marginBottom:"70px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{flex:"1"}},"\u5173\u5361\u548C\u6D4B\u8BD5\u96C6"),(shixunsDetail==null||((_shixunsDetail$detail3=shixunsDetail.detail)===null||_shixunsDetail$detail3===void 0)?void 0:_shixunsDetail$detail3.shixun_status)!==2?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{danger:!0,onClick:handleDeleteElseShixun},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u8DF3\u5173\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:taskPass,disabled:!editable,onChange:function(z){return setTaskPass(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u5B66\u4E60\u5B9E\u8BAD\u5173\u5361\u4EFB\u52A1\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u6D4B\u8BD5\u96C6\u89E3\u9501\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:testSetPermission,disabled:!editable,onChange:function(z){return setTestSetPermission(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u7684\u5185\u5BB9\uFF09")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}},"\u6743\u9650"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u590D\u5236/\u5408\u5E76:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isCopy,onChange:function(z){return setIsCopy(z.target.checked)},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((_shixunsDetail$detail4=shixunsDetail.detail)===null||_shixunsDetail$detail4===void 0?void 0:_shixunsDetail$detail4.shixun_status)>1||((_shixunsDetail$detail5=shixunsDetail.detail)===null||_shixunsDetail$detail5===void 0?void 0:_shixunsDetail$detail5.public)===2)&&((_shixunsDetail$settin97=shixunsDetail.setting)===null||_shixunsDetail$settin97===void 0||((_shixunsDetail$settin98=_shixunsDetail$settin97.shixun)===null||_shixunsDetail$settin98===void 0)?void 0:_shixunsDetail$settin98.use_scope)===0&&((_shixunsDetail$detail6=shixunsDetail.detail)===null||_shixunsDetail$detail6===void 0?void 0:_shixunsDetail$detail6.identity)>2)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{padding:"4px 0px"}},"\u516C\u5F00\u7A0B\u5EA6:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a.Group,{value:openValue,onChange:function(z){return setOpenValue(z.target.value)},disabled:!editable},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,value:0},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"},value:1},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),openValue===1&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_auto_complete__WEBPACK_IMPORTED_MODULE_17__.a,{showSearch:!0,className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.selectSchool,bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:departmentValue,onChange:function(z){setDepartmentValue(z),handleGetDepartments(z)},disabled:!editable,onSelect:handleSelectDepartment,options:departmentList==null?void 0:departmentList.map(function(k){return{value:k}})})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mt10"},selectDepartmentList==null?void 0:selectDepartmentList.map(function(k){return editable?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_badge__WEBPACK_IMPORTED_MODULE_15__.a,{count:"x",className:"mr20 current",onClick:function(){return setSelectDepartmentList(selectDepartmentList.filter(function(o){return o!==k}))}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0},k)):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{type:"primary",ghost:!0,className:"mr20"},k)}))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5F00\u542F\u65F6\u95F4:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:isOpenTime,onChange:function(z){setIsOpenTime(z.target.checked),z.target.checked||setOpenTime("")},disabled:!editable}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\u624D\u80FD\u5F00\u542F\u6311\u6218\uFF09")),isOpenTime&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.graaytitle},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_date_picker__WEBPACK_IMPORTED_MODULE_13__.a,{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.dataPicker),format:timeFormat,locale:antd_lib_date_picker_locale_zh_CN__WEBPACK_IMPORTED_MODULE_43___default.a,bordered:!1,disabled:!editable,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(z){return z&&z0){var E,v;setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixunsDetail==null||((E=shixunsDetail.setting)===null||E===void 0||((v=E.shixun)===null||v===void 0))?void 0:v.shixun_virtual_templates))}else setshixun_virtual_templates([{template_name:"",template_identity:""}]);break}}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{value:"linux",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"Linux\u5BB9\u5668",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528Linux\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09")),!linux_vnc&&!windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{style:{marginLeft:"30px",marginTop:"10px"},checked:port,disabled:!editable,onChange:function(z){return setport(z.target.checked)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:" ml10",style:{marginTop:"22px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",null,"\u542F\u7528\u5916\u7F51\u670D\u52A1\u8BBF\u95EE\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u5230\u6307\u5B9A\u7AEF\u53E3\uFF09"))),isRadiuvalue==5&&linux_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(z){return setWindowVNCTemplate(z.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Linux\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),isRadiuvalue==5&&windows_vnc&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{value:windows_start_template,onChange:function(z){return setWindowVNCTemplate(z.target.value)},style:{width:500},placeholder:"\u8BF7\u8F93\u5165Windows\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\u540D\u79F0"})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label,style:{paddingTop:"5px"}},"\u5B9E\u4F8B\u542F\u52A8\u65B9\u5F0F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{value:windows_connection_mode,onChange:function(z){return setWindowsConnectionMode(z)}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"vnc"},"VNC\u65B9\u5F0F\u542F\u52A8"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a.Option,{value:"rdp"},"RDP\u65B9\u5F0F\u542F\u52A8")))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_tooltip__WEBPACK_IMPORTED_MODULE_5__.a,{title:Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)()?"":"\u53EA\u6709\u5E73\u53F0\u7BA1\u7406\u5458\u6216\u8FD0\u8425\u4EBA\u5458\u624D\u80FD\u914D\u7F6E\u865A\u62DF\u673A\u6A21\u5F0F"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_radio__WEBPACK_IMPORTED_MODULE_19__.a,{disabled:!Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.o)(),value:"virtual_machine",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.radio,style:{marginTop:"22px"}},"\u865A\u62DF\u673A\u56FE\u5F62\u5316\u6A21\u5F0F",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5B66\u5458\u8FDB\u884C\u5B9E\u9A8C\u65F6\uFF0C\u4F7F\u7528\u865A\u62DF\u673A\u56FE\u5F62\u5316\u65B9\u5F0F\u663E\u793A\u64CD\u4F5C\u754C\u9762\uFF09"))),isRadiuvalue==5&&virtual_machine&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",width:213,marginRight:42,color:"#333333"}},"\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0:"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{fontSize:"14px",color:"#333333"}},"\u5B9E\u4F8B\u542F\u52A8\u6A21\u677F\uFF1A")),shixun_virtual_templates==null?void 0:shixun_virtual_templates.map(function(k,z){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:"14px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{maxLength:8,style:{width:213,height:32,marginRight:42},placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9A8C\u89D2\u8272\u540D\u79F0",value:k==null?void 0:k.template_name,onChange:function(P){k.template_name=P.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{style:{width:380,height:32},placeholder:"\u8BF7\u8F93\u5165\u865A\u62DF\u673A\u5B9E\u4F8B\u542F\u52A8\u6A21\u7248\u540D\u79F0",value:k==null?void 0:k.template_identity,onChange:function(P){k.template_identity=P.target.value,setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&(shixun_virtual_templates==null?void 0:shixun_virtual_templates.length)<5&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_44__.a,{style:{fontSize:"16px",marginLeft:15,color:"#165DFF"},onClick:function(){var P={};P.template_name="",P.template_identity="",shixun_virtual_templates.push(P),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}),z!=0&&Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_45__.a,{style:{fontSize:"16px",marginLeft:10,color:"#165DFF"},onClick:function(){shixun_virtual_templates.splice(z,1),setshixun_virtual_templates(Object(_root_workspace_ppte5yg23_local_v8_node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_30__.a)(shixun_virtual_templates))}}))}))))))),hideCode&&websshShow?null:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u5E93\u5730\u5740\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:display_git_address,disabled:!editable,onChange:function(z){return set_display_git_address(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")}," ","\uFF08\u9009\u4E2D\u5219\u5BF9\u5B66\u5458\u516C\u5F00\u4EE3\u7801\u5E93\u5730\u5740\uFF0C\u5B66\u5458\u53EF\u4EE5\u5C06\u6240\u6709\u4EE3\u7801\u4E0B\u8F7D\u5230\u672C\u5730\uFF09")))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u4EE3\u7801\u76EE\u5F55\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeHidden,disabled:!editable,onChange:function(z){return setCodeHidden(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u9875\u9762\u663E\u793A\u7248\u672C\u5E93\u76EE\u5F55\uFF09")),codeHidden&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"54px",background:"#f5f5f5",marginTop:"10px",borderRadius:"8px",display:"flex",justifyContent:"left",alignItems:"center",padding:"0px 20px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{display:"flex"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",null,"\u4EE3\u7801\u5E93\u6587\u4EF6\u4FEE\u6539\u6743\u9650\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent,style:{padding:"0px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:codeEditPermission,disabled:!editable,onChange:function(z){return setCodeEditPermission(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u52FE\u9009\u540E\u5141\u8BB8\u5B66\u5458\u4FEE\u6539\u4EE3\u7801\u5E93\u6240\u6709\u6587\u4EF6\uFF0C\u5426\u5219\u4EC5\u53EF\u4FEE\u6539\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\uFF09"))))))),!hideCode&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u7981\u7528\u7C98\u8D34\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_checkbox__WEBPACK_IMPORTED_MODULE_21__.a,{checked:forbidCopy,disabled:!editable,onChange:function(z){return setForbidCopy(z.target.checked)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u7F16\u7801\u533A\u57DF\u65E0\u6CD5\u4F7F\u7528\u7C98\u8D34\u529F\u80FD\uFF09")))),Object(_utils_authority__WEBPACK_IMPORTED_MODULE_50__.v)()&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input_number__WEBPACK_IMPORTED_MODULE_7__.a,{value:survival_time,onChange:function(z){return setSurvivalTime(z)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\u5206")))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px",display:"none"}},"\u9AD8\u7EA7\u8BBE\u7F6E"," ",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{onClick:function(){return setAdvancedSettingShow(!advancedsettingshow)},style:{color:"#0152d9",fontSize:"14px",cursor:"pointer",marginLeft:"20px"}},advancedsettingshow?"\u6536\u8D77":"\u5C55\u5F00",advancedsettingshow?react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_46__.a,null):react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_47__.a,null))),advancedsettingshow&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,!((_shixunsDetail$detail7=shixunsDetail.detail)!==null&&_shixunsDetail$detail7!==void 0&&_shixunsDetail$detail7.is_jupyter)&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_38___default.a.Fragment,null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexRow," ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.flexAlignCenter)},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{style:{fontSize:"16px"}},"\u8BC4\u6D4B\u811A\u672C\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_select__WEBPACK_IMPORTED_MODULE_36__.a,{style:{width:"200px"},value:evaluationScript,disabled:((_shixunsDetail$settin150=shixunsDetail.setting)===null||_shixunsDetail$settin150===void 0||((_shixunsDetail$settin151=_shixunsDetail$settin150.shixun)===null||_shixunsDetail$settin151===void 0)?void 0:_shixunsDetail$settin151.status)===2?!0:!editable,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(z){handleChangeEvaluationScript(z),setevaluationScript(z)}},(standardScriptList||[]).map(function(k,z){return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(Option,{value:parseInt(k.id),name:k.scptname,key:z},k.scptname)})))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color0152d9," font14 current ml10"),style:{marginTop:"2px"},onClick:handleUseCustomScript},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_popover__WEBPACK_IMPORTED_MODULE_3__.a,{overlayClassName:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.popover,placement:"bottomLeft",content:react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"challengeProgramNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"sourceClassNames",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step1/HelloWorld.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"src/step2/Other.java",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step1.HelloWorld",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"step2.Other",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),'" "step2.Other")',react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_48__.a,null)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_components_monaco_editor__WEBPACK_IMPORTED_MODULE_49__.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:evaluateScript,options:{readOnly:((_shixunsDetail$settin152=shixunsDetail.setting)===null||_shixunsDetail$settin152===void 0||((_shixunsDetail$settin153=_shixunsDetail$settin152.shixun)===null||_shixunsDetail$settin153===void 0)?void 0:_shixunsDetail$settin153.status)===2?!0:!editable},onChange:function(z){return setEvaluateScript(z)}})),((_shixunsDetail$detail8=shixunsDetail.detail)===null||_shixunsDetail$detail8===void 0?void 0:_shixunsDetail$detail8.identity)<3&&editable&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSettingName},"\u670D\u52A1\u914D\u7F6E"),serviceConfigList==null?void 0:serviceConfigList.map(function(k,z){var o,P,g,T,b,y,x,O;return react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{key:z},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"font16"},k.name)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:k.cpu_limit,disabled:((o=shixunsDetail.setting)===null||o===void 0||((P=o.shixun)===null||P===void 0)?void 0:P.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"cpu_limit",z)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:k.lower_cpu_limit,disabled:((g=shixunsDetail.setting)===null||g===void 0||((T=g.shixun)===null||T===void 0)?void 0:T.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"lower_cpu_limit",z)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetInput,value:k.memory_limit,disabled:((b=shixunsDetail.setting)===null||b===void 0||((y=b.shixun)===null||y===void 0)?void 0:y.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"memory_limit",z)}})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:"mb5"},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_input__WEBPACK_IMPORTED_MODULE_9__.a,{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetMemoryInput,value:k.request_limit,disabled:((x=shixunsDetail.setting)===null||x===void 0||((O=x.shixun)===null||O===void 0)?void 0:O.status)===2?!0:!editable,onChange:function(e){return handleChangeSeviceConfig(e.target.value,"request_limit",z)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.serviceSetTip," ml5")},"\u6E29\u99A8\u63D0\u793A\uFF1A\u7EAF\u7F16\u7A0B\u7C7B\u578B\u5B9E\u8BAD\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF0C\u5BF9\u4E8E\u5927\u6570\u636E\u7B49\u5EFA\u8BAE\u4F7F\u7528\u6700\u5927\u5185\u5B58\u768430%")))}))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.titlesize,style:{marginTop:"20px"}}," ","\u8BC4\u8BBA\u533A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("label",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.label},"\u663E\u793A\u8BC4\u8BBA\u533A\uFF1A"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.labelContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_switch__WEBPACK_IMPORTED_MODULE_1__.a,{checked:!disableDiscuss,onChange:function(z){return setDisableDiscuss(!z)}}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:"".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.color999," ml10")},"\uFF08\u5173\u95ED\u540E\uFF0C\u5B9E\u8DF5\u9879\u76EE\u8BE6\u60C5\u9875\u53CA\u5173\u5361\u6311\u6218\u9875\u9762\u4E0D\u663E\u793A\u4EFB\u4F55\u8BC4\u8BBA\uFF09"))))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{height:"70px",width:"76%",background:"#ffffff",boxShadow:"0px -4px 8px 1px #F1F1F1",position:"absolute",bottom:"0px",display:"flex",alignItems:"center",justifyContent:"center"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginRight:"10px",width:"100px",height:"40px",borderRadius:"4px",border:"1px solid #0152d9",color:"#0152d9"},onClick:function(){umi__WEBPACK_IMPORTED_MODULE_40__.d.push("/shixuns/".concat(params.id,"/challenges"))}},"\u53D6\u6D88"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(antd_es_button__WEBPACK_IMPORTED_MODULE_23__.a,{style:{marginLeft:"10px",width:"100px",height:"40px",fontSize:"16px",background:"#0152d9",borderRadius:"4px"},type:"primary",onClick:function(){return handSubmeit()}},"\u4FDD\u5B58"))),!isShowSetting&&react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{style:{padding:"40px"}},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u8005"),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"60",width:"60",className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.img,src:"".concat(_utils_env__WEBPACK_IMPORTED_MODULE_55__.a.IMG_SERVER,"/images/").concat(createTitle==null?void 0:createTitle.user_image_url)}),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.itemContent},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.nameWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.name},createTitle==null?void 0:createTitle.user_name),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("div",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.actionGroup})),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.schoolWrap},react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("span",{className:_index_less_modules__WEBPACK_IMPORTED_MODULE_41___default.a.school},createTitle==null?void 0:createTitle.user_school)),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u521B\u5EFA\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.created_at),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement("p",{style:{color:"#333333",fontSize:"16px"}},"\u66F4\u65B0\u65F6\u95F4\uFF1A",createTitle==null?void 0:createTitle.updated_at)))),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_pages_Shixuns_New_components_ApplyModal__WEBPACK_IMPORTED_MODULE_51__.a,null),react__WEBPACK_IMPORTED_MODULE_38___default.a.createElement(_UseCustomScriptModal__WEBPACK_IMPORTED_MODULE_52__.a,{onFinish:function(z){return setEvaluateScript(z)}}))}__webpack_exports__.a=Object(umi__WEBPACK_IMPORTED_MODULE_40__.a)(function(k){var z=k.user,o=k.shixunsDetail,P=k.practiceSetting;return{user:z,shixunsDetail:o,practiceSetting:P}})(Setting)},"19Vz":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){P.defineOption("placeholder","",function(m,e,f){var a=f&&f!=P.Init;if(e&&!a)m.on("blur",y),m.on("change",x),m.on("swapDoc",x),P.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){b(m)}),x(m);else if(!e&&a){m.off("blur",y),m.off("change",x),m.off("swapDoc",x),P.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),g(m);var u=m.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}e&&!m.hasFocus()&&y(m)});function g(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function T(m){g(m);var e=m.state.placeholder=document.createElement("pre");e.style.cssText="height: 0; overflow: visible",e.style.direction=m.getOption("direction"),e.className="CodeMirror-placeholder CodeMirror-line-like";var f=m.getOption("placeholder");typeof f=="string"&&(f=document.createTextNode(f)),e.appendChild(f),m.display.lineSpace.insertBefore(e,m.display.lineSpace.firstChild)}function b(m){setTimeout(function(){var e=!1,f=m.getInputField();f.nodeName=="TEXTAREA"?e=!f.value:m.lineCount()==1&&(e=!/[^\u200b]/.test(f.querySelector(".CodeMirror-line").textContent)),e?T(m):g(m)},20)}function y(m){O(m)&&T(m)}function x(m){var e=m.getWrapperElement(),f=O(m);e.className=e.className.replace(" CodeMirror-empty","")+(f?" CodeMirror-empty":""),f?T(m):g(m)}function O(m){return m.lineCount()===1&&m.getLine(0)===""}})},"1Sn+":function(k,z,o){},"1XHU":function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("q1tI"),b=o.n(T),y=o("9kvl"),x=o("3wET"),O=o.n(x),m=o("bUJZ"),e=o.n(m),f=o("Ct/S"),a=o.n(f),u=function(i){var n=i.visible,l=i.occupationValue,h=i.onCancel,d=h===void 0?function(){}:h,s=function(){return b.a.createElement("div",{className:a.a.flexColumn},b.a.createElement("img",{className:a.a.img,src:e.a}),b.a.createElement("span",{className:a.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},c=function(){return b.a.createElement("div",{className:a.a.flexColumn},b.a.createElement("img",{className:a.a.img,src:O.a}),b.a.createElement("span",{className:a.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},w=function(){return l===3?b.a.createElement(b.a.Fragment,null,c(),s()):l===2?s():c()};return b.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:n,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:function(){d(),y.d.push("/account/certification")},onCancel:function(){d()}},b.a.createElement("div",{className:a.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),b.a.createElement("div",{className:a.a.flexRow},w()))};z.a=Object(y.a)(function(r){var i=r.paperlibrary,n=r.loading,l=r.globalSetting;return{paperlibrary:i,globalSetting:l,loading:n.effects}})(u)},"1ZF9":function(k,z,o){k.exports=o.p+"static/Authorize.cc9c212f.png"},"1eCo":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"use strict";var g={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};P.defineMode("xml",function(b,y){var x=b.indentUnit,O={},m=y.htmlMode?g:T;for(var e in m)O[e]=m[e];for(var e in y)O[e]=y[e];var f,a;function u(A,U){function L(H){return U.tokenize=H,H(A,U)}var N=A.next();if(N=="<")return A.eat("!")?A.eat("[")?A.match("CDATA[")?L(n("atom","]]>")):null:A.match("--")?L(n("comment","-->")):A.match("DOCTYPE",!0,!0)?(A.eatWhile(/[\w\._\-]/),L(l(1))):null:A.eat("?")?(A.eatWhile(/[\w\._\-]/),U.tokenize=n("meta","?>"),"meta"):(f=A.eat("/")?"closeTag":"openTag",U.tokenize=r,"tag bracket");if(N=="&"){var V;return A.eat("#")?A.eat("x")?V=A.eatWhile(/[a-fA-F\d]/)&&A.eat(";"):V=A.eatWhile(/[\d]/)&&A.eat(";"):V=A.eatWhile(/[\w\.\-:]/)&&A.eat(";"),V?"atom":"error"}else return A.eatWhile(/[^&<]/),null}u.isInText=!0;function r(A,U){var L=A.next();if(L==">"||L=="/"&&A.eat(">"))return U.tokenize=u,f=L==">"?"endTag":"selfcloseTag","tag bracket";if(L=="=")return f="equals",null;if(L=="<"){U.tokenize=u,U.state=c,U.tagName=U.tagStart=null;var N=U.tokenize(A,U);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(L)?(U.tokenize=i(L),U.stringStartCol=A.column(),U.tokenize(A,U)):(A.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function i(A){var U=function(L,N){for(;!L.eol();)if(L.next()==A){N.tokenize=r;break}return"string"};return U.isInAttribute=!0,U}function n(A,U){return function(L,N){for(;!L.eol();){if(L.match(U)){N.tokenize=u;break}L.next()}return A}}function l(A){return function(U,L){for(var N;(N=U.next())!=null;){if(N=="<")return L.tokenize=l(A+1),L.tokenize(U,L);if(N==">")if(A==1){L.tokenize=u;break}else return L.tokenize=l(A-1),L.tokenize(U,L)}return"meta"}}function h(A,U,L){this.prev=A.context,this.tagName=U,this.indent=A.indented,this.startOfLine=L,(O.doNotIndent.hasOwnProperty(U)||A.context&&A.context.noIndent)&&(this.noIndent=!0)}function d(A){A.context&&(A.context=A.context.prev)}function s(A,U){for(var L;;){if(!A.context)return;if(L=A.context.tagName,!O.contextGrabbers.hasOwnProperty(L)||!O.contextGrabbers[L].hasOwnProperty(U))return;d(A)}}function c(A,U,L){return A=="openTag"?(L.tagStart=U.column(),w):A=="closeTag"?E:c}function w(A,U,L){return A=="word"?(L.tagName=U.current(),a="tag",M):O.allowMissingTagName&&A=="endTag"?(a="tag bracket",M(A,U,L)):(a="error",w)}function E(A,U,L){if(A=="word"){var N=U.current();return L.context&&L.context.tagName!=N&&O.implicitlyClosed.hasOwnProperty(L.context.tagName)&&d(L),L.context&&L.context.tagName==N||O.matchClosing===!1?(a="tag",v):(a="tag error",R)}else return O.allowMissingTagName&&A=="endTag"?(a="tag bracket",v(A,U,L)):(a="error",R)}function v(A,U,L){return A!="endTag"?(a="error",v):(d(L),c)}function R(A,U,L){return a="error",v(A,U,L)}function M(A,U,L){if(A=="word")return a="attribute",C;if(A=="endTag"||A=="selfcloseTag"){var N=L.tagName,V=L.tagStart;return L.tagName=L.tagStart=null,A=="selfcloseTag"||O.autoSelfClosers.hasOwnProperty(N)?s(L,N):(s(L,N),L.context=new h(L,N,V==L.indented)),c}return a="error",M}function C(A,U,L){return A=="equals"?S:(O.allowMissing||(a="error"),M(A,U,L))}function S(A,U,L){return A=="string"?_:A=="word"&&O.allowUnquoted?(a="string",M):(a="error",M(A,U,L))}function _(A,U,L){return A=="string"?_:M(A,U,L)}return{startState:function(A){var U={tokenize:u,state:c,indented:A||0,tagName:null,tagStart:null,context:null};return A!=null&&(U.baseIndent=A),U},token:function(A,U){if(!U.tagName&&A.sol()&&(U.indented=A.indentation()),A.eatSpace())return null;f=null;var L=U.tokenize(A,U);return(L||f)&&L!="comment"&&(a=null,U.state=U.state(f||L,A,U),a&&(L=a=="error"?L+" error":a)),L},indent:function(A,U,L){var N=A.context;if(A.tokenize.isInAttribute)return A.tagStart==A.indented?A.stringStartCol+1:A.indented+x;if(N&&N.noIndent)return P.Pass;if(A.tokenize!=r&&A.tokenize!=u)return L?L.match(/^(\s*)/)[0].length:0;if(A.tagName)return O.multilineTagIndentPastTag!==!1?A.tagStart+A.tagName.length+2:A.tagStart+x*(O.multilineTagIndentFactor||1);if(O.alignCDATA&&/$/,blockCommentStart:"",configuration:O.htmlMode?"html":"xml",helperType:O.htmlMode?"html":"xml",skipAttribute:function(A){A.state==S&&(A.state=M)},xmlCurrentTag:function(A){return A.tagName?{name:A.tagName,close:A.type=="closeTag"}:null},xmlCurrentContext:function(A){for(var U=[],L=A.context;L;L=L.prev)L.tagName&&U.push(L.tagName);return U.reverse()}}}),P.defineMIME("text/xml","xml"),P.defineMIME("application/xml","xml"),P.mimeModes.hasOwnProperty("text/html")||P.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(k,z,o){"use strict";o.d(z,"d",function(){return Qe}),o.d(z,"b",function(){return We}),o.d(z,"c",function(){return Dt}),o.d(z,"a",function(){return rn});var P=o("VTBJ"),g=o("1OyB"),T=o("vuIU"),b=o("JX7q"),y=o("Ji7U"),x=o("LK+K"),O=o("q1tI"),m=o("I8Z2"),e=o("BGR+"),f=o("wx14"),a=o("rePB"),u=o("4IlW"),r=o("2GS6"),i=o("Gytx"),n=o.n(i),l=o("TSYQ"),h=o.n(l),d=o("U8pU"),s=o("ODXe"),c=/iPhone/i,w=/iPod/i,E=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,R=/Android/i,M=/\bAndroid(?:.+)SD4930UR\b/i,C=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,S=/Windows Phone/i,_=/\bWindows(?:.+)ARM\b/i,A=/BlackBerry/i,U=/BB10/i,L=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,V=/Mobile(?:.+)Firefox\b/i;function H(Ct,Ke){return Ct.test(Ke)}function D(Ct){var Ke=Ct||(typeof navigator!="undefined"?navigator.userAgent:""),et=Ke.split("[FBAN");if(typeof et[1]!="undefined"){var at=et,Pe=Object(s.a)(at,1);Ke=Pe[0]}if(et=Ke.split("Twitter"),typeof et[1]!="undefined"){var Xe=et,ht=Object(s.a)(Xe,1);Ke=ht[0]}var Et={apple:{phone:H(c,Ke)&&!H(S,Ke),ipod:H(w,Ke),tablet:!H(c,Ke)&&H(E,Ke)&&!H(S,Ke),device:(H(c,Ke)||H(w,Ke)||H(E,Ke))&&!H(S,Ke)},amazon:{phone:H(M,Ke),tablet:!H(M,Ke)&&H(C,Ke),device:H(M,Ke)||H(C,Ke)},android:{phone:!H(S,Ke)&&H(M,Ke)||!H(S,Ke)&&H(v,Ke),tablet:!H(S,Ke)&&!H(M,Ke)&&!H(v,Ke)&&(H(C,Ke)||H(R,Ke)),device:!H(S,Ke)&&(H(M,Ke)||H(C,Ke)||H(v,Ke)||H(R,Ke))||H(/\bokhttp\b/i,Ke)},windows:{phone:H(S,Ke),tablet:H(_,Ke),device:H(S,Ke)||H(_,Ke)},other:{blackberry:H(A,Ke),blackberry10:H(U,Ke),opera:H(L,Ke),firefox:H(V,Ke),chrome:H(N,Ke),device:H(A,Ke)||H(U,Ke)||H(L,Ke)||H(V,Ke)||H(N,Ke)},any:null,phone:null,tablet:null};return Et.any=Et.apple.device||Et.android.device||Et.windows.device||Et.other.device,Et.phone=Et.apple.phone||Et.android.phone||Et.windows.phone,Et.tablet=Et.apple.tablet||Et.android.tablet||Et.windows.tablet,Et}var W=Object(P.a)(Object(P.a)({},D()),{},{isMobile:D}),F=W;function I(){}function K(Ct,Ke,et){var at=Ke||"";return Ct.key||"".concat(at,"item_").concat(et)}function ee(Ct){return"".concat(Ct,"-menu-")}function he(Ct,Ke){var et=-1;O.Children.forEach(Ct,function(at){et+=1,at&&at.type&&at.type.isMenuItemGroup?O.Children.forEach(at.props.children,function(Pe){et+=1,Ke(Pe,et)}):Ke(at,et)})}function de(Ct,Ke,et){if(!Ct||et.find)return;O.Children.forEach(Ct,function(at){if(at){var Pe=at.type;if(!Pe||!(Pe.isSubMenu||Pe.isMenuItem||Pe.isMenuItemGroup))return;Ke.indexOf(at.key)!==-1?et.find=!0:at.props.children&&de(at.props.children,Ke,et)}})}var Se=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Te=function(Ke){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=Ke&&typeof Ke.getBoundingClientRect=="function"&&Ke.getBoundingClientRect().width;if(at){if(et){var Pe=getComputedStyle(Ke),Xe=Pe.marginLeft,ht=Pe.marginRight;at+=+Xe.replace("px","")+ +ht.replace("px","")}at=+at.toFixed(6)}return at||0},ce=function(Ke,et,at){Ke&&Object(d.a)(Ke.style)==="object"&&(Ke.style[et]=at)},be=function(){return F.any},Ee=o("KQm4"),ue=o("Ff2n"),le=o("i8i4"),$=o("bdgK"),me=o("uciX"),re=o("8XRh"),ae={adjustX:1,adjustY:1},Oe={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},se={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ae,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ae,offset:[4,0]}},te=Oe,Q=0,J={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ve=function(Ke,et,at){var Pe=ee(et),Xe=Ke.getState();Ke.setState({defaultActiveFirst:Object(P.a)(Object(P.a)({},Xe.defaultActiveFirst),{},Object(a.a)({},Pe,at))})},_e=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(at){var Pe;Object(g.a)(this,et),Pe=Ke.call(this,at),Pe.onDestroy=function(lt){Pe.props.onDestroy(lt)},Pe.onKeyDown=function(lt){var Ft=lt.keyCode,Lt=Pe.menuInstance,on=Pe.props,mn=on.isOpen,Hn=on.store;if(Ft===u.a.ENTER)return Pe.onTitleClick(lt),ve(Hn,Pe.props.eventKey,!0),!0;if(Ft===u.a.RIGHT)return mn?Lt.onKeyDown(lt):(Pe.triggerOpenChange(!0),ve(Hn,Pe.props.eventKey,!0)),!0;if(Ft===u.a.LEFT){var Xn;if(mn)Xn=Lt.onKeyDown(lt);else return;return Xn||(Pe.triggerOpenChange(!1),Xn=!0),Xn}return mn&&(Ft===u.a.UP||Ft===u.a.DOWN)?Lt.onKeyDown(lt):void 0},Pe.onOpenChange=function(lt){Pe.props.onOpenChange(lt)},Pe.onPopupVisibleChange=function(lt){Pe.triggerOpenChange(lt,lt?"mouseenter":"mouseleave")},Pe.onMouseEnter=function(lt){var Ft=Pe.props,Lt=Ft.eventKey,on=Ft.onMouseEnter,mn=Ft.store;ve(mn,Pe.props.eventKey,!1),on({key:Lt,domEvent:lt})},Pe.onMouseLeave=function(lt){var Ft=Pe.props,Lt=Ft.parentMenu,on=Ft.eventKey,mn=Ft.onMouseLeave;Lt.subMenuInstance=Object(b.a)(Pe),mn({key:on,domEvent:lt})},Pe.onTitleMouseEnter=function(lt){var Ft=Pe.props,Lt=Ft.eventKey,on=Ft.onItemHover,mn=Ft.onTitleMouseEnter;on({key:Lt,hover:!0}),mn({key:Lt,domEvent:lt})},Pe.onTitleMouseLeave=function(lt){var Ft=Pe.props,Lt=Ft.parentMenu,on=Ft.eventKey,mn=Ft.onItemHover,Hn=Ft.onTitleMouseLeave;Lt.subMenuInstance=Object(b.a)(Pe),mn({key:on,hover:!1}),Hn({key:on,domEvent:lt})},Pe.onTitleClick=function(lt){var Ft=Object(b.a)(Pe),Lt=Ft.props;if(Lt.onTitleClick({key:Lt.eventKey,domEvent:lt}),Lt.triggerSubMenuAction==="hover")return;Pe.triggerOpenChange(!Lt.isOpen,"click"),ve(Lt.store,Pe.props.eventKey,!1)},Pe.onSubMenuClick=function(lt){typeof Pe.props.onClick=="function"&&Pe.props.onClick(Pe.addKeyPath(lt))},Pe.onSelect=function(lt){Pe.props.onSelect(lt)},Pe.onDeselect=function(lt){Pe.props.onDeselect(lt)},Pe.getPrefixCls=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu")},Pe.getActiveClassName=function(){return"".concat(Pe.getPrefixCls(),"-active")},Pe.getDisabledClassName=function(){return"".concat(Pe.getPrefixCls(),"-disabled")},Pe.getSelectedClassName=function(){return"".concat(Pe.getPrefixCls(),"-selected")},Pe.getOpenClassName=function(){return"".concat(Pe.props.rootPrefixCls,"-submenu-open")},Pe.saveMenuInstance=function(lt){Pe.menuInstance=lt},Pe.addKeyPath=function(lt){return Object(P.a)(Object(P.a)({},lt),{},{keyPath:(lt.keyPath||[]).concat(Pe.props.eventKey)})},Pe.triggerOpenChange=function(lt,Ft){var Lt=Pe.props.eventKey,on=function(){Pe.onOpenChange({key:Lt,item:Object(b.a)(Pe),trigger:Ft,open:lt})};Ft==="mouseenter"?Pe.mouseenterTimeout=setTimeout(function(){on()},0):on()},Pe.isChildrenSelected=function(){var lt={find:!1};return de(Pe.props.children,Pe.props.selectedKeys,lt),lt.find},Pe.isOpen=function(){return Pe.props.openKeys.indexOf(Pe.props.eventKey)!==-1},Pe.adjustWidth=function(){if(!Pe.subMenuTitle||!Pe.menuInstance)return;var lt=le.findDOMNode(Pe.menuInstance);if(lt.offsetWidth>=Pe.subMenuTitle.offsetWidth)return;lt.style.minWidth="".concat(Pe.subMenuTitle.offsetWidth,"px")},Pe.saveSubMenuTitle=function(lt){Pe.subMenuTitle=lt},Pe.getBaseProps=function(){var lt=Object(b.a)(Pe),Ft=lt.props;return{mode:Ft.mode==="horizontal"?"vertical":Ft.mode,visible:Pe.props.isOpen,level:Ft.level+1,inlineIndent:Ft.inlineIndent,focusable:!1,onClick:Pe.onSubMenuClick,onSelect:Pe.onSelect,onDeselect:Pe.onDeselect,onDestroy:Pe.onDestroy,selectedKeys:Ft.selectedKeys,eventKey:"".concat(Ft.eventKey,"-menu-"),openKeys:Ft.openKeys,motion:Ft.motion,onOpenChange:Pe.onOpenChange,subMenuOpenDelay:Ft.subMenuOpenDelay,parentMenu:Object(b.a)(Pe),subMenuCloseDelay:Ft.subMenuCloseDelay,forceSubMenuRender:Ft.forceSubMenuRender,triggerSubMenuAction:Ft.triggerSubMenuAction,builtinPlacements:Ft.builtinPlacements,defaultActiveFirst:Ft.store.getState().defaultActiveFirst[ee(Ft.eventKey)],multiple:Ft.multiple,prefixCls:Ft.rootPrefixCls,id:Pe.internalMenuId,manualRef:Pe.saveMenuInstance,itemIcon:Ft.itemIcon,expandIcon:Ft.expandIcon,direction:Ft.direction}},Pe.getMotion=function(lt,Ft){var Lt=Object(b.a)(Pe),on=Lt.haveRendered,mn=Pe.props,Hn=mn.motion,Xn=mn.rootPrefixCls,Fn=Object(P.a)(Object(P.a)({},Hn),{},{leavedClassName:"".concat(Xn,"-hidden"),removeOnLeave:!1,motionAppear:on||!Ft||lt!=="inline"});return Fn};var Xe=at.store,ht=at.eventKey,Et=Xe.getState(),Ot=Et.defaultActiveFirst;Pe.isRootMenu=!1;var Mt=!1;return Ot&&(Mt=Ot[ht]),ve(Xe,ht,Mt),Pe}return Object(T.a)(et,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this,Xe=this.props,ht=Xe.mode,Et=Xe.parentMenu,Ot=Xe.manualRef;if(Ot&&Ot(this),ht!=="horizontal"||!Et.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Pe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Pe=this.props,Xe=Pe.onDestroy,ht=Pe.eventKey;Xe&&Xe(ht),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Pe){var Xe=this,ht=this.getBaseProps(),Et=this.getMotion(ht.mode,ht.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ht.visible||ht.forceSubMenuRender,!this.haveOpened)return O.createElement("div",null);var Ot=ht.direction;return O.createElement(re.default,Object.assign({visible:ht.visible},Et),function(Mt){var lt=Mt.className,Ft=Mt.style,Lt=h()("".concat(ht.prefixCls,"-sub"),lt,Object(a.a)({},"".concat(ht.prefixCls,"-rtl"),Ot==="rtl"));return O.createElement(it,Object.assign({},ht,{id:Xe.internalMenuId,className:Lt,style:Ft}),Pe)})}},{key:"render",value:function(){var Pe,Xe=Object(P.a)({},this.props),ht=Xe.isOpen,Et=this.getPrefixCls(),Ot=Xe.mode==="inline",Mt=h()(Et,"".concat(Et,"-").concat(Xe.mode),(Pe={},Object(a.a)(Pe,Xe.className,!!Xe.className),Object(a.a)(Pe,this.getOpenClassName(),ht),Object(a.a)(Pe,this.getActiveClassName(),Xe.active||ht&&!Ot),Object(a.a)(Pe,this.getDisabledClassName(),Xe.disabled),Object(a.a)(Pe,this.getSelectedClassName(),this.isChildrenSelected()),Pe));this.internalMenuId||(Xe.eventKey?this.internalMenuId="".concat(Xe.eventKey,"$Menu"):(Q+=1,this.internalMenuId="$__$".concat(Q,"$Menu")));var lt={},Ft={},Lt={};Xe.disabled||(lt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ft={onClick:this.onTitleClick},Lt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var on={},mn=Xe.direction;Ot&&(mn==="rtl"?on.paddingRight=Xe.inlineIndent*Xe.level:on.paddingLeft=Xe.inlineIndent*Xe.level);var Hn={};this.props.isOpen&&(Hn={"aria-owns":this.internalMenuId});var Xn=null;Xe.mode!=="horizontal"&&(Xn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Xn=O.createElement(this.props.expandIcon,Object(P.a)({},this.props))));var Fn=O.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:on,className:"".concat(Et,"-title"),role:"button"},Lt,Ft,{"aria-expanded":ht},Hn,{"aria-haspopup":"true",title:typeof Xe.title=="string"?Xe.title:void 0}),Xe.title,Xn||O.createElement("i",{className:"".concat(Et,"-arrow")})),xn=this.renderChildren(Xe.children),fr=Xe.parentMenu.isRootMenu?Xe.parentMenu.props.getPopupContainer:function(xr){return xr.parentNode},Yn=J[Xe.mode],ar=Xe.popupOffset?{offset:Xe.popupOffset}:{},nr=Xe.mode==="inline"?"":Xe.popupClassName;nr+=mn==="rtl"?" ".concat(Et,"-rtl"):"";var Rr=Xe.disabled,pr=Xe.triggerSubMenuAction,sn=Xe.subMenuOpenDelay,qt=Xe.forceSubMenuRender,On=Xe.subMenuCloseDelay,Fr=Xe.builtinPlacements;Se.forEach(function(xr){return delete Xe[xr]}),delete Xe.onClick;var Or=mn==="rtl"?Object.assign({},se,Fr):Object.assign({},Oe,Fr);return delete Xe.direction,O.createElement("li",Object.assign({},Xe,lt,{className:Mt,role:"menuitem"}),Ot&&Fn,Ot&&xn,!Ot&&O.createElement(me.a,{prefixCls:Et,popupClassName:h()("".concat(Et,"-popup"),nr),getPopupContainer:fr,builtinPlacements:Or,popupPlacement:Yn,popupVisible:ht,popupAlign:ar,popup:xn,action:Rr?[]:[pr],mouseEnterDelay:sn,mouseLeaveDelay:On,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:qt},Fn))}}]),et}(O.Component);_e.defaultProps={onMouseEnter:I,onMouseLeave:I,onTitleMouseEnter:I,onTitleMouseLeave:I,onTitleClick:I,manualRef:I,mode:"vertical",title:""};var Ae=Object(m.b)(function(Ct,Ke){var et=Ct.openKeys,at=Ct.activeKey,Pe=Ct.selectedKeys,Xe=Ke.eventKey,ht=Ke.subMenuKey;return{isOpen:et.indexOf(Xe)>-1,active:at[ht]===Xe,selectedKeys:Pe}})(_e);Ae.isSubMenu=!0;var Qe=Ae,tt="menuitem-overflowed",dt=.5,mt=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(){var at;return Object(g.a)(this,et),at=Ke.apply(this,arguments),at.resizeObserver=null,at.mutationObserver=null,at.originalTotalWidth=0,at.overflowedItems=[],at.menuItemSizes=[],at.cancelFrameId=null,at.state={lastVisibleIndex:void 0},at.getMenuItemNodes=function(){var Pe=at.props.prefixCls,Xe=le.findDOMNode(Object(b.a)(at));return Xe?[].slice.call(Xe.children).filter(function(ht){return ht.className.split(" ").indexOf("".concat(Pe,"-overflowed-submenu"))<0}):[]},at.getOverflowedSubMenuItem=function(Pe,Xe,ht){var Et=at.props,Ot=Et.overflowedIndicator,Mt=Et.level,lt=Et.mode,Ft=Et.prefixCls,Lt=Et.theme;if(Mt!==1||lt!=="horizontal")return null;var on=at.props.children[0],mn=on.props,Hn=mn.children,Xn=mn.title,Fn=mn.style,xn=Object(ue.a)(mn,["children","title","style"]),fr=Object(P.a)({},Fn),Yn="".concat(Pe,"-overflowed-indicator"),ar="".concat(Pe,"-overflowed-indicator");Xe.length===0&&ht!==!0?fr=Object(P.a)(Object(P.a)({},fr),{},{display:"none"}):ht&&(fr=Object(P.a)(Object(P.a)({},fr),{},{visibility:"hidden",position:"absolute"}),Yn="".concat(Yn,"-placeholder"),ar="".concat(ar,"-placeholder"));var nr=Lt?"".concat(Ft,"-").concat(Lt):"",Rr={};return Se.forEach(function(pr){xn[pr]!==void 0&&(Rr[pr]=xn[pr])}),O.createElement(Qe,Object.assign({title:Ot,className:"".concat(Ft,"-overflowed-submenu"),popupClassName:nr},Rr,{key:Yn,eventKey:ar,disabled:!1,style:fr}),Xe)},at.setChildrenWidthAndResize=function(){if(at.props.mode!=="horizontal")return;var Pe=le.findDOMNode(Object(b.a)(at));if(!Pe)return;var Xe=Pe.children;if(!Xe||Xe.length===0)return;var ht=Pe.children[Xe.length-1];ce(ht,"display","inline-block");var Et=at.getMenuItemNodes(),Ot=Et.filter(function(Mt){return Mt.className.split(" ").indexOf(tt)>=0});Ot.forEach(function(Mt){ce(Mt,"display","inline-block")}),at.menuItemSizes=Et.map(function(Mt){return Te(Mt,!0)}),Ot.forEach(function(Mt){ce(Mt,"display","none")}),at.overflowedIndicatorWidth=Te(Pe.children[Pe.children.length-1],!0),at.originalTotalWidth=at.menuItemSizes.reduce(function(Mt,lt){return Mt+lt},0),at.handleResize(),ce(ht,"display","none")},at.handleResize=function(){if(at.props.mode!=="horizontal")return;var Pe=le.findDOMNode(Object(b.a)(at));if(!Pe)return;var Xe=Te(Pe);at.overflowedItems=[];var ht=0,Et;at.originalTotalWidth>Xe+dt&&(Et=-1,at.menuItemSizes.forEach(function(Ot){ht+=Ot,ht+at.overflowedIndicatorWidth<=Xe&&(Et+=1)})),at.setState({lastVisibleIndex:Et})},at}return Object(T.a)(et,[{key:"componentDidMount",value:function(){var Pe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Xe=le.findDOMNode(this);if(!Xe)return;this.resizeObserver=new $.default(function(ht){ht.forEach(function(){var Et=Pe.cancelFrameId;cancelAnimationFrame(Et),Pe.cancelFrameId=requestAnimationFrame(Pe.setChildrenWidthAndResize)})}),[].slice.call(Xe.children).concat(Xe).forEach(function(ht){Pe.resizeObserver.observe(ht)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Pe.resizeObserver.disconnect(),[].slice.call(Xe.children).concat(Xe).forEach(function(ht){Pe.resizeObserver.observe(ht)}),Pe.setChildrenWidthAndResize()}),this.mutationObserver.observe(Xe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Pe){var Xe=this,ht=this.state.lastVisibleIndex;return(Pe||[]).reduce(function(Et,Ot,Mt){var lt=Ot;if(Xe.props.mode==="horizontal"){var Ft=Xe.getOverflowedSubMenuItem(Ot.props.eventKey,[]);ht!==void 0&&Xe.props.className.indexOf("".concat(Xe.props.prefixCls,"-root"))!==-1&&(Mt>ht&&(lt=O.cloneElement(Ot,{style:{display:"none"},eventKey:"".concat(Ot.props.eventKey,"-hidden"),className:"".concat(tt)})),Mt===ht+1&&(Xe.overflowedItems=Pe.slice(ht+1).map(function(on){return O.cloneElement(on,{key:on.props.eventKey,mode:"vertical-left"})}),Ft=Xe.getOverflowedSubMenuItem(Ot.props.eventKey,Xe.overflowedItems)));var Lt=[].concat(Object(Ee.a)(Et),[Ft,lt]);return Mt===Pe.length-1&&Lt.push(Xe.getOverflowedSubMenuItem(Ot.props.eventKey,[],!0)),Lt}return[].concat(Object(Ee.a)(Et),[lt])},[])}},{key:"render",value:function(){var Pe=this.props,Xe=Pe.visible,ht=Pe.prefixCls,Et=Pe.overflowedIndicator,Ot=Pe.mode,Mt=Pe.level,lt=Pe.tag,Ft=Pe.children,Lt=Pe.theme,on=Object(ue.a)(Pe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),mn=lt;return O.createElement(mn,Object.assign({},on),this.renderChildren(Ft))}}]),et}(O.Component);mt.defaultProps={tag:"div",className:""};var vt=mt;function yt(Ct){return Ct.length?Ct.every(function(Ke){return!!Ke.props.disabled}):!0}function Ye(Ct,Ke,et){var at=Ct.getState();Ct.setState({activeKey:Object(P.a)(Object(P.a)({},at.activeKey),{},Object(a.a)({},Ke,et))})}function Ue(Ct){return Ct.eventKey||"0-menu-"}function ft(Ct,Ke){var et=Ke,at=Ct.children,Pe=Ct.eventKey;if(et){var Xe;if(he(at,function(ht,Et){ht&&ht.props&&!ht.props.disabled&&et===K(ht,Pe,Et)&&(Xe=!0)}),Xe)return et}return et=null,Ct.defaultActiveFirst&&he(at,function(ht,Et){!et&&ht&&!ht.props.disabled&&(et=K(ht,Pe,Et))}),et}function jt(Ct){if(Ct){var Ke=this.instanceArray.indexOf(Ct);Ke!==-1?this.instanceArray[Ke]=Ct:this.instanceArray.push(Ct)}}var bt=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(at){var Pe;return Object(g.a)(this,et),Pe=Ke.call(this,at),Pe.onKeyDown=function(Xe,ht){var Et=Xe.keyCode,Ot;if(Pe.getFlatInstanceArray().forEach(function(lt){lt&<.props.active&<.onKeyDown&&(Ot=lt.onKeyDown(Xe))}),Ot)return 1;var Mt=null;return(Et===u.a.UP||Et===u.a.DOWN)&&(Mt=Pe.step(Et===u.a.UP?-1:1)),Mt?(Xe.preventDefault(),Ye(Pe.props.store,Ue(Pe.props),Mt.props.eventKey),typeof ht=="function"&&ht(Mt),1):void 0},Pe.onItemHover=function(Xe){var ht=Xe.key,Et=Xe.hover;Ye(Pe.props.store,Ue(Pe.props),Et?ht:null)},Pe.onDeselect=function(Xe){Pe.props.onDeselect(Xe)},Pe.onSelect=function(Xe){Pe.props.onSelect(Xe)},Pe.onClick=function(Xe){Pe.props.onClick(Xe)},Pe.onOpenChange=function(Xe){Pe.props.onOpenChange(Xe)},Pe.onDestroy=function(Xe){Pe.props.onDestroy(Xe)},Pe.getFlatInstanceArray=function(){return Pe.instanceArray},Pe.step=function(Xe){var ht=Pe.getFlatInstanceArray(),Et=Pe.props.store.getState().activeKey[Ue(Pe.props)],Ot=ht.length;if(!Ot)return null;Xe<0&&(ht=ht.concat().reverse());var Mt=-1;if(ht.every(function(on,mn){return on&&on.props.eventKey===Et?(Mt=mn,!1):!0}),!Pe.props.defaultActiveFirst&&Mt!==-1&&yt(ht.slice(Mt,Ot-1)))return;var lt=(Mt+1)%Ot,Ft=lt;do{var Lt=ht[Ft];if(!Lt||Lt.props.disabled)Ft=(Ft+1)%Ot;else return Lt}while(Ft!==lt);return null},Pe.renderCommonMenuItem=function(Xe,ht,Et){var Ot=Pe.props.store.getState(),Mt=Object(b.a)(Pe),lt=Mt.props,Ft=K(Xe,lt.eventKey,ht),Lt=Xe.props;if(!Lt||typeof Xe.type=="string")return Xe;var on=Ft===Ot.activeKey,mn=Object(P.a)(Object(P.a)({mode:Lt.mode||lt.mode,level:lt.level,inlineIndent:lt.inlineIndent,renderMenuItem:Pe.renderMenuItem,rootPrefixCls:lt.prefixCls,index:ht,parentMenu:lt.parentMenu,manualRef:Lt.disabled?void 0:Object(r.a)(Xe.ref,jt.bind(Object(b.a)(Pe))),eventKey:Ft,active:!Lt.disabled&&on,multiple:lt.multiple,onClick:function(Xn){(Lt.onClick||I)(Xn),Pe.onClick(Xn)},onItemHover:Pe.onItemHover,motion:lt.motion,subMenuOpenDelay:lt.subMenuOpenDelay,subMenuCloseDelay:lt.subMenuCloseDelay,forceSubMenuRender:lt.forceSubMenuRender,onOpenChange:Pe.onOpenChange,onDeselect:Pe.onDeselect,onSelect:Pe.onSelect,builtinPlacements:lt.builtinPlacements,itemIcon:Lt.itemIcon||Pe.props.itemIcon,expandIcon:Lt.expandIcon||Pe.props.expandIcon},Et),{},{direction:lt.direction});return(lt.mode==="inline"||be())&&(mn.triggerSubMenuAction="click"),O.cloneElement(Xe,mn)},Pe.renderMenuItem=function(Xe,ht,Et){if(!Xe)return null;var Ot=Pe.props.store.getState(),Mt={openKeys:Ot.openKeys,selectedKeys:Ot.selectedKeys,triggerSubMenuAction:Pe.props.triggerSubMenuAction,subMenuKey:Et};return Pe.renderCommonMenuItem(Xe,ht,Mt)},at.store.setState({activeKey:Object(P.a)(Object(P.a)({},at.store.getState().activeKey),{},Object(a.a)({},at.eventKey,ft(at,at.activeKey)))}),Pe.instanceArray=[],Pe}return Object(T.a)(et,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Pe){return this.props.visible||Pe.visible||this.props.className!==Pe.className||!n()(this.props.style,Pe.style)}},{key:"componentDidUpdate",value:function(Pe){var Xe=this.props,ht="activeKey"in Xe?Xe.activeKey:Xe.store.getState().activeKey[Ue(Xe)],Et=ft(Xe,ht);if(Et!==ht)Ye(Xe.store,Ue(Xe),Et);else if("activeKey"in Pe){var Ot=ft(Pe,Pe.activeKey);Et!==Ot&&Ye(Xe.store,Ue(Xe),Et)}}},{key:"render",value:function(){var Pe=this,Xe=Object(f.a)({},this.props);this.instanceArray=[];var ht=h()(Xe.prefixCls,Xe.className,"".concat(Xe.prefixCls,"-").concat(Xe.mode)),Et={className:ht,role:Xe.role||"menu"};Xe.id&&(Et.id=Xe.id),Xe.focusable&&(Et.tabIndex=0,Et.onKeyDown=this.onKeyDown);var Ot=Xe.prefixCls,Mt=Xe.eventKey,lt=Xe.visible,Ft=Xe.level,Lt=Xe.mode,on=Xe.overflowedIndicator,mn=Xe.theme;return Se.forEach(function(Hn){return delete Xe[Hn]}),delete Xe.onClick,O.createElement(vt,Object.assign({},Xe,{prefixCls:Ot,mode:Lt,tag:"ul",level:Ft,theme:mn,visible:lt,overflowedIndicator:on},Et),O.Children.map(Xe.children,function(Hn,Xn){return Pe.renderMenuItem(Hn,Xn,Mt||"0-menu-")}))}}]),et}(O.Component);bt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:I};var Pt=Object(m.b)()(bt),it=Pt,He=o("Kwbf");function Ge(Ct,Ke,et){var at=Ct.prefixCls,Pe=Ct.motion,Xe=Ct.defaultMotions,ht=Xe===void 0?{}:Xe,Et=Ct.openAnimation,Ot=Ct.openTransitionName,Mt=Ke.switchingModeFromInline;if(Pe)return Pe;if(Object(d.a)(Et)==="object"&&Et)Object(He.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Et=="string")return{motionName:"".concat(at,"-open-").concat(Et)};if(Ot)return{motionName:Ot};var lt=ht[et];return lt||(Mt?null:ht.other)}var Ce=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(at){var Pe;Object(g.a)(this,et),Pe=Ke.call(this,at),Pe.inlineOpenKeys=[],Pe.onSelect=function(Et){var Ot=Object(b.a)(Pe),Mt=Ot.props;if(Mt.selectable){var lt=Pe.store.getState(),Ft=lt.selectedKeys,Lt=Et.key;Mt.multiple?Ft=Ft.concat([Lt]):Ft=[Lt],"selectedKeys"in Mt||Pe.store.setState({selectedKeys:Ft}),Mt.onSelect(Object(P.a)(Object(P.a)({},Et),{},{selectedKeys:Ft}))}},Pe.onClick=function(Et){var Ot=Pe.getRealMenuMode(),Mt=Object(b.a)(Pe),lt=Mt.store,Ft=Mt.props.onOpenChange;Ot!=="inline"&&!("openKeys"in Pe.props)&&(lt.setState({openKeys:[]}),Ft([])),Pe.props.onClick(Et)},Pe.onKeyDown=function(Et,Ot){Pe.innerMenu.getWrappedInstance().onKeyDown(Et,Ot)},Pe.onOpenChange=function(Et){var Ot=Object(b.a)(Pe),Mt=Ot.props,lt=Pe.store.getState().openKeys.concat(),Ft=!1,Lt=function(mn){var Hn=!1;if(mn.open)Hn=lt.indexOf(mn.key)===-1,Hn&<.push(mn.key);else{var Xn=lt.indexOf(mn.key);Hn=Xn!==-1,Hn&<.splice(Xn,1)}Ft=Ft||Hn};Array.isArray(Et)?Et.forEach(Lt):Lt(Et),Ft&&("openKeys"in Pe.props||Pe.store.setState({openKeys:lt}),Mt.onOpenChange(lt))},Pe.onDeselect=function(Et){var Ot=Object(b.a)(Pe),Mt=Ot.props;if(Mt.selectable){var lt=Pe.store.getState().selectedKeys.concat(),Ft=Et.key,Lt=lt.indexOf(Ft);Lt!==-1&<.splice(Lt,1),"selectedKeys"in Mt||Pe.store.setState({selectedKeys:lt}),Mt.onDeselect(Object(P.a)(Object(P.a)({},Et),{},{selectedKeys:lt}))}},Pe.onMouseEnter=function(Et){Pe.restoreModeVerticalFromInline();var Ot=Pe.props.onMouseEnter;Ot&&Ot(Et)},Pe.onTransitionEnd=function(Et){var Ot=Et.propertyName==="width"&&Et.target===Et.currentTarget,Mt=Et.target.className,lt=Object.prototype.toString.call(Mt)==="[object SVGAnimatedString]"?Mt.animVal:Mt,Ft=Et.propertyName==="font-size"&<.indexOf("anticon")>=0;(Ot||Ft)&&Pe.restoreModeVerticalFromInline()},Pe.setInnerMenu=function(Et){Pe.innerMenu=Et},Pe.isRootMenu=!0;var Xe=at.defaultSelectedKeys,ht=at.defaultOpenKeys;return"selectedKeys"in at&&(Xe=at.selectedKeys||[]),"openKeys"in at&&(ht=at.openKeys||[]),Pe.store=Object(m.c)({selectedKeys:Xe,openKeys:ht,activeKey:{"0-menu-":ft(at,at.activeKey)}}),Pe.state={switchingModeFromInline:!1},Pe}return Object(T.a)(et,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Pe){this.updateOpentKeysWhenSwitchMode(Pe),this.updateMiniStore();var Xe=this.props,ht=Xe.siderCollapsed,Et=Xe.inlineCollapsed,Ot=Xe.onOpenChange;(!Pe.inlineCollapsed&&Et||!Pe.siderCollapsed&&ht)&&Ot([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Pe){var Xe=this.props,ht=this.store,Et=this.inlineOpenKeys,Ot=ht.getState(),Mt={};Pe.mode==="inline"&&Xe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Xe||((Xe.inlineCollapsed&&!Pe.inlineCollapsed||Xe.siderCollapsed&&!Pe.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Ot.openKeys.concat(),Mt.openKeys=[]),(!Xe.inlineCollapsed&&Pe.inlineCollapsed||!Xe.siderCollapsed&&Pe.siderCollapsed)&&(Mt.openKeys=Et,this.inlineOpenKeys=[])),Object.keys(Mt).length&&ht.setState(Mt)}},{key:"updateMenuDisplay",value:function(){var Pe=this.props.collapsedWidth,Xe=this.store,ht=this.prevOpenKeys,Et=this.getInlineCollapsed()&&(Pe===0||Pe==="0"||Pe==="0px");Et?(this.prevOpenKeys=Xe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ht&&(this.store.setState({openKeys:ht}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Pe=this.props.mode,Xe=this.state.switchingModeFromInline,ht=this.getInlineCollapsed();return Xe&&ht?"inline":ht?"vertical":Pe}},{key:"getInlineCollapsed",value:function(){var Pe=this.props,Xe=Pe.inlineCollapsed,ht=Pe.siderCollapsed;return ht!==void 0?ht:Xe}},{key:"restoreModeVerticalFromInline",value:function(){var Pe=this.state.switchingModeFromInline;Pe&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Pe=Object(P.a)({},Object(e.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Xe=this.getRealMenuMode();return Pe.className+=" ".concat(Pe.prefixCls,"-root"),Pe.direction==="rtl"&&(Pe.className+=" ".concat(Pe.prefixCls,"-rtl")),Pe=Object(P.a)(Object(P.a)({},Pe),{},{mode:Xe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ge(this.props,this.state,Xe)}),delete Pe.openAnimation,delete Pe.openTransitionName,O.createElement(m.a,{store:this.store},O.createElement(it,Object.assign({},Pe,{ref:this.setInnerMenu}),this.props.children))}}]),et}(O.Component);Ce.defaultProps={selectable:!0,onClick:I,onSelect:I,onOpenChange:I,onDeselect:I,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:O.createElement("span",null,"\xB7\xB7\xB7")};var Ie=Ce,Fe=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(){var at;return Object(g.a)(this,et),at=Ke.apply(this,arguments),at.onKeyDown=function(Pe){var Xe=Pe.keyCode;return Xe===u.a.ENTER?(at.onClick(Pe),!0):void 0},at.onMouseLeave=function(Pe){var Xe=at.props,ht=Xe.eventKey,Et=Xe.onItemHover,Ot=Xe.onMouseLeave;Et({key:ht,hover:!1}),Ot({key:ht,domEvent:Pe})},at.onMouseEnter=function(Pe){var Xe=at.props,ht=Xe.eventKey,Et=Xe.onItemHover,Ot=Xe.onMouseEnter;Et({key:ht,hover:!0}),Ot({key:ht,domEvent:Pe})},at.onClick=function(Pe){var Xe=at.props,ht=Xe.eventKey,Et=Xe.multiple,Ot=Xe.onClick,Mt=Xe.onSelect,lt=Xe.onDeselect,Ft=Xe.isSelected,Lt={key:ht,keyPath:[ht],item:Object(b.a)(at),domEvent:Pe};Ot(Lt),Et?Ft?lt(Lt):Mt(Lt):Ft||Mt(Lt)},at.saveNode=function(Pe){at.node=Pe},at}return Object(T.a)(et,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Pe=this.props;Pe.onDestroy&&Pe.onDestroy(Pe.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Pe,Xe=Object(P.a)({},this.props),ht=h()(this.getPrefixCls(),Xe.className,(Pe={},Object(a.a)(Pe,this.getActiveClassName(),!Xe.disabled&&Xe.active),Object(a.a)(Pe,this.getSelectedClassName(),Xe.isSelected),Object(a.a)(Pe,this.getDisabledClassName(),Xe.disabled),Pe)),Et=Object(P.a)(Object(P.a)({},Xe.attribute),{},{title:typeof Xe.title=="string"?Xe.title:void 0,className:ht,role:Xe.role||"menuitem","aria-disabled":Xe.disabled});Xe.role==="option"?Et=Object(P.a)(Object(P.a)({},Et),{},{role:"option","aria-selected":Xe.isSelected}):(Xe.role===null||Xe.role==="none")&&(Et.role="none");var Ot={onClick:Xe.disabled?null:this.onClick,onMouseLeave:Xe.disabled?null:this.onMouseLeave,onMouseEnter:Xe.disabled?null:this.onMouseEnter},Mt=Object(P.a)({},Xe.style);Xe.mode==="inline"&&(Xe.direction==="rtl"?Mt.paddingRight=Xe.inlineIndent*Xe.level:Mt.paddingLeft=Xe.inlineIndent*Xe.level),Se.forEach(function(Ft){return delete Xe[Ft]}),delete Xe.direction;var lt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(lt=O.createElement(this.props.itemIcon,this.props)),O.createElement("li",Object.assign({},Object(e.default)(Xe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Et,Ot,{style:Mt,ref:this.saveNode}),Xe.children,lt)}}]),et}(O.Component);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:I,onMouseEnter:I,onMouseLeave:I,manualRef:I};var Be=Object(m.b)(function(Ct,Ke){var et=Ct.activeKey,at=Ct.selectedKeys,Pe=Ke.eventKey,Xe=Ke.subMenuKey;return{active:et[Xe]===Pe,isSelected:at.indexOf(Pe)!==-1}})(Fe),We=Be,st=function(Ct){Object(y.a)(et,Ct);var Ke=Object(x.a)(et);function et(){var at;return Object(g.a)(this,et),at=Ke.apply(this,arguments),at.renderInnerMenuItem=function(Pe){var Xe=at.props,ht=Xe.renderMenuItem,Et=Xe.index;return ht(Pe,Et,at.props.subMenuKey)},at}return Object(T.a)(et,[{key:"render",value:function(){var Pe=Object(f.a)({},this.props),Xe=Pe.className,ht=Xe===void 0?"":Xe,Et=Pe.rootPrefixCls,Ot="".concat(Et,"-item-group-title"),Mt="".concat(Et,"-item-group-list"),lt=Pe.title,Ft=Pe.children;return Se.forEach(function(Lt){return delete Pe[Lt]}),delete Pe.onClick,delete Pe.direction,O.createElement("li",Object.assign({},Pe,{className:"".concat(ht," ").concat(Et,"-item-group")}),O.createElement("div",{className:Ot,title:typeof lt=="string"?lt:void 0},lt),O.createElement("ul",{className:Mt},O.Children.map(Ft,this.renderInnerMenuItem)))}}]),et}(O.Component);st.isMenuItemGroup=!0,st.defaultProps={disabled:!0};var Dt=st,Ht=function(Ke){var et=Ke.className,at=Ke.rootPrefixCls,Pe=Ke.style;return O.createElement("li",{className:"".concat(et," ").concat(at,"-item-divider"),style:Pe})};Ht.defaultProps={disabled:!0,className:"",style:{}};var rn=Ht,Bt=z.e=Ie},"1nVM":function(k,z,o){k.exports={titlesize:"titlesize___3R6Gt",wrap:"wrap___33HQq",labelWrap:"labelWrap___1iqwF",label:"label___27cm-",labelContent:"labelContent___1fVMu",flexRow:"flexRow___PEsIJ",color999:"color999___2Yr8Q",radio:"radio___OcreT",color0152d9:"color0152d9___1FV6h",popover:"popover___2xk-c",serviceSettingName:"serviceSettingName___Ld9Mm",flexJustifyCenter:"flexJustifyCenter___18x9a",flexAlignEnd:"flexAlignEnd___1C-X3",flexAlignCenter:"flexAlignCenter___2oSmu",flexColumn:"flexColumn___2ysFR",formWrap:"formWrap___EPA-v",titleWrap:"titleWrap___3_rFr",fieldWrap:"fieldWrap___2jAZP",button:"button___3XvNW",buttonFixed:"buttonFixed___2Zm2R",buttonWrap:"buttonWrap___1OYLR",width180:"width180___jK9Il",width100:"width100___3krQH",width280:"width280___2XLRF",difficultyHint:"difficultyHint___haMiD",color888:"color888___N5haY",serviceSettingWrap:"serviceSettingWrap___2mA8Y",serviceSetLeft:"serviceSetLeft___15ZiZ",serviceSetInput:"serviceSetInput___1xV8R",serviceSetMemoryInput:"serviceSetMemoryInput___1b9Wn",serviceSetTip:"serviceSetTip___3OSZX",installPackage:"installPackage___2Q149",selectSchool:"selectSchool___3jjwJ",dataPicker:"dataPicker___3FMTF",bg:"bg___SWlll",content:"content___3UkVO",head:"head___35V3S",headCount:"headCount___2pjjr",itemWrap:"itemWrap___1yg5K",imgWrap:"imgWrap___R0ss7",img:"img___VI1B8",manager:"manager___8Zuo9",itemContent:"itemContent___2pnzz",nameWrap:"nameWrap___3Ntoy",name:"name___3v0W9",actionGroup:"actionGroup___nzwV5",deleteIcon:"deleteIcon___tZStC",schoolWrap:"schoolWrap___qVkuP",school:"school___2WDSB",countWrap:"countWrap___1ZPyo",deletetitle:"deletetitle___3PnVP",yseTitle:"yseTitle___2rGJC",modal:"modal___TzuWu",colorOrange:"colorOrange___WAQOi",colorYellow:"colorYellow___giatj",graaytitle:"graaytitle___1xud8",graaymingl:"graaymingl___KdIA9",graayminglthree:"graayminglthree___1To0y",graaymingltow:"graaymingltow___2ZE_h"}},"1uat":function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("MlIO"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.Hasher,y=g.x64,x=y.Word,O=y.WordArray,m=g.algo;function e(){return x.create.apply(x,arguments)}var f=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],a=[];(function(){for(var r=0;r<80;r++)a[r]=e()})();var u=m.SHA512=b.extend({_doReset:function(){this._hash=new O.init([new x.init(1779033703,4089235720),new x.init(3144134277,2227873595),new x.init(1013904242,4271175723),new x.init(2773480762,1595750129),new x.init(1359893119,2917565137),new x.init(2600822924,725511199),new x.init(528734635,4215389547),new x.init(1541459225,327033209)])},_doProcessBlock:function(r,i){for(var n=this._hash.words,l=n[0],h=n[1],d=n[2],s=n[3],c=n[4],w=n[5],E=n[6],v=n[7],R=l.high,M=l.low,C=h.high,S=h.low,_=d.high,A=d.low,U=s.high,L=s.low,N=c.high,V=c.low,H=w.high,D=w.low,W=E.high,F=E.low,I=v.high,K=v.low,ee=R,he=M,de=C,Se=S,Te=_,ce=A,be=U,Ee=L,ue=N,le=V,$=H,me=D,re=W,ae=F,Oe=I,se=K,te=0;te<80;te++){var Q,J,ve=a[te];if(te<16)J=ve.high=r[i+te*2]|0,Q=ve.low=r[i+te*2+1]|0;else{var _e=a[te-15],Ae=_e.high,Qe=_e.low,tt=(Ae>>>1|Qe<<31)^(Ae>>>8|Qe<<24)^Ae>>>7,dt=(Qe>>>1|Ae<<31)^(Qe>>>8|Ae<<24)^(Qe>>>7|Ae<<25),mt=a[te-2],vt=mt.high,yt=mt.low,Ye=(vt>>>19|yt<<13)^(vt<<3|yt>>>29)^vt>>>6,Ue=(yt>>>19|vt<<13)^(yt<<3|vt>>>29)^(yt>>>6|vt<<26),ft=a[te-7],jt=ft.high,bt=ft.low,Pt=a[te-16],it=Pt.high,He=Pt.low;Q=dt+bt,J=tt+jt+(Q>>>0
      >>0?1:0),Q=Q+Ue,J=J+Ye+(Q>>>0>>0?1:0),Q=Q+He,J=J+it+(Q>>>0>>0?1:0),ve.high=J,ve.low=Q}var Ge=ue&$^~ue&re,Ce=le&me^~le&ae,Ie=ee&de^ee&Te^de&Te,Fe=he&Se^he&ce^Se&ce,Be=(ee>>>28|he<<4)^(ee<<30|he>>>2)^(ee<<25|he>>>7),We=(he>>>28|ee<<4)^(he<<30|ee>>>2)^(he<<25|ee>>>7),st=(ue>>>14|le<<18)^(ue>>>18|le<<14)^(ue<<23|le>>>9),Dt=(le>>>14|ue<<18)^(le>>>18|ue<<14)^(le<<23|ue>>>9),Ht=f[te],rn=Ht.high,Bt=Ht.low,Ct=se+Dt,Ke=Oe+st+(Ct>>>0>>0?1:0),Ct=Ct+Ce,Ke=Ke+Ge+(Ct>>>0>>0?1:0),Ct=Ct+Bt,Ke=Ke+rn+(Ct>>>0>>0?1:0),Ct=Ct+Q,Ke=Ke+J+(Ct>>>0>>0?1:0),et=We+Fe,at=Be+Ie+(et>>>0>>0?1:0);Oe=re,se=ae,re=$,ae=me,$=ue,me=le,le=Ee+Ct|0,ue=be+Ke+(le>>>0>>0?1:0)|0,be=Te,Ee=ce,Te=de,ce=Se,de=ee,Se=he,he=Ct+et|0,ee=Ke+at+(he>>>0>>0?1:0)|0}M=l.low=M+he,l.high=R+ee+(M>>>0>>0?1:0),S=h.low=S+Se,h.high=C+de+(S>>>0>>0?1:0),A=d.low=A+ce,d.high=_+Te+(A>>>0>>0?1:0),L=s.low=L+Ee,s.high=U+be+(L>>>0>>0?1:0),V=c.low=V+le,c.high=N+ue+(V>>>0>>0?1:0),D=w.low=D+me,w.high=H+$+(D>>>0>>0?1:0),F=E.low=F+ae,E.high=W+re+(F>>>0>>0?1:0),K=v.low=K+se,v.high=I+Oe+(K>>>0>>0?1:0)},_doFinalize:function(){var r=this._data,i=r.words,n=this._nDataBytes*8,l=r.sigBytes*8;i[l>>>5]|=128<<24-l%32,i[(l+128>>>10<<5)+30]=Math.floor(n/4294967296),i[(l+128>>>10<<5)+31]=n,r.sigBytes=i.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var r=b.clone.call(this);return r._hash=this._hash.clone(),r},blockSize:1024/32});g.SHA512=b._createHelper(u),g.HmacSHA512=b._createHmacHelper(u)}(),P.SHA512})},"24hK":function(k,z,o){"use strict";o.d(z,"a",function(){return g});class P{constructor(T){this.element=T,this.next=P.Undefined,this.prev=P.Undefined}}P.Undefined=new P(void 0);class g{constructor(){this._first=P.Undefined,this._last=P.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===P.Undefined}clear(){let T=this._first;for(;T!==P.Undefined;){const b=T.next;T.prev=P.Undefined,T.next=P.Undefined,T=b}this._first=P.Undefined,this._last=P.Undefined,this._size=0}unshift(T){return this._insert(T,!1)}push(T){return this._insert(T,!0)}_insert(T,b){const y=new P(T);if(this._first===P.Undefined)this._first=y,this._last=y;else if(b){const O=this._last;this._last=y,y.prev=O,O.next=y}else{const O=this._first;this._first=y,y.next=O,O.prev=y}this._size+=1;let x=!1;return()=>{x||(x=!0,this._remove(y))}}shift(){if(this._first===P.Undefined)return;{const T=this._first.element;return this._remove(this._first),T}}pop(){if(this._last===P.Undefined)return;{const T=this._last.element;return this._remove(this._last),T}}_remove(T){if(T.prev!==P.Undefined&&T.next!==P.Undefined){const b=T.prev;b.next=T.next,T.next.prev=b}else T.prev===P.Undefined&&T.next===P.Undefined?(this._first=P.Undefined,this._last=P.Undefined):T.next===P.Undefined?(this._last=this._last.prev,this._last.next=P.Undefined):T.prev===P.Undefined&&(this._first=this._first.next,this._first.prev=P.Undefined);this._size-=1}*[Symbol.iterator](){let T=this._first;for(;T!==P.Undefined;)yield T.element,T=T.next}}},"3/fG":function(k,z,o){"use strict";o.d(z,"a",function(){return g});function P(T,b){let y;return b.length===0?y=T:y=T.replace(/\{(\d+)\}/g,function(x,O){const m=O[0];return typeof b[m]!="undefined"?b[m]:x}),y}function g(T,b,...y){return P(b,y)}},"3d99":function(k,z,o){k.exports={flex_box_center:"flex_box_center___29402",flex_space_between:"flex_space_between___1DQkL",flex_box_vertical_center:"flex_box_vertical_center___2c5rw",flex_box_center_end:"flex_box_center_end___31UwQ",flex_box_column:"flex_box_column___27HfP",dataset:"dataset___1COtX",header:"header___3oVtK",title:"title___pTdL6",dataPath:"dataPath___2IjLi",pathTitle:"pathTitle___3y3r0",btns:"btns___3HrP1",content:"content___2DtrV",customTable:"customTable____cu3-",row:"row___18XmF",empty:"empty___1WFDJ",path:"path___2fzVn",text:"text___5NWvD",actionsBtns:"actionsBtns___YB-ud",customModal:"customModal___S24dW",shareModal:"shareModal___1fTc3",fileName:"fileName___3b0gK",renameModal:"renameModal___3antI",errorDes:"errorDes___3PXc9",uploadFileModal:"uploadFileModal___3cGWq"}},"3wET":function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem0F9frGBaqGBd5QYOAI1Kw7aBjuFDuWbckQt0DQfYr5srhuGkXdJ5cG4JZP+P+pjWzIn9gR5Vx746ajrLc3Fc7BDWCJM4EZu0xoXkmJ4OLqMl9HYY6Svj3vgrQ00SI9Z5Y+ewJOua/BjBrjj5IEybzjbmkN2YyoMxBJR0OmF5UreSDAmygmoLHqY5/kb3FlfWgWsJygdAu4giOnVlG39KHCcO63/HfXRd/HkgQZbgcquKaAz85GbvrMTBduEApFqUYGKTz2mIH8D4zMGs+Q/swK4Zhkno+w8vbCEpeCLBPmNq4HFDOuP+4G/vBHblN3UIz1LmajnzShD5e8yHO4BcE4HxAnKX/STE0TUPsyJjjUBG5YC937ccE2hz+DEWYs9PNN/N0hjBc0mo2waIz4ey7xxcznq+pGtYf5wc/oW95eqZcjiosRiOYvebWssNrMOLb7IYHSaRXEUGGMBHJ0G/j5icZS16QTDZQjcY/AzsHw54MKoFrAFvBRla2xeFz3fUgugMED1dDUT9YFrgdalBi++Rf6IxaFTrENTCiHcExblLIYP0lpWvFuvZLjPA799+QLzcd8oZCMEUu+HlCCE70DXLAEeuN5g1SLgJ89b/PwYcPoce90yw6hy/RCSWh6fX+Ex87UNwKkJ4DfMLdcI1EVPwH0bUciGWRdW6ztZR+IBjlzCg/NHvBk1EvZ9h4BH+lmV6bQwXkUyp4RNeMQpckwdD6fbrgJ2f5IX7bME1cMebfVqLcJwZHK8kMfb0m098qJ6pDiHS7j3U8Dliw26/0Yw9EyBVVw6GjOHbtjUaFGrpbp646n4OoZ8+zrgbl5+jzPPup4AnmeIHSDaZrr4UhLzZrZwMioU8GSpcGkSDeJS4wlX8zTvbAaO0NCv/0Exz6zk+C0twE8/b3B7qyE4r6t+VgB8dYNBF8G8+jaw6zHgRR4nwa5bcGoBNh/11GQKOJjPubXRueU+l/0tTMT5LP8PHy1gbJKAKSuGnEw/i+QwQ3F3h/4VsfjZEYMMd9fOjcAdGw3+yR131x+BV1ggK1rZdCYXZfC4s738u/Zp5tG1aYV6LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"3y9D":function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=T.Hasher,x=g.algo,O=[],m=x.SHA1=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,f){for(var a=this._hash.words,u=a[0],r=a[1],i=a[2],n=a[3],l=a[4],h=0;h<80;h++){if(h<16)O[h]=e[f+h]|0;else{var d=O[h-3]^O[h-8]^O[h-14]^O[h-16];O[h]=d<<1|d>>>31}var s=(u<<5|u>>>27)+l+O[h];h<20?s+=(r&i|~r&n)+1518500249:h<40?s+=(r^i^n)+1859775393:h<60?s+=(r&i|r&n|i&n)-1894007588:s+=(r^i^n)-899497514,l=n,n=i,i=r<<30|r>>>2,r=u,u=s}a[0]=a[0]+u|0,a[1]=a[1]+r|0,a[2]=a[2]+i|0,a[3]=a[3]+n|0,a[4]=a[4]+l|0},_doFinalize:function(){var e=this._data,f=e.words,a=this._nDataBytes*8,u=e.sigBytes*8;return f[u>>>5]|=128<<24-u%32,f[(u+64>>>9<<4)+14]=Math.floor(a/4294967296),f[(u+64>>>9<<4)+15]=a,e.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var e=y.clone.call(this);return e._hash=this._hash.clone(),e}});g.SHA1=y._createHelper(m),g.HmacSHA1=y._createHmacHelper(m)}(),P.SHA1})},4:function(k,z){},"498V":function(k,z,o){k.exports=o.p+"static/logo.22b9a281.svg"},"4SAo":function(k,z,o){k.exports={footerWrap:"footerWrap___2ePEu"}},"4qgm":function(k,z){k.exports="data:image/png;base64,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"},"4u4S":function(k,z){k.exports="data:image/png;base64,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"},"55Ip":function(k,z,o){"use strict";o.d(z,"a",function(){return s});var P=o("Ty5D"),g=o("dI71"),T=o("q1tI"),b=o.n(T),y=o("YS25"),x=o("17x9"),O=o.n(x),m=o("wx14"),e=o("zLVn"),f=o("9R94"),a=function(S){Object(g.a)(_,S);function _(){for(var U,L=arguments.length,N=new Array(L),V=0;V>>24)&16711935|(c<<24|c>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var E=h[s];E.high^=w,E.low^=c}for(var v=0;v<24;v++){for(var R=0;R<5;R++){for(var M=0,C=0,S=0;S<5;S++){var E=h[R+5*S];M^=E.high,C^=E.low}var _=r[R];_.high=M,_.low=C}for(var R=0;R<5;R++)for(var A=r[(R+4)%5],U=r[(R+1)%5],L=U.high,N=U.low,M=A.high^(L<<1|N>>>31),C=A.low^(N<<1|L>>>31),S=0;S<5;S++){var E=h[R+5*S];E.high^=M,E.low^=C}for(var V=1;V<25;V++){var M,C,E=h[V],H=E.high,D=E.low,W=f[V];W<32?(M=H<>>32-W,C=D<>>32-W):(M=D<>>64-W,C=H<>>64-W);var F=r[a[V]];F.high=M,F.low=C}var I=r[0],K=h[0];I.high=K.high,I.low=K.low;for(var R=0;R<5;R++)for(var S=0;S<5;S++){var V=R+5*S,E=h[V],ee=r[V],he=r[(R+1)%5+5*S],de=r[(R+2)%5+5*S];E.high=ee.high^~he.high&de.high,E.low=ee.low^~he.low&de.low}var E=h[0],Se=u[v];E.high^=Se.high,E.low^=Se.low}},_doFinalize:function(){var n=this._data,l=n.words,h=this._nDataBytes*8,d=n.sigBytes*8,s=this.blockSize*32;l[d>>>5]|=1<<24-d%32,l[(g.ceil((d+1)/s)*s>>>5)-1]|=128,n.sigBytes=l.length*4,this._process();for(var c=this._state,w=this.cfg.outputLength/8,E=w/8,v=[],R=0;R>>24)&16711935|(C<<24|C>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,v.push(S),v.push(C)}return new y.init(v,w)},clone:function(){for(var n=x.clone.call(this),l=n._state=this._state.slice(0),h=0;h<25;h++)l[h]=l[h].clone();return n}});T.SHA3=x._createHelper(i),T.HmacSHA3=x._createHmacHelper(i)}(Math),P.SHA3})},"6+eU":function(k,z,o){"use strict";o.d(z,"a",function(){return v});var P=o("wx14"),g=o("rePB"),T=o("VTBJ"),b=o("1OyB"),y=o("vuIU"),x=o("Ji7U"),O=o("LK+K"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),u=function(M){var C,S="".concat(M.rootPrefixCls,"-item"),_=a()(S,"".concat(S,"-").concat(M.page),(C={},Object(g.a)(C,"".concat(S,"-active"),M.active),Object(g.a)(C,M.className,!!M.className),Object(g.a)(C,"".concat(S,"-disabled"),!M.page),C)),A=function(){M.onClick(M.page)},U=function(N){M.onKeyPress(N,M.onClick,M.page)};return e.a.createElement("li",{title:M.showTitle?M.page:null,className:_,onClick:A,onKeyPress:U,tabIndex:"0"},M.itemRender(M.page,"page",e.a.createElement("a",{rel:"nofollow"},M.page)))},r=u,i={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},n=function(R){Object(x.a)(C,R);var M=Object(O.a)(C);function C(){var S;Object(b.a)(this,C);for(var _=arguments.length,A=new Array(_),U=0;U<_;U++)A[U]=arguments[U];return S=M.call.apply(M,[this].concat(A)),S.state={goInputText:""},S.buildOptionText=function(L){return"".concat(L," ").concat(S.props.locale.items_per_page)},S.changeSize=function(L){S.props.changeSize(Number(L))},S.handleChange=function(L){S.setState({goInputText:L.target.value})},S.handleBlur=function(L){var N=S.props,V=N.goButton,H=N.quickGo,D=N.rootPrefixCls,W=S.state.goInputText;if(V||W==="")return;if(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(D,"-prev"))>=0||L.relatedTarget.className.indexOf("".concat(D,"-next"))>=0))return;S.setState({goInputText:""}),H(S.getValidValue())},S.go=function(L){var N=S.state.goInputText;if(N==="")return;(L.keyCode===i.ENTER||L.type==="click")&&(S.setState({goInputText:""}),S.props.quickGo(S.getValidValue()))},S}return Object(y.a)(C,[{key:"getValidValue",value:function(){var _=this.state,A=_.goInputText,U=_.current;return!A||isNaN(A)?U:Number(A)}},{key:"getPageSizeOptions",value:function(){var _=this.props,A=_.pageSize,U=_.pageSizeOptions;return U.some(function(L){return L.toString()===A.toString()})?U:U.concat([A.toString()]).sort(function(L,N){var V=isNaN(Number(L))?0:Number(L),H=isNaN(Number(N))?0:Number(N);return V-H})}},{key:"render",value:function(){var _=this,A=this.props,U=A.pageSize,L=A.locale,N=A.rootPrefixCls,V=A.changeSize,H=A.quickGo,D=A.goButton,W=A.selectComponentClass,F=A.buildOptionText,I=A.selectPrefixCls,K=A.disabled,ee=this.state.goInputText,he="".concat(N,"-options"),de=W,Se=null,Te=null,ce=null;if(!V&&!H)return null;var be=this.getPageSizeOptions();if(V&&de){var Ee=be.map(function(ue,le){return e.a.createElement(de.Option,{key:le,value:ue.toString()},(F||_.buildOptionText)(ue))});Se=e.a.createElement(de,{disabled:K,prefixCls:I,showSearch:!1,className:"".concat(he,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(U||be[0]).toString(),onChange:this.changeSize,getPopupContainer:function(le){return le.parentNode}},Ee)}return H&&(D&&(ce=typeof D=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:K,className:"".concat(he,"-quick-jumper-button")},L.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},D)),Te=e.a.createElement("div",{className:"".concat(he,"-quick-jumper")},L.jump_to,e.a.createElement("input",{disabled:K,type:"text",value:ee,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),L.page,ce)),e.a.createElement("li",{className:"".concat(he)},Se,Te)}}]),C}(e.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var l=n,h=o("N2Kk");function d(){}function s(R){return typeof R=="number"&&isFinite(R)&&Math.floor(R)===R}function c(R,M,C){return C}function w(R,M,C){var S=typeof R=="undefined"?M.pageSize:R;return Math.floor((C.total-1)/S)+1}var E=function(R){Object(x.a)(C,R);var M=Object(O.a)(C);function C(S){var _;Object(b.a)(this,C),_=M.call(this,S),_.getJumpPrevPage=function(){return Math.max(1,_.state.current-(_.props.showLessItems?3:5))},_.getJumpNextPage=function(){return Math.min(w(void 0,_.state,_.props),_.state.current+(_.props.showLessItems?3:5))},_.getItemIcon=function(V,H){var D=_.props.prefixCls,W=V||e.a.createElement("button",{type:"button","aria-label":H,className:"".concat(D,"-item-link")});return typeof V=="function"&&(W=e.a.createElement(V,Object(T.a)({},_.props))),W},_.savePaginationNode=function(V){_.paginationNode=V},_.isValid=function(V){return s(V)&&V!==_.state.current},_.shouldDisplayQuickJumper=function(){var V=_.props,H=V.showQuickJumper,D=V.pageSize,W=V.total;return W<=D?!1:H},_.handleKeyDown=function(V){(V.keyCode===i.ARROW_UP||V.keyCode===i.ARROW_DOWN)&&V.preventDefault()},_.handleKeyUp=function(V){var H=_.getValidValue(V),D=_.state.currentInputValue;H!==D&&_.setState({currentInputValue:H}),V.keyCode===i.ENTER?_.handleChange(H):V.keyCode===i.ARROW_UP?_.handleChange(H-1):V.keyCode===i.ARROW_DOWN&&_.handleChange(H+1)},_.changePageSize=function(V){var H=_.state.current,D=w(V,_.state,_.props);H=H>D?D:H,D===0&&(H=_.state.current),typeof V=="number"&&("pageSize"in _.props||_.setState({pageSize:V}),"current"in _.props||_.setState({current:H,currentInputValue:H})),_.props.onShowSizeChange(H,V),"onChange"in _.props&&_.props.onChange&&_.props.onChange(H,V)},_.handleChange=function(V){var H=_.props.disabled,D=V;if(_.isValid(D)&&!H){var W=w(void 0,_.state,_.props);D>W?D=W:D<1&&(D=1),"current"in _.props||_.setState({current:D,currentInputValue:D});var F=_.state.pageSize;return _.props.onChange(D,F),D}return _.state.current},_.prev=function(){_.hasPrev()&&_.handleChange(_.state.current-1)},_.next=function(){_.hasNext()&&_.handleChange(_.state.current+1)},_.jumpPrev=function(){_.handleChange(_.getJumpPrevPage())},_.jumpNext=function(){_.handleChange(_.getJumpNextPage())},_.hasPrev=function(){return _.state.current>1},_.hasNext=function(){return _.state.current2?D-2:0),F=2;F=U?N=U:N=Number(A),N}},{key:"getShowSizeChanger",value:function(){var _=this.props,A=_.showSizeChanger,U=_.total,L=_.totalBoundaryShowSizeChanger;return typeof A!="undefined"?A:U>L}},{key:"renderPrev",value:function(_){var A=this.props,U=A.prevIcon,L=A.itemRender,N=L(_,"prev",this.getItemIcon(U,"prev page")),V=!this.hasPrev();return Object(m.isValidElement)(N)?Object(m.cloneElement)(N,{disabled:V}):N}},{key:"renderNext",value:function(_){var A=this.props,U=A.nextIcon,L=A.itemRender,N=L(_,"next",this.getItemIcon(U,"next page")),V=!this.hasNext();return Object(m.isValidElement)(N)?Object(m.cloneElement)(N,{disabled:V}):N}},{key:"render",value:function(){var _=this,A=this.props,U=A.prefixCls,L=A.className,N=A.style,V=A.disabled,H=A.hideOnSinglePage,D=A.total,W=A.locale,F=A.showQuickJumper,I=A.showLessItems,K=A.showTitle,ee=A.showTotal,he=A.simple,de=A.itemRender,Se=A.showPrevNextJumpers,Te=A.jumpPrevIcon,ce=A.jumpNextIcon,be=A.selectComponentClass,Ee=A.selectPrefixCls,ue=A.pageSizeOptions,le=this.state,$=le.current,me=le.pageSize,re=le.currentInputValue;if(H===!0&&D<=me)return null;var ae=w(void 0,this.state,this.props),Oe=[],se=null,te=null,Q=null,J=null,ve=null,_e=F&&F.goButton,Ae=I?1:2,Qe=$-1>0?$-1:0,tt=$+1=Ae*2&&$!==1+2&&(Oe[0]=Object(m.cloneElement)(Oe[0],{className:"".concat(U,"-item-after-jump-prev")}),Oe.unshift(se)),ae-$>=Ae*2&&$!==ae-2&&(Oe[Oe.length-1]=Object(m.cloneElement)(Oe[Oe.length-1],{className:"".concat(U,"-item-before-jump-next")}),Oe.push(te)),ft!==1&&Oe.unshift(Q),jt!==ae&&Oe.push(J)}var it=null;ee&&(it=e.a.createElement("li",{className:"".concat(U,"-total-text")},ee(D,[D===0?0:($-1)*me+1,$*me>D?D:$*me])));var He=!this.hasPrev()||!ae,Ge=!this.hasNext()||!ae;return e.a.createElement("ul",Object(P.a)({className:a()(U,L,Object(g.a)({},"".concat(U,"-disabled"),V)),style:N,unselectable:"unselectable",ref:this.savePaginationNode},dt),it,e.a.createElement("li",{title:K?W.prev_page:null,onClick:this.prev,tabIndex:He?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(U,"-prev"),Object(g.a)({},"".concat(U,"-disabled"),He)),"aria-disabled":He},this.renderPrev(Qe)),Oe,e.a.createElement("li",{title:K?W.next_page:null,onClick:this.next,tabIndex:Ge?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(U,"-next"),Object(g.a)({},"".concat(U,"-disabled"),Ge)),"aria-disabled":Ge},this.renderNext(tt)),e.a.createElement(l,{disabled:V,locale:W,rootPrefixCls:U,selectComponentClass:be,selectPrefixCls:Ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$,pageSize:me,pageSizeOptions:ue,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_e}))}}],[{key:"getDerivedStateFromProps",value:function(_,A){var U={};if("current"in _&&(U.current=_.current,_.current!==A.current&&(U.currentInputValue=U.current)),"pageSize"in _&&_.pageSize!==A.pageSize){var L=A.current,N=w(_.pageSize,A,_);L=L>N?N:L,"current"in _||(U.current=L,U.currentInputValue=L),U.pageSize=_.pageSize}return U}}]),C}(e.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:d,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:d,locale:h.a,style:{},itemRender:c,totalBoundaryShowSizeChanger:50};var v=E},"6Fuo":function(k,z,o){k.exports={flex_box_center:"flex_box_center___3p8A0",flex_space_between:"flex_space_between___2wMwo",flex_box_vertical_center:"flex_box_vertical_center___2fKhV",flex_box_center_end:"flex_box_center_end___27Yk8",flex_box_column:"flex_box_column___3Khbo",rightMenu:"rightMenu___20Eel",joinMenu:"joinMenu___2blJt",joinBoard:"joinBoard___2XUXK",joinCol:"joinCol___3o5gp"}},"6RRn":function(k,z,o){"use strict";var P=o("wCXF"),g=o("n6Qo");o.d(z,"b",function(){return g.a});var T=o("IBYe"),b=o("6eGT"),y=o("hW8S");o.d(z,"a",function(){return y.a}),z.c=P.b},"6UM0":function(k,z,o){var P,g;(function(){var T;(function(){"use strict";var y=[function(e,f,a){var u=a(1).Beautifier,r=a(5).Options;function i(n,l){var h=new u(n,l);return h.beautify()}e.exports=i,e.exports.defaultOptions=function(){return new r}},function(e,f,a){var u=a(2).Output,r=a(3).Token,i=a(4),n=a(5).Options,l=a(7).Tokenizer,h=a(7).line_starters,d=a(7).positionable_operators,s=a(7).TOKEN;function c(I,K){return K.indexOf(I)!==-1}function w(I){return I.replace(/^\s+/g,"")}function E(I){for(var K={},ee=0;eeee&&(ee=I.line_indent_level));var he={mode:K,parent:I,last_token:I?I.last_token:new r(s.START_BLOCK,""),last_word:I?I.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:ee,alignment:0,line_indent_level:I?I.line_indent_level:ee,start_line_index:this._output.get_line_number(),ternary_depth:0};return he},W.prototype._reset=function(I){var K=I.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new u(this._options,K),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(A.BlockStatement);var ee=new l(I,this._options);return this._tokens=ee.tokenize(),I},W.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var I,K=this._reset(this._source_text),ee=this._options.eol;this._options.eol==="auto"&&(ee=` @@ -22,7 +22,7 @@ You passed in: '`+this.raw_options[r]+"'");return l},f.prototype._is_valid_selec `),D=this._create_token(c.BLOCK_COMMENT,W),D.directives=F}else this._input.peek(1)==="/"&&(W=this.__patterns.comment.read(),D=this._create_token(c.COMMENT,W))}return D},N.prototype._read_string=function(H){if(H==="`"||H==="'"||H==='"'){var D=this._input.next();return this.has_char_escapes=!1,H==="`"?D+=this._read_string_recursive("`",!0,"${"):D+=this._read_string_recursive(H),this.has_char_escapes&&this._options.unescape_strings&&(D=V(D)),this._input.peek()===H&&(D+=this._input.next()),D=D.replace(l.allLineBreaks,` `),this._create_token(c.STRING,D)}return null},N.prototype._allow_regexp_or_xml=function(H){return H.type===c.RESERVED&&s(H.text,["return","case","throw","else","do","typeof","yield"])||H.type===c.END_EXPR&&H.text===")"&&H.opened.previous.type===c.RESERVED&&s(H.opened.previous.text,["if","while","for"])||s(H.type,[c.COMMENT,c.START_EXPR,c.START_BLOCK,c.START,c.END_BLOCK,c.OPERATOR,c.EQUALS,c.EOF,c.SEMICOLON,c.COMMA])},N.prototype._read_regexp=function(H,D){if(H==="/"&&this._allow_regexp_or_xml(D)){for(var W=this._input.next(),F=!1,I=!1;this._input.hasNext()&&(F||I||this._input.peek()!==H)&&!this._input.testChar(l.newline);)W+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?I=!0:this._input.peek()==="]"&&(I=!1)),this._input.next();return this._input.peek()===H&&(W+=this._input.next(),W+=this._input.read(l.identifier)),this._create_token(c.STRING,W)}return null},N.prototype._read_xml=function(H,D){if(this._options.e4x&&H==="<"&&this._allow_regexp_or_xml(D)){var W="",F=this.__patterns.xml.read_match();if(F){for(var I=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),K=I.indexOf("{")===0,ee=0;F;){var he=!!F[1],de=F[2],Se=!!F[F.length-1]||de.slice(0,8)==="![CDATA[";if(!Se&&(de===I||K&&de.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(he?--ee:++ee),W+=F[0],ee<=0)break;F=this.__patterns.xml.read_match()}return F||(W+=this._input.match(/[\s\S]*/g)[0]),W=W.replace(l.allLineBreaks,` `),this._create_token(c.STRING,W)}}return null};function V(H){for(var D="",W=0,F=new u(H),I=null;F.hasNext();)if(I=F.match(/([\s]|[^\\]|\\\\)+/g),I&&(D+=I[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")I=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")I=F.match(/u([0-9A-Fa-f]{4})/g);else{D+="\\",F.hasNext()&&(D+=F.next());continue}if(!I)return H;if(W=parseInt(I[1],16),W>126&&W<=255&&I[0].indexOf("x")===0)return H;if(W>=0&&W<32){D+="\\"+I[0];continue}else W===34||W===39||W===92?D+="\\"+String.fromCharCode(W):D+=String.fromCharCode(W)}return D}N.prototype._read_string_recursive=function(H,D,W){var F,I;H==="'"?I=this.__patterns.single_quote:H==='"'?I=this.__patterns.double_quote:H==="`"?I=this.__patterns.template_text:H==="}"&&(I=this.__patterns.template_expression);for(var K=I.read(),ee="";this._input.hasNext();){if(ee=this._input.next(),ee===H||!D&&l.newline.test(ee)){this._input.back();break}else ee==="\\"&&this._input.hasNext()?(F=this._input.peek(),F==="x"||F==="u"?this.has_char_escapes=!0:F==="\r"&&this._input.peek(1)===` -`&&this._input.next(),ee+=this._input.next()):W&&(W==="${"&&ee==="$"&&this._input.peek()==="{"&&(ee+=this._input.next()),W===ee&&(H==="`"?ee+=this._read_string_recursive("}",D,"`"):ee+=this._read_string_recursive("`",D,"${"),this._input.hasNext()&&(ee+=this._input.next())));ee+=I.read(),K+=ee}return K},e.exports.Tokenizer=N,e.exports.TOKEN=c,e.exports.positionable_operators=M.slice(),e.exports.line_starters=_.slice()},function(e){var f=RegExp.prototype.hasOwnProperty("sticky");function a(u){this.__input=u||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position=0&&u=0&&r=u.length&&this.__input.substring(r-u.length,r).toLowerCase()===u},e.exports.InputScanner=a},function(e,f,a){var u=a(8).InputScanner,r=a(3).Token,i=a(10).TokenStream,n=a(11).WhitespacePattern,l={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},h=function(d,s){this._input=new u(d),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new n(this._input)};h.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var d,s=new r(l.START,""),c=null,w=[],E=new i;s.type!==l.EOF;){for(d=this._get_next_token(s,c);this._is_comment(d);)E.add(d),d=this._get_next_token(s,c);E.isEmpty()||(d.comments_before=E,E=new i),d.parent=c,this._is_opening(d)?(w.push(c),c=d):c&&this._is_closing(d,c)&&(d.opened=c,c.closed=d,c=w.pop(),d.parent=c),d.previous=s,s.next=d,this.__tokens.add(d),s=d}return this.__tokens},h.prototype._is_first_token=function(){return this.__tokens.isEmpty()},h.prototype._reset=function(){},h.prototype._get_next_token=function(d,s){this._readWhitespace();var c=this._input.read(/.+/g);return c?this._create_token(l.RAW,c):this._create_token(l.EOF,"")},h.prototype._is_comment=function(d){return!1},h.prototype._is_opening=function(d){return!1},h.prototype._is_closing=function(d,s){return!1},h.prototype._create_token=function(d,s){var c=new r(d,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return c},h.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=h,e.exports.TOKEN=l},function(e){function f(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}f.prototype.restart=function(){this.__position=0},f.prototype.isEmpty=function(){return this.__tokens_length===0},f.prototype.hasNext=function(){return this.__position=0&&a/),erb:h.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:h.starting_with(/{%/).until_after(/%}/),django_value:h.starting_with(/{{/).until_after(/}}/),django_comment:h.starting_with(/{#/).until_after(/#}/),smarty:h.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:h.starting_with(/{\*/).until_after(/\*}/),smarty_literal:h.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new u,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(n){var l=this._create();return l._disabled[n]=!0,l._update(),l},i.prototype.read_options=function(n){var l=this._create();for(var h in r)l._disabled[h]=n.templating.indexOf(h)===-1;return l._update(),l},i.prototype.exclude=function(n){var l=this._create();return l._excluded[n]=!0,l._update(),l},i.prototype.read=function(){var n="";this._match_pattern?n=this._input.read(this._starting_pattern):n=this._input.read(this._starting_pattern,this.__template_pattern);for(var l=this._read_template();l;)this._match_pattern?l+=this._input.read(this._match_pattern):l+=this._input.readUntil(this.__template_pattern),n+=l,l=this._read_template();return this._until_after&&(n+=this._input.readUntilAfter(this._until_pattern)),n},i.prototype.__set_templated_pattern=function(){var n=[];this._disabled.php||n.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||n.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||n.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(n.push(this.__patterns.django._starting_pattern.source),n.push(this.__patterns.django_value._starting_pattern.source),n.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||n.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&n.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+n.join("|")+")")},i.prototype._read_template=function(){var n="",l=this._input.peek();if(l==="<"){var h=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&h==="?"&&(n=n||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&h==="%"&&(n=n||this.__patterns.erb.read())}else l==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(n=n||this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars_unescaped.read(),n=n||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(n=n||this.__patterns.django_value.read()),this._excluded.django||(n=n||this.__patterns.django_comment.read(),n=n||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(n=n||this.__patterns.smarty_comment.read(),n=n||this.__patterns.smarty_literal.read(),n=n||this.__patterns.smarty.read()));return n},e.exports.TemplatablePattern=i}],x={};function O(e){var f=x[e];if(f!==void 0)return f.exports;var a=x[e]={exports:{}};return y[e](a,a.exports,O),a.exports}var m=O(0);T=m})();var b=T;!(P=[],g=function(){return{js_beautify:b}}.apply(z,P),g!==void 0&&(k.exports=g))})()},"6eGT":function(k,z,o){"use strict";function P(g){return null}z.a=P},"6nfa":function(k,z,o){k.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"746U":function(k,z,o){"use strict";o.d(z,"f",function(){return P}),o.d(z,"l",function(){return g}),o.d(z,"k",function(){return T}),o.d(z,"j",function(){return b}),o.d(z,"g",function(){return y}),o.d(z,"m",function(){return x}),o.d(z,"h",function(){return O}),o.d(z,"n",function(){return m}),o.d(z,"c",function(){return e}),o.d(z,"a",function(){return f}),o.d(z,"i",function(){return a}),o.d(z,"o",function(){return u}),o.d(z,"e",function(){return n}),o.d(z,"d",function(){return l}),o.d(z,"p",function(){return h}),o.d(z,"b",function(){return d});function P(s){return Array.isArray(s)}function g(s){return typeof s=="string"}function T(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function b(s){return typeof s=="number"&&!isNaN(s)}function y(s){return s===!0||s===!1}function x(s){return typeof s=="undefined"}function O(s){return!m(s)}function m(s){return x(s)||s===null}function e(s,c){if(!s)throw new Error(c?`Unexpected type, expected '${c}'`:"Unexpected type")}function f(s){if(m(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function a(s){return typeof s=="function"}function u(s,c){const w=Math.min(s.length,c.length);for(let E=0;Efunction(){const R=Array.prototype.slice.call(arguments,0);return c(v,R)};let E={};for(const v of s)E[v]=w(v);return E}function h(s){return s===null?void 0:s}function d(s,c="Unreachable"){throw new Error(c)}},"7Cbv":function(k,z,o){"use strict";var P=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),g=new Uint8Array(16);function T(){if(!P)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return P(g)}var b=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function y(r){return typeof r=="string"&&b.test(r)}for(var x=y,O=[],m=0;m<256;++m)O.push((m+256).toString(16).substr(1));function e(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(O[r[i+0]]+O[r[i+1]]+O[r[i+2]]+O[r[i+3]]+"-"+O[r[i+4]]+O[r[i+5]]+"-"+O[r[i+6]]+O[r[i+7]]+"-"+O[r[i+8]]+O[r[i+9]]+"-"+O[r[i+10]]+O[r[i+11]]+O[r[i+12]]+O[r[i+13]]+O[r[i+14]]+O[r[i+15]]).toLowerCase();if(!x(n))throw TypeError("Stringified UUID is invalid");return n}var f=e;function a(r,i,n){r=r||{};var l=r.random||(r.rng||T)();if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,i){n=n||0;for(var h=0;h<16;++h)i[n+h]=l[h];return i}return f(l)}var u=z.a=a},"7ZXX":function(k,z,o){k.exports=o.p+"static/err.6e7c5817.png"},"7ahc":function(k,z,o){"use strict";o.d(z,"a",function(){return w});var P=o("k1fw"),g=o("0Owb"),T=o("+L6B"),b=o("2/Rp"),y=o("y8nQ"),x=o("Vl3Y"),O=o("tJVT"),m=o("OaEy"),e=o("2fM7"),f=o("q1tI"),a=o.n(f),u=o("VrN/"),r=o.n(u),i=o("p77/"),n=o.n(i),l=o("c5Ni"),h=o.n(l),d=e.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},c={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};z.b=function(E){var v=E.callback,R=E.onCancel,M=Object(f.useState)("python"),C=Object(O.a)(M,2),S=C[0],_=C[1];function A(L){_(c[L][1])}function U(L){v(L)}return a.a.createElement(x.a,Object(g.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:U}),a.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},a.a.createElement(e.a,{onChange:A},Object.keys(c).map(function(L){return a.a.createElement(d,{key:L,value:L},c[L][0])}))),a.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},a.a.createElement(w,{mode:S})),a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(b.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(b.a,{type:"ghost",onClick:R},"\u53D6\u6D88")))};function w(E){var v=E.value,R=E.onChange,M=E.mode,C=E.options,S=C===void 0?{}:C,_=Object(f.useRef)(),A=Object(f.useState)(),U=Object(O.a)(A,2),L=U[0],N=U[1];return Object(f.useEffect)(function(){if(L){function V(H){var D=H.getValue();R&&R(D)}return L.on("change",V),function(){L.off("change",V)}}},[L,R]),Object(f.useEffect)(function(){L&&L.setOption("mode",M)},[L,M]),Object(f.useEffect)(function(){L&&((v!==L.getValue()||v==="")&&setTimeout(function(){L.setValue(v||" ")},300))},[L,v]),Object(f.useEffect)(function(){if(_.current&&!L){var V=r.a.fromTextArea(_.current,Object(P.a)({mode:M,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},S));N(V)}},[_.current,L]),a.a.createElement("div",{className:"my-codemirror-container"},a.a.createElement("textarea",{ref:_}))}},"7ixt":function(k,z,o){"use strict";o.d(z,"a",function(){return T});var P={adjustX:1,adjustY:1},g=[0,0],T={left:{points:["cr","cl"],overflow:P,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:P,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:P,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:P,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:P,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:P,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:P,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:P,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:P,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:P,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:P,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:P,offset:[-4,0],targetOffset:g}},b=T},"7v3h":function(k,z,o){k.exports=o.p+"static/empty2.dd73f390.png"},"8/bI":function(k,z,o){k.exports=o.p+"static/empty.8918e228.png"},"815F":function(k,z,o){"use strict";o.d(z,"e",function(){return O}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return u}),o.d(z,"f",function(){return r}),o.d(z,"b",function(){return i});var P=o("KQm4"),g=o("VTBJ"),T=o("Ff2n"),b=o("Zm9Q"),y=o("Kwbf"),x=o("OZM5");function O(n,l){return n!=null?n:l}function m(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function h(d){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(d||[]).forEach(function(c){var w=c.key,E=c.children;Object(y.a)(w!=null,"Tree node must have a certain key: [".concat(s).concat(w,"]"));var v=String(w);Object(y.a)(!l.has(v)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(v)),l.set(v,!0),h(E,"".concat(s).concat(v," > "))})}h(n)}function e(n){function l(h){var d=Object(b.a)(h);return d.map(function(s){if(!Object(x.i)(s))return Object(y.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var c=s.key,w=s.props,E=w.children,v=Object(T.a)(w,["children"]),R=Object(g.a)({key:c},v),M=l(E);return M.length&&(R.children=M),R}).filter(function(s){return s})}return l(n)}function f(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=new Set(l===!0?[]:l),d=[];function s(c){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(E,v){var R=Object(x.h)(w?w.pos:"0",v),M=O(E.key,R),C=Object(g.a)(Object(g.a)({},E),{},{parent:w,pos:R,children:null,data:E,isStart:[].concat(Object(P.a)(w?w.isStart:[]),[v===0]),isEnd:[].concat(Object(P.a)(w?w.isEnd:[]),[v===c.length-1])});return d.push(C),l===!0||h.has(M)?C.children=s(E.children||[],C):C.children=[],C})}return s(n),d}function a(n,l,h){var d;h?typeof h=="string"?d=function(w){return w[h]}:typeof h=="function"&&(d=function(w){return h(w)}):d=function(w,E){return O(w.key,E)};function s(c,w,E){var v=c?c.children:n,R=c?Object(x.h)(E.pos,w):"0";if(c){var M=d(c,R),C={node:c,index:w,pos:R,key:M,parentPos:E.node?E.pos:null,level:E.level+1};l(C)}v&&v.forEach(function(S,_){s(S,_,{node:c,pos:R,level:E?E.level+1:-1})})}s(null)}function u(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=l.initWrapper,d=l.processEntity,s=l.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,w={},E={},v={posEntities:w,keyEntities:E};return h&&(v=h(v)||v),a(n,function(R){var M=R.node,C=R.index,S=R.pos,_=R.key,A=R.parentPos,U=R.level,L={node:M,index:C,key:_,pos:S,level:U},N=O(_,S);w[S]=L,E[N]=L,L.parent=w[A],L.parent&&(L.parent.children=L.parent.children||[],L.parent.children.push(L)),d&&d(L,v)},c),s&&s(v),v}function r(n,l){var h=l.expandedKeys,d=l.selectedKeys,s=l.loadedKeys,c=l.loadingKeys,w=l.checkedKeys,E=l.halfCheckedKeys,v=l.dragOverNodeKey,R=l.dropPosition,M=l.keyEntities,C=M[n],S={eventKey:n,expanded:h.indexOf(n)!==-1,selected:d.indexOf(n)!==-1,loaded:s.indexOf(n)!==-1,loading:c.indexOf(n)!==-1,checked:w.indexOf(n)!==-1,halfChecked:E.indexOf(n)!==-1,pos:String(C?C.pos:""),dragOver:v===n&&R===0,dragOverGapTop:v===n&&R===-1,dragOverGapBottom:v===n&&R===1};return S}function i(n){var l=n.data,h=n.expanded,d=n.selected,s=n.checked,c=n.loaded,w=n.loading,E=n.halfChecked,v=n.dragOver,R=n.dragOverGapTop,M=n.dragOverGapBottom,C=n.pos,S=n.active,_=Object(g.a)(Object(g.a)({},l),{},{expanded:h,selected:d,checked:s,loaded:c,loading:w,halfChecked:E,dragOver:v,dragOverGapTop:R,dragOverGapBottom:M,pos:C,active:S});return"props"in _||Object.defineProperty(_,"props",{get:function(){return Object(y.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),_}},"8EBN":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"use strict";P.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var g=0;g-1&&b.substring(O+1,b.length);if(m)return P.findModeByExtension(m)},P.findModeByName=function(b){b=b.toLowerCase();for(var y=0;y=F&&HK?"true":"false","aria-posinset":K+1,"aria-setsize":ee,tabIndex:D?-1:0},m.a.createElement("div",{className:"".concat(W,"-first")},de),m.a.createElement("div",{className:"".concat(W,"-second")},de)));return I&&(Se=I(Se,this.props)),Se}}]),A}(m.a.Component);function s(S,_){var A=Object.keys(S);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(S);_&&(U=U.filter(function(L){return Object.getOwnPropertyDescriptor(S,L).enumerable})),A.push.apply(A,U)}return A}function c(S){for(var _=1;_0&&!ee||H===u.a.RIGHT&&he>0&&ee?(F?he-=.5:he-=1,L.changeValue(he),V.preventDefault()):H===u.a.LEFT&&heee/2||!W&&N-K0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position=0&&u=0&&r=u.length&&this.__input.substring(r-u.length,r).toLowerCase()===u},e.exports.InputScanner=a},function(e,f,a){var u=a(8).InputScanner,r=a(3).Token,i=a(10).TokenStream,n=a(11).WhitespacePattern,l={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},h=function(d,s){this._input=new u(d),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new n(this._input)};h.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var d,s=new r(l.START,""),c=null,w=[],E=new i;s.type!==l.EOF;){for(d=this._get_next_token(s,c);this._is_comment(d);)E.add(d),d=this._get_next_token(s,c);E.isEmpty()||(d.comments_before=E,E=new i),d.parent=c,this._is_opening(d)?(w.push(c),c=d):c&&this._is_closing(d,c)&&(d.opened=c,c.closed=d,c=w.pop(),d.parent=c),d.previous=s,s.next=d,this.__tokens.add(d),s=d}return this.__tokens},h.prototype._is_first_token=function(){return this.__tokens.isEmpty()},h.prototype._reset=function(){},h.prototype._get_next_token=function(d,s){this._readWhitespace();var c=this._input.read(/.+/g);return c?this._create_token(l.RAW,c):this._create_token(l.EOF,"")},h.prototype._is_comment=function(d){return!1},h.prototype._is_opening=function(d){return!1},h.prototype._is_closing=function(d,s){return!1},h.prototype._create_token=function(d,s){var c=new r(d,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return c},h.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=h,e.exports.TOKEN=l},function(e){function f(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}f.prototype.restart=function(){this.__position=0},f.prototype.isEmpty=function(){return this.__tokens_length===0},f.prototype.hasNext=function(){return this.__position=0&&a/),erb:h.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:h.starting_with(/{%/).until_after(/%}/),django_value:h.starting_with(/{{/).until_after(/}}/),django_comment:h.starting_with(/{#/).until_after(/#}/),smarty:h.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:h.starting_with(/{\*/).until_after(/\*}/),smarty_literal:h.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new u,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(n){var l=this._create();return l._disabled[n]=!0,l._update(),l},i.prototype.read_options=function(n){var l=this._create();for(var h in r)l._disabled[h]=n.templating.indexOf(h)===-1;return l._update(),l},i.prototype.exclude=function(n){var l=this._create();return l._excluded[n]=!0,l._update(),l},i.prototype.read=function(){var n="";this._match_pattern?n=this._input.read(this._starting_pattern):n=this._input.read(this._starting_pattern,this.__template_pattern);for(var l=this._read_template();l;)this._match_pattern?l+=this._input.read(this._match_pattern):l+=this._input.readUntil(this.__template_pattern),n+=l,l=this._read_template();return this._until_after&&(n+=this._input.readUntilAfter(this._until_pattern)),n},i.prototype.__set_templated_pattern=function(){var n=[];this._disabled.php||n.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||n.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||n.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(n.push(this.__patterns.django._starting_pattern.source),n.push(this.__patterns.django_value._starting_pattern.source),n.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||n.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&n.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+n.join("|")+")")},i.prototype._read_template=function(){var n="",l=this._input.peek();if(l==="<"){var h=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&h==="?"&&(n=n||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&h==="%"&&(n=n||this.__patterns.erb.read())}else l==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(n=n||this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars_unescaped.read(),n=n||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(n=n||this.__patterns.django_value.read()),this._excluded.django||(n=n||this.__patterns.django_comment.read(),n=n||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(n=n||this.__patterns.smarty_comment.read(),n=n||this.__patterns.smarty_literal.read(),n=n||this.__patterns.smarty.read()));return n},e.exports.TemplatablePattern=i}],x={};function O(e){var f=x[e];if(f!==void 0)return f.exports;var a=x[e]={exports:{}};return y[e](a,a.exports,O),a.exports}var m=O(0);T=m})();var b=T;!(P=[],g=function(){return{js_beautify:b}}.apply(z,P),g!==void 0&&(k.exports=g))})()},"6eGT":function(k,z,o){"use strict";function P(g){return null}z.a=P},"6nfa":function(k,z,o){k.exports={flex_box_center:"flex_box_center___24EuS",flex_space_between:"flex_space_between___H0sq_",flex_box_vertical_center:"flex_box_vertical_center___lroQv",flex_box_center_end:"flex_box_center_end___2zqAg",flex_box_column:"flex_box_column___1sePp",row:"row___FQAuJ",title:"title___1l3-g",tagsWrap:"tagsWrap___18FE-",action:"action___asdVT",bar:"bar___M_nl0",name:"name___BKyJY",active:"active___1eybt",tagsBorderWrap:"tagsBorderWrap___1NzgL"}},"746U":function(k,z,o){"use strict";o.d(z,"f",function(){return P}),o.d(z,"l",function(){return g}),o.d(z,"k",function(){return T}),o.d(z,"j",function(){return b}),o.d(z,"g",function(){return y}),o.d(z,"m",function(){return x}),o.d(z,"h",function(){return O}),o.d(z,"n",function(){return m}),o.d(z,"c",function(){return e}),o.d(z,"a",function(){return f}),o.d(z,"i",function(){return a}),o.d(z,"o",function(){return u}),o.d(z,"e",function(){return n}),o.d(z,"d",function(){return l}),o.d(z,"p",function(){return h}),o.d(z,"b",function(){return d});function P(s){return Array.isArray(s)}function g(s){return typeof s=="string"}function T(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function b(s){return typeof s=="number"&&!isNaN(s)}function y(s){return s===!0||s===!1}function x(s){return typeof s=="undefined"}function O(s){return!m(s)}function m(s){return x(s)||s===null}function e(s,c){if(!s)throw new Error(c?`Unexpected type, expected '${c}'`:"Unexpected type")}function f(s){if(m(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function a(s){return typeof s=="function"}function u(s,c){const w=Math.min(s.length,c.length);for(let E=0;Efunction(){const R=Array.prototype.slice.call(arguments,0);return c(v,R)};let E={};for(const v of s)E[v]=w(v);return E}function h(s){return s===null?void 0:s}function d(s,c="Unreachable"){throw new Error(c)}},"7Cbv":function(k,z,o){"use strict";var P=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),g=new Uint8Array(16);function T(){if(!P)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return P(g)}var b=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function y(r){return typeof r=="string"&&b.test(r)}for(var x=y,O=[],m=0;m<256;++m)O.push((m+256).toString(16).substr(1));function e(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(O[r[i+0]]+O[r[i+1]]+O[r[i+2]]+O[r[i+3]]+"-"+O[r[i+4]]+O[r[i+5]]+"-"+O[r[i+6]]+O[r[i+7]]+"-"+O[r[i+8]]+O[r[i+9]]+"-"+O[r[i+10]]+O[r[i+11]]+O[r[i+12]]+O[r[i+13]]+O[r[i+14]]+O[r[i+15]]).toLowerCase();if(!x(n))throw TypeError("Stringified UUID is invalid");return n}var f=e;function a(r,i,n){r=r||{};var l=r.random||(r.rng||T)();if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,i){n=n||0;for(var h=0;h<16;++h)i[n+h]=l[h];return i}return f(l)}var u=z.a=a},"7ZXX":function(k,z,o){k.exports=o.p+"static/err.6e7c5817.png"},"7ahc":function(k,z,o){"use strict";o.d(z,"a",function(){return w});var P=o("k1fw"),g=o("0Owb"),T=o("+L6B"),b=o("2/Rp"),y=o("y8nQ"),x=o("Vl3Y"),O=o("tJVT"),m=o("OaEy"),e=o("2fM7"),f=o("q1tI"),a=o.n(f),u=o("VrN/"),r=o.n(u),i=o("p77/"),n=o.n(i),l=o("c5Ni"),h=o.n(l),d=e.a.Option,s={labelCol:{span:4},wrapperCol:{span:20}},c={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};z.b=function(E){var v=E.callback,R=E.onCancel,M=Object(f.useState)("python"),C=Object(O.a)(M,2),S=C[0],_=C[1];function A(L){_(c[L][1])}function U(L){v(L)}return a.a.createElement(x.a,Object(g.a)({},s,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:U}),a.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},a.a.createElement(e.a,{onChange:A},Object.keys(c).map(function(L){return a.a.createElement(d,{key:L,value:L},c[L][0])}))),a.a.createElement(x.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},a.a.createElement(w,{mode:S})),a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(b.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(b.a,{type:"ghost",onClick:R},"\u53D6\u6D88")))};function w(E){var v=E.value,R=E.onChange,M=E.mode,C=E.options,S=C===void 0?{}:C,_=Object(f.useRef)(),A=Object(f.useState)(),U=Object(O.a)(A,2),L=U[0],N=U[1];return Object(f.useEffect)(function(){if(L){function V(H){var D=H.getValue();R&&R(D)}return L.on("change",V),function(){L.off("change",V)}}},[L,R]),Object(f.useEffect)(function(){L&&L.setOption("mode",M)},[L,M]),Object(f.useEffect)(function(){L&&((v!==L.getValue()||v==="")&&setTimeout(function(){L.setValue(v||" ")},300))},[L,v]),Object(f.useEffect)(function(){if(_.current&&!L){var V=r.a.fromTextArea(_.current,Object(P.a)({mode:M,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},S));N(V)}},[_.current,L]),a.a.createElement("div",{className:"my-codemirror-container"},a.a.createElement("textarea",{ref:_}))}},"7ixt":function(k,z,o){"use strict";o.d(z,"a",function(){return T});var P={adjustX:1,adjustY:1},g=[0,0],T={left:{points:["cr","cl"],overflow:P,offset:[-4,0],targetOffset:g},right:{points:["cl","cr"],overflow:P,offset:[4,0],targetOffset:g},top:{points:["bc","tc"],overflow:P,offset:[0,-4],targetOffset:g},bottom:{points:["tc","bc"],overflow:P,offset:[0,4],targetOffset:g},topLeft:{points:["bl","tl"],overflow:P,offset:[0,-4],targetOffset:g},leftTop:{points:["tr","tl"],overflow:P,offset:[-4,0],targetOffset:g},topRight:{points:["br","tr"],overflow:P,offset:[0,-4],targetOffset:g},rightTop:{points:["tl","tr"],overflow:P,offset:[4,0],targetOffset:g},bottomRight:{points:["tr","br"],overflow:P,offset:[0,4],targetOffset:g},rightBottom:{points:["bl","br"],overflow:P,offset:[4,0],targetOffset:g},bottomLeft:{points:["tl","bl"],overflow:P,offset:[0,4],targetOffset:g},leftBottom:{points:["br","bl"],overflow:P,offset:[-4,0],targetOffset:g}},b=T},"7v3h":function(k,z,o){k.exports=o.p+"static/empty2.dd73f390.png"},"8/bI":function(k,z,o){k.exports=o.p+"static/empty.8918e228.png"},"815F":function(k,z,o){"use strict";o.d(z,"e",function(){return O}),o.d(z,"c",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"a",function(){return u}),o.d(z,"f",function(){return r}),o.d(z,"b",function(){return i});var P=o("KQm4"),g=o("VTBJ"),T=o("Ff2n"),b=o("Zm9Q"),y=o("Kwbf"),x=o("OZM5");function O(n,l){return n!=null?n:l}function m(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=new Map;function h(d){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(d||[]).forEach(function(c){var w=c.key,E=c.children;Object(y.a)(w!=null,"Tree node must have a certain key: [".concat(s).concat(w,"]"));var v=String(w);Object(y.a)(!l.has(v)||w===null||w===void 0,"Same 'key' exist in the Tree: ".concat(v)),l.set(v,!0),h(E,"".concat(s).concat(v," > "))})}h(n)}function e(n){function l(h){var d=Object(b.a)(h);return d.map(function(s){if(!Object(x.i)(s))return Object(y.a)(!s,"Tree/TreeNode can only accept TreeNode as children."),null;var c=s.key,w=s.props,E=w.children,v=Object(T.a)(w,["children"]),R=Object(g.a)({key:c},v),M=l(E);return M.length&&(R.children=M),R}).filter(function(s){return s})}return l(n)}function f(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=new Set(l===!0?[]:l),d=[];function s(c){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(E,v){var R=Object(x.h)(w?w.pos:"0",v),M=O(E.key,R),C=Object(g.a)(Object(g.a)({},E),{},{parent:w,pos:R,children:null,data:E,isStart:[].concat(Object(P.a)(w?w.isStart:[]),[v===0]),isEnd:[].concat(Object(P.a)(w?w.isEnd:[]),[v===c.length-1])});return d.push(C),l===!0||h.has(M)?C.children=s(E.children||[],C):C.children=[],C})}return s(n),d}function a(n,l,h){var d;h?typeof h=="string"?d=function(w){return w[h]}:typeof h=="function"&&(d=function(w){return h(w)}):d=function(w,E){return O(w.key,E)};function s(c,w,E){var v=c?c.children:n,R=c?Object(x.h)(E.pos,w):"0";if(c){var M=d(c,R),C={node:c,index:w,pos:R,key:M,parentPos:E.node?E.pos:null,level:E.level+1};l(C)}v&&v.forEach(function(S,_){s(S,_,{node:c,pos:R,level:E?E.level+1:-1})})}s(null)}function u(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=l.initWrapper,d=l.processEntity,s=l.onProcessFinished,c=arguments.length>2?arguments[2]:void 0,w={},E={},v={posEntities:w,keyEntities:E};return h&&(v=h(v)||v),a(n,function(R){var M=R.node,C=R.index,S=R.pos,_=R.key,A=R.parentPos,U=R.level,L={node:M,index:C,key:_,pos:S,level:U},N=O(_,S);w[S]=L,E[N]=L,L.parent=w[A],L.parent&&(L.parent.children=L.parent.children||[],L.parent.children.push(L)),d&&d(L,v)},c),s&&s(v),v}function r(n,l){var h=l.expandedKeys,d=l.selectedKeys,s=l.loadedKeys,c=l.loadingKeys,w=l.checkedKeys,E=l.halfCheckedKeys,v=l.dragOverNodeKey,R=l.dropPosition,M=l.keyEntities,C=M[n],S={eventKey:n,expanded:h.indexOf(n)!==-1,selected:d.indexOf(n)!==-1,loaded:s.indexOf(n)!==-1,loading:c.indexOf(n)!==-1,checked:w.indexOf(n)!==-1,halfChecked:E.indexOf(n)!==-1,pos:String(C?C.pos:""),dragOver:v===n&&R===0,dragOverGapTop:v===n&&R===-1,dragOverGapBottom:v===n&&R===1};return S}function i(n){var l=n.data,h=n.expanded,d=n.selected,s=n.checked,c=n.loaded,w=n.loading,E=n.halfChecked,v=n.dragOver,R=n.dragOverGapTop,M=n.dragOverGapBottom,C=n.pos,S=n.active,_=Object(g.a)(Object(g.a)({},l),{},{expanded:h,selected:d,checked:s,loaded:c,loading:w,halfChecked:E,dragOver:v,dragOverGapTop:R,dragOverGapBottom:M,pos:C,active:S});return"props"in _||Object.defineProperty(_,"props",{get:function(){return Object(y.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),_}},"8EBN":function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"use strict";P.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var g=0;g-1&&b.substring(O+1,b.length);if(m)return P.findModeByExtension(m)},P.findModeByName=function(b){b=b.toLowerCase();for(var y=0;y=F&&HK?"true":"false","aria-posinset":K+1,"aria-setsize":ee,tabIndex:D?-1:0},m.a.createElement("div",{className:"".concat(W,"-first")},de),m.a.createElement("div",{className:"".concat(W,"-second")},de)));return I&&(Se=I(Se,this.props)),Se}}]),A}(m.a.Component);function s(S,_){var A=Object.keys(S);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(S);_&&(U=U.filter(function(L){return Object.getOwnPropertyDescriptor(S,L).enumerable})),A.push.apply(A,U)}return A}function c(S){for(var _=1;_0&&!ee||H===u.a.RIGHT&&he>0&&ee?(F?he-=.5:he-=1,L.changeValue(he),V.preventDefault()):H===u.a.LEFT&&heee/2||!W&&N-K=oe.length?De.slice(oe.length):De}).join(` `)}var h=[],d=["
        "],s=new i.a.Renderer,c=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function w(){h.length=0,d=["
          "]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function v(pe,X,q,oe){if(X>=pe.length||pe[X].level<=q)return X;var De=pe[X];oe.push("
        • "+De.text+""),X++;var fe=[];return X=v(pe,X,De.level,fe),fe.length>0&&(oe.push("
            "),fe.forEach(function(ot){oe.push(ot)}),oe.push("
          ")),oe.push("
        • "),X=v(pe,X,q,oe),X}function R(){return v(h,0,0,d),d.push("
        "),d.join("")}var M={heading:function(X){var q=c.exec(X);if(q)return{type:"heading",raw:q[0],depth:q[1].length,text:q[2]}},fences:function(X){var q=this.rules.block.fences.exec(X);if(q){var oe=q[0],De=l(oe,q[3]||""),fe=q[2]?q[2].trim():q[2];if(["latex","katex","math"].indexOf(fe)>=0){var ot=_(),Qt=De;De=ot,A[ot]={type:"block",expression:Qt}}return{type:"code",raw:oe,lang:fe,text:De}}}},C=/(?:\${2})([^\n`]+?)(?:\${2})/gi,S=0,_=function(){return"__special_katext_id_".concat(S++,"__")},A={};function U(){return A}function L(){S=0,A={}}function N(pe){return pe=pe.replace(C,function(X,q){var oe=_();return A[oe]={type:"inline",expression:q},oe}),pe}var V=s.listitem;s.listitem=function(pe){return V(N(pe))};var H=s.paragraph;s.paragraph=function(pe){return H(N(pe))};var D=s.tablecell;s.tablecell=function(pe,X){return D(N(pe),X)},s.code=function(pe,X,q){var oe=(X||"").match(/\S*/)[0];return oe?["latex","katex","math"].indexOf(oe)>=0?"

        ".concat(pe,"

        "):'
        ').concat(q?pe:Object(n.escape)(pe,!0),`
        `):'
        '+(q?pe:Object(n.escape)(pe,!0))+"
        "},s.heading=function(pe,X,q){var oe=this.options.headerPrefix+q.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return h.push({anchor:oe,level:X,text:pe}),"'+pe+""},i.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),i.a.use({tokenizer:M,renderer:s});var W=i.a,F=o("SJMd"),I=o("ulZh"),K=o.n(I),ee=o("m3rI"),he=o("Oy/b"),de=o("p5ED"),Se=o("ErOA");/*! ***************************************************************************** @@ -145,13 +145,13 @@ PERFORMANCE OF THIS SOFTWARE. height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},pe.prototype.show=function(X){var q;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=X,this.uiContainer.className=this.toolboxStyleClass.name+" "+((q=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&q!==void 0?q:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},pe.prototype.setPanelButtons=function(X){var q,oe,De=this;this.panels=X,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((q=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&q!==void 0?q:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(fe){var ot;fe.uiStyleSettings=De.uiStyleSettings;var Qt=document.createElement("div");Qt.className=De.toolboxButtonStyleClass.name+" "+((ot=De.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ot!==void 0?ot:De.toolboxButtonStyleColorsClass.name),Qt.innerHTML=fe.icon,Qt.title=fe.title,Qt.addEventListener("click",function(){De.panelButtonClick(fe)}),De.panelButtons.push(Qt),De.buttonRow.appendChild(Qt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},pe.prototype.panelButtonClick=function(X){var q=this,oe=-1;if(X!==this.activePanel){oe=this.panels.indexOf(X),this.panelRow.innerHTML="";var De=X.getUi();De.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(De),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=X}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){q.displayMode==="inline"?q.panelRow.style.display="none":q.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(fe,ot){var Qt,Mn;fe.className=q.toolboxButtonStyleClass.name+" "+(ot===oe?""+((Qt=q.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Qt!==void 0?Qt:q.toolboxActiveButtonStyleColorsClass.name):""+((Mn=q.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Mn!==void 0?Mn:q.toolboxButtonStyleColorsClass.name))})},pe}(),J=function(pe,X){this.title=pe,this.icon=X},ve=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'')||this;return ot.colors=[],ot.addTransparent=!1,ot.colorBoxes=[],ot.colors=oe,ot.currentColor=De,ot.setCurrentColor=ot.setCurrentColor.bind(ot),ot.getColorBox=ot.getColorBox.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(De){var fe=q.getColorBox(De);oe.appendChild(fe),q.colorBoxes.push(fe)}),oe},X.prototype.getColorBox=function(q){var oe=this,De=this.uiStyleSettings.toolbarHeight/4,fe=this.uiStyleSettings.toolbarHeight-De,ot=document.createElement("div");ot.style.display="inline-block",ot.style.boxSizing="content-box",ot.style.width=fe-2+"px",ot.style.height=fe-2+"px",ot.style.padding="1px",ot.style.marginRight="2px",ot.style.marginBottom="2px",ot.style.borderWidth="2px",ot.style.borderStyle="solid",ot.style.borderRadius=(fe+2)/2+"px",ot.style.borderColor=q===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ot.addEventListener("click",function(){oe.setCurrentColor(q,ot)});var Qt=document.createElement("div");return Qt.style.display="inline-block",Qt.style.width=fe-2+"px",Qt.style.height=fe-2+"px",Qt.style.backgroundColor=q,Qt.style.borderRadius=fe/2+"px",q==="transparent"&&(Qt.style.fill=this.uiStyleSettings.toolboxAccentColor,Qt.innerHTML=` - `),ot.appendChild(Qt),ot},X.prototype.setCurrentColor=function(q,oe){var De=this;this.currentColor=q,this.colorBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(q)},X}(J),_e=function(){function pe(X,q,oe){this._state="new",this._isSelected=!1,this._container=X,this._overlayContainer=q,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(pe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(X){return!1},Object.defineProperty(pe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),pe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},pe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},pe.prototype.pointerDown=function(X,q){},pe.prototype.dblClick=function(X,q){},pe.prototype.manipulate=function(X){},pe.prototype.pointerUp=function(X){this.stateChanged()},pe.prototype.dispose=function(){},pe.prototype.addMarkerVisualToContainer=function(X){this.container.childNodes.length>0?this.container.insertBefore(X,this.container.childNodes[0]):this.container.appendChild(X)},pe.prototype.getState=function(){return{typeName:pe.typeName,state:this.state,notes:this.notes}},pe.prototype.restoreState=function(X){this._state=X.state,this.notes=X.notes},pe.prototype.scale=function(X,q){},pe.prototype.colorChanged=function(X){this.onColorChanged&&this.onColorChanged(X),this.stateChanged()},pe.prototype.fillColorChanged=function(X){this.onFillColorChanged&&this.onFillColorChanged(X),this.stateChanged()},pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var X=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),X.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(X)&&this.onStateChanged(this)}},pe.typeName="MarkerBase",pe}(),Ae=function(){function pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return pe.prototype.findGripByVisual=function(X){return this.topLeft.ownsTarget(X)?this.topLeft:this.topCenter.ownsTarget(X)?this.topCenter:this.topRight.ownsTarget(X)?this.topRight:this.centerLeft.ownsTarget(X)?this.centerLeft:this.centerRight.ownsTarget(X)?this.centerRight:this.bottomLeft.ownsTarget(X)?this.bottomLeft:this.bottomCenter.ownsTarget(X)?this.bottomCenter:this.bottomRight.ownsTarget(X)?this.bottomRight:void 0},pe}(),Qe=function(){function pe(){this.GRIP_SIZE=10,this.visual=le.createGroup(),this.visual.appendChild(le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(le.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(X){return X===this.visual||X===this.visual.childNodes[0]||X===this.visual.childNodes[1]},pe}(),tt=function(){function pe(){}return pe.toITransformMatrix=function(X){return{a:X.a,b:X.b,c:X.c,d:X.d,e:X.e,f:X.f}},pe.toSVGMatrix=function(X,q){return X.a=q.a,X.b=q.b,X.c=q.c,X.d=q.d,X.e=q.e,X.f=q.f,X},pe}(),dt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.left=0,fe.top=0,fe.width=0,fe.height=0,fe.defaultSize={x:50,y:20},fe.offsetX=0,fe.offsetY=0,fe.rotationAngle=0,fe.CB_DISTANCE=10,fe._suppressMarkerCreateEvent=!1,fe.container.transform.baseVal.appendItem(le.createTransform()),fe.setupControlBox(),fe}return ce(X,pe),Object.defineProperty(X.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"visual",{get:function(){return this._visual},set:function(q){this._visual=q;var oe=le.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),X.prototype.ownsTarget=function(q){return!!pe.prototype.ownsTarget.call(this,q)||!!(this.controlGrips.findGripByVisual(q)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(q))},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.left=q.x,this.top=q.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var De=this.unrotatePoint(q);if(this.manipulationStartX=De.x,this.manipulationStartY=De.y,this.offsetX=De.x-this.left,this.offsetY=De.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var fe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=fe.x-this.width/2,this.top=fe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ot=this.container.transform.baseVal.getItem(0);ot.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ot,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},X.prototype.pointerUp=function(q){var oe=this.state;pe.prototype.pointerUp.call(this,q),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(q),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},X.prototype.moveVisual=function(q){this.visual.style.transform="translate("+q.x+"px, "+q.y+"px)"},X.prototype.manipulate=function(q){var oe=this.unrotatePoint(q);this.state==="creating"?this.resize(q):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(q)},X.prototype.resize=function(q){var oe=this.manipulationStartLeft,De=this.manipulationStartWidth,fe=this.manipulationStartTop,ot=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+q.x-this.manipulationStartX,De=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:De=this.manipulationStartWidth+q.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:fe=this.manipulationStartTop+q.y-this.manipulationStartY,ot=this.manipulationStartHeight+this.manipulationStartTop-fe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ot=this.manipulationStartHeight+q.y-this.manipulationStartY}De>=0?(this.left=oe,this.width=De):(this.left=oe+De,this.width=-De),ot>=0?(this.top=fe,this.height=ot):(this.top=fe+ot,this.height=-ot),this.setSize()},X.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},X.prototype.rotate=function(q){if(Math.abs(q.x-this.centerX)>.1){var oe=Math.sign(q.x-this.centerX);this.rotationAngle=180*Math.atan((q.y-this.centerY)/(q.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},X.prototype.applyRotation=function(){var q=this.container.transform.baseVal.getItem(0);q.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(q,0)},X.prototype.rotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM(),De=le.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(oe)).x,y:De.y}},X.prototype.unrotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM();oe=oe.inverse();var De=le.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(oe)).x,y:De.y}},X.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},X.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},X.prototype.setupControlBox=function(){this.controlBox=le.createGroup();var q=le.createTransform();q.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(q),this.container.appendChild(this.controlBox),this.controlRect=le.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=le.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ae,this.addControlGrips(),this.controlBox.style.display="none"},X.prototype.adjustControlBox=function(){var q=this.controlBox.transform.baseVal.getItem(0);q.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(q,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},X.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},X.prototype.createGrip=function(){var q=new Qe;return q.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.controlGrips.topLeft.GRIP_SIZE,oe=-q/2,De=oe,fe=(this.width+this.CB_DISTANCE)/2-q/2,ot=(this.height+this.CB_DISTANCE)/2-q/2,Qt=this.height+this.CB_DISTANCE-q/2,Mn=this.width+this.CB_DISTANCE-q/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,De),this.positionGrip(this.controlGrips.topCenter.visual,fe,De),this.positionGrip(this.controlGrips.topRight.visual,Mn,De),this.positionGrip(this.controlGrips.centerLeft.visual,oe,ot),this.positionGrip(this.controlGrips.centerRight.visual,Mn,ot),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Qt),this.positionGrip(this.controlGrips.bottomCenter.visual,fe,Qt),this.positionGrip(this.controlGrips.bottomRight.visual,Mn,Qt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,fe,De-3*this.CB_DISTANCE)},X.prototype.positionGrip=function(q,oe,De){var fe=q.transform.baseVal.getItem(0);fe.setTranslate(oe,De),q.transform.baseVal.replaceItem(fe,0)},X.prototype.hideControlBox=function(){this.controlBox.style.display="none"},X.prototype.showControlBox=function(){this.controlBox.style.display=""},X.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:tt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:tt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe);var De=this.rotatePoint({x:this.left,y:this.top}),fe=this.unrotatePoint({x:De.x*q,y:De.y*oe});this.left=fe.x,this.top=fe.y,this.width=this.width*q,this.height=this.height*oe,this.adjustControlBox()},X}(_e),mt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor="transparent",fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.opacity=1,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setFillColor=fe.setFillColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.createVisual=fe.createVisual.bind(fe),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual)},X.prototype.createVisual=function(){this.visual=le.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.setSize()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},X.prototype.pointerUp=function(q){pe.prototype.pointerUp.call(this,q),this.setSize()},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},X.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){var oe=q;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize()},X.title="Rectangle marker",X}(dt),vt=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'')||this;return ot.widths=[],ot.widthBoxes=[],ot.widths=oe,ot.currentWidth=De,ot.setCurrentWidth=ot.setCurrentWidth.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.flexGrow="2",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderColor=De===q.currentWidth?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentWidth(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.innerText=De.toString(),ot.style.marginRight="5px",fe.appendChild(ot);var Qt=document.createElement("div");Qt.style.minHeight="20px",Qt.style.flexGrow="2",Qt.style.display="flex",Qt.style.alignItems="center";var Mn=document.createElement("hr");Mn.style.minWidth="20px",Mn.style.border="0px",Mn.style.borderTop=De+"px solid "+q.uiStyleSettings.toolboxColor,Mn.style.flexGrow="2",Qt.appendChild(Mn),fe.appendChild(Qt),q.widthBoxes.push(fe)}),oe},X.prototype.setCurrentWidth=function(q,oe){var De=this;this.currentWidth=q,this.widthBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},X}(J),Et=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'')||this;return ot.styles=[],ot.styleBoxes=[],ot.styles=oe,ot.currentStyle=De,ot.setCurrentStyle=ot.setCurrentStyle.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.overflow="hidden",fe.style.maxWidth=100/q.styles.length-5+"%",fe.style.borderColor=De===q.currentStyle?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentStyle(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.overflow="hidden";var Qt=` + `),ot.appendChild(Qt),ot},X.prototype.setCurrentColor=function(q,oe){var De=this;this.currentColor=q,this.colorBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(q)},X}(J),_e=function(){function pe(X,q,oe){this._state="new",this._isSelected=!1,this._container=X,this._overlayContainer=q,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(pe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(X){return!1},Object.defineProperty(pe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),pe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},pe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},pe.prototype.pointerDown=function(X,q){},pe.prototype.dblClick=function(X,q){},pe.prototype.manipulate=function(X){},pe.prototype.pointerUp=function(X){this.stateChanged()},pe.prototype.dispose=function(){},pe.prototype.addMarkerVisualToContainer=function(X){this.container.childNodes.length>0?this.container.insertBefore(X,this.container.childNodes[0]):this.container.appendChild(X)},pe.prototype.getState=function(){return{typeName:pe.typeName,state:this.state,notes:this.notes}},pe.prototype.restoreState=function(X){this._state=X.state,this.notes=X.notes},pe.prototype.scale=function(X,q){},pe.prototype.colorChanged=function(X){this.onColorChanged&&this.onColorChanged(X),this.stateChanged()},pe.prototype.fillColorChanged=function(X){this.onFillColorChanged&&this.onFillColorChanged(X),this.stateChanged()},pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var X=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),X.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(X)&&this.onStateChanged(this)}},pe.typeName="MarkerBase",pe}(),Ae=function(){function pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return pe.prototype.findGripByVisual=function(X){return this.topLeft.ownsTarget(X)?this.topLeft:this.topCenter.ownsTarget(X)?this.topCenter:this.topRight.ownsTarget(X)?this.topRight:this.centerLeft.ownsTarget(X)?this.centerLeft:this.centerRight.ownsTarget(X)?this.centerRight:this.bottomLeft.ownsTarget(X)?this.bottomLeft:this.bottomCenter.ownsTarget(X)?this.bottomCenter:this.bottomRight.ownsTarget(X)?this.bottomRight:void 0},pe}(),Qe=function(){function pe(){this.GRIP_SIZE=10,this.visual=le.createGroup(),this.visual.appendChild(le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(le.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(X){return X===this.visual||X===this.visual.childNodes[0]||X===this.visual.childNodes[1]},pe}(),tt=function(){function pe(){}return pe.toITransformMatrix=function(X){return{a:X.a,b:X.b,c:X.c,d:X.d,e:X.e,f:X.f}},pe.toSVGMatrix=function(X,q){return X.a=q.a,X.b=q.b,X.c=q.c,X.d=q.d,X.e=q.e,X.f=q.f,X},pe}(),dt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.left=0,fe.top=0,fe.width=0,fe.height=0,fe.defaultSize={x:50,y:20},fe.offsetX=0,fe.offsetY=0,fe.rotationAngle=0,fe.CB_DISTANCE=10,fe._suppressMarkerCreateEvent=!1,fe.container.transform.baseVal.appendItem(le.createTransform()),fe.setupControlBox(),fe}return ce(X,pe),Object.defineProperty(X.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"visual",{get:function(){return this._visual},set:function(q){this._visual=q;var oe=le.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),X.prototype.ownsTarget=function(q){return!!pe.prototype.ownsTarget.call(this,q)||!!(this.controlGrips.findGripByVisual(q)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(q))},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.left=q.x,this.top=q.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var De=this.unrotatePoint(q);if(this.manipulationStartX=De.x,this.manipulationStartY=De.y,this.offsetX=De.x-this.left,this.offsetY=De.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var fe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=fe.x-this.width/2,this.top=fe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ot=this.container.transform.baseVal.getItem(0);ot.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ot,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},X.prototype.pointerUp=function(q){var oe=this.state;pe.prototype.pointerUp.call(this,q),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(q),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},X.prototype.moveVisual=function(q){this.visual.style.transform="translate("+q.x+"px, "+q.y+"px)"},X.prototype.manipulate=function(q){var oe=this.unrotatePoint(q);this.state==="creating"?this.resize(q):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(q)},X.prototype.resize=function(q){var oe=this.manipulationStartLeft,De=this.manipulationStartWidth,fe=this.manipulationStartTop,ot=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+q.x-this.manipulationStartX,De=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:De=this.manipulationStartWidth+q.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:fe=this.manipulationStartTop+q.y-this.manipulationStartY,ot=this.manipulationStartHeight+this.manipulationStartTop-fe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ot=this.manipulationStartHeight+q.y-this.manipulationStartY}De>=0?(this.left=oe,this.width=De):(this.left=oe+De,this.width=-De),ot>=0?(this.top=fe,this.height=ot):(this.top=fe+ot,this.height=-ot),this.setSize()},X.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},X.prototype.rotate=function(q){if(Math.abs(q.x-this.centerX)>.1){var oe=Math.sign(q.x-this.centerX);this.rotationAngle=180*Math.atan((q.y-this.centerY)/(q.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},X.prototype.applyRotation=function(){var q=this.container.transform.baseVal.getItem(0);q.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(q,0)},X.prototype.rotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM(),De=le.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(oe)).x,y:De.y}},X.prototype.unrotatePoint=function(q){if(this.rotationAngle===0)return q;var oe=this.container.getCTM();oe=oe.inverse();var De=le.createPoint(q.x,q.y);return{x:(De=De.matrixTransform(oe)).x,y:De.y}},X.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},X.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},X.prototype.setupControlBox=function(){this.controlBox=le.createGroup();var q=le.createTransform();q.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(q),this.container.appendChild(this.controlBox),this.controlRect=le.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=le.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ae,this.addControlGrips(),this.controlBox.style.display="none"},X.prototype.adjustControlBox=function(){var q=this.controlBox.transform.baseVal.getItem(0);q.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(q,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},X.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},X.prototype.createGrip=function(){var q=new Qe;return q.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.controlGrips.topLeft.GRIP_SIZE,oe=-q/2,De=oe,fe=(this.width+this.CB_DISTANCE)/2-q/2,ot=(this.height+this.CB_DISTANCE)/2-q/2,Qt=this.height+this.CB_DISTANCE-q/2,Mn=this.width+this.CB_DISTANCE-q/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,De),this.positionGrip(this.controlGrips.topCenter.visual,fe,De),this.positionGrip(this.controlGrips.topRight.visual,Mn,De),this.positionGrip(this.controlGrips.centerLeft.visual,oe,ot),this.positionGrip(this.controlGrips.centerRight.visual,Mn,ot),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Qt),this.positionGrip(this.controlGrips.bottomCenter.visual,fe,Qt),this.positionGrip(this.controlGrips.bottomRight.visual,Mn,Qt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,fe,De-3*this.CB_DISTANCE)},X.prototype.positionGrip=function(q,oe,De){var fe=q.transform.baseVal.getItem(0);fe.setTranslate(oe,De),q.transform.baseVal.replaceItem(fe,0)},X.prototype.hideControlBox=function(){this.controlBox.style.display="none"},X.prototype.showControlBox=function(){this.controlBox.style.display=""},X.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:tt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:tt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(tt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe);var De=this.rotatePoint({x:this.left,y:this.top}),fe=this.unrotatePoint({x:De.x*q,y:De.y*oe});this.left=fe.x,this.top=fe.y,this.width=this.width*q,this.height=this.height*oe,this.adjustControlBox()},X}(_e),mt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor="transparent",fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.opacity=1,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setFillColor=fe.setFillColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.createVisual=fe.createVisual.bind(fe),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual)},X.prototype.createVisual=function(){this.visual=le.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.setSize()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},X.prototype.pointerUp=function(q){pe.prototype.pointerUp.call(this,q),this.setSize()},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(q),this.stateChanged()},X.prototype.setFillColor=function(q){this.fillColor=q,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},X.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){var oe=q;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize()},X.title="Rectangle marker",X}(dt),vt=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'')||this;return ot.widths=[],ot.widthBoxes=[],ot.widths=oe,ot.currentWidth=De,ot.setCurrentWidth=ot.setCurrentWidth.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.flexGrow="2",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderColor=De===q.currentWidth?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentWidth(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.innerText=De.toString(),ot.style.marginRight="5px",fe.appendChild(ot);var Qt=document.createElement("div");Qt.style.minHeight="20px",Qt.style.flexGrow="2",Qt.style.display="flex",Qt.style.alignItems="center";var Mn=document.createElement("hr");Mn.style.minWidth="20px",Mn.style.border="0px",Mn.style.borderTop=De+"px solid "+q.uiStyleSettings.toolboxColor,Mn.style.flexGrow="2",Qt.appendChild(Mn),fe.appendChild(Qt),q.widthBoxes.push(fe)}),oe},X.prototype.setCurrentWidth=function(q,oe){var De=this;this.currentWidth=q,this.widthBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},X}(J),yt=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'')||this;return ot.styles=[],ot.styleBoxes=[],ot.styles=oe,ot.currentStyle=De,ot.setCurrentStyle=ot.setCurrentStyle.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.overflow="hidden",fe.style.maxWidth=100/q.styles.length-5+"%",fe.style.borderColor=De===q.currentStyle?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentStyle(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.overflow="hidden";var Qt=` - `;ot.innerHTML=Qt,fe.appendChild(ot),q.styleBoxes.push(fe)}),oe},X.prototype.setCurrentStyle=function(q,oe){var De=this;this.currentStyle=q,this.styleBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},X}(J),Ye=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new Et("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="FrameMarker",X.title="Frame marker",X.icon='',X}(mt),Ue=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},ft=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.x1=0,fe.y1=0,fe.x2=0,fe.y2=0,fe.defaultLength=50,fe.manipulationStartX=0,fe.manipulationStartY=0,fe.manipulationStartX1=0,fe.manipulationStartY1=0,fe.manipulationStartX2=0,fe.manipulationStartY2=0,fe.setupControlBox(),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!!pe.prototype.ownsTarget.call(this,q)||!(!this.grip1.ownsTarget(q)&&!this.grip2.ownsTarget(q))},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.manipulationStartX=q.x,this.manipulationStartY=q.y,this.state==="new"&&(this.x1=q.x,this.y1=q.y,this.x2=q.x,this.y2=q.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},X.prototype.pointerUp=function(q){var oe=this.state;pe.prototype.pointerUp.call(this,q),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(q),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},X.prototype.adjustVisual=function(){},X.prototype.manipulate=function(q){this.state==="creating"?this.resize(q):this.state==="move"?(this.x1=this.manipulationStartX1+q.x-this.manipulationStartX,this.y1=this.manipulationStartY1+q.y-this.manipulationStartY,this.x2=this.manipulationStartX2+q.x-this.manipulationStartX,this.y2=this.manipulationStartY2+q.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(q)},X.prototype.resize=function(q){switch(this.activeGrip){case this.grip1:this.x1=q.x,this.y1=q.y;break;case this.grip2:case void 0:this.x2=q.x,this.y2=q.y}this.adjustVisual(),this.adjustControlBox()},X.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},X.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},X.prototype.setupControlBox=function(){this.controlBox=le.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},X.prototype.adjustControlBox=function(){this.positionGrips()},X.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},X.prototype.createGrip=function(){var q=new Qe;return q.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-q/2,this.y1-q/2),this.positionGrip(this.grip2.visual,this.x2-q/2,this.y2-q/2)},X.prototype.positionGrip=function(q,oe,De){var fe=q.transform.baseVal.getItem(0);fe.setTranslate(oe,De),q.transform.baseVal.replaceItem(fe,0)},X.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.x1=this.x1*q,this.y1=this.y1*oe,this.x2=this.x2*q,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},X}(_e),jt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new Et("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.selectorLine&&q!==this.visibleLine)},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},X.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.adjustVisual(),this.colorChanged(q)},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.adjustVisual()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.adjustVisual(),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},X.typeName="LineMarker",X.title="Line marker",X.icon='',X}(ft),yt=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'')||this;return ot.fonts=[],ot.fontBoxes=[],ot.fonts=oe,ot.currentFont=De,ot.setCurrentFont=ot.setCurrentFont.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(De){var fe=document.createElement("div");fe.style.display="inline-block",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.overflow="hidden",fe.style.maxWidth=100/q.fonts.length-5+"%",fe.style.borderColor=De===q.currentFont?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentFont(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.style.display="flex",ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.fontFamily=De,ot.style.overflow="hidden";var Qt=document.createElement("div");Qt.style.whiteSpace="nowrap",Qt.style.overflow="hidden",Qt.style.textOverflow="ellipsis",Qt.innerHTML="The quick brown fox jumps over the lazy dog",ot.appendChild(Qt),fe.appendChild(ot),q.fontBoxes.push(fe)}),oe},X.prototype.setCurrentFont=function(q,oe){var De=this;this.currentFont=q,this.fontBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},X}(J),Pt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.color="transparent",fe.padding=5,fe.DEFAULT_TEXT="your text here",fe.text=fe.DEFAULT_TEXT,fe.isMoved=!1,fe.color=De.defaultColor,fe.fontFamily=De.defaultFontFamily,fe.defaultSize={x:100,y:30},fe.setColor=fe.setColor.bind(fe),fe.setFont=fe.setFont.bind(fe),fe.renderText=fe.renderText.bind(fe),fe.sizeText=fe.sizeText.bind(fe),fe.textEditDivClicked=fe.textEditDivClicked.bind(fe),fe.showTextEditor=fe.showTextEditor.bind(fe),fe.setSize=fe.setSize.bind(fe),fe.positionTextEditor=fe.positionTextEditor.bind(fe),fe.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),fe.colorPanel.onColorChanged=fe.setColor,fe.fontFamilyPanel=new yt("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){if(pe.prototype.ownsTarget.call(this,q)||q===this.visual||q===this.textElement||q===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(De){De===q&&(oe=!0)}),oe},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.bgRectangle=le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.isMoved=!1,this.pointerDownPoint=q,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.renderText=function(){var q=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){q.textElement.appendChild(le.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},X.prototype.getTextScale=function(){var q=this.textElement.getBBox(),oe=1;if(q.width>0&&q.height>0){var De=(1*this.width-this.width*this.padding*2/100)/q.width,fe=(1*this.height-this.height*this.padding*2/100)/q.height;oe=Math.min(De,fe)}return oe},X.prototype.getTextPosition=function(q){var oe=this.textElement.getBBox(),De=0,fe=0;return oe.width>0&&oe.height>0&&(De=(this.width-oe.width*q)/2,fe=this.height/2-oe.height*q/2),{x:De,y:fe}},X.prototype.sizeText=function(){var q=this.textElement.getBBox(),oe=this.getTextScale(),De=this.getTextPosition(oe);De.y-=q.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+De.x+"px, "+De.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(De.x,De.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(q.x-this.pointerDownPoint.x)>5||Math.abs(q.y-this.pointerDownPoint.y)>5)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.isMoved=!0,this.setSize(),this.sizeText()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},X.prototype.pointerUp=function(q){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),pe.prototype.pointerUp.call(this,q),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},X.prototype.showTextEditor=function(){var q=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(q.textEditor.style.fontSize);q.textEditor.clientWidth>=Number.parseInt(q.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,q.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var De=oe.clipboardData.getData("text"),fe=window.getSelection();if(!fe.rangeCount)return!1;fe.deleteFromDocument(),fe.getRangeAt(0).insertNode(document.createTextNode(De)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){q.textEditDivClicked(q.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},X.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var q=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),De=this.textElement.getBBox(),fe={x:De.width*q,y:De.height*q};oe.x-=fe.x/2,oe.y-=fe.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*q,12)+"px",this.textElement.style.display="none"}},X.prototype.textEditDivClicked=function(q){this.text=q.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},X.prototype.select=function(){pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},X.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),pe.prototype.deselect.call(this)},X.prototype.dblClick=function(q,oe){pe.prototype.dblClick.call(this,q,oe),this.showTextEditor()},X.prototype.setColor=function(q){this.textElement&&le.setAttributes(this.textElement,[["fill",q]]),this.color=q,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(q)},X.prototype.setFont=function(q){this.textElement&&le.setAttributes(this.textElement,[["font-family",q]]),this.fontFamily=q,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},X.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},X.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},X.typeName="TextMarker",X.title="Text marker",X.icon='',X}(dt),it=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.color="transparent",fe.lineWidth=3,fe.drawing=!1,fe.pixelRatio=1,fe.color=De.defaultColor,fe.lineWidth=De.defaultStrokeWidth,fe.pixelRatio=De.freehandPixelRatio,fe.setColor=fe.setColor.bind(fe),fe.addCanvas=fe.addCanvas.bind(fe),fe.finishCreation=fe.finishCreation.bind(fe),fe.setLineWidth=fe.setLineWidth.bind(fe),fe.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),fe.colorPanel.onColorChanged=fe.setColor,fe.lineWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.lineWidthPanel.onWidthChanged=fe.setLineWidth,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.drawingImage)},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.drawingImage=le.createImage(),this.visual.appendChild(this.drawingImage);var q=le.createTransform();this.visual.transform.baseVal.appendItem(q),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(q.x,q.y),this.drawing=!0):pe.prototype.pointerDown.call(this,q,oe)},X.prototype.manipulate=function(q){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(q.x,q.y),this.canvasContext.stroke()):pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},X.prototype.pointerUp=function(q){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):pe.prototype.pointerUp.call(this,q)},X.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},X.prototype.select=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.select.call(this)},X.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.deselect.call(this)},X.prototype.finishCreation=function(){for(var q=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],De=oe[0],fe=oe[1],ot=oe[2],Qt=oe[3],Mn=!1,Vn=0;Vn0&&(Mn=!0,VnQt&&(Qt=Vn),$t>ot&&(ot=$t));if(Mn){this.left=De/this.pixelRatio,this.top=fe/this.pixelRatio,this.width=(ot-De)/this.pixelRatio,this.height=(Qt-fe)/this.pixelRatio;var gn=document.createElement("canvas");gn.width=ot-De,gn.height=Qt-fe,gn.getContext("2d").putImageData(this.canvasContext.getImageData(De,fe,ot-De,Qt-fe),0,0),this.drawingImgUrl=gn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},X.prototype.setDrawingImage=function(){le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},X.prototype.setColor=function(q){this.color=q,this.colorChanged(q)},X.prototype.setLineWidth=function(q){this.lineWidth=q},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({drawingImgUrl:this.drawingImgUrl},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){this.createVisual(),pe.prototype.restoreState.call(this,q),this.drawingImgUrl=q.drawingImgUrl,this.setDrawingImage()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setDrawingImage()},X.typeName="FreehandMarker",X.title="Freehand marker",X.icon='',X}(dt),He=function(pe){function X(q,oe,De){var fe=pe.call(this,q,De||'')||this;return fe.typeBoxes=[],fe.currentType=oe,fe.setCurrentType=fe.setCurrentType.bind(fe),fe}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var De=function(Qt){var Mn="both";switch(Qt){case 0:Mn="both";break;case 1:Mn="start";break;case 2:Mn="end";break;case 3:Mn="none"}var Vn=document.createElement("div");if(Vn.style.display="flex",Vn.style.flexGrow="2",Vn.style.alignItems="center",Vn.style.justifyContent="space-between",Vn.style.padding="5px",Vn.style.borderWidth="2px",Vn.style.borderStyle="solid",Vn.style.borderColor=Mn===fe.currentType?fe.uiStyleSettings.toolboxAccentColor:"transparent",Vn.addEventListener("click",function(){q.setCurrentType(Mn,Vn)}),oe.appendChild(Vn),Mn==="both"||Mn==="start"){var $t=document.createElement("div");$t.style.display="flex",$t.style.alignItems="center",$t.style.minHeight="20px",$t.innerHTML=` + `;ot.innerHTML=Qt,fe.appendChild(ot),q.styleBoxes.push(fe)}),oe},X.prototype.setCurrentStyle=function(q,oe){var De=this;this.currentStyle=q,this.styleBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},X}(J),Ye=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new yt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="FrameMarker",X.title="Frame marker",X.icon='',X}(mt),Ue=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},ft=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.x1=0,fe.y1=0,fe.x2=0,fe.y2=0,fe.defaultLength=50,fe.manipulationStartX=0,fe.manipulationStartY=0,fe.manipulationStartX1=0,fe.manipulationStartY1=0,fe.manipulationStartX2=0,fe.manipulationStartY2=0,fe.setupControlBox(),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!!pe.prototype.ownsTarget.call(this,q)||!(!this.grip1.ownsTarget(q)&&!this.grip2.ownsTarget(q))},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.manipulationStartX=q.x,this.manipulationStartY=q.y,this.state==="new"&&(this.x1=q.x,this.y1=q.y,this.x2=q.x,this.y2=q.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},X.prototype.pointerUp=function(q){var oe=this.state;pe.prototype.pointerUp.call(this,q),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(q),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},X.prototype.adjustVisual=function(){},X.prototype.manipulate=function(q){this.state==="creating"?this.resize(q):this.state==="move"?(this.x1=this.manipulationStartX1+q.x-this.manipulationStartX,this.y1=this.manipulationStartY1+q.y-this.manipulationStartY,this.x2=this.manipulationStartX2+q.x-this.manipulationStartX,this.y2=this.manipulationStartY2+q.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(q)},X.prototype.resize=function(q){switch(this.activeGrip){case this.grip1:this.x1=q.x,this.y1=q.y;break;case this.grip2:case void 0:this.x2=q.x,this.y2=q.y}this.adjustVisual(),this.adjustControlBox()},X.prototype.select=function(){pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},X.prototype.deselect=function(){pe.prototype.deselect.call(this),this.controlBox.style.display="none"},X.prototype.setupControlBox=function(){this.controlBox=le.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},X.prototype.adjustControlBox=function(){this.positionGrips()},X.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},X.prototype.createGrip=function(){var q=new Qe;return q.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(q.visual),q},X.prototype.positionGrips=function(){var q=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-q/2,this.y1-q/2),this.positionGrip(this.grip2.visual,this.x2-q/2,this.y2-q/2)},X.prototype.positionGrip=function(q,oe,De){var fe=q.transform.baseVal.getItem(0);fe.setTranslate(oe,De),q.transform.baseVal.replaceItem(fe,0)},X.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},pe.prototype.getState.call(this))},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.x1=this.x1*q,this.y1=this.y1*oe,this.x2=this.x2*q,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},X}(_e),jt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new yt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.selectorLine&&q!==this.visibleLine)},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},X.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.adjustVisual(),this.colorChanged(q)},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.adjustVisual()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.adjustVisual(),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},X.typeName="LineMarker",X.title="Line marker",X.icon='',X}(ft),bt=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'')||this;return ot.fonts=[],ot.fontBoxes=[],ot.fonts=oe,ot.currentFont=De,ot.setCurrentFont=ot.setCurrentFont.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(De){var fe=document.createElement("div");fe.style.display="inline-block",fe.style.alignItems="center",fe.style.justifyContent="space-between",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.overflow="hidden",fe.style.maxWidth=100/q.fonts.length-5+"%",fe.style.borderColor=De===q.currentFont?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentFont(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.style.display="flex",ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.fontFamily=De,ot.style.overflow="hidden";var Qt=document.createElement("div");Qt.style.whiteSpace="nowrap",Qt.style.overflow="hidden",Qt.style.textOverflow="ellipsis",Qt.innerHTML="The quick brown fox jumps over the lazy dog",ot.appendChild(Qt),fe.appendChild(ot),q.fontBoxes.push(fe)}),oe},X.prototype.setCurrentFont=function(q,oe){var De=this;this.currentFont=q,this.fontBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},X}(J),Pt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.color="transparent",fe.padding=5,fe.DEFAULT_TEXT="your text here",fe.text=fe.DEFAULT_TEXT,fe.isMoved=!1,fe.color=De.defaultColor,fe.fontFamily=De.defaultFontFamily,fe.defaultSize={x:100,y:30},fe.setColor=fe.setColor.bind(fe),fe.setFont=fe.setFont.bind(fe),fe.renderText=fe.renderText.bind(fe),fe.sizeText=fe.sizeText.bind(fe),fe.textEditDivClicked=fe.textEditDivClicked.bind(fe),fe.showTextEditor=fe.showTextEditor.bind(fe),fe.setSize=fe.setSize.bind(fe),fe.positionTextEditor=fe.positionTextEditor.bind(fe),fe.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),fe.colorPanel.onColorChanged=fe.setColor,fe.fontFamilyPanel=new bt("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){if(pe.prototype.ownsTarget.call(this,q)||q===this.visual||q===this.textElement||q===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(De){De===q&&(oe=!0)}),oe},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.bgRectangle=le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.isMoved=!1,this.pointerDownPoint=q,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(q),this._state="creating")},X.prototype.renderText=function(){var q=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){q.textElement.appendChild(le.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},X.prototype.getTextScale=function(){var q=this.textElement.getBBox(),oe=1;if(q.width>0&&q.height>0){var De=(1*this.width-this.width*this.padding*2/100)/q.width,fe=(1*this.height-this.height*this.padding*2/100)/q.height;oe=Math.min(De,fe)}return oe},X.prototype.getTextPosition=function(q){var oe=this.textElement.getBBox(),De=0,fe=0;return oe.width>0&&oe.height>0&&(De=(this.width-oe.width*q)/2,fe=this.height/2-oe.height*q/2),{x:De,y:fe}},X.prototype.sizeText=function(){var q=this.textElement.getBBox(),oe=this.getTextScale(),De=this.getTextPosition(oe);De.y-=q.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+De.x+"px, "+De.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(De.x,De.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},X.prototype.manipulate=function(q){pe.prototype.manipulate.call(this,q),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(q.x-this.pointerDownPoint.x)>5||Math.abs(q.y-this.pointerDownPoint.y)>5)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),this.isMoved=!0,this.setSize(),this.sizeText()},X.prototype.setSize=function(){pe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},X.prototype.pointerUp=function(q){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),pe.prototype.pointerUp.call(this,q),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},X.prototype.showTextEditor=function(){var q=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(q.textEditor.style.fontSize);q.textEditor.clientWidth>=Number.parseInt(q.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,q.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var De=oe.clipboardData.getData("text"),fe=window.getSelection();if(!fe.rangeCount)return!1;fe.deleteFromDocument(),fe.getRangeAt(0).insertNode(document.createTextNode(De)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){q.textEditDivClicked(q.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},X.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var q=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),De=this.textElement.getBBox(),fe={x:De.width*q,y:De.height*q};oe.x-=fe.x/2,oe.y-=fe.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*q,12)+"px",this.textElement.style.display="none"}},X.prototype.textEditDivClicked=function(q){this.text=q.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},X.prototype.select=function(){pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},X.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),pe.prototype.deselect.call(this)},X.prototype.dblClick=function(q,oe){pe.prototype.dblClick.call(this,q,oe),this.showTextEditor()},X.prototype.setColor=function(q){this.textElement&&le.setAttributes(this.textElement,[["fill",q]]),this.color=q,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(q)},X.prototype.setFont=function(q){this.textElement&&le.setAttributes(this.textElement,[["font-family",q]]),this.fontFamily=q,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},X.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},X.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){var oe=q;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),pe.prototype.restoreState.call(this,q),this.setSize()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},X.typeName="TextMarker",X.title="Text marker",X.icon='',X}(dt),it=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.color="transparent",fe.lineWidth=3,fe.drawing=!1,fe.pixelRatio=1,fe.color=De.defaultColor,fe.lineWidth=De.defaultStrokeWidth,fe.pixelRatio=De.freehandPixelRatio,fe.setColor=fe.setColor.bind(fe),fe.addCanvas=fe.addCanvas.bind(fe),fe.finishCreation=fe.finishCreation.bind(fe),fe.setLineWidth=fe.setLineWidth.bind(fe),fe.colorPanel=new ve("Color",De.defaultColorSet,De.defaultColor),fe.colorPanel.onColorChanged=fe.setColor,fe.lineWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.lineWidthPanel.onWidthChanged=fe.setLineWidth,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.drawingImage)},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.drawingImage=le.createImage(),this.visual.appendChild(this.drawingImage);var q=le.createTransform();this.visual.transform.baseVal.appendItem(q),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(q.x,q.y),this.drawing=!0):pe.prototype.pointerDown.call(this,q,oe)},X.prototype.manipulate=function(q){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(q.x,q.y),this.canvasContext.stroke()):pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){pe.prototype.resize.call(this,q),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},X.prototype.pointerUp=function(q){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):pe.prototype.pointerUp.call(this,q)},X.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},X.prototype.select=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.select.call(this)},X.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),pe.prototype.deselect.call(this)},X.prototype.finishCreation=function(){for(var q=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],De=oe[0],fe=oe[1],ot=oe[2],Qt=oe[3],Mn=!1,Vn=0;Vn0&&(Mn=!0,VnQt&&(Qt=Vn),$t>ot&&(ot=$t));if(Mn){this.left=De/this.pixelRatio,this.top=fe/this.pixelRatio,this.width=(ot-De)/this.pixelRatio,this.height=(Qt-fe)/this.pixelRatio;var gn=document.createElement("canvas");gn.width=ot-De,gn.height=Qt-fe,gn.getContext("2d").putImageData(this.canvasContext.getImageData(De,fe,ot-De,Qt-fe),0,0),this.drawingImgUrl=gn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},X.prototype.setDrawingImage=function(){le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},X.prototype.setColor=function(q){this.color=q,this.colorChanged(q)},X.prototype.setLineWidth=function(q){this.lineWidth=q},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({drawingImgUrl:this.drawingImgUrl},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){this.createVisual(),pe.prototype.restoreState.call(this,q),this.drawingImgUrl=q.drawingImgUrl,this.setDrawingImage()},X.prototype.scale=function(q,oe){pe.prototype.scale.call(this,q,oe),this.setDrawingImage()},X.typeName="FreehandMarker",X.title="Freehand marker",X.icon='',X}(dt),He=function(pe){function X(q,oe,De){var fe=pe.call(this,q,De||'')||this;return fe.typeBoxes=[],fe.currentType=oe,fe.setCurrentType=fe.setCurrentType.bind(fe),fe}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var De=function(Qt){var Mn="both";switch(Qt){case 0:Mn="both";break;case 1:Mn="start";break;case 2:Mn="end";break;case 3:Mn="none"}var Vn=document.createElement("div");if(Vn.style.display="flex",Vn.style.flexGrow="2",Vn.style.alignItems="center",Vn.style.justifyContent="space-between",Vn.style.padding="5px",Vn.style.borderWidth="2px",Vn.style.borderStyle="solid",Vn.style.borderColor=Mn===fe.currentType?fe.uiStyleSettings.toolboxAccentColor:"transparent",Vn.addEventListener("click",function(){q.setCurrentType(Mn,Vn)}),oe.appendChild(Vn),Mn==="both"||Mn==="start"){var $t=document.createElement("div");$t.style.display="flex",$t.style.alignItems="center",$t.style.minHeight="20px",$t.innerHTML=` `,$t.style.marginLeft="5px",Vn.appendChild($t)}var gn=document.createElement("div");gn.style.display="flex",gn.style.alignItems="center",gn.style.minHeight="20px",gn.style.flexGrow="2";var pn=document.createElement("hr");if(pn.style.minWidth="20px",pn.style.border="0px",pn.style.borderTop="3px solid "+(fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxColor:"#eeeeee"),pn.style.flexGrow="2",gn.appendChild(pn),Vn.appendChild(gn),Mn==="both"||Mn==="end"){var Ar=document.createElement("div");Ar.style.display="flex",Ar.style.alignItems="center",Ar.style.minHeight="20px",Ar.innerHTML=` - `,Ar.style.marginRight="5px",Vn.appendChild(Ar)}fe.typeBoxes.push(Vn)},fe=this,ot=0;ot<4;ot++)De(ot);return oe},X.prototype.setCurrentType=function(q,oe){var De=this;this.currentType=q,this.typeBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},X}(J),Ge=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.arrowType="end",fe.arrowBaseHeight=10,fe.arrowBaseWidth=10,fe.getArrowPoints=fe.getArrowPoints.bind(fe),fe.setArrowType=fe.setArrowType.bind(fe),fe.arrowTypePanel=new He("Arrow type","end"),fe.arrowTypePanel.onArrowTypeChanged=fe.setArrowType,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.arrow1&&q!==this.arrow2)},X.prototype.getArrowPoints=function(q,oe){var De=this.arrowBaseWidth+2*this.strokeWidth,fe=this.arrowBaseHeight+2*this.strokeWidth;return q-De/2+","+(oe+fe/2)+" "+q+","+(oe-fe/2)+" "+(q+De/2)+","+(oe+fe/2)},X.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"&&this.createTips()},X.prototype.adjustVisual=function(){if(pe.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var q=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(q,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var De=this.arrow2.transform.baseVal.getItem(0);De.setRotate(q+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(De,0)}},X.prototype.setArrowType=function(q){this.arrowType=q,this.adjustVisual(),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({arrowType:this.arrowType},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},X.typeName="ArrowMarker",X.title="Arrow marker",X.icon='',X}(jt),Ce=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor=De.defaultFillColor,fe.strokeWidth=0,fe.fillPanel=new ve("Color",De.defaultColorSet,De.defaultFillColor),fe.fillPanel.onColorChanged=fe.setFillColor,fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="CoverMarker",X.title="Cover marker",X.icon='',X}(mt),Ie=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'')||this;return ot.opacities=[],ot.opacityBoxes=[],ot.opacities=oe,ot.currentOpacity=De,ot.setCurrentOpacity=ot.setCurrentOpacity.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.justifyContent="center",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderColor=De===q.currentOpacity?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentOpacity(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.innerText=100*De+"%",fe.appendChild(ot),q.opacityBoxes.push(fe)}),oe},X.prototype.setCurrentOpacity=function(q,oe){var De=this;this.currentOpacity=q,this.opacityBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},X}(J),Fe=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.setOpacity=fe.setOpacity.bind(fe),fe.fillColor=De.defaultHighlightColor,fe.strokeWidth=0,fe.opacity=De.defaultHighlightOpacity,fe.fillPanel=new ve("Color",De.defaultColorSet,fe.fillColor),fe.fillPanel.onColorChanged=fe.setFillColor,fe.opacityPanel=new Ie("Opacity",De.defaultOpacitySteps,fe.opacity),fe.opacityPanel.onOpacityChanged=fe.setOpacity,fe}return ce(X,pe),X.prototype.setOpacity=function(q){this.opacity=q,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="HighlightMarker",X.title="Highlight marker",X.icon='',X}(Ce),Be='',We=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.bgColor="transparent",fe.tipPosition={x:0,y:0},fe.tipBase1Position={x:0,y:0},fe.tipBase2Position={x:0,y:0},fe.tipMoving=!1,fe.color=De.defaultStrokeColor,fe.bgColor=De.defaultFillColor,fe.fontFamily=De.defaultFontFamily,fe.defaultSize={x:100,y:30},fe.setBgColor=fe.setBgColor.bind(fe),fe.getTipPoints=fe.getTipPoints.bind(fe),fe.positionTip=fe.positionTip.bind(fe),fe.setTipPoints=fe.setTipPoints.bind(fe),fe.colorPanel=new ve("Text color",De.defaultColorSet,fe.color,''),fe.colorPanel.onColorChanged=fe.setColor,fe.bgColorPanel=new ve("Fill color",De.defaultColorSet,fe.bgColor,Be),fe.bgColorPanel.onColorChanged=fe.setBgColor,fe.fontFamilyPanel=new yt("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe.tipGrip=new Qe,fe.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),fe.controlBox.appendChild(fe.tipGrip.visual),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return pe.prototype.ownsTarget.call(this,q)||this.tipGrip.ownsTarget(q)||this.tip===q},X.prototype.createTip=function(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},X.prototype.pointerDown=function(q,oe){this.state==="new"&&pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):pe.prototype.pointerDown.call(this,q,oe)},X.prototype.pointerUp=function(q){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,pe.prototype.pointerUp.call(this,q);else{var oe=this.state==="creating";pe.prototype.pointerUp.call(this,q),this.setTipPoints(oe),this.positionTip()}},X.prototype.manipulate=function(q){if(this.tipMoving){var oe=this.unrotatePoint(q);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else pe.prototype.manipulate.call(this,q)},X.prototype.setBgColor=function(q){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",q]]),le.setAttributes(this.tip,[["fill",q]])),this.bgColor=q,this.fillColorChanged(q)},X.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},X.prototype.setTipPoints=function(q){q===void 0&&(q=!1);var oe=Math.min(this.height/2,15),De=this.height/5;q&&(this.tipPosition={x:oe+De/2,y:this.height+20});var fe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?fe.1)){var q=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(q,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var De=this.tip2.transform.baseVal.getItem(0);De.setRotate(q+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(De,0)}},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q),this.createTips(),this.adjustVisual()},X.typeName="MeasurementMarker",X.title="Measurement marker",X.icon='',X}(jt),Ht=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokePanel.colors=De.defaultColorSet,fe.fillColor="transparent",fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="EllipseFrameMarker",X.title="Ellipse frame marker",X.icon='',X}(st),rn=function(){function pe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),pe.prototype.addUndoStep=function(X){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(X)||(this.undoStack.push(X),JSON.stringify(this.lastRedoStep)!==JSON.stringify(X)&&this.redoStack.splice(0,this.redoStack.length))},pe.prototype.replaceLastUndoStep=function(X){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=X)},pe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},pe.prototype.undo=function(){if(this.undoStack.length>1){var X=this.undoStack.pop();return X!==void 0&&this.redoStack.push(X),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},pe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},pe}(),Bt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.curveX=0,fe.curveY=0,fe.manipulationStartCurveX=0,fe.manipulationStartCurveY=0,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.positionGrips=fe.positionGrips.bind(fe),fe.addControlGrips=fe.addControlGrips.bind(fe),fe.adjustVisual=fe.adjustVisual.bind(fe),fe.setupControlBox=fe.setupControlBox.bind(fe),fe.resize=fe.resize.bind(fe),fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new Et("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.selectorCurve&&q!==this.visibleCurve&&!this.curveGrip.ownsTarget(q))},X.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=q.x,this.curveY=q.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},X.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},X.prototype.setupControlBox=function(){pe.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},X.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,pe.prototype.addControlGrips.call(this)},X.prototype.positionGrips=function(){pe.prototype.positionGrips.call(this);var q=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-q/2,this.curveY-q/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},X.prototype.manipulate=function(q){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+q.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+q.y-this.manipulationStartY),pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){this.activeGrip===this.curveGrip&&(this.curveX=q.x,this.curveY=q.y),pe.prototype.resize.call(this,q),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.adjustVisual(),this.colorChanged(q)},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.adjustVisual()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.adjustVisual()},X.prototype.scale=function(q,oe){this.curveX=this.curveX*q,this.curveY=this.curveY*oe,pe.prototype.scale.call(this,q,oe)},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},X.typeName="CurveMarker",X.title="Curve marker",X.icon='',X}(ft),Ct=function(){function pe(X,q){q===void 0&&(q=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=X,this.cancelable=q}return Object.defineProperty(pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),pe.prototype.preventDefault=function(){this._defaultPrevented=!0},pe}(),Ke=function(pe){function X(q,oe,De){var fe=pe.call(this,q,!1)||this;return fe.dataUrl=oe,fe.state=De,fe}return ce(X,pe),X}(Ct),et=function(pe){function X(q,oe,De){De===void 0&&(De=!1);var fe=pe.call(this,q,De)||this;return fe.marker=oe,fe}return ce(X,pe),X}(Ct),at=function(){function pe(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return pe.prototype.addEventListener=function(X,q){this[X].push(q)},pe.prototype.removeEventListener=function(X,q){var oe=this[X].indexOf(q);oe>-1&&this[X].splice(oe,1)},pe}(),Pe=function(){function pe(X){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ue,this._isOpen=!1,this.undoRedoManager=new rn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new at,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=pe.instanceCounter++,this.styles=new ae(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=X,this.targetRoot=document.body,this.width=X.clientWidth,this.height=X.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(pe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ye,it,Ge,Pt,Ht,st,Fe,We,Dt,Ce,jt,Bt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ye,it,Ge,Pt,st,Fe,We]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ye,it,Ge,Pt,Fe]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(X){var q=this;this._availableMarkerTypes.splice(0),X.forEach(function(oe){if(typeof oe=="string"){var De=q.ALL_MARKER_TYPES.find(function(fe){return fe.typeName===oe});De!==void 0&&q._availableMarkerTypes.push(De)}else q._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(X){this._zoomLevel=X,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),pe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),$.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},pe.prototype.show=function(){var X=this;this.styles.styleSheetRoot===void 0&&re.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=re.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(q){return q(new Ct(X))})},pe.prototype.render=function(){return be(this,void 0,void 0,function(){var X;return Ee(this,function(q){switch(q.label){case 0:return this.setCurrentMarker(),(X=new me).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.markersOnly=this.renderMarkersOnly,X.width=this.renderWidth,X.height=this.renderHeight,[4,X.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return q.sent(),[4,X.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,q.sent()]}})})},pe.prototype.close=function(X){var q=this;if(X===void 0&&(X=!1),this.isOpen){var oe=!1;X||this.eventListeners.beforeclose.forEach(function(De){var fe=new Ct(q,!0);De(fe),fe.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(De){return De(new Ct(q))}),this.detachEvents(),this._isOpen=!1)}},pe.prototype.addMarkersToToolbar=function(){for(var X,q=[],oe=0;oethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*X:this.editorCanvas.clientWidth,oe=q',X.title="Powered by marker.js",X.style.display="grid",X.style.alignItems="center",X.style.justifyItems="center",X.style.padding="3px",X.style.width="20px",X.style.height="20px",this.logoUI.appendChild(X),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},pe.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},pe.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},pe.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var X=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=X+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new te(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(X),1),X.dispose()},pe.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},pe.prototype.toolbarButtonClicked=function(X,q){if(X==="marker"&&q!==void 0)this.createNewMarker(q);else if(X==="action")switch(q){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},pe.prototype.deleteSelectedMarker=function(){var X=this;if(this._currentMarker!==void 0){var q=!1;if(this.eventListeners.markerbeforedelete.forEach(function(De){var fe=new et(X,X._currentMarker,!0);De(fe),fe.defaultPrevented&&(q=!0)}),!q){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(De){return De(new et(X,oe))})}}},pe.prototype.clear=function(){var X=this,q=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ot){var Qt=new et(X,void 0,!0);ot(Qt),Qt.defaultPrevented&&(q=!0)}),!q)){this.setCurrentMarker();for(var oe=function(ot){var Qt=De.markers[ot];De.setCurrentMarker(De.markers[ot]),De._currentMarker.dispose(),De.markerImage.removeChild(De._currentMarker.container),De.markers.splice(De.markers.indexOf(De._currentMarker),1),De.eventListeners.markerdelete.forEach(function(Mn){return Mn(new et(X,Qt))})},De=this,fe=this.markers.length-1;fe>=0;fe--)oe(fe);this.addUndoStep()}},Object.defineProperty(pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),pe.prototype.showNotesEditor=function(){var X;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(X=this._currentMarker.notes)!==null&&X!==void 0?X:"",this.overlayContainer.appendChild(this.notesArea))},pe.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},pe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},pe.prototype.addUndoStep=function(){var X=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var q=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===q.width&&oe.height===q.height){var De=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(q),De1&&this.panTo({x:X.clientX,y:X.clientY}))},pe.prototype.onPointerUp=function(X){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(X.clientX,X.clientY)),this.isDragging=!1,this.addUndoStep()},pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},pe.prototype.onKeyUp=function(X){this._currentMarker===void 0||this.notesArea!==void 0||X.key!=="Delete"&&X.key!=="Backspace"||this.deleteSelectedMarker()},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.markerImage.getBoundingClientRect();return{x:(X-oe.left)/this.zoomLevel,y:(q-oe.top)/this.zoomLevel}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var X=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=X+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},pe.prototype.addLicenseKey=function(X){$.addKey(X)},pe.prototype.addEventListener=function(X,q){this.eventListeners.addEventListener(X,q)},pe.prototype.removeEventListener=function(X,q){this.eventListeners.removeEventListener(X,q)},pe.prototype.renderState=function(X){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(X),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),pe.prototype.focus=function(){var X=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(q){return q(new Ct(X))}))},pe.prototype.blur=function(){var X=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(q){return q(new Ct(X))}))},pe.instanceCounter=0,pe}();/* ********************************** + `,Ar.style.marginRight="5px",Vn.appendChild(Ar)}fe.typeBoxes.push(Vn)},fe=this,ot=0;ot<4;ot++)De(ot);return oe},X.prototype.setCurrentType=function(q,oe){var De=this;this.currentType=q,this.typeBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},X}(J),Ge=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.arrowType="end",fe.arrowBaseHeight=10,fe.arrowBaseWidth=10,fe.getArrowPoints=fe.getArrowPoints.bind(fe),fe.setArrowType=fe.setArrowType.bind(fe),fe.arrowTypePanel=new He("Arrow type","end"),fe.arrowTypePanel.onArrowTypeChanged=fe.setArrowType,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.arrow1&&q!==this.arrow2)},X.prototype.getArrowPoints=function(q,oe){var De=this.arrowBaseWidth+2*this.strokeWidth,fe=this.arrowBaseHeight+2*this.strokeWidth;return q-De/2+","+(oe+fe/2)+" "+q+","+(oe-fe/2)+" "+(q+De/2)+","+(oe+fe/2)},X.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"&&this.createTips()},X.prototype.adjustVisual=function(){if(pe.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var q=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(q,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var De=this.arrow2.transform.baseVal.getItem(0);De.setRotate(q+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(De,0)}},X.prototype.setArrowType=function(q){this.arrowType=q,this.adjustVisual(),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({arrowType:this.arrowType},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},X.typeName="ArrowMarker",X.title="Arrow marker",X.icon='',X}(jt),Ce=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.fillColor=De.defaultFillColor,fe.strokeWidth=0,fe.fillPanel=new ve("Color",De.defaultColorSet,De.defaultFillColor),fe.fillPanel.onColorChanged=fe.setFillColor,fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="CoverMarker",X.title="Cover marker",X.icon='',X}(mt),Ie=function(pe){function X(q,oe,De,fe){var ot=pe.call(this,q,fe||'')||this;return ot.opacities=[],ot.opacityBoxes=[],ot.opacities=oe,ot.currentOpacity=De,ot.setCurrentOpacity=ot.setCurrentOpacity.bind(ot),ot}return ce(X,pe),X.prototype.getUi=function(){var q=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(De){var fe=document.createElement("div");fe.style.display="flex",fe.style.alignItems="center",fe.style.justifyContent="center",fe.style.padding="5px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderColor=De===q.currentOpacity?q.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){q.setCurrentOpacity(De,fe)}),oe.appendChild(fe);var ot=document.createElement("div");ot.innerText=100*De+"%",fe.appendChild(ot),q.opacityBoxes.push(fe)}),oe},X.prototype.setCurrentOpacity=function(q,oe){var De=this;this.currentOpacity=q,this.opacityBoxes.forEach(function(fe){fe.style.borderColor=fe===oe?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},X}(J),Fe=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.setOpacity=fe.setOpacity.bind(fe),fe.fillColor=De.defaultHighlightColor,fe.strokeWidth=0,fe.opacity=De.defaultHighlightOpacity,fe.fillPanel=new ve("Color",De.defaultColorSet,fe.fillColor),fe.fillPanel.onColorChanged=fe.setFillColor,fe.opacityPanel=new Ie("Opacity",De.defaultOpacitySteps,fe.opacity),fe.opacityPanel.onOpacityChanged=fe.setOpacity,fe}return ce(X,pe),X.prototype.setOpacity=function(q){this.opacity=q,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="HighlightMarker",X.title="Highlight marker",X.icon='',X}(Ce),Be='',We=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.bgColor="transparent",fe.tipPosition={x:0,y:0},fe.tipBase1Position={x:0,y:0},fe.tipBase2Position={x:0,y:0},fe.tipMoving=!1,fe.color=De.defaultStrokeColor,fe.bgColor=De.defaultFillColor,fe.fontFamily=De.defaultFontFamily,fe.defaultSize={x:100,y:30},fe.setBgColor=fe.setBgColor.bind(fe),fe.getTipPoints=fe.getTipPoints.bind(fe),fe.positionTip=fe.positionTip.bind(fe),fe.setTipPoints=fe.setTipPoints.bind(fe),fe.colorPanel=new ve("Text color",De.defaultColorSet,fe.color,''),fe.colorPanel.onColorChanged=fe.setColor,fe.bgColorPanel=new ve("Fill color",De.defaultColorSet,fe.bgColor,Be),fe.bgColorPanel.onColorChanged=fe.setBgColor,fe.fontFamilyPanel=new bt("Font",De.defaultFontFamilies,De.defaultFontFamily),fe.fontFamilyPanel.onFontChanged=fe.setFont,fe.tipGrip=new Qe,fe.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),fe.controlBox.appendChild(fe.tipGrip.visual),fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return pe.prototype.ownsTarget.call(this,q)||this.tipGrip.ownsTarget(q)||this.tip===q},X.prototype.createTip=function(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},X.prototype.pointerDown=function(q,oe){this.state==="new"&&pe.prototype.pointerDown.call(this,q,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):pe.prototype.pointerDown.call(this,q,oe)},X.prototype.pointerUp=function(q){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,pe.prototype.pointerUp.call(this,q);else{var oe=this.state==="creating";pe.prototype.pointerUp.call(this,q),this.setTipPoints(oe),this.positionTip()}},X.prototype.manipulate=function(q){if(this.tipMoving){var oe=this.unrotatePoint(q);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else pe.prototype.manipulate.call(this,q)},X.prototype.setBgColor=function(q){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",q]]),le.setAttributes(this.tip,[["fill",q]])),this.bgColor=q,this.fillColorChanged(q)},X.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},X.prototype.setTipPoints=function(q){q===void 0&&(q=!1);var oe=Math.min(this.height/2,15),De=this.height/5;q&&(this.tipPosition={x:oe+De/2,y:this.height+20});var fe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?fe.1)){var q=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(q,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var De=this.tip2.transform.baseVal.getItem(0);De.setRotate(q+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(De,0)}},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q),this.createTips(),this.adjustVisual()},X.typeName="MeasurementMarker",X.title="Measurement marker",X.icon='',X}(jt),Ht=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokePanel.colors=De.defaultColorSet,fe.fillColor="transparent",fe}return ce(X,pe),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=pe.prototype.getState.call(this);return q.typeName=X.typeName,q},X.typeName="EllipseFrameMarker",X.title="Ellipse frame marker",X.icon='',X}(st),rn=function(){function pe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),pe.prototype.addUndoStep=function(X){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(X)||(this.undoStack.push(X),JSON.stringify(this.lastRedoStep)!==JSON.stringify(X)&&this.redoStack.splice(0,this.redoStack.length))},pe.prototype.replaceLastUndoStep=function(X){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=X)},pe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},pe.prototype.undo=function(){if(this.undoStack.length>1){var X=this.undoStack.pop();return X!==void 0&&this.redoStack.push(X),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},pe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},pe}(),Bt=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe,De)||this;return fe.strokeColor="transparent",fe.strokeWidth=0,fe.strokeDasharray="",fe.curveX=0,fe.curveY=0,fe.manipulationStartCurveX=0,fe.manipulationStartCurveY=0,fe.setStrokeColor=fe.setStrokeColor.bind(fe),fe.setStrokeWidth=fe.setStrokeWidth.bind(fe),fe.setStrokeDasharray=fe.setStrokeDasharray.bind(fe),fe.positionGrips=fe.positionGrips.bind(fe),fe.addControlGrips=fe.addControlGrips.bind(fe),fe.adjustVisual=fe.adjustVisual.bind(fe),fe.setupControlBox=fe.setupControlBox.bind(fe),fe.resize=fe.resize.bind(fe),fe.strokeColor=De.defaultColor,fe.strokeWidth=De.defaultStrokeWidth,fe.strokeDasharray=De.defaultStrokeDasharray,fe.strokePanel=new ve("Line color",De.defaultColorSet,De.defaultColor),fe.strokePanel.onColorChanged=fe.setStrokeColor,fe.strokeWidthPanel=new vt("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),fe.strokeWidthPanel.onWidthChanged=fe.setStrokeWidth,fe.strokeStylePanel=new yt("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),fe.strokeStylePanel.onStyleChanged=fe.setStrokeDasharray,fe}return ce(X,pe),X.prototype.ownsTarget=function(q){return!(!pe.prototype.ownsTarget.call(this,q)&&q!==this.visual&&q!==this.selectorCurve&&q!==this.visibleCurve&&!this.curveGrip.ownsTarget(q))},X.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},X.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},X.prototype.pointerDown=function(q,oe){pe.prototype.pointerDown.call(this,q,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=q.x,this.curveY=q.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},X.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},X.prototype.setupControlBox=function(){pe.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},X.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,pe.prototype.addControlGrips.call(this)},X.prototype.positionGrips=function(){pe.prototype.positionGrips.call(this);var q=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-q/2,this.curveY-q/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},X.prototype.manipulate=function(q){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+q.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+q.y-this.manipulationStartY),pe.prototype.manipulate.call(this,q)},X.prototype.resize=function(q){this.activeGrip===this.curveGrip&&(this.curveX=q.x,this.curveY=q.y),pe.prototype.resize.call(this,q),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},X.prototype.setStrokeColor=function(q){this.strokeColor=q,this.adjustVisual(),this.colorChanged(q)},X.prototype.setStrokeWidth=function(q){this.strokeWidth=q,this.adjustVisual()},X.prototype.setStrokeDasharray=function(q){this.strokeDasharray=q,this.adjustVisual()},X.prototype.scale=function(q,oe){this.curveX=this.curveX*q,this.curveY=this.curveY*oe,pe.prototype.scale.call(this,q,oe)},Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),X.prototype.getState=function(){var q=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},pe.prototype.getState.call(this));return q.typeName=X.typeName,q},X.prototype.restoreState=function(q){pe.prototype.restoreState.call(this,q);var oe=q;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},X.typeName="CurveMarker",X.title="Curve marker",X.icon='',X}(ft),Ct=function(){function pe(X,q){q===void 0&&(q=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=X,this.cancelable=q}return Object.defineProperty(pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),pe.prototype.preventDefault=function(){this._defaultPrevented=!0},pe}(),Ke=function(pe){function X(q,oe,De){var fe=pe.call(this,q,!1)||this;return fe.dataUrl=oe,fe.state=De,fe}return ce(X,pe),X}(Ct),et=function(pe){function X(q,oe,De){De===void 0&&(De=!1);var fe=pe.call(this,q,De)||this;return fe.marker=oe,fe}return ce(X,pe),X}(Ct),at=function(){function pe(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return pe.prototype.addEventListener=function(X,q){this[X].push(q)},pe.prototype.removeEventListener=function(X,q){var oe=this[X].indexOf(q);oe>-1&&this[X].splice(oe,1)},pe}(),Pe=function(){function pe(X){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ue,this._isOpen=!1,this.undoRedoManager=new rn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new at,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=pe.instanceCounter++,this.styles=new ae(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=X,this.targetRoot=document.body,this.width=X.clientWidth,this.height=X.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(pe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ye,it,Ge,Pt,Ht,st,Fe,We,Dt,Ce,jt,Bt]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ye,it,Ge,Pt,st,Fe,We]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ye,it,Ge,Pt,Fe]},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(X){var q=this;this._availableMarkerTypes.splice(0),X.forEach(function(oe){if(typeof oe=="string"){var De=q.ALL_MARKER_TYPES.find(function(fe){return fe.typeName===oe});De!==void 0&&q._availableMarkerTypes.push(De)}else q._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(X){this._zoomLevel=X,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),pe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),$.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},pe.prototype.show=function(){var X=this;this.styles.styleSheetRoot===void 0&&re.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=re.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(q){return q(new Ct(X))})},pe.prototype.render=function(){return be(this,void 0,void 0,function(){var X;return Ee(this,function(q){switch(q.label){case 0:return this.setCurrentMarker(),(X=new me).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.markersOnly=this.renderMarkersOnly,X.width=this.renderWidth,X.height=this.renderHeight,[4,X.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return q.sent(),[4,X.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,q.sent()]}})})},pe.prototype.close=function(X){var q=this;if(X===void 0&&(X=!1),this.isOpen){var oe=!1;X||this.eventListeners.beforeclose.forEach(function(De){var fe=new Ct(q,!0);De(fe),fe.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(De){return De(new Ct(q))}),this.detachEvents(),this._isOpen=!1)}},pe.prototype.addMarkersToToolbar=function(){for(var X,q=[],oe=0;oethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*X:this.editorCanvas.clientWidth,oe=q',X.title="Powered by marker.js",X.style.display="grid",X.style.alignItems="center",X.style.justifyItems="center",X.style.padding="3px",X.style.width="20px",X.style.height="20px",this.logoUI.appendChild(X),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},pe.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},pe.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},pe.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var X=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=X+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new te(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y-1&&this.markers.splice(this.markers.indexOf(X),1),X.dispose()},pe.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},pe.prototype.toolbarButtonClicked=function(X,q){if(X==="marker"&&q!==void 0)this.createNewMarker(q);else if(X==="action")switch(q){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},pe.prototype.deleteSelectedMarker=function(){var X=this;if(this._currentMarker!==void 0){var q=!1;if(this.eventListeners.markerbeforedelete.forEach(function(De){var fe=new et(X,X._currentMarker,!0);De(fe),fe.defaultPrevented&&(q=!0)}),!q){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(De){return De(new et(X,oe))})}}},pe.prototype.clear=function(){var X=this,q=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ot){var Qt=new et(X,void 0,!0);ot(Qt),Qt.defaultPrevented&&(q=!0)}),!q)){this.setCurrentMarker();for(var oe=function(ot){var Qt=De.markers[ot];De.setCurrentMarker(De.markers[ot]),De._currentMarker.dispose(),De.markerImage.removeChild(De._currentMarker.container),De.markers.splice(De.markers.indexOf(De._currentMarker),1),De.eventListeners.markerdelete.forEach(function(Mn){return Mn(new et(X,Qt))})},De=this,fe=this.markers.length-1;fe>=0;fe--)oe(fe);this.addUndoStep()}},Object.defineProperty(pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),pe.prototype.showNotesEditor=function(){var X;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(X=this._currentMarker.notes)!==null&&X!==void 0?X:"",this.overlayContainer.appendChild(this.notesArea))},pe.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},pe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},pe.prototype.addUndoStep=function(){var X=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var q=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===q.width&&oe.height===q.height){var De=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(q),De1&&this.panTo({x:X.clientX,y:X.clientY}))},pe.prototype.onPointerUp=function(X){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(X.clientX,X.clientY)),this.isDragging=!1,this.addUndoStep()},pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},pe.prototype.onKeyUp=function(X){this._currentMarker===void 0||this.notesArea!==void 0||X.key!=="Delete"&&X.key!=="Backspace"||this.deleteSelectedMarker()},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.markerImage.getBoundingClientRect();return{x:(X-oe.left)/this.zoomLevel,y:(q-oe.top)/this.zoomLevel}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var X=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=X+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},pe.prototype.addLicenseKey=function(X){$.addKey(X)},pe.prototype.addEventListener=function(X,q){this.eventListeners.addEventListener(X,q)},pe.prototype.removeEventListener=function(X,q){this.eventListeners.removeEventListener(X,q)},pe.prototype.renderState=function(X){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(X),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),pe.prototype.focus=function(){var X=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(q){return q(new Ct(X))}))},pe.prototype.blur=function(){var X=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(q){return q(new Ct(X))}))},pe.instanceCounter=0,pe}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -170,14 +170,14 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Xe=function(pe,X){return(Xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,oe){q.__proto__=oe}||function(q,oe){for(var De in oe)Object.prototype.hasOwnProperty.call(oe,De)&&(q[De]=oe[De])})(pe,X)};function ht(pe,X){if(typeof X!="function"&&X!==null)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function q(){this.constructor=pe}Xe(pe,X),pe.prototype=X===null?Object.create(X):(q.prototype=X.prototype,new q)}function _t(pe,X,q,oe){return new(q||(q=Promise))(function(De,fe){function ot(Vn){try{Mn(oe.next(Vn))}catch($t){fe($t)}}function Qt(Vn){try{Mn(oe.throw(Vn))}catch($t){fe($t)}}function Mn(Vn){var $t;Vn.done?De(Vn.value):($t=Vn.value,$t instanceof q?$t:new q(function(gn){gn($t)})).then(ot,Qt)}Mn((oe=oe.apply(pe,X||[])).next())})}function Ot(pe,X){var q,oe,De,fe,ot={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return fe={next:Qt(0),throw:Qt(1),return:Qt(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Qt(Mn){return function(Vn){return function($t){if(q)throw new TypeError("Generator is already executing.");for(;ot;)try{if(q=1,oe&&(De=2&$t[0]?oe.return:$t[0]?oe.throw||((De=oe.return)&&De.call(oe),0):oe.next)&&!(De=De.call(oe,$t[1])).done)return De;switch(oe=0,De&&($t=[2&$t[0],De.value]),$t[0]){case 0:case 1:De=$t;break;case 4:return ot.label++,{value:$t[1],done:!1};case 5:ot.label++,oe=$t[1],$t=[0];continue;case 7:$t=ot.ops.pop(),ot.trys.pop();continue;default:if(!(De=ot.trys,(De=De.length>0&&De[De.length-1])||$t[0]!==6&&$t[0]!==2)){ot=0;continue}if($t[0]===3&&(!De||$t[1]>De[0]&&$t[1]0&&De[De.length-1])||$t[0]!==6&&$t[0]!==2)){ot=0;continue}if($t[0]===3&&(!De||$t[1]>De[0]&&$t[1]0&&q>0){var oe=new fr(X,q),De=oe.ratio>=1?20:oe.getHorizontalLength(20),fe=oe.ratio<1?20:oe.getVerticalLength(20),ot=document.createElementNS("http://www.w3.org/2000/svg","svg");ot.setAttribute("xmlns","http://www.w3.org/2000/svg"),ot.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ot);var Qt=ut.createDefs();ot.appendChild(Qt);var Mn=ut.createElement("clipPath",[["id","text-bg-clip"]]);Qt.appendChild(Mn);var Vn=ut.createPath(ut.getHollowRectanglePath((24-De)/2,(24-fe)/2,De,fe,(24-De)/2+2,(24-fe)/2+2,De-4,fe-4));ot.appendChild(Vn);var $t=ut.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);$t.appendChild(ut.createTSpan(X+":"+q)),ot.appendChild($t);var gn=$t.getBBox();ut.setAttributes($t,[["x",((24-gn.width)/2).toString()],["y",((24-gn.height)/2-gn.y).toString()]]);var pn=ut.createPath(ut.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(gn.width))/2,(24-Math.ceil(gn.height))/2,Math.ceil(gn.width),Math.ceil(gn.height)));return Mn.appendChild(pn),ut.setAttributes(Vn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ot),ot.outerHTML}return''},pe}(),ar=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe)||this;return fe.isDropdownOpen=!1,fe.onClick=fe.dropdownButtonClicked,fe.dropdownButtons=De,fe}return ht(X,pe),X.prototype.setupDropdown=function(){var q=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(oe){oe.className=q.className,oe.colorsClassName=q.colorsClassName,q.dropdownBlock.appendChild(oe.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},X.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},X.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},X.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},X.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},X.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},X}(Fn),nr=function(){function pe(X,q){this.GRIP_SIZE=10,this.color=X,this.fillColor=q,this.visual=ut.createGroup(),this.visual.appendChild(ut.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ut.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(X){return X===this.visual||X===this.visual.childNodes[0]||X===this.visual.childNodes[1]},pe.prototype.setCenter=function(X,q){this.visual.childNodes.forEach(function(oe){return ut.setAttributes(oe,[["cx",X.toString()],["cy",q.toString()]])})},pe}(),Rr=function(){function pe(X,q,oe,De){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=X,this.canvasHeight=q,this.margin=oe,this.container=De,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(pe.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(X){this._aspectRatio=X,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(X){this._isGridVisible=X,this.gridContainer&&ut.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(X){this._zoomFactor=X,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),pe.prototype.open=function(){var X=this;this.cropShadeElement=ut.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=ut.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var q=0;qthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-q.height/2),ut.setAttributes(this.cropRectElement,[["x",q.x.toString()],["y",q.y.toString()],["width",q.width.toString()],["height",q.height.toString()]]);var oe=q.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(fe,ot){var Qt=q.y+oe*(ot+1);ut.setAttributes(fe,[["x1",""+q.x],["y1",""+Qt],["x2",""+(q.x+q.width)],["y2",""+Qt]])});var De=q.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(fe,ot){var Qt=q.x+De*(ot+1);ut.setAttributes(fe,[["x1",""+Qt],["y1",""+q.y],["x2",""+Qt],["y2",""+(q.y+q.height)]])}),ut.setAttributes(this.cropShadeElement,[["d",ut.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,q.x,q.y,q.width,q.height)]]),this.topLeftGrip.setCenter(q.x,q.y),this.topRightGrip.setCenter(q.x+q.width,q.y),this.bottomLeftGrip.setCenter(q.x,q.y+q.height),this.bottomRightGrip.setCenter(q.x+q.width,q.y+q.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},pe.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.container.getBoundingClientRect();return{x:X-oe.left+this.margin,y:q-oe.top+this.margin}},pe.prototype.onPointerDown=function(X){this.container.setPointerCapture(X.pointerId),this.previousPoint=this.clientToLocalCoordinates(X.clientX,X.clientY),this.cropRectElement===X.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(X.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(X.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(X.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(X.target)&&(this.activeGrip=this.bottomRightGrip)},pe.prototype.onPointerMove=function(X){if(this.isMoving)this.move(this.clientToLocalCoordinates(X.clientX,X.clientY));else if(this.activeGrip){var q=this.clientToLocalCoordinates(X.clientX,X.clientY);this.resize(q)}X.preventDefault()},pe.prototype.onPointerUp=function(X){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(X.pointerId)},pe.prototype.move=function(X){var q=X.x-this.previousPoint.x,oe=X.y-this.previousPoint.y;this.zoomFactor!==1&&(q=-q/this.zoomFactor,oe=-oe/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+q),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+oe),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=X},pe.prototype.resize=function(X){var q=Object.assign({},this.cropRect),oe=X.x-this.previousPoint.x,De=X.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:q.x+oethis.canvasWidth*this.zoomFactor&&(oe=this.canvasWidth*this.zoomFactor-q.width),q.width+=oe}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(q.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(oe),q.height=this.aspectRatio.getVerticalLength(q.width)):(q.y+=De,q.height=this.cropRect.y+this.cropRect.height-q.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?q.height=this.aspectRatio.getVerticalLength(q.width):q.height+=De}q.width<10&&(q.x=this.cropRect.x,q.width=10),q.height<10&&(q.y=this.cropRect.y,q.height=10),this.previousPoint=X,q.x>=this.margin&&q.y>=this.margin&&q.x-this.margin+q.width<=this.canvasWidth&&q.y-this.margin+q.height<=this.canvasHeight&&(this.cropRect=q,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},pe.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var X=this.cropRect.x+this.cropRect.width/2,q=this.cropRect.y+this.cropRect.height/2,oe=this.aspectRatio.getHorizontalLength(this.cropRect.height),De=this.aspectRatio.getVerticalLength(this.cropRect.width);oe/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=X-this.cropRect.width/2,this.cropRect.y=q-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},pe.prototype.getRescaledRect=function(X,q,oe,De,fe,ot){var Qt=oe/X,Mn=De/q;return{x:(fe.x-ot)*Qt+ot,y:(fe.y-ot)*Mn+ot,width:fe.width*Qt,height:fe.height*Mn}},pe.prototype.scaleCanvas=function(X,q){var oe=this.getRescaledRect(this.canvasWidth,this.canvasHeight,X,q,this.cropRect,this.margin);this.canvasWidth=X,this.canvasHeight=q,this.onCropChange&&this.onCropChange(oe),this.setCropRectangle(oe)},pe}(),pr=function(){function pe(X){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=X,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(pe.prototype,"angle",{get:function(){return this._angle},set:function(X){this._angle=X,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),pe.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},pe.prototype.onPointerDown=function(X){this.controlContainer.setPointerCapture(X.pointerId),this.isDragging=!0,this.previousPoint={x:X.clientX,y:X.clientY}},pe.prototype.onPointerMove=function(X){this.isDragging&&(this.onAngleChange&&this.onAngleChange((X.clientX-this.previousPoint.x)/5),this.previousPoint.x=X.clientX)},pe.prototype.onPointerUp=function(X){this.isDragging&&this.onAngleChange&&this.onAngleChange((X.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(X.pointerId)},pe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var X=this.angleLabelText.getBBox();ut.setAttributes(this.angleLabelElement,[["x",((this.width-X.width)/2).toString()],["y",(this.height/2).toString()]])}},pe.prototype.positionScaleShape=function(){if(this.scaleShape){var X=this.scaleShape.transform.baseVal.getItem(0);X.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(X,0)}},pe.prototype.getVisual=function(){var X=document.createElementNS("http://www.w3.org/2000/svg","svg");X.setAttribute("xmlns","http://www.w3.org/2000/svg"),X.setAttribute("width",this.width+"px"),X.setAttribute("height",this.height+"px"),X.setAttribute("viewBox","0 0 "+this.width+" "+this.height),X.style.flexShrink="0",document.body.appendChild(X);for(var q="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,oe=1;oe<=this.width/5+10;oe++){var De=oe%5==0?this.height/3:this.height/6;q+="h4v"+-De+"h1v"+De}q+="v1H0Z",this.scaleShape=ut.createPath(q);var fe=ut.createTransform();this.scaleShape.transform.baseVal.appendItem(fe),X.appendChild(this.scaleShape),this.angleLabelElement=ut.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=ut.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ot=ut.createTSpan("");return ot.innerHTML="°",this.angleLabelElement.appendChild(ot),X.appendChild(this.angleLabelElement),document.body.removeChild(X),X},pe}(),sn=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(X,q,oe,De,fe,ot,Qt){var Mn=this;return new Promise(function(Vn){var $t=document.createElement("canvas");$t.width=X.width.baseVal.value-2*De,$t.height=X.height.baseVal.value-2*De;var gn=1,pn=1;Mn.naturalSize===!0?(gn=q.naturalWidth/(X.width.baseVal.value-2*De)/ot,pn=q.naturalHeight/(X.height.baseVal.value-2*De)/Qt,$t.width=q.naturalWidth/ot,$t.height=q.naturalHeight/Qt):Mn.width!==void 0&&Mn.height!==void 0&&(gn=Mn.width/oe.width,pn=Mn.height/oe.height,$t.width*=gn,$t.height*=pn);var Ar=$t.getContext("2d");Ar.translate($t.width/2,$t.height/2),Ar.rotate(fe*Math.PI/180),Ar.scale(ot,Qt),Ar.translate(-$t.width/2,-$t.height/2),Ar.drawImage(q,0,0,$t.width,$t.height);var ra=document.createElement("canvas");ra.width=oe.width*gn,ra.height=oe.height*pn,ra.getContext("2d").putImageData(Ar.getImageData((oe.x-De)*gn,(oe.y-De)*pn,oe.width*gn,oe.height*pn),0,0),Vn(ra.toDataURL(Mn.imageType,Mn.imageQuality))})},pe}(),qt=function(){function pe(X){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=pe.instanceCounter++,this.styles=new Ft(this.instanceNo),this.target=X,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(X){this._zoomToCropEnabled=X,X?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(X){this._isGridVisible=X,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(X){this._gridLines=X,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(X){this._rotationAngle=X,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"aspectRatio",{get:function(){var X;return(X=this._aspectRatio)!==null&&X!==void 0?X:this.aspectRatios[0]},set:function(X){this._aspectRatio=X},enumerable:!1,configurable:!0}),pe.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},pe.prototype.show=function(){this.showUI(),this.open()},pe.prototype.close=function(X){X===void 0&&(X=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),X||this.closeEventListeners.forEach(function(q){return q()}),this._isOpen=!1)},pe.prototype.addRenderEventListener=function(X){this.renderEventListeners.push(X)},pe.prototype.removeRenderEventListener=function(X){this.renderEventListeners.indexOf(X)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(X),1)},pe.prototype.addCloseEventListener=function(X){this.closeEventListeners.push(X)},pe.prototype.removeCloseEventListener=function(X){this.closeEventListeners.indexOf(X)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(X),1)},pe.prototype.setupResizeObserver=function(){var X=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){X.resize(X.target.clientWidth,X.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},pe.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var X=1*this.target.clientWidth/this.target.clientHeight,q=this.contentDiv.clientWidth/X>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*X:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,oe=q+2*this.CANVAS_MARGINX+this.CANVAS_MARGIN?this.target.offsetTop-(X+this.CANVAS_MARGIN):0;this.coverDiv.style.top=q+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},pe.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},pe.prototype.addTopToolbar=function(){var X=this;this.topToolbar=new mn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var q=new Xn;q.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(q);var oe=[];this.aspectRatios.forEach(function(pn){var Ar=new Fn(Yn.getIcon(pn.horizontal,pn.vertical),pn.horizontal===0&&pn.vertical===0?"FREE":pn.horizontal+":"+pn.vertical);Ar.onClick=function(){return X.ratioButtonClicked(pn)},oe.push(Ar)}),this.aspectRatioButton=new ar(Yn.getIcon(0,0),"Aspect ratio",oe),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,q.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var De=new Fn('',"Toggle grid");De.isActive=this.isGridVisible,De.onClick=function(){X.isGridVisible=!X.isGridVisible,De.isActive=X.isGridVisible},q.addButton(De);var fe=new Fn('',"Zoom to selection");if(fe.isActive=this.zoomToCropEnabled,fe.onClick=function(){X.zoomToCropEnabled=!X.zoomToCropEnabled,fe.isActive=X.zoomToCropEnabled},q.addButton(fe),!Nt.isLicensed){var ot=new xn;this.topToolbar.addElementBlock(ot);var Qt=document.createElement("div");Qt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Mn=document.createElement("a");Mn.style.color="currentColor",Mn.href="https://markerjs.com/products/cropro",Mn.target="_blank",Mn.innerHTML='',Qt.appendChild(Mn),ot.addElement(Qt)}var Vn=new Xn;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var $t=new Fn('',"OK");$t.onClick=this.startRenderAndClose,Vn.addButton($t),this.styles.settings.toolbarOkButtonStyleColorsClassName&&($t.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var gn=new Fn('',"Close");gn.onClick=this.close,Vn.addButton(gn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(gn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var X=this;this.bottomToolbar=new mn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var q=new Xn;q.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(q);var oe=new Fn('',"Rotate left");oe.onClick=this.rotateLeftButtonClicked,q.addButton(oe);var De=new Fn('',"Rotate right");De.onClick=this.rotateRightButtonClicked,q.addButton(De);var fe=new xn;fe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(fe),this.straightener=new pr("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Vn){X.rotateBy(Vn),X.straightener.angle=X.rotationAngle},fe.addElement(this.straightener.getUI());var ot=new Xn;ot.minWidth=2*this.toolbarHeight+"px",ot.contentAlign="end",this.bottomToolbar.addButtonBlock(ot);var Qt=new Fn('',"Flip horizontal");Qt.onClick=this.flipHorizontallyButtonClicked,ot.addButton(Qt);var Mn=new Fn('',"Flip vertical");Mn.onClick=this.flipVerticallyButtonClicked,ot.addButton(Mn)},pe.prototype.ratioButtonClicked=function(X){this.aspectRatio=X,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Yn.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},pe.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new fr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},pe.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},pe.prototype.restoreState=function(X){if(X){var q=this.cropLayer.getRescaledRect(X.width,X.height,this.imageWidth,this.imageHeight,X.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(q),this.cropRectChanged(q),this.flippedHorizontally=X.flippedHorizontally,this.flippedVertically=X.flippedVertically,this.applyFlip(),this.rotationAngle=X.rotationAngle,this.applyRotation()}},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.cropImage.getBoundingClientRect();return{x:X-oe.left,y:q-oe.top}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var X=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=X+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},pe.prototype.rotateLeftButtonClicked=function(){var X=this.rotationAngle-90;this.rotationAngle%90!=0&&(X+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(X)},pe.prototype.rotateRightButtonClicked=function(){var X=this.rotationAngle+90;this.rotationAngle%90!=0&&(X-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(X)},pe.prototype.rotateTo=function(X){X=(X=X>180?X-360:X)<=-180?X+360:X,this.rotationAngle=X,this.applyRotation()},pe.prototype.rotateBy=function(X){this.rotateTo((this.rotationAngle+X)%360)},pe.prototype.applyRotation=function(){var X=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var q=this.editingTargetRotationContainer.transform.baseVal.getItem(0);q.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(q,0);var oe=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/oe.width,this.imageHeight/oe.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=X},pe.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},pe.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},pe.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},pe.prototype.startRenderAndClose=function(){return _t(this,void 0,void 0,function(){var X,q;return Ot(this,function(oe){switch(oe.label){case 0:return[4,this.render()];case 1:return X=oe.sent(),q=this.getState(),this.renderEventListeners.forEach(function(De){return De(X,q)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return _t(this,void 0,void 0,function(){var X;return Ot(this,function(q){switch(q.label){case 0:return(X=new sn).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.width=this.renderWidth,X.height=this.renderHeight,this.unzoomFromCrop(),ut.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,X.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return q.sent(),[4,X.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,q.sent()]}})})},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new on("toolbar",` + `))},pe.prototype.removeStyleSheet=function(){var X;this.styleSheet&&(((X=this.styleSheetRoot)!==null&&X!==void 0?X:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},pe}(),Lt=function(pe,X){this.selector=pe,this.style=X},on=function(pe,X){this.localName=pe,this.style=X},mn=function(){function pe(){this.blocks=[],this.display=""}return pe.prototype.addButtonBlock=function(X){X.className=this.blockClassName,X.buttonClassName=this.buttonClassName,X.buttonColorsClassName=this.buttonColorsClassName,X.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(X)},pe.prototype.addElementBlock=function(X){X.className===void 0&&(X.className=this.blockClassName),this.blocks.push(X)},pe.prototype.getUI=function(){var X=document.createElement("div");return X.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,X.style.display=this.display,this.blocks.forEach(function(q){return X.appendChild(q.getUI())}),X},pe}(),Hn=function(){function pe(){}return pe.prototype.getUI=function(){var X=document.createElement("div");if(X.className=this.className,this.minWidth!==void 0&&(X.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":X.style.justifyContent="flex-start";break;case"center":X.style.justifyContent="center";break;case"end":X.style.justifyContent="flex-end"}return X.style.whiteSpace="nowrap",X},pe}(),Xn=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.buttons=[],q}return ht(X,pe),X.prototype.addButton=function(q){q.className=this.buttonClassName,q.colorsClassName=this.buttonColorsClassName,q.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(q)},X.prototype.getUI=function(){var q=pe.prototype.getUI.call(this);return this.buttons.forEach(function(oe){return q.appendChild(oe.getUI())}),q},X}(Hn),Fn=function(){function pe(X,q){this._isActive=!1,this._isHidden=!1,this._icon=X,this.title=q,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(pe.prototype,"icon",{get:function(){return this._icon},set:function(X){this._icon=X,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isActive",{get:function(){return this._isActive},set:function(X){this._isActive=X,this.adjustClassName()},enumerable:!1,configurable:!0}),pe.prototype.getUI=function(){var X=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return X.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},pe.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},pe.prototype.hide=function(){this._isHidden=!0},pe}(),xn=function(pe){function X(){var q=pe!==null&&pe.apply(this,arguments)||this;return q.elements=[],q}return ht(X,pe),X.prototype.addElement=function(q){this.elements.push(q)},X.prototype.getUI=function(){var q=pe.prototype.getUI.call(this);return this.elements.forEach(function(oe){return q.appendChild(oe)}),q},X}(Hn),fr=function(){function pe(X,q){this.horizontal=X,this.vertical=q}return Object.defineProperty(pe.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),pe.prototype.getVerticalLength=function(X){return X/this.ratio},pe.prototype.getHorizontalLength=function(X){return X*this.ratio},pe}(),Yn=function(){function pe(){}return pe.getIcon=function(X,q){if(X>0&&q>0){var oe=new fr(X,q),De=oe.ratio>=1?20:oe.getHorizontalLength(20),fe=oe.ratio<1?20:oe.getVerticalLength(20),ot=document.createElementNS("http://www.w3.org/2000/svg","svg");ot.setAttribute("xmlns","http://www.w3.org/2000/svg"),ot.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ot);var Qt=lt.createDefs();ot.appendChild(Qt);var Mn=lt.createElement("clipPath",[["id","text-bg-clip"]]);Qt.appendChild(Mn);var Vn=lt.createPath(lt.getHollowRectanglePath((24-De)/2,(24-fe)/2,De,fe,(24-De)/2+2,(24-fe)/2+2,De-4,fe-4));ot.appendChild(Vn);var $t=lt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);$t.appendChild(lt.createTSpan(X+":"+q)),ot.appendChild($t);var gn=$t.getBBox();lt.setAttributes($t,[["x",((24-gn.width)/2).toString()],["y",((24-gn.height)/2-gn.y).toString()]]);var pn=lt.createPath(lt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(gn.width))/2,(24-Math.ceil(gn.height))/2,Math.ceil(gn.width),Math.ceil(gn.height)));return Mn.appendChild(pn),lt.setAttributes(Vn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ot),ot.outerHTML}return''},pe}(),ar=function(pe){function X(q,oe,De){var fe=pe.call(this,q,oe)||this;return fe.isDropdownOpen=!1,fe.onClick=fe.dropdownButtonClicked,fe.dropdownButtons=De,fe}return ht(X,pe),X.prototype.setupDropdown=function(){var q=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(oe){oe.className=q.className,oe.colorsClassName=q.colorsClassName,q.dropdownBlock.appendChild(oe.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},X.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},X.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},X.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},X.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},X.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},X}(Fn),nr=function(){function pe(X,q){this.GRIP_SIZE=10,this.color=X,this.fillColor=q,this.visual=lt.createGroup(),this.visual.appendChild(lt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(lt.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return pe.prototype.ownsTarget=function(X){return X===this.visual||X===this.visual.childNodes[0]||X===this.visual.childNodes[1]},pe.prototype.setCenter=function(X,q){this.visual.childNodes.forEach(function(oe){return lt.setAttributes(oe,[["cx",X.toString()],["cy",q.toString()]])})},pe}(),Rr=function(){function pe(X,q,oe,De){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=X,this.canvasHeight=q,this.margin=oe,this.container=De,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(pe.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(X){this._aspectRatio=X,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(X){this._isGridVisible=X,this.gridContainer&<.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(X){this._zoomFactor=X,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),pe.prototype.open=function(){var X=this;this.cropShadeElement=lt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=lt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var q=0;qthis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-q.height/2),lt.setAttributes(this.cropRectElement,[["x",q.x.toString()],["y",q.y.toString()],["width",q.width.toString()],["height",q.height.toString()]]);var oe=q.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(fe,ot){var Qt=q.y+oe*(ot+1);lt.setAttributes(fe,[["x1",""+q.x],["y1",""+Qt],["x2",""+(q.x+q.width)],["y2",""+Qt]])});var De=q.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(fe,ot){var Qt=q.x+De*(ot+1);lt.setAttributes(fe,[["x1",""+Qt],["y1",""+q.y],["x2",""+Qt],["y2",""+(q.y+q.height)]])}),lt.setAttributes(this.cropShadeElement,[["d",lt.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,q.x,q.y,q.width,q.height)]]),this.topLeftGrip.setCenter(q.x,q.y),this.topRightGrip.setCenter(q.x+q.width,q.y),this.bottomLeftGrip.setCenter(q.x,q.y+q.height),this.bottomRightGrip.setCenter(q.x+q.width,q.y+q.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},pe.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.container.getBoundingClientRect();return{x:X-oe.left+this.margin,y:q-oe.top+this.margin}},pe.prototype.onPointerDown=function(X){this.container.setPointerCapture(X.pointerId),this.previousPoint=this.clientToLocalCoordinates(X.clientX,X.clientY),this.cropRectElement===X.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(X.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(X.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(X.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(X.target)&&(this.activeGrip=this.bottomRightGrip)},pe.prototype.onPointerMove=function(X){if(this.isMoving)this.move(this.clientToLocalCoordinates(X.clientX,X.clientY));else if(this.activeGrip){var q=this.clientToLocalCoordinates(X.clientX,X.clientY);this.resize(q)}X.preventDefault()},pe.prototype.onPointerUp=function(X){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(X.pointerId)},pe.prototype.move=function(X){var q=X.x-this.previousPoint.x,oe=X.y-this.previousPoint.y;this.zoomFactor!==1&&(q=-q/this.zoomFactor,oe=-oe/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+q),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+oe),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=X},pe.prototype.resize=function(X){var q=Object.assign({},this.cropRect),oe=X.x-this.previousPoint.x,De=X.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:q.x+oethis.canvasWidth*this.zoomFactor&&(oe=this.canvasWidth*this.zoomFactor-q.width),q.width+=oe}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(q.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(oe),q.height=this.aspectRatio.getVerticalLength(q.width)):(q.y+=De,q.height=this.cropRect.y+this.cropRect.height-q.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?q.height=this.aspectRatio.getVerticalLength(q.width):q.height+=De}q.width<10&&(q.x=this.cropRect.x,q.width=10),q.height<10&&(q.y=this.cropRect.y,q.height=10),this.previousPoint=X,q.x>=this.margin&&q.y>=this.margin&&q.x-this.margin+q.width<=this.canvasWidth&&q.y-this.margin+q.height<=this.canvasHeight&&(this.cropRect=q,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},pe.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var X=this.cropRect.x+this.cropRect.width/2,q=this.cropRect.y+this.cropRect.height/2,oe=this.aspectRatio.getHorizontalLength(this.cropRect.height),De=this.aspectRatio.getVerticalLength(this.cropRect.width);oe/this.canvasWidththis.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=X-this.cropRect.width/2,this.cropRect.y=q-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},pe.prototype.getRescaledRect=function(X,q,oe,De,fe,ot){var Qt=oe/X,Mn=De/q;return{x:(fe.x-ot)*Qt+ot,y:(fe.y-ot)*Mn+ot,width:fe.width*Qt,height:fe.height*Mn}},pe.prototype.scaleCanvas=function(X,q){var oe=this.getRescaledRect(this.canvasWidth,this.canvasHeight,X,q,this.cropRect,this.margin);this.canvasWidth=X,this.canvasHeight=q,this.onCropChange&&this.onCropChange(oe),this.setCropRectangle(oe)},pe}(),pr=function(){function pe(X){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=X,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(pe.prototype,"angle",{get:function(){return this._angle},set:function(X){this._angle=X,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),pe.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},pe.prototype.onPointerDown=function(X){this.controlContainer.setPointerCapture(X.pointerId),this.isDragging=!0,this.previousPoint={x:X.clientX,y:X.clientY}},pe.prototype.onPointerMove=function(X){this.isDragging&&(this.onAngleChange&&this.onAngleChange((X.clientX-this.previousPoint.x)/5),this.previousPoint.x=X.clientX)},pe.prototype.onPointerUp=function(X){this.isDragging&&this.onAngleChange&&this.onAngleChange((X.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(X.pointerId)},pe.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var X=this.angleLabelText.getBBox();lt.setAttributes(this.angleLabelElement,[["x",((this.width-X.width)/2).toString()],["y",(this.height/2).toString()]])}},pe.prototype.positionScaleShape=function(){if(this.scaleShape){var X=this.scaleShape.transform.baseVal.getItem(0);X.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(X,0)}},pe.prototype.getVisual=function(){var X=document.createElementNS("http://www.w3.org/2000/svg","svg");X.setAttribute("xmlns","http://www.w3.org/2000/svg"),X.setAttribute("width",this.width+"px"),X.setAttribute("height",this.height+"px"),X.setAttribute("viewBox","0 0 "+this.width+" "+this.height),X.style.flexShrink="0",document.body.appendChild(X);for(var q="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,oe=1;oe<=this.width/5+10;oe++){var De=oe%5==0?this.height/3:this.height/6;q+="h4v"+-De+"h1v"+De}q+="v1H0Z",this.scaleShape=lt.createPath(q);var fe=lt.createTransform();this.scaleShape.transform.baseVal.appendItem(fe),X.appendChild(this.scaleShape),this.angleLabelElement=lt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=lt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ot=lt.createTSpan("");return ot.innerHTML="°",this.angleLabelElement.appendChild(ot),X.appendChild(this.angleLabelElement),document.body.removeChild(X),X},pe}(),sn=function(){function pe(){this.naturalSize=!1,this.imageType="image/png"}return pe.prototype.rasterize=function(X,q,oe,De,fe,ot,Qt){var Mn=this;return new Promise(function(Vn){var $t=document.createElement("canvas");$t.width=X.width.baseVal.value-2*De,$t.height=X.height.baseVal.value-2*De;var gn=1,pn=1;Mn.naturalSize===!0?(gn=q.naturalWidth/(X.width.baseVal.value-2*De)/ot,pn=q.naturalHeight/(X.height.baseVal.value-2*De)/Qt,$t.width=q.naturalWidth/ot,$t.height=q.naturalHeight/Qt):Mn.width!==void 0&&Mn.height!==void 0&&(gn=Mn.width/oe.width,pn=Mn.height/oe.height,$t.width*=gn,$t.height*=pn);var Ar=$t.getContext("2d");Ar.translate($t.width/2,$t.height/2),Ar.rotate(fe*Math.PI/180),Ar.scale(ot,Qt),Ar.translate(-$t.width/2,-$t.height/2),Ar.drawImage(q,0,0,$t.width,$t.height);var ra=document.createElement("canvas");ra.width=oe.width*gn,ra.height=oe.height*pn,ra.getContext("2d").putImageData(Ar.getImageData((oe.x-De)*gn,(oe.y-De)*pn,oe.width*gn,oe.height*pn),0,0),Vn(ra.toDataURL(Mn.imageType,Mn.imageQuality))})},pe}(),qt=function(){function pe(X){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=pe.instanceCounter++,this.styles=new Ft(this.instanceNo),this.target=X,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(X){this._zoomToCropEnabled=X,X?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(X){this._isGridVisible=X,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"gridLines",{get:function(){return this._gridLines},set:function(X){this._gridLines=X,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(X){this._rotationAngle=X,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"aspectRatio",{get:function(){var X;return(X=this._aspectRatio)!==null&&X!==void 0?X:this.aspectRatios[0]},set:function(X){this._aspectRatio=X},enumerable:!1,configurable:!0}),pe.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},pe.prototype.show=function(){this.showUI(),this.open()},pe.prototype.close=function(X){X===void 0&&(X=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),X||this.closeEventListeners.forEach(function(q){return q()}),this._isOpen=!1)},pe.prototype.addRenderEventListener=function(X){this.renderEventListeners.push(X)},pe.prototype.removeRenderEventListener=function(X){this.renderEventListeners.indexOf(X)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(X),1)},pe.prototype.addCloseEventListener=function(X){this.closeEventListeners.push(X)},pe.prototype.removeCloseEventListener=function(X){this.closeEventListeners.indexOf(X)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(X),1)},pe.prototype.setupResizeObserver=function(){var X=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){X.resize(X.target.clientWidth,X.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},pe.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var X=1*this.target.clientWidth/this.target.clientHeight,q=this.contentDiv.clientWidth/X>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*X:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,oe=q+2*this.CANVAS_MARGINX+this.CANVAS_MARGIN?this.target.offsetTop-(X+this.CANVAS_MARGIN):0;this.coverDiv.style.top=q+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},pe.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},pe.prototype.addTopToolbar=function(){var X=this;this.topToolbar=new mn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var q=new Xn;q.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(q);var oe=[];this.aspectRatios.forEach(function(pn){var Ar=new Fn(Yn.getIcon(pn.horizontal,pn.vertical),pn.horizontal===0&&pn.vertical===0?"FREE":pn.horizontal+":"+pn.vertical);Ar.onClick=function(){return X.ratioButtonClicked(pn)},oe.push(Ar)}),this.aspectRatioButton=new ar(Yn.getIcon(0,0),"Aspect ratio",oe),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,q.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var De=new Fn('',"Toggle grid");De.isActive=this.isGridVisible,De.onClick=function(){X.isGridVisible=!X.isGridVisible,De.isActive=X.isGridVisible},q.addButton(De);var fe=new Fn('',"Zoom to selection");if(fe.isActive=this.zoomToCropEnabled,fe.onClick=function(){X.zoomToCropEnabled=!X.zoomToCropEnabled,fe.isActive=X.zoomToCropEnabled},q.addButton(fe),!Mt.isLicensed){var ot=new xn;this.topToolbar.addElementBlock(ot);var Qt=document.createElement("div");Qt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Mn=document.createElement("a");Mn.style.color="currentColor",Mn.href="https://markerjs.com/products/cropro",Mn.target="_blank",Mn.innerHTML='',Qt.appendChild(Mn),ot.addElement(Qt)}var Vn=new Xn;Vn.minWidth=3*this.toolbarHeight+"px",Vn.contentAlign="end",this.topToolbar.addButtonBlock(Vn);var $t=new Fn('',"OK");$t.onClick=this.startRenderAndClose,Vn.addButton($t),this.styles.settings.toolbarOkButtonStyleColorsClassName&&($t.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var gn=new Fn('',"Close");gn.onClick=this.close,Vn.addButton(gn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(gn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},pe.prototype.addBottomToolbar=function(){var X=this;this.bottomToolbar=new mn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var q=new Xn;q.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(q);var oe=new Fn('',"Rotate left");oe.onClick=this.rotateLeftButtonClicked,q.addButton(oe);var De=new Fn('',"Rotate right");De.onClick=this.rotateRightButtonClicked,q.addButton(De);var fe=new xn;fe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(fe),this.straightener=new pr("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Vn){X.rotateBy(Vn),X.straightener.angle=X.rotationAngle},fe.addElement(this.straightener.getUI());var ot=new Xn;ot.minWidth=2*this.toolbarHeight+"px",ot.contentAlign="end",this.bottomToolbar.addButtonBlock(ot);var Qt=new Fn('',"Flip horizontal");Qt.onClick=this.flipHorizontallyButtonClicked,ot.addButton(Qt);var Mn=new Fn('',"Flip vertical");Mn.onClick=this.flipVerticallyButtonClicked,ot.addButton(Mn)},pe.prototype.ratioButtonClicked=function(X){this.aspectRatio=X,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},pe.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Yn.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},pe.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new fr(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},pe.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},pe.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},pe.prototype.restoreState=function(X){if(X){var q=this.cropLayer.getRescaledRect(X.width,X.height,this.imageWidth,this.imageHeight,X.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(q),this.cropRectChanged(q),this.flippedHorizontally=X.flippedHorizontally,this.flippedVertically=X.flippedVertically,this.applyFlip(),this.rotationAngle=X.rotationAngle,this.applyRotation()}},pe.prototype.clientToLocalCoordinates=function(X,q){var oe=this.cropImage.getBoundingClientRect();return{x:X-oe.left,y:q-oe.top}},pe.prototype.onWindowResize=function(){this.positionUI()},pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var X=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=X+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},pe.prototype.rotateLeftButtonClicked=function(){var X=this.rotationAngle-90;this.rotationAngle%90!=0&&(X+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(X)},pe.prototype.rotateRightButtonClicked=function(){var X=this.rotationAngle+90;this.rotationAngle%90!=0&&(X-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(X)},pe.prototype.rotateTo=function(X){X=(X=X>180?X-360:X)<=-180?X+360:X,this.rotationAngle=X,this.applyRotation()},pe.prototype.rotateBy=function(X){this.rotateTo((this.rotationAngle+X)%360)},pe.prototype.applyRotation=function(){var X=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var q=this.editingTargetRotationContainer.transform.baseVal.getItem(0);q.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(q,0);var oe=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/oe.width,this.imageHeight/oe.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=X},pe.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},pe.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},pe.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},pe.prototype.startRenderAndClose=function(){return Et(this,void 0,void 0,function(){var X,q;return Ot(this,function(oe){switch(oe.label){case 0:return[4,this.render()];case 1:return X=oe.sent(),q=this.getState(),this.renderEventListeners.forEach(function(De){return De(X,q)}),this.close(!0),[2]}})})},pe.prototype.render=function(){return Et(this,void 0,void 0,function(){var X;return Ot(this,function(q){switch(q.label){case 0:return(X=new sn).naturalSize=this.renderAtNaturalSize,X.imageType=this.renderImageType,X.imageQuality=this.renderImageQuality,X.width=this.renderWidth,X.height=this.renderHeight,this.unzoomFromCrop(),lt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,X.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return q.sent(),[4,X.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,q.sent()]}})})},pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new on("toolbar",` width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`; flex-shrink: 0; display: flex; @@ -221,9 +221,9 @@ PERFORMANCE OF THIS SOFTWARE. color: `+this.styles.settings.toolbarColor+`; fill: currentColor; background-color: `+this.styles.settings.toolbarBackgroundActiveColor+` - `)),this.styles.addRule(new It("."+this.toolbarButtonStyleClass.name+" svg",` + `)),this.styles.addRule(new Lt("."+this.toolbarButtonStyleClass.name+" svg",` height: `+this.toolbarHeight/2+`px; - `)),this.styles.addRule(new It("."+this.toolbarButtonStyleColorsClass.name+":hover",` + `)),this.styles.addRule(new Lt("."+this.toolbarButtonStyleColorsClass.name+":hover",` background-color: `+this.styles.settings.toolbarBackgroundHoverColor+` `)),this.toolbarDropdownStyleClass=this.styles.addClass(new on("toolbar_dropdown",` position: absolute; @@ -253,18 +253,18 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new on("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},pe.instanceCounter=0,pe}(),On=o("8hTe"),Fr=o.n(On),Or=/]*>/g;function xr(pe){var X=document.createElement("div");return X.innerHTML=pe,X.childNodes.length===0?"":X.childNodes[0].nodeValue}var dr=z.a=function(pe){var X=pe.value,q=X===void 0?"":X,oe=pe.edit,De=oe===void 0?!1:oe,fe=pe.className,ot=pe.showTextOnly,Qt=pe.showLines,Mn=pe.replaces,Vn=pe.zoomImg,$t=pe.hasMask,gn=pe.style,pn=gn===void 0?{}:gn,Ar=pe.stylesPrev,ra=Ar===void 0?{}:Ar,oa=String(q),ir=Object(f.useRef)(),Ra=Object(f.useRef)(),La=Object(f.useState)(""),ca=Object(O.a)(La,2),Ka=ca[0],wa=ca[1],Ja=Object(f.useState)("office"),ja=Object(O.a)(Ja,2),li=ja[0],oi=ja[1],fa=function(){var Lt=new qt(Ra.current);Lt.displayMode="popup",Lt.addRenderEventListener(function(){var Xt=Object(x.a)(e.a.mark(function nn(yn){var vn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return ir.current.style.display="none",An.next=3,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn}});case 3:vn=An.sent,vn!=null&&vn.id&&Mn(Ra.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(vn==null?void 0:vn.id,"?type=").concat(vn.content_type));case 5:case"end":return An.stop()}},nn)}));return function(nn){return Xt.apply(this,arguments)}}()),Lt.show()},ma=function(){var Lt=new Pe(Ra.current);Lt.settings.displayMode="popup",Lt.addEventListener("render",function(){var Xt=Object(x.a)(e.a.mark(function nn(yn){var vn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(ir.current.style.display="none",!Ra.current){An.next=6;break}return An.next=4,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn.dataUrl}});case 4:vn=An.sent,vn!=null&&vn.id&&Mn(Ra.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(vn==null?void 0:vn.id,"?type=").concat(vn.content_type));case 6:case"end":return An.stop()}},nn)}));return function(nn){return Xt.apply(this,arguments)}}()),Lt.show(),window.markerArea=Lt},la=Object(f.useMemo)(function(){ir.current&&(ir.current.style.zIndex=-1);try{var Kt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Lt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;oa=oa.replace(Kt,"("+ee.a.API_SERVER+"/api/attachments/").replace(Lt,'"'+ee.a.API_SERVER+"/api/attachments/").replace(Xt,'"'+ee.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` -`)}catch(Nn){}var nn=W(oa),yn=U();if(oa.match(/\[TOC\]/)&&(nn=nn.replace("

        [TOC]

        ",R()),w()),nn=nn.replace(/(__special_katext_id_\d+__)/g,function(Nn,An){var an=yn[An],Pn=an.type,bn=an.expression;return Object(he.renderToString)(xr(bn)||"",{displayMode:Pn==="block",throwOnError:!1,output:"html"})}),nn=nn.replace(/▁/g,"\u2581\u2581\u2581"),L(),ot){var vn=document.createElement("div");return vn.innerHTML=nn,vn.innerText}return setTimeout(function(){return Rt()},500),nn},[oa]),xe=Object(f.useRef)();E.WebkitLineClamp=Qt,Qt&&(pn=Object(y.a)(Object(y.a)({},pn),E));function lt(Kt){var Lt=Kt.target;if(Lt.tagName.toUpperCase()==="IMG"){if(Vn){var Xt=Lt.getAttribute("src");wa(Xt),oi("image")}}else if(Lt.tagName.toUpperCase()==="A"){var nn=Lt.getAttribute("href");if(nn.indexOf("office")>-1)Kt.preventDefault(),wa(nn),oi("office");else if(nn.indexOf("application/pdf")>-1)Kt.preventDefault(),wa(nn),oi("pdf");else if(nn.indexOf("text/html")>-1)Kt.preventDefault(),wa(nn),oi("html");else if(nn.startsWith("#")){Kt.preventDefault();var yn=document.getElementById(nn.replace("#",""));yn&&yn.scrollIntoView(!0)}}}var Rt=function(){var Lt,Xt=(Lt=xe.current)===null||Lt===void 0?void 0:Lt.querySelectorAll("video");Xt==null||Xt.forEach(function(nn){if(nn.oncontextmenu=function(){return!1},nn.src.indexOf(".m3u8")>-1&&!nn.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var yn=new K.a;yn.loadSource(nn.src),yn.attachMedia(nn)}}})};Object(f.useEffect)(function(){if(xe.current&&la&&(la.match(Or)&&window.PR.prettyPrint()),xe.current)return xe.current.addEventListener("click",lt),function(){xe.current.removeEventListener("click",lt),L(),w()}},[la,xe.current,lt]);var wt=function(Lt){if(!De)return;Lt.target.nodeName==="IMG"?(ir.current.style.zIndex=1,ir.current.style.display="flex",ir.current.style.width=Lt.target.clientWidth+"px",ir.current.style.height=Lt.target.clientHeight+"px",ir.current.style.top=Lt.target.offsetTop+"px",ir.current.style.left=Lt.target.offsetLeft+"px",Ra.current.src=Lt.target.getAttribute("src")):ir.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:xe,style:Object(y.a)({},pn),className:"".concat(fe||""," markdown-body ").concat(Fr.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:la}}),a.a.createElement("div",{ref:ir,className:Fr.a.button},a.a.createElement(g.a,null,a.a.createElement(b.a,{onClick:function(){return fa()}},"\u88C1\u526A"),a.a.createElement(b.a,{onClick:function(){return ma()}},"\u7F16\u8F91"))),a.a.createElement("img",{ref:Ra,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),a.a.createElement(de.a,{close:!0,data:Ka,type:Ka!=null&&Ka.length?li:"",style:Object(y.a)({},ra),onClose:function(){return wa("")}}))}},"9JIy":function(k,z,o){k.exports={flex_box_center:"flex_box_center___Hq8-r",flex_space_between:"flex_space_between___3Nl1U",flex_box_vertical_center:"flex_box_vertical_center___1hgum",flex_box_center_end:"flex_box_center_end___i5ldC",flex_box_column:"flex_box_column____1u-K",table:"table___2yPMl"}},"9OqN":function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.mode.CTR=function(){var g=P.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,O=x.blockSize,m=this._iv,e=this._counter;m&&(e=this._counter=m.slice(0),this._iv=void 0);var f=e.slice(0);x.encryptBlock(f,0),e[O-1]=e[O-1]+1|0;for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(P.a)())return null;var f=document.createElement("style");if((m=e.csp)===null||m===void 0?void 0:m.nonce){var a;f.nonce=(a=e.csp)===null||a===void 0?void 0:a.nonce}f.innerHTML=O;var u=T(e),r=u.firstChild;return e.prepend&&u.prepend?u.prepend(f):e.prepend&&r?u.insertBefore(f,r):u.appendChild(f),f}var y=new Map;function x(O,m){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=T(e);if(!y.has(f)){var a=b("",e),u=a.parentNode;y.set(f,u),u.removeChild(a)}var r=Array.from(y.get(f).children).find(function(d){return d.tagName==="STYLE"&&d[g]===m});if(r){var i,n;if(((i=e.csp)===null||i===void 0?void 0:i.nonce)&&r.nonce!==((n=e.csp)===null||n===void 0?void 0:n.nonce)){var l;r.nonce=(l=e.csp)===null||l===void 0?void 0:l.nonce}return r.innerHTML!==O&&(r.innerHTML=O),r}var h=b(O,e);return h[g]=m,h}},Bbdw:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1d7HC",flex_space_between:"flex_space_between___2tGvG",flex_box_vertical_center:"flex_box_vertical_center___3lO4f",flex_box_center_end:"flex_box_center_end___22Avr",flex_box_column:"flex_box_column___3SksD",headLeft:"headLeft___9XMDS",colorBlue:"colorBlue___1Qpec",wrap:"wrap___1u-Va",nodata:"nodata___V_2Oo",nodataText:"nodataText___1G_zo",content:"content___314Bx",gitCode:"gitCode___2GwFG",ellipsis:"ellipsis___2M7s4",menu:"menu___3Tf01",overlayClass:"overlayClass___3ckGv",tips:"tips___-Fisb"}},Bd2K:function(k,z,o){(function(P){P(o("VrN/"),o("osHv"))})(function(P){P.defineOption("autoCloseTags",!1,function(e,f,a){if(a!=P.Init&&a&&e.removeKeyMap("autoCloseTags"),!f)return;var u={name:"autoCloseTags"};(typeof f!="object"||f.whenClosing!==!1)&&(u["'/'"]=function(r){return x(r)}),(typeof f!="object"||f.whenOpening!==!1)&&(u["'>'"]=function(r){return b(r)}),e.addKeyMap(u)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function b(e){if(e.getOption("disableInput"))return P.Pass;for(var f=e.listSelections(),a=[],u=e.getOption("autoCloseTags"),r=0;ri.ch&&(s=s.slice(0,s.length-n.end+i.ch));var v=s.toLowerCase();if(!s||n.type=="string"&&(n.end!=i.ch||!/[\"\']/.test(n.string.charAt(n.string.length-1))||n.string.length==1)||n.type=="tag"&&d.close||n.string.indexOf("/")==i.ch-n.start-1||w&&O(w,v)>-1||m(e,l.mode.xmlCurrentContext&&l.mode.xmlCurrentContext(h)||[],s,i,!0))return P.Pass;var R=typeof u=="object"&&u.emptyTags;if(R&&O(R,s)>-1){a[r]={text:"/>",newPos:P.Pos(i.line,i.ch+2)};continue}var M=E&&O(E,v)>-1;a[r]={indent:M,text:">"+(M?` + `))},pe.instanceCounter=0,pe}(),On=o("8hTe"),Fr=o.n(On),Or=/]*>/g;function xr(pe){var X=document.createElement("div");return X.innerHTML=pe,X.childNodes.length===0?"":X.childNodes[0].nodeValue}var dr=z.a=function(pe){var X=pe.value,q=X===void 0?"":X,oe=pe.edit,De=oe===void 0?!1:oe,fe=pe.className,ot=pe.showTextOnly,Qt=pe.showLines,Mn=pe.replaces,Vn=pe.zoomImg,$t=pe.hasMask,gn=pe.style,pn=gn===void 0?{}:gn,Ar=pe.stylesPrev,ra=Ar===void 0?{}:Ar,oa=String(q),ir=Object(f.useRef)(),Ra=Object(f.useRef)(),La=Object(f.useState)(""),ca=Object(O.a)(La,2),Ka=ca[0],wa=ca[1],Ja=Object(f.useState)("office"),ja=Object(O.a)(Ja,2),li=ja[0],oi=ja[1],fa=function(){var Nt=new qt(Ra.current);Nt.displayMode="popup",Nt.addRenderEventListener(function(){var Xt=Object(x.a)(e.a.mark(function nn(yn){var vn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return ir.current.style.display="none",An.next=3,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn}});case 3:vn=An.sent,vn!=null&&vn.id&&Mn(Ra.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(vn==null?void 0:vn.id,"?type=").concat(vn.content_type));case 5:case"end":return An.stop()}},nn)}));return function(nn){return Xt.apply(this,arguments)}}()),Nt.show()},ma=function(){var Nt=new Pe(Ra.current);Nt.settings.displayMode="popup",Nt.addEventListener("render",function(){var Xt=Object(x.a)(e.a.mark(function nn(yn){var vn;return e.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:if(ir.current.style.display="none",!Ra.current){An.next=6;break}return An.next=4,Object(Se.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yn.dataUrl}});case 4:vn=An.sent,vn!=null&&vn.id&&Mn(Ra.current.getAttribute("src").replace(ee.a.API_SERVER,""),"/api/attachments/".concat(vn==null?void 0:vn.id,"?type=").concat(vn.content_type));case 6:case"end":return An.stop()}},nn)}));return function(nn){return Xt.apply(this,arguments)}}()),Nt.show(),window.markerArea=Nt},la=Object(f.useMemo)(function(){ir.current&&(ir.current.style.zIndex=-1);try{var Kt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Nt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;oa=oa.replace(Kt,"("+ee.a.API_SERVER+"/api/attachments/").replace(Nt,'"'+ee.a.API_SERVER+"/api/attachments/").replace(Xt,'"'+ee.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` +`)}catch(Nn){}var nn=W(oa),yn=U();if(oa.match(/\[TOC\]/)&&(nn=nn.replace("

        [TOC]

        ",R()),w()),nn=nn.replace(/(__special_katext_id_\d+__)/g,function(Nn,An){var an=yn[An],Pn=an.type,bn=an.expression;return Object(he.renderToString)(xr(bn)||"",{displayMode:Pn==="block",throwOnError:!1,output:"html"})}),nn=nn.replace(/▁/g,"\u2581\u2581\u2581"),L(),ot){var vn=document.createElement("div");return vn.innerHTML=nn,vn.innerText}return setTimeout(function(){return Rt()},500),nn},[oa]),xe=Object(f.useRef)();E.WebkitLineClamp=Qt,Qt&&(pn=Object(y.a)(Object(y.a)({},pn),E));function ut(Kt){var Nt=Kt.target;if(Nt.tagName.toUpperCase()==="IMG"){if(Vn){var Xt=Nt.getAttribute("src");wa(Xt),oi("image")}}else if(Nt.tagName.toUpperCase()==="A"){var nn=Nt.getAttribute("href");if(nn.indexOf("office")>-1)Kt.preventDefault(),wa(nn),oi("office");else if(nn.indexOf("application/pdf")>-1)Kt.preventDefault(),wa(nn),oi("pdf");else if(nn.indexOf("text/html")>-1)Kt.preventDefault(),wa(nn),oi("html");else if(nn.startsWith("#")){Kt.preventDefault();var yn=document.getElementById(nn.replace("#",""));yn&&yn.scrollIntoView(!0)}}}var Rt=function(){var Nt,Xt=(Nt=xe.current)===null||Nt===void 0?void 0:Nt.querySelectorAll("video");Xt==null||Xt.forEach(function(nn){if(nn.oncontextmenu=function(){return!1},nn.src.indexOf(".m3u8")>-1&&!nn.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var yn=new K.a;yn.loadSource(nn.src),yn.attachMedia(nn)}}})};Object(f.useEffect)(function(){if(xe.current&&la&&(la.match(Or)&&window.PR.prettyPrint()),xe.current)return xe.current.addEventListener("click",ut),function(){xe.current.removeEventListener("click",ut),L(),w()}},[la,xe.current,ut]);var wt=function(Nt){if(!De)return;Nt.target.nodeName==="IMG"?(ir.current.style.zIndex=1,ir.current.style.display="flex",ir.current.style.width=Nt.target.clientWidth+"px",ir.current.style.height=Nt.target.clientHeight+"px",ir.current.style.top=Nt.target.offsetTop+"px",ir.current.style.left=Nt.target.offsetLeft+"px",Ra.current.src=Nt.target.getAttribute("src")):ir.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:xe,style:Object(y.a)({},pn),className:"".concat(fe||""," markdown-body ").concat(Fr.a.mdBody),onMouseOver:wt,dangerouslySetInnerHTML:{__html:la}}),a.a.createElement("div",{ref:ir,className:Fr.a.button},a.a.createElement(g.a,null,a.a.createElement(b.a,{onClick:function(){return fa()}},"\u88C1\u526A"),a.a.createElement(b.a,{onClick:function(){return ma()}},"\u7F16\u8F91"))),a.a.createElement("img",{ref:Ra,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),a.a.createElement(de.a,{close:!0,data:Ka,type:Ka!=null&&Ka.length?li:"",style:Object(y.a)({},ra),onClose:function(){return wa("")}}))}},"9JIy":function(k,z,o){k.exports={flex_box_center:"flex_box_center___Hq8-r",flex_space_between:"flex_space_between___3Nl1U",flex_box_vertical_center:"flex_box_vertical_center___1hgum",flex_box_center_end:"flex_box_center_end___i5ldC",flex_box_column:"flex_box_column____1u-K",table:"table___2yPMl"}},"9OqN":function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.mode.CTR=function(){var g=P.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,O=x.blockSize,m=this._iv,e=this._counter;m&&(e=this._counter=m.slice(0),this._iv=void 0);var f=e.slice(0);x.encryptBlock(f,0),e[O-1]=e[O-1]+1|0;for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(P.a)())return null;var f=document.createElement("style");if((m=e.csp)===null||m===void 0?void 0:m.nonce){var a;f.nonce=(a=e.csp)===null||a===void 0?void 0:a.nonce}f.innerHTML=O;var u=T(e),r=u.firstChild;return e.prepend&&u.prepend?u.prepend(f):e.prepend&&r?u.insertBefore(f,r):u.appendChild(f),f}var y=new Map;function x(O,m){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=T(e);if(!y.has(f)){var a=b("",e),u=a.parentNode;y.set(f,u),u.removeChild(a)}var r=Array.from(y.get(f).children).find(function(d){return d.tagName==="STYLE"&&d[g]===m});if(r){var i,n;if(((i=e.csp)===null||i===void 0?void 0:i.nonce)&&r.nonce!==((n=e.csp)===null||n===void 0?void 0:n.nonce)){var l;r.nonce=(l=e.csp)===null||l===void 0?void 0:l.nonce}return r.innerHTML!==O&&(r.innerHTML=O),r}var h=b(O,e);return h[g]=m,h}},Bbdw:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1d7HC",flex_space_between:"flex_space_between___2tGvG",flex_box_vertical_center:"flex_box_vertical_center___3lO4f",flex_box_center_end:"flex_box_center_end___22Avr",flex_box_column:"flex_box_column___3SksD",headLeft:"headLeft___9XMDS",colorBlue:"colorBlue___1Qpec",wrap:"wrap___1u-Va",nodata:"nodata___V_2Oo",nodataText:"nodataText___1G_zo",content:"content___314Bx",gitCode:"gitCode___2GwFG",ellipsis:"ellipsis___2M7s4",menu:"menu___3Tf01",overlayClass:"overlayClass___3ckGv",tips:"tips___-Fisb"}},Bd2K:function(k,z,o){(function(P){P(o("VrN/"),o("osHv"))})(function(P){P.defineOption("autoCloseTags",!1,function(e,f,a){if(a!=P.Init&&a&&e.removeKeyMap("autoCloseTags"),!f)return;var u={name:"autoCloseTags"};(typeof f!="object"||f.whenClosing!==!1)&&(u["'/'"]=function(r){return x(r)}),(typeof f!="object"||f.whenOpening!==!1)&&(u["'>'"]=function(r){return b(r)}),e.addKeyMap(u)});var g=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function b(e){if(e.getOption("disableInput"))return P.Pass;for(var f=e.listSelections(),a=[],u=e.getOption("autoCloseTags"),r=0;ri.ch&&(s=s.slice(0,s.length-n.end+i.ch));var v=s.toLowerCase();if(!s||n.type=="string"&&(n.end!=i.ch||!/[\"\']/.test(n.string.charAt(n.string.length-1))||n.string.length==1)||n.type=="tag"&&d.close||n.string.indexOf("/")==i.ch-n.start-1||w&&O(w,v)>-1||m(e,l.mode.xmlCurrentContext&&l.mode.xmlCurrentContext(h)||[],s,i,!0))return P.Pass;var R=typeof u=="object"&&u.emptyTags;if(R&&O(R,s)>-1){a[r]={text:"/>",newPos:P.Pos(i.line,i.ch+2)};continue}var M=E&&O(E,v)>-1;a[r]={indent:M,text:">"+(M?` -`:"")+"",newPos:M?P.Pos(i.line+1,0):P.Pos(i.line,i.ch+1)}}for(var C=typeof u=="object"&&u.dontIndentOnAutoClose,r=f.length-1;r>=0;r--){var S=a[r];e.replaceRange(S.text,f[r].head,f[r].anchor,"+insert");var _=e.listSelections().slice(0);_[r]={head:S.newPos,anchor:S.newPos},e.setSelections(_),!C&&S.indent&&(e.indentLine(S.newPos.line,null,!0),e.indentLine(S.newPos.line+1,null,!0))}}function y(e,f){for(var a=e.listSelections(),u=[],r=f?"/":""&&(w+=">"),u[l]=w}if(e.replaceSelections(u),a=e.listSelections(),!n)for(var l=0;l=0&&f[h]==a;h--)++l;u=n.to;for(var h=1;h0){for(var f=0;f1&&arguments[1]!==void 0?arguments[1]:"",f=[],a=0;ax,P.serviceIds.set(x,O),O}function y(x){return function(O,m,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");T(x,O,e,!0)}}},"Cs+z":function(k,z,o){k.exports=o.p+"static/jqr.b801d45b.png"},"Ct/S":function(k,z,o){k.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},"DDK+":function(k,z,o){"use strict";var P=o("+L6B"),g=o("2/Rp"),T=o("y8nQ"),b=o("Vl3Y"),y=o("cWXX"),x=o("/ezw"),O=o("rAM+"),m=o("9og8"),e=o("tJVT"),f=o("7Kak"),a=o("9yH6"),u=o("WmNS"),r=o.n(u),i=o("q1tI"),n=o.n(i),l=o("ErOA"),h=o("2qtc"),d=o("kLXV"),s=o("k1fw"),c=o("Se0u"),w=o("pUFm"),E=o.n(w);function v(){return Object(l.c)("teach_groups.json")}function R($){return Object(l.f)("teach_groups.json",$)}function M($,me){return Object(l.g)("teach_groups/".concat($,".json"),me)}function C($){return Object(l.f)("teach_group_members.json",$)}function S($){return Object(l.b)("teach_group_members/".concat($,".json"))}function _($,me){return Object(l.b)("teach_groups/".concat($,"/del_member.json?member_id=").concat(me))}function A($){return Object(l.b)("teach_groups/".concat($,".json"))}var U=o("5NDa"),L=o("5rEg"),N=function($){var me=$.callback,re=$.visible,ae=$.onCancel,Oe=$.id,se=$.name;function te(_e){me(_e)}var Q=b.a.useForm(),J=Object(e.a)(Q,1),ve=J[0];return Object(i.useEffect)(function(){ve.setFieldsValue({name:se})},[se]),n.a.createElement(d.a,{centered:!0,title:Oe?"\u6539\u540D":"\u65B0\u5EFA",visible:re,onCancel:ae,footer:null},n.a.createElement(b.a,{layout:"vertical",form:ve,initialValues:{name:se},onFinish:te},n.a.createElement(b.a.Item,{label:"\u6559\u7814\u56E2\u961F\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0"}]},n.a.createElement(L.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),n.a.createElement(b.a.Item,null,n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(g.a,{type:"ghost",onClick:ae,style:{marginRight:20}}," ","\u53D6\u6D88"," ")," ",n.a.createElement(g.a,{type:"primary",htmlType:"submit"}," ","\u786E\u5B9A"," ")))))},V=o("Fxgj"),H=o("3ouR"),D=o("xGfz"),W=50,F=function($){var me=$.data,re=$.isAdminOrTeacher,ae=$.onDelGroup,Oe=$.onChangeGroupName,se=$.onPlusMember,te=$.onDelMember,Q=$.onExitGroup,J=Object(i.useState)(0),ve=Object(e.a)(J,2),_e=ve[0],Ae=ve[1],Qe=Object(i.useState)(0),tt=Object(e.a)(Qe,2),dt=tt[0],mt=tt[1];function vt(Ue){var ft=parseInt(Ue.target.id,10);d.a.confirm({title:"\u89E3\u6563\u63D0\u793A",content:"\u89E3\u6563\u6559\u7814\u56E2\u961F\u5C06\u5BF9\u56E2\u961F\u6210\u5458\u4E4B\u95F4\u5171\u4EAB\u5B9E\u8BAD\u3001\u8BD5\u5377\u7B49\u529F\u80FD\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u89E3\u6563\u672C\u6559\u7814\u56E2\u961F\u5417\uFF1F",onOk:function(){ae(ft)}})}function Et(Ue){var ft=parseInt(Ue.target.id,10);d.a.confirm({title:"\u9000\u51FA\u63D0\u793A",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:function(){Q(ft)}})}function Ye(Ue,ft){d.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:function(){te(Ue,ft)}})}return n.a.createElement("ul",{className:"teaching-list"},me.map(function(Ue,ft){return n.a.createElement("li",{key:Ue.id,onClick:function(){return Ae(ft)}},n.a.createElement("div",{className:"item-group"},n.a.createElement("span",null,Ue.name," \xA0"," ",ft!==_e&&n.a.createElement("i",{className:"iconfont icon-jiantou9"})," "),n.a.createElement("div",{className:"action-group"},re?n.a.createElement("a",{onClick:function(){Oe(Ue)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,Ue.is_creat?n.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:vt},"\u89E3\u6563"):n.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:Et},"\u9000\u51FA"))),ft===_e?n.a.createElement("ul",{className:"info"},Ue.memers.map(function(jt){return n.a.createElement("li",{key:jt.id||jt.name,onClick:function(){mt(jt.id)},className:dt===jt.id?"active":""},n.a.createElement("div",null,jt.name),Ue.is_creat&&jt.id&&dt===jt.id?n.a.createElement("a",{className:"btn-del",onClick:function(Pt){Pt.preventDefault(),Pt.stopPropagation(),Ye(Ue.id,dt)}},n.a.createElement(H.a,null)):null)}),re?n.a.createElement("li",null,n.a.createElement(g.a,{type:"link",disabled:Ue.memers.length>=50,title:Ue.memers.length>=50?"\u672C\u7EC4\u6210\u5458\u5DF2\u6EE1":"\u6DFB12312\u52A0\u6210\u5458",onClick:function(){se(Ue)}}," ",n.a.createElement(D.a,null)," \u6DFB\u52A0\u7EC4\u5458"," ")):null):null)}))},I=o("9kvl"),K=o("ju9d");function ee($){var me=$.children;return n.a.createElement("div",{className:"no-data"},n.a.createElement("img",{src:E.a,alt:"no-data",width:300}),me)}var he={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},de;(function($){$[$.INITDATA=0]="INITDATA",$[$.SHOWLOADING=1]="SHOWLOADING",$[$.SHOWFORMPANEL=2]="SHOWFORMPANEL",$[$.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",$[$.SELECTGROUP=4]="SELECTGROUP",$[$.SETINDEX=5]="SETINDEX"})(de||(de={}));function Se($,me){switch(me.type){case de.INITDATA:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SHOWLOADING:return Object(s.a)(Object(s.a)({},$),{},{loading:me.payload});case de.SETINDEX:return Object(s.a)(Object(s.a)({},$),{},{index:me.payload});case de.SHOWFORMPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SHOWMEMBERPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SELECTGROUP:return Object(s.a)(Object(s.a)({},$),{},{selectedGroup:me.payload,showFormPanel:!0});default:throw new Error}}function Te($){var me,re=$.user,ae=Object(i.useReducer)(Se,he),Oe=Object(e.a)(ae,2),se=Oe[0],te=Oe[1],Q=se.data,J=se.index,ve=se.loading,_e=se.showFormPanel,Ae=se.selectedGroup,Qe=se.showMemberPanel,tt=(me=re.userInfo)===null||me===void 0?void 0:me.role,dt=Object(i.useMemo)(function(){var Dt=[],Ht=[],rn=Object(O.a)(Q),Bt;try{for(rn.s();!(Bt=rn.n()).done;){var Ct=Bt.value;Ct.is_creat?Dt.push(Ct):Ht.push(Ct)}}catch(Ke){rn.e(Ke)}finally{rn.f()}return[Dt,Ht]},[Q]);Object(i.useEffect)(function(){tt===15&&te({type:de.SETINDEX,payload:1})},[tt]);function mt(){return vt.apply(this,arguments)}function vt(){return vt=Object(m.a)(r.a.mark(function Dt(){var Ht;return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,v();case 2:Ht=Bt.sent,te({type:de.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Ht.groups}});case 4:case"end":return Bt.stop()}},Dt)})),vt.apply(this,arguments)}Object(i.useEffect)(function(){mt()},[]);function Et(Dt){return Ye.apply(this,arguments)}function Ye(){return Ye=Object(m.a)(r.a.mark(function Dt(Ht){return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if(!Ae.id){Bt.next=5;break}return Bt.next=3,M(Ae.id,Ht);case 3:Bt.next=7;break;case 5:return Bt.next=7,R(Ht);case 7:mt();case 8:case"end":return Bt.stop()}},Dt)})),Ye.apply(this,arguments)}function Ue(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ft(Dt){te({type:de.SELECTGROUP,payload:Dt})}function jt(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function yt(){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function Pt(Dt){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Dt}})}function it(Dt,Ht){return He.apply(this,arguments)}function He(){return He=Object(m.a)(r.a.mark(function Dt(Ht,rn){return r.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,_(Ht,rn);case 2:mt();case 3:case"end":return Ct.stop()}},Dt)})),He.apply(this,arguments)}function Ge(Dt){return Ce.apply(this,arguments)}function Ce(){return Ce=Object(m.a)(r.a.mark(function Dt(Ht){return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,A(Ht);case 2:mt();case 3:case"end":return Bt.stop()}},Dt)})),Ce.apply(this,arguments)}function Ie(Dt){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(m.a)(r.a.mark(function Dt(Ht){return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,S(Ht);case 2:mt();case 3:case"end":return Bt.stop()}},Dt)})),Fe.apply(this,arguments)}function Be(Dt){te({type:de.SETINDEX,payload:parseInt(Dt.target.id,10)})}function We(Dt,Ht){return st.apply(this,arguments)}function st(){return st=Object(m.a)(r.a.mark(function Dt(Ht,rn){return r.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return yt(),Ct.next=3,C({user_ids:Ht,group_id:rn});case 3:mt();case 4:case"end":return Ct.stop()}},Dt)})),st.apply(this,arguments)}return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"teaching-circling-container"},n.a.createElement("h3",null," ","\u6559\u7814\u56E2\u961F"," ",tt<=12&&n.a.createElement(g.a,{type:"primary",disabled:Q.length>=50,title:Q.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:Ue},"\u65B0\u5EFA")," "),n.a.createElement("div",{className:"teaching-circling-body"},tt===15?null:n.a.createElement("ul",{className:"navs"},n.a.createElement("li",{className:J===0?"active":""},n.a.createElement("a",{id:"0",onClick:Be},"\u6211\u521B\u5EFA\u7684")),n.a.createElement("li",{className:J===1?"active":""},n.a.createElement("a",{id:"1",onClick:Be},"\u6211\u52A0\u5165\u7684"))),n.a.createElement("div",{className:dt[J].length===0?"nodata-content":"main-content"},dt[J].length===0?n.a.createElement(ee,null,tt<=12?n.a.createElement(n.a.Fragment,null," ",n.a.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",n.a.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):n.a.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):n.a.createElement(F,{onExitGroup:Ie,onPlusMember:Pt,onDelMember:it,onDelGroup:Ge,isAdminOrTeacher:tt<=12,onChangeGroupName:ft,data:dt[J]}))),n.a.createElement("p",{style:{width:1200,margin:"0 auto 40px auto"},className:"desc"}," ","* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"," ")),n.a.createElement(N,{callback:Et,visible:_e,onCancel:jt,id:Ae.id,name:Ae.name}),n.a.createElement(d.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:Qe,onCancel:yt,footer:null,width:1100,bodyStyle:{minHeight:200}},n.a.createElement(K.a,{container_id:Ae.id,container_type:4,onSelect:We,onCancel:yt})))}var ce=Object(I.a)(function($){var me=$.user;return{user:me}})(Te),be=o("SLjR"),Ee=o("55Ip"),ue=a.a.Group,le=z.a=function($){var me=$.onSelect,re=$.onCancel,ae=Object(i.useState)([]),Oe=Object(e.a)(ae,2),se=Oe[0],te=Oe[1],Q=Object(i.useState)(!0),J=Object(e.a)(Q,2),ve=J[0],_e=J[1];Object(i.useEffect)(function(){function tt(){return dt.apply(this,arguments)}function dt(){return dt=Object(m.a)(r.a.mark(function mt(){var vt,Et;return r.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(l.c)("teach_groups/my.json");case 2:vt=Ue.sent,Et=vt.groups,te(Et),_e(!1);case 6:case"end":return Ue.stop()}},mt)})),dt.apply(this,arguments)}tt()},[]);var Ae=Object(i.useMemo)(function(){var tt=[],dt=[],mt=Object(O.a)(se),vt;try{for(mt.s();!(vt=mt.n()).done;){var Et=vt.value;Et.is_creat?tt.push(Et):dt.push(Et)}}catch(Ye){mt.e(Ye)}finally{mt.f()}return[tt,dt]},[se]);function Qe(tt){me(tt)}return n.a.createElement(b.a,{className:"select-teach-group",onFinish:Qe},ve?n.a.createElement(x.a,{paragraph:!0}):se.length===0?n.a.createElement(ee,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",n.a.createElement(Ee.a,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):n.a.createElement(n.a.Fragment,null,n.a.createElement(b.a.Item,{name:"group_id"},n.a.createElement(ue,null,n.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),n.a.createElement("ul",{className:"groups"},Ae[0].map(function(tt){return n.a.createElement("li",{key:tt.id},n.a.createElement(a.a,{value:tt.id},tt.name))})),n.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),n.a.createElement("ul",{className:"groups"},Ae[1].map(function(tt){return n.a.createElement("li",{key:tt.id},n.a.createElement(a.a,{value:tt.id},tt.name))})))),n.a.createElement("div",{className:"btn-actions"},n.a.createElement(g.a,{type:"ghost",onClick:re,style:{marginRight:10}},"\u53D6\u6D88"),n.a.createElement(g.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(k,z,o){(function(P,g){k.exports=g()})(this,function(){"use strict";function P(it,He){for(var Ge=0;Geit.length)&&(He=it.length);for(var Ge=0,Ce=new Array(He);Ge=it.length?{done:!0}:{done:!1,value:it[Ce++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +`:"")+"",newPos:M?P.Pos(i.line+1,0):P.Pos(i.line,i.ch+1)}}for(var C=typeof u=="object"&&u.dontIndentOnAutoClose,r=f.length-1;r>=0;r--){var S=a[r];e.replaceRange(S.text,f[r].head,f[r].anchor,"+insert");var _=e.listSelections().slice(0);_[r]={head:S.newPos,anchor:S.newPos},e.setSelections(_),!C&&S.indent&&(e.indentLine(S.newPos.line,null,!0),e.indentLine(S.newPos.line+1,null,!0))}}function y(e,f){for(var a=e.listSelections(),u=[],r=f?"/":""&&(w+=">"),u[l]=w}if(e.replaceSelections(u),a=e.listSelections(),!n)for(var l=0;l=0&&f[h]==a;h--)++l;u=n.to;for(var h=1;h0){for(var f=0;f1&&arguments[1]!==void 0?arguments[1]:"",f=[],a=0;ax,P.serviceIds.set(x,O),O}function y(x){return function(O,m,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");T(x,O,e,!0)}}},"Cs+z":function(k,z,o){k.exports=o.p+"static/jqr.b801d45b.png"},"Ct/S":function(k,z,o){k.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},"DDK+":function(k,z,o){"use strict";var P=o("+L6B"),g=o("2/Rp"),T=o("y8nQ"),b=o("Vl3Y"),y=o("cWXX"),x=o("/ezw"),O=o("rAM+"),m=o("9og8"),e=o("tJVT"),f=o("7Kak"),a=o("9yH6"),u=o("WmNS"),r=o.n(u),i=o("q1tI"),n=o.n(i),l=o("ErOA"),h=o("2qtc"),d=o("kLXV"),s=o("k1fw"),c=o("Se0u"),w=o("pUFm"),E=o.n(w);function v(){return Object(l.c)("teach_groups.json")}function R($){return Object(l.f)("teach_groups.json",$)}function M($,me){return Object(l.g)("teach_groups/".concat($,".json"),me)}function C($){return Object(l.f)("teach_group_members.json",$)}function S($){return Object(l.b)("teach_group_members/".concat($,".json"))}function _($,me){return Object(l.b)("teach_groups/".concat($,"/del_member.json?member_id=").concat(me))}function A($){return Object(l.b)("teach_groups/".concat($,".json"))}var U=o("5NDa"),L=o("5rEg"),N=function($){var me=$.callback,re=$.visible,ae=$.onCancel,Oe=$.id,se=$.name;function te(_e){me(_e)}var Q=b.a.useForm(),J=Object(e.a)(Q,1),ve=J[0];return Object(i.useEffect)(function(){ve.setFieldsValue({name:se})},[se]),n.a.createElement(d.a,{centered:!0,title:Oe?"\u6539\u540D":"\u65B0\u5EFA",visible:re,onCancel:ae,footer:null},n.a.createElement(b.a,{layout:"vertical",form:ve,initialValues:{name:se},onFinish:te},n.a.createElement(b.a.Item,{label:"\u6559\u7814\u56E2\u961F\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0"}]},n.a.createElement(L.a,{placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u540D\u79F0",maxLength:20})),n.a.createElement(b.a.Item,null,n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(g.a,{type:"ghost",onClick:ae,style:{marginRight:20}}," ","\u53D6\u6D88"," ")," ",n.a.createElement(g.a,{type:"primary",htmlType:"submit"}," ","\u786E\u5B9A"," ")))))},V=o("Fxgj"),H=o("3ouR"),D=o("xGfz"),W=50,F=function($){var me=$.data,re=$.isAdminOrTeacher,ae=$.onDelGroup,Oe=$.onChangeGroupName,se=$.onPlusMember,te=$.onDelMember,Q=$.onExitGroup,J=Object(i.useState)(0),ve=Object(e.a)(J,2),_e=ve[0],Ae=ve[1],Qe=Object(i.useState)(0),tt=Object(e.a)(Qe,2),dt=tt[0],mt=tt[1];function vt(Ue){var ft=parseInt(Ue.target.id,10);d.a.confirm({title:"\u89E3\u6563\u63D0\u793A",content:"\u89E3\u6563\u6559\u7814\u56E2\u961F\u5C06\u5BF9\u56E2\u961F\u6210\u5458\u4E4B\u95F4\u5171\u4EAB\u5B9E\u8BAD\u3001\u8BD5\u5377\u7B49\u529F\u80FD\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u89E3\u6563\u672C\u6559\u7814\u56E2\u961F\u5417\uFF1F",onOk:function(){ae(ft)}})}function yt(Ue){var ft=parseInt(Ue.target.id,10);d.a.confirm({title:"\u9000\u51FA\u63D0\u793A",content:"\u9000\u51FA\u5C06\u5BF9\u60A8\u4E0E\u7EC4\u5185\u6210\u5458\u5171\u540C\u5F00\u5C55\u6559\u7814\u6D3B\u52A8\u9020\u6210\u4E0D\u4FBF\u3002\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F",onOk:function(){Q(ft)}})}function Ye(Ue,ft){d.a.confirm({title:"\u6E29\u99A8\u63D0\u793A",icon:null,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u7EC4\u5458\u5417?",onOk:function(){te(Ue,ft)}})}return n.a.createElement("ul",{className:"teaching-list"},me.map(function(Ue,ft){return n.a.createElement("li",{key:Ue.id,onClick:function(){return Ae(ft)}},n.a.createElement("div",{className:"item-group"},n.a.createElement("span",null,Ue.name," \xA0"," ",ft!==_e&&n.a.createElement("i",{className:"iconfont icon-jiantou9"})," "),n.a.createElement("div",{className:"action-group"},re?n.a.createElement("a",{onClick:function(){Oe(Ue)},style:{marginRight:40}},"\u4FEE\u6539\u540D2222\u79F0"):null,Ue.is_creat?n.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:vt},"\u89E3\u6563"):n.a.createElement("a",{id:Ue.id+"",className:"c-grey-c",onClick:yt},"\u9000\u51FA"))),ft===_e?n.a.createElement("ul",{className:"info"},Ue.memers.map(function(jt){return n.a.createElement("li",{key:jt.id||jt.name,onClick:function(){mt(jt.id)},className:dt===jt.id?"active":""},n.a.createElement("div",null,jt.name),Ue.is_creat&&jt.id&&dt===jt.id?n.a.createElement("a",{className:"btn-del",onClick:function(Pt){Pt.preventDefault(),Pt.stopPropagation(),Ye(Ue.id,dt)}},n.a.createElement(H.a,null)):null)}),re?n.a.createElement("li",null,n.a.createElement(g.a,{type:"link",disabled:Ue.memers.length>=50,title:Ue.memers.length>=50?"\u672C\u7EC4\u6210\u5458\u5DF2\u6EE1":"\u6DFB12312\u52A0\u6210\u5458",onClick:function(){se(Ue)}}," ",n.a.createElement(D.a,null)," \u6DFB\u52A0\u7EC4\u5458"," ")):null):null)}))},I=o("9kvl"),K=o("ju9d");function ee($){var me=$.children;return n.a.createElement("div",{className:"no-data"},n.a.createElement("img",{src:E.a,alt:"no-data",width:300}),me)}var he={data:[],loading:!0,selectedGroup:{},showFormPanel:!1,showMemberPanel:!1,index:0},de;(function($){$[$.INITDATA=0]="INITDATA",$[$.SHOWLOADING=1]="SHOWLOADING",$[$.SHOWFORMPANEL=2]="SHOWFORMPANEL",$[$.SHOWMEMBERPANEL=3]="SHOWMEMBERPANEL",$[$.SELECTGROUP=4]="SELECTGROUP",$[$.SETINDEX=5]="SETINDEX"})(de||(de={}));function Se($,me){switch(me.type){case de.INITDATA:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SHOWLOADING:return Object(s.a)(Object(s.a)({},$),{},{loading:me.payload});case de.SETINDEX:return Object(s.a)(Object(s.a)({},$),{},{index:me.payload});case de.SHOWFORMPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SHOWMEMBERPANEL:return Object(s.a)(Object(s.a)({},$),me.payload);case de.SELECTGROUP:return Object(s.a)(Object(s.a)({},$),{},{selectedGroup:me.payload,showFormPanel:!0});default:throw new Error}}function Te($){var me,re=$.user,ae=Object(i.useReducer)(Se,he),Oe=Object(e.a)(ae,2),se=Oe[0],te=Oe[1],Q=se.data,J=se.index,ve=se.loading,_e=se.showFormPanel,Ae=se.selectedGroup,Qe=se.showMemberPanel,tt=(me=re.userInfo)===null||me===void 0?void 0:me.role,dt=Object(i.useMemo)(function(){var Dt=[],Ht=[],rn=Object(O.a)(Q),Bt;try{for(rn.s();!(Bt=rn.n()).done;){var Ct=Bt.value;Ct.is_creat?Dt.push(Ct):Ht.push(Ct)}}catch(Ke){rn.e(Ke)}finally{rn.f()}return[Dt,Ht]},[Q]);Object(i.useEffect)(function(){tt===15&&te({type:de.SETINDEX,payload:1})},[tt]);function mt(){return vt.apply(this,arguments)}function vt(){return vt=Object(m.a)(r.a.mark(function Dt(){var Ht;return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,v();case 2:Ht=Bt.sent,te({type:de.INITDATA,payload:{loading:!1,showFormPanel:!1,data:Ht.groups}});case 4:case"end":return Bt.stop()}},Dt)})),vt.apply(this,arguments)}Object(i.useEffect)(function(){mt()},[]);function yt(Dt){return Ye.apply(this,arguments)}function Ye(){return Ye=Object(m.a)(r.a.mark(function Dt(Ht){return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:if(!Ae.id){Bt.next=5;break}return Bt.next=3,M(Ae.id,Ht);case 3:Bt.next=7;break;case 5:return Bt.next=7,R(Ht);case 7:mt();case 8:case"end":return Bt.stop()}},Dt)})),Ye.apply(this,arguments)}function Ue(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!0,selectedGroup:{}}})}function ft(Dt){te({type:de.SELECTGROUP,payload:Dt})}function jt(){te({type:de.SHOWFORMPANEL,payload:{showFormPanel:!1}})}function bt(){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!1,selectedGroup:{}}})}function Pt(Dt){te({type:de.SHOWMEMBERPANEL,payload:{showMemberPanel:!0,selectedGroup:Dt}})}function it(Dt,Ht){return He.apply(this,arguments)}function He(){return He=Object(m.a)(r.a.mark(function Dt(Ht,rn){return r.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.next=2,_(Ht,rn);case 2:mt();case 3:case"end":return Ct.stop()}},Dt)})),He.apply(this,arguments)}function Ge(Dt){return Ce.apply(this,arguments)}function Ce(){return Ce=Object(m.a)(r.a.mark(function Dt(Ht){return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,A(Ht);case 2:mt();case 3:case"end":return Bt.stop()}},Dt)})),Ce.apply(this,arguments)}function Ie(Dt){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(m.a)(r.a.mark(function Dt(Ht){return r.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:return Bt.next=2,S(Ht);case 2:mt();case 3:case"end":return Bt.stop()}},Dt)})),Fe.apply(this,arguments)}function Be(Dt){te({type:de.SETINDEX,payload:parseInt(Dt.target.id,10)})}function We(Dt,Ht){return st.apply(this,arguments)}function st(){return st=Object(m.a)(r.a.mark(function Dt(Ht,rn){return r.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return bt(),Ct.next=3,C({user_ids:Ht,group_id:rn});case 3:mt();case 4:case"end":return Ct.stop()}},Dt)})),st.apply(this,arguments)}return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"teaching-circling-container"},n.a.createElement("h3",null," ","\u6559\u7814\u56E2\u961F"," ",tt<=12&&n.a.createElement(g.a,{type:"primary",disabled:Q.length>=50,title:Q.length>=50?"\u60A8\u52A0\u5165\u7684\u6559\u7814\u7EC4\u5DF2\u8FBE\u4E0A\u9650":"",onClick:Ue},"\u65B0\u5EFA")," "),n.a.createElement("div",{className:"teaching-circling-body"},tt===15?null:n.a.createElement("ul",{className:"navs"},n.a.createElement("li",{className:J===0?"active":""},n.a.createElement("a",{id:"0",onClick:Be},"\u6211\u521B\u5EFA\u7684")),n.a.createElement("li",{className:J===1?"active":""},n.a.createElement("a",{id:"1",onClick:Be},"\u6211\u52A0\u5165\u7684"))),n.a.createElement("div",{className:dt[J].length===0?"nodata-content":"main-content"},dt[J].length===0?n.a.createElement(ee,null,tt<=12?n.a.createElement(n.a.Fragment,null," ",n.a.createElement("p",null,"\u6559\u7814\u56E2\u961F\u6709\u52A9\u4E8E\u4F60\u548C\u4F60\u7684\u4F19\u4F34\u4EEC\u4E00\u8D77\u521B\u5EFA\u5B9E\u8BAD\u3001\u534F\u540C\u6559\u5B66\uFF0C\u6216\u5F00\u5C55\u5176\u4ED6\u6559\u7814\u6D3B\u52A8\u3002")," ",n.a.createElement("p",null,"\u5F53\u524D\u60A8\u5C1A\u672A\u7EC4\u5EFA\u5C5E\u4E8E\u81EA\u5DF1\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB\u7EC4\u5EFA\u5427\uFF01")," "):n.a.createElement("p",null," \u60A8\u5C1A\u672A\u52A0\u5165\u4EFB\u4F55\u6559\u7814\u5C0F\u7EC4\uFF0C\u8BF7\u7B49\u5F85\u8001\u5E08\u7684\u53EC\u5524\u5427\uFF01 ")):n.a.createElement(F,{onExitGroup:Ie,onPlusMember:Pt,onDelMember:it,onDelGroup:Ge,isAdminOrTeacher:tt<=12,onChangeGroupName:ft,data:dt[J]}))),n.a.createElement("p",{style:{width:1200,margin:"0 auto 40px auto"},className:"desc"}," ","* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"," ")),n.a.createElement(N,{callback:yt,visible:_e,onCancel:jt,id:Ae.id,name:Ae.name}),n.a.createElement(d.a,{centered:!0,title:"\u6DFB\u52A0\u6210\u5458",visible:Qe,onCancel:bt,footer:null,width:1100,bodyStyle:{minHeight:200}},n.a.createElement(K.a,{container_id:Ae.id,container_type:4,onSelect:We,onCancel:bt})))}var ce=Object(I.a)(function($){var me=$.user;return{user:me}})(Te),be=o("SLjR"),Ee=o("55Ip"),ue=a.a.Group,le=z.a=function($){var me=$.onSelect,re=$.onCancel,ae=Object(i.useState)([]),Oe=Object(e.a)(ae,2),se=Oe[0],te=Oe[1],Q=Object(i.useState)(!0),J=Object(e.a)(Q,2),ve=J[0],_e=J[1];Object(i.useEffect)(function(){function tt(){return dt.apply(this,arguments)}function dt(){return dt=Object(m.a)(r.a.mark(function mt(){var vt,yt;return r.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(l.c)("teach_groups/my.json");case 2:vt=Ue.sent,yt=vt.groups,te(yt),_e(!1);case 6:case"end":return Ue.stop()}},mt)})),dt.apply(this,arguments)}tt()},[]);var Ae=Object(i.useMemo)(function(){var tt=[],dt=[],mt=Object(O.a)(se),vt;try{for(mt.s();!(vt=mt.n()).done;){var yt=vt.value;yt.is_creat?tt.push(yt):dt.push(yt)}}catch(Ye){mt.e(Ye)}finally{mt.f()}return[tt,dt]},[se]);function Qe(tt){me(tt)}return n.a.createElement(b.a,{className:"select-teach-group",onFinish:Qe},ve?n.a.createElement(x.a,{paragraph:!0}):se.length===0?n.a.createElement(ee,null,"\u60A8\u5C1A\u672A\u521B\u5EFA\u60A8\u7684\u6559\u7814\u56E2\u961F\uFF0C\u5FEB\u53BB",n.a.createElement(Ee.a,{to:"/account/teach-group"},"\u521B\u5EFA"),"\u5427"):n.a.createElement(n.a.Fragment,null,n.a.createElement(b.a.Item,{name:"group_id"},n.a.createElement(ue,null,n.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u521B\u5EFA\u7684\uFF1A"),n.a.createElement("ul",{className:"groups"},Ae[0].map(function(tt){return n.a.createElement("li",{key:tt.id},n.a.createElement(a.a,{value:tt.id},tt.name))})),n.a.createElement("p",{style:{fontSize:"12px"}},"\u6211\u52A0\u5165\u7684\uFF1A"),n.a.createElement("ul",{className:"groups"},Ae[1].map(function(tt){return n.a.createElement("li",{key:tt.id},n.a.createElement(a.a,{value:tt.id},tt.name))})))),n.a.createElement("div",{className:"btn-actions"},n.a.createElement(g.a,{type:"ghost",onClick:re,style:{marginRight:10}},"\u53D6\u6D88"),n.a.createElement(g.a,{type:"primary",htmlType:"submit"},"\u786E\u5B9A"))))}},DlQD:function(k,z,o){(function(P,g){k.exports=g()})(this,function(){"use strict";function P(it,He){for(var Ge=0;Geit.length)&&(He=it.length);for(var Ge=0,Ce=new Array(He);Ge=it.length?{done:!0}:{done:!1,value:it[Ce++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Ge=it[Symbol.iterator](),Ge.next.bind(Ge)}function x(it,He){return He={exports:{}},it(He,He.exports),He.exports}var O=x(function(it){function He(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Ge(Ce){it.exports.defaults=Ce}it.exports={defaults:He(),getDefaults:He,changeDefaults:Ge}}),m=O.defaults,e=O.getDefaults,f=O.changeDefaults,a=/[&<>"']/,u=/[&<>"']/g,r=/[<>"']|&(?!#?\w+;)/,i=/[<>"']|&(?!#?\w+;)/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(He){return n[He]};function h(it,He){if(He){if(a.test(it))return it.replace(u,l)}else if(r.test(it))return it.replace(i,l);return it}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function s(it){return it.replace(d,function(He,Ge){return Ge=Ge.toLowerCase(),Ge==="colon"?":":Ge.charAt(0)==="#"?Ge.charAt(1)==="x"?String.fromCharCode(parseInt(Ge.substring(2),16)):String.fromCharCode(+Ge.substring(1)):""})}var c=/(^|[^\[])\^/g;function w(it,He){it=it.source||it,He=He||"";var Ge={replace:function(Ie,Fe){return Fe=Fe.source||Fe,Fe=Fe.replace(c,"$1"),it=it.replace(Ie,Fe),Ge},getRegex:function(){return new RegExp(it,He)}};return Ge}var E=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function R(it,He,Ge){if(it){var Ce;try{Ce=decodeURIComponent(s(Ge)).replace(E,"").toLowerCase()}catch(Ie){return null}if(Ce.indexOf("javascript:")===0||Ce.indexOf("vbscript:")===0||Ce.indexOf("data:")===0)return null}He&&!v.test(Ge)&&(Ge=A(He,Ge));try{Ge=encodeURI(Ge).replace(/%25/g,"%")}catch(Ie){return null}return Ge}var M={},C=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function A(it,He){M[" "+it]||(C.test(it)?M[" "+it]=it+"/":M[" "+it]=V(it,"/",!0)),it=M[" "+it];var Ge=it.indexOf(":")===-1;return He.substring(0,2)==="//"?Ge?He:it.replace(S,"$1")+He:He.charAt(0)==="/"?Ge?He:it.replace(_,"$1")+He:it+He}var U={exec:function(){}};function L(it){for(var He=1,Ge,Ce;He=0&&We[Dt]==="\\";)st=!st;return st?"|":" |"}),Ce=Ge.split(/ \|/),Ie=0;if(Ce.length>He)Ce.splice(He);else for(;Ce.length=Ce.length?Ie.slice(Ce.length):Ie}).join(` `)}var Te=function(){function it(Ge){this.options=Ge||F}var He=it.prototype;return He.space=function(Ce){var Ie=this.rules.block.newline.exec(Ce);if(Ie)return Ie[0].length>1?{type:"space",raw:Ie[0]}:{raw:` `}},He.code=function(Ce,Ie){var Fe=this.rules.block.code.exec(Ce);if(Fe){var Be=Ie[Ie.length-1];if(Be&&Be.type==="paragraph")return{raw:Fe[0],text:Fe[0].trimRight()};var We=Fe[0].replace(/^ {4}/gm,"");return{type:"code",raw:Fe[0],codeBlockStyle:"indented",text:this.options.pedantic?We:I(We,` `)}}},He.fences=function(Ce){var Ie=this.rules.block.fences.exec(Ce);if(Ie){var Fe=Ie[0],Be=Se(Fe,Ie[3]||"");return{type:"code",raw:Fe,lang:Ie[2]?Ie[2].trim():Ie[2],text:Be}}},He.heading=function(Ce){var Ie=this.rules.block.heading.exec(Ce);if(Ie)return{type:"heading",raw:Ie[0],depth:Ie[1].length,text:Ie[2]}},He.nptable=function(Ce){var Ie=this.rules.block.nptable.exec(Ce);if(Ie){var Fe={type:"table",header:K(Ie[1].replace(/^ *| *\| *$/g,"")),align:Ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ie[3]?Ie[3].replace(/\n$/,"").split(` -`):[],raw:Ie[0]};if(Fe.header.length===Fe.align.length){var Be=Fe.align.length,We;for(We=0;We ?/gm,"");return{type:"blockquote",raw:Ie[0],text:Fe}}},He.list=function(Ce){var Ie=this.rules.block.list.exec(Ce);if(Ie){for(var Fe=Ie[0],Be=Ie[2],We=Be.length>1,st=Be[Be.length-1]===")",Dt={type:"list",raw:Fe,ordered:We,start:We?+Be.slice(0,-1):"",loose:!1,items:[]},Ht=Ie[0].match(this.rules.block.item),rn=!1,Bt,Ct,Ke,et,at,Pe,Xe,ht=Ht.length,_t=0;_t1||this.options.smartLists&&Ke!==Be)&&(et=Ht.slice(_t+1).join(` -`),Dt.raw=Dt.raw.substring(0,Dt.raw.length-et.length),_t=ht-1)),at=rn||/\n\n(?!\s*$)/.test(Bt),_t!==ht-1&&(rn=Bt.charAt(Bt.length-1)===` +`):[],raw:Ie[0]};if(Fe.header.length===Fe.align.length){var Be=Fe.align.length,We;for(We=0;We ?/gm,"");return{type:"blockquote",raw:Ie[0],text:Fe}}},He.list=function(Ce){var Ie=this.rules.block.list.exec(Ce);if(Ie){for(var Fe=Ie[0],Be=Ie[2],We=Be.length>1,st=Be[Be.length-1]===")",Dt={type:"list",raw:Fe,ordered:We,start:We?+Be.slice(0,-1):"",loose:!1,items:[]},Ht=Ie[0].match(this.rules.block.item),rn=!1,Bt,Ct,Ke,et,at,Pe,Xe,ht=Ht.length,Et=0;Et1||this.options.smartLists&&Ke!==Be)&&(et=Ht.slice(Et+1).join(` +`),Dt.raw=Dt.raw.substring(0,Dt.raw.length-et.length),Et=ht-1)),at=rn||/\n\n(?!\s*$)/.test(Bt),Et!==ht-1&&(rn=Bt.charAt(Bt.length-1)===` `,at||(at=rn)),at&&(Dt.loose=!0),Pe=/^\[[ xX]\] /.test(Bt),Xe=void 0,Pe&&(Xe=Bt[1]!==" ",Bt=Bt.replace(/^\[[ xX]\] +/,"")),Dt.items.push({type:"list_item",raw:Fe,task:Pe,checked:Xe,loose:at,text:Bt});return Dt}},He.html=function(Ce){var Ie=this.rules.block.html.exec(Ce);if(Ie)return{type:this.options.sanitize?"paragraph":"html",raw:Ie[0],pre:!this.options.sanitizer&&(Ie[1]==="pre"||Ie[1]==="script"||Ie[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ie[0]):ee(Ie[0]):Ie[0]}},He.def=function(Ce){var Ie=this.rules.block.def.exec(Ce);if(Ie){Ie[3]&&(Ie[3]=Ie[3].substring(1,Ie[3].length-1));var Fe=Ie[1].toLowerCase().replace(/\s+/g," ");return{tag:Fe,raw:Ie[0],href:Ie[2],title:Ie[3]}}},He.table=function(Ce){var Ie=this.rules.block.table.exec(Ce);if(Ie){var Fe={type:"table",header:K(Ie[1].replace(/^ *| *\| *$/g,"")),align:Ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ie[3]?Ie[3].replace(/\n$/,"").split(` `):[]};if(Fe.header.length===Fe.align.length){Fe.raw=Ie[0];var Be=Fe.align.length,We;for(We=0;We/i.test(Be[0])&&(Ie=!1),!Fe&&/^<(pre|code|kbd|script)(\s|>)/i.test(Be[0])?Fe=!0:Fe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Be[0])&&(Fe=!1),{type:this.options.sanitize?"text":"html",raw:Be[0],inLink:Ie,inRawBlock:Fe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):ee(Be[0]):Be[0]}},He.link=function(Ce){var Ie=this.rules.inline.link.exec(Ce);if(Ie){var Fe=he(Ie[2],"()");if(Fe>-1){var Be=Ie[0].indexOf("!")===0?5:4,We=Be+Ie[1].length+Fe;Ie[2]=Ie[2].substring(0,Fe),Ie[0]=Ie[0].substring(0,We).trim(),Ie[3]=""}var st=Ie[2],Dt="";if(this.options.pedantic){var Ht=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(st);Ht?(st=Ht[1],Dt=Ht[3]):Dt=""}else Dt=Ie[3]?Ie[3].slice(1,-1):"";st=st.trim().replace(/^<([\s\S]*)>$/,"$1");var rn=de(Ie,{href:st&&st.replace(this.rules.inline._escapes,"$1"),title:Dt&&Dt.replace(this.rules.inline._escapes,"$1")},Ie[0]);return rn}},He.reflink=function(Ce,Ie){var Fe;if((Fe=this.rules.inline.reflink.exec(Ce))||(Fe=this.rules.inline.nolink.exec(Ce))){var Be=(Fe[2]||Fe[1]).replace(/\s+/g," ");if(Be=Ie[Be.toLowerCase()],!Be||!Be.href){var We=Fe[0].charAt(0);return{type:"text",raw:We,text:We}}var st=de(Fe,Be,Fe[0]);return st}},He.strong=function(Ce,Ie,Fe){Fe===void 0&&(Fe="");var Be=this.rules.inline.strong.start.exec(Ce);if(Be&&(!Be[1]||Be[1]&&(Fe===""||this.rules.inline.punctuation.exec(Fe)))){Ie=Ie.slice(-1*Ce.length);var We=Be[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;We.lastIndex=0;for(var st;(Be=We.exec(Ie))!=null;)if(st=this.rules.inline.strong.middle.exec(Ie.slice(0,Be.index+3)),st)return{type:"strong",raw:Ce.slice(0,st[0].length),text:Ce.slice(2,st[0].length-2)}}},He.em=function(Ce,Ie,Fe){Fe===void 0&&(Fe="");var Be=this.rules.inline.em.start.exec(Ce);if(Be&&(!Be[1]||Be[1]&&(Fe===""||this.rules.inline.punctuation.exec(Fe)))){Ie=Ie.slice(-1*Ce.length);var We=Be[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;We.lastIndex=0;for(var st;(Be=We.exec(Ie))!=null;)if(st=this.rules.inline.em.middle.exec(Ie.slice(0,Be.index+2)),st)return{type:"em",raw:Ce.slice(0,st[0].length),text:Ce.slice(1,st[0].length-1)}}},He.codespan=function(Ce){var Ie=this.rules.inline.code.exec(Ce);if(Ie){var Fe=Ie[2].replace(/\n/g," "),Be=/[^ ]/.test(Fe),We=Fe.startsWith(" ")&&Fe.endsWith(" ");return Be&&We&&(Fe=Fe.substring(1,Fe.length-1)),Fe=ee(Fe,!0),{type:"codespan",raw:Ie[0],text:Fe}}},He.br=function(Ce){var Ie=this.rules.inline.br.exec(Ce);if(Ie)return{type:"br",raw:Ie[0]}},He.del=function(Ce){var Ie=this.rules.inline.del.exec(Ce);if(Ie)return{type:"del",raw:Ie[0],text:Ie[1]}},He.autolink=function(Ce,Ie){var Fe=this.rules.inline.autolink.exec(Ce);if(Fe){var Be,We;return Fe[2]==="@"?(Be=ee(this.options.mangle?Ie(Fe[1]):Fe[1]),We="mailto:"+Be):(Be=ee(Fe[1]),We=Be),{type:"link",raw:Fe[0],text:Be,href:We,tokens:[{type:"text",raw:Be,text:Be}]}}},He.url=function(Ce,Ie){var Fe;if(Fe=this.rules.inline.url.exec(Ce)){var Be,We;if(Fe[2]==="@")Be=ee(this.options.mangle?Ie(Fe[0]):Fe[0]),We="mailto:"+Be;else{var st;do st=Fe[0],Fe[0]=this.rules.inline._backpedal.exec(Fe[0])[0];while(st!==Fe[0]);Be=ee(Fe[0]),Fe[1]==="www."?We="http://"+Be:We=Be}return{type:"link",raw:Fe[0],text:Be,href:We,tokens:[{type:"text",raw:Be,text:Be}]}}},He.inlineText=function(Ce,Ie,Fe){var Be=this.rules.inline.text.exec(Ce);if(Be){var We;return Ie?We=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):ee(Be[0]):Be[0]:We=ee(this.options.smartypants?Fe(Be[0]):Be[0]),{type:"text",raw:Be[0],text:We}}},it}(),ce=W.noopTest,be=W.edit,Ee=W.merge,ue={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ce,table:ce,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ue._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ue._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ue.def=be(ue.def).replace("label",ue._label).replace("title",ue._title).getRegex(),ue.bullet=/(?:[*+-]|\d{1,9}[.)])/,ue.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ue.item=be(ue.item,"gm").replace(/bull/g,ue.bullet).getRegex(),ue.list=be(ue.list).replace(/bull/g,ue.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ue.def.source+")").getRegex(),ue._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ue._comment=//,ue.html=be(ue.html,"i").replace("comment",ue._comment).replace("tag",ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ue.paragraph=be(ue._paragraph).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.blockquote=be(ue.blockquote).replace("paragraph",ue.paragraph).getRegex(),ue.normal=Ee({},ue),ue.gfm=Ee({},ue.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ue.gfm.nptable=be(ue.gfm.nptable).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.gfm.table=be(ue.gfm.table).replace("hr",ue.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ue._tag).getRegex(),ue.pedantic=Ee({},ue.normal,{html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ue._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ce,paragraph:be(ue.normal._paragraph).replace("hr",ue.hr).replace("heading",` *#{1,6} *[^ @@ -292,9 +292,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},He.tablerow=function(Ce){return` `+Ce+` `},He.tablecell=function(Ce,Ie){var Fe=Ie.header?"th":"td",Be=Ie.align?"<"+Fe+' align="'+Ie.align+'">':"<"+Fe+">";return Be+Ce+" -`},He.strong=function(Ce){return""+Ce+""},He.em=function(Ce){return""+Ce+""},He.codespan=function(Ce){return""+Ce+""},He.br=function(){return this.options.xhtml?"
        ":"
        "},He.del=function(Ce){return""+Ce+""},He.link=function(Ce,Ie,Fe){if(Ce=J(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return Fe;var Be='",Be},He.image=function(Ce,Ie,Fe){if(Ce=J(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return Fe;var Be=''+Fe+'":">",Be},He.text=function(Ce){return Ce},it}(),Ae=function(){function it(){}var He=it.prototype;return He.strong=function(Ce){return Ce},He.em=function(Ce){return Ce},He.codespan=function(Ce){return Ce},He.del=function(Ce){return Ce},He.html=function(Ce){return Ce},He.text=function(Ce){return Ce},He.link=function(Ce,Ie,Fe){return""+Fe},He.image=function(Ce,Ie,Fe){return""+Fe},He.br=function(){return""},it}(),Qe=function(){function it(){this.seen={}}var He=it.prototype;return He.slug=function(Ce){var Ie=Ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ie)){var Fe=Ie;do this.seen[Fe]++,Ie=Fe+"-"+this.seen[Fe];while(this.seen.hasOwnProperty(Ie))}return this.seen[Ie]=0,Ie},it}(),tt=O.defaults,dt=W.unescape,mt=function(){function it(Ge){this.options=Ge||tt,this.options.renderer=this.options.renderer||new _e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new Qe}it.parse=function(Ce,Ie){var Fe=new it(Ie);return Fe.parse(Ce)};var He=it.prototype;return He.parse=function(Ce,Ie){Ie===void 0&&(Ie=!0);var Fe="",Be,We,st,Dt,Ht,rn,Bt,Ct,Ke,et,at,Pe,Xe,ht,_t,Ot,Nt,ut,Ft=Ce.length;for(Be=0;Be0&&_t.tokens[0].type==="text"?(_t.tokens[0].text=ut+" "+_t.tokens[0].text,_t.tokens[0].tokens&&_t.tokens[0].tokens.length>0&&_t.tokens[0].tokens[0].type==="text"&&(_t.tokens[0].tokens[0].text=ut+" "+_t.tokens[0].tokens[0].text)):_t.tokens.unshift({type:"text",text:ut}):ht+=ut),ht+=this.parse(_t.tokens,Xe),Ke+=this.renderer.listitem(ht,Nt,Ot);Fe+=this.renderer.list(Ke,at,Pe);continue}case"html":{Fe+=this.renderer.html(et.text);continue}case"paragraph":{Fe+=this.renderer.paragraph(this.parseInline(et.tokens));continue}case"text":{for(Ke=et.tokens?this.parseInline(et.tokens):et.text;Be+1An error occurred:

        "+Ye(st.message+"",!0)+"
        ";throw st}}yt.options=yt.setOptions=function(it){return vt(yt.defaults,it),ft(yt.defaults),yt},yt.getDefaults=Ue,yt.defaults=jt,yt.use=function(it){var He=vt({},it);if(it.renderer&&function(){var Ce=yt.defaults.renderer||new _e,Ie=function(We){var st=Ce[We];Ce[We]=function(){for(var Dt=arguments.length,Ht=new Array(Dt),rn=0;rn>>24)&16711935|(a[r]<<24|a[r]>>>8)&4278255360;var i=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],n=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var r=0;r<4;r++)f.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(u){var l=u.words,h=l[0],d=l[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,c=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|c&4294901760,E=c<<16|s&65535;n[0]^=s,n[1]^=w,n[2]^=c,n[3]^=E,n[4]^=s,n[5]^=w,n[6]^=c,n[7]^=E;for(var r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(a,u){var r=this._X;f.call(this),x[0]=r[0]^r[5]>>>16^r[3]<<16,x[1]=r[2]^r[7]>>>16^r[5]<<16,x[2]=r[4]^r[1]>>>16^r[7]<<16,x[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)x[i]=(x[i]<<8|x[i]>>>24)&16711935|(x[i]<<24|x[i]>>>8)&4278255360,a[u+i]^=x[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,u=this._C,r=0;r<8;r++)O[r]=u[r];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0>>0?1:0)|0,this._b=u[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var i=a[r]+u[r],n=i&65535,l=i>>>16,h=((n*n>>>17)+n*l>>>15)+l*l,d=((i&4294901760)*i|0)+((i&65535)*i|0);m[r]=h^d}a[0]=m[0]+(m[7]<<16|m[7]>>>16)+(m[6]<<16|m[6]>>>16)|0,a[1]=m[1]+(m[0]<<8|m[0]>>>24)+m[7]|0,a[2]=m[2]+(m[1]<<16|m[1]>>>16)+(m[0]<<16|m[0]>>>16)|0,a[3]=m[3]+(m[2]<<8|m[2]>>>24)+m[1]|0,a[4]=m[4]+(m[3]<<16|m[3]>>>16)+(m[2]<<16|m[2]>>>16)|0,a[5]=m[5]+(m[4]<<8|m[4]>>>24)+m[3]|0,a[6]=m[6]+(m[5]<<16|m[5]>>>16)+(m[4]<<16|m[4]>>>16)|0,a[7]=m[7]+(m[6]<<8|m[6]>>>24)+m[5]|0}g.Rabbit=b._createHelper(e)}(),P.Rabbit})},E7E6:function(k,z){k.exports="data:image/png;base64,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"},E9nw:function(k,z){k.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var P=document.activeElement,g=[],T=0;T"+rn+""}),We},Et=function(){var Be=Object(m.a)(a.a.mark(function We(st,Dt,Ht){var rn,Bt,Ct;return a.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(rn=tt.current+1,tt.current=rn,Bt=function(Pe){var Xe=Pe==null?void 0:Pe.map(function(ht,_t){var Ot=ht.id,Nt=ht.name,ut=Object(O.a)(Object(O.a)({},ht),{},{label:r.a.createElement("ul",{id:"search-".concat(_e,"-").concat(_t),onClick:function(){return yt(Ot,ut)},className:_t===Dt?h.a.searchListActive:h.a.searchList},r.a.createElement("li",{className:h.a.name,dangerouslySetInnerHTML:{__html:vt(Nt,st)}}),ht.private&&r.a.createElement("li",{className:h.a.tag},"\u79C1\u6709"))});return ut});return Xe},!Ht){et.next=7;break}return Ct=Bt(dt.current),Oe(Ct),et.abrupt("return");case 7:clearTimeout(Qe.current),Qe.current=setTimeout(Object(m.a)(a.a.mark(function at(){var Pe,Xe,ht,_t;return a.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Nt.next=2,Object(c.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:st,page:1,limit:1e5}});case 2:Pe=Nt.sent,(Pe==null?void 0:Pe.status)===0&&(ht=Bt((Pe==null||((Xe=Pe.data)===null||Xe===void 0)?void 0:Xe.mirrors)||[]),rn===tt.current&&(Oe(ht),dt.current=Object(w.cloneDeep)((Pe==null||((_t=Pe.data)===null||_t===void 0)?void 0:_t.mirrors)||[])));case 4:case"end":return Nt.stop()}},at)})),300);case 9:case"end":return et.stop()}},We)}));return function(st,Dt,Ht){return Be.apply(this,arguments)}}(),Ye=function(We){var st=document.getElementById("scroll-".concat(_e,"-").concat(We));if(!st)return;var Dt=document.getElementById("scroll-".concat(_e));Dt.scrollTo(0,st.offsetTop)},Ue=function(We,st){var Dt=document.getElementById("search-".concat(_e,"-").concat(We));if(!Dt)return;var Ht=document.getElementById("search-".concat(_e)),rn=Dt.offsetTop-Ht.scrollTop>0&&Dt.offsetTop-Ht.scrollTop`,triples:"",explode:"[]{}"},T=P.Pos;P.defineOption("autoCloseBrackets",!1,function(n,l,h){h&&h!=P.Init&&(n.removeKeyMap(y),n.state.closeBrackets=null),l&&(x(b(l,"pairs")),n.state.closeBrackets=l,n.addKeyMap(y))});function b(n,l){return l=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[l]!=null?n[l]:g[l]}var y={Backspace:e,Enter:f};function x(n){for(var l=0;l=0;s--){var w=d[s].head;n.replaceRange("",T(w.line,w.ch-1),T(w.line,w.ch+1),"+delete")}}function f(n){var l=m(n),h=l&&b(l,"explode");if(!h||n.getOption("disableInput"))return P.Pass;for(var d=n.listSelections(),s=0;s"+Ce+""},He.em=function(Ce){return""+Ce+""},He.codespan=function(Ce){return""+Ce+""},He.br=function(){return this.options.xhtml?"
        ":"
        "},He.del=function(Ce){return""+Ce+""},He.link=function(Ce,Ie,Fe){if(Ce=J(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return Fe;var Be='
        ",Be},He.image=function(Ce,Ie,Fe){if(Ce=J(this.options.sanitize,this.options.baseUrl,Ce),Ce===null)return Fe;var Be=''+Fe+'":">",Be},He.text=function(Ce){return Ce},it}(),Ae=function(){function it(){}var He=it.prototype;return He.strong=function(Ce){return Ce},He.em=function(Ce){return Ce},He.codespan=function(Ce){return Ce},He.del=function(Ce){return Ce},He.html=function(Ce){return Ce},He.text=function(Ce){return Ce},He.link=function(Ce,Ie,Fe){return""+Fe},He.image=function(Ce,Ie,Fe){return""+Fe},He.br=function(){return""},it}(),Qe=function(){function it(){this.seen={}}var He=it.prototype;return He.slug=function(Ce){var Ie=Ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ie)){var Fe=Ie;do this.seen[Fe]++,Ie=Fe+"-"+this.seen[Fe];while(this.seen.hasOwnProperty(Ie))}return this.seen[Ie]=0,Ie},it}(),tt=O.defaults,dt=W.unescape,mt=function(){function it(Ge){this.options=Ge||tt,this.options.renderer=this.options.renderer||new _e,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ae,this.slugger=new Qe}it.parse=function(Ce,Ie){var Fe=new it(Ie);return Fe.parse(Ce)};var He=it.prototype;return He.parse=function(Ce,Ie){Ie===void 0&&(Ie=!0);var Fe="",Be,We,st,Dt,Ht,rn,Bt,Ct,Ke,et,at,Pe,Xe,ht,Et,Ot,Mt,lt,Ft=Ce.length;for(Be=0;Be0&&Et.tokens[0].type==="text"?(Et.tokens[0].text=lt+" "+Et.tokens[0].text,Et.tokens[0].tokens&&Et.tokens[0].tokens.length>0&&Et.tokens[0].tokens[0].type==="text"&&(Et.tokens[0].tokens[0].text=lt+" "+Et.tokens[0].tokens[0].text)):Et.tokens.unshift({type:"text",text:lt}):ht+=lt),ht+=this.parse(Et.tokens,Xe),Ke+=this.renderer.listitem(ht,Mt,Ot);Fe+=this.renderer.list(Ke,at,Pe);continue}case"html":{Fe+=this.renderer.html(et.text);continue}case"paragraph":{Fe+=this.renderer.paragraph(this.parseInline(et.tokens));continue}case"text":{for(Ke=et.tokens?this.parseInline(et.tokens):et.text;Be+1An error occurred:

        "+Ye(st.message+"",!0)+"
        ";throw st}}bt.options=bt.setOptions=function(it){return vt(bt.defaults,it),ft(bt.defaults),bt},bt.getDefaults=Ue,bt.defaults=jt,bt.use=function(it){var He=vt({},it);if(it.renderer&&function(){var Ce=bt.defaults.renderer||new _e,Ie=function(We){var st=Ce[We];Ce[We]=function(){for(var Dt=arguments.length,Ht=new Array(Dt),rn=0;rn>>24)&16711935|(a[r]<<24|a[r]>>>8)&4278255360;var i=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],n=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var r=0;r<4;r++)f.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(u){var l=u.words,h=l[0],d=l[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,c=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|c&4294901760,E=c<<16|s&65535;n[0]^=s,n[1]^=w,n[2]^=c,n[3]^=E,n[4]^=s,n[5]^=w,n[6]^=c,n[7]^=E;for(var r=0;r<4;r++)f.call(this)}},_doProcessBlock:function(a,u){var r=this._X;f.call(this),x[0]=r[0]^r[5]>>>16^r[3]<<16,x[1]=r[2]^r[7]>>>16^r[5]<<16,x[2]=r[4]^r[1]>>>16^r[7]<<16,x[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)x[i]=(x[i]<<8|x[i]>>>24)&16711935|(x[i]<<24|x[i]>>>8)&4278255360,a[u+i]^=x[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,u=this._C,r=0;r<8;r++)O[r]=u[r];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0>>0?1:0)|0,this._b=u[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var i=a[r]+u[r],n=i&65535,l=i>>>16,h=((n*n>>>17)+n*l>>>15)+l*l,d=((i&4294901760)*i|0)+((i&65535)*i|0);m[r]=h^d}a[0]=m[0]+(m[7]<<16|m[7]>>>16)+(m[6]<<16|m[6]>>>16)|0,a[1]=m[1]+(m[0]<<8|m[0]>>>24)+m[7]|0,a[2]=m[2]+(m[1]<<16|m[1]>>>16)+(m[0]<<16|m[0]>>>16)|0,a[3]=m[3]+(m[2]<<8|m[2]>>>24)+m[1]|0,a[4]=m[4]+(m[3]<<16|m[3]>>>16)+(m[2]<<16|m[2]>>>16)|0,a[5]=m[5]+(m[4]<<8|m[4]>>>24)+m[3]|0,a[6]=m[6]+(m[5]<<16|m[5]>>>16)+(m[4]<<16|m[4]>>>16)|0,a[7]=m[7]+(m[6]<<8|m[6]>>>24)+m[5]|0}g.Rabbit=b._createHelper(e)}(),P.Rabbit})},E7E6:function(k,z){k.exports="data:image/png;base64,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"},E9nw:function(k,z){k.exports=function(){var o=document.getSelection();if(!o.rangeCount)return function(){};for(var P=document.activeElement,g=[],T=0;T"+rn+""}),We},yt=function(){var Be=Object(m.a)(a.a.mark(function We(st,Dt,Ht){var rn,Bt,Ct;return a.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(rn=tt.current+1,tt.current=rn,Bt=function(Pe){var Xe=Pe==null?void 0:Pe.map(function(ht,Et){var Ot=ht.id,Mt=ht.name,lt=Object(O.a)(Object(O.a)({},ht),{},{label:r.a.createElement("ul",{id:"search-".concat(_e,"-").concat(Et),onClick:function(){return bt(Ot,lt)},className:Et===Dt?h.a.searchListActive:h.a.searchList},r.a.createElement("li",{className:h.a.name,dangerouslySetInnerHTML:{__html:vt(Mt,st)}}),ht.private&&r.a.createElement("li",{className:h.a.tag},"\u79C1\u6709"))});return lt});return Xe},!Ht){et.next=7;break}return Ct=Bt(dt.current),Oe(Ct),et.abrupt("return");case 7:clearTimeout(Qe.current),Qe.current=setTimeout(Object(m.a)(a.a.mark(function at(){var Pe,Xe,ht,Et;return a.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,Object(c.a)("/api/shixuns/search_image.json",{method:"get",params:{keywords:st,page:1,limit:1e5}});case 2:Pe=Mt.sent,(Pe==null?void 0:Pe.status)===0&&(ht=Bt((Pe==null||((Xe=Pe.data)===null||Xe===void 0)?void 0:Xe.mirrors)||[]),rn===tt.current&&(Oe(ht),dt.current=Object(w.cloneDeep)((Pe==null||((Et=Pe.data)===null||Et===void 0)?void 0:Et.mirrors)||[])));case 4:case"end":return Mt.stop()}},at)})),300);case 9:case"end":return et.stop()}},We)}));return function(st,Dt,Ht){return Be.apply(this,arguments)}}(),Ye=function(We){var st=document.getElementById("scroll-".concat(_e,"-").concat(We));if(!st)return;var Dt=document.getElementById("scroll-".concat(_e));Dt.scrollTo(0,st.offsetTop)},Ue=function(We,st){var Dt=document.getElementById("search-".concat(_e,"-").concat(We));if(!Dt)return;var Ht=document.getElementById("search-".concat(_e)),rn=Dt.offsetTop-Ht.scrollTop>0&&Dt.offsetTop-Ht.scrollTop`,triples:"",explode:"[]{}"},T=P.Pos;P.defineOption("autoCloseBrackets",!1,function(n,l,h){h&&h!=P.Init&&(n.removeKeyMap(y),n.state.closeBrackets=null),l&&(x(b(l,"pairs")),n.state.closeBrackets=l,n.addKeyMap(y))});function b(n,l){return l=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[l]!=null?n[l]:g[l]}var y={Backspace:e,Enter:f};function x(n){for(var l=0;l=0;s--){var w=d[s].head;n.replaceRange("",T(w.line,w.ch-1),T(w.line,w.ch+1),"+delete")}}function f(n){var l=m(n),h=l&&b(l,"explode");if(!h||n.getOption("disableInput"))return P.Pass;for(var d=n.listSelections(),s=0;s0;return{anchor:new T(n.anchor.line,n.anchor.ch+(l?-1:1)),head:new T(n.head.line,n.head.ch+(l?1:-1))}}function u(n,l){var h=m(n);if(!h||n.getOption("disableInput"))return P.Pass;var d=b(h,"pairs"),s=d.indexOf(l);if(s==-1)return P.Pass;for(var c=b(h,"closeBefore"),w=b(h,"triples"),E=d.charAt(s+1)==l,v=n.listSelections(),R=s%2==0,M,C=0;C=0&&n.getRange(_,T(_.line,_.ch+3))==l+l+l?A="skipThree":A="skip";else if(E&&_.ch>1&&w.indexOf(l)>=0&&n.getRange(T(_.line,_.ch-2),_)==l+l){if(_.ch>2&&/\bstring/.test(n.getTokenTypeAt(T(_.line,_.ch-2))))return P.Pass;A="addFour"}else if(E){var L=_.ch==0?" ":n.getRange(T(_.line,_.ch-1),_);if(!P.isWordChar(U)&&L!=l&&!P.isWordChar(L))A="both";else return P.Pass}else if(R&&(U.length===0||/\s/.test(U)||c.indexOf(U)>-1))A="both";else return P.Pass;if(!M)M=A;else if(M!=A)return P.Pass}var N=s%2?d.charAt(s-1):l,V=s%2?l:d.charAt(s+1);n.operation(function(){if(M=="skip")n.execCommand("goCharRight");else if(M=="skipThree")for(var H=0;H<3;H++)n.execCommand("goCharRight");else if(M=="surround"){for(var D=n.getSelections(),H=0;HA - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return function(g){var T=P,b=T.lib,y=b.WordArray,x=b.Hasher,O=T.algo,m=y.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),e=y.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=y.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=y.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=y.create([0,1518500249,1859775393,2400959708,2840853838]),r=y.create([1352829926,1548603684,1836072691,2053994217,0]),i=O.RIPEMD160=x.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,E){for(var v=0;v<16;v++){var R=E+v,M=w[R];w[R]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var C=this._hash.words,S=u.words,_=r.words,A=m.words,U=e.words,L=f.words,N=a.words,V,H,D,W,F,I,K,ee,he,de;I=V=C[0],K=H=C[1],ee=D=C[2],he=W=C[3],de=F=C[4];for(var Se,v=0;v<80;v+=1)Se=V+w[E+A[v]]|0,v<16?Se+=n(H,D,W)+S[0]:v<32?Se+=l(H,D,W)+S[1]:v<48?Se+=h(H,D,W)+S[2]:v<64?Se+=d(H,D,W)+S[3]:Se+=s(H,D,W)+S[4],Se=Se|0,Se=c(Se,L[v]),Se=Se+F|0,V=F,F=W,W=c(D,10),D=H,H=Se,Se=I+w[E+U[v]]|0,v<16?Se+=s(K,ee,he)+_[0]:v<32?Se+=d(K,ee,he)+_[1]:v<48?Se+=h(K,ee,he)+_[2]:v<64?Se+=l(K,ee,he)+_[3]:Se+=n(K,ee,he)+_[4],Se=Se|0,Se=c(Se,N[v]),Se=Se+de|0,I=de,de=he,he=c(ee,10),ee=K,K=Se;Se=C[1]+D+he|0,C[1]=C[2]+W+de|0,C[2]=C[3]+F+I|0,C[3]=C[4]+V+K|0,C[4]=C[0]+H+ee|0,C[0]=Se},_doFinalize:function(){var w=this._data,E=w.words,v=this._nDataBytes*8,R=w.sigBytes*8;E[R>>>5]|=128<<24-R%32,E[(R+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var M=this._hash,C=M.words,S=0;S<5;S++){var _=C[S];C[S]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return M},clone:function(){var w=x.clone.call(this);return w._hash=this._hash.clone(),w}});function n(w,E,v){return w^E^v}function l(w,E,v){return w&E|~w&v}function h(w,E,v){return(w|~E)^v}function d(w,E,v){return w&v|E&~v}function s(w,E,v){return w^(E|~v)}function c(w,E){return w<>>32-E}T.RIPEMD160=x._createHelper(i),T.HmacRIPEMD160=x._createHmacHelper(i)}(Math),P.RIPEMD160})},ETIr:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=g.enc,x=y.Base64={stringify:function(m){var e=m.words,f=m.sigBytes,a=this._map;m.clamp();for(var u=[],r=0;r>>2]>>>24-r%4*8&255,n=e[r+1>>>2]>>>24-(r+1)%4*8&255,l=e[r+2>>>2]>>>24-(r+2)%4*8&255,h=i<<16|n<<8|l,d=0;d<4&&r+d*.75>>6*(3-d)&63));var s=a.charAt(64);if(s)for(;u.length%4;)u.push(s);return u.join("")},parse:function(m){var e=m.length,f=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var u=0;u>>6-r%4*2,l=i|n;a[u>>>2]|=l<<24-u%4*8,u++}return b.create(a,u)}}(),P.enc.Base64})},EkPF:function(k,z,o){k.exports={practiceSetting:"practiceSetting___2ttNt",wrapHeader:"wrapHeader___2dgOY",wrapLayout:"wrapLayout___3zol1",wrapSidebar:"wrapSidebar___3imKs",wrapContent:"wrapContent___3L8H_"}},"F+F2":function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){if(typeof ArrayBuffer!="function")return;var g=P,T=g.lib,b=T.WordArray,y=b.init,x=b.init=function(O){if(O instanceof ArrayBuffer&&(O=new Uint8Array(O)),(O instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&O instanceof Uint8ClampedArray||O instanceof Int16Array||O instanceof Uint16Array||O instanceof Int32Array||O instanceof Uint32Array||O instanceof Float32Array||O instanceof Float64Array)&&(O=new Uint8Array(O.buffer,O.byteOffset,O.byteLength)),O instanceof Uint8Array){for(var m=O.byteLength,e=[],f=0;f>>2]|=O[f]<<24-f%4*8;y.call(this,e,m)}else y.apply(this,arguments)};x.prototype=b}(),P.lib.WordArray})},FOrL:function(k,z,o){k.exports=o.p+"static/nodata.a6b3f948.png"},FPkq:function(k,z,o){k.exports=o.p+"static/qrCode.dd0fe9b2.png"},FTkQ:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABjUlEQVQ4T61VsUoDQRB9s+eVYifkUlqIWCW3sbBMqYUR0cbfUPETxPgZ2giigpZaCnKXpBK1sMydpIx25+7ISu5ILhsjclvuzLx5M292lmA57PtuF2gIYIMBSYBn3BiICAg1cF0GrqjVSvLhlL+IqtVNEDUZWLAlS+8IeAPzvtduXw77ZYAMiEjKI2LeY2AskQ2cAGaiEy8MDwnQxicL7Ep5bDL+xmqijahZDsODDHBQ5sVfmVn6xmDeMuWTESAGnqf1bBpz09MSsESx729r4DwfIIA6hPjUSt2AaP7Hztwj5nXHdd0vpR7yMQzsUOT7pwzsjgEKsVIKgiCu1Za1UvfGLhynXgqCp6hSkSxEYCn9jLq+/wJgcawk5l4KYECN3YBlCVLWo4GvhmGfgVlrj4ZAjX0KmBmZD8Owj4IAMQAsvGSrKKR1zet0QpsosZQrmvnRKsqksZlxnFWVJAkT3Y6MDbAmgDlFdGcdm8IH22Qp9OmltAtdDoPlWez6SpkWtmCHFTNCvQMN/scX8A1e4fnIOEHt8AAAAABJRU5ErkJggg=="},FWmy:function(k,z,o){"use strict";o.d(z,"a",function(){return P});function P(g,T){if(!g)throw new Error(T?`Assertion failed (${T})`:"Assertion Failed")}},Fhpe:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1W7Bl",flex_space_between:"flex_space_between___3S4Sp",flex_box_vertical_center:"flex_box_vertical_center___5mGEA",flex_box_center_end:"flex_box_center_end___1blqp",flex_box_column:"flex_box_column___4i1E0",CustomCss:"CustomCss___3thFA",CustomTipsModalCss:"CustomTipsModalCss___2aNwC",dropdownmenus:"dropdownmenus___19dGk",popupClassNames:"popupClassNames___3LOFQ",selectdown:"selectdown___1_utH"}},FrRK:function(k,z,o){"use strict";var P=o("+L6B"),g=o("2/Rp"),T=o("DZo9"),b=o("8z0m"),y=o("miYZ"),x=o("tsqr"),O=o("9og8"),m=o("2qtc"),e=o("kLXV"),f=o("y8nQ"),a=o("Vl3Y"),u=o("tJVT"),r=o("PpiC"),i=o("5NDa"),n=o("5rEg"),l=o("WmNS"),h=o.n(l),d=o("q1tI"),s=o.n(d),c=o("9kvl"),w=o("m3rI"),E=o("FPkq"),v=o.n(E),R=o("qB8g"),M=o.n(R),C=n.a.TextArea,S=function(A){var U=A.newShixuns,L=A.globalSetting,N=A.loading,V=A.dispatch,H=Object(r.a)(A,["newShixuns","globalSetting","loading","dispatch"]),D=a.a.useForm(),W=Object(u.a)(D,1),F=W[0],I=Object(d.useState)([]),K=Object(u.a)(I,2),ee=K[0],he=K[1],de=function(ue){var le=["uploading","done","removed"];le.includes(ue.file.status)&&he(ue.fileList)},Se=function(ue){if(!ue.percent||ue.percent==100){var le,$=(le=ue.response)===null||le===void 0?void 0:le.id;return e.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var me=Object(O.a)(h.a.mark(function ae(){var Oe;return h.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,V({type:"newShixuns/deleteAttachment",payload:{id:$}});case 2:Oe=te.sent,Oe&&he(ee.filter(function(Q){var J;return((J=Q.response)===null||J===void 0?void 0:J.id)!==$}));case 4:case"end":return te.stop()}},ae)}));function re(){return me.apply(this,arguments)}return re}()}),!1}},Te=function(ue){if(ee.length)return!1;var le=ue.size/1024/1024>50;return le?(x.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},ce=function(){var Ee=Object(O.a)(h.a.mark(function ue(le){var $,me,re,ae,Oe,se,te,Q;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return re=le||{},ae=re.language,Oe=re.env,se=re.mode,te=re.code,ve.next=3,V({type:"newShixuns/applyShixunMirror",payload:{language:ae,runtime:Oe,run_method:se,attachment_id:ee==null||(($=ee[0])===null||$===void 0||((me=$.response)===null||me===void 0))?void 0:me.id}});case 3:Q=ve.sent,V({type:"newShixuns/setActionTabs",payload:{}}),Q&&x.b.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002");case 6:case"end":return ve.stop()}},ue)}));return function(le){return Ee.apply(this,arguments)}}(),be=function(){F.resetFields(),he([])};return s.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:U.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:be},s.a.createElement("section",{className:M.a.qrCode},s.a.createElement("aside",{className:M.a.a1},s.a.createElement("div",{className:M.a.code},s.a.createElement("img",{width:120,height:120,src:v.a,alt:"\u4E8C\u7EF4\u7801"})),s.a.createElement("div",{className:M.a.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),s.a.createElement("div",{className:M.a.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),s.a.createElement("aside",{className:M.a.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",s.a.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),s.a.createElement(a.a,{className:M.a.formWrap,form:F,labelCol:{span:4},wrapperCol:{span:20},onFinish:ce},s.a.createElement(a.a.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},s.a.createElement(C,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),s.a.createElement(a.a.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},s.a.createElement(C,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),s.a.createElement(a.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},s.a.createElement(C,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),s.a.createElement(a.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},s.a.createElement("div",{className:M.a.upload},s.a.createElement(b.a,{fileList:ee,action:"".concat(w.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:de,onRemove:Se,beforeUpload:Te,withCredentials:!0},s.a.createElement("span",{className:"".concat(M.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),s.a.createElement("span",{className:"".concat(M.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),s.a.createElement("div",{className:M.a.footerWrap},s.a.createElement(a.a.Item,null,s.a.createElement(g.a,{className:"mr5",size:"large",onClick:function(){V({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),s.a.createElement(g.a,{size:"large",type:"primary",htmlType:"submit",loading:N["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};z.a=Object(c.a)(function(_){var A=_.newShixuns,U=_.loading,L=_.globalSetting;return{newShixuns:A,globalSetting:L,loading:U.effects}})(S)},Fxgj:function(k,z,o){},GABl:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2Y74n8IUjOuo+1+7dx9vy06agcrf7fgjXARLzYwZrnZsB6BzevaRkf2uYVgWdcruHKnAjRJzWHf4ElmSl5nTcnbRnT3k4b2EFVfTt29NQ8l+zKf4EIUbi4kAnhz7ohuLiH1qCwwo62cf9ccf3l0jibh1DckPy3lKzmTcbYQWV9+k7HlArOjaEjmejRm9yaWmzOMMKMncCp9x9dwlkYEeEQUCBrO0IrqYcApx1xsV6XLt2nWl43kyQqyB38dQJPZ7MY56qdLsHGIL/iY3m24R0p2jc6BDZrkVHf3XTiBFfMy9PdbSgNotCYv6kDAPGVhCTT3vz3zCNT7o9PhHJsRoIwUJN518TS0qKrWI62q4xQ/H5uTsB+Q3I0521zrcfGf/KuTMDBrguXar7or2mSuCCRm1q4t6SN5sGOGZBTQ9DsRdgJEFpQeo8pRvRJe/MYeMUMe2lYlQczl4cBki7jT78DyCVTN32qfkuRJC8Mrd3nSGNzYoa5wYm+P5kvivv43kakBdbbWTk1zqRnlBa6jdt8j4UR1Fx9WQAUyG4aqtEUIHYBWJh4ay4dQ28ciBjJiAvR5Qx8jtEOROZsuliSFBCQc4LSvBs4xogLjmjolPLH156VLKyok4ePuKHyK1XOSN/0Bz6PUlFRaXmuzELLrmNYHCVQO6wEhjBT5zReHj99LiToUwdGPIYgNesYMPE8hDTtq0JCYovyD0KkVuaGZHvnfb6xpjPTnk8o5WS91qSNC2bo+fWZiqq1RDpZDOggMPhHPHuzKi99aIy8gHx2uQwJ9t69tr2IBPfyr3TqJPPwxE4dGScGp+//XKB2CIiQ6/YcXP3faUjGjITNII7IxBTT0eeitJjB6yfyUr5MrMrLtT6IXDZFHUWaTd0Y8LKieOVEb6JkjgwOCbTvTY726j0eFINwT4RcYRi0LVfJZeUfGqumeKimgNWp1kbQX7w/pxOmaEsHRw6BaKW2BRkBjWQCQUTFylR01td9ODjgRzfq6Gp18ezSEGmEyxJ3lfaz3w2en7VNKUQen+tQ9O0ezfMiv1QjmZcj1oJQGBvl09tKl0Fuf8Rkd+1Koj4NkqPS/lq3D+/PztoUNcLF6oOQ7AweV/p8yZm5LyqveGqWSTiSK4pnB33UH2WMtZAJMsWD7HIFHRQRFLbBnLR6Rzfk6G15PFM05R2NHFf8RazzwSDqs0Dl52ACJ6PuTm229psXhJ/xjQosZl5vs/4/NxKQNpegERQd7B3xVjfIcnK0iuPHYtOLC6uHjW/dqQoo9BO0O3ZRkfpt6+bEXNY/BmZUPJ+e/bN3pM76crPrRVIdHtAkpsDXl+oqjWMUfOrpoiC/cXbhjPqWnrhU7E75NB9dyFYt6+9uFq838/4gpwfILjOCpBkZsDr+6DBduTcmomAWmYFa9VGc3DQhplxn4h/aAqU+sIqLmRHfkZXQU6ZCG63AiRZlpQa1bu4/9K6UEGYXzMESm2zgrVqQ2i3FM6JPS7+jIEwT832xi668nN2CPBbqziN2lOV3uULTPusl6uTahTKIZFuKpt7JXGm36y4hDxSiX/YI1DG61bjupyhzaag1QJkWwfyrO6MSqkYu/QbEzNqXvV2EbnXOr51S2p4o3BWJ3Nja5btAohMsMfLV80qtxCQGXaAJJcEvL5pJmb0vJpxStRKO/hwtuYunE7ds+HJ6P1yfEwXVJ+vgCDWFi8xg64Vk7JFGattAg2nw9n35NjX92etEb32qxpzn3dNWSKxvHB2p0n12RkyHYJFtmIyjXUtnT3eye1Sc16+gUC3Q0CyJCk1aqBZIB6YKzfVsdrcMSTY4WiwJbC/C+J+vWIOq0TyHPDvNI8rKba4iBpERXUNHR9cBTkfi9j/LEJqLwW8y582OR6Ye7FXHYx3gTDnpjYiM8U4o5nZeCbyD50BpRbaEmMaE1uZtn3Y5fPQxGch6gXbJKDSdW1ExfhlW0zsmAXSxQjW+ARy1X1ZS+76k6vkd5G4J8zMhKZa2ahuqKs+DPOLn91BPsK0bctCghJXTLrDUMoPiO3PJAQvApwSyFme3xDD6PmXPCJ1MwA+KCI/axqbWZpBFFJ3LDYLQNN3cnDIEgim2NWC+unmYsqmc42XEq6C3FUiEtrpRjIIzBscm/mMeXZqih+9UOIhNbeFMhBkRb/ZMV+afaalDykb3gdBowRi/0cFtcVM2xqq1FcErZyYKoZ8FkmWGoMjjwGy6MaYTsv82a9eaOuHue2DJ6KP3P/KxQYbOThkB8R6g2/i8xwcsbfyjsJQX2x50XhNWboigGcBrKam7RKRMqce+vodYwiSIOihREYAPN5wJJGDGdkQsdc6Gpxp/AtTt/2t4c9mghIKJvcU1O0VQVQk084yhjgHxKac9i45I+VZsTj3/SGI/MIyvjF6VqBrbAoTC6vDCjIfulZM/KMo9YptchsAEk8HvPkvhdbVwYznIJJnA97EVBvLXlvfblZ0whG58nPWCvCHyJy0gyKPde7WOdVcP3JkWHfUqkOAxNn2Rcxn2vbZLXFhr15vW/nEdeeNcyUArr5ctO25OUAjH6z0+tZfzs4qRFJZiU1IHTySvPoDQKt3yeb1cFDJNhHcdI0amhQk7gh4fen1YoYPhgQ/ss/NzxHtHGj2nHDYNi/Hk9/MTQka2CoiN9t3fNVkUDr0/hU5b5SK5Gnw7yyCiMcWL+GH5sxkz80nWsO1e9uftHJysqHqtoigpy3nLYxJLgt4fY+EsnMg41FAltriIzciyjm2tcy0WuXCOUnKf/xGg1VvishwW0Fc8XIhNoYpJ7J9gfpLRByGyM8tc5FzkTromXBrxlJRaM2ReW0sSi0QQTfLwZiG1P582rv876Hs+DNehpKZFvEnoWE2U7dbbrrtTrmWjhPfeqybEby0ECLjrARF8ETML9DzxD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GRuw:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("lPiR"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=g.algo,x=y.SHA256,O=y.SHA224=x.extend({_doReset:function(){this._hash=new b.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var m=x._doFinalize.call(this);return m.sigBytes-=4,m}});g.SHA224=x._createHelper(O),g.HmacSHA224=x._createHmacHelper(O)}(),P.SHA224})},GfqC:function(k,z,o){"use strict";var P=o("q1tI"),g=o.n(P),T=o("TSYQ"),b=o.n(T);function y(W,F){var I="cannot "+W.method+" "+W.action+" "+F.status+"'",K=new Error(I);return K.status=F.status,K.method=W.method,K.url=W.action,K}function x(W){var F=W.responseText||W.response;if(!F)return F;try{return JSON.parse(F)}catch(I){return F}}function O(W){var F=new XMLHttpRequest;W.onProgress&&F.upload&&(F.upload.onprogress=function(he){he.total>0&&(he.percent=he.loaded/he.total*100),W.onProgress(he)});var I=new FormData;W.data&&Object.keys(W.data).forEach(function(ee){var he=W.data[ee];if(Array.isArray(he)){he.forEach(function(de){I.append(ee+"[]",de)});return}I.append(ee,W.data[ee])}),W.file instanceof Blob?I.append(W.filename,W.file,W.file.name):I.append(W.filename,W.file),F.onerror=function(he){W.onError(he)},F.onload=function(){return F.status<200||F.status>=300?W.onError(y(W,F),x(F)):W.onSuccess(x(F),F)},F.open(W.method,W.action,!0),W.withCredentials&&"withCredentials"in F&&(F.withCredentials=!0);var K=W.headers||{};return K["X-Requested-With"]!==null&&F.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(K).forEach(function(ee){K[ee]!==null&&F.setRequestHeader(ee,K[ee])}),F.send(I),{abort:function(){F.abort()}}}var m=+new Date,e=0;function f(){return"rc-upload-"+m+"-"+ ++e}function a(W,F){return W.indexOf(F,W.length-F.length)!==-1}var u=function(W,F){if(W&&F){var I=Array.isArray(F)?F:F.split(","),K=W.name||"",ee=W.type||"",he=ee.replace(/\/.*$/,"");return I.some(function(de){var Se=de.trim();return Se.charAt(0)==="."?a(K.toLowerCase(),Se.toLowerCase()):/\/\*$/.test(Se)?he===Se.replace(/\/.*$/,""):ee===Se})}return!0};function r(W,F){var I=W.createReader(),K=[];function ee(){I.readEntries(function(he){var de=Array.prototype.slice.apply(he);K=K.concat(de);var Se=!de.length;Se?F(K):ee()})}ee()}var i=function(F,I,K){var ee=function he(de,Se){Se=Se||"",de.isFile?de.file(function(Te){K(Te)&&(de.fullPath&&!Te.webkitRelativePath&&(Object.defineProperties(Te,{webkitRelativePath:{writable:!0}}),Te.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(Te,{webkitRelativePath:{writable:!1}})),I([Te]))}):de.isDirectory&&r(de,function(Te){Te.forEach(function(ce){he(ce,""+Se+de.name+"/")})})};F.forEach(function(he){ee(he.webkitGetAsEntry())})},n=i,l=Object.assign||function(W){for(var F=1;F=0)continue;if(!Object.prototype.hasOwnProperty.call(W,K))continue;I[K]=W[K]}return I}function w(W,F){if(!(W instanceof F))throw new TypeError("Cannot call a class as a function")}function E(W,F){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:W}function v(W,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);W.prototype=Object.create(F&&F.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(W,F):W.__proto__=F)}var R=function(F){return Object.keys(F).reduce(function(I,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-"||K==="role")&&(I[K]=F[K]),I},{})},M=function(W){v(F,W);function F(){var I,K,ee,he;w(this,F);for(var de=arguments.length,Se=Array(de),Te=0;Te>>2]>>>24-R%4*8&255;c[E+R>>>2]|=M<<24-(E+R)%4*8}else for(var C=0;C>>2]=w[C>>>2];return this.sigBytes+=v,this},clamp:function(){var s=this.words,c=this.sigBytes;s[c>>>2]&=4294967295<<32-c%4*8,s.length=T.ceil(c/4)},clone:function(){var s=f.clone.call(this);return s.words=this.words.slice(0),s},random:function(s){for(var c=[],w=0;w>>2]>>>24-v%4*8&255;E.push((R>>>4).toString(16)),E.push((R&15).toString(16))}return E.join("")},parse:function(s){for(var c=s.length,w=[],E=0;E>>3]|=parseInt(s.substr(E,2),16)<<24-E%8*4;return new a.init(w,c/2)}},i=u.Latin1={stringify:function(s){for(var c=s.words,w=s.sigBytes,E=[],v=0;v>>2]>>>24-v%4*8&255;E.push(String.fromCharCode(R))}return E.join("")},parse:function(s){for(var c=s.length,w=[],E=0;E>>2]|=(s.charCodeAt(E)&255)<<24-E%4*8;return new a.init(w,c)}},n=u.Utf8={stringify:function(s){try{return decodeURIComponent(escape(i.stringify(s)))}catch(c){throw new Error("Malformed UTF-8 data")}},parse:function(s){return i.parse(unescape(encodeURIComponent(s)))}},l=e.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(s){typeof s=="string"&&(s=n.parse(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes},_process:function(s){var c,w=this._data,E=w.words,v=w.sigBytes,R=this.blockSize,M=R*4,C=v/M;s?C=T.ceil(C):C=T.max((C|0)-this._minBufferSize,0);var S=C*R,_=T.min(S*4,v);if(S){for(var A=0;Ac.length&&(E=c.length);wv===R){const v=c[Symbol.iterator](),R=w[Symbol.iterator]();for(;;){const M=v.next(),C=R.next();if(M.done!==C.done)return!1;if(M.done)return!0;if(!E(M.value,C.value))return!1}}g.equals=s})(P||(P={}))},JeFH:function(k,z){k.exports="data:image/png;base64,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"},Jky8:function(k,z,o){"use strict";var P=o("sRBo"),g=o("kaz8"),T=o("5NDa"),b=o("5rEg"),y=o("miYZ"),x=o("tsqr"),O=o("9og8"),m=o("2qtc"),e=o("kLXV"),f=o("tJVT"),a=o("WmNS"),u=o.n(a),r=o("q1tI"),i=o.n(r),n=o("9kvl"),l=o("6CvP"),h=o("1XHU"),d=o("1vsH"),s;(function(w){w[w.Professor=1]="Professor",w[w.AssistantProfessor=2]="AssistantProfessor",w[w.Student=3]="Student"})(s||(s={}));var c=function(E){var v=E.visible,R=E.user,M=E.onCancel,C=M===void 0?function(){}:M,S=Object(r.useState)(),_=Object(f.a)(S,2),A=_[0],U=_[1],L=Object(r.useState)([]),N=Object(f.a)(L,2),V=N[0],H=N[1],D=Object(r.useState)(!1),W=Object(f.a)(D,2),F=W[0],I=W[1],K=Object(r.useState)(!1),ee=Object(f.a)(K,2),he=ee[0],de=ee[1],Se=Object(r.useState)(),Te=Object(f.a)(Se,2),ce=Te[0],be=Te[1];Object(r.useEffect)(function(){var $;if(R!=null&&($=R.userInfo)!==null&&$!==void 0&&$.identity){var me;H([(R==null||((me=R.userInfo)===null||me===void 0)?void 0:me.identity)==="student"?3:1])}},[R]);var Ee=function(me,re){if(V.includes(s.Professor)){e.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:i.a.createElement("div",{className:"tc"},re||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){n.d.push("/classrooms/".concat(me,"/students"))}});return}n.d.push("/classrooms/".concat(me,"/students"))},ue=function(){var $=Object(O.a)(u.a.mark(function me(){var re;return u.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(A){Oe.next=3;break}return x.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Oe.abrupt("return");case 3:return I(!0),Oe.next=6,Object(l.c)({invite_code:A,professor:V.includes(s.Professor)?1:null,assistant_professor:V.includes(s.AssistantProfessor)?1:null,student:V.includes(s.Student)?1:null});case 6:if(re=Oe.sent,I(!1),!((re==null?void 0:re.status)===-2)){Oe.next=22;break}if(le(),!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){Oe.next=14;break}return de(!0),be(1),Oe.abrupt("return");case 14:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){Oe.next=18;break}return de(!0),be(2),Oe.abrupt("return");case 18:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){Oe.next=22;break}return de(!0),be(3),Oe.abrupt("return");case 22:if(!((re==null?void 0:re.status)===0)){Oe.next=27;break}return Object(d.cb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),le(),(re==null?void 0:re.course_id)&&Ee(re.course_id,re.message),Oe.abrupt("return");case 27:case"end":return Oe.stop()}},me)}));return function(){return $.apply(this,arguments)}}(),le=function(){var $=Object(O.a)(u.a.mark(function me(){return u.a.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:C();case 1:case"end":return ae.stop()}},me)}));return function(){return $.apply(this,arguments)}}();return i.a.createElement(i.a.Fragment,null,i.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:v,confirmLoading:F,onOk:ue,onCancel:le},i.a.createElement("div",{className:"tc"},i.a.createElement("div",null,i.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),i.a.createElement(b.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:A,onChange:function(me){if(me.target.value.length>=7){x.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}U(me.target.value)}})),i.a.createElement("div",{className:"mt10 font14"},i.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),i.a.createElement(g.a.Group,{value:V,onChange:function(me){return H(me)}},i.a.createElement(g.a,{value:s.Professor,disabled:V.includes(2)||V.includes(3)},"\u6559\u5E08"),i.a.createElement(g.a,{value:s.AssistantProfessor,disabled:V.includes(1)},"\u52A9\u6559"),i.a.createElement(g.a,{value:s.Student,disabled:V.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),i.a.createElement(h.a,{visible:he,onCancel:function(){return de(!1)},occupationValue:ce}))};z.a=Object(n.a)(function(w){var E=w.user;return{user:E}})(c)},Jq4h:function(k,z,o){k.exports=o.p+"static/qrcode.2267e4d5.png"},Jv0p:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2RVge",flex_space_between:"flex_space_between___2f-dJ",flex_box_vertical_center:"flex_box_vertical_center___2UjfS",flex_box_center_end:"flex_box_center_end___1RfMW",flex_box_column:"flex_box_column___3uuIq",sidebar:"sidebar___Ik5Ae",items:"items___2qrP5",item:"item___24ylH",name:"name___1UcvU",itemActive:"itemActive___1Bj1D",question:"question___2fGw1"}},K3mO:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.Base,y=T.WordArray,x=g.algo,O=x.MD5,m=x.EvpKDF=b.extend({cfg:b.extend({keySize:128/32,hasher:O,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var a,u=this.cfg,r=u.hasher.create(),i=y.create(),n=i.words,l=u.keySize,h=u.iterations;n.lengthEe)){le.next=7;break}return T.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Ee/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),le.abrupt("return",!1);case 7:return D.push({name:be.name,file:be}),W(Object(b.a)(D)),N.onChange(D),le.abrupt("return",!1);case 11:case"end":return le.stop()}},ce)}));function Te(ce){return Se.apply(this,arguments)}return Te}()},de=function(){var Se=Object(m.a)(u.a.mark(function Te(ce,be){var Ee,ue,le,$,me,re,ae,Oe,se,te;return u.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return be.file_name=ce.name,ae=ce.name,J.next=4,Object(n.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(Oe=J.sent,Oe.data=JSON.parse(v(Oe.data)),!((Oe==null?void 0:Oe.status)!==0)){J.next=12;break}return D[D.findIndex(function(ve){return ve.name===ae})].status="error",D[D.findIndex(function(ve){return ve.name===ae})].file.status="error",N.onChange(D),T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),J.abrupt("return");case 12:return K=new w.a({endpoint:Oe==null||((Ee=Oe.data)===null||Ee===void 0)?void 0:Ee.end_point,region:Oe==null||((ue=Oe.data)===null||ue===void 0)?void 0:ue.region,accessKeyId:Oe==null||((le=Oe.data)===null||le===void 0)?void 0:le.access_key_id,accessKeySecret:Oe==null||(($=Oe.data)===null||$===void 0)?void 0:$.access_key_secret,bucket:Oe==null||((me=Oe.data)===null||me===void 0)?void 0:me.bucket,stsToken:Oe==null||((re=Oe.data)===null||re===void 0)?void 0:re.security_token}),console.log(ce,"file"),ee(K),se=ce.name.split("."),se.pop(),te=be.realFileName?se:Object(d.a)(),J.abrupt("return",new Promise(function(ve,_e){try{var Ae;K.multipartUpload("".concat(N.identifier,"/").concat(te).concat(ae.indexOf(".")>-1?"."+ae.split(".").pop():""),new Blob([ce.file],{type:ce.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(tt,dt,mt){try{console.log("\u8FDB\u5EA6",tt,dt,mt);var vt=D.findIndex(function(Et){return Et.name===ae});D[vt].file.percent=tt*100,D[vt].tempCheckpoint=dt,W(Object(b.a)(D))}catch(Et){}},checkpoint:D[D.findIndex(function(Qe){return Qe.name===ae})].tempCheckpoint,callback:{customValue:{id:ae+""},url:Oe==null||((Ae=Oe.data)===null||Ae===void 0)?void 0:Ae.callback_url,host:Oe==null?void 0:Oe.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(n.e)(be)}}).then(function(Qe){var tt,dt=D.findIndex(function(Ue){return Ue.name===ae}),mt="done";if(((tt=Qe.data)===null||tt===void 0?void 0:tt.status)===0){var vt;ce.response=(vt=Qe.data)===null||vt===void 0?void 0:vt.data;var Et=D.findIndex(function(Ue){return Ue.name===ae});D[Et].status="done",D[Et].file.status="done"}else{var Ye;T.b.warn((Ye=Qe.data)===null||Ye===void 0?void 0:Ye.message),mt="error"}D[dt].status=mt,D[dt].file.status=mt,N.onChange(D),ve(Qe==null?void 0:Qe.data)}).catch(function(Qe){D[D.findIndex(function(tt){return tt.name===ae})].status="error",D[D.findIndex(function(tt){return tt.name===ae})].file.status="error",T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),W(Object(b.a)(D)),N.onChange(D),_e(Qe),console.log("err:",Qe)})}catch(Qe){}}));case 19:case"end":return J.stop()}},Te)}));return function(ce,be){return Se.apply(this,arguments)}}();return Object(r.useEffect)(function(){D.every(function(Se){return Se==="done"||Se==="error"})&&N.onComplete(D)},[D]),Object(r.useEffect)(function(){if(L){var Se;(Se=K)===null||Se===void 0||Se.cancel()}},[L]),Object(r.useEffect)(function(){N.uploading&&D.map(function(){var Se=Object(m.a)(u.a.mark(function Te(ce){var be,Ee;return u.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(!((!ce.status||ce.status==="error")&&!L)){le.next=6;break}return ce.status="uploading",ce.file.status="uploading",le.next=5,de(ce,{login:U==null||((be=U.userInfo)===null||be===void 0)?void 0:be.login,container_type:N.container_type,container_id:N.container_id,description:N.description,realFileName:N.realFileName});case 5:Ee=le.sent;case 6:case"end":return le.stop()}},Te)}));return function(Te){return Se.apply(this,arguments)}}())},[N.uploading]),i.a.createElement(E,Object(P.a)({},he,{height:N.height,className:N.className}),i.a.createElement("p",{className:"ant-upload-hint"},N.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};z.b=Object(s.a)(function(_){var A=_.loading,U=_.globalSetting,L=_.user;return{globalSetting:U,loading:A.models.competitions,user:L}})(S)},KmYQ:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.ZeroPadding={pad:function(g,T){var b=T*4;g.clamp(),g.sigBytes+=b-(g.sigBytes%b||b)},unpad:function(g){for(var T=g.words,b=g.sigBytes-1,b=g.sigBytes-1;b>=0;b--)if(T[b>>>2]>>>24-b%4*8&255){g.sigBytes=b+1;break}}},P.pad.ZeroPadding})},"L+Ii":function(k,z,o){k.exports={wrap:"wrap___3xyR8",labelWrap:"labelWrap___1IxCy",label:"label___22JJP",labelContent:"labelContent___3L5_8",flexRow:"flexRow___15gwv",color999:"color999___i4XxJ",radio:"radio___2Vrn9",selectSchool:"selectSchool___20PAH",dataPicker:"dataPicker___3ZrBg",modal:"modal___3_BbV",colorOrange:"colorOrange___3BuSt",colorYellow:"colorYellow___brbb2"}},LSTS:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var P=function(){function u(r,i){for(var n=0;n=0)continue;if(!Object.prototype.hasOwnProperty.call(u,n))continue;i[n]=u[n]}return i}function m(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function e(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function f(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var a=function(u){f(r,u);function r(i){m(this,r);var n=e(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return P(r,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var n=this.getParentElement(this.scrollComponent);n.scrollTop=n.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var n=!1,l={get passive(){n=!0}};try{document.addEventListener("test",null,l),document.removeEventListener("test",null,l)}catch(h){}return n}},{key:"eventListenerOptions",value:function(){var n=this.props.useCapture;return this.isPassiveSupported()&&(n={useCapture:this.props.useCapture,passive:!0}),n}},{key:"setDefaultLoader",value:function(n){this.defaultLoader=n}},{key:"detachMousewheelListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.scrollComponent.parentNode),n.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.getParentElement(this.scrollComponent)),n.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(n){var l=this.props.getScrollParent&&this.props.getScrollParent();return l!=null?l:n&&n.parentNode}},{key:"filterProps",value:function(n){return n}},{key:"attachScrollListener",value:function(){var n=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!n)return;var l=window;this.props.useWindow===!1&&(l=n),l.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),l.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),l.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(n){n.deltaY===1&&!this.isPassiveSupported()&&n.preventDefault()}},{key:"scrollListener",value:function(){var n=this.scrollComponent,l=window,h=this.getParentElement(n),d=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,c=l.pageYOffset!==void 0?l.pageYOffset:s.scrollTop;this.props.isReverse?d=c:d=this.calculateOffset(n,c)}else this.props.isReverse?d=h.scrollTop:d=n.scrollHeight-h.scrollTop-h.clientHeight;d1&&arguments[1]!==void 0?arguments[1]:1,Ge=Ae.length,Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:!1;return Object(R.a)(I).map(function(ee,he){if(!y.isValidElement(ee)||!ee.type)return null;var de=ee.type.isSelectOptGroup,Se=ee.key,Te=ee.props,ce=Te.children,be=Object(O.a)(Te,["children"]);return K||!de?M(ee):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(Se===null?he:Se,"__"),label:Se},be),{},{options:C(ce)})}).filter(function(ee){return ee})}var S=o("2Qr1"),_=o("qNPg"),A=o("U8pU"),U=o("Kwbf"),L=o("WKfj");function N(I){var K=I.mode,ee=I.options,he=I.children,de=I.backfill,Se=I.allowClear,Te=I.placeholder,ce=I.getInputElement,be=I.showSearch,Ee=I.onSearch,ue=I.defaultOpen,le=I.autoFocus,$=I.labelInValue,me=I.value,re=I.inputValue,ae=I.optionLabelProp,Oe=K==="multiple"||K==="tags",se=be!==void 0?be:Oe||K==="combobox",te=ee||C(he);if(Object(U.a)(K!=="tags"||te.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var Q=te.some(function(_e){return _e.options?_e.options.some(function(Ae){return typeof("value"in Ae?Ae.value:Ae.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(U.a)(!Q,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(U.a)(K!=="combobox"||!ae,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(U.a)(K==="combobox"||!de,"`backfill` only works with `combobox` mode."),Object(U.a)(K==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(U.b)(K!=="combobox"||!ce||!Se||!Te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ee&&!se&&K!=="combobox"&&K!=="tags"&&Object(U.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(U.b)(!ue||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),me!=null){var J=Object(L.d)(me);Object(U.a)(!$||J.every(function(_e){return Object(A.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(U.a)(!Oe||Array.isArray(me),"`value` should be array when `mode` is `multiple` or `tags`")}if(he){var ve=null;Object(R.a)(he).some(function(_e){if(!y.isValidElement(_e)||!_e.type)return!1;var Ae=_e.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var Qe=Object(R.a)(_e.props.children).every(function(tt){return!y.isValidElement(tt)||!_e.type||tt.type.isSelectOption?!0:(ve=tt.type,!1)});return!Qe}return ve=Ae,!0}),ve&&Object(U.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(U.a)(re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var V=N,H=Object(_.a)({prefixCls:"rc-select",components:{optionList:d},convertChildrenToData:C,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:V,fillOptionsWithMissingValue:S.a}),D=function(I){Object(T.a)(ee,I);var K=Object(b.a)(ee);function ee(){var he;return Object(P.a)(this,ee),he=K.apply(this,arguments),he.selectRef=y.createRef(),he.focus=function(){he.selectRef.current.focus()},he.blur=function(){he.selectRef.current.blur()},he}return Object(g.a)(ee,[{key:"render",value:function(){return y.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),ee}(y.Component);D.Option=c,D.OptGroup=E;var W=D,F=z.c=W},Lf5v:function(k,z,o){"use strict";var P=o("5NDa"),g=o("5rEg"),T=o("2qtc"),b=o("kLXV"),y=o("k1fw"),x=o("oBTY"),O=o("9og8"),m=o("miYZ"),e=o("tsqr"),f=o("y8nQ"),a=o("Vl3Y"),u=o("tJVT"),r=o("DZo9"),i=o("8z0m"),n=o("WmNS"),l=o.n(n),h=o("q1tI"),d=o.n(h),s=o("m3rI"),c=o("ErOA"),w=o("sckv"),E=o.n(w),v=o("KhGG"),R=o("1vsH"),M=i.a.Dragger,C=function(_){var A,U=_.dispatch,L=_.id,N=_.onClose,V=_.onOK,H=_.visible,D=_.wrapClassName,W=_.local,F=_.containerId,I=_.rootIdentifier,K=Object(h.useState)({}),ee=Object(u.a)(K,2),he=ee[0],de=ee[1],Se=Object(h.useState)([]),Te=Object(u.a)(Se,2),ce=Te[0],be=Te[1],Ee=Object(h.useState)([]),ue=Object(u.a)(Ee,2),le=ue[0],$=ue[1],me=Object(h.useState)(0),re=Object(u.a)(me,2),ae=re[0],Oe=re[1],se=Object(h.useState)(!1),te=Object(u.a)(se,2),Q=te[0],J=te[1],ve=Object(h.useState)(!1),_e=Object(u.a)(ve,2),Ae=_e[0],Qe=_e[1],tt=a.a.useForm(),dt=Object(u.a)(tt,1),mt=dt[0],vt=Object(h.useState)([]),Et=Object(u.a)(vt,2),Ye=Et[0],Ue=Et[1],ft=Object(h.useRef)([]);Object(h.useEffect)(function(){H&&(mt.resetFields(),Ue([]),$([]),be([]),Oe(0),Qe(!1),J(!1))},[H]);var jt=function(Ke){if(Ke.file.status==="done"||Ke.file.status==="uploading"){var et,at,Pe;if(Ue(Ke.fileList),!Ke.file.response)return;if((et=Ke.file.response)!==null&&et!==void 0&&et.id){e.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Ue(Ye.filter(function(Xe){return Xe.uid!==Ke.file.uid})),((at=Ke.file.response)===null||at===void 0?void 0:at.message)&&e.b.info((Pe=Ke.file.response)===null||Pe===void 0?void 0:Pe.message)}},yt=function(){var Ct=Object(O.a)(l.a.mark(function Ke(et){var at,Pe,Xe;return l.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(ae){_t.next=8;break}return Pe=Ye.filter(function(Ot){return Ot.uid!==et.uid}),Ue(Pe),ft.current=Object(x.a)(Pe),be(ce.filter(function(Ot){return Ot!==et.name})),e.b.info("\u5220\u9664\u6210\u529F"),Pe.length||(mt.setFieldsValue({file:void 0}),mt.validateFields()),_t.abrupt("return");case 8:if(et.response){_t.next=11;break}return e.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),_t.abrupt("return");case 11:return _t.next=13,Object(c.a)("/api/shixuns/".concat(L,"/destroy_data_sets.json"),{method:"Delete",body:{id:[et==null||((at=et.response)===null||at===void 0)?void 0:at.id]}});case 13:Xe=_t.sent,Xe.status===0&&(Ue(Ye.filter(function(Ot){return Ot.uid!==et.uid})),e.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return _t.stop()}},Ke)}));return function(et){return Ct.apply(this,arguments)}}(),Pt=function(Ke){if(Ye!=null&&Ye.some(function(at){return at.name===Ke.name}))return e.b.info("".concat(Ke.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var et={name:Ke.name,uid:Ke.uid,file:Ke,percent:0};return Ye.push(et),ft.current=Object(x.a)(Ye),Ue(Object(x.a)(Ye)),!1},it={height:300,multiple:!0,disabled:ae>0,withCredentials:!0,fileList:Ye,action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:jt,onRemove:yt,beforeUpload:Pt},He=function(Ke,et,at,Pe,Xe){var ht=new FormData;Object.keys(Ke).forEach(function(Ot){ht.append(Ot,Ke[Ot])});var _t=new window.XMLHttpRequest;return _t.withCredentials=!0,_t.addEventListener("load",function(Ot){var Nt;at(JSON.parse(Ot==null||((Nt=Ot.target)===null||Nt===void 0)?void 0:Nt.response))},!1),_t.addEventListener("error",function(Ot){Xe&&Xe(Ot)},!1),_t.upload.onprogress=function(Ot){Pe&&Pe(Ot)},_t.open("POST",et),_t.send(ht),_t},Ge=function(Ke,et){if(Ke.lengthComputable){var at=Math.floor(Ke.loaded/Ke.total*100),Pe=Object(y.a)(Object(y.a)({},et),{},{percent:at,status:at===100?"done":"uploading"});console.log(ft.current,333),ft.current=ft.current.map(function(Xe){return Xe.uid===et.uid?Pe:Xe}),Ue(ft.current)}},Ce=function(Ke,et){var at=Object(y.a)(Object(y.a)({},et),{},{status:"error"});e.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ft.current=ft.current.map(function(Pe){return Pe.uid===et.uid?at:Pe}),ft.current.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&(Qe(!1),Oe(2)),Ue(ft.current)},Ie=function(Ke,et){var at=Object(y.a)(Object(y.a)({},et),{},{status:"done"});if(Ke.status===0||(at=Object(y.a)(Object(y.a)({},et),{},{status:"error"}),e.b.error("\u4E0A\u4F20\u5931\u8D25!")),ft.current=ft.current.map(function(Pe){return Pe.uid===et.uid?at:Pe}),ft.current.every(function(Pe){return Pe.status==="done"})){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Dt(!0);return}ft.current.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&(Qe(!1),Oe(2)),Ue(ft.current)},Fe=function(){var Ke=!0;return window.navigator.onLine==!0?Ke=!0:Ke=!1,Ke},Be=function(){var Ct=Object(O.a)(l.a.mark(function Ke(et){var at,Pe,Xe,ht,_t,Ot,Nt,ut;return l.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:if(Qe(!0),!(ae===3)){It.next=4;break}return Oe(2),It.abrupt("return");case 4:if(!(ae===2||ae===1)){It.next=7;break}return We(),It.abrupt("return");case 7:return at=et||{},Pe=at.commitMessage,Xe=Pe===void 0?"":Pe,ht=at.fileOss,_t=ht===void 0?[]:ht,Ot=W?Ye:_t,Nt=Ot.map(function(on){return on.name}),It.next=12,Object(c.a)("/api/shixuns/".concat(L,"/check_data_sets"),{method:"post",body:{files_name:Nt}});case 12:if(ut=It.sent,!(ut.status===-3)){It.next=17;break}return be(ut==null?void 0:ut.exist_files),Qe(!1),It.abrupt("return");case 17:if(!(JSON.stringify(ut)==="{}")){It.next=21;break}return Qe(!1),e.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),It.abrupt("return");case 21:ut.status===0&&(Ye.forEach(function(on){var mn=He({file:on.file,description:Xe},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(L,"/upload_data_sets.json"),function(Hn){return Ie(Hn,on)},function(Hn){return Ge(Hn,on)},function(Hn){return Ce(Hn,on)});le.push(mn)}),Oe(1));case 22:case"end":return It.stop()}},Ke)}));return function(et){return Ct.apply(this,arguments)}}(),We=function(){var Ke=Object(y.a)({},mt.getFieldsValue())||{},et=Ke.commitMessage,at=et===void 0?"":et,Pe=ft.current.filter(function(ht){return ht.status==="error"}),Xe=ft.current.map(function(ht){return Object(y.a)(Object(y.a)({},ht),{},{status:ht.status==="error"?"uploading":ht.status})});Ue(Xe),Pe.forEach(function(ht){var _t=He({file:ht.file,description:at},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(L,"/upload_data_sets.json"),function(Ot){return Ie(Ot,ht)},function(Ot){return Ge(Ot,ht)},function(Ot){return Ce(Ot,ht)});le.push(_t)})},st=function(Ke){if(console.log(Ke,"changedValues"),"fileOss"in Ke){var et,at;if(Ke!=null&&Ke.fileOss.every(function(Pe){return Pe.status==="done"})&&Ke!==null&&Ke!==void 0&&(et=Ke.fileOss)!==null&&et!==void 0&&et.length){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Dt(!0);return}if(Ke!=null&&Ke.fileOss.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&Ke!==null&&Ke!==void 0&&(at=Ke.fileOss)!==null&&at!==void 0&&at.length){Oe(3),Qe(!1);return}be(ce.filter(function(Pe){var Xe;return Ke==null||((Xe=Ke.fileOss)===null||Xe===void 0)?void 0:Xe.some(function(ht){return ht.name===Pe})}))}de(Object(y.a)({},mt.getFieldsValue()))},Dt=function(Ke){Ke||(J(!0),le.forEach(function(et){et.abort()})),V(),N()},Ht=function(){var Ke=Object(y.a)({},mt.getFieldsValue())||{},et=Ke.fileOss,at=et===void 0?[]:et,Pe=Ye==null?void 0:Ye.every(function(ht){return ht.status==="done"}),Xe=at==null?void 0:at.every(function(ht){return ht.status==="done"});if(!Pe||!Xe){b.a.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Dt()}});return}Dt()},rn=function(){return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",null,d.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(E.a.colorBlue)})),d.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",d.a.createElement("span",{className:"".concat(E.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},Bt=function(Ke){console.log(Ke,444)};return d.a.createElement(b.a,{visible:H,wrapClassName:D,onOk:function(){Object(R.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),mt.submit()},centered:!0,okText:ae===0?"\u786E\u5B9A":ae===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:Ae},onCancel:Ht,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},d.a.createElement("div",{className:E.a.wrap},d.a.createElement(a.a,{className:"mt10",form:mt,scrollToFirstError:!0,layout:"vertical",onFinish:Be,onValuesChange:st},W?d.a.createElement(a.a.Item,{label:d.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",d.a.createElement("span",{style:{visibility:"hidden"},className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7500M)")),name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},d.a.createElement(M,it," ",rn())):d.a.createElement(a.a.Item,{label:d.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",d.a.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7100GB)")),name:"fileOss",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},d.a.createElement(v.b,{identifier:I,cancelUpload:Q,container_type:"Shixun",container_id:F,uploading:ae<3?ae:0,disabled:ae>0,height:300,maxSize:100*1024*1024*1024,description:he.commitMessage||"",text:rn(),onComplete:Bt,realFileName:!0})),!!ce.length&&d.a.createElement("span",{className:E.a.repeatedName},ce.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),d.a.createElement(a.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},d.a.createElement(g.a,{bordered:!1,disabled:ae>0,maxLength:100,suffix:"".concat(((A=he.commitMessage)===null||A===void 0?void 0:A.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};z.a=C},LicW:function(k,z,o){"use strict";var P=o("T2oS"),g=o("W9HT"),T=o("5Dmo"),b=o("3S7+"),y=o("q1tI"),x=o.n(y),O=o("ZJlW"),m=o.n(O),e=o("m3rI"),f=o("TSYQ"),a=o.n(f),u=o("1vsH"),r=o("z4EP"),i=o.n(r),n=o("+GGh"),l=o.n(n),h=o("cFMs"),d=o.n(h),s=o("BdwD"),c=function(E){var v=E.className,R=E.dataSource,M=R===void 0?[]:R,C=E.col,S=C===void 0?4:C,_=E.right,A=E.bottom,U=A===void 0?23:A,L=E.precision,N=L===void 0?0:L,V=E.wrapWidth,H=V===void 0?1200:V,D=E.trackEventItems,W=E.loading,F=Math.floor((H-(S-1)*_)/S);return x.a.createElement(g.a,{spinning:W},x.a.createElement("div",{className:a()(m.a.list,v)},!!M.length&&M.map(function(I,K){var ee=I.name,he=I.id,de=I.identifier,Se=I.featured,Te=I.school_name,ce=I.image_url,be=I.excellent;return x.a.createElement("div",{key:he,className:m.a.wrap,style:{width:F,marginRight:(1+K)%S===0?0:_+N,marginBottom:U}},x.a.createElement("a",{target:"_blank",href:"/paths/".concat(de),className:m.a.li,onClick:function(ue){ue.preventDefault(),D&&Object(u.cb)([D]),Object(u.S)("/paths/".concat(de))}},x.a.createElement("div",{className:m.a.img},x.a.createElement("img",{className:m.a.cover,src:"".concat(e.a.IMG_SERVER,"/").concat(ce)}),Se===1&&x.a.createElement("img",{className:m.a.sign,src:i.a}),Se===2&&x.a.createElement("img",{className:m.a.sign,src:""}),Se===3&&x.a.createElement("img",{className:m.a.sign,src:l.a}),Se===4&&x.a.createElement("img",{className:m.a.sign,src:""}),Se===5&&x.a.createElement("img",{className:m.a.sign,src:d.a})),x.a.createElement("div",{className:m.a.name},x.a.createElement(b.a,{title:ee},x.a.createElement("span",{className:m.a.e},ee))),x.a.createElement(b.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Te)},x.a.createElement("div",{className:m.a.unit},x.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Te)),x.a.createElement("div",{className:m.a.tags},x.a.createElement(b.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},x.a.createElement("span",null,x.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),x.a.createElement("span",null,I.stages_count))),x.a.createElement(b.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},x.a.createElement("span",null,x.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),x.a.createElement("span",null,I.members_count))),be&&x.a.createElement("div",{className:m.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!M.length&&x.a.createElement(s.a,null)))};z.a=c},M8RZ:function(k,z,o){"use strict";o.d(z,"a",function(){return e});var P=o("fWQN"),g=o("mtLc"),T=o("yKVA"),b=o("879j"),y=o("q1tI"),x=o.n(y),O=o("i8i4"),m=o.n(O),e=function(f){Object(T.a)(u,f);var a=Object(b.a)(u);function u(r){var i;Object(P.a)(this,u),i=a.call(this,r);var n=window.document;return i.node=n.createElement("div"),n.body.appendChild(i.node),i}return Object(g.a)(u,[{key:"render",value:function(){var i=this.props.children;return Object(O.createPortal)(i,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),u}(x.a.Component)},MEgm:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},MI8n:function(k,z,o){"use strict";o.d(z,"c",function(){return y}),o.d(z,"b",function(){return e}),o.d(z,"e",function(){return f}),o.d(z,"a",function(){return a}),o.d(z,"d",function(){return u}),o.d(z,"f",function(){return r});var P=o("/cxE"),g=o("pmY6"),T=o("24hK"),b=o("5Y4S"),y;(function(i){i.None=()=>g.a.None;function n(N){return(V,H=null,D)=>{let W=!1,F;return F=N(I=>W?void 0:(F?F.dispose():W=!0,V.call(H,I)),null,D),W&&F.dispose(),F}}i.once=n;function l(N,V){return E((H,D=null,W)=>N(F=>H.call(D,V(F)),null,W))}i.map=l;function h(N,V){return E((H,D=null,W)=>N(F=>{V(F),H.call(D,F)},null,W))}i.forEach=h;function d(N,V){return E((H,D=null,W)=>N(F=>V(F)&&H.call(D,F),null,W))}i.filter=d;function s(N){return N}i.signal=s;function c(...N){return(V,H=null,D)=>Object(g.e)(...N.map(W=>W(F=>V.call(H,F),null,D)))}i.any=c;function w(N,V,H){let D=H;return l(N,W=>(D=V(D,W),D))}i.reduce=w;function E(N){let V;const H=new e({onFirstListenerAdd(){V=N(H.fire,H)},onLastListenerRemove(){V.dispose()}});return H.event}function v(N,V,H=100,D=!1,W){let F,I,K,ee=0;const he=new e({leakWarningThreshold:W,onFirstListenerAdd(){F=N(de=>{ee++,I=V(I,de),D&&!K&&(he.fire(I),I=void 0),clearTimeout(K),K=setTimeout(()=>{const Se=I;I=void 0,K=void 0,(!D||ee>1)&&he.fire(Se),ee=0},H)})},onLastListenerRemove(){F.dispose()}});return he.event}i.debounce=v;function R(N,V=(H,D)=>H===D){let H=!0,D;return d(N,W=>{const F=H||!V(W,D);return H=!1,D=W,F})}i.latch=R;function M(N,V){return[i.filter(N,V),i.filter(N,H=>!V(H))]}i.split=M;function C(N,V=!1,H=[]){let D=H.slice(),W=N(K=>{D?D.push(K):I.fire(K)});const F=()=>{D&&D.forEach(K=>I.fire(K)),D=null},I=new e({onFirstListenerAdd(){W||(W=N(K=>I.fire(K)))},onFirstListenerDidAdd(){D&&(V?setTimeout(F):F())},onLastListenerRemove(){W&&W.dispose(),W=null}});return I.event}i.buffer=C;class S{constructor(N){this.event=N}map(N){return new S(l(this.event,N))}forEach(N){return new S(h(this.event,N))}filter(N){return new S(d(this.event,N))}reduce(N,V){return new S(w(this.event,N,V))}latch(){return new S(R(this.event))}debounce(N,V=100,H=!1,D){return new S(v(this.event,N,V,H,D))}on(N,V,H){return this.event(N,V,H)}once(N,V,H){return n(this.event)(N,V,H)}}function _(N){return new S(N)}i.chain=_;function A(N,V,H=D=>D){const D=(...K)=>I.fire(H(...K)),W=()=>N.on(V,D),F=()=>N.removeListener(V,D),I=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return I.event}i.fromNodeEventEmitter=A;function U(N,V,H=D=>D){const D=(...K)=>I.fire(H(...K)),W=()=>N.addEventListener(V,D),F=()=>N.removeEventListener(V,D),I=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return I.event}i.fromDOMEventEmitter=U;function L(N){return new Promise(V=>n(N)(V))}i.toPromise=L})(y||(y={}));class x{constructor(i){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${i}_${x._idPool++}`}start(i){this._stopWatch=new b.a(!0),this._listenerCount=i}stop(){if(this._stopWatch){const i=this._stopWatch.elapsed();this._elapsedOverall+=i,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${i.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}x._idPool=0;let O=-1;class m{constructor(i,n=Math.random().toString(18).slice(2,5)){this.customThreshold=i,this.name=n,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(i){let n=O;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||i>>24)&16711935|(M<<24|M>>>8)&4278255360}var C=this._hash.words,S=u.words,_=r.words,A=m.words,U=e.words,L=f.words,N=a.words,V,H,D,W,F,I,K,ee,he,de;I=V=C[0],K=H=C[1],ee=D=C[2],he=W=C[3],de=F=C[4];for(var Se,v=0;v<80;v+=1)Se=V+w[E+A[v]]|0,v<16?Se+=n(H,D,W)+S[0]:v<32?Se+=l(H,D,W)+S[1]:v<48?Se+=h(H,D,W)+S[2]:v<64?Se+=d(H,D,W)+S[3]:Se+=s(H,D,W)+S[4],Se=Se|0,Se=c(Se,L[v]),Se=Se+F|0,V=F,F=W,W=c(D,10),D=H,H=Se,Se=I+w[E+U[v]]|0,v<16?Se+=s(K,ee,he)+_[0]:v<32?Se+=d(K,ee,he)+_[1]:v<48?Se+=h(K,ee,he)+_[2]:v<64?Se+=l(K,ee,he)+_[3]:Se+=n(K,ee,he)+_[4],Se=Se|0,Se=c(Se,N[v]),Se=Se+de|0,I=de,de=he,he=c(ee,10),ee=K,K=Se;Se=C[1]+D+he|0,C[1]=C[2]+W+de|0,C[2]=C[3]+F+I|0,C[3]=C[4]+V+K|0,C[4]=C[0]+H+ee|0,C[0]=Se},_doFinalize:function(){var w=this._data,E=w.words,v=this._nDataBytes*8,R=w.sigBytes*8;E[R>>>5]|=128<<24-R%32,E[(R+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,w.sigBytes=(E.length+1)*4,this._process();for(var M=this._hash,C=M.words,S=0;S<5;S++){var _=C[S];C[S]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return M},clone:function(){var w=x.clone.call(this);return w._hash=this._hash.clone(),w}});function n(w,E,v){return w^E^v}function l(w,E,v){return w&E|~w&v}function h(w,E,v){return(w|~E)^v}function d(w,E,v){return w&v|E&~v}function s(w,E,v){return w^(E|~v)}function c(w,E){return w<>>32-E}T.RIPEMD160=x._createHelper(i),T.HmacRIPEMD160=x._createHmacHelper(i)}(Math),P.RIPEMD160})},ETIr:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=g.enc,x=y.Base64={stringify:function(m){var e=m.words,f=m.sigBytes,a=this._map;m.clamp();for(var u=[],r=0;r>>2]>>>24-r%4*8&255,n=e[r+1>>>2]>>>24-(r+1)%4*8&255,l=e[r+2>>>2]>>>24-(r+2)%4*8&255,h=i<<16|n<<8|l,d=0;d<4&&r+d*.75>>6*(3-d)&63));var s=a.charAt(64);if(s)for(;u.length%4;)u.push(s);return u.join("")},parse:function(m){var e=m.length,f=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var u=0;u>>6-r%4*2,l=i|n;a[u>>>2]|=l<<24-u%4*8,u++}return b.create(a,u)}}(),P.enc.Base64})},EkPF:function(k,z,o){k.exports={practiceSetting:"practiceSetting___2ttNt",wrapHeader:"wrapHeader___2dgOY",wrapLayout:"wrapLayout___3zol1",wrapSidebar:"wrapSidebar___3imKs",wrapContent:"wrapContent___3L8H_"}},"F+F2":function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){if(typeof ArrayBuffer!="function")return;var g=P,T=g.lib,b=T.WordArray,y=b.init,x=b.init=function(O){if(O instanceof ArrayBuffer&&(O=new Uint8Array(O)),(O instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&O instanceof Uint8ClampedArray||O instanceof Int16Array||O instanceof Uint16Array||O instanceof Int32Array||O instanceof Uint32Array||O instanceof Float32Array||O instanceof Float64Array)&&(O=new Uint8Array(O.buffer,O.byteOffset,O.byteLength)),O instanceof Uint8Array){for(var m=O.byteLength,e=[],f=0;f>>2]|=O[f]<<24-f%4*8;y.call(this,e,m)}else y.apply(this,arguments)};x.prototype=b}(),P.lib.WordArray})},FOrL:function(k,z,o){k.exports=o.p+"static/nodata.a6b3f948.png"},FPkq:function(k,z,o){k.exports=o.p+"static/qrCode.dd0fe9b2.png"},FTkQ:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABjUlEQVQ4T61VsUoDQRB9s+eVYifkUlqIWCW3sbBMqYUR0cbfUPETxPgZ2giigpZaCnKXpBK1sMydpIx25+7ISu5ILhsjclvuzLx5M292lmA57PtuF2gIYIMBSYBn3BiICAg1cF0GrqjVSvLhlL+IqtVNEDUZWLAlS+8IeAPzvtduXw77ZYAMiEjKI2LeY2AskQ2cAGaiEy8MDwnQxicL7Ep5bDL+xmqijahZDsODDHBQ5sVfmVn6xmDeMuWTESAGnqf1bBpz09MSsESx729r4DwfIIA6hPjUSt2AaP7Hztwj5nXHdd0vpR7yMQzsUOT7pwzsjgEKsVIKgiCu1Za1UvfGLhynXgqCp6hSkSxEYCn9jLq+/wJgcawk5l4KYECN3YBlCVLWo4GvhmGfgVlrj4ZAjX0KmBmZD8Owj4IAMQAsvGSrKKR1zet0QpsosZQrmvnRKsqksZlxnFWVJAkT3Y6MDbAmgDlFdGcdm8IH22Qp9OmltAtdDoPlWez6SpkWtmCHFTNCvQMN/scX8A1e4fnIOEHt8AAAAABJRU5ErkJggg=="},FWmy:function(k,z,o){"use strict";o.d(z,"a",function(){return P});function P(g,T){if(!g)throw new Error(T?`Assertion failed (${T})`:"Assertion Failed")}},Fhpe:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1W7Bl",flex_space_between:"flex_space_between___3S4Sp",flex_box_vertical_center:"flex_box_vertical_center___5mGEA",flex_box_center_end:"flex_box_center_end___1blqp",flex_box_column:"flex_box_column___4i1E0",CustomCss:"CustomCss___3thFA",CustomTipsModalCss:"CustomTipsModalCss___2aNwC",dropdownmenus:"dropdownmenus___19dGk",popupClassNames:"popupClassNames___3LOFQ",selectdown:"selectdown___1_utH"}},FrRK:function(k,z,o){"use strict";var P=o("+L6B"),g=o("2/Rp"),T=o("DZo9"),b=o("8z0m"),y=o("miYZ"),x=o("tsqr"),O=o("9og8"),m=o("2qtc"),e=o("kLXV"),f=o("y8nQ"),a=o("Vl3Y"),u=o("tJVT"),r=o("PpiC"),i=o("5NDa"),n=o("5rEg"),l=o("WmNS"),h=o.n(l),d=o("q1tI"),s=o.n(d),c=o("9kvl"),w=o("m3rI"),E=o("FPkq"),v=o.n(E),R=o("qB8g"),M=o.n(R),C=n.a.TextArea,S=function(A){var U=A.newShixuns,L=A.globalSetting,N=A.loading,V=A.dispatch,H=Object(r.a)(A,["newShixuns","globalSetting","loading","dispatch"]),D=a.a.useForm(),W=Object(u.a)(D,1),F=W[0],I=Object(d.useState)([]),K=Object(u.a)(I,2),ee=K[0],he=K[1],de=function(ue){var le=["uploading","done","removed"];le.includes(ue.file.status)&&he(ue.fileList)},Se=function(ue){if(!ue.percent||ue.percent==100){var le,$=(le=ue.response)===null||le===void 0?void 0:le.id;return e.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var me=Object(O.a)(h.a.mark(function ae(){var Oe;return h.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,V({type:"newShixuns/deleteAttachment",payload:{id:$}});case 2:Oe=te.sent,Oe&&he(ee.filter(function(Q){var J;return((J=Q.response)===null||J===void 0?void 0:J.id)!==$}));case 4:case"end":return te.stop()}},ae)}));function re(){return me.apply(this,arguments)}return re}()}),!1}},Te=function(ue){if(ee.length)return!1;var le=ue.size/1024/1024>50;return le?(x.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0},ce=function(){var Ee=Object(O.a)(h.a.mark(function ue(le){var $,me,re,ae,Oe,se,te,Q;return h.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return re=le||{},ae=re.language,Oe=re.env,se=re.mode,te=re.code,ve.next=3,V({type:"newShixuns/applyShixunMirror",payload:{language:ae,runtime:Oe,run_method:se,attachment_id:ee==null||(($=ee[0])===null||$===void 0||((me=$.response)===null||me===void 0))?void 0:me.id}});case 3:Q=ve.sent,V({type:"newShixuns/setActionTabs",payload:{}}),Q&&x.b.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002");case 6:case"end":return ve.stop()}},ue)}));return function(le){return Ee.apply(this,arguments)}}(),be=function(){F.resetFields(),he([])};return s.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:U.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:be},s.a.createElement("section",{className:M.a.qrCode},s.a.createElement("aside",{className:M.a.a1},s.a.createElement("div",{className:M.a.code},s.a.createElement("img",{width:120,height:120,src:v.a,alt:"\u4E8C\u7EF4\u7801"})),s.a.createElement("div",{className:M.a.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),s.a.createElement("div",{className:M.a.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),s.a.createElement("aside",{className:M.a.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",s.a.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),s.a.createElement(a.a,{className:M.a.formWrap,form:F,labelCol:{span:4},wrapperCol:{span:20},onFinish:ce},s.a.createElement(a.a.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},s.a.createElement(C,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),s.a.createElement(a.a.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},s.a.createElement(C,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),s.a.createElement(a.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},s.a.createElement(C,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),s.a.createElement(a.a.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},s.a.createElement("div",{className:M.a.upload},s.a.createElement(b.a,{fileList:ee,action:"".concat(w.a.API_SERVER,"/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a"),onChange:de,onRemove:Se,beforeUpload:Te,withCredentials:!0},s.a.createElement("span",{className:"".concat(M.a.color0152d9," current")},"\u4E0A\u4F20\u9644\u4EF6"),s.a.createElement("span",{className:"".concat(M.a.colorCCC," ml10")},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),s.a.createElement("div",{className:M.a.footerWrap},s.a.createElement(a.a.Item,null,s.a.createElement(g.a,{className:"mr5",size:"large",onClick:function(){V({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),s.a.createElement(g.a,{size:"large",type:"primary",htmlType:"submit",loading:N["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};z.a=Object(c.a)(function(_){var A=_.newShixuns,U=_.loading,L=_.globalSetting;return{newShixuns:A,globalSetting:L,loading:U.effects}})(S)},Fxgj:function(k,z,o){},GABl:function(k,z){k.exports="data:image/png;base64,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"},GRuw:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("lPiR"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=g.algo,x=y.SHA256,O=y.SHA224=x.extend({_doReset:function(){this._hash=new b.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var m=x._doFinalize.call(this);return m.sigBytes-=4,m}});g.SHA224=x._createHelper(O),g.HmacSHA224=x._createHmacHelper(O)}(),P.SHA224})},GfqC:function(k,z,o){"use strict";var P=o("q1tI"),g=o.n(P),T=o("TSYQ"),b=o.n(T);function y(W,F){var I="cannot "+W.method+" "+W.action+" "+F.status+"'",K=new Error(I);return K.status=F.status,K.method=W.method,K.url=W.action,K}function x(W){var F=W.responseText||W.response;if(!F)return F;try{return JSON.parse(F)}catch(I){return F}}function O(W){var F=new XMLHttpRequest;W.onProgress&&F.upload&&(F.upload.onprogress=function(he){he.total>0&&(he.percent=he.loaded/he.total*100),W.onProgress(he)});var I=new FormData;W.data&&Object.keys(W.data).forEach(function(ee){var he=W.data[ee];if(Array.isArray(he)){he.forEach(function(de){I.append(ee+"[]",de)});return}I.append(ee,W.data[ee])}),W.file instanceof Blob?I.append(W.filename,W.file,W.file.name):I.append(W.filename,W.file),F.onerror=function(he){W.onError(he)},F.onload=function(){return F.status<200||F.status>=300?W.onError(y(W,F),x(F)):W.onSuccess(x(F),F)},F.open(W.method,W.action,!0),W.withCredentials&&"withCredentials"in F&&(F.withCredentials=!0);var K=W.headers||{};return K["X-Requested-With"]!==null&&F.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(K).forEach(function(ee){K[ee]!==null&&F.setRequestHeader(ee,K[ee])}),F.send(I),{abort:function(){F.abort()}}}var m=+new Date,e=0;function f(){return"rc-upload-"+m+"-"+ ++e}function a(W,F){return W.indexOf(F,W.length-F.length)!==-1}var u=function(W,F){if(W&&F){var I=Array.isArray(F)?F:F.split(","),K=W.name||"",ee=W.type||"",he=ee.replace(/\/.*$/,"");return I.some(function(de){var Se=de.trim();return Se.charAt(0)==="."?a(K.toLowerCase(),Se.toLowerCase()):/\/\*$/.test(Se)?he===Se.replace(/\/.*$/,""):ee===Se})}return!0};function r(W,F){var I=W.createReader(),K=[];function ee(){I.readEntries(function(he){var de=Array.prototype.slice.apply(he);K=K.concat(de);var Se=!de.length;Se?F(K):ee()})}ee()}var i=function(F,I,K){var ee=function he(de,Se){Se=Se||"",de.isFile?de.file(function(Te){K(Te)&&(de.fullPath&&!Te.webkitRelativePath&&(Object.defineProperties(Te,{webkitRelativePath:{writable:!0}}),Te.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(Te,{webkitRelativePath:{writable:!1}})),I([Te]))}):de.isDirectory&&r(de,function(Te){Te.forEach(function(ce){he(ce,""+Se+de.name+"/")})})};F.forEach(function(he){ee(he.webkitGetAsEntry())})},n=i,l=Object.assign||function(W){for(var F=1;F=0)continue;if(!Object.prototype.hasOwnProperty.call(W,K))continue;I[K]=W[K]}return I}function w(W,F){if(!(W instanceof F))throw new TypeError("Cannot call a class as a function")}function E(W,F){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:W}function v(W,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);W.prototype=Object.create(F&&F.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(W,F):W.__proto__=F)}var R=function(F){return Object.keys(F).reduce(function(I,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-"||K==="role")&&(I[K]=F[K]),I},{})},M=function(W){v(F,W);function F(){var I,K,ee,he;w(this,F);for(var de=arguments.length,Se=Array(de),Te=0;Te>>2]>>>24-R%4*8&255;c[E+R>>>2]|=M<<24-(E+R)%4*8}else for(var C=0;C>>2]=w[C>>>2];return this.sigBytes+=v,this},clamp:function(){var s=this.words,c=this.sigBytes;s[c>>>2]&=4294967295<<32-c%4*8,s.length=T.ceil(c/4)},clone:function(){var s=f.clone.call(this);return s.words=this.words.slice(0),s},random:function(s){for(var c=[],w=0;w>>2]>>>24-v%4*8&255;E.push((R>>>4).toString(16)),E.push((R&15).toString(16))}return E.join("")},parse:function(s){for(var c=s.length,w=[],E=0;E>>3]|=parseInt(s.substr(E,2),16)<<24-E%8*4;return new a.init(w,c/2)}},i=u.Latin1={stringify:function(s){for(var c=s.words,w=s.sigBytes,E=[],v=0;v>>2]>>>24-v%4*8&255;E.push(String.fromCharCode(R))}return E.join("")},parse:function(s){for(var c=s.length,w=[],E=0;E>>2]|=(s.charCodeAt(E)&255)<<24-E%4*8;return new a.init(w,c)}},n=u.Utf8={stringify:function(s){try{return decodeURIComponent(escape(i.stringify(s)))}catch(c){throw new Error("Malformed UTF-8 data")}},parse:function(s){return i.parse(unescape(encodeURIComponent(s)))}},l=e.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(s){typeof s=="string"&&(s=n.parse(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes},_process:function(s){var c,w=this._data,E=w.words,v=w.sigBytes,R=this.blockSize,M=R*4,C=v/M;s?C=T.ceil(C):C=T.max((C|0)-this._minBufferSize,0);var S=C*R,_=T.min(S*4,v);if(S){for(var A=0;Ac.length&&(E=c.length);wv===R){const v=c[Symbol.iterator](),R=w[Symbol.iterator]();for(;;){const M=v.next(),C=R.next();if(M.done!==C.done)return!1;if(M.done)return!0;if(!E(M.value,C.value))return!1}}g.equals=s})(P||(P={}))},JeFH:function(k,z){k.exports="data:image/png;base64,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"},Jky8:function(k,z,o){"use strict";var P=o("sRBo"),g=o("kaz8"),T=o("5NDa"),b=o("5rEg"),y=o("miYZ"),x=o("tsqr"),O=o("9og8"),m=o("2qtc"),e=o("kLXV"),f=o("tJVT"),a=o("WmNS"),u=o.n(a),r=o("q1tI"),i=o.n(r),n=o("9kvl"),l=o("6CvP"),h=o("1XHU"),d=o("1vsH"),s;(function(w){w[w.Professor=1]="Professor",w[w.AssistantProfessor=2]="AssistantProfessor",w[w.Student=3]="Student"})(s||(s={}));var c=function(E){var v=E.visible,R=E.user,M=E.onCancel,C=M===void 0?function(){}:M,S=Object(r.useState)(),_=Object(f.a)(S,2),A=_[0],U=_[1],L=Object(r.useState)([]),N=Object(f.a)(L,2),V=N[0],H=N[1],D=Object(r.useState)(!1),W=Object(f.a)(D,2),F=W[0],I=W[1],K=Object(r.useState)(!1),ee=Object(f.a)(K,2),he=ee[0],de=ee[1],Se=Object(r.useState)(),Te=Object(f.a)(Se,2),ce=Te[0],be=Te[1];Object(r.useEffect)(function(){var $;if(R!=null&&($=R.userInfo)!==null&&$!==void 0&&$.identity){var me;H([(R==null||((me=R.userInfo)===null||me===void 0)?void 0:me.identity)==="student"?3:1])}},[R]);var Ee=function(me,re){if(V.includes(s.Professor)){e.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:i.a.createElement("div",{className:"tc"},re||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){n.d.push("/classrooms/".concat(me,"/students"))}});return}n.d.push("/classrooms/".concat(me,"/students"))},ue=function(){var $=Object(O.a)(u.a.mark(function me(){var re;return u.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(A){Oe.next=3;break}return x.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),Oe.abrupt("return");case 3:return I(!0),Oe.next=6,Object(l.c)({invite_code:A,professor:V.includes(s.Professor)?1:null,assistant_professor:V.includes(s.AssistantProfessor)?1:null,student:V.includes(s.Student)?1:null});case 6:if(re=Oe.sent,I(!1),!((re==null?void 0:re.status)===-2)){Oe.next=22;break}if(le(),!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){Oe.next=14;break}return de(!0),be(1),Oe.abrupt("return");case 14:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){Oe.next=18;break}return de(!0),be(2),Oe.abrupt("return");case 18:if(!(re.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){Oe.next=22;break}return de(!0),be(3),Oe.abrupt("return");case 22:if(!((re==null?void 0:re.status)===0)){Oe.next=27;break}return Object(d.cb)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),le(),(re==null?void 0:re.course_id)&&Ee(re.course_id,re.message),Oe.abrupt("return");case 27:case"end":return Oe.stop()}},me)}));return function(){return $.apply(this,arguments)}}(),le=function(){var $=Object(O.a)(u.a.mark(function me(){return u.a.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:C();case 1:case"end":return ae.stop()}},me)}));return function(){return $.apply(this,arguments)}}();return i.a.createElement(i.a.Fragment,null,i.a.createElement(e.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:v,confirmLoading:F,onOk:ue,onCancel:le},i.a.createElement("div",{className:"tc"},i.a.createElement("div",null,i.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),i.a.createElement(b.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:A,onChange:function(me){if(me.target.value.length>=7){x.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}U(me.target.value)}})),i.a.createElement("div",{className:"mt10 font14"},i.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),i.a.createElement(g.a.Group,{value:V,onChange:function(me){return H(me)}},i.a.createElement(g.a,{value:s.Professor,disabled:V.includes(2)||V.includes(3)},"\u6559\u5E08"),i.a.createElement(g.a,{value:s.AssistantProfessor,disabled:V.includes(1)},"\u52A9\u6559"),i.a.createElement(g.a,{value:s.Student,disabled:V.includes(1)},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),i.a.createElement(h.a,{visible:he,onCancel:function(){return de(!1)},occupationValue:ce}))};z.a=Object(n.a)(function(w){var E=w.user;return{user:E}})(c)},Jq4h:function(k,z,o){k.exports=o.p+"static/qrcode.2267e4d5.png"},Jv0p:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2RVge",flex_space_between:"flex_space_between___2f-dJ",flex_box_vertical_center:"flex_box_vertical_center___2UjfS",flex_box_center_end:"flex_box_center_end___1RfMW",flex_box_column:"flex_box_column___3uuIq",sidebar:"sidebar___Ik5Ae",items:"items___2qrP5",item:"item___24ylH",name:"name___1UcvU",itemActive:"itemActive___1Bj1D",question:"question___2fGw1"}},K3mO:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.Base,y=T.WordArray,x=g.algo,O=x.MD5,m=x.EvpKDF=b.extend({cfg:b.extend({keySize:128/32,hasher:O,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var a,u=this.cfg,r=u.hasher.create(),i=y.create(),n=i.words,l=u.keySize,h=u.iterations;n.lengthEe)){le.next=7;break}return T.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(Ee/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),le.abrupt("return",!1);case 7:return D.push({name:be.name,file:be}),W(Object(b.a)(D)),N.onChange(D),le.abrupt("return",!1);case 11:case"end":return le.stop()}},ce)}));function Te(ce){return Se.apply(this,arguments)}return Te}()},de=function(){var Se=Object(m.a)(u.a.mark(function Te(ce,be){var Ee,ue,le,$,me,re,ae,Oe,se,te;return u.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return be.file_name=ce.name,ae=ce.name,J.next=4,Object(n.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(Oe=J.sent,Oe.data=JSON.parse(v(Oe.data)),!((Oe==null?void 0:Oe.status)!==0)){J.next=12;break}return D[D.findIndex(function(ve){return ve.name===ae})].status="error",D[D.findIndex(function(ve){return ve.name===ae})].file.status="error",N.onChange(D),T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),J.abrupt("return");case 12:return K=new w.a({endpoint:Oe==null||((Ee=Oe.data)===null||Ee===void 0)?void 0:Ee.end_point,region:Oe==null||((ue=Oe.data)===null||ue===void 0)?void 0:ue.region,accessKeyId:Oe==null||((le=Oe.data)===null||le===void 0)?void 0:le.access_key_id,accessKeySecret:Oe==null||(($=Oe.data)===null||$===void 0)?void 0:$.access_key_secret,bucket:Oe==null||((me=Oe.data)===null||me===void 0)?void 0:me.bucket,stsToken:Oe==null||((re=Oe.data)===null||re===void 0)?void 0:re.security_token}),console.log(ce,"file"),ee(K),se=ce.name.split("."),se.pop(),te=be.realFileName?se:Object(d.a)(),J.abrupt("return",new Promise(function(ve,_e){try{var Ae;K.multipartUpload("".concat(N.identifier,"/").concat(te).concat(ae.indexOf(".")>-1?"."+ae.split(".").pop():""),new Blob([ce.file],{type:ce.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(tt,dt,mt){try{console.log("\u8FDB\u5EA6",tt,dt,mt);var vt=D.findIndex(function(yt){return yt.name===ae});D[vt].file.percent=tt*100,D[vt].tempCheckpoint=dt,W(Object(b.a)(D))}catch(yt){}},checkpoint:D[D.findIndex(function(Qe){return Qe.name===ae})].tempCheckpoint,callback:{customValue:{id:ae+""},url:Oe==null||((Ae=Oe.data)===null||Ae===void 0)?void 0:Ae.callback_url,host:Oe==null?void 0:Oe.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(n.e)(be)}}).then(function(Qe){var tt,dt=D.findIndex(function(Ue){return Ue.name===ae}),mt="done";if(((tt=Qe.data)===null||tt===void 0?void 0:tt.status)===0){var vt;ce.response=(vt=Qe.data)===null||vt===void 0?void 0:vt.data;var yt=D.findIndex(function(Ue){return Ue.name===ae});D[yt].status="done",D[yt].file.status="done"}else{var Ye;T.b.warn((Ye=Qe.data)===null||Ye===void 0?void 0:Ye.message),mt="error"}D[dt].status=mt,D[dt].file.status=mt,N.onChange(D),ve(Qe==null?void 0:Qe.data)}).catch(function(Qe){D[D.findIndex(function(tt){return tt.name===ae})].status="error",D[D.findIndex(function(tt){return tt.name===ae})].file.status="error",T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),W(Object(b.a)(D)),N.onChange(D),_e(Qe),console.log("err:",Qe)})}catch(Qe){}}));case 19:case"end":return J.stop()}},Te)}));return function(ce,be){return Se.apply(this,arguments)}}();return Object(r.useEffect)(function(){D.every(function(Se){return Se==="done"||Se==="error"})&&N.onComplete(D)},[D]),Object(r.useEffect)(function(){if(L){var Se;(Se=K)===null||Se===void 0||Se.cancel()}},[L]),Object(r.useEffect)(function(){N.uploading&&D.map(function(){var Se=Object(m.a)(u.a.mark(function Te(ce){var be,Ee;return u.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(!((!ce.status||ce.status==="error")&&!L)){le.next=6;break}return ce.status="uploading",ce.file.status="uploading",le.next=5,de(ce,{login:U==null||((be=U.userInfo)===null||be===void 0)?void 0:be.login,container_type:N.container_type,container_id:N.container_id,description:N.description,realFileName:N.realFileName});case 5:Ee=le.sent;case 6:case"end":return le.stop()}},Te)}));return function(Te){return Se.apply(this,arguments)}}())},[N.uploading]),i.a.createElement(E,Object(P.a)({},he,{height:N.height,className:N.className}),i.a.createElement("p",{className:"ant-upload-hint"},N.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};z.b=Object(s.a)(function(_){var A=_.loading,U=_.globalSetting,L=_.user;return{globalSetting:U,loading:A.models.competitions,user:L}})(S)},KmYQ:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.ZeroPadding={pad:function(g,T){var b=T*4;g.clamp(),g.sigBytes+=b-(g.sigBytes%b||b)},unpad:function(g){for(var T=g.words,b=g.sigBytes-1,b=g.sigBytes-1;b>=0;b--)if(T[b>>>2]>>>24-b%4*8&255){g.sigBytes=b+1;break}}},P.pad.ZeroPadding})},"L+Ii":function(k,z,o){k.exports={wrap:"wrap___3xyR8",labelWrap:"labelWrap___1IxCy",label:"label___22JJP",labelContent:"labelContent___3L5_8",flexRow:"flexRow___15gwv",color999:"color999___i4XxJ",radio:"radio___2Vrn9",selectSchool:"selectSchool___20PAH",dataPicker:"dataPicker___3ZrBg",modal:"modal___3_BbV",colorOrange:"colorOrange___3BuSt",colorYellow:"colorYellow___brbb2"}},LSTS:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var P=function(){function u(r,i){for(var n=0;n=0)continue;if(!Object.prototype.hasOwnProperty.call(u,n))continue;i[n]=u[n]}return i}function m(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function e(u,r){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:u}function f(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}var a=function(u){f(r,u);function r(i){m(this,r);var n=e(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,i));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return P(r,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var n=this.getParentElement(this.scrollComponent);n.scrollTop=n.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var n=!1,l={get passive(){n=!0}};try{document.addEventListener("test",null,l),document.removeEventListener("test",null,l)}catch(h){}return n}},{key:"eventListenerOptions",value:function(){var n=this.props.useCapture;return this.isPassiveSupported()&&(n={useCapture:this.props.useCapture,passive:!0}),n}},{key:"setDefaultLoader",value:function(n){this.defaultLoader=n}},{key:"detachMousewheelListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.scrollComponent.parentNode),n.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.getParentElement(this.scrollComponent)),n.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(n){var l=this.props.getScrollParent&&this.props.getScrollParent();return l!=null?l:n&&n.parentNode}},{key:"filterProps",value:function(n){return n}},{key:"attachScrollListener",value:function(){var n=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!n)return;var l=window;this.props.useWindow===!1&&(l=n),l.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),l.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),l.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(n){n.deltaY===1&&!this.isPassiveSupported()&&n.preventDefault()}},{key:"scrollListener",value:function(){var n=this.scrollComponent,l=window,h=this.getParentElement(n),d=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,c=l.pageYOffset!==void 0?l.pageYOffset:s.scrollTop;this.props.isReverse?d=c:d=this.calculateOffset(n,c)}else this.props.isReverse?d=h.scrollTop:d=n.scrollHeight-h.scrollTop-h.clientHeight;d1&&arguments[1]!==void 0?arguments[1]:1,Ge=Ae.length,Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:!1;return Object(R.a)(I).map(function(ee,he){if(!y.isValidElement(ee)||!ee.type)return null;var de=ee.type.isSelectOptGroup,Se=ee.key,Te=ee.props,ce=Te.children,be=Object(O.a)(Te,["children"]);return K||!de?M(ee):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(Se===null?he:Se,"__"),label:Se},be),{},{options:C(ce)})}).filter(function(ee){return ee})}var S=o("2Qr1"),_=o("qNPg"),A=o("U8pU"),U=o("Kwbf"),L=o("WKfj");function N(I){var K=I.mode,ee=I.options,he=I.children,de=I.backfill,Se=I.allowClear,Te=I.placeholder,ce=I.getInputElement,be=I.showSearch,Ee=I.onSearch,ue=I.defaultOpen,le=I.autoFocus,$=I.labelInValue,me=I.value,re=I.inputValue,ae=I.optionLabelProp,Oe=K==="multiple"||K==="tags",se=be!==void 0?be:Oe||K==="combobox",te=ee||C(he);if(Object(U.a)(K!=="tags"||te.every(function(_e){return!_e.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var Q=te.some(function(_e){return _e.options?_e.options.some(function(Ae){return typeof("value"in Ae?Ae.value:Ae.key)=="number"}):typeof("value"in _e?_e.value:_e.key)=="number"});Object(U.a)(!Q,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(U.a)(K!=="combobox"||!ae,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(U.a)(K==="combobox"||!de,"`backfill` only works with `combobox` mode."),Object(U.a)(K==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(U.b)(K!=="combobox"||!ce||!Se||!Te,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ee&&!se&&K!=="combobox"&&K!=="tags"&&Object(U.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(U.b)(!ue||le,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),me!=null){var J=Object(L.d)(me);Object(U.a)(!$||J.every(function(_e){return Object(A.a)(_e)==="object"&&("key"in _e||"value"in _e)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(U.a)(!Oe||Array.isArray(me),"`value` should be array when `mode` is `multiple` or `tags`")}if(he){var ve=null;Object(R.a)(he).some(function(_e){if(!y.isValidElement(_e)||!_e.type)return!1;var Ae=_e.type;if(Ae.isSelectOption)return!1;if(Ae.isSelectOptGroup){var Qe=Object(R.a)(_e.props.children).every(function(tt){return!y.isValidElement(tt)||!_e.type||tt.type.isSelectOption?!0:(ve=tt.type,!1)});return!Qe}return ve=Ae,!0}),ve&&Object(U.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(U.a)(re===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var V=N,H=Object(_.a)({prefixCls:"rc-select",components:{optionList:d},convertChildrenToData:C,flattenOptions:S.d,getLabeledValue:S.e,filterOptions:S.b,isValueDisabled:S.g,findValueOption:S.c,warningProps:V,fillOptionsWithMissingValue:S.a}),D=function(I){Object(T.a)(ee,I);var K=Object(b.a)(ee);function ee(){var he;return Object(P.a)(this,ee),he=K.apply(this,arguments),he.selectRef=y.createRef(),he.focus=function(){he.selectRef.current.focus()},he.blur=function(){he.selectRef.current.blur()},he}return Object(g.a)(ee,[{key:"render",value:function(){return y.createElement(H,Object.assign({ref:this.selectRef},this.props))}}]),ee}(y.Component);D.Option=c,D.OptGroup=E;var W=D,F=z.c=W},Lf5v:function(k,z,o){"use strict";var P=o("5NDa"),g=o("5rEg"),T=o("2qtc"),b=o("kLXV"),y=o("k1fw"),x=o("oBTY"),O=o("9og8"),m=o("miYZ"),e=o("tsqr"),f=o("y8nQ"),a=o("Vl3Y"),u=o("tJVT"),r=o("DZo9"),i=o("8z0m"),n=o("WmNS"),l=o.n(n),h=o("q1tI"),d=o.n(h),s=o("m3rI"),c=o("ErOA"),w=o("sckv"),E=o.n(w),v=o("KhGG"),R=o("1vsH"),M=i.a.Dragger,C=function(_){var A,U=_.dispatch,L=_.id,N=_.onClose,V=_.onOK,H=_.visible,D=_.wrapClassName,W=_.local,F=_.containerId,I=_.rootIdentifier,K=Object(h.useState)({}),ee=Object(u.a)(K,2),he=ee[0],de=ee[1],Se=Object(h.useState)([]),Te=Object(u.a)(Se,2),ce=Te[0],be=Te[1],Ee=Object(h.useState)([]),ue=Object(u.a)(Ee,2),le=ue[0],$=ue[1],me=Object(h.useState)(0),re=Object(u.a)(me,2),ae=re[0],Oe=re[1],se=Object(h.useState)(!1),te=Object(u.a)(se,2),Q=te[0],J=te[1],ve=Object(h.useState)(!1),_e=Object(u.a)(ve,2),Ae=_e[0],Qe=_e[1],tt=a.a.useForm(),dt=Object(u.a)(tt,1),mt=dt[0],vt=Object(h.useState)([]),yt=Object(u.a)(vt,2),Ye=yt[0],Ue=yt[1],ft=Object(h.useRef)([]);Object(h.useEffect)(function(){H&&(mt.resetFields(),Ue([]),$([]),be([]),Oe(0),Qe(!1),J(!1))},[H]);var jt=function(Ke){if(Ke.file.status==="done"||Ke.file.status==="uploading"){var et,at,Pe;if(Ue(Ke.fileList),!Ke.file.response)return;if((et=Ke.file.response)!==null&&et!==void 0&&et.id){e.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Ue(Ye.filter(function(Xe){return Xe.uid!==Ke.file.uid})),((at=Ke.file.response)===null||at===void 0?void 0:at.message)&&e.b.info((Pe=Ke.file.response)===null||Pe===void 0?void 0:Pe.message)}},bt=function(){var Ct=Object(O.a)(l.a.mark(function Ke(et){var at,Pe,Xe;return l.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(ae){Et.next=8;break}return Pe=Ye.filter(function(Ot){return Ot.uid!==et.uid}),Ue(Pe),ft.current=Object(x.a)(Pe),be(ce.filter(function(Ot){return Ot!==et.name})),e.b.info("\u5220\u9664\u6210\u529F"),Pe.length||(mt.setFieldsValue({file:void 0}),mt.validateFields()),Et.abrupt("return");case 8:if(et.response){Et.next=11;break}return e.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),Et.abrupt("return");case 11:return Et.next=13,Object(c.a)("/api/shixuns/".concat(L,"/destroy_data_sets.json"),{method:"Delete",body:{id:[et==null||((at=et.response)===null||at===void 0)?void 0:at.id]}});case 13:Xe=Et.sent,Xe.status===0&&(Ue(Ye.filter(function(Ot){return Ot.uid!==et.uid})),e.b.info("\u5220\u9664\u6210\u529F"));case 15:case"end":return Et.stop()}},Ke)}));return function(et){return Ct.apply(this,arguments)}}(),Pt=function(Ke){if(Ye!=null&&Ye.some(function(at){return at.name===Ke.name}))return e.b.info("".concat(Ke.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;var et={name:Ke.name,uid:Ke.uid,file:Ke,percent:0};return Ye.push(et),ft.current=Object(x.a)(Ye),Ue(Object(x.a)(Ye)),!1},it={height:300,multiple:!0,disabled:ae>0,withCredentials:!0,fileList:Ye,action:"".concat(s.a.API_SERVER,"/api/attachments.json"),onChange:jt,onRemove:bt,beforeUpload:Pt},He=function(Ke,et,at,Pe,Xe,ht){var Et=new FormData;Object.keys(Ke).forEach(function(Mt){Et.append(Mt,Ke[Mt])});var Ot=new window.XMLHttpRequest;return Ot.withCredentials=!0,Ot.addEventListener("load",function(Mt){var lt;at(JSON.parse(Mt==null||((lt=Mt.target)===null||lt===void 0)?void 0:lt.response))},!1),Ot.addEventListener("error",function(Mt){Xe&&Xe(Mt)},!1),Ot.upload.onprogress=function(Mt){Pe&&Pe(Mt)},Ot.open("POST",et),Ot.send(Et),Ot},Ge=function(Ke,et){if(Ke.lengthComputable){var at=Math.floor(Ke.loaded/Ke.total*100),Pe=Object(y.a)(Object(y.a)({},et),{},{percent:at,status:at===100?"done":"uploading"});console.log(ft.current,333),ft.current=ft.current.map(function(Xe){return Xe.uid===et.uid?Pe:Xe}),Ue(ft.current)}},Ce=function(Ke,et){debugger;var at=Object(y.a)(Object(y.a)({},et),{},{status:"error"});e.b.warn(e.b?e.b:"\u4E0A\u4F20\u5931\u8D25"),ft.current=ft.current.map(function(Pe){return Pe.uid===et.uid?at:Pe}),ft.current.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&(Qe(!1),Oe(2)),Ue(ft.current)},Ie=function(Ke,et){var at=Object(y.a)(Object(y.a)({},et),{},{status:"done"});if(Ke.status===0||(at=Object(y.a)(Object(y.a)({},et),{},{status:"error"}),e.b.error("\u4E0A\u4F20\u5931\u8D25!")),ft.current=ft.current.map(function(Pe){return Pe.uid===et.uid?at:Pe}),ft.current.every(function(Pe){return Pe.status==="done"})){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Dt(!0);return}ft.current.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&(Qe(!1),Oe(2)),Ue(ft.current)},Fe=function(){var Ke=!0;return window.navigator.onLine==!0?Ke=!0:Ke=!1,Ke},Be=function(){var Ct=Object(O.a)(l.a.mark(function Ke(et){var at,Pe,Xe,ht,Et,Ot,Mt,lt;return l.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(Qe(!0),!(ae===3)){Lt.next=4;break}return Oe(2),Lt.abrupt("return");case 4:if(!(ae===2||ae===1)){Lt.next=7;break}return We(),Lt.abrupt("return");case 7:return at=et||{},Pe=at.commitMessage,Xe=Pe===void 0?"":Pe,ht=at.fileOss,Et=ht===void 0?[]:ht,Ot=W?Ye:Et,Mt=Ot.map(function(on){return on.name}),Lt.next=12,Object(c.a)("/api/shixuns/".concat(L,"/check_data_sets"),{method:"post",body:{files_name:Mt}});case 12:if(lt=Lt.sent,!(lt.status===-3)){Lt.next=17;break}return be(lt==null?void 0:lt.exist_files),Qe(!1),Lt.abrupt("return");case 17:if(!(JSON.stringify(lt)==="{}")){Lt.next=21;break}return Qe(!1),e.b.error("\u7F51\u7EDC\u5DF2\u65AD\u5F00,\u8BF7\u7A0D\u540E\u91CD\u8BD5!"),Lt.abrupt("return");case 21:lt.status===0&&(Ye.forEach(function(on){var mn=He({file:on.file,description:Xe,message:lt.message},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(L,"/upload_data_sets.json"),function(Hn){return Ie(Hn,on)},function(Hn){return Ge(Hn,on)},function(Hn){return Ce(Hn,on)});le.push(mn)}),Oe(1));case 22:case"end":return Lt.stop()}},Ke)}));return function(et){return Ct.apply(this,arguments)}}(),We=function(){var Ke=Object(y.a)({},mt.getFieldsValue())||{},et=Ke.commitMessage,at=et===void 0?"":et,Pe=ft.current.filter(function(ht){return ht.status==="error"}),Xe=ft.current.map(function(ht){return Object(y.a)(Object(y.a)({},ht),{},{status:ht.status==="error"?"uploading":ht.status})});Ue(Xe),Pe.forEach(function(ht){var Et=He({file:ht.file,description:at},"".concat(s.a.API_SERVER,"/api/shixuns/").concat(L,"/upload_data_sets.json"),function(Ot){return Ie(Ot,ht)},function(Ot){return Ge(Ot,ht)},function(Ot){return Ce(Ot,ht)});le.push(Et)})},st=function(Ke){if(console.log(Ke,"changedValues"),"fileOss"in Ke){var et,at;if(Ke!=null&&Ke.fileOss.every(function(Pe){return Pe.status==="done"})&&Ke!==null&&Ke!==void 0&&(et=Ke.fileOss)!==null&&et!==void 0&&et.length){e.b.success("\u4E0A\u4F20\u5B8C\u6210!"),Dt(!0);return}if(Ke!=null&&Ke.fileOss.every(function(Pe){return Pe.status==="done"||Pe.status==="error"})&&Ke!==null&&Ke!==void 0&&(at=Ke.fileOss)!==null&&at!==void 0&&at.length){Oe(3),Qe(!1);return}be(ce.filter(function(Pe){var Xe;return Ke==null||((Xe=Ke.fileOss)===null||Xe===void 0)?void 0:Xe.some(function(ht){return ht.name===Pe})}))}de(Object(y.a)({},mt.getFieldsValue()))},Dt=function(Ke){Ke||(J(!0),le.forEach(function(et){et.abort()})),V(),N()},Ht=function(){var Ke=Object(y.a)({},mt.getFieldsValue())||{},et=Ke.fileOss,at=et===void 0?[]:et,Pe=Ye==null?void 0:Ye.every(function(ht){return ht.status==="done"}),Xe=at==null?void 0:at.every(function(ht){return ht.status==="done"});if(!Pe||!Xe){b.a.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20,\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Dt()}});return}Dt()},rn=function(){return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",null,d.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(E.a.colorBlue)})),d.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",d.a.createElement("span",{className:"".concat(E.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))},Bt=function(Ke){console.log(Ke,444)};return d.a.createElement(b.a,{visible:H,wrapClassName:D,onOk:function(){Object(R.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0A\u4F20\u6587\u4EF6"]),mt.submit()},centered:!0,okText:ae===0?"\u786E\u5B9A":ae===1?"\u4E0A\u4F20\u4E2D":"\u91CD\u65B0\u4E0A\u4F20",okButtonProps:{loading:Ae},onCancel:Ht,width:"1000px",title:"\u4E0A\u4F20\u6587\u4EF6"},d.a.createElement("div",{className:E.a.wrap},d.a.createElement(a.a,{className:"mt10",form:mt,scrollToFirstError:!0,layout:"vertical",onFinish:Be,onValuesChange:st},W?d.a.createElement(a.a.Item,{label:d.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",d.a.createElement("span",{style:{visibility:"hidden"},className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7500M)")),name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},d.a.createElement(M,it," ",rn())):d.a.createElement(a.a.Item,{label:d.a.createElement("div",null,"\u9009\u62E9\u6587\u4EF6"," ",d.a.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7100GB)")),name:"fileOss",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},d.a.createElement(v.b,{identifier:I,cancelUpload:Q,container_type:"Shixun",container_id:F,uploading:ae<3?ae:0,disabled:ae>0,height:300,maxSize:100*1024*1024*1024,description:he.commitMessage||"",text:rn(),onComplete:Bt,realFileName:!0})),!!ce.length&&d.a.createElement("span",{className:E.a.repeatedName},ce.join("\u3001"),"\u5DF2\u5B58\u5728,\u8BF7\u5220\u9664\u540E\u518D\u4E0A\u4F20"),d.a.createElement(a.a.Item,{name:"commitMessage",label:"\u5907\u6CE8:",rules:[{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},d.a.createElement(g.a,{bordered:!1,disabled:ae>0,maxLength:100,suffix:"".concat(((A=he.commitMessage)===null||A===void 0?void 0:A.length)||0,"/100"),placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))))};z.a=C},LicW:function(k,z,o){"use strict";var P=o("T2oS"),g=o("W9HT"),T=o("5Dmo"),b=o("3S7+"),y=o("q1tI"),x=o.n(y),O=o("ZJlW"),m=o.n(O),e=o("m3rI"),f=o("TSYQ"),a=o.n(f),u=o("1vsH"),r=o("z4EP"),i=o.n(r),n=o("+GGh"),l=o.n(n),h=o("cFMs"),d=o.n(h),s=o("BdwD"),c=function(E){var v=E.className,R=E.dataSource,M=R===void 0?[]:R,C=E.col,S=C===void 0?4:C,_=E.right,A=E.bottom,U=A===void 0?23:A,L=E.precision,N=L===void 0?0:L,V=E.wrapWidth,H=V===void 0?1200:V,D=E.trackEventItems,W=E.loading,F=Math.floor((H-(S-1)*_)/S);return x.a.createElement(g.a,{spinning:W},x.a.createElement("div",{className:a()(m.a.list,v)},!!M.length&&M.map(function(I,K){var ee=I.name,he=I.id,de=I.identifier,Se=I.featured,Te=I.school_name,ce=I.image_url,be=I.excellent;return x.a.createElement("div",{key:he,className:m.a.wrap,style:{width:F,marginRight:(1+K)%S===0?0:_+N,marginBottom:U}},x.a.createElement("a",{target:"_blank",href:"/paths/".concat(de),className:m.a.li,onClick:function(ue){ue.preventDefault(),D&&Object(u.cb)([D]),Object(u.S)("/paths/".concat(de))}},x.a.createElement("div",{className:m.a.img},x.a.createElement("img",{className:m.a.cover,src:"".concat(e.a.IMG_SERVER,"/").concat(ce)}),Se===1&&x.a.createElement("img",{className:m.a.sign,src:i.a}),Se===2&&x.a.createElement("img",{className:m.a.sign,src:""}),Se===3&&x.a.createElement("img",{className:m.a.sign,src:l.a}),Se===4&&x.a.createElement("img",{className:m.a.sign,src:""}),Se===5&&x.a.createElement("img",{className:m.a.sign,src:d.a})),x.a.createElement("div",{className:m.a.name},x.a.createElement(b.a,{title:ee},x.a.createElement("span",{className:m.a.e},ee))),x.a.createElement(b.a,{title:"\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(Te)},x.a.createElement("div",{className:m.a.unit},x.a.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Te)),x.a.createElement("div",{className:m.a.tags},x.a.createElement(b.a,{placement:"bottom",title:"\u7AE0\u8282\u6570"},x.a.createElement("span",null,x.a.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),x.a.createElement("span",null,I.stages_count))),x.a.createElement(b.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},x.a.createElement("span",null,x.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),x.a.createElement("span",null,I.members_count))),be&&x.a.createElement("div",{className:m.a.tag},"\u5F00\u653E\u8BFE\u7A0B"))))}),!M.length&&x.a.createElement(s.a,null)))};z.a=c},M8RZ:function(k,z,o){"use strict";o.d(z,"a",function(){return e});var P=o("fWQN"),g=o("mtLc"),T=o("yKVA"),b=o("879j"),y=o("q1tI"),x=o.n(y),O=o("i8i4"),m=o.n(O),e=function(f){Object(T.a)(u,f);var a=Object(b.a)(u);function u(r){var i;Object(P.a)(this,u),i=a.call(this,r);var n=window.document;return i.node=n.createElement("div"),n.body.appendChild(i.node),i}return Object(g.a)(u,[{key:"render",value:function(){var i=this.props.children;return Object(O.createPortal)(i,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),u}(x.a.Component)},MEgm:function(k,z){k.exports="data:image/png;base64,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"},MI8n:function(k,z,o){"use strict";o.d(z,"c",function(){return y}),o.d(z,"b",function(){return e}),o.d(z,"e",function(){return f}),o.d(z,"a",function(){return a}),o.d(z,"d",function(){return u}),o.d(z,"f",function(){return r});var P=o("/cxE"),g=o("pmY6"),T=o("24hK"),b=o("5Y4S"),y;(function(i){i.None=()=>g.a.None;function n(N){return(V,H=null,D)=>{let W=!1,F;return F=N(I=>W?void 0:(F?F.dispose():W=!0,V.call(H,I)),null,D),W&&F.dispose(),F}}i.once=n;function l(N,V){return E((H,D=null,W)=>N(F=>H.call(D,V(F)),null,W))}i.map=l;function h(N,V){return E((H,D=null,W)=>N(F=>{V(F),H.call(D,F)},null,W))}i.forEach=h;function d(N,V){return E((H,D=null,W)=>N(F=>V(F)&&H.call(D,F),null,W))}i.filter=d;function s(N){return N}i.signal=s;function c(...N){return(V,H=null,D)=>Object(g.e)(...N.map(W=>W(F=>V.call(H,F),null,D)))}i.any=c;function w(N,V,H){let D=H;return l(N,W=>(D=V(D,W),D))}i.reduce=w;function E(N){let V;const H=new e({onFirstListenerAdd(){V=N(H.fire,H)},onLastListenerRemove(){V.dispose()}});return H.event}function v(N,V,H=100,D=!1,W){let F,I,K,ee=0;const he=new e({leakWarningThreshold:W,onFirstListenerAdd(){F=N(de=>{ee++,I=V(I,de),D&&!K&&(he.fire(I),I=void 0),clearTimeout(K),K=setTimeout(()=>{const Se=I;I=void 0,K=void 0,(!D||ee>1)&&he.fire(Se),ee=0},H)})},onLastListenerRemove(){F.dispose()}});return he.event}i.debounce=v;function R(N,V=(H,D)=>H===D){let H=!0,D;return d(N,W=>{const F=H||!V(W,D);return H=!1,D=W,F})}i.latch=R;function M(N,V){return[i.filter(N,V),i.filter(N,H=>!V(H))]}i.split=M;function C(N,V=!1,H=[]){let D=H.slice(),W=N(K=>{D?D.push(K):I.fire(K)});const F=()=>{D&&D.forEach(K=>I.fire(K)),D=null},I=new e({onFirstListenerAdd(){W||(W=N(K=>I.fire(K)))},onFirstListenerDidAdd(){D&&(V?setTimeout(F):F())},onLastListenerRemove(){W&&W.dispose(),W=null}});return I.event}i.buffer=C;class S{constructor(N){this.event=N}map(N){return new S(l(this.event,N))}forEach(N){return new S(h(this.event,N))}filter(N){return new S(d(this.event,N))}reduce(N,V){return new S(w(this.event,N,V))}latch(){return new S(R(this.event))}debounce(N,V=100,H=!1,D){return new S(v(this.event,N,V,H,D))}on(N,V,H){return this.event(N,V,H)}once(N,V,H){return n(this.event)(N,V,H)}}function _(N){return new S(N)}i.chain=_;function A(N,V,H=D=>D){const D=(...K)=>I.fire(H(...K)),W=()=>N.on(V,D),F=()=>N.removeListener(V,D),I=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return I.event}i.fromNodeEventEmitter=A;function U(N,V,H=D=>D){const D=(...K)=>I.fire(H(...K)),W=()=>N.addEventListener(V,D),F=()=>N.removeEventListener(V,D),I=new e({onFirstListenerAdd:W,onLastListenerRemove:F});return I.event}i.fromDOMEventEmitter=U;function L(N){return new Promise(V=>n(N)(V))}i.toPromise=L})(y||(y={}));class x{constructor(i){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${i}_${x._idPool++}`}start(i){this._stopWatch=new b.a(!0),this._listenerCount=i}stop(){if(this._stopWatch){const i=this._stopWatch.elapsed();this._elapsedOverall+=i,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${i.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}x._idPool=0;let O=-1;class m{constructor(i,n=Math.random().toString(18).slice(2,5)){this.customThreshold=i,this.name=n,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(i){let n=O;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||i{const d=this._stacks.get(l)||0;this._stacks.set(l,d-1)}}}class e{constructor(i){var n;this._disposed=!1,this._options=i,this._leakageMon=O>0?new m(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((n=this._options)===null||n===void 0?void 0:n._profName)?new x(this._options._profName):void 0}get event(){return this._event||(this._event=(i,n,l)=>{var h;this._listeners||(this._listeners=new T.a);const d=this._listeners.isEmpty();d&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(n?[i,n]:i);d&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,i,n);const c=(h=this._leakageMon)===null||h===void 0?void 0:h.check(this._listeners.size),w=Object(g.i)(()=>{if(c&&c(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return l instanceof g.b?l.add(w):Array.isArray(l)&&l.push(w),w}),this._event}fire(i){var n,l;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new T.a);for(let h of this._listeners)this._deliveryQueue.push([h,i]);for((n=this._perfMon)===null||n===void 0||n.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[h,d]=this._deliveryQueue.shift();try{typeof h=="function"?h.call(void 0,d):h[0].call(h[1],d)}catch(s){Object(P.f)(s)}}(l=this._perfMon)===null||l===void 0||l.stop()}}dispose(){var i,n,l,h,d;this._disposed||(this._disposed=!0,(i=this._listeners)===null||i===void 0||i.clear(),(n=this._deliveryQueue)===null||n===void 0||n.clear(),(h=(l=this._options)===null||l===void 0?void 0:l.onLastListenerRemove)===null||h===void 0||h.call(l),(d=this._leakageMon)===null||d===void 0||d.dispose())}}class f extends e{constructor(i){super(i);this._isPaused=0,this._eventQueue=new T.a,this._mergeFn=i==null?void 0:i.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const i=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(i))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(i){this._listeners&&(this._isPaused!==0?this._eventQueue.push(i):super.fire(i))}}class a extends f{constructor(i){var n;super(i);this._delay=(n=i.delay)!==null&&n!==void 0?n:100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}}class u{constructor(){this.buffers=[]}wrapEvent(i){return(n,l,h)=>i(d=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>n.call(l,d)):n.call(l,d)},void 0,h)}bufferEvents(i){const n=[];this.buffers.push(n);const l=i();return this.buffers.pop(),n.forEach(h=>h()),l}}class r{constructor(){this.listening=!1,this.inputEvent=y.None,this.inputEventListener=g.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(i){this.inputEvent=i,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=i(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(k,z,o){"use strict";(function(P,g){o.d(z,"b",function(){return l}),o.d(z,"i",function(){return c}),o.d(z,"f",function(){return w}),o.d(z,"d",function(){return E}),o.d(z,"g",function(){return v}),o.d(z,"h",function(){return R}),o.d(z,"c",function(){return M}),o.d(z,"k",function(){return C}),o.d(z,"j",function(){return S}),o.d(z,"a",function(){return _}),o.d(z,"e",function(){return L});var T;const b="en";let y=!1,x=!1,O=!1,m=!1,e=!1,f=!1,a=!1,u,r=b,i,n;const l=typeof self=="object"?self:typeof P=="object"?P:{};let h;typeof l.vscode!="undefined"&&typeof l.vscode.process!="undefined"?h=l.vscode.process:typeof g!="undefined"&&(h=g);const d=typeof((T=h==null?void 0:h.versions)===null||T===void 0?void 0:T.electron)=="string"&&h.type==="renderer";if(typeof navigator=="object"&&!d)n=navigator.userAgent,y=n.indexOf("Windows")>=0,x=n.indexOf("Macintosh")>=0,a=(n.indexOf("Macintosh")>=0||n.indexOf("iPad")>=0||n.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,O=n.indexOf("Linux")>=0,f=!0,u=navigator.language,r=u;else if(typeof h=="object"){y=h.platform==="win32",x=h.platform==="darwin",O=h.platform==="linux",m=O&&!!h.env.SNAP&&!!h.env.SNAP_REVISION,u=b,r=b;const N=h.env.VSCODE_NLS_CONFIG;if(N)try{const V=JSON.parse(N),H=V.availableLanguages["*"];u=V.locale,r=H||b,i=V._translationsConfigFile}catch(V){}e=!0}else console.error("Unable to resolve platform.");let s=0;x?s=1:y?s=3:O&&(s=2);const c=y,w=x,E=O,v=e,R=f,M=a,C=n,S=function(){if(l.setImmediate)return l.setImmediate.bind(l);if(typeof l.postMessage=="function"&&!l.importScripts){let H=[];l.addEventListener("message",W=>{if(W.data&&W.data.vscodeSetImmediateId)for(let F=0,I=H.length;F{const F=++D;H.push({id:F,callback:W}),l.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(h==null?void 0:h.nextTick)=="function")return h.nextTick.bind(h);const V=Promise.resolve();return H=>V.then(H)}(),_=x||a?2:y?1:3;let A=!0,U=!1;function L(){if(!U){U=!0;const N=new Uint8Array(2);N[0]=1,N[1]=2;const V=new Uint16Array(N.buffer);A=V[0]===(2<<8)+1}return A}}).call(this,o("IyRk"),o("Q2Ig"))},MlIO:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(g){var T=P,b=T.lib,y=b.Base,x=b.WordArray,O=T.x64={},m=O.Word=y.extend({init:function(f,a){this.high=f,this.low=a}}),e=O.WordArray=y.extend({init:function(f,a){f=this.words=f||[],a!=g?this.sigBytes=a:this.sigBytes=f.length*8},toX32:function(){for(var f=this.words,a=f.length,u=[],r=0;r=ve.length?_e:ve[Qe]})}function b(J){return J.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function y(J){return J.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function x(J,ve=" "){const _e=O(J,ve);return m(_e,ve)}function O(J,ve){if(!J||!ve)return J;const _e=ve.length;if(_e===0||J.length===0)return J;let Ae=0;for(;J.indexOf(ve,Ae)===Ae;)Ae=Ae+_e;return J.substring(Ae)}function m(J,ve){if(!J||!ve)return J;const _e=ve.length,Ae=J.length;if(_e===0||Ae===0)return J;let Qe=Ae,tt=-1;for(;!(tt=J.lastIndexOf(ve,Qe-1),tt===-1||tt+_e!==Qe);){if(tt===0)return"";Qe=tt}return J.substring(0,Qe)}function e(J){return J.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(J){return J.replace(/\*/g,"")}function a(J,ve,_e={}){if(!J)throw new Error("Cannot create regex from empty string");ve||(J=y(J)),_e.wholeWord&&(/\B/.test(J.charAt(0))||(J="\\b"+J),/\B/.test(J.charAt(J.length-1))||(J=J+"\\b"));let Ae="";return _e.global&&(Ae+="g"),_e.matchCase||(Ae+="i"),_e.multiline&&(Ae+="m"),_e.unicode&&(Ae+="u"),new RegExp(J,Ae)}function u(J){if(J.source==="^"||J.source==="^$"||J.source==="$"||J.source==="^\\s*$")return!1;const ve=J.exec("");return!!(ve&&J.lastIndex===0)}function r(J){return(J.global?"g":"")+(J.ignoreCase?"i":"")+(J.multiline?"m":"")+(J.unicode?"u":"")}function i(J){return J.split(/\r\n|\r|\n/)}function n(J){for(let ve=0,_e=J.length;ve<_e;ve++){const Ae=J.charCodeAt(ve);if(Ae!==32&&Ae!==9)return ve}return-1}function l(J,ve=0,_e=J.length){for(let Ae=ve;Ae<_e;Ae++){const Qe=J.charCodeAt(Ae);if(Qe!==32&&Qe!==9)return J.substring(ve,Ae)}return J.substring(ve,_e)}function h(J,ve=J.length-1){for(let _e=ve;_e>=0;_e--){const Ae=J.charCodeAt(_e);if(Ae!==32&&Ae!==9)return _e}return-1}function d(J,ve){return Jve?1:0}function s(J,ve,_e=0,Ae=J.length,Qe=0,tt=ve.length){for(;_eEt)return 1}const dt=Ae-_e,mt=tt-Qe;return dtmt?1:0}function c(J,ve){return w(J,ve,0,J.length,0,ve.length)}function w(J,ve,_e=0,Ae=J.length,Qe=0,tt=ve.length){for(;_e=128||Et>=128)return s(J.toLowerCase(),ve.toLowerCase(),_e,Ae,Qe,tt);E(vt)&&(vt-=32),E(Et)&&(Et-=32);const Ye=vt-Et;if(Ye===0)continue;return Ye}const dt=Ae-_e,mt=tt-Qe;return dtmt?1:0}function E(J){return J>=97&&J<=122}function v(J){return J>=65&&J<=90}function R(J,ve){return J.length===ve.length&&w(J,ve)===0}function M(J,ve){const _e=ve.length;return ve.length>J.length?!1:w(J,ve,0,_e)===0}function C(J,ve){let _e,Ae=Math.min(J.length,ve.length);for(_e=0;_e1){const Ae=J.charCodeAt(ve-2);if(_(Ae))return U(Ae,_e)}return _e}function V(J,ve){const _e=re.getInstance(),Ae=ve,Qe=J.length,tt=L(J,Qe,ve);ve+=tt>=65536?2:1;let dt=_e.getGraphemeBreakType(tt);for(;ve=65536?2:1,dt=vt}return ve-Ae}function H(J,ve){const _e=re.getInstance(),Ae=ve,Qe=N(J,ve);ve-=Qe>=65536?2:1;let tt=_e.getGraphemeBreakType(Qe);for(;ve>0;){const dt=N(J,ve),mt=_e.getGraphemeBreakType(dt);if(me(mt,tt))break;ve-=dt>=65536?2:1,tt=mt}return Ae-ve}const D=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function W(J){return D.test(J)}const F=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function I(J){return F.test(J)}const K=/^[\t\n\r\x20-\x7E]*$/;function ee(J){return K.test(J)}const he=/[\u2028\u2029]/;function de(J){return he.test(J)}function Se(J){for(let ve=0,_e=J.length;ve<_e;ve++)if(Te(J.charCodeAt(ve)))return!0;return!1}function Te(J){return J=+J,J>=11904&&J<=55215||J>=63744&&J<=64255||J>=65281&&J<=65374}function ce(J){return J>=127462&&J<=127487||J===8986||J===8987||J===9200||J===9203||J>=9728&&J<=10175||J===11088||J===11093||J>=127744&&J<=128591||J>=128640&&J<=128764||J>=128992&&J<=129003||J>=129280&&J<=129535||J>=129648&&J<=129750}const be=String.fromCharCode(65279);function Ee(J){return!!(J&&J.length>0&&J.charCodeAt(0)===65279)}function ue(J,ve=!1){return J?(ve&&(J=J.replace(/\\./g,"")),J.toLowerCase()!==J):!1}function le(J){const ve=90-65+1;return J=J%(2*ve),Jve[3*Ae+1])Ae=2*Ae+1;else return ve[3*Ae+2];return 0}}re._INSTANCE=null;function ae(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function Oe(J,ve){if(J===0)return 0;const _e=se(J,ve);if(_e!==void 0)return _e;const Ae=N(ve,J);return J-=te(Ae),J}function se(J,ve){let _e=N(ve,J);for(J-=te(_e);Q(_e)||_e===65039||_e===8419;){if(J===0)return;_e=N(ve,J),J-=te(_e)}if(!ce(_e))return;if(J>=0){const Ae=N(ve,J);Ae===8205&&(J-=te(Ae))}return J}function te(J){return J>=65536?2:1}function Q(J){return 127995<=J&&J<=127999}},N3QO:function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("tJVT"),b=o("q1tI"),y=o.n(b),x=o("9kvl"),O=o("FPkq"),m=o.n(O),e=function(a){var u,r=a.newShixuns,i=a.dispatch,n=a.user,l=Object(b.useState)(!1),h=Object(T.a)(l,2),d=h[0],s=h[1];Object(b.useEffect)(function(){r.actionTabs.key==="Create-Environment"&&w()},[r==null||((u=r.actionTabs)===null||u===void 0)?void 0:u.key]);var c=function(){i({type:"newShixuns/setActionTabs",payload:{}})},w=function(){var v,R,M;c(),((v=n.userInfo)===null||v===void 0?void 0:v.mirror_marker_status)===0?s(!0):((R=n.userInfo)===null||R===void 0?void 0:R.mirror_marker_status)===1?x.d.push("/shixuns/new/CreateImg"):((M=n.userInfo)===null||M===void 0?void 0:M.mirror_marker_status)===2&&g.a.confirm({title:"\u60A8\u4ECA\u65E5\u5DF2\u8FBE\u5230\u7533\u8BF7\u4E0A\u9650\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u4E91\u4E3B\u673A\u5217\u8868\uFF1F",content:"\u63D0\u793A\uFF1A\u6BCF\u5929\u6700\u591A\u5141\u8BB8\u7533\u8BF7\u4E00\u53F0\u4E91\u4E3B\u673A",okText:"\u8DF3\u8F6C",cancelText:"\u53D6\u6D88",onOk:function(){var S;x.d.push("/users/".concat((S=n.userInfo)===null||S===void 0?void 0:S.login,"/experiment-img"))}})};return y.a.createElement(g.a,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",visible:d,footer:null,onCancel:function(){s(!1)}},y.a.createElement("div",{style:{textAlign:"center"}},y.a.createElement("br",null),y.a.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:m.a,alt:"\u4E8C\u7EF4\u7801"})),y.a.createElement("img",null))};z.a=Object(x.a)(function(f){var a=f.newShixuns,u=f.user,r=f.globalSetting;return{newShixuns:a,globalSetting:r,user:u}})(e)},NFKh:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("MlIO"),o("F+F2"),o("qM6L"),o("ETIr"),o("wbyO"),o("cv67"),o("3y9D"),o("lPiR"),o("GRuw"),o("1uat"),o("uGsb"),o("5hvy"),o("ELcG"),o("WYAk"),o("e7zE"),o("K3mO"),o("OLod"),o("ALsQ"),o("9OqN"),o("qu8F"),o("S6kV"),o("gb/T"),o("qBft"),o("oRuE"),o("jO9C"),o("KmYQ"),o("uGxW"),o("bQjk"),o("wZgz"),o("pA7S"),o("w7YG"),o("E4JC"),o("PVpz"))})(this,function(P){return P})},NLgs:function(k,z,o){"use strict";o.d(z,"e",function(){return c}),o.d(z,"f",function(){return w}),o.d(z,"d",function(){return v}),o.d(z,"c",function(){return R}),o.d(z,"a",function(){return M}),o.d(z,"b",function(){return C});var P=o("miYZ"),g=o("tsqr"),T=o("9og8"),b=o("2qtc"),y=o("kLXV"),x=o("WmNS"),O=o.n(x),m=o("q1tI"),e=o.n(m),f=o("9kvl"),a=o("xKgJ"),u=o("1vsH"),r=o("RCxd"),i=o("yTi+"),n=o.n(i),l=o("1ZF9"),h=o.n(l),d=o("NoGO"),s=o.n(d),c=function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(w(_)&&E(A))},w=function(_){return Object(a.p)()?!0:(_({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},E=function(){var _,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,U=Object(f.c)()._store.getState(),L=U.user;return(_=L.userInfo)!==null&&_!==void 0&&_.profile_completed?!0:(y.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:A?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){f.d.push("/account/profile/edit")}}),!1)},v=function(){var _,A=Object(f.c)()._store.getState(),U=A.user;return(_=U.userInfo)!==null&&_!==void 0&&_.professional_certification?!0:(y.a.confirm({title:"\u63D0\u793A",centered:!0,content:e.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(u.S)("/account/certification")}}),!1)},R=function(){return Object(a.a)()?!0:(y.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),e.a.createElement("img",{src:s.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},M=function(_,A){return _?!0:(y.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("p",null,A||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),e.a.createElement("div",{style:{marginLeft:"110px"}},e.a.createElement("img",{src:h.a,width:200}),e.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(u.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},C=function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=Object(f.c)()._store.getState(),L=U.shixunsDetail.detail;return(L==null?void 0:L.public)===2||(L==null?void 0:L.public)===1||(L==null?void 0:L.shixun_status)===3?(y.a.info({centered:!0,icon:e.a.createElement(r.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(L==null?void 0:L.public)===2?"\u5DF2\u516C\u5F00":(L==null?void 0:L.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",A,"\u3002"),e.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),e.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:n.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(L==null?void 0:L.shixun_status)===2?(y.a.confirm({centered:!0,icon:e.a.createElement(r.a,null),title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",A,"\u3002"),e.a.createElement("br",null),e.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){y.a.confirm({width:440,centered:!0,icon:e.a.createElement(r.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var V=Object(T.a)(O.a.mark(function D(){var W;return O.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,_({type:"shixunsDetail/cancelRelease",payload:{id:L==null?void 0:L.identifier}});case 2:W=I.sent,W.status!==401&&(g.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),_({type:"shixunsDetail/getShixunsDetail",payload:{id:L==null?void 0:L.identifier}}),_({type:"practiceSetting/getCommonData",payload:{id:L==null?void 0:L.identifier}}));case 4:case"end":return I.stop()}},D)}));function H(){return V.apply(this,arguments)}return H}()})}}),!0):!1}},NQs2:function(k,z,o){k.exports={flex_box_center:"flex_box_center___3K14R",flex_space_between:"flex_space_between___1KE7t",flex_box_vertical_center:"flex_box_vertical_center___3Yslx",flex_box_center_end:"flex_box_center_end___2RmV-",flex_box_column:"flex_box_column___3k3IQ",banner:"banner___3caau",content:"content___fxe_p",btns:"btns___Vv-WB"}},Nf5h:function(k,z,o){"use strict";o.d(z,"a",function(){return m}),o.d(z,"h",function(){return n}),o.d(z,"l",function(){return s}),o.d(z,"e",function(){return M}),o.d(z,"i",function(){return A}),o.d(z,"j",function(){return ue}),o.d(z,"c",function(){return le.a}),o.d(z,"b",function(){return Oe}),o.d(z,"g",function(){return J}),o.d(z,"f",function(){return Qe}),o.d(z,"k",function(){return jt}),o.d(z,"d",function(){return He});var P=o("q1tI"),g=o.n(P),T=o("NQs2"),b=o.n(T),y=o("ygoZ"),x=o.n(y),O=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.img,We=Ce.imgWidth,st=We===void 0?346:We,Dt=Ce.title,Ht=Ce.sunTitle,rn=Ce.bannerExtraContent;return g.a.createElement("div",{className:b.a.banner},g.a.createElement("div",{className:b.a.content},g.a.createElement("aside",null,g.a.createElement("p",null,g.a.createElement("b",null,Dt),g.a.createElement("span",null,Ht)),Fe.length>0&&g.a.createElement("div",{className:b.a.btns},Fe.map(function(Bt,Ct){return g.a.createElement("div",{key:Ct,onClick:Bt.click},Bt.name,Bt.sign?g.a.createElement("img",{src:x.a,width:39}):null)})),rn),g.a.createElement("img",{style:{marginTop:33,marginRight:38},src:Be,width:st})))},m=O,e=o("tJVT"),f=o("6nfa"),a=o.n(f),u=o("TSYQ"),r=o.n(u),i=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.value,We=Ce.onChange,st=Ce.className,Dt=Ce.title,Ht=Ce.titleWidth,rn=Ht===void 0?41:Ht,Bt=Ce.style,Ct=Bt===void 0?{}:Bt,Ke=Ce.fontColor,et=Ke===void 0?"#6A7283":Ke,at=Object(P.useState)(0),Pe=Object(e.a)(at,2),Xe=Pe[0],ht=Pe[1],_t=Object(P.useState)(!1),Ot=Object(e.a)(_t,2),Nt=Ot[0],ut=Ot[1],Ft=Object(P.useRef)(null);return Object(P.useEffect)(function(){if(Fe.length!==0){var It;(Ft==null||((It=Ft.current)===null||It===void 0)?void 0:It.clientHeight)>92?ht(1):ht(0)}Fe.length===0&&ht(0)},[Fe]),g.a.createElement("div",{className:r()(a.a.row,st),style:Ct},g.a.createElement("div",{style:{width:rn,marginTop:Nt?12:4},className:a.a.title},Dt),g.a.createElement("div",{className:Nt?"".concat(a.a.tagsWrap," ").concat(a.a.tagsBorderWrap):a.a.tagsWrap},g.a.createElement("div",{className:a.a.bar,style:Xe>0?{height:Xe===1?92:"auto",overflow:Xe===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},g.a.createElement("div",{className:a.a.name,ref:Ft},Fe==null?void 0:Fe.map(function(It){return g.a.createElement("span",{onClick:function(){return We(It.id)},key:It.id,title:It.name,style:{color:et},className:Be===It.id?a.a.active:""},It.name)}))),!!Xe&&g.a.createElement(P.Fragment,null,Xe===1?g.a.createElement("div",{onClick:function(){var on;ht(2),(Ft==null||((on=Ft.current)===null||on===void 0)?void 0:on.clientHeight)>205?ut(!0):ut(!1)},className:a.a.action},"\u5C55\u5F00",g.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):g.a.createElement("div",{onClick:function(){ht(1),ut(!1)},className:a.a.action},"\u6536\u8D77",g.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},n=i,l=o("cz0n"),h=o.n(l),d=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.value,We=Ce.onChange,st=Ce.className;return g.a.createElement("div",{className:r()(h.a.tabs,st)},Fe.map(function(Dt){return g.a.createElement("span",{onClick:function(){return We(Dt.id)},className:Be===Dt.id?h.a.active:"",key:Dt.id},Dt.name)}))},s=d,c=o("5NDa"),w=o("5rEg"),E=o("KOXS"),v=o.n(E),R=function(Ce){var Ie,Fe=Ce.dataSource,Be=Fe===void 0?[]:Fe,We=Ce.value,st=Ce.onChange,Dt=Ce.className,Ht=Ce.style,rn=Ht===void 0?{}:Ht,Bt=Ce.placeholder,Ct=Object(P.useState)(""),Ke=Object(e.a)(Ct,2),et=Ke[0],at=Ke[1],Pe=Object(P.useState)(""),Xe=Object(e.a)(Pe,2),ht=Xe[0],_t=Xe[1];Object(P.useEffect)(function(){var ut;(ut=JSON.stringify(We))!==null&&ut!==void 0&&ut.includes("{")?(at(We.id),_t(We.value)):_t(We)},[We]);var Ot=function(){st(ht||null,et||"")},Nt=function(Ft){if(Ft===et)return;at(Ft),st(ht,Ft)};return g.a.createElement("div",{className:r()(v.a.input,Dt),style:rn},!!Be.length&&g.a.createElement("div",{className:v.a.dropdown},g.a.createElement("div",{className:v.a.text},(Ie=Be.find(function(ut){return ut.id===et}))===null||Ie===void 0?void 0:Ie.name,g.a.createElement("i",{className:"iconfont icon-zhankai4"}),g.a.createElement("b",{className:v.a.b1}),g.a.createElement("b",{className:v.a.b2})),g.a.createElement("div",{className:v.a.menu},Be.map(function(ut,Ft){return g.a.createElement("div",{key:Ft,onClick:function(){return Nt(ut.id)}},ut.name)}))),g.a.createElement(w.a,{onPressEnter:Ot,value:ht,onChange:function(Ft){return _t(Ft.target.value||"")},bordered:!1,placeholder:Bt}),g.a.createElement("i",{onClick:Ot,className:"iconfont icon-sousuo9 font14 pl10 current"}))},M=R,C=o("f9pc"),S=o.n(C),_=function(Ce){var Ie=Ce.value,Fe=Ce.onChange,Be=Ce.className,We=Ce.total,st=Ce.pageSize,Dt=Ce.style,Ht=Dt===void 0?{}:Dt,rn=Ie<2,Bt=Ie>=Math.ceil(We/st);return We<=st?g.a.createElement(g.a.Fragment,null):g.a.createElement("div",{className:r()(S.a.quickPager,Be),style:Ht},g.a.createElement("div",{onClick:function(){rn||Fe(Ie-1,"prev")},className:rn?S.a.disabled:""},"\u4E0A\u4E00\u9875"),g.a.createElement("div",{onClick:function(){Bt||Fe(Ie+1,"next")},className:Bt?S.a.disabled:""},"\u4E0B\u4E00\u9875"))},A=_,U=o("T2oS"),L=o("W9HT"),N=o("pC0b"),V=o("GzdX"),H=o("5Dmo"),D=o("3S7+"),W=o("Oe0F"),F=o.n(W),I=o("m3rI"),K=o("1vsH"),ee=o("JAbv"),he=o.n(ee),de=o("Bq7L"),Se=o.n(de),Te=o("MEgm"),ce=o.n(Te),be=o("BdwD"),Ee=function(Ce){var Ie=Ce.className,Fe=Ce.dataSource,Be=Fe===void 0?[]:Fe,We=Ce.col,st=We===void 0?4:We,Dt=Ce.right,Ht=Ce.bottom,rn=Ht===void 0?23:Ht,Bt=Ce.precision,Ct=Bt===void 0?0:Bt,Ke=Ce.wrapWidth,et=Ke===void 0?1200:Ke,at=Ce.trackEventItems,Pe=Ce.loading,Xe=Math.floor((et-(st-1)*Dt)/st);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:r()(F.a.list,Ie)},!!Be.length&&Be.map(function(ht,_t){var Ot=ht.name,Nt=ht.id,ut=ht.identifier,Ft=ht.power,It=ht.cover_image_id,on=ht.pic;return g.a.createElement("div",{className:F.a.wrap,key:Nt,style:{width:Xe,marginRight:(1+_t)%st===0?0:Dt+Ct,marginBottom:rn}},g.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(ut,"/challenges"),className:F.a.li,onClick:function(Hn){Hn.preventDefault(),at&&Object(K.cb)([at]),Ft&&Object(K.S)("/shixuns/".concat(ut,"/challenges"))}},g.a.createElement("div",{className:F.a.img},g.a.createElement("img",{className:F.a.cover,src:It?"".concat(I.a.API_SERVER,"/api/attachments/").concat(It):"".concat(I.a.IMG_SERVER,"/").concat(on)}),ht.is_jupyter&&g.a.createElement("img",{className:F.a.sign,src:he.a}),ht.is_jupyter_lab&&g.a.createElement("img",{className:F.a.sign,src:Se.a}),ht.is_unity_3d&&g.a.createElement("img",{className:F.a.sign,src:ce.a})),g.a.createElement("div",{className:F.a.name},g.a.createElement(D.a,{title:Ot||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},g.a.createElement("span",{className:F.a.e},Ot||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),g.a.createElement("div",{className:F.a.tags},g.a.createElement(D.a,{placement:"bottom",title:"\u5173\u5361\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),g.a.createElement("span",null,ht.challenges_count))),!!ht.myshixuns_count&&g.a.createElement(D.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.a.createElement("span",null,ht.myshixuns_count))),g.a.createElement(D.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},g.a.createElement("span",null,g.a.createElement("span",null,ht.level))),g.a.createElement("div",{className:F.a.rate},g.a.createElement(V.a,{allowHalf:!0,disabled:!0,defaultValue:ht.score_info}),g.a.createElement("span",null,"\xA0",ht.score_info?"".concat(ht.score_info,"\u5206"):"5\u5206")))),!Ft&&g.a.createElement("div",{className:F.a.lockWrap},g.a.createElement("img",{src:"".concat(I.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Be.length&&g.a.createElement(be.a,null)))},ue=Ee,le=o("LicW"),$=o("iL++"),me=o.n($),re=o("xiVL"),ae=function(Ce){var Ie=Ce.className,Fe=Ce.dataSource,Be=Fe===void 0?[]:Fe,We=Ce.col,st=We===void 0?4:We,Dt=Ce.right,Ht=Ce.bottom,rn=Ht===void 0?23:Ht,Bt=Ce.precision,Ct=Bt===void 0?0:Bt,Ke=Ce.wrapWidth,et=Ke===void 0?1200:Ke,at=Ce.trackEventItems,Pe=Ce.loading,Xe=Math.floor((et-(st-1)*Dt)/st);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:r()(me.a.list,Ie)},!!Be.length&&Be.map(function(ht,_t){var Ot=ht.subject_identifier,Nt=ht.id,ut=ht.identifier,Ft=ht.power,It=ht.is_public!=0&&ht.is_public;return g.a.createElement("div",{className:me.a.wrap,key:Nt,style:{width:Xe,marginRight:(1+_t)%st===0?0:Dt+Ct,marginBottom:rn}},g.a.createElement("a",{className:me.a.li,onClick:function(mn){mn.preventDefault()}},g.a.createElement("div",{className:me.a.top},g.a.createElement(D.a,{title:ht.name},g.a.createElement("div",{className:me.a.name},ht.name)),g.a.createElement("img",{className:me.a.img,src:I.a.IMG_SERVER+"/images/"+ht.avatar_url}),g.a.createElement("div",{className:me.a.text},ht.creator),Ot&&g.a.createElement("div",{className:me.a.btns},g.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),g.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),It&&g.a.createElement("div",{className:me.a.sign},"\u516C\u5F00")),g.a.createElement("div",{className:me.a.bottom},ht.visits>0&&g.a.createElement(D.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-liulanyan"}),g.a.createElement("span",null,ht.visits))),ht.course_members_count>0&&g.a.createElement(D.a,{title:"\u6210\u5458",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan"}),ht.course_members_count)),ht.tasks_count>0&&g.a.createElement(D.a,{title:"\u4F5C\u4E1A",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-zuoye"}),ht.tasks_count)),ht.is_end?g.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):g.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),g.a.createElement("div",{className:me.a.lockWrap},ht.is_accessible?g.a.createElement(g.a.Fragment,null,Ot&&g.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(Ot))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),g.a.createElement("div",{onClick:function(mn){at&&Object(K.cb)([at]),Object(K.S)(ht.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):g.a.createElement(g.a.Fragment,null,g.a.createElement("img",{src:"".concat(I.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!Be.length&&g.a.createElement(be.a,null)))},Oe=ae,se=o("f0W+"),te=o.n(se),Q=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.value,We=Ce.onChange,st=Ce.className,Dt=Ce.style,Ht=Dt===void 0?{}:Dt,rn=Ce.tabBarExtraContent;return g.a.createElement("div",{className:r()(te.a.tabs,st),style:Ht},g.a.createElement("div",{className:te.a.tabsWrap},Fe.map(function(Bt,Ct){return g.a.createElement("div",{onClick:function(){return We(Bt.id)},className:Be===Bt.id?te.a.active:"",key:Ct},Bt.name)})),g.a.createElement("div",{className:te.a.tabBar},rn))},J=Q,ve=o("9JIy"),_e=o.n(ve),Ae=function(Ce){var Ie=Ce.className,Fe=Ce.style,Be=Fe===void 0?{}:Fe,We=Ce.children;return g.a.createElement("div",{className:r()(_e.a.table,Ie),style:Be},We)},Qe=Ae,tt=o("qVdP"),dt=o("jsC+"),mt=o("lUTK"),vt=o("BvKs"),Et=o("8WcF"),Ye=o.n(Et),Ue=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],ft=function(Ce){var Ie,Fe=Ce.sortValue,Be=Ce.dropValue,We=Ce.className,st=Ce.onSort,Dt=Ce.onDrop,Ht=Ce.dataSource,rn=Ht===void 0?Ue:Ht;return g.a.createElement("div",{className:r()(Ye.a.orderWrap,We)},g.a.createElement(dt.a,{overlay:g.a.createElement(vt.a,null,rn.map(function(Bt,Ct){return g.a.createElement(vt.a.Item,{key:Ct,onClick:function(){return Dt(Bt.id)}},Bt.name)}))},g.a.createElement("span",{className:Ye.a.orderTextWrap},(Ie=rn.find(function(Bt){return Be===Bt.id}))===null||Ie===void 0?void 0:Ie.name)),g.a.createElement("span",{className:Ye.a.orderIconWrap},g.a.createElement("span",{className:Ye.a.orderAsc},g.a.createElement("i",{className:Fe==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Ye.a.cursorPointer," ").concat(Ye.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Ye.a.cursorPointer),onClick:function(){return st(Fe==="asc"?"desc":"asc")}})),g.a.createElement("span",{className:Ye.a.orderDesc},g.a.createElement("i",{className:Fe==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Ye.a.cursorPointer," ").concat(Ye.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Ye.a.cursorPointer),onClick:function(){return st(Fe==="asc"?"desc":"asc")}}))))},jt=ft,yt=o("siWv"),Pt=o.n(yt),it=function(Ce){var Ie=Ce.className,Fe=Ce.style,Be=Ce.children,We=Ce.onClick;return g.a.createElement("div",{onClick:We,className:r()(Pt.a.btn,Ie),style:Fe},Be)},He=it},Nmxd:function(k,z){k.exports="data:image/png;base64,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"},NoGO:function(k,z,o){k.exports=o.p+"static/newqrcode.d852fdfc.png"},NvD2:function(k,z,o){"use strict";o.d(z,"a",function(){return x});var P=o("Kwbf");function g(O,m){var e=new Set;return O.forEach(function(f){m.has(f)||e.add(f)}),e}function T(O){var m=O||{},e=m.disabled,f=m.disableCheckbox,a=m.checkable;return!!(e||f)||a===!1}function b(O,m,e,f){for(var a=new Set(O),u=new Set,r=0;r<=e;r+=1){var i=m.get(r)||new Set;i.forEach(function(d){var s=d.key,c=d.node,w=d.children,E=w===void 0?[]:w;a.has(s)&&!f(c)&&E.filter(function(v){return!f(v.node)}).forEach(function(v){a.add(v.key)})})}for(var n=new Set,l=e;l>=0;l-=1){var h=m.get(l)||new Set;h.forEach(function(d){var s=d.parent,c=d.node;if(f(c)||!d.parent||n.has(d.parent.key))return;if(f(d.parent.node)){n.add(s.key);return}var w=!0,E=!1;(s.children||[]).filter(function(v){return!f(v.node)}).forEach(function(v){var R=v.key,M=a.has(R);w&&!M&&(w=!1),!E&&(M||u.has(R))&&(E=!0)}),w&&a.add(s.key),E&&u.add(s.key),n.add(s.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(g(u,a))}}function y(O,m,e,f,a){for(var u=new Set(O),r=new Set(m),i=0;i<=f;i+=1){var n=e.get(i)||new Set;n.forEach(function(s){var c=s.key,w=s.node,E=s.children,v=E===void 0?[]:E;!u.has(c)&&!r.has(c)&&!a(w)&&v.filter(function(R){return!a(R.node)}).forEach(function(R){u.delete(R.key)})})}r=new Set;for(var l=new Set,h=f;h>=0;h-=1){var d=e.get(h)||new Set;d.forEach(function(s){var c=s.parent,w=s.node;if(a(w)||!s.parent||l.has(s.parent.key))return;if(a(s.parent.node)){l.add(c.key);return}var E=!0,v=!1;(c.children||[]).filter(function(R){return!a(R.node)}).forEach(function(R){var M=R.key,C=u.has(M);E&&!C&&(E=!1),!v&&(C||r.has(M))&&(v=!0)}),E||u.delete(c.key),v&&r.add(c.key),l.add(c.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(g(r,u))}}function x(O,m,e,f){var a=[],u;f?u=f:u=T;var r=new Set(O.filter(function(h){var d=!!e[h];return d||a.push(h),d})),i=new Map,n=0;Object.keys(e).forEach(function(h){var d=e[h],s=d.level,c=i.get(s);c||(c=new Set,i.set(s,c)),c.add(d),n=Math.max(n,s)}),Object(P.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var l;return m===!0?l=b(r,i,n,u):l=y(r,m.halfCheckedKeys,i,n,u),l}},OLES:function(k,z,o){"use strict";var P=o("U8pU"),g=o("VTBJ"),T=o("Ff2n"),b=o("q1tI"),y=o("uciX"),x=o("7ixt"),O=function(r){var i=r.overlay,n=r.prefixCls,l=r.id,h=r.overlayInnerStyle;return b.createElement("div",{className:"".concat(n,"-inner"),id:l,role:"tooltip",style:h},typeof i=="function"?i():i)},m=O,e=function(r,i){var n=r.overlayClassName,l=r.trigger,h=l===void 0?["hover"]:l,d=r.mouseEnterDelay,s=d===void 0?0:d,c=r.mouseLeaveDelay,w=c===void 0?.1:c,E=r.overlayStyle,v=r.prefixCls,R=v===void 0?"rc-tooltip":v,M=r.children,C=r.onVisibleChange,S=r.afterVisibleChange,_=r.transitionName,A=r.animation,U=r.placement,L=U===void 0?"right":U,N=r.align,V=N===void 0?{}:N,H=r.destroyTooltipOnHide,D=H===void 0?!1:H,W=r.defaultVisible,F=r.getTooltipContainer,I=r.overlayInnerStyle,K=Object(T.a)(r,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ee=Object(b.useRef)(null);Object(b.useImperativeHandle)(i,function(){return ee.current});var he=Object(g.a)({},K);"visible"in r&&(he.popupVisible=r.visible);var de=function(){var Ee=r.arrowContent,ue=Ee===void 0?null:Ee,le=r.overlay,$=r.id;return[b.createElement("div",{className:"".concat(R,"-arrow"),key:"arrow"},ue),b.createElement(m,{key:"content",prefixCls:R,id:$,overlay:le,overlayInnerStyle:I})]},Se=!1,Te=!1;if(typeof D=="boolean")Se=D;else if(D&&Object(P.a)(D)==="object"){var ce=D.keepParent;Se=ce===!0,Te=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:n,prefixCls:R,popup:de,action:h,builtinPlacements:x.a,popupPlacement:L,ref:ee,popupAlign:V,getPopupContainer:F,onPopupVisibleChange:C,afterPopupVisibleChange:S,popupTransitionName:_,popupAnimation:A,defaultPopupVisible:W,destroyPopupOnHide:Se,autoDestroy:Te,mouseLeaveDelay:w,popupStyle:E,mouseEnterDelay:s},he),M)},f=Object(b.forwardRef)(e),a=z.a=f},OLod:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("K3mO"))})(this,function(P){P.lib.Cipher||function(g){var T=P,b=T.lib,y=b.Base,x=b.WordArray,O=b.BufferedBlockAlgorithm,m=T.enc,e=m.Utf8,f=m.Base64,a=T.algo,u=a.EvpKDF,r=b.Cipher=O.extend({cfg:y.extend(),createEncryptor:function(_,A){return this.create(this._ENC_XFORM_MODE,_,A)},createDecryptor:function(_,A){return this.create(this._DEC_XFORM_MODE,_,A)},init:function(_,A,U){this.cfg=this.cfg.extend(U),this._xformMode=_,this._key=A,this.reset()},reset:function(){O.reset.call(this),this._doReset()},process:function(_){return this._append(_),this._process()},finalize:function(_){_&&this._append(_);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function _(A){return typeof A=="string"?S:R}return function(A){return{encrypt:function(U,L,N){return _(L).encrypt(A,U,L,N)},decrypt:function(U,L,N){return _(L).decrypt(A,U,L,N)}}}}()}),i=b.StreamCipher=r.extend({_doFinalize:function(){var _=this._process(!0);return _},blockSize:1}),n=T.mode={},l=b.BlockCipherMode=y.extend({createEncryptor:function(_,A){return this.Encryptor.create(_,A)},createDecryptor:function(_,A){return this.Decryptor.create(_,A)},init:function(_,A){this._cipher=_,this._iv=A}}),h=n.CBC=function(){var _=l.extend();_.Encryptor=_.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize;A.call(this,U,L,V),N.encryptBlock(U,L),this._prevBlock=U.slice(L,L+V)}}),_.Decryptor=_.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize,H=U.slice(L,L+V);N.decryptBlock(U,L),A.call(this,U,L,V),this._prevBlock=H}});function A(U,L,N){var V,H=this._iv;H?(V=H,this._iv=g):V=this._prevBlock;for(var D=0;D>>2]&255;_.sigBytes-=A}},c=b.BlockCipher=r.extend({cfg:r.cfg.extend({mode:h,padding:s}),reset:function(){var _;r.reset.call(this);var A=this.cfg,U=A.iv,L=A.mode;this._xformMode==this._ENC_XFORM_MODE?_=L.createEncryptor:(_=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==_?this._mode.init(this,U&&U.words):(this._mode=_.call(L,this,U&&U.words),this._mode.__creator=_)},_doProcessBlock:function(_,A){this._mode.processBlock(_,A)},_doFinalize:function(){var _,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),_=this._process(!0)):(_=this._process(!0),A.unpad(_)),_},blockSize:128/32}),w=b.CipherParams=y.extend({init:function(_){this.mixIn(_)},toString:function(_){return(_||this.formatter).stringify(this)}}),E=T.format={},v=E.OpenSSL={stringify:function(_){var A,U=_.ciphertext,L=_.salt;return L?A=x.create([1398893684,1701076831]).concat(L).concat(U):A=U,A.toString(f)},parse:function(_){var A,U=f.parse(_),L=U.words;return L[0]==1398893684&&L[1]==1701076831&&(A=x.create(L.slice(2,4)),L.splice(0,4),U.sigBytes-=16),w.create({ciphertext:U,salt:A})}},R=b.SerializableCipher=y.extend({cfg:y.extend({format:v}),encrypt:function(_,A,U,L){L=this.cfg.extend(L);var N=_.createEncryptor(U,L),V=N.finalize(A),H=N.cfg;return w.create({ciphertext:V,key:U,iv:H.iv,algorithm:_,mode:H.mode,padding:H.padding,blockSize:_.blockSize,formatter:L.format})},decrypt:function(_,A,U,L){L=this.cfg.extend(L),A=this._parse(A,L.format);var N=_.createDecryptor(U,L).finalize(A.ciphertext);return N},_parse:function(_,A){return typeof _=="string"?A.parse(_,this):_}}),M=T.kdf={},C=M.OpenSSL={execute:function(_,A,U,L){L||(L=x.random(64/8));var N=u.create({keySize:A+U}).compute(_,L),V=x.create(N.words.slice(A),U*4);return N.sigBytes=A*4,w.create({key:N,iv:V,salt:L})}},S=b.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:C}),encrypt:function(_,A,U,L){L=this.cfg.extend(L);var N=L.kdf.execute(U,_.keySize,_.ivSize);L.iv=N.iv;var V=R.encrypt.call(this,_,A,N.key,L);return V.mixIn(N),V},decrypt:function(_,A,U,L){L=this.cfg.extend(L),A=this._parse(A,L.format);var N=L.kdf.execute(U,_.keySize,_.ivSize,A.salt);L.iv=N.iv;var V=R.decrypt.call(this,_,A,N.key,L);return V}})}()})},OZM5:function(k,z,o){"use strict";o.d(z,"b",function(){return f}),o.d(z,"a",function(){return a}),o.d(z,"k",function(){return u}),o.d(z,"h",function(){return r}),o.d(z,"i",function(){return i}),o.d(z,"g",function(){return n}),o.d(z,"c",function(){return l}),o.d(z,"d",function(){return h}),o.d(z,"j",function(){return c}),o.d(z,"e",function(){return w}),o.d(z,"f",function(){return E});var P=o("KQm4"),g=o("U8pU"),T=o("Ff2n"),b=o("q1tI"),y=o.n(b),x=o("Kwbf"),O=o("WaYH"),m=.25,e=2;function f(v,R){var M=v.slice(),C=M.indexOf(R);return C>=0&&M.splice(C,1),M}function a(v,R){var M=v.slice();return M.indexOf(R)===-1&&M.push(R),M}function u(v){return v.split("-")}function r(v,R){return"".concat(v,"-").concat(R)}function i(v){return v&&v.type&&v.type.isTreeNode}function n(v,R){var M=[v],C=R[v];function S(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(A){var U=A.key,L=A.children;M.push(U),S(L)})}return S(C.children),M}function l(v,R){var M=v.clientY,C=R.selectHandle.getBoundingClientRect(),S=C.top,_=C.bottom,A=C.height,U=Math.max(A*m,e);return M<=S+U?-1:M>=_-U?1:0}function h(v,R){if(!v)return;var M=R.multiple;return M?v.slice():v.length?[v[0]]:v}var d=function(R){return R};function s(v,R){if(!v)return[];var M=R||{},C=M.processProps,S=C===void 0?d:C,_=Array.isArray(v)?v:[v];return _.map(function(A){var U=A.children,L=Object(T.a)(A,["children"]),N=s(U,R);return y.a.createElement(O.a,Object.assign({},S(L)),N)})}function c(v){if(!v)return null;var R;if(Array.isArray(v))R={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(g.a)(v)==="object")R={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(x.a)(!1,"`checkedKeys` is not an array or an object"),null;return R}function w(v,R){var M=new Set;function C(S){if(M.has(S))return;var _=R[S];if(!_)return;M.add(S);var A=_.parent,U=_.node;if(U.disabled)return;A&&C(A.key)}return(v||[]).forEach(function(S){C(S)}),Object(P.a)(M)}function E(v){var R={};return Object.keys(v).forEach(function(M){(M.startsWith("data-")||M.startsWith("aria-"))&&(R[M]=v[M])}),R}},Oe0F:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},Ohmc:function(k,z,o){k.exports=o.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("rAM+"),b=o("miYZ"),y=o("tsqr"),x=o("9og8"),O=o("tJVT"),m=o("jrin"),e=o("WmNS"),f=o.n(e),a=o("q1tI"),u=o.n(a),r=o("VrN/"),i=o.n(r),n=o("bdgK"),l=o("p77/"),h=o("Bd2K"),d=o("ELLl"),s=o("19Vz"),c=o("lZu9"),w=o("+NIl"),E=o("kSUc"),v=o("9Bee"),R=function(We){var st=We.value,Dt=st===void 0?"":st,Ht=We.className,rn=We.showTextOnly,Bt=We.showLines,Ct=We.style,Ke=Ct===void 0?{}:Ct,et=Object(a.useMemo)(function(){return""},[Dt]);return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{dangerouslySetInnerHTML:{__html:et}}))},M=o("0Owb"),C=o("dejd"),S=o("C+DQ"),_=o("1vsH"),A=o("m3rI"),U=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function L(We){var st=We.onActionCallback,Dt=We.title,Ht=We.icon,rn=We.actionName,Bt=We.className,Ct=Bt===void 0?"":Bt,Ke=We.children;function et(){st(rn)}return u.a.createElement("a",{title:Dt,className:Ct,onClick:et},u.a.createElement("i",{className:"md-iconfont ".concat(Ht)}),Ke)}var N=function(We){var st=We.watch,Dt=We.showNullButton,Ht=We.onActionCallback,rn=We.fullScreen,Bt=We.insertTemp,Ct=We.hidetoolBar,Ke=We.uuid,et=We.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(_.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(_.F)("_educoder_session"),"&key=").concat(Ke,"&api=").concat(encodeURIComponent(A.a.PROXY_SERVER)));var at=[].concat(U,[{title:"".concat(st?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(st?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return u.a.createElement("ul",{className:"markdown-toolbar-container"},!Ct&&at.map(function(Pe,Xe){return u.a.createElement("li",{key:Xe},Pe.actionName?u.a.createElement(L,Object(M.a)({},Pe,{onActionCallback:Ht})):u.a.createElement("span",{className:"v-line"}))}),Dt?u.a.createElement("li",null,u.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ht},u.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Bt&&u.a.createElement("li",null,u.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Bt),onActionCallback:Ht},u.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),u.a.createElement("li",{className:"btn-full-screen"},u.a.createElement(L,{icon:"".concat(rn?"icon-shrink":"icon-enlarge"),title:rn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ht})))},V=o("M8RZ"),H=o("+L6B"),D=o("2/Rp"),W=o("y8nQ"),F=o("Vl3Y"),I=o("5NDa"),K=o("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},he=function(We){var st=We.callback,Dt=We.onCancel;function Ht(rn){st(rn)}return u.a.createElement(F.a,Object(M.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ht}),u.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},u.a.createElement(K.a,null)),u.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},u.a.createElement(K.a,null)),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))},de=o("7ahc"),Se=o("HmJG"),Te=o("BjJ7"),ce=F.a.useForm,be={width:280,marginRight:10},Ee={labelCol:{span:5},wrapperCol:{span:19}},ue=function(We){var st=We.callback,Dt=We.onCancel,Ht=ce(),rn=Object(O.a)(Ht,1),Bt=rn[0];function Ct(at){st(at)}function Ke(at,Pe){if(at.status===-1){y.b.error(at.message);return}Bt.setFieldsValue({src:"/api/attachments/".concat(at.id),type:Pe.type})}function et(at){var Pe=at.target.files[0];$(Pe,Ke)}return u.a.createElement(F.a,Object(M.a)({form:Bt},Ee,{className:"upload-image-panel",onFinish:Ct}),u.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},u.a.createElement("div",{className:"flex-container"},u.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},u.a.createElement(K.a,{style:be})),u.a.createElement(le,{onFileChange:et}))),u.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},u.a.createElement(K.a,{style:{width:264}})),u.a.createElement(F.a.Item,{style:{textAlign:"right"}},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))};function le(We){var st=We.onFileChange;return u.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",u.a.createElement("input",{type:"file",onChange:st}))}function $(We,st){if(!We)throw new String("\u6CA1\u6709\u6587\u4EF6");var Dt=new FormData;Dt.append("editormd-image-file",We),Dt.append("file_param_name","editormd-image-file"),Dt.append("byxhr","true");var Ht=new window.XMLHttpRequest;Ht.withCredentials=!0,Ht.addEventListener("load",function(rn){st(JSON.parse(rn.target.responseText),We)},!1),Ht.addEventListener("error",function(rn){console.error(rn)},!1),Ht.open("POST","".concat(Te.a,"/api/attachments.json")),Ht.send(Dt)}var me=o("giR+"),re=o("fyUT"),ae=o("7Kak"),Oe=o("9yH6"),se=Oe.a.Group,te={margin:"0 8px"},Q=function(We){var st=We.callback,Dt=We.onCancel;function Ht(rn){st(rn)}return u.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ht},u.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},u.a.createElement("span",{style:te},"\u5355\u5143\u683C\u6570\uFF1A"),u.a.createElement("span",{style:te},"\u884C\u6570"),u.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},u.a.createElement(re.a,null)),u.a.createElement("span",{style:te},"\u5217\u6570"),u.a.createElement(F.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},u.a.createElement(re.a,null))),u.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},u.a.createElement("span",{style:te},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),u.a.createElement(F.a.Item,{name:"align"},u.a.createElement(se,null,u.a.createElement(Oe.a,{value:"default"},u.a.createElement("i",{className:"fa fa-align-justify"})),u.a.createElement(Oe.a,{value:"left"},u.a.createElement("i",{className:"fa fa-align-left"})),u.a.createElement(Oe.a,{value:"center"},u.a.createElement("i",{className:"fa fa-align-center"})),u.a.createElement(Oe.a,{value:"right"},u.a.createElement("i",{className:"fa fa-align-right"}))))),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))},J=o("ErOA"),ve=o("7Cbv"),_e="link",Ae="upload-image",Qe="code-block",tt="add-table",dt="------------",mt={default:dt,left:":".concat(dt),center:":".concat(dt,":"),right:"".concat(dt,":")},vt=o("9VGf"),Et,Ye;function Ue(){}var ft=0,jt=1e4,yt="\u2581",Pt=` +`),h=this._stacks.get(l)||0;if(this._stacks.set(l,h+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let d,s=0;for(const[c,w]of this._stacks)(!d||s{const d=this._stacks.get(l)||0;this._stacks.set(l,d-1)}}}class e{constructor(i){var n;this._disposed=!1,this._options=i,this._leakageMon=O>0?new m(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((n=this._options)===null||n===void 0?void 0:n._profName)?new x(this._options._profName):void 0}get event(){return this._event||(this._event=(i,n,l)=>{var h;this._listeners||(this._listeners=new T.a);const d=this._listeners.isEmpty();d&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(n?[i,n]:i);d&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,i,n);const c=(h=this._leakageMon)===null||h===void 0?void 0:h.check(this._listeners.size),w=Object(g.i)(()=>{if(c&&c(),!this._disposed&&(s(),this._options&&this._options.onLastListenerRemove)){const E=this._listeners&&!this._listeners.isEmpty();E||this._options.onLastListenerRemove(this)}});return l instanceof g.b?l.add(w):Array.isArray(l)&&l.push(w),w}),this._event}fire(i){var n,l;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new T.a);for(let h of this._listeners)this._deliveryQueue.push([h,i]);for((n=this._perfMon)===null||n===void 0||n.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[h,d]=this._deliveryQueue.shift();try{typeof h=="function"?h.call(void 0,d):h[0].call(h[1],d)}catch(s){Object(P.f)(s)}}(l=this._perfMon)===null||l===void 0||l.stop()}}dispose(){var i,n,l,h,d;this._disposed||(this._disposed=!0,(i=this._listeners)===null||i===void 0||i.clear(),(n=this._deliveryQueue)===null||n===void 0||n.clear(),(h=(l=this._options)===null||l===void 0?void 0:l.onLastListenerRemove)===null||h===void 0||h.call(l),(d=this._leakageMon)===null||d===void 0||d.dispose())}}class f extends e{constructor(i){super(i);this._isPaused=0,this._eventQueue=new T.a,this._mergeFn=i==null?void 0:i.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const i=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(i))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(i){this._listeners&&(this._isPaused!==0?this._eventQueue.push(i):super.fire(i))}}class a extends f{constructor(i){var n;super(i);this._delay=(n=i.delay)!==null&&n!==void 0?n:100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}}class u{constructor(){this.buffers=[]}wrapEvent(i){return(n,l,h)=>i(d=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>n.call(l,d)):n.call(l,d)},void 0,h)}bufferEvents(i){const n=[];this.buffers.push(n);const l=i();return this.buffers.pop(),n.forEach(h=>h()),l}}class r{constructor(){this.listening=!1,this.inputEvent=y.None,this.inputEventListener=g.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(i){this.inputEvent=i,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=i(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(k,z,o){"use strict";(function(P,g){o.d(z,"b",function(){return l}),o.d(z,"i",function(){return c}),o.d(z,"f",function(){return w}),o.d(z,"d",function(){return E}),o.d(z,"g",function(){return v}),o.d(z,"h",function(){return R}),o.d(z,"c",function(){return M}),o.d(z,"k",function(){return C}),o.d(z,"j",function(){return S}),o.d(z,"a",function(){return _}),o.d(z,"e",function(){return L});var T;const b="en";let y=!1,x=!1,O=!1,m=!1,e=!1,f=!1,a=!1,u,r=b,i,n;const l=typeof self=="object"?self:typeof P=="object"?P:{};let h;typeof l.vscode!="undefined"&&typeof l.vscode.process!="undefined"?h=l.vscode.process:typeof g!="undefined"&&(h=g);const d=typeof((T=h==null?void 0:h.versions)===null||T===void 0?void 0:T.electron)=="string"&&h.type==="renderer";if(typeof navigator=="object"&&!d)n=navigator.userAgent,y=n.indexOf("Windows")>=0,x=n.indexOf("Macintosh")>=0,a=(n.indexOf("Macintosh")>=0||n.indexOf("iPad")>=0||n.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,O=n.indexOf("Linux")>=0,f=!0,u=navigator.language,r=u;else if(typeof h=="object"){y=h.platform==="win32",x=h.platform==="darwin",O=h.platform==="linux",m=O&&!!h.env.SNAP&&!!h.env.SNAP_REVISION,u=b,r=b;const N=h.env.VSCODE_NLS_CONFIG;if(N)try{const V=JSON.parse(N),H=V.availableLanguages["*"];u=V.locale,r=H||b,i=V._translationsConfigFile}catch(V){}e=!0}else console.error("Unable to resolve platform.");let s=0;x?s=1:y?s=3:O&&(s=2);const c=y,w=x,E=O,v=e,R=f,M=a,C=n,S=function(){if(l.setImmediate)return l.setImmediate.bind(l);if(typeof l.postMessage=="function"&&!l.importScripts){let H=[];l.addEventListener("message",W=>{if(W.data&&W.data.vscodeSetImmediateId)for(let F=0,I=H.length;F{const F=++D;H.push({id:F,callback:W}),l.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(h==null?void 0:h.nextTick)=="function")return h.nextTick.bind(h);const V=Promise.resolve();return H=>V.then(H)}(),_=x||a?2:y?1:3;let A=!0,U=!1;function L(){if(!U){U=!0;const N=new Uint8Array(2);N[0]=1,N[1]=2;const V=new Uint16Array(N.buffer);A=V[0]===(2<<8)+1}return A}}).call(this,o("IyRk"),o("Q2Ig"))},MlIO:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(g){var T=P,b=T.lib,y=b.Base,x=b.WordArray,O=T.x64={},m=O.Word=y.extend({init:function(f,a){this.high=f,this.low=a}}),e=O.WordArray=y.extend({init:function(f,a){f=this.words=f||[],a!=g?this.sigBytes=a:this.sigBytes=f.length*8},toX32:function(){for(var f=this.words,a=f.length,u=[],r=0;r=ve.length?_e:ve[Qe]})}function b(J){return J.replace(/[<>&]/g,function(ve){switch(ve){case"<":return"<";case">":return">";case"&":return"&";default:return ve}})}function y(J){return J.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function x(J,ve=" "){const _e=O(J,ve);return m(_e,ve)}function O(J,ve){if(!J||!ve)return J;const _e=ve.length;if(_e===0||J.length===0)return J;let Ae=0;for(;J.indexOf(ve,Ae)===Ae;)Ae=Ae+_e;return J.substring(Ae)}function m(J,ve){if(!J||!ve)return J;const _e=ve.length,Ae=J.length;if(_e===0||Ae===0)return J;let Qe=Ae,tt=-1;for(;!(tt=J.lastIndexOf(ve,Qe-1),tt===-1||tt+_e!==Qe);){if(tt===0)return"";Qe=tt}return J.substring(0,Qe)}function e(J){return J.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(J){return J.replace(/\*/g,"")}function a(J,ve,_e={}){if(!J)throw new Error("Cannot create regex from empty string");ve||(J=y(J)),_e.wholeWord&&(/\B/.test(J.charAt(0))||(J="\\b"+J),/\B/.test(J.charAt(J.length-1))||(J=J+"\\b"));let Ae="";return _e.global&&(Ae+="g"),_e.matchCase||(Ae+="i"),_e.multiline&&(Ae+="m"),_e.unicode&&(Ae+="u"),new RegExp(J,Ae)}function u(J){if(J.source==="^"||J.source==="^$"||J.source==="$"||J.source==="^\\s*$")return!1;const ve=J.exec("");return!!(ve&&J.lastIndex===0)}function r(J){return(J.global?"g":"")+(J.ignoreCase?"i":"")+(J.multiline?"m":"")+(J.unicode?"u":"")}function i(J){return J.split(/\r\n|\r|\n/)}function n(J){for(let ve=0,_e=J.length;ve<_e;ve++){const Ae=J.charCodeAt(ve);if(Ae!==32&&Ae!==9)return ve}return-1}function l(J,ve=0,_e=J.length){for(let Ae=ve;Ae<_e;Ae++){const Qe=J.charCodeAt(Ae);if(Qe!==32&&Qe!==9)return J.substring(ve,Ae)}return J.substring(ve,_e)}function h(J,ve=J.length-1){for(let _e=ve;_e>=0;_e--){const Ae=J.charCodeAt(_e);if(Ae!==32&&Ae!==9)return _e}return-1}function d(J,ve){return Jve?1:0}function s(J,ve,_e=0,Ae=J.length,Qe=0,tt=ve.length){for(;_eyt)return 1}const dt=Ae-_e,mt=tt-Qe;return dtmt?1:0}function c(J,ve){return w(J,ve,0,J.length,0,ve.length)}function w(J,ve,_e=0,Ae=J.length,Qe=0,tt=ve.length){for(;_e=128||yt>=128)return s(J.toLowerCase(),ve.toLowerCase(),_e,Ae,Qe,tt);E(vt)&&(vt-=32),E(yt)&&(yt-=32);const Ye=vt-yt;if(Ye===0)continue;return Ye}const dt=Ae-_e,mt=tt-Qe;return dtmt?1:0}function E(J){return J>=97&&J<=122}function v(J){return J>=65&&J<=90}function R(J,ve){return J.length===ve.length&&w(J,ve)===0}function M(J,ve){const _e=ve.length;return ve.length>J.length?!1:w(J,ve,0,_e)===0}function C(J,ve){let _e,Ae=Math.min(J.length,ve.length);for(_e=0;_e1){const Ae=J.charCodeAt(ve-2);if(_(Ae))return U(Ae,_e)}return _e}function V(J,ve){const _e=re.getInstance(),Ae=ve,Qe=J.length,tt=L(J,Qe,ve);ve+=tt>=65536?2:1;let dt=_e.getGraphemeBreakType(tt);for(;ve=65536?2:1,dt=vt}return ve-Ae}function H(J,ve){const _e=re.getInstance(),Ae=ve,Qe=N(J,ve);ve-=Qe>=65536?2:1;let tt=_e.getGraphemeBreakType(Qe);for(;ve>0;){const dt=N(J,ve),mt=_e.getGraphemeBreakType(dt);if(me(mt,tt))break;ve-=dt>=65536?2:1,tt=mt}return Ae-ve}const D=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function W(J){return D.test(J)}const F=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function I(J){return F.test(J)}const K=/^[\t\n\r\x20-\x7E]*$/;function ee(J){return K.test(J)}const he=/[\u2028\u2029]/;function de(J){return he.test(J)}function Se(J){for(let ve=0,_e=J.length;ve<_e;ve++)if(Te(J.charCodeAt(ve)))return!0;return!1}function Te(J){return J=+J,J>=11904&&J<=55215||J>=63744&&J<=64255||J>=65281&&J<=65374}function ce(J){return J>=127462&&J<=127487||J===8986||J===8987||J===9200||J===9203||J>=9728&&J<=10175||J===11088||J===11093||J>=127744&&J<=128591||J>=128640&&J<=128764||J>=128992&&J<=129003||J>=129280&&J<=129535||J>=129648&&J<=129750}const be=String.fromCharCode(65279);function Ee(J){return!!(J&&J.length>0&&J.charCodeAt(0)===65279)}function ue(J,ve=!1){return J?(ve&&(J=J.replace(/\\./g,"")),J.toLowerCase()!==J):!1}function le(J){const ve=90-65+1;return J=J%(2*ve),Jve[3*Ae+1])Ae=2*Ae+1;else return ve[3*Ae+2];return 0}}re._INSTANCE=null;function ae(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function Oe(J,ve){if(J===0)return 0;const _e=se(J,ve);if(_e!==void 0)return _e;const Ae=N(ve,J);return J-=te(Ae),J}function se(J,ve){let _e=N(ve,J);for(J-=te(_e);Q(_e)||_e===65039||_e===8419;){if(J===0)return;_e=N(ve,J),J-=te(_e)}if(!ce(_e))return;if(J>=0){const Ae=N(ve,J);Ae===8205&&(J-=te(Ae))}return J}function te(J){return J>=65536?2:1}function Q(J){return 127995<=J&&J<=127999}},N3QO:function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("tJVT"),b=o("q1tI"),y=o.n(b),x=o("9kvl"),O=o("FPkq"),m=o.n(O),e=function(a){var u,r=a.newShixuns,i=a.dispatch,n=a.user,l=Object(b.useState)(!1),h=Object(T.a)(l,2),d=h[0],s=h[1];Object(b.useEffect)(function(){r.actionTabs.key==="Create-Environment"&&w()},[r==null||((u=r.actionTabs)===null||u===void 0)?void 0:u.key]);var c=function(){i({type:"newShixuns/setActionTabs",payload:{}})},w=function(){var v,R,M;c(),((v=n.userInfo)===null||v===void 0?void 0:v.mirror_marker_status)===0?s(!0):((R=n.userInfo)===null||R===void 0?void 0:R.mirror_marker_status)===1?x.d.push("/shixuns/new/CreateImg"):((M=n.userInfo)===null||M===void 0?void 0:M.mirror_marker_status)===2&&g.a.confirm({title:"\u60A8\u4ECA\u65E5\u5DF2\u8FBE\u5230\u7533\u8BF7\u4E0A\u9650\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u4E91\u4E3B\u673A\u5217\u8868\uFF1F",content:"\u63D0\u793A\uFF1A\u6BCF\u5929\u6700\u591A\u5141\u8BB8\u7533\u8BF7\u4E00\u53F0\u4E91\u4E3B\u673A",okText:"\u8DF3\u8F6C",cancelText:"\u53D6\u6D88",onOk:function(){var S;x.d.push("/users/".concat((S=n.userInfo)===null||S===void 0?void 0:S.login,"/experiment-img"))}})};return y.a.createElement(g.a,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",visible:d,footer:null,onCancel:function(){s(!1)}},y.a.createElement("div",{style:{textAlign:"center"}},y.a.createElement("br",null),y.a.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:m.a,alt:"\u4E8C\u7EF4\u7801"})),y.a.createElement("img",null))};z.a=Object(x.a)(function(f){var a=f.newShixuns,u=f.user,r=f.globalSetting;return{newShixuns:a,globalSetting:r,user:u}})(e)},NFKh:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("MlIO"),o("F+F2"),o("qM6L"),o("ETIr"),o("wbyO"),o("cv67"),o("3y9D"),o("lPiR"),o("GRuw"),o("1uat"),o("uGsb"),o("5hvy"),o("ELcG"),o("WYAk"),o("e7zE"),o("K3mO"),o("OLod"),o("ALsQ"),o("9OqN"),o("qu8F"),o("S6kV"),o("gb/T"),o("qBft"),o("oRuE"),o("jO9C"),o("KmYQ"),o("uGxW"),o("bQjk"),o("wZgz"),o("pA7S"),o("w7YG"),o("E4JC"),o("PVpz"))})(this,function(P){return P})},NLgs:function(k,z,o){"use strict";o.d(z,"e",function(){return c}),o.d(z,"f",function(){return w}),o.d(z,"d",function(){return v}),o.d(z,"c",function(){return R}),o.d(z,"a",function(){return M}),o.d(z,"b",function(){return C});var P=o("miYZ"),g=o("tsqr"),T=o("9og8"),b=o("2qtc"),y=o("kLXV"),x=o("WmNS"),O=o.n(x),m=o("q1tI"),e=o.n(m),f=o("9kvl"),a=o("xKgJ"),u=o("1vsH"),r=o("RCxd"),i=o("yTi+"),n=o.n(i),l=o("1ZF9"),h=o.n(l),d=o("NoGO"),s=o.n(d),c=function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(w(_)&&E(A))},w=function(_){return Object(a.p)()?!0:(_({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},E=function(){var _,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,U=Object(f.c)()._store.getState(),L=U.user;return(_=L.userInfo)!==null&&_!==void 0&&_.profile_completed?!0:(y.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:A?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){f.d.push("/account/profile/edit")}}),!1)},v=function(){var _,A=Object(f.c)()._store.getState(),U=A.user;return(_=U.userInfo)!==null&&_!==void 0&&_.professional_certification?!0:(y.a.confirm({title:"\u63D0\u793A",centered:!0,content:e.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(u.S)("/account/certification")}}),!1)},R=function(){return Object(a.a)()?!0:(y.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),e.a.createElement("img",{src:s.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},M=function(_,A){return _?!0:(y.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("p",null,A||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),e.a.createElement("div",{style:{marginLeft:"110px"}},e.a.createElement("img",{src:h.a,width:200}),e.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(u.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},C=function(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=Object(f.c)()._store.getState(),L=U.shixunsDetail.detail;return(L==null?void 0:L.public)===2||(L==null?void 0:L.public)===1||(L==null?void 0:L.shixun_status)===3?(y.a.info({centered:!0,icon:e.a.createElement(r.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc",style:{marginLeft:-38}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(L==null?void 0:L.public)===2?"\u5DF2\u516C\u5F00":(L==null?void 0:L.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",A,"\u3002"),e.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),e.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:n.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(L==null?void 0:L.shixun_status)===2?(y.a.confirm({centered:!0,icon:e.a.createElement(r.a,null),title:"\u63D0\u793A",content:e.a.createElement("div",null,e.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",A,"\u3002"),e.a.createElement("br",null),e.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){y.a.confirm({width:440,centered:!0,icon:e.a.createElement(r.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var V=Object(T.a)(O.a.mark(function D(){var W;return O.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,_({type:"shixunsDetail/cancelRelease",payload:{id:L==null?void 0:L.identifier}});case 2:W=I.sent,W.status!==401&&(g.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),_({type:"shixunsDetail/getShixunsDetail",payload:{id:L==null?void 0:L.identifier}}),_({type:"practiceSetting/getCommonData",payload:{id:L==null?void 0:L.identifier}}));case 4:case"end":return I.stop()}},D)}));function H(){return V.apply(this,arguments)}return H}()})}}),!0):!1}},NQs2:function(k,z,o){k.exports={flex_box_center:"flex_box_center___3K14R",flex_space_between:"flex_space_between___1KE7t",flex_box_vertical_center:"flex_box_vertical_center___3Yslx",flex_box_center_end:"flex_box_center_end___2RmV-",flex_box_column:"flex_box_column___3k3IQ",banner:"banner___3caau",content:"content___fxe_p",btns:"btns___Vv-WB"}},Nf5h:function(k,z,o){"use strict";o.d(z,"a",function(){return m}),o.d(z,"h",function(){return n}),o.d(z,"l",function(){return s}),o.d(z,"e",function(){return M}),o.d(z,"i",function(){return A}),o.d(z,"j",function(){return ue}),o.d(z,"c",function(){return le.a}),o.d(z,"b",function(){return Oe}),o.d(z,"g",function(){return J}),o.d(z,"f",function(){return Qe}),o.d(z,"k",function(){return jt}),o.d(z,"d",function(){return He});var P=o("q1tI"),g=o.n(P),T=o("NQs2"),b=o.n(T),y=o("ygoZ"),x=o.n(y),O=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.img,We=Ce.imgWidth,st=We===void 0?346:We,Dt=Ce.title,Ht=Ce.sunTitle,rn=Ce.bannerExtraContent;return g.a.createElement("div",{className:b.a.banner},g.a.createElement("div",{className:b.a.content},g.a.createElement("aside",null,g.a.createElement("p",null,g.a.createElement("b",null,Dt),g.a.createElement("span",null,Ht)),Fe.length>0&&g.a.createElement("div",{className:b.a.btns},Fe.map(function(Bt,Ct){return g.a.createElement("div",{key:Ct,onClick:Bt.click},Bt.name,Bt.sign?g.a.createElement("img",{src:x.a,width:39}):null)})),rn),g.a.createElement("img",{style:{marginTop:33,marginRight:38},src:Be,width:st})))},m=O,e=o("tJVT"),f=o("6nfa"),a=o.n(f),u=o("TSYQ"),r=o.n(u),i=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.value,We=Ce.onChange,st=Ce.className,Dt=Ce.title,Ht=Ce.titleWidth,rn=Ht===void 0?41:Ht,Bt=Ce.style,Ct=Bt===void 0?{}:Bt,Ke=Ce.fontColor,et=Ke===void 0?"#6A7283":Ke,at=Object(P.useState)(0),Pe=Object(e.a)(at,2),Xe=Pe[0],ht=Pe[1],Et=Object(P.useState)(!1),Ot=Object(e.a)(Et,2),Mt=Ot[0],lt=Ot[1],Ft=Object(P.useRef)(null);return Object(P.useEffect)(function(){if(Fe.length!==0){var Lt;(Ft==null||((Lt=Ft.current)===null||Lt===void 0)?void 0:Lt.clientHeight)>92?ht(1):ht(0)}Fe.length===0&&ht(0)},[Fe]),g.a.createElement("div",{className:r()(a.a.row,st),style:Ct},g.a.createElement("div",{style:{width:rn,marginTop:Mt?12:4},className:a.a.title},Dt),g.a.createElement("div",{className:Mt?"".concat(a.a.tagsWrap," ").concat(a.a.tagsBorderWrap):a.a.tagsWrap},g.a.createElement("div",{className:a.a.bar,style:Xe>0?{height:Xe===1?92:"auto",overflow:Xe===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},g.a.createElement("div",{className:a.a.name,ref:Ft},Fe==null?void 0:Fe.map(function(Lt){return g.a.createElement("span",{onClick:function(){return We(Lt.id)},key:Lt.id,title:Lt.name,style:{color:et},className:Be===Lt.id?a.a.active:""},Lt.name)}))),!!Xe&&g.a.createElement(P.Fragment,null,Xe===1?g.a.createElement("div",{onClick:function(){var on;ht(2),(Ft==null||((on=Ft.current)===null||on===void 0)?void 0:on.clientHeight)>205?lt(!0):lt(!1)},className:a.a.action},"\u5C55\u5F00",g.a.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):g.a.createElement("div",{onClick:function(){ht(1),lt(!1)},className:a.a.action},"\u6536\u8D77",g.a.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},n=i,l=o("cz0n"),h=o.n(l),d=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.value,We=Ce.onChange,st=Ce.className;return g.a.createElement("div",{className:r()(h.a.tabs,st)},Fe.map(function(Dt){return g.a.createElement("span",{onClick:function(){return We(Dt.id)},className:Be===Dt.id?h.a.active:"",key:Dt.id},Dt.name)}))},s=d,c=o("5NDa"),w=o("5rEg"),E=o("KOXS"),v=o.n(E),R=function(Ce){var Ie,Fe=Ce.dataSource,Be=Fe===void 0?[]:Fe,We=Ce.value,st=Ce.onChange,Dt=Ce.className,Ht=Ce.style,rn=Ht===void 0?{}:Ht,Bt=Ce.placeholder,Ct=Object(P.useState)(""),Ke=Object(e.a)(Ct,2),et=Ke[0],at=Ke[1],Pe=Object(P.useState)(""),Xe=Object(e.a)(Pe,2),ht=Xe[0],Et=Xe[1];Object(P.useEffect)(function(){var lt;(lt=JSON.stringify(We))!==null&<!==void 0&<.includes("{")?(at(We.id),Et(We.value)):Et(We)},[We]);var Ot=function(){st(ht||null,et||"")},Mt=function(Ft){if(Ft===et)return;at(Ft),st(ht,Ft)};return g.a.createElement("div",{className:r()(v.a.input,Dt),style:rn},!!Be.length&&g.a.createElement("div",{className:v.a.dropdown},g.a.createElement("div",{className:v.a.text},(Ie=Be.find(function(lt){return lt.id===et}))===null||Ie===void 0?void 0:Ie.name,g.a.createElement("i",{className:"iconfont icon-zhankai4"}),g.a.createElement("b",{className:v.a.b1}),g.a.createElement("b",{className:v.a.b2})),g.a.createElement("div",{className:v.a.menu},Be.map(function(lt,Ft){return g.a.createElement("div",{key:Ft,onClick:function(){return Mt(lt.id)}},lt.name)}))),g.a.createElement(w.a,{onPressEnter:Ot,value:ht,onChange:function(Ft){return Et(Ft.target.value||"")},bordered:!1,placeholder:Bt}),g.a.createElement("i",{onClick:Ot,className:"iconfont icon-sousuo9 font14 pl10 current"}))},M=R,C=o("f9pc"),S=o.n(C),_=function(Ce){var Ie=Ce.value,Fe=Ce.onChange,Be=Ce.className,We=Ce.total,st=Ce.pageSize,Dt=Ce.style,Ht=Dt===void 0?{}:Dt,rn=Ie<2,Bt=Ie>=Math.ceil(We/st);return We<=st?g.a.createElement(g.a.Fragment,null):g.a.createElement("div",{className:r()(S.a.quickPager,Be),style:Ht},g.a.createElement("div",{onClick:function(){rn||Fe(Ie-1,"prev")},className:rn?S.a.disabled:""},"\u4E0A\u4E00\u9875"),g.a.createElement("div",{onClick:function(){Bt||Fe(Ie+1,"next")},className:Bt?S.a.disabled:""},"\u4E0B\u4E00\u9875"))},A=_,U=o("T2oS"),L=o("W9HT"),N=o("pC0b"),V=o("GzdX"),H=o("5Dmo"),D=o("3S7+"),W=o("Oe0F"),F=o.n(W),I=o("m3rI"),K=o("1vsH"),ee=o("JAbv"),he=o.n(ee),de=o("Bq7L"),Se=o.n(de),Te=o("MEgm"),ce=o.n(Te),be=o("BdwD"),Ee=function(Ce){var Ie=Ce.className,Fe=Ce.dataSource,Be=Fe===void 0?[]:Fe,We=Ce.col,st=We===void 0?4:We,Dt=Ce.right,Ht=Ce.bottom,rn=Ht===void 0?23:Ht,Bt=Ce.precision,Ct=Bt===void 0?0:Bt,Ke=Ce.wrapWidth,et=Ke===void 0?1200:Ke,at=Ce.trackEventItems,Pe=Ce.loading,Xe=Math.floor((et-(st-1)*Dt)/st);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:r()(F.a.list,Ie)},!!Be.length&&Be.map(function(ht,Et){var Ot=ht.name,Mt=ht.id,lt=ht.identifier,Ft=ht.power,Lt=ht.cover_image_id,on=ht.pic;return g.a.createElement("div",{className:F.a.wrap,key:Mt,style:{width:Xe,marginRight:(1+Et)%st===0?0:Dt+Ct,marginBottom:rn}},g.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(lt,"/challenges"),className:F.a.li,onClick:function(Hn){Hn.preventDefault(),at&&Object(K.cb)([at]),Ft&&Object(K.S)("/shixuns/".concat(lt,"/challenges"))}},g.a.createElement("div",{className:F.a.img},g.a.createElement("img",{className:F.a.cover,src:Lt?"".concat(I.a.API_SERVER,"/api/attachments/").concat(Lt):"".concat(I.a.IMG_SERVER,"/").concat(on)}),ht.is_jupyter&&g.a.createElement("img",{className:F.a.sign,src:he.a}),ht.is_jupyter_lab&&g.a.createElement("img",{className:F.a.sign,src:Se.a}),ht.is_unity_3d&&g.a.createElement("img",{className:F.a.sign,src:ce.a})),g.a.createElement("div",{className:F.a.name},g.a.createElement(D.a,{title:Ot||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},g.a.createElement("span",{className:F.a.e},Ot||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),g.a.createElement("div",{className:F.a.tags},g.a.createElement(D.a,{placement:"bottom",title:"\u5173\u5361\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr3"}),g.a.createElement("span",null,ht.challenges_count))),!!ht.myshixuns_count&&g.a.createElement(D.a,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.a.createElement("span",null,ht.myshixuns_count))),g.a.createElement(D.a,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},g.a.createElement("span",null,g.a.createElement("span",null,ht.level))),g.a.createElement("div",{className:F.a.rate},g.a.createElement(V.a,{allowHalf:!0,disabled:!0,defaultValue:ht.score_info}),g.a.createElement("span",null,"\xA0",ht.score_info?"".concat(ht.score_info,"\u5206"):"5\u5206")))),!Ft&&g.a.createElement("div",{className:F.a.lockWrap},g.a.createElement("img",{src:"".concat(I.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Be.length&&g.a.createElement(be.a,null)))},ue=Ee,le=o("LicW"),$=o("iL++"),me=o.n($),re=o("xiVL"),ae=function(Ce){var Ie=Ce.className,Fe=Ce.dataSource,Be=Fe===void 0?[]:Fe,We=Ce.col,st=We===void 0?4:We,Dt=Ce.right,Ht=Ce.bottom,rn=Ht===void 0?23:Ht,Bt=Ce.precision,Ct=Bt===void 0?0:Bt,Ke=Ce.wrapWidth,et=Ke===void 0?1200:Ke,at=Ce.trackEventItems,Pe=Ce.loading,Xe=Math.floor((et-(st-1)*Dt)/st);return g.a.createElement(L.a,{spinning:Pe},g.a.createElement("div",{className:r()(me.a.list,Ie)},!!Be.length&&Be.map(function(ht,Et){var Ot=ht.subject_identifier,Mt=ht.id,lt=ht.identifier,Ft=ht.power,Lt=ht.is_public!=0&&ht.is_public;return g.a.createElement("div",{className:me.a.wrap,key:Mt,style:{width:Xe,marginRight:(1+Et)%st===0?0:Dt+Ct,marginBottom:rn}},g.a.createElement("a",{className:me.a.li,onClick:function(mn){mn.preventDefault()}},g.a.createElement("div",{className:me.a.top},g.a.createElement(D.a,{title:ht.name},g.a.createElement("div",{className:me.a.name},ht.name)),g.a.createElement("img",{className:me.a.img,src:I.a.IMG_SERVER+"/images/"+ht.avatar_url}),g.a.createElement("div",{className:me.a.text},ht.creator),Ot&&g.a.createElement("div",{className:me.a.btns},g.a.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),g.a.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Lt&&g.a.createElement("div",{className:me.a.sign},"\u516C\u5F00")),g.a.createElement("div",{className:me.a.bottom},ht.visits>0&&g.a.createElement(D.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-liulanyan"}),g.a.createElement("span",null,ht.visits))),ht.course_members_count>0&&g.a.createElement(D.a,{title:"\u6210\u5458",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-chengyuan"}),ht.course_members_count)),ht.tasks_count>0&&g.a.createElement(D.a,{title:"\u4F5C\u4E1A",placement:"bottom"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont icon-zuoye"}),ht.tasks_count)),ht.is_end?g.a.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):g.a.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),g.a.createElement("div",{className:me.a.lockWrap},ht.is_accessible?g.a.createElement(g.a.Fragment,null,Ot&&g.a.createElement("div",{onClick:function(){return Object(K.S)("/paths/".concat(Ot))}},"\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B"),g.a.createElement("div",{onClick:function(mn){at&&Object(K.cb)([at]),Object(K.S)(ht.first_category_url)}},"\u8FDB\u5165\u6559\u5B66\u8BFE\u5802")):g.a.createElement(g.a.Fragment,null,g.a.createElement("img",{src:"".concat(I.a.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),g.a.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"))))}),!Be.length&&g.a.createElement(be.a,null)))},Oe=ae,se=o("f0W+"),te=o.n(se),Q=function(Ce){var Ie=Ce.dataSource,Fe=Ie===void 0?[]:Ie,Be=Ce.value,We=Ce.onChange,st=Ce.className,Dt=Ce.style,Ht=Dt===void 0?{}:Dt,rn=Ce.tabBarExtraContent;return g.a.createElement("div",{className:r()(te.a.tabs,st),style:Ht},g.a.createElement("div",{className:te.a.tabsWrap},Fe.map(function(Bt,Ct){return g.a.createElement("div",{onClick:function(){return We(Bt.id)},className:Be===Bt.id?te.a.active:"",key:Ct},Bt.name)})),g.a.createElement("div",{className:te.a.tabBar},rn))},J=Q,ve=o("9JIy"),_e=o.n(ve),Ae=function(Ce){var Ie=Ce.className,Fe=Ce.style,Be=Fe===void 0?{}:Fe,We=Ce.children;return g.a.createElement("div",{className:r()(_e.a.table,Ie),style:Be},We)},Qe=Ae,tt=o("qVdP"),dt=o("jsC+"),mt=o("lUTK"),vt=o("BvKs"),yt=o("8WcF"),Ye=o.n(yt),Ue=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}],ft=function(Ce){var Ie,Fe=Ce.sortValue,Be=Ce.dropValue,We=Ce.className,st=Ce.onSort,Dt=Ce.onDrop,Ht=Ce.dataSource,rn=Ht===void 0?Ue:Ht;return g.a.createElement("div",{className:r()(Ye.a.orderWrap,We)},g.a.createElement(dt.a,{overlay:g.a.createElement(vt.a,null,rn.map(function(Bt,Ct){return g.a.createElement(vt.a.Item,{key:Ct,onClick:function(){return Dt(Bt.id)}},Bt.name)}))},g.a.createElement("span",{className:Ye.a.orderTextWrap},(Ie=rn.find(function(Bt){return Be===Bt.id}))===null||Ie===void 0?void 0:Ie.name)),g.a.createElement("span",{className:Ye.a.orderIconWrap},g.a.createElement("span",{className:Ye.a.orderAsc},g.a.createElement("i",{className:Fe==="asc"?"iconfont icon-sanjiaoxing-up font12 ".concat(Ye.a.cursorPointer," ").concat(Ye.a.active):"iconfont icon-sanjiaoxing-up font12 ".concat(Ye.a.cursorPointer),onClick:function(){return st(Fe==="asc"?"desc":"asc")}})),g.a.createElement("span",{className:Ye.a.orderDesc},g.a.createElement("i",{className:Fe==="desc"?"iconfont icon-sanjiaoxing-down font12 ".concat(Ye.a.cursorPointer," ").concat(Ye.a.active):"iconfont icon-sanjiaoxing-down font12 ".concat(Ye.a.cursorPointer),onClick:function(){return st(Fe==="asc"?"desc":"asc")}}))))},jt=ft,bt=o("siWv"),Pt=o.n(bt),it=function(Ce){var Ie=Ce.className,Fe=Ce.style,Be=Ce.children,We=Ce.onClick;return g.a.createElement("div",{onClick:We,className:r()(Pt.a.btn,Ie),style:Fe},Be)},He=it},Nmxd:function(k,z){k.exports="data:image/png;base64,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"},NoGO:function(k,z,o){k.exports=o.p+"static/newqrcode.d852fdfc.png"},NvD2:function(k,z,o){"use strict";o.d(z,"a",function(){return x});var P=o("Kwbf");function g(O,m){var e=new Set;return O.forEach(function(f){m.has(f)||e.add(f)}),e}function T(O){var m=O||{},e=m.disabled,f=m.disableCheckbox,a=m.checkable;return!!(e||f)||a===!1}function b(O,m,e,f){for(var a=new Set(O),u=new Set,r=0;r<=e;r+=1){var i=m.get(r)||new Set;i.forEach(function(d){var s=d.key,c=d.node,w=d.children,E=w===void 0?[]:w;a.has(s)&&!f(c)&&E.filter(function(v){return!f(v.node)}).forEach(function(v){a.add(v.key)})})}for(var n=new Set,l=e;l>=0;l-=1){var h=m.get(l)||new Set;h.forEach(function(d){var s=d.parent,c=d.node;if(f(c)||!d.parent||n.has(d.parent.key))return;if(f(d.parent.node)){n.add(s.key);return}var w=!0,E=!1;(s.children||[]).filter(function(v){return!f(v.node)}).forEach(function(v){var R=v.key,M=a.has(R);w&&!M&&(w=!1),!E&&(M||u.has(R))&&(E=!0)}),w&&a.add(s.key),E&&u.add(s.key),n.add(s.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(g(u,a))}}function y(O,m,e,f,a){for(var u=new Set(O),r=new Set(m),i=0;i<=f;i+=1){var n=e.get(i)||new Set;n.forEach(function(s){var c=s.key,w=s.node,E=s.children,v=E===void 0?[]:E;!u.has(c)&&!r.has(c)&&!a(w)&&v.filter(function(R){return!a(R.node)}).forEach(function(R){u.delete(R.key)})})}r=new Set;for(var l=new Set,h=f;h>=0;h-=1){var d=e.get(h)||new Set;d.forEach(function(s){var c=s.parent,w=s.node;if(a(w)||!s.parent||l.has(s.parent.key))return;if(a(s.parent.node)){l.add(c.key);return}var E=!0,v=!1;(c.children||[]).filter(function(R){return!a(R.node)}).forEach(function(R){var M=R.key,C=u.has(M);E&&!C&&(E=!1),!v&&(C||r.has(M))&&(v=!0)}),E||u.delete(c.key),v&&r.add(c.key),l.add(c.key)})}return{checkedKeys:Array.from(u),halfCheckedKeys:Array.from(g(r,u))}}function x(O,m,e,f){var a=[],u;f?u=f:u=T;var r=new Set(O.filter(function(h){var d=!!e[h];return d||a.push(h),d})),i=new Map,n=0;Object.keys(e).forEach(function(h){var d=e[h],s=d.level,c=i.get(s);c||(c=new Set,i.set(s,c)),c.add(d),n=Math.max(n,s)}),Object(P.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var l;return m===!0?l=b(r,i,n,u):l=y(r,m.halfCheckedKeys,i,n,u),l}},OLES:function(k,z,o){"use strict";var P=o("U8pU"),g=o("VTBJ"),T=o("Ff2n"),b=o("q1tI"),y=o("uciX"),x=o("7ixt"),O=function(r){var i=r.overlay,n=r.prefixCls,l=r.id,h=r.overlayInnerStyle;return b.createElement("div",{className:"".concat(n,"-inner"),id:l,role:"tooltip",style:h},typeof i=="function"?i():i)},m=O,e=function(r,i){var n=r.overlayClassName,l=r.trigger,h=l===void 0?["hover"]:l,d=r.mouseEnterDelay,s=d===void 0?0:d,c=r.mouseLeaveDelay,w=c===void 0?.1:c,E=r.overlayStyle,v=r.prefixCls,R=v===void 0?"rc-tooltip":v,M=r.children,C=r.onVisibleChange,S=r.afterVisibleChange,_=r.transitionName,A=r.animation,U=r.placement,L=U===void 0?"right":U,N=r.align,V=N===void 0?{}:N,H=r.destroyTooltipOnHide,D=H===void 0?!1:H,W=r.defaultVisible,F=r.getTooltipContainer,I=r.overlayInnerStyle,K=Object(T.a)(r,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ee=Object(b.useRef)(null);Object(b.useImperativeHandle)(i,function(){return ee.current});var he=Object(g.a)({},K);"visible"in r&&(he.popupVisible=r.visible);var de=function(){var Ee=r.arrowContent,ue=Ee===void 0?null:Ee,le=r.overlay,$=r.id;return[b.createElement("div",{className:"".concat(R,"-arrow"),key:"arrow"},ue),b.createElement(m,{key:"content",prefixCls:R,id:$,overlay:le,overlayInnerStyle:I})]},Se=!1,Te=!1;if(typeof D=="boolean")Se=D;else if(D&&Object(P.a)(D)==="object"){var ce=D.keepParent;Se=ce===!0,Te=ce===!1}return b.createElement(y.a,Object.assign({popupClassName:n,prefixCls:R,popup:de,action:h,builtinPlacements:x.a,popupPlacement:L,ref:ee,popupAlign:V,getPopupContainer:F,onPopupVisibleChange:C,afterPopupVisibleChange:S,popupTransitionName:_,popupAnimation:A,defaultPopupVisible:W,destroyPopupOnHide:Se,autoDestroy:Te,mouseLeaveDelay:w,popupStyle:E,mouseEnterDelay:s},he),M)},f=Object(b.forwardRef)(e),a=z.a=f},OLod:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("K3mO"))})(this,function(P){P.lib.Cipher||function(g){var T=P,b=T.lib,y=b.Base,x=b.WordArray,O=b.BufferedBlockAlgorithm,m=T.enc,e=m.Utf8,f=m.Base64,a=T.algo,u=a.EvpKDF,r=b.Cipher=O.extend({cfg:y.extend(),createEncryptor:function(_,A){return this.create(this._ENC_XFORM_MODE,_,A)},createDecryptor:function(_,A){return this.create(this._DEC_XFORM_MODE,_,A)},init:function(_,A,U){this.cfg=this.cfg.extend(U),this._xformMode=_,this._key=A,this.reset()},reset:function(){O.reset.call(this),this._doReset()},process:function(_){return this._append(_),this._process()},finalize:function(_){_&&this._append(_);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function _(A){return typeof A=="string"?S:R}return function(A){return{encrypt:function(U,L,N){return _(L).encrypt(A,U,L,N)},decrypt:function(U,L,N){return _(L).decrypt(A,U,L,N)}}}}()}),i=b.StreamCipher=r.extend({_doFinalize:function(){var _=this._process(!0);return _},blockSize:1}),n=T.mode={},l=b.BlockCipherMode=y.extend({createEncryptor:function(_,A){return this.Encryptor.create(_,A)},createDecryptor:function(_,A){return this.Decryptor.create(_,A)},init:function(_,A){this._cipher=_,this._iv=A}}),h=n.CBC=function(){var _=l.extend();_.Encryptor=_.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize;A.call(this,U,L,V),N.encryptBlock(U,L),this._prevBlock=U.slice(L,L+V)}}),_.Decryptor=_.extend({processBlock:function(U,L){var N=this._cipher,V=N.blockSize,H=U.slice(L,L+V);N.decryptBlock(U,L),A.call(this,U,L,V),this._prevBlock=H}});function A(U,L,N){var V,H=this._iv;H?(V=H,this._iv=g):V=this._prevBlock;for(var D=0;D>>2]&255;_.sigBytes-=A}},c=b.BlockCipher=r.extend({cfg:r.cfg.extend({mode:h,padding:s}),reset:function(){var _;r.reset.call(this);var A=this.cfg,U=A.iv,L=A.mode;this._xformMode==this._ENC_XFORM_MODE?_=L.createEncryptor:(_=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==_?this._mode.init(this,U&&U.words):(this._mode=_.call(L,this,U&&U.words),this._mode.__creator=_)},_doProcessBlock:function(_,A){this._mode.processBlock(_,A)},_doFinalize:function(){var _,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),_=this._process(!0)):(_=this._process(!0),A.unpad(_)),_},blockSize:128/32}),w=b.CipherParams=y.extend({init:function(_){this.mixIn(_)},toString:function(_){return(_||this.formatter).stringify(this)}}),E=T.format={},v=E.OpenSSL={stringify:function(_){var A,U=_.ciphertext,L=_.salt;return L?A=x.create([1398893684,1701076831]).concat(L).concat(U):A=U,A.toString(f)},parse:function(_){var A,U=f.parse(_),L=U.words;return L[0]==1398893684&&L[1]==1701076831&&(A=x.create(L.slice(2,4)),L.splice(0,4),U.sigBytes-=16),w.create({ciphertext:U,salt:A})}},R=b.SerializableCipher=y.extend({cfg:y.extend({format:v}),encrypt:function(_,A,U,L){L=this.cfg.extend(L);var N=_.createEncryptor(U,L),V=N.finalize(A),H=N.cfg;return w.create({ciphertext:V,key:U,iv:H.iv,algorithm:_,mode:H.mode,padding:H.padding,blockSize:_.blockSize,formatter:L.format})},decrypt:function(_,A,U,L){L=this.cfg.extend(L),A=this._parse(A,L.format);var N=_.createDecryptor(U,L).finalize(A.ciphertext);return N},_parse:function(_,A){return typeof _=="string"?A.parse(_,this):_}}),M=T.kdf={},C=M.OpenSSL={execute:function(_,A,U,L){L||(L=x.random(64/8));var N=u.create({keySize:A+U}).compute(_,L),V=x.create(N.words.slice(A),U*4);return N.sigBytes=A*4,w.create({key:N,iv:V,salt:L})}},S=b.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:C}),encrypt:function(_,A,U,L){L=this.cfg.extend(L);var N=L.kdf.execute(U,_.keySize,_.ivSize);L.iv=N.iv;var V=R.encrypt.call(this,_,A,N.key,L);return V.mixIn(N),V},decrypt:function(_,A,U,L){L=this.cfg.extend(L),A=this._parse(A,L.format);var N=L.kdf.execute(U,_.keySize,_.ivSize,A.salt);L.iv=N.iv;var V=R.decrypt.call(this,_,A,N.key,L);return V}})}()})},OZM5:function(k,z,o){"use strict";o.d(z,"b",function(){return f}),o.d(z,"a",function(){return a}),o.d(z,"k",function(){return u}),o.d(z,"h",function(){return r}),o.d(z,"i",function(){return i}),o.d(z,"g",function(){return n}),o.d(z,"c",function(){return l}),o.d(z,"d",function(){return h}),o.d(z,"j",function(){return c}),o.d(z,"e",function(){return w}),o.d(z,"f",function(){return E});var P=o("KQm4"),g=o("U8pU"),T=o("Ff2n"),b=o("q1tI"),y=o.n(b),x=o("Kwbf"),O=o("WaYH"),m=.25,e=2;function f(v,R){var M=v.slice(),C=M.indexOf(R);return C>=0&&M.splice(C,1),M}function a(v,R){var M=v.slice();return M.indexOf(R)===-1&&M.push(R),M}function u(v){return v.split("-")}function r(v,R){return"".concat(v,"-").concat(R)}function i(v){return v&&v.type&&v.type.isTreeNode}function n(v,R){var M=[v],C=R[v];function S(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(A){var U=A.key,L=A.children;M.push(U),S(L)})}return S(C.children),M}function l(v,R){var M=v.clientY,C=R.selectHandle.getBoundingClientRect(),S=C.top,_=C.bottom,A=C.height,U=Math.max(A*m,e);return M<=S+U?-1:M>=_-U?1:0}function h(v,R){if(!v)return;var M=R.multiple;return M?v.slice():v.length?[v[0]]:v}var d=function(R){return R};function s(v,R){if(!v)return[];var M=R||{},C=M.processProps,S=C===void 0?d:C,_=Array.isArray(v)?v:[v];return _.map(function(A){var U=A.children,L=Object(T.a)(A,["children"]),N=s(U,R);return y.a.createElement(O.a,Object.assign({},S(L)),N)})}function c(v){if(!v)return null;var R;if(Array.isArray(v))R={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(g.a)(v)==="object")R={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(x.a)(!1,"`checkedKeys` is not an array or an object"),null;return R}function w(v,R){var M=new Set;function C(S){if(M.has(S))return;var _=R[S];if(!_)return;M.add(S);var A=_.parent,U=_.node;if(U.disabled)return;A&&C(A.key)}return(v||[]).forEach(function(S){C(S)}),Object(P.a)(M)}function E(v){var R={};return Object.keys(v).forEach(function(M){(M.startsWith("data-")||M.startsWith("aria-"))&&(R[M]=v[M])}),R}},Oe0F:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1lU21",flex_space_between:"flex_space_between___3CfJd",flex_box_vertical_center:"flex_box_vertical_center___20q2h",flex_box_center_end:"flex_box_center_end___1jeZT",flex_box_column:"flex_box_column___2EyZF",list:"list___3Kz8E",wrap:"wrap___12_X7",lockWrap:"lockWrap___9zL4z",li:"li___2bcH1",cover:"cover___1j6mq",img:"img___3itdG",sign:"sign___1Bm21",name:"name___3H1zU",e:"e___1W7k4",tags:"tags___G1tID",rate:"rate___aZiJa"}},Ohmc:function(k,z,o){k.exports=o.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("rAM+"),b=o("miYZ"),y=o("tsqr"),x=o("9og8"),O=o("tJVT"),m=o("jrin"),e=o("WmNS"),f=o.n(e),a=o("q1tI"),u=o.n(a),r=o("VrN/"),i=o.n(r),n=o("bdgK"),l=o("p77/"),h=o("Bd2K"),d=o("ELLl"),s=o("19Vz"),c=o("lZu9"),w=o("+NIl"),E=o("kSUc"),v=o("9Bee"),R=function(We){var st=We.value,Dt=st===void 0?"":st,Ht=We.className,rn=We.showTextOnly,Bt=We.showLines,Ct=We.style,Ke=Ct===void 0?{}:Ct,et=Object(a.useMemo)(function(){return""},[Dt]);return u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{dangerouslySetInnerHTML:{__html:et}}))},M=o("0Owb"),C=o("dejd"),S=o("C+DQ"),_=o("1vsH"),A=o("m3rI"),U=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function L(We){var st=We.onActionCallback,Dt=We.title,Ht=We.icon,rn=We.actionName,Bt=We.className,Ct=Bt===void 0?"":Bt,Ke=We.children;function et(){st(rn)}return u.a.createElement("a",{title:Dt,className:Ct,onClick:et},u.a.createElement("i",{className:"md-iconfont ".concat(Ht)}),Ke)}var N=function(We){var st=We.watch,Dt=We.showNullButton,Ht=We.onActionCallback,rn=We.fullScreen,Bt=We.insertTemp,Ct=We.hidetoolBar,Ke=We.uuid,et=We.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(_.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(_.F)("_educoder_session"),"&key=").concat(Ke,"&api=").concat(encodeURIComponent(A.a.PROXY_SERVER)));var at=[].concat(U,[{title:"".concat(st?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(st?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return u.a.createElement("ul",{className:"markdown-toolbar-container"},!Ct&&at.map(function(Pe,Xe){return u.a.createElement("li",{key:Xe},Pe.actionName?u.a.createElement(L,Object(M.a)({},Pe,{onActionCallback:Ht})):u.a.createElement("span",{className:"v-line"}))}),Dt?u.a.createElement("li",null,u.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ht},u.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Bt&&u.a.createElement("li",null,u.a.createElement(L,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Bt),onActionCallback:Ht},u.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),u.a.createElement("li",{className:"btn-full-screen"},u.a.createElement(L,{icon:"".concat(rn?"icon-shrink":"icon-enlarge"),title:rn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ht})))},V=o("M8RZ"),H=o("+L6B"),D=o("2/Rp"),W=o("y8nQ"),F=o("Vl3Y"),I=o("5NDa"),K=o("5rEg"),ee={labelCol:{span:4},wrapperCol:{span:20}},he=function(We){var st=We.callback,Dt=We.onCancel;function Ht(rn){st(rn)}return u.a.createElement(F.a,Object(M.a)({},ee,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ht}),u.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},u.a.createElement(K.a,null)),u.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},u.a.createElement(K.a,null)),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))},de=o("7ahc"),Se=o("HmJG"),Te=o("BjJ7"),ce=F.a.useForm,be={width:280,marginRight:10},Ee={labelCol:{span:5},wrapperCol:{span:19}},ue=function(We){var st=We.callback,Dt=We.onCancel,Ht=ce(),rn=Object(O.a)(Ht,1),Bt=rn[0];function Ct(at){st(at)}function Ke(at,Pe){if(at.status===-1){y.b.error(at.message);return}Bt.setFieldsValue({src:"/api/attachments/".concat(at.id),type:Pe.type})}function et(at){var Pe=at.target.files[0];$(Pe,Ke)}return u.a.createElement(F.a,Object(M.a)({form:Bt},Ee,{className:"upload-image-panel",onFinish:Ct}),u.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},u.a.createElement("div",{className:"flex-container"},u.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},u.a.createElement(K.a,{style:be})),u.a.createElement(le,{onFileChange:et}))),u.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},u.a.createElement(K.a,{style:{width:264}})),u.a.createElement(F.a.Item,{style:{textAlign:"right"}},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))};function le(We){var st=We.onFileChange;return u.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",u.a.createElement("input",{type:"file",onChange:st}))}function $(We,st){if(!We)throw new String("\u6CA1\u6709\u6587\u4EF6");var Dt=new FormData;Dt.append("editormd-image-file",We),Dt.append("file_param_name","editormd-image-file"),Dt.append("byxhr","true");var Ht=new window.XMLHttpRequest;Ht.withCredentials=!0,Ht.addEventListener("load",function(rn){st(JSON.parse(rn.target.responseText),We)},!1),Ht.addEventListener("error",function(rn){console.error(rn)},!1),Ht.open("POST","".concat(Te.a,"/api/attachments.json")),Ht.send(Dt)}var me=o("giR+"),re=o("fyUT"),ae=o("7Kak"),Oe=o("9yH6"),se=Oe.a.Group,te={margin:"0 8px"},Q=function(We){var st=We.callback,Dt=We.onCancel;function Ht(rn){st(rn)}return u.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ht},u.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},u.a.createElement("span",{style:te},"\u5355\u5143\u683C\u6570\uFF1A"),u.a.createElement("span",{style:te},"\u884C\u6570"),u.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},u.a.createElement(re.a,null)),u.a.createElement("span",{style:te},"\u5217\u6570"),u.a.createElement(F.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},u.a.createElement(re.a,null))),u.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},u.a.createElement("span",{style:te},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),u.a.createElement(F.a.Item,{name:"align"},u.a.createElement(se,null,u.a.createElement(Oe.a,{value:"default"},u.a.createElement("i",{className:"fa fa-align-justify"})),u.a.createElement(Oe.a,{value:"left"},u.a.createElement("i",{className:"fa fa-align-left"})),u.a.createElement(Oe.a,{value:"center"},u.a.createElement("i",{className:"fa fa-align-center"})),u.a.createElement(Oe.a,{value:"right"},u.a.createElement("i",{className:"fa fa-align-right"}))))),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(D.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(D.a,{type:"ghost",onClick:Dt},"\u53D6\u6D88")))},J=o("ErOA"),ve=o("7Cbv"),_e="link",Ae="upload-image",Qe="code-block",tt="add-table",dt="------------",mt={default:dt,left:":".concat(dt),center:":".concat(dt,":"),right:"".concat(dt,":")},vt=o("9VGf"),yt,Ye;function Ue(){}var ft=0,jt=1e4,bt="\u2581",Pt=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function it(We){return/^\d+$/.test(We)?"".concat(We,"px"):We}var He=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ge=He?"Cmd":"Ctrl",Ce=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Ie=(Et={},Object(m.a)(Et,Ge+"-B","bold"),Object(m.a)(Et,Ge+"-I","italic"),Et),Fe=(Ye={},Object(m.a)(Ye,_e,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(Ye,Qe,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(Ye,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(Ye,tt,"\u6DFB\u52A0\u8868\u683C"),Ye),Be=z.a=function(We){var st=We.defaultValue,Dt=st===void 0?"":st,Ht=We.onChange,rn=We.width,Bt=rn===void 0?"100%":rn,Ct=We.height,Ke=Ct===void 0?400:Ct,et=We.miniToolbar,at=et===void 0?!1:et,Pe=We.isFocus,Xe=Pe===void 0?!1:Pe,ht=We.watch,_t=We.insertTemp,Ot=We.mode,Nt=Ot===void 0?"markdown":Ot,ut=We.id,Ft=ut===void 0?"markdown-editor-id":ut,It=We.showResizeBar,on=It===void 0?!1:It,mn=We.noStorage,Hn=mn===void 0?!1:mn,Xn=We.showNullButton,Fn=Xn===void 0?!1:Xn,xn=We.hidetoolBar,fr=xn===void 0?!1:xn,Yn=We.fullScreen,ar=Yn===void 0?!1:Yn,nr=We.onBlur,Rr=We.onCMBeforeChange,pr=We.onFullScreen,sn=We.className,qt=sn===void 0?"":sn,On=We.disablePaste,Fr=On===void 0?!1:On,Or=We.placeholder,xr=Or===void 0?"":Or,dr=We.values,pe=dr===void 0?"":dr,X=Object(a.useState)(null),q=Object(O.a)(X,2),oe=q[0],De=q[1],fe=Object(a.useState)(Dt),ot=Object(O.a)(fe,2),Qt=ot[0],Mn=ot[1],Vn=Object(a.useState)(ht),$t=Object(O.a)(Vn,2),gn=$t[0],pn=$t[1],Ar=Object(a.useState)(ar),ra=Object(O.a)(Ar,2),oa=ra[0],ir=ra[1],Ra=Object(a.useState)(""),La=Object(O.a)(Ra,2),ca=La[0],Ka=La[1],wa=Object(a.useState)(0),Ja=Object(O.a)(wa,2),ja=Ja[0],li=Ja[1],oi=Object(a.useState)(Ke),fa=Object(O.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(a.useState)(!1),lt=Object(O.a)(xe,2),Rt=lt[0],wt=lt[1],Kt=Object(a.useRef)(Object(ve.a)()),Lt=Object(a.useRef)(!1),Xt=Object(a.useRef)(),nn=Object(a.useRef)(),yn=Object(a.useRef)(),vn=Object(a.useRef)(),Nn=Object(a.useRef)(),An=function(){var en=Object(x.a)(f.a.mark(function wn(){var _n,In;return f.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Object(J.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Kt.current}});case 2:In=or.sent,In!=null&&(_n=In.attachments)!==null&&_n!==void 0&&_n.length&&(console.log("cm:",oe,nn),In.attachments.map(function(qn){qn.content_type.indexOf("image")>-1?oe.replaceSelection("![,](/api/attachments/".concat(qn.id,"?type=").concat(qn.content_type,")")):qn.content_type.indexOf("video")>-1?oe.replaceSelection('')):qn.content_type.indexOf("pdf")>-1?oe.replaceSelection('
        ').concat(qn.name,"")):oe.replaceSelection("[".concat(qn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(qn.id,"?type=").concat(qn.content_type,")"))}));case 4:case"end":return or.stop()}},wn)}));return function(){return en.apply(this,arguments)}}();Object(a.useEffect)(function(){Mn(pe),oe==null||oe.setValue(pe)},[pe]),Object(a.useEffect)(function(){pr==null||pr(oa)},[oa]),Object(a.useEffect)(function(){if(nn.current){var en=i.a.fromTextArea(nn.current,{mode:Nt,lineNumbers:!at,lineWrapping:!0,value:Dt,autoCloseTags:!0,autoCloseBrackets:!0});Xe&&en.focus();function wn(_n,In){if(Fr){In.preventDefault();return}var Un=In.clipboardData;if(Un){var or=Un.types.toString(),qn=Un.items;if(or==="Files"||Un.types.indexOf("Files")>-1){if(In.preventDefault(),Nt=="stex")return;try{var Pr,Lr=qn[1];((Pr=qn[0])===null||Pr===void 0?void 0:Pr.kind)==="file"&&(Lr=qn[0]);var Qn=Lr.getAsFile(),Dr=Qn.name.split(".").pop();$(Qn,function(vr){if(vr.id){var zr,Nr,$r;(Qn==null||((zr=Qn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?en.replaceSelection("![,](/api/attachments/".concat(vr.id,"?type=").concat(vr.content_type,")")):(Qn==null||((Nr=Qn.type)===null||Nr===void 0)?void 0:Nr.indexOf("video"))>-1?en.replaceSelection('')):(Qn==null||(($r=Qn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?en.replaceSelection('').concat(Qn.name,"")):Ce.includes(Dr)?en.replaceSelection('').concat(Qn.name,"")):en.replaceSelection("[".concat(Qn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(vr.content_type,")"))}else(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})}catch(vr){y.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return en.on("paste",wn),en.on("dragleave",function(_n,In){yn.current.classList.remove("mouse-hover-md")}),en.on("dragover",function(_n,In){yn.current.classList.add("mouse-hover-md")}),en.on("drop",function(_n,In){yn.current.classList.add("mouse-hover-md");var Un;if(Un=In.dataTransfer.files,Un.length>0){In.preventDefault(),In.stopPropagation();for(var or=function(Lr){var Qn=Un[Lr],Dr=Qn.name.split(".").pop();$(Qn,function(vr){if(vr.id){var zr,Nr,$r;(Qn==null||((zr=Qn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?en.replaceSelection("![,](/api/attachments/".concat(vr.id,"?type=").concat(vr.content_type,")")):(Qn==null||((Nr=Qn.type)===null||Nr===void 0)?void 0:Nr.indexOf("video"))>-1?en.replaceSelection('')):(Qn==null||(($r=Qn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?en.replaceSelection('').concat(Qn.name,"")):Ce.includes(Dr)?en.replaceSelection('').concat(Qn.name,"")):en.replaceSelection("[".concat(Qn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(vr.content_type,")"))}else(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})},qn=0;qn0||qn.target.offsetWidth>0)&&(an(),oe.setSize("100%","100%"),oe.refresh())}}catch(Pr){Un.e(Pr)}finally{Un.f()}});return _n.observe(nn.current.parentElement),_n}if(oe){var wn=en();return function(){wn.unobserve(nn.current.parentElement)}}},[oe,an]),Object(a.useEffect)(function(){if(oe){for(var en=[],wn=function(){var qn=In[_n];Un=Object(O.a)(qn,2);var Pr=Un[0],Lr=Un[1],Qn=Object(m.a)({},Pr,function(){Pn(Lr)});en.push(Qn),oe.addKeyMap(Qn)},_n=0,In=Object.entries(Ie);_n0){var en=new Date().getTime(),wn=window.sessionStorage.getItem(Ft);en>=ja+jt&&(!wn||wn!==Qt)&&(window.sessionStorage.setItem(Ft,Qt),wt(!0))}},jt),Object(a.useEffect)(function(){pn(ht)},[oe,ht]),Object(a.useEffect)(function(){oe&&(Xe&&oe.focus())},[oe,Xe]),Object(a.useEffect)(function(){if(gn&&oe){var en=oe.getScrollerElement();function wn(_n){var In=_n.target;if(Nn.current){var Un=In.scrollTop/In.scrollHeight;Nn.current.scrollTop=Nn.current.scrollHeight*Un}}return en.addEventListener("scroll",wn),function(){en.removeEventListener("scroll",wn)}}},[oe,gn]),Object(a.useEffect)(function(){if(oe&&Rr){function en(wn,_n){Rr(wn,_n)}return oe.on("beforeChange",en),function(){oe.off("beforeChange",en)}}},[oe,Rr]),Object(a.useEffect)(function(){if(oe&&nr){function en(){nr(oe.getValue())}return oe.on("blur",en),function(){oe.off("blur",en)}}},[oe,nr]),Object(a.useEffect)(function(){if(oe){function en(wn){var _n=wn.getValue();Mn(_n),li(new Date().getTime()),wn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ht&&Ht(_n)}return oe.on("change",en),function(){oe.off("change",en)}}},[oe,Ht]),Object(a.useEffect)(function(){oe&&(Dt==null?(oe.setValue(""),Mn("")):Dt!==oe.getValue()&&(oe.setValue(Dt),Mn(Dt),oe.setCursor(oe.lineCount(),0)))},[oe,Dt]);var Pn=Object(a.useCallback)(function(en){var wn=oe.getCursor(),_n=oe.getSelection(),In=_n.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function it(We){return/^\d+$/.test(We)?"".concat(We,"px"):We}var He=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ge=He?"Cmd":"Ctrl",Ce=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Ie=(yt={},Object(m.a)(yt,Ge+"-B","bold"),Object(m.a)(yt,Ge+"-I","italic"),yt),Fe=(Ye={},Object(m.a)(Ye,_e,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(Ye,Qe,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(Ye,Ae,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(Ye,tt,"\u6DFB\u52A0\u8868\u683C"),Ye),Be=z.a=function(We){var st=We.defaultValue,Dt=st===void 0?"":st,Ht=We.onChange,rn=We.width,Bt=rn===void 0?"100%":rn,Ct=We.height,Ke=Ct===void 0?400:Ct,et=We.miniToolbar,at=et===void 0?!1:et,Pe=We.isFocus,Xe=Pe===void 0?!1:Pe,ht=We.watch,Et=We.insertTemp,Ot=We.mode,Mt=Ot===void 0?"markdown":Ot,lt=We.id,Ft=lt===void 0?"markdown-editor-id":lt,Lt=We.showResizeBar,on=Lt===void 0?!1:Lt,mn=We.noStorage,Hn=mn===void 0?!1:mn,Xn=We.showNullButton,Fn=Xn===void 0?!1:Xn,xn=We.hidetoolBar,fr=xn===void 0?!1:xn,Yn=We.fullScreen,ar=Yn===void 0?!1:Yn,nr=We.onBlur,Rr=We.onCMBeforeChange,pr=We.onFullScreen,sn=We.className,qt=sn===void 0?"":sn,On=We.disablePaste,Fr=On===void 0?!1:On,Or=We.placeholder,xr=Or===void 0?"":Or,dr=We.values,pe=dr===void 0?"":dr,X=Object(a.useState)(null),q=Object(O.a)(X,2),oe=q[0],De=q[1],fe=Object(a.useState)(Dt),ot=Object(O.a)(fe,2),Qt=ot[0],Mn=ot[1],Vn=Object(a.useState)(ht),$t=Object(O.a)(Vn,2),gn=$t[0],pn=$t[1],Ar=Object(a.useState)(ar),ra=Object(O.a)(Ar,2),oa=ra[0],ir=ra[1],Ra=Object(a.useState)(""),La=Object(O.a)(Ra,2),ca=La[0],Ka=La[1],wa=Object(a.useState)(0),Ja=Object(O.a)(wa,2),ja=Ja[0],li=Ja[1],oi=Object(a.useState)(Ke),fa=Object(O.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(a.useState)(!1),ut=Object(O.a)(xe,2),Rt=ut[0],wt=ut[1],Kt=Object(a.useRef)(Object(ve.a)()),Nt=Object(a.useRef)(!1),Xt=Object(a.useRef)(),nn=Object(a.useRef)(),yn=Object(a.useRef)(),vn=Object(a.useRef)(),Nn=Object(a.useRef)(),An=function(){var en=Object(x.a)(f.a.mark(function wn(){var _n,In;return f.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Object(J.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Kt.current}});case 2:In=or.sent,In!=null&&(_n=In.attachments)!==null&&_n!==void 0&&_n.length&&(console.log("cm:",oe,nn),In.attachments.map(function(qn){qn.content_type.indexOf("image")>-1?oe.replaceSelection("![,](/api/attachments/".concat(qn.id,"?type=").concat(qn.content_type,")")):qn.content_type.indexOf("video")>-1?oe.replaceSelection('')):qn.content_type.indexOf("pdf")>-1?oe.replaceSelection('').concat(qn.name,"")):oe.replaceSelection("[".concat(qn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(qn.id,"?type=").concat(qn.content_type,")"))}));case 4:case"end":return or.stop()}},wn)}));return function(){return en.apply(this,arguments)}}();Object(a.useEffect)(function(){Mn(pe),oe==null||oe.setValue(pe)},[pe]),Object(a.useEffect)(function(){pr==null||pr(oa)},[oa]),Object(a.useEffect)(function(){if(nn.current){var en=i.a.fromTextArea(nn.current,{mode:Mt,lineNumbers:!at,lineWrapping:!0,value:Dt,autoCloseTags:!0,autoCloseBrackets:!0});Xe&&en.focus();function wn(_n,In){if(Fr){In.preventDefault();return}var Un=In.clipboardData;if(Un){var or=Un.types.toString(),qn=Un.items;if(or==="Files"||Un.types.indexOf("Files")>-1){if(In.preventDefault(),Mt=="stex")return;try{var Pr,Lr=qn[1];((Pr=qn[0])===null||Pr===void 0?void 0:Pr.kind)==="file"&&(Lr=qn[0]);var Qn=Lr.getAsFile(),Dr=Qn.name.split(".").pop();$(Qn,function(vr){if(vr.id){var zr,Nr,$r;(Qn==null||((zr=Qn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?en.replaceSelection("![,](/api/attachments/".concat(vr.id,"?type=").concat(vr.content_type,")")):(Qn==null||((Nr=Qn.type)===null||Nr===void 0)?void 0:Nr.indexOf("video"))>-1?en.replaceSelection('')):(Qn==null||(($r=Qn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?en.replaceSelection('').concat(Qn.name,"")):Ce.includes(Dr)?en.replaceSelection('').concat(Qn.name,"")):en.replaceSelection("[".concat(Qn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(vr.content_type,")"))}else(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})}catch(vr){y.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return en.on("paste",wn),en.on("dragleave",function(_n,In){yn.current.classList.remove("mouse-hover-md")}),en.on("dragover",function(_n,In){yn.current.classList.add("mouse-hover-md")}),en.on("drop",function(_n,In){yn.current.classList.add("mouse-hover-md");var Un;if(Un=In.dataTransfer.files,Un.length>0){In.preventDefault(),In.stopPropagation();for(var or=function(Lr){var Qn=Un[Lr],Dr=Qn.name.split(".").pop();$(Qn,function(vr){if(vr.id){var zr,Nr,$r;(Qn==null||((zr=Qn.type)===null||zr===void 0)?void 0:zr.indexOf("image"))>-1?en.replaceSelection("![,](/api/attachments/".concat(vr.id,"?type=").concat(vr.content_type,")")):(Qn==null||((Nr=Qn.type)===null||Nr===void 0)?void 0:Nr.indexOf("video"))>-1?en.replaceSelection('')):(Qn==null||(($r=Qn.type)===null||$r===void 0)?void 0:$r.indexOf("pdf"))>-1?en.replaceSelection('').concat(Qn.name,"")):Ce.includes(Dr)?en.replaceSelection('').concat(Qn.name,"")):en.replaceSelection("[".concat(Qn.name,"](").concat(A.a.API_SERVER,"/api/attachments/").concat(vr.id,"?type=").concat(vr.content_type,")"))}else(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})},qn=0;qn0||qn.target.offsetWidth>0)&&(an(),oe.setSize("100%","100%"),oe.refresh())}}catch(Pr){Un.e(Pr)}finally{Un.f()}});return _n.observe(nn.current.parentElement),_n}if(oe){var wn=en();return function(){wn.unobserve(nn.current.parentElement)}}},[oe,an]),Object(a.useEffect)(function(){if(oe){for(var en=[],wn=function(){var qn=In[_n];Un=Object(O.a)(qn,2);var Pr=Un[0],Lr=Un[1],Qn=Object(m.a)({},Pr,function(){Pn(Lr)});en.push(Qn),oe.addKeyMap(Qn)},_n=0,In=Object.entries(Ie);_n0){var en=new Date().getTime(),wn=window.sessionStorage.getItem(Ft);en>=ja+jt&&(!wn||wn!==Qt)&&(window.sessionStorage.setItem(Ft,Qt),wt(!0))}},jt),Object(a.useEffect)(function(){pn(ht)},[oe,ht]),Object(a.useEffect)(function(){oe&&(Xe&&oe.focus())},[oe,Xe]),Object(a.useEffect)(function(){if(gn&&oe){var en=oe.getScrollerElement();function wn(_n){var In=_n.target;if(Nn.current){var Un=In.scrollTop/In.scrollHeight;Nn.current.scrollTop=Nn.current.scrollHeight*Un}}return en.addEventListener("scroll",wn),function(){en.removeEventListener("scroll",wn)}}},[oe,gn]),Object(a.useEffect)(function(){if(oe&&Rr){function en(wn,_n){Rr(wn,_n)}return oe.on("beforeChange",en),function(){oe.off("beforeChange",en)}}},[oe,Rr]),Object(a.useEffect)(function(){if(oe&&nr){function en(){nr(oe.getValue())}return oe.on("blur",en),function(){oe.off("blur",en)}}},[oe,nr]),Object(a.useEffect)(function(){if(oe){function en(wn){var _n=wn.getValue();Mn(_n),li(new Date().getTime()),wn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ht&&Ht(_n)}return oe.on("change",en),function(){oe.off("change",en)}}},[oe,Ht]),Object(a.useEffect)(function(){oe&&(Dt==null?(oe.setValue(""),Mn("")):Dt!==oe.getValue()&&(oe.setValue(Dt),Mn(Dt),oe.setCursor(oe.lineCount(),0)))},[oe,Dt]);var Pn=Object(a.useCallback)(function(en){var wn=oe.getCursor(),_n=oe.getSelection(),In=_n.split(` `);switch(en){case"bold":return oe.replaceSelection("**"+_n+"**"),_n===""&&oe.setCursor(wn.line,wn.ch+2),oe.focus();case"italic":return oe.replaceSelection("*"+_n+"*"),_n===""&&oe.setCursor(wn.line,wn.ch+1),oe.focus();case"code":return oe.replaceSelection("`"+_n+"`"),_n===""&&oe.setCursor(wn.line,wn.ch+1),oe.focus();case"inline-latex":return oe.replaceSelection("`$$"+_n+"$$`"),_n===""&&oe.setCursor(wn.line,wn.ch+3),oe.focus();case"latex":return oe.replaceSelection("```latex\n"+_n+"\n```"),oe.setCursor(wn.line+1,_n.length+1),oe.focus();case"line-break":return oe.replaceSelection(`
        `),oe.focus();case"list-ul":return _n===""?oe.replaceSelection("- "+_n):oe.replaceSelection(In.map(function(Un){return Un===""?"":"- ".concat(Un)}).join(` `)),oe.focus();case"list-ol":return _n===""?oe.replaceSelection("1. "+_n):oe.replaceSelection(In.map(function(Un,or){return Un===""?"":"".concat(or+1,". ").concat(Un)}).join(` -`)),oe.focus();case"add-null-ch":return _n===""&&oe.setCursor(wn.line,wn.ch+1),oe.replaceSelection(yt),oe.focus();case"inster-template-1":return _n===""&&oe.setCursor(wn.line,wn.ch),oe.replaceSelection(Pt),oe.focus();case"eraser":return oe.setValue(""),oe.focus();case"trigger-watch":return pn(!gn),oe.focus();case"trigger-full-screen":return ir(!oa),oe.focus();case _e:Ka(_e);return;case Qe:Ka(Qe);return;case Ae:Ka(Ae);return;case tt:Ka(tt);return;default:throw new Error}},[oe,gn,oa]),bn=Object(a.useCallback)(function(en){Ka("");switch(ca){case _e:var wn=en.title,_n=en.link;return oe.replaceSelection("[".concat(wn,"](").concat(_n,")")),oe.focus();case Qe:var In=en.language,Un=en.content;return oe.replaceSelection(["```"+In,Un,"```"].join(` +`)),oe.focus();case"add-null-ch":return _n===""&&oe.setCursor(wn.line,wn.ch+1),oe.replaceSelection(bt),oe.focus();case"inster-template-1":return _n===""&&oe.setCursor(wn.line,wn.ch),oe.replaceSelection(Pt),oe.focus();case"eraser":return oe.setValue(""),oe.focus();case"trigger-watch":return pn(!gn),oe.focus();case"trigger-full-screen":return ir(!oa),oe.focus();case _e:Ka(_e);return;case Qe:Ka(Qe);return;case Ae:Ka(Ae);return;case tt:Ka(tt);return;default:throw new Error}},[oe,gn,oa]),bn=Object(a.useCallback)(function(en){Ka("");switch(ca){case _e:var wn=en.title,_n=en.link;return oe.replaceSelection("[".concat(wn,"](").concat(_n,")")),oe.focus();case Qe:var In=en.language,Un=en.content;return oe.replaceSelection(["```"+In,Un,"```"].join(` `)),oe.focus();case Ae:var or=en.src,qn=en.alt;return qn?oe.replaceSelection("![ ".concat(qn," ]( ").concat(or,' "').concat(qn,'" )')):oe.replaceSelection("![,](".concat(or,")")),oe.focus();case tt:for(var Pr=en.row,Lr=en.col,Qn=en.align,Dr=` `,vr=0;vr300&&(Pr=300);var Lr=Ke+Pr+"px";la(Lr)}}return en.addEventListener("mousedown",In),document.addEventListener("mousemove",or),document.addEventListener("mouseup",Un),function(){en.removeEventListener("mousedown",In),document.removeEventListener("mousemove",or),document.removeEventListener("mouseup",Un)}}},[oe,vn]),Object(a.useEffect)(function(){la(Ke)},[Ke]);var Jn=it(Bt),mr=it(ma),Br={width:Jn,height:mr},Sn=Object(a.useMemo)(function(){if(ja){var en=new Date(ja),wn=en.getHours(),_n=en.getMinutes(),In=en.getSeconds();return wn=wn<10?"0"+wn:wn,_n=_n<10?"0"+_n:_n,In=In<10?"0"+In:In,"".concat(wn,":").concat(_n,":").concat(In)}return 0},[ja]);function Yt(){window.sessionStorage.removeItem(Ft),wt(!1),li(0)}function dn(){wt(!1),li(0),oe.setValue(window.sessionStorage.getItem(Ft))}function Dn(en,wn){var _n=oe.getValue();_n=_n.replace(en,wn),Mn(_n),oe==null||oe.setValue(_n)}return u.a.createElement(a.Fragment,null,u.a.createElement("div",{className:"markdown-editor-wrapper",ref:yn},u.a.createElement("div",{className:"markdown-editor-container ".concat(qt," ").concat(gn?"on-preview":""," ").concat(at?"mini":""," ").concat(oa?"full-screen":""),style:Br},u.a.createElement(N,{insertTemp:_t,watch:gn,fullScreen:oa,showNullButton:Fn,onActionCallback:Pn,hidetoolBar:fr,uuid:Kt.current,setOpenPhones:function(){Lt.current=!0}}),u.a.createElement("div",{className:"markdown-editor-body"},u.a.createElement("div",{className:"codemirror-container"},u.a.createElement("textarea",{ref:nn,placeholder:xr})),gn?u.a.createElement("div",{ref:Nn,className:"preview-container"},Nt==="stex"&&u.a.createElement(R,{value:Qt}),Nt!=="stex"&&u.a.createElement(v.a,{edit:!0,value:Qt,replaces:Dn})):null))),on?u.a.createElement("a",{ref:vn,className:"editor-resize"}):null,u.a.createElement(V.a,null,Fe[ca]?u.a.createElement(g.a,{centered:!0,title:Fe[ca],visible:!0,onCancel:Rn,footer:null,className:"markdown-popup-form"},kn):null))}},P5Jw:function(k,z,o){"use strict";var P=o("rHrb"),g=P.CopyToClipboard;g.CopyToClipboard=g,k.exports=g},PVpz:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.StreamCipher,y=g.algo,x=[],O=[],m=[],e=y.RabbitLegacy=b.extend({_doReset:function(){var a=this._key.words,u=this.cfg.iv,r=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],i=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var n=0;n<4;n++)f.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(u){var l=u.words,h=l[0],d=l[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,c=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|c&4294901760,E=c<<16|s&65535;i[0]^=s,i[1]^=w,i[2]^=c,i[3]^=E,i[4]^=s,i[5]^=w,i[6]^=c,i[7]^=E;for(var n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(a,u){var r=this._X;f.call(this),x[0]=r[0]^r[5]>>>16^r[3]<<16,x[1]=r[2]^r[7]>>>16^r[5]<<16,x[2]=r[4]^r[1]>>>16^r[7]<<16,x[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)x[i]=(x[i]<<8|x[i]>>>24)&16711935|(x[i]<<24|x[i]>>>8)&4278255360,a[u+i]^=x[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,u=this._C,r=0;r<8;r++)O[r]=u[r];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0>>0?1:0)|0,this._b=u[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var i=a[r]+u[r],n=i&65535,l=i>>>16,h=((n*n>>>17)+n*l>>>15)+l*l,d=((i&4294901760)*i|0)+((i&65535)*i|0);m[r]=h^d}a[0]=m[0]+(m[7]<<16|m[7]>>>16)+(m[6]<<16|m[6]>>>16)|0,a[1]=m[1]+(m[0]<<8|m[0]>>>24)+m[7]|0,a[2]=m[2]+(m[1]<<16|m[1]>>>16)+(m[0]<<16|m[0]>>>16)|0,a[3]=m[3]+(m[2]<<8|m[2]>>>24)+m[1]|0,a[4]=m[4]+(m[3]<<16|m[3]>>>16)+(m[2]<<16|m[2]>>>16)|0,a[5]=m[5]+(m[4]<<8|m[4]>>>24)+m[3]|0,a[6]=m[6]+(m[5]<<16|m[5]>>>16)+(m[4]<<16|m[4]>>>16)|0,a[7]=m[7]+(m[6]<<8|m[6]>>>24)+m[5]|0}g.RabbitLegacy=b._createHelper(e)}(),P.RabbitLegacy})},QNag:function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("+L6B"),b=o("2/Rp"),y=o("9og8"),x=o("y8nQ"),O=o("Vl3Y"),m=o("tJVT"),e=o("PpiC"),f=o("5NDa"),a=o("5rEg"),u=o("WmNS"),r=o.n(u),i=o("q1tI"),n=o.n(i),l=o("9kvl"),h=o("JFl9"),d=o.n(h),s=a.a.TextArea,c=function(E){var v=E.shixunsDetail,R=E.globalSetting,M=E.loading,C=E.dispatch,S=E.onFinish,_=S===void 0?function(){}:S,A=Object(e.a)(E,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),U=O.a.useForm(),L=Object(m.a)(U,1),N=L[0],V=function(){var D=Object(y.a)(r.a.mark(function W(F){var I,K;return r.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,C({type:"shixunsDetail/getCustomScript",payload:{id:(I=v.actionTabs.params)===null||I===void 0?void 0:I.id,compile:F.execute,excutive:F.compile}});case 2:K=he.sent,H(),K&&_(K==null?void 0:K.shixun_script);case 5:case"end":return he.stop()}},W)}));return function(F){return D.apply(this,arguments)}}(),H=function(){C({type:"shixunsDetail/setActionTabs",payload:{}})};return n.a.createElement(g.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:v.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:H},n.a.createElement(O.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:V},n.a.createElement(O.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},n.a.createElement(s,{rows:4})),n.a.createElement(O.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},n.a.createElement(s,{rows:4})),n.a.createElement("div",{className:d.a.footerWrap},n.a.createElement(O.a.Item,null,n.a.createElement(b.a,{className:"mr5",size:"large",onClick:H},"\u53D6\u6D88"),n.a.createElement(b.a,{size:"large",type:"primary",htmlType:"submit",loading:M.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};z.a=Object(l.a)(function(w){var E=w.shixunsDetail,v=w.loading,R=w.globalSetting;return{shixunsDetail:E,globalSetting:R,loading:v}})(c)},Qvpy:function(k,z,o){k.exports={title:"title___39Oep",content:"content___Xl7wK",add:"add___1luKB",colorBlue:"colorBlue___c0Swt",radio:"radio___OK4CQ"}},RC3E:function(k,z,o){k.exports={wrap:"wrap___2zh4E",title:"title___Os-Oa",path:"path___eUXXC",colorBlue:"colorBlue___2IORo"}},RMFE:function(k,z){k.exports="data:image/png;base64,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"},RotF:function(k,z,o){k.exports=o("LSTS")},RxwV:function(k,z,o){"use strict";var P=o("q1tI"),g=o("uciX"),T=o("2W6z"),b=o.n(T),y=o("4IlW"),x=o("uK0f"),O=o.n(x);function m(be,Ee){if(be===Ee)return!0;if(!be||!Ee)return!1;var ue=be.length;if(Ee.length!==ue)return!1;for(var le=0;le0;(tt||me.isLeaf===!1)&&(Ae+=" ".concat(Oe,"-menu-item-expand"),me.loading||(Qe=P.createElement("span",{className:"".concat(Oe,"-menu-item-expand-icon")},te))),se==="hover"&&(tt||me.isLeaf===!1)&&(_e={onMouseEnter:this.delayOnSelect.bind(this,J),onMouseLeave:this.delayOnSelect.bind(this),onClick:J}),this.isActiveOption(me,re)&&(Ae+=" ".concat(Oe,"-menu-item-active"),_e.ref=this.saveMenuItem(re)),me.disabled&&(Ae+=" ".concat(Oe,"-menu-item-disabled"));var dt=null;me.loading&&(Ae+=" ".concat(Oe,"-menu-item-loading"),dt=Q||null);var mt="";return"title"in me?mt=me.title:typeof me[this.getFieldName("label")]=="string"&&(mt=me[this.getFieldName("label")]),P.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:Ae,title:mt},_e,{role:"menuitem",onMouseDown:function(Et){return Et.preventDefault()}}),me[this.getFieldName("label")],Qe,dt)}},{key:"getActiveOptions",value:function(me){var re=this,ae=this.props.options,Oe=me||this.props.activeValue;return O()(ae,function(se,te){return se[re.getFieldName("value")]===Oe[te]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var me=this,re=this.props.options,ae=this.getActiveOptions().map(function(Oe){return Oe[me.getFieldName("children")]}).filter(function(Oe){return!!Oe});return ae.unshift(re),ae}},{key:"delayOnSelect",value:function(me){for(var re=this,ae=arguments.length,Oe=new Array(ae>1?ae-1:0),se=1;se=0)continue;if(!Object.prototype.propertyIsEnumerable.call(be,le))continue;ue[le]=be[le]}}return ue}function C(be,Ee){if(be==null)return{};var ue={},le=Object.keys(be),$,me;for(me=0;me=0)continue;ue[$]=be[$]}return ue}function S(be){return L(be)||U(be)||A(be)||_()}function _(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +`),oe.focus();default:throw new Error}},[oe,ca]),kn=Object(a.useMemo)(function(){switch(ca){case _e:return u.a.createElement(he,{callback:bn,onCancel:Rn});case Qe:return u.a.createElement(de.b,{callback:bn,onCancel:Rn});case Ae:return u.a.createElement(ue,{callback:bn,onCancel:Rn});case tt:return u.a.createElement(Q,{callback:bn,onCancel:Rn});default:return null}},[ca]);function Rn(){Ka("")}Object(a.useEffect)(function(){if(vn.current){var en=vn.current,wn=!1,_n=0;function In(qn){wn=!0,_n=qn.pageY}function Un(){wn=!1}function or(qn){if(wn){var Pr=qn.pageY-_n;Pr<0&&(Pr=0),Pr>300&&(Pr=300);var Lr=Ke+Pr+"px";la(Lr)}}return en.addEventListener("mousedown",In),document.addEventListener("mousemove",or),document.addEventListener("mouseup",Un),function(){en.removeEventListener("mousedown",In),document.removeEventListener("mousemove",or),document.removeEventListener("mouseup",Un)}}},[oe,vn]),Object(a.useEffect)(function(){la(Ke)},[Ke]);var Jn=it(Bt),mr=it(ma),Br={width:Jn,height:mr},Sn=Object(a.useMemo)(function(){if(ja){var en=new Date(ja),wn=en.getHours(),_n=en.getMinutes(),In=en.getSeconds();return wn=wn<10?"0"+wn:wn,_n=_n<10?"0"+_n:_n,In=In<10?"0"+In:In,"".concat(wn,":").concat(_n,":").concat(In)}return 0},[ja]);function Yt(){window.sessionStorage.removeItem(Ft),wt(!1),li(0)}function dn(){wt(!1),li(0),oe.setValue(window.sessionStorage.getItem(Ft))}function Dn(en,wn){var _n=oe.getValue();_n=_n.replace(en,wn),Mn(_n),oe==null||oe.setValue(_n)}return u.a.createElement(a.Fragment,null,u.a.createElement("div",{className:"markdown-editor-wrapper",ref:yn},u.a.createElement("div",{className:"markdown-editor-container ".concat(qt," ").concat(gn?"on-preview":""," ").concat(at?"mini":""," ").concat(oa?"full-screen":""),style:Br},u.a.createElement(N,{insertTemp:Et,watch:gn,fullScreen:oa,showNullButton:Fn,onActionCallback:Pn,hidetoolBar:fr,uuid:Kt.current,setOpenPhones:function(){Nt.current=!0}}),u.a.createElement("div",{className:"markdown-editor-body"},u.a.createElement("div",{className:"codemirror-container"},u.a.createElement("textarea",{ref:nn,placeholder:xr})),gn?u.a.createElement("div",{ref:Nn,className:"preview-container"},Mt==="stex"&&u.a.createElement(R,{value:Qt}),Mt!=="stex"&&u.a.createElement(v.a,{edit:!0,value:Qt,replaces:Dn})):null))),on?u.a.createElement("a",{ref:vn,className:"editor-resize"}):null,u.a.createElement(V.a,null,Fe[ca]?u.a.createElement(g.a,{centered:!0,title:Fe[ca],visible:!0,onCancel:Rn,footer:null,className:"markdown-popup-form"},kn):null))}},P5Jw:function(k,z,o){"use strict";var P=o("rHrb"),g=P.CopyToClipboard;g.CopyToClipboard=g,k.exports=g},PVpz:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.StreamCipher,y=g.algo,x=[],O=[],m=[],e=y.RabbitLegacy=b.extend({_doReset:function(){var a=this._key.words,u=this.cfg.iv,r=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],i=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var n=0;n<4;n++)f.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(u){var l=u.words,h=l[0],d=l[1],s=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,c=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,w=s>>>16|c&4294901760,E=c<<16|s&65535;i[0]^=s,i[1]^=w,i[2]^=c,i[3]^=E,i[4]^=s,i[5]^=w,i[6]^=c,i[7]^=E;for(var n=0;n<4;n++)f.call(this)}},_doProcessBlock:function(a,u){var r=this._X;f.call(this),x[0]=r[0]^r[5]>>>16^r[3]<<16,x[1]=r[2]^r[7]>>>16^r[5]<<16,x[2]=r[4]^r[1]>>>16^r[7]<<16,x[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)x[i]=(x[i]<<8|x[i]>>>24)&16711935|(x[i]<<24|x[i]>>>8)&4278255360,a[u+i]^=x[i]},blockSize:128/32,ivSize:64/32});function f(){for(var a=this._X,u=this._C,r=0;r<8;r++)O[r]=u[r];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0>>0?1:0)|0,this._b=u[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var i=a[r]+u[r],n=i&65535,l=i>>>16,h=((n*n>>>17)+n*l>>>15)+l*l,d=((i&4294901760)*i|0)+((i&65535)*i|0);m[r]=h^d}a[0]=m[0]+(m[7]<<16|m[7]>>>16)+(m[6]<<16|m[6]>>>16)|0,a[1]=m[1]+(m[0]<<8|m[0]>>>24)+m[7]|0,a[2]=m[2]+(m[1]<<16|m[1]>>>16)+(m[0]<<16|m[0]>>>16)|0,a[3]=m[3]+(m[2]<<8|m[2]>>>24)+m[1]|0,a[4]=m[4]+(m[3]<<16|m[3]>>>16)+(m[2]<<16|m[2]>>>16)|0,a[5]=m[5]+(m[4]<<8|m[4]>>>24)+m[3]|0,a[6]=m[6]+(m[5]<<16|m[5]>>>16)+(m[4]<<16|m[4]>>>16)|0,a[7]=m[7]+(m[6]<<8|m[6]>>>24)+m[5]|0}g.RabbitLegacy=b._createHelper(e)}(),P.RabbitLegacy})},QNag:function(k,z,o){"use strict";var P=o("2qtc"),g=o("kLXV"),T=o("+L6B"),b=o("2/Rp"),y=o("9og8"),x=o("y8nQ"),O=o("Vl3Y"),m=o("tJVT"),e=o("PpiC"),f=o("5NDa"),a=o("5rEg"),u=o("WmNS"),r=o.n(u),i=o("q1tI"),n=o.n(i),l=o("9kvl"),h=o("JFl9"),d=o.n(h),s=a.a.TextArea,c=function(E){var v=E.shixunsDetail,R=E.globalSetting,M=E.loading,C=E.dispatch,S=E.onFinish,_=S===void 0?function(){}:S,A=Object(e.a)(E,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),U=O.a.useForm(),L=Object(m.a)(U,1),N=L[0],V=function(){var D=Object(y.a)(r.a.mark(function W(F){var I,K;return r.a.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,C({type:"shixunsDetail/getCustomScript",payload:{id:(I=v.actionTabs.params)===null||I===void 0?void 0:I.id,compile:F.execute,excutive:F.compile}});case 2:K=he.sent,H(),K&&_(K==null?void 0:K.shixun_script);case 5:case"end":return he.stop()}},W)}));return function(F){return D.apply(this,arguments)}}(),H=function(){C({type:"shixunsDetail/setActionTabs",payload:{}})};return n.a.createElement(g.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:v.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:H},n.a.createElement(O.a,{form:N,scrollToFirstError:!0,layout:"vertical",onFinish:V},n.a.createElement(O.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},n.a.createElement(s,{rows:4})),n.a.createElement(O.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},n.a.createElement(s,{rows:4})),n.a.createElement("div",{className:d.a.footerWrap},n.a.createElement(O.a.Item,null,n.a.createElement(b.a,{className:"mr5",size:"large",onClick:H},"\u53D6\u6D88"),n.a.createElement(b.a,{size:"large",type:"primary",htmlType:"submit",loading:M.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))};z.a=Object(l.a)(function(w){var E=w.shixunsDetail,v=w.loading,R=w.globalSetting;return{shixunsDetail:E,globalSetting:R,loading:v}})(c)},Qvpy:function(k,z,o){k.exports={title:"title___39Oep",content:"content___Xl7wK",add:"add___1luKB",colorBlue:"colorBlue___c0Swt",radio:"radio___OK4CQ"}},RC3E:function(k,z,o){k.exports={wrap:"wrap___2zh4E",title:"title___Os-Oa",path:"path___eUXXC",colorBlue:"colorBlue___2IORo"}},RMFE:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RotF:function(k,z,o){k.exports=o("LSTS")},RxwV:function(k,z,o){"use strict";var P=o("q1tI"),g=o("uciX"),T=o("2W6z"),b=o.n(T),y=o("4IlW"),x=o("uK0f"),O=o.n(x);function m(be,Ee){if(be===Ee)return!0;if(!be||!Ee)return!1;var ue=be.length;if(Ee.length!==ue)return!1;for(var le=0;le0;(tt||me.isLeaf===!1)&&(Ae+=" ".concat(Oe,"-menu-item-expand"),me.loading||(Qe=P.createElement("span",{className:"".concat(Oe,"-menu-item-expand-icon")},te))),se==="hover"&&(tt||me.isLeaf===!1)&&(_e={onMouseEnter:this.delayOnSelect.bind(this,J),onMouseLeave:this.delayOnSelect.bind(this),onClick:J}),this.isActiveOption(me,re)&&(Ae+=" ".concat(Oe,"-menu-item-active"),_e.ref=this.saveMenuItem(re)),me.disabled&&(Ae+=" ".concat(Oe,"-menu-item-disabled"));var dt=null;me.loading&&(Ae+=" ".concat(Oe,"-menu-item-loading"),dt=Q||null);var mt="";return"title"in me?mt=me.title:typeof me[this.getFieldName("label")]=="string"&&(mt=me[this.getFieldName("label")]),P.createElement("li",Object.assign({key:me[this.getFieldName("value")],className:Ae,title:mt},_e,{role:"menuitem",onMouseDown:function(yt){return yt.preventDefault()}}),me[this.getFieldName("label")],Qe,dt)}},{key:"getActiveOptions",value:function(me){var re=this,ae=this.props.options,Oe=me||this.props.activeValue;return O()(ae,function(se,te){return se[re.getFieldName("value")]===Oe[te]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var me=this,re=this.props.options,ae=this.getActiveOptions().map(function(Oe){return Oe[me.getFieldName("children")]}).filter(function(Oe){return!!Oe});return ae.unshift(re),ae}},{key:"delayOnSelect",value:function(me){for(var re=this,ae=arguments.length,Oe=new Array(ae>1?ae-1:0),se=1;se=0)continue;if(!Object.prototype.propertyIsEnumerable.call(be,le))continue;ue[le]=be[le]}}return ue}function C(be,Ee){if(be==null)return{};var ue={},le=Object.keys(be),$,me;for(me=0;me=0)continue;ue[$]=be[$]}return ue}function S(be){return L(be)||U(be)||A(be)||_()}function _(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(be,Ee){if(!be)return;if(typeof be=="string")return N(be,Ee);var ue=Object.prototype.toString.call(be).slice(8,-1);if(ue==="Object"&&be.constructor&&(ue=be.constructor.name),ue==="Map"||ue==="Set")return Array.from(be);if(ue==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue))return N(be,Ee)}function U(be){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(be))return Array.from(be)}function L(be){if(Array.isArray(be))return N(be)}function N(be,Ee){(Ee==null||Ee>be.length)&&(Ee=be.length);for(var ue=0,le=new Array(Ee);ue=Q.length?0:ve):(ve-=1,ve=ve<0?Q.length-1:ve):ve=0,se[te]=Q[ve][me.getFieldName("value")]}else if(ae.keyCode===y.a.LEFT||ae.keyCode===y.a.BACKSPACE)ae.preventDefault(),se.splice(se.length-1,1);else if(ae.keyCode===y.a.RIGHT)ae.preventDefault(),Q[J]&&Q[J][me.getFieldName("children")]&&se.push(Q[J][me.getFieldName("children")][0][me.getFieldName("value")]);else if(ae.keyCode===y.a.ESC||ae.keyCode===y.a.TAB){me.setPopupVisible(!1);return}(!se||se.length===0)&&me.setPopupVisible(!1);var _e=me.getActiveOptions(se),Ae=_e[_e.length-1];me.handleMenuSelect(Ae,_e.length-1,ae),me.props.onKeyDown&&me.props.onKeyDown(ae)},me.saveTrigger=function(ae){me.trigger=ae};var re=[];return"value"in $?re=$.value||[]:"defaultValue"in $&&(re=$.defaultValue||[]),b()(!("filedNames"in $),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),me.state={popupVisible:$.popupVisible,activeValue:re,value:re,prevProps:$},me.defaultFieldNames={label:"label",value:"value",children:"children"},me}return D(le,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(me){var re=this.defaultFieldNames,ae=this.props,Oe=ae.fieldNames,se=ae.filedNames;return"filedNames"in this.props?se[me]||re[me]:Oe[me]||re[me]}},{key:"getFieldNames",value:function(){var me=this.props,re=me.fieldNames,ae=me.filedNames;return"filedNames"in this.props?ae:re}},{key:"getCurrentLevelOptions",value:function(){var me=this,re=this.props.options,ae=re===void 0?[]:re,Oe=this.state.activeValue,se=Oe===void 0?[]:Oe,te=O()(ae,function(Q,J){return Q[me.getFieldName("value")]===se[J]},{childrenKeyName:this.getFieldName("children")});return te[te.length-2]?te[te.length-2][this.getFieldName("children")]:S(ae).filter(function(Q){return!Q.disabled})}},{key:"getActiveOptions",value:function(me){var re=this;return O()(this.props.options||[],function(ae,Oe){return ae[re.getFieldName("value")]===me[Oe]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var me=this.props,re=me.prefixCls,ae=me.transitionName,Oe=me.popupClassName,se=me.options,te=se===void 0?[]:se,Q=me.disabled,J=me.builtinPlacements,ve=me.popupPlacement,_e=me.children,Ae=me.dropdownRender,Qe=M(me,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),tt=P.createElement("div",null),dt="";te&&te.length>0?tt=P.createElement(w,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):dt=" ".concat(re,"-menus-empty");var mt=tt;return Ae&&(mt=Ae(tt)),P.createElement(g.a,Object.assign({ref:this.saveTrigger},Qe,{popupPlacement:ve,builtinPlacements:J,popupTransitionName:ae,action:Q?[]:["click"],popupVisible:Q?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(re,"-menus"),popupClassName:Oe+dt,popup:mt}),P.cloneElement(_e,{onKeyDown:this.handleKeyDown,tabIndex:Q?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(me,re){var ae=re.prevProps,Oe=ae===void 0?{}:ae,se={prevProps:me};return"value"in me&&!m(Oe.value,me.value)&&(se.value=me.value||[],"loadData"in me||(se.activeValue=me.value||[])),"popupVisible"in me&&(se.popupVisible=me.popupVisible),se}}]),le}(P.Component);return be.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:v,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},be}(),Te=Se,ce=z.a=Te},S6kV:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.mode.OFB=function(){var g=P.lib.BlockCipherMode.extend(),T=g.Encryptor=g.extend({processBlock:function(b,y){var x=this._cipher,O=x.blockSize,m=this._iv,e=this._keystream;m&&(e=this._keystream=m.slice(0),this._iv=void 0),x.encryptBlock(e,0);for(var f=0;f|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(se){for(var te=0,Q=!1,J=!1,ve=0,_e=se.length;ve<_e;++ve){var Ae=se[ve];if(Ae.ignoreCase)J=!0;else if(/[a-z]/i.test(Ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Q=!0,J=!1;break}}var Qe={b:8,t:9,n:10,v:11,f:12,r:13};function tt(Ye){var Ue=Ye.charCodeAt(0);if(Ue!==92)return Ue;var ft=Ye.charAt(1);return Ue=Qe[ft],Ue||("0"<=ft&&ft<="7"?parseInt(Ye.substring(1),8):ft==="u"||ft==="x"?parseInt(Ye.substring(2),16):Ye.charCodeAt(1))}function dt(Ye){if(Ye<32)return(Ye<16?"\\x0":"\\x")+Ye.toString(16);var Ue=String.fromCharCode(Ye);return Ue==="\\"||Ue==="-"||Ue==="]"||Ue==="^"?"\\"+Ue:Ue}function mt(Ye){var Ue=Ye.substring(1,Ye.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),ft=[],jt=Ue[0]==="^",yt=["["];jt&&yt.push("^");for(var Pt=jt?1:0,it=Ue.length;Pt122||(Ce<65||Ge>90||ft.push([Math.max(65,Ge)|32,Math.min(Ce,90)|32]),Ce<97||Ge>122||ft.push([Math.max(97,Ge)&~32,Math.min(Ce,122)&~32]))}}ft.sort(function(We,st){return We[0]-st[0]||st[1]-We[1]});for(var Ie=[],Fe=[],Pt=0;PtBe[0]&&(Be[1]+1>Be[0]&&yt.push("-"),yt.push(dt(Be[1])))}return yt.push("]"),yt.join("")}function vt(Ye){for(var Ue=Ye.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ft=Ue.length,jt=[],yt=0,Pt=0;yt=2&&Ge==="["?Ue[yt]=mt(it):Ge!=="\\"&&(Ue[yt]=it.replace(/[a-zA-Z]/g,function(Fe){var Be=Fe.charCodeAt(0);return"["+String.fromCharCode(Be&~32,Be|32)+"]"}))}return Ue.join("")}for(var Et=[],ve=0,_e=se.length;ve<_e;++ve){var Ae=se[ve];if(Ae.global||Ae.multiline)throw new Error(""+Ae);Et.push("(?:"+vt(Ae)+")")}return new RegExp(Et.join("|"),J?"gi":"g")}function I(se,te){var Q=/(?:^|\s)nocode(?:\s|$)/,J=[],ve=0,_e=[],Ae=0;function Qe(tt){var dt=tt.nodeType;if(dt==1){if(Q.test(tt.className))return;for(var mt=tt.firstChild;mt;mt=mt.nextSibling)Qe(mt);var vt=tt.nodeName.toLowerCase();(vt==="br"||vt==="li")&&(J[Ae]=` -`,_e[Ae<<1]=ve++,_e[Ae++<<1|1]=tt)}else if(dt==3||dt==4){var Et=tt.nodeValue;Et.length&&(te?Et=Et.replace(/\r\n?/g,` -`):Et=Et.replace(/[ \t\r\n]+/g," "),J[Ae]=Et,_e[Ae<<1]=ve,ve+=Et.length,_e[Ae++<<1|1]=tt)}}return Qe(se),{sourceCode:J.join("").replace(/\n$/,""),spans:_e}}function K(se,te,Q,J,ve){if(!Q)return;var _e={sourceNode:se,pre:1,langExtension:null,numberLines:null,sourceCode:Q,spans:null,basePos:te,decorations:null};J(_e),ve.push.apply(ve,_e.decorations)}var ee=/\S/;function he(se){for(var te=void 0,Q=se.firstChild;Q;Q=Q.nextSibling){var J=Q.nodeType;te=J===1?te?se:Q:J===3&&ee.test(Q.nodeValue)?se:te}return te===se?void 0:te}function de(se,te){var Q={},J;(function(){for(var Ae=se.concat(te),Qe=[],tt={},dt=0,mt=Ae.length;dt=0;)Q[Et.charAt(Ye)]=vt;var Ue=vt[1],ft=""+Ue;tt.hasOwnProperty(ft)||(Qe.push(Ue),tt[ft]=null)}Qe.push(/[\0-\uffff]/),J=F(Qe)})();var ve=te.length,_e=function(Ae){for(var Qe=Ae.sourceCode,tt=Ae.basePos,dt=Ae.sourceNode,mt=[tt,A],vt=0,Et=Qe.match(J)||[],Ye={},Ue=0,ft=Et.length;Ue=5&&yt.substring(0,5)==="lang-",it&&!(Pt&&typeof Pt[1]=="string")&&(it=!1,yt=N),it||(Ye[jt]=yt)}var Ce=vt;if(vt+=jt.length,!it)mt.push(tt+Ce,yt);else{var Ie=Pt[1],Fe=jt.indexOf(Ie),Be=Fe+Ie.length;Pt[2]&&(Be=jt.length-Pt[2].length,Fe=Be-Ie.length);var We=yt.substring(5);K(dt,tt+Ce,jt.substring(0,Fe),_e,mt),K(dt,tt+Ce+Fe,Ie,le(We,Ie),mt),K(dt,tt+Ce+Be,jt.substring(Be),_e,mt)}}Ae.decorations=mt};return _e}function Se(se){var te=[],Q=[];se.tripleQuotedStrings?te.push([v,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):se.multiLineStrings?te.push([v,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):te.push([v,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),se.verbatimStrings&&Q.push([v,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var J=se.hashComments;J&&(se.cStyleComments?(J>1?te.push([M,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):te.push([M,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Q.push([v,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):te.push([M,/^#[^\r\n]*/,null,"#"])),se.cStyleComments&&(Q.push([M,/^\/\/[^\r\n]*/,null]),Q.push([M,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=se.regexLiterals;if(ve){var _e=ve>1?"":` + */var o,P,g,T=!1,b,y;window.PR_SHOULD_USE_CONTINUATION=!0;var x,O;(function(){var m=window,e=["break,continue,do,else,for,if,return,while"],f=[e,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],a=[f,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],u=[a,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],r=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],i=[a,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],n="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",l=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],h="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",d=[e,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],s=[e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],c=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],w=[u,i,r,l,h,d,s,c],E=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,v="str",R="kwd",M="com",C="typ",S="lit",_="pun",A="pln",U="tag",L="dec",N="src",V="atn",H="atv",D="nocode",W="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(se){for(var te=0,Q=!1,J=!1,ve=0,_e=se.length;ve<_e;++ve){var Ae=se[ve];if(Ae.ignoreCase)J=!0;else if(/[a-z]/i.test(Ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Q=!0,J=!1;break}}var Qe={b:8,t:9,n:10,v:11,f:12,r:13};function tt(Ye){var Ue=Ye.charCodeAt(0);if(Ue!==92)return Ue;var ft=Ye.charAt(1);return Ue=Qe[ft],Ue||("0"<=ft&&ft<="7"?parseInt(Ye.substring(1),8):ft==="u"||ft==="x"?parseInt(Ye.substring(2),16):Ye.charCodeAt(1))}function dt(Ye){if(Ye<32)return(Ye<16?"\\x0":"\\x")+Ye.toString(16);var Ue=String.fromCharCode(Ye);return Ue==="\\"||Ue==="-"||Ue==="]"||Ue==="^"?"\\"+Ue:Ue}function mt(Ye){var Ue=Ye.substring(1,Ye.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),ft=[],jt=Ue[0]==="^",bt=["["];jt&&bt.push("^");for(var Pt=jt?1:0,it=Ue.length;Pt122||(Ce<65||Ge>90||ft.push([Math.max(65,Ge)|32,Math.min(Ce,90)|32]),Ce<97||Ge>122||ft.push([Math.max(97,Ge)&~32,Math.min(Ce,122)&~32]))}}ft.sort(function(We,st){return We[0]-st[0]||st[1]-We[1]});for(var Ie=[],Fe=[],Pt=0;PtBe[0]&&(Be[1]+1>Be[0]&&bt.push("-"),bt.push(dt(Be[1])))}return bt.push("]"),bt.join("")}function vt(Ye){for(var Ue=Ye.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ft=Ue.length,jt=[],bt=0,Pt=0;bt=2&&Ge==="["?Ue[bt]=mt(it):Ge!=="\\"&&(Ue[bt]=it.replace(/[a-zA-Z]/g,function(Fe){var Be=Fe.charCodeAt(0);return"["+String.fromCharCode(Be&~32,Be|32)+"]"}))}return Ue.join("")}for(var yt=[],ve=0,_e=se.length;ve<_e;++ve){var Ae=se[ve];if(Ae.global||Ae.multiline)throw new Error(""+Ae);yt.push("(?:"+vt(Ae)+")")}return new RegExp(yt.join("|"),J?"gi":"g")}function I(se,te){var Q=/(?:^|\s)nocode(?:\s|$)/,J=[],ve=0,_e=[],Ae=0;function Qe(tt){var dt=tt.nodeType;if(dt==1){if(Q.test(tt.className))return;for(var mt=tt.firstChild;mt;mt=mt.nextSibling)Qe(mt);var vt=tt.nodeName.toLowerCase();(vt==="br"||vt==="li")&&(J[Ae]=` +`,_e[Ae<<1]=ve++,_e[Ae++<<1|1]=tt)}else if(dt==3||dt==4){var yt=tt.nodeValue;yt.length&&(te?yt=yt.replace(/\r\n?/g,` +`):yt=yt.replace(/[ \t\r\n]+/g," "),J[Ae]=yt,_e[Ae<<1]=ve,ve+=yt.length,_e[Ae++<<1|1]=tt)}}return Qe(se),{sourceCode:J.join("").replace(/\n$/,""),spans:_e}}function K(se,te,Q,J,ve){if(!Q)return;var _e={sourceNode:se,pre:1,langExtension:null,numberLines:null,sourceCode:Q,spans:null,basePos:te,decorations:null};J(_e),ve.push.apply(ve,_e.decorations)}var ee=/\S/;function he(se){for(var te=void 0,Q=se.firstChild;Q;Q=Q.nextSibling){var J=Q.nodeType;te=J===1?te?se:Q:J===3&&ee.test(Q.nodeValue)?se:te}return te===se?void 0:te}function de(se,te){var Q={},J;(function(){for(var Ae=se.concat(te),Qe=[],tt={},dt=0,mt=Ae.length;dt=0;)Q[yt.charAt(Ye)]=vt;var Ue=vt[1],ft=""+Ue;tt.hasOwnProperty(ft)||(Qe.push(Ue),tt[ft]=null)}Qe.push(/[\0-\uffff]/),J=F(Qe)})();var ve=te.length,_e=function(Ae){for(var Qe=Ae.sourceCode,tt=Ae.basePos,dt=Ae.sourceNode,mt=[tt,A],vt=0,yt=Qe.match(J)||[],Ye={},Ue=0,ft=yt.length;Ue=5&&bt.substring(0,5)==="lang-",it&&!(Pt&&typeof Pt[1]=="string")&&(it=!1,bt=N),it||(Ye[jt]=bt)}var Ce=vt;if(vt+=jt.length,!it)mt.push(tt+Ce,bt);else{var Ie=Pt[1],Fe=jt.indexOf(Ie),Be=Fe+Ie.length;Pt[2]&&(Be=jt.length-Pt[2].length,Fe=Be-Ie.length);var We=bt.substring(5);K(dt,tt+Ce,jt.substring(0,Fe),_e,mt),K(dt,tt+Ce+Fe,Ie,le(We,Ie),mt),K(dt,tt+Ce+Be,jt.substring(Be),_e,mt)}}Ae.decorations=mt};return _e}function Se(se){var te=[],Q=[];se.tripleQuotedStrings?te.push([v,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):se.multiLineStrings?te.push([v,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):te.push([v,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),se.verbatimStrings&&Q.push([v,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var J=se.hashComments;J&&(se.cStyleComments?(J>1?te.push([M,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):te.push([M,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Q.push([v,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):te.push([M,/^#[^\r\n]*/,null,"#"])),se.cStyleComments&&(Q.push([M,/^\/\/[^\r\n]*/,null]),Q.push([M,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=se.regexLiterals;if(ve){var _e=ve>1?"":` \r`,Ae=_e?".":"[\\S\\s]",Qe="/(?=[^/*"+_e+"])(?:[^/\\x5B\\x5C"+_e+"]|\\x5C"+Ae+"|\\x5B(?:[^\\x5C\\x5D"+_e+"]|\\x5C"+Ae+")*(?:\\x5D|$))+/";Q.push(["lang-regex",RegExp("^"+W+"("+Qe+")")])}var tt=se.types;tt&&Q.push([C,tt]);var dt=(""+se.keywords).replace(/^ | $/g,"");dt.length&&Q.push([R,new RegExp("^(?:"+dt.replace(/[\s,]+/g,"|")+")\\b"),null]),te.push([A,/^\s+/,null,` \r - \xA0`]);var mt="^.[^\\s\\w.$@'\"`/\\\\]*";return se.regexLiterals&&(mt+="(?!s*/)"),Q.push([S,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[A,/^[a-z_$][a-z_$@0-9]*/i,null],[S,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[A,/^\\[\s\S]?/,null],[_,new RegExp(mt),null]),de(te,Q)}var Te=Se({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(se,te,Q){for(var J=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,_e=se.ownerDocument,Ae=_e.createElement("li");se.firstChild;)Ae.appendChild(se.firstChild);var Qe=[Ae];function tt(Ue){var ft=Ue.nodeType;if(ft==1&&!J.test(Ue.className))if(Ue.nodeName==="br")dt(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var jt=Ue.firstChild;jt;jt=jt.nextSibling)tt(jt);else if((ft==3||ft==4)&&Q){var yt=Ue.nodeValue,Pt=yt.match(ve);if(Pt){var it=yt.substring(0,Pt.index);Ue.nodeValue=it;var He=yt.substring(Pt.index+Pt[0].length);if(He){var Ge=Ue.parentNode;Ge.insertBefore(_e.createTextNode(He),Ue.nextSibling)}dt(Ue),it||Ue.parentNode.removeChild(Ue)}}}function dt(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function ft(Pt,it){var He=it?Pt.cloneNode(!1):Pt,Ge=Pt.parentNode;if(Ge){var Ce=ft(Ge,1),Ie=Pt.nextSibling;Ce.appendChild(He);for(var Fe=Ie;Fe;Fe=Ie)Ie=Fe.nextSibling,Ce.appendChild(Fe)}return He}for(var jt=ft(Ue.nextSibling,0),yt;(yt=jt.parentNode)&&yt.nodeType===1;)jt=yt;Qe.push(jt)}for(var mt=0;mt=Ge&&(tt+=2),_e>=Ce&&(vt+=2)}}finally{yt&&(yt.style.display=Pt)}}var Ee={};function ue(se,te){for(var Q=te.length;--Q>=0;){var J=te[Q];Ee.hasOwnProperty(J)?m.console&&console.warn("cannot override language handler %s",J):Ee[J]=se}}function le(se,te){return se&&Ee.hasOwnProperty(se)||(se=/^\s*]*(?:>|$)/],[M,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ue(de([[A,/^[\s]+/,null,` \r -`],[H,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[U,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[V,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[_,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ue(de([],[[H,/^[\s\S]+/]]),["uq.val"]),ue(Se({keywords:u,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ue(Se({keywords:"null,true,false"}),["json"]),ue(Se({keywords:i,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ue(Se({keywords:r,cStyleComments:!0}),["java"]),ue(Se({keywords:c,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(Se({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(Se({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(Se({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(Se({keywords:l,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(Se({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(de([],[[v,/^[\s\S]+/]]),["regex"]);function $(se){var te=se.langExtension;try{var Q=I(se.sourceNode,se.pre),J=Q.sourceCode;se.sourceCode=J,se.spans=Q.spans,se.basePos=0,le(te,J)(se),be(se)}catch(ve){m.console&&console.log(ve&&ve.stack||ve)}}function me(se,te,Q){var J=Q||!1,ve=te||null,_e=document.createElement("div");_e.innerHTML="
        "+se+"
        ",_e=_e.firstChild,J&&ce(_e,J,!0);var Ae={langExtension:ve,numberLines:J,sourceNode:_e,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return $(Ae),_e.innerHTML}function re(se,te){var Q=te||document.body,J=Q.ownerDocument||document;function ve(He){return Q.getElementsByTagName(He)}for(var _e=[ve("pre"),ve("code"),ve("xmp")],Ae=[],Qe=0;Qe<_e.length;++Qe)for(var tt=0,dt=_e[Qe].length;tt=0),y.set("isFirefox",b.indexOf("Firefox")>=0),y.set("isChrome",b.indexOf("Chrome")>=0),y.set("isSafari",b.indexOf("Safari")>=0);const x=Object.prototype.hasOwnProperty;class O{static has(D){return u.create(D)}static equals(D,W){return r.create(D,W)}static regex(D,W){return v.create(D,W)}static not(D){return h.create(D)}static and(...D){return C.create(D,null)}static or(...D){return S.create(D,null,!0)}static deserialize(D,W=!1){return D?this._deserializeOrExpression(D,W):void 0}static _deserializeOrExpression(D,W){let F=D.split("||");return S.create(F.map(I=>this._deserializeAndExpression(I,W)),null,!0)}static _deserializeAndExpression(D,W){let F=D.split("&&");return C.create(F.map(I=>this._deserializeOne(I,W)),null)}static _deserializeOne(D,W){if(D=D.trim(),D.indexOf("!=")>=0){let F=D.split("!=");return l.create(F[0].trim(),this._deserializeValue(F[1],W))}if(D.indexOf("==")>=0){let F=D.split("==");return r.create(F[0].trim(),this._deserializeValue(F[1],W))}if(D.indexOf("=~")>=0){let F=D.split("=~");return v.create(F[0].trim(),this._deserializeRegexValue(F[1],W))}if(D.indexOf(" in ")>=0){let F=D.split(" in ");return i.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(D)){const F=D.split(">=");return c.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(D)){const F=D.split(">");return s.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(D)){const F=D.split("<=");return E.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(D)){const F=D.split("<");return w.create(F[0].trim(),F[1].trim())}return/^\!\s*/.test(D)?h.create(D.substr(1).trim()):u.create(D)}static _deserializeValue(D,W){if(D=D.trim(),D==="true")return!0;if(D==="false")return!1;let F=/^'([^']*)'$/.exec(D);return F?F[1].trim():D}static _deserializeRegexValue(D,W){if(Object(g.C)(D)){if(W)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let F=D.indexOf("/"),I=D.lastIndexOf("/");if(F===I||F<0){if(W)throw new Error(`bad regexp-value '${D}', missing /-enclosure`);return console.warn(`bad regexp-value '${D}', missing /-enclosure`),null}let K=D.slice(F+1,I),ee=D[I+1]==="i"?"i":"";try{return new RegExp(K,ee)}catch(he){if(W)throw new Error(`bad regexp-value '${D}', parse error: ${he}`);return console.warn(`bad regexp-value '${D}', parse error: ${he}`),null}}}function m(D,W){const F=D?D.substituteConstants():void 0,I=W?W.substituteConstants():void 0;return!F&&!I?!0:!F||!I?!1:F.equals(I)}function e(D,W){return D.cmp(W)}class f{constructor(){this.type=0}cmp(D){return this.type-D.type}equals(D){return D.type===this.type}substituteConstants(){return this}evaluate(D){return!1}serialize(){return"false"}keys(){return[]}negate(){return a.INSTANCE}}f.INSTANCE=new f;class a{constructor(){this.type=1}cmp(D){return this.type-D.type}equals(D){return D.type===this.type}substituteConstants(){return this}evaluate(D){return!0}serialize(){return"true"}keys(){return[]}negate(){return f.INSTANCE}}a.INSTANCE=new a;class u{constructor(D,W){this.key=D,this.negated=W,this.type=2}static create(D,W=null){const F=y.get(D);return typeof F=="boolean"?F?a.INSTANCE:f.INSTANCE:new u(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:L(this.key,D.key)}equals(D){return D.type===this.type?this.key===D.key:!1}substituteConstants(){const D=y.get(this.key);return typeof D=="boolean"?D?a.INSTANCE:f.INSTANCE:this}evaluate(D){return!!D.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=h.create(this.key,this)),this.negated}}class r{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=4}static create(D,W,F=null){if(typeof W=="boolean")return W?u.create(D,F):h.create(D,F);const I=y.get(D);if(typeof I=="boolean"){const K=I?"true":"false";return W===K?a.INSTANCE:f.INSTANCE}return new r(D,W,F)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){const D=y.get(this.key);if(typeof D=="boolean"){const W=D?"true":"false";return this.value===W?a.INSTANCE:f.INSTANCE}return this}evaluate(D){return D.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this.value,this)),this.negated}}class i{constructor(D,W){this.key=D,this.valueKey=W,this.type=10,this.negated=null}static create(D,W){return new i(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.valueKey,D.key,D.valueKey)}equals(D){return D.type===this.type?this.key===D.key&&this.valueKey===D.valueKey:!1}substituteConstants(){return this}evaluate(D){const W=D.getValue(this.valueKey),F=D.getValue(this.key);return Array.isArray(W)?W.indexOf(F)>=0:typeof F=="string"&&typeof W=="object"&&W!==null?x.call(W,F):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=n.create(this)),this.negated}}class n{constructor(D){this._actual=D,this.type=11}static create(D){return new n(D)}cmp(D){return D.type!==this.type?this.type-D.type:this._actual.cmp(D._actual)}equals(D){return D.type===this.type?this._actual.equals(D._actual):!1}substituteConstants(){return this}evaluate(D){return!this._actual.evaluate(D)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class l{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=5}static create(D,W,F=null){if(typeof W=="boolean")return W?h.create(D,F):u.create(D,F);const I=y.get(D);if(typeof I=="boolean"){const K=I?"true":"false";return W===K?f.INSTANCE:a.INSTANCE}return new l(D,W,F)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){const D=y.get(this.key);if(typeof D=="boolean"){const W=D?"true":"false";return this.value===W?f.INSTANCE:a.INSTANCE}return this}evaluate(D){return D.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=r.create(this.key,this.value,this)),this.negated}}class h{constructor(D,W){this.key=D,this.negated=W,this.type=3}static create(D,W=null){const F=y.get(D);return typeof F=="boolean"?F?f.INSTANCE:a.INSTANCE:new h(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:L(this.key,D.key)}equals(D){return D.type===this.type?this.key===D.key:!1}substituteConstants(){const D=y.get(this.key);return typeof D=="boolean"?D?f.INSTANCE:a.INSTANCE:this}evaluate(D){return!D.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this)),this.negated}}function d(D,W){if(typeof D=="string"){const F=parseFloat(D);isNaN(F)||(D=F)}return typeof D=="string"||typeof D=="number"?W(D):f.INSTANCE}class s{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=12}static create(D,W,F=null){return d(W,I=>new s(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class c{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=13}static create(D,W,F=null){return d(W,I=>new c(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class w{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=14}static create(D,W,F=null){return d(W,I=>new w(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))new E(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=s.create(this.key,this.value,this)),this.negated}}class v{constructor(D,W){this.key=D,this.regexp=W,this.type=7,this.negated=null}static create(D,W){return new v(D,W)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.keyD.key)return 1;const W=this.regexp?this.regexp.source:"",F=D.regexp?D.regexp.source:"";return WF?1:0}equals(D){if(D.type===this.type){const W=this.regexp?this.regexp.source:"",F=D.regexp?D.regexp.source:"";return this.key===D.key&&W===F}return!1}substituteConstants(){return this}evaluate(D){let W=D.getValue(this.key);return this.regexp?this.regexp.test(W):!1}serialize(){const D=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${D}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this)),this.negated}}class R{constructor(D){this._actual=D,this.type=8}static create(D){return new R(D)}cmp(D){return D.type!==this.type?this.type-D.type:this._actual.cmp(D._actual)}equals(D){return D.type===this.type?this._actual.equals(D._actual):!1}substituteConstants(){return this}evaluate(D){return!this._actual.evaluate(D)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function M(D){let W=null;for(let F=0,I=D.length;FD.expr.length)return 1;for(let W=0,F=this.expr.length;W1;){const K=F[F.length-1];if(K.type!==9)break;F.pop();const ee=F.pop(),he=F.length===0,de=S.create(K.expr.map(Se=>C.create([Se,ee],null)),null,he);de&&(F.push(de),F.sort(e))}return F.length===1?F[0]:new C(F,W)}serialize(){return this.expr.map(D=>D.serialize()).join(" && ")}keys(){const D=[];for(let W of this.expr)D.push(...W.keys());return D}negate(){if(!this.negated){const D=[];for(let W of this.expr)D.push(W.negate());this.negated=S.create(D,this,!0)}return this.negated}}class S{constructor(D,W){this.expr=D,this.negated=W,this.type=9}static create(D,W,F){return S._normalizeArr(D,W,F)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.expr.lengthD.expr.length)return 1;for(let W=0,F=this.expr.length;WD.serialize()).join(" || ")}keys(){const D=[];for(let W of this.expr)D.push(...W.keys());return D}negate(){if(!this.negated){let D=[];for(let W of this.expr)D.push(W.negate());for(;D.length>1;){const W=D.shift(),F=D.shift(),I=[];for(const ee of H(W))for(const he of H(F))I.push(C.create([ee,he],null));const K=D.length===0;D.unshift(S.create(I,null,K))}this.negated=D[0]}return this.negated}}class _ extends u{constructor(D,W,F){super(D,null);this._defaultValue=W,typeof F=="object"?_._info.push(Object.assign(Object.assign({},F),{key:D})):F!==!0&&_._info.push({key:D,description:F,type:W!=null?typeof W:void 0})}static all(){return _._info.values()}bindTo(D){return D.createKey(this.key,this._defaultValue)}getValue(D){return D.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(D){return r.create(this.key,D)}}_._info=[];const A=Object(T.c)("contextKeyService"),U="setContext";function L(D,W){return DW?1:0}function N(D,W,F,I){return DF?1:WI?1:0}function V(D,W){if(W.type===6&&D.type!==9&&D.type!==6){for(const K of W.expr)if(D.equals(K))return!0}const F=D.negate(),I=H(F).concat(H(W));I.sort(e);for(let K=0;K=0;i--)if(this.__items[i].match(r))return!0;return!1},f.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},f.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},f.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},f.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},f.prototype.is_empty=function(){return this.__items.length===0},f.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},f.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(` + \xA0`]);var mt="^.[^\\s\\w.$@'\"`/\\\\]*";return se.regexLiterals&&(mt+="(?!s*/)"),Q.push([S,/^@[a-z_$][a-z_$@0-9]*/i,null],[C,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[A,/^[a-z_$][a-z_$@0-9]*/i,null],[S,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[A,/^\\[\s\S]?/,null],[_,new RegExp(mt),null]),de(te,Q)}var Te=Se({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(se,te,Q){for(var J=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,_e=se.ownerDocument,Ae=_e.createElement("li");se.firstChild;)Ae.appendChild(se.firstChild);var Qe=[Ae];function tt(Ue){var ft=Ue.nodeType;if(ft==1&&!J.test(Ue.className))if(Ue.nodeName==="br")dt(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var jt=Ue.firstChild;jt;jt=jt.nextSibling)tt(jt);else if((ft==3||ft==4)&&Q){var bt=Ue.nodeValue,Pt=bt.match(ve);if(Pt){var it=bt.substring(0,Pt.index);Ue.nodeValue=it;var He=bt.substring(Pt.index+Pt[0].length);if(He){var Ge=Ue.parentNode;Ge.insertBefore(_e.createTextNode(He),Ue.nextSibling)}dt(Ue),it||Ue.parentNode.removeChild(Ue)}}}function dt(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function ft(Pt,it){var He=it?Pt.cloneNode(!1):Pt,Ge=Pt.parentNode;if(Ge){var Ce=ft(Ge,1),Ie=Pt.nextSibling;Ce.appendChild(He);for(var Fe=Ie;Fe;Fe=Ie)Ie=Fe.nextSibling,Ce.appendChild(Fe)}return He}for(var jt=ft(Ue.nextSibling,0),bt;(bt=jt.parentNode)&&bt.nodeType===1;)jt=bt;Qe.push(jt)}for(var mt=0;mt=Ge&&(tt+=2),_e>=Ce&&(vt+=2)}}finally{bt&&(bt.style.display=Pt)}}var Ee={};function ue(se,te){for(var Q=te.length;--Q>=0;){var J=te[Q];Ee.hasOwnProperty(J)?m.console&&console.warn("cannot override language handler %s",J):Ee[J]=se}}function le(se,te){return se&&Ee.hasOwnProperty(se)||(se=/^\s*]*(?:>|$)/],[M,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ue(de([[A,/^[\s]+/,null,` \r +`],[H,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[U,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[V,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[_,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ue(de([],[[H,/^[\s\S]+/]]),["uq.val"]),ue(Se({keywords:u,hashComments:!0,cStyleComments:!0,types:E}),["c","cc","cpp","cxx","cyc","m"]),ue(Se({keywords:"null,true,false"}),["json"]),ue(Se({keywords:i,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:E}),["cs"]),ue(Se({keywords:r,cStyleComments:!0}),["java"]),ue(Se({keywords:c,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ue(Se({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ue(Se({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ue(Se({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ue(Se({keywords:l,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ue(Se({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ue(de([],[[v,/^[\s\S]+/]]),["regex"]);function $(se){var te=se.langExtension;try{var Q=I(se.sourceNode,se.pre),J=Q.sourceCode;se.sourceCode=J,se.spans=Q.spans,se.basePos=0,le(te,J)(se),be(se)}catch(ve){m.console&&console.log(ve&&ve.stack||ve)}}function me(se,te,Q){var J=Q||!1,ve=te||null,_e=document.createElement("div");_e.innerHTML="
        "+se+"
        ",_e=_e.firstChild,J&&ce(_e,J,!0);var Ae={langExtension:ve,numberLines:J,sourceNode:_e,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return $(Ae),_e.innerHTML}function re(se,te){var Q=te||document.body,J=Q.ownerDocument||document;function ve(He){return Q.getElementsByTagName(He)}for(var _e=[ve("pre"),ve("code"),ve("xmp")],Ae=[],Qe=0;Qe<_e.length;++Qe)for(var tt=0,dt=_e[Qe].length;tt=0),y.set("isFirefox",b.indexOf("Firefox")>=0),y.set("isChrome",b.indexOf("Chrome")>=0),y.set("isSafari",b.indexOf("Safari")>=0);const x=Object.prototype.hasOwnProperty;class O{static has(D){return u.create(D)}static equals(D,W){return r.create(D,W)}static regex(D,W){return v.create(D,W)}static not(D){return h.create(D)}static and(...D){return C.create(D,null)}static or(...D){return S.create(D,null,!0)}static deserialize(D,W=!1){return D?this._deserializeOrExpression(D,W):void 0}static _deserializeOrExpression(D,W){let F=D.split("||");return S.create(F.map(I=>this._deserializeAndExpression(I,W)),null,!0)}static _deserializeAndExpression(D,W){let F=D.split("&&");return C.create(F.map(I=>this._deserializeOne(I,W)),null)}static _deserializeOne(D,W){if(D=D.trim(),D.indexOf("!=")>=0){let F=D.split("!=");return l.create(F[0].trim(),this._deserializeValue(F[1],W))}if(D.indexOf("==")>=0){let F=D.split("==");return r.create(F[0].trim(),this._deserializeValue(F[1],W))}if(D.indexOf("=~")>=0){let F=D.split("=~");return v.create(F[0].trim(),this._deserializeRegexValue(F[1],W))}if(D.indexOf(" in ")>=0){let F=D.split(" in ");return i.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(D)){const F=D.split(">=");return c.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(D)){const F=D.split(">");return s.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(D)){const F=D.split("<=");return E.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(D)){const F=D.split("<");return w.create(F[0].trim(),F[1].trim())}return/^\!\s*/.test(D)?h.create(D.substr(1).trim()):u.create(D)}static _deserializeValue(D,W){if(D=D.trim(),D==="true")return!0;if(D==="false")return!1;let F=/^'([^']*)'$/.exec(D);return F?F[1].trim():D}static _deserializeRegexValue(D,W){if(Object(g.C)(D)){if(W)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let F=D.indexOf("/"),I=D.lastIndexOf("/");if(F===I||F<0){if(W)throw new Error(`bad regexp-value '${D}', missing /-enclosure`);return console.warn(`bad regexp-value '${D}', missing /-enclosure`),null}let K=D.slice(F+1,I),ee=D[I+1]==="i"?"i":"";try{return new RegExp(K,ee)}catch(he){if(W)throw new Error(`bad regexp-value '${D}', parse error: ${he}`);return console.warn(`bad regexp-value '${D}', parse error: ${he}`),null}}}function m(D,W){const F=D?D.substituteConstants():void 0,I=W?W.substituteConstants():void 0;return!F&&!I?!0:!F||!I?!1:F.equals(I)}function e(D,W){return D.cmp(W)}class f{constructor(){this.type=0}cmp(D){return this.type-D.type}equals(D){return D.type===this.type}substituteConstants(){return this}evaluate(D){return!1}serialize(){return"false"}keys(){return[]}negate(){return a.INSTANCE}}f.INSTANCE=new f;class a{constructor(){this.type=1}cmp(D){return this.type-D.type}equals(D){return D.type===this.type}substituteConstants(){return this}evaluate(D){return!0}serialize(){return"true"}keys(){return[]}negate(){return f.INSTANCE}}a.INSTANCE=new a;class u{constructor(D,W){this.key=D,this.negated=W,this.type=2}static create(D,W=null){const F=y.get(D);return typeof F=="boolean"?F?a.INSTANCE:f.INSTANCE:new u(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:L(this.key,D.key)}equals(D){return D.type===this.type?this.key===D.key:!1}substituteConstants(){const D=y.get(this.key);return typeof D=="boolean"?D?a.INSTANCE:f.INSTANCE:this}evaluate(D){return!!D.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=h.create(this.key,this)),this.negated}}class r{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=4}static create(D,W,F=null){if(typeof W=="boolean")return W?u.create(D,F):h.create(D,F);const I=y.get(D);if(typeof I=="boolean"){const K=I?"true":"false";return W===K?a.INSTANCE:f.INSTANCE}return new r(D,W,F)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){const D=y.get(this.key);if(typeof D=="boolean"){const W=D?"true":"false";return this.value===W?a.INSTANCE:f.INSTANCE}return this}evaluate(D){return D.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=l.create(this.key,this.value,this)),this.negated}}class i{constructor(D,W){this.key=D,this.valueKey=W,this.type=10,this.negated=null}static create(D,W){return new i(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.valueKey,D.key,D.valueKey)}equals(D){return D.type===this.type?this.key===D.key&&this.valueKey===D.valueKey:!1}substituteConstants(){return this}evaluate(D){const W=D.getValue(this.valueKey),F=D.getValue(this.key);return Array.isArray(W)?W.indexOf(F)>=0:typeof F=="string"&&typeof W=="object"&&W!==null?x.call(W,F):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=n.create(this)),this.negated}}class n{constructor(D){this._actual=D,this.type=11}static create(D){return new n(D)}cmp(D){return D.type!==this.type?this.type-D.type:this._actual.cmp(D._actual)}equals(D){return D.type===this.type?this._actual.equals(D._actual):!1}substituteConstants(){return this}evaluate(D){return!this._actual.evaluate(D)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class l{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=5}static create(D,W,F=null){if(typeof W=="boolean")return W?h.create(D,F):u.create(D,F);const I=y.get(D);if(typeof I=="boolean"){const K=I?"true":"false";return W===K?f.INSTANCE:a.INSTANCE}return new l(D,W,F)}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){const D=y.get(this.key);if(typeof D=="boolean"){const W=D?"true":"false";return this.value===W?f.INSTANCE:a.INSTANCE}return this}evaluate(D){return D.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=r.create(this.key,this.value,this)),this.negated}}class h{constructor(D,W){this.key=D,this.negated=W,this.type=3}static create(D,W=null){const F=y.get(D);return typeof F=="boolean"?F?f.INSTANCE:a.INSTANCE:new h(D,W)}cmp(D){return D.type!==this.type?this.type-D.type:L(this.key,D.key)}equals(D){return D.type===this.type?this.key===D.key:!1}substituteConstants(){const D=y.get(this.key);return typeof D=="boolean"?D?f.INSTANCE:a.INSTANCE:this}evaluate(D){return!D.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this)),this.negated}}function d(D,W){if(typeof D=="string"){const F=parseFloat(D);isNaN(F)||(D=F)}return typeof D=="string"||typeof D=="number"?W(D):f.INSTANCE}class s{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=12}static create(D,W,F=null){return d(W,I=>new s(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class c{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=13}static create(D,W,F=null){return d(W,I=>new c(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class w{constructor(D,W,F){this.key=D,this.value=W,this.negated=F,this.type=14}static create(D,W,F=null){return d(W,I=>new w(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))new E(D,I,F))}cmp(D){return D.type!==this.type?this.type-D.type:N(this.key,this.value,D.key,D.value)}equals(D){return D.type===this.type?this.key===D.key&&this.value===D.value:!1}substituteConstants(){return this}evaluate(D){return typeof this.value=="string"?!1:parseFloat(D.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=s.create(this.key,this.value,this)),this.negated}}class v{constructor(D,W){this.key=D,this.regexp=W,this.type=7,this.negated=null}static create(D,W){return new v(D,W)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.keyD.key)return 1;const W=this.regexp?this.regexp.source:"",F=D.regexp?D.regexp.source:"";return WF?1:0}equals(D){if(D.type===this.type){const W=this.regexp?this.regexp.source:"",F=D.regexp?D.regexp.source:"";return this.key===D.key&&W===F}return!1}substituteConstants(){return this}evaluate(D){let W=D.getValue(this.key);return this.regexp?this.regexp.test(W):!1}serialize(){const D=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${D}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this)),this.negated}}class R{constructor(D){this._actual=D,this.type=8}static create(D){return new R(D)}cmp(D){return D.type!==this.type?this.type-D.type:this._actual.cmp(D._actual)}equals(D){return D.type===this.type?this._actual.equals(D._actual):!1}substituteConstants(){return this}evaluate(D){return!this._actual.evaluate(D)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function M(D){let W=null;for(let F=0,I=D.length;FD.expr.length)return 1;for(let W=0,F=this.expr.length;W1;){const K=F[F.length-1];if(K.type!==9)break;F.pop();const ee=F.pop(),he=F.length===0,de=S.create(K.expr.map(Se=>C.create([Se,ee],null)),null,he);de&&(F.push(de),F.sort(e))}return F.length===1?F[0]:new C(F,W)}serialize(){return this.expr.map(D=>D.serialize()).join(" && ")}keys(){const D=[];for(let W of this.expr)D.push(...W.keys());return D}negate(){if(!this.negated){const D=[];for(let W of this.expr)D.push(W.negate());this.negated=S.create(D,this,!0)}return this.negated}}class S{constructor(D,W){this.expr=D,this.negated=W,this.type=9}static create(D,W,F){return S._normalizeArr(D,W,F)}cmp(D){if(D.type!==this.type)return this.type-D.type;if(this.expr.lengthD.expr.length)return 1;for(let W=0,F=this.expr.length;WD.serialize()).join(" || ")}keys(){const D=[];for(let W of this.expr)D.push(...W.keys());return D}negate(){if(!this.negated){let D=[];for(let W of this.expr)D.push(W.negate());for(;D.length>1;){const W=D.shift(),F=D.shift(),I=[];for(const ee of H(W))for(const he of H(F))I.push(C.create([ee,he],null));const K=D.length===0;D.unshift(S.create(I,null,K))}this.negated=D[0]}return this.negated}}class _ extends u{constructor(D,W,F){super(D,null);this._defaultValue=W,typeof F=="object"?_._info.push(Object.assign(Object.assign({},F),{key:D})):F!==!0&&_._info.push({key:D,description:F,type:W!=null?typeof W:void 0})}static all(){return _._info.values()}bindTo(D){return D.createKey(this.key,this._defaultValue)}getValue(D){return D.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(D){return r.create(this.key,D)}}_._info=[];const A=Object(T.c)("contextKeyService"),U="setContext";function L(D,W){return DW?1:0}function N(D,W,F,I){return DF?1:WI?1:0}function V(D,W){if(W.type===6&&D.type!==9&&D.type!==6){for(const K of W.expr)if(D.equals(K))return!0}const F=D.negate(),I=H(F).concat(H(W));I.sort(e);for(let K=0;K=0;i--)if(this.__items[i].match(r))return!0;return!1},f.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},f.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},f.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},f.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},f.prototype.is_empty=function(){return this.__items.length===0},f.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},f.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(` `);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},f.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},f.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},f.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},f.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},f.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function a(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}a.prototype.get_indent_size=function(r,i){var n=this.__base_string_length;return i=i||0,r<0&&(n=0),n+=r*this.__indent_size,n+=i,n},a.prototype.get_indent_string=function(r,i){var n=this.__base_string;return i=i||0,r<0&&(r=0,n=""),i+=r*this.__indent_size,this.__ensure_cache(i),n+=this.__cache[i],n},a.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var r=this.__cache.length,i=0,n="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,n=new Array(i+1).join(this.__indent_string)),r&&(n+=new Array(r+1).join(" ")),this.__cache.push(n)};function u(r,i){this.__indent_cache=new a(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new f(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}u.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},u.prototype.get_line_number=function(){return this.__lines.length},u.prototype.get_indent_string=function(r,i){return this.__indent_cache.get_indent_string(r,i)},u.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},u.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},u.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},u.prototype.get_code=function(r){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===` `&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(` `);return r!==` @@ -352,30 +352,30 @@ You passed in: '`+this.raw_options[r]+"'");return l},f.prototype._is_valid_selec `&&((C===0||C0&&this._indentLevel--},v.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var R=this._source_text,M=this._options.eol;M==="auto"&&(M=` `,R&&h.test(R||"")&&(M=R.match(h)[0])),R=R.replace(d,` `);var C=R.match(/^[\t ]*/)[0];this._output=new r(this._options,C),this._input=new i(R),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var S=0,_=!1,A=!1,U=!1,L=!1,N=!1,V=!1,H=this._ch,D=!1,W,F,I;W=this._input.read(c),F=W!=="",I=H,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),H=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var K=this._input.read(w),ee=l.get_directives(K);ee&&ee.ignore==="start"&&(K+=l.readIgnored(this._input)),this.print_string(K),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(E)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(F),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var he=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);he.match(/[ :]$/)&&(he=this.eatString(": ").replace(/\s$/,""),this.print_string(he),this._output.space_before_token=!0),he=he.replace(/\s$/,""),he==="extend"?L=!0:he==="import"&&(N=!0),he in this.NESTED_AT_RULE?(this._nestedLevel+=1,he in this.CONDITIONAL_GROUP_RULE&&(U=!0)):!_&&S===0&&he.indexOf(":")!==-1&&(A=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(F),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")A&&(A=!1,this.outdent()),U?(U=!1,_=this._indentLevel>=this._nestedLevel):_=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&_&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(I==="("?this._output.space_before_token=!1:I!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),I==="{"&&this._output.trim(!0),N=!1,L=!1,A&&(this.outdent(),A=!1),this.print_string(this._ch),_=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var de=0;de"||this._ch==="+"||this._ch==="~")&&!A&&S===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&s.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(F),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),s.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var ce=I==='"'||I==="'";this.preserveSingleSpace(ce||F),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` -`&&D&&this._output.add_new_line()}var be=this._output.get_code(M);return be},e.exports.Beautifier=v},function(e,f,a){var u=a(6).Options;function r(i){u.call(this,i,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var n=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||n;var l=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var h=0;h` ${a} `).trim():""}class O{constructor(e,f,a){this.id=e,this.definition=f,this.description=a,T.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var m;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const f=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function a(i){if(i instanceof O)return["codicon","codicon-"+i.id];const n=f.exec(i.id);if(!n)return a(O.error);let[,l,h]=n;const d=["codicon","codicon-"+l];return h&&d.push("codicon-modifier-"+h.substr(1)),d}e.asClassNameArray=a;function u(i){return a(i).join(" ")}e.asClassName=u;function r(i){return"."+a(i).join(".")}e.asCSSSelector=r})(m||(m={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(O||(O={}))},"VrN/":function(k,z,o){(function(P,g){k.exports=g()})(this,function(){"use strict";var P=navigator.userAgent,g=navigator.platform,T=/gecko\/\d/i.test(P),b=/MSIE \d/.test(P),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(P),x=/Edge\/(\d+)/.exec(P),O=b||y||x,m=O&&(b?document.documentMode||6:+(x||y)[1]),e=!x&&/WebKit\//.test(P),f=e&&/Qt\/\d+\.\d+/.test(P),a=!x&&/Chrome\//.test(P),u=/Opera\//.test(P),r=/Apple Computer/.test(navigator.vendor),i=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(P),n=/PhantomJS/.test(P),l=!x&&/AppleWebKit/.test(P)&&/Mobile\/\w+/.test(P),h=/Android/.test(P),d=l||h||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(P),s=l||/Mac/.test(g),c=/\bCrOS\b/.test(P),w=/win/i.test(g),E=u&&P.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(u=!1,e=!0);var v=s&&(f||u&&(E==null||E<12.11)),R=T||O&&m>=9;function M(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var C=function(t,p){var B=t.className,j=M(p).exec(B);if(j){var G=B.slice(j.index+j[0].length);t.className=B.slice(0,j.index)+(G?j[1]+G:"")}};function S(t){for(var p=t.childNodes.length;p>0;--p)t.removeChild(t.firstChild);return t}function _(t,p){return S(t).appendChild(p)}function A(t,p,B,j){var G=document.createElement(t);if(B&&(G.className=B),j&&(G.style.cssText=j),typeof p=="string")G.appendChild(document.createTextNode(p));else if(p)for(var ne=0;ne=p)return ge+(p-ne);ge+=we-ne,ge+=B-ge%B,ne=we+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};ee.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},ee.prototype.set=function(t,p){this.f=p;var B=+new Date+t;(!this.id||B=p)return j+Math.min(ge,p-G);if(G+=ne-j,G+=B-G%B,j=ne+1,G>=p)return j}}var ue=[""];function le(t){for(;ue.length<=t;)ue.push($(ue)+" ");return ue[t]}function $(t){return t[t.length-1]}function me(t,p){for(var B=[],j=0;j"\x80"&&(t.toUpperCase()!=t.toLowerCase()||se.test(t))}function Q(t,p){return p?p.source.indexOf("\\w")>-1&&te(t)?!0:p.test(t):te(t)}function J(t){for(var p in t)if(t.hasOwnProperty(p)&&t[p])return!1;return!0}var ve=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(t){return t.charCodeAt(0)>=768&&ve.test(t)}function Ae(t,p,B){for(;(B<0?p>0:pB?-1:1;;){if(p==B)return p;var G=(p+B)/2,ne=j<0?Math.ceil(G):Math.floor(G);if(ne==p)return t(ne)?p:B;t(ne)?B=ne:p=ne+j}}function tt(t,p,B,j){if(!t)return j(p,B,"ltr",0);for(var G=!1,ne=0;nep||p==B&&ge.to==p)&&(j(Math.max(ge.from,p),Math.min(ge.to,B),ge.level==1?"rtl":"ltr",ne),G=!0)}G||j(p,B,"ltr")}var dt=null;function mt(t,p,B){var j;dt=null;for(var G=0;Gp)return G;ne.to==p&&(ne.from!=ne.to&&B=="before"?j=G:dt=G),ne.from==p&&(ne.from!=ne.to&&B!="before"?j=G:dt=G)}return j!=null?j:dt}var vt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",p="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function B(je){return je<=247?t.charAt(je):1424<=je&&je<=1524?"R":1536<=je&&je<=1785?p.charAt(je-1536):1774<=je&&je<=2220?"r":8192<=je&&je<=8203?"w":je==8204?"b":"L"}var j=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,G=/[stwN]/,ne=/[LRr]/,ge=/[Lb1n]/,we=/[1n]/;function Re(je,gt,At){this.level=je,this.from=gt,this.to=At}return function(je,gt){var At=gt=="ltr"?"L":"R";if(je.length==0||gt=="ltr"&&!j.test(je))return!1;for(var tn=je.length,zt=[],Tn=0;Tn-1&&(j[p]=G.slice(0,ne).concat(G.slice(ne+1)))}}}function yt(t,p){var B=ft(t,p);if(!B.length)return;for(var j=Array.prototype.slice.call(arguments,2),G=0;G0}function Ge(t){t.prototype.on=function(p,B){Ue(this,p,B)},t.prototype.off=function(p,B){jt(this,p,B)}}function Ce(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ie(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Fe(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Be(t){Ce(t),Ie(t)}function We(t){return t.target||t.srcElement}function st(t){var p=t.which;return p==null&&(t.button&1?p=1:t.button&2?p=3:t.button&4&&(p=2)),s&&t.ctrlKey&&p==1&&(p=3),p}var Dt=function(){if(O&&m<9)return!1;var t=A("div");return"draggable"in t||"dragDrop"in t}(),Ht;function rn(t){if(Ht==null){var p=A("span","\u200B");_(t,A("span",[p,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Ht=p.offsetWidth<=1&&p.offsetHeight>2&&!(O&&m<8))}var B=Ht?A("span","\u200B"):A("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return B.setAttribute("cm-text",""),B}var Bt;function Ct(t){if(Bt!=null)return Bt;var p=_(t,document.createTextNode("A\u062EA")),B=L(p,0,1).getBoundingClientRect(),j=L(p,1,2).getBoundingClientRect();return S(t),!B||B.left==B.right?!1:Bt=j.right-B.right<3}var Ke=` +`&&D&&this._output.add_new_line()}var be=this._output.get_code(M);return be},e.exports.Beautifier=v},function(e,f,a){var u=a(6).Options;function r(i){u.call(this,i,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var n=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||n;var l=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var h=0;h` ${a} `).trim():""}class O{constructor(e,f,a){this.id=e,this.definition=f,this.description=a,T.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var m;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const f=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function a(i){if(i instanceof O)return["codicon","codicon-"+i.id];const n=f.exec(i.id);if(!n)return a(O.error);let[,l,h]=n;const d=["codicon","codicon-"+l];return h&&d.push("codicon-modifier-"+h.substr(1)),d}e.asClassNameArray=a;function u(i){return a(i).join(" ")}e.asClassName=u;function r(i){return"."+a(i).join(".")}e.asCSSSelector=r})(m||(m={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(O||(O={}))},"VrN/":function(k,z,o){(function(P,g){k.exports=g()})(this,function(){"use strict";var P=navigator.userAgent,g=navigator.platform,T=/gecko\/\d/i.test(P),b=/MSIE \d/.test(P),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(P),x=/Edge\/(\d+)/.exec(P),O=b||y||x,m=O&&(b?document.documentMode||6:+(x||y)[1]),e=!x&&/WebKit\//.test(P),f=e&&/Qt\/\d+\.\d+/.test(P),a=!x&&/Chrome\//.test(P),u=/Opera\//.test(P),r=/Apple Computer/.test(navigator.vendor),i=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(P),n=/PhantomJS/.test(P),l=!x&&/AppleWebKit/.test(P)&&/Mobile\/\w+/.test(P),h=/Android/.test(P),d=l||h||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(P),s=l||/Mac/.test(g),c=/\bCrOS\b/.test(P),w=/win/i.test(g),E=u&&P.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(u=!1,e=!0);var v=s&&(f||u&&(E==null||E<12.11)),R=T||O&&m>=9;function M(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var C=function(t,p){var B=t.className,j=M(p).exec(B);if(j){var G=B.slice(j.index+j[0].length);t.className=B.slice(0,j.index)+(G?j[1]+G:"")}};function S(t){for(var p=t.childNodes.length;p>0;--p)t.removeChild(t.firstChild);return t}function _(t,p){return S(t).appendChild(p)}function A(t,p,B,j){var G=document.createElement(t);if(B&&(G.className=B),j&&(G.style.cssText=j),typeof p=="string")G.appendChild(document.createTextNode(p));else if(p)for(var ne=0;ne=p)return ge+(p-ne);ge+=we-ne,ge+=B-ge%B,ne=we+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};ee.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},ee.prototype.set=function(t,p){this.f=p;var B=+new Date+t;(!this.id||B=p)return j+Math.min(ge,p-G);if(G+=ne-j,G+=B-G%B,j=ne+1,G>=p)return j}}var ue=[""];function le(t){for(;ue.length<=t;)ue.push($(ue)+" ");return ue[t]}function $(t){return t[t.length-1]}function me(t,p){for(var B=[],j=0;j"\x80"&&(t.toUpperCase()!=t.toLowerCase()||se.test(t))}function Q(t,p){return p?p.source.indexOf("\\w")>-1&&te(t)?!0:p.test(t):te(t)}function J(t){for(var p in t)if(t.hasOwnProperty(p)&&t[p])return!1;return!0}var ve=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _e(t){return t.charCodeAt(0)>=768&&ve.test(t)}function Ae(t,p,B){for(;(B<0?p>0:pB?-1:1;;){if(p==B)return p;var G=(p+B)/2,ne=j<0?Math.ceil(G):Math.floor(G);if(ne==p)return t(ne)?p:B;t(ne)?B=ne:p=ne+j}}function tt(t,p,B,j){if(!t)return j(p,B,"ltr",0);for(var G=!1,ne=0;nep||p==B&&ge.to==p)&&(j(Math.max(ge.from,p),Math.min(ge.to,B),ge.level==1?"rtl":"ltr",ne),G=!0)}G||j(p,B,"ltr")}var dt=null;function mt(t,p,B){var j;dt=null;for(var G=0;Gp)return G;ne.to==p&&(ne.from!=ne.to&&B=="before"?j=G:dt=G),ne.from==p&&(ne.from!=ne.to&&B!="before"?j=G:dt=G)}return j!=null?j:dt}var vt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",p="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function B(je){return je<=247?t.charAt(je):1424<=je&&je<=1524?"R":1536<=je&&je<=1785?p.charAt(je-1536):1774<=je&&je<=2220?"r":8192<=je&&je<=8203?"w":je==8204?"b":"L"}var j=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,G=/[stwN]/,ne=/[LRr]/,ge=/[Lb1n]/,we=/[1n]/;function Re(je,gt,At){this.level=je,this.from=gt,this.to=At}return function(je,gt){var At=gt=="ltr"?"L":"R";if(je.length==0||gt=="ltr"&&!j.test(je))return!1;for(var tn=je.length,zt=[],Tn=0;Tn-1&&(j[p]=G.slice(0,ne).concat(G.slice(ne+1)))}}}function bt(t,p){var B=ft(t,p);if(!B.length)return;for(var j=Array.prototype.slice.call(arguments,2),G=0;G0}function Ge(t){t.prototype.on=function(p,B){Ue(this,p,B)},t.prototype.off=function(p,B){jt(this,p,B)}}function Ce(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ie(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Fe(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Be(t){Ce(t),Ie(t)}function We(t){return t.target||t.srcElement}function st(t){var p=t.which;return p==null&&(t.button&1?p=1:t.button&2?p=3:t.button&4&&(p=2)),s&&t.ctrlKey&&p==1&&(p=3),p}var Dt=function(){if(O&&m<9)return!1;var t=A("div");return"draggable"in t||"dragDrop"in t}(),Ht;function rn(t){if(Ht==null){var p=A("span","\u200B");_(t,A("span",[p,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Ht=p.offsetWidth<=1&&p.offsetHeight>2&&!(O&&m<8))}var B=Ht?A("span","\u200B"):A("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return B.setAttribute("cm-text",""),B}var Bt;function Ct(t){if(Bt!=null)return Bt;var p=_(t,document.createTextNode("A\u062EA")),B=L(p,0,1).getBoundingClientRect(),j=L(p,1,2).getBoundingClientRect();return S(t),!B||B.left==B.right?!1:Bt=j.right-B.right<3}var Ke=` b`.split(/\n/).length!=3?function(t){for(var p=0,B=[],j=t.length;p<=j;){var G=t.indexOf(` -`,p);G==-1&&(G=t.length);var ne=t.slice(p,t.charAt(G-1)=="\r"?G-1:G),ge=ne.indexOf("\r");ge!=-1?(B.push(ne.slice(0,ge)),p+=ge+1):(B.push(ne),p=G+1)}return B}:function(t){return t.split(/\r\n?|\n/)},et=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(p){return!1}}:function(t){var p;try{p=t.ownerDocument.selection.createRange()}catch(B){}return!p||p.parentElement()!=t?!1:p.compareEndPoints("StartToEnd",p)!=0},at=function(){var t=A("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Pe=null;function Xe(t){if(Pe!=null)return Pe;var p=_(t,A("span","x")),B=p.getBoundingClientRect(),j=L(p,0,1).getBoundingClientRect();return Pe=Math.abs(B.left-j.left)>1}var ht={},_t={};function Ot(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),ht[t]=p}function Nt(t,p){_t[t]=p}function ut(t){if(typeof t=="string"&&_t.hasOwnProperty(t))t=_t[t];else if(t&&typeof t.name=="string"&&_t.hasOwnProperty(t.name)){var p=_t[t.name];typeof p=="string"&&(p={name:p}),t=Oe(p,t),t.name=p.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return ut("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return ut("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Ft(t,p){p=ut(p);var B=ht[p.name];if(!B)return Ft(t,"text/plain");var j=B(t,p);if(It.hasOwnProperty(p.name)){var G=It[p.name];for(var ne in G){if(!G.hasOwnProperty(ne))continue;j.hasOwnProperty(ne)&&(j["_"+ne]=j[ne]),j[ne]=G[ne]}}if(j.name=p.name,p.helperType&&(j.helperType=p.helperType),p.modeProps)for(var ge in p.modeProps)j[ge]=p.modeProps[ge];return j}var It={};function on(t,p){var B=It.hasOwnProperty(t)?It[t]:It[t]={};I(p,B)}function mn(t,p){if(p===!0)return p;if(t.copyState)return t.copyState(p);var B={};for(var j in p){var G=p[j];G instanceof Array&&(G=G.concat([])),B[j]=G}return B}function Hn(t,p){for(var B;t.innerMode&&!(B=t.innerMode(p),!B||B.mode==t);)p=B.state,t=B.mode;return B||{mode:t,state:p}}function Xn(t,p,B){return t.startState?t.startState(p,B):!0}var Fn=function(t,p,B){this.pos=this.start=0,this.string=t,this.tabSize=p||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=B};Fn.prototype.eol=function(){return this.pos>=this.string.length},Fn.prototype.sol=function(){return this.pos==this.lineStart},Fn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Fn.prototype.next=function(){if(this.posp},Fn.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Fn.prototype.skipToEnd=function(){this.pos=this.string.length},Fn.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},Fn.prototype.backUp=function(t){this.pos-=t},Fn.prototype.column=function(){return this.lastColumnPos0?null:(ne&&p!==!1&&(this.pos+=ne[0].length),ne)}},Fn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Fn.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},Fn.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},Fn.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function xn(t,p){if(p-=t.first,p<0||p>=t.size)throw new Error("There is no line "+(p+t.first)+" in the document.");for(var B=t;!B.lines;)for(var j=0;;++j){var G=B.children[j],ne=G.chunkSize();if(p=t.first&&pB?qt(B,xn(t,B).text.length):q(p,xn(t,p.line).text.length)}function q(t,p){var B=t.ch;return B==null||B>p?qt(t.line,p):B<0?qt(t.line,0):t}function oe(t,p){for(var B=[],j=0;jthis.maxLookAhead&&(this.maxLookAhead=t),p},fe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var p=this.baseTokens[this.baseTokenPos+1];return{type:p&&p.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},fe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fe.fromSaved=function(t,p,B){return p instanceof De?new fe(t,mn(t.mode,p.state),B,p.lookAhead):new fe(t,mn(t.mode,p),B)},fe.prototype.save=function(t){var p=t!==!1?mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new De(p,this.maxLookAhead):p};function ot(t,p,B,j){var G=[t.state.modeGen],ne={};oa(t,p.text,t.doc.mode,B,function(je,gt){return G.push(je,gt)},ne,j);for(var ge=B.state,we=function(je){B.baseTokens=G;var gt=t.state.overlays[je],At=1,tn=0;B.state=!0,oa(t,p.text,gt.mode,B,function(zt,Tn){for(var Bn=At;tnzt&&G.splice(At,1,zt,G[At+1],Zn),At+=2,tn=Math.min(zt,Zn)}if(!Tn)return;if(gt.opaque)G.splice(Bn,At-Bn,zt,"overlay "+Tn),At=Bn+2;else for(;Bnt.options.maxHighlightLength&&mn(t.doc.mode,j.state),ne=ot(t,p,j);G&&(j.state=G),p.stateAfter=j.save(!G),p.styles=ne.styles,ne.classes?p.styleClasses=ne.classes:p.styleClasses&&(p.styleClasses=null),B===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return p.styles}function Mn(t,p,B){var j=t.doc,G=t.display;if(!j.mode.startState)return new fe(j,!0,p);var ne=ir(t,p,B),ge=ne>j.first&&xn(j,ne-1).stateAfter,we=ge?fe.fromSaved(j,ge,ne):new fe(j,Xn(j.mode),ne);return j.iter(ne,p,function(Re){Vn(t,Re.text,we);var je=we.line;Re.stateAfter=je==p-1||je%5==0||je>=G.viewFrom&&jep.start)return ne}throw new Error("Mode "+t.name+" failed to advance stream.")}var pn=function(t,p,B){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=B};function Ar(t,p,B,j){var G=t.doc,ne=G.mode,ge;p=X(G,p);var we=xn(G,p.line),Re=Mn(t,p.line,B),je=new Fn(we.text,t.options.tabSize,Re),gt;for(j&&(gt=[]);(j||je.post.options.maxHighlightLength?(we=!1,ge&&Vn(t,p,j,gt.pos),gt.pos=p.length,At=null):At=ra(gn(B,gt,j.state,tn),ne),tn){var zt=tn[0].name;zt&&(At="m-"+(At?zt+" "+At:zt))}if(!we||je!=At){for(;Rege;--we){if(we<=ne.first)return ne.first;var Re=xn(ne,we-1),je=Re.stateAfter;if(je&&(!B||we+(je instanceof De?je.lookAhead:0)<=ne.modeFrontier))return we;var gt=K(Re.text,null,t.options.tabSize);(G==null||j>gt)&&(G=we-1,j=gt)}return G}function Ra(t,p){if(t.modeFrontier=Math.min(t.modeFrontier,p),t.highlightFrontierB;j--){var G=xn(t,j).stateAfter;if(G&&(!(G instanceof De)||j+G.lookAhead=p:ne.to>p);(j||(j=[])).push(new Ja(ge,ne.from,Re?null:ne.to))}}return j}function ma(t,p,B){var j;if(t)for(var G=0;G=p:ne.to>p);if(we||ne.from==p&&ge.type=="bookmark"&&(!B||ne.marker.insertLeft)){var Re=ne.from==null||(ge.inclusiveLeft?ne.from<=p:ne.from0&&we)for(var Xr=0;Xr0)continue;var gt=[Re,1],At=On(je.from,we.from),tn=On(je.to,we.to);(At<0||!ge.inclusiveLeft&&!At)&>.push({from:je.from,to:we.from}),(tn>0||!ge.inclusiveRight&&!tn)&>.push({from:we.to,to:je.to}),G.splice.apply(G,gt),Re+=gt.length-3}return G}function Rt(t){var p=t.markedSpans;if(!p)return;for(var B=0;Bp)&&(!j||Xt(j,ne.marker)<0)&&(j=ne.marker)}return j}function An(t,p,B,j,G){var ne=xn(t,p),ge=ca&&ne.markedSpans;if(ge)for(var we=0;we=0&&At<=0||gt<=0&&At>=0)continue;if(gt<=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(je.to,B)>=0:On(je.to,B)>0)||gt>=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(je.from,j)<=0:On(je.from,j)<0))return!0}}function an(t){for(var p;p=yn(t);)t=p.find(-1,!0).line;return t}function Pn(t){for(var p;p=vn(t);)t=p.find(1,!0).line;return t}function bn(t){for(var p,B;p=vn(t);)t=p.find(1,!0).line,(B||(B=[])).push(t);return B}function kn(t,p){var B=xn(t,p),j=an(B);return B==j?p:nr(j)}function Rn(t,p){if(p>t.lastLine())return p;var B=xn(t,p),j;if(!Jn(t,B))return p;for(;j=vn(B);)B=j.find(1,!0).line;return nr(B)+1}function Jn(t,p){var B=ca&&p.markedSpans;if(B)for(var j=void 0,G=0;Gp.maxLineLength&&(p.maxLineLength=G,p.maxLine=j)})}var dn=function(t,p,B){this.text=t,wt(this,p),this.height=B?B(this):1};dn.prototype.lineNo=function(){return nr(this)},Ge(dn);function Dn(t,p,B,j){t.text=p,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Rt(t),wt(t,B);var G=j?j(t):1;G!=t.height&&ar(t,G)}function en(t){t.parent=null,Rt(t)}var wn={},_n={};function In(t,p){if(!t||/^\s*$/.test(t))return null;var B=p.addModeClass?_n:wn;return B[t]||(B[t]=t.replace(/\S+/g,"cm-$&"))}function Un(t,p){var B=U("span",null,null,e?"padding-right: .1px":null),j={pre:U("pre",[B],"CodeMirror-line"),content:B,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};p.measure={};for(var G=0;G<=(p.rest?p.rest.length:0);G++){var ne=G?p.rest[G-1]:p.line,ge=void 0;j.pos=0,j.addToken=qn,Ct(t.display.measure)&&(ge=Et(ne,t.doc.direction))&&(j.addToken=Lr(j.addToken,ge)),j.map=[];var we=p!=t.display.externalMeasured&&nr(ne);Dr(ne,j,Qt(t,ne,we)),ne.styleClasses&&(ne.styleClasses.bgClass&&(j.bgClass=D(ne.styleClasses.bgClass,j.bgClass||"")),ne.styleClasses.textClass&&(j.textClass=D(ne.styleClasses.textClass,j.textClass||""))),j.map.length==0&&j.map.push(0,0,j.content.appendChild(rn(t.display.measure))),G==0?(p.measure.map=j.map,p.measure.cache={}):((p.measure.maps||(p.measure.maps=[])).push(j.map),(p.measure.caches||(p.measure.caches=[])).push({}))}if(e){var Re=j.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.querySelector(".cm-tab"))&&(j.content.className="cm-tab-wrap-hack")}return yt(t,"renderLine",t,p.line,j.pre),j.pre.className&&(j.textClass=D(j.pre.className,j.textClass||"")),j}function or(t){var p=A("span","\u2022","cm-invalidchar");return p.title="\\u"+t.charCodeAt(0).toString(16),p.setAttribute("aria-label",p.title),p}function qn(t,p,B,j,G,ne,ge){if(!p)return;var we=t.splitSpaces?Pr(p,t.trailingSpace):p,Re=t.cm.state.specialChars,je=!1,gt;if(!Re.test(p))t.col+=p.length,gt=document.createTextNode(we),t.map.push(t.pos,t.pos+p.length,gt),O&&m<9&&(je=!0),t.pos+=p.length;else{gt=document.createDocumentFragment();for(var At=0;;){Re.lastIndex=At;var tn=Re.exec(p),zt=tn?tn.index-At:p.length-At;if(zt){var Tn=document.createTextNode(we.slice(At,At+zt));O&&m<9?gt.appendChild(A("span",[Tn])):gt.appendChild(Tn),t.map.push(t.pos,t.pos+zt,Tn),t.col+=zt,t.pos+=zt}if(!tn)break;At+=zt+1;var Bn=void 0;if(tn[0]==" "){var Zn=t.cm.options.tabSize,yr=Zn-t.col%Zn;Bn=gt.appendChild(A("span",le(yr),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),t.col+=yr}else tn[0]=="\r"||tn[0]==` -`?(Bn=gt.appendChild(A("span",tn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",tn[0]),t.col+=1):(Bn=t.cm.options.specialCharPlaceholder(tn[0]),Bn.setAttribute("cm-text",tn[0]),O&&m<9?gt.appendChild(A("span",[Bn])):gt.appendChild(Bn),t.col+=1);t.map.push(t.pos,t.pos+1,Bn),t.pos++}}if(t.trailingSpace=we.charCodeAt(p.length-1)==32,B||j||G||je||ne||ge){var Ur=B||"";j&&(Ur+=j),G&&(Ur+=G);var Er=A("span",[gt],Ur,ne);if(ge)for(var Xr in ge)ge.hasOwnProperty(Xr)&&Xr!="style"&&Xr!="class"&&Er.setAttribute(Xr,ge[Xr]);return t.content.appendChild(Er)}t.content.appendChild(gt)}function Pr(t,p){if(t.length>1&&!/ /.test(t))return t;for(var B=p,j="",G=0;Gje&&At.from<=je);tn++);if(At.to>=gt)return t(B,j,G,ne,ge,we,Re);t(B,j.slice(0,At.to-je),G,ne,null,we,Re),ne=null,j=j.slice(At.to-je),je=At.to}}}function Qn(t,p,B,j){var G=!j&&B.widgetNode;G&&t.map.push(t.pos,t.pos+p,G),!j&&t.cm.display.input.needsContentAttribute&&(G||(G=t.content.appendChild(document.createElement("span"))),G.setAttribute("cm-marker",B.id)),G&&(t.cm.display.input.setUneditable(G),t.content.appendChild(G)),t.pos+=p,t.trailingSpace=!1}function Dr(t,p,B){var j=t.markedSpans,G=t.text,ne=0;if(!j){for(var ge=1;geRe||Sa.collapsed&&ea.to==Re&&ea.from==Re)){if(ea.to!=null&&ea.to!=Re&&zt>ea.to&&(zt=ea.to,Bn=""),Sa.className&&(Tn+=" "+Sa.className),Sa.css&&(tn=(tn?tn+";":"")+Sa.css),Sa.startStyle&&ea.from==Re&&(Zn+=" "+Sa.startStyle),Sa.endStyle&&ea.to==zt&&(Xr||(Xr=[])).push(Sa.endStyle,ea.to),Sa.title&&((Ur||(Ur={})).title=Sa.title),Sa.attributes)for(var Va in Sa.attributes)(Ur||(Ur={}))[Va]=Sa.attributes[Va];Sa.collapsed&&(!yr||Xt(yr.marker,Sa)<0)&&(yr=ea)}else ea.from>Re&&zt>ea.from&&(zt=ea.from)}if(Xr)for(var vi=0;vi=we)break;for(var zi=Math.min(we,zt);;){if(gt){var Ui=Re+gt.length;if(!yr){var ci=Ui>zi?gt.slice(0,zi-Re):gt;p.addToken(p,ci,At?At+Tn:Tn,Zn,Re+ci.length==zt?Bn:"",tn,Ur)}if(Ui>=zi){gt=gt.slice(zi-Re),Re=zi;break}Re=Ui,Zn=""}gt=G.slice(ne,ne=B[je++]),At=In(B[je++],p.cm.options)}}}function vr(t,p,B){this.line=p,this.rest=bn(p),this.size=this.rest?nr($(this.rest))-B+1:1,this.node=this.text=null,this.hidden=Jn(t,p)}function zr(t,p,B){for(var j=[],G,ne=p;ne2&&ne.push((Re.bottom+je.top)/2-B.top)}}ne.push(B.bottom-B.top)}}function Le(t,p,B){if(t.line==p)return{map:t.measure.map,cache:t.measure.cache};for(var j=0;jB)return{map:t.measure.maps[G],cache:t.measure.caches[G],before:!0}}function $e(t,p){p=an(p);var B=nr(p),j=t.display.externalMeasured=new vr(t.doc,p,B);j.lineN=B;var G=j.built=Un(t,j);return j.text=G.pre,_(t.display.lineMeasure,G.pre),j}function qe(t,p,B,j){return Mt(t,rt(t,p),B,j)}function pt(t,p){if(p>=t.display.viewFrom&&p=B.lineN&&pp)&&(ne=Re-we,G=ne-1,p>=Re&&(ge="right")),G!=null){if(j=t[je+2],we==Re&&B==(j.insertLeft?"left":"right")&&(ge=B),B=="left"&&G==0)for(;je&&t[je-2]==t[je-3]&&t[je-1].insertLeft;)j=t[(je-=3)+2],ge="left";if(B=="right"&&G==Re-we)for(;je=0&&!((B=t[G]).left!=B.right);G--);return B}function cn(t,p,B,j){var G=fn(p.map,B,j),ne=G.node,ge=G.start,we=G.end,Re=G.collapse,je;if(ne.nodeType==3){for(var gt=0;gt<4;gt++){for(;ge&&_e(p.line.text.charAt(G.coverStart+ge));)--ge;for(;G.coverStart+we0&&(Re=j="right");var At;t.options.lineWrapping&&(At=ne.getClientRects()).length>1?je=At[j=="right"?At.length-1:0]:je=ne.getBoundingClientRect()}if(O&&m<9&&!ge&&(!je||!je.left&&!je.right)){var tn=ne.parentNode.getClientRects()[0];tn?je={left:tn.left,right:tn.left+Ir(t.display),top:tn.top,bottom:tn.bottom}:je=Vt}for(var zt=je.top-p.rect.top,Tn=je.bottom-p.rect.top,Bn=(zt+Tn)/2,Zn=p.view.measure.heights,yr=0;yr=j.text.length?(Re=j.text.length,je="before"):Re<=0&&(Re=0,je="after"),!we)return ge(je=="before"?Re-1:Re,je=="before");function gt(Tn,Bn,Zn){var yr=we[Bn],Ur=yr.level==1;return ge(Zn?Tn-1:Tn,Ur!=Zn)}var At=mt(we,Re,je),tn=dt,zt=gt(Re,At,je=="before");return tn!=null&&(zt.other=gt(Re,tn,je!="before")),zt}function En(t,p){var B=0;p=X(t.doc,p),t.options.lineWrapping||(B=Ir(t.display)*p.ch);var j=xn(t.doc,p.line),G=Br(j)+_a(t.display);return{left:B,right:B,top:G,bottom:G+j.height}}function jn(t,p,B,j,G){var ne=qt(t,p,B);return ne.xRel=G,j&&(ne.outside=j),ne}function Vr(t,p,B){var j=t.doc;if(B+=t.display.viewOffset,B<0)return jn(j.first,0,null,-1,-1);var G=Rr(j,B),ne=j.first+j.size-1;if(G>ne)return jn(j.first+j.size-1,xn(j,ne).text.length,null,1,1);p<0&&(p=0);for(var ge=xn(j,G);;){var we=xa(t,ge,G,p,B),Re=Nn(ge,we.ch+(we.xRel>0||we.outside>0?1:0));if(!Re)return we;var je=Re.find(1);if(je.line==G)return je;ge=xn(j,G=je.line)}}function ua(t,p,B,j){j-=Wr(p);var G=p.text.length,ne=Qe(function(ge){return Mt(t,B,ge-1).bottom<=j},G,0);return G=Qe(function(ge){return Mt(t,B,ge).top>j},ne,G),{begin:ne,end:G}}function hr(t,p,B,j){B||(B=rt(t,p));var G=ta(t,p,Mt(t,B,j),"line").top;return ua(t,p,B,G)}function aa(t,p,B,j){return t.bottom<=B?!1:t.top>B?!0:(j?t.left:t.right)>p}function xa(t,p,B,j,G){G-=Br(p);var ne=rt(t,p),ge=Wr(p),we=0,Re=p.text.length,je=!0,gt=Et(p,t.doc.direction);if(gt){var At=(t.options.lineWrapping?Ca:ha)(t,p,B,ne,gt,j,G);je=At.level!=1,we=je?At.from:At.to-1,Re=je?At.to:At.from-1}var tn=null,zt=null,Tn=Qe(function(ia){var ea=Mt(t,ne,ia);return ea.top+=ge,ea.bottom+=ge,aa(ea,j,G,!1)?(ea.top<=G&&ea.left<=j&&(tn=ia,zt=ea),!0):!1},we,Re),Bn,Zn,yr=!1;if(zt){var Ur=j-zt.left=Xr.bottom?1:0}return Tn=Ae(p.text,Tn,1),jn(B,Tn,Zn,yr,j-Bn)}function ha(t,p,B,j,G,ne,ge){var we=Qe(function(At){var tn=G[At],zt=tn.level!=1;return aa(Gn(t,qt(B,zt?tn.to:tn.from,zt?"before":"after"),"line",p,j),ne,ge,!0)},0,G.length-1),Re=G[we];if(we>0){var je=Re.level!=1,gt=Gn(t,qt(B,je?Re.from:Re.to,je?"after":"before"),"line",p,j);aa(gt,ne,ge,!0)&>.top>ge&&(Re=G[we-1])}return Re}function Ca(t,p,B,j,G,ne,ge){var we=ua(t,p,j,ge),Re=we.begin,je=we.end;/\s/.test(p.text.charAt(je-1))&&je--;for(var gt=null,At=null,tn=0;tn=je||zt.to<=Re)continue;var Tn=zt.level!=1,Bn=Mt(t,j,Tn?Math.min(je,zt.to)-1:Math.max(Re,zt.from)).right,Zn=BnZn)&&(gt=zt,At=Zn)}return gt||(gt=G[G.length-1]),gt.fromje&&(gt={from:gt.from,to:je,level:gt.level}),gt}var Tr;function br(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Tr==null){Tr=A("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Tr.appendChild(document.createTextNode("x")),Tr.appendChild(A("br"));Tr.appendChild(document.createTextNode("x"))}_(t.measure,Tr);var B=Tr.offsetHeight/50;return B>3&&(t.cachedTextHeight=B),S(t.measure),B||1}function Ir(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var p=A("span","xxxxxxxxxx"),B=A("pre",[p],"CodeMirror-line-like");_(t.measure,B);var j=p.getBoundingClientRect(),G=(j.right-j.left)/10;return G>2&&(t.cachedCharWidth=G),G||10}function er(t){for(var p=t.display,B={},j={},G=p.gutters.clientLeft,ne=p.gutters.firstChild,ge=0;ne;ne=ne.nextSibling,++ge){var we=t.display.gutterSpecs[ge].className;B[we]=ne.offsetLeft+ne.clientLeft+G,j[we]=ne.clientWidth}return{fixedPos:pa(p),gutterTotalWidth:p.gutters.offsetWidth,gutterLeft:B,gutterWidth:j,wrapperWidth:p.wrapper.clientWidth}}function pa(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Ea(t){var p=br(t.display),B=t.options.lineWrapping,j=B&&Math.max(5,t.display.scroller.clientWidth/Ir(t.display)-3);return function(G){if(Jn(t.doc,G))return 0;var ne=0;if(G.widgets)for(var ge=0;ge0&&(je=xn(t.doc,Re.line).text).length==Re.ch){var gt=K(je,je.length,t.options.tabSize)-je.length;Re=qt(Re.line,Math.max(0,Math.round((ne-ct(t.display).left)/Ir(t.display))-gt))}return Re}function ga(t,p){if(p>=t.display.viewTo)return null;if(p-=t.display.viewFrom,p<0)return null;for(var B=t.display.view,j=0;jp)&&(G.updateLineNumbers=p),t.curOp.viewChanged=!0,p>=G.viewTo)ca&&kn(t.doc,p)G.viewFrom?Fa(t):(G.viewFrom+=j,G.viewTo+=j);else if(p<=G.viewFrom&&B>=G.viewTo)Fa(t);else if(p<=G.viewFrom){var ne=ni(t,B,B+j,1);ne?(G.view=G.view.slice(ne.index),G.viewFrom=ne.lineN,G.viewTo+=j):Fa(t)}else if(B>=G.viewTo){var ge=ni(t,p,p,-1);ge?(G.view=G.view.slice(0,ge.index),G.viewTo=ge.lineN):Fa(t)}else{var we=ni(t,p,p,-1),Re=ni(t,B,B+j,1);we&&Re?(G.view=G.view.slice(0,we.index).concat(zr(t,we.lineN,Re.lineN)).concat(G.view.slice(Re.index)),G.viewTo+=j):Fa(t)}var je=G.externalMeasured;je&&(B=G.lineN&&p=j.viewTo)return;var ne=j.view[ga(t,p)];if(ne.node==null)return;var ge=ne.changes||(ne.changes=[]);he(ge,B)==-1&&ge.push(B)}function Fa(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ni(t,p,B,j){var G=ga(t,p),ne,ge=t.display.view;if(!ca||B==t.doc.first+t.doc.size)return{index:G,lineN:B};for(var we=t.display.viewFrom,Re=0;Re0){if(G==ge.length-1)return null;ne=we+ge[G].size-p,G++}else ne=we-p;p+=ne,B+=ne}for(;kn(t.doc,B)!=B;){if(G==(j<0?0:ge.length-1))return null;B+=j*ge[G-(j<0?1:0)].size,G+=j}return{index:G,lineN:B}}function Fi(t,p,B){var j=t.display,G=j.view;G.length==0||p>=j.viewTo||B<=j.viewFrom?(j.view=zr(t,p,B),j.viewFrom=p):(j.viewFrom>p?j.view=zr(t,p,j.viewFrom).concat(j.view):j.viewFromB&&(j.view=j.view.slice(0,ga(t,B)))),j.viewTo=B}function Ai(t){for(var p=t.display.view,B=0,j=0;j=t.display.viewTo||we.to().line1}var ht={},Et={};function Ot(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),ht[t]=p}function Mt(t,p){Et[t]=p}function lt(t){if(typeof t=="string"&&Et.hasOwnProperty(t))t=Et[t];else if(t&&typeof t.name=="string"&&Et.hasOwnProperty(t.name)){var p=Et[t.name];typeof p=="string"&&(p={name:p}),t=Oe(p,t),t.name=p.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return lt("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return lt("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Ft(t,p){p=lt(p);var B=ht[p.name];if(!B)return Ft(t,"text/plain");var j=B(t,p);if(Lt.hasOwnProperty(p.name)){var G=Lt[p.name];for(var ne in G){if(!G.hasOwnProperty(ne))continue;j.hasOwnProperty(ne)&&(j["_"+ne]=j[ne]),j[ne]=G[ne]}}if(j.name=p.name,p.helperType&&(j.helperType=p.helperType),p.modeProps)for(var ge in p.modeProps)j[ge]=p.modeProps[ge];return j}var Lt={};function on(t,p){var B=Lt.hasOwnProperty(t)?Lt[t]:Lt[t]={};I(p,B)}function mn(t,p){if(p===!0)return p;if(t.copyState)return t.copyState(p);var B={};for(var j in p){var G=p[j];G instanceof Array&&(G=G.concat([])),B[j]=G}return B}function Hn(t,p){for(var B;t.innerMode&&!(B=t.innerMode(p),!B||B.mode==t);)p=B.state,t=B.mode;return B||{mode:t,state:p}}function Xn(t,p,B){return t.startState?t.startState(p,B):!0}var Fn=function(t,p,B){this.pos=this.start=0,this.string=t,this.tabSize=p||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=B};Fn.prototype.eol=function(){return this.pos>=this.string.length},Fn.prototype.sol=function(){return this.pos==this.lineStart},Fn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Fn.prototype.next=function(){if(this.posp},Fn.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Fn.prototype.skipToEnd=function(){this.pos=this.string.length},Fn.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},Fn.prototype.backUp=function(t){this.pos-=t},Fn.prototype.column=function(){return this.lastColumnPos0?null:(ne&&p!==!1&&(this.pos+=ne[0].length),ne)}},Fn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Fn.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},Fn.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},Fn.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function xn(t,p){if(p-=t.first,p<0||p>=t.size)throw new Error("There is no line "+(p+t.first)+" in the document.");for(var B=t;!B.lines;)for(var j=0;;++j){var G=B.children[j],ne=G.chunkSize();if(p=t.first&&pB?qt(B,xn(t,B).text.length):q(p,xn(t,p.line).text.length)}function q(t,p){var B=t.ch;return B==null||B>p?qt(t.line,p):B<0?qt(t.line,0):t}function oe(t,p){for(var B=[],j=0;jthis.maxLookAhead&&(this.maxLookAhead=t),p},fe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var p=this.baseTokens[this.baseTokenPos+1];return{type:p&&p.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},fe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fe.fromSaved=function(t,p,B){return p instanceof De?new fe(t,mn(t.mode,p.state),B,p.lookAhead):new fe(t,mn(t.mode,p),B)},fe.prototype.save=function(t){var p=t!==!1?mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new De(p,this.maxLookAhead):p};function ot(t,p,B,j){var G=[t.state.modeGen],ne={};oa(t,p.text,t.doc.mode,B,function(je,gt){return G.push(je,gt)},ne,j);for(var ge=B.state,we=function(je){B.baseTokens=G;var gt=t.state.overlays[je],At=1,tn=0;B.state=!0,oa(t,p.text,gt.mode,B,function(zt,Tn){for(var Bn=At;tnzt&&G.splice(At,1,zt,G[At+1],Zn),At+=2,tn=Math.min(zt,Zn)}if(!Tn)return;if(gt.opaque)G.splice(Bn,At-Bn,zt,"overlay "+Tn),At=Bn+2;else for(;Bnt.options.maxHighlightLength&&mn(t.doc.mode,j.state),ne=ot(t,p,j);G&&(j.state=G),p.stateAfter=j.save(!G),p.styles=ne.styles,ne.classes?p.styleClasses=ne.classes:p.styleClasses&&(p.styleClasses=null),B===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return p.styles}function Mn(t,p,B){var j=t.doc,G=t.display;if(!j.mode.startState)return new fe(j,!0,p);var ne=ir(t,p,B),ge=ne>j.first&&xn(j,ne-1).stateAfter,we=ge?fe.fromSaved(j,ge,ne):new fe(j,Xn(j.mode),ne);return j.iter(ne,p,function(Re){Vn(t,Re.text,we);var je=we.line;Re.stateAfter=je==p-1||je%5==0||je>=G.viewFrom&&jep.start)return ne}throw new Error("Mode "+t.name+" failed to advance stream.")}var pn=function(t,p,B){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=B};function Ar(t,p,B,j){var G=t.doc,ne=G.mode,ge;p=X(G,p);var we=xn(G,p.line),Re=Mn(t,p.line,B),je=new Fn(we.text,t.options.tabSize,Re),gt;for(j&&(gt=[]);(j||je.post.options.maxHighlightLength?(we=!1,ge&&Vn(t,p,j,gt.pos),gt.pos=p.length,At=null):At=ra(gn(B,gt,j.state,tn),ne),tn){var zt=tn[0].name;zt&&(At="m-"+(At?zt+" "+At:zt))}if(!we||je!=At){for(;Rege;--we){if(we<=ne.first)return ne.first;var Re=xn(ne,we-1),je=Re.stateAfter;if(je&&(!B||we+(je instanceof De?je.lookAhead:0)<=ne.modeFrontier))return we;var gt=K(Re.text,null,t.options.tabSize);(G==null||j>gt)&&(G=we-1,j=gt)}return G}function Ra(t,p){if(t.modeFrontier=Math.min(t.modeFrontier,p),t.highlightFrontierB;j--){var G=xn(t,j).stateAfter;if(G&&(!(G instanceof De)||j+G.lookAhead=p:ne.to>p);(j||(j=[])).push(new Ja(ge,ne.from,Re?null:ne.to))}}return j}function ma(t,p,B){var j;if(t)for(var G=0;G=p:ne.to>p);if(we||ne.from==p&&ge.type=="bookmark"&&(!B||ne.marker.insertLeft)){var Re=ne.from==null||(ge.inclusiveLeft?ne.from<=p:ne.from0&&we)for(var Xr=0;Xr0)continue;var gt=[Re,1],At=On(je.from,we.from),tn=On(je.to,we.to);(At<0||!ge.inclusiveLeft&&!At)&>.push({from:je.from,to:we.from}),(tn>0||!ge.inclusiveRight&&!tn)&>.push({from:we.to,to:je.to}),G.splice.apply(G,gt),Re+=gt.length-3}return G}function Rt(t){var p=t.markedSpans;if(!p)return;for(var B=0;Bp)&&(!j||Xt(j,ne.marker)<0)&&(j=ne.marker)}return j}function An(t,p,B,j,G){var ne=xn(t,p),ge=ca&&ne.markedSpans;if(ge)for(var we=0;we=0&&At<=0||gt<=0&&At>=0)continue;if(gt<=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(je.to,B)>=0:On(je.to,B)>0)||gt>=0&&(Re.marker.inclusiveRight&&G.inclusiveLeft?On(je.from,j)<=0:On(je.from,j)<0))return!0}}function an(t){for(var p;p=yn(t);)t=p.find(-1,!0).line;return t}function Pn(t){for(var p;p=vn(t);)t=p.find(1,!0).line;return t}function bn(t){for(var p,B;p=vn(t);)t=p.find(1,!0).line,(B||(B=[])).push(t);return B}function kn(t,p){var B=xn(t,p),j=an(B);return B==j?p:nr(j)}function Rn(t,p){if(p>t.lastLine())return p;var B=xn(t,p),j;if(!Jn(t,B))return p;for(;j=vn(B);)B=j.find(1,!0).line;return nr(B)+1}function Jn(t,p){var B=ca&&p.markedSpans;if(B)for(var j=void 0,G=0;Gp.maxLineLength&&(p.maxLineLength=G,p.maxLine=j)})}var dn=function(t,p,B){this.text=t,wt(this,p),this.height=B?B(this):1};dn.prototype.lineNo=function(){return nr(this)},Ge(dn);function Dn(t,p,B,j){t.text=p,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Rt(t),wt(t,B);var G=j?j(t):1;G!=t.height&&ar(t,G)}function en(t){t.parent=null,Rt(t)}var wn={},_n={};function In(t,p){if(!t||/^\s*$/.test(t))return null;var B=p.addModeClass?_n:wn;return B[t]||(B[t]=t.replace(/\S+/g,"cm-$&"))}function Un(t,p){var B=U("span",null,null,e?"padding-right: .1px":null),j={pre:U("pre",[B],"CodeMirror-line"),content:B,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};p.measure={};for(var G=0;G<=(p.rest?p.rest.length:0);G++){var ne=G?p.rest[G-1]:p.line,ge=void 0;j.pos=0,j.addToken=qn,Ct(t.display.measure)&&(ge=yt(ne,t.doc.direction))&&(j.addToken=Lr(j.addToken,ge)),j.map=[];var we=p!=t.display.externalMeasured&&nr(ne);Dr(ne,j,Qt(t,ne,we)),ne.styleClasses&&(ne.styleClasses.bgClass&&(j.bgClass=D(ne.styleClasses.bgClass,j.bgClass||"")),ne.styleClasses.textClass&&(j.textClass=D(ne.styleClasses.textClass,j.textClass||""))),j.map.length==0&&j.map.push(0,0,j.content.appendChild(rn(t.display.measure))),G==0?(p.measure.map=j.map,p.measure.cache={}):((p.measure.maps||(p.measure.maps=[])).push(j.map),(p.measure.caches||(p.measure.caches=[])).push({}))}if(e){var Re=j.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.querySelector(".cm-tab"))&&(j.content.className="cm-tab-wrap-hack")}return bt(t,"renderLine",t,p.line,j.pre),j.pre.className&&(j.textClass=D(j.pre.className,j.textClass||"")),j}function or(t){var p=A("span","\u2022","cm-invalidchar");return p.title="\\u"+t.charCodeAt(0).toString(16),p.setAttribute("aria-label",p.title),p}function qn(t,p,B,j,G,ne,ge){if(!p)return;var we=t.splitSpaces?Pr(p,t.trailingSpace):p,Re=t.cm.state.specialChars,je=!1,gt;if(!Re.test(p))t.col+=p.length,gt=document.createTextNode(we),t.map.push(t.pos,t.pos+p.length,gt),O&&m<9&&(je=!0),t.pos+=p.length;else{gt=document.createDocumentFragment();for(var At=0;;){Re.lastIndex=At;var tn=Re.exec(p),zt=tn?tn.index-At:p.length-At;if(zt){var Tn=document.createTextNode(we.slice(At,At+zt));O&&m<9?gt.appendChild(A("span",[Tn])):gt.appendChild(Tn),t.map.push(t.pos,t.pos+zt,Tn),t.col+=zt,t.pos+=zt}if(!tn)break;At+=zt+1;var Bn=void 0;if(tn[0]==" "){var Zn=t.cm.options.tabSize,yr=Zn-t.col%Zn;Bn=gt.appendChild(A("span",le(yr),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),t.col+=yr}else tn[0]=="\r"||tn[0]==` +`?(Bn=gt.appendChild(A("span",tn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",tn[0]),t.col+=1):(Bn=t.cm.options.specialCharPlaceholder(tn[0]),Bn.setAttribute("cm-text",tn[0]),O&&m<9?gt.appendChild(A("span",[Bn])):gt.appendChild(Bn),t.col+=1);t.map.push(t.pos,t.pos+1,Bn),t.pos++}}if(t.trailingSpace=we.charCodeAt(p.length-1)==32,B||j||G||je||ne||ge){var Ur=B||"";j&&(Ur+=j),G&&(Ur+=G);var Er=A("span",[gt],Ur,ne);if(ge)for(var Xr in ge)ge.hasOwnProperty(Xr)&&Xr!="style"&&Xr!="class"&&Er.setAttribute(Xr,ge[Xr]);return t.content.appendChild(Er)}t.content.appendChild(gt)}function Pr(t,p){if(t.length>1&&!/ /.test(t))return t;for(var B=p,j="",G=0;Gje&&At.from<=je);tn++);if(At.to>=gt)return t(B,j,G,ne,ge,we,Re);t(B,j.slice(0,At.to-je),G,ne,null,we,Re),ne=null,j=j.slice(At.to-je),je=At.to}}}function Qn(t,p,B,j){var G=!j&&B.widgetNode;G&&t.map.push(t.pos,t.pos+p,G),!j&&t.cm.display.input.needsContentAttribute&&(G||(G=t.content.appendChild(document.createElement("span"))),G.setAttribute("cm-marker",B.id)),G&&(t.cm.display.input.setUneditable(G),t.content.appendChild(G)),t.pos+=p,t.trailingSpace=!1}function Dr(t,p,B){var j=t.markedSpans,G=t.text,ne=0;if(!j){for(var ge=1;geRe||Sa.collapsed&&ea.to==Re&&ea.from==Re)){if(ea.to!=null&&ea.to!=Re&&zt>ea.to&&(zt=ea.to,Bn=""),Sa.className&&(Tn+=" "+Sa.className),Sa.css&&(tn=(tn?tn+";":"")+Sa.css),Sa.startStyle&&ea.from==Re&&(Zn+=" "+Sa.startStyle),Sa.endStyle&&ea.to==zt&&(Xr||(Xr=[])).push(Sa.endStyle,ea.to),Sa.title&&((Ur||(Ur={})).title=Sa.title),Sa.attributes)for(var Va in Sa.attributes)(Ur||(Ur={}))[Va]=Sa.attributes[Va];Sa.collapsed&&(!yr||Xt(yr.marker,Sa)<0)&&(yr=ea)}else ea.from>Re&&zt>ea.from&&(zt=ea.from)}if(Xr)for(var vi=0;vi=we)break;for(var zi=Math.min(we,zt);;){if(gt){var Ui=Re+gt.length;if(!yr){var ci=Ui>zi?gt.slice(0,zi-Re):gt;p.addToken(p,ci,At?At+Tn:Tn,Zn,Re+ci.length==zt?Bn:"",tn,Ur)}if(Ui>=zi){gt=gt.slice(zi-Re),Re=zi;break}Re=Ui,Zn=""}gt=G.slice(ne,ne=B[je++]),At=In(B[je++],p.cm.options)}}}function vr(t,p,B){this.line=p,this.rest=bn(p),this.size=this.rest?nr($(this.rest))-B+1:1,this.node=this.text=null,this.hidden=Jn(t,p)}function zr(t,p,B){for(var j=[],G,ne=p;ne2&&ne.push((Re.bottom+je.top)/2-B.top)}}ne.push(B.bottom-B.top)}}function Le(t,p,B){if(t.line==p)return{map:t.measure.map,cache:t.measure.cache};for(var j=0;jB)return{map:t.measure.maps[G],cache:t.measure.caches[G],before:!0}}function $e(t,p){p=an(p);var B=nr(p),j=t.display.externalMeasured=new vr(t.doc,p,B);j.lineN=B;var G=j.built=Un(t,j);return j.text=G.pre,_(t.display.lineMeasure,G.pre),j}function qe(t,p,B,j){return It(t,rt(t,p),B,j)}function pt(t,p){if(p>=t.display.viewFrom&&p=B.lineN&&pp)&&(ne=Re-we,G=ne-1,p>=Re&&(ge="right")),G!=null){if(j=t[je+2],we==Re&&B==(j.insertLeft?"left":"right")&&(ge=B),B=="left"&&G==0)for(;je&&t[je-2]==t[je-3]&&t[je-1].insertLeft;)j=t[(je-=3)+2],ge="left";if(B=="right"&&G==Re-we)for(;je=0&&!((B=t[G]).left!=B.right);G--);return B}function cn(t,p,B,j){var G=fn(p.map,B,j),ne=G.node,ge=G.start,we=G.end,Re=G.collapse,je;if(ne.nodeType==3){for(var gt=0;gt<4;gt++){for(;ge&&_e(p.line.text.charAt(G.coverStart+ge));)--ge;for(;G.coverStart+we0&&(Re=j="right");var At;t.options.lineWrapping&&(At=ne.getClientRects()).length>1?je=At[j=="right"?At.length-1:0]:je=ne.getBoundingClientRect()}if(O&&m<9&&!ge&&(!je||!je.left&&!je.right)){var tn=ne.parentNode.getClientRects()[0];tn?je={left:tn.left,right:tn.left+Ir(t.display),top:tn.top,bottom:tn.bottom}:je=Vt}for(var zt=je.top-p.rect.top,Tn=je.bottom-p.rect.top,Bn=(zt+Tn)/2,Zn=p.view.measure.heights,yr=0;yr=j.text.length?(Re=j.text.length,je="before"):Re<=0&&(Re=0,je="after"),!we)return ge(je=="before"?Re-1:Re,je=="before");function gt(Tn,Bn,Zn){var yr=we[Bn],Ur=yr.level==1;return ge(Zn?Tn-1:Tn,Ur!=Zn)}var At=mt(we,Re,je),tn=dt,zt=gt(Re,At,je=="before");return tn!=null&&(zt.other=gt(Re,tn,je!="before")),zt}function En(t,p){var B=0;p=X(t.doc,p),t.options.lineWrapping||(B=Ir(t.display)*p.ch);var j=xn(t.doc,p.line),G=Br(j)+_a(t.display);return{left:B,right:B,top:G,bottom:G+j.height}}function jn(t,p,B,j,G){var ne=qt(t,p,B);return ne.xRel=G,j&&(ne.outside=j),ne}function Vr(t,p,B){var j=t.doc;if(B+=t.display.viewOffset,B<0)return jn(j.first,0,null,-1,-1);var G=Rr(j,B),ne=j.first+j.size-1;if(G>ne)return jn(j.first+j.size-1,xn(j,ne).text.length,null,1,1);p<0&&(p=0);for(var ge=xn(j,G);;){var we=xa(t,ge,G,p,B),Re=Nn(ge,we.ch+(we.xRel>0||we.outside>0?1:0));if(!Re)return we;var je=Re.find(1);if(je.line==G)return je;ge=xn(j,G=je.line)}}function ua(t,p,B,j){j-=Wr(p);var G=p.text.length,ne=Qe(function(ge){return It(t,B,ge-1).bottom<=j},G,0);return G=Qe(function(ge){return It(t,B,ge).top>j},ne,G),{begin:ne,end:G}}function hr(t,p,B,j){B||(B=rt(t,p));var G=ta(t,p,It(t,B,j),"line").top;return ua(t,p,B,G)}function aa(t,p,B,j){return t.bottom<=B?!1:t.top>B?!0:(j?t.left:t.right)>p}function xa(t,p,B,j,G){G-=Br(p);var ne=rt(t,p),ge=Wr(p),we=0,Re=p.text.length,je=!0,gt=yt(p,t.doc.direction);if(gt){var At=(t.options.lineWrapping?Ca:ha)(t,p,B,ne,gt,j,G);je=At.level!=1,we=je?At.from:At.to-1,Re=je?At.to:At.from-1}var tn=null,zt=null,Tn=Qe(function(ia){var ea=It(t,ne,ia);return ea.top+=ge,ea.bottom+=ge,aa(ea,j,G,!1)?(ea.top<=G&&ea.left<=j&&(tn=ia,zt=ea),!0):!1},we,Re),Bn,Zn,yr=!1;if(zt){var Ur=j-zt.left=Xr.bottom?1:0}return Tn=Ae(p.text,Tn,1),jn(B,Tn,Zn,yr,j-Bn)}function ha(t,p,B,j,G,ne,ge){var we=Qe(function(At){var tn=G[At],zt=tn.level!=1;return aa(Gn(t,qt(B,zt?tn.to:tn.from,zt?"before":"after"),"line",p,j),ne,ge,!0)},0,G.length-1),Re=G[we];if(we>0){var je=Re.level!=1,gt=Gn(t,qt(B,je?Re.from:Re.to,je?"after":"before"),"line",p,j);aa(gt,ne,ge,!0)&>.top>ge&&(Re=G[we-1])}return Re}function Ca(t,p,B,j,G,ne,ge){var we=ua(t,p,j,ge),Re=we.begin,je=we.end;/\s/.test(p.text.charAt(je-1))&&je--;for(var gt=null,At=null,tn=0;tn=je||zt.to<=Re)continue;var Tn=zt.level!=1,Bn=It(t,j,Tn?Math.min(je,zt.to)-1:Math.max(Re,zt.from)).right,Zn=BnZn)&&(gt=zt,At=Zn)}return gt||(gt=G[G.length-1]),gt.fromje&&(gt={from:gt.from,to:je,level:gt.level}),gt}var Tr;function br(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Tr==null){Tr=A("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Tr.appendChild(document.createTextNode("x")),Tr.appendChild(A("br"));Tr.appendChild(document.createTextNode("x"))}_(t.measure,Tr);var B=Tr.offsetHeight/50;return B>3&&(t.cachedTextHeight=B),S(t.measure),B||1}function Ir(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var p=A("span","xxxxxxxxxx"),B=A("pre",[p],"CodeMirror-line-like");_(t.measure,B);var j=p.getBoundingClientRect(),G=(j.right-j.left)/10;return G>2&&(t.cachedCharWidth=G),G||10}function er(t){for(var p=t.display,B={},j={},G=p.gutters.clientLeft,ne=p.gutters.firstChild,ge=0;ne;ne=ne.nextSibling,++ge){var we=t.display.gutterSpecs[ge].className;B[we]=ne.offsetLeft+ne.clientLeft+G,j[we]=ne.clientWidth}return{fixedPos:pa(p),gutterTotalWidth:p.gutters.offsetWidth,gutterLeft:B,gutterWidth:j,wrapperWidth:p.wrapper.clientWidth}}function pa(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Ea(t){var p=br(t.display),B=t.options.lineWrapping,j=B&&Math.max(5,t.display.scroller.clientWidth/Ir(t.display)-3);return function(G){if(Jn(t.doc,G))return 0;var ne=0;if(G.widgets)for(var ge=0;ge0&&(je=xn(t.doc,Re.line).text).length==Re.ch){var gt=K(je,je.length,t.options.tabSize)-je.length;Re=qt(Re.line,Math.max(0,Math.round((ne-ct(t.display).left)/Ir(t.display))-gt))}return Re}function ga(t,p){if(p>=t.display.viewTo)return null;if(p-=t.display.viewFrom,p<0)return null;for(var B=t.display.view,j=0;jp)&&(G.updateLineNumbers=p),t.curOp.viewChanged=!0,p>=G.viewTo)ca&&kn(t.doc,p)G.viewFrom?Fa(t):(G.viewFrom+=j,G.viewTo+=j);else if(p<=G.viewFrom&&B>=G.viewTo)Fa(t);else if(p<=G.viewFrom){var ne=ni(t,B,B+j,1);ne?(G.view=G.view.slice(ne.index),G.viewFrom=ne.lineN,G.viewTo+=j):Fa(t)}else if(B>=G.viewTo){var ge=ni(t,p,p,-1);ge?(G.view=G.view.slice(0,ge.index),G.viewTo=ge.lineN):Fa(t)}else{var we=ni(t,p,p,-1),Re=ni(t,B,B+j,1);we&&Re?(G.view=G.view.slice(0,we.index).concat(zr(t,we.lineN,Re.lineN)).concat(G.view.slice(Re.index)),G.viewTo+=j):Fa(t)}var je=G.externalMeasured;je&&(B=G.lineN&&p=j.viewTo)return;var ne=j.view[ga(t,p)];if(ne.node==null)return;var ge=ne.changes||(ne.changes=[]);he(ge,B)==-1&&ge.push(B)}function Fa(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ni(t,p,B,j){var G=ga(t,p),ne,ge=t.display.view;if(!ca||B==t.doc.first+t.doc.size)return{index:G,lineN:B};for(var we=t.display.viewFrom,Re=0;Re0){if(G==ge.length-1)return null;ne=we+ge[G].size-p,G++}else ne=we-p;p+=ne,B+=ne}for(;kn(t.doc,B)!=B;){if(G==(j<0?0:ge.length-1))return null;B+=j*ge[G-(j<0?1:0)].size,G+=j}return{index:G,lineN:B}}function Fi(t,p,B){var j=t.display,G=j.view;G.length==0||p>=j.viewTo||B<=j.viewFrom?(j.view=zr(t,p,B),j.viewFrom=p):(j.viewFrom>p?j.view=zr(t,p,j.viewFrom).concat(j.view):j.viewFromB&&(j.view=j.view.slice(0,ga(t,B)))),j.viewTo=B}function Ai(t){for(var p=t.display.view,B=0,j=0;j=t.display.viewTo||we.to().line0?p.blinker=setInterval(function(){t.hasFocus()||no(t),p.cursorDiv.style.visibility=(B=!B)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(p.cursorDiv.style.visibility="hidden")}function to(t){t.state.focused||(t.display.input.focus(),Ii(t))}function Mo(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,no(t))},100)}function Ii(t,p){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(yt(t,"focus",t,p),t.state.focused=!0,H(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),e&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Za(t)}function no(t,p){if(t.state.delayingBlurEvent)return;t.state.focused&&(yt(t,"blur",t,p),t.state.focused=!1,C(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150)}function ro(t){for(var p=t.display,B=p.lineDiv.offsetTop,j=0;j.005||gt<-.005)&&(ar(G.line,ge),mi(G.line),G.rest))for(var At=0;Att.display.sizerWidth){var tn=Math.ceil(we/Ir(t.display));tn>t.display.maxLineLength&&(t.display.maxLineLength=tn,t.display.maxLine=G.line,t.display.maxLineChanged=!0)}}}function mi(t){if(t.widgets)for(var p=0;p=ge&&(ne=Rr(p,Br(xn(p,Re))-t.wrapper.clientHeight),ge=Re)}return{from:ne,to:Math.max(ge,ne+1)}}function Io(t,p){if(Pt(t,"scrollCursorIntoView"))return;var B=t.display,j=B.sizer.getBoundingClientRect(),G=null;if(p.top+j.top<0?G=!0:p.bottom+j.top>(window.innerHeight||document.documentElement.clientHeight)&&(G=!1),G!=null&&!n){var ne=A("div","\u200B",null,`position: absolute; + height: `+(ea-Xr)+"px"))}function At(Er,Xr,ia){var ea=xn(G,Er),Sa=ea.text.length,Va,vi;function ti(ci,ji){return wr(t,qt(Er,ci),"div",ea,ji)}function zi(ci,ji,Ci){var pi=hr(t,ea,null,ci),di=ji=="ltr"==(Ci=="after")?"left":"right",ii=Ci=="after"?pi.begin:pi.end-(/\s/.test(ea.text.charAt(pi.end-1))?2:1);return ti(ii,di)[di]}var Ui=yt(ea,G.direction);return tt(Ui,Xr||0,ia==null?Sa:ia,function(ci,ji,Ci,pi){var di=Ci=="ltr",ii=ti(ci,di?"left":"right"),Bi=ti(ji-1,di?"right":"left"),Ts=Xr==null&&ci==0,es=ia==null&&ji==Sa,Oi=pi==0,Po=!Ui||pi==Ui.length-1;if(Bi.top-ii.top<=3){var _i=(je?Ts:es)&&Oi,ru=(je?es:Ts)&&Po,Fo=_i?we:(di?ii:Bi).left,ds=ru?Re:(di?Bi:ii).right;gt(Fo,ii.top,ds-Fo,ii.bottom)}else{var fs,Mi,Os,au;di?(fs=je&&Ts&&Oi?we:ii.left,Mi=je?Re:zi(ci,Ci,"before"),Os=je?we:zi(ji,Ci,"after"),au=je&&es&&Po?Re:Bi.right):(fs=je?zi(ci,Ci,"before"):we,Mi=!je&&Ts&&Oi?Re:ii.right,Os=!je&&es&&Po?we:Bi.left,au=je?zi(ji,Ci,"after"):Re),gt(fs,ii.top,Mi-fs,ii.bottom),ii.bottom0?p.blinker=setInterval(function(){t.hasFocus()||no(t),p.cursorDiv.style.visibility=(B=!B)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(p.cursorDiv.style.visibility="hidden")}function to(t){t.state.focused||(t.display.input.focus(),Ii(t))}function Mo(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,no(t))},100)}function Ii(t,p){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(bt(t,"focus",t,p),t.state.focused=!0,H(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),e&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Za(t)}function no(t,p){if(t.state.delayingBlurEvent)return;t.state.focused&&(bt(t,"blur",t,p),t.state.focused=!1,C(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150)}function ro(t){for(var p=t.display,B=p.lineDiv.offsetTop,j=0;j.005||gt<-.005)&&(ar(G.line,ge),mi(G.line),G.rest))for(var At=0;Att.display.sizerWidth){var tn=Math.ceil(we/Ir(t.display));tn>t.display.maxLineLength&&(t.display.maxLineLength=tn,t.display.maxLine=G.line,t.display.maxLineChanged=!0)}}}function mi(t){if(t.widgets)for(var p=0;p=ge&&(ne=Rr(p,Br(xn(p,Re))-t.wrapper.clientHeight),ge=Re)}return{from:ne,to:Math.max(ge,ne+1)}}function Io(t,p){if(Pt(t,"scrollCursorIntoView"))return;var B=t.display,j=B.sizer.getBoundingClientRect(),G=null;if(p.top+j.top<0?G=!0:p.bottom+j.top>(window.innerHeight||document.documentElement.clientHeight)&&(G=!1),G!=null&&!n){var ne=A("div","\u200B",null,`position: absolute; top: `+(p.top-B.viewOffset-_a(t.display))+`px; - height: `+(p.bottom-p.top+bt(t)+B.barHeight)+`px; - left: `+p.left+"px; width: "+Math.max(2,p.right-p.left)+"px;");t.display.lineSpace.appendChild(ne),ne.scrollIntoView(G),t.display.lineSpace.removeChild(ne)}}function Lo(t,p,B,j){j==null&&(j=0);var G;!t.options.lineWrapping&&p==B&&(p=p.ch?qt(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p,B=p.sticky=="before"?qt(p.line,p.ch+1,"before"):p);for(var ne=0;ne<5;ne++){var ge=!1,we=Gn(t,p),Re=!B||B==p?we:Gn(t,B);G={left:Math.min(we.left,Re.left),top:Math.min(we.top,Re.top)-j,right:Math.max(we.left,Re.left),bottom:Math.max(we.bottom,Re.bottom)+j};var je=Vi(t,G),gt=t.doc.scrollTop,At=t.doc.scrollLeft;if(je.scrollTop!=null&&(Ji(t,je.scrollTop),Math.abs(t.doc.scrollTop-gt)>1&&(ge=!0)),je.scrollLeft!=null&&(ei(t,je.scrollLeft),Math.abs(t.doc.scrollLeft-At)>1&&(ge=!0)),!ge)break}return G}function bo(t,p){var B=Vi(t,p);B.scrollTop!=null&&Ji(t,B.scrollTop),B.scrollLeft!=null&&ei(t,B.scrollLeft)}function Vi(t,p){var B=t.display,j=br(t.display);p.top<0&&(p.top=0);var G=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:B.scroller.scrollTop,ne=Me(t),ge={};p.bottom-p.top>ne&&(p.bottom=p.top+ne);var we=t.doc.height+Ze(B),Re=p.topwe-j;if(p.topG+ne){var gt=Math.min(p.top,(je?we:p.bottom)-ne);gt!=G&&(ge.scrollTop=gt)}var At=t.options.fixedGutter?0:B.gutters.offsetWidth,tn=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:B.scroller.scrollLeft-At,zt=nt(t)-B.gutters.offsetWidth,Tn=p.right-p.left>zt;return Tn&&(p.right=p.left+zt),p.left<10?ge.scrollLeft=0:p.leftzt+tn-3&&(ge.scrollLeft=p.right+(Tn?0:10)-zt),ge}function co(t,p){if(p==null)return;yo(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+p}function Xi(t){yo(t);var p=t.getCursor();t.curOp.scrollToPos={from:p,to:p,margin:t.options.cursorScrollMargin}}function Yi(t,p,B){(p!=null||B!=null)&&yo(t),p!=null&&(t.curOp.scrollLeft=p),B!=null&&(t.curOp.scrollTop=B)}function No(t,p){yo(t),t.curOp.scrollToPos=p}function yo(t){var p=t.curOp.scrollToPos;if(p){t.curOp.scrollToPos=null;var B=En(t,p.from),j=En(t,p.to);ao(t,B,j,p.margin)}}function ao(t,p,B,j){var G=Vi(t,{left:Math.min(p.left,B.left),top:Math.min(p.top,B.top)-j,right:Math.max(p.right,B.right),bottom:Math.max(p.bottom,B.bottom)+j});Yi(t,G.scrollLeft,G.scrollTop)}function Ji(t,p){if(Math.abs(t.doc.scrollTop-p)<2)return;T||fo(t,{top:p}),Qi(t,p,!0),T&&fo(t),ai(t,100)}function Qi(t,p,B){if(p=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,p)),t.display.scroller.scrollTop==p&&!B)return;t.doc.scrollTop=p,t.display.scrollbars.setScrollTop(p),t.display.scroller.scrollTop!=p&&(t.display.scroller.scrollTop=p)}function ei(t,p,B,j){if(p=Math.max(0,Math.min(p,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(B?p==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-p)<2)&&!j)return;t.doc.scrollLeft=p,ya(t),t.display.scroller.scrollLeft!=p&&(t.display.scroller.scrollLeft=p),t.display.scrollbars.setScrollLeft(p)}function Li(t){var p=t.display,B=p.gutters.offsetWidth,j=Math.round(t.doc.height+Ze(t.display));return{clientHeight:p.scroller.clientHeight,viewHeight:p.wrapper.clientHeight,scrollWidth:p.scroller.scrollWidth,clientWidth:p.scroller.clientWidth,viewWidth:p.wrapper.clientWidth,barLeft:t.options.fixedGutter?B:0,docHeight:j,scrollHeight:j+bt(t)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:B}}var Di=function(t,p,B){this.cm=B;var j=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),G=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");j.tabIndex=G.tabIndex=-1,t(j),t(G),Ue(j,"scroll",function(){j.clientHeight&&p(j.scrollTop,"vertical")}),Ue(G,"scroll",function(){G.clientWidth&&p(G.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Di.prototype.update=function(t){var p=t.scrollWidth>t.clientWidth+1,B=t.scrollHeight>t.clientHeight+1,j=t.nativeBarWidth;if(B){this.vert.style.display="block",this.vert.style.bottom=p?j+"px":"0";var G=t.viewHeight-(p?j:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+G)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(p){this.horiz.style.display="block",this.horiz.style.right=B?j+"px":"0",this.horiz.style.left=t.barLeft+"px";var ne=t.viewWidth-t.barLeft-(B?j:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(j==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:B?j:0,bottom:p?j:0}},Di.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Di.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Di.prototype.zeroWidthHack=function(){var t=s&&!i?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},Di.prototype.enableZeroWidthBar=function(t,p,B){t.style.pointerEvents="auto";function j(){var G=t.getBoundingClientRect(),ne=B=="vert"?document.elementFromPoint(G.right-1,(G.top+G.bottom)/2):document.elementFromPoint((G.right+G.left)/2,G.bottom-1);ne!=t?t.style.pointerEvents="none":p.set(1e3,j)}p.set(1e3,j)},Di.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Zi=function(){};Zi.prototype.update=function(){return{bottom:0,right:0}},Zi.prototype.setScrollLeft=function(){},Zi.prototype.setScrollTop=function(){},Zi.prototype.clear=function(){};function Ri(t,p){p||(p=Li(t));var B=t.display.barWidth,j=t.display.barHeight;Eo(t,p);for(var G=0;G<4&&B!=t.display.barWidth||j!=t.display.barHeight;G++)B!=t.display.barWidth&&t.options.lineWrapping&&ro(t),Eo(t,Li(t)),B=t.display.barWidth,j=t.display.barHeight}function Eo(t,p){var B=t.display,j=B.scrollbars.update(p);B.sizer.style.paddingRight=(B.barWidth=j.right)+"px",B.sizer.style.paddingBottom=(B.barHeight=j.bottom)+"px",B.heightForcer.style.borderBottom=j.bottom+"px solid transparent",j.right&&j.bottom?(B.scrollbarFiller.style.display="block",B.scrollbarFiller.style.height=j.bottom+"px",B.scrollbarFiller.style.width=j.right+"px"):B.scrollbarFiller.style.display="",j.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(B.gutterFiller.style.display="block",B.gutterFiller.style.height=j.bottom+"px",B.gutterFiller.style.width=p.gutterWidth+"px"):B.gutterFiller.style.display=""}var xo={native:Di,null:Zi};function Co(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&C(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new xo[t.options.scrollbarStyle](function(p){t.display.wrapper.insertBefore(p,t.display.scrollbarFiller),Ue(p,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),p.setAttribute("cm-not-content","true")},function(p,B){B=="horizontal"?ei(t,p):Ji(t,p)},t),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)}var io=0;function Ni(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++io},$r(t.curOp)}function qi(t){var p=t.curOp;p&&Gt(p,function(B){for(var j=0;j=B.viewTo)||B.maxLineChanged&&p.options.lineWrapping,t.update=t.mustUpdate&&new yi(p,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function so(t){t.updatedDisplay=t.mustUpdate&&Wi(t.cm,t.update)}function So(t){var p=t.cm,B=p.display;t.updatedDisplay&&ro(p),t.barMeasure=Li(p),B.maxLineChanged&&!p.options.lineWrapping&&(t.adjustWidthTo=qe(p,B.maxLine,B.maxLine.text.length).left+3,p.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(B.scroller.clientWidth,B.sizer.offsetLeft+t.adjustWidthTo+bt(p)+p.display.barWidth),t.maxScrollLeft=Math.max(0,B.sizer.offsetLeft+t.adjustWidthTo-nt(p))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=B.input.prepareSelection())}function Uo(t){var p=t.cm;t.adjustWidthTo!=null&&(p.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft=t.display.viewTo)return;var B=+new Date+t.options.workTime,j=Mn(t,p.highlightFrontier),G=[];p.iter(j.line,Math.min(p.first+p.size,t.display.viewTo+500),function(ne){if(j.line>=t.display.viewFrom){var ge=ne.styles,we=ne.text.length>t.options.maxHighlightLength?mn(p.mode,j.state):null,Re=ot(t,ne,j,!0);we&&(j.state=we),ne.styles=Re.styles;var je=ne.styleClasses,gt=Re.classes;gt?ne.styleClasses=gt:je&&(ne.styleClasses=null);for(var At=!ge||ge.length!=ne.styles.length||je!=gt&&(!je||!gt||je.bgClass!=gt.bgClass||je.textClass!=gt.textClass),tn=0;!At&&tnB)return ai(t,t.options.workDelay),!0}),p.highlightFrontier=j.line,p.modeFrontier=Math.max(p.modeFrontier,j.line),G.length&&fi(t,function(){for(var ne=0;ne=B.viewFrom&&p.visible.to<=B.viewTo&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo)&&B.renderedView==B.view&&Ai(t)==0)return!1;Ga(t)&&(Fa(t),p.dims=er(t));var G=j.first+j.size,ne=Math.max(p.visible.from-t.options.viewportMargin,j.first),ge=Math.min(G,p.visible.to+t.options.viewportMargin);B.viewFromge&&B.viewTo-ge<20&&(ge=Math.min(G,B.viewTo)),ca&&(ne=kn(t.doc,ne),ge=Rn(t.doc,ge));var we=ne!=B.viewFrom||ge!=B.viewTo||B.lastWrapHeight!=p.wrapperHeight||B.lastWrapWidth!=p.wrapperWidth;Fi(t,ne,ge),B.viewOffset=Br(xn(t.doc,B.viewFrom)),t.display.mover.style.top=B.viewOffset+"px";var Re=Ai(t);if(!we&&Re==0&&!p.force&&B.renderedView==B.view&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo))return!1;var je=To(t);return Re>4&&(B.lineDiv.style.display="none"),Wo(t,B.updateLineNumbers,p.dims),Re>4&&(B.lineDiv.style.display=""),B.renderedView=B.view,$i(je),S(B.cursorDiv),S(B.selectionDiv),B.gutters.style.height=B.sizer.style.minHeight=0,we&&(B.lastWrapHeight=p.wrapperHeight,B.lastWrapWidth=p.wrapperWidth,ai(t,400)),B.updateLineNumbers=null,!0}function Oo(t,p){for(var B=p.viewport,j=!0;;j=!1){if(!j||!t.options.lineWrapping||p.oldDisplayWidth==nt(t)){if(B&&B.top!=null&&(B={top:Math.min(t.doc.height+Ze(t.display)-Me(t),B.top)}),p.visible=uo(t.display,t.doc,B),p.visible.from>=t.display.viewFrom&&p.visible.to<=t.display.viewTo)break}else j&&(p.visible=uo(t.display,t.doc,B));if(!Wi(t,p))break;ro(t);var G=Li(t);Na(t),Ri(t,G),Aa(t,G),p.force=!1}p.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(p.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function fo(t,p){var B=new yi(t,p);if(Wi(t,B)){ro(t),Oo(t,B);var j=Li(t);Na(t),Ri(t,j),Aa(t,j),B.finish()}}function Wo(t,p,B){var j=t.display,G=t.options.lineNumbers,ne=j.lineDiv,ge=ne.firstChild;function we(Tn){var Bn=Tn.nextSibling;return e&&s&&t.display.currentWheelTarget==Tn?Tn.style.display="none":Tn.parentNode.removeChild(Tn),Bn}for(var Re=j.view,je=j.viewFrom,gt=0;gt-1&&(zt=!1),$n(t,At,je,B)),zt&&(S(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(sn(t.options,je)))),ge=At.node.nextSibling}je+=At.size}for(;ge;)ge=we(ge)}function lo(t){var p=t.gutters.offsetWidth;t.sizer.style.marginLeft=p+"px"}function Aa(t,p){t.display.sizer.style.minHeight=p.docHeight+"px",t.display.heightForcer.style.top=p.docHeight+"px",t.display.gutters.style.height=p.docHeight+t.display.barHeight+bt(t)+"px"}function ya(t){var p=t.display,B=p.view;if(!p.alignWidgets&&(!p.gutters.firstChild||!t.options.fixedGutter))return;for(var j=pa(p)-p.scroller.scrollLeft+t.doc.scrollLeft,G=p.gutters.offsetWidth,ne=j+"px",ge=0;gege.clientWidth,Re=ge.scrollHeight>ge.clientHeight;if(!(j&&we||G&&Re))return;if(G&&s&&e){e:for(var je=p.target,gt=ne.view;je!=ge;je=je.parentNode)for(var At=0;At=0&&On(t,j.to())<=0)return B}return-1};var Pa=function(t,p){this.anchor=t,this.head=p};Pa.prototype.from=function(){return dr(this.anchor,this.head)},Pa.prototype.to=function(){return xr(this.anchor,this.head)},Pa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function sa(t,p,B){var j=t&&t.options.selectionsMayTouch,G=p[B];p.sort(function(tn,zt){return On(tn.from(),zt.from())}),B=he(p,G);for(var ne=1;ne0:Re>=0){var je=dr(we.from(),ge.from()),gt=xr(we.to(),ge.to()),At=we.empty()?ge.from()==ge.head:we.from()==we.head;ne<=B&&--B,p.splice(--ne,2,new Pa(At?gt:je,At?je:gt))}}return new hi(p,B)}function Cr(t,p){return new hi([new Pa(t,p||t)],0)}function Zr(t){return t.text?qt(t.from.line+t.text.length-1,$(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function va(t,p){if(On(t,p.from)<0)return t;if(On(t,p.to)<=0)return Zr(p);var B=t.line+p.text.length-(p.to.line-p.from.line)-1,j=t.ch;return t.line==p.to.line&&(j+=Zr(p).ch-p.to.ch),qt(B,j)}function Wa(t,p){for(var B=[],j=0;j1&&t.remove(we.line+1,Tn-1),t.insert(we.line+1,yr)}Jt(t,"change",t,p)}function Qa(t,p,B){function j(G,ne,ge){if(G.linked)for(var we=0;we1&&!t.done[t.done.length-2].ranges)return t.done.pop(),$(t.done)}function Qs(t,p,B,j){var G=t.history;G.undone.length=0;var ne=+new Date,ge,we;if((G.lastOp==j||G.lastOrigin==p.origin&&p.origin&&(p.origin.charAt(0)=="+"&&G.lastModTime>ne-(t.cm?t.cm.options.historyEventDelay:500)||p.origin.charAt(0)=="*"))&&(ge=Ml(G,G.lastOp==j)))we=$(ge.changes),On(p.from,p.to)==0&&On(p.from,we.to)==0?we.to=Zr(p):ge.changes.push(Ds(t,p));else{var Re=$(G.done);for((!Re||!Re.ranges)&&ms(t.sel,G.done),ge={changes:[Ds(t,p)],generation:G.generation},G.done.push(ge);G.done.length>G.undoDepth;)G.done.shift(),G.done[0].ranges||G.done.shift()}G.done.push(B),G.generation=++G.maxGeneration,G.lastModTime=G.lastSelTime=ne,G.lastOp=G.lastSelOp=j,G.lastOrigin=G.lastSelOrigin=p.origin,we||yt(t,"historyAdded")}function Il(t,p,B,j){var G=p.charAt(0);return G=="*"||G=="+"&&B.ranges.length==j.ranges.length&&B.somethingSelected()==j.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ps(t,p,B,j){var G=t.history,ne=j&&j.origin;B==G.lastSelOp||ne&&G.lastSelOrigin==ne&&(G.lastModTime==G.lastSelTime&&G.lastOrigin==ne||Il(t,ne,$(G.done),p))?G.done[G.done.length-1]=p:ms(p,G.done),G.lastSelTime=+new Date,G.lastSelOrigin=ne,G.lastSelOp=B,j&&j.clearRedo!==!1&&Js(G.undone)}function ms(t,p){var B=$(p);B&&B.ranges&&B.equals(t)||p.push(t)}function Rs(t,p,B,j){var G=p["spans_"+t.id],ne=0;t.iter(Math.max(t.first,B),Math.min(t.first+t.size,j),function(ge){ge.markedSpans&&((G||(G=p["spans_"+t.id]={}))[ne]=ge.markedSpans),++ne})}function gs(t){if(!t)return null;for(var p,B=0;B-1&&($(we)[At]=je[At],delete je[At]))}}return j}function vs(t,p,B,j){if(j){var G=t.anchor;if(B){var ne=On(p,G)<0;ne!=On(B,G)<0?(G=p,p=B):ne!=On(p,B)<0&&(p=B)}return new Pa(G,p)}else return new Pa(B||p,p)}function _s(t,p,B,j,G){G==null&&(G=t.cm&&(t.cm.display.shift||t.extend)),gi(t,new hi([vs(t.sel.primary(),p,B,G)],0),j)}function $s(t,p,B){for(var j=[],G=t.cm&&(t.cm.display.shift||t.extend),ne=0;ne=p.ch:we.to>p.ch))){if(G&&(yt(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(ne.markedSpans){--ge;continue}else break;if(!Re.atomic)continue;if(B){var At=Re.find(j<0?1:-1),tn=void 0;if((j<0?gt:je)&&(At=il(t,At,-j,At&&At.line==p.line?ne:null)),At&&At.line==p.line&&(tn=On(At,B))&&(j<0?tn<0:tn>0))return Go(t,At,p,j,G)}var zt=Re.find(j<0?-1:1);return(j<0?je:gt)&&(zt=il(t,zt,j,zt.line==p.line?ne:null)),zt?Go(t,zt,p,j,G):null}}return p}function bs(t,p,B,j,G){var ne=j||1,ge=Go(t,p,B,ne,G)||!G&&Go(t,p,B,ne,!0)||Go(t,p,B,-ne,G)||!G&&Go(t,p,B,-ne,!0);return ge||(t.cantEdit=!0,qt(t.first,0))}function il(t,p,B,j){return B<0&&p.ch==0?p.line>t.first?X(t,qt(p.line-1)):null:B>0&&p.ch==(j||xn(t,p.line)).text.length?p.line=0;--G)sl(t,{from:j[G].from,to:j[G].to,text:G?[""]:p.text,origin:p.origin});else sl(t,p)}function sl(t,p){if(p.text.length==1&&p.text[0]==""&&On(p.from,p.to)==0)return;var B=Wa(t,p);Qs(t,p,B,t.cm?t.cm.curOp.id:NaN),Vo(t,p,B,la(t,p));var j=[];Qa(t,function(G,ne){!ne&&he(j,G.history)==-1&&(dl(G.history,p),j.push(G.history)),Vo(G,p,null,la(G,p))})}function ys(t,p,B){var j=t.cm&&t.cm.state.suppressEdits;if(j&&!B)return;for(var G=t.history,ne,ge=t.sel,we=p=="undo"?G.done:G.undone,Re=p=="undo"?G.undone:G.done,je=0;je=0;--zt){var Tn=tn(zt);if(Tn)return Tn.v}}function ll(t,p){if(p==0)return;if(t.first+=p,t.sel=new hi(me(t.sel.ranges,function(G){return new Pa(qt(G.anchor.line+p,G.anchor.ch),qt(G.head.line+p,G.head.ch))}),t.sel.primIndex),t.cm){ka(t.cm,t.first,t.first-p,p);for(var B=t.cm.display,j=B.viewFrom;jt.lastLine())return;if(p.from.linene&&(p={from:p.from,to:qt(ne,xn(t,ne).text.length),text:[p.text[0]],origin:p.origin}),p.removed=fr(t,p.from,p.to),B||(B=Wa(t,p)),t.cm?Nl(t.cm,p,j):go(t,p,j),Ko(t,B,Te),t.cantEdit&&bs(t,qt(t.firstLine(),0))&&(t.cantEdit=!1)}function Nl(t,p,B){var j=t.doc,G=t.display,ne=p.from,ge=p.to,we=!1,Re=ne.line;t.options.lineWrapping||(Re=nr(an(xn(j,ne.line))),j.iter(Re,ge.line+1,function(zt){if(zt==G.maxLine)return we=!0,!0})),j.sel.contains(p.from,p.to)>-1&&it(t),go(j,p,B,Ea(t)),t.options.lineWrapping||(j.iter(Re,ne.line+p.text.length,function(zt){var Tn=Sn(zt);Tn>G.maxLineLength&&(G.maxLine=zt,G.maxLineLength=Tn,G.maxLineChanged=!0,we=!1)}),we&&(t.curOp.updateMaxLine=!0)),Ra(j,ne.line),ai(t,400);var je=p.text.length-(ge.line-ne.line)-1;p.full?ka(t):ne.line==ge.line&&p.text.length==1&&!Ki(t.doc,p)?Ua(t,ne.line,"text"):ka(t,ne.line,ge.line+1,je);var gt=He(t,"changes"),At=He(t,"change");if(At||gt){var tn={from:ne,to:ge,text:p.text,removed:p.removed,origin:p.origin};At&&Jt(t,"change",t,tn),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(tn)}t.display.selForContextMenu=null}function Xo(t,p,B,j,G){var ne;j||(j=B),On(j,B)<0&&(ne=[j,B],B=ne[0],j=ne[1]),typeof p=="string"&&(p=t.splitLines(p)),zo(t,{from:B,to:j,text:p,origin:G})}function ul(t,p,B,j){B1||!(this.children[0]instanceof Do))){var we=[];this.collapse(we),this.children=[new Do(we)],this.children[0].parent=this}},collapse:function(t){for(var p=0;p50){for(var ge=G.lines.length%25+25,we=ge;we10);t.parent.maybeSpill()},iterN:function(t,p,B){for(var j=0;jt.display.maxLineLength&&(t.display.maxLine=je,t.display.maxLineLength=gt,t.display.maxLineChanged=!0)}j!=null&&t&&this.collapsed&&ka(t,j,G+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&rl(t.doc)),t&&Jt(t,"markerCleared",t,this,j,G),p&&qi(t),this.parent&&this.parent.clear()},Gi.prototype.find=function(t,p){t==null&&this.type=="bookmark"&&(t=1);for(var B,j,G=0;G0||ge==0&&ne.clearWhenEmpty!==!1)return ne;if(ne.replacedWith&&(ne.collapsed=!0,ne.widgetNode=U("span",[ne.replacedWith],"CodeMirror-widget"),j.handleMouseEvents||ne.widgetNode.setAttribute("cm-ignore-events","true"),j.insertLeft&&(ne.widgetNode.insertLeft=!0)),ne.collapsed){if(An(t,p.line,p,B,ne)||p.line!=B.line&&An(t,B.line,p,B,ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");wa()}ne.addToHistory&&Qs(t,{from:p,to:B,origin:"markText"},t.sel,NaN);var we=p.line,Re=t.cm,je;if(t.iter(we,B.line+1,function(At){Re&&ne.collapsed&&!Re.options.lineWrapping&&an(At)==Re.display.maxLine&&(je=!0),ne.collapsed&&we!=p.line&&ar(At,0),oi(At,new Ja(ne,we==p.line?p.ch:null,we==B.line?B.ch:null)),++we}),ne.collapsed&&t.iter(p.line,B.line+1,function(At){Jn(t,At)&&ar(At,0)}),ne.clearOnEnter&&Ue(ne,"beforeCursorEnter",function(){return ne.clear()}),ne.readOnly&&(Ka(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),ne.collapsed&&(ne.id=++hl,ne.atomic=!0),Re){if(je&&(Re.curOp.updateMaxLine=!0),ne.collapsed)ka(Re,p.line,B.line+1);else if(ne.className||ne.startStyle||ne.endStyle||ne.css||ne.attributes||ne.title)for(var gt=p.line;gt<=B.line;gt++)Ua(Re,gt,"text");ne.atomic&&rl(Re.doc),Jt(Re,"markerAdded",Re,ne)}return ne}var Qo=function(t,p){this.markers=t,this.primary=p;for(var B=0;B=0;Re--)zo(this,j[Re]);we?tl(this,we):this.cm&&Xi(this.cm)}),undo:Xa(function(){ys(this,"undo")}),redo:Xa(function(){ys(this,"redo")}),undoSelection:Xa(function(){ys(this,"undo",!0)}),redoSelection:Xa(function(){ys(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,p=0,B=0,j=0;j=t.ch)&&p.push(G.marker.parent||G.marker)}return p},findMarks:function(t,p,B){t=X(this,t),p=X(this,p);var j=[],G=t.line;return this.iter(t.line,p.line+1,function(ne){var ge=ne.markedSpans;if(ge)for(var we=0;we=Re.to||Re.from==null&&G!=t.line||Re.from!=null&&G==p.line&&Re.from>=p.ch)&&(!B||B(Re.marker))&&j.push(Re.marker.parent||Re.marker)}++G}),j},getAllMarks:function(){var t=[];return this.iter(function(p){var B=p.markedSpans;if(B)for(var j=0;jt)return p=t,!0;t-=ne,++B}),X(this,qt(B,p))},indexFromPos:function(t){t=X(this,t);var p=t.ch;if(t.linep&&(p=t.from),t.to!=null&&t.to-1){p.state.draggingText(t),setTimeout(function(){return p.display.input.focus()},20);return}try{var gt=t.dataTransfer.getData("Text");if(gt){var At;if(p.state.draggingText&&!p.state.draggingText.copy&&(At=p.listSelections()),Ko(p.doc,Cr(B,B)),At)for(var tn=0;tn=0;we--)Xo(t.doc,"",j[we].from,j[we].to,"+delete");Xi(t)})}function Us(t,p,B){var j=Ae(t.text,p+B,B);return j<0||j>t.text.length?null:j}function js(t,p,B){var j=Us(t,p.ch,B);return j==null?null:new qt(p.line,j,B<0?"after":"before")}function Bs(t,p,B,j,G){if(t){p.doc.direction=="rtl"&&(G=-G);var ne=Et(B,p.doc.direction);if(ne){var ge=G<0?$(ne):ne[0],we=G<0==(ge.level==1),Re=we?"after":"before",je;if(ge.level>0||p.doc.direction=="rtl"){var gt=rt(p,B);je=G<0?B.text.length-1:0;var At=Mt(p,gt,je).top;je=Qe(function(tn){return Mt(p,gt,tn).top==At},G<0==(ge.level==1)?ge.from:ge.to-1,je),Re=="before"&&(je=Us(B,je,1))}else je=G<0?ge.to:ge.from;return new qt(j,je,Re)}}return new qt(j,G<0?B.text.length:0,G<0?"before":"after")}function Fs(t,p,B,j){var G=Et(p,t.doc.direction);if(!G)return js(p,B,j);B.ch>=p.text.length?(B.ch=p.text.length,B.sticky="before"):B.ch<=0&&(B.ch=0,B.sticky="after");var ne=mt(G,B.ch,B.sticky),ge=G[ne];if(t.doc.direction=="ltr"&&ge.level%2==0&&(j>0?ge.to>B.ch:ge.from=ge.from&&tn>=gt.begin)){var zt=At?"before":"after";return new qt(B.line,tn,zt)}}var Tn=function(yr,Ur,Er){for(var Xr=function(Va,vi){return vi?new qt(B.line,we(Va,1),"before"):new qt(B.line,Va,"after")};yr>=0&&yr0==(ia.level!=1),Sa=ea?Er.begin:we(Er.end,-1);if(ia.from<=Sa&&Sa0?gt.end:we(gt.begin,-1);return Zn!=null&&!(j>0&&Zn==p.text.length)&&(Bn=Tn(j>0?0:G.length-1,j,je(Zn)),Bn)?Bn:null}var qo={selectAll:ol,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Te)},killLine:function(t){return Zo(t,function(p){if(p.empty()){var B=xn(t.doc,p.head.line).text.length;return p.head.ch==B&&p.head.line0)G=new qt(G.line,G.ch+1),t.replaceRange(ne.charAt(G.ch-1)+ne.charAt(G.ch-2),qt(G.line,G.ch-2),G,"+transpose");else if(G.line>t.doc.first){var ge=xn(t.doc,G.line-1).text;ge&&(G=new qt(G.line,1),t.replaceRange(ne.charAt(0)+t.doc.lineSeparator()+ge.charAt(ge.length-1),qt(G.line-1,ge.length-1),G,"+transpose"))}}B.push(new Pa(G,G))}t.setSelections(B)})},newlineAndIndent:function(t){return fi(t,function(){for(var p=t.listSelections(),B=p.length-1;B>=0;B--)t.replaceRange(t.doc.lineSeparator(),p[B].anchor,p[B].head,"+input");p=t.listSelections();for(var j=0;jt&&On(p,this.pos)==0&&B==this.button};var ls,us;function Yl(t,p){var B=+new Date;return us&&us.compare(B,t,p)?(ls=us=null,"triple"):ls&&ls.compare(B,t,p)?(us=new Gs(B,t,p),ls=null,"double"):(ls=new Gs(B,t,p),us=null,"single")}function zs(t){var p=this,B=p.display;if(Pt(p,t)||B.activeTouch&&B.input.supportsTouch())return;if(B.input.ensurePolled(),B.shift=t.shiftKey,Ta(B,t)){e||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(Xs(p,t))return;var j=Oa(p,t),G=st(t),ne=j?Yl(j,G):"single";if(window.focus(),G==1&&p.state.selectingText&&p.state.selectingText(t),j&&wl(p,G,j,ne,t))return;G==1?j?Ql(p,j,ne,t):We(t)==B.scroller&&Ce(t):G==2?(j&&_s(p.doc,j),setTimeout(function(){return B.input.focus()},20)):G==3&&(R?p.display.input.onContextMenu(t):Mo(p))}function wl(t,p,B,j,G){var ne="Click";return j=="double"?ne="Double"+ne:j=="triple"&&(ne="Triple"+ne),ne=(p==1?"Left":p==2?"Middle":"Right")+ne,ss(t,bl(ne,G),G,function(ge){if(typeof ge=="string"&&(ge=qo[ge]),!ge)return!1;var we=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),we=ge(t,B)!=Se}finally{t.state.suppressEdits=!1}return we})}function Jl(t,p,B){var j=t.getOption("configureMouse"),G=j?j(t,p,B):{};if(G.unit==null){var ne=c?B.shiftKey&&B.metaKey:B.altKey;G.unit=ne?"rectangle":p=="single"?"char":p=="double"?"word":"line"}return(G.extend==null||t.doc.extend)&&(G.extend=t.doc.extend||B.shiftKey),G.addNew==null&&(G.addNew=s?B.metaKey:B.ctrlKey),G.moveOnDrag==null&&(G.moveOnDrag=!(s?B.altKey:B.ctrlKey)),G}function Ql(t,p,B,j){O?setTimeout(F(to,t),0):t.curOp.focus=V();var G=Jl(t,B,j),ne=t.doc.sel,ge;t.options.dragDrop&&Dt&&!t.isReadOnly()&&B=="single"&&(ge=ne.contains(p))>-1&&(On((ge=ne.ranges[ge]).from(),p)<0||p.xRel>0)&&(On(ge.to(),p)>0||p.xRel<0)?Zl(t,j,p,G):ql(t,j,p,G)}function Zl(t,p,B,j){var G=t.display,ne=!1,ge=Ha(t,function(je){e&&(G.scroller.draggable=!1),t.state.draggingText=!1,jt(G.wrapper.ownerDocument,"mouseup",ge),jt(G.wrapper.ownerDocument,"mousemove",we),jt(G.scroller,"dragstart",Re),jt(G.scroller,"drop",ge),ne||(Ce(je),j.addNew||_s(t.doc,B,null,null,j.extend),e&&!r||O&&m==9?setTimeout(function(){G.wrapper.ownerDocument.body.focus({preventScroll:!0}),G.input.focus()},20):G.input.focus())}),we=function(je){ne=ne||Math.abs(p.clientX-je.clientX)+Math.abs(p.clientY-je.clientY)>=10},Re=function(){return ne=!0};e&&(G.scroller.draggable=!0),t.state.draggingText=ge,ge.copy=!j.moveOnDrag,G.scroller.dragDrop&&G.scroller.dragDrop(),Ue(G.wrapper.ownerDocument,"mouseup",ge),Ue(G.wrapper.ownerDocument,"mousemove",we),Ue(G.scroller,"dragstart",Re),Ue(G.scroller,"drop",ge),Mo(t),setTimeout(function(){return G.input.focus()},20)}function Vs(t,p,B){if(B=="char")return new Pa(p,p);if(B=="word")return t.findWordAt(p);if(B=="line")return new Pa(qt(p.line,0),X(t.doc,qt(p.line+1,0)));var j=B(t,p);return new Pa(j.from,j.to)}function ql(t,p,B,j){var G=t.display,ne=t.doc;Ce(p);var ge,we,Re=ne.sel,je=Re.ranges;if(j.addNew&&!j.extend?(we=ne.sel.contains(B),we>-1?ge=je[we]:ge=new Pa(B,B)):(ge=ne.sel.primary(),we=ne.sel.primIndex),j.unit=="rectangle")j.addNew||(ge=new Pa(B,B)),B=Oa(t,p,!0,!0),we=-1;else{var gt=Vs(t,B,j.unit);j.extend?ge=vs(ge,gt.anchor,gt.head,j.extend):ge=gt}j.addNew?we==-1?(we=je.length,gi(ne,sa(t,je.concat([ge]),we),{scroll:!1,origin:"*mouse"})):je.length>1&&je[we].empty()&&j.unit=="char"&&!j.extend?(gi(ne,sa(t,je.slice(0,we).concat(je.slice(we+1)),0),{scroll:!1,origin:"*mouse"}),Re=ne.sel):Ao(ne,we,ge,ce):(we=0,gi(ne,new hi([ge],0),ce),Re=ne.sel);var At=B;function tn(Er){if(On(At,Er)==0)return;if(At=Er,j.unit=="rectangle"){for(var Xr=[],ia=t.options.tabSize,ea=K(xn(ne,B.line).text,B.ch,ia),Sa=K(xn(ne,Er.line).text,Er.ch,ia),Va=Math.min(ea,Sa),vi=Math.max(ea,Sa),ti=Math.min(B.line,Er.line),zi=Math.min(t.lastLine(),Math.max(B.line,Er.line));ti<=zi;ti++){var Ui=xn(ne,ti).text,ci=Ee(Ui,Va,ia);Va==vi?Xr.push(new Pa(qt(ti,ci),qt(ti,ci))):Ui.length>ci&&Xr.push(new Pa(qt(ti,ci),qt(ti,Ee(Ui,vi,ia))))}Xr.length||Xr.push(new Pa(B,B)),gi(ne,sa(t,Re.ranges.slice(0,we).concat(Xr),we),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Er)}else{var ji=ge,Ci=Vs(t,Er,j.unit),pi=ji.anchor,di;On(Ci.anchor,pi)>0?(di=Ci.head,pi=dr(ji.from(),Ci.anchor)):(di=Ci.anchor,pi=xr(ji.to(),Ci.head));var ii=Re.ranges.slice(0);ii[we]=$l(t,new Pa(X(ne,pi),di)),gi(ne,sa(t,ii,we),ce)}}var zt=G.wrapper.getBoundingClientRect(),Tn=0;function Bn(Er){var Xr=++Tn,ia=Oa(t,Er,!0,j.unit=="rectangle");if(!ia)return;if(On(ia,At)!=0){t.curOp.focus=V(),tn(ia);var ea=uo(G,ne);(ia.line>=ea.to||ia.linezt.bottom?20:0;Sa&&setTimeout(Ha(t,function(){if(Tn!=Xr)return;G.scroller.scrollTop+=Sa,Bn(Er)}),50)}}function Zn(Er){t.state.selectingText=!1,Tn=Infinity,Er&&(Ce(Er),G.input.focus()),jt(G.wrapper.ownerDocument,"mousemove",yr),jt(G.wrapper.ownerDocument,"mouseup",Ur),ne.history.lastSelOrigin=null}var yr=Ha(t,function(Er){Er.buttons===0||!st(Er)?Zn(Er):Bn(Er)}),Ur=Ha(t,Zn);t.state.selectingText=Ur,Ue(G.wrapper.ownerDocument,"mousemove",yr),Ue(G.wrapper.ownerDocument,"mouseup",Ur)}function $l(t,p){var B=p.anchor,j=p.head,G=xn(t.doc,B.line);if(On(B,j)==0&&B.sticky==j.sticky)return p;var ne=Et(G);if(!ne)return p;var ge=mt(ne,B.ch,B.sticky),we=ne[ge];if(we.from!=B.ch&&we.to!=B.ch)return p;var Re=ge+(we.from==B.ch==(we.level!=1)?0:1);if(Re==0||Re==ne.length)return p;var je;if(j.line!=B.line)je=(j.line-B.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var gt=mt(ne,j.ch,j.sticky),At=gt-ge||(j.ch-B.ch)*(we.level==1?-1:1);gt==Re-1||gt==Re?je=At<0:je=At>0}var tn=ne[Re+(je?-1:0)],zt=je==(tn.level==1),Tn=zt?tn.from:tn.to,Bn=zt?"after":"before";return B.ch==Tn&&B.sticky==Bn?p:new Pa(new qt(B.line,Tn,Bn),j)}function Tl(t,p,B,j){var G,ne;if(p.touches)G=p.touches[0].clientX,ne=p.touches[0].clientY;else try{G=p.clientX,ne=p.clientY}catch(tn){return!1}if(G>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;j&&Ce(p);var ge=t.display,we=ge.lineDiv.getBoundingClientRect();if(ne>we.bottom||!He(t,B))return Fe(p);ne-=we.top-ge.viewOffset;for(var Re=0;Re=G){var gt=Rr(t.doc,ne),At=t.display.gutterSpecs[Re];return yt(t,B,t,gt,At.className,p),Fe(p)}}}function Xs(t,p){return Tl(t,p,"gutterClick",!0)}function Ol(t,p){if(Ta(t.display,p)||Al(t,p))return;if(Pt(t,p,"contextmenu"))return;R||t.display.input.onContextMenu(p)}function Al(t,p){return He(t,"gutterContextMenu")?Tl(t,p,"gutterContextMenu",!1):!1}function Dl(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jr(t)}var $o={toString:function(){return"CodeMirror.Init"}},ws={},cs={};function eu(t){var p=t.optionHandlers;function B(j,G,ne,ge){t.defaults[j]=G,ne&&(p[j]=ge?function(we,Re,je){je!=$o&&ne(we,Re,je)}:ne)}t.defineOption=B,t.Init=$o,B("value","",function(j,G){return j.setValue(G)},!0),B("mode",null,function(j,G){j.doc.modeOption=G,$a(j)},!0),B("indentUnit",2,$a,!0),B("indentWithTabs",!1),B("smartIndent",!0),B("tabSize",4,function(j){xi(j),jr(j),ka(j)},!0),B("lineSeparator",null,function(j,G){if(j.doc.lineSep=G,!G)return;var ne=[],ge=j.doc.first;j.doc.iter(function(Re){for(var je=0;;){var gt=Re.text.indexOf(G,je);if(gt==-1)break;je=gt+G.length,ne.push(qt(ge,gt))}ge++});for(var we=ne.length-1;we>=0;we--)Xo(j.doc,G,ne[we],qt(ne[we].line,ne[we].ch+G.length))}),B("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(j,G,ne){j.state.specialChars=new RegExp(G.source+(G.test(" ")?"":"| "),"g"),ne!=$o&&j.refresh()}),B("specialCharPlaceholder",or,function(j){return j.refresh()},!0),B("electricChars",!0),B("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),B("spellcheck",!1,function(j,G){return j.getInputField().spellcheck=G},!0),B("autocorrect",!1,function(j,G){return j.getInputField().autocorrect=G},!0),B("autocapitalize",!1,function(j,G){return j.getInputField().autocapitalize=G},!0),B("rtlMoveVisually",!w),B("wholeLineUpdateBefore",!0),B("theme","default",function(j){Dl(j),ki(j)},!0),B("keyMap","default",function(j,G,ne){var ge=os(G),we=ne!=$o&&os(ne);we&&we.detach&&we.detach(j,ge),ge.attach&&ge.attach(j,we||null)}),B("extraKeys",null),B("configureMouse",null),B("lineWrapping",!1,nu,!0),B("gutters",[],function(j,G){j.display.gutterSpecs=ui(G,j.options.lineNumbers),ki(j)},!0),B("fixedGutter",!0,function(j,G){j.display.gutters.style.left=G?pa(j.display)+"px":"0",j.refresh()},!0),B("coverGutterNextToScrollbar",!1,function(j){return Ri(j)},!0),B("scrollbarStyle","native",function(j){Co(j),Ri(j),j.display.scrollbars.setScrollTop(j.doc.scrollTop),j.display.scrollbars.setScrollLeft(j.doc.scrollLeft)},!0),B("lineNumbers",!1,function(j,G){j.display.gutterSpecs=ui(j.options.gutters,G),ki(j)},!0),B("firstLineNumber",1,ki,!0),B("lineNumberFormatter",function(j){return j},ki,!0),B("showCursorWhenSelecting",!1,Na,!0),B("resetSelectionOnContextMenu",!0),B("lineWiseCopyCut",!0),B("pasteLinesPerSelection",!0),B("selectionsMayTouch",!1),B("readOnly",!1,function(j,G){G=="nocursor"&&(no(j),j.display.input.blur()),j.display.input.readOnlyChanged(G)}),B("screenReaderLabel",null,function(j,G){G=G===""?null:G,j.display.input.screenReaderLabelChanged(G)}),B("disableInput",!1,function(j,G){G||j.display.input.reset()},!0),B("dragDrop",!0,tu),B("allowDropFileTypes",null),B("cursorBlinkRate",530),B("cursorScrollMargin",0),B("cursorHeight",1,Na,!0),B("singleCursorHeightPerLine",!0,Na,!0),B("workTime",100),B("workDelay",100),B("flattenSpans",!0,xi,!0),B("addModeClass",!1,xi,!0),B("pollInterval",100),B("undoDepth",200,function(j,G){return j.doc.history.undoDepth=G}),B("historyEventDelay",1250),B("viewportMargin",10,function(j){return j.refresh()},!0),B("maxHighlightLength",1e4,xi,!0),B("moveInputWithCursor",!0,function(j,G){G||j.display.input.resetPosition()}),B("tabindex",null,function(j,G){return j.display.input.getField().tabIndex=G||""}),B("autofocus",null),B("direction","ltr",function(j,G){return j.doc.setDirection(G)},!0),B("phrases",null)}function tu(t,p,B){var j=B&&B!=$o;if(!p!=!j){var G=t.display.dragFunctions,ne=p?Ue:jt;ne(t.display.scroller,"dragstart",G.start),ne(t.display.scroller,"dragenter",G.enter),ne(t.display.scroller,"dragover",G.over),ne(t.display.scroller,"dragleave",G.leave),ne(t.display.scroller,"drop",G.drop)}}function nu(t){t.options.lineWrapping?(H(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(C(t.display.wrapper,"CodeMirror-wrap"),Yt(t)),ba(t),ka(t),jr(t),setTimeout(function(){return Ri(t)},100)}function Ya(t,p){var B=this;if(!(this instanceof Ya))return new Ya(t,p);this.options=p=p?I(p):{},I(ws,p,!1);var j=p.value;typeof j=="string"?j=new Ti(j,p.mode,null,p.lineSeparator,p.direction):p.mode&&(j.modeOption=p.mode),this.doc=j;var G=new Ya.inputStyles[p.inputStyle](this),ne=this.display=new ho(t,j,G,p);ne.wrapper.CodeMirror=this,Dl(this),p.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Co(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ee,keySeq:null,specialChars:null},p.autofocus&&!d&&ne.input.focus(),O&&m<11&&setTimeout(function(){return B.display.input.reset(!0)},20),Rl(this),ou(),Ni(this),this.curOp.forceUpdate=!0,As(this,j),p.autofocus&&!d||this.hasFocus()?setTimeout(function(){B.hasFocus()&&!B.state.focused&&Ii(B)},20):no(this);for(var ge in cs)cs.hasOwnProperty(ge)&&cs[ge](this,p[ge],$o);Ga(this),p.finishInit&&p.finishInit(this);for(var we=0;we20*20}Ue(p.scroller,"touchstart",function(Re){if(!Pt(t,Re)&&!ne(Re)&&!Xs(t,Re)){p.input.ensurePolled(),clearTimeout(B);var je=+new Date;p.activeTouch={start:je,moved:!1,prev:je-j.end<=300?j:null},Re.touches.length==1&&(p.activeTouch.left=Re.touches[0].pageX,p.activeTouch.top=Re.touches[0].pageY)}}),Ue(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),Ue(p.scroller,"touchend",function(Re){var je=p.activeTouch;if(je&&!Ta(p,Re)&&je.left!=null&&!je.moved&&new Date-je.start<300){var gt=t.coordsChar(p.activeTouch,"page"),At;!je.prev||ge(je,je.prev)?At=new Pa(gt,gt):!je.prev.prev||ge(je,je.prev.prev)?At=t.findWordAt(gt):At=new Pa(qt(gt.line,0),X(t.doc,qt(gt.line+1,0))),t.setSelection(At.anchor,At.head),t.focus(),Ce(Re)}G()}),Ue(p.scroller,"touchcancel",G),Ue(p.scroller,"scroll",function(){p.scroller.clientHeight&&(Ji(t,p.scroller.scrollTop),ei(t,p.scroller.scrollLeft,!0),yt(t,"scroll",t))}),Ue(p.scroller,"mousewheel",function(Re){return mo(t,Re)}),Ue(p.scroller,"DOMMouseScroll",function(Re){return mo(t,Re)}),Ue(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(Re){Pt(t,Re)||Be(Re)},over:function(Re){Pt(t,Re)||(Fl(t,Re),Be(Re))},start:function(Re){return gl(t,Re)},drop:Ha(t,Bl),leave:function(Re){Pt(t,Re)||Ls(t)}};var we=p.input.getField();Ue(we,"keyup",function(Re){return Cl.call(t,Re)}),Ue(we,"keydown",Ha(t,xl)),Ue(we,"keypress",Ha(t,Sl)),Ue(we,"focus",function(Re){return Ii(t,Re)}),Ue(we,"blur",function(Re){return no(t,Re)})}var Y=[];Ya.defineInitHook=function(t){return Y.push(t)};function Z(t,p,B,j){var G=t.doc,ne;B==null&&(B="add"),B=="smart"&&(G.mode.indent?ne=Mn(t,p).state:B="prev");var ge=t.options.tabSize,we=xn(G,p),Re=K(we.text,null,ge);we.stateAfter&&(we.stateAfter=null);var je=we.text.match(/^\s*/)[0],gt;if(!j&&!/\S/.test(we.text))gt=0,B="not";else if(B=="smart"&&(gt=G.mode.indent(ne,we.text.slice(je.length),we.text),gt==Se||gt>150)){if(!j)return;B="prev"}B=="prev"?p>G.first?gt=K(xn(G,p-1).text,null,ge):gt=0:B=="add"?gt=Re+t.options.indentUnit:B=="subtract"?gt=Re-t.options.indentUnit:typeof B=="number"&&(gt=Re+B),gt=Math.max(0,gt);var At="",tn=0;if(t.options.indentWithTabs)for(var zt=Math.floor(gt/ge);zt;--zt)tn+=ge,At+=" ";if(tnge,Re=Ke(p),je=null;if(we&&j.ranges.length>1)if(ie&&ie.text.join(` + height: `+(p.bottom-p.top+_t(t)+B.barHeight)+`px; + left: `+p.left+"px; width: "+Math.max(2,p.right-p.left)+"px;");t.display.lineSpace.appendChild(ne),ne.scrollIntoView(G),t.display.lineSpace.removeChild(ne)}}function Lo(t,p,B,j){j==null&&(j=0);var G;!t.options.lineWrapping&&p==B&&(p=p.ch?qt(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p,B=p.sticky=="before"?qt(p.line,p.ch+1,"before"):p);for(var ne=0;ne<5;ne++){var ge=!1,we=Gn(t,p),Re=!B||B==p?we:Gn(t,B);G={left:Math.min(we.left,Re.left),top:Math.min(we.top,Re.top)-j,right:Math.max(we.left,Re.left),bottom:Math.max(we.bottom,Re.bottom)+j};var je=Vi(t,G),gt=t.doc.scrollTop,At=t.doc.scrollLeft;if(je.scrollTop!=null&&(Ji(t,je.scrollTop),Math.abs(t.doc.scrollTop-gt)>1&&(ge=!0)),je.scrollLeft!=null&&(ei(t,je.scrollLeft),Math.abs(t.doc.scrollLeft-At)>1&&(ge=!0)),!ge)break}return G}function bo(t,p){var B=Vi(t,p);B.scrollTop!=null&&Ji(t,B.scrollTop),B.scrollLeft!=null&&ei(t,B.scrollLeft)}function Vi(t,p){var B=t.display,j=br(t.display);p.top<0&&(p.top=0);var G=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:B.scroller.scrollTop,ne=Me(t),ge={};p.bottom-p.top>ne&&(p.bottom=p.top+ne);var we=t.doc.height+Ze(B),Re=p.topwe-j;if(p.topG+ne){var gt=Math.min(p.top,(je?we:p.bottom)-ne);gt!=G&&(ge.scrollTop=gt)}var At=t.options.fixedGutter?0:B.gutters.offsetWidth,tn=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:B.scroller.scrollLeft-At,zt=nt(t)-B.gutters.offsetWidth,Tn=p.right-p.left>zt;return Tn&&(p.right=p.left+zt),p.left<10?ge.scrollLeft=0:p.leftzt+tn-3&&(ge.scrollLeft=p.right+(Tn?0:10)-zt),ge}function co(t,p){if(p==null)return;yo(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+p}function Xi(t){yo(t);var p=t.getCursor();t.curOp.scrollToPos={from:p,to:p,margin:t.options.cursorScrollMargin}}function Yi(t,p,B){(p!=null||B!=null)&&yo(t),p!=null&&(t.curOp.scrollLeft=p),B!=null&&(t.curOp.scrollTop=B)}function No(t,p){yo(t),t.curOp.scrollToPos=p}function yo(t){var p=t.curOp.scrollToPos;if(p){t.curOp.scrollToPos=null;var B=En(t,p.from),j=En(t,p.to);ao(t,B,j,p.margin)}}function ao(t,p,B,j){var G=Vi(t,{left:Math.min(p.left,B.left),top:Math.min(p.top,B.top)-j,right:Math.max(p.right,B.right),bottom:Math.max(p.bottom,B.bottom)+j});Yi(t,G.scrollLeft,G.scrollTop)}function Ji(t,p){if(Math.abs(t.doc.scrollTop-p)<2)return;T||fo(t,{top:p}),Qi(t,p,!0),T&&fo(t),ai(t,100)}function Qi(t,p,B){if(p=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,p)),t.display.scroller.scrollTop==p&&!B)return;t.doc.scrollTop=p,t.display.scrollbars.setScrollTop(p),t.display.scroller.scrollTop!=p&&(t.display.scroller.scrollTop=p)}function ei(t,p,B,j){if(p=Math.max(0,Math.min(p,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(B?p==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-p)<2)&&!j)return;t.doc.scrollLeft=p,ya(t),t.display.scroller.scrollLeft!=p&&(t.display.scroller.scrollLeft=p),t.display.scrollbars.setScrollLeft(p)}function Li(t){var p=t.display,B=p.gutters.offsetWidth,j=Math.round(t.doc.height+Ze(t.display));return{clientHeight:p.scroller.clientHeight,viewHeight:p.wrapper.clientHeight,scrollWidth:p.scroller.scrollWidth,clientWidth:p.scroller.clientWidth,viewWidth:p.wrapper.clientWidth,barLeft:t.options.fixedGutter?B:0,docHeight:j,scrollHeight:j+_t(t)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:B}}var Di=function(t,p,B){this.cm=B;var j=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),G=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");j.tabIndex=G.tabIndex=-1,t(j),t(G),Ue(j,"scroll",function(){j.clientHeight&&p(j.scrollTop,"vertical")}),Ue(G,"scroll",function(){G.clientWidth&&p(G.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Di.prototype.update=function(t){var p=t.scrollWidth>t.clientWidth+1,B=t.scrollHeight>t.clientHeight+1,j=t.nativeBarWidth;if(B){this.vert.style.display="block",this.vert.style.bottom=p?j+"px":"0";var G=t.viewHeight-(p?j:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+G)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(p){this.horiz.style.display="block",this.horiz.style.right=B?j+"px":"0",this.horiz.style.left=t.barLeft+"px";var ne=t.viewWidth-t.barLeft-(B?j:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(j==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:B?j:0,bottom:p?j:0}},Di.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Di.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Di.prototype.zeroWidthHack=function(){var t=s&&!i?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},Di.prototype.enableZeroWidthBar=function(t,p,B){t.style.pointerEvents="auto";function j(){var G=t.getBoundingClientRect(),ne=B=="vert"?document.elementFromPoint(G.right-1,(G.top+G.bottom)/2):document.elementFromPoint((G.right+G.left)/2,G.bottom-1);ne!=t?t.style.pointerEvents="none":p.set(1e3,j)}p.set(1e3,j)},Di.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Zi=function(){};Zi.prototype.update=function(){return{bottom:0,right:0}},Zi.prototype.setScrollLeft=function(){},Zi.prototype.setScrollTop=function(){},Zi.prototype.clear=function(){};function Ri(t,p){p||(p=Li(t));var B=t.display.barWidth,j=t.display.barHeight;Eo(t,p);for(var G=0;G<4&&B!=t.display.barWidth||j!=t.display.barHeight;G++)B!=t.display.barWidth&&t.options.lineWrapping&&ro(t),Eo(t,Li(t)),B=t.display.barWidth,j=t.display.barHeight}function Eo(t,p){var B=t.display,j=B.scrollbars.update(p);B.sizer.style.paddingRight=(B.barWidth=j.right)+"px",B.sizer.style.paddingBottom=(B.barHeight=j.bottom)+"px",B.heightForcer.style.borderBottom=j.bottom+"px solid transparent",j.right&&j.bottom?(B.scrollbarFiller.style.display="block",B.scrollbarFiller.style.height=j.bottom+"px",B.scrollbarFiller.style.width=j.right+"px"):B.scrollbarFiller.style.display="",j.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(B.gutterFiller.style.display="block",B.gutterFiller.style.height=j.bottom+"px",B.gutterFiller.style.width=p.gutterWidth+"px"):B.gutterFiller.style.display=""}var xo={native:Di,null:Zi};function Co(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&C(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new xo[t.options.scrollbarStyle](function(p){t.display.wrapper.insertBefore(p,t.display.scrollbarFiller),Ue(p,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),p.setAttribute("cm-not-content","true")},function(p,B){B=="horizontal"?ei(t,p):Ji(t,p)},t),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)}var io=0;function Ni(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++io},$r(t.curOp)}function qi(t){var p=t.curOp;p&&Gt(p,function(B){for(var j=0;j=B.viewTo)||B.maxLineChanged&&p.options.lineWrapping,t.update=t.mustUpdate&&new yi(p,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function so(t){t.updatedDisplay=t.mustUpdate&&Wi(t.cm,t.update)}function So(t){var p=t.cm,B=p.display;t.updatedDisplay&&ro(p),t.barMeasure=Li(p),B.maxLineChanged&&!p.options.lineWrapping&&(t.adjustWidthTo=qe(p,B.maxLine,B.maxLine.text.length).left+3,p.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(B.scroller.clientWidth,B.sizer.offsetLeft+t.adjustWidthTo+_t(p)+p.display.barWidth),t.maxScrollLeft=Math.max(0,B.sizer.offsetLeft+t.adjustWidthTo-nt(p))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=B.input.prepareSelection())}function Uo(t){var p=t.cm;t.adjustWidthTo!=null&&(p.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft=t.display.viewTo)return;var B=+new Date+t.options.workTime,j=Mn(t,p.highlightFrontier),G=[];p.iter(j.line,Math.min(p.first+p.size,t.display.viewTo+500),function(ne){if(j.line>=t.display.viewFrom){var ge=ne.styles,we=ne.text.length>t.options.maxHighlightLength?mn(p.mode,j.state):null,Re=ot(t,ne,j,!0);we&&(j.state=we),ne.styles=Re.styles;var je=ne.styleClasses,gt=Re.classes;gt?ne.styleClasses=gt:je&&(ne.styleClasses=null);for(var At=!ge||ge.length!=ne.styles.length||je!=gt&&(!je||!gt||je.bgClass!=gt.bgClass||je.textClass!=gt.textClass),tn=0;!At&&tnB)return ai(t,t.options.workDelay),!0}),p.highlightFrontier=j.line,p.modeFrontier=Math.max(p.modeFrontier,j.line),G.length&&fi(t,function(){for(var ne=0;ne=B.viewFrom&&p.visible.to<=B.viewTo&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo)&&B.renderedView==B.view&&Ai(t)==0)return!1;Ga(t)&&(Fa(t),p.dims=er(t));var G=j.first+j.size,ne=Math.max(p.visible.from-t.options.viewportMargin,j.first),ge=Math.min(G,p.visible.to+t.options.viewportMargin);B.viewFromge&&B.viewTo-ge<20&&(ge=Math.min(G,B.viewTo)),ca&&(ne=kn(t.doc,ne),ge=Rn(t.doc,ge));var we=ne!=B.viewFrom||ge!=B.viewTo||B.lastWrapHeight!=p.wrapperHeight||B.lastWrapWidth!=p.wrapperWidth;Fi(t,ne,ge),B.viewOffset=Br(xn(t.doc,B.viewFrom)),t.display.mover.style.top=B.viewOffset+"px";var Re=Ai(t);if(!we&&Re==0&&!p.force&&B.renderedView==B.view&&(B.updateLineNumbers==null||B.updateLineNumbers>=B.viewTo))return!1;var je=To(t);return Re>4&&(B.lineDiv.style.display="none"),Wo(t,B.updateLineNumbers,p.dims),Re>4&&(B.lineDiv.style.display=""),B.renderedView=B.view,$i(je),S(B.cursorDiv),S(B.selectionDiv),B.gutters.style.height=B.sizer.style.minHeight=0,we&&(B.lastWrapHeight=p.wrapperHeight,B.lastWrapWidth=p.wrapperWidth,ai(t,400)),B.updateLineNumbers=null,!0}function Oo(t,p){for(var B=p.viewport,j=!0;;j=!1){if(!j||!t.options.lineWrapping||p.oldDisplayWidth==nt(t)){if(B&&B.top!=null&&(B={top:Math.min(t.doc.height+Ze(t.display)-Me(t),B.top)}),p.visible=uo(t.display,t.doc,B),p.visible.from>=t.display.viewFrom&&p.visible.to<=t.display.viewTo)break}else j&&(p.visible=uo(t.display,t.doc,B));if(!Wi(t,p))break;ro(t);var G=Li(t);Na(t),Ri(t,G),Aa(t,G),p.force=!1}p.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(p.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function fo(t,p){var B=new yi(t,p);if(Wi(t,B)){ro(t),Oo(t,B);var j=Li(t);Na(t),Ri(t,j),Aa(t,j),B.finish()}}function Wo(t,p,B){var j=t.display,G=t.options.lineNumbers,ne=j.lineDiv,ge=ne.firstChild;function we(Tn){var Bn=Tn.nextSibling;return e&&s&&t.display.currentWheelTarget==Tn?Tn.style.display="none":Tn.parentNode.removeChild(Tn),Bn}for(var Re=j.view,je=j.viewFrom,gt=0;gt-1&&(zt=!1),$n(t,At,je,B)),zt&&(S(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(sn(t.options,je)))),ge=At.node.nextSibling}je+=At.size}for(;ge;)ge=we(ge)}function lo(t){var p=t.gutters.offsetWidth;t.sizer.style.marginLeft=p+"px"}function Aa(t,p){t.display.sizer.style.minHeight=p.docHeight+"px",t.display.heightForcer.style.top=p.docHeight+"px",t.display.gutters.style.height=p.docHeight+t.display.barHeight+_t(t)+"px"}function ya(t){var p=t.display,B=p.view;if(!p.alignWidgets&&(!p.gutters.firstChild||!t.options.fixedGutter))return;for(var j=pa(p)-p.scroller.scrollLeft+t.doc.scrollLeft,G=p.gutters.offsetWidth,ne=j+"px",ge=0;gege.clientWidth,Re=ge.scrollHeight>ge.clientHeight;if(!(j&&we||G&&Re))return;if(G&&s&&e){e:for(var je=p.target,gt=ne.view;je!=ge;je=je.parentNode)for(var At=0;At=0&&On(t,j.to())<=0)return B}return-1};var Pa=function(t,p){this.anchor=t,this.head=p};Pa.prototype.from=function(){return dr(this.anchor,this.head)},Pa.prototype.to=function(){return xr(this.anchor,this.head)},Pa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function sa(t,p,B){var j=t&&t.options.selectionsMayTouch,G=p[B];p.sort(function(tn,zt){return On(tn.from(),zt.from())}),B=he(p,G);for(var ne=1;ne0:Re>=0){var je=dr(we.from(),ge.from()),gt=xr(we.to(),ge.to()),At=we.empty()?ge.from()==ge.head:we.from()==we.head;ne<=B&&--B,p.splice(--ne,2,new Pa(At?gt:je,At?je:gt))}}return new hi(p,B)}function Cr(t,p){return new hi([new Pa(t,p||t)],0)}function Zr(t){return t.text?qt(t.from.line+t.text.length-1,$(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function va(t,p){if(On(t,p.from)<0)return t;if(On(t,p.to)<=0)return Zr(p);var B=t.line+p.text.length-(p.to.line-p.from.line)-1,j=t.ch;return t.line==p.to.line&&(j+=Zr(p).ch-p.to.ch),qt(B,j)}function Wa(t,p){for(var B=[],j=0;j1&&t.remove(we.line+1,Tn-1),t.insert(we.line+1,yr)}Jt(t,"change",t,p)}function Qa(t,p,B){function j(G,ne,ge){if(G.linked)for(var we=0;we1&&!t.done[t.done.length-2].ranges)return t.done.pop(),$(t.done)}function Qs(t,p,B,j){var G=t.history;G.undone.length=0;var ne=+new Date,ge,we;if((G.lastOp==j||G.lastOrigin==p.origin&&p.origin&&(p.origin.charAt(0)=="+"&&G.lastModTime>ne-(t.cm?t.cm.options.historyEventDelay:500)||p.origin.charAt(0)=="*"))&&(ge=Ml(G,G.lastOp==j)))we=$(ge.changes),On(p.from,p.to)==0&&On(p.from,we.to)==0?we.to=Zr(p):ge.changes.push(Ds(t,p));else{var Re=$(G.done);for((!Re||!Re.ranges)&&ms(t.sel,G.done),ge={changes:[Ds(t,p)],generation:G.generation},G.done.push(ge);G.done.length>G.undoDepth;)G.done.shift(),G.done[0].ranges||G.done.shift()}G.done.push(B),G.generation=++G.maxGeneration,G.lastModTime=G.lastSelTime=ne,G.lastOp=G.lastSelOp=j,G.lastOrigin=G.lastSelOrigin=p.origin,we||bt(t,"historyAdded")}function Il(t,p,B,j){var G=p.charAt(0);return G=="*"||G=="+"&&B.ranges.length==j.ranges.length&&B.somethingSelected()==j.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ps(t,p,B,j){var G=t.history,ne=j&&j.origin;B==G.lastSelOp||ne&&G.lastSelOrigin==ne&&(G.lastModTime==G.lastSelTime&&G.lastOrigin==ne||Il(t,ne,$(G.done),p))?G.done[G.done.length-1]=p:ms(p,G.done),G.lastSelTime=+new Date,G.lastSelOrigin=ne,G.lastSelOp=B,j&&j.clearRedo!==!1&&Js(G.undone)}function ms(t,p){var B=$(p);B&&B.ranges&&B.equals(t)||p.push(t)}function Rs(t,p,B,j){var G=p["spans_"+t.id],ne=0;t.iter(Math.max(t.first,B),Math.min(t.first+t.size,j),function(ge){ge.markedSpans&&((G||(G=p["spans_"+t.id]={}))[ne]=ge.markedSpans),++ne})}function gs(t){if(!t)return null;for(var p,B=0;B-1&&($(we)[At]=je[At],delete je[At]))}}return j}function vs(t,p,B,j){if(j){var G=t.anchor;if(B){var ne=On(p,G)<0;ne!=On(B,G)<0?(G=p,p=B):ne!=On(p,B)<0&&(p=B)}return new Pa(G,p)}else return new Pa(B||p,p)}function _s(t,p,B,j,G){G==null&&(G=t.cm&&(t.cm.display.shift||t.extend)),gi(t,new hi([vs(t.sel.primary(),p,B,G)],0),j)}function $s(t,p,B){for(var j=[],G=t.cm&&(t.cm.display.shift||t.extend),ne=0;ne=p.ch:we.to>p.ch))){if(G&&(bt(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(ne.markedSpans){--ge;continue}else break;if(!Re.atomic)continue;if(B){var At=Re.find(j<0?1:-1),tn=void 0;if((j<0?gt:je)&&(At=il(t,At,-j,At&&At.line==p.line?ne:null)),At&&At.line==p.line&&(tn=On(At,B))&&(j<0?tn<0:tn>0))return Go(t,At,p,j,G)}var zt=Re.find(j<0?-1:1);return(j<0?je:gt)&&(zt=il(t,zt,j,zt.line==p.line?ne:null)),zt?Go(t,zt,p,j,G):null}}return p}function bs(t,p,B,j,G){var ne=j||1,ge=Go(t,p,B,ne,G)||!G&&Go(t,p,B,ne,!0)||Go(t,p,B,-ne,G)||!G&&Go(t,p,B,-ne,!0);return ge||(t.cantEdit=!0,qt(t.first,0))}function il(t,p,B,j){return B<0&&p.ch==0?p.line>t.first?X(t,qt(p.line-1)):null:B>0&&p.ch==(j||xn(t,p.line)).text.length?p.line=0;--G)sl(t,{from:j[G].from,to:j[G].to,text:G?[""]:p.text,origin:p.origin});else sl(t,p)}function sl(t,p){if(p.text.length==1&&p.text[0]==""&&On(p.from,p.to)==0)return;var B=Wa(t,p);Qs(t,p,B,t.cm?t.cm.curOp.id:NaN),Vo(t,p,B,la(t,p));var j=[];Qa(t,function(G,ne){!ne&&he(j,G.history)==-1&&(dl(G.history,p),j.push(G.history)),Vo(G,p,null,la(G,p))})}function ys(t,p,B){var j=t.cm&&t.cm.state.suppressEdits;if(j&&!B)return;for(var G=t.history,ne,ge=t.sel,we=p=="undo"?G.done:G.undone,Re=p=="undo"?G.undone:G.done,je=0;je=0;--zt){var Tn=tn(zt);if(Tn)return Tn.v}}function ll(t,p){if(p==0)return;if(t.first+=p,t.sel=new hi(me(t.sel.ranges,function(G){return new Pa(qt(G.anchor.line+p,G.anchor.ch),qt(G.head.line+p,G.head.ch))}),t.sel.primIndex),t.cm){ka(t.cm,t.first,t.first-p,p);for(var B=t.cm.display,j=B.viewFrom;jt.lastLine())return;if(p.from.linene&&(p={from:p.from,to:qt(ne,xn(t,ne).text.length),text:[p.text[0]],origin:p.origin}),p.removed=fr(t,p.from,p.to),B||(B=Wa(t,p)),t.cm?Nl(t.cm,p,j):go(t,p,j),Ko(t,B,Te),t.cantEdit&&bs(t,qt(t.firstLine(),0))&&(t.cantEdit=!1)}function Nl(t,p,B){var j=t.doc,G=t.display,ne=p.from,ge=p.to,we=!1,Re=ne.line;t.options.lineWrapping||(Re=nr(an(xn(j,ne.line))),j.iter(Re,ge.line+1,function(zt){if(zt==G.maxLine)return we=!0,!0})),j.sel.contains(p.from,p.to)>-1&&it(t),go(j,p,B,Ea(t)),t.options.lineWrapping||(j.iter(Re,ne.line+p.text.length,function(zt){var Tn=Sn(zt);Tn>G.maxLineLength&&(G.maxLine=zt,G.maxLineLength=Tn,G.maxLineChanged=!0,we=!1)}),we&&(t.curOp.updateMaxLine=!0)),Ra(j,ne.line),ai(t,400);var je=p.text.length-(ge.line-ne.line)-1;p.full?ka(t):ne.line==ge.line&&p.text.length==1&&!Ki(t.doc,p)?Ua(t,ne.line,"text"):ka(t,ne.line,ge.line+1,je);var gt=He(t,"changes"),At=He(t,"change");if(At||gt){var tn={from:ne,to:ge,text:p.text,removed:p.removed,origin:p.origin};At&&Jt(t,"change",t,tn),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(tn)}t.display.selForContextMenu=null}function Xo(t,p,B,j,G){var ne;j||(j=B),On(j,B)<0&&(ne=[j,B],B=ne[0],j=ne[1]),typeof p=="string"&&(p=t.splitLines(p)),zo(t,{from:B,to:j,text:p,origin:G})}function ul(t,p,B,j){B1||!(this.children[0]instanceof Do))){var we=[];this.collapse(we),this.children=[new Do(we)],this.children[0].parent=this}},collapse:function(t){for(var p=0;p50){for(var ge=G.lines.length%25+25,we=ge;we10);t.parent.maybeSpill()},iterN:function(t,p,B){for(var j=0;jt.display.maxLineLength&&(t.display.maxLine=je,t.display.maxLineLength=gt,t.display.maxLineChanged=!0)}j!=null&&t&&this.collapsed&&ka(t,j,G+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&rl(t.doc)),t&&Jt(t,"markerCleared",t,this,j,G),p&&qi(t),this.parent&&this.parent.clear()},Gi.prototype.find=function(t,p){t==null&&this.type=="bookmark"&&(t=1);for(var B,j,G=0;G0||ge==0&&ne.clearWhenEmpty!==!1)return ne;if(ne.replacedWith&&(ne.collapsed=!0,ne.widgetNode=U("span",[ne.replacedWith],"CodeMirror-widget"),j.handleMouseEvents||ne.widgetNode.setAttribute("cm-ignore-events","true"),j.insertLeft&&(ne.widgetNode.insertLeft=!0)),ne.collapsed){if(An(t,p.line,p,B,ne)||p.line!=B.line&&An(t,B.line,p,B,ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");wa()}ne.addToHistory&&Qs(t,{from:p,to:B,origin:"markText"},t.sel,NaN);var we=p.line,Re=t.cm,je;if(t.iter(we,B.line+1,function(At){Re&&ne.collapsed&&!Re.options.lineWrapping&&an(At)==Re.display.maxLine&&(je=!0),ne.collapsed&&we!=p.line&&ar(At,0),oi(At,new Ja(ne,we==p.line?p.ch:null,we==B.line?B.ch:null)),++we}),ne.collapsed&&t.iter(p.line,B.line+1,function(At){Jn(t,At)&&ar(At,0)}),ne.clearOnEnter&&Ue(ne,"beforeCursorEnter",function(){return ne.clear()}),ne.readOnly&&(Ka(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),ne.collapsed&&(ne.id=++hl,ne.atomic=!0),Re){if(je&&(Re.curOp.updateMaxLine=!0),ne.collapsed)ka(Re,p.line,B.line+1);else if(ne.className||ne.startStyle||ne.endStyle||ne.css||ne.attributes||ne.title)for(var gt=p.line;gt<=B.line;gt++)Ua(Re,gt,"text");ne.atomic&&rl(Re.doc),Jt(Re,"markerAdded",Re,ne)}return ne}var Qo=function(t,p){this.markers=t,this.primary=p;for(var B=0;B=0;Re--)zo(this,j[Re]);we?tl(this,we):this.cm&&Xi(this.cm)}),undo:Xa(function(){ys(this,"undo")}),redo:Xa(function(){ys(this,"redo")}),undoSelection:Xa(function(){ys(this,"undo",!0)}),redoSelection:Xa(function(){ys(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,p=0,B=0,j=0;j=t.ch)&&p.push(G.marker.parent||G.marker)}return p},findMarks:function(t,p,B){t=X(this,t),p=X(this,p);var j=[],G=t.line;return this.iter(t.line,p.line+1,function(ne){var ge=ne.markedSpans;if(ge)for(var we=0;we=Re.to||Re.from==null&&G!=t.line||Re.from!=null&&G==p.line&&Re.from>=p.ch)&&(!B||B(Re.marker))&&j.push(Re.marker.parent||Re.marker)}++G}),j},getAllMarks:function(){var t=[];return this.iter(function(p){var B=p.markedSpans;if(B)for(var j=0;jt)return p=t,!0;t-=ne,++B}),X(this,qt(B,p))},indexFromPos:function(t){t=X(this,t);var p=t.ch;if(t.linep&&(p=t.from),t.to!=null&&t.to-1){p.state.draggingText(t),setTimeout(function(){return p.display.input.focus()},20);return}try{var gt=t.dataTransfer.getData("Text");if(gt){var At;if(p.state.draggingText&&!p.state.draggingText.copy&&(At=p.listSelections()),Ko(p.doc,Cr(B,B)),At)for(var tn=0;tn=0;we--)Xo(t.doc,"",j[we].from,j[we].to,"+delete");Xi(t)})}function Us(t,p,B){var j=Ae(t.text,p+B,B);return j<0||j>t.text.length?null:j}function js(t,p,B){var j=Us(t,p.ch,B);return j==null?null:new qt(p.line,j,B<0?"after":"before")}function Bs(t,p,B,j,G){if(t){p.doc.direction=="rtl"&&(G=-G);var ne=yt(B,p.doc.direction);if(ne){var ge=G<0?$(ne):ne[0],we=G<0==(ge.level==1),Re=we?"after":"before",je;if(ge.level>0||p.doc.direction=="rtl"){var gt=rt(p,B);je=G<0?B.text.length-1:0;var At=It(p,gt,je).top;je=Qe(function(tn){return It(p,gt,tn).top==At},G<0==(ge.level==1)?ge.from:ge.to-1,je),Re=="before"&&(je=Us(B,je,1))}else je=G<0?ge.to:ge.from;return new qt(j,je,Re)}}return new qt(j,G<0?B.text.length:0,G<0?"before":"after")}function Fs(t,p,B,j){var G=yt(p,t.doc.direction);if(!G)return js(p,B,j);B.ch>=p.text.length?(B.ch=p.text.length,B.sticky="before"):B.ch<=0&&(B.ch=0,B.sticky="after");var ne=mt(G,B.ch,B.sticky),ge=G[ne];if(t.doc.direction=="ltr"&&ge.level%2==0&&(j>0?ge.to>B.ch:ge.from=ge.from&&tn>=gt.begin)){var zt=At?"before":"after";return new qt(B.line,tn,zt)}}var Tn=function(yr,Ur,Er){for(var Xr=function(Va,vi){return vi?new qt(B.line,we(Va,1),"before"):new qt(B.line,Va,"after")};yr>=0&&yr0==(ia.level!=1),Sa=ea?Er.begin:we(Er.end,-1);if(ia.from<=Sa&&Sa0?gt.end:we(gt.begin,-1);return Zn!=null&&!(j>0&&Zn==p.text.length)&&(Bn=Tn(j>0?0:G.length-1,j,je(Zn)),Bn)?Bn:null}var qo={selectAll:ol,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Te)},killLine:function(t){return Zo(t,function(p){if(p.empty()){var B=xn(t.doc,p.head.line).text.length;return p.head.ch==B&&p.head.line0)G=new qt(G.line,G.ch+1),t.replaceRange(ne.charAt(G.ch-1)+ne.charAt(G.ch-2),qt(G.line,G.ch-2),G,"+transpose");else if(G.line>t.doc.first){var ge=xn(t.doc,G.line-1).text;ge&&(G=new qt(G.line,1),t.replaceRange(ne.charAt(0)+t.doc.lineSeparator()+ge.charAt(ge.length-1),qt(G.line-1,ge.length-1),G,"+transpose"))}}B.push(new Pa(G,G))}t.setSelections(B)})},newlineAndIndent:function(t){return fi(t,function(){for(var p=t.listSelections(),B=p.length-1;B>=0;B--)t.replaceRange(t.doc.lineSeparator(),p[B].anchor,p[B].head,"+input");p=t.listSelections();for(var j=0;jt&&On(p,this.pos)==0&&B==this.button};var ls,us;function Yl(t,p){var B=+new Date;return us&&us.compare(B,t,p)?(ls=us=null,"triple"):ls&&ls.compare(B,t,p)?(us=new Gs(B,t,p),ls=null,"double"):(ls=new Gs(B,t,p),us=null,"single")}function zs(t){var p=this,B=p.display;if(Pt(p,t)||B.activeTouch&&B.input.supportsTouch())return;if(B.input.ensurePolled(),B.shift=t.shiftKey,Ta(B,t)){e||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(Xs(p,t))return;var j=Oa(p,t),G=st(t),ne=j?Yl(j,G):"single";if(window.focus(),G==1&&p.state.selectingText&&p.state.selectingText(t),j&&wl(p,G,j,ne,t))return;G==1?j?Ql(p,j,ne,t):We(t)==B.scroller&&Ce(t):G==2?(j&&_s(p.doc,j),setTimeout(function(){return B.input.focus()},20)):G==3&&(R?p.display.input.onContextMenu(t):Mo(p))}function wl(t,p,B,j,G){var ne="Click";return j=="double"?ne="Double"+ne:j=="triple"&&(ne="Triple"+ne),ne=(p==1?"Left":p==2?"Middle":"Right")+ne,ss(t,bl(ne,G),G,function(ge){if(typeof ge=="string"&&(ge=qo[ge]),!ge)return!1;var we=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),we=ge(t,B)!=Se}finally{t.state.suppressEdits=!1}return we})}function Jl(t,p,B){var j=t.getOption("configureMouse"),G=j?j(t,p,B):{};if(G.unit==null){var ne=c?B.shiftKey&&B.metaKey:B.altKey;G.unit=ne?"rectangle":p=="single"?"char":p=="double"?"word":"line"}return(G.extend==null||t.doc.extend)&&(G.extend=t.doc.extend||B.shiftKey),G.addNew==null&&(G.addNew=s?B.metaKey:B.ctrlKey),G.moveOnDrag==null&&(G.moveOnDrag=!(s?B.altKey:B.ctrlKey)),G}function Ql(t,p,B,j){O?setTimeout(F(to,t),0):t.curOp.focus=V();var G=Jl(t,B,j),ne=t.doc.sel,ge;t.options.dragDrop&&Dt&&!t.isReadOnly()&&B=="single"&&(ge=ne.contains(p))>-1&&(On((ge=ne.ranges[ge]).from(),p)<0||p.xRel>0)&&(On(ge.to(),p)>0||p.xRel<0)?Zl(t,j,p,G):ql(t,j,p,G)}function Zl(t,p,B,j){var G=t.display,ne=!1,ge=Ha(t,function(je){e&&(G.scroller.draggable=!1),t.state.draggingText=!1,jt(G.wrapper.ownerDocument,"mouseup",ge),jt(G.wrapper.ownerDocument,"mousemove",we),jt(G.scroller,"dragstart",Re),jt(G.scroller,"drop",ge),ne||(Ce(je),j.addNew||_s(t.doc,B,null,null,j.extend),e&&!r||O&&m==9?setTimeout(function(){G.wrapper.ownerDocument.body.focus({preventScroll:!0}),G.input.focus()},20):G.input.focus())}),we=function(je){ne=ne||Math.abs(p.clientX-je.clientX)+Math.abs(p.clientY-je.clientY)>=10},Re=function(){return ne=!0};e&&(G.scroller.draggable=!0),t.state.draggingText=ge,ge.copy=!j.moveOnDrag,G.scroller.dragDrop&&G.scroller.dragDrop(),Ue(G.wrapper.ownerDocument,"mouseup",ge),Ue(G.wrapper.ownerDocument,"mousemove",we),Ue(G.scroller,"dragstart",Re),Ue(G.scroller,"drop",ge),Mo(t),setTimeout(function(){return G.input.focus()},20)}function Vs(t,p,B){if(B=="char")return new Pa(p,p);if(B=="word")return t.findWordAt(p);if(B=="line")return new Pa(qt(p.line,0),X(t.doc,qt(p.line+1,0)));var j=B(t,p);return new Pa(j.from,j.to)}function ql(t,p,B,j){var G=t.display,ne=t.doc;Ce(p);var ge,we,Re=ne.sel,je=Re.ranges;if(j.addNew&&!j.extend?(we=ne.sel.contains(B),we>-1?ge=je[we]:ge=new Pa(B,B)):(ge=ne.sel.primary(),we=ne.sel.primIndex),j.unit=="rectangle")j.addNew||(ge=new Pa(B,B)),B=Oa(t,p,!0,!0),we=-1;else{var gt=Vs(t,B,j.unit);j.extend?ge=vs(ge,gt.anchor,gt.head,j.extend):ge=gt}j.addNew?we==-1?(we=je.length,gi(ne,sa(t,je.concat([ge]),we),{scroll:!1,origin:"*mouse"})):je.length>1&&je[we].empty()&&j.unit=="char"&&!j.extend?(gi(ne,sa(t,je.slice(0,we).concat(je.slice(we+1)),0),{scroll:!1,origin:"*mouse"}),Re=ne.sel):Ao(ne,we,ge,ce):(we=0,gi(ne,new hi([ge],0),ce),Re=ne.sel);var At=B;function tn(Er){if(On(At,Er)==0)return;if(At=Er,j.unit=="rectangle"){for(var Xr=[],ia=t.options.tabSize,ea=K(xn(ne,B.line).text,B.ch,ia),Sa=K(xn(ne,Er.line).text,Er.ch,ia),Va=Math.min(ea,Sa),vi=Math.max(ea,Sa),ti=Math.min(B.line,Er.line),zi=Math.min(t.lastLine(),Math.max(B.line,Er.line));ti<=zi;ti++){var Ui=xn(ne,ti).text,ci=Ee(Ui,Va,ia);Va==vi?Xr.push(new Pa(qt(ti,ci),qt(ti,ci))):Ui.length>ci&&Xr.push(new Pa(qt(ti,ci),qt(ti,Ee(Ui,vi,ia))))}Xr.length||Xr.push(new Pa(B,B)),gi(ne,sa(t,Re.ranges.slice(0,we).concat(Xr),we),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Er)}else{var ji=ge,Ci=Vs(t,Er,j.unit),pi=ji.anchor,di;On(Ci.anchor,pi)>0?(di=Ci.head,pi=dr(ji.from(),Ci.anchor)):(di=Ci.anchor,pi=xr(ji.to(),Ci.head));var ii=Re.ranges.slice(0);ii[we]=$l(t,new Pa(X(ne,pi),di)),gi(ne,sa(t,ii,we),ce)}}var zt=G.wrapper.getBoundingClientRect(),Tn=0;function Bn(Er){var Xr=++Tn,ia=Oa(t,Er,!0,j.unit=="rectangle");if(!ia)return;if(On(ia,At)!=0){t.curOp.focus=V(),tn(ia);var ea=uo(G,ne);(ia.line>=ea.to||ia.linezt.bottom?20:0;Sa&&setTimeout(Ha(t,function(){if(Tn!=Xr)return;G.scroller.scrollTop+=Sa,Bn(Er)}),50)}}function Zn(Er){t.state.selectingText=!1,Tn=Infinity,Er&&(Ce(Er),G.input.focus()),jt(G.wrapper.ownerDocument,"mousemove",yr),jt(G.wrapper.ownerDocument,"mouseup",Ur),ne.history.lastSelOrigin=null}var yr=Ha(t,function(Er){Er.buttons===0||!st(Er)?Zn(Er):Bn(Er)}),Ur=Ha(t,Zn);t.state.selectingText=Ur,Ue(G.wrapper.ownerDocument,"mousemove",yr),Ue(G.wrapper.ownerDocument,"mouseup",Ur)}function $l(t,p){var B=p.anchor,j=p.head,G=xn(t.doc,B.line);if(On(B,j)==0&&B.sticky==j.sticky)return p;var ne=yt(G);if(!ne)return p;var ge=mt(ne,B.ch,B.sticky),we=ne[ge];if(we.from!=B.ch&&we.to!=B.ch)return p;var Re=ge+(we.from==B.ch==(we.level!=1)?0:1);if(Re==0||Re==ne.length)return p;var je;if(j.line!=B.line)je=(j.line-B.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var gt=mt(ne,j.ch,j.sticky),At=gt-ge||(j.ch-B.ch)*(we.level==1?-1:1);gt==Re-1||gt==Re?je=At<0:je=At>0}var tn=ne[Re+(je?-1:0)],zt=je==(tn.level==1),Tn=zt?tn.from:tn.to,Bn=zt?"after":"before";return B.ch==Tn&&B.sticky==Bn?p:new Pa(new qt(B.line,Tn,Bn),j)}function Tl(t,p,B,j){var G,ne;if(p.touches)G=p.touches[0].clientX,ne=p.touches[0].clientY;else try{G=p.clientX,ne=p.clientY}catch(tn){return!1}if(G>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;j&&Ce(p);var ge=t.display,we=ge.lineDiv.getBoundingClientRect();if(ne>we.bottom||!He(t,B))return Fe(p);ne-=we.top-ge.viewOffset;for(var Re=0;Re=G){var gt=Rr(t.doc,ne),At=t.display.gutterSpecs[Re];return bt(t,B,t,gt,At.className,p),Fe(p)}}}function Xs(t,p){return Tl(t,p,"gutterClick",!0)}function Ol(t,p){if(Ta(t.display,p)||Al(t,p))return;if(Pt(t,p,"contextmenu"))return;R||t.display.input.onContextMenu(p)}function Al(t,p){return He(t,"gutterContextMenu")?Tl(t,p,"gutterContextMenu",!1):!1}function Dl(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jr(t)}var $o={toString:function(){return"CodeMirror.Init"}},ws={},cs={};function eu(t){var p=t.optionHandlers;function B(j,G,ne,ge){t.defaults[j]=G,ne&&(p[j]=ge?function(we,Re,je){je!=$o&&ne(we,Re,je)}:ne)}t.defineOption=B,t.Init=$o,B("value","",function(j,G){return j.setValue(G)},!0),B("mode",null,function(j,G){j.doc.modeOption=G,$a(j)},!0),B("indentUnit",2,$a,!0),B("indentWithTabs",!1),B("smartIndent",!0),B("tabSize",4,function(j){xi(j),jr(j),ka(j)},!0),B("lineSeparator",null,function(j,G){if(j.doc.lineSep=G,!G)return;var ne=[],ge=j.doc.first;j.doc.iter(function(Re){for(var je=0;;){var gt=Re.text.indexOf(G,je);if(gt==-1)break;je=gt+G.length,ne.push(qt(ge,gt))}ge++});for(var we=ne.length-1;we>=0;we--)Xo(j.doc,G,ne[we],qt(ne[we].line,ne[we].ch+G.length))}),B("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(j,G,ne){j.state.specialChars=new RegExp(G.source+(G.test(" ")?"":"| "),"g"),ne!=$o&&j.refresh()}),B("specialCharPlaceholder",or,function(j){return j.refresh()},!0),B("electricChars",!0),B("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),B("spellcheck",!1,function(j,G){return j.getInputField().spellcheck=G},!0),B("autocorrect",!1,function(j,G){return j.getInputField().autocorrect=G},!0),B("autocapitalize",!1,function(j,G){return j.getInputField().autocapitalize=G},!0),B("rtlMoveVisually",!w),B("wholeLineUpdateBefore",!0),B("theme","default",function(j){Dl(j),ki(j)},!0),B("keyMap","default",function(j,G,ne){var ge=os(G),we=ne!=$o&&os(ne);we&&we.detach&&we.detach(j,ge),ge.attach&&ge.attach(j,we||null)}),B("extraKeys",null),B("configureMouse",null),B("lineWrapping",!1,nu,!0),B("gutters",[],function(j,G){j.display.gutterSpecs=ui(G,j.options.lineNumbers),ki(j)},!0),B("fixedGutter",!0,function(j,G){j.display.gutters.style.left=G?pa(j.display)+"px":"0",j.refresh()},!0),B("coverGutterNextToScrollbar",!1,function(j){return Ri(j)},!0),B("scrollbarStyle","native",function(j){Co(j),Ri(j),j.display.scrollbars.setScrollTop(j.doc.scrollTop),j.display.scrollbars.setScrollLeft(j.doc.scrollLeft)},!0),B("lineNumbers",!1,function(j,G){j.display.gutterSpecs=ui(j.options.gutters,G),ki(j)},!0),B("firstLineNumber",1,ki,!0),B("lineNumberFormatter",function(j){return j},ki,!0),B("showCursorWhenSelecting",!1,Na,!0),B("resetSelectionOnContextMenu",!0),B("lineWiseCopyCut",!0),B("pasteLinesPerSelection",!0),B("selectionsMayTouch",!1),B("readOnly",!1,function(j,G){G=="nocursor"&&(no(j),j.display.input.blur()),j.display.input.readOnlyChanged(G)}),B("screenReaderLabel",null,function(j,G){G=G===""?null:G,j.display.input.screenReaderLabelChanged(G)}),B("disableInput",!1,function(j,G){G||j.display.input.reset()},!0),B("dragDrop",!0,tu),B("allowDropFileTypes",null),B("cursorBlinkRate",530),B("cursorScrollMargin",0),B("cursorHeight",1,Na,!0),B("singleCursorHeightPerLine",!0,Na,!0),B("workTime",100),B("workDelay",100),B("flattenSpans",!0,xi,!0),B("addModeClass",!1,xi,!0),B("pollInterval",100),B("undoDepth",200,function(j,G){return j.doc.history.undoDepth=G}),B("historyEventDelay",1250),B("viewportMargin",10,function(j){return j.refresh()},!0),B("maxHighlightLength",1e4,xi,!0),B("moveInputWithCursor",!0,function(j,G){G||j.display.input.resetPosition()}),B("tabindex",null,function(j,G){return j.display.input.getField().tabIndex=G||""}),B("autofocus",null),B("direction","ltr",function(j,G){return j.doc.setDirection(G)},!0),B("phrases",null)}function tu(t,p,B){var j=B&&B!=$o;if(!p!=!j){var G=t.display.dragFunctions,ne=p?Ue:jt;ne(t.display.scroller,"dragstart",G.start),ne(t.display.scroller,"dragenter",G.enter),ne(t.display.scroller,"dragover",G.over),ne(t.display.scroller,"dragleave",G.leave),ne(t.display.scroller,"drop",G.drop)}}function nu(t){t.options.lineWrapping?(H(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(C(t.display.wrapper,"CodeMirror-wrap"),Yt(t)),ba(t),ka(t),jr(t),setTimeout(function(){return Ri(t)},100)}function Ya(t,p){var B=this;if(!(this instanceof Ya))return new Ya(t,p);this.options=p=p?I(p):{},I(ws,p,!1);var j=p.value;typeof j=="string"?j=new Ti(j,p.mode,null,p.lineSeparator,p.direction):p.mode&&(j.modeOption=p.mode),this.doc=j;var G=new Ya.inputStyles[p.inputStyle](this),ne=this.display=new ho(t,j,G,p);ne.wrapper.CodeMirror=this,Dl(this),p.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Co(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ee,keySeq:null,specialChars:null},p.autofocus&&!d&&ne.input.focus(),O&&m<11&&setTimeout(function(){return B.display.input.reset(!0)},20),Rl(this),ou(),Ni(this),this.curOp.forceUpdate=!0,As(this,j),p.autofocus&&!d||this.hasFocus()?setTimeout(function(){B.hasFocus()&&!B.state.focused&&Ii(B)},20):no(this);for(var ge in cs)cs.hasOwnProperty(ge)&&cs[ge](this,p[ge],$o);Ga(this),p.finishInit&&p.finishInit(this);for(var we=0;we20*20}Ue(p.scroller,"touchstart",function(Re){if(!Pt(t,Re)&&!ne(Re)&&!Xs(t,Re)){p.input.ensurePolled(),clearTimeout(B);var je=+new Date;p.activeTouch={start:je,moved:!1,prev:je-j.end<=300?j:null},Re.touches.length==1&&(p.activeTouch.left=Re.touches[0].pageX,p.activeTouch.top=Re.touches[0].pageY)}}),Ue(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),Ue(p.scroller,"touchend",function(Re){var je=p.activeTouch;if(je&&!Ta(p,Re)&&je.left!=null&&!je.moved&&new Date-je.start<300){var gt=t.coordsChar(p.activeTouch,"page"),At;!je.prev||ge(je,je.prev)?At=new Pa(gt,gt):!je.prev.prev||ge(je,je.prev.prev)?At=t.findWordAt(gt):At=new Pa(qt(gt.line,0),X(t.doc,qt(gt.line+1,0))),t.setSelection(At.anchor,At.head),t.focus(),Ce(Re)}G()}),Ue(p.scroller,"touchcancel",G),Ue(p.scroller,"scroll",function(){p.scroller.clientHeight&&(Ji(t,p.scroller.scrollTop),ei(t,p.scroller.scrollLeft,!0),bt(t,"scroll",t))}),Ue(p.scroller,"mousewheel",function(Re){return mo(t,Re)}),Ue(p.scroller,"DOMMouseScroll",function(Re){return mo(t,Re)}),Ue(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(Re){Pt(t,Re)||Be(Re)},over:function(Re){Pt(t,Re)||(Fl(t,Re),Be(Re))},start:function(Re){return gl(t,Re)},drop:Ha(t,Bl),leave:function(Re){Pt(t,Re)||Ls(t)}};var we=p.input.getField();Ue(we,"keyup",function(Re){return Cl.call(t,Re)}),Ue(we,"keydown",Ha(t,xl)),Ue(we,"keypress",Ha(t,Sl)),Ue(we,"focus",function(Re){return Ii(t,Re)}),Ue(we,"blur",function(Re){return no(t,Re)})}var Y=[];Ya.defineInitHook=function(t){return Y.push(t)};function Z(t,p,B,j){var G=t.doc,ne;B==null&&(B="add"),B=="smart"&&(G.mode.indent?ne=Mn(t,p).state:B="prev");var ge=t.options.tabSize,we=xn(G,p),Re=K(we.text,null,ge);we.stateAfter&&(we.stateAfter=null);var je=we.text.match(/^\s*/)[0],gt;if(!j&&!/\S/.test(we.text))gt=0,B="not";else if(B=="smart"&&(gt=G.mode.indent(ne,we.text.slice(je.length),we.text),gt==Se||gt>150)){if(!j)return;B="prev"}B=="prev"?p>G.first?gt=K(xn(G,p-1).text,null,ge):gt=0:B=="add"?gt=Re+t.options.indentUnit:B=="subtract"?gt=Re-t.options.indentUnit:typeof B=="number"&&(gt=Re+B),gt=Math.max(0,gt);var At="",tn=0;if(t.options.indentWithTabs)for(var zt=Math.floor(gt/ge);zt;--zt)tn+=ge,At+=" ";if(tnge,Re=Ke(p),je=null;if(we&&j.ranges.length>1)if(ie&&ie.text.join(` `)==p){if(j.ranges.length%ie.text.length==0){je=[];for(var gt=0;gt=0;tn--){var zt=j.ranges[tn],Tn=zt.from(),Bn=zt.to();zt.empty()&&(B&&B>0?Tn=qt(Tn.line,Tn.ch-B):t.state.overwrite&&!we?Bn=qt(Bn.line,Math.min(xn(ne,Bn.line).text.length,Bn.ch+$(Re).length)):we&&ie&&ie.lineWise&&ie.text.join(` `)==Re.join(` -`)&&(Tn=Bn=qt(Tn.line,0)));var Zn={from:Tn,to:Bn,text:je?je[tn%je.length]:Re,origin:G||(we?"paste":t.state.cutIncoming>ge?"cut":"+input")};zo(t.doc,Zn),Jt(t,"inputRead",t,Zn)}p&&!we&&ze(t,p),Xi(t),t.curOp.updateInput<2&&(t.curOp.updateInput=At),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function ke(t,p){var B=t.clipboardData&&t.clipboardData.getData("Text");if(B)return t.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&fi(p,function(){return Ne(p,B,0,null,"paste")}),!0}function ze(t,p){if(!t.options.electricChars||!t.options.smartIndent)return;for(var B=t.doc.sel,j=B.ranges.length-1;j>=0;j--){var G=B.ranges[j];if(G.head.ch>100||j&&B.ranges[j-1].head.line==G.head.line)continue;var ne=t.getModeAt(G.head),ge=!1;if(ne.electricChars){for(var we=0;we-1){ge=Z(t,G.head.line,"smart");break}}else ne.electricInput&&(ne.electricInput.test(xn(t.doc,G.head.line).text.slice(0,G.head.ch))&&(ge=Z(t,G.head.line,"smart")));ge&&Jt(t,"electricInput",t,G.head.line)}}function Ve(t){for(var p=[],B=[],j=0;jne&&(Z(this,we.head.line,j,!0),ne=we.head.line,ge==this.doc.sel.primIndex&&Xi(this));else{var Re=we.from(),je=we.to(),gt=Math.max(ne,Re.line);ne=Math.min(this.lastLine(),je.line-(je.ch?0:1))+1;for(var At=gt;At0&&Ao(this.doc,ge,new Pa(Re,tn[ge].to()),Te)}}}),getTokenAt:function(j,G){return Ar(this,j,G)},getLineTokens:function(j,G){return Ar(this,qt(j),G,!0)},getTokenTypeAt:function(j){j=X(this.doc,j);var G=Qt(this,xn(this.doc,j.line)),ne=0,ge=(G.length-1)/2,we=j.ch,Re;if(we==0)Re=G[2];else for(;;){var je=ne+ge>>1;if((je?G[je*2-1]:0)>=we)ge=je;else if(G[je*2+1]Re&&(j=Re,ge=!0),we=xn(this.doc,j)}else we=j;return ta(this,we,{top:0,left:0},G||"page",ne||ge).top+(ge?this.doc.height-Br(we):0)},defaultTextHeight:function(){return br(this.display)},defaultCharWidth:function(){return Ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(j,G,ne,ge,we){var Re=this.display;j=Gn(this,X(this.doc,j));var je=j.bottom,gt=j.left;if(G.style.position="absolute",G.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(G),Re.sizer.appendChild(G),ge=="over")je=j.top;else if(ge=="above"||ge=="near"){var At=Math.max(Re.wrapper.clientHeight,this.doc.height),tn=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(ge=="above"||j.bottom+G.offsetHeight>At)&&j.top>G.offsetHeight?je=j.top-G.offsetHeight:j.bottom+G.offsetHeight<=At&&(je=j.bottom),gt+G.offsetWidth>tn&&(gt=tn-G.offsetWidth)}G.style.top=je+"px",G.style.left=G.style.right="",we=="right"?(gt=Re.sizer.clientWidth-G.offsetWidth,G.style.right="0px"):(we=="left"?gt=0:we=="middle"&&(gt=(Re.sizer.clientWidth-G.offsetWidth)/2),G.style.left=gt+"px"),ne&&bo(this,{left:gt,top:je,right:gt+G.offsetWidth,bottom:je+G.offsetHeight})},triggerOnKeyDown:ri(xl),triggerOnKeyPress:ri(Sl),triggerOnKeyUp:Cl,triggerOnMouseDown:ri(zs),execCommand:function(j){if(qo.hasOwnProperty(j))return qo[j].call(null,this)},triggerElectric:ri(function(j){ze(this,j)}),findPosH:function(j,G,ne,ge){var we=1;G<0&&(we=-1,G=-G);for(var Re=X(this.doc,j),je=0;je0&>(ne.charAt(ge-1));)--ge;for(;we.5||this.options.lineWrapping)&&ba(this),yt(this,"refresh",this)}),swapDoc:ri(function(j){var G=this.doc;return G.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,j),jr(this),this.display.input.reset(),Yi(this,j.scrollLeft,j.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,G),G}),phrase:function(j){var G=this.options.phrases;return G&&Object.prototype.hasOwnProperty.call(G,j)?G[j]:j},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ge(t),t.registerHelper=function(j,G,ne){B.hasOwnProperty(j)||(B[j]=t[j]={_global:[]}),B[j][G]=ne},t.registerGlobalHelper=function(j,G,ne,ge){t.registerHelper(j,G,ge),B[j]._global.push({pred:ne,val:ge})}}function Tt(t,p,B,j,G){var ne=p,ge=B,we=xn(t,p.line),Re=G&&t.direction=="rtl"?-B:B;function je(){var Ur=p.line+Re;return Ur=t.first+t.size?!1:(p=new qt(Ur,p.ch,p.sticky),we=xn(t,Ur))}function gt(Ur){var Er;if(j=="codepoint"){var Xr=we.text.charCodeAt(p.ch+(j>0?0:-1));isNaN(Xr)?Er=null:Er=new qt(p.line,Math.max(0,Math.min(we.text.length,p.ch+B*(Xr>=55296&&Xr<56320?2:1))),-B)}else G?Er=Fs(t.cm,we,p,B):Er=js(we,p,B);if(Er==null)if(!Ur&&je())p=Bs(G,t.cm,we,p.line,Re);else return!1;else p=Er;return!0}if(j=="char"||j=="codepoint")gt();else if(j=="column")gt(!0);else if(j=="word"||j=="group")for(var At=null,tn=j=="group",zt=t.cm&&t.cm.getHelper(p,"wordChars"),Tn=!0;!(B<0&&!gt(!Tn));Tn=!1){var Bn=we.text.charAt(p.ch)||` +`)&&(Tn=Bn=qt(Tn.line,0)));var Zn={from:Tn,to:Bn,text:je?je[tn%je.length]:Re,origin:G||(we?"paste":t.state.cutIncoming>ge?"cut":"+input")};zo(t.doc,Zn),Jt(t,"inputRead",t,Zn)}p&&!we&&ze(t,p),Xi(t),t.curOp.updateInput<2&&(t.curOp.updateInput=At),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function ke(t,p){var B=t.clipboardData&&t.clipboardData.getData("Text");if(B)return t.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&fi(p,function(){return Ne(p,B,0,null,"paste")}),!0}function ze(t,p){if(!t.options.electricChars||!t.options.smartIndent)return;for(var B=t.doc.sel,j=B.ranges.length-1;j>=0;j--){var G=B.ranges[j];if(G.head.ch>100||j&&B.ranges[j-1].head.line==G.head.line)continue;var ne=t.getModeAt(G.head),ge=!1;if(ne.electricChars){for(var we=0;we-1){ge=Z(t,G.head.line,"smart");break}}else ne.electricInput&&(ne.electricInput.test(xn(t.doc,G.head.line).text.slice(0,G.head.ch))&&(ge=Z(t,G.head.line,"smart")));ge&&Jt(t,"electricInput",t,G.head.line)}}function Ve(t){for(var p=[],B=[],j=0;jne&&(Z(this,we.head.line,j,!0),ne=we.head.line,ge==this.doc.sel.primIndex&&Xi(this));else{var Re=we.from(),je=we.to(),gt=Math.max(ne,Re.line);ne=Math.min(this.lastLine(),je.line-(je.ch?0:1))+1;for(var At=gt;At0&&Ao(this.doc,ge,new Pa(Re,tn[ge].to()),Te)}}}),getTokenAt:function(j,G){return Ar(this,j,G)},getLineTokens:function(j,G){return Ar(this,qt(j),G,!0)},getTokenTypeAt:function(j){j=X(this.doc,j);var G=Qt(this,xn(this.doc,j.line)),ne=0,ge=(G.length-1)/2,we=j.ch,Re;if(we==0)Re=G[2];else for(;;){var je=ne+ge>>1;if((je?G[je*2-1]:0)>=we)ge=je;else if(G[je*2+1]Re&&(j=Re,ge=!0),we=xn(this.doc,j)}else we=j;return ta(this,we,{top:0,left:0},G||"page",ne||ge).top+(ge?this.doc.height-Br(we):0)},defaultTextHeight:function(){return br(this.display)},defaultCharWidth:function(){return Ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(j,G,ne,ge,we){var Re=this.display;j=Gn(this,X(this.doc,j));var je=j.bottom,gt=j.left;if(G.style.position="absolute",G.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(G),Re.sizer.appendChild(G),ge=="over")je=j.top;else if(ge=="above"||ge=="near"){var At=Math.max(Re.wrapper.clientHeight,this.doc.height),tn=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(ge=="above"||j.bottom+G.offsetHeight>At)&&j.top>G.offsetHeight?je=j.top-G.offsetHeight:j.bottom+G.offsetHeight<=At&&(je=j.bottom),gt+G.offsetWidth>tn&&(gt=tn-G.offsetWidth)}G.style.top=je+"px",G.style.left=G.style.right="",we=="right"?(gt=Re.sizer.clientWidth-G.offsetWidth,G.style.right="0px"):(we=="left"?gt=0:we=="middle"&&(gt=(Re.sizer.clientWidth-G.offsetWidth)/2),G.style.left=gt+"px"),ne&&bo(this,{left:gt,top:je,right:gt+G.offsetWidth,bottom:je+G.offsetHeight})},triggerOnKeyDown:ri(xl),triggerOnKeyPress:ri(Sl),triggerOnKeyUp:Cl,triggerOnMouseDown:ri(zs),execCommand:function(j){if(qo.hasOwnProperty(j))return qo[j].call(null,this)},triggerElectric:ri(function(j){ze(this,j)}),findPosH:function(j,G,ne,ge){var we=1;G<0&&(we=-1,G=-G);for(var Re=X(this.doc,j),je=0;je0&>(ne.charAt(ge-1));)--ge;for(;we.5||this.options.lineWrapping)&&ba(this),bt(this,"refresh",this)}),swapDoc:ri(function(j){var G=this.doc;return G.cm=null,this.state.selectingText&&this.state.selectingText(),As(this,j),jr(this),this.display.input.reset(),Yi(this,j.scrollLeft,j.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,G),G}),phrase:function(j){var G=this.options.phrases;return G&&Object.prototype.hasOwnProperty.call(G,j)?G[j]:j},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ge(t),t.registerHelper=function(j,G,ne){B.hasOwnProperty(j)||(B[j]=t[j]={_global:[]}),B[j][G]=ne},t.registerGlobalHelper=function(j,G,ne,ge){t.registerHelper(j,G,ge),B[j]._global.push({pred:ne,val:ge})}}function Tt(t,p,B,j,G){var ne=p,ge=B,we=xn(t,p.line),Re=G&&t.direction=="rtl"?-B:B;function je(){var Ur=p.line+Re;return Ur=t.first+t.size?!1:(p=new qt(Ur,p.ch,p.sticky),we=xn(t,Ur))}function gt(Ur){var Er;if(j=="codepoint"){var Xr=we.text.charCodeAt(p.ch+(j>0?0:-1));isNaN(Xr)?Er=null:Er=new qt(p.line,Math.max(0,Math.min(we.text.length,p.ch+B*(Xr>=55296&&Xr<56320?2:1))),-B)}else G?Er=Fs(t.cm,we,p,B):Er=js(we,p,B);if(Er==null)if(!Ur&&je())p=Bs(G,t.cm,we,p.line,Re);else return!1;else p=Er;return!0}if(j=="char"||j=="codepoint")gt();else if(j=="column")gt(!0);else if(j=="word"||j=="group")for(var At=null,tn=j=="group",zt=t.cm&&t.cm.getHelper(p,"wordChars"),Tn=!0;!(B<0&&!gt(!Tn));Tn=!1){var Bn=we.text.charAt(p.ch)||` `,Zn=Q(Bn,zt)?"w":tn&&Bn==` `?"n":!tn||/\s/.test(Bn)?null:"p";if(tn&&!Tn&&!Zn&&(Zn="s"),At&&At!=Zn){B<0&&(B=1,gt(),p.sticky="after");break}if(Zn&&(At=Zn),B>0&&!gt(!Tn))break}var yr=bs(t,p,ne,ge,!0);return Fr(ne,yr)&&(yr.hitSide=!0),yr}function St(t,p,B,j){var G=t.doc,ne=p.left,ge;if(j=="page"){var we=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Re=Math.max(we-.5*br(t.display),3);ge=(B>0?p.bottom:p.top)+B*Re}else j=="line"&&(ge=B>0?p.bottom+3:p.top-3);for(var je;!(je=Vr(t,ne,ge),!je.outside);){if(B<0?ge<=0:ge>=G.height){je.hitSide=!0;break}ge+=B*5}return je}var kt=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};kt.prototype.init=function(t){var p=this,B=this,j=B.cm,G=B.div=t.lineDiv;xt(G,j.options.spellcheck,j.options.autocorrect,j.options.autocapitalize);function ne(we){for(var Re=we.target;Re;Re=Re.parentNode){if(Re==G)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Re.className))break}return!1}Ue(G,"paste",function(we){if(!ne(we)||Pt(j,we)||ke(we,j))return;m<=11&&setTimeout(Ha(j,function(){return p.updateFromDOM()}),20)}),Ue(G,"compositionstart",function(we){p.composing={data:we.data,done:!1}}),Ue(G,"compositionupdate",function(we){p.composing||(p.composing={data:we.data,done:!1})}),Ue(G,"compositionend",function(we){p.composing&&(we.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),Ue(G,"touchstart",function(){return B.forceCompositionEnd()}),Ue(G,"input",function(){p.composing||p.readFromDOMSoon()});function ge(we){if(!ne(we)||Pt(j,we))return;if(j.somethingSelected())ye({lineWise:!1,text:j.getSelections()}),we.type=="cut"&&j.replaceSelection("",null,"cut");else if(j.options.lineWiseCopyCut){var Re=Ve(j);ye({lineWise:!0,text:Re.text}),we.type=="cut"&&j.operation(function(){j.setSelections(Re.ranges,0,Te),j.replaceSelection("",null,"cut")})}else return;if(we.clipboardData){we.clipboardData.clearData();var je=ie.text.join(` `);if(we.clipboardData.setData("Text",je),we.clipboardData.getData("Text")==je){we.preventDefault();return}}var gt=Ut(),At=gt.firstChild;j.display.lineSpace.insertBefore(gt,j.display.lineSpace.firstChild),At.value=ie.text.join(` -`);var tn=document.activeElement;W(At),setTimeout(function(){j.display.lineSpace.removeChild(gt),tn.focus(),tn==G&&B.showPrimarySelection()},50)}Ue(G,"copy",ge),Ue(G,"cut",ge)},kt.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},kt.prototype.prepareSelection=function(){var t=bi(this.cm,!1);return t.focus=document.activeElement==this.div,t},kt.prototype.showSelection=function(t,p){if(!t||!this.cm.display.view.length)return;(t.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(t)},kt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},kt.prototype.showPrimarySelection=function(){var t=this.getSelection(),p=this.cm,B=p.doc.sel.primary(),j=B.from(),G=B.to();if(p.display.viewTo==p.display.viewFrom||j.line>=p.display.viewTo||G.line=p.display.viewFrom&&hn(p,j)||{node:we[0].measure.map[2],offset:0},je=G.linet.firstLine()&&(j=qt(j.line-1,xn(t.doc,j.line-1).length)),G.ch==xn(t.doc,G.line).text.length&&G.linep.viewTo-1)return!1;var ne,ge,we;j.line==p.viewFrom||(ne=ga(t,j.line))==0?(ge=nr(p.view[0].line),we=p.view[0].node):(ge=nr(p.view[ne].line),we=p.view[ne-1].node.nextSibling);var Re=ga(t,G.line),je,gt;if(Re==p.view.length-1?(je=p.viewTo-1,gt=p.lineDiv.lastChild):(je=nr(p.view[Re+1].line)-1,gt=p.view[Re+1].node.previousSibling),!we)return!1;for(var At=t.doc.splitLines(kr(t,we,gt,ge,je)),tn=fr(t.doc,qt(ge,0),qt(je,xn(t.doc,je).text.length));At.length>1&&tn.length>1;)if($(At)==$(tn))At.pop(),tn.pop(),je--;else if(At[0]==tn[0])At.shift(),tn.shift(),ge++;else break;for(var zt=0,Tn=0,Bn=At[0],Zn=tn[0],yr=Math.min(Bn.length,Zn.length);ztj.ch&&Ur.charCodeAt(Ur.length-Tn-1)==Er.charCodeAt(Er.length-Tn-1);)zt--,Tn++;At[At.length-1]=Ur.slice(0,Ur.length-Tn).replace(/^\u200b+/,""),At[0]=At[0].slice(zt).replace(/\u200b+$/,"");var ia=qt(ge,zt),ea=qt(je,tn.length?$(tn).length-Tn:0);if(At.length>1||At[0]||On(ia,ea))return Xo(t.doc,At,ia,ea,"+input"),!0},kt.prototype.ensurePolled=function(){this.forceCompositionEnd()},kt.prototype.reset=function(){this.forceCompositionEnd()},kt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},kt.prototype.readFromDOMSoon=function(){var t=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80)},kt.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&fi(this.cm,function(){return ka(t.cm)})},kt.prototype.setUneditable=function(t){t.contentEditable="false"},kt.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Ha(this.cm,Ne)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},kt.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},kt.prototype.onContextMenu=function(){},kt.prototype.resetPosition=function(){},kt.prototype.needsContentAttribute=!0;function hn(t,p){var B=pt(t,p.line);if(!B||B.hidden)return null;var j=xn(t.doc,p.line),G=Le(B,j,p.line),ne=Et(j,t.doc.direction),ge="left";if(ne){var we=mt(ne,p.ch);ge=we%2?"right":"left"}var Re=fn(G.map,p.ch,ge);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function ur(t){for(var p=t;p;p=p.parentNode)if(/CodeMirror-gutter-wrapper/.test(p.className))return!0;return!1}function gr(t,p){return p&&(t.bad=!0),t}function kr(t,p,B,j,G){var ne="",ge=!1,we=t.doc.lineSeparator(),Re=!1;function je(zt){return function(Tn){return Tn.id==zt}}function gt(){ge&&(ne+=we,Re&&(ne+=we),ge=Re=!1)}function At(zt){zt&&(gt(),ne+=zt)}function tn(zt){if(zt.nodeType==1){var Tn=zt.getAttribute("cm-text");if(Tn){At(Tn);return}var Bn=zt.getAttribute("cm-marker"),Zn;if(Bn){var yr=t.findMarks(qt(j,0),qt(G+1,0),je(+Bn));yr.length&&(Zn=yr[0].find(0))&&At(fr(t.doc,Zn.from,Zn.to).join(we));return}if(zt.getAttribute("contenteditable")=="false")return;var Ur=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;Ur&>();for(var Er=0;Er=9&&p.hasSelection&&(p.hasSelection=null),B.poll()}),Ue(G,"paste",function(ge){if(Pt(j,ge)||ke(ge,j))return;j.state.pasteIncoming=+new Date,B.fastPoll()});function ne(ge){if(Pt(j,ge))return;if(j.somethingSelected())ye({lineWise:!1,text:j.getSelections()});else if(j.options.lineWiseCopyCut){var we=Ve(j);ye({lineWise:!0,text:we.text}),ge.type=="cut"?j.setSelections(we.ranges,null,Te):(B.prevInput="",G.value=we.text.join(` +`);var tn=document.activeElement;W(At),setTimeout(function(){j.display.lineSpace.removeChild(gt),tn.focus(),tn==G&&B.showPrimarySelection()},50)}Ue(G,"copy",ge),Ue(G,"cut",ge)},kt.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},kt.prototype.prepareSelection=function(){var t=bi(this.cm,!1);return t.focus=document.activeElement==this.div,t},kt.prototype.showSelection=function(t,p){if(!t||!this.cm.display.view.length)return;(t.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(t)},kt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},kt.prototype.showPrimarySelection=function(){var t=this.getSelection(),p=this.cm,B=p.doc.sel.primary(),j=B.from(),G=B.to();if(p.display.viewTo==p.display.viewFrom||j.line>=p.display.viewTo||G.line=p.display.viewFrom&&hn(p,j)||{node:we[0].measure.map[2],offset:0},je=G.linet.firstLine()&&(j=qt(j.line-1,xn(t.doc,j.line-1).length)),G.ch==xn(t.doc,G.line).text.length&&G.linep.viewTo-1)return!1;var ne,ge,we;j.line==p.viewFrom||(ne=ga(t,j.line))==0?(ge=nr(p.view[0].line),we=p.view[0].node):(ge=nr(p.view[ne].line),we=p.view[ne-1].node.nextSibling);var Re=ga(t,G.line),je,gt;if(Re==p.view.length-1?(je=p.viewTo-1,gt=p.lineDiv.lastChild):(je=nr(p.view[Re+1].line)-1,gt=p.view[Re+1].node.previousSibling),!we)return!1;for(var At=t.doc.splitLines(kr(t,we,gt,ge,je)),tn=fr(t.doc,qt(ge,0),qt(je,xn(t.doc,je).text.length));At.length>1&&tn.length>1;)if($(At)==$(tn))At.pop(),tn.pop(),je--;else if(At[0]==tn[0])At.shift(),tn.shift(),ge++;else break;for(var zt=0,Tn=0,Bn=At[0],Zn=tn[0],yr=Math.min(Bn.length,Zn.length);ztj.ch&&Ur.charCodeAt(Ur.length-Tn-1)==Er.charCodeAt(Er.length-Tn-1);)zt--,Tn++;At[At.length-1]=Ur.slice(0,Ur.length-Tn).replace(/^\u200b+/,""),At[0]=At[0].slice(zt).replace(/\u200b+$/,"");var ia=qt(ge,zt),ea=qt(je,tn.length?$(tn).length-Tn:0);if(At.length>1||At[0]||On(ia,ea))return Xo(t.doc,At,ia,ea,"+input"),!0},kt.prototype.ensurePolled=function(){this.forceCompositionEnd()},kt.prototype.reset=function(){this.forceCompositionEnd()},kt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},kt.prototype.readFromDOMSoon=function(){var t=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80)},kt.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&fi(this.cm,function(){return ka(t.cm)})},kt.prototype.setUneditable=function(t){t.contentEditable="false"},kt.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Ha(this.cm,Ne)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},kt.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},kt.prototype.onContextMenu=function(){},kt.prototype.resetPosition=function(){},kt.prototype.needsContentAttribute=!0;function hn(t,p){var B=pt(t,p.line);if(!B||B.hidden)return null;var j=xn(t.doc,p.line),G=Le(B,j,p.line),ne=yt(j,t.doc.direction),ge="left";if(ne){var we=mt(ne,p.ch);ge=we%2?"right":"left"}var Re=fn(G.map,p.ch,ge);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function ur(t){for(var p=t;p;p=p.parentNode)if(/CodeMirror-gutter-wrapper/.test(p.className))return!0;return!1}function gr(t,p){return p&&(t.bad=!0),t}function kr(t,p,B,j,G){var ne="",ge=!1,we=t.doc.lineSeparator(),Re=!1;function je(zt){return function(Tn){return Tn.id==zt}}function gt(){ge&&(ne+=we,Re&&(ne+=we),ge=Re=!1)}function At(zt){zt&&(gt(),ne+=zt)}function tn(zt){if(zt.nodeType==1){var Tn=zt.getAttribute("cm-text");if(Tn){At(Tn);return}var Bn=zt.getAttribute("cm-marker"),Zn;if(Bn){var yr=t.findMarks(qt(j,0),qt(G+1,0),je(+Bn));yr.length&&(Zn=yr[0].find(0))&&At(fr(t.doc,Zn.from,Zn.to).join(we));return}if(zt.getAttribute("contenteditable")=="false")return;var Ur=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;Ur&>();for(var Er=0;Er=9&&p.hasSelection&&(p.hasSelection=null),B.poll()}),Ue(G,"paste",function(ge){if(Pt(j,ge)||ke(ge,j))return;j.state.pasteIncoming=+new Date,B.fastPoll()});function ne(ge){if(Pt(j,ge))return;if(j.somethingSelected())ye({lineWise:!1,text:j.getSelections()});else if(j.options.lineWiseCopyCut){var we=Ve(j);ye({lineWise:!0,text:we.text}),ge.type=="cut"?j.setSelections(we.ranges,null,Te):(B.prevInput="",G.value=we.text.join(` `),W(G))}else return;ge.type=="cut"&&(j.state.cutIncoming=+new Date)}Ue(G,"cut",ne),Ue(G,"copy",ne),Ue(t.scroller,"paste",function(ge){if(Ta(t,ge)||Pt(j,ge))return;if(!G.dispatchEvent){j.state.pasteIncoming=+new Date,B.focus();return}var we=new Event("paste");we.clipboardData=ge.clipboardData,G.dispatchEvent(we)}),Ue(t.lineSpace,"selectstart",function(ge){Ta(t,ge)||Ce(ge)}),Ue(G,"compositionstart",function(){var ge=j.getCursor("from");B.composing&&B.composing.range.clear(),B.composing={start:ge,range:j.markText(ge,j.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(G,"compositionend",function(){B.composing&&(B.poll(),B.composing.range.clear(),B.composing=null)})},Hr.prototype.createField=function(t){this.wrapper=Ut(),this.textarea=this.wrapper.firstChild},Hr.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Hr.prototype.prepareSelection=function(){var t=this.cm,p=t.display,B=t.doc,j=bi(t);if(t.options.moveInputWithCursor){var G=Gn(t,B.sel.primary().head,"div"),ne=p.wrapper.getBoundingClientRect(),ge=p.lineDiv.getBoundingClientRect();j.teTop=Math.max(0,Math.min(p.wrapper.clientHeight-10,G.top+ge.top-ne.top)),j.teLeft=Math.max(0,Math.min(p.wrapper.clientWidth-10,G.left+ge.left-ne.left))}return j},Hr.prototype.showSelection=function(t){var p=this.cm,B=p.display;_(B.cursorDiv,t.cursors),_(B.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Hr.prototype.reset=function(t){if(this.contextMenuPending||this.composing)return;var p=this.cm;if(p.somethingSelected()){this.prevInput="";var B=p.getSelection();this.textarea.value=B,p.state.focused&&W(this.textarea),O&&m>=9&&(this.hasSelection=B)}else t||(this.prevInput=this.textarea.value="",O&&m>=9&&(this.hasSelection=null))},Hr.prototype.getField=function(){return this.textarea},Hr.prototype.supportsTouch=function(){return!1},Hr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||V()!=this.textarea))try{this.textarea.focus()}catch(t){}},Hr.prototype.blur=function(){this.textarea.blur()},Hr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Hr.prototype.receivedFocus=function(){this.slowPoll()},Hr.prototype.slowPoll=function(){var t=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Hr.prototype.fastPoll=function(){var t=!1,p=this;p.pollingFast=!0;function B(){var j=p.poll();!j&&!t?(t=!0,p.polling.set(60,B)):(p.pollingFast=!1,p.slowPoll())}p.polling.set(20,B)},Hr.prototype.poll=function(){var t=this,p=this.cm,B=this.textarea,j=this.prevInput;if(this.contextMenuPending||!p.state.focused||et(B)&&!j&&!this.composing||p.isReadOnly()||p.options.disableInput||p.state.keySeq)return!1;var G=B.value;if(G==j&&!p.somethingSelected())return!1;if(O&&m>=9&&this.hasSelection===G||s&&/[\uf700-\uf7ff]/.test(G))return p.display.input.reset(),!1;if(p.doc.sel==p.display.selForContextMenu){var ne=G.charCodeAt(0);if(ne==8203&&!j&&(j="\u200B"),ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var ge=0,we=Math.min(j.length,G.length);ge1e3||G.indexOf(` `)>-1?B.value=t.prevInput="":t.prevInput=G,t.composing&&(t.composing.range.clear(),t.composing.range=p.markText(t.composing.start,p.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Hr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Hr.prototype.onKeyPress=function(){O&&m>=9&&(this.hasSelection=null),this.fastPoll()},Hr.prototype.onContextMenu=function(t){var p=this,B=p.cm,j=B.display,G=p.textarea;p.contextMenuPending&&p.contextMenuPending();var ne=Oa(B,t),ge=j.scroller.scrollTop;if(!ne||u)return;var we=B.options.resetSelectionOnContextMenu;we&&B.doc.sel.contains(ne)==-1&&Ha(B,gi)(B.doc,Cr(ne),Te);var Re=G.style.cssText,je=p.wrapper.style.cssText,gt=p.wrapper.offsetParent.getBoundingClientRect();p.wrapper.style.cssText="position: static",G.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(t.clientY-gt.top-5)+"px; left: "+(t.clientX-gt.left-5)+`px; z-index: 1000; background: `+(O?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;e&&(At=window.scrollY),j.input.focus(),e&&window.scrollTo(null,At),j.input.reset(),B.somethingSelected()||(G.value=p.prevInput=" "),p.contextMenuPending=zt,j.selForContextMenu=B.doc.sel,clearTimeout(j.detectingSelectAll);function tn(){if(G.selectionStart!=null){var Bn=B.somethingSelected(),Zn="\u200B"+(Bn?G.value:"");G.value="\u21DA",G.value=Zn,p.prevInput=Bn?"":"\u200B",G.selectionStart=1,G.selectionEnd=Zn.length,j.selForContextMenu=B.doc.sel}}function zt(){if(p.contextMenuPending!=zt)return;if(p.contextMenuPending=!1,p.wrapper.style.cssText=je,G.style.cssText=Re,O&&m<9&&j.scrollbars.setScrollTop(j.scroller.scrollTop=ge),G.selectionStart!=null){(!O||O&&m<9)&&tn();var Bn=0,Zn=function(){j.selForContextMenu==B.doc.sel&&G.selectionStart==0&&G.selectionEnd>0&&p.prevInput=="\u200B"?Ha(B,ol)(B):Bn++<10?j.detectingSelectAll=setTimeout(Zn,500):(j.selForContextMenu=null,j.input.reset())};j.detectingSelectAll=setTimeout(Zn,200)}}if(O&&m>=9&&tn(),R){Be(t);var Tn=function(){jt(window,"mouseup",Tn),setTimeout(zt,20)};Ue(window,"mouseup",Tn)}else setTimeout(zt,50)},Hr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Hr.prototype.setUneditable=function(){},Hr.prototype.needsContentAttribute=!1;function Ia(t,p){if(p=p?I(p):{},p.value=t.value,!p.tabindex&&t.tabIndex&&(p.tabindex=t.tabIndex),!p.placeholder&&t.placeholder&&(p.placeholder=t.placeholder),p.autofocus==null){var B=V();p.autofocus=B==t||t.getAttribute("autofocus")!=null&&B==document.body}function j(){t.value=we.getValue()}var G;if(t.form&&(Ue(t.form,"submit",j),!p.leaveSubmitMethodAlone)){var ne=t.form;G=ne.submit;try{var ge=ne.submit=function(){j(),ne.submit=G,ne.submit(),ne.submit=ge}}catch(Re){}}p.finishInit=function(Re){Re.save=j,Re.getTextArea=function(){return t},Re.toTextArea=function(){Re.toTextArea=isNaN,j(),t.parentNode.removeChild(Re.getWrapperElement()),t.style.display="",t.form&&(jt(t.form,"submit",j),!p.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=G))}},t.style.display="none";var we=Ya(function(Re){return t.parentNode.insertBefore(Re,t.nextSibling)},p);return we}function Da(t){t.off=jt,t.on=Ue,t.wheelEventPixels=Hi,t.Doc=Ti,t.splitLines=Ke,t.countColumn=K,t.findColumn=Ee,t.isWordChar=te,t.Pass=Se,t.signal=yt,t.Line=dn,t.changeEnd=Zr,t.scrollbarModel=xo,t.Pos=qt,t.cmpPos=On,t.modes=ht,t.mimeModes=_t,t.resolveMode=ut,t.getMode=Ft,t.modeExtensions=It,t.extendMode=on,t.copyState=mn,t.startState=Xn,t.innerMode=Hn,t.commands=qo,t.keyMap=vo,t.keyName=xs,t.isModifierKey=is,t.lookupKey=_o,t.normalizeKeyMap=_l,t.StringStream=Fn,t.SharedTextMarker=Qo,t.TextMarker=Gi,t.LineWidget=ns,t.e_preventDefault=Ce,t.e_stopPropagation=Ie,t.e_stop=Be,t.addClass=H,t.contains=N,t.rmClass=C,t.keyNames=Ro}eu(Ya),Wt(Ya);var za="iter insert remove copy getEditor constructor".split(" ");for(var si in Ti.prototype)Ti.prototype.hasOwnProperty(si)&&he(za,si)<0&&(Ya.prototype[si]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ti.prototype[si]));return Ge(Ti),Ya.inputStyles={textarea:Hr,contenteditable:kt},Ya.defineMode=function(t){!Ya.defaults.mode&&t!="null"&&(Ya.defaults.mode=t),Ot.apply(this,arguments)},Ya.defineMIME=Nt,Ya.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Ya.defineMIME("text/plain","null"),Ya.defineExtension=function(t,p){Ya.prototype[t]=p},Ya.defineDocExtension=function(t,p){Ti.prototype[t]=p},Ya.fromTextArea=Ia,Da(Ya),Ya.version="5.58.2",Ya})},W6BS:function(k,z){k.exports="data:image/png;base64,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"},WO9J:function(k,z,o){"use strict";o.r(z);var P=o("0Owb"),g=o("PpiC"),T=o("q1tI"),b=o.n(T),y=o("EkPF"),x=o.n(y),O=o("miYZ"),m=o("tsqr"),e=o("2qtc"),f=o("kLXV"),a=o("9og8"),u=o("WmNS"),r=o.n(u),i=o("auZk"),n=o.n(i),l=o("1vsH"),h=o("Ufr+"),d=o.n(h),s=o("HBuW"),c=o("ErOA"),w=o("Ty5D"),E=o("9kvl"),v=function(Yt){var dn,Dn,en=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.shixunsDetail,or=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),qn=Object(w.h)(),Pr=Object(T.useRef)(""),Lr=Object(w.i)(),Qn=In.title,Dr=In.base_info_warning,vr=In.challenges_warning,zr=In.service_warning,Nr=In.repository_warning,$r=In.mirror_warning;Object(T.useEffect)(function(){var cr;Pr.current=(cr=qn.pathname.split("/"))===null||cr===void 0?void 0:cr[2],_n({type:"practiceSetting/setParams",payload:{id:Pr.current}}),_n({type:"practiceSetting/getCommonData",payload:{id:Pr.current}})},[qn.pathname]),Object(T.useEffect)(function(){return Object(l.X)(Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(l.X)()}});var tr=function(){var cr=Object(a.a)(r.a.mark(function sr(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Gt();case 2:E.d.push("/shixuns/".concat(Pr.current,"/challenges"));case 3:case"end":return lr.stop()}},sr)}));return function(){return cr.apply(this,arguments)}}(),Gt=function(){return new Promise(function(sr,qr){var lr;In!=null&&(lr=In.sideBar)!==null&&lr!==void 0&&lr.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),sr()},onCancel:function(){qr()}}):sr()})},Zt=function(sr){var qr;if(sr===(In==null?void 0:In.sideBar.tabsActive))return;var lr=function(){E.d.push("/shixuns/".concat(Pr.current,"/edit?tabId=").concat(sr)),_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:sr,selectPath:"",confirmLeave:!1}})};In!=null&&(qr=In.sideBar)!==null&&qr!==void 0&&qr.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){lr()}}):lr()},Jt=function cr(sr){var qr;sr=(qr=sr)!==null&&qr!==void 0&&qr.includes(".json")?sr:"".concat(sr,".json"),f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var lr=Object(a.a)(r.a.mark(function Yr(){var _r,Sr;return r.a.wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:return Jr.next=2,Object(c.a)("/api"+sr,{method:"get"});case 2:if(_r=Jr.sent,_r){Jr.next=5;break}return Jr.abrupt("return");case 5:return m.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Jr.next=8,Object(s.E)({id:_r.shixun_identifier});case 8:if(Sr=Jr.sent,!(Sr!=null&&Sr.game_identifier)){Jr.next=12;break}return Object(l.S)("/tasks/".concat(Sr.game_identifier)),Jr.abrupt("return");case 12:(Sr==null?void 0:Sr.status)===2?cr(Sr==null?void 0:Sr.message):(Sr==null?void 0:Sr.status)===3&&zn(Sr==null?void 0:Sr.message);case 13:case"end":return Jr.stop()}},Yr)}));function da(){return lr.apply(this,arguments)}return da}()})},zn=function(sr){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",sr,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},$n=function(){var cr=Object(a.a)(r.a.mark(function sr(qr,lr){var da,Yr,_r;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Kr.next=2,Gt();case 2:if(Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),!((da=Un.detail)!==null&&da!==void 0&&da.is_jupyter||(Yr=Un.detail)!==null&&Yr!==void 0&&Yr.is_jupyter_lab)){Kr.next=6;break}return _n({type:"shixunsDetail/execJupyter",payload:{id:Pr.current}}).then(function(Jr){Jr!=null&&Jr.identifier&&(E.d===null||E.d===void 0||E.d.push("/tasks/".concat(Jr.identifier,"/jupyter")))}),Kr.abrupt("return");case 6:if(_n({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!lr){Kr.next=13;break}return Kr.next=10,Object(s.D)({id:qr});case 10:Kr.t0=Kr.sent,Kr.next=16;break;case 13:return Kr.next=15,Object(s.E)({id:qr});case 15:Kr.t0=Kr.sent;case 16:if(_r=Kr.t0,_n({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(_r!=null&&_r.game_identifier||_r!=null&&_r.identifier)){Kr.next=21;break}return Object(l.S)(lr?"/tasks/".concat(_r==null?void 0:_r.identifier,"/jupyter"):"/tasks/".concat(_r.game_identifier)),Kr.abrupt("return");case 21:(_r==null?void 0:_r.status)===-3?Object(l.q)():(_r==null?void 0:_r.status)===2?Jt(_r==null?void 0:_r.message):(_r==null?void 0:_r.status)===3&&zn(_r==null?void 0:_r.message);case 22:case"end":return Kr.stop()}},sr)}));return function(qr,lr){return cr.apply(this,arguments)}}(),Ln=function(){var cr=Object(a.a)(r.a.mark(function sr(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Gt();case 2:_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return lr.stop()}},sr)}));return function(){return cr.apply(this,arguments)}}(),rr=function(sr){var qr={borderBottomColor:(In==null?void 0:In.sideBar.tabsActive)===sr?"#0152d9":"transparent"};return qr};return b.a.createElement("div",{className:n.a.header},b.a.createElement("aside",{className:n.a.title},b.a.createElement("i",{onClick:tr,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),b.a.createElement("span",{className:n.a.edit},Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),b.a.createElement("i",{onClick:Ln,className:"icon iconfont icon-xiugai1"})),b.a.createElement("aside",{className:n.a.schedule},b.a.createElement("div",null,b.a.createElement("span",{style:rr("information"),className:n.a.clickWarp,onClick:function(){return Zt("information")}},Dr?b.a.createElement("span",{className:n.a.num},"1"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:n.a.subject},"\u57FA\u672C\u4FE1\u606F")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:rr("warehouse"),className:n.a.clickWarp,onClick:function(){return Zt("warehouse")}},Nr?b.a.createElement("span",{className:n.a.num},"2"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:n.a.subject},"\u4EE3\u7801\u4ED3\u5E93")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Un==null?void 0:Un.detail)&&!(Un!=null&&(dn=Un.detail)!==null&&dn!==void 0&&dn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:rr("level"),className:n.a.clickWarp,onClick:function(){return Zt("level")}},vr?b.a.createElement("span",{className:n.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:n.a.subject},"\u4EFB\u52A1\u5173\u5361")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Un==null?void 0:Un.detail)&&(Un==null||((Dn=Un.detail)===null||Dn===void 0)?void 0:Dn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:rr("service"),className:n.a.clickWarp,onClick:function(){return Zt("service")}},zr?b.a.createElement("span",{className:n.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:n.a.subject},"\u670D\u52A1")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:rr("environment"),className:n.a.clickWarp,onClick:function(){return Zt("environment")}},$r?b.a.createElement("span",{className:n.a.num},"4"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:n.a.subject},"\u5B9E\u9A8C\u73AF\u5883")))),b.a.createElement("aside",{className:n.a.btns},b.a.createElement("div",{className:n.a.simulate,onClick:function(){return $n(Pr.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},R=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.practiceSetting,en=Sn.shixunsDetail;return{globalSetting:dn,loading:Yt,practiceSetting:Dn,shixunsDetail:en}})(v),M=o("sRBo"),C=o("kaz8"),S=o("14J3"),_=o("BMrR"),A=o("jCWc"),U=o("kPKH"),L=o("DZo9"),N=o("8z0m"),V=o("6UJt"),H=o("DFOY"),D=o("5NDa"),W=o("5rEg"),F=o("+L6B"),I=o("2/Rp"),K=o("k1fw"),ee=o("y8nQ"),he=o("Vl3Y"),de=o("tJVT"),Se=o("h/E3"),Te=o.n(Se),ce=o("Ot1p"),be=o("oBTY"),Ee=o("+Xk9"),ue=o.n(Ee),le=o("FTkQ"),$=o.n(le),me=function(Yt){var dn=Yt.InputRight,Dn=Yt.value,en=Dn===void 0?[]:Dn,wn=Yt.onChange,_n=Object(g.a)(Yt,["InputRight","value","onChange"]),In=Object(T.useState)(),Un=Object(de.a)(In,2),or=Un[0],qn=Un[1],Pr=function(Dr){var vr=en.filter(function(zr,Nr){return Nr!==Dr});wn(vr)},Lr=function(Dr){if(Dr.preventDefault(),!or)return;if(en.findIndex(function(vr){return vr.name===or})>-1){m.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}wn([].concat(Object(be.a)(en),[{id:null,name:or}])),qn(null)};return b.a.createElement("div",null,b.a.createElement(W.a,Object(P.a)({bordered:!1,style:{width:600},value:or,onChange:function(Dr){return qn(Dr.target.value)},onPressEnter:Lr,onBlur:Lr},_n)),dn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},en==null?void 0:en.map(function(Qn,Dr){return b.a.createElement("div",{key:Dr,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},Qn.name),b.a.createElement("img",{src:$.a,className:ue.a.s2,onClick:function(){return Pr(Dr)}}))})))},re=me,ae=o("LvDl"),Oe=o("m3rI"),se=o("hW5Z"),te=o.n(se),Q=function(Yt){var dn=Yt.dispatch,Dn=Yt.onCancel,en=Yt.onSave,wn=Yt.loading,_n=wn===void 0?!1:wn;return b.a.createElement("div",{className:te.a.complete},b.a.createElement("div",{onClick:Dn,className:te.a.cancel},"\u53D6\u6D88"),b.a.createElement(I.a,{type:"primary",loading:_n,onClick:en,className:te.a.save},"\u4FDD\u5B58"))},J=Object(E.a)()(Q),ve=o("UqFu"),_e=o("z7Xi"),Ae=o("jN4g"),Qe=function(Yt){var dn,Dn,en=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.problemset,or=Yt.shixunsDetail,qn=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Pr=he.a.useForm(),Lr=Object(de.a)(Pr,1),Qn=Lr[0],Dr=Object(T.useState)({}),vr=Object(de.a)(Dr,2),zr=vr[0],Nr=vr[1],$r=Object(T.useState)(!1),tr=Object(de.a)($r,2),Gt=tr[0],Zt=tr[1],Jt=Object(T.useState)(!1),zn=Object(de.a)(Jt,2),$n=zn[0],Ln=zn[1],rr=Object(T.useState)(""),cr=Object(de.a)(rr,2),sr=cr[0],qr=cr[1],lr=Object(T.useState)(""),da=Object(de.a)(lr,2),Yr=da[0],_r=da[1],Sr=Object(T.useRef)({}),Kr=Object(T.useRef)(""),Jr=Object(T.useRef)(null),Ta=Object(T.useRef)(Object(ae.throttle)(function(){return Me()},2e3,{leading:!0,trailing:!1})).current,_a=In.id;Object(T.useEffect)(function(){if(!_a)return;ct()},[_a]),Object(T.useEffect)(function(){return JSON.stringify(zr)!=="{}"&&Ze(),function(){clearTimeout(Jr.current)}},[zr,sr,Yr]);var Ze=function(){clearTimeout(Jr.current),Jr.current=setTimeout(function(){!Object(ae.isEqual)(zr,Sr.current)||sr!==Kr.current||Yr!==Kr.current?_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},ct=function(){var cn=Object(a.a)(r.a.mark(function un(){var Wn,Cn,jr,Mr,Qr,Wr,ta,Kn,wr;return r.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return _n({type:"problemset/getEditDisciplines",payload:{source:"shixun"}}),En.next=3,Object(c.a)("/api/shixuns/".concat(_a,"/edit_base_info.json"),{method:"get"});case 3:Wn=En.sent,Wn.status===0&&(Kn=Object(K.a)(Object(K.a)({},Wn.data),{},{description:Object(ve.a)(Wn.data.description)}),wr={description:Kn.description,shixun_tags:Kn.shixun_tags,name:Kn.name,course:(Kn==null||((Cn=Kn.disciplines)===null||Cn===void 0)?void 0:Cn.length)>0?[Kn==null||((jr=Kn.disciplines)===null||jr===void 0||((Mr=jr[0])===null||Mr===void 0))?void 0:Mr.id,Kn==null||((Qr=Kn.disciplines)===null||Qr===void 0||((Wr=Qr[0])===null||Wr===void 0||((ta=Wr.sub_discipline)===null||ta===void 0)))?void 0:ta.id]:[],jupyter_show_description:Wn.data.jupyter_show_description},Qn.setFieldsValue(wr),Sr.current=Object(K.a)({},wr),Kr.current=Kn.attachment_id||"",Nr(Object(K.a)({},wr)),qr(Kn.attachment_id||""),_r(Kn.cover_image_id||""));case 5:case"end":return En.stop()}},un)}));return function(){return cn.apply(this,arguments)}}(),bt=function(un,Wn){Nr(Object(K.a)({},Wn))},nt=function(){Le()},Me=function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Qn.submit()},Je=function(un){var Wn,Cn=un.name,jr=un.description,Mr=un.shixun_tags,Qr=un.course,Wr=un.jupyter_show_description,ta=Wr===void 0?!1:Wr,Kn={name:Cn,description:jr,shixun_tags:Mr,attachment_id:sr,cover_image_id:Yr,sub_discipline_ids:Qr[1]};(Wn=or.detail)!==null&&Wn!==void 0&&Wn.is_jupyter_lab&&(Kn=Object(K.a)(Object(K.a)({},Kn),{},{jupyter_show_description:ta}));var wr=Object(c.a)("/api/shixuns/".concat(_a,"/base_info_save.json"),{method:"post",body:{shixun:Object(K.a)({},Kn)}});wr.then(function(Gn){Gn.status===0&&(m.b.success("\u4FDD\u5B58\u6210\u529F"),_n({type:"practiceSetting/getCommonData",payload:{id:_a}}),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Sr.current={description:zr.description,shixun_tags:zr.shixun_tags,name:zr.name},Kr.current=sr)})},Le=function(){var un,Wn=function(){E.d.push("/shixuns/".concat(_a,"/challenges")),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};In!=null&&(un=In.sideBar)!==null&&un!==void 0&&un.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Wn()}}):Wn()};function $e(cn){var un=cn.type==="image/jpeg"||cn.type==="image/png";return un||m.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),un}var qe=b.a.createElement(I.a,{loading:Gt,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),pt=b.a.createElement(I.a,{loading:$n,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function rt(cn,un){var Wn=new FileReader;Wn.addEventListener("load",function(){return un(Wn.result)}),Wn.readAsDataURL(cn)}var Mt=function(un){if(un.file.status==="uploading"){Zt(!0);return}if(un.file.status==="done"){var Wn,Cn;Zt(!1),qr(un==null||((Wn=un.file)===null||Wn===void 0||((Cn=Wn.response)===null||Cn===void 0))?void 0:Cn.id)}},Vt=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+sr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return qr("")},style:{fontSize:"16px",color:"red"}})))},fn=function(un){if(un.file.status==="uploading"){Ln(!0);return}if(un.file.status==="done"){var Wn,Cn;Ln(!1),_r(un==null||((Wn=un.file)===null||Wn===void 0||((Cn=Wn.response)===null||Cn===void 0))?void 0:Cn.id)}},ln=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+Yr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return _r("")},style:{fontSize:"16px",color:"red"}})))};return b.a.createElement("div",{className:Te.a.information},b.a.createElement("section",{className:Te.a.scroll},b.a.createElement("header",null,"\u57FA\u672C\u4FE1\u606F"),b.a.createElement("div",{className:Te.a.formWrap}," ",b.a.createElement(he.a,{form:Qn,scrollToFirstError:!0,layout:"vertical",onValuesChange:bt,onFinish:Je},b.a.createElement(he.a.Item,{name:"name",label:"\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.a.createElement(W.a,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:"".concat(((dn=zr.name)===null||dn===void 0?void 0:dn.length)||0,"/60")})),b.a.createElement(he.a.Item,{className:"customAddTags",name:"shixun_tags",label:b.a.createElement("div",null,"\u6280\u80FD\u6807\u7B7E :"," ",b.a.createElement("span",{className:"pl10 font14 c-light-black"},"\u5B66\u5458\u901A\u8FC7\u6240\u6709\u4EFB\u52A1\u5173\u5361\uFF0C\u5C06\u83B7\u5F97\u6280\u80FD\u6807\u7B7E")),rules:[{required:!0,message:"\u8BF7\u9009\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},b.a.createElement(re,{placeholder:"\u6DFB\u52A0\u6807\u7B7E"})),b.a.createElement(he.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",labelCol:{span:5},wrapperCol:{span:5}},b.a.createElement(H.a,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:Un.courseOptions})),b.a.createElement(_.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},sr?Vt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:Mt},qe))),b.a.createElement(U.a,{className:"c-grey-999"},b.a.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u75281920*200\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),b.a.createElement(_.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Yr?ln():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:fn},pt))),b.a.createElement(U.a,{className:"c-grey-999"},b.a.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528290*218\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),b.a.createElement(he.a.Item,{name:"description",label:"\u7B80\u4ECB:"},b.a.createElement(ce.a,{defaultValue:zr.description||"",watch:!0})),((Dn=or.detail)===null||Dn===void 0?void 0:Dn.is_jupyter_lab)&&b.a.createElement(he.a.Item,{name:"jupyter_show_description",valuePropName:"checked"},b.a.createElement(C.a,null,"\u663E\u793A\u4EFB\u52A1\u8981\u6C42\uFF08\u52FE\u9009\u540E\uFF0C\u5C06\u7B80\u4ECB\u4F5C\u4E3A\u4EFB\u52A1\u8981\u6C42\u663E\u793A\u5728\u5B9E\u8DF5\u9879\u76EE\u6311\u6218\u9875\u9762\uFF09"))))),b.a.createElement(J,{onSave:Ta,onCancel:nt,loading:Gt||$n}))},tt=Object(E.a)(function(Sn){var Yt=Sn.problemset,dn=Sn.loading,Dn=Sn.globalSetting,en=Sn.practiceSetting,wn=Sn.shixunsDetail;return{globalSetting:Dn,loading:dn,practiceSetting:en,problemset:Yt,shixunsDetail:wn}})(Qe),dt=o("ch0t"),mt=o("R9oj"),vt=o("ECub"),Et=o("T2oS"),Ye=o("W9HT"),Ue=o("bKvZ"),ft=o.n(Ue),jt=o("KeGQ"),yt=o.n(jt),Pt=o("NLgs"),it=o("ngQI"),He=function(Yt){var dn=Yt.globalSetting,Dn=Yt.dispatch,en=Yt.practiceSetting,wn=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting"]),_n=Object(T.useState)(!1),In=Object(de.a)(_n,2),Un=In[0],or=In[1],qn=Object(T.useState)({}),Pr=Object(de.a)(qn,2),Lr=Pr[0],Qn=Pr[1],Dr=Object(T.useState)(!0),vr=Object(de.a)(Dr,2),zr=vr[0],Nr=vr[1],$r=Object(T.useState)(!1),tr=Object(de.a)($r,2),Gt=tr[0],Zt=tr[1],Jt=Object(T.useState)(null),zn=Object(de.a)(Jt,2),$n=zn[0],Ln=zn[1],rr=Object(T.useRef)(!1),cr=en.id,sr=en.updateIndex,qr=en.is_published,lr=en.newQuestion,da=Lr.challenge_list,Yr=da===void 0?[]:da;Object(T.useEffect)(function(){return cr?(Sr(),function(){Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[cr,sr]),Object(T.useEffect)(function(){_r()},[wn.location]);var _r=function(){var $e,qe=wn.location,pt=qe.pathname.split("/");(pt.includes("newquestion")||pt.includes("new")||qe!=null&&($e=qe.query)!==null&&$e!==void 0&&$e.tabId)&&(rr.current=!0)},Sr=function(){var Le=Object(a.a)(r.a.mark(function $e(){var qe,pt,rt,Mt,Vt,fn,ln;return r.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return Nr(!0),un.next=3,Object(s.J)({id:cr});case 3:rt=un.sent,rt!=null&&(qe=rt.challenge_list)!==null&&qe!==void 0&&qe.length&&(Mt=wn.location.pathname.split("/"),Vt=rt.challenge_list.find(function(Wn){return String(Wn.challenge_id)===Mt[4]}),Mt.includes("newquestion")||Mt.includes("new")?(ln=rt.challenge_list[((fn=rt.challenge_list)===null||fn===void 0?void 0:fn.length)-1],Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:Mt.includes("new")?0:1,name:""}}}),Ln(void 0),Ze(ln)):Mt[4]&&Vt?Kr(Vt,!1):Kr(rt.challenge_list[0])),rt!=null&&(pt=rt.challenge_list)!==null&&pt!==void 0&&pt.length||Ln(null),Qn(rt),Nr(!1);case 8:case"end":return un.stop()}},$e)}));return function(){return Le.apply(this,arguments)}}(),Kr=function($e){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(Ln($e.challenge_id),Ze($e),qe){var pt="/shixuns/".concat(cr,"/edit/").concat($e.challenge_id,"/").concat($e.st===1?"editquestion":"editcheckpoint");E.d.push(pt)}},Jr=function($e,qe){qe.stopPropagation();var pt=$e.challenge_id,rt=function(){var Mt=Object(a.a)(r.a.mark(function Vt(){var fn,ln,cn,un;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.v)({id:cr,challengesId:pt});case 2:if(fn=Cn.sent,!(fn.status===1)){Cn.next=12;break}return Cn.next=6,Object(s.J)({id:cr});case 6:if(un=Cn.sent,Qn(un),!(pt===$n&&(ln=un.challenge_list)!==null&&ln!==void 0&&ln.length)){Cn.next=11;break}return Kr(un.challenge_list[0]),Cn.abrupt("return");case 11:(cn=un.challenge_list)!==null&&cn!==void 0&&cn.length||(Ln(null),rr.current=!0,Ze({}),E.d.push("/shixuns/".concat(cr,"/edit?tabId=level")));case 12:case"end":return Cn.stop()}},Vt)}));return function(){return Mt.apply(this,arguments)}}();f.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:rt})},Ta=function($e,qe,pt){var rt=Array.from($e),Mt=rt.splice(qe,1),Vt=Object(de.a)(Mt,1),fn=Vt[0];return rt.splice(pt,0,fn),rt},_a=function($e,qe){if(!$e.destination)return;var pt=Ta(qe,$e.source.index,$e.destination.index);Qn(Object(K.a)(Object(K.a)({},Lr),{},{challenge_list:pt}));var rt=pt.map(function(Mt){return Mt.challenge_id});Object(s.Kb)({id:cr,ids:rt}).then(function(Mt){Mt.status!==0&&Qn(Object(K.a)(Object(K.a)({},Lr),{},{challenge_list:qe}))})},Ze=function($e){Dn({type:"practiceSetting/setParams",payload:{selectQuestionParams:$e}})},ct=function(){var Le=Object(a.a)(r.a.mark(function $e(qe,pt){var rt;return r.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!(qe===$n)){Vt.next=2;break}return Vt.abrupt("return");case 2:return Vt.next=4,bt();case 4:Ln(qe),Ze(pt),Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),rt="/shixuns/".concat(cr,"/edit/").concat(qe,"/").concat(pt.st===1?"editquestion":"editcheckpoint"),E.d.push(rt);case 9:case"end":return Vt.stop()}},$e)}));return function(qe,pt){return Le.apply(this,arguments)}}(),bt=function(){return new Promise(function($e,qe){var pt;en!=null&&(pt=en.sideBar)!==null&&pt!==void 0&&pt.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Dn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),$e()},onCancel:function(){qe()}}):$e()})},nt=function($e){return b.a.createElement(b.a.Fragment,null,b.a.createElement(it.a,{onDragEnd:function(pt){return _a(pt,$e)}},b.a.createElement(it.c,{droppableId:"droppable"},function(qe,pt){return b.a.createElement("div",Object(P.a)({ref:qe.innerRef},qe.droppableProps,{style:{width:"100%"}}),$e.map(function(rt,Mt){var Vt=rt.st,fn=rt.name,ln=rt.challenge_id;return b.a.createElement(it.b,{key:ln,draggableId:ln.toString(),index:Mt,isDragDisabled:qr},function(cn,un){return b.a.createElement("div",Object(P.a)({ref:cn.innerRef},cn.draggableProps,cn.dragHandleProps,{className:$n===ln?ft.a.listActive:ft.a.list,onClick:function(){return ct(ln,rt)}}),b.a.createElement("span",{className:ft.a.s1},Vt===0?b.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):b.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),b.a.createElement("span",{className:ft.a.s2},"\u7B2C",Mt+1,"\u5173: ",fn),!qr&&b.a.createElement("span",{className:ft.a.s3,onClick:function(Cn){return Jr(rt,Cn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),lr&&b.a.createElement("div",{className:ft.a.listActive},b.a.createElement("span",{className:ft.a.s1},(lr==null?void 0:lr.st)===0?b.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):b.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),b.a.createElement("span",{className:ft.a.s2},"\u7B2C",$e.length+1,"\u5173: ",lr==null?void 0:lr.name)),!qr&&b.a.createElement("div",{className:ft.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},Me=function(){var Le=Object(a.a)(r.a.mark(function $e(qe){return r.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,bt();case 2:qe==="new"?E.d.push("/shixuns/".concat(cr,"/edit/new")):E.d.push("/shixuns/".concat(cr,"/edit/newquestion")),or(!1),Ln(void 0),Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:qe==="new"?0:1,name:""}}});case 6:case"end":return rt.stop()}},$e)}));return function(qe){return Le.apply(this,arguments)}}(),Je=function(){if(Object(Pt.b)(Dn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;or(!Un)};return b.a.createElement("div",{className:ft.a.level},b.a.createElement("aside",{className:ft.a.left,style:{width:Gt?"0":"25%"}},b.a.createElement("div",{className:ft.a.container},b.a.createElement("div",{className:ft.a.title},"\u4EFB\u52A1\u5173\u5361(",Yr.length,")"),b.a.createElement("div",{className:ft.a.listWrap},zr?b.a.createElement(Ye.a,{size:"large"}):!!Yr.length||!!lr?nt(Yr):b.a.createElement(vt.a,{image:yt.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Gt&&b.a.createElement("div",{className:ft.a.btns},b.a.createElement("aside",{className:ft.a.btnsWrap},b.a.createElement("div",{style:{transform:Un?"rotate(45deg)":"rotate(0deg)"},className:ft.a.icon,onClick:Je},"+"),b.a.createElement("div",{className:ft.a.btn,style:{left:Un?20:-154}},b.a.createElement("div",{className:ft.a.d1,onClick:function(){return Me("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),b.a.createElement("div",{className:ft.a.d2,onClick:function(){return Me("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),b.a.createElement("div",{className:Gt?ft.a.elseShrink:ft.a.shrink,onClick:function(){return Zt(!Gt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:ft.a.right,id:"modal-level-question"},$n===null&&rr.current?b.a.createElement("div",{className:ft.a.addIcon},b.a.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):wn.children))},Ge=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,dn=Sn.practiceSetting;return{globalSetting:Yt,practiceSetting:dn}})(He),Ce=o("DjyN"),Ie=o("NUBc"),Fe=o("cWXX"),Be=o("/ezw"),We=o("qVdP"),st=o("jsC+"),Dt=o("lUTK"),Ht=o("BvKs"),rn=o("7Kak"),Bt=o("9yH6"),Ct=o("Qvpy"),Ke=o.n(Ct),et=function(Yt){var dn=Yt.shixunsDetail,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.onReloadData,In=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Un=Object(T.useState)(),or=Object(de.a)(Un,2),qn=or[0],Pr=or[1],Lr=Object(T.useState)([]),Qn=Object(de.a)(Lr,2),Dr=Qn[0],vr=Qn[1];Object(T.useEffect)(function(){dn.actionTabs.key==="Collaborators-ChangeManager"&&zr()},[dn.actionTabs.key]);var zr=function(){var Gt=Object(a.a)(r.a.mark(function Zt(){var Jt,zn;return r.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,wn({type:"shixunsDetail/getChangeManager",payload:{id:(Jt=dn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id}});case 2:zn=Ln.sent,vr(zn||[]);case 4:case"end":return Ln.stop()}},Zt)}));return function(){return Gt.apply(this,arguments)}}(),Nr=function(){var Zt;wn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(Zt=dn.actionTabs.params)===null||Zt===void 0?void 0:Zt.id}}})},$r=function(){var Gt=Object(a.a)(r.a.mark(function Zt(){var Jt,zn;return r.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(qn){Ln.next=3;break}return m.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),Ln.abrupt("return");case 3:return Ln.next=5,wn({type:"shixunsDetail/changeManager",payload:{id:(Jt=dn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id,user_id:qn}});case 5:zn=Ln.sent,tr(),zn&&(_n(),m.b.info(zn.message));case 8:case"end":return Ln.stop()}},Zt)}));return function(){return Gt.apply(this,arguments)}}(),tr=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}}),Pr(null)};return b.a.createElement(f.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:dn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:en.effects["shixunsDetail/changeManager"],onOk:$r,onCancel:tr},b.a.createElement("div",null,b.a.createElement("div",{className:Ke.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",b.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u5408\u4F5C\u56E2\u961F\u7684\u4E00\u5458"),b.a.createElement("div",{className:Ke.a.content},Dr.length?b.a.createElement(Bt.a.Group,{value:qn,onChange:function(Zt){return Pr(Zt.target.value)}},Dr.map(function(Gt,Zt){return b.a.createElement(Bt.a,{className:Ke.a.radio,key:Zt,value:Gt.user_id},Gt.name)})):b.a.createElement("div",{className:Ke.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:Ke.a.colorBlue,onClick:Nr},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},at=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:dn}})(et),Pe=o("Znn+"),Xe=o("ZTPi"),ht=o("ju9d"),_t=o("DDK+"),Ot=Xe.a.TabPane,Nt=function(Sn){var Yt=Sn.visible,dn=Sn.onCancel,Dn=Sn.onSelectGroup,en=Sn.shixunId,wn=Sn.onSelectCollaborator;return b.a.createElement(f.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Yt,width:1100,centered:!0,keyboard:!1,onCancel:dn,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},b.a.createElement(Xe.a,{defaultActiveKey:"1"},b.a.createElement(Ot,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(ht.a,{onCancel:dn,container_type:2,container_id:en,onSelect:wn})),b.a.createElement(Ot,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(_t.a,{onCancel:dn,onSelect:Dn}))))},ut=o("oaGz"),Ft=o.n(ut),It=o("8Skl"),on=o("ruvs"),mn=function(Yt){var dn,Dn,en,wn,_n,In,Un=Yt.shixunsDetail,or=Yt.globalSetting,qn=Yt.loading,Pr=Yt.user,Lr=Yt.dispatch,Qn=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Dr=Object(T.useRef)(),vr=Object(T.useState)(0),zr=Object(de.a)(vr,2),Nr=zr[0],$r=zr[1],tr=Object(T.useState)([]),Gt=Object(de.a)(tr,2),Zt=Gt[0],Jt=Gt[1],zn=Object(T.useState)({id:null,page:1}),$n=Object(de.a)(zn,2),Ln=$n[0],rr=$n[1],cr=(dn=Pr.userInfo)===null||dn===void 0||((Dn=dn.shixun)===null||Dn===void 0)?void 0:Dn.editable,sr=((en=Pr.userInfo)===null||en===void 0?void 0:en.role)<=2||((wn=Pr.userInfo)===null||wn===void 0||((_n=wn.shixun)===null||_n===void 0)?void 0:_n.is_creator);Object(T.useEffect)(function(){Dr.current=Qn.match.params.id,Ln.id=Dr.current,rr(Ln),qr(Ln)},[]);var qr=function(){var Ze=Object(a.a)(r.a.mark(function ct(bt){var nt;return r.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Lr({type:"shixunsDetail/getCollaboratorsData",payload:bt});case 2:nt=Je.sent,nt&&(Jt(nt.members||[]),$r(nt.member_count));case 4:case"end":return Je.stop()}},ct)}));return function(bt){return Ze.apply(this,arguments)}}(),lr=function(){var Ze=Object(a.a)(r.a.mark(function ct(){var bt;return r.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Ln.page=1,rr(Ln),bt=Object(on.b)(),Me.next=5,Lr({type:"user/getUserInfo",payload:bt});case 5:return Me.next=7,qr(Ln);case 7:case"end":return Me.stop()}},ct)}));return function(){return Ze.apply(this,arguments)}}(),da=function(ct){Ln.page=ct,rr(Ln),qr(Ln)},Yr=function(ct){f.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Ft.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var bt=Object(a.a)(r.a.mark(function Me(){var Je,Le;return r.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Lr({type:"shixunsDetail/deleteCollaborators",payload:{id:Dr.current,userId:ct}});case 2:if(Le=qe.sent,!(((Je=Pr.userInfo)===null||Je===void 0?void 0:Je.user_id)===ct)){qe.next=6;break}return E.d.push("/shixuns"),qe.abrupt("return");case 6:m.b.info(Le==null?void 0:Le.message),Ln.page=1,rr(Ln),qr(Ln);case 10:case"end":return qe.stop()}},Me)}));function nt(){return bt.apply(this,arguments)}return nt}()})},_r=function(){Lr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Dr.current}}})};function Sr(Ze,ct,bt,nt){return Kr.apply(this,arguments)}function Kr(){return Kr=Object(a.a)(r.a.mark(function Ze(ct,bt,nt,Me){return r.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Le.next=2,Lr({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:ct,user_id:bt,editable:nt?0:1}});case 2:qr(Ln);case 3:case"end":return Le.stop()}},Ze)})),Kr.apply(this,arguments)}var Jr=function(){Lr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Dr.current}}})};function Ta(){Lr({type:"shixunsDetail/setActionTabs",payload:{}})}var _a={visible:Un.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Ta,shixunId:Dr.current,onSelectCollaborator:function(){var Ze=Object(a.a)(r.a.mark(function bt(nt){var Me;return r.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Ta(),Le.next=3,Lr({type:"shixunsDetail/addCollaborator",payload:{id:Dr.current,user_ids:nt}});case 3:Me=Le.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),lr());case 5:case"end":return Le.stop()}},bt)}));function ct(bt){return Ze.apply(this,arguments)}return ct}(),onSelectGroup:function(){var Ze=Object(a.a)(r.a.mark(function bt(nt){var Me;return r.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Ta(),Le.next=3,Lr({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Dr.current,group_id:nt.group_id}});case 3:Me=Le.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),lr());case 5:case"end":return Le.stop()}},bt)}));function ct(bt){return Ze.apply(this,arguments)}return ct}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Ft.a.wrap},b.a.createElement("div",{className:Ft.a.content},((In=Un.detail)===null||In===void 0?void 0:In.identity)<5&&b.a.createElement("div",{className:Ft.a.head},b.a.createElement("span",{className:Ft.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Nr,"\u4EBA\uFF09"),b.a.createElement("div",null,sr&&b.a.createElement(I.a,{type:"primary",ghost:!0,className:Ft.a.button,style:{marginRight:"20px"},onClick:_r},"\u66F4\u6362\u7BA1\u7406\u5458"),cr&&b.a.createElement(I.a,{type:"primary",className:Ft.a.button,style:{marginRight:"40px"},onClick:Jr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Ft.a.list},b.a.createElement(Be.a,{loading:qn.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},Zt.map(function(Ze,ct){var bt,nt,Me,Je,Le,$e,qe,pt;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Ft.a.itemWrap,key:ct},b.a.createElement("a",{href:(bt=Ze.user)===null||bt===void 0?void 0:bt.user_url,target:"_blank",className:Ft.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Ft.a.img,src:"".concat(Oe.a.IMG_SERVER,"/images/").concat((nt=Ze.user)===null||nt===void 0?void 0:nt.image_url)}),((Me=Ze.user)===null||Me===void 0?void 0:Me.shixun_manager)&&b.a.createElement("span",{className:Ft.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Ft.a.itemContent},b.a.createElement("p",{className:Ft.a.nameWrap},b.a.createElement("a",{href:Ze.user.user_url,target:"_blank",className:Ft.a.name},(Je=Ze.user)===null||Je===void 0?void 0:Je.name,Ze.user.user_id===((Le=Pr.userInfo)===null||Le===void 0?void 0:Le.user_id)?b.a.createElement("span",null,"\u6211"):null),b.a.createElement("div",{className:Ft.a.actionGroup},sr?($e=Ze.user)!==null&&$e!==void 0&&$e.shixun_manager?null:b.a.createElement(st.a,{overlay:b.a.createElement(Ht.a,{selectedKeys:[Ze.editable?"1":"2"],onClick:function(){var Mt;Sr(Un.detail.identifier,Ze.user.user_id,Ze.editable,(Mt=Ze.user)===null||Mt===void 0?void 0:Mt.name)}},b.a.createElement(Ht.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(Ht.a.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},b.a.createElement("div",null,Ze.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650")," ",b.a.createElement(It.a,{style:{fontSize:"14px",color:"#888888"}}))):Ze.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650"),!((qe=Ze.user)!==null&&qe!==void 0&&qe.shixun_manager)&&cr?b.a.createElement("a",{className:Ft.a.deletetitle,onClick:function(){var Mt;return Yr((Mt=Ze.user)===null||Mt===void 0?void 0:Mt.user_id)}},"\u5220\u9664"):null)),b.a.createElement("p",{className:Ft.a.schoolWrap},b.a.createElement("span",{className:Ft.a.school},(pt=Ze.user)===null||pt===void 0?void 0:pt.school_name)))))})))),Nr>10&&b.a.createElement("div",{className:Ft.a.countWrap},b.a.createElement(Ie.a,{showQuickJumper:!1,showSizeChanger:!1,total:Nr,onChange:function(ct){return da(ct)},pageSize:10,current:Ln.page}))),b.a.createElement(at,{onReloadData:lr}),b.a.createElement(Nt,_a))},Hn=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting,en=Sn.user;return{shixunsDetail:Yt,globalSetting:Dn,user:en,loading:dn}})(mn),Xn=o("11/R"),Fn=o("Q9mQ"),xn=o("diRs"),fr=o("jrin"),Yn=o("OaEy"),ar=o("2fM7"),nr=o("ZW9T"),Rr=o("RCxd"),pr=o("4SAo"),sn=o.n(pr),qt=W.a.TextArea,On=function(Yt){var dn=Yt.shixunsDetail,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.onFinish,In=_n===void 0?function(){}:_n,Un=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),or=he.a.useForm(),qn=Object(de.a)(or,1),Pr=qn[0],Lr=function(){var Dr=Object(a.a)(r.a.mark(function vr(zr){var Nr,$r;return r.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,wn({type:"shixunsDetail/getCustomScript",payload:{id:(Nr=dn.actionTabs.params)===null||Nr===void 0?void 0:Nr.id,compile:zr.execute,excutive:zr.compile}});case 2:$r=Gt.sent,Qn(),$r&&In($r==null?void 0:$r.shixun_script);case 5:case"end":return Gt.stop()}},vr)}));return function(zr){return Dr.apply(this,arguments)}}(),Qn=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(f.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:dn.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Qn},b.a.createElement(he.a,{form:Pr,scrollToFirstError:!0,layout:"vertical",onFinish:Lr},b.a.createElement(he.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},b.a.createElement(qt,{rows:4})),b.a.createElement(he.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement(qt,{rows:4})),b.a.createElement("div",{className:sn.a.footerWrap},b.a.createElement(he.a.Item,null,b.a.createElement(I.a,{className:"mr5",size:"large",onClick:Qn},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",htmlType:"submit",loading:en.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},Fr=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:dn}})(On),Or=o("Lai7"),xr=o.n(Or),dr=o("EGTK"),pe=o("UGPy"),X=o.n(pe),q=o("FrRK"),oe=o("9Bee"),De=o("N3QO"),fe=ar.a.Option,ot=function(Yt){var dn,Dn,en=Yt.practiceSetting,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.user,Un=Object(T.useState)(null),or=Object(de.a)(Un,2),qn=or[0],Pr=or[1],Lr=Object(T.useState)([]),Qn=Object(de.a)(Lr,2),Dr=Qn[0],vr=Qn[1],zr=Object(T.useState)(!0),Nr=Object(de.a)(zr,2),$r=Nr[0],tr=Nr[1],Gt=Object(T.useState)({}),Zt=Object(de.a)(Gt,2),Jt=Zt[0],zn=Zt[1],$n=Object(T.useState)([]),Ln=Object(de.a)($n,2),rr=Ln[0],cr=Ln[1],sr=Object(T.useState)(),qr=Object(de.a)(sr,2),lr=qr[0],da=qr[1],Yr=Object(T.useState)(),_r=Object(de.a)(Yr,2),Sr=_r[0],Kr=_r[1],Jr=Object(T.useState)([]),Ta=Object(de.a)(Jr,2),_a=Ta[0],Ze=Ta[1],ct=Object(T.useState)({}),bt=Object(de.a)(ct,2),nt=bt[0],Me=bt[1],Je=Object(T.useRef)(null),Le=Object(T.useRef)(!0),$e=Object(T.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),qe=Object(T.useRef)(null),pt=en.id,rt=en.is_published,Mt=nt.frequence_image,Vt=Mt===void 0?[]:Mt,fn=nt.environments,ln=fn===void 0?[]:fn,cn=nt.choice_small_type,un=cn===void 0?[]:cn,Wn=nt.other_image,Cn=Wn===void 0?[]:Wn,jr=Jt.name,Mr=Jt.description,Qr=Jt.authorization,Wr=Jt.small_type,ta=Wr===void 0?[]:Wr;Object(T.useEffect)(function(){if(qn===null)return;Gn(),Je.current.scrollTop=0},[qn]),Object(T.useEffect)(function(){if(!pt)return;wr()},[pt]),Object(T.useEffect)(function(){return qn===null?void 0:(Kn(),function(){clearTimeout(qe.current)})},[qn,Dr,rr,lr,Sr]);var Kn=function(){clearTimeout(qe.current),qe.current=setTimeout(function(){!Object(ae.isEqual)($e.current.activeId,qn)||!Object(ae.isEqual)($e.current.selectId,Dr)||!Object(ae.isEqual)($e.current.serviceConfigList,rr)||!Object(ae.isEqual)($e.current.evaluateScript,lr)||!Object(ae.isEqual)($e.current.evaluationScript,Sr)?wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},wr=function(){var Tr=Object(a.a)(r.a.mark(function br(){var Ir,er,pa,Ea;return r.a.wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:return tr(!0),Oa.next=3,Object(c.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get"});case 3:Ir=Oa.sent,Ir.status===0&&(Me(Object(K.a)({},Ir.data)),tr(!1),Ir!=null&&(er=Ir.data)!==null&&er!==void 0&&er.id?($e.current.activeId=Ir==null||((pa=Ir.data)===null||pa===void 0)?void 0:pa.id,Pr(Ir==null||((Ea=Ir.data)===null||Ea===void 0)?void 0:Ea.id)):Pr(null));case 5:case"end":return Oa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),Gn=function(){var Tr=Object(a.a)(r.a.mark(function br(){var Ir,er,pa,Ea,ba;return r.a.wrap(function(ga){for(;;)switch(ga.prev=ga.next){case 0:return ga.next=2,Object(c.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:qn}});case 2:ba=ga.sent,zn(ba.data),$e.current.selectId=(Ir=ba.data)===null||Ir===void 0?void 0:Ir.choice_small_type,vr((er=ba.data)===null||er===void 0?void 0:er.choice_small_type),$e.current.serviceConfigList=(pa=ba.data)===null||pa===void 0?void 0:pa.shixun_service_configs,cr((Ea=ba.data)===null||Ea===void 0?void 0:Ea.shixun_service_configs),$e.current.evaluateScript=ba.data.evaluate_script,da(ba.data.evaluate_script),$e.current.evaluationScript=ba.data.choice_standard_scripts,Kr(ba.data.choice_standard_scripts),Ze(ba.data.standard_scripts);case 13:case"end":return ga.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),En=function(){var br,Ir=function(){E.d.push("/shixuns/".concat(pt,"/challenges")),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};en!=null&&(br=en.sideBar)!==null&&br!==void 0&&br.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Ir()}}):Ir()},jn=function(){var Tr=Object(a.a)(r.a.mark(function br(){var Ir,er,pa,Ea=arguments;return r.a.wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:if(Ir=Ea.length>0&&Ea[0]!==void 0?Ea[0]:!1,!Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Oa.next=3;break}return Oa.abrupt("return");case 3:return er={sub_type:Dr,main_type:qn,shixun:{mirror_script_id:Sr},shixun_info:{evaluate_script:lr},shixun_service_configs:rr.map(function(ga){return{mirror_repository_id:ga.mirror_repository_id,cpu_limit:ga.cpu_limit,lower_cpu_limit:ga.lower_cpu_limit,memory_limit:ga.memory_limit,request_limit:ga.request_limit,resource_limit:ga.resource_limit}})},Oa.next=6,Object(c.a)("/api/shixuns/".concat(pt),{method:"put",body:er});case 6:pa=Oa.sent,pa.status===0&&(m.b.success("\u7F16\u8F91\u6210\u529F"),$e.current={activeId:qn,selectId:Dr,serviceConfigList:rr,evaluateScript:lr,evaluationScript:Sr},wn({type:"practiceSetting/getCommonData",payload:{id:pt}}),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Oa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),Vr=ta.filter(function(Tr){return Dr.includes(Tr.id)}),ua=function(){En()},hr=function(br,Ir,er){var pa=rr.map(function(Ea,ba){return ba===er?Object(K.a)(Object(K.a)({},Ea),{},Object(fr.a)({},Ir,br)):Ea});cr(pa)},aa=function(){if(Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;wn({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:pt}}})},xa=function(){var Tr=Object(a.a)(r.a.mark(function br(Ir){var er;return r.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:return Ea.next=2,wn({type:"shixunsDetail/getScriptContent",payload:{id:pt,script_id:Ir}});case 2:er=Ea.sent,er&&da(er.content);case 4:case"end":return Ea.stop()}},br)}));return function(Ir){return Tr.apply(this,arguments)}}(),ha=function(br){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",b.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var Ir=Object(a.a)(r.a.mark(function pa(){return r.a.wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,xa(br);case 2:f.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:b.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return ba.stop()}},pa)}));function er(){return Ir.apply(this,arguments)}return er}()})},Ca=function(br,Ir){var er=rr[0]?[rr[0]]:[];Ir.forEach(function(pa){var Ea=rr.find(function(ga){return ga.mirror_repository_id===Number(pa.key)});if(Ea)er.push(Ea);else{var ba=ta.find(function(ga){return ga.id===Number(pa.key)});if(ba.mirror_name){var Oa={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(pa.key),name:ba.mirror_name,request_limit:10};er.push(Oa)}}}),cr(er),vr(br)};return b.a.createElement("div",{className:X.a.practice},b.a.createElement(dr.a,{loading:$r,skin:"night",className:X.a.left,dispatch:wn,value:qn,data:ln,otherData:Cn,tags:Vt,onChange:function(br){return Pr(br)}}),b.a.createElement("div",{className:X.a.right},b.a.createElement("header",null,b.a.createElement("div",{className:X.a.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",qn===null?"\u2014 \u2014":jr)),b.a.createElement("div",{className:X.a.content,ref:Je},qn===null&&b.a.createElement(vt.a,{image:xr.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),qn!==null&&b.a.createElement("div",{className:X.a.des},b.a.createElement("div",{className:X.a.mainBody},b.a.createElement(oe.a,{value:Mr})),b.a.createElement("div",{className:X.a.title},"\u9644\u5E26\u73AF\u5883"),b.a.createElement("div",{className:X.a.selectBox},b.a.createElement(ar.a,{onChange:function(br,Ir){return Ca(br,Ir)},getPopupContainer:function(br){return br.parentNode},mode:"multiple",bordered:!1,value:Dr,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},ta.map(function(Tr,br){return b.a.createElement(fe,{key:Tr.id,value:Tr.id},Tr.type_name)})),b.a.createElement("div",{className:X.a.smallType},Vr.map(function(Tr){return Tr.description?b.a.createElement("span",{key:Tr.id},Tr.description):null}))),!(_n!=null&&(dn=_n.detail)!==null&&dn!==void 0&&dn.is_jupyter_lab)&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:X.a.title},"\u8BC4\u6D4B\u811A\u672C"),b.a.createElement("div",{className:X.a.evaluating},b.a.createElement("div",{className:X.a.evaluatingLabel},rt&&b.a.createElement("div",{onClick:function(){if(Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return},className:X.a.mask}),b.a.createElement(ar.a,{style:{width:400},bordered:!1,getPopupContainer:function(br){return br.parentNode},value:Sr,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(br){ha(br),Kr(br)}},(_a||[]).map(function(Tr,br){return b.a.createElement(fe,{value:parseInt(Tr.id),name:Tr.scptname,key:br},Tr.scptname)})),b.a.createElement("span",{className:X.a.evaluatingS1,onClick:aa},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),b.a.createElement(xn.a,{overlayClassName:X.a.popover,placement:"bottomLeft",content:b.a.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",b.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",b.a.createElement("br",null),"challengeProgramNames",b.a.createElement("br",null),"sourceClassNames",b.a.createElement("br",null),b.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",b.a.createElement("br",null),b.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",b.a.createElement("br",null),"src/step1/HelloWorld.java",b.a.createElement("br",null),"src/step2/Other.java",b.a.createElement("br",null),b.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",b.a.createElement("br",null),"step1.HelloWorld",b.a.createElement("br",null),"step2.Other",b.a.createElement("br",null),b.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",b.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',b.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',b.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',b.a.createElement("br",null),'" "step2.Other")',b.a.createElement("br",null),b.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},b.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},b.a.createElement(Rr.a,null)))),b.a.createElement(nr.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:lr,onChange:function(br){if(Le.current){Le.current=!1;return}da(br),Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Le.current=!0,da($e.current.evaluateScript)},200)}}))),((Dn=_n.detail)===null||Dn===void 0?void 0:Dn.identity)<3&&!!rr.length&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:X.a.title},"\u670D\u52A1\u914D\u7F6E"),b.a.createElement("div",{className:X.a.serviceSettingWrap},rr==null?void 0:rr.map(function(Tr,br){return b.a.createElement("div",{key:br,className:"mb30"},b.a.createElement("div",null,b.a.createElement("span",{className:"font16"},Tr.name)),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.cpu_limit,disabled:rt,onChange:function(er){return hr(er.target.value,"cpu_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.lower_cpu_limit,disabled:rt,onChange:function(er){return hr(er.target.value,"lower_cpu_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.memory_limit,disabled:rt,onChange:function(er){return hr(er.target.value,"memory_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.request_limit,style:{width:300},disabled:rt,onChange:function(er){return hr(er.target.value,"request_limit",br)}}),b.a.createElement("label",{className:X.a.serviceSetTip},"\u6E29\u99A8\u63D0\u793A\uFF1A\u7EAF\u7F16\u7A0B\u7C7B\u578B\u5B9E\u8BAD\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF0C\u5BF9\u4E8E\u5927\u6570\u636E\u7B49\u5EFA\u8BAE\u4F7F\u7528\u6700\u5927\u5185\u5B58\u768430%")),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u78C1\u76D8\u9650\u5236(K)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.resource_limit,style:{width:300},disabled:rt,maxLength:8,onChange:function(er){var pa=er.target.value,Ea=/^\d*(\.\d*)?$/;pa.match(Ea)&&hr(er.target.value,"resource_limit",br)}})))}))))),b.a.createElement("div",{className:X.a.btns},b.a.createElement(I.a,{size:"large",style:{marginRight:20},onClick:ua},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",disabled:qn===null,onClick:function(){return jn()}},"\u4FDD\u5B58"))),b.a.createElement(q.a,null),b.a.createElement(Fr,{onFinish:function(br){return da(br)}}),b.a.createElement(De.a,null))},Qt=Object(E.a)(function(Sn){var Yt=Sn.practiceSetting,dn=Sn.globalSetting,Dn=Sn.shixunsDetail,en=Sn.user;return{practiceSetting:Yt,globalSetting:dn,shixunsDetail:Dn,user:en}})(ot),Mn=o("g9YV"),Vn=o("wCAj"),$t=o("5Dmo"),gn=o("3S7+"),pn=o("P5Jw"),Ar=o("wd/R"),ra=o.n(Ar),oa=o("3d99"),ir=o.n(oa),Ra=o("Lf5v"),La=o("xKgJ"),ca=o("lzim"),Ka=b.a.Fragment,wa=function(Yt){var dn,Dn,en,wn,_n=Yt.globalSetting,In=Yt.dispatch,Un=Yt.practiceSetting,or=Yt.shixunsDetail,qn=Yt.user,Pr=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Lr=Un.id,Qn=Object(T.useState)([]),Dr=Object(de.a)(Qn,2),vr=Dr[0],zr=Dr[1],Nr=Object(T.useState)({}),$r=Object(de.a)(Nr,2),tr=$r[0],Gt=$r[1],Zt=Object(T.useState)(!1),Jt=Object(de.a)(Zt,2),zn=Jt[0],$n=Jt[1],Ln=Object(T.useState)(!0),rr=Object(de.a)(Ln,2),cr=rr[0],sr=rr[1],qr=Object(T.useState)(!1),lr=Object(de.a)(qr,2),da=lr[0],Yr=lr[1],_r=Object(T.useState)(!1),Sr=Object(de.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Ta=Object(T.useState)([]),_a=Object(de.a)(Ta,2),Ze=_a[0],ct=_a[1],bt=Object(T.useState)(!1),nt=Object(de.a)(bt,2),Me=nt[0],Je=nt[1],Le=Object(T.useState)({}),$e=Object(de.a)(Le,2),qe=$e[0],pt=$e[1],rt=Object(T.useState)({page:1,limit:10,total:0}),Mt=Object(de.a)(rt,2),Vt=Mt[0],fn=Mt[1];Object(T.useEffect)(function(){if(!Lr)return;cn()},[Lr]);var ln=function(wr){var Gn=Object(K.a)(Object(K.a)({},Vt),{},{page:wr});ct([]),fn(Gn),cn(Gn)},cn=function(){var Kn=Object(a.a)(r.a.mark(function wr(Gn){var En,jn,Vr;return r.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return En={page:1,limit:10,total:0},jn=Gn||En,$n(!0),hr.next=5,In({type:"shixunsDetail/getSetData",payload:Object(K.a)(Object(K.a)({},jn),{},{id:Lr})});case 5:Vr=hr.sent,Vr!=null&&Vr.data_sets&&($n(!1),zr(Object(be.a)(Vr.data_sets)),fn(Object(K.a)(Object(K.a)({},jn),{},{total:Vr==null?void 0:Vr.data_sets_count})),sr(!1),Gt(Object(K.a)({},Vr)));case 7:case"end":return hr.stop()}},wr)}));return function(Gn){return Kn.apply(this,arguments)}}(),un=function(){return b.a.createElement("div",{className:ir.a.empty},b.a.createElement("img",{src:ca.j,width:"258"}),b.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~"))},Wn=function(wr){console.log("selectedRowKeys changed: ",wr),ct(wr)},Cn={selectedRowKeys:Ze,columnWidth:70,onChange:Wn},jr=function(wr){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var Gn=wr?[wr]:Ze;f.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var En=Object(a.a)(r.a.mark(function Vr(){var ua,hr;return r.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,Object(c.a)("/api/shixuns/".concat(Lr,"/destroy_data_sets.json"),{method:"Delete",body:{id:Gn}});case 2:ua=xa.sent,ua.status===0&&(hr=Gn.length===vr.length&&Vt.page>1?Vt.page-1:Vt.page,m.b.success("\u5220\u9664\u6210\u529F"),cn(Object(K.a)(Object(K.a)({},Vt),{},{page:hr})),ct([]));case 4:case"end":return xa.stop()}},Vr)}));function jn(){return En.apply(this,arguments)}return jn}()})},Mr=function(){var Kn=Object(a.a)(r.a.mark(function wr(){var Gn,En,jn,Vr,ua;return r.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(Gn=qe.title,En=null,console.log(Gn,"title"),!(Gn==="")){aa.next=7;break}return En="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",pt(Object(K.a)(Object(K.a)({},qe),{},{errorDes:En})),aa.abrupt("return");case 7:if(jn=vr.find(function(xa){return xa.id===(qe==null?void 0:qe.id)}).title,!(Gn===jn.substring(0,jn.lastIndexOf("."))||Gn===jn)){aa.next=12;break}return En="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",pt(Object(K.a)(Object(K.a)({},qe),{},{errorDes:En})),aa.abrupt("return");case 12:return Vr=jn.includes(".")?jn.substring(jn.lastIndexOf("."),jn.length):"",aa.next=15,Object(c.a)("/api/shixuns/".concat(Lr,"/rename_data_sets.json"),{method:"post",body:{id:qe==null?void 0:qe.id,new_file_name:Gn+Vr}});case 15:ua=aa.sent,ua.status===0&&(m.b.success("\u91CD\u547D\u540D\u6210\u529F"),cn(Vt),Yr(!1),pt({}));case 17:case"end":return aa.stop()}},wr)}));return function(){return Kn.apply(this,arguments)}}(),Qr=function(){var wr=qe.download_url;Wr(wr),m.b.success("\u590D\u5236\u6210\u529F"),Jr(!1),pt({})},Wr=function(wr){var Gn=wr,En=document.createElement("input");En.value=Gn,document.body.appendChild(En),En.select(),document.execCommand("Copy"),En.style.display="none"},ta=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(gn.a,{title:wr},b.a.createElement("span",null,wr))}},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(gn.a,{title:wr},b.a.createElement("span",null,wr||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:function(wr,Gn){return ra()(Gn.created_on).format("YYYY-MM-DD HH:mm")}},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:function(wr,Gn){return b.a.createElement("div",{className:ir.a.path},b.a.createElement(gn.a,{title:wr},b.a.createElement("span",{className:ir.a.text},wr)),b.a.createElement(pn.CopyToClipboard,{text:wr,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(gn.a,{title:"\u590D\u5236"},b.a.createElement("i",{className:"iconfont icon-fuzhi6 ml5"}))))}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author",align:"left",width:120},{title:"\u6587\u4EF6\u5927\u5C0F",dataIndex:"filesize",key:"filesize",align:"left",width:100},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"left",width:Object(La.v)()?200:120,render:function(wr,Gn){return b.a.createElement("div",{className:ir.a.actionsBtns},b.a.createElement(gn.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var jn;pt(Object(ae.clone)(Object(K.a)(Object(K.a)({},Gn),{},{title:Gn!=null&&Gn.title.includes(".")?Gn==null||((jn=Gn.title)===null||jn===void 0)?void 0:jn.substring(0,Gn.title.lastIndexOf(".")):Gn==null?void 0:Gn.title}))),Yr(!0),Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(La.v)()&&b.a.createElement(gn.a,{title:"\u5206\u4EAB"},b.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),pt(Object(ae.clone)(Gn)),Jr(!0)}})),Object(La.v)()&&b.a.createElement(gn.a,{title:"\u4E0B\u8F7D"},b.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(l.x)(Gn.title,Gn==null?void 0:Gn.download_url)}})),b.a.createElement(gn.a,{title:"\u5220\u9664"},b.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),jr(Gn.id)}})))}}];return b.a.createElement("div",{className:ir.a.dataset},b.a.createElement("div",{className:ir.a.header},b.a.createElement("div",{className:ir.a.title},"\u6570\u636E\u96C6(",Vt.total,")"),b.a.createElement("div",{className:ir.a.dataPath},b.a.createElement("span",{className:ir.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:tr==null?void 0:tr.folder_name,disabled:!0}),b.a.createElement(pn.CopyToClipboard,{text:tr==null?void 0:tr.folder_name,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(gn.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u6570\u636E\u96C6\u8DEF\u5F84"},b.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})))),b.a.createElement("div",{className:ir.a.btns},b.a.createElement(I.a,{type:"primary",ghost:!0,onClick:function(){return jr()},disabled:!Ze.length},"\u5220\u9664"),b.a.createElement(I.a,{type:"primary",onClick:function(){return Je(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:ir.a.content},b.a.createElement(Be.a,{loading:cr,active:!0,paragraph:{rows:5}},Vt.total?b.a.createElement(Vn.a,{rowSelection:Cn,className:ir.a.customTable,dataSource:vr,bordered:!1,rowKey:function(wr){return wr.id},rowClassName:ir.a.row,columns:ta,loading:zn,pagination:{pageSize:Vt.limit,total:Vt.total,current:Vt.page,onChange:ln,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):un())),b.a.createElement(Ra.a,{rootIdentifier:or==null||((dn=or.detail)===null||dn===void 0)?void 0:dn.root_identifier,wrapClassName:ir.a.uploadFileModal,id:Lr,containerId:or==null||((Dn=or.detail)===null||Dn===void 0)?void 0:Dn.id,local:_n==null||((en=_n.setting)===null||en===void 0)?void 0:en.is_local,dispatch:In,visible:Me,onClose:function(){return Je(!1)},onOK:cn}),b.a.createElement(f.a,{title:"\u91CD\u547D\u540D",visible:da,onOk:Mr,centered:!0,wrapClassName:ir.a.renameModal,onCancel:function(){Yr(!1),pt({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:ir.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(W.a,{value:qe==null?void 0:qe.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(wr){pt(Object(K.a)(Object(K.a)({},qe),{},{title:wr.target.value,errorDes:null}))},maxLength:60,suffix:"".concat((qe==null||((wn=qe.title)===null||wn===void 0)?void 0:wn.length)||0,"/60")}),(qe==null?void 0:qe.errorDes)&&b.a.createElement("div",{className:ir.a.errorDes},qe==null?void 0:qe.errorDes))),b.a.createElement(f.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Kr,onOk:Qr,centered:!0,wrapClassName:ir.a.shareModal,onCancel:function(){Jr(!1),pt({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:ir.a.fileName},"\u53D1\u9001\u94FE\u63A5\uFF0C\u522B\u4EBA\u53EF\u4EE5\u901A\u8FC7\u94FE\u63A5\u4E0B\u8F7D\u6587\u4EF6",b.a.createElement("span",null,"(\u6709\u6548\u671F\u4E3A3\u5929)")),b.a.createElement(W.a,{bordered:!1,addonBefore:"\u94FE\u63A5",value:qe==null?void 0:qe.download_url}))))},Ja=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,dn=Sn.shixunsDetail,Dn=Sn.practiceSetting,en=Sn.user;return{globalSetting:Yt,shixunsDetail:dn,user:en,practiceSetting:Dn}})(wa),ja=o("aHsQ"),li=o("sGsY"),oi=o("fKo2"),fa=o.n(oi),ma=o("BMKw"),la=o.n(ma),xe=function(Yt){return Yt!=null&&Yt.length?Yt.filter(function(dn,Dn){return Dn!==0}).map(function(dn){return dn.val}).join("").substr(1):""},lt=function(Yt){var dn=Yt.shixunsDetail,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.fileType,In=Yt.path,Un=Yt.onFinish,or=Un===void 0?function(){}:Un,qn=Object(w.i)(),Pr=Object(T.useState)(""),Lr=Object(de.a)(Pr,2),Qn=Lr[0],Dr=Lr[1],vr=Object(T.useState)([]),zr=Object(de.a)(vr,2),Nr=zr[0],$r=zr[1],tr=Object(T.useState)([]),Gt=Object(de.a)(tr,2),Zt=Gt[0],Jt=Gt[1],zn=[Xt.OriginalPicturePath,Xt.ExpectPicturePath,Xt.PicturePath],$n=zn.includes(_n);Object(T.useEffect)(function(){if(dn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Dr(In||""),Ln()},[dn.actionTabs.key]);var Ln=function(){var Yr=Object(a.a)(r.a.mark(function _r(){var Sr,Kr,Jr,Ta,_a=arguments;return r.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Kr=_a.length>0&&_a[0]!==void 0?_a[0]:"",ct.next=3,wn({type:"shixunsDetail/getRepository",payload:{id:qn.id,path:Kr}});case 3:Jr=ct.sent,Kr===""&&!(Jr!=null&&(Sr=Jr.trees)!==null&&Sr!==void 0&&Sr.length)&&m.b.warn("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Jr!=null&&Jr.trees&&(Ta=Jr.trees.map(function(bt){return Object(K.a)(Object(K.a)({},bt),{name:bt.name,val:bt.name})}),Jt(Ta||[]));case 6:case"end":return ct.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),rr=function(_r){var Sr=xe(Nr),Kr="".concat(Sr&&"".concat(Sr,"/")).concat(_r);_n===Xt.Path?!(Qn!=null&&Qn.includes("".concat(Kr,"\uFF1B")))&&Dr("".concat(Qn).concat(Kr,"\uFF1B")):_n===Xt.ExecPath&&Dr(Kr)},cr=function(_r){if(_r.type==="tree"){Nr.length?Nr.push({val:"/".concat(_r.val),path:_r.val}):Nr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(_r.val),path:_r.val}),$r(Nr);var Sr=xe(Nr);$n&&Dr(Sr),Ln(Sr)}},sr=function(_r,Sr){var Kr=Nr.filter(function(Ta,_a){return _a<=Sr});$r(Kr);var Jr=xe(Kr);$n&&Dr(Jr),Ln(Jr)},qr=function(){var Yr=Object(a.a)(r.a.mark(function _r(){return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:or(Qn),lr();case 2:case"end":return Kr.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),lr=function(){Dr(""),$r([]),Jt([]),wn({type:"shixunsDetail/setActionTabs",payload:{}})},da=xe(Nr);return b.a.createElement(f.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:dn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:qr,onCancel:lr},b.a.createElement("div",{className:la.a.wrap},b.a.createElement("div",{className:la.a.content},b.a.createElement("div",{className:la.a.mainPathWrap},!!(Nr!=null&&Nr.length)&&Nr.map(function(Yr,_r){return b.a.createElement("a",{key:_r,onClick:function(){return sr(Yr,_r)}},Yr.val)})),!!(Zt!=null&&Zt.length)&&Zt.map(function(Yr,_r){return Yr.type==="tree"?b.a.createElement("a",{key:_r,onClick:function(){return cr(Yr)}},b.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(la.a.colorBlue)}),da&&"".concat(da,"/"),Yr.name):b.a.createElement("a",{key:_r,onClick:function(){return rr("".concat(Yr.name))}},b.a.createElement("i",{className:"iconfont icon-zuoye ".concat(la.a.colorBlue)}),da&&"".concat(da,"/"),Yr.name)})),b.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),b.a.createElement(W.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:Qn,onChange:function(_r){return Dr(_r.target.value)}})))},Rt=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:dn.models.index}})(lt),wt=o("dhSg"),Kt=li.a.Countdown,Lt;(function(Sn){Sn[Sn.LoadingFail=1]="LoadingFail",Sn[Sn.Loading=2]="Loading",Sn[Sn.Finish=3]="Finish"})(Lt||(Lt={}));var Xt;(function(Sn){Sn.Path="path",Sn.ExecPath="exec_path",Sn.OriginalPicturePath="original_picture_path",Sn.ExpectPicturePath="expect_picture_path",Sn.PicturePath="picture_path"})(Xt||(Xt={}));var nn=function(Yt){var dn=Yt.globalSetting,Dn=Yt.loading,en=Yt.dispatch,wn=Yt.practiceSetting,_n=Yt.shixunsDetail,In=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Un=Object(T.useState)(),or=Object(de.a)(Un,2),qn=or[0],Pr=or[1],Lr=Object(T.useState)(),Qn=Object(de.a)(Lr,2),Dr=Qn[0],vr=Qn[1],zr=Object(T.useRef)(),Nr=Object(T.useState)(),$r=Object(de.a)(Nr,2),tr=$r[0],Gt=$r[1],Zt=Object(T.useState)(),Jt=Object(de.a)(Zt,2),zn=Jt[0],$n=Jt[1],Ln=Object(T.useState)(),rr=Object(de.a)(Ln,2),cr=rr[0],sr=rr[1],qr=Object(T.useRef)(!0),lr=Object(T.useState)(!0),da=Object(de.a)(lr,2),Yr=da[0],_r=da[1],Sr=Object(T.useState)(700),Kr=Object(de.a)(Sr,2),Jr=Kr[0],Ta=Kr[1],_a=Object(T.useState)(""),Ze=Object(de.a)(_a,2),ct=Ze[0],bt=Ze[1],nt=Object(T.useRef)(),Me=Object(w.i)();Object(T.useEffect)(function(){Le()},[]);var Je=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un,Wn,Cn;return r.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.next=2,en({type:"shixunsDetail/updateRepositoryFile",payload:{id:Me.id,path:_n==null||((un=_n.fileContent)===null||un===void 0||((Wn=un.params)===null||Wn===void 0))?void 0:Wn.path,content:qn,secret_repository:Yr?null:!0}});case 2:Cn=Mr.sent,Cn!=null&&Cn.content&&(m.b.info("\u4FDD\u5B58\u6210\u529F"),en({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},wn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Mr.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),Le=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un,Wn,Cn,jr,Mr;return r.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,Object(s.X)({identifier:Me.id});case 2:if(Cn=Wr.sent,!(Cn!=null&&(un=Cn.data)!==null&&un!==void 0&&(Wn=un.data_list)!==null&&Wn!==void 0&&Wn.length)){Wr.next=6;break}return wt.a.publish("pod-restrict-data",{identifier:Cn==null||((jr=Cn.data)===null||jr===void 0)?void 0:jr.identifier,data_list:Cn==null||((Mr=Cn.data)===null||Mr===void 0)?void 0:Mr.data_list}),Wr.abrupt("return");case 6:Cn!=null&&Cn.url&&bt(Cn==null?void 0:Cn.url);case 7:case"end":return Wr.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),$e=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.rb)({identifier:Me.id});case 2:if(un=Cn.sent,!((un==null?void 0:un.status)!==0)){Cn.next=5;break}return Cn.abrupt("return");case 5:un!=null&&un.remainingSeconds?(Gt(Date.now()+un.remainingSeconds*1e3),$n(un.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(un.remainingSeconds-300)*1e3)):qe();case 6:case"end":return Cn.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),qe=function(){f.a.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",zIndex:9999,content:b.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F"),onOk:function(){var cn=Object(a.a)(r.a.mark(function Wn(){return r.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:pt();case 1:case"end":return jr.stop()}},Wn)}));function un(){return cn.apply(this,arguments)}return un}()})},pt=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return vr(Lt.Loading),Cn.next=3,Object(s.Cb)({identifier:Me.id});case 3:if(un=Cn.sent,!((un==null?void 0:un.status)!==0)){Cn.next=6;break}return Cn.abrupt("return");case 6:vr(Lt.Finish),bt(un.url),zr.current=un.port,m.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return Cn.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),rt=function(){f.a.destroyAll(),f.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:b.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",b.a.createElement("span",null,b.a.createElement(Kt,{value:tr,format:"HH:mm:ss",onFinish:Mt})),"\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F"),okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981",onOk:function(){var cn=Object(a.a)(r.a.mark(function Wn(){var Cn;return r.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.next=2,Object(s.a)({identifier:Me.id});case 2:if(Cn=Mr.sent,!(Cn.status===0)){Mr.next=7;break}return Mr.next=6,$e();case 6:m.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Mr.stop()}},Wn)}));function un(){return cn.apply(this,arguments)}return un}()})},Mt=function(){f.a.destroyAll(),f.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:b.a.createElement("p",{className:"tc font14"},"\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){pt()}})},Vt=function(cn){en({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},fn=function(){var ln=Object(a.a)(r.a.mark(function cn(un){return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.Pb)({id:Me.id,startup_file:un});case 2:Le(),en({type:"practiceSetting/getCommonData",payload:Object(K.a)({},Me)});case 4:case"end":return Cn.stop()}},cn)}));return function(un){return ln.apply(this,arguments)}}();return b.a.createElement("div",{className:fa.a.warehouse},b.a.createElement(_.a,{className:"mt20 ml20 font14",align:"middle"},b.a.createElement(U.a,null,b.a.createElement("span",{className:"c-red"},"* "),"\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"),b.a.createElement(U.a,{flex:"300px",onClick:function(){return Vt(Xt.ExecPath)}},b.a.createElement(W.a,{value:ct})),b.a.createElement(U.a,{flex:"1"},b.a.createElement(I.a,{type:"primary",className:"ml10",onClick:function(){return Vt(Xt.ExecPath)}},"\u8BBE\u7F6E"))),b.a.createElement("iframe",{onLoad:function(cn){},src:ct,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),b.a.createElement(Rt,{fileType:"path",path:"",onFinish:function(cn){return fn(cn)}}))},yn=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.practiceSetting,en=Sn.shixunsDetail;return{globalSetting:dn,loading:Yt,practiceSetting:Dn,shixunsDetail:en}})(nn),vn=function(Yt){var dn=Yt.tabsActive,Dn=Object(g.a)(Yt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,dn==="information"&&b.a.createElement(tt,null),dn==="warehouse"&&b.a.createElement(dt.default,null),dn==="level"&&b.a.createElement(Ge,Dn),dn==="collaborate"&&b.a.createElement(Hn,Dn),dn==="setting"&&b.a.createElement(Xn.a,null),dn==="environment"&&b.a.createElement(Qt,Dn),dn==="dataset"&&b.a.createElement(Ja,null),dn==="service"&&b.a.createElement(yn,Dn))},Nn=vn,An=o("Jv0p"),an=o.n(An),Pn=o("luix"),bn=o.n(Pn),kn=[{name:"\u57FA\u672C\u4FE1\u606F",icon:b.a.createElement("i",{className:"icon iconfont icon-jibenxinxi1"}),tabId:"information"},{name:"\u4EE3\u7801\u4ED3\u5E93",icon:b.a.createElement("i",{className:"icon iconfont icon-daimacangku"}),tabId:"warehouse"},{name:"\u4EFB\u52A1\u5173\u5361",icon:b.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"level"},{name:"\u5B9E\u9A8C\u73AF\u5883",icon:b.a.createElement("i",{className:"icon iconfont icon-shiyanhuanjing"}),tabId:"environment"},{name:"\u6570\u636E\u96C6",icon:b.a.createElement("i",{className:"icon iconfont icon-shujuji",style:{fontSize:25}}),tabId:"dataset"},{name:"\u670D\u52A1",icon:b.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"service"},{name:"\u5408\u4F5C\u4EBA\u5458",icon:b.a.createElement("i",{className:"icon iconfont icon-hezuochengyuan"}),tabId:"collaborate"},{name:"\u8BBE\u7F6E",icon:b.a.createElement("i",{className:"icon iconfont icon-shezhi5"}),tabId:"setting"}],Rn=function(Yt){var dn,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.practiceSetting,Un=Object(g.a)(Yt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),or=In.base_info_warning,qn=In.challenges_warning,Pr=In.id,Lr=In.repository_warning,Qn=In.sideBar,Dr=In.service_warning,vr=Object(w.h)(),zr=Object(w.i)();Object(T.useEffect)(function(){var tr,Gt,Zt=vr==null||((tr=vr.query)===null||tr===void 0)?void 0:tr.tabId,Jt=vr.pathname.split("/").length,zn=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Ln){return Ln.tabId!=="dataset"}):kn,$n=zn.map(function(Ln){return Ln.tabId}).includes(Zt);if(Zt&&$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Zt}});return}if(Jt>4){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!Zt||Zt&&!$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[_n==null||((dn=_n.detail)===null||dn===void 0)?void 0:dn.windows_vnc]),Object(T.useEffect)(function(){return function(){wn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},In.sideBar),{},{selectPath:""})})}},[zr.id]);var Nr=function(Gt){var Zt;if(Gt===Qn.tabsActive)return;var Jt=function(){E.d.push("/shixuns/".concat(Pr,"/edit?tabId=").concat(Gt)),wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Gt,selectPath:"",confirmLeave:!1}})};In!=null&&(Zt=In.sideBar)!==null&&Zt!==void 0&&Zt.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Jt()}}):Jt()},$r=function(){var Gt,Zt=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Jt){return Jt.tabId!=="dataset"}):kn;return Zt.filter(function(Jt){var zn;return _n!=null&&(zn=_n.detail)!==null&&zn!==void 0&&zn.is_jupyter_lab?Jt.tabId!=="level":Jt.tabId!=="service"}).map(function(Jt){var zn=Jt.name,$n=Jt.icon,Ln=Jt.tabId;return b.a.createElement("div",{key:Ln,className:In.sideBar.tabsActive===Ln?an.a.itemActive:an.a.item,onClick:function(){return Nr(Ln)}},$n,b.a.createElement("span",{className:an.a.name},zn),Ln==="information"&&or&&b.a.createElement(gn.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="level"&&qn&&b.a.createElement(gn.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="service"&&Dr&&b.a.createElement(gn.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="warehouse"&&Lr&&b.a.createElement(gn.a,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},b.a.createElement("img",{src:bn.a,alt:""})))})};return b.a.createElement("div",{className:an.a.sidebar},b.a.createElement("div",{className:an.a.items},$r()),b.a.createElement("div",{className:an.a.question},b.a.createElement(gn.a,{placement:"right",title:"\u5E38\u89C1\u95EE\u9898"},b.a.createElement("span",{style:{cursor:"pointer"},onClick:function(){return window.open("https://www.educoder.net/forums/4692")}},b.a.createElement("img",{src:ca.t,height:44,width:44,alt:""})))))},Jn=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.shixunsDetail,en=Sn.practiceSetting;return{globalSetting:dn,loading:Yt,practiceSetting:en,shixunsDetail:Dn}})(Rn),mr=function(Yt){var dn=Yt.globalSetting,Dn=Yt.loading,en=Yt.dispatch,wn=Yt.practiceSetting,_n=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting"]),In=wn.sideBar,Un=In.tabsActive,or=Object(w.i)();return Object(T.useEffect)(function(){return en({type:"globalSetting/headerFooterToggle",payload:!1}),en({type:"shixunsDetail/getShixunsDetail",payload:or}),en({type:"shixunsDetail/getSettingsData",payload:or}),function(){en({type:"globalSetting/headerFooterToggle",payload:!0}),en({type:"practiceSetting/setParams",payload:{id:""}})}},[]),b.a.createElement("div",{className:x.a.practiceSetting},b.a.createElement("div",{className:x.a.wrapHeader},b.a.createElement(R,null)),b.a.createElement("div",{className:x.a.wrapLayout},b.a.createElement("div",{className:x.a.wrapSidebar},b.a.createElement(Jn,null)),b.a.createElement("div",{className:x.a.wrapContent},b.a.createElement(Nn,Object(P.a)({},_n,{tabsActive:wn.sideBar.tabsActive})))))},Br=z.default=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.practiceSetting;return{globalSetting:dn,loading:Yt,practiceSetting:Dn}})(mr)},WYAk:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){(function(){var g=P,T=g.lib,b=T.Base,y=g.enc,x=y.Utf8,O=g.algo,m=O.HMAC=b.extend({init:function(e,f){e=this._hasher=new e.init,typeof f=="string"&&(f=x.parse(f));var a=e.blockSize,u=a*4;f.sigBytes>u&&(f=e.finalize(f)),f.clamp();for(var r=this._oKey=f.clone(),i=this._iKey=f.clone(),n=r.words,l=i.words,h=0;h0&&p.prevInput=="\u200B"?Ha(B,ol)(B):Bn++<10?j.detectingSelectAll=setTimeout(Zn,500):(j.selForContextMenu=null,j.input.reset())};j.detectingSelectAll=setTimeout(Zn,200)}}if(O&&m>=9&&tn(),R){Be(t);var Tn=function(){jt(window,"mouseup",Tn),setTimeout(zt,20)};Ue(window,"mouseup",Tn)}else setTimeout(zt,50)},Hr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Hr.prototype.setUneditable=function(){},Hr.prototype.needsContentAttribute=!1;function Ia(t,p){if(p=p?I(p):{},p.value=t.value,!p.tabindex&&t.tabIndex&&(p.tabindex=t.tabIndex),!p.placeholder&&t.placeholder&&(p.placeholder=t.placeholder),p.autofocus==null){var B=V();p.autofocus=B==t||t.getAttribute("autofocus")!=null&&B==document.body}function j(){t.value=we.getValue()}var G;if(t.form&&(Ue(t.form,"submit",j),!p.leaveSubmitMethodAlone)){var ne=t.form;G=ne.submit;try{var ge=ne.submit=function(){j(),ne.submit=G,ne.submit(),ne.submit=ge}}catch(Re){}}p.finishInit=function(Re){Re.save=j,Re.getTextArea=function(){return t},Re.toTextArea=function(){Re.toTextArea=isNaN,j(),t.parentNode.removeChild(Re.getWrapperElement()),t.style.display="",t.form&&(jt(t.form,"submit",j),!p.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=G))}},t.style.display="none";var we=Ya(function(Re){return t.parentNode.insertBefore(Re,t.nextSibling)},p);return we}function Da(t){t.off=jt,t.on=Ue,t.wheelEventPixels=Hi,t.Doc=Ti,t.splitLines=Ke,t.countColumn=K,t.findColumn=Ee,t.isWordChar=te,t.Pass=Se,t.signal=bt,t.Line=dn,t.changeEnd=Zr,t.scrollbarModel=xo,t.Pos=qt,t.cmpPos=On,t.modes=ht,t.mimeModes=Et,t.resolveMode=lt,t.getMode=Ft,t.modeExtensions=Lt,t.extendMode=on,t.copyState=mn,t.startState=Xn,t.innerMode=Hn,t.commands=qo,t.keyMap=vo,t.keyName=xs,t.isModifierKey=is,t.lookupKey=_o,t.normalizeKeyMap=_l,t.StringStream=Fn,t.SharedTextMarker=Qo,t.TextMarker=Gi,t.LineWidget=ns,t.e_preventDefault=Ce,t.e_stopPropagation=Ie,t.e_stop=Be,t.addClass=H,t.contains=N,t.rmClass=C,t.keyNames=Ro}eu(Ya),Wt(Ya);var za="iter insert remove copy getEditor constructor".split(" ");for(var si in Ti.prototype)Ti.prototype.hasOwnProperty(si)&&he(za,si)<0&&(Ya.prototype[si]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ti.prototype[si]));return Ge(Ti),Ya.inputStyles={textarea:Hr,contenteditable:kt},Ya.defineMode=function(t){!Ya.defaults.mode&&t!="null"&&(Ya.defaults.mode=t),Ot.apply(this,arguments)},Ya.defineMIME=Mt,Ya.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Ya.defineMIME("text/plain","null"),Ya.defineExtension=function(t,p){Ya.prototype[t]=p},Ya.defineDocExtension=function(t,p){Ti.prototype[t]=p},Ya.fromTextArea=Ia,Da(Ya),Ya.version="5.58.2",Ya})},W6BS:function(k,z){k.exports="data:image/png;base64,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"},WO9J:function(k,z,o){"use strict";o.r(z);var P=o("0Owb"),g=o("PpiC"),T=o("q1tI"),b=o.n(T),y=o("EkPF"),x=o.n(y),O=o("miYZ"),m=o("tsqr"),e=o("2qtc"),f=o("kLXV"),a=o("9og8"),u=o("WmNS"),r=o.n(u),i=o("auZk"),n=o.n(i),l=o("1vsH"),h=o("Ufr+"),d=o.n(h),s=o("HBuW"),c=o("ErOA"),w=o("Ty5D"),E=o("9kvl"),v=function(Yt){var dn,Dn,en=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.shixunsDetail,or=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),qn=Object(w.h)(),Pr=Object(T.useRef)(""),Lr=Object(w.i)(),Qn=In.title,Dr=In.base_info_warning,vr=In.challenges_warning,zr=In.service_warning,Nr=In.repository_warning,$r=In.mirror_warning;Object(T.useEffect)(function(){var cr;Pr.current=(cr=qn.pathname.split("/"))===null||cr===void 0?void 0:cr[2],_n({type:"practiceSetting/setParams",payload:{id:Pr.current}}),_n({type:"practiceSetting/getCommonData",payload:{id:Pr.current}})},[qn.pathname]),Object(T.useEffect)(function(){return Object(l.X)(Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),function(){Object(l.X)()}});var tr=function(){var cr=Object(a.a)(r.a.mark(function sr(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Gt();case 2:E.d.push("/shixuns/".concat(Pr.current,"/challenges"));case 3:case"end":return lr.stop()}},sr)}));return function(){return cr.apply(this,arguments)}}(),Gt=function(){return new Promise(function(sr,qr){var lr;In!=null&&(lr=In.sideBar)!==null&&lr!==void 0&&lr.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),sr()},onCancel:function(){qr()}}):sr()})},Zt=function(sr){var qr;if(sr===(In==null?void 0:In.sideBar.tabsActive))return;var lr=function(){E.d.push("/shixuns/".concat(Pr.current,"/edit?tabId=").concat(sr)),_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:sr,selectPath:"",confirmLeave:!1}})};In!=null&&(qr=In.sideBar)!==null&&qr!==void 0&&qr.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){lr()}}):lr()},Jt=function cr(sr){var qr;sr=(qr=sr)!==null&&qr!==void 0&&qr.includes(".json")?sr:"".concat(sr,".json"),f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var lr=Object(a.a)(r.a.mark(function Yr(){var _r,Sr;return r.a.wrap(function(Jr){for(;;)switch(Jr.prev=Jr.next){case 0:return Jr.next=2,Object(c.a)("/api"+sr,{method:"get"});case 2:if(_r=Jr.sent,_r){Jr.next=5;break}return Jr.abrupt("return");case 5:return m.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Jr.next=8,Object(s.E)({id:_r.shixun_identifier});case 8:if(Sr=Jr.sent,!(Sr!=null&&Sr.game_identifier)){Jr.next=12;break}return Object(l.S)("/tasks/".concat(Sr.game_identifier)),Jr.abrupt("return");case 12:(Sr==null?void 0:Sr.status)===2?cr(Sr==null?void 0:Sr.message):(Sr==null?void 0:Sr.status)===3&&zn(Sr==null?void 0:Sr.message);case 13:case"end":return Jr.stop()}},Yr)}));function da(){return lr.apply(this,arguments)}return da}()})},zn=function(sr){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",sr,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},$n=function(){var cr=Object(a.a)(r.a.mark(function sr(qr,lr){var da,Yr,_r;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Kr.next=2,Gt();case 2:if(Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),!((da=Un.detail)!==null&&da!==void 0&&da.is_jupyter||(Yr=Un.detail)!==null&&Yr!==void 0&&Yr.is_jupyter_lab)){Kr.next=6;break}return _n({type:"shixunsDetail/execJupyter",payload:{id:Pr.current}}).then(function(Jr){Jr!=null&&Jr.identifier&&(E.d===null||E.d===void 0||E.d.push("/tasks/".concat(Jr.identifier,"/jupyter")))}),Kr.abrupt("return");case 6:if(_n({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!lr){Kr.next=13;break}return Kr.next=10,Object(s.D)({id:qr});case 10:Kr.t0=Kr.sent,Kr.next=16;break;case 13:return Kr.next=15,Object(s.E)({id:qr});case 15:Kr.t0=Kr.sent;case 16:if(_r=Kr.t0,_n({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(_r!=null&&_r.game_identifier||_r!=null&&_r.identifier)){Kr.next=21;break}return Object(l.S)(lr?"/tasks/".concat(_r==null?void 0:_r.identifier,"/jupyter"):"/tasks/".concat(_r.game_identifier)),Kr.abrupt("return");case 21:(_r==null?void 0:_r.status)===-3?Object(l.q)():(_r==null?void 0:_r.status)===2?Jt(_r==null?void 0:_r.message):(_r==null?void 0:_r.status)===3&&zn(_r==null?void 0:_r.message);case 22:case"end":return Kr.stop()}},sr)}));return function(qr,lr){return cr.apply(this,arguments)}}(),Ln=function(){var cr=Object(a.a)(r.a.mark(function sr(){return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,Gt();case 2:_n({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});case 3:case"end":return lr.stop()}},sr)}));return function(){return cr.apply(this,arguments)}}(),rr=function(sr){var qr={borderBottomColor:(In==null?void 0:In.sideBar.tabsActive)===sr?"#0152d9":"transparent"};return qr};return b.a.createElement("div",{className:n.a.header},b.a.createElement("aside",{className:n.a.title},b.a.createElement("i",{onClick:tr,style:{color:"#fff",marginRight:20},className:"icon iconfont icon-fanhui1"}),b.a.createElement("span",{className:n.a.edit},Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"),b.a.createElement("i",{onClick:Ln,className:"icon iconfont icon-xiugai1"})),b.a.createElement("aside",{className:n.a.schedule},b.a.createElement("div",null,b.a.createElement("span",{style:rr("information"),className:n.a.clickWarp,onClick:function(){return Zt("information")}},Dr?b.a.createElement("span",{className:n.a.num},"1"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:n.a.subject},"\u57FA\u672C\u4FE1\u606F")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:rr("warehouse"),className:n.a.clickWarp,onClick:function(){return Zt("warehouse")}},Nr?b.a.createElement("span",{className:n.a.num},"2"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:n.a.subject},"\u4EE3\u7801\u4ED3\u5E93")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Un==null?void 0:Un.detail)&&!(Un!=null&&(dn=Un.detail)!==null&&dn!==void 0&&dn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:rr("level"),className:n.a.clickWarp,onClick:function(){return Zt("level")}},vr?b.a.createElement("span",{className:n.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:n.a.subject},"\u4EFB\u52A1\u5173\u5361")),b.a.createElement("i",{className:"iconfont icon-lujing"})),(Un==null?void 0:Un.detail)&&(Un==null||((Dn=Un.detail)===null||Dn===void 0)?void 0:Dn.is_jupyter_lab)&&b.a.createElement("div",null,b.a.createElement("span",{style:rr("service"),className:n.a.clickWarp,onClick:function(){return Zt("service")}},zr?b.a.createElement("span",{className:n.a.num},"3"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:n.a.subject},"\u670D\u52A1")),b.a.createElement("i",{className:"iconfont icon-lujing"})),b.a.createElement("div",null,b.a.createElement("span",{style:rr("environment"),className:n.a.clickWarp,onClick:function(){return Zt("environment")}},$r?b.a.createElement("span",{className:n.a.num},"4"):b.a.createElement("img",{src:d.a}),b.a.createElement("span",{className:n.a.subject},"\u5B9E\u9A8C\u73AF\u5883")))),b.a.createElement("aside",{className:n.a.btns},b.a.createElement("div",{className:n.a.simulate,onClick:function(){return $n(Pr.current,!1)}},"\u6A21\u62DF\u5B9E\u6218")))},R=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.practiceSetting,en=Sn.shixunsDetail;return{globalSetting:dn,loading:Yt,practiceSetting:Dn,shixunsDetail:en}})(v),M=o("sRBo"),C=o("kaz8"),S=o("14J3"),_=o("BMrR"),A=o("jCWc"),U=o("kPKH"),L=o("DZo9"),N=o("8z0m"),V=o("6UJt"),H=o("DFOY"),D=o("5NDa"),W=o("5rEg"),F=o("+L6B"),I=o("2/Rp"),K=o("k1fw"),ee=o("y8nQ"),he=o("Vl3Y"),de=o("tJVT"),Se=o("h/E3"),Te=o.n(Se),ce=o("Ot1p"),be=o("oBTY"),Ee=o("+Xk9"),ue=o.n(Ee),le=o("FTkQ"),$=o.n(le),me=function(Yt){var dn=Yt.InputRight,Dn=Yt.value,en=Dn===void 0?[]:Dn,wn=Yt.onChange,_n=Object(g.a)(Yt,["InputRight","value","onChange"]),In=Object(T.useState)(),Un=Object(de.a)(In,2),or=Un[0],qn=Un[1],Pr=function(Dr){var vr=en.filter(function(zr,Nr){return Nr!==Dr});wn(vr)},Lr=function(Dr){if(Dr.preventDefault(),!or)return;if(en.findIndex(function(vr){return vr.name===or})>-1){m.b.warn("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}wn([].concat(Object(be.a)(en),[{id:null,name:or}])),qn(null)};return b.a.createElement("div",null,b.a.createElement(W.a,Object(P.a)({bordered:!1,style:{width:600},value:or,onChange:function(Dr){return qn(Dr.target.value)},onPressEnter:Lr,onBlur:Lr},_n)),dn||b.a.createElement("span",{className:"pl20 font14 c-light-black"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"),b.a.createElement("div",{className:"mt20"},en==null?void 0:en.map(function(Qn,Dr){return b.a.createElement("div",{key:Dr,className:ue.a.btn},b.a.createElement("span",{className:ue.a.s1},Qn.name),b.a.createElement("img",{src:$.a,className:ue.a.s2,onClick:function(){return Pr(Dr)}}))})))},re=me,ae=o("LvDl"),Oe=o("m3rI"),se=o("hW5Z"),te=o.n(se),Q=function(Yt){var dn=Yt.dispatch,Dn=Yt.onCancel,en=Yt.onSave,wn=Yt.loading,_n=wn===void 0?!1:wn;return b.a.createElement("div",{className:te.a.complete},b.a.createElement("div",{onClick:Dn,className:te.a.cancel},"\u53D6\u6D88"),b.a.createElement(I.a,{type:"primary",loading:_n,onClick:en,className:te.a.save},"\u4FDD\u5B58"))},J=Object(E.a)()(Q),ve=o("UqFu"),_e=o("z7Xi"),Ae=o("jN4g"),Qe=function(Yt){var dn,Dn,en=Yt.globalSetting,wn=Yt.loading,_n=Yt.dispatch,In=Yt.practiceSetting,Un=Yt.problemset,or=Yt.shixunsDetail,qn=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","problemset","shixunsDetail"]),Pr=he.a.useForm(),Lr=Object(de.a)(Pr,1),Qn=Lr[0],Dr=Object(T.useState)({}),vr=Object(de.a)(Dr,2),zr=vr[0],Nr=vr[1],$r=Object(T.useState)(!1),tr=Object(de.a)($r,2),Gt=tr[0],Zt=tr[1],Jt=Object(T.useState)(!1),zn=Object(de.a)(Jt,2),$n=zn[0],Ln=zn[1],rr=Object(T.useState)(""),cr=Object(de.a)(rr,2),sr=cr[0],qr=cr[1],lr=Object(T.useState)(""),da=Object(de.a)(lr,2),Yr=da[0],_r=da[1],Sr=Object(T.useRef)({}),Kr=Object(T.useRef)(""),Jr=Object(T.useRef)(null),Ta=Object(T.useRef)(Object(ae.throttle)(function(){return Me()},2e3,{leading:!0,trailing:!1})).current,_a=In.id;Object(T.useEffect)(function(){if(!_a)return;ct()},[_a]),Object(T.useEffect)(function(){return JSON.stringify(zr)!=="{}"&&Ze(),function(){clearTimeout(Jr.current)}},[zr,sr,Yr]);var Ze=function(){clearTimeout(Jr.current),Jr.current=setTimeout(function(){!Object(ae.isEqual)(zr,Sr.current)||sr!==Kr.current||Yr!==Kr.current?_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},ct=function(){var cn=Object(a.a)(r.a.mark(function un(){var Wn,Cn,jr,Mr,Qr,Wr,ta,Kn,wr;return r.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return _n({type:"problemset/getEditDisciplines",payload:{source:"shixun"}}),En.next=3,Object(c.a)("/api/shixuns/".concat(_a,"/edit_base_info.json"),{method:"get"});case 3:Wn=En.sent,Wn.status===0&&(Kn=Object(K.a)(Object(K.a)({},Wn.data),{},{description:Object(ve.a)(Wn.data.description)}),wr={description:Kn.description,shixun_tags:Kn.shixun_tags,name:Kn.name,course:(Kn==null||((Cn=Kn.disciplines)===null||Cn===void 0)?void 0:Cn.length)>0?[Kn==null||((jr=Kn.disciplines)===null||jr===void 0||((Mr=jr[0])===null||Mr===void 0))?void 0:Mr.id,Kn==null||((Qr=Kn.disciplines)===null||Qr===void 0||((Wr=Qr[0])===null||Wr===void 0||((ta=Wr.sub_discipline)===null||ta===void 0)))?void 0:ta.id]:[],jupyter_show_description:Wn.data.jupyter_show_description},Qn.setFieldsValue(wr),Sr.current=Object(K.a)({},wr),Kr.current=Kn.attachment_id||"",Nr(Object(K.a)({},wr)),qr(Kn.attachment_id||""),_r(Kn.cover_image_id||""));case 5:case"end":return En.stop()}},un)}));return function(){return cn.apply(this,arguments)}}(),_t=function(un,Wn){Nr(Object(K.a)({},Wn))},nt=function(){Le()},Me=function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u57FA\u672C\u4FE1\u606F","\u4FDD\u5B58"]),Qn.submit()},Je=function(un){var Wn,Cn=un.name,jr=un.description,Mr=un.shixun_tags,Qr=un.course,Wr=un.jupyter_show_description,ta=Wr===void 0?!1:Wr,Kn={name:Cn,description:jr,shixun_tags:Mr,attachment_id:sr,cover_image_id:Yr,sub_discipline_ids:Qr[1]};(Wn=or.detail)!==null&&Wn!==void 0&&Wn.is_jupyter_lab&&(Kn=Object(K.a)(Object(K.a)({},Kn),{},{jupyter_show_description:ta}));var wr=Object(c.a)("/api/shixuns/".concat(_a,"/base_info_save.json"),{method:"post",body:{shixun:Object(K.a)({},Kn)}});wr.then(function(Gn){Gn.status===0&&(m.b.success("\u4FDD\u5B58\u6210\u529F"),_n({type:"practiceSetting/getCommonData",payload:{id:_a}}),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Sr.current={description:zr.description,shixun_tags:zr.shixun_tags,name:zr.name},Kr.current=sr)})},Le=function(){var un,Wn=function(){E.d.push("/shixuns/".concat(_a,"/challenges")),_n({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};In!=null&&(un=In.sideBar)!==null&&un!==void 0&&un.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Wn()}}):Wn()};function $e(cn){var un=cn.type==="image/jpeg"||cn.type==="image/png";return un||m.b.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),un}var qe=b.a.createElement(I.a,{loading:Gt,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),pt=b.a.createElement(I.a,{loading:$n,icon:b.a.createElement(_e.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");function rt(cn,un){var Wn=new FileReader;Wn.addEventListener("load",function(){return un(Wn.result)}),Wn.readAsDataURL(cn)}var It=function(un){if(un.file.status==="uploading"){Zt(!0);return}if(un.file.status==="done"){var Wn,Cn;Zt(!1),qr(un==null||((Wn=un.file)===null||Wn===void 0||((Cn=Wn.response)===null||Cn===void 0))?void 0:Cn.id)}},Vt=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+sr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return qr("")},style:{fontSize:"16px",color:"red"}})))},fn=function(un){if(un.file.status==="uploading"){Ln(!0);return}if(un.file.status==="done"){var Wn,Cn;Ln(!1),_r(un==null||((Wn=un.file)===null||Wn===void 0||((Cn=Wn.response)===null||Cn===void 0))?void 0:Cn.id)}},ln=function(){return b.a.createElement("div",{className:Te.a.img},b.a.createElement("img",{src:Oe.a.API_SERVER+"/api/attachments/"+Yr,alt:"avatar",style:{width:"100%"}}),b.a.createElement("div",null,b.a.createElement(Ae.a,{onClick:function(){return _r("")},style:{fontSize:"16px",color:"red"}})))};return b.a.createElement("div",{className:Te.a.information},b.a.createElement("section",{className:Te.a.scroll},b.a.createElement("header",null,"\u57FA\u672C\u4FE1\u606F"),b.a.createElement("div",{className:Te.a.formWrap}," ",b.a.createElement(he.a,{form:Qn,scrollToFirstError:!0,layout:"vertical",onValuesChange:_t,onFinish:Je},b.a.createElement(he.a.Item,{name:"name",label:"\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.a.createElement(W.a,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:"".concat(((dn=zr.name)===null||dn===void 0?void 0:dn.length)||0,"/60")})),b.a.createElement(he.a.Item,{className:"customAddTags",name:"shixun_tags",label:b.a.createElement("div",null,"\u6280\u80FD\u6807\u7B7E :"," ",b.a.createElement("span",{className:"pl10 font14 c-light-black"},"\u5B66\u5458\u901A\u8FC7\u6240\u6709\u4EFB\u52A1\u5173\u5361\uFF0C\u5C06\u83B7\u5F97\u6280\u80FD\u6807\u7B7E")),rules:[{required:!0,message:"\u8BF7\u9009\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},b.a.createElement(re,{placeholder:"\u6DFB\u52A0\u6807\u7B7E"})),b.a.createElement(he.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",labelCol:{span:5},wrapperCol:{span:5}},b.a.createElement(H.a,{placeholder:"\u8BF7\u9009\u62E9...",allowClear:!1,options:Un.courseOptions})),b.a.createElement(_.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u9876\u90E8\u80CC\u666F\u56FE:"},sr?Vt():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:It},qe))),b.a.createElement(U.a,{className:"c-grey-999"},b.a.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u75281920*200\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),b.a.createElement(_.a,null,b.a.createElement(U.a,null,b.a.createElement(he.a.Item,{label:"\u5217\u8868\u5C01\u9762\u56FE:"},Yr?ln():b.a.createElement(N.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(Oe.a.API_SERVER,"/api/attachments.json"),beforeUpload:$e,onChange:fn},pt))),b.a.createElement(U.a,{className:"c-grey-999"},b.a.createElement("div",{style:{marginTop:71,marginLeft:20}},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528290*218\u50CF\u7D20\uFF1B\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002"))),b.a.createElement(he.a.Item,{name:"description",label:"\u7B80\u4ECB:"},b.a.createElement(ce.a,{defaultValue:zr.description||"",watch:!0})),((Dn=or.detail)===null||Dn===void 0?void 0:Dn.is_jupyter_lab)&&b.a.createElement(he.a.Item,{name:"jupyter_show_description",valuePropName:"checked"},b.a.createElement(C.a,null,"\u663E\u793A\u4EFB\u52A1\u8981\u6C42\uFF08\u52FE\u9009\u540E\uFF0C\u5C06\u7B80\u4ECB\u4F5C\u4E3A\u4EFB\u52A1\u8981\u6C42\u663E\u793A\u5728\u5B9E\u8DF5\u9879\u76EE\u6311\u6218\u9875\u9762\uFF09"))))),b.a.createElement(J,{onSave:Ta,onCancel:nt,loading:Gt||$n}))},tt=Object(E.a)(function(Sn){var Yt=Sn.problemset,dn=Sn.loading,Dn=Sn.globalSetting,en=Sn.practiceSetting,wn=Sn.shixunsDetail;return{globalSetting:Dn,loading:dn,practiceSetting:en,problemset:Yt,shixunsDetail:wn}})(Qe),dt=o("ch0t"),mt=o("R9oj"),vt=o("ECub"),yt=o("T2oS"),Ye=o("W9HT"),Ue=o("bKvZ"),ft=o.n(Ue),jt=o("KeGQ"),bt=o.n(jt),Pt=o("NLgs"),it=o("ngQI"),He=function(Yt){var dn=Yt.globalSetting,Dn=Yt.dispatch,en=Yt.practiceSetting,wn=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting"]),_n=Object(T.useState)(!1),In=Object(de.a)(_n,2),Un=In[0],or=In[1],qn=Object(T.useState)({}),Pr=Object(de.a)(qn,2),Lr=Pr[0],Qn=Pr[1],Dr=Object(T.useState)(!0),vr=Object(de.a)(Dr,2),zr=vr[0],Nr=vr[1],$r=Object(T.useState)(!1),tr=Object(de.a)($r,2),Gt=tr[0],Zt=tr[1],Jt=Object(T.useState)(null),zn=Object(de.a)(Jt,2),$n=zn[0],Ln=zn[1],rr=Object(T.useRef)(!1),cr=en.id,sr=en.updateIndex,qr=en.is_published,lr=en.newQuestion,da=Lr.challenge_list,Yr=da===void 0?[]:da;Object(T.useEffect)(function(){return cr?(Sr(),function(){Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}})}):void 0},[cr,sr]),Object(T.useEffect)(function(){_r()},[wn.location]);var _r=function(){var $e,qe=wn.location,pt=qe.pathname.split("/");(pt.includes("newquestion")||pt.includes("new")||qe!=null&&($e=qe.query)!==null&&$e!==void 0&&$e.tabId)&&(rr.current=!0)},Sr=function(){var Le=Object(a.a)(r.a.mark(function $e(){var qe,pt,rt,It,Vt,fn,ln;return r.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:return Nr(!0),un.next=3,Object(s.J)({id:cr});case 3:rt=un.sent,rt!=null&&(qe=rt.challenge_list)!==null&&qe!==void 0&&qe.length&&(It=wn.location.pathname.split("/"),Vt=rt.challenge_list.find(function(Wn){return String(Wn.challenge_id)===It[4]}),It.includes("newquestion")||It.includes("new")?(ln=rt.challenge_list[((fn=rt.challenge_list)===null||fn===void 0?void 0:fn.length)-1],Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:It.includes("new")?0:1,name:""}}}),Ln(void 0),Ze(ln)):It[4]&&Vt?Kr(Vt,!1):Kr(rt.challenge_list[0])),rt!=null&&(pt=rt.challenge_list)!==null&&pt!==void 0&&pt.length||Ln(null),Qn(rt),Nr(!1);case 8:case"end":return un.stop()}},$e)}));return function(){return Le.apply(this,arguments)}}(),Kr=function($e){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(Ln($e.challenge_id),Ze($e),qe){var pt="/shixuns/".concat(cr,"/edit/").concat($e.challenge_id,"/").concat($e.st===1?"editquestion":"editcheckpoint");E.d.push(pt)}},Jr=function($e,qe){qe.stopPropagation();var pt=$e.challenge_id,rt=function(){var It=Object(a.a)(r.a.mark(function Vt(){var fn,ln,cn,un;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.v)({id:cr,challengesId:pt});case 2:if(fn=Cn.sent,!(fn.status===1)){Cn.next=12;break}return Cn.next=6,Object(s.J)({id:cr});case 6:if(un=Cn.sent,Qn(un),!(pt===$n&&(ln=un.challenge_list)!==null&&ln!==void 0&&ln.length)){Cn.next=11;break}return Kr(un.challenge_list[0]),Cn.abrupt("return");case 11:(cn=un.challenge_list)!==null&&cn!==void 0&&cn.length||(Ln(null),rr.current=!0,Ze({}),E.d.push("/shixuns/".concat(cr,"/edit?tabId=level")));case 12:case"end":return Cn.stop()}},Vt)}));return function(){return It.apply(this,arguments)}}();f.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u8BE5\u5173\u5361!",centered:!0,onOk:rt})},Ta=function($e,qe,pt){var rt=Array.from($e),It=rt.splice(qe,1),Vt=Object(de.a)(It,1),fn=Vt[0];return rt.splice(pt,0,fn),rt},_a=function($e,qe){if(!$e.destination)return;var pt=Ta(qe,$e.source.index,$e.destination.index);Qn(Object(K.a)(Object(K.a)({},Lr),{},{challenge_list:pt}));var rt=pt.map(function(It){return It.challenge_id});Object(s.Kb)({id:cr,ids:rt}).then(function(It){It.status!==0&&Qn(Object(K.a)(Object(K.a)({},Lr),{},{challenge_list:qe}))})},Ze=function($e){Dn({type:"practiceSetting/setParams",payload:{selectQuestionParams:$e}})},ct=function(){var Le=Object(a.a)(r.a.mark(function $e(qe,pt){var rt;return r.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:if(!(qe===$n)){Vt.next=2;break}return Vt.abrupt("return");case 2:return Vt.next=4,_t();case 4:Ln(qe),Ze(pt),Dn({type:"practiceSetting/setParams",payload:{newQuestion:null}}),rt="/shixuns/".concat(cr,"/edit/").concat(qe,"/").concat(pt.st===1?"editquestion":"editcheckpoint"),E.d.push(rt);case 9:case"end":return Vt.stop()}},$e)}));return function(qe,pt){return Le.apply(this,arguments)}}(),_t=function(){return new Promise(function($e,qe){var pt;en!=null&&(pt=en.sideBar)!==null&&pt!==void 0&&pt.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Dn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),$e()},onCancel:function(){qe()}}):$e()})},nt=function($e){return b.a.createElement(b.a.Fragment,null,b.a.createElement(it.a,{onDragEnd:function(pt){return _a(pt,$e)}},b.a.createElement(it.c,{droppableId:"droppable"},function(qe,pt){return b.a.createElement("div",Object(P.a)({ref:qe.innerRef},qe.droppableProps,{style:{width:"100%"}}),$e.map(function(rt,It){var Vt=rt.st,fn=rt.name,ln=rt.challenge_id;return b.a.createElement(it.b,{key:ln,draggableId:ln.toString(),index:It,isDragDisabled:qr},function(cn,un){return b.a.createElement("div",Object(P.a)({ref:cn.innerRef},cn.draggableProps,cn.dragHandleProps,{className:$n===ln?ft.a.listActive:ft.a.list,onClick:function(){return ct(ln,rt)}}),b.a.createElement("span",{className:ft.a.s1},Vt===0?b.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):b.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),b.a.createElement("span",{className:ft.a.s2},"\u7B2C",It+1,"\u5173: ",fn),!qr&&b.a.createElement("span",{className:ft.a.s3,onClick:function(Cn){return Jr(rt,Cn)}},b.a.createElement("i",{className:"iconfont icon-shanchu7"})))})}))})),lr&&b.a.createElement("div",{className:ft.a.listActive},b.a.createElement("span",{className:ft.a.s1},(lr==null?void 0:lr.st)===0?b.a.createElement("i",{className:"iconfont icon-shixunti",style:{color:"#0152d9"}}):b.a.createElement("i",{className:"iconfont icon-xuanzeti3",style:{color:"#44D7B6"}})),b.a.createElement("span",{className:ft.a.s2},"\u7B2C",$e.length+1,"\u5173: ",lr==null?void 0:lr.name)),!qr&&b.a.createElement("div",{className:ft.a.os},"--\u62D6\u62FD\u4EFB\u52A1\u5173\u5361\u8FDB\u884C\u6392\u5E8F--"))},Me=function(){var Le=Object(a.a)(r.a.mark(function $e(qe){return r.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return rt.next=2,_t();case 2:qe==="new"?E.d.push("/shixuns/".concat(cr,"/edit/new")):E.d.push("/shixuns/".concat(cr,"/edit/newquestion")),or(!1),Ln(void 0),Dn({type:"practiceSetting/setParams",payload:{newQuestion:{st:qe==="new"?0:1,name:""}}});case 6:case"end":return rt.stop()}},$e)}));return function(qe){return Le.apply(this,arguments)}}(),Je=function(){if(Object(Pt.b)(Dn,"\u4E0D\u80FD\u65B0\u5EFA\u4EFB\u52A1\u5173\u5361"))return;or(!Un)};return b.a.createElement("div",{className:ft.a.level},b.a.createElement("aside",{className:ft.a.left,style:{width:Gt?"0":"25%"}},b.a.createElement("div",{className:ft.a.container},b.a.createElement("div",{className:ft.a.title},"\u4EFB\u52A1\u5173\u5361(",Yr.length,")"),b.a.createElement("div",{className:ft.a.listWrap},zr?b.a.createElement(Ye.a,{size:"large"}):!!Yr.length||!!lr?nt(Yr):b.a.createElement(vt.a,{image:bt.a,description:"\u6682\u65E0\u4EFB\u52A1\u5173\u5361!"}))),!Gt&&b.a.createElement("div",{className:ft.a.btns},b.a.createElement("aside",{className:ft.a.btnsWrap},b.a.createElement("div",{style:{transform:Un?"rotate(45deg)":"rotate(0deg)"},className:ft.a.icon,onClick:Je},"+"),b.a.createElement("div",{className:ft.a.btn,style:{left:Un?20:-154}},b.a.createElement("div",{className:ft.a.d1,onClick:function(){return Me("new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361"),b.a.createElement("div",{className:ft.a.d2,onClick:function(){return Me("newquestion")}},"\u65B0\u5EFA\u7406\u8BBA\u9898\u5173\u5361")))),b.a.createElement("div",{className:Gt?ft.a.elseShrink:ft.a.shrink,onClick:function(){return Zt(!Gt)}},b.a.createElement("i",{className:"iconfont icon-zuoyouzhankai"}))),b.a.createElement("aside",{className:ft.a.right,id:"modal-level-question"},$n===null&&rr.current?b.a.createElement("div",{className:ft.a.addIcon},b.a.createElement("span",null,"\u5728\u5DE6\u4FA7\u70B9\u51FB\u201C+\u201D\u53F7\u65B0\u5EFA\u5173\u5361\u3002")):wn.children))},Ge=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,dn=Sn.practiceSetting;return{globalSetting:Yt,practiceSetting:dn}})(He),Ce=o("DjyN"),Ie=o("NUBc"),Fe=o("cWXX"),Be=o("/ezw"),We=o("qVdP"),st=o("jsC+"),Dt=o("lUTK"),Ht=o("BvKs"),rn=o("7Kak"),Bt=o("9yH6"),Ct=o("Qvpy"),Ke=o.n(Ct),et=function(Yt){var dn=Yt.shixunsDetail,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.onReloadData,In=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Un=Object(T.useState)(),or=Object(de.a)(Un,2),qn=or[0],Pr=or[1],Lr=Object(T.useState)([]),Qn=Object(de.a)(Lr,2),Dr=Qn[0],vr=Qn[1];Object(T.useEffect)(function(){dn.actionTabs.key==="Collaborators-ChangeManager"&&zr()},[dn.actionTabs.key]);var zr=function(){var Gt=Object(a.a)(r.a.mark(function Zt(){var Jt,zn;return r.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,wn({type:"shixunsDetail/getChangeManager",payload:{id:(Jt=dn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id}});case 2:zn=Ln.sent,vr(zn||[]);case 4:case"end":return Ln.stop()}},Zt)}));return function(){return Gt.apply(this,arguments)}}(),Nr=function(){var Zt;wn({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:(Zt=dn.actionTabs.params)===null||Zt===void 0?void 0:Zt.id}}})},$r=function(){var Gt=Object(a.a)(r.a.mark(function Zt(){var Jt,zn;return r.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(qn){Ln.next=3;break}return m.b.info("\u6240\u9009\u4EBA\u5458\u4E3A\u7A7A\uFF0C\u6CA1\u6709\u66F4\u6362\u6210\u529F"),Ln.abrupt("return");case 3:return Ln.next=5,wn({type:"shixunsDetail/changeManager",payload:{id:(Jt=dn.actionTabs.params)===null||Jt===void 0?void 0:Jt.id,user_id:qn}});case 5:zn=Ln.sent,tr(),zn&&(_n(),m.b.info(zn.message));case 8:case"end":return Ln.stop()}},Zt)}));return function(){return Gt.apply(this,arguments)}}(),tr=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}}),Pr(null)};return b.a.createElement(f.a,{centered:!0,keyboard:!1,closable:!1,title:"\u66F4\u6362\u7BA1\u7406\u5458",visible:dn.actionTabs.key==="Collaborators-ChangeManager",confirmLoading:en.effects["shixunsDetail/changeManager"],onOk:$r,onCancel:tr},b.a.createElement("div",null,b.a.createElement("div",{className:Ke.a.title},"\u9009\u62E9\u7684\u6210\u5458\u5C06\u4F1A\u6210\u4E3A\u65B0\u7684\u7BA1\u7406\u5458",b.a.createElement("br",null),"\u60A8\u5C06\u4E0D\u518D\u62E5\u6709\u7BA1\u7406\u5458\u7684\u6743\u9650\uFF0C\u4F46\u60A8\u4ECD\u662F\u5408\u4F5C\u56E2\u961F\u7684\u4E00\u5458"),b.a.createElement("div",{className:Ke.a.content},Dr.length?b.a.createElement(Bt.a.Group,{value:qn,onChange:function(Zt){return Pr(Zt.target.value)}},Dr.map(function(Gt,Zt){return b.a.createElement(Bt.a,{className:Ke.a.radio,key:Zt,value:Gt.user_id},Gt.name)})):b.a.createElement("div",{className:Ke.a.add},b.a.createElement("span",null,"\u8BF7\u5148\u5C06\u65B0\u7684\u7BA1\u7406\u5458\u901A\u8FC7",b.a.createElement("a",{className:Ke.a.colorBlue,onClick:Nr},'"\u6DFB\u52A0\u5408\u4F5C\u8005"'),"\u52A0\u5165\u5408\u4F5C\u8005\u5217\u8868")))))},at=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:dn}})(et),Pe=o("Znn+"),Xe=o("ZTPi"),ht=o("ju9d"),Et=o("DDK+"),Ot=Xe.a.TabPane,Mt=function(Sn){var Yt=Sn.visible,dn=Sn.onCancel,Dn=Sn.onSelectGroup,en=Sn.shixunId,wn=Sn.onSelectCollaborator;return b.a.createElement(f.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Yt,width:1100,centered:!0,keyboard:!1,onCancel:dn,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},b.a.createElement(Xe.a,{defaultActiveKey:"1"},b.a.createElement(Ot,{tab:"\u641C\u7D22\u6DFB\u52A0",key:"1"},b.a.createElement(ht.a,{onCancel:dn,container_type:2,container_id:en,onSelect:wn})),b.a.createElement(Ot,{tab:"\u56E2\u961F\u6DFB\u52A0",key:"2"},b.a.createElement(Et.a,{onCancel:dn,onSelect:Dn}))))},lt=o("oaGz"),Ft=o.n(lt),Lt=o("8Skl"),on=o("ruvs"),mn=function(Yt){var dn,Dn,en,wn,_n,In,Un=Yt.shixunsDetail,or=Yt.globalSetting,qn=Yt.loading,Pr=Yt.user,Lr=Yt.dispatch,Qn=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","user","dispatch"]),Dr=Object(T.useRef)(),vr=Object(T.useState)(0),zr=Object(de.a)(vr,2),Nr=zr[0],$r=zr[1],tr=Object(T.useState)([]),Gt=Object(de.a)(tr,2),Zt=Gt[0],Jt=Gt[1],zn=Object(T.useState)({id:null,page:1}),$n=Object(de.a)(zn,2),Ln=$n[0],rr=$n[1],cr=(dn=Pr.userInfo)===null||dn===void 0||((Dn=dn.shixun)===null||Dn===void 0)?void 0:Dn.editable,sr=((en=Pr.userInfo)===null||en===void 0?void 0:en.role)<=2||((wn=Pr.userInfo)===null||wn===void 0||((_n=wn.shixun)===null||_n===void 0)?void 0:_n.is_creator);Object(T.useEffect)(function(){Dr.current=Qn.match.params.id,Ln.id=Dr.current,rr(Ln),qr(Ln)},[]);var qr=function(){var Ze=Object(a.a)(r.a.mark(function ct(_t){var nt;return r.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,Lr({type:"shixunsDetail/getCollaboratorsData",payload:_t});case 2:nt=Je.sent,nt&&(Jt(nt.members||[]),$r(nt.member_count));case 4:case"end":return Je.stop()}},ct)}));return function(_t){return Ze.apply(this,arguments)}}(),lr=function(){var Ze=Object(a.a)(r.a.mark(function ct(){var _t;return r.a.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Ln.page=1,rr(Ln),_t=Object(on.b)(),Me.next=5,Lr({type:"user/getUserInfo",payload:_t});case 5:return Me.next=7,qr(Ln);case 7:case"end":return Me.stop()}},ct)}));return function(){return Ze.apply(this,arguments)}}(),da=function(ct){Ln.page=ct,rr(Ln),qr(Ln)},Yr=function(ct){f.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.a.createElement("div",{className:Ft.a.modal},"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F"),onOk:function(){var _t=Object(a.a)(r.a.mark(function Me(){var Je,Le;return r.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.next=2,Lr({type:"shixunsDetail/deleteCollaborators",payload:{id:Dr.current,userId:ct}});case 2:if(Le=qe.sent,!(((Je=Pr.userInfo)===null||Je===void 0?void 0:Je.user_id)===ct)){qe.next=6;break}return E.d.push("/shixuns"),qe.abrupt("return");case 6:m.b.info(Le==null?void 0:Le.message),Ln.page=1,rr(Ln),qr(Ln);case 10:case"end":return qe.stop()}},Me)}));function nt(){return _t.apply(this,arguments)}return nt}()})},_r=function(){Lr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-ChangeManager",params:{id:Dr.current}}})};function Sr(Ze,ct,_t,nt){return Kr.apply(this,arguments)}function Kr(){return Kr=Object(a.a)(r.a.mark(function Ze(ct,_t,nt,Me){return r.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Le.next=2,Lr({type:"shixunsDetail/updateCollaboratorEditable",payload:{identifier:ct,user_id:_t,editable:nt?0:1}});case 2:qr(Ln);case 3:case"end":return Le.stop()}},Ze)})),Kr.apply(this,arguments)}var Jr=function(){Lr({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:Dr.current}}})};function Ta(){Lr({type:"shixunsDetail/setActionTabs",payload:{}})}var _a={visible:Un.actionTabs.key==="Collaborators-AddCollaborator",onCancel:Ta,shixunId:Dr.current,onSelectCollaborator:function(){var Ze=Object(a.a)(r.a.mark(function _t(nt){var Me;return r.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Ta(),Le.next=3,Lr({type:"shixunsDetail/addCollaborator",payload:{id:Dr.current,user_ids:nt}});case 3:Me=Le.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),lr());case 5:case"end":return Le.stop()}},_t)}));function ct(_t){return Ze.apply(this,arguments)}return ct}(),onSelectGroup:function(){var Ze=Object(a.a)(r.a.mark(function _t(nt){var Me;return r.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Ta(),Le.next=3,Lr({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:Dr.current,group_id:nt.group_id}});case 3:Me=Le.sent,Me&&(m.b.success("\u6DFB\u52A0\u6210\u529F"),lr());case 5:case"end":return Le.stop()}},_t)}));function ct(_t){return Ze.apply(this,arguments)}return ct}()};return b.a.createElement("section",null,b.a.createElement("div",{className:Ft.a.wrap},b.a.createElement("div",{className:Ft.a.content},((In=Un.detail)===null||In===void 0?void 0:In.identity)<5&&b.a.createElement("div",{className:Ft.a.head},b.a.createElement("span",{className:Ft.a.headCount},"\u5408\u4F5C\u6210\u5458\uFF08",Nr,"\u4EBA\uFF09"),b.a.createElement("div",null,sr&&b.a.createElement(I.a,{type:"primary",ghost:!0,className:Ft.a.button,style:{marginRight:"20px"},onClick:_r},"\u66F4\u6362\u7BA1\u7406\u5458"),cr&&b.a.createElement(I.a,{type:"primary",className:Ft.a.button,style:{marginRight:"40px"},onClick:Jr},"\u6DFB\u52A0\u5408\u4F5C\u8005"))),b.a.createElement("div",{className:Ft.a.list},b.a.createElement(Be.a,{loading:qn.effects["shixunsDetail/getCollaboratorsData"],active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},Zt.map(function(Ze,ct){var _t,nt,Me,Je,Le,$e,qe,pt;return b.a.createElement("div",{style:{display:"inline-block",width:"50%"}},b.a.createElement("div",{className:Ft.a.itemWrap,key:ct},b.a.createElement("a",{href:(_t=Ze.user)===null||_t===void 0?void 0:_t.user_url,target:"_blank",className:Ft.a.imgWrap},b.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"48",width:"48",className:Ft.a.img,src:"".concat(Oe.a.IMG_SERVER,"/images/").concat((nt=Ze.user)===null||nt===void 0?void 0:nt.image_url)}),((Me=Ze.user)===null||Me===void 0?void 0:Me.shixun_manager)&&b.a.createElement("span",{className:Ft.a.manager},"\u521B\u5EFA\u8005")),b.a.createElement("div",{className:Ft.a.itemContent},b.a.createElement("p",{className:Ft.a.nameWrap},b.a.createElement("a",{href:Ze.user.user_url,target:"_blank",className:Ft.a.name},(Je=Ze.user)===null||Je===void 0?void 0:Je.name,Ze.user.user_id===((Le=Pr.userInfo)===null||Le===void 0?void 0:Le.user_id)?b.a.createElement("span",null,"\u6211"):null),b.a.createElement("div",{className:Ft.a.actionGroup},sr?($e=Ze.user)!==null&&$e!==void 0&&$e.shixun_manager?null:b.a.createElement(st.a,{overlay:b.a.createElement(Ht.a,{selectedKeys:[Ze.editable?"1":"2"],onClick:function(){var It;Sr(Un.detail.identifier,Ze.user.user_id,Ze.editable,(It=Ze.user)===null||It===void 0?void 0:It.name)}},b.a.createElement(Ht.a.Item,{key:1},"\u7F16\u8F91\u6743\u9650"),b.a.createElement(Ht.a.Item,{key:2},"\u67E5\u770B\u6743\u9650"))},b.a.createElement("div",null,Ze.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650")," ",b.a.createElement(Lt.a,{style:{fontSize:"14px",color:"#888888"}}))):Ze.editable?b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u7F16\u8F91\u6743\u9650"):b.a.createElement("span",{style:{fontSize:"16px"},className:"c-grey-c"},"\u67E5\u770B\u6743\u9650"),!((qe=Ze.user)!==null&&qe!==void 0&&qe.shixun_manager)&&cr?b.a.createElement("a",{className:Ft.a.deletetitle,onClick:function(){var It;return Yr((It=Ze.user)===null||It===void 0?void 0:It.user_id)}},"\u5220\u9664"):null)),b.a.createElement("p",{className:Ft.a.schoolWrap},b.a.createElement("span",{className:Ft.a.school},(pt=Ze.user)===null||pt===void 0?void 0:pt.school_name)))))})))),Nr>10&&b.a.createElement("div",{className:Ft.a.countWrap},b.a.createElement(Ie.a,{showQuickJumper:!1,showSizeChanger:!1,total:Nr,onChange:function(ct){return da(ct)},pageSize:10,current:Ln.page}))),b.a.createElement(at,{onReloadData:lr}),b.a.createElement(Mt,_a))},Hn=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting,en=Sn.user;return{shixunsDetail:Yt,globalSetting:Dn,user:en,loading:dn}})(mn),Xn=o("11/R"),Fn=o("Q9mQ"),xn=o("diRs"),fr=o("jrin"),Yn=o("OaEy"),ar=o("2fM7"),nr=o("ZW9T"),Rr=o("RCxd"),pr=o("4SAo"),sn=o.n(pr),qt=W.a.TextArea,On=function(Yt){var dn=Yt.shixunsDetail,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.onFinish,In=_n===void 0?function(){}:_n,Un=Object(g.a)(Yt,["shixunsDetail","globalSetting","loading","dispatch","onFinish"]),or=he.a.useForm(),qn=Object(de.a)(or,1),Pr=qn[0],Lr=function(){var Dr=Object(a.a)(r.a.mark(function vr(zr){var Nr,$r;return r.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,wn({type:"shixunsDetail/getCustomScript",payload:{id:(Nr=dn.actionTabs.params)===null||Nr===void 0?void 0:Nr.id,compile:zr.execute,excutive:zr.compile}});case 2:$r=Gt.sent,Qn(),$r&&In($r==null?void 0:$r.shixun_script);case 5:case"end":return Gt.stop()}},vr)}));return function(zr){return Dr.apply(this,arguments)}}(),Qn=function(){wn({type:"shixunsDetail/setActionTabs",payload:{}})};return b.a.createElement(f.a,{centered:!0,title:"\u81EA\u5B9A\u4E49\u6A21\u677F",visible:dn.actionTabs.key==="Settings-UseCustomScript",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",footer:null,onCancel:Qn},b.a.createElement(he.a,{form:Pr,scrollToFirstError:!0,layout:"vertical",onFinish:Lr},b.a.createElement(he.a.Item,{name:"execute",label:"\u6267\u884C\u547D\u4EE4\uFF1A",rules:[{required:!0,message:"\u6267\u884C\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A"}]},b.a.createElement(qt,{rows:4})),b.a.createElement(he.a.Item,{name:"compile",label:"\u7F16\u8BD1\u547D\u4EE4\uFF1A"},b.a.createElement(qt,{rows:4})),b.a.createElement("div",{className:sn.a.footerWrap},b.a.createElement(he.a.Item,null,b.a.createElement(I.a,{className:"mr5",size:"large",onClick:Qn},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",htmlType:"submit",loading:en.effects["shixunsDetail/getCustomScript"]},"\u4FDD\u5B58")))))},Fr=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:dn}})(On),Or=o("Lai7"),xr=o.n(Or),dr=o("EGTK"),pe=o("UGPy"),X=o.n(pe),q=o("FrRK"),oe=o("9Bee"),De=o("N3QO"),fe=ar.a.Option,ot=function(Yt){var dn,Dn,en=Yt.practiceSetting,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.user,Un=Object(T.useState)(null),or=Object(de.a)(Un,2),qn=or[0],Pr=or[1],Lr=Object(T.useState)([]),Qn=Object(de.a)(Lr,2),Dr=Qn[0],vr=Qn[1],zr=Object(T.useState)(!0),Nr=Object(de.a)(zr,2),$r=Nr[0],tr=Nr[1],Gt=Object(T.useState)({}),Zt=Object(de.a)(Gt,2),Jt=Zt[0],zn=Zt[1],$n=Object(T.useState)([]),Ln=Object(de.a)($n,2),rr=Ln[0],cr=Ln[1],sr=Object(T.useState)(),qr=Object(de.a)(sr,2),lr=qr[0],da=qr[1],Yr=Object(T.useState)(),_r=Object(de.a)(Yr,2),Sr=_r[0],Kr=_r[1],Jr=Object(T.useState)([]),Ta=Object(de.a)(Jr,2),_a=Ta[0],Ze=Ta[1],ct=Object(T.useState)({}),_t=Object(de.a)(ct,2),nt=_t[0],Me=_t[1],Je=Object(T.useRef)(null),Le=Object(T.useRef)(!0),$e=Object(T.useRef)({activeId:null,selectId:null,serviceConfigList:null,evaluateScript:null,evaluationScript:null}),qe=Object(T.useRef)(null),pt=en.id,rt=en.is_published,It=nt.frequence_image,Vt=It===void 0?[]:It,fn=nt.environments,ln=fn===void 0?[]:fn,cn=nt.choice_small_type,un=cn===void 0?[]:cn,Wn=nt.other_image,Cn=Wn===void 0?[]:Wn,jr=Jt.name,Mr=Jt.description,Qr=Jt.authorization,Wr=Jt.small_type,ta=Wr===void 0?[]:Wr;Object(T.useEffect)(function(){if(qn===null)return;Gn(),Je.current.scrollTop=0},[qn]),Object(T.useEffect)(function(){if(!pt)return;wr()},[pt]),Object(T.useEffect)(function(){return qn===null?void 0:(Kn(),function(){clearTimeout(qe.current)})},[qn,Dr,rr,lr,Sr]);var Kn=function(){clearTimeout(qe.current),qe.current=setTimeout(function(){!Object(ae.isEqual)($e.current.activeId,qn)||!Object(ae.isEqual)($e.current.selectId,Dr)||!Object(ae.isEqual)($e.current.serviceConfigList,rr)||!Object(ae.isEqual)($e.current.evaluateScript,lr)||!Object(ae.isEqual)($e.current.evaluationScript,Sr)?wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},500)},wr=function(){var Tr=Object(a.a)(r.a.mark(function br(){var Ir,er,pa,Ea;return r.a.wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:return tr(!0),Oa.next=3,Object(c.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get"});case 3:Ir=Oa.sent,Ir.status===0&&(Me(Object(K.a)({},Ir.data)),tr(!1),Ir!=null&&(er=Ir.data)!==null&&er!==void 0&&er.id?($e.current.activeId=Ir==null||((pa=Ir.data)===null||pa===void 0)?void 0:pa.id,Pr(Ir==null||((Ea=Ir.data)===null||Ea===void 0)?void 0:Ea.id)):Pr(null));case 5:case"end":return Oa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),Gn=function(){var Tr=Object(a.a)(r.a.mark(function br(){var Ir,er,pa,Ea,ba;return r.a.wrap(function(ga){for(;;)switch(ga.prev=ga.next){case 0:return ga.next=2,Object(c.a)("/api/shixuns/".concat(pt,"/edit_environment_info.json"),{method:"get",params:{mirror_repository_id:qn}});case 2:ba=ga.sent,zn(ba.data),$e.current.selectId=(Ir=ba.data)===null||Ir===void 0?void 0:Ir.choice_small_type,vr((er=ba.data)===null||er===void 0?void 0:er.choice_small_type),$e.current.serviceConfigList=(pa=ba.data)===null||pa===void 0?void 0:pa.shixun_service_configs,cr((Ea=ba.data)===null||Ea===void 0?void 0:Ea.shixun_service_configs),$e.current.evaluateScript=ba.data.evaluate_script,da(ba.data.evaluate_script),$e.current.evaluationScript=ba.data.choice_standard_scripts,Kr(ba.data.choice_standard_scripts),Ze(ba.data.standard_scripts);case 13:case"end":return ga.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),En=function(){var br,Ir=function(){E.d.push("/shixuns/".concat(pt,"/challenges")),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};en!=null&&(br=en.sideBar)!==null&&br!==void 0&&br.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Ir()}}):Ir()},jn=function(){var Tr=Object(a.a)(r.a.mark(function br(){var Ir,er,pa,Ea=arguments;return r.a.wrap(function(Oa){for(;;)switch(Oa.prev=Oa.next){case 0:if(Ir=Ea.length>0&&Ea[0]!==void 0?Ea[0]:!1,!Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")){Oa.next=3;break}return Oa.abrupt("return");case 3:return er={sub_type:Dr,main_type:qn,shixun:{mirror_script_id:Sr},shixun_info:{evaluate_script:lr},shixun_service_configs:rr.map(function(ga){return{mirror_repository_id:ga.mirror_repository_id,cpu_limit:ga.cpu_limit,lower_cpu_limit:ga.lower_cpu_limit,memory_limit:ga.memory_limit,request_limit:ga.request_limit,resource_limit:ga.resource_limit}})},Oa.next=6,Object(c.a)("/api/shixuns/".concat(pt),{method:"put",body:er});case 6:pa=Oa.sent,pa.status===0&&(m.b.success("\u7F16\u8F91\u6210\u529F"),$e.current={activeId:qn,selectId:Dr,serviceConfigList:rr,evaluateScript:lr,evaluationScript:Sr},wn({type:"practiceSetting/getCommonData",payload:{id:pt}}),wn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}));case 8:case"end":return Oa.stop()}},br)}));return function(){return Tr.apply(this,arguments)}}(),Vr=ta.filter(function(Tr){return Dr.includes(Tr.id)}),ua=function(){En()},hr=function(br,Ir,er){var pa=rr.map(function(Ea,ba){return ba===er?Object(K.a)(Object(K.a)({},Ea),{},Object(fr.a)({},Ir,br)):Ea});cr(pa)},aa=function(){if(Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return;wn({type:"shixunsDetail/setActionTabs",payload:{key:"Settings-UseCustomScript",params:{id:pt}}})},xa=function(){var Tr=Object(a.a)(r.a.mark(function br(Ir){var er;return r.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:return Ea.next=2,wn({type:"shixunsDetail/getScriptContent",payload:{id:pt,script_id:Ir}});case 2:er=Ea.sent,er&&da(er.content);case 4:case"end":return Ea.stop()}},br)}));return function(Ir){return Tr.apply(this,arguments)}}(),ha=function(br){f.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:b.a.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",b.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:function(){var Ir=Object(a.a)(r.a.mark(function pa(){return r.a.wrap(function(ba){for(;;)switch(ba.prev=ba.next){case 0:return ba.next=2,xa(br);case 2:f.a.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:b.a.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")});case 3:case"end":return ba.stop()}},pa)}));function er(){return Ir.apply(this,arguments)}return er}()})},Ca=function(br,Ir){var er=rr[0]?[rr[0]]:[];Ir.forEach(function(pa){var Ea=rr.find(function(ga){return ga.mirror_repository_id===Number(pa.key)});if(Ea)er.push(Ea);else{var ba=ta.find(function(ga){return ga.id===Number(pa.key)});if(ba.mirror_name){var Oa={cpu_limit:1,lower_cpu_limit:.1,memory_limit:1024,mirror_repository_id:Number(pa.key),name:ba.mirror_name,request_limit:10};er.push(Oa)}}}),cr(er),vr(br)};return b.a.createElement("div",{className:X.a.practice},b.a.createElement(dr.a,{loading:$r,skin:"night",className:X.a.left,dispatch:wn,value:qn,data:ln,otherData:Cn,tags:Vt,onChange:function(br){return Pr(br)}}),b.a.createElement("div",{className:X.a.right},b.a.createElement("header",null,b.a.createElement("div",{className:X.a.title},"\u5B9E\u9A8C\u73AF\u5883:\xA0",qn===null?"\u2014 \u2014":jr)),b.a.createElement("div",{className:X.a.content,ref:Je},qn===null&&b.a.createElement(vt.a,{image:xr.a,description:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883"}),qn!==null&&b.a.createElement("div",{className:X.a.des},b.a.createElement("div",{className:X.a.mainBody},b.a.createElement(oe.a,{value:Mr})),b.a.createElement("div",{className:X.a.title},"\u9644\u5E26\u73AF\u5883"),b.a.createElement("div",{className:X.a.selectBox},b.a.createElement(ar.a,{onChange:function(br,Ir){return Ca(br,Ir)},getPopupContainer:function(br){return br.parentNode},mode:"multiple",bordered:!1,value:Dr,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u9644\u5E26\u73AF\u5883",style:{width:400},maxTagCount:6},ta.map(function(Tr,br){return b.a.createElement(fe,{key:Tr.id,value:Tr.id},Tr.type_name)})),b.a.createElement("div",{className:X.a.smallType},Vr.map(function(Tr){return Tr.description?b.a.createElement("span",{key:Tr.id},Tr.description):null}))),!(_n!=null&&(dn=_n.detail)!==null&&dn!==void 0&&dn.is_jupyter_lab)&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:X.a.title},"\u8BC4\u6D4B\u811A\u672C"),b.a.createElement("div",{className:X.a.evaluating},b.a.createElement("div",{className:X.a.evaluatingLabel},rt&&b.a.createElement("div",{onClick:function(){if(Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883"))return},className:X.a.mask}),b.a.createElement(ar.a,{style:{width:400},bordered:!1,getPopupContainer:function(br){return br.parentNode},value:Sr,placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C",onChange:function(br){ha(br),Kr(br)}},(_a||[]).map(function(Tr,br){return b.a.createElement(fe,{value:parseInt(Tr.id),name:Tr.scptname,key:br},Tr.scptname)})),b.a.createElement("span",{className:X.a.evaluatingS1,onClick:aa},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u811A\u672C"),b.a.createElement(xn.a,{overlayClassName:X.a.popover,placement:"bottomLeft",content:b.a.createElement("p",{className:"font12"},"\u4F7F\u7528\u81EA\u5B9A\u4E49\u6A21\u677F\uFF0C\u5E73\u53F0\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\u811A\u672C\uFF0C\u8BF7\u5728\u5173\u5361\u521B\u5EFA\u5B8C\u540E\u624B\u52A8\u66F4\u65B0\u811A\u672C\u4E2D\u7684\u5FC5\u586B\u53C2",b.a.createElement("br",null),"\u6570\u548C\u4EE5\u4E0B2\u4E2A\u6570\u7EC4\u5143\u7D20\uFF1A",b.a.createElement("br",null),"challengeProgramNames",b.a.createElement("br",null),"sourceClassNames",b.a.createElement("br",null),b.a.createElement("br",null),"\u793A\u4F8B\uFF1A\u67092\u4E2A\u5173\u5361\u7684\u5B9E\u8BAD",b.a.createElement("br",null),b.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u5F85\u7F16\u8BD1\u6587\u4EF6\u4E3A\uFF1A",b.a.createElement("br",null),"src/step1/HelloWorld.java",b.a.createElement("br",null),"src/step2/Other.java",b.a.createElement("br",null),b.a.createElement("br",null),"\u5404\u5173\u5361\u7684\u7F16\u8BD1\u540E\u751F\u6210\u7684\u6267\u884C\u6587\u4EF6\u4E3A\uFF1A",b.a.createElement("br",null),"step1.HelloWorld",b.a.createElement("br",null),"step2.Other",b.a.createElement("br",null),b.a.createElement("br",null),"\u5219\u6570\u7EC4\u5143\u7D20\u66F4\u65B0\u5982\u4E0B\uFF1A",b.a.createElement("br",null),'ff challengeProgramNames=("src/step1/',b.a.createElement("br",null),'HelloWorld.java" "src/step2/Other.java")',b.a.createElement("br",null),'sourceClassNames=("step1.HelloWorld',b.a.createElement("br",null),'" "step2.Other")',b.a.createElement("br",null),b.a.createElement("br",null),"\u5176\u5B83\u53C2\u6570\u53EF\u6309\u5B9E\u9645\u9700\u6C42\u5B9A\u5236"),trigger:"click"},b.a.createElement("span",{style:{marginTop:"2px"},className:"ml10 current font14"},b.a.createElement(Rr.a,null)))),b.a.createElement(nr.b,{width:"90%",height:450,style:{border:"1px solid #ccc",background:"#f5f5f5",marginTop:"20px"},language:"shell",theme:"vs-light",value:lr,onChange:function(br){if(Le.current){Le.current=!1;return}da(br),Object(Pt.b)(wn,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")&&setTimeout(function(){Le.current=!0,da($e.current.evaluateScript)},200)}}))),((Dn=_n.detail)===null||Dn===void 0?void 0:Dn.identity)<3&&!!rr.length&&b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:X.a.title},"\u670D\u52A1\u914D\u7F6E"),b.a.createElement("div",{className:X.a.serviceSettingWrap},rr==null?void 0:rr.map(function(Tr,br){return b.a.createElement("div",{key:br,className:"mb30"},b.a.createElement("div",null,b.a.createElement("span",{className:"font16"},Tr.name)),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"CPU(\u6838)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.cpu_limit,disabled:rt,onChange:function(er){return hr(er.target.value,"cpu_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u6700\u4F4ECPU(\u6838)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.lower_cpu_limit,disabled:rt,onChange:function(er){return hr(er.target.value,"lower_cpu_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u5185\u5B58\u9650\u5236(M)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.memory_limit,disabled:rt,onChange:function(er){return hr(er.target.value,"memory_limit",br)}})),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u5185\u5B58\u8981\u6C42(M)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.request_limit,style:{width:300},disabled:rt,onChange:function(er){return hr(er.target.value,"request_limit",br)}}),b.a.createElement("label",{className:X.a.serviceSetTip},"\u6E29\u99A8\u63D0\u793A\uFF1A\u7EAF\u7F16\u7A0B\u7C7B\u578B\u5B9E\u8BAD\u5EFA\u8BAE\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF0C\u5BF9\u4E8E\u5927\u6570\u636E\u7B49\u5EFA\u8BAE\u4F7F\u7528\u6700\u5927\u5185\u5B58\u768430%")),b.a.createElement("div",{className:X.a.serviceBox},b.a.createElement("label",{className:X.a.serviceSetLeft},"\u78C1\u76D8\u9650\u5236(K)\uFF1A"),b.a.createElement(W.a,{className:X.a.serviceSetInput,value:Tr.resource_limit,style:{width:300},disabled:rt,maxLength:8,onChange:function(er){var pa=er.target.value,Ea=/^\d*(\.\d*)?$/;pa.match(Ea)&&hr(er.target.value,"resource_limit",br)}})))}))))),b.a.createElement("div",{className:X.a.btns},b.a.createElement(I.a,{size:"large",style:{marginRight:20},onClick:ua},"\u53D6\u6D88"),b.a.createElement(I.a,{size:"large",type:"primary",disabled:qn===null,onClick:function(){return jn()}},"\u4FDD\u5B58"))),b.a.createElement(q.a,null),b.a.createElement(Fr,{onFinish:function(br){return da(br)}}),b.a.createElement(De.a,null))},Qt=Object(E.a)(function(Sn){var Yt=Sn.practiceSetting,dn=Sn.globalSetting,Dn=Sn.shixunsDetail,en=Sn.user;return{practiceSetting:Yt,globalSetting:dn,shixunsDetail:Dn,user:en}})(ot),Mn=o("g9YV"),Vn=o("wCAj"),$t=o("5Dmo"),gn=o("3S7+"),pn=o("P5Jw"),Ar=o("wd/R"),ra=o.n(Ar),oa=o("3d99"),ir=o.n(oa),Ra=o("Lf5v"),La=o("xKgJ"),ca=o("lzim"),Ka=b.a.Fragment,wa=function(Yt){var dn,Dn,en,wn,_n=Yt.globalSetting,In=Yt.dispatch,Un=Yt.practiceSetting,or=Yt.shixunsDetail,qn=Yt.user,Pr=Object(g.a)(Yt,["globalSetting","dispatch","practiceSetting","shixunsDetail","user"]),Lr=Un.id,Qn=Object(T.useState)([]),Dr=Object(de.a)(Qn,2),vr=Dr[0],zr=Dr[1],Nr=Object(T.useState)({}),$r=Object(de.a)(Nr,2),tr=$r[0],Gt=$r[1],Zt=Object(T.useState)(!1),Jt=Object(de.a)(Zt,2),zn=Jt[0],$n=Jt[1],Ln=Object(T.useState)(!0),rr=Object(de.a)(Ln,2),cr=rr[0],sr=rr[1],qr=Object(T.useState)(!1),lr=Object(de.a)(qr,2),da=lr[0],Yr=lr[1],_r=Object(T.useState)(!1),Sr=Object(de.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Ta=Object(T.useState)([]),_a=Object(de.a)(Ta,2),Ze=_a[0],ct=_a[1],_t=Object(T.useState)(!1),nt=Object(de.a)(_t,2),Me=nt[0],Je=nt[1],Le=Object(T.useState)({}),$e=Object(de.a)(Le,2),qe=$e[0],pt=$e[1],rt=Object(T.useState)({page:1,limit:10,total:0}),It=Object(de.a)(rt,2),Vt=It[0],fn=It[1];Object(T.useEffect)(function(){if(!Lr)return;cn()},[Lr]);var ln=function(wr){var Gn=Object(K.a)(Object(K.a)({},Vt),{},{page:wr});ct([]),fn(Gn),cn(Gn)},cn=function(){var Kn=Object(a.a)(r.a.mark(function wr(Gn){var En,jn,Vr;return r.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return En={page:1,limit:10,total:0},jn=Gn||En,$n(!0),hr.next=5,In({type:"shixunsDetail/getSetData",payload:Object(K.a)(Object(K.a)({},jn),{},{id:Lr})});case 5:Vr=hr.sent,Vr!=null&&Vr.data_sets&&($n(!1),zr(Object(be.a)(Vr.data_sets)),fn(Object(K.a)(Object(K.a)({},jn),{},{total:Vr==null?void 0:Vr.data_sets_count})),sr(!1),Gt(Object(K.a)({},Vr)));case 7:case"end":return hr.stop()}},wr)}));return function(Gn){return Kn.apply(this,arguments)}}(),un=function(){return b.a.createElement("div",{className:ir.a.empty},b.a.createElement("img",{src:ca.j,width:"258"}),b.a.createElement("span",{className:"c-grey-c"},"\u6682\u65E0\u6570\u636E\u96C6\u6587\u4EF6~"))},Wn=function(wr){console.log("selectedRowKeys changed: ",wr),ct(wr)},Cn={selectedRowKeys:Ze,columnWidth:70,onChange:Wn},jr=function(wr){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]);var Gn=wr?[wr]:Ze;f.a.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u6587\u4EF6\u5417\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var En=Object(a.a)(r.a.mark(function Vr(){var ua,hr;return r.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,Object(c.a)("/api/shixuns/".concat(Lr,"/destroy_data_sets.json"),{method:"Delete",body:{id:Gn}});case 2:ua=xa.sent,ua.status===0&&(hr=Gn.length===vr.length&&Vt.page>1?Vt.page-1:Vt.page,m.b.success("\u5220\u9664\u6210\u529F"),cn(Object(K.a)(Object(K.a)({},Vt),{},{page:hr})),ct([]));case 4:case"end":return xa.stop()}},Vr)}));function jn(){return En.apply(this,arguments)}return jn}()})},Mr=function(){var Kn=Object(a.a)(r.a.mark(function wr(){var Gn,En,jn,Vr,ua;return r.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(Gn=qe.title,En=null,console.log(Gn,"title"),!(Gn==="")){aa.next=7;break}return En="\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A",pt(Object(K.a)(Object(K.a)({},qe),{},{errorDes:En})),aa.abrupt("return");case 7:if(jn=vr.find(function(xa){return xa.id===(qe==null?void 0:qe.id)}).title,!(Gn===jn.substring(0,jn.lastIndexOf("."))||Gn===jn)){aa.next=12;break}return En="\u6587\u4EF6\u540D\u4E0D\u80FD\u91CD\u540D",pt(Object(K.a)(Object(K.a)({},qe),{},{errorDes:En})),aa.abrupt("return");case 12:return Vr=jn.includes(".")?jn.substring(jn.lastIndexOf("."),jn.length):"",aa.next=15,Object(c.a)("/api/shixuns/".concat(Lr,"/rename_data_sets.json"),{method:"post",body:{id:qe==null?void 0:qe.id,new_file_name:Gn+Vr}});case 15:ua=aa.sent,ua.status===0&&(m.b.success("\u91CD\u547D\u540D\u6210\u529F"),cn(Vt),Yr(!1),pt({}));case 17:case"end":return aa.stop()}},wr)}));return function(){return Kn.apply(this,arguments)}}(),Qr=function(){var wr=qe.download_url;Wr(wr),m.b.success("\u590D\u5236\u6210\u529F"),Jr(!1),pt({})},Wr=function(wr){var Gn=wr,En=document.createElement("input");En.value=Gn,document.body.appendChild(En),En.select(),document.execCommand("Copy"),En.style.display="none"},ta=[{title:"\u6587\u4EF6",dataIndex:"title",key:"title",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(gn.a,{title:wr},b.a.createElement("span",null,wr))}},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",align:"left",ellipsis:!0,render:function(wr){return b.a.createElement(gn.a,{title:wr},b.a.createElement("span",null,wr||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",align:"left",width:180,render:function(wr,Gn){return ra()(Gn.created_on).format("YYYY-MM-DD HH:mm")}},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"file_path",key:"file_path",align:"left",render:function(wr,Gn){return b.a.createElement("div",{className:ir.a.path},b.a.createElement(gn.a,{title:wr},b.a.createElement("span",{className:ir.a.text},wr)),b.a.createElement(pn.CopyToClipboard,{text:wr,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(gn.a,{title:"\u590D\u5236"},b.a.createElement("i",{className:"iconfont icon-fuzhi6 ml5"}))))}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author",align:"left",width:120},{title:"\u6587\u4EF6\u5927\u5C0F",dataIndex:"filesize",key:"filesize",align:"left",width:100},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"left",width:Object(La.v)()?200:120,render:function(wr,Gn){return b.a.createElement("div",{className:ir.a.actionsBtns},b.a.createElement(gn.a,{title:"\u91CD\u547D\u540D"},b.a.createElement("span",{className:"iconfont icon-zhongmingming",onClick:function(){var jn;pt(Object(ae.clone)(Object(K.a)(Object(K.a)({},Gn),{},{title:Gn!=null&&Gn.title.includes(".")?Gn==null||((jn=Gn.title)===null||jn===void 0)?void 0:jn.substring(0,Gn.title.lastIndexOf(".")):Gn==null?void 0:Gn.title}))),Yr(!0),Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u91CD\u547D\u540D"])}})),Object(La.v)()&&b.a.createElement(gn.a,{title:"\u5206\u4EAB"},b.a.createElement("span",{className:"iconfont icon-fenxiang",onClick:function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5206\u4EAB"]),pt(Object(ae.clone)(Gn)),Jr(!0)}})),Object(La.v)()&&b.a.createElement(gn.a,{title:"\u4E0B\u8F7D"},b.a.createElement("span",{className:"iconfont icon-xiazai3",onClick:function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u4E0B\u8F7D"]),Object(l.x)(Gn.title,Gn==null?void 0:Gn.download_url)}})),b.a.createElement(gn.a,{title:"\u5220\u9664"},b.a.createElement("span",{className:"iconfont icon-shanchu8",onClick:function(){Object(l.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6570\u636E\u96C6","\u5220\u9664"]),jr(Gn.id)}})))}}];return b.a.createElement("div",{className:ir.a.dataset},b.a.createElement("div",{className:ir.a.header},b.a.createElement("div",{className:ir.a.title},"\u6570\u636E\u96C6(",Vt.total,")"),b.a.createElement("div",{className:ir.a.dataPath},b.a.createElement("span",{className:ir.a.pathTitle},"\u6570\u636E\u96C6\u8DEF\u5F84:"),b.a.createElement("input",{value:tr==null?void 0:tr.folder_name,disabled:!0}),b.a.createElement(pn.CopyToClipboard,{text:tr==null?void 0:tr.folder_name,onCopy:function(){return m.b.success("\u590D\u5236\u6210\u529F")}},b.a.createElement(gn.a,{placement:"topLeft",title:"\u70B9\u51FB\u590D\u5236\u6570\u636E\u96C6\u8DEF\u5F84"},b.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})))),b.a.createElement("div",{className:ir.a.btns},b.a.createElement(I.a,{type:"primary",ghost:!0,onClick:function(){return jr()},disabled:!Ze.length},"\u5220\u9664"),b.a.createElement(I.a,{type:"primary",onClick:function(){return Je(!0)}},"\u4E0A\u4F20\u6587\u4EF6"))),b.a.createElement("div",{className:ir.a.content},b.a.createElement(Be.a,{loading:cr,active:!0,paragraph:{rows:5}},Vt.total?b.a.createElement(Vn.a,{rowSelection:Cn,className:ir.a.customTable,dataSource:vr,bordered:!1,rowKey:function(wr){return wr.id},rowClassName:ir.a.row,columns:ta,loading:zn,pagination:{pageSize:Vt.limit,total:Vt.total,current:Vt.page,onChange:ln,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}):un())),b.a.createElement(Ra.a,{rootIdentifier:or==null||((dn=or.detail)===null||dn===void 0)?void 0:dn.root_identifier,wrapClassName:ir.a.uploadFileModal,id:Lr,containerId:or==null||((Dn=or.detail)===null||Dn===void 0)?void 0:Dn.id,local:_n==null||((en=_n.setting)===null||en===void 0)?void 0:en.is_local,dispatch:In,visible:Me,onClose:function(){return Je(!1)},onOK:cn}),b.a.createElement(f.a,{title:"\u91CD\u547D\u540D",visible:da,onOk:Mr,centered:!0,wrapClassName:ir.a.renameModal,onCancel:function(){Yr(!1),pt({})},width:"1000px"},b.a.createElement("div",null,b.a.createElement("div",{className:ir.a.fileName},b.a.createElement("sup",null,"*"),"\u6587\u4EF6\u540D\xA0:"),b.a.createElement(W.a,{value:qe==null?void 0:qe.title,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u5B57",bordered:!1,onChange:function(wr){pt(Object(K.a)(Object(K.a)({},qe),{},{title:wr.target.value,errorDes:null}))},maxLength:60,suffix:"".concat((qe==null||((wn=qe.title)===null||wn===void 0)?void 0:wn.length)||0,"/60")}),(qe==null?void 0:qe.errorDes)&&b.a.createElement("div",{className:ir.a.errorDes},qe==null?void 0:qe.errorDes))),b.a.createElement(f.a,{title:"\u5206\u4EAB\u4E0B\u8F7D\u94FE\u63A5",visible:Kr,onOk:Qr,centered:!0,wrapClassName:ir.a.shareModal,onCancel:function(){Jr(!1),pt({})},width:"1000px",okText:"\u590D\u5236\u94FE\u63A5"},b.a.createElement("div",null,b.a.createElement("div",{className:ir.a.fileName},"\u53D1\u9001\u94FE\u63A5\uFF0C\u522B\u4EBA\u53EF\u4EE5\u901A\u8FC7\u94FE\u63A5\u4E0B\u8F7D\u6587\u4EF6",b.a.createElement("span",null,"(\u6709\u6548\u671F\u4E3A3\u5929)")),b.a.createElement(W.a,{bordered:!1,addonBefore:"\u94FE\u63A5",value:qe==null?void 0:qe.download_url}))))},Ja=Object(E.a)(function(Sn){var Yt=Sn.globalSetting,dn=Sn.shixunsDetail,Dn=Sn.practiceSetting,en=Sn.user;return{globalSetting:Yt,shixunsDetail:dn,user:en,practiceSetting:Dn}})(wa),ja=o("aHsQ"),li=o("sGsY"),oi=o("fKo2"),fa=o.n(oi),ma=o("BMKw"),la=o.n(ma),xe=function(Yt){return Yt!=null&&Yt.length?Yt.filter(function(dn,Dn){return Dn!==0}).map(function(dn){return dn.val}).join("").substr(1):""},ut=function(Yt){var dn=Yt.shixunsDetail,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.fileType,In=Yt.path,Un=Yt.onFinish,or=Un===void 0?function(){}:Un,qn=Object(w.i)(),Pr=Object(T.useState)(""),Lr=Object(de.a)(Pr,2),Qn=Lr[0],Dr=Lr[1],vr=Object(T.useState)([]),zr=Object(de.a)(vr,2),Nr=zr[0],$r=zr[1],tr=Object(T.useState)([]),Gt=Object(de.a)(tr,2),Zt=Gt[0],Jt=Gt[1],zn=[Xt.OriginalPicturePath,Xt.ExpectPicturePath,Xt.PicturePath],$n=zn.includes(_n);Object(T.useEffect)(function(){if(dn.actionTabs.key!=="EditPracticeSetting-SelectFilePath")return;Dr(In||""),Ln()},[dn.actionTabs.key]);var Ln=function(){var Yr=Object(a.a)(r.a.mark(function _r(){var Sr,Kr,Jr,Ta,_a=arguments;return r.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:return Kr=_a.length>0&&_a[0]!==void 0?_a[0]:"",ct.next=3,wn({type:"shixunsDetail/getRepository",payload:{id:qn.id,path:Kr}});case 3:Jr=ct.sent,Kr===""&&!(Jr!=null&&(Sr=Jr.trees)!==null&&Sr!==void 0&&Sr.length)&&m.b.warn("\u8BF7\u5148\u53BB\u4EE3\u7801\u4ED3\u5E93\u63D0\u4EA4\u6587\u4EF6"),Jr!=null&&Jr.trees&&(Ta=Jr.trees.map(function(_t){return Object(K.a)(Object(K.a)({},_t),{name:_t.name,val:_t.name})}),Jt(Ta||[]));case 6:case"end":return ct.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),rr=function(_r){var Sr=xe(Nr),Kr="".concat(Sr&&"".concat(Sr,"/")).concat(_r);_n===Xt.Path?!(Qn!=null&&Qn.includes("".concat(Kr,"\uFF1B")))&&Dr("".concat(Qn).concat(Kr,"\uFF1B")):_n===Xt.ExecPath&&Dr(Kr)},cr=function(_r){if(_r.type==="tree"){Nr.length?Nr.push({val:"/".concat(_r.val),path:_r.val}):Nr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(_r.val),path:_r.val}),$r(Nr);var Sr=xe(Nr);$n&&Dr(Sr),Ln(Sr)}},sr=function(_r,Sr){var Kr=Nr.filter(function(Ta,_a){return _a<=Sr});$r(Kr);var Jr=xe(Kr);$n&&Dr(Jr),Ln(Jr)},qr=function(){var Yr=Object(a.a)(r.a.mark(function _r(){return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:or(Qn),lr();case 2:case"end":return Kr.stop()}},_r)}));return function(){return Yr.apply(this,arguments)}}(),lr=function(){Dr(""),$r([]),Jt([]),wn({type:"shixunsDetail/setActionTabs",payload:{}})},da=xe(Nr);return b.a.createElement(f.a,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,visible:dn.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:qr,onCancel:lr},b.a.createElement("div",{className:la.a.wrap},b.a.createElement("div",{className:la.a.content},b.a.createElement("div",{className:la.a.mainPathWrap},!!(Nr!=null&&Nr.length)&&Nr.map(function(Yr,_r){return b.a.createElement("a",{key:_r,onClick:function(){return sr(Yr,_r)}},Yr.val)})),!!(Zt!=null&&Zt.length)&&Zt.map(function(Yr,_r){return Yr.type==="tree"?b.a.createElement("a",{key:_r,onClick:function(){return cr(Yr)}},b.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(la.a.colorBlue)}),da&&"".concat(da,"/"),Yr.name):b.a.createElement("a",{key:_r,onClick:function(){return rr("".concat(Yr.name))}},b.a.createElement("i",{className:"iconfont icon-zuoye ".concat(la.a.colorBlue)}),da&&"".concat(da,"/"),Yr.name)})),b.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),b.a.createElement(W.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:Qn,onChange:function(_r){return Dr(_r.target.value)}})))},Rt=Object(E.a)(function(Sn){var Yt=Sn.shixunsDetail,dn=Sn.loading,Dn=Sn.globalSetting;return{shixunsDetail:Yt,globalSetting:Dn,loading:dn.models.index}})(ut),wt=o("dhSg"),Kt=li.a.Countdown,Nt;(function(Sn){Sn[Sn.LoadingFail=1]="LoadingFail",Sn[Sn.Loading=2]="Loading",Sn[Sn.Finish=3]="Finish"})(Nt||(Nt={}));var Xt;(function(Sn){Sn.Path="path",Sn.ExecPath="exec_path",Sn.OriginalPicturePath="original_picture_path",Sn.ExpectPicturePath="expect_picture_path",Sn.PicturePath="picture_path"})(Xt||(Xt={}));var nn=function(Yt){var dn=Yt.globalSetting,Dn=Yt.loading,en=Yt.dispatch,wn=Yt.practiceSetting,_n=Yt.shixunsDetail,In=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail"]),Un=Object(T.useState)(),or=Object(de.a)(Un,2),qn=or[0],Pr=or[1],Lr=Object(T.useState)(),Qn=Object(de.a)(Lr,2),Dr=Qn[0],vr=Qn[1],zr=Object(T.useRef)(),Nr=Object(T.useState)(),$r=Object(de.a)(Nr,2),tr=$r[0],Gt=$r[1],Zt=Object(T.useState)(),Jt=Object(de.a)(Zt,2),zn=Jt[0],$n=Jt[1],Ln=Object(T.useState)(),rr=Object(de.a)(Ln,2),cr=rr[0],sr=rr[1],qr=Object(T.useRef)(!0),lr=Object(T.useState)(!0),da=Object(de.a)(lr,2),Yr=da[0],_r=da[1],Sr=Object(T.useState)(700),Kr=Object(de.a)(Sr,2),Jr=Kr[0],Ta=Kr[1],_a=Object(T.useState)(""),Ze=Object(de.a)(_a,2),ct=Ze[0],_t=Ze[1],nt=Object(T.useRef)(),Me=Object(w.i)();Object(T.useEffect)(function(){Le()},[]);var Je=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un,Wn,Cn;return r.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.next=2,en({type:"shixunsDetail/updateRepositoryFile",payload:{id:Me.id,path:_n==null||((un=_n.fileContent)===null||un===void 0||((Wn=un.params)===null||Wn===void 0))?void 0:Wn.path,content:qn,secret_repository:Yr?null:!0}});case 2:Cn=Mr.sent,Cn!=null&&Cn.content&&(m.b.info("\u4FDD\u5B58\u6210\u529F"),en({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},wn.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return Mr.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),Le=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un,Wn,Cn,jr,Mr;return r.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,Object(s.X)({identifier:Me.id});case 2:if(Cn=Wr.sent,!(Cn!=null&&(un=Cn.data)!==null&&un!==void 0&&(Wn=un.data_list)!==null&&Wn!==void 0&&Wn.length)){Wr.next=6;break}return wt.a.publish("pod-restrict-data",{identifier:Cn==null||((jr=Cn.data)===null||jr===void 0)?void 0:jr.identifier,data_list:Cn==null||((Mr=Cn.data)===null||Mr===void 0)?void 0:Mr.data_list}),Wr.abrupt("return");case 6:Cn!=null&&Cn.url&&_t(Cn==null?void 0:Cn.url);case 7:case"end":return Wr.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),$e=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.rb)({identifier:Me.id});case 2:if(un=Cn.sent,!((un==null?void 0:un.status)!==0)){Cn.next=5;break}return Cn.abrupt("return");case 5:un!=null&&un.remainingSeconds?(Gt(Date.now()+un.remainingSeconds*1e3),$n(un.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(un.remainingSeconds-300)*1e3)):qe();case 6:case"end":return Cn.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),qe=function(){f.a.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",zIndex:9999,content:b.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F"),onOk:function(){var cn=Object(a.a)(r.a.mark(function Wn(){return r.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:pt();case 1:case"end":return jr.stop()}},Wn)}));function un(){return cn.apply(this,arguments)}return un}()})},pt=function(){var ln=Object(a.a)(r.a.mark(function cn(){var un;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return vr(Nt.Loading),Cn.next=3,Object(s.Cb)({identifier:Me.id});case 3:if(un=Cn.sent,!((un==null?void 0:un.status)!==0)){Cn.next=6;break}return Cn.abrupt("return");case 6:vr(Nt.Finish),_t(un.url),zr.current=un.port,m.b.success("\u91CD\u7F6E\u73AF\u5883\u6210\u529F!");case 10:case"end":return Cn.stop()}},cn)}));return function(){return ln.apply(this,arguments)}}(),rt=function(){f.a.destroyAll(),f.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:b.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",b.a.createElement("span",null,b.a.createElement(Kt,{value:tr,format:"HH:mm:ss",onFinish:It})),"\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F"),okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981",onOk:function(){var cn=Object(a.a)(r.a.mark(function Wn(){var Cn;return r.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.next=2,Object(s.a)({identifier:Me.id});case 2:if(Cn=Mr.sent,!(Cn.status===0)){Mr.next=7;break}return Mr.next=6,$e();case 6:m.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return Mr.stop()}},Wn)}));function un(){return cn.apply(this,arguments)}return un}()})},It=function(){f.a.destroyAll(),f.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:b.a.createElement("p",{className:"tc font14"},"\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){pt()}})},Vt=function(cn){en({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}})},fn=function(){var ln=Object(a.a)(r.a.mark(function cn(un){return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Object(s.Pb)({id:Me.id,startup_file:un});case 2:Le(),en({type:"practiceSetting/getCommonData",payload:Object(K.a)({},Me)});case 4:case"end":return Cn.stop()}},cn)}));return function(un){return ln.apply(this,arguments)}}();return b.a.createElement("div",{className:fa.a.warehouse},b.a.createElement(_.a,{className:"mt20 ml20 font14",align:"middle"},b.a.createElement(U.a,null,b.a.createElement("span",{className:"c-red"},"* "),"\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6\uFF1A"),b.a.createElement(U.a,{flex:"300px",onClick:function(){return Vt(Xt.ExecPath)}},b.a.createElement(W.a,{value:ct})),b.a.createElement(U.a,{flex:"1"},b.a.createElement(I.a,{type:"primary",className:"ml10",onClick:function(){return Vt(Xt.ExecPath)}},"\u8BBE\u7F6E"))),b.a.createElement("iframe",{onLoad:function(cn){},src:ct,scrolling:"no",style:{height:"calc(100vh - 120px)"},className:"mt10",id:"frame",name:"framename",width:"100%",frameBorder:"0"}),b.a.createElement(Rt,{fileType:"path",path:"",onFinish:function(cn){return fn(cn)}}))},yn=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.practiceSetting,en=Sn.shixunsDetail;return{globalSetting:dn,loading:Yt,practiceSetting:Dn,shixunsDetail:en}})(nn),vn=function(Yt){var dn=Yt.tabsActive,Dn=Object(g.a)(Yt,["tabsActive"]);return b.a.createElement(b.a.Fragment,null,dn==="information"&&b.a.createElement(tt,null),dn==="warehouse"&&b.a.createElement(dt.default,null),dn==="level"&&b.a.createElement(Ge,Dn),dn==="collaborate"&&b.a.createElement(Hn,Dn),dn==="setting"&&b.a.createElement(Xn.a,null),dn==="environment"&&b.a.createElement(Qt,Dn),dn==="dataset"&&b.a.createElement(Ja,null),dn==="service"&&b.a.createElement(yn,Dn))},Nn=vn,An=o("Jv0p"),an=o.n(An),Pn=o("luix"),bn=o.n(Pn),kn=[{name:"\u57FA\u672C\u4FE1\u606F",icon:b.a.createElement("i",{className:"icon iconfont icon-jibenxinxi1"}),tabId:"information"},{name:"\u4EE3\u7801\u4ED3\u5E93",icon:b.a.createElement("i",{className:"icon iconfont icon-daimacangku"}),tabId:"warehouse"},{name:"\u4EFB\u52A1\u5173\u5361",icon:b.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"level"},{name:"\u5B9E\u9A8C\u73AF\u5883",icon:b.a.createElement("i",{className:"icon iconfont icon-shiyanhuanjing"}),tabId:"environment"},{name:"\u6570\u636E\u96C6",icon:b.a.createElement("i",{className:"icon iconfont icon-shujuji",style:{fontSize:25}}),tabId:"dataset"},{name:"\u670D\u52A1",icon:b.a.createElement("i",{className:"icon iconfont icon-renwuguanka"}),tabId:"service"},{name:"\u5408\u4F5C\u4EBA\u5458",icon:b.a.createElement("i",{className:"icon iconfont icon-hezuochengyuan"}),tabId:"collaborate"},{name:"\u8BBE\u7F6E",icon:b.a.createElement("i",{className:"icon iconfont icon-shezhi5"}),tabId:"setting"}],Rn=function(Yt){var dn,Dn=Yt.globalSetting,en=Yt.loading,wn=Yt.dispatch,_n=Yt.shixunsDetail,In=Yt.practiceSetting,Un=Object(g.a)(Yt,["globalSetting","loading","dispatch","shixunsDetail","practiceSetting"]),or=In.base_info_warning,qn=In.challenges_warning,Pr=In.id,Lr=In.repository_warning,Qn=In.sideBar,Dr=In.service_warning,vr=Object(w.h)(),zr=Object(w.i)();Object(T.useEffect)(function(){var tr,Gt,Zt=vr==null||((tr=vr.query)===null||tr===void 0)?void 0:tr.tabId,Jt=vr.pathname.split("/").length,zn=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Ln){return Ln.tabId!=="dataset"}):kn,$n=zn.map(function(Ln){return Ln.tabId}).includes(Zt);if(Zt&&$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Zt}});return}if(Jt>4){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"level"}});return}if(!Zt||Zt&&!$n){wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"information"}});return}},[_n==null||((dn=_n.detail)===null||dn===void 0)?void 0:dn.windows_vnc]),Object(T.useEffect)(function(){return function(){wn({type:"practiceSetting/setSideBarTabs",payload:Object(K.a)(Object(K.a)({},In.sideBar),{},{selectPath:""})})}},[zr.id]);var Nr=function(Gt){var Zt;if(Gt===Qn.tabsActive)return;var Jt=function(){E.d.push("/shixuns/".concat(Pr,"/edit?tabId=").concat(Gt)),wn({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:Gt,selectPath:"",confirmLeave:!1}})};In!=null&&(Zt=In.sideBar)!==null&&Zt!==void 0&&Zt.confirmLeave?f.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){Jt()}}):Jt()},$r=function(){var Gt,Zt=_n!=null&&(Gt=_n.detail)!==null&&Gt!==void 0&&Gt.windows_vnc?kn.filter(function(Jt){return Jt.tabId!=="dataset"}):kn;return Zt.filter(function(Jt){var zn;return _n!=null&&(zn=_n.detail)!==null&&zn!==void 0&&zn.is_jupyter_lab?Jt.tabId!=="level":Jt.tabId!=="service"}).map(function(Jt){var zn=Jt.name,$n=Jt.icon,Ln=Jt.tabId;return b.a.createElement("div",{key:Ln,className:In.sideBar.tabsActive===Ln?an.a.itemActive:an.a.item,onClick:function(){return Nr(Ln)}},$n,b.a.createElement("span",{className:an.a.name},zn),Ln==="information"&&or&&b.a.createElement(gn.a,{title:"\u8BF7\u5B8C\u5584\u57FA\u672C\u4FE1\u606F"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="level"&&qn&&b.a.createElement(gn.a,{title:"\u8BF7\u521B\u5EFA\u4EFB\u52A1\u5173\u5361"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="service"&&Dr&&b.a.createElement(gn.a,{title:"\u8BF7\u8BBE\u7F6E\u9ED8\u8BA4\u6253\u5F00\u6587\u4EF6"},b.a.createElement("img",{src:bn.a,alt:""})),Ln==="warehouse"&&Lr&&b.a.createElement(gn.a,{title:"\u8BF7\u5F00\u542F\u4EE3\u7801\u4ED3\u5E93"},b.a.createElement("img",{src:bn.a,alt:""})))})};return b.a.createElement("div",{className:an.a.sidebar},b.a.createElement("div",{className:an.a.items},$r()),b.a.createElement("div",{className:an.a.question},b.a.createElement(gn.a,{placement:"right",title:"\u5E38\u89C1\u95EE\u9898"},b.a.createElement("span",{style:{cursor:"pointer"},onClick:function(){return window.open("https://www.educoder.net/forums/4692")}},b.a.createElement("img",{src:ca.t,height:44,width:44,alt:""})))))},Jn=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.shixunsDetail,en=Sn.practiceSetting;return{globalSetting:dn,loading:Yt,practiceSetting:en,shixunsDetail:Dn}})(Rn),mr=function(Yt){var dn=Yt.globalSetting,Dn=Yt.loading,en=Yt.dispatch,wn=Yt.practiceSetting,_n=Object(g.a)(Yt,["globalSetting","loading","dispatch","practiceSetting"]),In=wn.sideBar,Un=In.tabsActive,or=Object(w.i)();return Object(T.useEffect)(function(){return en({type:"globalSetting/headerFooterToggle",payload:!1}),en({type:"shixunsDetail/getShixunsDetail",payload:or}),en({type:"shixunsDetail/getSettingsData",payload:or}),function(){en({type:"globalSetting/headerFooterToggle",payload:!0}),en({type:"practiceSetting/setParams",payload:{id:""}})}},[]),b.a.createElement("div",{className:x.a.practiceSetting},b.a.createElement("div",{className:x.a.wrapHeader},b.a.createElement(R,null)),b.a.createElement("div",{className:x.a.wrapLayout},b.a.createElement("div",{className:x.a.wrapSidebar},b.a.createElement(Jn,null)),b.a.createElement("div",{className:x.a.wrapContent},b.a.createElement(Nn,Object(P.a)({},_n,{tabsActive:wn.sideBar.tabsActive})))))},Br=z.default=Object(E.a)(function(Sn){var Yt=Sn.loading,dn=Sn.globalSetting,Dn=Sn.practiceSetting;return{globalSetting:dn,loading:Yt,practiceSetting:Dn}})(mr)},WYAk:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){(function(){var g=P,T=g.lib,b=T.Base,y=g.enc,x=y.Utf8,O=g.algo,m=O.HMAC=b.extend({init:function(e,f){e=this._hasher=new e.init,typeof f=="string"&&(f=x.parse(f));var a=e.blockSize,u=a*4;f.sigBytes>u&&(f=e.finalize(f)),f.clamp();for(var r=this._oKey=f.clone(),i=this._iKey=f.clone(),n=r.words,l=i.words,h=0;h",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},h={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` -`)}]},d=o("5VLF"),s=o.n(d),c={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},w=function(K,ee){return ee.map(function(he){return{label:he,kind:K.languages.CompletionItemKind.Keyword,insertText:he}})},E=function(K){return Object.keys(c.tables).map(function(ee){return{label:ee,kind:K.languages.CompletionItemKind.Variable,insertText:ee}})},v=function(K,ee){var he=c.tables[K];return he?he.map(function(de){return{label:de,kind:ee.languages.CompletionItemKind.Field,insertText:de}}):[]};function R(I,K,ee,he,de){var Se=K.getWordUntilPosition(ee),Te={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},ce=he.map(function(be){return{label:be,kind:I.languages.CompletionItemKind.Keyword,insertText:be,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Te}});return de.map(function(be){ce.push(Object(P.a)(Object(P.a)({},be),{},{range:Te}))}),ce}var M=function(I){c.languages.map(function(de){return I.languages.registerDocumentFormattingEditProvider(de,{provideDocumentFormattingEdits:function(Te,ce,be){return Object(a.a)(r.a.mark(function Ee(){var ue;return r.a.wrap(function($){for(;;)switch($.prev=$.next){case 0:return ue=s()(Te.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),$.abrupt("return",[{range:Te.getFullModelRange(),text:ue}]);case 2:case"end":return $.stop()}},Ee)}))()}}),de});var K=l.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ee=h.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),he=n.quickKey.map(function(de){return{label:de.label,kind:I.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet}});I.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},Ee=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(l.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(l.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:Ee.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}}),I.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn};return{suggestions:Object(g.a)(i.keywords.map(function(Ee){return{label:Ee,kind:I.languages.CompletionItemKind.Function,documentation:Ee,insertText:Ee,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}}))}}}),I.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},Ee=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(n.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(n.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:Ee.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}}),I.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Se,Te){var ce=Se.getWordUntilPosition(Te),be={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},Ee=Se.getLineContent(Te.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(g.a)(h.keywords.map(function(ue){return{label:ue,kind:I.languages.CompletionItemKind.Function,documentation:ue,insertText:ue,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})),Object(g.a)(h.quickKey.map(function(ue){return{label:ue.label,kind:I.languages.CompletionItemKind.Function,documentation:ue.content,insertText:Ee.startsWith("#")?ue.content.replace(/#/,""):ue.content,insertTextRules:I.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}})))}}})},C="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",S=o("fjLI"),_=o("LvDl"),A=o("+ua5");function U(I){return/^\d+$/.test(I)?"".concat(I,"px"):I}function L(){}var N=!1,V={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function H(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=I;if(Array.isArray(I)){for(var ee=0;ee0||Xn.target.offsetWidth>0)&&Pt.current.instance.layout()}}catch(Fn){mn.e(Fn)}finally{mn.f()}}),It.observe(yt.current)),It}function Dt(){b.b.warn(decodeURIComponent(C))}var Ht=function(){var on=Pt.current.instance;if(Se!=null&&on&&Be){var mn=on.getModel();mn&&Se!==mn.getValue()&&(N=!0,mn.setValue(Se),on.layout(),N=!1)}};Object(m.useEffect)(function(){He.current&&clearTimeout(He.current),He.current=setTimeout(function(){Ht()},500)},[Se,Be,Pt.current]),Object(m.useEffect)(function(){if(Ye&&Pt.current&&Pt.current.instance){var It=Pt.current.instance;It.changeViewZones(function(mn){var Hn=document.createElement("div");Hn.style.padding="10px 20px",Hn.style.width="calc(100% - 20px)",Hn.className="my-error-line-wrp",Hn.innerHTML=ft,mn.addZone({afterLineNumber:Ye||11,heightInLines:3,domNode:Hn})});var on={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};It.addOverlayWidget(on),It.revealPositionInCenter({lineNumber:20,column:1})}},[Ye,Pt.current,Be]);function rn(){var It=Pt.current.instance;if(It){var on=It.getSelection(),mn=Pt.current.pastePos||{},Hn=new D.Range(mn.startLineNumber||on.endLineNumber,mn.startColumn||on.endColumn,mn.endLineNumber||on.endLineNumber,mn.endColumn||on.endColumn);setTimeout(function(){It.executeEdits("",[{range:Hn,text:""}])},300)}}function Bt(It){(window.navigator.platform.match("Mac")?It.metaKey:It.ctrlKey)&&It.keyCode==83&&(It.preventDefault(),se())}var Ct=function(){if(Q&&Pt.current.instance){var on=Pt.current.instance.getContentHeight();ut(on0||Qe.target.offsetWidth>0)&&Q.layout()}}catch(tt){_e.e(tt)}finally{_e.f()}}),J.observe(ue.current)),J}Object(m.useEffect)(function(){ue.current&&Promise.all([o.e(15),o.e(27)]).then(o.t.bind(null,"M/lh",7)).then(function(Q){D=Q;var J=D.editor.createDiffEditor(ue.current,Object(P.a)(Object(P.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Ee),{},{wordWrap:!0}));re(J);var ve=ae(J);return function(){J.dispose();var _e=J.getModel();_e&&_e.dispose(),ve.unobserve(ue.current)}})},[]),Object(m.useEffect)(function(){me&&me.setModel({original:D.editor.createModel(Se,ce),modified:D.editor.createModel(Te,ce)})},[Se,Te,ce,me]);var Oe=U(ee),se=U(de),te={width:Oe,height:se};return e.a.createElement("div",{className:"my-diff-editor",ref:ue,style:te})}},ZpRC:function(k,z,o){"use strict";function P(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function g(a,u){return(!u||a!=="hidden")&&a!=="visible"&&a!=="clip"}function T(a,u){if(a.clientHeightu||l>a&&h=u&&d>=r?l-a-i:h>u&&dr?h-u+n:0}var y=function(a,u){var r=window,i=u.scrollMode,n=u.block,l=u.inline,h=u.boundary,d=u.skipOverflowHiddenElements,s=typeof h=="function"?h:function(Q){return Q!==h};if(!P(a))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,w=[],E=a;P(E)&&s(E);){if((E=E.parentElement)===c){w.push(E);break}E!=null&&E===document.body&&T(E)&&!T(document.documentElement)||E!=null&&T(E,d)&&w.push(E)}for(var v=r.visualViewport?r.visualViewport.width:innerWidth,R=r.visualViewport?r.visualViewport.height:innerHeight,M=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,S=a.getBoundingClientRect(),_=S.height,A=S.width,U=S.top,L=S.right,N=S.bottom,V=S.left,H=n==="start"||n==="nearest"?U:n==="end"?N:U+_/2,D=l==="center"?V+A/2:l==="end"?L:V,W=[],F=0;F=0&&V>=0&&N<=R&&L<=v&&U>=de&&N<=Te&&V>=ce&&L<=Se)return W;var be=getComputedStyle(I),Ee=parseInt(be.borderLeftWidth,10),ue=parseInt(be.borderTopWidth,10),le=parseInt(be.borderRightWidth,10),$=parseInt(be.borderBottomWidth,10),me=0,re=0,ae="offsetWidth"in I?I.offsetWidth-I.clientWidth-Ee-le:0,Oe="offsetHeight"in I?I.offsetHeight-I.clientHeight-ue-$:0;if(c===I)me=n==="start"?H:n==="end"?H-R:n==="nearest"?b(C,C+R,R,ue,$,C+H,C+H+_,_):H-R/2,re=l==="start"?D:l==="center"?D-v/2:l==="end"?D-v:b(M,M+v,v,Ee,le,M+D,M+D+A,A),me=Math.max(0,me+C),re=Math.max(0,re+M);else{me=n==="start"?H-de-ue:n==="end"?H-Te+$+Oe:n==="nearest"?b(de,Te,ee,ue,$+Oe,H,H+_,_):H-(de+ee/2)+Oe/2,re=l==="start"?D-ce-Ee:l==="center"?D-(ce+he/2)+ae/2:l==="end"?D-Se+le+ae:b(ce,Se,he,Ee,le+ae,D,D+A,A);var se=I.scrollLeft,te=I.scrollTop;H+=te-(me=Math.max(0,Math.min(te+me,I.scrollHeight-ee+Oe))),D+=se-(re=Math.max(0,Math.min(se+re,I.scrollWidth-he+ae)))}W.push({el:I,top:me,left:re})}return W};function x(a){return a===Object(a)&&Object.keys(a).length!==0}function O(a,u){u===void 0&&(u="auto");var r="scrollBehavior"in document.body.style;a.forEach(function(i){var n=i.el,l=i.top,h=i.left;n.scroll&&r?n.scroll({top:l,left:h,behavior:u}):(n.scrollTop=l,n.scrollLeft=h)})}function m(a){return a===!1?{block:"end",inline:"nearest"}:x(a)?a:{block:"start",inline:"nearest"}}function e(a,u){var r=!a.ownerDocument.documentElement.contains(a);if(x(u)&&typeof u.behavior=="function")return u.behavior(r?[]:y(a,u));if(r)return;var i=m(u);return O(y(a,i),i.behavior)}var f=z.a=e},Zss7:function(k,z,o){var P;(function(g){var T=/^\s+/,b=/\s+$/,y=0,x=g.round,O=g.min,m=g.max,e=g.random;function f($,me){if($=$||"",me=me||{},$ instanceof f)return $;if(!(this instanceof f))return new f($,me);var re=a($);this._originalInput=$,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=x(100*this._a)/100,this._format=me.format||re.format,this._gradientType=me.gradientType,this._r<1&&(this._r=x(this._r)),this._g<1&&(this._g=x(this._g)),this._b<1&&(this._b=x(this._b)),this._ok=re.ok,this._tc_id=y++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var $=this.toRgb();return($.r*299+$.g*587+$.b*114)/1e3},getLuminance:function(){var $=this.toRgb(),me,re,ae,Oe,se,te;return me=$.r/255,re=$.g/255,ae=$.b/255,me<=.03928?Oe=me/12.92:Oe=g.pow((me+.055)/1.055,2.4),re<=.03928?se=re/12.92:se=g.pow((re+.055)/1.055,2.4),ae<=.03928?te=ae/12.92:te=g.pow((ae+.055)/1.055,2.4),.2126*Oe+.7152*se+.0722*te},setAlpha:function($){return this._a=W($),this._roundA=x(100*this._a)/100,this},toHsv:function(){var $=n(this._r,this._g,this._b);return{h:$.h*360,s:$.s,v:$.v,a:this._a}},toHsvString:function(){var $=n(this._r,this._g,this._b),me=x($.h*360),re=x($.s*100),ae=x($.v*100);return this._a==1?"hsv("+me+", "+re+"%, "+ae+"%)":"hsva("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHsl:function(){var $=r(this._r,this._g,this._b);return{h:$.h*360,s:$.s,l:$.l,a:this._a}},toHslString:function(){var $=r(this._r,this._g,this._b),me=x($.h*360),re=x($.s*100),ae=x($.l*100);return this._a==1?"hsl("+me+", "+re+"%, "+ae+"%)":"hsla("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHex:function($){return h(this._r,this._g,this._b,$)},toHexString:function($){return"#"+this.toHex($)},toHex8:function($){return d(this._r,this._g,this._b,this._a,$)},toHex8String:function($){return"#"+this.toHex8($)},toRgb:function(){return{r:x(this._r),g:x(this._g),b:x(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+x(this._r)+", "+x(this._g)+", "+x(this._b)+")":"rgba("+x(this._r)+", "+x(this._g)+", "+x(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:x(F(this._r,255)*100)+"%",g:x(F(this._g,255)*100)+"%",b:x(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+x(F(this._r,255)*100)+"%, "+x(F(this._g,255)*100)+"%, "+x(F(this._b,255)*100)+"%)":"rgba("+x(F(this._r,255)*100)+"%, "+x(F(this._g,255)*100)+"%, "+x(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[h(this._r,this._g,this._b,!0)]||!1},toFilter:function($){var me="#"+s(this._r,this._g,this._b,this._a),re=me,ae=this._gradientType?"GradientType = 1, ":"";if($){var Oe=f($);re="#"+s(Oe._r,Oe._g,Oe._b,Oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+ae+"startColorstr="+me+",endColorstr="+re+")"},toString:function($){var me=!!$;$=$||this._format;var re=!1,ae=this._a<1&&this._a>=0,Oe=!me&&ae&&($==="hex"||$==="hex6"||$==="hex3"||$==="hex4"||$==="hex8"||$==="name");return Oe?$==="name"&&this._a===0?this.toName():this.toRgbString():($==="rgb"&&(re=this.toRgbString()),$==="prgb"&&(re=this.toPercentageRgbString()),($==="hex"||$==="hex6")&&(re=this.toHexString()),$==="hex3"&&(re=this.toHexString(!0)),$==="hex4"&&(re=this.toHex8String(!0)),$==="hex8"&&(re=this.toHex8String()),$==="name"&&(re=this.toName()),$==="hsl"&&(re=this.toHslString()),$==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function($,me){var re=$.apply(null,[this].concat([].slice.call(me)));return this._r=re._r,this._g=re._g,this._b=re._b,this.setAlpha(re._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(R,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function($,me){return $.apply(null,[this].concat([].slice.call(me)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(U,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function($,me){if(typeof $=="object"){var re={};for(var ae in $)$.hasOwnProperty(ae)&&(ae==="a"?re[ae]=$[ae]:re[ae]=Se($[ae]));$=re}return f($,me)};function a($){var me={r:0,g:0,b:0},re=1,ae=null,Oe=null,se=null,te=!1,Q=!1;return typeof $=="string"&&($=ue($)),typeof $=="object"&&(Ee($.r)&&Ee($.g)&&Ee($.b)?(me=u($.r,$.g,$.b),te=!0,Q=String($.r).substr(-1)==="%"?"prgb":"rgb"):Ee($.h)&&Ee($.s)&&Ee($.v)?(ae=Se($.s),Oe=Se($.v),me=l($.h,ae,Oe),te=!0,Q="hsv"):Ee($.h)&&Ee($.s)&&Ee($.l)&&(ae=Se($.s),se=Se($.l),me=i($.h,ae,se),te=!0,Q="hsl"),$.hasOwnProperty("a")&&(re=$.a)),re=W(re),{ok:te,format:$.format||Q,r:O(255,m(me.r,0)),g:O(255,m(me.g,0)),b:O(255,m(me.b,0)),a:re}}function u($,me,re){return{r:F($,255)*255,g:F(me,255)*255,b:F(re,255)*255}}function r($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=O($,me,re),se,te,Q=(ae+Oe)/2;if(ae==Oe)se=te=0;else{var J=ae-Oe;te=Q>.5?J/(2-ae-Oe):J/(ae+Oe);switch(ae){case $:se=(me-re)/J+(me1&&(Ae-=1),Ae<1/6?ve+(_e-ve)*6*Ae:Ae<1/2?_e:Ae<2/3?ve+(_e-ve)*(2/3-Ae)*6:ve}if(me===0)ae=Oe=se=re;else{var Q=re<.5?re*(1+me):re+me-re*me,J=2*re-Q;ae=te(J,Q,$+1/3),Oe=te(J,Q,$),se=te(J,Q,$-1/3)}return{r:ae*255,g:Oe*255,b:se*255}}function n($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=O($,me,re),se,te,Q=ae,J=ae-Oe;if(te=ae===0?0:J/ae,ae==Oe)se=0;else{switch(ae){case $:se=(me-re)/J+(me>1)+720)%360;--me;)ae.h=(ae.h+Oe)%360,se.push(f(ae));return se}function N($,me){me=me||6;for(var re=f($).toHsv(),ae=re.h,Oe=re.s,se=re.v,te=[],Q=1/me;me--;)te.push(f({h:ae,s:Oe,v:se})),se=(se+Q)%1;return te}f.mix=function($,me,re){re=re===0?0:re||50;var ae=f($).toRgb(),Oe=f(me).toRgb(),se=re/100,te={r:(Oe.r-ae.r)*se+ae.r,g:(Oe.g-ae.g)*se+ae.g,b:(Oe.b-ae.b)*se+ae.b,a:(Oe.a-ae.a)*se+ae.a};return f(te)},f.readability=function($,me){var re=f($),ae=f(me);return(g.max(re.getLuminance(),ae.getLuminance())+.05)/(g.min(re.getLuminance(),ae.getLuminance())+.05)},f.isReadable=function($,me,re){var ae=f.readability($,me),Oe,se;se=!1,Oe=le(re);switch(Oe.level+Oe.size){case"AAsmall":case"AAAlarge":se=ae>=4.5;break;case"AAlarge":se=ae>=3;break;case"AAAsmall":se=ae>=7;break}return se},f.mostReadable=function($,me,re){var ae=null,Oe=0,se,te,Q,J;re=re||{},te=re.includeFallbackColors,Q=re.level,J=re.size;for(var ve=0;veOe&&(Oe=se,ae=f(me[ve]));return f.isReadable($,ae,{level:Q,size:J})||!te?ae:(re.includeFallbackColors=!1,f.mostReadable($,["#fff","#000"],re))};var V=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=f.hexNames=D(V);function D($){var me={};for(var re in $)$.hasOwnProperty(re)&&(me[$[re]]=re);return me}function W($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function F($,me){ee($)&&($="100%");var re=he($);return $=O(me,m(0,parseFloat($))),re&&($=parseInt($*me,10)/100),g.abs($-me)<1e-6?1:$%me/parseFloat(me)}function I($){return O(1,m(0,$))}function K($){return parseInt($,16)}function ee($){return typeof $=="string"&&$.indexOf(".")!=-1&&parseFloat($)===1}function he($){return typeof $=="string"&&$.indexOf("%")!=-1}function de($){return $.length==1?"0"+$:""+$}function Se($){return $<=1&&($=$*100+"%"),$}function Te($){return g.round(parseFloat($)*255).toString(16)}function ce($){return K($)/255}var be=function(){var $="[-\\+]?\\d+%?",me="[-\\+]?\\d*\\.\\d+%?",re="(?:"+me+")|(?:"+$+")",ae="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Oe="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+ae),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+ae),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+ae),hsva:new RegExp("hsva"+Oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ee($){return!!be.CSS_UNIT.exec($)}function ue($){$=$.replace(T,"").replace(b,"").toLowerCase();var me=!1;if(V[$])$=V[$],me=!0;else if($=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=be.rgb.exec($))?{r:re[1],g:re[2],b:re[3]}:(re=be.rgba.exec($))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=be.hsl.exec($))?{h:re[1],s:re[2],l:re[3]}:(re=be.hsla.exec($))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=be.hsv.exec($))?{h:re[1],s:re[2],v:re[3]}:(re=be.hsva.exec($))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=be.hex8.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),a:ce(re[4]),format:me?"name":"hex8"}:(re=be.hex6.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),format:me?"name":"hex"}:(re=be.hex4.exec($))?{r:K(re[1]+""+re[1]),g:K(re[2]+""+re[2]),b:K(re[3]+""+re[3]),a:ce(re[4]+""+re[4]),format:me?"name":"hex8"}:(re=be.hex3.exec($))?{r:K(re[1]+""+re[1]),g:K(re[2]+""+re[2]),b:K(re[3]+""+re[3]),format:me?"name":"hex"}:!1}function le($){var me,re;return $=$||{level:"AA",size:"small"},me=($.level||"AA").toUpperCase(),re=($.size||"small").toLowerCase(),me!=="AA"&&me!=="AAA"&&(me="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:me,size:re}}k.exports?k.exports=f:!(P=function(){return f}.call(z,o,z,k),P!==void 0&&(k.exports=P))})(Math)},aBPH:function(k,z,o){k.exports={wrap:"wrap___1eujs",modal:"modal___3NBln",title:"title___26WI_",path:"path___HzdTG",colorBlue:"colorBlue___3sufs",width240:"width240___DJhZ8",filePath:"filePath___13aFg"}},auZk:function(k,z,o){k.exports={flex_box_center:"flex_box_center___3qTxW",flex_space_between:"flex_space_between___3ea87",flex_box_vertical_center:"flex_box_vertical_center___3pRKY",flex_box_center_end:"flex_box_center_end___1knqW",flex_box_column:"flex_box_column___2jnF_",header:"header___1jftB","flex-center":"flex-center___2n5vX",title:"title___JYziX",schedule:"schedule___3dZqv",clickWarp:"clickWarp___Nw-Yv",num:"num___2kh_y",subject:"subject___3cFDa",btns:"btns___jk1p6",btn:"btn___2VKv5",simulate:"simulate___3PtJU",exit:"exit___3vlKF"}},bKvZ:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2dXfh",flex_space_between:"flex_space_between___2BhUa",flex_box_vertical_center:"flex_box_vertical_center___15ksZ",flex_box_center_end:"flex_box_center_end___3JbfY",flex_box_column:"flex_box_column___1raS-",level:"level___W4wcy",left:"left___1XwUw",container:"container___16wfS",title:"title___2mqN2",listWrap:"listWrap___U0Df3",list:"list___2YNXa",s3:"s3___25biP",s2:"s2___3z1Hl",listActive:"listActive___1B21p",os:"os___2rPuf",btns:"btns___3SwkA",btnsWrap:"btnsWrap___30oSS",icon:"icon___IUU5o",btn:"btn___GdOfs",d1:"d1___uGVV7",d2:"d2___12wBt",shrink:"shrink___tBEU_",elseShrink:"elseShrink___1vnuF",right:"right___27lwg",addIcon:"addIcon___3jWNX"}},bQjk:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return function(g){var T=P,b=T.lib,y=b.CipherParams,x=T.enc,O=x.Hex,m=T.format,e=m.Hex={stringify:function(f){return f.ciphertext.toString(O)},parse:function(f){var a=O.parse(f);return y.create({ciphertext:a})}}}(),P.format.Hex})},bT9E:function(k,z,o){"use strict";o.d(z,"a",function(){return g});var P=o("VTBJ");function g(T,b){var y=Object(P.a)({},T);return Array.isArray(b)&&b.forEach(function(x){delete y[x]}),y}},bUJZ:function(k,z){k.exports="data:image/png;base64,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"},biw7:function(k,z,o){"use strict";var P=o("q1tI"),g=o.n(P),T=P.createContext(null);z.a=T},c5Ni:function(k,z,o){},cFMs:function(k,z){k.exports="data:image/png;base64,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"},cRFk:function(k,z,o){k.exports=o.p+"static/RepositoryNoneData.828085a8.png"},ch0t:function(k,z,o){"use strict";o.r(z);var P=o("+L6B"),g=o("2/Rp"),T=o("T2oS"),b=o("W9HT"),y=o("14J3"),x=o("BMrR"),O=o("2qtc"),m=o("kLXV"),e=o("jCWc"),f=o("kPKH"),a=o("qVdP"),u=o("jsC+"),r=o("k1fw"),i=o("lUTK"),n=o("BvKs"),l=o("9og8"),h=o("miYZ"),d=o("tsqr"),s=o("5Dmo"),c=o("3S7+"),w=o("tJVT"),E=o("PpiC"),v=o("Znn+"),R=o("ZTPi"),M=o("WmNS"),C=o.n(M),S=o("q1tI"),_=o.n(S),A=o("B6bo"),U=o.n(A),L=o("Ty5D"),N=o("9kvl"),V=o("BoS7"),H=o("Sdc0"),D=o("oBTY"),W=o("ozfa"),F=o("MJZm"),I=o("P5Jw"),K=o("5NDa"),ee=o("5rEg"),he=o("y8nQ"),de=o("Vl3Y"),Se=o("aBPH"),Te=o.n(Se),ce=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,_t=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Nt=Object(L.h)(),ut=Object(L.i)(),Ft=Object(S.useState)({}),It=Object(w.a)(Ft,2),on=It[0],mn=It[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)(""),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1];Object(S.useEffect)(function(){Ot.visible&&xn.resetFields()},[Ot.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var qt=sn.split(",").join("/"),On=qt.indexOf("/")===0?qt.substr(1):qt;nr(On)}},[]),Object(S.useEffect)(function(){var sn,qt;Hn.current=(sn=Nt.pathname)===null||sn===void 0||((qt=sn.split("/"))===null||qt===void 0)?void 0:qt[2]},[]);var Rr=function(){var sn=Object(l.a)(C.a.mark(function qt(){var On,Fr,Or=arguments;return C.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},dr.next=3,ht({type:"shixunsDetail/addRepositoryFile",payload:{id:ut.id,message:On.commitMessage,content:"",path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),secret_repository:_t?void 0:!0}});case 3:Fr=dr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),name:On.path.split("/")[On.path.split("/").length-1]}),Ot.onClose());case 5:case"end":return dr.stop()}},qt)}));return function(){return sn.apply(this,arguments)}}(),pr=function(){var qt,On;N.d.push("/shixuns/".concat(Hn.current,"/").concat((qt=Nt.pathname)===null||qt===void 0||((On=qt.split("/"))===null||On===void 0)?void 0:On[3]).concat(ar?"/master/shixun_show/".concat(ar):""))};return _.a.createElement(m.a,{width:"60%",centered:!0,visible:Ot.visible,wrapClassName:Te.a.modal,onOk:function(){xn.submit()},onCancel:Ot.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:Rr,onChange:function(){var qt,On,Fr,Or,xr=Object(r.a)({},xn.getFieldsValue()),dr=xr==null||((qt=xr.path)===null||qt===void 0)?void 0:qt.split(""),pe=xr==null||((On=xr.file)===null||On===void 0)?void 0:On.split("");dr!=null&&(Fr=dr.filter(function(X){return X=="/"}))!==null&&Fr!==void 0&&Fr.length&&(xr.path=xr.path.substring(0,xr.path.length-1)),pe!=null&&(Or=pe.filter(function(X){return X=="/"}))!==null&&Or!==void 0&&Or.length&&(xr.file=xr.file.substring(0,xr.path.length-1)),xn.setFieldsValue(Object(r.a)({},xr)),mn(xr)}},_.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},_.a.createElement(x.a,null,_.a.createElement(f.a,null,_.a.createElement("span",{className:Te.a.filePath},Ot.defaultPath+"/")),_.a.createElement(f.a,{flex:"1"},_.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),_.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\uFF0C\u5982\u679C\u4E0D\u586B\u5199\u7CFB\u7EDF\u5C06\u5728\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA.gitkeep\u7684\u9ED8\u8BA4\u6587\u4EF6",size:"large"})),_.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"}))))))},be=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})(ce),Ee=o("7ahc"),ue=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,_t=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Nt=Object(L.h)(),ut=Object(L.i)(),Ft=Object(S.useState)({}),It=Object(w.a)(Ft,2),on=It[0],mn=It[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)(""),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1];Object(S.useEffect)(function(){Ot.visible&&xn.resetFields()},[Ot.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var qt=sn.split(",").join("/"),On=qt.indexOf("/")===0?qt.substr(1):qt;nr(On)}},[]),Object(S.useEffect)(function(){var sn,qt;Hn.current=(sn=Nt.pathname)===null||sn===void 0||((qt=sn.split("/"))===null||qt===void 0)?void 0:qt[2]},[]);var Rr=function(){var sn=Object(l.a)(C.a.mark(function qt(){var On,Fr,Or=arguments;return C.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},dr.next=3,ht({type:"shixunsDetail/addRepositoryFile",payload:{id:ut.id,message:On.commitMessage,content:On.codeMirror,path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path,secret_repository:_t?void 0:!0}});case 3:Fr=dr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path,name:On.path.split("/")[On.path.split("/").length-1]}),Ot.onClose());case 5:case"end":return dr.stop()}},qt)}));return function(){return sn.apply(this,arguments)}}(),pr=function(){var qt,On;N.d.push("/shixuns/".concat(Hn.current,"/").concat((qt=Nt.pathname)===null||qt===void 0||((On=qt.split("/"))===null||On===void 0)?void 0:On[3]).concat(ar?"/master/shixun_show/".concat(ar):""))};return _.a.createElement(m.a,{width:"60%",visible:Ot.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){xn.submit()},onCancel:Ot.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:Rr,onChange:function(){var qt,On,Fr=Object(r.a)({},xn.getFieldsValue()),Or=Fr==null||((qt=Fr.path)===null||qt===void 0)?void 0:qt.split("");(Or==null||((On=Or.filter(function(xr){return xr=="/"}))===null||On===void 0)?void 0:On.length)>1&&(Fr.path=Fr.path.substring(0,Fr.path.length-1)),xn.setFieldsValue(Object(r.a)({},Fr)),mn(Fr)}},_.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},_.a.createElement(x.a,null,_.a.createElement(f.a,null,_.a.createElement("span",{className:Te.a.filePath},Ot.defaultPath+"/")),_.a.createElement(f.a,{flex:"1"},_.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),_.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"})),_.a.createElement("div",{className:"mt10 mb20"},_.a.createElement(de.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},_.a.createElement(Ee.a,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})))))))},le=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})(ue),$=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,_t=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Nt=Object(L.h)(),ut=Object(L.i)(),Ft=Object(S.useState)({}),It=Object(w.a)(Ft,2),on=It[0],mn=It[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)(""),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1],Rr=Object(S.useState)(""),pr=Object(w.a)(Rr,2),sn=pr[0],qt=pr[1];Object(S.useEffect)(function(){Ot.visible&&xn.resetFields()},[Ot.visible]),Object(S.useEffect)(function(){var Or=Ot.defaultPath.split("/");Or.length===1?(nr(""),qt(Ot.defaultPath)):(qt(Or.pop()),nr(Or.join("/")+"/"))},[Ot.defaultPath]),Object(S.useEffect)(function(){var Or,xr;Hn.current=(Or=Nt.pathname)===null||Or===void 0||((xr=Or.split("/"))===null||xr===void 0)?void 0:xr[2]},[]);var On=function(){var Or=Object(l.a)(C.a.mark(function xr(){var dr,pe,X=arguments;return C.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return dr=X.length>0&&X[0]!==void 0?X[0]:{},oe.next=3,ht({type:"shixunsDetail/moveGitFile",payload:{id:ut.id,from:Ot.defaultPath,to:ar+dr.path,message:dr.commitMessage||"".concat(Ot.defaultPath," rename to ").concat(ar).concat(dr.path," "),secret_repository:_t}});case 3:pe=oe.sent,(pe==null?void 0:pe.status)===0&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:dr.path,name:dr.path}),Ot.onClose());case 5:case"end":return oe.stop()}},xr)}));return function(){return Or.apply(this,arguments)}}(),Fr=function(){var xr,dr;N.d.push("/shixuns/".concat(Hn.current,"/").concat((xr=Nt.pathname)===null||xr===void 0||((dr=xr.split("/"))===null||dr===void 0)?void 0:dr[3]).concat(ar?"/master/shixun_show/".concat(ar):""))};return _.a.createElement(m.a,{width:"40%",visible:Ot.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){xn.submit()},onCancel:Ot.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:On,onChange:function(){var xr,dr,pe=Object(r.a)({},xn.getFieldsValue()),X=pe==null||((xr=pe.path)===null||xr===void 0)?void 0:xr.split("");(X==null||((dr=X.filter(function(q){return q=="/"}))===null||dr===void 0)?void 0:dr.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),xn.setFieldsValue(Object(r.a)({},pe)),mn(pe)}},_.a.createElement(de.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},_.a.createElement(x.a,null,_.a.createElement(f.a,{flex:"1"},_.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:sn}))))),_.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},_.a.createElement(ee.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(Ot.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})($),re=o("DZo9"),ae=o("8z0m"),Oe=o("m3rI"),se=o("8j3D"),te=o("RC3E"),Q=o.n(te),J=ae.a.Dragger,ve=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,_t=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Nt=Object(L.h)(),ut=Object(L.i)(),Ft=Object(S.useState)({}),It=Object(w.a)(Ft,2),on=It[0],mn=It[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)([]),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1],Rr=Object(S.useState)(),pr=Object(w.a)(Rr,2),sn=pr[0],qt=pr[1],On;Object(S.useEffect)(function(){Ot.visible&&(xn.resetFields(),nr([]))},[Ot.visible]),Object(S.useEffect)(function(){Hn.current=ut.id},[]),Object(S.useEffect)(function(){var X=sessionStorage.getItem("pathArray");if(X){var q=X.split(",").join("/"),oe=q.indexOf("/")===0?q.substr(1):q;qt(oe)}},[]);var Fr=function(q){if(On=q.file.name,q.file.status==="done"||q.file.status==="uploading"){var oe,De,fe;if(nr(q.fileList),!q.file.response)return;if(((oe=q.file.response)===null||oe===void 0?void 0:oe.status)===0){d.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}nr(ar.filter(function(ot){return ot.uid!==q.file.uid})),((De=q.file.response)===null||De===void 0?void 0:De.message)&&d.b.info((fe=q.file.response)===null||fe===void 0?void 0:fe.message)}},Or=function(){var X=Object(l.a)(C.a.mark(function q(oe){var De;return C.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(oe.response){ot.next=3;break}return d.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),ot.abrupt("return");case 3:return ot.next=5,ht({type:"shixunsDetail/deleteGitFile",payload:{id:ut.id,path:sn?"".concat(sn,"/").concat(oe.name):oe.name,message:xn.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(sn?"".concat(sn,"/").concat(oe.name):oe.name),secret_repository:_t?null:!0}});case 5:De=ot.sent,De.status===0&&(nr(ar.filter(function(Qt){return Qt.uid!==oe.uid})),d.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return ot.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),xr={height:300,multiple:!0,withCredentials:!0,data:function(){var X=Object(l.a)(C.a.mark(function oe(){return C.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.abrupt("return",new Promise(function(){var ot=Object(l.a)(C.a.mark(function Qt(Mn,Vn){return C.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:setTimeout(Object(l.a)(C.a.mark(function pn(){var Ar,ra;return C.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.next=2,xn.getFieldsValue();case 2:Ar=ir.sent,ra=Object(r.a)(Object(r.a)({},{path:Ot.defaultPath?Ot.defaultPath:"",message:on.commitMessage||"\u4E0A\u4F20\u4E86".concat(On)}),_t?{}:{secret_repository:!0}),Mn(ra);case 5:case"end":return ir.stop()}},pn)})),200);case 1:case"end":return gn.stop()}},Qt)}));return function(Qt,Mn){return ot.apply(this,arguments)}}()));case 1:case"end":return fe.stop()}},oe)}));function q(){return X.apply(this,arguments)}return q}(),fileList:ar,method:"post",action:"".concat(Oe.a.API_SERVER,"/api/shixuns/").concat(Hn.current,"/upload_git_file.json"),onChange:Fr,onRemove:Or,beforeUpload:function(q){On=q.name}},dr=function(){var X=Object(l.a)(C.a.mark(function q(oe){return C.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,xn.validateFields();case 2:Ot.onClose(),Ot.onOK({path:Ot.defaultPath}),pe();case 5:case"end":return fe.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),pe=function(){var q,oe;N.d.push("/shixuns/".concat(Hn.current,"/").concat((q=Nt.pathname)===null||q===void 0||((oe=q.split("/"))===null||oe===void 0)?void 0:oe[3]).concat(sn?"/master/shixun_show/".concat(sn):""))};return _.a.createElement(m.a,{visible:Ot.visible,onOk:dr,centered:!0,onCancel:Ot.onClose,width:"70%"},_.a.createElement("section",{className:Q.a.bg},_.a.createElement("div",{className:Q.a.wrap},_.a.createElement("div",{className:Q.a.title},"\u4E0A\u4F20\u6587\u4EF6"),_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:dr,onValuesChange:function(){return mn(Object(r.a)({},xn.getFieldsValue()))}},_.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),_.a.createElement(de.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},_.a.createElement(J,xr,_.a.createElement("div",null,_.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(Q.a.colorBlue)})),_.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",_.a.createElement("span",{className:"".concat(Q.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),_.a.createElement(se.a,{onFinish:function(q){return qt(q)}})))},_e=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})(ve),Ae=o("Bbdw"),Qe=o.n(Ae),tt=o("HpfO"),dt=o.n(tt),mt=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.dispatch,ht=Ke.title,_t=Ke.pathList,Ot=_t===void 0?[]:_t,Nt=Ke.showInputPath,ut=Nt===void 0?!1:Nt,Ft=Ke.isMergeSelectFile,It=Ft===void 0?!1:Ft,on=Ke.onFinish,mn=on===void 0?function(){}:on,Hn=de.a.useForm(),Xn=Object(w.a)(Hn,1),Fn=Xn[0],xn=Object(L.i)(),fr=Object(L.h)(),Yn=Object(S.useRef)(),ar=Object(S.useState)(""),nr=Object(w.a)(ar,2),Rr=nr[0],pr=nr[1],sn=Object(S.useState)(""),qt=Object(w.a)(sn,2),On=qt[0],Fr=qt[1],Or=Object(S.useState)([]),xr=Object(w.a)(Or,2),dr=xr[0],pe=xr[1],X=Object(S.useState)([]),q=Object(w.a)(X,2),oe=q[0],De=q[1];Object(S.useEffect)(function(){var $t,gn;Yn.current=(($t=fr.pathname)===null||$t===void 0||((gn=$t.split("/"))===null||gn===void 0)?void 0:gn[3])==="repository"},[]),Object(S.useEffect)(function(){if(et.actionTabs.key!=="Repository-SelectFilePath")return;var $t=Ot.join("/"),gn=[];Ot.map(function(pn,Ar){Ar===0?gn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(pn),path:$t}):gn.push({val:"/".concat(pn),path:$t})}),pe(gn),pr($t),Fr($t),fe($t)},[et.actionTabs.key]);var fe=function(){var $t=Object(l.a)(C.a.mark(function gn(pn){var Ar;return C.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Xe({type:Yn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:xn.id,path:pn}});case 2:Ar=oa.sent,Ar&&De(Ar.trees||[]);case 4:case"end":return oa.stop()}},gn)}));return function(pn){return $t.apply(this,arguments)}}(),ot=function(gn){var pn=Rr;gn.type==="tree"&&(dr.length?dr.push({val:"/".concat(gn.name),path:gn.name}):dr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(gn.name),path:gn.name}),pe(dr),pn=Rr?"".concat(Rr,"/").concat(gn.name):gn.name,pr(pn)),fe(pn)},Qt=function(gn,pn){var Ar=dr.filter(function(oa,ir){return ir<=pn});pe(Ar);var ra=Ar.filter(function(oa,ir){return ir!==0}).map(function(oa){return oa.val}).join("").substr(1);pr(ra),fe(ra)},Mn=function(){var $t=Object(l.a)(C.a.mark(function gn(){var pn,Ar,ra;return C.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:if(pn=Fn==null?void 0:Fn.getFieldsValue(),Ar=Rr?"".concat(Rr).concat(pn!=null&&pn.name?"/".concat(pn==null?void 0:pn.name):""):pn==null?void 0:pn.name,!It){ir.next=6;break}return mn(Ar),Vn(),ir.abrupt("return");case 6:if(!ut){ir.next=16;break}return ir.next=9,Fn.validateFields();case 9:return ir.next=11,Xe({type:"shixunsDetail/uploadGitFolder",payload:Object(r.a)(Object(r.a)({},{id:xn.id,path:Ar}),Yn.current?{}:{secret_repository:!0})});case 11:ra=ir.sent,mn(On),ra.status===0&&d.b.info("\u65B0\u5EFA\u6210\u529F"),ir.next=18;break;case 16:mn(Ar),d.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Vn();case 19:case"end":return ir.stop()}},gn)}));return function(){return $t.apply(this,arguments)}}(),Vn=function(){Xe({type:"shixunsDetail/setActionTabs",payload:{}}),Fn.resetFields()};return _.a.createElement(m.a,{centered:!0,title:ht||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:et.actionTabs.key==="Repository-SelectFilePath",onOk:Mn,onCancel:Vn},_.a.createElement("div",{className:dt.a.wrap},_.a.createElement("div",{className:dt.a.content},_.a.createElement("div",{className:dt.a.mainPathWrap},!!(dr!=null&&dr.length)&&dr.map(function($t,gn){return _.a.createElement("a",{key:gn,onClick:function(){return Qt($t,gn)}},$t.val)})),!!(oe!=null&&oe.length)&&oe.map(function($t,gn){return $t.type==="tree"&&_.a.createElement("a",{key:gn,onClick:function(){return ot($t)}},_.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(dt.a.colorBlue)}),$t.name)})),_.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),_.a.createElement("div",{className:"mt5 mb5"},Rr),ut&&_.a.createElement(de.a,{form:Fn,scrollToFirstError:!0,className:"mt20"},_.a.createElement(de.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},vt=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting;return{shixunsDetail:Ke,globalSetting:at,loading:et.models.index}})(mt),Et=o("GZ0F"),Ye=o("8Skl"),Ue=o("HBuW"),ft=o("1vsH"),jt=o("NLgs"),yt=o("lzim"),Pt=F.a.DirectoryTree,it=function(Ke){var et,at,Pe,Xe,ht,_t,Ot,Nt=Ke.shixunsDetail,ut=Ke.globalSetting,Ft=Ke.loading,It=Ke.user,on=Ke.activeKey,mn=Ke.dispatch,Hn=Ke.practiceSetting,Xn=Ke.isRepository,Fn=Ke.treeData,xn=Ke.setTreeData,fr=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Yn=Object(L.i)(),ar=Object(L.h)(),nr=Object(S.useState)(),Rr=Object(w.a)(nr,2),pr=Rr[0],sn=Rr[1],qt=Object(S.useState)(!1),On=Object(w.a)(qt,2),Fr=On[0],Or=On[1],xr=Object(S.useState)(!1),dr=Object(w.a)(xr,2),pe=dr[0],X=dr[1],q=Object(S.useState)(!1),oe=Object(w.a)(q,2),De=oe[0],fe=oe[1],ot=Object(S.useState)(!1),Qt=Object(w.a)(ot,2),Mn=Qt[0],Vn=Qt[1],$t=Object(S.useState)(""),gn=Object(w.a)($t,2),pn=gn[0],Ar=gn[1],ra=Object(S.useState)([]),oa=Object(w.a)(ra,2),ir=oa[0],Ra=oa[1],La=Object(S.useState)([]),ca=Object(w.a)(La,2),Ka=ca[0],wa=ca[1],Ja=Object(S.useState)([]),ja=Object(w.a)(Ja,2),li=ja[0],oi=ja[1],fa=Object(S.useState)(!1),ma=Object(w.a)(fa,2),la=ma[0],xe=ma[1],lt=Object(S.useState)(),Rt=Object(w.a)(lt,2),wt=Rt[0],Kt=Rt[1],Lt=Object(S.useState)(),Xt=Object(w.a)(Lt,2),nn=Xt[0],yn=Xt[1],vn=Object(S.useState)(""),Nn=Object(w.a)(vn,2),An=Nn[0],an=Nn[1],Pn=Object(S.useState)(),bn=Object(w.a)(Pn,2),kn=bn[0],Rn=bn[1],Jn=Object(S.useState)(!1),mr=Object(w.a)(Jn,2),Br=mr[0],Sn=mr[1];Object(S.useEffect)(function(){xn([]),Un(""),localStorage.warehouseHideTip||xe(!0)},[ar.pathname,Xn]);var Yt=function(){var tr=Object(l.a)(C.a.mark(function Gt(){var Zt,Jt,zn=arguments;return C.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Zt=zn.length>0&&zn[0]!==void 0?zn[0]:"",Ln.next=3,Object(Ue.Gb)({id:Yn.id,secret_dir_path:Zt});case 3:Jt=Ln.sent,Jt&&Rn(Zt);case 5:case"end":return Ln.stop()}},Gt)}));return function(){return tr.apply(this,arguments)}}(),dn=function(Gt){var Zt;return _.a.createElement(n.a,{className:Qe.a.menu,onClick:function(zn){Ar(Gt.path||"");switch(zn.key){case"1":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Or(!0);break;case"2":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),fe(!0);break;case"3":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Vn(!0);break;case"4":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),X(!0);break;case"5":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Pr(Gt.path,Gt.name,Gt);break;case"6":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Lr(Gt);break}}},(Gt.type==="topTree"||Gt.type==="tree")&&_.a.createElement(n.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Gt.type==="topTree"||Gt.type==="tree")&&_.a.createElement(n.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Gt.type==="topTree"||Gt.type==="tree")&&_.a.createElement(n.a.Item,{key:"3"},"\u4E0A\u4F20"),Gt.type!=="topTree"&&Gt.type!=="tree"&&(Nt==null||((Zt=Nt.detail)===null||Zt===void 0)?void 0:Zt.public)<2&&_.a.createElement(n.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Gt.type!=="topTree"&&_.a.createElement(I.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Xn?"":"secret/").concat(Gt==null?void 0:Gt.path),onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},_.a.createElement(n.a.Item,{key:"6"},_.a.createElement(_.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Gt.type!=="topTree"&&_.a.createElement(n.a.Item,{key:"5"},"\u5220\u9664"))},Dn=function(Gt,Zt){return Gt.map(function(Jt){return Zt==""?Jt.path=Zt+Jt.name:Jt.path=Zt+"/"+Jt.name,Jt.title=_.a.createElement(x.a,{className:"font14"},_.a.createElement(f.a,{flex:"1"},_.a.createElement(x.a,null,_.a.createElement(f.a,{flex:"20px"},Jt.type==="blob"&&_.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),_.a.createElement(f.a,{flex:"1"},_.a.createElement("span",{className:" multi_ellipsis1"},Jt.name)))),_.a.createElement(f.a,null,(Jt.type==="blob"||Jt.type==="tree")&&_.a.createElement(u.a,{overlay:dn(Jt),className:Qe.a.ellipsis},_.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Jt.disableCheckbox=pr&&pr!==Jt.name,Jt.className=Jt.type==="tree"?Qe.a.pl23:"",Jt.checkable=Jt.type!=="tree",Jt.isLeaf=Jt.type!=="tree",Jt.children=Jt.type==="tree"&&[],Jt.key=Jt.path,Jt})},en=function(Gt){mn({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Gt}})},wn=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt,Jt){var zn;return C.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return zn=Zt.split("/"),Ln.next=3,Un(pn);case 3:setTimeout(function(){en(Zt),ir=[zn[0]||""],Ka=[Zt],wa(Object(D.a)(Ka)),Ra(Object(D.a)(ir))},150);case 4:case"end":return Ln.stop()}},Gt)}));return function(Zt,Jt){return tr.apply(this,arguments)}}(),_n=function(Gt,Zt){if(Zt=="")Fn=Object(D.a)(Gt),xn(Object(D.a)(Gt));else{var Jt=In(Fn,Zt,Gt);Fn=Jt,xn(Object(D.a)(Jt))}};function In(tr,Gt,Zt){return tr.map(function(Jt){return Jt.key===Gt?(Jt.children=Object(D.a)(Zt),Object(r.a)({},Jt)):Jt.children?Object(r.a)(Object(r.a)({},Jt),{},{children:In(Jt.children,Gt,Zt)}):Jt})}var Un=function(){var tr=Object(l.a)(C.a.mark(function Gt(){var Zt,Jt,zn,$n,Ln,rr=arguments;return C.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return Zt=rr.length>0&&rr[0]!==void 0?rr[0]:"",sr.next=3,mn({type:Xn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Yn.id,path:Zt}});case 3:return Jt=sr.sent,Jt&&((zn=Jt.trees)!==null&&zn!==void 0&&zn.length?(Ln=Dn(Object(D.a)(Jt.trees),Zt),_n(Ln,Zt),oi(Jt.trees||[]),yn(Zt||""),console.log("handleGetRepository:",Ln,Zt),setTimeout(function(){return console.log(Fn,Jt.trees,Zt,999999)},2e3)):Zt==""&&xn([]),Kt((($n=Jt.commits)===null||$n===void 0?void 0:$n[0])||{})),sr.abrupt("return",Jt);case 6:case"end":return sr.stop()}},Gt)}));return function(){return tr.apply(this,arguments)}}(),or=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){return C.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.abrupt("return",new Promise(function(){var $n=Object(l.a)(C.a.mark(function Ln(rr,cr){return C.a.wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:return Zt.children.length&&rr(),an(Zt.path),qr.next=4,Un(Zt.path);case 4:rr();case 5:case"end":return qr.stop()}},Ln)}));return function(Ln,rr){return $n.apply(this,arguments)}}()));case 1:case"end":return zn.stop()}},Gt)}));return function(Zt){return tr.apply(this,arguments)}}(),qn=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt,Jt){var zn,$n;return C.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(console.log("handleSelectTree",Zt,Jt.nativeEvent.target.nodeName,Jt),zn=function(){en(Jt.node.path),Zt=[Jt.node.path],wa(Object(D.a)(Zt))},!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="LI"||Jt.nativeEvent.target.nodeName==="I")){rr.next=4;break}return rr.abrupt("return");case 4:Jt.node.type==="blob"&&(Hn!=null&&($n=Hn.sideBar)!==null&&$n!==void 0&&$n.confirmLeave?m.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){zn(),mn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):zn());case 5:case"end":return rr.stop()}},Gt)}));return function(Zt,Jt){return tr.apply(this,arguments)}}(),Pr=function(Gt,Zt,Jt){m.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(Jt.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var zn=Object(l.a)(C.a.mark(function Ln(){var rr,cr,sr;return C.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,mn({type:"shixunsDetail/deleteGitFile",payload:{id:Yn.id,path:Gt,message:"\u5220\u9664".concat(Gt),secret_repository:Xn?null:!0}});case 2:if(rr=lr.sent,cr=Gt.split("/"),!((rr==null?void 0:rr.status)===0)){lr.next=20;break}return d.b.info("\u5220\u9664\u6210\u529F"),cr.splice(cr.length-1,1),lr.next=9,Un(cr.length>1?cr.join("/"):"");case 9:if(sr=lr.sent,!(sr!=null&&sr.trees)){lr.next=13;break}lr.next=16;break;case 13:return cr.splice(cr.length-1,1),lr.next=16,Un(cr.length>1?cr.join("/"):"");case 16:return en(""),lr.abrupt("return",!0);case 20:(rr==null?void 0:rr.status)===-3&&m.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:_.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",Gt,"\u201D\u5DF2\u7ECF\u88AB\u4EFB\u52A1\u5173\u5361\u7684\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u6216\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u4EFB\u52A1\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u540E\u518D\u5220\u9664\u3002"),okText:"\u524D\u5F80\u4FEE\u6539",cancelText:"\u53D6\u6D88",onOk:function(){window.location.href="/shixuns/".concat(Yn.id,"/edit/").concat(rr==null?void 0:rr.message,"/tab=2")}});case 21:case"end":return lr.stop()}},Ln)}));function $n(){return zn.apply(this,arguments)}return $n}()})},Lr=function(Gt){console.log(Gt,"item")},Qn=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt,Jt){return C.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:if(console.log("handleExpand",Jt),!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="path"||Jt.nativeEvent.target.nodeName==="LI")){$n.next=5;break}return $n.abrupt("return",!0);case 5:return $n.next=7,or(Jt.node);case 7:ir.includes(Jt.node.path)?ir.splice(ir.indexOf(Jt.node.path),1):ir.push(Jt.node.path);case 8:Ra(Object(D.a)(ir));case 9:case"end":return $n.stop()}},Gt)}));return function(Zt,Jt){return tr.apply(this,arguments)}}(),Dr=function(){xe(!1),localStorage.warehouseHideTip=!0},vr=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){var Jt,zn,$n,Ln,rr;return C.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:$n="",sr.t0=Xn,sr.next=sr.t0===!0?4:sr.t0===!1?9:11;break;case 4:return $n="\u5F00\u542F\u7248\u672C\u5E93",Ln="\u5F00\u542F",rr="\u4E0D\u5F00\u542F",zn=_.a.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002"),sr.abrupt("break",11);case 9:return Nt!=null&&(Jt=Nt.detail)!==null&&Jt!==void 0&&Jt.secret_repository?($n="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u786E\u5B9A",rr="\u53D6\u6D88",zn=_.a.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):($n="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u4E0D\u4F7F\u7528",rr="\u4F7F\u7528",zn=_.a.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002")),sr.abrupt("break",11);case 11:if(!(!Xn&&Object(jt.b)(mn,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){sr.next=13;break}return sr.abrupt("return");case 13:m.a.confirm({title:$n,okText:Ln,cancelText:rr,content:zn,onOk:function(){var lr;Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",$n]),!Xn&&!(Nt!=null&&(lr=Nt.detail)!==null&&lr!==void 0&&lr.secret_repository)||zr(Zt)},onCancel:function(){var lr;!Xn&&!(Nt!=null&&(lr=Nt.detail)!==null&&lr!==void 0&&lr.secret_repository)&&zr(Zt)}});case 14:case"end":return sr.stop()}},Gt)}));return function(Zt){return tr.apply(this,arguments)}}(),zr=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){return C.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:if(!Xn){zn.next=6;break}return zn.next=3,Object(Ue.r)(Object(r.a)({},Yn));case 3:mn({type:"practiceSetting/getCommonData",payload:Object(r.a)({},Yn)}),zn.next=8;break;case 6:return zn.next=8,Object(Ue.t)(Object(r.a)(Object(r.a)({},Yn),{},{is_secret_repository:Zt}));case 8:Un(),mn({type:"shixunsDetail/getShixunsDetail",payload:{id:Yn.id}});case 10:case"end":return zn.stop()}},Gt)}));return function(Zt){return tr.apply(this,arguments)}}(),Nr=function(Gt){console.log(Gt)},$r=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){var Jt,zn,$n,Ln,rr,cr,sr,qr,lr,da,Yr;return C.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(console.log(Zt),Jt=Zt.node.key,zn=Zt.dragNode.key,$n=Zt.node.pos.split("-"),Ln=Zt.dropPosition-Number($n[$n.length-1]),!(Zt.dragNode.type==="tree")){Sr.next=8;break}return d.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),Sr.abrupt("return");case 8:if(!(Zt.node.type!=="tree")){Sr.next=11;break}return d.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),Sr.abrupt("return");case 11:return Sr.next=13,mn({type:"shixunsDetail/moveGitFile",payload:{id:Yn.id,from:Zt.dragNode.path,to:Zt.node.path+"/"+Zt.dragNode.name,message:"".concat(Zt.dragNode.path," move to ").concat(Zt.node.path+"/"+Zt.dragNode.name," ")}});case 13:if(rr=Sr.sent,!(rr.status===0)){Sr.next=26;break}return en(""),Sr.next=18,Un("");case 18:cr=0;case 19:if(!(cr>>24)&16711935|(d<<24|d>>>8)&4278255360}var s=this._hash.words,c=i[n+0],w=i[n+1],E=i[n+2],v=i[n+3],R=i[n+4],M=i[n+5],C=i[n+6],S=i[n+7],_=i[n+8],A=i[n+9],U=i[n+10],L=i[n+11],N=i[n+12],V=i[n+13],H=i[n+14],D=i[n+15],W=s[0],F=s[1],I=s[2],K=s[3];W=f(W,F,I,K,c,7,m[0]),K=f(K,W,F,I,w,12,m[1]),I=f(I,K,W,F,E,17,m[2]),F=f(F,I,K,W,v,22,m[3]),W=f(W,F,I,K,R,7,m[4]),K=f(K,W,F,I,M,12,m[5]),I=f(I,K,W,F,C,17,m[6]),F=f(F,I,K,W,S,22,m[7]),W=f(W,F,I,K,_,7,m[8]),K=f(K,W,F,I,A,12,m[9]),I=f(I,K,W,F,U,17,m[10]),F=f(F,I,K,W,L,22,m[11]),W=f(W,F,I,K,N,7,m[12]),K=f(K,W,F,I,V,12,m[13]),I=f(I,K,W,F,H,17,m[14]),F=f(F,I,K,W,D,22,m[15]),W=a(W,F,I,K,w,5,m[16]),K=a(K,W,F,I,C,9,m[17]),I=a(I,K,W,F,L,14,m[18]),F=a(F,I,K,W,c,20,m[19]),W=a(W,F,I,K,M,5,m[20]),K=a(K,W,F,I,U,9,m[21]),I=a(I,K,W,F,D,14,m[22]),F=a(F,I,K,W,R,20,m[23]),W=a(W,F,I,K,A,5,m[24]),K=a(K,W,F,I,H,9,m[25]),I=a(I,K,W,F,v,14,m[26]),F=a(F,I,K,W,_,20,m[27]),W=a(W,F,I,K,V,5,m[28]),K=a(K,W,F,I,E,9,m[29]),I=a(I,K,W,F,S,14,m[30]),F=a(F,I,K,W,N,20,m[31]),W=u(W,F,I,K,M,4,m[32]),K=u(K,W,F,I,_,11,m[33]),I=u(I,K,W,F,L,16,m[34]),F=u(F,I,K,W,H,23,m[35]),W=u(W,F,I,K,w,4,m[36]),K=u(K,W,F,I,R,11,m[37]),I=u(I,K,W,F,S,16,m[38]),F=u(F,I,K,W,U,23,m[39]),W=u(W,F,I,K,V,4,m[40]),K=u(K,W,F,I,c,11,m[41]),I=u(I,K,W,F,v,16,m[42]),F=u(F,I,K,W,C,23,m[43]),W=u(W,F,I,K,A,4,m[44]),K=u(K,W,F,I,N,11,m[45]),I=u(I,K,W,F,D,16,m[46]),F=u(F,I,K,W,E,23,m[47]),W=r(W,F,I,K,c,6,m[48]),K=r(K,W,F,I,S,10,m[49]),I=r(I,K,W,F,H,15,m[50]),F=r(F,I,K,W,M,21,m[51]),W=r(W,F,I,K,N,6,m[52]),K=r(K,W,F,I,v,10,m[53]),I=r(I,K,W,F,U,15,m[54]),F=r(F,I,K,W,w,21,m[55]),W=r(W,F,I,K,_,6,m[56]),K=r(K,W,F,I,D,10,m[57]),I=r(I,K,W,F,C,15,m[58]),F=r(F,I,K,W,V,21,m[59]),W=r(W,F,I,K,R,6,m[60]),K=r(K,W,F,I,L,10,m[61]),I=r(I,K,W,F,E,15,m[62]),F=r(F,I,K,W,A,21,m[63]),s[0]=s[0]+W|0,s[1]=s[1]+F|0,s[2]=s[2]+I|0,s[3]=s[3]+K|0},_doFinalize:function(){var i=this._data,n=i.words,l=this._nDataBytes*8,h=i.sigBytes*8;n[h>>>5]|=128<<24-h%32;var d=g.floor(l/4294967296),s=l;n[(h+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,n[(h+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,i.sigBytes=(n.length+1)*4,this._process();for(var c=this._hash,w=c.words,E=0;E<4;E++){var v=w[E];w[E]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}return c},clone:function(){var i=x.clone.call(this);return i._hash=this._hash.clone(),i}});function f(i,n,l,h,d,s,c){var w=i+(n&l|~n&h)+d+c;return(w<>>32-s)+n}function a(i,n,l,h,d,s,c){var w=i+(n&h|l&~h)+d+c;return(w<>>32-s)+n}function u(i,n,l,h,d,s,c){var w=i+(n^l^h)+d+c;return(w<>>32-s)+n}function r(i,n,l,h,d,s,c){var w=i+(l^(n|~h))+d+c;return(w<>>32-s)+n}T.MD5=x._createHelper(e),T.HmacMD5=x._createHmacHelper(e)}(Math),P.MD5})},cz0n:function(k,z,o){k.exports={flex_box_center:"flex_box_center___G8W6i",flex_space_between:"flex_space_between___1p_ZB",flex_box_vertical_center:"flex_box_vertical_center___2wivF",flex_box_center_end:"flex_box_center_end___y5a20",flex_box_column:"flex_box_column___6oXp3",tabs:"tabs___sKski",active:"active___10xGM"}},dGDm:function(k,z,o){k.exports={selectEnvironment:"selectEnvironment___1zrTT",search:"search___2Sku-",searchListWrap:"searchListWrap___30F5Q",searchList:"searchList___dxlP6",name:"name___28Ilk",tag:"tag___GYHhS",searchListActive:"searchListActive___1H-dL",spin:"spin___2GYcy",common:"common___JE3ZS",title:"title___11-q3",tags:"tags___3vE7b",tagActive:"tagActive___1c0bT",wrap:"wrap___fFVWs",allList:"allList___2mVBv",item:"item___2NPtB",itemActive:"itemActive___2aQTm",line:"line___yjjYk",apply:"apply___3NyxD",p1:"p1___2xNuY",p2:"p2___uGM8U",list:"list___1jtVf",items:"items___3gafm",darklySelectEnvironment:"darklySelectEnvironment___2KS0W"}},dejd:function(k,z,o){},djh8:function(k,z,o){k.exports=o.p+"static/qrCode.d852fdfc.png"},dmUQ:function(k,z,o){"use strict";var P=o("Ff2n"),g=o("rePB"),T=o("1OyB"),b=o("vuIU"),y=o("Ji7U"),x=o("md7G"),O=o("foSv"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),u=o("4IlW");function r(_,A){var U=Object.keys(_);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(_);A&&(L=L.filter(function(N){return Object.getOwnPropertyDescriptor(_,N).enumerable})),U.push.apply(U,L)}return U}function i(_){for(var A=1;A1?he-1:0),Se=1;Se1?F-1:0),K=1;K=0)return parseInt(W.slice(W.indexOf("e-")+2),10);var F=0;return W.indexOf(".")>=0&&(F=W.length-W.indexOf(".")-1),F},N.getInputDisplayValue=function(D){var W=D||N.state,F=W.focused,I=W.inputValue,K=W.value,ee;F?ee=I:ee=N.toPrecisionAsStep(K),ee==null&&(ee="");var he=N.formatWrapper(ee);return v(N.props.decimalSeparator)&&(he=he.toString().replace(".",N.props.decimalSeparator)),he},N.recordCursorPosition=function(){try{N.cursorStart=N.input.selectionStart,N.cursorEnd=N.input.selectionEnd,N.currentValue=N.input.value,N.cursorBefore=N.input.value.substring(0,N.cursorStart),N.cursorAfter=N.input.value.substring(N.cursorEnd)}catch(D){}},N.restoreByAfter=function(D){if(D===void 0)return!1;var W=N.input.value,F=W.lastIndexOf(D);if(F===-1)return!1;var I=N.cursorBefore.length;return N.lastKeyCode===u.a.DELETE&&N.cursorBefore.charAt(I-1)===D[0]?(N.fixCaret(I,I),!0):F+D.length===W.length?(N.fixCaret(F,F),!0):!1},N.partRestoreByAfter=function(D){return D===void 0?!1:Array.prototype.some.call(D,function(W,F){var I=D.substring(F);return N.restoreByAfter(I)})},N.isNotCompleteNumber=function(D){return isNaN(D)||D===""||D===null||D&&D.toString().indexOf(".")===D.toString().length-1},N.stop=function(){N.autoStepTimer&&clearTimeout(N.autoStepTimer)},N.down=function(D,W,F){N.pressingUpOrDown=!0,N.step("down",D,W,F)},N.up=function(D,W,F){N.pressingUpOrDown=!0,N.step("up",D,W,F)},N.saveInput=function(D){N.input=D};var V=L.value;V===void 0&&(V=L.defaultValue),N.state={focused:L.autoFocus};var H=N.getValidValue(N.toNumber(V));return N.state=i(i({},N.state),{},{inputValue:N.toPrecisionAsStep(H),value:H}),N}return Object(b.a)(U,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(N){var V=this.props,H=V.value,D=V.onChange,W=V.max,F=V.min,I=this.state.focused;if(N){if(!R(N.value,H)||!R(N.max,W)||!R(N.min,F)){var K=I?H:this.getValidValue(H),ee;this.pressingUpOrDown?ee=K:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(K),this.setState({value:K,inputValue:ee})}var he="value"in this.props?H:this.state.value;"max"in this.props&&N.max!==W&&typeof he=="number"&&he>W&&D&&D(W),"min"in this.props&&N.min!==F&&typeof he=="number"&&he1&&arguments[1]!==void 0?arguments[1]:this.props.min,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,D=parseFloat(N);return isNaN(D)?N:(DH&&(D=H),D)}},{key:"setValue",value:function(N,V){var H=this.props.precision,D=this.isNotCompleteNumber(parseFloat(N))?null:parseFloat(N),W=this.state.value,F=W===void 0?null:W,I=this.state.inputValue,K=I===void 0?null:I,ee=typeof D=="number"?D.toFixed(H):"".concat(D),he=D!==F||ee!=="".concat(K);return"value"in this.props?(K=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:K},V)):this.setState({value:D,inputValue:this.toPrecisionAsStep(N)},V),he&&this.props.onChange(D),D}},{key:"getMaxPrecision",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.props,D=H.precision,W=H.step;if(v(D))return D;var F=this.getPrecision(V),I=this.getPrecision(W),K=this.getPrecision(N);return N?Math.max(K,F+I):F+I}},{key:"getPrecisionFactor",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.getMaxPrecision(N,V);return Math.pow(10,H)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(N){return this.props.formatter?this.props.formatter(N):N}},{key:"toPrecisionAsStep",value:function(N){if(this.isNotCompleteNumber(N)||N==="")return N;var V=Math.abs(this.getMaxPrecision(N));return isNaN(V)?N.toString():Number(N).toFixed(V)}},{key:"toNumber",value:function(N){var V=this.props.precision,H=this.state.focused,D=N&&N.length>16&&H;return this.isNotCompleteNumber(N)||D?N:v(V)?Math.round(N*Math.pow(10,V))/Math.pow(10,V):Number(N)}},{key:"upStep",value:function(N,V){var H=this.props.step,D=this.getPrecisionFactor(N,V),W=Math.abs(this.getMaxPrecision(N,V)),F=((D*N+D*H*V)/D).toFixed(W);return this.toNumber(F)}},{key:"downStep",value:function(N,V){var H=this.props.step,D=this.getPrecisionFactor(N,V),W=Math.abs(this.getMaxPrecision(N,V)),F=((D*N-D*H*V)/D).toFixed(W);return this.toNumber(F)}},{key:"step",value:function(N,V){var H=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3?arguments[3]:void 0;this.stop(),V&&(V.persist(),V.preventDefault());var F=this.props;if(F.disabled)return;var I=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(I))return;var K=this["".concat(N,"Step")](I,D),ee=K>F.max||KF.max?K=F.max:K=de),Pt=(vt||vt===0)&&(isNaN(vt)||Number(vt)<=Se),it=yt||D||W,He=Pt||D||W,Ge=a()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(g.a)({},"".concat(H,"-handler-up-disabled"),it)),Ce=a()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(g.a)({},"".concat(H,"-handler-down-disabled"),He)),Ie=F?{onTouchStart:it?h:this.up,onTouchEnd:this.stop}:{onMouseDown:it?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Fe=F?{onTouchStart:He?h:this.down,onTouchEnd:this.stop}:{onMouseDown:He?h:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Ye,style:Te,title:ce,onMouseEnter:be,onMouseLeave:Ee,onMouseOver:ue,onMouseOut:le,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(H,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},Ie,{role:"button","aria-label":"Increase Value","aria-disabled":it,className:Ge}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:d})),e.a.createElement("span",Object.assign({unselectable:"on"},Fe,{role:"button","aria-label":"Decrease Value","aria-disabled":He,className:Ce}),ee||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-down-inner"),onClick:d}))),e.a.createElement("div",{className:"".concat(H,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Se,"aria-valuemax":de,"aria-valuenow":vt,required:$,type:ae,placeholder:Oe,onPaste:Qe,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:re,autoComplete:I,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ft?this.onKeyDown:h,onKeyUp:ft?this.onKeyUp:h,autoFocus:_e,maxLength:ve,readOnly:W,disabled:D,max:de,min:Se,step:J,name:Ae,title:ce,id:se,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(jt),pattern:Q,inputMode:te,onInput:tt},Ue))))}}]),U}(e.a.Component);M.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:h,onKeyDown:h,onPressEnter:h,onFocus:h,onBlur:h,parser:s,required:!1,autoComplete:"off"};var C=M,S=z.a=C},e7zE:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.Base,y=T.WordArray,x=g.algo,O=x.SHA1,m=x.HMAC,e=x.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:O,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,a){for(var u=this.cfg,r=m.create(u.hasher,f),i=y.create(),n=y.create([1]),l=i.words,h=n.words,d=u.keySize,s=u.iterations;l.length0&&arguments[0]!==void 0?arguments[0]:[],Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Te=de.length,ce=Se.length;if(Math.abs(Te-ce)!==1)return{add:!1,key:null};function be(Ee,ue){var le=new Map;Ee.forEach(function(me){le.set(me,!0)});var $=ue.filter(function(me){return!le.has(me)});return $.length===1?$[0]:null}return Te ").concat(Se);return Se}var D=function(Se,Te){var ce=Se.prefixCls,be=Se.data,Ee=Se.selectable,ue=Se.checkable,le=Se.expandedKeys,$=Se.selectedKeys,me=Se.checkedKeys,re=Se.loadedKeys,ae=Se.loadingKeys,Oe=Se.halfCheckedKeys,se=Se.keyEntities,te=Se.disabled,Q=Se.dragging,J=Se.dragOverNodeKey,ve=Se.dropPosition,_e=Se.motion,Ae=Se.height,Qe=Se.itemHeight,tt=Se.virtual,dt=Se.focusable,mt=Se.activeItem,vt=Se.focused,Et=Se.tabIndex,Ye=Se.onKeyDown,Ue=Se.onFocus,ft=Se.onBlur,jt=Se.onActiveChange,yt=Se.onListChangeStart,Pt=Se.onListChangeEnd,it=Object(h.a)(Se,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),He=m.useRef(null);m.useImperativeHandle(Te,function(){return{scrollTo:function(on){He.current.scrollTo(on)}}});var Ge=m.useState(le),Ce=Object(l.a)(Ge,2),Ie=Ce[0],Fe=Ce[1],Be=m.useState(be),We=Object(l.a)(Be,2),st=We[0],Dt=We[1],Ht=m.useState(be),rn=Object(l.a)(Ht,2),Bt=rn[0],Ct=rn[1],Ke=m.useState([]),et=Object(l.a)(Ke,2),at=et[0],Pe=et[1],Xe=m.useState(null),ht=Object(l.a)(Xe,2),_t=ht[0],Ot=ht[1];function Nt(){Dt(be),Ct(be),Pe([]),Ot(null),Pt()}m.useEffect(function(){Fe(le);var It=R(Ie,le);if(It.key!==null)if(It.add){var on=st.findIndex(function(fr){var Yn=fr.data.key;return Yn===It.key}),mn=N(M(st,be,It.key),tt,Ae,Qe),Hn=st.slice();Hn.splice(on+1,0,L),Ct(Hn),Pe(mn),Ot("show")}else{var Xn=be.findIndex(function(fr){var Yn=fr.data.key;return Yn===It.key}),Fn=N(M(be,st,It.key),tt,Ae,Qe),xn=be.slice();xn.splice(Xn+1,0,L),Ct(xn),Pe(Fn),Ot("hide")}else st!==be&&(Dt(be),Ct(be))},[le,be]),m.useEffect(function(){Q||Nt()},[Q]);var ut=_e?Bt:be,Ft={expandedKeys:le,selectedKeys:$,loadedKeys:re,loadingKeys:ae,checkedKeys:me,halfCheckedKeys:Oe,dragOverNodeKey:J,dropPosition:ve,keyEntities:se};return m.createElement(m.Fragment,null,vt&&mt&&m.createElement("span",{style:C,"aria-live":"assertive"},H(mt)),m.createElement("div",{role:"tree"},m.createElement("input",{style:C,disabled:dt===!1||te,tabIndex:dt!==!1?Et:null,onKeyDown:Ye,onFocus:Ue,onBlur:ft,value:"",onChange:S})),m.createElement(d.a,Object.assign({},it,{data:ut,itemKey:V,height:Ae,fullHeight:!1,virtual:tt,itemHeight:Qe,prefixCls:"".concat(ce,"-list"),ref:He}),function(It){var on=It.pos,mn=It.data,Hn=mn.key,Xn=Object(h.a)(mn,["key"]),Fn=It.isStart,xn=It.isEnd,fr=Object(n.e)(Hn,on);delete Xn.children;var Yn=Object(n.f)(fr,Ft);return m.createElement(v,Object.assign({},Xn,Yn,{active:mt&&Hn===mt.data.key,pos:on,data:It.data,isStart:Fn,isEnd:xn,motion:_e,motionNodes:Hn===_?at:null,motionType:_t,onMotionStart:yt,onMotionEnd:Nt,treeNodeRequiredProps:Ft,onMouseMove:function(){jt(null)}}))}))},W=m.forwardRef(D);W.displayName="NodeList";var F=W,I=o("NvD2"),K=function(de){Object(x.a)(Te,de);var Se=Object(O.a)(Te);function Te(){var ce;return Object(b.a)(this,Te),ce=Se.apply(this,arguments),ce.destroyed=!1,ce.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},ce.listRef=m.createRef(),ce.onNodeDragStart=function(be,Ee){var ue=ce.state,le=ue.expandedKeys,$=ue.keyEntities,me=ce.props.onDragStart,re=Ee.props.eventKey;ce.dragNode=Ee;var ae=Object(i.b)(le,re);ce.setState({dragging:!0,dragNodesKeys:Object(i.g)(re,$)}),ce.setExpandedKeys(ae),me&&me({event:be,node:Object(n.b)(Ee.props)})},ce.onNodeDragEnter=function(be,Ee){var ue=ce.state,le=ue.expandedKeys,$=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ae=Ee.props,Oe=ae.pos,se=ae.eventKey;if(!ce.dragNode||me.indexOf(se)!==-1)return;var te=Object(i.c)(be,Ee);if(ce.dragNode.props.eventKey===se&&te===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:se,dropPosition:te}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(Q){clearTimeout(ce.delayedDragEnterLogic[Q])}),ce.delayedDragEnterLogic[Oe]=window.setTimeout(function(){if(!ce.state.dragging)return;var Q=Object(T.a)(le),J=$[se];J&&(J.children||[]).length&&(Q=Object(i.a)(le,se)),"expandedKeys"in ce.props||ce.setExpandedKeys(Q),re&&re({event:be,node:Object(n.b)(Ee.props),expandedKeys:Q})},400)},0)},ce.onNodeDragOver=function(be,Ee){var ue=ce.state.dragNodesKeys,le=ce.props.onDragOver,$=Ee.props.eventKey;if(ue.indexOf($)!==-1)return;if(ce.dragNode&&$===ce.state.dragOverNodeKey){var me=Object(i.c)(be,Ee);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}le&&le({event:be,node:Object(n.b)(Ee.props)})},ce.onNodeDragLeave=function(be,Ee){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:be,node:Object(n.b)(Ee.props)})},ce.onNodeDragEnd=function(be,Ee){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:be,node:Object(n.b)(Ee.props)}),ce.dragNode=null},ce.onNodeDrop=function(be,Ee){var ue=ce.state,le=ue.dragNodesKeys,$=le===void 0?[]:le,me=ue.dropPosition,re=ce.props.onDrop,ae=Ee.props,Oe=ae.eventKey,se=ae.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),$.indexOf(Oe)!==-1){Object(f.a)(!1,"Can not drop to dragNode(include it's children node)");return}var te=Object(i.k)(se),Q={event:be,node:Object(n.b)(Ee.props),dragNode:ce.dragNode?Object(n.b)(ce.dragNode.props):null,dragNodesKeys:$.slice(),dropPosition:me+Number(te[te.length-1]),dropToGap:!1};me!==0&&(Q.dropToGap=!0),re&&re(Q),ce.dragNode=null},ce.cleanDragState=function(){var be=ce.state.dragging;be&&ce.setState({dragging:!1})},ce.onNodeClick=function(be,Ee){var ue=ce.props.onClick;ue&&ue(be,Ee)},ce.onNodeDoubleClick=function(be,Ee){var ue=ce.props.onDoubleClick;ue&&ue(be,Ee)},ce.onNodeSelect=function(be,Ee){var ue=ce.state.selectedKeys,le=ce.state.keyEntities,$=ce.props,me=$.onSelect,re=$.multiple,ae=Ee.selected,Oe=Ee.key,se=!ae;se?re?ue=Object(i.a)(ue,Oe):ue=[Oe]:ue=Object(i.b)(ue,Oe);var te=ue.map(function(Q){var J=le[Q];return J?J.node:null}).filter(function(Q){return Q});ce.setUncontrolledState({selectedKeys:ue}),me&&me(ue,{event:"select",selected:se,node:Ee,selectedNodes:te,nativeEvent:be.nativeEvent})},ce.onNodeCheck=function(be,Ee,ue){var le=ce.state,$=le.keyEntities,me=le.checkedKeys,re=le.halfCheckedKeys,ae=ce.props,Oe=ae.checkStrictly,se=ae.onCheck,te=Ee.key,Q,J={event:"check",node:Ee,checked:ue,nativeEvent:be.nativeEvent};if(Oe){var ve=ue?Object(i.a)(me,te):Object(i.b)(me,te),_e=Object(i.b)(re,te);Q={checked:ve,halfChecked:_e},J.checkedNodes=ve.map(function(vt){return $[vt]}).filter(function(vt){return vt}).map(function(vt){return vt.node}),ce.setUncontrolledState({checkedKeys:ve})}else{var Ae=Object(I.a)([].concat(Object(T.a)(me),[te]),!0,$),Qe=Ae.checkedKeys,tt=Ae.halfCheckedKeys;if(!ue){var dt=new Set(Qe);dt.delete(te);var mt=Object(I.a)(Array.from(dt),{checked:!1,halfCheckedKeys:tt},$);Qe=mt.checkedKeys,tt=mt.halfCheckedKeys}Q=Qe,J.checkedNodes=[],J.checkedNodesPositions=[],J.halfCheckedKeys=tt,Qe.forEach(function(vt){var Et=$[vt];if(!Et)return;var Ye=Et.node,Ue=Et.pos;J.checkedNodes.push(Ye),J.checkedNodesPositions.push({node:Ye,pos:Ue})}),ce.setUncontrolledState({checkedKeys:Qe},!1,{halfCheckedKeys:tt})}se&&se(Q,J)},ce.onNodeLoad=function(be){return new Promise(function(Ee){ce.setState(function(ue){var le=ue.loadedKeys,$=le===void 0?[]:le,me=ue.loadingKeys,re=me===void 0?[]:me,ae=ce.props,Oe=ae.loadData,se=ae.onLoad,te=be.key;if(!Oe||$.indexOf(te)!==-1||re.indexOf(te)!==-1)return{};var Q=Oe(be);return Q.then(function(){var J=ce.state,ve=J.loadedKeys,_e=J.loadingKeys,Ae=Object(i.a)(ve,te),Qe=Object(i.b)(_e,te);se&&se(Ae,{event:"load",node:be}),ce.setUncontrolledState({loadedKeys:Ae}),ce.setState({loadingKeys:Qe}),Ee()}),{loadingKeys:Object(i.a)(re,te)}})})},ce.onNodeMouseEnter=function(be,Ee){var ue=ce.props.onMouseEnter;ue&&ue({event:be,node:Ee})},ce.onNodeMouseLeave=function(be,Ee){var ue=ce.props.onMouseLeave;ue&&ue({event:be,node:Ee})},ce.onNodeContextMenu=function(be,Ee){var ue=ce.props.onRightClick;ue&&(be.preventDefault(),ue({event:be,node:Ee}))},ce.onFocus=function(){var be=ce.props.onFocus;ce.setState({focused:!0}),be&&be.apply(void 0,arguments)},ce.onBlur=function(){var be=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null),be&&be.apply(void 0,arguments)},ce.getTreeNodeRequiredProps=function(){var be=ce.state,Ee=be.expandedKeys,ue=be.selectedKeys,le=be.loadedKeys,$=be.loadingKeys,me=be.checkedKeys,re=be.halfCheckedKeys,ae=be.dragOverNodeKey,Oe=be.dropPosition,se=be.keyEntities;return{expandedKeys:Ee||[],selectedKeys:ue||[],loadedKeys:le||[],loadingKeys:$||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ae,dropPosition:Oe,keyEntities:se}},ce.setExpandedKeys=function(be){var Ee=ce.state.treeData,ue=Object(n.d)(Ee,be);ce.setUncontrolledState({expandedKeys:be,flattenNodes:ue},!0)},ce.onNodeExpand=function(be,Ee){var ue=ce.state.expandedKeys,le=ce.state.listChanging,$=ce.props,me=$.onExpand,re=$.loadData,ae=Ee.key,Oe=Ee.expanded;if(le)return;var se=ue.indexOf(ae),te=!Oe;if(Object(f.a)(Oe&&se!==-1||!Oe&&se===-1,"Expand state not sync with index check"),te?ue=Object(i.a)(ue,ae):ue=Object(i.b)(ue,ae),ce.setExpandedKeys(ue),me&&me(ue,{node:Ee,expanded:te,nativeEvent:be.nativeEvent}),te&&re){var Q=ce.onNodeLoad(Ee);Q&&Q.then(function(){var J=Object(n.d)(ce.state.treeData,ue);ce.setUncontrolledState({flattenNodes:J})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(be){var Ee=ce.state.activeKey,ue=ce.props.onActiveChange;if(Ee===be)return;ce.setState({activeKey:be}),be!==null&&ce.scrollTo({key:be}),ue&&ue(be)},ce.getActiveItem=function(){var be=ce.state,Ee=be.activeKey,ue=be.flattenNodes;return Ee===null?null:ue.find(function(le){var $=le.data.key;return $===Ee})||null},ce.offsetActiveKey=function(be){var Ee=ce.state,ue=Ee.flattenNodes,le=Ee.activeKey,$=ue.findIndex(function(ae){var Oe=ae.data.key;return Oe===le});$===-1&&be<0&&($=ue.length),$=($+be+ue.length)%ue.length;var me=ue[$];if(me){var re=me.data.key;ce.onActiveChange(re)}else ce.onActiveChange(null)},ce.onKeyDown=function(be){var Ee=ce.state,ue=Ee.activeKey,le=Ee.expandedKeys,$=Ee.checkedKeys,me=ce.props,re=me.onKeyDown,ae=me.checkable,Oe=me.selectable;switch(be.which){case e.a.UP:{ce.offsetActiveKey(-1),be.preventDefault();break}case e.a.DOWN:{ce.offsetActiveKey(1),be.preventDefault();break}}var se=ce.getActiveItem();if(se&&se.data){var te=ce.getTreeNodeRequiredProps(),Q=se.data.isLeaf===!1||!!(se.data.children||[]).length,J=Object(n.b)(Object(g.a)(Object(g.a)({},Object(n.f)(ue,te)),{},{data:se.data,active:!0}));switch(be.which){case e.a.LEFT:{Q&&le.includes(ue)?ce.onNodeExpand({},J):se.parent&&ce.onActiveChange(se.parent.data.key),be.preventDefault();break}case e.a.RIGHT:{Q&&!le.includes(ue)?ce.onNodeExpand({},J):se.children&&se.children.length&&ce.onActiveChange(se.children[0].data.key),be.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{ae&&!J.disabled&&J.checkable!==!1&&!J.disableCheckbox?ce.onNodeCheck({},J,!$.includes(ue)):!ae&&Oe&&!J.disabled&&J.selectable!==!1&&ce.onNodeSelect({},J);break}}}re&&re(be)},ce.setUncontrolledState=function(be){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ce.destroyed)return;var le=!1,$=!0,me={};Object.keys(be).forEach(function(re){if(re in ce.props){$=!1;return}le=!0,me[re]=be[re]}),le&&(!Ee||$)&&ce.setState(Object(g.a)(Object(g.a)({},me),ue))},ce.scrollTo=function(be){ce.listRef.current.scrollTo(be)},ce}return Object(y.a)(Te,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var be,Ee=this.state,ue=Ee.focused,le=Ee.flattenNodes,$=Ee.keyEntities,me=Ee.dragging,re=Ee.activeKey,ae=this.props,Oe=ae.prefixCls,se=ae.className,te=ae.style,Q=ae.showLine,J=ae.focusable,ve=ae.tabIndex,_e=ve===void 0?0:ve,Ae=ae.selectable,Qe=ae.showIcon,tt=ae.icon,dt=ae.switcherIcon,mt=ae.draggable,vt=ae.checkable,Et=ae.checkStrictly,Ye=ae.disabled,Ue=ae.motion,ft=ae.loadData,jt=ae.filterTreeNode,yt=ae.height,Pt=ae.itemHeight,it=ae.virtual,He=ae.titleRender,Ge=ae.onContextMenu,Ce=Object(i.f)(this.props);return m.createElement(r.a.Provider,{value:{prefixCls:Oe,selectable:Ae,showIcon:Qe,icon:tt,switcherIcon:dt,draggable:mt,checkable:vt,checkStrictly:Et,disabled:Ye,keyEntities:$,loadData:ft,filterTreeNode:jt,titleRender:He,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},m.createElement("div",{className:u()(Oe,se,(be={},Object(P.a)(be,"".concat(Oe,"-show-line"),Q),Object(P.a)(be,"".concat(Oe,"-focused"),ue),Object(P.a)(be,"".concat(Oe,"-active-focused"),re!==null),be))},m.createElement(F,Object.assign({ref:this.listRef,prefixCls:Oe,style:te,data:le,disabled:Ye,selectable:Ae,checkable:!!vt,motion:Ue,dragging:me,height:yt,itemHeight:Pt,virtual:it,focusable:J,focused:ue,tabIndex:_e,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ge},this.getTreeNodeRequiredProps(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(be,Ee){var ue=Ee.prevProps,le={prevProps:be};function $(tt){return!ue&&tt in be||ue&&ue[tt]!==be[tt]}var me;if($("treeData")?me=be.treeData:$("children")&&(Object(f.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),me=Object(n.c)(be.children)),me){le.treeData=me;var re=Object(n.a)(me);le.keyEntities=Object(g.a)(Object(P.a)({},_,U),re.keyEntities)}var ae=le.keyEntities||Ee.keyEntities;if($("expandedKeys")||ue&&$("autoExpandParent"))le.expandedKeys=be.autoExpandParent||!ue&&be.defaultExpandParent?Object(i.e)(be.expandedKeys,ae):be.expandedKeys;else if(!ue&&be.defaultExpandAll){var Oe=Object(g.a)({},ae);delete Oe[_],le.expandedKeys=Object.keys(Oe).map(function(tt){return Oe[tt].key})}else!ue&&be.defaultExpandedKeys&&(le.expandedKeys=be.autoExpandParent||be.defaultExpandParent?Object(i.e)(be.defaultExpandedKeys,ae):be.defaultExpandedKeys);if(le.expandedKeys||delete le.expandedKeys,me||le.expandedKeys){var se=Object(n.d)(me||Ee.treeData,le.expandedKeys||Ee.expandedKeys);le.flattenNodes=se}if(be.selectable&&($("selectedKeys")?le.selectedKeys=Object(i.d)(be.selectedKeys,be):!ue&&be.defaultSelectedKeys&&(le.selectedKeys=Object(i.d)(be.defaultSelectedKeys,be))),be.checkable){var te;if($("checkedKeys")?te=Object(i.j)(be.checkedKeys)||{}:!ue&&be.defaultCheckedKeys?te=Object(i.j)(be.defaultCheckedKeys)||{}:me&&(te=Object(i.j)(be.checkedKeys)||{checkedKeys:Ee.checkedKeys,halfCheckedKeys:Ee.halfCheckedKeys}),te){var Q=te,J=Q.checkedKeys,ve=J===void 0?[]:J,_e=Q.halfCheckedKeys,Ae=_e===void 0?[]:_e;if(!be.checkStrictly){var Qe=Object(I.a)(ve,!0,ae);ve=Qe.checkedKeys,Ae=Qe.halfCheckedKeys}le.checkedKeys=ve,le.halfCheckedKeys=Ae}}return $("loadedKeys")&&(le.loadedKeys=be.loadedKeys),le}}]),Te}(m.Component);K.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},K.TreeNode=c.a;var ee=K,he=z.b=ee},fKo2:function(k,z,o){},fjLI:function(k,z,o){"use strict";o.d(z,"f",function(){return r}),o.d(z,"b",function(){return i}),o.d(z,"a",function(){return n}),o.d(z,"d",function(){return l}),o.d(z,"e",function(){return h}),o.d(z,"c",function(){return d});var P=o("8HAY"),g=o("Vhoy"),T=o("MI8n"),b=o("JYp7"),y=o("pmY6"),x=o("24hK"),O=o("nnTU"),m=o("T8No"),e=o("Cg/j"),f=o("t9D7"),a=function(s,c,w,E){var v=arguments.length,R=v<3?c:E===null?E=Object.getOwnPropertyDescriptor(c,w):E,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(s,c,w,E);else for(var C=s.length-1;C>=0;C--)(M=s[C])&&(R=(v<3?M(R):v>3?M(c,w,R):M(c,w))||R);return v>3&&R&&Object.defineProperty(c,w,R),R},u=function(s,c){return function(w,E){c(w,E,s)}};function r(s){return s.command!==void 0}class i{constructor(s){this.id=i._idPool++,this._debugName=s}}i._idPool=0,i.CommandPalette=new i("CommandPalette"),i.EditorContext=new i("EditorContext"),i.SimpleEditorContext=new i("SimpleEditorContext"),i.EditorContextCopy=new i("EditorContextCopy"),i.EditorContextPeek=new i("EditorContextPeek"),i.MenubarEditMenu=new i("MenubarEditMenu"),i.MenubarCopy=new i("MenubarCopy"),i.MenubarGoMenu=new i("MenubarGoMenu"),i.MenubarSelectionMenu=new i("MenubarSelectionMenu"),i.InlineCompletionsActions=new i("InlineCompletionsActions");const n=Object(e.c)("menuService"),l=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new T.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===i.CommandPalette}}addCommand(s){return this.addCommands(b.a.single(s))}addCommands(s){for(const c of s)this._commands.set(c.id,c);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let c=!1;for(const w of s)c=this._commands.delete(w.id)||c;c&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((c,w)=>s.set(w,c)),s}appendMenuItem(s,c){return this.appendMenuItems(b.a.single({id:s,item:c}))}appendMenuItems(s){const c=new Set,w=new x.a;for(const{id:E,item:v}of s){let R=this._menuItems.get(E);R||(R=new x.a,this._menuItems.set(E,R)),w.push(R.push(v)),c.add(E)}return this._onDidChangeMenu.fire(c),Object(y.i)(()=>{if(w.size>0){for(let E of w)E();this._onDidChangeMenu.fire(c),w.clear()}})}getMenuItems(s){let c;return this._menuItems.has(s)?c=[...this._menuItems.get(s)]:c=[],s===i.CommandPalette&&this._appendImplicitItems(c),c}_appendImplicitItems(s){const c=new Set;for(const w of s)r(w)&&(c.add(w.command.id),w.alt&&c.add(w.alt.id));this._commands.forEach((w,E)=>{c.has(E)||s.push({command:w})})}};class h extends P.e{constructor(s,c,w,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=c,this._contextKeyService=w,this._options=E}get actions(){const s=[],c=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=c.getActions(this._options);c.dispose();for(const[,E]of w)E.length>0&&(s.push(...E),s.push(new P.d));return s.length&&s.pop(),s}}let d=class s{constructor(c,w,E,v,R){var M,C;if(this._commandService=R,this.id=c.id,this.label=(E==null?void 0:E.renderShortTitle)&&c.shortTitle?typeof c.shortTitle=="string"?c.shortTitle:c.shortTitle.value:typeof c.title=="string"?c.title:c.title.value,this.tooltip=(C=typeof c.tooltip=="string"?c.tooltip:(M=c.tooltip)===null||M===void 0?void 0:M.value)!==null&&C!==void 0?C:"",this.enabled=!c.precondition||v.contextMatchesRules(c.precondition),this.checked=void 0,c.toggled){const S=c.toggled.condition?c.toggled:{condition:c.toggled};this.checked=v.contextMatchesRules(S.condition),this.checked&&S.tooltip&&(this.tooltip=typeof S.tooltip=="string"?S.tooltip:S.tooltip.value),S.title&&(this.label=typeof S.title=="string"?S.title:S.title.value)}this.item=c,this.alt=w?new s(w,void 0,E,v,R):void 0,this._options=E,f.d.isThemeIcon(c.icon)&&(this.class=g.a.asClassName(c.icon))}dispose(){}run(...c){var w,E;let v=[];return((w=this._options)===null||w===void 0?void 0:w.arg)&&(v=[...v,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(v=[...v,...c]),this._commandService.executeCommand(this.id,...v)}};d=a([u(3,m.b),u(4,O.b)],d)},fyJ8:function(k,z,o){"use strict";var P=o("rePB"),g=o("VTBJ"),T=o("Ff2n"),b=o("U8pU"),y=o("q1tI"),x=o.n(y),O=o("TSYQ"),m=o.n(O),e=o("c+Xe"),f=o("sR1s");function a(l){return l&&Object(b.a)(l)==="object"&&!Array.isArray(l)&&!y.isValidElement(l)}function u(l){return typeof l=="string"?!0:Object(e.c)(l)}function r(l,h){var d,s=l.prefixCls,c=l.className,w=l.record,E=l.index,v=l.dataIndex,R=l.render,M=l.children,C=l.component,S=C===void 0?"td":C,_=l.colSpan,A=l.rowSpan,U=l.fixLeft,L=l.fixRight,N=l.firstFixLeft,V=l.lastFixLeft,H=l.firstFixRight,D=l.lastFixRight,W=l.appendNode,F=l.additionalProps,I=F===void 0?{}:F,K=l.ellipsis,ee=l.align,he=l.rowType,de=l.isSticky,Se="".concat(s,"-cell"),Te,ce;if(M)ce=M;else{var be=Object(f.b)(w,v);if(ce=be,R){var Ee=R(be,w,E);a(Ee)?(ce=Ee.children,Te=Ee.props):ce=Ee}}Object(b.a)(ce)==="object"&&!Array.isArray(ce)&&!y.isValidElement(ce)&&(ce=null),K&&(V||H)&&(ce=y.createElement("span",{className:"".concat(Se,"-content")},ce));var ue=Te||{},le=ue.colSpan,$=ue.rowSpan,me=ue.style,re=ue.className,ae=Object(T.a)(ue,["colSpan","rowSpan","style","className"]),Oe=le!==void 0?le:_,se=$!==void 0?$:A;if(Oe===0||se===0)return null;var te={},Q=typeof U=="number",J=typeof L=="number";Q&&(te.position="sticky",te.left=U),J&&(te.position="sticky",te.right=L);var ve={};ee&&(ve.textAlign=ee);var _e,Ae=K===!0?{showTitle:!0}:K;Ae&&(Ae.showTitle||he==="header")&&(typeof ce=="string"||typeof ce=="number"?_e=ce.toString():y.isValidElement(ce)&&typeof ce.props.children=="string"&&(_e=ce.props.children));var Qe=Object(g.a)(Object(g.a)(Object(g.a)({title:_e},ae),I),{},{colSpan:Oe&&Oe!==1?Oe:null,rowSpan:se&&se!==1?se:null,className:m()(Se,c,(d={},Object(P.a)(d,"".concat(Se,"-fix-left"),Q),Object(P.a)(d,"".concat(Se,"-fix-left-first"),N),Object(P.a)(d,"".concat(Se,"-fix-left-last"),V),Object(P.a)(d,"".concat(Se,"-fix-right"),J),Object(P.a)(d,"".concat(Se,"-fix-right-first"),H),Object(P.a)(d,"".concat(Se,"-fix-right-last"),D),Object(P.a)(d,"".concat(Se,"-ellipsis"),K),Object(P.a)(d,"".concat(Se,"-with-append"),W),Object(P.a)(d,"".concat(Se,"-fix-sticky"),(Q||J)&&de),d),I.className,re),style:Object(g.a)(Object(g.a)(Object(g.a)(Object(g.a)({},I.style),ve),te),me),ref:u(S)?h:null});return y.createElement(S,Object.assign({},Qe),W,ce)}var i=y.forwardRef(r);i.displayName="Cell";var n=y.memo(i,function(l,h){return h.shouldCellUpdate?!h.shouldCellUpdate(h.record,l.record):!1});z.a=n},"gb/T":function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.mode.ECB=function(){var g=P.lib.BlockCipherMode.extend();return g.Encryptor=g.extend({processBlock:function(T,b){this._cipher.encryptBlock(T,b)}}),g.Decryptor=g.extend({processBlock:function(T,b){this._cipher.decryptBlock(T,b)}}),g}(),P.mode.ECB})},"h/E3":function(k,z,o){k.exports={information:"information___wfVJL",scroll:"scroll___2bOg0",formWrap:"formWrap___3qgTO",img:"img___2zP-8"}},h78n:function(k,z,o){"use strict";o.d(z,"a",function(){return N});var P=o("q1tI"),g=o.n(P),T=o("TSYQ"),b=o.n(T),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},x=function(D){var W=D.map(function(){return Object(P.useRef)()}),F=Object(P.useRef)();return Object(P.useEffect)(function(){var I=Date.now(),K=!1;Object.keys(W).forEach(function(ee){var he=W[ee].current;if(!he)return;K=!0;var de=he.style;de.transitionDuration=".3s, .3s, .3s, .06s",F.current&&I-F.current<100&&(de.transitionDuration="0s, 0s")}),K&&(F.current=Date.now())}),[W]};function O(){return O=Object.assign||function(H){for(var D=1;D0&&arguments[0]!==void 0?arguments[0]:[],K=I;if(Array.isArray(I)){for(var ee=0;ee0||Xn.target.offsetWidth>0)&&Pt.current.instance.layout()}}catch(Fn){mn.e(Fn)}finally{mn.f()}}),Lt.observe(bt.current)),Lt}function Dt(){b.b.warn(decodeURIComponent(C))}var Ht=function(){var on=Pt.current.instance;if(Se!=null&&on&&Be){var mn=on.getModel();mn&&Se!==mn.getValue()&&(N=!0,mn.setValue(Se),on.layout(),N=!1)}};Object(m.useEffect)(function(){He.current&&clearTimeout(He.current),He.current=setTimeout(function(){Ht()},500)},[Se,Be,Pt.current]),Object(m.useEffect)(function(){if(Ye&&Pt.current&&Pt.current.instance){var Lt=Pt.current.instance;Lt.changeViewZones(function(mn){var Hn=document.createElement("div");Hn.style.padding="10px 20px",Hn.style.width="calc(100% - 20px)",Hn.className="my-error-line-wrp",Hn.innerHTML=ft,mn.addZone({afterLineNumber:Ye||11,heightInLines:3,domNode:Hn})});var on={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Lt.addOverlayWidget(on),Lt.revealPositionInCenter({lineNumber:20,column:1})}},[Ye,Pt.current,Be]);function rn(){var Lt=Pt.current.instance;if(Lt){var on=Lt.getSelection(),mn=Pt.current.pastePos||{},Hn=new D.Range(mn.startLineNumber||on.endLineNumber,mn.startColumn||on.endColumn,mn.endLineNumber||on.endLineNumber,mn.endColumn||on.endColumn);setTimeout(function(){Lt.executeEdits("",[{range:Hn,text:""}])},300)}}function Bt(Lt){(window.navigator.platform.match("Mac")?Lt.metaKey:Lt.ctrlKey)&&Lt.keyCode==83&&(Lt.preventDefault(),se())}var Ct=function(){if(Q&&Pt.current.instance){var on=Pt.current.instance.getContentHeight();lt(on0||Qe.target.offsetWidth>0)&&Q.layout()}}catch(tt){_e.e(tt)}finally{_e.f()}}),J.observe(ue.current)),J}Object(m.useEffect)(function(){ue.current&&Promise.all([o.e(15),o.e(27)]).then(o.t.bind(null,"M/lh",7)).then(function(Q){D=Q;var J=D.editor.createDiffEditor(ue.current,Object(P.a)(Object(P.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Ee),{},{wordWrap:!0}));re(J);var ve=ae(J);return function(){J.dispose();var _e=J.getModel();_e&&_e.dispose(),ve.unobserve(ue.current)}})},[]),Object(m.useEffect)(function(){me&&me.setModel({original:D.editor.createModel(Se,ce),modified:D.editor.createModel(Te,ce)})},[Se,Te,ce,me]);var Oe=U(ee),se=U(de),te={width:Oe,height:se};return e.a.createElement("div",{className:"my-diff-editor",ref:ue,style:te})}},ZpRC:function(k,z,o){"use strict";function P(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function g(a,u){return(!u||a!=="hidden")&&a!=="visible"&&a!=="clip"}function T(a,u){if(a.clientHeightu||l>a&&h=u&&d>=r?l-a-i:h>u&&dr?h-u+n:0}var y=function(a,u){var r=window,i=u.scrollMode,n=u.block,l=u.inline,h=u.boundary,d=u.skipOverflowHiddenElements,s=typeof h=="function"?h:function(Q){return Q!==h};if(!P(a))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,w=[],E=a;P(E)&&s(E);){if((E=E.parentElement)===c){w.push(E);break}E!=null&&E===document.body&&T(E)&&!T(document.documentElement)||E!=null&&T(E,d)&&w.push(E)}for(var v=r.visualViewport?r.visualViewport.width:innerWidth,R=r.visualViewport?r.visualViewport.height:innerHeight,M=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,S=a.getBoundingClientRect(),_=S.height,A=S.width,U=S.top,L=S.right,N=S.bottom,V=S.left,H=n==="start"||n==="nearest"?U:n==="end"?N:U+_/2,D=l==="center"?V+A/2:l==="end"?L:V,W=[],F=0;F=0&&V>=0&&N<=R&&L<=v&&U>=de&&N<=Te&&V>=ce&&L<=Se)return W;var be=getComputedStyle(I),Ee=parseInt(be.borderLeftWidth,10),ue=parseInt(be.borderTopWidth,10),le=parseInt(be.borderRightWidth,10),$=parseInt(be.borderBottomWidth,10),me=0,re=0,ae="offsetWidth"in I?I.offsetWidth-I.clientWidth-Ee-le:0,Oe="offsetHeight"in I?I.offsetHeight-I.clientHeight-ue-$:0;if(c===I)me=n==="start"?H:n==="end"?H-R:n==="nearest"?b(C,C+R,R,ue,$,C+H,C+H+_,_):H-R/2,re=l==="start"?D:l==="center"?D-v/2:l==="end"?D-v:b(M,M+v,v,Ee,le,M+D,M+D+A,A),me=Math.max(0,me+C),re=Math.max(0,re+M);else{me=n==="start"?H-de-ue:n==="end"?H-Te+$+Oe:n==="nearest"?b(de,Te,ee,ue,$+Oe,H,H+_,_):H-(de+ee/2)+Oe/2,re=l==="start"?D-ce-Ee:l==="center"?D-(ce+he/2)+ae/2:l==="end"?D-Se+le+ae:b(ce,Se,he,Ee,le+ae,D,D+A,A);var se=I.scrollLeft,te=I.scrollTop;H+=te-(me=Math.max(0,Math.min(te+me,I.scrollHeight-ee+Oe))),D+=se-(re=Math.max(0,Math.min(se+re,I.scrollWidth-he+ae)))}W.push({el:I,top:me,left:re})}return W};function x(a){return a===Object(a)&&Object.keys(a).length!==0}function O(a,u){u===void 0&&(u="auto");var r="scrollBehavior"in document.body.style;a.forEach(function(i){var n=i.el,l=i.top,h=i.left;n.scroll&&r?n.scroll({top:l,left:h,behavior:u}):(n.scrollTop=l,n.scrollLeft=h)})}function m(a){return a===!1?{block:"end",inline:"nearest"}:x(a)?a:{block:"start",inline:"nearest"}}function e(a,u){var r=!a.ownerDocument.documentElement.contains(a);if(x(u)&&typeof u.behavior=="function")return u.behavior(r?[]:y(a,u));if(r)return;var i=m(u);return O(y(a,i),i.behavior)}var f=z.a=e},Zss7:function(k,z,o){var P;(function(g){var T=/^\s+/,b=/\s+$/,y=0,x=g.round,O=g.min,m=g.max,e=g.random;function f($,me){if($=$||"",me=me||{},$ instanceof f)return $;if(!(this instanceof f))return new f($,me);var re=a($);this._originalInput=$,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=x(100*this._a)/100,this._format=me.format||re.format,this._gradientType=me.gradientType,this._r<1&&(this._r=x(this._r)),this._g<1&&(this._g=x(this._g)),this._b<1&&(this._b=x(this._b)),this._ok=re.ok,this._tc_id=y++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var $=this.toRgb();return($.r*299+$.g*587+$.b*114)/1e3},getLuminance:function(){var $=this.toRgb(),me,re,ae,Oe,se,te;return me=$.r/255,re=$.g/255,ae=$.b/255,me<=.03928?Oe=me/12.92:Oe=g.pow((me+.055)/1.055,2.4),re<=.03928?se=re/12.92:se=g.pow((re+.055)/1.055,2.4),ae<=.03928?te=ae/12.92:te=g.pow((ae+.055)/1.055,2.4),.2126*Oe+.7152*se+.0722*te},setAlpha:function($){return this._a=W($),this._roundA=x(100*this._a)/100,this},toHsv:function(){var $=n(this._r,this._g,this._b);return{h:$.h*360,s:$.s,v:$.v,a:this._a}},toHsvString:function(){var $=n(this._r,this._g,this._b),me=x($.h*360),re=x($.s*100),ae=x($.v*100);return this._a==1?"hsv("+me+", "+re+"%, "+ae+"%)":"hsva("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHsl:function(){var $=r(this._r,this._g,this._b);return{h:$.h*360,s:$.s,l:$.l,a:this._a}},toHslString:function(){var $=r(this._r,this._g,this._b),me=x($.h*360),re=x($.s*100),ae=x($.l*100);return this._a==1?"hsl("+me+", "+re+"%, "+ae+"%)":"hsla("+me+", "+re+"%, "+ae+"%, "+this._roundA+")"},toHex:function($){return h(this._r,this._g,this._b,$)},toHexString:function($){return"#"+this.toHex($)},toHex8:function($){return d(this._r,this._g,this._b,this._a,$)},toHex8String:function($){return"#"+this.toHex8($)},toRgb:function(){return{r:x(this._r),g:x(this._g),b:x(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+x(this._r)+", "+x(this._g)+", "+x(this._b)+")":"rgba("+x(this._r)+", "+x(this._g)+", "+x(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:x(F(this._r,255)*100)+"%",g:x(F(this._g,255)*100)+"%",b:x(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+x(F(this._r,255)*100)+"%, "+x(F(this._g,255)*100)+"%, "+x(F(this._b,255)*100)+"%)":"rgba("+x(F(this._r,255)*100)+"%, "+x(F(this._g,255)*100)+"%, "+x(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[h(this._r,this._g,this._b,!0)]||!1},toFilter:function($){var me="#"+s(this._r,this._g,this._b,this._a),re=me,ae=this._gradientType?"GradientType = 1, ":"";if($){var Oe=f($);re="#"+s(Oe._r,Oe._g,Oe._b,Oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+ae+"startColorstr="+me+",endColorstr="+re+")"},toString:function($){var me=!!$;$=$||this._format;var re=!1,ae=this._a<1&&this._a>=0,Oe=!me&&ae&&($==="hex"||$==="hex6"||$==="hex3"||$==="hex4"||$==="hex8"||$==="name");return Oe?$==="name"&&this._a===0?this.toName():this.toRgbString():($==="rgb"&&(re=this.toRgbString()),$==="prgb"&&(re=this.toPercentageRgbString()),($==="hex"||$==="hex6")&&(re=this.toHexString()),$==="hex3"&&(re=this.toHexString(!0)),$==="hex4"&&(re=this.toHex8String(!0)),$==="hex8"&&(re=this.toHex8String()),$==="name"&&(re=this.toName()),$==="hsl"&&(re=this.toHslString()),$==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function($,me){var re=$.apply(null,[this].concat([].slice.call(me)));return this._r=re._r,this._g=re._g,this._b=re._b,this.setAlpha(re._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(R,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(E,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function($,me){return $.apply(null,[this].concat([].slice.call(me)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(U,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function($,me){if(typeof $=="object"){var re={};for(var ae in $)$.hasOwnProperty(ae)&&(ae==="a"?re[ae]=$[ae]:re[ae]=Se($[ae]));$=re}return f($,me)};function a($){var me={r:0,g:0,b:0},re=1,ae=null,Oe=null,se=null,te=!1,Q=!1;return typeof $=="string"&&($=ue($)),typeof $=="object"&&(Ee($.r)&&Ee($.g)&&Ee($.b)?(me=u($.r,$.g,$.b),te=!0,Q=String($.r).substr(-1)==="%"?"prgb":"rgb"):Ee($.h)&&Ee($.s)&&Ee($.v)?(ae=Se($.s),Oe=Se($.v),me=l($.h,ae,Oe),te=!0,Q="hsv"):Ee($.h)&&Ee($.s)&&Ee($.l)&&(ae=Se($.s),se=Se($.l),me=i($.h,ae,se),te=!0,Q="hsl"),$.hasOwnProperty("a")&&(re=$.a)),re=W(re),{ok:te,format:$.format||Q,r:O(255,m(me.r,0)),g:O(255,m(me.g,0)),b:O(255,m(me.b,0)),a:re}}function u($,me,re){return{r:F($,255)*255,g:F(me,255)*255,b:F(re,255)*255}}function r($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=O($,me,re),se,te,Q=(ae+Oe)/2;if(ae==Oe)se=te=0;else{var J=ae-Oe;te=Q>.5?J/(2-ae-Oe):J/(ae+Oe);switch(ae){case $:se=(me-re)/J+(me1&&(Ae-=1),Ae<1/6?ve+(_e-ve)*6*Ae:Ae<1/2?_e:Ae<2/3?ve+(_e-ve)*(2/3-Ae)*6:ve}if(me===0)ae=Oe=se=re;else{var Q=re<.5?re*(1+me):re+me-re*me,J=2*re-Q;ae=te(J,Q,$+1/3),Oe=te(J,Q,$),se=te(J,Q,$-1/3)}return{r:ae*255,g:Oe*255,b:se*255}}function n($,me,re){$=F($,255),me=F(me,255),re=F(re,255);var ae=m($,me,re),Oe=O($,me,re),se,te,Q=ae,J=ae-Oe;if(te=ae===0?0:J/ae,ae==Oe)se=0;else{switch(ae){case $:se=(me-re)/J+(me>1)+720)%360;--me;)ae.h=(ae.h+Oe)%360,se.push(f(ae));return se}function N($,me){me=me||6;for(var re=f($).toHsv(),ae=re.h,Oe=re.s,se=re.v,te=[],Q=1/me;me--;)te.push(f({h:ae,s:Oe,v:se})),se=(se+Q)%1;return te}f.mix=function($,me,re){re=re===0?0:re||50;var ae=f($).toRgb(),Oe=f(me).toRgb(),se=re/100,te={r:(Oe.r-ae.r)*se+ae.r,g:(Oe.g-ae.g)*se+ae.g,b:(Oe.b-ae.b)*se+ae.b,a:(Oe.a-ae.a)*se+ae.a};return f(te)},f.readability=function($,me){var re=f($),ae=f(me);return(g.max(re.getLuminance(),ae.getLuminance())+.05)/(g.min(re.getLuminance(),ae.getLuminance())+.05)},f.isReadable=function($,me,re){var ae=f.readability($,me),Oe,se;se=!1,Oe=le(re);switch(Oe.level+Oe.size){case"AAsmall":case"AAAlarge":se=ae>=4.5;break;case"AAlarge":se=ae>=3;break;case"AAAsmall":se=ae>=7;break}return se},f.mostReadable=function($,me,re){var ae=null,Oe=0,se,te,Q,J;re=re||{},te=re.includeFallbackColors,Q=re.level,J=re.size;for(var ve=0;veOe&&(Oe=se,ae=f(me[ve]));return f.isReadable($,ae,{level:Q,size:J})||!te?ae:(re.includeFallbackColors=!1,f.mostReadable($,["#fff","#000"],re))};var V=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=f.hexNames=D(V);function D($){var me={};for(var re in $)$.hasOwnProperty(re)&&(me[$[re]]=re);return me}function W($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function F($,me){ee($)&&($="100%");var re=he($);return $=O(me,m(0,parseFloat($))),re&&($=parseInt($*me,10)/100),g.abs($-me)<1e-6?1:$%me/parseFloat(me)}function I($){return O(1,m(0,$))}function K($){return parseInt($,16)}function ee($){return typeof $=="string"&&$.indexOf(".")!=-1&&parseFloat($)===1}function he($){return typeof $=="string"&&$.indexOf("%")!=-1}function de($){return $.length==1?"0"+$:""+$}function Se($){return $<=1&&($=$*100+"%"),$}function Te($){return g.round(parseFloat($)*255).toString(16)}function ce($){return K($)/255}var be=function(){var $="[-\\+]?\\d+%?",me="[-\\+]?\\d*\\.\\d+%?",re="(?:"+me+")|(?:"+$+")",ae="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Oe="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+ae),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+ae),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+ae),hsva:new RegExp("hsva"+Oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ee($){return!!be.CSS_UNIT.exec($)}function ue($){$=$.replace(T,"").replace(b,"").toLowerCase();var me=!1;if(V[$])$=V[$],me=!0;else if($=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=be.rgb.exec($))?{r:re[1],g:re[2],b:re[3]}:(re=be.rgba.exec($))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=be.hsl.exec($))?{h:re[1],s:re[2],l:re[3]}:(re=be.hsla.exec($))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=be.hsv.exec($))?{h:re[1],s:re[2],v:re[3]}:(re=be.hsva.exec($))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=be.hex8.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),a:ce(re[4]),format:me?"name":"hex8"}:(re=be.hex6.exec($))?{r:K(re[1]),g:K(re[2]),b:K(re[3]),format:me?"name":"hex"}:(re=be.hex4.exec($))?{r:K(re[1]+""+re[1]),g:K(re[2]+""+re[2]),b:K(re[3]+""+re[3]),a:ce(re[4]+""+re[4]),format:me?"name":"hex8"}:(re=be.hex3.exec($))?{r:K(re[1]+""+re[1]),g:K(re[2]+""+re[2]),b:K(re[3]+""+re[3]),format:me?"name":"hex"}:!1}function le($){var me,re;return $=$||{level:"AA",size:"small"},me=($.level||"AA").toUpperCase(),re=($.size||"small").toLowerCase(),me!=="AA"&&me!=="AAA"&&(me="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:me,size:re}}k.exports?k.exports=f:!(P=function(){return f}.call(z,o,z,k),P!==void 0&&(k.exports=P))})(Math)},aBPH:function(k,z,o){k.exports={wrap:"wrap___1eujs",modal:"modal___3NBln",title:"title___26WI_",path:"path___HzdTG",colorBlue:"colorBlue___3sufs",width240:"width240___DJhZ8",filePath:"filePath___13aFg"}},auZk:function(k,z,o){k.exports={flex_box_center:"flex_box_center___3qTxW",flex_space_between:"flex_space_between___3ea87",flex_box_vertical_center:"flex_box_vertical_center___3pRKY",flex_box_center_end:"flex_box_center_end___1knqW",flex_box_column:"flex_box_column___2jnF_",header:"header___1jftB","flex-center":"flex-center___2n5vX",title:"title___JYziX",schedule:"schedule___3dZqv",clickWarp:"clickWarp___Nw-Yv",num:"num___2kh_y",subject:"subject___3cFDa",btns:"btns___jk1p6",btn:"btn___2VKv5",simulate:"simulate___3PtJU",exit:"exit___3vlKF"}},bKvZ:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2dXfh",flex_space_between:"flex_space_between___2BhUa",flex_box_vertical_center:"flex_box_vertical_center___15ksZ",flex_box_center_end:"flex_box_center_end___3JbfY",flex_box_column:"flex_box_column___1raS-",level:"level___W4wcy",left:"left___1XwUw",container:"container___16wfS",title:"title___2mqN2",listWrap:"listWrap___U0Df3",list:"list___2YNXa",s3:"s3___25biP",s2:"s2___3z1Hl",listActive:"listActive___1B21p",os:"os___2rPuf",btns:"btns___3SwkA",btnsWrap:"btnsWrap___30oSS",icon:"icon___IUU5o",btn:"btn___GdOfs",d1:"d1___uGVV7",d2:"d2___12wBt",shrink:"shrink___tBEU_",elseShrink:"elseShrink___1vnuF",right:"right___27lwg",addIcon:"addIcon___3jWNX"}},bQjk:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return function(g){var T=P,b=T.lib,y=b.CipherParams,x=T.enc,O=x.Hex,m=T.format,e=m.Hex={stringify:function(f){return f.ciphertext.toString(O)},parse:function(f){var a=O.parse(f);return y.create({ciphertext:a})}}}(),P.format.Hex})},bT9E:function(k,z,o){"use strict";o.d(z,"a",function(){return g});var P=o("VTBJ");function g(T,b){var y=Object(P.a)({},T);return Array.isArray(b)&&b.forEach(function(x){delete y[x]}),y}},bUJZ:function(k,z){k.exports="data:image/png;base64,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"},biw7:function(k,z,o){"use strict";var P=o("q1tI"),g=o.n(P),T=P.createContext(null);z.a=T},c5Ni:function(k,z,o){},cFMs:function(k,z){k.exports="data:image/png;base64,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"},cRFk:function(k,z,o){k.exports=o.p+"static/RepositoryNoneData.828085a8.png"},ch0t:function(k,z,o){"use strict";o.r(z);var P=o("+L6B"),g=o("2/Rp"),T=o("T2oS"),b=o("W9HT"),y=o("14J3"),x=o("BMrR"),O=o("2qtc"),m=o("kLXV"),e=o("jCWc"),f=o("kPKH"),a=o("qVdP"),u=o("jsC+"),r=o("k1fw"),i=o("lUTK"),n=o("BvKs"),l=o("9og8"),h=o("miYZ"),d=o("tsqr"),s=o("5Dmo"),c=o("3S7+"),w=o("tJVT"),E=o("PpiC"),v=o("Znn+"),R=o("ZTPi"),M=o("WmNS"),C=o.n(M),S=o("q1tI"),_=o.n(S),A=o("B6bo"),U=o.n(A),L=o("Ty5D"),N=o("9kvl"),V=o("BoS7"),H=o("Sdc0"),D=o("oBTY"),W=o("ozfa"),F=o("MJZm"),I=o("P5Jw"),K=o("5NDa"),ee=o("5rEg"),he=o("y8nQ"),de=o("Vl3Y"),Se=o("aBPH"),Te=o.n(Se),ce=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,Et=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),lt=Object(L.i)(),Ft=Object(S.useState)({}),Lt=Object(w.a)(Ft,2),on=Lt[0],mn=Lt[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)(""),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1];Object(S.useEffect)(function(){Ot.visible&&xn.resetFields()},[Ot.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var qt=sn.split(",").join("/"),On=qt.indexOf("/")===0?qt.substr(1):qt;nr(On)}},[]),Object(S.useEffect)(function(){var sn,qt;Hn.current=(sn=Mt.pathname)===null||sn===void 0||((qt=sn.split("/"))===null||qt===void 0)?void 0:qt[2]},[]);var Rr=function(){var sn=Object(l.a)(C.a.mark(function qt(){var On,Fr,Or=arguments;return C.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},dr.next=3,ht({type:"shixunsDetail/addRepositoryFile",payload:{id:lt.id,message:On.commitMessage,content:"",path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),secret_repository:Et?void 0:!0}});case 3:Fr=dr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path+"/"+(On.file||".gitkeep"),name:On.path.split("/")[On.path.split("/").length-1]}),Ot.onClose());case 5:case"end":return dr.stop()}},qt)}));return function(){return sn.apply(this,arguments)}}(),pr=function(){var qt,On;N.d.push("/shixuns/".concat(Hn.current,"/").concat((qt=Mt.pathname)===null||qt===void 0||((On=qt.split("/"))===null||On===void 0)?void 0:On[3]).concat(ar?"/master/shixun_show/".concat(ar):""))};return _.a.createElement(m.a,{width:"60%",centered:!0,visible:Ot.visible,wrapClassName:Te.a.modal,onOk:function(){xn.submit()},onCancel:Ot.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:Rr,onChange:function(){var qt,On,Fr,Or,xr=Object(r.a)({},xn.getFieldsValue()),dr=xr==null||((qt=xr.path)===null||qt===void 0)?void 0:qt.split(""),pe=xr==null||((On=xr.file)===null||On===void 0)?void 0:On.split("");dr!=null&&(Fr=dr.filter(function(X){return X=="/"}))!==null&&Fr!==void 0&&Fr.length&&(xr.path=xr.path.substring(0,xr.path.length-1)),pe!=null&&(Or=pe.filter(function(X){return X=="/"}))!==null&&Or!==void 0&&Or.length&&(xr.file=xr.file.substring(0,xr.path.length-1)),xn.setFieldsValue(Object(r.a)({},xr)),mn(xr)}},_.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},_.a.createElement(x.a,null,_.a.createElement(f.a,null,_.a.createElement("span",{className:Te.a.filePath},Ot.defaultPath+"/")),_.a.createElement(f.a,{flex:"1"},_.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),_.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\uFF0C\u5982\u679C\u4E0D\u586B\u5199\u7CFB\u7EDF\u5C06\u5728\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA.gitkeep\u7684\u9ED8\u8BA4\u6587\u4EF6",size:"large"})),_.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"}))))))},be=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})(ce),Ee=o("7ahc"),ue=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,Et=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),lt=Object(L.i)(),Ft=Object(S.useState)({}),Lt=Object(w.a)(Ft,2),on=Lt[0],mn=Lt[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)(""),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1];Object(S.useEffect)(function(){Ot.visible&&xn.resetFields()},[Ot.visible]),Object(S.useEffect)(function(){var sn=sessionStorage.getItem("pathArray");if(sn){var qt=sn.split(",").join("/"),On=qt.indexOf("/")===0?qt.substr(1):qt;nr(On)}},[]),Object(S.useEffect)(function(){var sn,qt;Hn.current=(sn=Mt.pathname)===null||sn===void 0||((qt=sn.split("/"))===null||qt===void 0)?void 0:qt[2]},[]);var Rr=function(){var sn=Object(l.a)(C.a.mark(function qt(){var On,Fr,Or=arguments;return C.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return On=Or.length>0&&Or[0]!==void 0?Or[0]:{},dr.next=3,ht({type:"shixunsDetail/addRepositoryFile",payload:{id:lt.id,message:On.commitMessage,content:On.codeMirror,path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path,secret_repository:Et?void 0:!0}});case 3:Fr=dr.sent,Fr!=null&&Fr.url&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:(Ot.defaultPath?Ot.defaultPath+"/":"")+On.path,name:On.path.split("/")[On.path.split("/").length-1]}),Ot.onClose());case 5:case"end":return dr.stop()}},qt)}));return function(){return sn.apply(this,arguments)}}(),pr=function(){var qt,On;N.d.push("/shixuns/".concat(Hn.current,"/").concat((qt=Mt.pathname)===null||qt===void 0||((On=qt.split("/"))===null||On===void 0)?void 0:On[3]).concat(ar?"/master/shixun_show/".concat(ar):""))};return _.a.createElement(m.a,{width:"60%",visible:Ot.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){xn.submit()},onCancel:Ot.onClose,title:"\u65B0\u5EFA\u6587\u4EF6"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:Rr,onChange:function(){var qt,On,Fr=Object(r.a)({},xn.getFieldsValue()),Or=Fr==null||((qt=Fr.path)===null||qt===void 0)?void 0:qt.split("");(Or==null||((On=Or.filter(function(xr){return xr=="/"}))===null||On===void 0)?void 0:On.length)>1&&(Fr.path=Fr.path.substring(0,Fr.path.length-1)),xn.setFieldsValue(Object(r.a)({},Fr)),mn(Fr)}},_.a.createElement(de.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},_.a.createElement(x.a,null,_.a.createElement(f.a,null,_.a.createElement("span",{className:Te.a.filePath},Ot.defaultPath+"/")),_.a.createElement(f.a,{flex:"1"},_.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),_.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"})),_.a.createElement("div",{className:"mt10 mb20"},_.a.createElement(de.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},_.a.createElement(Ee.a,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})))))))},le=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})(ue),$=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,Et=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),lt=Object(L.i)(),Ft=Object(S.useState)({}),Lt=Object(w.a)(Ft,2),on=Lt[0],mn=Lt[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)(""),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1],Rr=Object(S.useState)(""),pr=Object(w.a)(Rr,2),sn=pr[0],qt=pr[1];Object(S.useEffect)(function(){Ot.visible&&xn.resetFields()},[Ot.visible]),Object(S.useEffect)(function(){var Or=Ot.defaultPath.split("/");Or.length===1?(nr(""),qt(Ot.defaultPath)):(qt(Or.pop()),nr(Or.join("/")+"/"))},[Ot.defaultPath]),Object(S.useEffect)(function(){var Or,xr;Hn.current=(Or=Mt.pathname)===null||Or===void 0||((xr=Or.split("/"))===null||xr===void 0)?void 0:xr[2]},[]);var On=function(){var Or=Object(l.a)(C.a.mark(function xr(){var dr,pe,X=arguments;return C.a.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return dr=X.length>0&&X[0]!==void 0?X[0]:{},oe.next=3,ht({type:"shixunsDetail/moveGitFile",payload:{id:lt.id,from:Ot.defaultPath,to:ar+dr.path,message:dr.commitMessage||"".concat(Ot.defaultPath," rename to ").concat(ar).concat(dr.path," "),secret_repository:Et}});case 3:pe=oe.sent,(pe==null?void 0:pe.status)===0&&(d.b.success("\u6DFB\u52A0\u6210\u529F"),Ot.onOK({path:dr.path,name:dr.path}),Ot.onClose());case 5:case"end":return oe.stop()}},xr)}));return function(){return Or.apply(this,arguments)}}(),Fr=function(){var xr,dr;N.d.push("/shixuns/".concat(Hn.current,"/").concat((xr=Mt.pathname)===null||xr===void 0||((dr=xr.split("/"))===null||dr===void 0)?void 0:dr[3]).concat(ar?"/master/shixun_show/".concat(ar):""))};return _.a.createElement(m.a,{width:"40%",visible:Ot.visible,wrapClassName:Te.a.modal,centered:!0,onOk:function(){xn.submit()},onCancel:Ot.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},_.a.createElement("section",{className:Te.a.bg},_.a.createElement("div",{className:Te.a.wrap},_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:On,onChange:function(){var xr,dr,pe=Object(r.a)({},xn.getFieldsValue()),X=pe==null||((xr=pe.path)===null||xr===void 0)?void 0:xr.split("");(X==null||((dr=X.filter(function(q){return q=="/"}))===null||dr===void 0)?void 0:dr.length)>1&&(pe.path=pe.path.substring(0,pe.path.length-1)),xn.setFieldsValue(Object(r.a)({},pe)),mn(pe)}},_.a.createElement(de.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},_.a.createElement(x.a,null,_.a.createElement(f.a,{flex:"1"},_.a.createElement(de.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:sn}))))),_.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},_.a.createElement(ee.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(Ot.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},me=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})($),re=o("DZo9"),ae=o("8z0m"),Oe=o("m3rI"),se=o("8j3D"),te=o("RC3E"),Q=o.n(te),J=ae.a.Dragger,ve=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.user,ht=Ke.dispatch,Et=Ke.isRepository,Ot=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Mt=Object(L.h)(),lt=Object(L.i)(),Ft=Object(S.useState)({}),Lt=Object(w.a)(Ft,2),on=Lt[0],mn=Lt[1],Hn=Object(S.useRef)(),Xn=de.a.useForm(),Fn=Object(w.a)(Xn,1),xn=Fn[0],fr=Object(S.useState)([]),Yn=Object(w.a)(fr,2),ar=Yn[0],nr=Yn[1],Rr=Object(S.useState)(),pr=Object(w.a)(Rr,2),sn=pr[0],qt=pr[1],On;Object(S.useEffect)(function(){Ot.visible&&(xn.resetFields(),nr([]))},[Ot.visible]),Object(S.useEffect)(function(){Hn.current=lt.id},[]),Object(S.useEffect)(function(){var X=sessionStorage.getItem("pathArray");if(X){var q=X.split(",").join("/"),oe=q.indexOf("/")===0?q.substr(1):q;qt(oe)}},[]);var Fr=function(q){if(On=q.file.name,q.file.status==="done"||q.file.status==="uploading"){var oe,De,fe;if(nr(q.fileList),!q.file.response)return;if(((oe=q.file.response)===null||oe===void 0?void 0:oe.status)===0){d.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}nr(ar.filter(function(ot){return ot.uid!==q.file.uid})),((De=q.file.response)===null||De===void 0?void 0:De.message)&&d.b.info((fe=q.file.response)===null||fe===void 0?void 0:fe.message)}},Or=function(){var X=Object(l.a)(C.a.mark(function q(oe){var De;return C.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(oe.response){ot.next=3;break}return d.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),ot.abrupt("return");case 3:return ot.next=5,ht({type:"shixunsDetail/deleteGitFile",payload:{id:lt.id,path:sn?"".concat(sn,"/").concat(oe.name):oe.name,message:xn.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(sn?"".concat(sn,"/").concat(oe.name):oe.name),secret_repository:Et?null:!0}});case 5:De=ot.sent,De.status===0&&(nr(ar.filter(function(Qt){return Qt.uid!==oe.uid})),d.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return ot.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),xr={height:300,multiple:!0,withCredentials:!0,data:function(){var X=Object(l.a)(C.a.mark(function oe(){return C.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.abrupt("return",new Promise(function(){var ot=Object(l.a)(C.a.mark(function Qt(Mn,Vn){return C.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:setTimeout(Object(l.a)(C.a.mark(function pn(){var Ar,ra;return C.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.next=2,xn.getFieldsValue();case 2:Ar=ir.sent,ra=Object(r.a)(Object(r.a)({},{path:Ot.defaultPath?Ot.defaultPath:"",message:on.commitMessage||"\u4E0A\u4F20\u4E86".concat(On)}),Et?{}:{secret_repository:!0}),Mn(ra);case 5:case"end":return ir.stop()}},pn)})),200);case 1:case"end":return gn.stop()}},Qt)}));return function(Qt,Mn){return ot.apply(this,arguments)}}()));case 1:case"end":return fe.stop()}},oe)}));function q(){return X.apply(this,arguments)}return q}(),fileList:ar,method:"post",action:"".concat(Oe.a.API_SERVER,"/api/shixuns/").concat(Hn.current,"/upload_git_file.json"),onChange:Fr,onRemove:Or,beforeUpload:function(q){On=q.name}},dr=function(){var X=Object(l.a)(C.a.mark(function q(oe){return C.a.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,xn.validateFields();case 2:Ot.onClose(),Ot.onOK({path:Ot.defaultPath}),pe();case 5:case"end":return fe.stop()}},q)}));return function(oe){return X.apply(this,arguments)}}(),pe=function(){var q,oe;N.d.push("/shixuns/".concat(Hn.current,"/").concat((q=Mt.pathname)===null||q===void 0||((oe=q.split("/"))===null||oe===void 0)?void 0:oe[3]).concat(sn?"/master/shixun_show/".concat(sn):""))};return _.a.createElement(m.a,{visible:Ot.visible,onOk:dr,centered:!0,onCancel:Ot.onClose,width:"70%"},_.a.createElement("section",{className:Q.a.bg},_.a.createElement("div",{className:Q.a.wrap},_.a.createElement("div",{className:Q.a.title},"\u4E0A\u4F20\u6587\u4EF6"),_.a.createElement(de.a,{className:"mt10",form:xn,scrollToFirstError:!0,layout:"vertical",onFinish:dr,onValuesChange:function(){return mn(Object(r.a)({},xn.getFieldsValue()))}},_.a.createElement(de.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),_.a.createElement(de.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},_.a.createElement(J,xr,_.a.createElement("div",null,_.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(Q.a.colorBlue)})),_.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",_.a.createElement("span",{className:"".concat(Q.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),_.a.createElement(se.a,{onFinish:function(q){return qt(q)}})))},_e=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting,Pe=Ct.user;return{shixunsDetail:Ke,globalSetting:at,user:Pe,loading:et.models.index}})(ve),Ae=o("Bbdw"),Qe=o.n(Ae),tt=o("HpfO"),dt=o.n(tt),mt=function(Ke){var et=Ke.shixunsDetail,at=Ke.globalSetting,Pe=Ke.loading,Xe=Ke.dispatch,ht=Ke.title,Et=Ke.pathList,Ot=Et===void 0?[]:Et,Mt=Ke.showInputPath,lt=Mt===void 0?!1:Mt,Ft=Ke.isMergeSelectFile,Lt=Ft===void 0?!1:Ft,on=Ke.onFinish,mn=on===void 0?function(){}:on,Hn=de.a.useForm(),Xn=Object(w.a)(Hn,1),Fn=Xn[0],xn=Object(L.i)(),fr=Object(L.h)(),Yn=Object(S.useRef)(),ar=Object(S.useState)(""),nr=Object(w.a)(ar,2),Rr=nr[0],pr=nr[1],sn=Object(S.useState)(""),qt=Object(w.a)(sn,2),On=qt[0],Fr=qt[1],Or=Object(S.useState)([]),xr=Object(w.a)(Or,2),dr=xr[0],pe=xr[1],X=Object(S.useState)([]),q=Object(w.a)(X,2),oe=q[0],De=q[1];Object(S.useEffect)(function(){var $t,gn;Yn.current=(($t=fr.pathname)===null||$t===void 0||((gn=$t.split("/"))===null||gn===void 0)?void 0:gn[3])==="repository"},[]),Object(S.useEffect)(function(){if(et.actionTabs.key!=="Repository-SelectFilePath")return;var $t=Ot.join("/"),gn=[];Ot.map(function(pn,Ar){Ar===0?gn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(pn),path:$t}):gn.push({val:"/".concat(pn),path:$t})}),pe(gn),pr($t),Fr($t),fe($t)},[et.actionTabs.key]);var fe=function(){var $t=Object(l.a)(C.a.mark(function gn(pn){var Ar;return C.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Xe({type:Yn.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:xn.id,path:pn}});case 2:Ar=oa.sent,Ar&&De(Ar.trees||[]);case 4:case"end":return oa.stop()}},gn)}));return function(pn){return $t.apply(this,arguments)}}(),ot=function(gn){var pn=Rr;gn.type==="tree"&&(dr.length?dr.push({val:"/".concat(gn.name),path:gn.name}):dr.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(gn.name),path:gn.name}),pe(dr),pn=Rr?"".concat(Rr,"/").concat(gn.name):gn.name,pr(pn)),fe(pn)},Qt=function(gn,pn){var Ar=dr.filter(function(oa,ir){return ir<=pn});pe(Ar);var ra=Ar.filter(function(oa,ir){return ir!==0}).map(function(oa){return oa.val}).join("").substr(1);pr(ra),fe(ra)},Mn=function(){var $t=Object(l.a)(C.a.mark(function gn(){var pn,Ar,ra;return C.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:if(pn=Fn==null?void 0:Fn.getFieldsValue(),Ar=Rr?"".concat(Rr).concat(pn!=null&&pn.name?"/".concat(pn==null?void 0:pn.name):""):pn==null?void 0:pn.name,!Lt){ir.next=6;break}return mn(Ar),Vn(),ir.abrupt("return");case 6:if(!lt){ir.next=16;break}return ir.next=9,Fn.validateFields();case 9:return ir.next=11,Xe({type:"shixunsDetail/uploadGitFolder",payload:Object(r.a)(Object(r.a)({},{id:xn.id,path:Ar}),Yn.current?{}:{secret_repository:!0})});case 11:ra=ir.sent,mn(On),ra.status===0&&d.b.info("\u65B0\u5EFA\u6210\u529F"),ir.next=18;break;case 16:mn(Ar),d.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Vn();case 19:case"end":return ir.stop()}},gn)}));return function(){return $t.apply(this,arguments)}}(),Vn=function(){Xe({type:"shixunsDetail/setActionTabs",payload:{}}),Fn.resetFields()};return _.a.createElement(m.a,{centered:!0,title:ht||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:et.actionTabs.key==="Repository-SelectFilePath",onOk:Mn,onCancel:Vn},_.a.createElement("div",{className:dt.a.wrap},_.a.createElement("div",{className:dt.a.content},_.a.createElement("div",{className:dt.a.mainPathWrap},!!(dr!=null&&dr.length)&&dr.map(function($t,gn){return _.a.createElement("a",{key:gn,onClick:function(){return Qt($t,gn)}},$t.val)})),!!(oe!=null&&oe.length)&&oe.map(function($t,gn){return $t.type==="tree"&&_.a.createElement("a",{key:gn,onClick:function(){return ot($t)}},_.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(dt.a.colorBlue)}),$t.name)})),_.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),_.a.createElement("div",{className:"mt5 mb5"},Rr),lt&&_.a.createElement(de.a,{form:Fn,scrollToFirstError:!0,className:"mt20"},_.a.createElement(de.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},_.a.createElement(ee.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},vt=Object(N.a)(function(Ct){var Ke=Ct.shixunsDetail,et=Ct.loading,at=Ct.globalSetting;return{shixunsDetail:Ke,globalSetting:at,loading:et.models.index}})(mt),yt=o("GZ0F"),Ye=o("8Skl"),Ue=o("HBuW"),ft=o("1vsH"),jt=o("NLgs"),bt=o("lzim"),Pt=F.a.DirectoryTree,it=function(Ke){var et,at,Pe,Xe,ht,Et,Ot,Mt=Ke.shixunsDetail,lt=Ke.globalSetting,Ft=Ke.loading,Lt=Ke.user,on=Ke.activeKey,mn=Ke.dispatch,Hn=Ke.practiceSetting,Xn=Ke.isRepository,Fn=Ke.treeData,xn=Ke.setTreeData,fr=Object(E.a)(Ke,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData"]),Yn=Object(L.i)(),ar=Object(L.h)(),nr=Object(S.useState)(),Rr=Object(w.a)(nr,2),pr=Rr[0],sn=Rr[1],qt=Object(S.useState)(!1),On=Object(w.a)(qt,2),Fr=On[0],Or=On[1],xr=Object(S.useState)(!1),dr=Object(w.a)(xr,2),pe=dr[0],X=dr[1],q=Object(S.useState)(!1),oe=Object(w.a)(q,2),De=oe[0],fe=oe[1],ot=Object(S.useState)(!1),Qt=Object(w.a)(ot,2),Mn=Qt[0],Vn=Qt[1],$t=Object(S.useState)(""),gn=Object(w.a)($t,2),pn=gn[0],Ar=gn[1],ra=Object(S.useState)([]),oa=Object(w.a)(ra,2),ir=oa[0],Ra=oa[1],La=Object(S.useState)([]),ca=Object(w.a)(La,2),Ka=ca[0],wa=ca[1],Ja=Object(S.useState)([]),ja=Object(w.a)(Ja,2),li=ja[0],oi=ja[1],fa=Object(S.useState)(!1),ma=Object(w.a)(fa,2),la=ma[0],xe=ma[1],ut=Object(S.useState)(),Rt=Object(w.a)(ut,2),wt=Rt[0],Kt=Rt[1],Nt=Object(S.useState)(),Xt=Object(w.a)(Nt,2),nn=Xt[0],yn=Xt[1],vn=Object(S.useState)(""),Nn=Object(w.a)(vn,2),An=Nn[0],an=Nn[1],Pn=Object(S.useState)(),bn=Object(w.a)(Pn,2),kn=bn[0],Rn=bn[1],Jn=Object(S.useState)(!1),mr=Object(w.a)(Jn,2),Br=mr[0],Sn=mr[1];Object(S.useEffect)(function(){xn([]),Un(""),localStorage.warehouseHideTip||xe(!0)},[ar.pathname,Xn]);var Yt=function(){var tr=Object(l.a)(C.a.mark(function Gt(){var Zt,Jt,zn=arguments;return C.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Zt=zn.length>0&&zn[0]!==void 0?zn[0]:"",Ln.next=3,Object(Ue.Gb)({id:Yn.id,secret_dir_path:Zt});case 3:Jt=Ln.sent,Jt&&Rn(Zt);case 5:case"end":return Ln.stop()}},Gt)}));return function(){return tr.apply(this,arguments)}}(),dn=function(Gt){var Zt;return _.a.createElement(n.a,{className:Qe.a.menu,onClick:function(zn){Ar(Gt.path||"");switch(zn.key){case"1":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),Or(!0);break;case"2":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),fe(!0);break;case"3":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Vn(!0);break;case"4":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),X(!0);break;case"5":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Pr(Gt.path,Gt.name,Gt);break;case"6":Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Lr(Gt);break}}},(Gt.type==="topTree"||Gt.type==="tree")&&_.a.createElement(n.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Gt.type==="topTree"||Gt.type==="tree")&&_.a.createElement(n.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Gt.type==="topTree"||Gt.type==="tree")&&_.a.createElement(n.a.Item,{key:"3"},"\u4E0A\u4F20"),Gt.type!=="topTree"&&Gt.type!=="tree"&&(Mt==null||((Zt=Mt.detail)===null||Zt===void 0)?void 0:Zt.public)<2&&_.a.createElement(n.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Gt.type!=="topTree"&&_.a.createElement(I.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Xn?"":"secret/").concat(Gt==null?void 0:Gt.path),onCopy:function(){return d.b.success("\u590D\u5236\u6210\u529F")}},_.a.createElement(n.a.Item,{key:"6"},_.a.createElement(_.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Gt.type!=="topTree"&&_.a.createElement(n.a.Item,{key:"5"},"\u5220\u9664"))},Dn=function(Gt,Zt){return Gt.map(function(Jt){return Zt==""?Jt.path=Zt+Jt.name:Jt.path=Zt+"/"+Jt.name,Jt.title=_.a.createElement(x.a,{className:"font14"},_.a.createElement(f.a,{flex:"1"},_.a.createElement(x.a,null,_.a.createElement(f.a,{flex:"20px"},Jt.type==="blob"&&_.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),_.a.createElement(f.a,{flex:"1"},_.a.createElement("span",{className:" multi_ellipsis1"},Jt.name)))),_.a.createElement(f.a,null,(Jt.type==="blob"||Jt.type==="tree")&&_.a.createElement(u.a,{overlay:dn(Jt),className:Qe.a.ellipsis},_.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Jt.disableCheckbox=pr&&pr!==Jt.name,Jt.className=Jt.type==="tree"?Qe.a.pl23:"",Jt.checkable=Jt.type!=="tree",Jt.isLeaf=Jt.type!=="tree",Jt.children=Jt.type==="tree"&&[],Jt.key=Jt.path,Jt})},en=function(Gt){mn({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Gt}})},wn=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt,Jt){var zn;return C.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return zn=Zt.split("/"),Ln.next=3,Un(pn);case 3:setTimeout(function(){en(Zt),ir=[zn[0]||""],Ka=[Zt],wa(Object(D.a)(Ka)),Ra(Object(D.a)(ir))},150);case 4:case"end":return Ln.stop()}},Gt)}));return function(Zt,Jt){return tr.apply(this,arguments)}}(),_n=function(Gt,Zt){if(Zt=="")Fn=Object(D.a)(Gt),xn(Object(D.a)(Gt));else{var Jt=In(Fn,Zt,Gt);Fn=Jt,xn(Object(D.a)(Jt))}};function In(tr,Gt,Zt){return tr.map(function(Jt){return Jt.key===Gt?(Jt.children=Object(D.a)(Zt),Object(r.a)({},Jt)):Jt.children?Object(r.a)(Object(r.a)({},Jt),{},{children:In(Jt.children,Gt,Zt)}):Jt})}var Un=function(){var tr=Object(l.a)(C.a.mark(function Gt(){var Zt,Jt,zn,$n,Ln,rr=arguments;return C.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return Zt=rr.length>0&&rr[0]!==void 0?rr[0]:"",sr.next=3,mn({type:Xn?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Yn.id,path:Zt}});case 3:return Jt=sr.sent,Jt&&((zn=Jt.trees)!==null&&zn!==void 0&&zn.length?(Ln=Dn(Object(D.a)(Jt.trees),Zt),_n(Ln,Zt),oi(Jt.trees||[]),yn(Zt||""),console.log("handleGetRepository:",Ln,Zt),setTimeout(function(){return console.log(Fn,Jt.trees,Zt,999999)},2e3)):Zt==""&&xn([]),Kt((($n=Jt.commits)===null||$n===void 0?void 0:$n[0])||{})),sr.abrupt("return",Jt);case 6:case"end":return sr.stop()}},Gt)}));return function(){return tr.apply(this,arguments)}}(),or=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){return C.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.abrupt("return",new Promise(function(){var $n=Object(l.a)(C.a.mark(function Ln(rr,cr){return C.a.wrap(function(qr){for(;;)switch(qr.prev=qr.next){case 0:return Zt.children.length&&rr(),an(Zt.path),qr.next=4,Un(Zt.path);case 4:rr();case 5:case"end":return qr.stop()}},Ln)}));return function(Ln,rr){return $n.apply(this,arguments)}}()));case 1:case"end":return zn.stop()}},Gt)}));return function(Zt){return tr.apply(this,arguments)}}(),qn=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt,Jt){var zn,$n;return C.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:if(console.log("handleSelectTree",Zt,Jt.nativeEvent.target.nodeName,Jt),zn=function(){en(Jt.node.path),Zt=[Jt.node.path],wa(Object(D.a)(Zt))},!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="LI"||Jt.nativeEvent.target.nodeName==="I")){rr.next=4;break}return rr.abrupt("return");case 4:Jt.node.type==="blob"&&(Hn!=null&&($n=Hn.sideBar)!==null&&$n!==void 0&&$n.confirmLeave?m.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){zn(),mn({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):zn());case 5:case"end":return rr.stop()}},Gt)}));return function(Zt,Jt){return tr.apply(this,arguments)}}(),Pr=function(Gt,Zt,Jt){m.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(Jt.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var zn=Object(l.a)(C.a.mark(function Ln(){var rr,cr,sr;return C.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return lr.next=2,mn({type:"shixunsDetail/deleteGitFile",payload:{id:Yn.id,path:Gt,message:"\u5220\u9664".concat(Gt),secret_repository:Xn?null:!0}});case 2:if(rr=lr.sent,cr=Gt.split("/"),!((rr==null?void 0:rr.status)===0)){lr.next=20;break}return d.b.info("\u5220\u9664\u6210\u529F"),cr.splice(cr.length-1,1),lr.next=9,Un(cr.length>1?cr.join("/"):"");case 9:if(sr=lr.sent,!(sr!=null&&sr.trees)){lr.next=13;break}lr.next=16;break;case 13:return cr.splice(cr.length-1,1),lr.next=16,Un(cr.length>1?cr.join("/"):"");case 16:return en(""),lr.abrupt("return",!0);case 20:(rr==null?void 0:rr.status)===-3&&m.a.confirm({title:"\u5220\u9664\u5931\u8D25",content:_.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",Gt,"\u201D\u5DF2\u7ECF\u88AB\u4EFB\u52A1\u5173\u5361\u7684\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u6216\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u4EFB\u52A1\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u540E\u518D\u5220\u9664\u3002"),okText:"\u524D\u5F80\u4FEE\u6539",cancelText:"\u53D6\u6D88",onOk:function(){window.location.href="/shixuns/".concat(Yn.id,"/edit/").concat(rr==null?void 0:rr.message,"/tab=2")}});case 21:case"end":return lr.stop()}},Ln)}));function $n(){return zn.apply(this,arguments)}return $n}()})},Lr=function(Gt){console.log(Gt,"item")},Qn=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt,Jt){return C.a.wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:if(console.log("handleExpand",Jt),!(Jt.nativeEvent.target.nodeName==="svg"||Jt.nativeEvent.target.nodeName==="path"||Jt.nativeEvent.target.nodeName==="LI")){$n.next=5;break}return $n.abrupt("return",!0);case 5:return $n.next=7,or(Jt.node);case 7:ir.includes(Jt.node.path)?ir.splice(ir.indexOf(Jt.node.path),1):ir.push(Jt.node.path);case 8:Ra(Object(D.a)(ir));case 9:case"end":return $n.stop()}},Gt)}));return function(Zt,Jt){return tr.apply(this,arguments)}}(),Dr=function(){xe(!1),localStorage.warehouseHideTip=!0},vr=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){var Jt,zn,$n,Ln,rr;return C.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:$n="",sr.t0=Xn,sr.next=sr.t0===!0?4:sr.t0===!1?9:11;break;case 4:return $n="\u5F00\u542F\u7248\u672C\u5E93",Ln="\u5F00\u542F",rr="\u4E0D\u5F00\u542F",zn=_.a.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002"),sr.abrupt("break",11);case 9:return Mt!=null&&(Jt=Mt.detail)!==null&&Jt!==void 0&&Jt.secret_repository?($n="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u786E\u5B9A",rr="\u53D6\u6D88",zn=_.a.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):($n="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Ln="\u4E0D\u4F7F\u7528",rr="\u4F7F\u7528",zn=_.a.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002")),sr.abrupt("break",11);case 11:if(!(!Xn&&Object(jt.b)(mn,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){sr.next=13;break}return sr.abrupt("return");case 13:m.a.confirm({title:$n,okText:Ln,cancelText:rr,content:zn,onOk:function(){var lr;Object(ft.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",$n]),!Xn&&!(Mt!=null&&(lr=Mt.detail)!==null&&lr!==void 0&&lr.secret_repository)||zr(Zt)},onCancel:function(){var lr;!Xn&&!(Mt!=null&&(lr=Mt.detail)!==null&&lr!==void 0&&lr.secret_repository)&&zr(Zt)}});case 14:case"end":return sr.stop()}},Gt)}));return function(Zt){return tr.apply(this,arguments)}}(),zr=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){return C.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:if(!Xn){zn.next=6;break}return zn.next=3,Object(Ue.r)(Object(r.a)({},Yn));case 3:mn({type:"practiceSetting/getCommonData",payload:Object(r.a)({},Yn)}),zn.next=8;break;case 6:return zn.next=8,Object(Ue.t)(Object(r.a)(Object(r.a)({},Yn),{},{is_secret_repository:Zt}));case 8:Un(),mn({type:"shixunsDetail/getShixunsDetail",payload:{id:Yn.id}});case 10:case"end":return zn.stop()}},Gt)}));return function(Zt){return tr.apply(this,arguments)}}(),Nr=function(Gt){console.log(Gt)},$r=function(){var tr=Object(l.a)(C.a.mark(function Gt(Zt){var Jt,zn,$n,Ln,rr,cr,sr,qr,lr,da,Yr;return C.a.wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(console.log(Zt),Jt=Zt.node.key,zn=Zt.dragNode.key,$n=Zt.node.pos.split("-"),Ln=Zt.dropPosition-Number($n[$n.length-1]),!(Zt.dragNode.type==="tree")){Sr.next=8;break}return d.b.warn("\u4E0D\u652F\u6301\u6587\u4EF6\u5939\u79FB\u52A8\u76EE\u5F55"),Sr.abrupt("return");case 8:if(!(Zt.node.type!=="tree")){Sr.next=11;break}return d.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),Sr.abrupt("return");case 11:return Sr.next=13,mn({type:"shixunsDetail/moveGitFile",payload:{id:Yn.id,from:Zt.dragNode.path,to:Zt.node.path+"/"+Zt.dragNode.name,message:"".concat(Zt.dragNode.path," move to ").concat(Zt.node.path+"/"+Zt.dragNode.name," ")}});case 13:if(rr=Sr.sent,!(rr.status===0)){Sr.next=26;break}return en(""),Sr.next=18,Un("");case 18:cr=0;case 19:if(!(cr>>24)&16711935|(d<<24|d>>>8)&4278255360}var s=this._hash.words,c=i[n+0],w=i[n+1],E=i[n+2],v=i[n+3],R=i[n+4],M=i[n+5],C=i[n+6],S=i[n+7],_=i[n+8],A=i[n+9],U=i[n+10],L=i[n+11],N=i[n+12],V=i[n+13],H=i[n+14],D=i[n+15],W=s[0],F=s[1],I=s[2],K=s[3];W=f(W,F,I,K,c,7,m[0]),K=f(K,W,F,I,w,12,m[1]),I=f(I,K,W,F,E,17,m[2]),F=f(F,I,K,W,v,22,m[3]),W=f(W,F,I,K,R,7,m[4]),K=f(K,W,F,I,M,12,m[5]),I=f(I,K,W,F,C,17,m[6]),F=f(F,I,K,W,S,22,m[7]),W=f(W,F,I,K,_,7,m[8]),K=f(K,W,F,I,A,12,m[9]),I=f(I,K,W,F,U,17,m[10]),F=f(F,I,K,W,L,22,m[11]),W=f(W,F,I,K,N,7,m[12]),K=f(K,W,F,I,V,12,m[13]),I=f(I,K,W,F,H,17,m[14]),F=f(F,I,K,W,D,22,m[15]),W=a(W,F,I,K,w,5,m[16]),K=a(K,W,F,I,C,9,m[17]),I=a(I,K,W,F,L,14,m[18]),F=a(F,I,K,W,c,20,m[19]),W=a(W,F,I,K,M,5,m[20]),K=a(K,W,F,I,U,9,m[21]),I=a(I,K,W,F,D,14,m[22]),F=a(F,I,K,W,R,20,m[23]),W=a(W,F,I,K,A,5,m[24]),K=a(K,W,F,I,H,9,m[25]),I=a(I,K,W,F,v,14,m[26]),F=a(F,I,K,W,_,20,m[27]),W=a(W,F,I,K,V,5,m[28]),K=a(K,W,F,I,E,9,m[29]),I=a(I,K,W,F,S,14,m[30]),F=a(F,I,K,W,N,20,m[31]),W=u(W,F,I,K,M,4,m[32]),K=u(K,W,F,I,_,11,m[33]),I=u(I,K,W,F,L,16,m[34]),F=u(F,I,K,W,H,23,m[35]),W=u(W,F,I,K,w,4,m[36]),K=u(K,W,F,I,R,11,m[37]),I=u(I,K,W,F,S,16,m[38]),F=u(F,I,K,W,U,23,m[39]),W=u(W,F,I,K,V,4,m[40]),K=u(K,W,F,I,c,11,m[41]),I=u(I,K,W,F,v,16,m[42]),F=u(F,I,K,W,C,23,m[43]),W=u(W,F,I,K,A,4,m[44]),K=u(K,W,F,I,N,11,m[45]),I=u(I,K,W,F,D,16,m[46]),F=u(F,I,K,W,E,23,m[47]),W=r(W,F,I,K,c,6,m[48]),K=r(K,W,F,I,S,10,m[49]),I=r(I,K,W,F,H,15,m[50]),F=r(F,I,K,W,M,21,m[51]),W=r(W,F,I,K,N,6,m[52]),K=r(K,W,F,I,v,10,m[53]),I=r(I,K,W,F,U,15,m[54]),F=r(F,I,K,W,w,21,m[55]),W=r(W,F,I,K,_,6,m[56]),K=r(K,W,F,I,D,10,m[57]),I=r(I,K,W,F,C,15,m[58]),F=r(F,I,K,W,V,21,m[59]),W=r(W,F,I,K,R,6,m[60]),K=r(K,W,F,I,L,10,m[61]),I=r(I,K,W,F,E,15,m[62]),F=r(F,I,K,W,A,21,m[63]),s[0]=s[0]+W|0,s[1]=s[1]+F|0,s[2]=s[2]+I|0,s[3]=s[3]+K|0},_doFinalize:function(){var i=this._data,n=i.words,l=this._nDataBytes*8,h=i.sigBytes*8;n[h>>>5]|=128<<24-h%32;var d=g.floor(l/4294967296),s=l;n[(h+64>>>9<<4)+15]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,n[(h+64>>>9<<4)+14]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,i.sigBytes=(n.length+1)*4,this._process();for(var c=this._hash,w=c.words,E=0;E<4;E++){var v=w[E];w[E]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}return c},clone:function(){var i=x.clone.call(this);return i._hash=this._hash.clone(),i}});function f(i,n,l,h,d,s,c){var w=i+(n&l|~n&h)+d+c;return(w<>>32-s)+n}function a(i,n,l,h,d,s,c){var w=i+(n&h|l&~h)+d+c;return(w<>>32-s)+n}function u(i,n,l,h,d,s,c){var w=i+(n^l^h)+d+c;return(w<>>32-s)+n}function r(i,n,l,h,d,s,c){var w=i+(l^(n|~h))+d+c;return(w<>>32-s)+n}T.MD5=x._createHelper(e),T.HmacMD5=x._createHmacHelper(e)}(Math),P.MD5})},cz0n:function(k,z,o){k.exports={flex_box_center:"flex_box_center___G8W6i",flex_space_between:"flex_space_between___1p_ZB",flex_box_vertical_center:"flex_box_vertical_center___2wivF",flex_box_center_end:"flex_box_center_end___y5a20",flex_box_column:"flex_box_column___6oXp3",tabs:"tabs___sKski",active:"active___10xGM"}},dGDm:function(k,z,o){k.exports={selectEnvironment:"selectEnvironment___1zrTT",search:"search___2Sku-",searchListWrap:"searchListWrap___30F5Q",searchList:"searchList___dxlP6",name:"name___28Ilk",tag:"tag___GYHhS",searchListActive:"searchListActive___1H-dL",spin:"spin___2GYcy",common:"common___JE3ZS",title:"title___11-q3",tags:"tags___3vE7b",tagActive:"tagActive___1c0bT",wrap:"wrap___fFVWs",allList:"allList___2mVBv",item:"item___2NPtB",itemActive:"itemActive___2aQTm",line:"line___yjjYk",apply:"apply___3NyxD",p1:"p1___2xNuY",p2:"p2___uGM8U",list:"list___1jtVf",items:"items___3gafm",darklySelectEnvironment:"darklySelectEnvironment___2KS0W"}},dejd:function(k,z,o){},djh8:function(k,z,o){k.exports=o.p+"static/qrCode.d852fdfc.png"},dmUQ:function(k,z,o){"use strict";var P=o("Ff2n"),g=o("rePB"),T=o("1OyB"),b=o("vuIU"),y=o("Ji7U"),x=o("md7G"),O=o("foSv"),m=o("q1tI"),e=o.n(m),f=o("TSYQ"),a=o.n(f),u=o("4IlW");function r(_,A){var U=Object.keys(_);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(_);A&&(L=L.filter(function(N){return Object.getOwnPropertyDescriptor(_,N).enumerable})),U.push.apply(U,L)}return U}function i(_){for(var A=1;A1?he-1:0),Se=1;Se1?F-1:0),K=1;K=0)return parseInt(W.slice(W.indexOf("e-")+2),10);var F=0;return W.indexOf(".")>=0&&(F=W.length-W.indexOf(".")-1),F},N.getInputDisplayValue=function(D){var W=D||N.state,F=W.focused,I=W.inputValue,K=W.value,ee;F?ee=I:ee=N.toPrecisionAsStep(K),ee==null&&(ee="");var he=N.formatWrapper(ee);return v(N.props.decimalSeparator)&&(he=he.toString().replace(".",N.props.decimalSeparator)),he},N.recordCursorPosition=function(){try{N.cursorStart=N.input.selectionStart,N.cursorEnd=N.input.selectionEnd,N.currentValue=N.input.value,N.cursorBefore=N.input.value.substring(0,N.cursorStart),N.cursorAfter=N.input.value.substring(N.cursorEnd)}catch(D){}},N.restoreByAfter=function(D){if(D===void 0)return!1;var W=N.input.value,F=W.lastIndexOf(D);if(F===-1)return!1;var I=N.cursorBefore.length;return N.lastKeyCode===u.a.DELETE&&N.cursorBefore.charAt(I-1)===D[0]?(N.fixCaret(I,I),!0):F+D.length===W.length?(N.fixCaret(F,F),!0):!1},N.partRestoreByAfter=function(D){return D===void 0?!1:Array.prototype.some.call(D,function(W,F){var I=D.substring(F);return N.restoreByAfter(I)})},N.isNotCompleteNumber=function(D){return isNaN(D)||D===""||D===null||D&&D.toString().indexOf(".")===D.toString().length-1},N.stop=function(){N.autoStepTimer&&clearTimeout(N.autoStepTimer)},N.down=function(D,W,F){N.pressingUpOrDown=!0,N.step("down",D,W,F)},N.up=function(D,W,F){N.pressingUpOrDown=!0,N.step("up",D,W,F)},N.saveInput=function(D){N.input=D};var V=L.value;V===void 0&&(V=L.defaultValue),N.state={focused:L.autoFocus};var H=N.getValidValue(N.toNumber(V));return N.state=i(i({},N.state),{},{inputValue:N.toPrecisionAsStep(H),value:H}),N}return Object(b.a)(U,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(N){var V=this.props,H=V.value,D=V.onChange,W=V.max,F=V.min,I=this.state.focused;if(N){if(!R(N.value,H)||!R(N.max,W)||!R(N.min,F)){var K=I?H:this.getValidValue(H),ee;this.pressingUpOrDown?ee=K:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(K),this.setState({value:K,inputValue:ee})}var he="value"in this.props?H:this.state.value;"max"in this.props&&N.max!==W&&typeof he=="number"&&he>W&&D&&D(W),"min"in this.props&&N.min!==F&&typeof he=="number"&&he1&&arguments[1]!==void 0?arguments[1]:this.props.min,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,D=parseFloat(N);return isNaN(D)?N:(DH&&(D=H),D)}},{key:"setValue",value:function(N,V){var H=this.props.precision,D=this.isNotCompleteNumber(parseFloat(N))?null:parseFloat(N),W=this.state.value,F=W===void 0?null:W,I=this.state.inputValue,K=I===void 0?null:I,ee=typeof D=="number"?D.toFixed(H):"".concat(D),he=D!==F||ee!=="".concat(K);return"value"in this.props?(K=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:K},V)):this.setState({value:D,inputValue:this.toPrecisionAsStep(N)},V),he&&this.props.onChange(D),D}},{key:"getMaxPrecision",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.props,D=H.precision,W=H.step;if(v(D))return D;var F=this.getPrecision(V),I=this.getPrecision(W),K=this.getPrecision(N);return N?Math.max(K,F+I):F+I}},{key:"getPrecisionFactor",value:function(N){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=this.getMaxPrecision(N,V);return Math.pow(10,H)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(N){return this.props.formatter?this.props.formatter(N):N}},{key:"toPrecisionAsStep",value:function(N){if(this.isNotCompleteNumber(N)||N==="")return N;var V=Math.abs(this.getMaxPrecision(N));return isNaN(V)?N.toString():Number(N).toFixed(V)}},{key:"toNumber",value:function(N){var V=this.props.precision,H=this.state.focused,D=N&&N.length>16&&H;return this.isNotCompleteNumber(N)||D?N:v(V)?Math.round(N*Math.pow(10,V))/Math.pow(10,V):Number(N)}},{key:"upStep",value:function(N,V){var H=this.props.step,D=this.getPrecisionFactor(N,V),W=Math.abs(this.getMaxPrecision(N,V)),F=((D*N+D*H*V)/D).toFixed(W);return this.toNumber(F)}},{key:"downStep",value:function(N,V){var H=this.props.step,D=this.getPrecisionFactor(N,V),W=Math.abs(this.getMaxPrecision(N,V)),F=((D*N-D*H*V)/D).toFixed(W);return this.toNumber(F)}},{key:"step",value:function(N,V){var H=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3?arguments[3]:void 0;this.stop(),V&&(V.persist(),V.preventDefault());var F=this.props;if(F.disabled)return;var I=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(I))return;var K=this["".concat(N,"Step")](I,D),ee=K>F.max||KF.max?K=F.max:K=de),Pt=(vt||vt===0)&&(isNaN(vt)||Number(vt)<=Se),it=bt||D||W,He=Pt||D||W,Ge=a()("".concat(H,"-handler"),"".concat(H,"-handler-up"),Object(g.a)({},"".concat(H,"-handler-up-disabled"),it)),Ce=a()("".concat(H,"-handler"),"".concat(H,"-handler-down"),Object(g.a)({},"".concat(H,"-handler-down-disabled"),He)),Ie=F?{onTouchStart:it?h:this.up,onTouchEnd:this.stop}:{onMouseDown:it?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Fe=F?{onTouchStart:He?h:this.down,onTouchEnd:this.stop}:{onMouseDown:He?h:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Ye,style:Te,title:ce,onMouseEnter:be,onMouseLeave:Ee,onMouseOver:ue,onMouseOut:le,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(H,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},Ie,{role:"button","aria-label":"Increase Value","aria-disabled":it,className:Ge}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-up-inner"),onClick:d})),e.a.createElement("span",Object.assign({unselectable:"on"},Fe,{role:"button","aria-label":"Decrease Value","aria-disabled":He,className:Ce}),ee||e.a.createElement("span",{unselectable:"on",className:"".concat(H,"-handler-down-inner"),onClick:d}))),e.a.createElement("div",{className:"".concat(H,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Se,"aria-valuemax":de,"aria-valuenow":vt,required:$,type:ae,placeholder:Oe,onPaste:Qe,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(H,"-input"),tabIndex:re,autoComplete:I,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ft?this.onKeyDown:h,onKeyUp:ft?this.onKeyUp:h,autoFocus:_e,maxLength:ve,readOnly:W,disabled:D,max:de,min:Se,step:J,name:Ae,title:ce,id:se,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(jt),pattern:Q,inputMode:te,onInput:tt},Ue))))}}]),U}(e.a.Component);M.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:h,onKeyDown:h,onPressEnter:h,onFocus:h,onBlur:h,parser:s,required:!1,autoComplete:"off"};var C=M,S=z.a=C},e7zE:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.Base,y=T.WordArray,x=g.algo,O=x.SHA1,m=x.HMAC,e=x.PBKDF2=b.extend({cfg:b.extend({keySize:128/32,hasher:O,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,a){for(var u=this.cfg,r=m.create(u.hasher,f),i=y.create(),n=y.create([1]),l=i.words,h=n.words,d=u.keySize,s=u.iterations;l.length0&&arguments[0]!==void 0?arguments[0]:[],Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Te=de.length,ce=Se.length;if(Math.abs(Te-ce)!==1)return{add:!1,key:null};function be(Ee,ue){var le=new Map;Ee.forEach(function(me){le.set(me,!0)});var $=ue.filter(function(me){return!le.has(me)});return $.length===1?$[0]:null}return Te ").concat(Se);return Se}var D=function(Se,Te){var ce=Se.prefixCls,be=Se.data,Ee=Se.selectable,ue=Se.checkable,le=Se.expandedKeys,$=Se.selectedKeys,me=Se.checkedKeys,re=Se.loadedKeys,ae=Se.loadingKeys,Oe=Se.halfCheckedKeys,se=Se.keyEntities,te=Se.disabled,Q=Se.dragging,J=Se.dragOverNodeKey,ve=Se.dropPosition,_e=Se.motion,Ae=Se.height,Qe=Se.itemHeight,tt=Se.virtual,dt=Se.focusable,mt=Se.activeItem,vt=Se.focused,yt=Se.tabIndex,Ye=Se.onKeyDown,Ue=Se.onFocus,ft=Se.onBlur,jt=Se.onActiveChange,bt=Se.onListChangeStart,Pt=Se.onListChangeEnd,it=Object(h.a)(Se,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),He=m.useRef(null);m.useImperativeHandle(Te,function(){return{scrollTo:function(on){He.current.scrollTo(on)}}});var Ge=m.useState(le),Ce=Object(l.a)(Ge,2),Ie=Ce[0],Fe=Ce[1],Be=m.useState(be),We=Object(l.a)(Be,2),st=We[0],Dt=We[1],Ht=m.useState(be),rn=Object(l.a)(Ht,2),Bt=rn[0],Ct=rn[1],Ke=m.useState([]),et=Object(l.a)(Ke,2),at=et[0],Pe=et[1],Xe=m.useState(null),ht=Object(l.a)(Xe,2),Et=ht[0],Ot=ht[1];function Mt(){Dt(be),Ct(be),Pe([]),Ot(null),Pt()}m.useEffect(function(){Fe(le);var Lt=R(Ie,le);if(Lt.key!==null)if(Lt.add){var on=st.findIndex(function(fr){var Yn=fr.data.key;return Yn===Lt.key}),mn=N(M(st,be,Lt.key),tt,Ae,Qe),Hn=st.slice();Hn.splice(on+1,0,L),Ct(Hn),Pe(mn),Ot("show")}else{var Xn=be.findIndex(function(fr){var Yn=fr.data.key;return Yn===Lt.key}),Fn=N(M(be,st,Lt.key),tt,Ae,Qe),xn=be.slice();xn.splice(Xn+1,0,L),Ct(xn),Pe(Fn),Ot("hide")}else st!==be&&(Dt(be),Ct(be))},[le,be]),m.useEffect(function(){Q||Mt()},[Q]);var lt=_e?Bt:be,Ft={expandedKeys:le,selectedKeys:$,loadedKeys:re,loadingKeys:ae,checkedKeys:me,halfCheckedKeys:Oe,dragOverNodeKey:J,dropPosition:ve,keyEntities:se};return m.createElement(m.Fragment,null,vt&&mt&&m.createElement("span",{style:C,"aria-live":"assertive"},H(mt)),m.createElement("div",{role:"tree"},m.createElement("input",{style:C,disabled:dt===!1||te,tabIndex:dt!==!1?yt:null,onKeyDown:Ye,onFocus:Ue,onBlur:ft,value:"",onChange:S})),m.createElement(d.a,Object.assign({},it,{data:lt,itemKey:V,height:Ae,fullHeight:!1,virtual:tt,itemHeight:Qe,prefixCls:"".concat(ce,"-list"),ref:He}),function(Lt){var on=Lt.pos,mn=Lt.data,Hn=mn.key,Xn=Object(h.a)(mn,["key"]),Fn=Lt.isStart,xn=Lt.isEnd,fr=Object(n.e)(Hn,on);delete Xn.children;var Yn=Object(n.f)(fr,Ft);return m.createElement(v,Object.assign({},Xn,Yn,{active:mt&&Hn===mt.data.key,pos:on,data:Lt.data,isStart:Fn,isEnd:xn,motion:_e,motionNodes:Hn===_?at:null,motionType:Et,onMotionStart:bt,onMotionEnd:Mt,treeNodeRequiredProps:Ft,onMouseMove:function(){jt(null)}}))}))},W=m.forwardRef(D);W.displayName="NodeList";var F=W,I=o("NvD2"),K=function(de){Object(x.a)(Te,de);var Se=Object(O.a)(Te);function Te(){var ce;return Object(b.a)(this,Te),ce=Se.apply(this,arguments),ce.destroyed=!1,ce.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},ce.listRef=m.createRef(),ce.onNodeDragStart=function(be,Ee){var ue=ce.state,le=ue.expandedKeys,$=ue.keyEntities,me=ce.props.onDragStart,re=Ee.props.eventKey;ce.dragNode=Ee;var ae=Object(i.b)(le,re);ce.setState({dragging:!0,dragNodesKeys:Object(i.g)(re,$)}),ce.setExpandedKeys(ae),me&&me({event:be,node:Object(n.b)(Ee.props)})},ce.onNodeDragEnter=function(be,Ee){var ue=ce.state,le=ue.expandedKeys,$=ue.keyEntities,me=ue.dragNodesKeys,re=ce.props.onDragEnter,ae=Ee.props,Oe=ae.pos,se=ae.eventKey;if(!ce.dragNode||me.indexOf(se)!==-1)return;var te=Object(i.c)(be,Ee);if(ce.dragNode.props.eventKey===se&&te===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:se,dropPosition:te}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(Q){clearTimeout(ce.delayedDragEnterLogic[Q])}),ce.delayedDragEnterLogic[Oe]=window.setTimeout(function(){if(!ce.state.dragging)return;var Q=Object(T.a)(le),J=$[se];J&&(J.children||[]).length&&(Q=Object(i.a)(le,se)),"expandedKeys"in ce.props||ce.setExpandedKeys(Q),re&&re({event:be,node:Object(n.b)(Ee.props),expandedKeys:Q})},400)},0)},ce.onNodeDragOver=function(be,Ee){var ue=ce.state.dragNodesKeys,le=ce.props.onDragOver,$=Ee.props.eventKey;if(ue.indexOf($)!==-1)return;if(ce.dragNode&&$===ce.state.dragOverNodeKey){var me=Object(i.c)(be,Ee);if(me===ce.state.dropPosition)return;ce.setState({dropPosition:me})}le&&le({event:be,node:Object(n.b)(Ee.props)})},ce.onNodeDragLeave=function(be,Ee){var ue=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),ue&&ue({event:be,node:Object(n.b)(Ee.props)})},ce.onNodeDragEnd=function(be,Ee){var ue=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),ue&&ue({event:be,node:Object(n.b)(Ee.props)}),ce.dragNode=null},ce.onNodeDrop=function(be,Ee){var ue=ce.state,le=ue.dragNodesKeys,$=le===void 0?[]:le,me=ue.dropPosition,re=ce.props.onDrop,ae=Ee.props,Oe=ae.eventKey,se=ae.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),$.indexOf(Oe)!==-1){Object(f.a)(!1,"Can not drop to dragNode(include it's children node)");return}var te=Object(i.k)(se),Q={event:be,node:Object(n.b)(Ee.props),dragNode:ce.dragNode?Object(n.b)(ce.dragNode.props):null,dragNodesKeys:$.slice(),dropPosition:me+Number(te[te.length-1]),dropToGap:!1};me!==0&&(Q.dropToGap=!0),re&&re(Q),ce.dragNode=null},ce.cleanDragState=function(){var be=ce.state.dragging;be&&ce.setState({dragging:!1})},ce.onNodeClick=function(be,Ee){var ue=ce.props.onClick;ue&&ue(be,Ee)},ce.onNodeDoubleClick=function(be,Ee){var ue=ce.props.onDoubleClick;ue&&ue(be,Ee)},ce.onNodeSelect=function(be,Ee){var ue=ce.state.selectedKeys,le=ce.state.keyEntities,$=ce.props,me=$.onSelect,re=$.multiple,ae=Ee.selected,Oe=Ee.key,se=!ae;se?re?ue=Object(i.a)(ue,Oe):ue=[Oe]:ue=Object(i.b)(ue,Oe);var te=ue.map(function(Q){var J=le[Q];return J?J.node:null}).filter(function(Q){return Q});ce.setUncontrolledState({selectedKeys:ue}),me&&me(ue,{event:"select",selected:se,node:Ee,selectedNodes:te,nativeEvent:be.nativeEvent})},ce.onNodeCheck=function(be,Ee,ue){var le=ce.state,$=le.keyEntities,me=le.checkedKeys,re=le.halfCheckedKeys,ae=ce.props,Oe=ae.checkStrictly,se=ae.onCheck,te=Ee.key,Q,J={event:"check",node:Ee,checked:ue,nativeEvent:be.nativeEvent};if(Oe){var ve=ue?Object(i.a)(me,te):Object(i.b)(me,te),_e=Object(i.b)(re,te);Q={checked:ve,halfChecked:_e},J.checkedNodes=ve.map(function(vt){return $[vt]}).filter(function(vt){return vt}).map(function(vt){return vt.node}),ce.setUncontrolledState({checkedKeys:ve})}else{var Ae=Object(I.a)([].concat(Object(T.a)(me),[te]),!0,$),Qe=Ae.checkedKeys,tt=Ae.halfCheckedKeys;if(!ue){var dt=new Set(Qe);dt.delete(te);var mt=Object(I.a)(Array.from(dt),{checked:!1,halfCheckedKeys:tt},$);Qe=mt.checkedKeys,tt=mt.halfCheckedKeys}Q=Qe,J.checkedNodes=[],J.checkedNodesPositions=[],J.halfCheckedKeys=tt,Qe.forEach(function(vt){var yt=$[vt];if(!yt)return;var Ye=yt.node,Ue=yt.pos;J.checkedNodes.push(Ye),J.checkedNodesPositions.push({node:Ye,pos:Ue})}),ce.setUncontrolledState({checkedKeys:Qe},!1,{halfCheckedKeys:tt})}se&&se(Q,J)},ce.onNodeLoad=function(be){return new Promise(function(Ee){ce.setState(function(ue){var le=ue.loadedKeys,$=le===void 0?[]:le,me=ue.loadingKeys,re=me===void 0?[]:me,ae=ce.props,Oe=ae.loadData,se=ae.onLoad,te=be.key;if(!Oe||$.indexOf(te)!==-1||re.indexOf(te)!==-1)return{};var Q=Oe(be);return Q.then(function(){var J=ce.state,ve=J.loadedKeys,_e=J.loadingKeys,Ae=Object(i.a)(ve,te),Qe=Object(i.b)(_e,te);se&&se(Ae,{event:"load",node:be}),ce.setUncontrolledState({loadedKeys:Ae}),ce.setState({loadingKeys:Qe}),Ee()}),{loadingKeys:Object(i.a)(re,te)}})})},ce.onNodeMouseEnter=function(be,Ee){var ue=ce.props.onMouseEnter;ue&&ue({event:be,node:Ee})},ce.onNodeMouseLeave=function(be,Ee){var ue=ce.props.onMouseLeave;ue&&ue({event:be,node:Ee})},ce.onNodeContextMenu=function(be,Ee){var ue=ce.props.onRightClick;ue&&(be.preventDefault(),ue({event:be,node:Ee}))},ce.onFocus=function(){var be=ce.props.onFocus;ce.setState({focused:!0}),be&&be.apply(void 0,arguments)},ce.onBlur=function(){var be=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null),be&&be.apply(void 0,arguments)},ce.getTreeNodeRequiredProps=function(){var be=ce.state,Ee=be.expandedKeys,ue=be.selectedKeys,le=be.loadedKeys,$=be.loadingKeys,me=be.checkedKeys,re=be.halfCheckedKeys,ae=be.dragOverNodeKey,Oe=be.dropPosition,se=be.keyEntities;return{expandedKeys:Ee||[],selectedKeys:ue||[],loadedKeys:le||[],loadingKeys:$||[],checkedKeys:me||[],halfCheckedKeys:re||[],dragOverNodeKey:ae,dropPosition:Oe,keyEntities:se}},ce.setExpandedKeys=function(be){var Ee=ce.state.treeData,ue=Object(n.d)(Ee,be);ce.setUncontrolledState({expandedKeys:be,flattenNodes:ue},!0)},ce.onNodeExpand=function(be,Ee){var ue=ce.state.expandedKeys,le=ce.state.listChanging,$=ce.props,me=$.onExpand,re=$.loadData,ae=Ee.key,Oe=Ee.expanded;if(le)return;var se=ue.indexOf(ae),te=!Oe;if(Object(f.a)(Oe&&se!==-1||!Oe&&se===-1,"Expand state not sync with index check"),te?ue=Object(i.a)(ue,ae):ue=Object(i.b)(ue,ae),ce.setExpandedKeys(ue),me&&me(ue,{node:Ee,expanded:te,nativeEvent:be.nativeEvent}),te&&re){var Q=ce.onNodeLoad(Ee);Q&&Q.then(function(){var J=Object(n.d)(ce.state.treeData,ue);ce.setUncontrolledState({flattenNodes:J})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(be){var Ee=ce.state.activeKey,ue=ce.props.onActiveChange;if(Ee===be)return;ce.setState({activeKey:be}),be!==null&&ce.scrollTo({key:be}),ue&&ue(be)},ce.getActiveItem=function(){var be=ce.state,Ee=be.activeKey,ue=be.flattenNodes;return Ee===null?null:ue.find(function(le){var $=le.data.key;return $===Ee})||null},ce.offsetActiveKey=function(be){var Ee=ce.state,ue=Ee.flattenNodes,le=Ee.activeKey,$=ue.findIndex(function(ae){var Oe=ae.data.key;return Oe===le});$===-1&&be<0&&($=ue.length),$=($+be+ue.length)%ue.length;var me=ue[$];if(me){var re=me.data.key;ce.onActiveChange(re)}else ce.onActiveChange(null)},ce.onKeyDown=function(be){var Ee=ce.state,ue=Ee.activeKey,le=Ee.expandedKeys,$=Ee.checkedKeys,me=ce.props,re=me.onKeyDown,ae=me.checkable,Oe=me.selectable;switch(be.which){case e.a.UP:{ce.offsetActiveKey(-1),be.preventDefault();break}case e.a.DOWN:{ce.offsetActiveKey(1),be.preventDefault();break}}var se=ce.getActiveItem();if(se&&se.data){var te=ce.getTreeNodeRequiredProps(),Q=se.data.isLeaf===!1||!!(se.data.children||[]).length,J=Object(n.b)(Object(g.a)(Object(g.a)({},Object(n.f)(ue,te)),{},{data:se.data,active:!0}));switch(be.which){case e.a.LEFT:{Q&&le.includes(ue)?ce.onNodeExpand({},J):se.parent&&ce.onActiveChange(se.parent.data.key),be.preventDefault();break}case e.a.RIGHT:{Q&&!le.includes(ue)?ce.onNodeExpand({},J):se.children&&se.children.length&&ce.onActiveChange(se.children[0].data.key),be.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{ae&&!J.disabled&&J.checkable!==!1&&!J.disableCheckbox?ce.onNodeCheck({},J,!$.includes(ue)):!ae&&Oe&&!J.disabled&&J.selectable!==!1&&ce.onNodeSelect({},J);break}}}re&&re(be)},ce.setUncontrolledState=function(be){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ce.destroyed)return;var le=!1,$=!0,me={};Object.keys(be).forEach(function(re){if(re in ce.props){$=!1;return}le=!0,me[re]=be[re]}),le&&(!Ee||$)&&ce.setState(Object(g.a)(Object(g.a)({},me),ue))},ce.scrollTo=function(be){ce.listRef.current.scrollTo(be)},ce}return Object(y.a)(Te,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var be,Ee=this.state,ue=Ee.focused,le=Ee.flattenNodes,$=Ee.keyEntities,me=Ee.dragging,re=Ee.activeKey,ae=this.props,Oe=ae.prefixCls,se=ae.className,te=ae.style,Q=ae.showLine,J=ae.focusable,ve=ae.tabIndex,_e=ve===void 0?0:ve,Ae=ae.selectable,Qe=ae.showIcon,tt=ae.icon,dt=ae.switcherIcon,mt=ae.draggable,vt=ae.checkable,yt=ae.checkStrictly,Ye=ae.disabled,Ue=ae.motion,ft=ae.loadData,jt=ae.filterTreeNode,bt=ae.height,Pt=ae.itemHeight,it=ae.virtual,He=ae.titleRender,Ge=ae.onContextMenu,Ce=Object(i.f)(this.props);return m.createElement(r.a.Provider,{value:{prefixCls:Oe,selectable:Ae,showIcon:Qe,icon:tt,switcherIcon:dt,draggable:mt,checkable:vt,checkStrictly:yt,disabled:Ye,keyEntities:$,loadData:ft,filterTreeNode:jt,titleRender:He,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},m.createElement("div",{className:u()(Oe,se,(be={},Object(P.a)(be,"".concat(Oe,"-show-line"),Q),Object(P.a)(be,"".concat(Oe,"-focused"),ue),Object(P.a)(be,"".concat(Oe,"-active-focused"),re!==null),be))},m.createElement(F,Object.assign({ref:this.listRef,prefixCls:Oe,style:te,data:le,disabled:Ye,selectable:Ae,checkable:!!vt,motion:Ue,dragging:me,height:bt,itemHeight:Pt,virtual:it,focusable:J,focused:ue,tabIndex:_e,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ge},this.getTreeNodeRequiredProps(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(be,Ee){var ue=Ee.prevProps,le={prevProps:be};function $(tt){return!ue&&tt in be||ue&&ue[tt]!==be[tt]}var me;if($("treeData")?me=be.treeData:$("children")&&(Object(f.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),me=Object(n.c)(be.children)),me){le.treeData=me;var re=Object(n.a)(me);le.keyEntities=Object(g.a)(Object(P.a)({},_,U),re.keyEntities)}var ae=le.keyEntities||Ee.keyEntities;if($("expandedKeys")||ue&&$("autoExpandParent"))le.expandedKeys=be.autoExpandParent||!ue&&be.defaultExpandParent?Object(i.e)(be.expandedKeys,ae):be.expandedKeys;else if(!ue&&be.defaultExpandAll){var Oe=Object(g.a)({},ae);delete Oe[_],le.expandedKeys=Object.keys(Oe).map(function(tt){return Oe[tt].key})}else!ue&&be.defaultExpandedKeys&&(le.expandedKeys=be.autoExpandParent||be.defaultExpandParent?Object(i.e)(be.defaultExpandedKeys,ae):be.defaultExpandedKeys);if(le.expandedKeys||delete le.expandedKeys,me||le.expandedKeys){var se=Object(n.d)(me||Ee.treeData,le.expandedKeys||Ee.expandedKeys);le.flattenNodes=se}if(be.selectable&&($("selectedKeys")?le.selectedKeys=Object(i.d)(be.selectedKeys,be):!ue&&be.defaultSelectedKeys&&(le.selectedKeys=Object(i.d)(be.defaultSelectedKeys,be))),be.checkable){var te;if($("checkedKeys")?te=Object(i.j)(be.checkedKeys)||{}:!ue&&be.defaultCheckedKeys?te=Object(i.j)(be.defaultCheckedKeys)||{}:me&&(te=Object(i.j)(be.checkedKeys)||{checkedKeys:Ee.checkedKeys,halfCheckedKeys:Ee.halfCheckedKeys}),te){var Q=te,J=Q.checkedKeys,ve=J===void 0?[]:J,_e=Q.halfCheckedKeys,Ae=_e===void 0?[]:_e;if(!be.checkStrictly){var Qe=Object(I.a)(ve,!0,ae);ve=Qe.checkedKeys,Ae=Qe.halfCheckedKeys}le.checkedKeys=ve,le.halfCheckedKeys=Ae}}return $("loadedKeys")&&(le.loadedKeys=be.loadedKeys),le}}]),Te}(m.Component);K.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},K.TreeNode=c.a;var ee=K,he=z.b=ee},fKo2:function(k,z,o){},fjLI:function(k,z,o){"use strict";o.d(z,"f",function(){return r}),o.d(z,"b",function(){return i}),o.d(z,"a",function(){return n}),o.d(z,"d",function(){return l}),o.d(z,"e",function(){return h}),o.d(z,"c",function(){return d});var P=o("8HAY"),g=o("Vhoy"),T=o("MI8n"),b=o("JYp7"),y=o("pmY6"),x=o("24hK"),O=o("nnTU"),m=o("T8No"),e=o("Cg/j"),f=o("t9D7"),a=function(s,c,w,E){var v=arguments.length,R=v<3?c:E===null?E=Object.getOwnPropertyDescriptor(c,w):E,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(s,c,w,E);else for(var C=s.length-1;C>=0;C--)(M=s[C])&&(R=(v<3?M(R):v>3?M(c,w,R):M(c,w))||R);return v>3&&R&&Object.defineProperty(c,w,R),R},u=function(s,c){return function(w,E){c(w,E,s)}};function r(s){return s.command!==void 0}class i{constructor(s){this.id=i._idPool++,this._debugName=s}}i._idPool=0,i.CommandPalette=new i("CommandPalette"),i.EditorContext=new i("EditorContext"),i.SimpleEditorContext=new i("SimpleEditorContext"),i.EditorContextCopy=new i("EditorContextCopy"),i.EditorContextPeek=new i("EditorContextPeek"),i.MenubarEditMenu=new i("MenubarEditMenu"),i.MenubarCopy=new i("MenubarCopy"),i.MenubarGoMenu=new i("MenubarGoMenu"),i.MenubarSelectionMenu=new i("MenubarSelectionMenu"),i.InlineCompletionsActions=new i("InlineCompletionsActions");const n=Object(e.c)("menuService"),l=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new T.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:s=>s===i.CommandPalette}}addCommand(s){return this.addCommands(b.a.single(s))}addCommands(s){for(const c of s)this._commands.set(c.id,c);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let c=!1;for(const w of s)c=this._commands.delete(w.id)||c;c&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((c,w)=>s.set(w,c)),s}appendMenuItem(s,c){return this.appendMenuItems(b.a.single({id:s,item:c}))}appendMenuItems(s){const c=new Set,w=new x.a;for(const{id:E,item:v}of s){let R=this._menuItems.get(E);R||(R=new x.a,this._menuItems.set(E,R)),w.push(R.push(v)),c.add(E)}return this._onDidChangeMenu.fire(c),Object(y.i)(()=>{if(w.size>0){for(let E of w)E();this._onDidChangeMenu.fire(c),w.clear()}})}getMenuItems(s){let c;return this._menuItems.has(s)?c=[...this._menuItems.get(s)]:c=[],s===i.CommandPalette&&this._appendImplicitItems(c),c}_appendImplicitItems(s){const c=new Set;for(const w of s)r(w)&&(c.add(w.command.id),w.alt&&c.add(w.alt.id));this._commands.forEach((w,E)=>{c.has(E)||s.push({command:w})})}};class h extends P.e{constructor(s,c,w,E){super(`submenuitem.${s.submenu.id}`,typeof s.title=="string"?s.title:s.title.value,[],"submenu");this.item=s,this._menuService=c,this._contextKeyService=w,this._options=E}get actions(){const s=[],c=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=c.getActions(this._options);c.dispose();for(const[,E]of w)E.length>0&&(s.push(...E),s.push(new P.d));return s.length&&s.pop(),s}}let d=class s{constructor(c,w,E,v,R){var M,C;if(this._commandService=R,this.id=c.id,this.label=(E==null?void 0:E.renderShortTitle)&&c.shortTitle?typeof c.shortTitle=="string"?c.shortTitle:c.shortTitle.value:typeof c.title=="string"?c.title:c.title.value,this.tooltip=(C=typeof c.tooltip=="string"?c.tooltip:(M=c.tooltip)===null||M===void 0?void 0:M.value)!==null&&C!==void 0?C:"",this.enabled=!c.precondition||v.contextMatchesRules(c.precondition),this.checked=void 0,c.toggled){const S=c.toggled.condition?c.toggled:{condition:c.toggled};this.checked=v.contextMatchesRules(S.condition),this.checked&&S.tooltip&&(this.tooltip=typeof S.tooltip=="string"?S.tooltip:S.tooltip.value),S.title&&(this.label=typeof S.title=="string"?S.title:S.title.value)}this.item=c,this.alt=w?new s(w,void 0,E,v,R):void 0,this._options=E,f.d.isThemeIcon(c.icon)&&(this.class=g.a.asClassName(c.icon))}dispose(){}run(...c){var w,E;let v=[];return((w=this._options)===null||w===void 0?void 0:w.arg)&&(v=[...v,this._options.arg]),((E=this._options)===null||E===void 0?void 0:E.shouldForwardArgs)&&(v=[...v,...c]),this._commandService.executeCommand(this.id,...v)}};d=a([u(3,m.b),u(4,O.b)],d)},fyJ8:function(k,z,o){"use strict";var P=o("rePB"),g=o("VTBJ"),T=o("Ff2n"),b=o("U8pU"),y=o("q1tI"),x=o.n(y),O=o("TSYQ"),m=o.n(O),e=o("c+Xe"),f=o("sR1s");function a(l){return l&&Object(b.a)(l)==="object"&&!Array.isArray(l)&&!y.isValidElement(l)}function u(l){return typeof l=="string"?!0:Object(e.c)(l)}function r(l,h){var d,s=l.prefixCls,c=l.className,w=l.record,E=l.index,v=l.dataIndex,R=l.render,M=l.children,C=l.component,S=C===void 0?"td":C,_=l.colSpan,A=l.rowSpan,U=l.fixLeft,L=l.fixRight,N=l.firstFixLeft,V=l.lastFixLeft,H=l.firstFixRight,D=l.lastFixRight,W=l.appendNode,F=l.additionalProps,I=F===void 0?{}:F,K=l.ellipsis,ee=l.align,he=l.rowType,de=l.isSticky,Se="".concat(s,"-cell"),Te,ce;if(M)ce=M;else{var be=Object(f.b)(w,v);if(ce=be,R){var Ee=R(be,w,E);a(Ee)?(ce=Ee.children,Te=Ee.props):ce=Ee}}Object(b.a)(ce)==="object"&&!Array.isArray(ce)&&!y.isValidElement(ce)&&(ce=null),K&&(V||H)&&(ce=y.createElement("span",{className:"".concat(Se,"-content")},ce));var ue=Te||{},le=ue.colSpan,$=ue.rowSpan,me=ue.style,re=ue.className,ae=Object(T.a)(ue,["colSpan","rowSpan","style","className"]),Oe=le!==void 0?le:_,se=$!==void 0?$:A;if(Oe===0||se===0)return null;var te={},Q=typeof U=="number",J=typeof L=="number";Q&&(te.position="sticky",te.left=U),J&&(te.position="sticky",te.right=L);var ve={};ee&&(ve.textAlign=ee);var _e,Ae=K===!0?{showTitle:!0}:K;Ae&&(Ae.showTitle||he==="header")&&(typeof ce=="string"||typeof ce=="number"?_e=ce.toString():y.isValidElement(ce)&&typeof ce.props.children=="string"&&(_e=ce.props.children));var Qe=Object(g.a)(Object(g.a)(Object(g.a)({title:_e},ae),I),{},{colSpan:Oe&&Oe!==1?Oe:null,rowSpan:se&&se!==1?se:null,className:m()(Se,c,(d={},Object(P.a)(d,"".concat(Se,"-fix-left"),Q),Object(P.a)(d,"".concat(Se,"-fix-left-first"),N),Object(P.a)(d,"".concat(Se,"-fix-left-last"),V),Object(P.a)(d,"".concat(Se,"-fix-right"),J),Object(P.a)(d,"".concat(Se,"-fix-right-first"),H),Object(P.a)(d,"".concat(Se,"-fix-right-last"),D),Object(P.a)(d,"".concat(Se,"-ellipsis"),K),Object(P.a)(d,"".concat(Se,"-with-append"),W),Object(P.a)(d,"".concat(Se,"-fix-sticky"),(Q||J)&&de),d),I.className,re),style:Object(g.a)(Object(g.a)(Object(g.a)(Object(g.a)({},I.style),ve),te),me),ref:u(S)?h:null});return y.createElement(S,Object.assign({},Qe),W,ce)}var i=y.forwardRef(r);i.displayName="Cell";var n=y.memo(i,function(l,h){return h.shouldCellUpdate?!h.shouldCellUpdate(h.record,l.record):!1});z.a=n},"gb/T":function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.mode.ECB=function(){var g=P.lib.BlockCipherMode.extend();return g.Encryptor=g.extend({processBlock:function(T,b){this._cipher.encryptBlock(T,b)}}),g.Decryptor=g.extend({processBlock:function(T,b){this._cipher.decryptBlock(T,b)}}),g}(),P.mode.ECB})},"h/E3":function(k,z,o){k.exports={information:"information___wfVJL",scroll:"scroll___2bOg0",formWrap:"formWrap___3qgTO",img:"img___2zP-8"}},h78n:function(k,z,o){"use strict";o.d(z,"a",function(){return N});var P=o("q1tI"),g=o.n(P),T=o("TSYQ"),b=o.n(T),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},x=function(D){var W=D.map(function(){return Object(P.useRef)()}),F=Object(P.useRef)();return Object(P.useEffect)(function(){var I=Date.now(),K=!1;Object.keys(W).forEach(function(ee){var he=W[ee].current;if(!he)return;K=!0;var de=he.style;de.transitionDuration=".3s, .3s, .3s, .06s",F.current&&I-F.current<100&&(de.transitionDuration="0s, 0s")}),K&&(F.current=Date.now())}),[W]};function O(){return O=Object.assign||function(H){for(var D=1;DH.length)&&(D=H.length);for(var W=0,F=new Array(D);W=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,F))continue;W[F]=H[F]}}return W}function n(H,D){if(H==null)return{};var W={},F=Object.keys(H),I,K;for(K=0;K=0)continue;W[I]=H[I]}return W}var l=function(D){var W=D.className,F=D.percent,I=D.prefixCls,K=D.strokeColor,ee=D.strokeLinecap,he=D.strokeWidth,de=D.style,Se=D.trailColor,Te=D.trailWidth,ce=D.transition,be=i(D,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete be.gapPosition;var Ee=Array.isArray(F)?F:[F],ue=Array.isArray(K)?K:[K],le=x(Ee),$=m(le,1),me=$[0],re=he/2,ae=100-he/2,Oe="M ".concat(ee==="round"?re:0,",").concat(re,` L `).concat(ee==="round"?ae:100,",").concat(re),se="0 0 100 ".concat(he),te=0;return g.a.createElement("svg",O({className:b()("".concat(I,"-line"),W),viewBox:se,preserveAspectRatio:"none",style:de},be),g.a.createElement("path",{className:"".concat(I,"-line-trail"),d:Oe,strokeLinecap:ee,stroke:Se,strokeWidth:Te||he,fillOpacity:"0"}),Ee.map(function(Q,J){var ve={strokeDasharray:"".concat(Q,"px, 100px"),strokeDashoffset:"-".concat(te,"px"),transition:ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_e=ue[J]||ue[ue.length-1];return te+=Q,g.a.createElement("path",{key:J,className:"".concat(I,"-line-path"),d:Oe,strokeLinecap:ee,stroke:_e,strokeWidth:he,fillOpacity:"0",ref:me[J],style:ve})}))};l.defaultProps=y;var h=l;function d(){return d=Object.assign||function(H){for(var D=1;DH.length)&&(D=H.length);for(var W=0,F=new Array(D);W=0)continue;if(!Object.prototype.propertyIsEnumerable.call(H,F))continue;W[F]=H[F]}}return W}function C(H,D){if(H==null)return{};var W={},F=Object.keys(H),I,K;for(K=0;K=0)continue;W[I]=H[I]}return W}var S=0;function _(H){return+H.replace("%","")}function A(H){return Array.isArray(H)?H:[H]}function U(H,D,W,F){var I=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,K=arguments.length>5?arguments[5]:void 0,ee=50-F/2,he=0,de=-ee,Se=0,Te=-2*ee;switch(K){case"left":he=-ee,de=0,Se=2*ee,Te=0;break;case"right":he=ee,de=0,Se=-2*ee,Te=0;break;case"bottom":de=ee,Te=2*ee;break;default:}var ce="M 50,50 m ".concat(he,",").concat(de,` a `).concat(ee,",").concat(ee," 0 1 1 ").concat(Se,",").concat(-Te,` - a `).concat(ee,",").concat(ee," 0 1 1 ").concat(-Se,",").concat(Te),be=Math.PI*2*ee,Ee={stroke:W,strokeDasharray:"".concat(D/100*(be-I),"px ").concat(be,"px"),strokeDashoffset:"-".concat(I/2+H/100*(be-I),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ce,pathStyle:Ee}}var L=function(D){var W=D.prefixCls,F=D.strokeWidth,I=D.trailWidth,K=D.gapDegree,ee=D.gapPosition,he=D.trailColor,de=D.strokeLinecap,Se=D.style,Te=D.className,ce=D.strokeColor,be=D.percent,Ee=M(D,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ue=Object(P.useMemo)(function(){return S+=1,S},[]),le=U(0,100,he,F,K,ee),$=le.pathString,me=le.pathStyle,re=A(be),ae=A(ce),Oe=ae.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),se=x(re),te=s(se,1),Q=te[0],J=function(){var _e=0;return re.map(function(Ae,Qe){var tt=ae[Qe]||ae[ae.length-1],dt=Object.prototype.toString.call(tt)==="[object Object]"?"url(#".concat(W,"-gradient-").concat(ue,")"):"",mt=U(_e,Ae,tt,F,K,ee);return _e+=Ae,g.a.createElement("path",{key:Qe,className:"".concat(W,"-circle-path"),d:mt.pathString,stroke:dt,strokeLinecap:de,strokeWidth:F,opacity:Ae===0?0:1,fillOpacity:"0",style:mt.pathStyle,ref:Q[Qe]})})};return g.a.createElement("svg",d({className:b()("".concat(W,"-circle"),Te),viewBox:"0 0 100 100",style:Se},Ee),Oe&&g.a.createElement("defs",null,g.a.createElement("linearGradient",{id:"".concat(W,"-gradient-").concat(ue),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Oe).sort(function(ve,_e){return _(ve)-_(_e)}).map(function(ve,_e){return g.a.createElement("stop",{key:_e,offset:ve,stopColor:Oe[ve]})}))),g.a.createElement("path",{className:"".concat(W,"-circle-trail"),d:$,stroke:he,strokeLinecap:de,strokeWidth:I||F,fillOpacity:"0",style:me}),J().reverse())};L.defaultProps=y;var N=L,V={Line:h,Circle:N}},hW5Z:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2rjmw",flex_space_between:"flex_space_between___1LywI",flex_box_vertical_center:"flex_box_vertical_center___S66g_",flex_box_center_end:"flex_box_center_end___1QDp6",flex_box_column:"flex_box_column___12YxX",complete:"complete___2qtu-",cancel:"cancel___3WJG4",save:"save___oTylI"}},hW8S:function(k,z,o){"use strict";o.d(z,"a",function(){return b}),o.d(z,"c",function(){return y}),o.d(z,"b",function(){return x});var P=o("VTBJ"),g=o("Ff2n"),T=o("Kwbf"),b="RC_TABLE_INTERNAL_COL_DEFINE";function y(O){var m=O.expandable,e=Object(g.a)(O,["expandable"]);return"expandable"in O?Object(P.a)(Object(P.a)({},e),m):e}function x(O){return Object.keys(O).reduce(function(m,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(m[e]=O[e]),m},{})}},"iL++":function(k,z,o){k.exports={flex_box_center:"flex_box_center___2pHUo",flex_space_between:"flex_space_between___3Bfes",flex_box_vertical_center:"flex_box_vertical_center___1thiW",flex_box_center_end:"flex_box_center_end___3Zr7k",flex_box_column:"flex_box_column___3xe1a",list:"list___3rlGv",wrap:"wrap____oZzM",lockWrap:"lockWrap___24eY2",top:"top___3SCOc",sign:"sign____uZ_B",name:"name___2nHyM",img:"img___3Spn7",text:"text___1Pg2L",btns:"btns___Kr_Ti",bottom:"bottom___2_iOx"}},ic2d:function(k,z,o){"use strict";o.d(z,"a",function(){return b});var P=o("FWmy"),g=o("746U");class T{constructor(){this.data=new Map}add(y,x){P.a(g.l(y)),P.a(g.k(x)),P.a(!this.data.has(y),"There is already an extension with this id"),this.data.set(y,x)}as(y){return this.data.get(y)||null}}const b=new T},jO9C:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.Iso97971={pad:function(g,T){g.concat(P.lib.WordArray.create([2147483648],1)),P.pad.ZeroPadding.pad(g,T)},unpad:function(g){P.pad.ZeroPadding.unpad(g),g.sigBytes--}},P.pad.Iso97971})},ji0R:function(k,z,o){k.exports=o.p+"static/douyu.3e6df9ee.jpg"},ju9d:function(k,z,o){"use strict";var P=o("g9YV"),g=o("wCAj"),T=o("miYZ"),b=o("tsqr"),y=o("5Dmo"),x=o("3S7+"),O=o("sRBo"),m=o("kaz8"),e=o("oBTY"),f=o("9og8"),a=o("tJVT"),u=o("k1fw"),r=o("+L6B"),i=o("2/Rp"),n=o("O3gP"),l=o("lrIw"),h=o("5NDa"),d=o("5rEg"),s=o("y8nQ"),c=o("Vl3Y"),w=o("OaEy"),E=o("2fM7"),v=o("WmNS"),R=o.n(v),M=o("q1tI"),C=o.n(M),S=o("55Ip"),_=o("wd/R"),A=o.n(_),U=o("RotF"),L=o.n(U),N=o("E7E6"),V=o.n(N),H=o("oUNq"),D=o("Nf5h"),W=o("Fhpe"),F=o.n(W),I=[];function K(Se){var Te=Se.onSearch,ce=Se.schools;return C.a.createElement(c.a,{colon:!1,layout:"inline",onFinish:Te,initialValues:{keyword:"",school_name:"",search_type:"1"},className:"search-form"},C.a.createElement(c.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},C.a.createElement(E.a,{dropdownClassName:F.a.selectdown,style:{width:148}},C.a.createElement(E.a.Option,{value:"1"},"\u59D3\u540D"),C.a.createElement(E.a.Option,{value:"2"},"\u624B\u673A\u53F7"),C.a.createElement(E.a.Option,{value:"3"},"\u90AE\u7BB1"))),C.a.createElement(c.a.Item,{label:"\u641C\u7D22\u5185\u5BB9",name:"keyword",style:{marginLeft:44},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"}]},C.a.createElement(d.a,{allowClear:!0,style:{width:170},size:"large"})),C.a.createElement(c.a.Item,{label:"\u5355\u4F4D",name:"school_name",style:{marginLeft:10}},C.a.createElement(l.a,{options:ce,style:{width:383},size:"large",showSearch:!0,filterOption:function(Ee,ue){return ue.value.toUpperCase().indexOf(Ee.toUpperCase())!==-1},placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0"})),C.a.createElement(c.a.Item,null,C.a.createElement(i.a,{type:"primary",style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:16,color:"#165DFF",border:"1px solid #BACFFE"},htmlType:"submit"},"\u641C\u7D22")))}var ee;(function(Se){Se[Se.INITDATA=0]="INITDATA",Se[Se.INITSCHOOLS=1]="INITSCHOOLS",Se[Se.SHOWLOADING=2]="SHOWLOADING",Se[Se.SELECTEDIDS=3]="SELECTEDIDS",Se[Se.SETQUERY=4]="SETQUERY",Se[Se.SETPAGE=5]="SETPAGE"})(ee||(ee={}));function he(Se,Te){switch(Te.type){case ee.INITDATA:return Object(u.a)(Object(u.a)({},Se),Te.payload);case ee.SETQUERY:return Object(u.a)(Object(u.a)({},Se),Te.payload);case ee.SETPAGE:return Object(u.a)(Object(u.a)({},Se),{},{page:Te.payload,reload:!1});case ee.SHOWLOADING:return Object(u.a)(Object(u.a)({},Se),{},{loading:Te.payload});case ee.INITSCHOOLS:return Object(u.a)(Object(u.a)({},Se),{},{schools:Te.payload});case ee.SELECTEDIDS:return Object(u.a)(Object(u.a)({},Se),{},{selectedIds:Te.payload});default:throw new Error}}var de={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};z.a=function(Se){var Te=Se.onSelect,ce=Se.onCancel,be=Se.container_id,Ee=Se.container_type,ue=Object(M.useReducer)(he,de),le=Object(a.a)(ue,2),$=le[0],me=le[1],re=$.data,ae=$.schools,Oe=$.loading,se=$.selectedIds,te=$.page,Q=$.count,J=$.query,ve=$.reload;Object(M.useEffect)(function(){function vt(){return Et.apply(this,arguments)}function Et(){return Et=Object(f.a)(R.a.mark(function Ye(){var Ue,ft,jt;return R.a.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:return Pt.next=2,Object(H.Ab)(Object(u.a)(Object(u.a)({},J),{},{page:te,container_type:Ee,container_id:be}));case 2:Ue=Pt.sent,ft=Ue.users,jt=Ue.user_count,me({type:ee.INITDATA,payload:{data:ve?ft:[].concat(Object(e.a)(re),Object(e.a)(ft)),count:jt}});case 6:case"end":return Pt.stop()}},Ye)})),Et.apply(this,arguments)}J&&vt()},[te,J,ve,be,Ee]),Object(M.useEffect)(function(){function vt(){return Et.apply(this,arguments)}function Et(){return Et=Object(f.a)(R.a.mark(function Ye(){var Ue,ft;return R.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return yt.next=2,Object(H.nb)({});case 2:Ue=yt.sent,ft=Ue.school_names,me({type:ee.INITSCHOOLS,payload:ft.map(function(Pt){return{value:Pt}})});case 5:case"end":return yt.stop()}},Ye)})),Et.apply(this,arguments)}vt()},[]);var _e=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(Et,Ye){return C.a.createElement(m.a,{value:Ye.numid,checked:se.includes(Ye.numid),disabled:!!Et})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(Et,Ye){return C.a.createElement("div",null,C.a.createElement(x.a,{placement:"bottom",title:Et},C.a.createElement(S.a,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(Ye.login),target:"_blank"},Et||"--")))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(Et){return C.a.createElement(x.a,{placement:"bottom",title:Et},C.a.createElement("span",{style:{color:"#000000"}},Et||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(Et){return C.a.createElement(x.a,{placement:"bottom",title:Et},C.a.createElement("span",{style:{color:"#000000"}},Et||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(Et){return C.a.createElement(x.a,{placement:"bottom",title:Et},C.a.createElement("span",{style:{color:"#000000"}},Et||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(Et){return C.a.createElement(x.a,{placement:"bottom",title:Et},C.a.createElement("span",{style:{color:"#000000"}},Et||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(Et){return C.a.createElement(x.a,{placement:"bottom",title:Et},C.a.createElement("span",{style:{color:"#000000"}},Et||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(Et){return C.a.createElement("span",{style:{color:"#000000"}},Et?"\u662F":"\u5426")}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(Et){return C.a.createElement(x.a,{placement:"bottom",title:Et?A()(Et).format("YYYY-MM-DD HH:mm"):"- -"},C.a.createElement("span",{style:{color:"#000000"}},Et?A()(Et).format("YYYY-MM-DD HH:mm"):"- -"))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(Et){if(Et===1)return C.a.createElement("span",{style:{color:"#000000"}},"\u5DF2\u6DFB\u52A0")}}];function Ae(vt){me({type:ee.SETQUERY,payload:{page:1,reload:!0,query:vt}})}function Qe(vt){me({type:ee.SETPAGE,payload:vt})}function tt(vt){var Et=se.indexOf(vt);Et>=0?se.splice(Et,1):se.push(vt),me({type:ee.SELECTEDIDS,payload:Object(e.a)(se)})}function dt(){se.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Te(se,be),me({type:ee.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var mt=Q>te*10;return C.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},C.a.createElement(K,{onSearch:Ae,schools:ae}),J?C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:"flexd-table-header mt20"},C.a.createElement(D.f,null,C.a.createElement(g.a,{pagination:!1,dataSource:I,columns:_e}))),C.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},C.a.createElement(L.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:Qe,hasMore:mt,useWindow:!1},C.a.createElement(D.f,null,C.a.createElement(g.a,{loading:Oe,showHeader:!1,pagination:!1,dataSource:re,columns:_e,onRow:function(Et){return{onClick:function(Ue){Et.added!==1&&tt(Et.numid)}}}})))),C.a.createElement("div",{className:"flex-container flex-end"},C.a.createElement(i.a,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:ce},"\u53D6\u6D88"),C.a.createElement(i.a,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:dt},"\u786E\u5B9A"))):C.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},C.a.createElement("img",{src:V.a,width:"100",alt:""}),C.a.createElement("br",null),C.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(k,z,o){"use strict";o.d(z,"a",function(){return Yr});var P=o("rePB"),g=o("ODXe"),T=o("Ff2n"),b=o("VTBJ"),y=o("q1tI"),x=o("TSYQ"),O=o.n(x),m=o("Zm9Q"),e=o("6cGi"),f=o("KQm4"),a=o("xEkU"),u=o.n(a),r=o("t23M");function i(Ze){var ct=Object(y.useRef)(),bt=Object(y.useRef)(!1);function nt(){for(var Me=arguments.length,Je=new Array(Me),Le=0;LeMt&&(ln=Mt-fn),Object(y.useMemo)(function(){if(!Je.length)return[0,0];for(var cn=Je.length,un=cn,Wn=0;Wnrt+ln){un=Wn-1;break}}for(var jr=0,Mr=cn-1;Mr>=0;Mr-=1){var Qr=Ze.get(Je[Mr].key)||w;if(Qr[pt]1&&arguments[1]!==void 0?arguments[1]:!1,nt=ct&&typeof ct.getBoundingClientRect=="function"&&ct.getBoundingClientRect().width;if(nt){if(bt){var Me=getComputedStyle(ct),Je=Me.marginLeft,Le=Me.marginRight;nt+=+Je.replace("px","")+ +Le.replace("px","")}nt=+nt.toFixed(6)}return nt||0},_e=function(ct,bt,nt){ct&&Object(H.a)(ct.style)==="object"&&(ct.style[bt]=nt)},Ae=function(){return re.any},Qe=o("bdgK"),tt=o("i8i4"),dt=o.n(tt),mt=o("wgJM"),vt=o("l4aY"),Et=o("m+aA"),Ye=o("c+Xe"),Ue=o("zT1h"),ft=o("QC+M");function jt(Ze,ct,bt){return bt?Ze[0]===ct[0]:Ze[0]===ct[0]&&Ze[1]===ct[1]}function yt(Ze,ct,bt){var nt=Ze[ct]||{};return Object(b.a)(Object(b.a)({},nt),bt)}function Pt(Ze,ct,bt,nt){for(var Me=bt.points,Je=Object.keys(Ze),Le=0;Le1&&arguments[1]!==void 0?arguments[1]:2;ct();var Je=Object(mt.a)(function(){Me<=1?nt({isCanceled:function(){return Je!==Ze.current}}):bt(nt,Me-1)});Ze.current=Je}return y.useEffect(function(){return function(){ct()}},[]),[bt,ct]},Hn=[_t,Ot,Nt,ut],Xn=!1,Fn=!0;function xn(Ze){return Ze===Nt||Ze===ut}var fr=function(Ze,ct){var bt=y.useState(ht),nt=Object(g.a)(bt,2),Me=nt[0],Je=nt[1],Le=mn(),$e=Object(g.a)(Le,2),qe=$e[0],pt=$e[1];function rt(){Je(_t)}return on(function(){if(Me!==ht&&Me!==ut){var Mt=Hn.indexOf(Me),Vt=Hn[Mt+1],fn=ct(Me);fn===Xn?Je(Vt):qe(function(ln){function cn(){if(ln.isCanceled())return;Je(Vt)}fn===!0?cn():Promise.resolve(fn).then(cn)})}},[Ze,Me]),y.useEffect(function(){return function(){pt()}},[]),[rt,Me]},Yn=function(Ze){var ct=Object(y.useRef)(),bt=Object(y.useRef)(Ze);bt.current=Ze;var nt=y.useCallback(function(Le){bt.current(Le)},[]);function Me(Le){Le&&(Le.removeEventListener(Ct,nt),Le.removeEventListener(Bt,nt))}function Je(Le){ct.current&&ct.current!==Le&&Me(ct.current),Le&&Le!==ct.current&&(Le.addEventListener(Ct,nt),Le.addEventListener(Bt,nt),ct.current=Le)}return y.useEffect(function(){return function(){Me(ct.current)}},[]),[Je,Me]};function ar(Ze,ct,bt,nt){var Me=nt.motionEnter,Je=Me===void 0?!0:Me,Le=nt.motionAppear,$e=Le===void 0?!0:Le,qe=nt.motionLeave,pt=qe===void 0?!0:qe,rt=nt.motionDeadline,Mt=nt.motionLeaveImmediately,Vt=nt.onAppearPrepare,fn=nt.onEnterPrepare,ln=nt.onLeavePrepare,cn=nt.onAppearStart,un=nt.onEnterStart,Wn=nt.onLeaveStart,Cn=nt.onAppearActive,jr=nt.onEnterActive,Mr=nt.onLeaveActive,Qr=nt.onAppearEnd,Wr=nt.onEnterEnd,ta=nt.onLeaveEnd,Kn=nt.onVisibleChanged,wr=Ft(),Gn=Object(g.a)(wr,2),En=Gn[0],jn=Gn[1],Vr=Ft(et),ua=Object(g.a)(Vr,2),hr=ua[0],aa=ua[1],xa=Ft(null),ha=Object(g.a)(xa,2),Ca=ha[0],Tr=ha[1],br=Object(y.useRef)(!1),Ir=Object(y.useRef)(null),er=Object(y.useRef)(!1),pa=Object(y.useRef)(null);function Ea(){var Ba=bt();return Ba||pa.current}var ba=Object(y.useRef)(!1);function Oa(Ba){var Ma=Ea();if(Ba&&!Ba.deadline&&Ba.target!==Ma)return;var Za;hr===at&&ba.current?Za=Qr==null?void 0:Qr(Ma,Ba):hr===Pe&&ba.current?Za=Wr==null?void 0:Wr(Ma,Ba):hr===Xe&&ba.current&&(Za=ta==null?void 0:ta(Ma,Ba)),Za!==!1&&!er.current&&(aa(et),Tr(null))}var ga=Yn(Oa),ka=Object(g.a)(ga,1),Ua=ka[0],Fa=y.useMemo(function(){var Ba,Ma,Za;switch(hr){case"appear":return Ba={},Object(P.a)(Ba,_t,Vt),Object(P.a)(Ba,Ot,cn),Object(P.a)(Ba,Nt,Cn),Ba;case"enter":return Ma={},Object(P.a)(Ma,_t,fn),Object(P.a)(Ma,Ot,un),Object(P.a)(Ma,Nt,jr),Ma;case"leave":return Za={},Object(P.a)(Za,_t,ln),Object(P.a)(Za,Ot,Wn),Object(P.a)(Za,Nt,Mr),Za;default:return{}}},[hr]),ni=fr(hr,function(Ba){if(Ba===_t){var Ma=Fa[_t];return Ma?Ma(Ea()):Xn}if(Na in Fa){var Za;Tr(((Za=Fa[Na])===null||Za===void 0?void 0:Za.call(Fa,Ea(),null))||null)}return Na===Nt&&(Ua(Ea()),rt>0&&(clearTimeout(Ir.current),Ir.current=setTimeout(function(){Oa({deadline:!0})},rt))),Fn}),Fi=Object(g.a)(ni,2),Ai=Fi[0],Na=Fi[1],bi=xn(Na);ba.current=bi,on(function(){jn(ct);var Ba=br.current;if(br.current=!0,!Ze)return;var Ma;!Ba&&ct&&$e&&(Ma=at),Ba&&ct&&Je&&(Ma=Pe),(Ba&&!ct&&pt||!Ba&&Mt&&!ct&&pt)&&(Ma=Xe),Ma&&(aa(Ma),Ai())},[ct]),Object(y.useEffect)(function(){(hr===at&&!$e||hr===Pe&&!Je||hr===Xe&&!pt)&&aa(et)},[$e,Je,pt]),Object(y.useEffect)(function(){return function(){clearTimeout(Ir.current),er.current=!0}},[]),Object(y.useEffect)(function(){En!==void 0&&hr===et&&(Kn==null||Kn(En))},[En,hr]);var Si=Ca;return Fa[_t]&&Na===Ot&&(Si=Object(b.a)({transition:"none"},Si)),[hr,Na,Si,En!=null?En:ct]}var nr=function(Ze){Object(S.a)(bt,Ze);var ct=Object(_.a)(bt);function bt(){return Object(R.a)(this,bt),ct.apply(this,arguments)}return Object(M.a)(bt,[{key:"render",value:function(){return this.props.children}}]),bt}(y.Component),Rr=nr;function pr(Ze){var ct=Ze;Object(H.a)(Ze)==="object"&&(ct=Ze.transitionSupport);function bt(Me){return!!(Me.motionName&&ct)}var nt=y.forwardRef(function(Me,Je){var Le=Me.visible,$e=Le===void 0?!0:Le,qe=Me.removeOnLeave,pt=qe===void 0?!0:qe,rt=Me.forceRender,Mt=Me.children,Vt=Me.motionName,fn=Me.leavedClassName,ln=Me.eventProps,cn=bt(Me),un=Object(y.useRef)(),Wn=Object(y.useRef)();function Cn(){try{return Object(Et.a)(un.current||Wn.current)}catch(aa){return null}}var jr=ar(cn,$e,Cn,Me),Mr=Object(g.a)(jr,4),Qr=Mr[0],Wr=Mr[1],ta=Mr[2],Kn=Mr[3],wr=y.useRef(Kn);Kn&&(wr.current=!0);var Gn=Object(y.useRef)(Je);Gn.current=Je;var En=y.useCallback(function(aa){un.current=aa,Object(Ye.b)(Gn.current,aa)},[]),jn,Vr=Object(b.a)(Object(b.a)({},ln),{},{visible:$e});if(!Mt)jn=null;else if(Qr===et||!bt(Me))Kn?jn=Mt(Object(b.a)({},Vr),En):!pt&&wr.current?jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{className:fn}),En):rt?jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{style:{display:"none"}}),En):jn=null;else{var ua,hr;Wr===_t?hr="prepare":xn(Wr)?hr="active":Wr===Ot&&(hr="start"),jn=Mt(Object(b.a)(Object(b.a)({},Vr),{},{className:O()(Ke(Vt,Qr),(ua={},Object(P.a)(ua,Ke(Vt,"".concat(Qr,"-").concat(hr)),hr),Object(P.a)(ua,Vt,typeof Vt=="string"),ua)),style:ta}),En)}return y.createElement(Rr,{ref:Wn},jn)});return nt.displayName="CSSMotion",nt}var sn=pr(rn),qt="add",On="keep",Fr="remove",Or="removed";function xr(Ze){var ct;return Ze&&Object(H.a)(Ze)==="object"&&"key"in Ze?ct=Ze:ct={key:Ze},Object(b.a)(Object(b.a)({},ct),{},{key:String(ct.key)})}function dr(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ze.map(xr)}function pe(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],bt=[],nt=0,Me=ct.length,Je=dr(Ze),Le=dr(ct);Je.forEach(function(pt){for(var rt=!1,Mt=nt;Mt1});return qe.forEach(function(pt){bt=bt.filter(function(rt){var Mt=rt.key,Vt=rt.status;return Mt!==pt||Vt!==Fr}),bt.forEach(function(rt){rt.key===pt&&(rt.status=On)})}),bt}var X=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function q(Ze){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,bt=function(nt){Object(S.a)(Je,nt);var Me=Object(_.a)(Je);function Je(){var Le;return Object(R.a)(this,Je),Le=Me.apply(this,arguments),Le.state={keyEntities:[]},Le.removeKey=function($e){Le.setState(function(qe){var pt=qe.keyEntities;return{keyEntities:pt.map(function(rt){return rt.key!==$e?rt:Object(b.a)(Object(b.a)({},rt),{},{status:Or})})}})},Le}return Object(M.a)(Je,[{key:"render",value:function(){var $e=this,qe=this.state.keyEntities,pt=this.props,rt=pt.component,Mt=pt.children,Vt=pt.onVisibleChanged,fn=Object(T.a)(pt,["component","children","onVisibleChanged"]),ln=rt||y.Fragment,cn={};return X.forEach(function(un){cn[un]=fn[un],delete fn[un]}),delete fn.keys,y.createElement(ln,fn,qe.map(function(un){var Wn=un.status,Cn=Object(T.a)(un,["status"]),jr=Wn===qt||Wn===On;return y.createElement(ct,Object(v.a)({},cn,{key:Cn.key,visible:jr,eventProps:Cn,onVisibleChanged:function(Qr){Vt==null||Vt(Qr,{key:Cn.key}),Qr||$e.removeKey(Cn.key)}}),Mt)}))}}],[{key:"getDerivedStateFromProps",value:function($e,qe){var pt=$e.keys,rt=qe.keyEntities,Mt=dr(pt),Vt=pe(rt,Mt);return{keyEntities:Vt.filter(function(fn){var ln=rt.find(function(cn){var un=cn.key;return fn.key===un});return!(ln&&ln.status===Or&&fn.status===Fr)})}}}]),Je}(y.Component);return bt.defaultProps={component:"div"},bt}var oe=q(rn),De=sn;function fe(Ze){var ct=Ze.prefixCls,bt=Ze.motion,nt=Ze.animation,Me=Ze.transitionName;return bt||(nt?{motionName:"".concat(ct,"-").concat(nt)}:Me?{motionName:Me}:null)}function ot(Ze){var ct=Ze.prefixCls,bt=Ze.visible,nt=Ze.zIndex,Me=Ze.mask,Je=Ze.maskMotion,Le=Ze.maskAnimation,$e=Ze.maskTransitionName;if(!Me)return null;var qe={};return(Je||$e||Le)&&(qe=Object(b.a)({motionAppear:!0},fe({motion:Je,prefixCls:ct,transitionName:$e,animation:Le}))),y.createElement(De,Object(v.a)({},qe,{visible:bt,removeOnLeave:!0}),function(pt){var rt=pt.className;return y.createElement("div",{style:{zIndex:nt},className:O()("".concat(ct,"-mask"),rt)})})}var Qt=o("9mu1"),Mn=o("o0o1"),Vn=o.n(Mn),$t=o("HaE+"),gn=["measure","align",null,"motion"],pn=function(Ze,ct){var bt=Object(y.useState)(null),nt=Object(g.a)(bt,2),Me=nt[0],Je=nt[1],Le=Object(y.useRef)(),$e=Object(y.useRef)(!1);function qe(Mt){$e.current||Je(Mt)}function pt(){mt.a.cancel(Le.current)}function rt(Mt){pt(),Le.current=Object(mt.a)(function(){qe(function(Vt){switch(Me){case"align":return"motion";case"motion":return"stable";default:}return Vt}),Mt==null||Mt()})}return Object(y.useEffect)(function(){qe("measure")},[Ze]),Object(y.useEffect)(function(){switch(Me){case"measure":ct();break;default:}Me&&(Le.current=Object(mt.a)(Object($t.a)(Vn.a.mark(function Mt(){var Vt,fn;return Vn.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:Vt=gn.indexOf(Me),fn=gn[Vt+1],fn&&Vt!==-1&&qe(fn);case 3:case"end":return cn.stop()}},Mt)}))))},[Me]),Object(y.useEffect)(function(){return function(){$e.current=!0,pt()}},[]),[Me,rt]},Ar=function(Ze){var ct=y.useState({width:0,height:0}),bt=Object(g.a)(ct,2),nt=bt[0],Me=bt[1];function Je($e){Me({width:$e.offsetWidth,height:$e.offsetHeight})}var Le=y.useMemo(function(){var $e={};if(Ze){var qe=nt.width,pt=nt.height;Ze.indexOf("height")!==-1&&pt?$e.height=pt:Ze.indexOf("minHeight")!==-1&&pt&&($e.minHeight=pt),Ze.indexOf("width")!==-1&&qe?$e.width=qe:Ze.indexOf("minWidth")!==-1&&qe&&($e.minWidth=qe)}return $e},[Ze,nt]);return[Le,Je]},ra=y.forwardRef(function(Ze,ct){var bt=Ze.visible,nt=Ze.prefixCls,Me=Ze.className,Je=Ze.style,Le=Ze.children,$e=Ze.zIndex,qe=Ze.stretch,pt=Ze.destroyPopupOnHide,rt=Ze.forceRender,Mt=Ze.align,Vt=Ze.point,fn=Ze.getRootDomNode,ln=Ze.getClassNameFromAlign,cn=Ze.onAlign,un=Ze.onMouseEnter,Wn=Ze.onMouseLeave,Cn=Ze.onMouseDown,jr=Ze.onTouchStart,Mr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useState)(),ta=Object(g.a)(Wr,2),Kn=ta[0],wr=ta[1],Gn=Ar(qe),En=Object(g.a)(Gn,2),jn=En[0],Vr=En[1];function ua(){qe&&Vr(fn())}var hr=pn(bt,ua),aa=Object(g.a)(hr,2),xa=aa[0],ha=aa[1],Ca=Object(y.useRef)();function Tr(){return Vt||fn}function br(){var ga;(ga=Mr.current)===null||ga===void 0||ga.forceAlign()}function Ir(ga,ka){var Ua=ln(ka);Kn!==Ua&&wr(Ua),xa==="align"&&(Kn!==Ua?Promise.resolve().then(function(){br()}):ha(function(){var Fa;(Fa=Ca.current)===null||Fa===void 0||Fa.call(Ca)}),cn==null||cn(ga,ka))}var er=Object(b.a)({},fe(Ze));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ga){var ka=er[ga];er[ga]=function(Ua,Fa){return ha(),ka==null?void 0:ka(Ua,Fa)}});function pa(){return new Promise(function(ga){Ca.current=ga})}y.useEffect(function(){!er.motionName&&xa==="motion"&&ha()},[er.motionName,xa]),y.useImperativeHandle(ct,function(){return{forceAlign:br,getElement:function(){return Qr.current}}});var Ea=Object(b.a)(Object(b.a)({},jn),{},{zIndex:$e,opacity:xa==="motion"||xa==="stable"||!bt?void 0:0,pointerEvents:xa==="stable"?void 0:"none"},Je),ba=!0;(Mt==null?void 0:Mt.points)&&(xa==="align"||xa==="stable")&&(ba=!1);var Oa=Le;return y.Children.count(Le)>1&&(Oa=y.createElement("div",{className:"".concat(nt,"-content")},Le)),y.createElement(De,Object(v.a)({visible:bt,ref:Qr,leavedClassName:"".concat(nt,"-hidden")},er,{onAppearPrepare:pa,onEnterPrepare:pa,removeOnLeave:pt,forceRender:rt}),function(ga,ka){var Ua=ga.className,Fa=ga.style,ni=O()(nt,Me,Kn,Ua);return y.createElement(Qt.a,{target:Tr(),key:"popup",ref:Mr,monitorWindowResize:!0,disabled:ba,align:Mt,onAlign:Ir},y.createElement("div",{ref:ka,className:ni,onMouseEnter:un,onMouseLeave:Wn,onMouseDownCapture:Cn,onTouchStartCapture:jr,style:Object(b.a)(Object(b.a)({},Fa),Ea)},Oa))})});ra.displayName="PopupInner";var oa=ra,ir=y.forwardRef(function(Ze,ct){var bt=Ze.prefixCls,nt=Ze.visible,Me=Ze.zIndex,Je=Ze.children,Le=Ze.mobile;Le=Le===void 0?{}:Le;var $e=Le.popupClassName,qe=Le.popupStyle,pt=Le.popupMotion,rt=pt===void 0?{}:pt,Mt=Le.popupRender,Vt=y.useRef();y.useImperativeHandle(ct,function(){return{forceAlign:function(){},getElement:function(){return Vt.current}}});var fn=Object(b.a)({zIndex:Me},qe),ln=Je;return y.Children.count(Je)>1&&(ln=y.createElement("div",{className:"".concat(bt,"-content")},Je)),Mt&&(ln=Mt(ln)),y.createElement(De,Object(v.a)({visible:nt,ref:Vt,removeOnLeave:!0},rt),function(cn,un){var Wn=cn.className,Cn=cn.style,jr=O()(bt,$e,Wn);return y.createElement("div",{ref:un,className:jr,style:Object(b.a)(Object(b.a)({},Cn),fn)},ln)})});ir.displayName="MobilePopupInner";var Ra=ir,La=["visible","mobile"],ca=y.forwardRef(function(Ze,ct){var bt=Ze.visible,nt=Ze.mobile,Me=Object(T.a)(Ze,La),Je=Object(y.useState)(bt),Le=Object(g.a)(Je,2),$e=Le[0],qe=Le[1],pt=Object(y.useState)(!1),rt=Object(g.a)(pt,2),Mt=rt[0],Vt=rt[1],fn=Object(b.a)(Object(b.a)({},Me),{},{visible:$e});Object(y.useEffect)(function(){qe(bt),bt&&nt&&Vt(it())},[bt,nt]);var ln=Mt?y.createElement(Ra,Object(v.a)({},fn,{mobile:nt,ref:ct})):y.createElement(oa,Object(v.a)({},fn,{ref:ct}));return y.createElement("div",null,y.createElement(ot,fn),ln)});ca.displayName="Popup";var Ka=ca,wa=y.createContext(null),Ja=wa;function ja(){}function li(){return""}function oi(Ze){return Ze?Ze.ownerDocument:window.document}var fa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ma(Ze){var ct=function(bt){Object(S.a)(Me,bt);var nt=Object(_.a)(Me);function Me(Je){var Le;Object(R.a)(this,Me),Le=nt.call(this,Je),Le.popupRef=y.createRef(),Le.triggerRef=y.createRef(),Le.attachId=void 0,Le.clickOutsideHandler=void 0,Le.touchOutsideHandler=void 0,Le.contextMenuOutsideHandler1=void 0,Le.contextMenuOutsideHandler2=void 0,Le.mouseDownTimeout=void 0,Le.focusTime=void 0,Le.preClickTime=void 0,Le.preTouchTime=void 0,Le.delayTimer=void 0,Le.hasPopupMouseDown=void 0,Le.onMouseEnter=function(qe){var pt=Le.props.mouseEnterDelay;Le.fireEvents("onMouseEnter",qe),Le.delaySetPopupVisible(!0,pt,pt?null:qe)},Le.onMouseMove=function(qe){Le.fireEvents("onMouseMove",qe),Le.setPoint(qe)},Le.onMouseLeave=function(qe){Le.fireEvents("onMouseLeave",qe),Le.delaySetPopupVisible(!1,Le.props.mouseLeaveDelay)},Le.onPopupMouseEnter=function(){Le.clearDelayTimer()},Le.onPopupMouseLeave=function(qe){var pt;if(qe.relatedTarget&&!qe.relatedTarget.setTimeout&&Object(vt.a)((pt=Le.popupRef.current)===null||pt===void 0?void 0:pt.getElement(),qe.relatedTarget))return;Le.delaySetPopupVisible(!1,Le.props.mouseLeaveDelay)},Le.onFocus=function(qe){Le.fireEvents("onFocus",qe),Le.clearDelayTimer(),Le.isFocusToShow()&&(Le.focusTime=Date.now(),Le.delaySetPopupVisible(!0,Le.props.focusDelay))},Le.onMouseDown=function(qe){Le.fireEvents("onMouseDown",qe),Le.preClickTime=Date.now()},Le.onTouchStart=function(qe){Le.fireEvents("onTouchStart",qe),Le.preTouchTime=Date.now()},Le.onBlur=function(qe){Le.fireEvents("onBlur",qe),Le.clearDelayTimer(),Le.isBlurToHide()&&Le.delaySetPopupVisible(!1,Le.props.blurDelay)},Le.onContextMenu=function(qe){qe.preventDefault(),Le.fireEvents("onContextMenu",qe),Le.setPopupVisible(!0,qe)},Le.onContextMenuClose=function(){Le.isContextMenuToShow()&&Le.close()},Le.onClick=function(qe){if(Le.fireEvents("onClick",qe),Le.focusTime){var pt;if(Le.preClickTime&&Le.preTouchTime?pt=Math.min(Le.preClickTime,Le.preTouchTime):Le.preClickTime?pt=Le.preClickTime:Le.preTouchTime&&(pt=Le.preTouchTime),Math.abs(pt-Le.focusTime)<20)return;Le.focusTime=0}Le.preClickTime=0,Le.preTouchTime=0,Le.isClickToShow()&&(Le.isClickToHide()||Le.isBlurToHide())&&qe&&qe.preventDefault&&qe.preventDefault();var rt=!Le.state.popupVisible;(Le.isClickToHide()&&!rt||rt&&Le.isClickToShow())&&Le.setPopupVisible(!Le.state.popupVisible,qe)},Le.onPopupMouseDown=function(){if(Le.hasPopupMouseDown=!0,clearTimeout(Le.mouseDownTimeout),Le.mouseDownTimeout=window.setTimeout(function(){Le.hasPopupMouseDown=!1},0),Le.context){var qe;(qe=Le.context).onPopupMouseDown.apply(qe,arguments)}},Le.onDocumentClick=function(qe){if(Le.props.mask&&!Le.props.maskClosable)return;var pt=qe.target,rt=Le.getRootDomNode(),Mt=Le.getPopupDomNode();(!Object(vt.a)(rt,pt)||Le.isContextMenuOnly())&&!Object(vt.a)(Mt,pt)&&!Le.hasPopupMouseDown&&Le.close()},Le.getRootDomNode=function(){var qe=Le.props.getTriggerDOMNode;if(qe)return qe(Le.triggerRef.current);try{var pt=Object(Et.a)(Le.triggerRef.current);if(pt)return pt}catch(rt){}return dt.a.findDOMNode(Object(C.a)(Le))},Le.getPopupClassNameFromAlign=function(qe){var pt=[],rt=Le.props,Mt=rt.popupPlacement,Vt=rt.builtinPlacements,fn=rt.prefixCls,ln=rt.alignPoint,cn=rt.getPopupClassNameFromAlign;return Mt&&Vt&&pt.push(Pt(Vt,fn,qe,ln)),cn&&pt.push(cn(qe)),pt.join(" ")},Le.getComponent=function(){var qe=Le.props,pt=qe.prefixCls,rt=qe.destroyPopupOnHide,Mt=qe.popupClassName,Vt=qe.onPopupAlign,fn=qe.popupMotion,ln=qe.popupAnimation,cn=qe.popupTransitionName,un=qe.popupStyle,Wn=qe.mask,Cn=qe.maskAnimation,jr=qe.maskTransitionName,Mr=qe.maskMotion,Qr=qe.zIndex,Wr=qe.popup,ta=qe.stretch,Kn=qe.alignPoint,wr=qe.mobile,Gn=qe.forceRender,En=Le.state,jn=En.popupVisible,Vr=En.point,ua=Le.getPopupAlign(),hr={};return Le.isMouseEnterToShow()&&(hr.onMouseEnter=Le.onPopupMouseEnter),Le.isMouseLeaveToHide()&&(hr.onMouseLeave=Le.onPopupMouseLeave),hr.onMouseDown=Le.onPopupMouseDown,hr.onTouchStart=Le.onPopupMouseDown,y.createElement(Ka,Object(v.a)({prefixCls:pt,destroyPopupOnHide:rt,visible:jn,point:Kn&&Vr,className:Mt,align:ua,onAlign:Vt,animation:ln,getClassNameFromAlign:Le.getPopupClassNameFromAlign},hr,{stretch:ta,getRootDomNode:Le.getRootDomNode,style:un,mask:Wn,zIndex:Qr,transitionName:cn,maskAnimation:Cn,maskTransitionName:jr,maskMotion:Mr,ref:Le.popupRef,motion:fn,mobile:wr,forceRender:Gn}),typeof Wr=="function"?Wr():Wr)},Le.attachParent=function(qe){mt.a.cancel(Le.attachId);var pt=Le.props,rt=pt.getPopupContainer,Mt=pt.getDocument,Vt=Le.getRootDomNode(),fn;rt?(Vt||rt.length===0)&&(fn=rt(Vt)):fn=Mt(Le.getRootDomNode()).body,fn?fn.appendChild(qe):Le.attachId=Object(mt.a)(function(){Le.attachParent(qe)})},Le.getContainer=function(){var qe=Le.props.getDocument,pt=qe(Le.getRootDomNode()).createElement("div");return pt.style.position="absolute",pt.style.top="0",pt.style.left="0",pt.style.width="100%",Le.attachParent(pt),pt},Le.setPoint=function(qe){var pt=Le.props.alignPoint;if(!pt||!qe)return;Le.setState({point:{pageX:qe.pageX,pageY:qe.pageY}})},Le.handlePortalUpdate=function(){Le.state.prevPopupVisible!==Le.state.popupVisible&&Le.props.afterPopupVisibleChange(Le.state.popupVisible)},Le.triggerContextValue={onPopupMouseDown:Le.onPopupMouseDown};var $e;return"popupVisible"in Je?$e=!!Je.popupVisible:$e=!!Je.defaultPopupVisible,Le.state={prevPopupVisible:$e,popupVisible:$e},fa.forEach(function(qe){Le["fire".concat(qe)]=function(pt){Le.fireEvents(qe,pt)}}),Le}return Object(M.a)(Me,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Le=this.props,$e=this.state;if($e.popupVisible){var qe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(qe=Le.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ue.a)(qe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(qe=qe||Le.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ue.a)(qe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(qe=qe||Le.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ue.a)(qe,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ue.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),mt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Le;return((Le=this.popupRef.current)===null||Le===void 0?void 0:Le.getElement())||null}},{key:"getPopupAlign",value:function(){var Le=this.props,$e=Le.popupPlacement,qe=Le.popupAlign,pt=Le.builtinPlacements;return $e&&pt?yt(pt,$e,qe):qe}},{key:"setPopupVisible",value:function(Le,$e){var qe=this.props.alignPoint,pt=this.state.popupVisible;this.clearDelayTimer(),pt!==Le&&("popupVisible"in this.props||this.setState({popupVisible:Le,prevPopupVisible:pt}),this.props.onPopupVisibleChange(Le)),qe&&$e&&Le&&this.setPoint($e)}},{key:"delaySetPopupVisible",value:function(Le,$e,qe){var pt=this,rt=$e*1e3;if(this.clearDelayTimer(),rt){var Mt=qe?{pageX:qe.pageX,pageY:qe.pageY}:null;this.delayTimer=window.setTimeout(function(){pt.setPopupVisible(Le,Mt),pt.clearDelayTimer()},rt)}else this.setPopupVisible(Le,qe)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Le){var $e=this.props.children.props,qe=this.props;return $e[Le]&&qe[Le]?this["fire".concat(Le)]:$e[Le]||qe[Le]}},{key:"isClickToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Le=this.props.action;return Le==="contextMenu"||Le.length===1&&Le[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("contextMenu")!==-1||qe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Le=this.props,$e=Le.action,qe=Le.hideAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Le=this.props,$e=Le.action,qe=Le.hideAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("focus")!==-1||qe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Le=this.props,$e=Le.action,qe=Le.hideAction;return $e.indexOf("focus")!==-1||qe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Le;(Le=this.popupRef.current)===null||Le===void 0||Le.forceAlign()}}},{key:"fireEvents",value:function(Le,$e){var qe=this.props.children.props[Le];qe&&qe($e);var pt=this.props[Le];pt&&pt($e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Le=this.state.popupVisible,$e=this.props,qe=$e.children,pt=$e.forceRender,rt=$e.alignPoint,Mt=$e.className,Vt=$e.autoDestroy,fn=y.Children.only(qe),ln={key:"trigger"};this.isContextMenuToShow()?ln.onContextMenu=this.onContextMenu:ln.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(ln.onClick=this.onClick,ln.onMouseDown=this.onMouseDown,ln.onTouchStart=this.onTouchStart):(ln.onClick=this.createTwoChains("onClick"),ln.onMouseDown=this.createTwoChains("onMouseDown"),ln.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(ln.onMouseEnter=this.onMouseEnter,rt&&(ln.onMouseMove=this.onMouseMove)):ln.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?ln.onMouseLeave=this.onMouseLeave:ln.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(ln.onFocus=this.onFocus,ln.onBlur=this.onBlur):(ln.onFocus=this.createTwoChains("onFocus"),ln.onBlur=this.createTwoChains("onBlur"));var cn=O()(fn&&fn.props&&fn.props.className,Mt);cn&&(ln.className=cn);var un=Object(b.a)({},ln);Object(Ye.c)(fn)&&(un.ref=Object(Ye.a)(this.triggerRef,fn.ref));var Wn=y.cloneElement(fn,un),Cn;return(Le||this.popupRef.current||pt)&&(Cn=y.createElement(Ze,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Le&&Vt&&(Cn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},Wn,Cn)}}],[{key:"getDerivedStateFromProps",value:function(Le,$e){var qe=Le.popupVisible,pt={};return qe!==void 0&&$e.popupVisible!==qe&&(pt.popupVisible=qe,pt.prevPopupVisible=$e.popupVisible),pt}}]),Me}(y.Component);return ct.contextType=Ja,ct.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:oi,onPopupVisibleChange:ja,afterPopupVisibleChange:ja,onPopupAlign:ja,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ct}var la=ma(ft.a),xe={adjustX:1,adjustY:1},lt={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},Rt={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},wt=lt,Kt=0,Lt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Xt=function(ct,bt,nt){var Me=se(bt),Je=ct.getState();ct.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},Je.defaultActiveFirst),{},Object(P.a)({},Me,nt))})},nn=function(Ze){Object(S.a)(bt,Ze);var ct=Object(_.a)(bt);function bt(nt){var Me;Object(R.a)(this,bt),Me=ct.call(this,nt),Me.onDestroy=function(rt){Me.props.onDestroy(rt)},Me.onKeyDown=function(rt){var Mt=rt.keyCode,Vt=Me.menuInstance,fn=Me.props.store,ln=Me.getVisible();if(Mt===l.a.ENTER)return Me.onTitleClick(rt),Xt(fn,Me.props.eventKey,!0),!0;if(Mt===l.a.RIGHT)return ln?Vt.onKeyDown(rt):(Me.triggerOpenChange(!0),Xt(fn,Me.props.eventKey,!0)),!0;if(Mt===l.a.LEFT){var cn;if(ln)cn=Vt.onKeyDown(rt);else return;return cn||(Me.triggerOpenChange(!1),cn=!0),cn}return ln&&(Mt===l.a.UP||Mt===l.a.DOWN)?Vt.onKeyDown(rt):void 0},Me.onOpenChange=function(rt){Me.props.onOpenChange(rt)},Me.onPopupVisibleChange=function(rt){Me.triggerOpenChange(rt,rt?"mouseenter":"mouseleave")},Me.onMouseEnter=function(rt){var Mt=Me.props,Vt=Mt.eventKey,fn=Mt.onMouseEnter,ln=Mt.store;Xt(ln,Me.props.eventKey,!1),fn({key:Vt,domEvent:rt})},Me.onMouseLeave=function(rt){var Mt=Me.props,Vt=Mt.parentMenu,fn=Mt.eventKey,ln=Mt.onMouseLeave;Vt.subMenuInstance=Object(C.a)(Me),ln({key:fn,domEvent:rt})},Me.onTitleMouseEnter=function(rt){var Mt=Me.props,Vt=Mt.eventKey,fn=Mt.onItemHover,ln=Mt.onTitleMouseEnter;fn({key:Vt,hover:!0}),ln({key:Vt,domEvent:rt})},Me.onTitleMouseLeave=function(rt){var Mt=Me.props,Vt=Mt.parentMenu,fn=Mt.eventKey,ln=Mt.onItemHover,cn=Mt.onTitleMouseLeave;Vt.subMenuInstance=Object(C.a)(Me),ln({key:fn,hover:!1}),cn({key:fn,domEvent:rt})},Me.onTitleClick=function(rt){var Mt=Object(C.a)(Me),Vt=Mt.props;if(Vt.onTitleClick({key:Vt.eventKey,domEvent:rt}),Vt.triggerSubMenuAction==="hover")return;Me.triggerOpenChange(!Me.getVisible(),"click"),Xt(Vt.store,Me.props.eventKey,!1)},Me.onSubMenuClick=function(rt){typeof Me.props.onClick=="function"&&Me.props.onClick(Me.addKeyPath(rt))},Me.onSelect=function(rt){Me.props.onSelect(rt)},Me.onDeselect=function(rt){Me.props.onDeselect(rt)},Me.getPrefixCls=function(){return"".concat(Me.props.rootPrefixCls,"-submenu")},Me.getActiveClassName=function(){return"".concat(Me.getPrefixCls(),"-active")},Me.getDisabledClassName=function(){return"".concat(Me.getPrefixCls(),"-disabled")},Me.getSelectedClassName=function(){return"".concat(Me.getPrefixCls(),"-selected")},Me.getOpenClassName=function(){return"".concat(Me.props.rootPrefixCls,"-submenu-open")},Me.getVisible=function(){return Me.state.isOpen},Me.getMode=function(){return Me.state.mode},Me.saveMenuInstance=function(rt){Me.menuInstance=rt},Me.addKeyPath=function(rt){return Object(b.a)(Object(b.a)({},rt),{},{keyPath:(rt.keyPath||[]).concat(Me.props.eventKey)})},Me.triggerOpenChange=function(rt,Mt){var Vt=Me.props.eventKey,fn=function(){Me.onOpenChange({key:Vt,item:Object(C.a)(Me),trigger:Mt,open:rt})};Mt==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){fn()},0):fn()},Me.isChildrenSelected=function(){var rt={find:!1};return Q(Me.props.children,Me.props.selectedKeys,rt),rt.find},Me.isInlineMode=function(){return Me.getMode()==="inline"},Me.adjustWidth=function(){if(!Me.subMenuTitle||!Me.menuInstance)return;var rt=tt.findDOMNode(Me.menuInstance);if(rt.offsetWidth>=Me.subMenuTitle.offsetWidth)return;rt.style.minWidth="".concat(Me.subMenuTitle.offsetWidth,"px")},Me.saveSubMenuTitle=function(rt){Me.subMenuTitle=rt},Me.getBaseProps=function(){var rt=Object(C.a)(Me),Mt=rt.props,Vt=Me.getMode();return{mode:Vt==="horizontal"?"vertical":Vt,visible:Me.getVisible(),level:Mt.level+1,inlineIndent:Mt.inlineIndent,focusable:!1,onClick:Me.onSubMenuClick,onSelect:Me.onSelect,onDeselect:Me.onDeselect,onDestroy:Me.onDestroy,selectedKeys:Mt.selectedKeys,eventKey:"".concat(Mt.eventKey,"-menu-"),openKeys:Mt.openKeys,motion:Mt.motion,onOpenChange:Me.onOpenChange,subMenuOpenDelay:Mt.subMenuOpenDelay,parentMenu:Object(C.a)(Me),subMenuCloseDelay:Mt.subMenuCloseDelay,forceSubMenuRender:Mt.forceSubMenuRender,triggerSubMenuAction:Mt.triggerSubMenuAction,builtinPlacements:Mt.builtinPlacements,defaultActiveFirst:Mt.store.getState().defaultActiveFirst[se(Mt.eventKey)],multiple:Mt.multiple,prefixCls:Mt.rootPrefixCls,id:Me.internalMenuId,manualRef:Me.saveMenuInstance,itemIcon:Mt.itemIcon,expandIcon:Mt.expandIcon,direction:Mt.direction}},Me.getMotion=function(rt,Mt){var Vt=Object(C.a)(Me),fn=Vt.haveRendered,ln=Me.props,cn=ln.motion,un=ln.rootPrefixCls,Wn=Object(b.a)(Object(b.a)({},cn),{},{leavedClassName:"".concat(un,"-hidden"),removeOnLeave:!1,motionAppear:fn||!Mt||rt!=="inline"});return Wn};var Je=nt.store,Le=nt.eventKey,$e=Je.getState(),qe=$e.defaultActiveFirst;Me.isRootMenu=!1;var pt=!1;return qe&&(pt=qe[Le]),Xt(Je,Le,pt),Me.state={mode:nt.mode,isOpen:nt.isOpen},Me}return Object(M.a)(bt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Je=this.props,Le=Je.mode,$e=Je.parentMenu,qe=Je.manualRef,pt=Je.isOpen,rt=function(){Me.setState({mode:Le,isOpen:pt})},Mt=pt!==this.state.isOpen,Vt=Le!==this.state.mode;if((Vt||Mt)&&(mt.a.cancel(this.updateStateRaf),Vt?this.updateStateRaf=Object(mt.a)(rt):rt()),qe&&qe(this),Le!=="horizontal"||!($e==null?void 0:$e.isRootMenu)||!pt)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Je=Me.onDestroy,Le=Me.eventKey;Je&&Je(Le),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),mt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Me,Je){var Le=this.getBaseProps();return y.createElement(Yt,Object(v.a)({},Le,{id:this.internalMenuId,className:Me,style:Je}),this.props.children)}},{key:"renderChildren",value:function(){var Me=this,Je=this.getBaseProps(),Le=Je.mode,$e=Je.visible,qe=Je.forceSubMenuRender,pt=Je.direction,rt=this.getMotion(Le,$e);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||$e||qe,!this.haveOpened)return y.createElement("div",null);var Mt=O()("".concat(Je.prefixCls,"-sub"),Object(P.a)({},"".concat(Je.prefixCls,"-rtl"),pt==="rtl"));return this.isInlineMode()?y.createElement(De,Object(v.a)({visible:Je.visible,forceRender:qe},rt),function(Vt){var fn=Vt.className,ln=Vt.style,cn=O()(Mt,fn);return Me.renderPopupMenu(cn,ln)}):this.renderPopupMenu(Mt)}},{key:"render",value:function(){var Me,Je,Le,$e=Object(b.a)({},this.props),qe=this.getVisible(),pt=this.getPrefixCls(),rt=this.isInlineMode(),Mt=this.getMode(),Vt=O()(pt,"".concat(pt,"-").concat(Mt),(Me={},Object(P.a)(Me,$e.className,!!$e.className),Object(P.a)(Me,this.getOpenClassName(),qe),Object(P.a)(Me,this.getActiveClassName(),$e.active||qe&&!rt),Object(P.a)(Me,this.getDisabledClassName(),$e.disabled),Object(P.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||($e.eventKey?this.internalMenuId="".concat($e.eventKey,"$Menu"):(Kt+=1,this.internalMenuId="$__$".concat(Kt,"$Menu")));var fn={},ln={},cn={};$e.disabled||(fn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ln={onClick:this.onTitleClick},cn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var un={},Wn=$e.direction,Cn=Wn==="rtl";rt&&(Cn?un.paddingRight=$e.inlineIndent*$e.level:un.paddingLeft=$e.inlineIndent*$e.level);var jr={};this.getVisible()&&(jr={"aria-owns":this.internalMenuId});var Mr=null;Mt!=="horizontal"&&(Mr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Mr=y.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var Qr=y.createElement("div",Object(v.a)({ref:this.saveSubMenuTitle,style:un,className:"".concat(pt,"-title"),role:"button"},cn,ln,{"aria-expanded":qe},jr,{"aria-haspopup":"true",title:typeof $e.title=="string"?$e.title:void 0}),$e.title,Mr||y.createElement("i",{className:"".concat(pt,"-arrow")})),Wr=this.renderChildren(),ta=((Je=$e.parentMenu)===null||Je===void 0?void 0:Je.isRootMenu)?$e.parentMenu.props.getPopupContainer:function(Tr){return Tr.parentNode},Kn=Lt[Mt],wr=$e.popupOffset?{offset:$e.popupOffset}:{},Gn=O()((Le={},Object(P.a)(Le,$e.popupClassName,$e.popupClassName&&!rt),Object(P.a)(Le,"".concat(pt,"-rtl"),Cn),Le)),En=$e.disabled,jn=$e.triggerSubMenuAction,Vr=$e.subMenuOpenDelay,ua=$e.forceSubMenuRender,hr=$e.subMenuCloseDelay,aa=$e.builtinPlacements;J.forEach(function(Tr){return delete $e[Tr]}),delete $e.onClick;var xa=Cn?Object(b.a)(Object(b.a)({},Rt),aa):Object(b.a)(Object(b.a)({},lt),aa);delete $e.direction;var ha=this.getBaseProps(),Ca=rt?null:this.getMotion(ha.mode,ha.visible);return y.createElement("li",Object(v.a)({},$e,fn,{className:Vt,role:"menuitem"}),y.createElement(la,{prefixCls:pt,popupClassName:O()("".concat(pt,"-popup"),Gn),getPopupContainer:ta,builtinPlacements:xa,popupPlacement:Kn,popupVisible:rt?!1:qe,popupAlign:wr,popup:rt?null:Wr,action:En||rt?[]:[jn],mouseEnterDelay:Vr,mouseLeaveDelay:hr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ua,popupMotion:Ca},Qr),rt?Wr:null)}}]),bt}(y.Component);nn.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var yn=Object(A.b)(function(Ze,ct){var bt=Ze.openKeys,nt=Ze.activeKey,Me=Ze.selectedKeys,Je=ct.eventKey,Le=ct.subMenuKey;return{isOpen:bt.indexOf(Je)>-1,active:nt[Le]===Je,selectedKeys:Me}})(nn);yn.isSubMenu=!0;var vn=yn,Nn="menuitem-overflowed",An=.5,an=function(Ze){Object(S.a)(bt,Ze);var ct=Object(_.a)(bt);function bt(){var nt;return Object(R.a)(this,bt),nt=ct.apply(this,arguments),nt.resizeObserver=null,nt.mutationObserver=null,nt.originalTotalWidth=0,nt.overflowedItems=[],nt.menuItemSizes=[],nt.cancelFrameId=null,nt.state={lastVisibleIndex:void 0},nt.childRef=y.createRef(),nt.getMenuItemNodes=function(){var Me=nt.props.prefixCls,Je=nt.childRef.current;return Je?[].slice.call(Je.children).filter(function(Le){return Le.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Me,Je,Le){var $e=nt.props,qe=$e.overflowedIndicator,pt=$e.level,rt=$e.mode,Mt=$e.prefixCls,Vt=$e.theme;if(pt!==1||rt!=="horizontal")return null;var fn=nt.props.children[0],ln=fn.props,cn=ln.children,un=ln.title,Wn=ln.style,Cn=Object(T.a)(ln,["children","title","style"]),jr=Object(b.a)({},Wn),Mr="".concat(Me,"-overflowed-indicator"),Qr="".concat(Me,"-overflowed-indicator");Je.length===0&&Le!==!0?jr=Object(b.a)(Object(b.a)({},jr),{},{display:"none"}):Le&&(jr=Object(b.a)(Object(b.a)({},jr),{},{visibility:"hidden",position:"absolute"}),Mr="".concat(Mr,"-placeholder"),Qr="".concat(Qr,"-placeholder"));var Wr=Vt?"".concat(Mt,"-").concat(Vt):"",ta={};return J.forEach(function(Kn){Cn[Kn]!==void 0&&(ta[Kn]=Cn[Kn])}),y.createElement(vn,Object(v.a)({title:qe,className:"".concat(Mt,"-overflowed-submenu"),popupClassName:Wr},ta,{key:Mr,eventKey:Qr,disabled:!1,style:jr}),Je)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Je=Me.children;if(!Je||Je.length===0)return;var Le=Me.children[Je.length-1];_e(Le,"display","inline-block");var $e=nt.getMenuItemNodes(),qe=$e.filter(function(pt){return pt.className.split(" ").indexOf(Nn)>=0});qe.forEach(function(pt){_e(pt,"display","inline-block")}),nt.menuItemSizes=$e.map(function(pt){return ve(pt,!0)}),qe.forEach(function(pt){_e(pt,"display","none")}),nt.overflowedIndicatorWidth=ve(Me.children[Me.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(pt,rt){return pt+rt},0),nt.handleResize(),_e(Le,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Je=ve(Me);nt.overflowedItems=[];var Le=0,$e;nt.originalTotalWidth>Je+An&&($e=-1,nt.menuItemSizes.forEach(function(qe){Le+=qe,Le+nt.overflowedIndicatorWidth<=Je&&($e+=1)})),nt.setState({lastVisibleIndex:$e})},nt}return Object(M.a)(bt,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Je=this.childRef.current;if(!Je)return;this.resizeObserver=new Qe.default(function(Le){Le.forEach(function(){var $e=Me.cancelFrameId;cancelAnimationFrame($e),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Je.children).concat(Je).forEach(function(Le){Me.resizeObserver.observe(Le)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Je.children).concat(Je).forEach(function(Le){Me.resizeObserver.observe(Le)}),Me.setChildrenWidthAndResize()}),this.mutationObserver.observe(Je,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Me){var Je=this,Le=this.state.lastVisibleIndex;return(Me||[]).reduce(function($e,qe,pt){var rt=qe;if(Je.props.mode==="horizontal"){var Mt=Je.getOverflowedSubMenuItem(qe.props.eventKey,[]);Le!==void 0&&Je.props.className.indexOf("".concat(Je.props.prefixCls,"-root"))!==-1&&(pt>Le&&(rt=y.cloneElement(qe,{style:{display:"none"},eventKey:"".concat(qe.props.eventKey,"-hidden"),className:"".concat(Nn)})),pt===Le+1&&(Je.overflowedItems=Me.slice(Le+1).map(function(fn){return y.cloneElement(fn,{key:fn.props.eventKey,mode:"vertical-left"})}),Mt=Je.getOverflowedSubMenuItem(qe.props.eventKey,Je.overflowedItems)));var Vt=[].concat(Object(f.a)($e),[Mt,rt]);return pt===Me.length-1&&Vt.push(Je.getOverflowedSubMenuItem(qe.props.eventKey,[],!0)),Vt}return[].concat(Object(f.a)($e),[rt])},[])}},{key:"render",value:function(){var Me=this.props,Je=Me.visible,Le=Me.prefixCls,$e=Me.overflowedIndicator,qe=Me.mode,pt=Me.level,rt=Me.tag,Mt=Me.children,Vt=Me.theme,fn=Object(T.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ln=rt;return y.createElement(ln,Object(v.a)({ref:this.childRef},fn),this.renderChildren(Mt))}}]),bt}(y.Component);an.defaultProps={tag:"div",className:""};var Pn=an;function bn(Ze){return Ze.length?Ze.every(function(ct){return!!ct.props.disabled}):!0}function kn(Ze,ct,bt){var nt=Ze.getState();Ze.setState({activeKey:Object(b.a)(Object(b.a)({},nt.activeKey),{},Object(P.a)({},ct,bt))})}function Rn(Ze){return Ze.eventKey||"0-menu-"}function Jn(Ze,ct){var bt=ct,nt=Ze.children,Me=Ze.eventKey;if(bt){var Je;if(te(nt,function(Le,$e){Le&&Le.props&&!Le.props.disabled&&bt===Oe(Le,Me,$e)&&(Je=!0)}),Je)return bt}return bt=null,Ze.defaultActiveFirst&&te(nt,function(Le,$e){!bt&&Le&&!Le.props.disabled&&(bt=Oe(Le,Me,$e))}),bt}function mr(Ze){if(!Ze)return;var ct=this.instanceArray.indexOf(Ze);ct!==-1?this.instanceArray[ct]=Ze:this.instanceArray.push(Ze)}var Br=function(Ze){Object(S.a)(bt,Ze);var ct=Object(_.a)(bt);function bt(nt){var Me;return Object(R.a)(this,bt),Me=ct.call(this,nt),Me.onKeyDown=function(Je,Le){var $e=Je.keyCode,qe;if(Me.getFlatInstanceArray().forEach(function(rt){rt&&rt.props.active&&rt.onKeyDown&&(qe=rt.onKeyDown(Je))}),qe)return 1;var pt=null;return($e===l.a.UP||$e===l.a.DOWN)&&(pt=Me.step($e===l.a.UP?-1:1)),pt?(Je.preventDefault(),kn(Me.props.store,Rn(Me.props),pt.props.eventKey),typeof Le=="function"&&Le(pt),1):void 0},Me.onItemHover=function(Je){var Le=Je.key,$e=Je.hover;kn(Me.props.store,Rn(Me.props),$e?Le:null)},Me.onDeselect=function(Je){Me.props.onDeselect(Je)},Me.onSelect=function(Je){Me.props.onSelect(Je)},Me.onClick=function(Je){Me.props.onClick(Je)},Me.onOpenChange=function(Je){Me.props.onOpenChange(Je)},Me.onDestroy=function(Je){Me.props.onDestroy(Je)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Je){var Le=Me.getFlatInstanceArray(),$e=Me.props.store.getState().activeKey[Rn(Me.props)],qe=Le.length;if(!qe)return null;Je<0&&(Le=Le.concat().reverse());var pt=-1;if(Le.every(function(fn,ln){return fn&&fn.props.eventKey===$e?(pt=ln,!1):!0}),!Me.props.defaultActiveFirst&&pt!==-1&&bn(Le.slice(pt,qe-1)))return;var rt=(pt+1)%qe,Mt=rt;do{var Vt=Le[Mt];if(!Vt||Vt.props.disabled)Mt=(Mt+1)%qe;else return Vt}while(Mt!==rt);return null},Me.renderCommonMenuItem=function(Je,Le,$e){var qe=Me.props.store.getState(),pt=Object(C.a)(Me),rt=pt.props,Mt=Oe(Je,rt.eventKey,Le),Vt=Je.props;if(!Vt||typeof Je.type=="string")return Je;var fn=Mt===qe.activeKey,ln=Object(b.a)(Object(b.a)({mode:Vt.mode||rt.mode,level:rt.level,inlineIndent:rt.inlineIndent,renderMenuItem:Me.renderMenuItem,rootPrefixCls:rt.prefixCls,index:Le,parentMenu:rt.parentMenu,manualRef:Vt.disabled?void 0:Object(L.a)(Je.ref,mr.bind(Object(C.a)(Me))),eventKey:Mt,active:!Vt.disabled&&fn,multiple:rt.multiple,onClick:function(un){(Vt.onClick||ae)(un),Me.onClick(un)},onItemHover:Me.onItemHover,motion:rt.motion,subMenuOpenDelay:rt.subMenuOpenDelay,subMenuCloseDelay:rt.subMenuCloseDelay,forceSubMenuRender:rt.forceSubMenuRender,onOpenChange:Me.onOpenChange,onDeselect:Me.onDeselect,onSelect:Me.onSelect,builtinPlacements:rt.builtinPlacements,itemIcon:Vt.itemIcon||Me.props.itemIcon,expandIcon:Vt.expandIcon||Me.props.expandIcon},$e),{},{direction:rt.direction});return(rt.mode==="inline"||Ae())&&(ln.triggerSubMenuAction="click"),y.cloneElement(Je,Object(b.a)(Object(b.a)({},ln),{},{key:Mt||Le}))},Me.renderMenuItem=function(Je,Le,$e){if(!Je)return null;var qe=Me.props.store.getState(),pt={openKeys:qe.openKeys,selectedKeys:qe.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:$e};return Me.renderCommonMenuItem(Je,Le,pt)},nt.store.setState({activeKey:Object(b.a)(Object(b.a)({},nt.store.getState().activeKey),{},Object(P.a)({},nt.eventKey,Jn(nt,nt.activeKey)))}),Me.instanceArray=[],Me}return Object(M.a)(bt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Me){return this.props.visible||Me.visible||this.props.className!==Me.className||!V()(this.props.style,Me.style)}},{key:"componentDidUpdate",value:function(Me){var Je=this.props,Le="activeKey"in Je?Je.activeKey:Je.store.getState().activeKey[Rn(Je)],$e=Jn(Je,Le);if($e!==Le)kn(Je.store,Rn(Je),$e);else if("activeKey"in Me){var qe=Jn(Me,Me.activeKey);$e!==qe&&kn(Je.store,Rn(Je),$e)}}},{key:"render",value:function(){var Me=this,Je=Object(v.a)({},this.props);this.instanceArray=[];var Le=O()(Je.prefixCls,Je.className,"".concat(Je.prefixCls,"-").concat(Je.mode)),$e={className:Le,role:Je.role||"menu"};Je.id&&($e.id=Je.id),Je.focusable&&($e.tabIndex=0,$e.onKeyDown=this.onKeyDown);var qe=Je.prefixCls,pt=Je.eventKey,rt=Je.visible,Mt=Je.level,Vt=Je.mode,fn=Je.overflowedIndicator,ln=Je.theme;return J.forEach(function(cn){return delete Je[cn]}),delete Je.onClick,y.createElement(Pn,Object(v.a)({},Je,{prefixCls:qe,mode:Vt,tag:"ul",level:Mt,theme:ln,visible:rt,overflowedIndicator:fn},$e),Object(m.a)(Je.children).map(function(cn,un){return Me.renderMenuItem(cn,un,pt||"0-menu-")}))}}]),bt}(y.Component);Br.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var Sn=Object(A.b)()(Br),Yt=Sn,dn=o("Kwbf");function Dn(Ze,ct,bt){var nt=Ze.prefixCls,Me=Ze.motion,Je=Ze.defaultMotions,Le=Je===void 0?{}:Je,$e=Ze.openAnimation,qe=Ze.openTransitionName,pt=ct.switchingModeFromInline;if(Me)return Me;if(Object(H.a)($e)==="object"&&$e)Object(dn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof $e=="string")return{motionName:"".concat(nt,"-open-").concat($e)};if(qe)return{motionName:qe};var rt=Le[bt];return rt||(pt?null:Le.other)}var en=function(Ze){Object(S.a)(bt,Ze);var ct=Object(_.a)(bt);function bt(nt){var Me;Object(R.a)(this,bt),Me=ct.call(this,nt),Me.onSelect=function($e){var qe=Object(C.a)(Me),pt=qe.props;if(pt.selectable){var rt=Me.store.getState(),Mt=rt.selectedKeys,Vt=$e.key;pt.multiple?Mt=Mt.concat([Vt]):Mt=[Vt],"selectedKeys"in pt||Me.store.setState({selectedKeys:Mt}),pt.onSelect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:Mt}))}},Me.onClick=function($e){var qe=Me.getRealMenuMode(),pt=Object(C.a)(Me),rt=pt.store,Mt=pt.props.onOpenChange;qe!=="inline"&&!("openKeys"in Me.props)&&(rt.setState({openKeys:[]}),Mt([])),Me.props.onClick($e)},Me.onKeyDown=function($e,qe){Me.innerMenu.getWrappedInstance().onKeyDown($e,qe)},Me.onOpenChange=function($e){var qe=Object(C.a)(Me),pt=qe.props,rt=Me.store.getState().openKeys.concat(),Mt=!1,Vt=function(ln){var cn=!1;if(ln.open)cn=rt.indexOf(ln.key)===-1,cn&&rt.push(ln.key);else{var un=rt.indexOf(ln.key);cn=un!==-1,cn&&rt.splice(un,1)}Mt=Mt||cn};Array.isArray($e)?$e.forEach(Vt):Vt($e),Mt&&("openKeys"in Me.props||Me.store.setState({openKeys:rt}),pt.onOpenChange(rt))},Me.onDeselect=function($e){var qe=Object(C.a)(Me),pt=qe.props;if(pt.selectable){var rt=Me.store.getState().selectedKeys.concat(),Mt=$e.key,Vt=rt.indexOf(Mt);Vt!==-1&&rt.splice(Vt,1),"selectedKeys"in pt||Me.store.setState({selectedKeys:rt}),pt.onDeselect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:rt}))}},Me.onMouseEnter=function($e){Me.restoreModeVerticalFromInline();var qe=Me.props.onMouseEnter;qe&&qe($e)},Me.onTransitionEnd=function($e){var qe=$e.propertyName==="width"&&$e.target===$e.currentTarget,pt=$e.target.className,rt=Object.prototype.toString.call(pt)==="[object SVGAnimatedString]"?pt.animVal:pt,Mt=$e.propertyName==="font-size"&&rt.indexOf("anticon")>=0;(qe||Mt)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function($e){Me.innerMenu=$e},Me.isRootMenu=!0;var Je=nt.defaultSelectedKeys,Le=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Je=nt.selectedKeys||[]),"openKeys"in nt&&(Le=nt.openKeys||[]),Me.store=Object(A.c)({selectedKeys:Je,openKeys:Le,activeKey:{"0-menu-":Jn(nt,nt.activeKey)}}),Me.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Me.store},Me}return Object(M.a)(bt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){var Je=this.props,Le=Je.siderCollapsed,$e=Je.inlineCollapsed,qe=Je.onOpenChange;(!Me.inlineCollapsed&&$e||!Me.siderCollapsed&&Le)&&qe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Je=this.store,Le=this.prevOpenKeys,$e=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");$e?(this.prevOpenKeys=Je.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Le&&(this.store.setState({openKeys:Le}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Me=this.props.mode,Je=this.state.switchingModeFromInline,Le=this.getInlineCollapsed();return Je&&Le?"inline":Le?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Je=Me.inlineCollapsed,Le=Me.siderCollapsed;return Le!==void 0?Le:Je}},{key:"restoreModeVerticalFromInline",value:function(){var Me=this.state.switchingModeFromInline;Me&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Me=Object(b.a)({},Object(U.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Je=this.getRealMenuMode();return Me.className+=" ".concat(Me.prefixCls,"-root"),Me.direction==="rtl"&&(Me.className+=" ".concat(Me.prefixCls,"-rtl")),Me=Object(b.a)(Object(b.a)({},Me),{},{mode:Je,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Dn(this.props,this.state,Je)}),delete Me.openAnimation,delete Me.openTransitionName,y.createElement(A.a,{store:this.store},y.createElement(Yt,Object(v.a)({},Me,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Me,Je){var Le=Je.prevProps,$e=Je.store,qe=$e.getState(),pt={},rt={prevProps:Me};return Le.mode==="inline"&&Me.mode!=="inline"&&(rt.switchingModeFromInline=!0),"openKeys"in Me?pt.openKeys=Me.openKeys||[]:((Me.inlineCollapsed&&!Le.inlineCollapsed||Me.siderCollapsed&&!Le.siderCollapsed)&&(rt.switchingModeFromInline=!0,rt.inlineOpenKeys=qe.openKeys,pt.openKeys=[]),(!Me.inlineCollapsed&&Le.inlineCollapsed||!Me.siderCollapsed&&Le.siderCollapsed)&&(pt.openKeys=Je.inlineOpenKeys,rt.inlineOpenKeys=[])),Object.keys(pt).length&&$e.setState(pt),rt}}]),bt}(y.Component);en.defaultProps={selectable:!0,onClick:ae,onSelect:ae,onOpenChange:ae,onDeselect:ae,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:y.createElement("span",null,"\xB7\xB7\xB7")};var wn=en,_n=function(Ze){Object(S.a)(bt,Ze);var ct=Object(_.a)(bt);function bt(){var nt;return Object(R.a)(this,bt),nt=ct.apply(this,arguments),nt.onKeyDown=function(Me){var Je=Me.keyCode;return Je===l.a.ENTER?(nt.onClick(Me),!0):void 0},nt.onMouseLeave=function(Me){var Je=nt.props,Le=Je.eventKey,$e=Je.onItemHover,qe=Je.onMouseLeave;$e({key:Le,hover:!1}),qe({key:Le,domEvent:Me})},nt.onMouseEnter=function(Me){var Je=nt.props,Le=Je.eventKey,$e=Je.onItemHover,qe=Je.onMouseEnter;$e({key:Le,hover:!0}),qe({key:Le,domEvent:Me})},nt.onClick=function(Me){var Je=nt.props,Le=Je.eventKey,$e=Je.multiple,qe=Je.onClick,pt=Je.onSelect,rt=Je.onDeselect,Mt=Je.isSelected,Vt={key:Le,keyPath:[Le],item:Object(C.a)(nt),domEvent:Me};qe(Vt),$e?Mt?rt(Vt):pt(Vt):Mt||pt(Vt)},nt.saveNode=function(Me){nt.node=Me},nt}return Object(M.a)(bt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Me=this.props;Me.onDestroy&&Me.onDestroy(Me.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Me,Je=Object(b.a)({},this.props),Le=O()(this.getPrefixCls(),Je.className,(Me={},Object(P.a)(Me,this.getActiveClassName(),!Je.disabled&&Je.active),Object(P.a)(Me,this.getSelectedClassName(),Je.isSelected),Object(P.a)(Me,this.getDisabledClassName(),Je.disabled),Me)),$e=Object(b.a)(Object(b.a)({},Je.attribute),{},{title:typeof Je.title=="string"?Je.title:void 0,className:Le,role:Je.role||"menuitem","aria-disabled":Je.disabled});Je.role==="option"?$e=Object(b.a)(Object(b.a)({},$e),{},{role:"option","aria-selected":Je.isSelected}):(Je.role===null||Je.role==="none")&&($e.role="none");var qe={onClick:Je.disabled?null:this.onClick,onMouseLeave:Je.disabled?null:this.onMouseLeave,onMouseEnter:Je.disabled?null:this.onMouseEnter},pt=Object(b.a)({},Je.style);Je.mode==="inline"&&(Je.direction==="rtl"?pt.paddingRight=Je.inlineIndent*Je.level:pt.paddingLeft=Je.inlineIndent*Je.level),J.forEach(function(Mt){return delete Je[Mt]}),delete Je.direction;var rt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(rt=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(v.a)({},Object(U.a)(Je,["onClick","onMouseEnter","onMouseLeave","onSelect"]),$e,qe,{style:pt,ref:this.saveNode}),Je.children,rt)}}]),bt}(y.Component);_n.isMenuItem=!0,_n.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var In=Object(A.b)(function(Ze,ct){var bt=Ze.activeKey,nt=Ze.selectedKeys,Me=ct.eventKey,Je=ct.subMenuKey;return{active:bt[Je]===Me,isSelected:Array.isArray(nt)?nt.indexOf(Me)!==-1:nt===Me}})(_n),Un=In,or=function(Ze){Object(S.a)(bt,Ze);var ct=Object(_.a)(bt);function bt(){var nt;return Object(R.a)(this,bt),nt=ct.apply(this,arguments),nt.renderInnerMenuItem=function(Me){var Je=nt.props,Le=Je.renderMenuItem,$e=Je.index;return Le(Me,$e,nt.props.subMenuKey)},nt}return Object(M.a)(bt,[{key:"render",value:function(){var Me=Object(v.a)({},this.props),Je=Me.className,Le=Je===void 0?"":Je,$e=Me.rootPrefixCls,qe="".concat($e,"-item-group-title"),pt="".concat($e,"-item-group-list"),rt=Me.title,Mt=Me.children;return J.forEach(function(Vt){return delete Me[Vt]}),delete Me.direction,y.createElement("li",Object(v.a)({},Me,{onClick:function(fn){return fn.stopPropagation()},className:"".concat(Le," ").concat($e,"-item-group")}),y.createElement("div",{className:qe,title:typeof rt=="string"?rt:void 0},rt),y.createElement("ul",{className:pt},y.Children.map(Mt,this.renderInnerMenuItem)))}}]),bt}(y.Component);or.isMenuItemGroup=!0,or.defaultProps={disabled:!0};var qn=or,Pr=function(ct){var bt=ct.className,nt=ct.rootPrefixCls,Me=ct.style;return y.createElement("li",{className:"".concat(bt," ").concat(nt,"-item-divider"),style:Me})};Pr.defaultProps={disabled:!0,className:"",style:{}};var Lr=Pr,Qn=wn,Dr=o("eDIo");function vr(Ze,ct){var bt=Ze.prefixCls,nt=Ze.editable,Me=Ze.locale,Je=Ze.style;return!nt||nt.showAdd===!1?null:y.createElement("button",{ref:ct,type:"button",className:"".concat(bt,"-nav-add"),style:Je,"aria-label":(Me==null?void 0:Me.addAriaLabel)||"Add tab",onClick:function($e){nt.onEdit("add",{event:$e})}},nt.addIcon||"+")}var zr=y.forwardRef(vr);function Nr(Ze,ct){var bt=Ze.prefixCls,nt=Ze.id,Me=Ze.tabs,Je=Ze.locale,Le=Ze.mobile,$e=Ze.moreIcon,qe=$e===void 0?"More":$e,pt=Ze.moreTransitionName,rt=Ze.style,Mt=Ze.className,Vt=Ze.editable,fn=Ze.tabBarGutter,ln=Ze.rtl,cn=Ze.onTabClick,un=Object(y.useState)(!1),Wn=Object(g.a)(un,2),Cn=Wn[0],jr=Wn[1],Mr=Object(y.useState)(null),Qr=Object(g.a)(Mr,2),Wr=Qr[0],ta=Qr[1],Kn="".concat(nt,"-more-popup"),wr="".concat(bt,"-dropdown"),Gn=Wr!==null?"".concat(Kn,"-").concat(Wr):null,En=Je==null?void 0:Je.dropdownAriaLabel,jn=y.createElement(Qn,{onClick:function(Ca){var Tr=Ca.key,br=Ca.domEvent;cn(Tr,br),jr(!1)},id:Kn,tabIndex:-1,role:"listbox","aria-activedescendant":Gn,selectedKeys:[Wr],"aria-label":En!==void 0?En:"expanded dropdown"},Me.map(function(ha){return y.createElement(Un,{key:ha.key,id:"".concat(Kn,"-").concat(ha.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(ha.key),disabled:ha.disabled},ha.tab)}));function Vr(ha){for(var Ca=Me.filter(function(pa){return!pa.disabled}),Tr=Ca.findIndex(function(pa){return pa.key===Wr})||0,br=Ca.length,Ir=0;Iraa?(ua=jn,Kn.current="x"):(ua=Vr,Kn.current="y");var xa=Date.now();xa-Wr.current>100&&(ta.current=!1),(ct(-ua,-ua)||ta.current)&&(En.preventDefault(),ta.current=!0),Wr.current=xa}var Gn=Object(y.useRef)(null);Gn.current={onTouchStart:jr,onTouchMove:Mr,onTouchEnd:Qr,onWheel:wr},y.useEffect(function(){function En(hr){Gn.current.onTouchStart(hr)}function jn(hr){Gn.current.onTouchMove(hr)}function Vr(hr){Gn.current.onTouchEnd(hr)}function ua(hr){Gn.current.onWheel(hr)}return document.addEventListener("touchmove",jn,{passive:!1}),document.addEventListener("touchend",Vr,{passive:!1}),Ze.current.addEventListener("touchstart",En,{passive:!1}),Ze.current.addEventListener("wheel",ua),function(){document.removeEventListener("touchmove",jn),document.removeEventListener("touchend",Vr)}},[])}function rr(){var Ze=Object(y.useRef)(new Map);function ct(nt){return Ze.current.has(nt)||Ze.current.set(nt,y.createRef()),Ze.current.get(nt)}function bt(nt){Ze.current.delete(nt)}return[ct,bt]}function cr(Ze,ct){var bt=y.useRef(Ze),nt=y.useState({}),Me=Object(g.a)(nt,2),Je=Me[1];function Le($e){var qe=typeof $e=="function"?$e(bt.current):$e;qe!==bt.current&&ct(qe,bt.current),bt.current=qe,Je({})}return[bt.current,Le]}var sr=function(ct){var bt=ct.position,nt=ct.prefixCls,Me=ct.extra;if(!Me)return null;var Je,Le=Me;return bt==="right"&&(Je=Le.right||!Le.left&&Le||null),bt==="left"&&(Je=Le.left||null),Je?y.createElement("div",{className:"".concat(nt,"-extra-content")},Je):null};function qr(Ze,ct){var bt,nt=y.useContext(tr),Me=nt.prefixCls,Je=nt.tabs,Le=Ze.className,$e=Ze.style,qe=Ze.id,pt=Ze.animated,rt=Ze.activeKey,Mt=Ze.rtl,Vt=Ze.extra,fn=Ze.editable,ln=Ze.locale,cn=Ze.tabPosition,un=Ze.tabBarGutter,Wn=Ze.children,Cn=Ze.onTabClick,jr=Ze.onTabScroll,Mr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useRef)(),ta=Object(y.useRef)(),Kn=rr(),wr=Object(g.a)(Kn,2),Gn=wr[0],En=wr[1],jn=cn==="top"||cn==="bottom",Vr=cr(0,function(Aa,ya){jn&&jr&&jr({direction:Aa>ya?"left":"right"})}),ua=Object(g.a)(Vr,2),hr=ua[0],aa=ua[1],xa=cr(0,function(Aa,ya){!jn&&jr&&jr({direction:Aa>ya?"top":"bottom"})}),ha=Object(g.a)(xa,2),Ca=ha[0],Tr=ha[1],br=Object(y.useState)(0),Ir=Object(g.a)(br,2),er=Ir[0],pa=Ir[1],Ea=Object(y.useState)(0),ba=Object(g.a)(Ea,2),Oa=ba[0],ga=ba[1],ka=Object(y.useState)(0),Ua=Object(g.a)(ka,2),Fa=Ua[0],ni=Ua[1],Fi=Object(y.useState)(0),Ai=Object(g.a)(Fi,2),Na=Ai[0],bi=Ai[1],Si=Object(y.useState)(null),Ba=Object(g.a)(Si,2),Ma=Ba[0],Za=Ba[1],to=Object(y.useState)(null),Mo=Object(g.a)(to,2),Ii=Mo[0],no=Mo[1],ro=Object(y.useState)(0),mi=Object(g.a)(ro,2),uo=mi[0],Io=mi[1],Lo=Object(y.useState)(0),bo=Object(g.a)(Lo,2),Vi=bo[0],co=bo[1],Xi=n(new Map),Yi=Object(g.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=c(Je,No,er),Ji="".concat(Me,"-nav-operations-hidden"),Qi=0,ei=0;jn?Mt?(Qi=0,ei=Math.max(0,er-Ma)):(Qi=Math.min(0,Ma-er),ei=0):(Qi=Math.min(0,Ii-Oa),ei=0);function Li(Aa){return Aaei?[ei,!1]:[Aa,!0]}var Di=Object(y.useRef)(),Zi=Object(y.useState)(),Ri=Object(g.a)(Zi,2),Eo=Ri[0],xo=Ri[1];function Co(){xo(Date.now())}function io(){window.clearTimeout(Di.current)}Ln(Mr,function(Aa,ya){var Ga=!1;function ui(eo,ki){eo(function(ho){var wi=Li(ho+ki),qa=Object(g.a)(wi,2),po=qa[0],Hi=qa[1];return Ga=Hi,po})}if(jn){if(Ma>=er)return Ga;ui(aa,Aa)}else{if(Ii>=Oa)return Ga;ui(Tr,ya)}return io(),Co(),Ga}),Object(y.useEffect)(function(){return io(),Eo&&(Di.current=window.setTimeout(function(){xo(0)},100)),io},[Eo]);function Ni(){var Aa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rt,ya=ao.get(Aa);if(!ya)return;if(jn){var Ga=hr;Mt?ya.righthr+Ma&&(Ga=ya.right+ya.width-Ma):ya.left<-hr?Ga=-ya.left:ya.left+ya.width>-hr+Ma&&(Ga=-(ya.left+ya.width-Ma)),Tr(0),aa(Li(Ga)[0])}else{var ui=Ca;ya.top<-Ca?ui=-ya.top:ya.top+ya.height>-Ca+Ii&&(ui=-(ya.top+ya.height-Ii)),aa(0),Tr(Li(ui)[0])}}var qi=E(ao,{width:Ma,height:Ii,left:hr,top:Ca},{width:Fa,height:Na},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},Ze),{},{tabs:Je})),ko=Object(g.a)(qi,2),oo=ko[0],so=ko[1],So=Je.map(function(Aa){var ya=Aa.key;return y.createElement(d,{id:qe,prefixCls:Me,key:ya,rtl:Mt,tab:Aa,closable:Aa.closable,editable:fn,active:ya===rt,tabPosition:cn,tabBarGutter:un,renderWrapper:Wn,removeAriaLabel:ln==null?void 0:ln.removeAriaLabel,ref:Gn(ya),onClick:function(ui){Cn(ya,ui)},onRemove:function(){En(ya)},onFocus:function(){Ni(ya),Co(),Mt||(Mr.current.scrollLeft=0),Mr.current.scrollTop=0}})}),Uo=i(function(){var Aa,ya,Ga,ui,eo,ki,ho,wi,qa,po=((Aa=Mr.current)===null||Aa===void 0?void 0:Aa.offsetWidth)||0,Hi=((ya=Mr.current)===null||ya===void 0?void 0:ya.offsetHeight)||0,mo=((Ga=ta.current)===null||Ga===void 0?void 0:Ga.offsetWidth)||0,hi=((ui=ta.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,Pa=((eo=Wr.current)===null||eo===void 0?void 0:eo.offsetWidth)||0,sa=((ki=Wr.current)===null||ki===void 0?void 0:ki.offsetHeight)||0;Za(po),no(Hi),Io(mo),co(hi);var Cr=(((ho=Qr.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-mo,Zr=(((wi=Qr.current)===null||wi===void 0?void 0:wi.offsetHeight)||0)-hi;pa(Cr),ga(Zr);var va=(qa=Wr.current)===null||qa===void 0?void 0:qa.className.includes(Ji);ni(Cr-(va?0:Pa)),bi(Zr-(va?0:sa)),yo(function(){var Wa=new Map;return Je.forEach(function(Ei){var Pi=Ei.key,$a=Gn(Pi).current;$a&&Wa.set(Pi,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Wa})}),jo=Je.slice(0,oo),fi=Je.slice(so+1),Ha=[].concat(Object(f.a)(jo),Object(f.a)(fi)),ri=Object(y.useState)(),Xa=Object(g.a)(ri,2),ai=Xa[0],wo=Xa[1],yi=ao.get(rt),Bo=Object(y.useRef)();function To(){u.a.cancel(Bo.current)}Object(y.useEffect)(function(){var Aa={};return yi&&(jn?(Mt?Aa.right=yi.right:Aa.left=yi.left,Aa.width=yi.width):(Aa.top=yi.top,Aa.height=yi.height)),To(),Bo.current=u()(function(){wo(Aa)}),To},[yi,jn,Mt]),Object(y.useEffect)(function(){Ni()},[rt,yi,ao,jn]),Object(y.useEffect)(function(){Uo()},[Mt,un,rt,Je.map(function(Aa){return Aa.key}).join("_")]);var $i=!!Ha.length,Wi="".concat(Me,"-nav-wrap"),Oo,fo,Wo,lo;return jn?Mt?(fo=hr>0,Oo=hr+Ma>>7)^(R<<14|R>>>18)^R>>>3,C=f[v-2],S=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;f[v]=M+f[v-7]+S+f[v-16]}var _=s&c^~s&w,A=n&l^n&h^l&h,U=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),L=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),N=E+L+_+e[v]+f[v],V=U+A;E=w,w=c,c=s,s=d+N|0,d=h,h=l,l=n,n=N+V|0}i[0]=i[0]+n|0,i[1]=i[1]+l|0,i[2]=i[2]+h|0,i[3]=i[3]+d|0,i[4]=i[4]+s|0,i[5]=i[5]+c|0,i[6]=i[6]+w|0,i[7]=i[7]+E|0},_doFinalize:function(){var u=this._data,r=u.words,i=this._nDataBytes*8,n=u.sigBytes*8;return r[n>>>5]|=128<<24-n%32,r[(n+64>>>9<<4)+14]=g.floor(i/4294967296),r[(n+64>>>9<<4)+15]=i,u.sigBytes=r.length*4,this._process(),this._hash},clone:function(){var u=x.clone.call(this);return u._hash=this._hash.clone(),u}});T.SHA256=x._createHelper(a),T.HmacSHA256=x._createHmacHelper(a)}(Math),P.SHA256})},lZu9:function(k,z,o){(function(P){P(o("VrN/"),o("1eCo"),o("8EBN"))})(function(P){"use strict";P.defineMode("markdown",function(g,T){var b=P.getMode(g,"text/html"),y=b.name=="null";function x(F){if(P.findModeByName){var I=P.findModeByName(F);I&&(F=I.mime||I.mimes[0])}var K=P.getMode(g,F);return K.name=="null"?null:K}T.highlightFormatting===void 0&&(T.highlightFormatting=!1),T.maxBlockquoteDepth===void 0&&(T.maxBlockquoteDepth=0),T.taskLists===void 0&&(T.taskLists=!1),T.strikethrough===void 0&&(T.strikethrough=!1),T.emoji===void 0&&(T.emoji=!1),T.fencedCodeBlockHighlighting===void 0&&(T.fencedCodeBlockHighlighting=!0),T.fencedCodeBlockDefaultMode===void 0&&(T.fencedCodeBlockDefaultMode="text/plain"),T.xml===void 0&&(T.xml=!0),T.tokenTypeOverrides===void 0&&(T.tokenTypeOverrides={});var O={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var m in O)O.hasOwnProperty(m)&&T.tokenTypeOverrides[m]&&(O[m]=T.tokenTypeOverrides[m]);var e=/^([*\-_])(?:\s*\1){2,}\s*$/,f=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,a=/^\[(x| )\](?=\s)/i,u=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,r=/^ {0,3}(?:\={1,}|-{2,})\s*$/,i=/^[^#!\[\]*_\\<>` "'(~:]+/,n=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,l=/^\s*\[[^\]]+?\]:.*$/,h=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,d=" ";function s(F,I,K){return I.f=I.inline=K,K(F,I)}function c(F,I,K){return I.f=I.block=K,K(F,I)}function w(F){return!F||!/\S/.test(F.string)}function E(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==R){var I=y;if(!I){var K=P.innerMode(b,F.htmlState);I=K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText}I&&(F.f=_,F.block=v,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function v(F,I){var K=F.column()===I.indentation,ee=w(I.prevLine.stream),he=I.indentedCode,de=I.prevLine.hr,Se=I.list!==!1,Te=(I.listStack[I.listStack.length-1]||0)+3;I.indentedCode=!1;var ce=I.indentation;if(I.indentationDiff===null&&(I.indentationDiff=I.indentation,Se)){for(I.list=null;ce=4&&(he||I.prevLine.fencedCodeEnd||I.prevLine.header||ee))return F.skipToEnd(),I.indentedCode=!0,O.code;if(F.eatSpace())return null;if(K&&I.indentation<=Te&&(ue=F.match(u))&&ue[1].length<=6)return I.quote=0,I.header=ue[1].length,I.thisLine.header=!0,T.highlightFormatting&&(I.formatting="header"),I.f=I.inline,C(I);if(I.indentation<=Te&&F.eat(">"))return I.quote=K?1:I.quote+1,T.highlightFormatting&&(I.formatting="quote"),F.eatSpace(),C(I);if(!Ee&&!I.setext&&K&&I.indentation<=Te&&(ue=F.match(f))){var le=ue[1]?"ol":"ul";return I.indentation=ce+F.current().length,I.list=!0,I.quote=0,I.listStack.push(I.indentation),I.em=!1,I.strong=!1,I.code=!1,I.strikethrough=!1,T.taskLists&&F.match(a,!1)&&(I.taskList=!0),I.f=I.inline,T.highlightFormatting&&(I.formatting=["list","list-"+le]),C(I)}else{if(K&&I.indentation<=Te&&(ue=F.match(n,!0)))return I.quote=0,I.fencedEndRE=new RegExp(ue[1]+"+ *$"),I.localMode=T.fencedCodeBlockHighlighting&&x(ue[2]||T.fencedCodeBlockDefaultMode),I.localMode&&(I.localState=P.startState(I.localMode)),I.f=I.block=M,T.highlightFormatting&&(I.formatting="code-block"),I.code=-1,C(I);if(I.setext||(!be||!Se)&&!I.quote&&I.list===!1&&!I.code&&!Ee&&!l.test(F.string)&&(ue=F.lookAhead(1))&&(ue=ue.match(r)))return I.setext?(I.header=I.setext,I.setext=0,F.skipToEnd(),T.highlightFormatting&&(I.formatting="header")):(I.header=ue[0].charAt(0)=="="?1:2,I.setext=I.header),I.thisLine.header=!0,I.f=I.inline,C(I);if(Ee)return F.skipToEnd(),I.hr=!0,I.thisLine.hr=!0,O.hr;if(F.peek()==="[")return s(F,I,V)}return s(F,I,I.inline)}function R(F,I){var K=b.token(F,I.htmlState);if(!y){var ee=P.innerMode(b,I.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||I.md_inside&&F.current().indexOf(">")>-1)&&(I.f=_,I.block=v,I.htmlState=null)}return K}function M(F,I){var K=I.listStack[I.listStack.length-1]||0,ee=I.indentation=F.quote?I.push(O.formatting+"-"+F.formatting[K]+"-"+F.quote):I.push("error"))}if(F.taskOpen)return I.push("meta"),I.length?I.join(" "):null;if(F.taskClosed)return I.push("property"),I.length?I.join(" "):null;if(F.linkHref?I.push(O.linkHref,"url"):(F.strong&&I.push(O.strong),F.em&&I.push(O.em),F.strikethrough&&I.push(O.strikethrough),F.emoji&&I.push(O.emoji),F.linkText&&I.push(O.linkText),F.code&&I.push(O.code),F.image&&I.push(O.image),F.imageAltText&&I.push(O.imageAltText,"link"),F.imageMarker&&I.push(O.imageMarker)),F.header&&I.push(O.header,O.header+"-"+F.header),F.quote&&(I.push(O.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=F.quote?I.push(O.quote+"-"+F.quote):I.push(O.quote+"-"+T.maxBlockquoteDepth)),F.list!==!1){var ee=(F.listStack.length-1)%3;ee?ee===1?I.push(O.list2):I.push(O.list3):I.push(O.list1)}return F.trailingSpaceNewLine?I.push("trailing-space-new-line"):F.trailingSpace&&I.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),I.length?I.join(" "):null}function S(F,I){return F.match(i,!0)?C(I):void 0}function _(F,I){var K=I.text(F,I);if(typeof K!="undefined")return K;if(I.list)return I.list=null,C(I);if(I.taskList){var ee=F.match(a,!0)[1]===" ";return ee?I.taskOpen=!0:I.taskClosed=!0,T.highlightFormatting&&(I.formatting="task"),I.taskList=!1,C(I)}if(I.taskOpen=!1,I.taskClosed=!1,I.header&&F.match(/^#+$/,!0))return T.highlightFormatting&&(I.formatting="header"),C(I);var he=F.next();if(I.linkTitle){I.linkTitle=!1;var de=he;he==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Se="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(F.match(new RegExp(Se),!0))return O.linkHref}if(he==="`"){var Te=I.formatting;T.highlightFormatting&&(I.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(I.code==0&&(!I.quote||ce==1))return I.code=ce,C(I);if(ce==I.code){var be=C(I);return I.code=0,be}else return I.formatting=Te,C(I)}else if(I.code)return C(I);if(he==="\\"&&(F.next(),T.highlightFormatting)){var Ee=C(I),ue=O.formatting+"-escape";return Ee?Ee+" "+ue:ue}if(he==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return I.imageMarker=!0,I.image=!0,T.highlightFormatting&&(I.formatting="image"),C(I);if(he==="["&&I.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return I.imageMarker=!1,I.imageAltText=!0,T.highlightFormatting&&(I.formatting="image"),C(I);if(he==="]"&&I.imageAltText){T.highlightFormatting&&(I.formatting="image");var Ee=C(I);return I.imageAltText=!1,I.image=!1,I.inline=I.f=U,Ee}if(he==="["&&!I.image)return I.linkText&&F.match(/^.*?\]/)||(I.linkText=!0,T.highlightFormatting&&(I.formatting="link")),C(I);if(he==="]"&&I.linkText){T.highlightFormatting&&(I.formatting="link");var Ee=C(I);return I.linkText=!1,I.inline=I.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?U:_,Ee}if(he==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=A,T.highlightFormatting&&(I.formatting="link");var Ee=C(I);return Ee?Ee+=" ":Ee="",Ee+O.linkInline}if(he==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=A,T.highlightFormatting&&(I.formatting="link");var Ee=C(I);return Ee?Ee+=" ":Ee="",Ee+O.linkEmail}if(T.xml&&he==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var le=F.string.indexOf(">",F.pos);if(le!=-1){var $=F.string.substring(F.start,le);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($)&&(I.md_inside=!0)}return F.backUp(1),I.htmlState=P.startState(b),c(F,I,R)}if(T.xml&&he==="<"&&F.match(/^\/\w*?>/))return I.md_inside=!1,"tag";if(he==="*"||he==="_"){for(var me=1,re=F.pos==1?" ":F.string.charAt(F.pos-2);me<3&&F.eat(he);)me++;var ae=F.peek()||" ",Oe=!/\s/.test(ae)&&(!h.test(ae)||/\s/.test(re)||h.test(re)),se=!/\s/.test(re)&&(!h.test(re)||/\s/.test(ae)||h.test(ae)),te=null,Q=null;if(me%2&&(!I.em&&Oe&&(he==="*"||!se||h.test(re))?te=!0:I.em==he&&se&&(he==="*"||!Oe||h.test(ae))&&(te=!1)),me>1&&(!I.strong&&Oe&&(he==="*"||!se||h.test(re))?Q=!0:I.strong==he&&se&&(he==="*"||!Oe||h.test(ae))&&(Q=!1)),Q!=null||te!=null){T.highlightFormatting&&(I.formatting=te==null?"strong":Q==null?"em":"strong em"),te===!0&&(I.em=he),Q===!0&&(I.strong=he);var be=C(I);return te===!1&&(I.em=!1),Q===!1&&(I.strong=!1),be}}else if(he===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return C(I);F.backUp(1)}if(T.strikethrough){if(he==="~"&&F.eatWhile(he)){if(I.strikethrough){T.highlightFormatting&&(I.formatting="strikethrough");var be=C(I);return I.strikethrough=!1,be}else if(F.match(/^[^\s]/,!1))return I.strikethrough=!0,T.highlightFormatting&&(I.formatting="strikethrough"),C(I)}else if(he===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return C(I);F.backUp(2)}}if(T.emoji&&he===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){I.emoji=!0,T.highlightFormatting&&(I.formatting="emoji");var J=C(I);return I.emoji=!1,J}return he===" "&&(F.match(/^ +$/,!1)?I.trailingSpace++:I.trailingSpace&&(I.trailingSpaceNewLine=!0)),C(I)}function A(F,I){var K=F.next();if(K===">"){I.f=I.inline=_,T.highlightFormatting&&(I.formatting="link");var ee=C(I);return ee?ee+=" ":ee="",ee+O.linkInline}return F.match(/^[^>]+/,!0),O.linkInline}function U(F,I){if(F.eatSpace())return null;var K=F.next();return K==="("||K==="["?(I.f=I.inline=N(K==="("?")":"]"),T.highlightFormatting&&(I.formatting="link-string"),I.linkHref=!0,C(I)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(I,K){var ee=I.next();if(ee===F){K.f=K.inline=_,T.highlightFormatting&&(K.formatting="link-string");var he=C(K);return K.linkHref=!1,he}return I.match(L[F]),K.linkHref=!0,C(K)}}function V(F,I){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(I.f=H,F.next(),T.highlightFormatting&&(I.formatting="link"),I.linkText=!0,C(I)):s(F,I,_)}function H(F,I){if(F.match(/^\]:/,!0)){I.f=I.inline=D,T.highlightFormatting&&(I.formatting="link");var K=C(I);return I.linkText=!1,K}return F.match(/^([^\]\\]|\\.)+/,!0),O.linkText}function D(F,I){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?I.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),I.f=I.inline=_,O.linkHref+" url")}var W={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:_,text:S,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(F){return{f:F.f,prevLine:F.prevLine,thisLine:F.thisLine,block:F.block,htmlState:F.htmlState&&P.copyState(b,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?P.copyState(F.localMode,F.localState):null,inline:F.inline,text:F.text,formatting:!1,linkText:F.linkText,linkTitle:F.linkTitle,linkHref:F.linkHref,code:F.code,em:F.em,strong:F.strong,strikethrough:F.strikethrough,emoji:F.emoji,header:F.header,setext:F.setext,hr:F.hr,taskList:F.taskList,list:F.list,listStack:F.listStack.slice(0),quote:F.quote,indentedCode:F.indentedCode,trailingSpace:F.trailingSpace,trailingSpaceNewLine:F.trailingSpaceNewLine,md_inside:F.md_inside,fencedEndRE:F.fencedEndRE}},token:function(F,I){if(I.formatting=!1,F!=I.thisLine.stream){if(I.header=0,I.hr=!1,F.match(/^\s*$/,!0))return E(I),null;if(I.prevLine=I.thisLine,I.thisLine={stream:F},I.taskList=!1,I.trailingSpace=0,I.trailingSpaceNewLine=!1,!I.localState&&(I.f=I.block,I.f!=R)){var K=F.match(/^\s*/,!0)[0].replace(/\t/g,d).length;if(I.indentation=K,I.indentationDiff=null,K>0)return null}}return I.f(F,I)},innerMode:function(F){return F.block==R?{state:F.htmlState,mode:b}:F.localState?{state:F.localState,mode:F.localMode}:{state:F,mode:W}},indent:function(F,I,K){return F.block==R&&b.indent?b.indent(F.htmlState,I,K):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,I,K):P.Pass},blankLine:E,getType:C,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return W},"xml"),P.defineMIME("text/markdown","markdown"),P.defineMIME("text/x-markdown","markdown")})},luix:function(k,z,o){k.exports=o.p+"static/tips.2ae2707a.svg"},lzim:function(k,z,o){"use strict";var P=o("E7E6"),g=o.n(P);o.d(z,"w",function(){return g.a});var T=o("/GNS"),b=o.n(T);o.d(z,"v",function(){return b.a});var y=o("FOrL"),x=o.n(y);o.d(z,"q",function(){return x.a});var O=o("HpTS"),m=o.n(O);o.d(z,"x",function(){return m.a});var e=o("tWlo"),f=o.n(e);o.d(z,"a",function(){return f.a});var a=o("7ZXX"),u=o.n(a);o.d(z,"l",function(){return u.a});var r=o("GABl"),i=o.n(r);o.d(z,"e",function(){return i.a});var n=o("onxn"),l=o.n(n);o.d(z,"n",function(){return l.a});var h=o("nKGa"),d=o.n(h);o.d(z,"m",function(){return d.a});var s=o("4qgm"),c=o.n(s);o.d(z,"z",function(){return c.a});var w=o("JeFH"),E=o.n(w);o.d(z,"b",function(){return E.a});var v=o("ji0R"),R=o.n(v);o.d(z,"i",function(){return R.a});var M=o("W6BS"),C=o.n(M);o.d(z,"A",function(){return C.a});var S=o("kPYp"),_=o.n(S);o.d(z,"B",function(){return _.a});var A=o("nukY"),U=o.n(A),L=o("4u4S"),N=o.n(L),V=o("yslc"),H=o.n(V),D=o("l2Kq"),W=o.n(D),F=o("RMFE"),I=o.n(F);o.d(z,"o",function(){return I.a});var K=o("TGq3"),ee=o.n(K),he=o("SMhR"),de=o.n(he);o.d(z,"y",function(){return de.a});var Se=o("8/bI"),Te=o.n(Se);o.d(z,"j",function(){return Te.a});var ce=o("JWDV"),be=o.n(ce),Ee=o("Xsq0"),ue=o.n(Ee);o.d(z,"p",function(){return ue.a});var le=o("Ohmc"),$=o.n(le);o.d(z,"c",function(){return $.a});var me=o("csWT"),re=o.n(me);o.d(z,"d",function(){return re.a});var ae=o("7v3h"),Oe=o.n(ae);o.d(z,"k",function(){return Oe.a});var se=o("cRFk"),te=o.n(se);o.d(z,"u",function(){return te.a});var Q=o("kPWJ"),J=o.n(Q);o.d(z,"t",function(){return J.a});var ve=o("qgvg"),_e=o.n(ve);o.d(z,"r",function(){return _e.a});var Ae=o("FPkq"),Qe=o.n(Ae);o.d(z,"s",function(){return Qe.a});var tt=o("A/g1"),dt=o.n(tt);o.d(z,"f",function(){return dt.a});var mt=o("Nmxd"),vt=o.n(mt);o.d(z,"g",function(){return vt.a});var Et=o("5D2P"),Ye=o.n(Et);o.d(z,"h",function(){return Ye.a});var Ue=o("djh8"),ft=o.n(Ue),jt=o("Jq4h"),yt=o.n(jt)},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(k){if(!0)module.exports=k();else var z})(function(){var define,module,exports;return function(){function k(z,o,P){function g(y,x){if(!o[y]){if(!z[y]){var O=typeof require=="function"&&require;if(!x&&O)return require(y,!0);if(T)return T(y,!0);var m=new Error("Cannot find module '"+y+"'");throw m.code="MODULE_NOT_FOUND",m}var e=o[y]={exports:{}};z[y][0].call(e.exports,function(f){var a=z[y][1][f];return g(a||f)},e,e.exports,k,z,o,P)}return o[y].exports}for(var T=typeof require=="function"&&require,b=0;b=0?se.splice(yt,1):se.push(vt),me({type:ee.SELECTEDIDS,payload:Object(e.a)(se)})}function dt(){se.length===0?b.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"):(Te(se,be),me({type:ee.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}var mt=Q>te*10;return C.a.createElement("div",{className:"select-user-container",style:{paddingBottom:20}},C.a.createElement(K,{onSearch:Ae,schools:ae}),J?C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{className:"flexd-table-header mt20"},C.a.createElement(D.f,null,C.a.createElement(g.a,{pagination:!1,dataSource:I,columns:_e}))),C.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},C.a.createElement(L.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:Qe,hasMore:mt,useWindow:!1},C.a.createElement(D.f,null,C.a.createElement(g.a,{loading:Oe,showHeader:!1,pagination:!1,dataSource:re,columns:_e,onRow:function(yt){return{onClick:function(Ue){yt.added!==1&&tt(yt.numid)}}}})))),C.a.createElement("div",{className:"flex-container flex-end"},C.a.createElement(i.a,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:ce},"\u53D6\u6D88"),C.a.createElement(i.a,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:dt},"\u786E\u5B9A"))):C.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},C.a.createElement("img",{src:V.a,width:"100",alt:""}),C.a.createElement("br",null),C.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")))}},k3GJ:function(k,z,o){"use strict";o.d(z,"a",function(){return Yr});var P=o("rePB"),g=o("ODXe"),T=o("Ff2n"),b=o("VTBJ"),y=o("q1tI"),x=o("TSYQ"),O=o.n(x),m=o("Zm9Q"),e=o("6cGi"),f=o("KQm4"),a=o("xEkU"),u=o.n(a),r=o("t23M");function i(Ze){var ct=Object(y.useRef)(),_t=Object(y.useRef)(!1);function nt(){for(var Me=arguments.length,Je=new Array(Me),Le=0;LeIt&&(ln=It-fn),Object(y.useMemo)(function(){if(!Je.length)return[0,0];for(var cn=Je.length,un=cn,Wn=0;Wnrt+ln){un=Wn-1;break}}for(var jr=0,Mr=cn-1;Mr>=0;Mr-=1){var Qr=Ze.get(Je[Mr].key)||w;if(Qr[pt]1&&arguments[1]!==void 0?arguments[1]:!1,nt=ct&&typeof ct.getBoundingClientRect=="function"&&ct.getBoundingClientRect().width;if(nt){if(_t){var Me=getComputedStyle(ct),Je=Me.marginLeft,Le=Me.marginRight;nt+=+Je.replace("px","")+ +Le.replace("px","")}nt=+nt.toFixed(6)}return nt||0},_e=function(ct,_t,nt){ct&&Object(H.a)(ct.style)==="object"&&(ct.style[_t]=nt)},Ae=function(){return re.any},Qe=o("bdgK"),tt=o("i8i4"),dt=o.n(tt),mt=o("wgJM"),vt=o("l4aY"),yt=o("m+aA"),Ye=o("c+Xe"),Ue=o("zT1h"),ft=o("QC+M");function jt(Ze,ct,_t){return _t?Ze[0]===ct[0]:Ze[0]===ct[0]&&Ze[1]===ct[1]}function bt(Ze,ct,_t){var nt=Ze[ct]||{};return Object(b.a)(Object(b.a)({},nt),_t)}function Pt(Ze,ct,_t,nt){for(var Me=_t.points,Je=Object.keys(Ze),Le=0;Le1&&arguments[1]!==void 0?arguments[1]:2;ct();var Je=Object(mt.a)(function(){Me<=1?nt({isCanceled:function(){return Je!==Ze.current}}):_t(nt,Me-1)});Ze.current=Je}return y.useEffect(function(){return function(){ct()}},[]),[_t,ct]},Hn=[Et,Ot,Mt,lt],Xn=!1,Fn=!0;function xn(Ze){return Ze===Mt||Ze===lt}var fr=function(Ze,ct){var _t=y.useState(ht),nt=Object(g.a)(_t,2),Me=nt[0],Je=nt[1],Le=mn(),$e=Object(g.a)(Le,2),qe=$e[0],pt=$e[1];function rt(){Je(Et)}return on(function(){if(Me!==ht&&Me!==lt){var It=Hn.indexOf(Me),Vt=Hn[It+1],fn=ct(Me);fn===Xn?Je(Vt):qe(function(ln){function cn(){if(ln.isCanceled())return;Je(Vt)}fn===!0?cn():Promise.resolve(fn).then(cn)})}},[Ze,Me]),y.useEffect(function(){return function(){pt()}},[]),[rt,Me]},Yn=function(Ze){var ct=Object(y.useRef)(),_t=Object(y.useRef)(Ze);_t.current=Ze;var nt=y.useCallback(function(Le){_t.current(Le)},[]);function Me(Le){Le&&(Le.removeEventListener(Ct,nt),Le.removeEventListener(Bt,nt))}function Je(Le){ct.current&&ct.current!==Le&&Me(ct.current),Le&&Le!==ct.current&&(Le.addEventListener(Ct,nt),Le.addEventListener(Bt,nt),ct.current=Le)}return y.useEffect(function(){return function(){Me(ct.current)}},[]),[Je,Me]};function ar(Ze,ct,_t,nt){var Me=nt.motionEnter,Je=Me===void 0?!0:Me,Le=nt.motionAppear,$e=Le===void 0?!0:Le,qe=nt.motionLeave,pt=qe===void 0?!0:qe,rt=nt.motionDeadline,It=nt.motionLeaveImmediately,Vt=nt.onAppearPrepare,fn=nt.onEnterPrepare,ln=nt.onLeavePrepare,cn=nt.onAppearStart,un=nt.onEnterStart,Wn=nt.onLeaveStart,Cn=nt.onAppearActive,jr=nt.onEnterActive,Mr=nt.onLeaveActive,Qr=nt.onAppearEnd,Wr=nt.onEnterEnd,ta=nt.onLeaveEnd,Kn=nt.onVisibleChanged,wr=Ft(),Gn=Object(g.a)(wr,2),En=Gn[0],jn=Gn[1],Vr=Ft(et),ua=Object(g.a)(Vr,2),hr=ua[0],aa=ua[1],xa=Ft(null),ha=Object(g.a)(xa,2),Ca=ha[0],Tr=ha[1],br=Object(y.useRef)(!1),Ir=Object(y.useRef)(null),er=Object(y.useRef)(!1),pa=Object(y.useRef)(null);function Ea(){var Ba=_t();return Ba||pa.current}var ba=Object(y.useRef)(!1);function Oa(Ba){var Ma=Ea();if(Ba&&!Ba.deadline&&Ba.target!==Ma)return;var Za;hr===at&&ba.current?Za=Qr==null?void 0:Qr(Ma,Ba):hr===Pe&&ba.current?Za=Wr==null?void 0:Wr(Ma,Ba):hr===Xe&&ba.current&&(Za=ta==null?void 0:ta(Ma,Ba)),Za!==!1&&!er.current&&(aa(et),Tr(null))}var ga=Yn(Oa),ka=Object(g.a)(ga,1),Ua=ka[0],Fa=y.useMemo(function(){var Ba,Ma,Za;switch(hr){case"appear":return Ba={},Object(P.a)(Ba,Et,Vt),Object(P.a)(Ba,Ot,cn),Object(P.a)(Ba,Mt,Cn),Ba;case"enter":return Ma={},Object(P.a)(Ma,Et,fn),Object(P.a)(Ma,Ot,un),Object(P.a)(Ma,Mt,jr),Ma;case"leave":return Za={},Object(P.a)(Za,Et,ln),Object(P.a)(Za,Ot,Wn),Object(P.a)(Za,Mt,Mr),Za;default:return{}}},[hr]),ni=fr(hr,function(Ba){if(Ba===Et){var Ma=Fa[Et];return Ma?Ma(Ea()):Xn}if(Na in Fa){var Za;Tr(((Za=Fa[Na])===null||Za===void 0?void 0:Za.call(Fa,Ea(),null))||null)}return Na===Mt&&(Ua(Ea()),rt>0&&(clearTimeout(Ir.current),Ir.current=setTimeout(function(){Oa({deadline:!0})},rt))),Fn}),Fi=Object(g.a)(ni,2),Ai=Fi[0],Na=Fi[1],bi=xn(Na);ba.current=bi,on(function(){jn(ct);var Ba=br.current;if(br.current=!0,!Ze)return;var Ma;!Ba&&ct&&$e&&(Ma=at),Ba&&ct&&Je&&(Ma=Pe),(Ba&&!ct&&pt||!Ba&&It&&!ct&&pt)&&(Ma=Xe),Ma&&(aa(Ma),Ai())},[ct]),Object(y.useEffect)(function(){(hr===at&&!$e||hr===Pe&&!Je||hr===Xe&&!pt)&&aa(et)},[$e,Je,pt]),Object(y.useEffect)(function(){return function(){clearTimeout(Ir.current),er.current=!0}},[]),Object(y.useEffect)(function(){En!==void 0&&hr===et&&(Kn==null||Kn(En))},[En,hr]);var Si=Ca;return Fa[Et]&&Na===Ot&&(Si=Object(b.a)({transition:"none"},Si)),[hr,Na,Si,En!=null?En:ct]}var nr=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(){return Object(R.a)(this,_t),ct.apply(this,arguments)}return Object(M.a)(_t,[{key:"render",value:function(){return this.props.children}}]),_t}(y.Component),Rr=nr;function pr(Ze){var ct=Ze;Object(H.a)(Ze)==="object"&&(ct=Ze.transitionSupport);function _t(Me){return!!(Me.motionName&&ct)}var nt=y.forwardRef(function(Me,Je){var Le=Me.visible,$e=Le===void 0?!0:Le,qe=Me.removeOnLeave,pt=qe===void 0?!0:qe,rt=Me.forceRender,It=Me.children,Vt=Me.motionName,fn=Me.leavedClassName,ln=Me.eventProps,cn=_t(Me),un=Object(y.useRef)(),Wn=Object(y.useRef)();function Cn(){try{return Object(yt.a)(un.current||Wn.current)}catch(aa){return null}}var jr=ar(cn,$e,Cn,Me),Mr=Object(g.a)(jr,4),Qr=Mr[0],Wr=Mr[1],ta=Mr[2],Kn=Mr[3],wr=y.useRef(Kn);Kn&&(wr.current=!0);var Gn=Object(y.useRef)(Je);Gn.current=Je;var En=y.useCallback(function(aa){un.current=aa,Object(Ye.b)(Gn.current,aa)},[]),jn,Vr=Object(b.a)(Object(b.a)({},ln),{},{visible:$e});if(!It)jn=null;else if(Qr===et||!_t(Me))Kn?jn=It(Object(b.a)({},Vr),En):!pt&&wr.current?jn=It(Object(b.a)(Object(b.a)({},Vr),{},{className:fn}),En):rt?jn=It(Object(b.a)(Object(b.a)({},Vr),{},{style:{display:"none"}}),En):jn=null;else{var ua,hr;Wr===Et?hr="prepare":xn(Wr)?hr="active":Wr===Ot&&(hr="start"),jn=It(Object(b.a)(Object(b.a)({},Vr),{},{className:O()(Ke(Vt,Qr),(ua={},Object(P.a)(ua,Ke(Vt,"".concat(Qr,"-").concat(hr)),hr),Object(P.a)(ua,Vt,typeof Vt=="string"),ua)),style:ta}),En)}return y.createElement(Rr,{ref:Wn},jn)});return nt.displayName="CSSMotion",nt}var sn=pr(rn),qt="add",On="keep",Fr="remove",Or="removed";function xr(Ze){var ct;return Ze&&Object(H.a)(Ze)==="object"&&"key"in Ze?ct=Ze:ct={key:Ze},Object(b.a)(Object(b.a)({},ct),{},{key:String(ct.key)})}function dr(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ze.map(xr)}function pe(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_t=[],nt=0,Me=ct.length,Je=dr(Ze),Le=dr(ct);Je.forEach(function(pt){for(var rt=!1,It=nt;It1});return qe.forEach(function(pt){_t=_t.filter(function(rt){var It=rt.key,Vt=rt.status;return It!==pt||Vt!==Fr}),_t.forEach(function(rt){rt.key===pt&&(rt.status=On)})}),_t}var X=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function q(Ze){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sn,_t=function(nt){Object(S.a)(Je,nt);var Me=Object(_.a)(Je);function Je(){var Le;return Object(R.a)(this,Je),Le=Me.apply(this,arguments),Le.state={keyEntities:[]},Le.removeKey=function($e){Le.setState(function(qe){var pt=qe.keyEntities;return{keyEntities:pt.map(function(rt){return rt.key!==$e?rt:Object(b.a)(Object(b.a)({},rt),{},{status:Or})})}})},Le}return Object(M.a)(Je,[{key:"render",value:function(){var $e=this,qe=this.state.keyEntities,pt=this.props,rt=pt.component,It=pt.children,Vt=pt.onVisibleChanged,fn=Object(T.a)(pt,["component","children","onVisibleChanged"]),ln=rt||y.Fragment,cn={};return X.forEach(function(un){cn[un]=fn[un],delete fn[un]}),delete fn.keys,y.createElement(ln,fn,qe.map(function(un){var Wn=un.status,Cn=Object(T.a)(un,["status"]),jr=Wn===qt||Wn===On;return y.createElement(ct,Object(v.a)({},cn,{key:Cn.key,visible:jr,eventProps:Cn,onVisibleChanged:function(Qr){Vt==null||Vt(Qr,{key:Cn.key}),Qr||$e.removeKey(Cn.key)}}),It)}))}}],[{key:"getDerivedStateFromProps",value:function($e,qe){var pt=$e.keys,rt=qe.keyEntities,It=dr(pt),Vt=pe(rt,It);return{keyEntities:Vt.filter(function(fn){var ln=rt.find(function(cn){var un=cn.key;return fn.key===un});return!(ln&&ln.status===Or&&fn.status===Fr)})}}}]),Je}(y.Component);return _t.defaultProps={component:"div"},_t}var oe=q(rn),De=sn;function fe(Ze){var ct=Ze.prefixCls,_t=Ze.motion,nt=Ze.animation,Me=Ze.transitionName;return _t||(nt?{motionName:"".concat(ct,"-").concat(nt)}:Me?{motionName:Me}:null)}function ot(Ze){var ct=Ze.prefixCls,_t=Ze.visible,nt=Ze.zIndex,Me=Ze.mask,Je=Ze.maskMotion,Le=Ze.maskAnimation,$e=Ze.maskTransitionName;if(!Me)return null;var qe={};return(Je||$e||Le)&&(qe=Object(b.a)({motionAppear:!0},fe({motion:Je,prefixCls:ct,transitionName:$e,animation:Le}))),y.createElement(De,Object(v.a)({},qe,{visible:_t,removeOnLeave:!0}),function(pt){var rt=pt.className;return y.createElement("div",{style:{zIndex:nt},className:O()("".concat(ct,"-mask"),rt)})})}var Qt=o("9mu1"),Mn=o("o0o1"),Vn=o.n(Mn),$t=o("HaE+"),gn=["measure","align",null,"motion"],pn=function(Ze,ct){var _t=Object(y.useState)(null),nt=Object(g.a)(_t,2),Me=nt[0],Je=nt[1],Le=Object(y.useRef)(),$e=Object(y.useRef)(!1);function qe(It){$e.current||Je(It)}function pt(){mt.a.cancel(Le.current)}function rt(It){pt(),Le.current=Object(mt.a)(function(){qe(function(Vt){switch(Me){case"align":return"motion";case"motion":return"stable";default:}return Vt}),It==null||It()})}return Object(y.useEffect)(function(){qe("measure")},[Ze]),Object(y.useEffect)(function(){switch(Me){case"measure":ct();break;default:}Me&&(Le.current=Object(mt.a)(Object($t.a)(Vn.a.mark(function It(){var Vt,fn;return Vn.a.wrap(function(cn){for(;;)switch(cn.prev=cn.next){case 0:Vt=gn.indexOf(Me),fn=gn[Vt+1],fn&&Vt!==-1&&qe(fn);case 3:case"end":return cn.stop()}},It)}))))},[Me]),Object(y.useEffect)(function(){return function(){$e.current=!0,pt()}},[]),[Me,rt]},Ar=function(Ze){var ct=y.useState({width:0,height:0}),_t=Object(g.a)(ct,2),nt=_t[0],Me=_t[1];function Je($e){Me({width:$e.offsetWidth,height:$e.offsetHeight})}var Le=y.useMemo(function(){var $e={};if(Ze){var qe=nt.width,pt=nt.height;Ze.indexOf("height")!==-1&&pt?$e.height=pt:Ze.indexOf("minHeight")!==-1&&pt&&($e.minHeight=pt),Ze.indexOf("width")!==-1&&qe?$e.width=qe:Ze.indexOf("minWidth")!==-1&&qe&&($e.minWidth=qe)}return $e},[Ze,nt]);return[Le,Je]},ra=y.forwardRef(function(Ze,ct){var _t=Ze.visible,nt=Ze.prefixCls,Me=Ze.className,Je=Ze.style,Le=Ze.children,$e=Ze.zIndex,qe=Ze.stretch,pt=Ze.destroyPopupOnHide,rt=Ze.forceRender,It=Ze.align,Vt=Ze.point,fn=Ze.getRootDomNode,ln=Ze.getClassNameFromAlign,cn=Ze.onAlign,un=Ze.onMouseEnter,Wn=Ze.onMouseLeave,Cn=Ze.onMouseDown,jr=Ze.onTouchStart,Mr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useState)(),ta=Object(g.a)(Wr,2),Kn=ta[0],wr=ta[1],Gn=Ar(qe),En=Object(g.a)(Gn,2),jn=En[0],Vr=En[1];function ua(){qe&&Vr(fn())}var hr=pn(_t,ua),aa=Object(g.a)(hr,2),xa=aa[0],ha=aa[1],Ca=Object(y.useRef)();function Tr(){return Vt||fn}function br(){var ga;(ga=Mr.current)===null||ga===void 0||ga.forceAlign()}function Ir(ga,ka){var Ua=ln(ka);Kn!==Ua&&wr(Ua),xa==="align"&&(Kn!==Ua?Promise.resolve().then(function(){br()}):ha(function(){var Fa;(Fa=Ca.current)===null||Fa===void 0||Fa.call(Ca)}),cn==null||cn(ga,ka))}var er=Object(b.a)({},fe(Ze));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ga){var ka=er[ga];er[ga]=function(Ua,Fa){return ha(),ka==null?void 0:ka(Ua,Fa)}});function pa(){return new Promise(function(ga){Ca.current=ga})}y.useEffect(function(){!er.motionName&&xa==="motion"&&ha()},[er.motionName,xa]),y.useImperativeHandle(ct,function(){return{forceAlign:br,getElement:function(){return Qr.current}}});var Ea=Object(b.a)(Object(b.a)({},jn),{},{zIndex:$e,opacity:xa==="motion"||xa==="stable"||!_t?void 0:0,pointerEvents:xa==="stable"?void 0:"none"},Je),ba=!0;(It==null?void 0:It.points)&&(xa==="align"||xa==="stable")&&(ba=!1);var Oa=Le;return y.Children.count(Le)>1&&(Oa=y.createElement("div",{className:"".concat(nt,"-content")},Le)),y.createElement(De,Object(v.a)({visible:_t,ref:Qr,leavedClassName:"".concat(nt,"-hidden")},er,{onAppearPrepare:pa,onEnterPrepare:pa,removeOnLeave:pt,forceRender:rt}),function(ga,ka){var Ua=ga.className,Fa=ga.style,ni=O()(nt,Me,Kn,Ua);return y.createElement(Qt.a,{target:Tr(),key:"popup",ref:Mr,monitorWindowResize:!0,disabled:ba,align:It,onAlign:Ir},y.createElement("div",{ref:ka,className:ni,onMouseEnter:un,onMouseLeave:Wn,onMouseDownCapture:Cn,onTouchStartCapture:jr,style:Object(b.a)(Object(b.a)({},Fa),Ea)},Oa))})});ra.displayName="PopupInner";var oa=ra,ir=y.forwardRef(function(Ze,ct){var _t=Ze.prefixCls,nt=Ze.visible,Me=Ze.zIndex,Je=Ze.children,Le=Ze.mobile;Le=Le===void 0?{}:Le;var $e=Le.popupClassName,qe=Le.popupStyle,pt=Le.popupMotion,rt=pt===void 0?{}:pt,It=Le.popupRender,Vt=y.useRef();y.useImperativeHandle(ct,function(){return{forceAlign:function(){},getElement:function(){return Vt.current}}});var fn=Object(b.a)({zIndex:Me},qe),ln=Je;return y.Children.count(Je)>1&&(ln=y.createElement("div",{className:"".concat(_t,"-content")},Je)),It&&(ln=It(ln)),y.createElement(De,Object(v.a)({visible:nt,ref:Vt,removeOnLeave:!0},rt),function(cn,un){var Wn=cn.className,Cn=cn.style,jr=O()(_t,$e,Wn);return y.createElement("div",{ref:un,className:jr,style:Object(b.a)(Object(b.a)({},Cn),fn)},ln)})});ir.displayName="MobilePopupInner";var Ra=ir,La=["visible","mobile"],ca=y.forwardRef(function(Ze,ct){var _t=Ze.visible,nt=Ze.mobile,Me=Object(T.a)(Ze,La),Je=Object(y.useState)(_t),Le=Object(g.a)(Je,2),$e=Le[0],qe=Le[1],pt=Object(y.useState)(!1),rt=Object(g.a)(pt,2),It=rt[0],Vt=rt[1],fn=Object(b.a)(Object(b.a)({},Me),{},{visible:$e});Object(y.useEffect)(function(){qe(_t),_t&&nt&&Vt(it())},[_t,nt]);var ln=It?y.createElement(Ra,Object(v.a)({},fn,{mobile:nt,ref:ct})):y.createElement(oa,Object(v.a)({},fn,{ref:ct}));return y.createElement("div",null,y.createElement(ot,fn),ln)});ca.displayName="Popup";var Ka=ca,wa=y.createContext(null),Ja=wa;function ja(){}function li(){return""}function oi(Ze){return Ze?Ze.ownerDocument:window.document}var fa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ma(Ze){var ct=function(_t){Object(S.a)(Me,_t);var nt=Object(_.a)(Me);function Me(Je){var Le;Object(R.a)(this,Me),Le=nt.call(this,Je),Le.popupRef=y.createRef(),Le.triggerRef=y.createRef(),Le.attachId=void 0,Le.clickOutsideHandler=void 0,Le.touchOutsideHandler=void 0,Le.contextMenuOutsideHandler1=void 0,Le.contextMenuOutsideHandler2=void 0,Le.mouseDownTimeout=void 0,Le.focusTime=void 0,Le.preClickTime=void 0,Le.preTouchTime=void 0,Le.delayTimer=void 0,Le.hasPopupMouseDown=void 0,Le.onMouseEnter=function(qe){var pt=Le.props.mouseEnterDelay;Le.fireEvents("onMouseEnter",qe),Le.delaySetPopupVisible(!0,pt,pt?null:qe)},Le.onMouseMove=function(qe){Le.fireEvents("onMouseMove",qe),Le.setPoint(qe)},Le.onMouseLeave=function(qe){Le.fireEvents("onMouseLeave",qe),Le.delaySetPopupVisible(!1,Le.props.mouseLeaveDelay)},Le.onPopupMouseEnter=function(){Le.clearDelayTimer()},Le.onPopupMouseLeave=function(qe){var pt;if(qe.relatedTarget&&!qe.relatedTarget.setTimeout&&Object(vt.a)((pt=Le.popupRef.current)===null||pt===void 0?void 0:pt.getElement(),qe.relatedTarget))return;Le.delaySetPopupVisible(!1,Le.props.mouseLeaveDelay)},Le.onFocus=function(qe){Le.fireEvents("onFocus",qe),Le.clearDelayTimer(),Le.isFocusToShow()&&(Le.focusTime=Date.now(),Le.delaySetPopupVisible(!0,Le.props.focusDelay))},Le.onMouseDown=function(qe){Le.fireEvents("onMouseDown",qe),Le.preClickTime=Date.now()},Le.onTouchStart=function(qe){Le.fireEvents("onTouchStart",qe),Le.preTouchTime=Date.now()},Le.onBlur=function(qe){Le.fireEvents("onBlur",qe),Le.clearDelayTimer(),Le.isBlurToHide()&&Le.delaySetPopupVisible(!1,Le.props.blurDelay)},Le.onContextMenu=function(qe){qe.preventDefault(),Le.fireEvents("onContextMenu",qe),Le.setPopupVisible(!0,qe)},Le.onContextMenuClose=function(){Le.isContextMenuToShow()&&Le.close()},Le.onClick=function(qe){if(Le.fireEvents("onClick",qe),Le.focusTime){var pt;if(Le.preClickTime&&Le.preTouchTime?pt=Math.min(Le.preClickTime,Le.preTouchTime):Le.preClickTime?pt=Le.preClickTime:Le.preTouchTime&&(pt=Le.preTouchTime),Math.abs(pt-Le.focusTime)<20)return;Le.focusTime=0}Le.preClickTime=0,Le.preTouchTime=0,Le.isClickToShow()&&(Le.isClickToHide()||Le.isBlurToHide())&&qe&&qe.preventDefault&&qe.preventDefault();var rt=!Le.state.popupVisible;(Le.isClickToHide()&&!rt||rt&&Le.isClickToShow())&&Le.setPopupVisible(!Le.state.popupVisible,qe)},Le.onPopupMouseDown=function(){if(Le.hasPopupMouseDown=!0,clearTimeout(Le.mouseDownTimeout),Le.mouseDownTimeout=window.setTimeout(function(){Le.hasPopupMouseDown=!1},0),Le.context){var qe;(qe=Le.context).onPopupMouseDown.apply(qe,arguments)}},Le.onDocumentClick=function(qe){if(Le.props.mask&&!Le.props.maskClosable)return;var pt=qe.target,rt=Le.getRootDomNode(),It=Le.getPopupDomNode();(!Object(vt.a)(rt,pt)||Le.isContextMenuOnly())&&!Object(vt.a)(It,pt)&&!Le.hasPopupMouseDown&&Le.close()},Le.getRootDomNode=function(){var qe=Le.props.getTriggerDOMNode;if(qe)return qe(Le.triggerRef.current);try{var pt=Object(yt.a)(Le.triggerRef.current);if(pt)return pt}catch(rt){}return dt.a.findDOMNode(Object(C.a)(Le))},Le.getPopupClassNameFromAlign=function(qe){var pt=[],rt=Le.props,It=rt.popupPlacement,Vt=rt.builtinPlacements,fn=rt.prefixCls,ln=rt.alignPoint,cn=rt.getPopupClassNameFromAlign;return It&&Vt&&pt.push(Pt(Vt,fn,qe,ln)),cn&&pt.push(cn(qe)),pt.join(" ")},Le.getComponent=function(){var qe=Le.props,pt=qe.prefixCls,rt=qe.destroyPopupOnHide,It=qe.popupClassName,Vt=qe.onPopupAlign,fn=qe.popupMotion,ln=qe.popupAnimation,cn=qe.popupTransitionName,un=qe.popupStyle,Wn=qe.mask,Cn=qe.maskAnimation,jr=qe.maskTransitionName,Mr=qe.maskMotion,Qr=qe.zIndex,Wr=qe.popup,ta=qe.stretch,Kn=qe.alignPoint,wr=qe.mobile,Gn=qe.forceRender,En=Le.state,jn=En.popupVisible,Vr=En.point,ua=Le.getPopupAlign(),hr={};return Le.isMouseEnterToShow()&&(hr.onMouseEnter=Le.onPopupMouseEnter),Le.isMouseLeaveToHide()&&(hr.onMouseLeave=Le.onPopupMouseLeave),hr.onMouseDown=Le.onPopupMouseDown,hr.onTouchStart=Le.onPopupMouseDown,y.createElement(Ka,Object(v.a)({prefixCls:pt,destroyPopupOnHide:rt,visible:jn,point:Kn&&Vr,className:It,align:ua,onAlign:Vt,animation:ln,getClassNameFromAlign:Le.getPopupClassNameFromAlign},hr,{stretch:ta,getRootDomNode:Le.getRootDomNode,style:un,mask:Wn,zIndex:Qr,transitionName:cn,maskAnimation:Cn,maskTransitionName:jr,maskMotion:Mr,ref:Le.popupRef,motion:fn,mobile:wr,forceRender:Gn}),typeof Wr=="function"?Wr():Wr)},Le.attachParent=function(qe){mt.a.cancel(Le.attachId);var pt=Le.props,rt=pt.getPopupContainer,It=pt.getDocument,Vt=Le.getRootDomNode(),fn;rt?(Vt||rt.length===0)&&(fn=rt(Vt)):fn=It(Le.getRootDomNode()).body,fn?fn.appendChild(qe):Le.attachId=Object(mt.a)(function(){Le.attachParent(qe)})},Le.getContainer=function(){var qe=Le.props.getDocument,pt=qe(Le.getRootDomNode()).createElement("div");return pt.style.position="absolute",pt.style.top="0",pt.style.left="0",pt.style.width="100%",Le.attachParent(pt),pt},Le.setPoint=function(qe){var pt=Le.props.alignPoint;if(!pt||!qe)return;Le.setState({point:{pageX:qe.pageX,pageY:qe.pageY}})},Le.handlePortalUpdate=function(){Le.state.prevPopupVisible!==Le.state.popupVisible&&Le.props.afterPopupVisibleChange(Le.state.popupVisible)},Le.triggerContextValue={onPopupMouseDown:Le.onPopupMouseDown};var $e;return"popupVisible"in Je?$e=!!Je.popupVisible:$e=!!Je.defaultPopupVisible,Le.state={prevPopupVisible:$e,popupVisible:$e},fa.forEach(function(qe){Le["fire".concat(qe)]=function(pt){Le.fireEvents(qe,pt)}}),Le}return Object(M.a)(Me,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Le=this.props,$e=this.state;if($e.popupVisible){var qe;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(qe=Le.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ue.a)(qe,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(qe=qe||Le.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ue.a)(qe,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(qe=qe||Le.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ue.a)(qe,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ue.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),mt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Le;return((Le=this.popupRef.current)===null||Le===void 0?void 0:Le.getElement())||null}},{key:"getPopupAlign",value:function(){var Le=this.props,$e=Le.popupPlacement,qe=Le.popupAlign,pt=Le.builtinPlacements;return $e&&pt?bt(pt,$e,qe):qe}},{key:"setPopupVisible",value:function(Le,$e){var qe=this.props.alignPoint,pt=this.state.popupVisible;this.clearDelayTimer(),pt!==Le&&("popupVisible"in this.props||this.setState({popupVisible:Le,prevPopupVisible:pt}),this.props.onPopupVisibleChange(Le)),qe&&$e&&Le&&this.setPoint($e)}},{key:"delaySetPopupVisible",value:function(Le,$e,qe){var pt=this,rt=$e*1e3;if(this.clearDelayTimer(),rt){var It=qe?{pageX:qe.pageX,pageY:qe.pageY}:null;this.delayTimer=window.setTimeout(function(){pt.setPopupVisible(Le,It),pt.clearDelayTimer()},rt)}else this.setPopupVisible(Le,qe)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Le){var $e=this.props.children.props,qe=this.props;return $e[Le]&&qe[Le]?this["fire".concat(Le)]:$e[Le]||qe[Le]}},{key:"isClickToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Le=this.props.action;return Le==="contextMenu"||Le.length===1&&Le[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("contextMenu")!==-1||qe.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Le=this.props,$e=Le.action,qe=Le.hideAction;return $e.indexOf("click")!==-1||qe.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Le=this.props,$e=Le.action,qe=Le.hideAction;return $e.indexOf("hover")!==-1||qe.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Le=this.props,$e=Le.action,qe=Le.showAction;return $e.indexOf("focus")!==-1||qe.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Le=this.props,$e=Le.action,qe=Le.hideAction;return $e.indexOf("focus")!==-1||qe.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Le;(Le=this.popupRef.current)===null||Le===void 0||Le.forceAlign()}}},{key:"fireEvents",value:function(Le,$e){var qe=this.props.children.props[Le];qe&&qe($e);var pt=this.props[Le];pt&&pt($e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Le=this.state.popupVisible,$e=this.props,qe=$e.children,pt=$e.forceRender,rt=$e.alignPoint,It=$e.className,Vt=$e.autoDestroy,fn=y.Children.only(qe),ln={key:"trigger"};this.isContextMenuToShow()?ln.onContextMenu=this.onContextMenu:ln.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(ln.onClick=this.onClick,ln.onMouseDown=this.onMouseDown,ln.onTouchStart=this.onTouchStart):(ln.onClick=this.createTwoChains("onClick"),ln.onMouseDown=this.createTwoChains("onMouseDown"),ln.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(ln.onMouseEnter=this.onMouseEnter,rt&&(ln.onMouseMove=this.onMouseMove)):ln.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?ln.onMouseLeave=this.onMouseLeave:ln.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(ln.onFocus=this.onFocus,ln.onBlur=this.onBlur):(ln.onFocus=this.createTwoChains("onFocus"),ln.onBlur=this.createTwoChains("onBlur"));var cn=O()(fn&&fn.props&&fn.props.className,It);cn&&(ln.className=cn);var un=Object(b.a)({},ln);Object(Ye.c)(fn)&&(un.ref=Object(Ye.a)(this.triggerRef,fn.ref));var Wn=y.cloneElement(fn,un),Cn;return(Le||this.popupRef.current||pt)&&(Cn=y.createElement(Ze,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Le&&Vt&&(Cn=null),y.createElement(Ja.Provider,{value:this.triggerContextValue},Wn,Cn)}}],[{key:"getDerivedStateFromProps",value:function(Le,$e){var qe=Le.popupVisible,pt={};return qe!==void 0&&$e.popupVisible!==qe&&(pt.popupVisible=qe,pt.prevPopupVisible=$e.popupVisible),pt}}]),Me}(y.Component);return ct.contextType=Ja,ct.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:li,getDocument:oi,onPopupVisibleChange:ja,afterPopupVisibleChange:ja,onPopupAlign:ja,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ct}var la=ma(ft.a),xe={adjustX:1,adjustY:1},ut={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},Rt={topLeft:{points:["bl","tl"],overflow:xe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:xe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:xe,offset:[4,0]}},wt=ut,Kt=0,Nt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Xt=function(ct,_t,nt){var Me=se(_t),Je=ct.getState();ct.setState({defaultActiveFirst:Object(b.a)(Object(b.a)({},Je.defaultActiveFirst),{},Object(P.a)({},Me,nt))})},nn=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(nt){var Me;Object(R.a)(this,_t),Me=ct.call(this,nt),Me.onDestroy=function(rt){Me.props.onDestroy(rt)},Me.onKeyDown=function(rt){var It=rt.keyCode,Vt=Me.menuInstance,fn=Me.props.store,ln=Me.getVisible();if(It===l.a.ENTER)return Me.onTitleClick(rt),Xt(fn,Me.props.eventKey,!0),!0;if(It===l.a.RIGHT)return ln?Vt.onKeyDown(rt):(Me.triggerOpenChange(!0),Xt(fn,Me.props.eventKey,!0)),!0;if(It===l.a.LEFT){var cn;if(ln)cn=Vt.onKeyDown(rt);else return;return cn||(Me.triggerOpenChange(!1),cn=!0),cn}return ln&&(It===l.a.UP||It===l.a.DOWN)?Vt.onKeyDown(rt):void 0},Me.onOpenChange=function(rt){Me.props.onOpenChange(rt)},Me.onPopupVisibleChange=function(rt){Me.triggerOpenChange(rt,rt?"mouseenter":"mouseleave")},Me.onMouseEnter=function(rt){var It=Me.props,Vt=It.eventKey,fn=It.onMouseEnter,ln=It.store;Xt(ln,Me.props.eventKey,!1),fn({key:Vt,domEvent:rt})},Me.onMouseLeave=function(rt){var It=Me.props,Vt=It.parentMenu,fn=It.eventKey,ln=It.onMouseLeave;Vt.subMenuInstance=Object(C.a)(Me),ln({key:fn,domEvent:rt})},Me.onTitleMouseEnter=function(rt){var It=Me.props,Vt=It.eventKey,fn=It.onItemHover,ln=It.onTitleMouseEnter;fn({key:Vt,hover:!0}),ln({key:Vt,domEvent:rt})},Me.onTitleMouseLeave=function(rt){var It=Me.props,Vt=It.parentMenu,fn=It.eventKey,ln=It.onItemHover,cn=It.onTitleMouseLeave;Vt.subMenuInstance=Object(C.a)(Me),ln({key:fn,hover:!1}),cn({key:fn,domEvent:rt})},Me.onTitleClick=function(rt){var It=Object(C.a)(Me),Vt=It.props;if(Vt.onTitleClick({key:Vt.eventKey,domEvent:rt}),Vt.triggerSubMenuAction==="hover")return;Me.triggerOpenChange(!Me.getVisible(),"click"),Xt(Vt.store,Me.props.eventKey,!1)},Me.onSubMenuClick=function(rt){typeof Me.props.onClick=="function"&&Me.props.onClick(Me.addKeyPath(rt))},Me.onSelect=function(rt){Me.props.onSelect(rt)},Me.onDeselect=function(rt){Me.props.onDeselect(rt)},Me.getPrefixCls=function(){return"".concat(Me.props.rootPrefixCls,"-submenu")},Me.getActiveClassName=function(){return"".concat(Me.getPrefixCls(),"-active")},Me.getDisabledClassName=function(){return"".concat(Me.getPrefixCls(),"-disabled")},Me.getSelectedClassName=function(){return"".concat(Me.getPrefixCls(),"-selected")},Me.getOpenClassName=function(){return"".concat(Me.props.rootPrefixCls,"-submenu-open")},Me.getVisible=function(){return Me.state.isOpen},Me.getMode=function(){return Me.state.mode},Me.saveMenuInstance=function(rt){Me.menuInstance=rt},Me.addKeyPath=function(rt){return Object(b.a)(Object(b.a)({},rt),{},{keyPath:(rt.keyPath||[]).concat(Me.props.eventKey)})},Me.triggerOpenChange=function(rt,It){var Vt=Me.props.eventKey,fn=function(){Me.onOpenChange({key:Vt,item:Object(C.a)(Me),trigger:It,open:rt})};It==="mouseenter"?Me.mouseenterTimeout=setTimeout(function(){fn()},0):fn()},Me.isChildrenSelected=function(){var rt={find:!1};return Q(Me.props.children,Me.props.selectedKeys,rt),rt.find},Me.isInlineMode=function(){return Me.getMode()==="inline"},Me.adjustWidth=function(){if(!Me.subMenuTitle||!Me.menuInstance)return;var rt=tt.findDOMNode(Me.menuInstance);if(rt.offsetWidth>=Me.subMenuTitle.offsetWidth)return;rt.style.minWidth="".concat(Me.subMenuTitle.offsetWidth,"px")},Me.saveSubMenuTitle=function(rt){Me.subMenuTitle=rt},Me.getBaseProps=function(){var rt=Object(C.a)(Me),It=rt.props,Vt=Me.getMode();return{mode:Vt==="horizontal"?"vertical":Vt,visible:Me.getVisible(),level:It.level+1,inlineIndent:It.inlineIndent,focusable:!1,onClick:Me.onSubMenuClick,onSelect:Me.onSelect,onDeselect:Me.onDeselect,onDestroy:Me.onDestroy,selectedKeys:It.selectedKeys,eventKey:"".concat(It.eventKey,"-menu-"),openKeys:It.openKeys,motion:It.motion,onOpenChange:Me.onOpenChange,subMenuOpenDelay:It.subMenuOpenDelay,parentMenu:Object(C.a)(Me),subMenuCloseDelay:It.subMenuCloseDelay,forceSubMenuRender:It.forceSubMenuRender,triggerSubMenuAction:It.triggerSubMenuAction,builtinPlacements:It.builtinPlacements,defaultActiveFirst:It.store.getState().defaultActiveFirst[se(It.eventKey)],multiple:It.multiple,prefixCls:It.rootPrefixCls,id:Me.internalMenuId,manualRef:Me.saveMenuInstance,itemIcon:It.itemIcon,expandIcon:It.expandIcon,direction:It.direction}},Me.getMotion=function(rt,It){var Vt=Object(C.a)(Me),fn=Vt.haveRendered,ln=Me.props,cn=ln.motion,un=ln.rootPrefixCls,Wn=Object(b.a)(Object(b.a)({},cn),{},{leavedClassName:"".concat(un,"-hidden"),removeOnLeave:!1,motionAppear:fn||!It||rt!=="inline"});return Wn};var Je=nt.store,Le=nt.eventKey,$e=Je.getState(),qe=$e.defaultActiveFirst;Me.isRootMenu=!1;var pt=!1;return qe&&(pt=qe[Le]),Xt(Je,Le,pt),Me.state={mode:nt.mode,isOpen:nt.isOpen},Me}return Object(M.a)(_t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this,Je=this.props,Le=Je.mode,$e=Je.parentMenu,qe=Je.manualRef,pt=Je.isOpen,rt=function(){Me.setState({mode:Le,isOpen:pt})},It=pt!==this.state.isOpen,Vt=Le!==this.state.mode;if((Vt||It)&&(mt.a.cancel(this.updateStateRaf),Vt?this.updateStateRaf=Object(mt.a)(rt):rt()),qe&&qe(this),Le!=="horizontal"||!($e==null?void 0:$e.isRootMenu)||!pt)return;this.minWidthTimeout=setTimeout(function(){return Me.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Me=this.props,Je=Me.onDestroy,Le=Me.eventKey;Je&&Je(Le),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),mt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Me,Je){var Le=this.getBaseProps();return y.createElement(Yt,Object(v.a)({},Le,{id:this.internalMenuId,className:Me,style:Je}),this.props.children)}},{key:"renderChildren",value:function(){var Me=this,Je=this.getBaseProps(),Le=Je.mode,$e=Je.visible,qe=Je.forceSubMenuRender,pt=Je.direction,rt=this.getMotion(Le,$e);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||$e||qe,!this.haveOpened)return y.createElement("div",null);var It=O()("".concat(Je.prefixCls,"-sub"),Object(P.a)({},"".concat(Je.prefixCls,"-rtl"),pt==="rtl"));return this.isInlineMode()?y.createElement(De,Object(v.a)({visible:Je.visible,forceRender:qe},rt),function(Vt){var fn=Vt.className,ln=Vt.style,cn=O()(It,fn);return Me.renderPopupMenu(cn,ln)}):this.renderPopupMenu(It)}},{key:"render",value:function(){var Me,Je,Le,$e=Object(b.a)({},this.props),qe=this.getVisible(),pt=this.getPrefixCls(),rt=this.isInlineMode(),It=this.getMode(),Vt=O()(pt,"".concat(pt,"-").concat(It),(Me={},Object(P.a)(Me,$e.className,!!$e.className),Object(P.a)(Me,this.getOpenClassName(),qe),Object(P.a)(Me,this.getActiveClassName(),$e.active||qe&&!rt),Object(P.a)(Me,this.getDisabledClassName(),$e.disabled),Object(P.a)(Me,this.getSelectedClassName(),this.isChildrenSelected()),Me));this.internalMenuId||($e.eventKey?this.internalMenuId="".concat($e.eventKey,"$Menu"):(Kt+=1,this.internalMenuId="$__$".concat(Kt,"$Menu")));var fn={},ln={},cn={};$e.disabled||(fn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ln={onClick:this.onTitleClick},cn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var un={},Wn=$e.direction,Cn=Wn==="rtl";rt&&(Cn?un.paddingRight=$e.inlineIndent*$e.level:un.paddingLeft=$e.inlineIndent*$e.level);var jr={};this.getVisible()&&(jr={"aria-owns":this.internalMenuId});var Mr=null;It!=="horizontal"&&(Mr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Mr=y.createElement(this.props.expandIcon,Object(b.a)({},this.props))));var Qr=y.createElement("div",Object(v.a)({ref:this.saveSubMenuTitle,style:un,className:"".concat(pt,"-title"),role:"button"},cn,ln,{"aria-expanded":qe},jr,{"aria-haspopup":"true",title:typeof $e.title=="string"?$e.title:void 0}),$e.title,Mr||y.createElement("i",{className:"".concat(pt,"-arrow")})),Wr=this.renderChildren(),ta=((Je=$e.parentMenu)===null||Je===void 0?void 0:Je.isRootMenu)?$e.parentMenu.props.getPopupContainer:function(Tr){return Tr.parentNode},Kn=Nt[It],wr=$e.popupOffset?{offset:$e.popupOffset}:{},Gn=O()((Le={},Object(P.a)(Le,$e.popupClassName,$e.popupClassName&&!rt),Object(P.a)(Le,"".concat(pt,"-rtl"),Cn),Le)),En=$e.disabled,jn=$e.triggerSubMenuAction,Vr=$e.subMenuOpenDelay,ua=$e.forceSubMenuRender,hr=$e.subMenuCloseDelay,aa=$e.builtinPlacements;J.forEach(function(Tr){return delete $e[Tr]}),delete $e.onClick;var xa=Cn?Object(b.a)(Object(b.a)({},Rt),aa):Object(b.a)(Object(b.a)({},ut),aa);delete $e.direction;var ha=this.getBaseProps(),Ca=rt?null:this.getMotion(ha.mode,ha.visible);return y.createElement("li",Object(v.a)({},$e,fn,{className:Vt,role:"menuitem"}),y.createElement(la,{prefixCls:pt,popupClassName:O()("".concat(pt,"-popup"),Gn),getPopupContainer:ta,builtinPlacements:xa,popupPlacement:Kn,popupVisible:rt?!1:qe,popupAlign:wr,popup:rt?null:Wr,action:En||rt?[]:[jn],mouseEnterDelay:Vr,mouseLeaveDelay:hr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ua,popupMotion:Ca},Qr),rt?Wr:null)}}]),_t}(y.Component);nn.defaultProps={onMouseEnter:ae,onMouseLeave:ae,onTitleMouseEnter:ae,onTitleMouseLeave:ae,onTitleClick:ae,manualRef:ae,mode:"vertical",title:""};var yn=Object(A.b)(function(Ze,ct){var _t=Ze.openKeys,nt=Ze.activeKey,Me=Ze.selectedKeys,Je=ct.eventKey,Le=ct.subMenuKey;return{isOpen:_t.indexOf(Je)>-1,active:nt[Le]===Je,selectedKeys:Me}})(nn);yn.isSubMenu=!0;var vn=yn,Nn="menuitem-overflowed",An=.5,an=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(){var nt;return Object(R.a)(this,_t),nt=ct.apply(this,arguments),nt.resizeObserver=null,nt.mutationObserver=null,nt.originalTotalWidth=0,nt.overflowedItems=[],nt.menuItemSizes=[],nt.cancelFrameId=null,nt.state={lastVisibleIndex:void 0},nt.childRef=y.createRef(),nt.getMenuItemNodes=function(){var Me=nt.props.prefixCls,Je=nt.childRef.current;return Je?[].slice.call(Je.children).filter(function(Le){return Le.className.split(" ").indexOf("".concat(Me,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Me,Je,Le){var $e=nt.props,qe=$e.overflowedIndicator,pt=$e.level,rt=$e.mode,It=$e.prefixCls,Vt=$e.theme;if(pt!==1||rt!=="horizontal")return null;var fn=nt.props.children[0],ln=fn.props,cn=ln.children,un=ln.title,Wn=ln.style,Cn=Object(T.a)(ln,["children","title","style"]),jr=Object(b.a)({},Wn),Mr="".concat(Me,"-overflowed-indicator"),Qr="".concat(Me,"-overflowed-indicator");Je.length===0&&Le!==!0?jr=Object(b.a)(Object(b.a)({},jr),{},{display:"none"}):Le&&(jr=Object(b.a)(Object(b.a)({},jr),{},{visibility:"hidden",position:"absolute"}),Mr="".concat(Mr,"-placeholder"),Qr="".concat(Qr,"-placeholder"));var Wr=Vt?"".concat(It,"-").concat(Vt):"",ta={};return J.forEach(function(Kn){Cn[Kn]!==void 0&&(ta[Kn]=Cn[Kn])}),y.createElement(vn,Object(v.a)({title:qe,className:"".concat(It,"-overflowed-submenu"),popupClassName:Wr},ta,{key:Mr,eventKey:Qr,disabled:!1,style:jr}),Je)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Je=Me.children;if(!Je||Je.length===0)return;var Le=Me.children[Je.length-1];_e(Le,"display","inline-block");var $e=nt.getMenuItemNodes(),qe=$e.filter(function(pt){return pt.className.split(" ").indexOf(Nn)>=0});qe.forEach(function(pt){_e(pt,"display","inline-block")}),nt.menuItemSizes=$e.map(function(pt){return ve(pt,!0)}),qe.forEach(function(pt){_e(pt,"display","none")}),nt.overflowedIndicatorWidth=ve(Me.children[Me.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(pt,rt){return pt+rt},0),nt.handleResize(),_e(Le,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Me=nt.childRef.current;if(!Me)return;var Je=ve(Me);nt.overflowedItems=[];var Le=0,$e;nt.originalTotalWidth>Je+An&&($e=-1,nt.menuItemSizes.forEach(function(qe){Le+=qe,Le+nt.overflowedIndicatorWidth<=Je&&($e+=1)})),nt.setState({lastVisibleIndex:$e})},nt}return Object(M.a)(_t,[{key:"componentDidMount",value:function(){var Me=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Je=this.childRef.current;if(!Je)return;this.resizeObserver=new Qe.default(function(Le){Le.forEach(function(){var $e=Me.cancelFrameId;cancelAnimationFrame($e),Me.cancelFrameId=requestAnimationFrame(Me.setChildrenWidthAndResize)})}),[].slice.call(Je.children).concat(Je).forEach(function(Le){Me.resizeObserver.observe(Le)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Me.resizeObserver.disconnect(),[].slice.call(Je.children).concat(Je).forEach(function(Le){Me.resizeObserver.observe(Le)}),Me.setChildrenWidthAndResize()}),this.mutationObserver.observe(Je,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Me){var Je=this,Le=this.state.lastVisibleIndex;return(Me||[]).reduce(function($e,qe,pt){var rt=qe;if(Je.props.mode==="horizontal"){var It=Je.getOverflowedSubMenuItem(qe.props.eventKey,[]);Le!==void 0&&Je.props.className.indexOf("".concat(Je.props.prefixCls,"-root"))!==-1&&(pt>Le&&(rt=y.cloneElement(qe,{style:{display:"none"},eventKey:"".concat(qe.props.eventKey,"-hidden"),className:"".concat(Nn)})),pt===Le+1&&(Je.overflowedItems=Me.slice(Le+1).map(function(fn){return y.cloneElement(fn,{key:fn.props.eventKey,mode:"vertical-left"})}),It=Je.getOverflowedSubMenuItem(qe.props.eventKey,Je.overflowedItems)));var Vt=[].concat(Object(f.a)($e),[It,rt]);return pt===Me.length-1&&Vt.push(Je.getOverflowedSubMenuItem(qe.props.eventKey,[],!0)),Vt}return[].concat(Object(f.a)($e),[rt])},[])}},{key:"render",value:function(){var Me=this.props,Je=Me.visible,Le=Me.prefixCls,$e=Me.overflowedIndicator,qe=Me.mode,pt=Me.level,rt=Me.tag,It=Me.children,Vt=Me.theme,fn=Object(T.a)(Me,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ln=rt;return y.createElement(ln,Object(v.a)({ref:this.childRef},fn),this.renderChildren(It))}}]),_t}(y.Component);an.defaultProps={tag:"div",className:""};var Pn=an;function bn(Ze){return Ze.length?Ze.every(function(ct){return!!ct.props.disabled}):!0}function kn(Ze,ct,_t){var nt=Ze.getState();Ze.setState({activeKey:Object(b.a)(Object(b.a)({},nt.activeKey),{},Object(P.a)({},ct,_t))})}function Rn(Ze){return Ze.eventKey||"0-menu-"}function Jn(Ze,ct){var _t=ct,nt=Ze.children,Me=Ze.eventKey;if(_t){var Je;if(te(nt,function(Le,$e){Le&&Le.props&&!Le.props.disabled&&_t===Oe(Le,Me,$e)&&(Je=!0)}),Je)return _t}return _t=null,Ze.defaultActiveFirst&&te(nt,function(Le,$e){!_t&&Le&&!Le.props.disabled&&(_t=Oe(Le,Me,$e))}),_t}function mr(Ze){if(!Ze)return;var ct=this.instanceArray.indexOf(Ze);ct!==-1?this.instanceArray[ct]=Ze:this.instanceArray.push(Ze)}var Br=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(nt){var Me;return Object(R.a)(this,_t),Me=ct.call(this,nt),Me.onKeyDown=function(Je,Le){var $e=Je.keyCode,qe;if(Me.getFlatInstanceArray().forEach(function(rt){rt&&rt.props.active&&rt.onKeyDown&&(qe=rt.onKeyDown(Je))}),qe)return 1;var pt=null;return($e===l.a.UP||$e===l.a.DOWN)&&(pt=Me.step($e===l.a.UP?-1:1)),pt?(Je.preventDefault(),kn(Me.props.store,Rn(Me.props),pt.props.eventKey),typeof Le=="function"&&Le(pt),1):void 0},Me.onItemHover=function(Je){var Le=Je.key,$e=Je.hover;kn(Me.props.store,Rn(Me.props),$e?Le:null)},Me.onDeselect=function(Je){Me.props.onDeselect(Je)},Me.onSelect=function(Je){Me.props.onSelect(Je)},Me.onClick=function(Je){Me.props.onClick(Je)},Me.onOpenChange=function(Je){Me.props.onOpenChange(Je)},Me.onDestroy=function(Je){Me.props.onDestroy(Je)},Me.getFlatInstanceArray=function(){return Me.instanceArray},Me.step=function(Je){var Le=Me.getFlatInstanceArray(),$e=Me.props.store.getState().activeKey[Rn(Me.props)],qe=Le.length;if(!qe)return null;Je<0&&(Le=Le.concat().reverse());var pt=-1;if(Le.every(function(fn,ln){return fn&&fn.props.eventKey===$e?(pt=ln,!1):!0}),!Me.props.defaultActiveFirst&&pt!==-1&&bn(Le.slice(pt,qe-1)))return;var rt=(pt+1)%qe,It=rt;do{var Vt=Le[It];if(!Vt||Vt.props.disabled)It=(It+1)%qe;else return Vt}while(It!==rt);return null},Me.renderCommonMenuItem=function(Je,Le,$e){var qe=Me.props.store.getState(),pt=Object(C.a)(Me),rt=pt.props,It=Oe(Je,rt.eventKey,Le),Vt=Je.props;if(!Vt||typeof Je.type=="string")return Je;var fn=It===qe.activeKey,ln=Object(b.a)(Object(b.a)({mode:Vt.mode||rt.mode,level:rt.level,inlineIndent:rt.inlineIndent,renderMenuItem:Me.renderMenuItem,rootPrefixCls:rt.prefixCls,index:Le,parentMenu:rt.parentMenu,manualRef:Vt.disabled?void 0:Object(L.a)(Je.ref,mr.bind(Object(C.a)(Me))),eventKey:It,active:!Vt.disabled&&fn,multiple:rt.multiple,onClick:function(un){(Vt.onClick||ae)(un),Me.onClick(un)},onItemHover:Me.onItemHover,motion:rt.motion,subMenuOpenDelay:rt.subMenuOpenDelay,subMenuCloseDelay:rt.subMenuCloseDelay,forceSubMenuRender:rt.forceSubMenuRender,onOpenChange:Me.onOpenChange,onDeselect:Me.onDeselect,onSelect:Me.onSelect,builtinPlacements:rt.builtinPlacements,itemIcon:Vt.itemIcon||Me.props.itemIcon,expandIcon:Vt.expandIcon||Me.props.expandIcon},$e),{},{direction:rt.direction});return(rt.mode==="inline"||Ae())&&(ln.triggerSubMenuAction="click"),y.cloneElement(Je,Object(b.a)(Object(b.a)({},ln),{},{key:It||Le}))},Me.renderMenuItem=function(Je,Le,$e){if(!Je)return null;var qe=Me.props.store.getState(),pt={openKeys:qe.openKeys,selectedKeys:qe.selectedKeys,triggerSubMenuAction:Me.props.triggerSubMenuAction,subMenuKey:$e};return Me.renderCommonMenuItem(Je,Le,pt)},nt.store.setState({activeKey:Object(b.a)(Object(b.a)({},nt.store.getState().activeKey),{},Object(P.a)({},nt.eventKey,Jn(nt,nt.activeKey)))}),Me.instanceArray=[],Me}return Object(M.a)(_t,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Me){return this.props.visible||Me.visible||this.props.className!==Me.className||!V()(this.props.style,Me.style)}},{key:"componentDidUpdate",value:function(Me){var Je=this.props,Le="activeKey"in Je?Je.activeKey:Je.store.getState().activeKey[Rn(Je)],$e=Jn(Je,Le);if($e!==Le)kn(Je.store,Rn(Je),$e);else if("activeKey"in Me){var qe=Jn(Me,Me.activeKey);$e!==qe&&kn(Je.store,Rn(Je),$e)}}},{key:"render",value:function(){var Me=this,Je=Object(v.a)({},this.props);this.instanceArray=[];var Le=O()(Je.prefixCls,Je.className,"".concat(Je.prefixCls,"-").concat(Je.mode)),$e={className:Le,role:Je.role||"menu"};Je.id&&($e.id=Je.id),Je.focusable&&($e.tabIndex=0,$e.onKeyDown=this.onKeyDown);var qe=Je.prefixCls,pt=Je.eventKey,rt=Je.visible,It=Je.level,Vt=Je.mode,fn=Je.overflowedIndicator,ln=Je.theme;return J.forEach(function(cn){return delete Je[cn]}),delete Je.onClick,y.createElement(Pn,Object(v.a)({},Je,{prefixCls:qe,mode:Vt,tag:"ul",level:It,theme:ln,visible:rt,overflowedIndicator:fn},$e),Object(m.a)(Je.children).map(function(cn,un){return Me.renderMenuItem(cn,un,pt||"0-menu-")}))}}]),_t}(y.Component);Br.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ae};var Sn=Object(A.b)()(Br),Yt=Sn,dn=o("Kwbf");function Dn(Ze,ct,_t){var nt=Ze.prefixCls,Me=Ze.motion,Je=Ze.defaultMotions,Le=Je===void 0?{}:Je,$e=Ze.openAnimation,qe=Ze.openTransitionName,pt=ct.switchingModeFromInline;if(Me)return Me;if(Object(H.a)($e)==="object"&&$e)Object(dn.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof $e=="string")return{motionName:"".concat(nt,"-open-").concat($e)};if(qe)return{motionName:qe};var rt=Le[_t];return rt||(pt?null:Le.other)}var en=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(nt){var Me;Object(R.a)(this,_t),Me=ct.call(this,nt),Me.onSelect=function($e){var qe=Object(C.a)(Me),pt=qe.props;if(pt.selectable){var rt=Me.store.getState(),It=rt.selectedKeys,Vt=$e.key;pt.multiple?It=It.concat([Vt]):It=[Vt],"selectedKeys"in pt||Me.store.setState({selectedKeys:It}),pt.onSelect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:It}))}},Me.onClick=function($e){var qe=Me.getRealMenuMode(),pt=Object(C.a)(Me),rt=pt.store,It=pt.props.onOpenChange;qe!=="inline"&&!("openKeys"in Me.props)&&(rt.setState({openKeys:[]}),It([])),Me.props.onClick($e)},Me.onKeyDown=function($e,qe){Me.innerMenu.getWrappedInstance().onKeyDown($e,qe)},Me.onOpenChange=function($e){var qe=Object(C.a)(Me),pt=qe.props,rt=Me.store.getState().openKeys.concat(),It=!1,Vt=function(ln){var cn=!1;if(ln.open)cn=rt.indexOf(ln.key)===-1,cn&&rt.push(ln.key);else{var un=rt.indexOf(ln.key);cn=un!==-1,cn&&rt.splice(un,1)}It=It||cn};Array.isArray($e)?$e.forEach(Vt):Vt($e),It&&("openKeys"in Me.props||Me.store.setState({openKeys:rt}),pt.onOpenChange(rt))},Me.onDeselect=function($e){var qe=Object(C.a)(Me),pt=qe.props;if(pt.selectable){var rt=Me.store.getState().selectedKeys.concat(),It=$e.key,Vt=rt.indexOf(It);Vt!==-1&&rt.splice(Vt,1),"selectedKeys"in pt||Me.store.setState({selectedKeys:rt}),pt.onDeselect(Object(b.a)(Object(b.a)({},$e),{},{selectedKeys:rt}))}},Me.onMouseEnter=function($e){Me.restoreModeVerticalFromInline();var qe=Me.props.onMouseEnter;qe&&qe($e)},Me.onTransitionEnd=function($e){var qe=$e.propertyName==="width"&&$e.target===$e.currentTarget,pt=$e.target.className,rt=Object.prototype.toString.call(pt)==="[object SVGAnimatedString]"?pt.animVal:pt,It=$e.propertyName==="font-size"&&rt.indexOf("anticon")>=0;(qe||It)&&Me.restoreModeVerticalFromInline()},Me.setInnerMenu=function($e){Me.innerMenu=$e},Me.isRootMenu=!0;var Je=nt.defaultSelectedKeys,Le=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Je=nt.selectedKeys||[]),"openKeys"in nt&&(Le=nt.openKeys||[]),Me.store=Object(A.c)({selectedKeys:Je,openKeys:Le,activeKey:{"0-menu-":Jn(nt,nt.activeKey)}}),Me.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Me.store},Me}return Object(M.a)(_t,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Me){var Je=this.props,Le=Je.siderCollapsed,$e=Je.inlineCollapsed,qe=Je.onOpenChange;(!Me.inlineCollapsed&&$e||!Me.siderCollapsed&&Le)&&qe([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Me=this.props.collapsedWidth,Je=this.store,Le=this.prevOpenKeys,$e=this.getInlineCollapsed()&&(Me===0||Me==="0"||Me==="0px");$e?(this.prevOpenKeys=Je.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Le&&(this.store.setState({openKeys:Le}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Me=this.props.mode,Je=this.state.switchingModeFromInline,Le=this.getInlineCollapsed();return Je&&Le?"inline":Le?"vertical":Me}},{key:"getInlineCollapsed",value:function(){var Me=this.props,Je=Me.inlineCollapsed,Le=Me.siderCollapsed;return Le!==void 0?Le:Je}},{key:"restoreModeVerticalFromInline",value:function(){var Me=this.state.switchingModeFromInline;Me&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Me=Object(b.a)({},Object(U.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Je=this.getRealMenuMode();return Me.className+=" ".concat(Me.prefixCls,"-root"),Me.direction==="rtl"&&(Me.className+=" ".concat(Me.prefixCls,"-rtl")),Me=Object(b.a)(Object(b.a)({},Me),{},{mode:Je,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Dn(this.props,this.state,Je)}),delete Me.openAnimation,delete Me.openTransitionName,y.createElement(A.a,{store:this.store},y.createElement(Yt,Object(v.a)({},Me,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Me,Je){var Le=Je.prevProps,$e=Je.store,qe=$e.getState(),pt={},rt={prevProps:Me};return Le.mode==="inline"&&Me.mode!=="inline"&&(rt.switchingModeFromInline=!0),"openKeys"in Me?pt.openKeys=Me.openKeys||[]:((Me.inlineCollapsed&&!Le.inlineCollapsed||Me.siderCollapsed&&!Le.siderCollapsed)&&(rt.switchingModeFromInline=!0,rt.inlineOpenKeys=qe.openKeys,pt.openKeys=[]),(!Me.inlineCollapsed&&Le.inlineCollapsed||!Me.siderCollapsed&&Le.siderCollapsed)&&(pt.openKeys=Je.inlineOpenKeys,rt.inlineOpenKeys=[])),Object.keys(pt).length&&$e.setState(pt),rt}}]),_t}(y.Component);en.defaultProps={selectable:!0,onClick:ae,onSelect:ae,onOpenChange:ae,onDeselect:ae,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:y.createElement("span",null,"\xB7\xB7\xB7")};var wn=en,_n=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(){var nt;return Object(R.a)(this,_t),nt=ct.apply(this,arguments),nt.onKeyDown=function(Me){var Je=Me.keyCode;return Je===l.a.ENTER?(nt.onClick(Me),!0):void 0},nt.onMouseLeave=function(Me){var Je=nt.props,Le=Je.eventKey,$e=Je.onItemHover,qe=Je.onMouseLeave;$e({key:Le,hover:!1}),qe({key:Le,domEvent:Me})},nt.onMouseEnter=function(Me){var Je=nt.props,Le=Je.eventKey,$e=Je.onItemHover,qe=Je.onMouseEnter;$e({key:Le,hover:!0}),qe({key:Le,domEvent:Me})},nt.onClick=function(Me){var Je=nt.props,Le=Je.eventKey,$e=Je.multiple,qe=Je.onClick,pt=Je.onSelect,rt=Je.onDeselect,It=Je.isSelected,Vt={key:Le,keyPath:[Le],item:Object(C.a)(nt),domEvent:Me};qe(Vt),$e?It?rt(Vt):pt(Vt):It||pt(Vt)},nt.saveNode=function(Me){nt.node=Me},nt}return Object(M.a)(_t,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Me=this.props;Me.onDestroy&&Me.onDestroy(Me.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Me,Je=Object(b.a)({},this.props),Le=O()(this.getPrefixCls(),Je.className,(Me={},Object(P.a)(Me,this.getActiveClassName(),!Je.disabled&&Je.active),Object(P.a)(Me,this.getSelectedClassName(),Je.isSelected),Object(P.a)(Me,this.getDisabledClassName(),Je.disabled),Me)),$e=Object(b.a)(Object(b.a)({},Je.attribute),{},{title:typeof Je.title=="string"?Je.title:void 0,className:Le,role:Je.role||"menuitem","aria-disabled":Je.disabled});Je.role==="option"?$e=Object(b.a)(Object(b.a)({},$e),{},{role:"option","aria-selected":Je.isSelected}):(Je.role===null||Je.role==="none")&&($e.role="none");var qe={onClick:Je.disabled?null:this.onClick,onMouseLeave:Je.disabled?null:this.onMouseLeave,onMouseEnter:Je.disabled?null:this.onMouseEnter},pt=Object(b.a)({},Je.style);Je.mode==="inline"&&(Je.direction==="rtl"?pt.paddingRight=Je.inlineIndent*Je.level:pt.paddingLeft=Je.inlineIndent*Je.level),J.forEach(function(It){return delete Je[It]}),delete Je.direction;var rt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(rt=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(v.a)({},Object(U.a)(Je,["onClick","onMouseEnter","onMouseLeave","onSelect"]),$e,qe,{style:pt,ref:this.saveNode}),Je.children,rt)}}]),_t}(y.Component);_n.isMenuItem=!0,_n.defaultProps={onSelect:ae,onMouseEnter:ae,onMouseLeave:ae,manualRef:ae};var In=Object(A.b)(function(Ze,ct){var _t=Ze.activeKey,nt=Ze.selectedKeys,Me=ct.eventKey,Je=ct.subMenuKey;return{active:_t[Je]===Me,isSelected:Array.isArray(nt)?nt.indexOf(Me)!==-1:nt===Me}})(_n),Un=In,or=function(Ze){Object(S.a)(_t,Ze);var ct=Object(_.a)(_t);function _t(){var nt;return Object(R.a)(this,_t),nt=ct.apply(this,arguments),nt.renderInnerMenuItem=function(Me){var Je=nt.props,Le=Je.renderMenuItem,$e=Je.index;return Le(Me,$e,nt.props.subMenuKey)},nt}return Object(M.a)(_t,[{key:"render",value:function(){var Me=Object(v.a)({},this.props),Je=Me.className,Le=Je===void 0?"":Je,$e=Me.rootPrefixCls,qe="".concat($e,"-item-group-title"),pt="".concat($e,"-item-group-list"),rt=Me.title,It=Me.children;return J.forEach(function(Vt){return delete Me[Vt]}),delete Me.direction,y.createElement("li",Object(v.a)({},Me,{onClick:function(fn){return fn.stopPropagation()},className:"".concat(Le," ").concat($e,"-item-group")}),y.createElement("div",{className:qe,title:typeof rt=="string"?rt:void 0},rt),y.createElement("ul",{className:pt},y.Children.map(It,this.renderInnerMenuItem)))}}]),_t}(y.Component);or.isMenuItemGroup=!0,or.defaultProps={disabled:!0};var qn=or,Pr=function(ct){var _t=ct.className,nt=ct.rootPrefixCls,Me=ct.style;return y.createElement("li",{className:"".concat(_t," ").concat(nt,"-item-divider"),style:Me})};Pr.defaultProps={disabled:!0,className:"",style:{}};var Lr=Pr,Qn=wn,Dr=o("eDIo");function vr(Ze,ct){var _t=Ze.prefixCls,nt=Ze.editable,Me=Ze.locale,Je=Ze.style;return!nt||nt.showAdd===!1?null:y.createElement("button",{ref:ct,type:"button",className:"".concat(_t,"-nav-add"),style:Je,"aria-label":(Me==null?void 0:Me.addAriaLabel)||"Add tab",onClick:function($e){nt.onEdit("add",{event:$e})}},nt.addIcon||"+")}var zr=y.forwardRef(vr);function Nr(Ze,ct){var _t=Ze.prefixCls,nt=Ze.id,Me=Ze.tabs,Je=Ze.locale,Le=Ze.mobile,$e=Ze.moreIcon,qe=$e===void 0?"More":$e,pt=Ze.moreTransitionName,rt=Ze.style,It=Ze.className,Vt=Ze.editable,fn=Ze.tabBarGutter,ln=Ze.rtl,cn=Ze.onTabClick,un=Object(y.useState)(!1),Wn=Object(g.a)(un,2),Cn=Wn[0],jr=Wn[1],Mr=Object(y.useState)(null),Qr=Object(g.a)(Mr,2),Wr=Qr[0],ta=Qr[1],Kn="".concat(nt,"-more-popup"),wr="".concat(_t,"-dropdown"),Gn=Wr!==null?"".concat(Kn,"-").concat(Wr):null,En=Je==null?void 0:Je.dropdownAriaLabel,jn=y.createElement(Qn,{onClick:function(Ca){var Tr=Ca.key,br=Ca.domEvent;cn(Tr,br),jr(!1)},id:Kn,tabIndex:-1,role:"listbox","aria-activedescendant":Gn,selectedKeys:[Wr],"aria-label":En!==void 0?En:"expanded dropdown"},Me.map(function(ha){return y.createElement(Un,{key:ha.key,id:"".concat(Kn,"-").concat(ha.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(ha.key),disabled:ha.disabled},ha.tab)}));function Vr(ha){for(var Ca=Me.filter(function(pa){return!pa.disabled}),Tr=Ca.findIndex(function(pa){return pa.key===Wr})||0,br=Ca.length,Ir=0;Iraa?(ua=jn,Kn.current="x"):(ua=Vr,Kn.current="y");var xa=Date.now();xa-Wr.current>100&&(ta.current=!1),(ct(-ua,-ua)||ta.current)&&(En.preventDefault(),ta.current=!0),Wr.current=xa}var Gn=Object(y.useRef)(null);Gn.current={onTouchStart:jr,onTouchMove:Mr,onTouchEnd:Qr,onWheel:wr},y.useEffect(function(){function En(hr){Gn.current.onTouchStart(hr)}function jn(hr){Gn.current.onTouchMove(hr)}function Vr(hr){Gn.current.onTouchEnd(hr)}function ua(hr){Gn.current.onWheel(hr)}return document.addEventListener("touchmove",jn,{passive:!1}),document.addEventListener("touchend",Vr,{passive:!1}),Ze.current.addEventListener("touchstart",En,{passive:!1}),Ze.current.addEventListener("wheel",ua),function(){document.removeEventListener("touchmove",jn),document.removeEventListener("touchend",Vr)}},[])}function rr(){var Ze=Object(y.useRef)(new Map);function ct(nt){return Ze.current.has(nt)||Ze.current.set(nt,y.createRef()),Ze.current.get(nt)}function _t(nt){Ze.current.delete(nt)}return[ct,_t]}function cr(Ze,ct){var _t=y.useRef(Ze),nt=y.useState({}),Me=Object(g.a)(nt,2),Je=Me[1];function Le($e){var qe=typeof $e=="function"?$e(_t.current):$e;qe!==_t.current&&ct(qe,_t.current),_t.current=qe,Je({})}return[_t.current,Le]}var sr=function(ct){var _t=ct.position,nt=ct.prefixCls,Me=ct.extra;if(!Me)return null;var Je,Le=Me;return _t==="right"&&(Je=Le.right||!Le.left&&Le||null),_t==="left"&&(Je=Le.left||null),Je?y.createElement("div",{className:"".concat(nt,"-extra-content")},Je):null};function qr(Ze,ct){var _t,nt=y.useContext(tr),Me=nt.prefixCls,Je=nt.tabs,Le=Ze.className,$e=Ze.style,qe=Ze.id,pt=Ze.animated,rt=Ze.activeKey,It=Ze.rtl,Vt=Ze.extra,fn=Ze.editable,ln=Ze.locale,cn=Ze.tabPosition,un=Ze.tabBarGutter,Wn=Ze.children,Cn=Ze.onTabClick,jr=Ze.onTabScroll,Mr=Object(y.useRef)(),Qr=Object(y.useRef)(),Wr=Object(y.useRef)(),ta=Object(y.useRef)(),Kn=rr(),wr=Object(g.a)(Kn,2),Gn=wr[0],En=wr[1],jn=cn==="top"||cn==="bottom",Vr=cr(0,function(Aa,ya){jn&&jr&&jr({direction:Aa>ya?"left":"right"})}),ua=Object(g.a)(Vr,2),hr=ua[0],aa=ua[1],xa=cr(0,function(Aa,ya){!jn&&jr&&jr({direction:Aa>ya?"top":"bottom"})}),ha=Object(g.a)(xa,2),Ca=ha[0],Tr=ha[1],br=Object(y.useState)(0),Ir=Object(g.a)(br,2),er=Ir[0],pa=Ir[1],Ea=Object(y.useState)(0),ba=Object(g.a)(Ea,2),Oa=ba[0],ga=ba[1],ka=Object(y.useState)(0),Ua=Object(g.a)(ka,2),Fa=Ua[0],ni=Ua[1],Fi=Object(y.useState)(0),Ai=Object(g.a)(Fi,2),Na=Ai[0],bi=Ai[1],Si=Object(y.useState)(null),Ba=Object(g.a)(Si,2),Ma=Ba[0],Za=Ba[1],to=Object(y.useState)(null),Mo=Object(g.a)(to,2),Ii=Mo[0],no=Mo[1],ro=Object(y.useState)(0),mi=Object(g.a)(ro,2),uo=mi[0],Io=mi[1],Lo=Object(y.useState)(0),bo=Object(g.a)(Lo,2),Vi=bo[0],co=bo[1],Xi=n(new Map),Yi=Object(g.a)(Xi,2),No=Yi[0],yo=Yi[1],ao=c(Je,No,er),Ji="".concat(Me,"-nav-operations-hidden"),Qi=0,ei=0;jn?It?(Qi=0,ei=Math.max(0,er-Ma)):(Qi=Math.min(0,Ma-er),ei=0):(Qi=Math.min(0,Ii-Oa),ei=0);function Li(Aa){return Aaei?[ei,!1]:[Aa,!0]}var Di=Object(y.useRef)(),Zi=Object(y.useState)(),Ri=Object(g.a)(Zi,2),Eo=Ri[0],xo=Ri[1];function Co(){xo(Date.now())}function io(){window.clearTimeout(Di.current)}Ln(Mr,function(Aa,ya){var Ga=!1;function ui(eo,ki){eo(function(ho){var wi=Li(ho+ki),qa=Object(g.a)(wi,2),po=qa[0],Hi=qa[1];return Ga=Hi,po})}if(jn){if(Ma>=er)return Ga;ui(aa,Aa)}else{if(Ii>=Oa)return Ga;ui(Tr,ya)}return io(),Co(),Ga}),Object(y.useEffect)(function(){return io(),Eo&&(Di.current=window.setTimeout(function(){xo(0)},100)),io},[Eo]);function Ni(){var Aa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rt,ya=ao.get(Aa);if(!ya)return;if(jn){var Ga=hr;It?ya.righthr+Ma&&(Ga=ya.right+ya.width-Ma):ya.left<-hr?Ga=-ya.left:ya.left+ya.width>-hr+Ma&&(Ga=-(ya.left+ya.width-Ma)),Tr(0),aa(Li(Ga)[0])}else{var ui=Ca;ya.top<-Ca?ui=-ya.top:ya.top+ya.height>-Ca+Ii&&(ui=-(ya.top+ya.height-Ii)),aa(0),Tr(Li(ui)[0])}}var qi=E(ao,{width:Ma,height:Ii,left:hr,top:Ca},{width:Fa,height:Na},{width:uo,height:Vi},Object(b.a)(Object(b.a)({},Ze),{},{tabs:Je})),ko=Object(g.a)(qi,2),oo=ko[0],so=ko[1],So=Je.map(function(Aa){var ya=Aa.key;return y.createElement(d,{id:qe,prefixCls:Me,key:ya,rtl:It,tab:Aa,closable:Aa.closable,editable:fn,active:ya===rt,tabPosition:cn,tabBarGutter:un,renderWrapper:Wn,removeAriaLabel:ln==null?void 0:ln.removeAriaLabel,ref:Gn(ya),onClick:function(ui){Cn(ya,ui)},onRemove:function(){En(ya)},onFocus:function(){Ni(ya),Co(),It||(Mr.current.scrollLeft=0),Mr.current.scrollTop=0}})}),Uo=i(function(){var Aa,ya,Ga,ui,eo,ki,ho,wi,qa,po=((Aa=Mr.current)===null||Aa===void 0?void 0:Aa.offsetWidth)||0,Hi=((ya=Mr.current)===null||ya===void 0?void 0:ya.offsetHeight)||0,mo=((Ga=ta.current)===null||Ga===void 0?void 0:Ga.offsetWidth)||0,hi=((ui=ta.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,Pa=((eo=Wr.current)===null||eo===void 0?void 0:eo.offsetWidth)||0,sa=((ki=Wr.current)===null||ki===void 0?void 0:ki.offsetHeight)||0;Za(po),no(Hi),Io(mo),co(hi);var Cr=(((ho=Qr.current)===null||ho===void 0?void 0:ho.offsetWidth)||0)-mo,Zr=(((wi=Qr.current)===null||wi===void 0?void 0:wi.offsetHeight)||0)-hi;pa(Cr),ga(Zr);var va=(qa=Wr.current)===null||qa===void 0?void 0:qa.className.includes(Ji);ni(Cr-(va?0:Pa)),bi(Zr-(va?0:sa)),yo(function(){var Wa=new Map;return Je.forEach(function(Ei){var Pi=Ei.key,$a=Gn(Pi).current;$a&&Wa.set(Pi,{width:$a.offsetWidth,height:$a.offsetHeight,left:$a.offsetLeft,top:$a.offsetTop})}),Wa})}),jo=Je.slice(0,oo),fi=Je.slice(so+1),Ha=[].concat(Object(f.a)(jo),Object(f.a)(fi)),ri=Object(y.useState)(),Xa=Object(g.a)(ri,2),ai=Xa[0],wo=Xa[1],yi=ao.get(rt),Bo=Object(y.useRef)();function To(){u.a.cancel(Bo.current)}Object(y.useEffect)(function(){var Aa={};return yi&&(jn?(It?Aa.right=yi.right:Aa.left=yi.left,Aa.width=yi.width):(Aa.top=yi.top,Aa.height=yi.height)),To(),Bo.current=u()(function(){wo(Aa)}),To},[yi,jn,It]),Object(y.useEffect)(function(){Ni()},[rt,yi,ao,jn]),Object(y.useEffect)(function(){Uo()},[It,un,rt,Je.map(function(Aa){return Aa.key}).join("_")]);var $i=!!Ha.length,Wi="".concat(Me,"-nav-wrap"),Oo,fo,Wo,lo;return jn?It?(fo=hr>0,Oo=hr+Ma>>7)^(R<<14|R>>>18)^R>>>3,C=f[v-2],S=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;f[v]=M+f[v-7]+S+f[v-16]}var _=s&c^~s&w,A=n&l^n&h^l&h,U=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),L=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),N=E+L+_+e[v]+f[v],V=U+A;E=w,w=c,c=s,s=d+N|0,d=h,h=l,l=n,n=N+V|0}i[0]=i[0]+n|0,i[1]=i[1]+l|0,i[2]=i[2]+h|0,i[3]=i[3]+d|0,i[4]=i[4]+s|0,i[5]=i[5]+c|0,i[6]=i[6]+w|0,i[7]=i[7]+E|0},_doFinalize:function(){var u=this._data,r=u.words,i=this._nDataBytes*8,n=u.sigBytes*8;return r[n>>>5]|=128<<24-n%32,r[(n+64>>>9<<4)+14]=g.floor(i/4294967296),r[(n+64>>>9<<4)+15]=i,u.sigBytes=r.length*4,this._process(),this._hash},clone:function(){var u=x.clone.call(this);return u._hash=this._hash.clone(),u}});T.SHA256=x._createHelper(a),T.HmacSHA256=x._createHmacHelper(a)}(Math),P.SHA256})},lZu9:function(k,z,o){(function(P){P(o("VrN/"),o("1eCo"),o("8EBN"))})(function(P){"use strict";P.defineMode("markdown",function(g,T){var b=P.getMode(g,"text/html"),y=b.name=="null";function x(F){if(P.findModeByName){var I=P.findModeByName(F);I&&(F=I.mime||I.mimes[0])}var K=P.getMode(g,F);return K.name=="null"?null:K}T.highlightFormatting===void 0&&(T.highlightFormatting=!1),T.maxBlockquoteDepth===void 0&&(T.maxBlockquoteDepth=0),T.taskLists===void 0&&(T.taskLists=!1),T.strikethrough===void 0&&(T.strikethrough=!1),T.emoji===void 0&&(T.emoji=!1),T.fencedCodeBlockHighlighting===void 0&&(T.fencedCodeBlockHighlighting=!0),T.fencedCodeBlockDefaultMode===void 0&&(T.fencedCodeBlockDefaultMode="text/plain"),T.xml===void 0&&(T.xml=!0),T.tokenTypeOverrides===void 0&&(T.tokenTypeOverrides={});var O={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var m in O)O.hasOwnProperty(m)&&T.tokenTypeOverrides[m]&&(O[m]=T.tokenTypeOverrides[m]);var e=/^([*\-_])(?:\s*\1){2,}\s*$/,f=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,a=/^\[(x| )\](?=\s)/i,u=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,r=/^ {0,3}(?:\={1,}|-{2,})\s*$/,i=/^[^#!\[\]*_\\<>` "'(~:]+/,n=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,l=/^\s*\[[^\]]+?\]:.*$/,h=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,d=" ";function s(F,I,K){return I.f=I.inline=K,K(F,I)}function c(F,I,K){return I.f=I.block=K,K(F,I)}function w(F){return!F||!/\S/.test(F.string)}function E(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==R){var I=y;if(!I){var K=P.innerMode(b,F.htmlState);I=K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText}I&&(F.f=_,F.block=v,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function v(F,I){var K=F.column()===I.indentation,ee=w(I.prevLine.stream),he=I.indentedCode,de=I.prevLine.hr,Se=I.list!==!1,Te=(I.listStack[I.listStack.length-1]||0)+3;I.indentedCode=!1;var ce=I.indentation;if(I.indentationDiff===null&&(I.indentationDiff=I.indentation,Se)){for(I.list=null;ce=4&&(he||I.prevLine.fencedCodeEnd||I.prevLine.header||ee))return F.skipToEnd(),I.indentedCode=!0,O.code;if(F.eatSpace())return null;if(K&&I.indentation<=Te&&(ue=F.match(u))&&ue[1].length<=6)return I.quote=0,I.header=ue[1].length,I.thisLine.header=!0,T.highlightFormatting&&(I.formatting="header"),I.f=I.inline,C(I);if(I.indentation<=Te&&F.eat(">"))return I.quote=K?1:I.quote+1,T.highlightFormatting&&(I.formatting="quote"),F.eatSpace(),C(I);if(!Ee&&!I.setext&&K&&I.indentation<=Te&&(ue=F.match(f))){var le=ue[1]?"ol":"ul";return I.indentation=ce+F.current().length,I.list=!0,I.quote=0,I.listStack.push(I.indentation),I.em=!1,I.strong=!1,I.code=!1,I.strikethrough=!1,T.taskLists&&F.match(a,!1)&&(I.taskList=!0),I.f=I.inline,T.highlightFormatting&&(I.formatting=["list","list-"+le]),C(I)}else{if(K&&I.indentation<=Te&&(ue=F.match(n,!0)))return I.quote=0,I.fencedEndRE=new RegExp(ue[1]+"+ *$"),I.localMode=T.fencedCodeBlockHighlighting&&x(ue[2]||T.fencedCodeBlockDefaultMode),I.localMode&&(I.localState=P.startState(I.localMode)),I.f=I.block=M,T.highlightFormatting&&(I.formatting="code-block"),I.code=-1,C(I);if(I.setext||(!be||!Se)&&!I.quote&&I.list===!1&&!I.code&&!Ee&&!l.test(F.string)&&(ue=F.lookAhead(1))&&(ue=ue.match(r)))return I.setext?(I.header=I.setext,I.setext=0,F.skipToEnd(),T.highlightFormatting&&(I.formatting="header")):(I.header=ue[0].charAt(0)=="="?1:2,I.setext=I.header),I.thisLine.header=!0,I.f=I.inline,C(I);if(Ee)return F.skipToEnd(),I.hr=!0,I.thisLine.hr=!0,O.hr;if(F.peek()==="[")return s(F,I,V)}return s(F,I,I.inline)}function R(F,I){var K=b.token(F,I.htmlState);if(!y){var ee=P.innerMode(b,I.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||I.md_inside&&F.current().indexOf(">")>-1)&&(I.f=_,I.block=v,I.htmlState=null)}return K}function M(F,I){var K=I.listStack[I.listStack.length-1]||0,ee=I.indentation=F.quote?I.push(O.formatting+"-"+F.formatting[K]+"-"+F.quote):I.push("error"))}if(F.taskOpen)return I.push("meta"),I.length?I.join(" "):null;if(F.taskClosed)return I.push("property"),I.length?I.join(" "):null;if(F.linkHref?I.push(O.linkHref,"url"):(F.strong&&I.push(O.strong),F.em&&I.push(O.em),F.strikethrough&&I.push(O.strikethrough),F.emoji&&I.push(O.emoji),F.linkText&&I.push(O.linkText),F.code&&I.push(O.code),F.image&&I.push(O.image),F.imageAltText&&I.push(O.imageAltText,"link"),F.imageMarker&&I.push(O.imageMarker)),F.header&&I.push(O.header,O.header+"-"+F.header),F.quote&&(I.push(O.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=F.quote?I.push(O.quote+"-"+F.quote):I.push(O.quote+"-"+T.maxBlockquoteDepth)),F.list!==!1){var ee=(F.listStack.length-1)%3;ee?ee===1?I.push(O.list2):I.push(O.list3):I.push(O.list1)}return F.trailingSpaceNewLine?I.push("trailing-space-new-line"):F.trailingSpace&&I.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),I.length?I.join(" "):null}function S(F,I){return F.match(i,!0)?C(I):void 0}function _(F,I){var K=I.text(F,I);if(typeof K!="undefined")return K;if(I.list)return I.list=null,C(I);if(I.taskList){var ee=F.match(a,!0)[1]===" ";return ee?I.taskOpen=!0:I.taskClosed=!0,T.highlightFormatting&&(I.formatting="task"),I.taskList=!1,C(I)}if(I.taskOpen=!1,I.taskClosed=!1,I.header&&F.match(/^#+$/,!0))return T.highlightFormatting&&(I.formatting="header"),C(I);var he=F.next();if(I.linkTitle){I.linkTitle=!1;var de=he;he==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Se="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(F.match(new RegExp(Se),!0))return O.linkHref}if(he==="`"){var Te=I.formatting;T.highlightFormatting&&(I.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(I.code==0&&(!I.quote||ce==1))return I.code=ce,C(I);if(ce==I.code){var be=C(I);return I.code=0,be}else return I.formatting=Te,C(I)}else if(I.code)return C(I);if(he==="\\"&&(F.next(),T.highlightFormatting)){var Ee=C(I),ue=O.formatting+"-escape";return Ee?Ee+" "+ue:ue}if(he==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return I.imageMarker=!0,I.image=!0,T.highlightFormatting&&(I.formatting="image"),C(I);if(he==="["&&I.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return I.imageMarker=!1,I.imageAltText=!0,T.highlightFormatting&&(I.formatting="image"),C(I);if(he==="]"&&I.imageAltText){T.highlightFormatting&&(I.formatting="image");var Ee=C(I);return I.imageAltText=!1,I.image=!1,I.inline=I.f=U,Ee}if(he==="["&&!I.image)return I.linkText&&F.match(/^.*?\]/)||(I.linkText=!0,T.highlightFormatting&&(I.formatting="link")),C(I);if(he==="]"&&I.linkText){T.highlightFormatting&&(I.formatting="link");var Ee=C(I);return I.linkText=!1,I.inline=I.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?U:_,Ee}if(he==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=A,T.highlightFormatting&&(I.formatting="link");var Ee=C(I);return Ee?Ee+=" ":Ee="",Ee+O.linkInline}if(he==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){I.f=I.inline=A,T.highlightFormatting&&(I.formatting="link");var Ee=C(I);return Ee?Ee+=" ":Ee="",Ee+O.linkEmail}if(T.xml&&he==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var le=F.string.indexOf(">",F.pos);if(le!=-1){var $=F.string.substring(F.start,le);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test($)&&(I.md_inside=!0)}return F.backUp(1),I.htmlState=P.startState(b),c(F,I,R)}if(T.xml&&he==="<"&&F.match(/^\/\w*?>/))return I.md_inside=!1,"tag";if(he==="*"||he==="_"){for(var me=1,re=F.pos==1?" ":F.string.charAt(F.pos-2);me<3&&F.eat(he);)me++;var ae=F.peek()||" ",Oe=!/\s/.test(ae)&&(!h.test(ae)||/\s/.test(re)||h.test(re)),se=!/\s/.test(re)&&(!h.test(re)||/\s/.test(ae)||h.test(ae)),te=null,Q=null;if(me%2&&(!I.em&&Oe&&(he==="*"||!se||h.test(re))?te=!0:I.em==he&&se&&(he==="*"||!Oe||h.test(ae))&&(te=!1)),me>1&&(!I.strong&&Oe&&(he==="*"||!se||h.test(re))?Q=!0:I.strong==he&&se&&(he==="*"||!Oe||h.test(ae))&&(Q=!1)),Q!=null||te!=null){T.highlightFormatting&&(I.formatting=te==null?"strong":Q==null?"em":"strong em"),te===!0&&(I.em=he),Q===!0&&(I.strong=he);var be=C(I);return te===!1&&(I.em=!1),Q===!1&&(I.strong=!1),be}}else if(he===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return C(I);F.backUp(1)}if(T.strikethrough){if(he==="~"&&F.eatWhile(he)){if(I.strikethrough){T.highlightFormatting&&(I.formatting="strikethrough");var be=C(I);return I.strikethrough=!1,be}else if(F.match(/^[^\s]/,!1))return I.strikethrough=!0,T.highlightFormatting&&(I.formatting="strikethrough"),C(I)}else if(he===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return C(I);F.backUp(2)}}if(T.emoji&&he===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){I.emoji=!0,T.highlightFormatting&&(I.formatting="emoji");var J=C(I);return I.emoji=!1,J}return he===" "&&(F.match(/^ +$/,!1)?I.trailingSpace++:I.trailingSpace&&(I.trailingSpaceNewLine=!0)),C(I)}function A(F,I){var K=F.next();if(K===">"){I.f=I.inline=_,T.highlightFormatting&&(I.formatting="link");var ee=C(I);return ee?ee+=" ":ee="",ee+O.linkInline}return F.match(/^[^>]+/,!0),O.linkInline}function U(F,I){if(F.eatSpace())return null;var K=F.next();return K==="("||K==="["?(I.f=I.inline=N(K==="("?")":"]"),T.highlightFormatting&&(I.formatting="link-string"),I.linkHref=!0,C(I)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(I,K){var ee=I.next();if(ee===F){K.f=K.inline=_,T.highlightFormatting&&(K.formatting="link-string");var he=C(K);return K.linkHref=!1,he}return I.match(L[F]),K.linkHref=!0,C(K)}}function V(F,I){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(I.f=H,F.next(),T.highlightFormatting&&(I.formatting="link"),I.linkText=!0,C(I)):s(F,I,_)}function H(F,I){if(F.match(/^\]:/,!0)){I.f=I.inline=D,T.highlightFormatting&&(I.formatting="link");var K=C(I);return I.linkText=!1,K}return F.match(/^([^\]\\]|\\.)+/,!0),O.linkText}function D(F,I){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?I.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),I.f=I.inline=_,O.linkHref+" url")}var W={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:_,text:S,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(F){return{f:F.f,prevLine:F.prevLine,thisLine:F.thisLine,block:F.block,htmlState:F.htmlState&&P.copyState(b,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?P.copyState(F.localMode,F.localState):null,inline:F.inline,text:F.text,formatting:!1,linkText:F.linkText,linkTitle:F.linkTitle,linkHref:F.linkHref,code:F.code,em:F.em,strong:F.strong,strikethrough:F.strikethrough,emoji:F.emoji,header:F.header,setext:F.setext,hr:F.hr,taskList:F.taskList,list:F.list,listStack:F.listStack.slice(0),quote:F.quote,indentedCode:F.indentedCode,trailingSpace:F.trailingSpace,trailingSpaceNewLine:F.trailingSpaceNewLine,md_inside:F.md_inside,fencedEndRE:F.fencedEndRE}},token:function(F,I){if(I.formatting=!1,F!=I.thisLine.stream){if(I.header=0,I.hr=!1,F.match(/^\s*$/,!0))return E(I),null;if(I.prevLine=I.thisLine,I.thisLine={stream:F},I.taskList=!1,I.trailingSpace=0,I.trailingSpaceNewLine=!1,!I.localState&&(I.f=I.block,I.f!=R)){var K=F.match(/^\s*/,!0)[0].replace(/\t/g,d).length;if(I.indentation=K,I.indentationDiff=null,K>0)return null}}return I.f(F,I)},innerMode:function(F){return F.block==R?{state:F.htmlState,mode:b}:F.localState?{state:F.localState,mode:F.localMode}:{state:F,mode:W}},indent:function(F,I,K){return F.block==R&&b.indent?b.indent(F.htmlState,I,K):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,I,K):P.Pass},blankLine:E,getType:C,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return W},"xml"),P.defineMIME("text/markdown","markdown"),P.defineMIME("text/x-markdown","markdown")})},luix:function(k,z,o){k.exports=o.p+"static/tips.2ae2707a.svg"},lzim:function(k,z,o){"use strict";var P=o("E7E6"),g=o.n(P);o.d(z,"w",function(){return g.a});var T=o("/GNS"),b=o.n(T);o.d(z,"v",function(){return b.a});var y=o("FOrL"),x=o.n(y);o.d(z,"q",function(){return x.a});var O=o("HpTS"),m=o.n(O);o.d(z,"x",function(){return m.a});var e=o("tWlo"),f=o.n(e);o.d(z,"a",function(){return f.a});var a=o("7ZXX"),u=o.n(a);o.d(z,"l",function(){return u.a});var r=o("GABl"),i=o.n(r);o.d(z,"e",function(){return i.a});var n=o("onxn"),l=o.n(n);o.d(z,"n",function(){return l.a});var h=o("nKGa"),d=o.n(h);o.d(z,"m",function(){return d.a});var s=o("4qgm"),c=o.n(s);o.d(z,"z",function(){return c.a});var w=o("JeFH"),E=o.n(w);o.d(z,"b",function(){return E.a});var v=o("ji0R"),R=o.n(v);o.d(z,"i",function(){return R.a});var M=o("W6BS"),C=o.n(M);o.d(z,"A",function(){return C.a});var S=o("kPYp"),_=o.n(S);o.d(z,"B",function(){return _.a});var A=o("nukY"),U=o.n(A),L=o("4u4S"),N=o.n(L),V=o("yslc"),H=o.n(V),D=o("l2Kq"),W=o.n(D),F=o("RMFE"),I=o.n(F);o.d(z,"o",function(){return I.a});var K=o("TGq3"),ee=o.n(K),he=o("SMhR"),de=o.n(he);o.d(z,"y",function(){return de.a});var Se=o("8/bI"),Te=o.n(Se);o.d(z,"j",function(){return Te.a});var ce=o("JWDV"),be=o.n(ce),Ee=o("Xsq0"),ue=o.n(Ee);o.d(z,"p",function(){return ue.a});var le=o("Ohmc"),$=o.n(le);o.d(z,"c",function(){return $.a});var me=o("csWT"),re=o.n(me);o.d(z,"d",function(){return re.a});var ae=o("7v3h"),Oe=o.n(ae);o.d(z,"k",function(){return Oe.a});var se=o("cRFk"),te=o.n(se);o.d(z,"u",function(){return te.a});var Q=o("kPWJ"),J=o.n(Q);o.d(z,"t",function(){return J.a});var ve=o("qgvg"),_e=o.n(ve);o.d(z,"r",function(){return _e.a});var Ae=o("FPkq"),Qe=o.n(Ae);o.d(z,"s",function(){return Qe.a});var tt=o("A/g1"),dt=o.n(tt);o.d(z,"f",function(){return dt.a});var mt=o("Nmxd"),vt=o.n(mt);o.d(z,"g",function(){return vt.a});var yt=o("5D2P"),Ye=o.n(yt);o.d(z,"h",function(){return Ye.a});var Ue=o("djh8"),ft=o.n(Ue),jt=o("Jq4h"),bt=o.n(jt)},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(k){if(!0)module.exports=k();else var z})(function(){var define,module,exports;return function(){function k(z,o,P){function g(y,x){if(!o[y]){if(!z[y]){var O=typeof require=="function"&&require;if(!x&&O)return require(y,!0);if(T)return T(y,!0);var m=new Error("Cannot find module '"+y+"'");throw m.code="MODULE_NOT_FOUND",m}var e=o[y]={exports:{}};z[y][0].call(e.exports,function(f){var a=z[y][1][f];return g(a||f)},e,e.exports,k,z,o,P)}return o[y].exports}for(var T=typeof require=="function"&&require,b=0;b0&&r(U).to(N),V=this._divideParts(S,_),H=V.length,D=!1,W=function(be,Ee){var ue=this;return new y.default(function($,me){var re,ae,Oe,se;return O.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(Q.prev=0,be.isCancel()){Q.next=18;break}return re=V[Ee-1],ae={stream:be._createStream(C,re.start,re.end),size:re.end-re.start},Q.next=6,O.default.awrap(be._uploadPart(L,A,Ee,ae));case 6:if(Oe=Q.sent,!(!be.isCancel()&&!D)){Q.next=15;break}if(v.doneParts.push({number:Ee,etag:Oe.res.headers.etag}),!R.progress){Q.next=12;break}return Q.next=12,O.default.awrap(R.progress(U.length/H,v,Oe.res));case 12:$({number:Ee,etag:Oe.res.headers.etag}),Q.next=16;break;case 15:$();case 16:Q.next=19;break;case 18:$();case 19:Q.next=30;break;case 21:Q.prev=21,Q.t0=Q.catch(0),se=new Error,se.name=Q.t0.name,se.message=Q.t0.message,se.stack=Q.t0.stack,se.partNum=Ee,r(Q.t0).to(se),me(se);case 30:case"end":return Q.stop()}},null,ue,[[0,21]])})},F=(0,T.default)(new Array(H),function(ce,be){return be+1}),I=N.map(function(ce){return ce.number}),K=F.filter(function(ce){return I.indexOf(ce)<0}),ee=5,he=R.parallel||ee,Te.next=17,O.default.awrap(this._parallel(K,he,function(ce){return new y.default(function(be,Ee){W(M,ce).then(function(ue){ue&&N.push(ue),be()}).catch(function(ue){Ee(ue)})})}));case 17:if(de=Te.sent,D=!0,!this.isCancel()){Te.next=22;break}throw W=null,this._makeCancelEvent();case 22:if(!(de&&de.length>0)){Te.next=25;break}throw de[0].message="Failed to upload some parts with error: "+de[0].toString()+" part_num: "+de[0].partNum,de[0];case 25:return Te.next=27,O.default.awrap(this.completeMultipartUpload(L,A,N,R));case 27:return Te.abrupt("return",Te.sent);case 28:case"end":return Te.stop()}},null,this)},d._getFileSize=function(v){return O.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:if(!e.buffer(v)){M.next=4;break}return M.abrupt("return",v.length);case 4:if(!(n(v)||h(v))){M.next=6;break}return M.abrupt("return",v.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return M.stop()}},null,this)};var s=k("stream"),c=s.Readable;function w(E,v){if(!(this instanceof w))return new w(E,v);c.call(this,v),this.file=E,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}f.inherits(w,c),w.prototype.readFileAndPush=function(v){if(this.fileBuffer)for(var R=!0;R&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:C,this.start=C,R=this.push(this.fileBuffer.slice(M,C))}},w.prototype._read=function(v){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var R=16*1024;v=v||R;var M=this;this.reader.onload=function(S){M.fileBuffer=P.from(new Uint8Array(S.target.result)),M.file=null,M.readFileAndPush(v)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(v)},d._createStream=function(v,R,M){if(n(v)||h(v))return new w(v.slice(R,M));throw new Error("_createStream requires File/Blob.")},d._getPartSize=function(v,R){var M=10*1e3,C=1024*1024;return R?Math.max(Math.ceil(v/M),R):C},d._divideParts=function(v,R){for(var M=Math.ceil(v/R),C=[],S=0;S255)throw new Error("ID is composed of 255 bytes at most");if(v.prefix===""||v.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(v.status))throw new Error("Status must be Enabled or Disabled");if(v.transition){if(!["IA","Archive"].includes(v.transition.storageClass))throw new Error("StorageClass must be IA or Archive");c(v.transition,"Transition")}if(v.expiration){if(!v.expiration.expiredObjectDeleteMarker)c(v.expiration,"Expiration");else if(v.expiration.days||v.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(v.abortMultipartUpload&&c(v.abortMultipartUpload,"AbortMultipartUpload"),!v.expiration&&!v.abortMultipartUpload&&!v.transition&&!v.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(v.tag){if(v.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");w(v.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(e){return e&&e.__esModule?e:{default:e}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=k("../utils/obj2xml"),O=x.obj2xml,m=o;m.putBucketVersioning=function(f,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,n;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:if(y(f),["Enabled","Suspended"].includes(a)){h.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return r=this._bucketRequestParams("PUT",f,"versioning",u),i={VersioningConfiguration:{Status:a}},r.mime="xml",r.content=O(i,{headers:!0}),h.next=9,g.default.awrap(this.request(r));case 9:return n=h.sent,h.abrupt("return",{res:n.res,status:n.status});case 11:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=k("../utils/obj2xml"),O=x.obj2xml,m=k("../utils/isArray"),e=m.isArray,f=o;f.putBucketWebsite=function(u){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments[2],n,l,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(y(u),n=this._bucketRequestParams("PUT",u,"website",i),l={Suffix:r.index||"index.html"},h={IndexDocument:l},d={WebsiteConfiguration:h},r.supportSubDir&&(l.SupportSubDir=r.supportSubDir),r.type&&(l.Type=r.type),r.error&&(h.ErrorDocument={Key:r.error}),!(r.routingRules!==void 0)){w.next=12;break}if(e(r.routingRules)){w.next=11;break}throw new Error("RoutingRules must be Array");case 11:h.RoutingRules={RoutingRule:r.routingRules};case 12:return d=O(d),n.content=d,n.mime="xml",n.successStatuses=[200],w.next=18,g.default.awrap(this.request(n));case 18:return s=w.sent,w.abrupt("return",{res:s.res});case 20:case"end":return w.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(k,z,o){(function(P){"use strict";var g=k("babel-runtime/core-js/object/keys"),T=x(g),b=k("babel-runtime/core-js/json/stringify"),y=x(b);function x(O){return O&&O.__esModule?O:{default:O}}o.encodeCallback=function(m,e){if(m.headers=m.headers||{},!Object.prototype.hasOwnProperty.call(m.headers,"x-oss-callback")&&e.callback){var f={callbackUrl:encodeURI(e.callback.url),callbackBody:e.callback.body};e.callback.host&&(f.callbackHost=e.callback.host),e.callback.contentType&&(f.callbackBodyType=e.callback.contentType);var a=P.from((0,y.default)(f)).toString("base64");if(m.headers["x-oss-callback"]=a,e.callback.customValue){var u={};(0,T.default)(e.callback.customValue).forEach(function(r){u["x:"+r]=e.callback.customValue[r]}),m.headers["x-oss-callback-var"]=P.from((0,y.default)(u)).toString("base64")}}}}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/assign"),g=T(P);function T(f){return f&&f.__esModule?f:{default:f}}var b=k("humanize-ms"),y=k("url"),x=k("../utils/checkBucketName"),O=x.checkBucketName;function m(f,a){var u=y.parse(f);if(u.protocol||(u=y.parse("http"+(a?"s":"")+"://"+f)),u.protocol!=="http:"&&u.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return u}function e(f,a,u){var r=u?"https://":"http://",i=a?"-internal.aliyuncs.com":".aliyuncs.com",n="vpc100-oss-cn-";return f.substr(0,n.length)===n&&(i=".aliyuncs.com"),y.parse(r+f+i)}z.exports=function(f){if(!f||!f.accessKeyId||!f.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");f.bucket&&O(f.bucket);var a=(0,g.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},f);if(a.accessKeyId=a.accessKeyId.trim(),a.accessKeySecret=a.accessKeySecret.trim(),a.timeout&&(a.timeout=b(a.timeout)),a.endpoint)a.endpoint=m(a.endpoint,a.secure);else if(a.region)a.endpoint=e(a.region,a.internal,a.secure);else throw new Error("require options.endpoint or options.region");return a.inited=!0,a}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(k,z,o){"use strict";var P=k("merge-descriptors"),g=o;P(g,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(a){return a&&a.__esModule?a:{default:a}}var b=k("../utils/checkBucketName"),y=b.checkBucketName,x=k("querystring"),O=k("js-base64"),m=O.Base64.encode,e=o;e.processObjectSave=function(u,r,i,n){var l,h,d,s;return g.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return f(u,"sourceObject"),f(r,"targetObject"),f(i,"process"),r=this._objectName(r),n&&y(n),l=this._objectRequestParams("POST",u,{subres:"x-oss-process"}),h=n?",b_"+m(n):"",r=m(r),d={"x-oss-process":i+"|sys/saveas,o_"+r+h},l.content=x.stringify(d),w.next=12,g.default.awrap(this.request(l));case 12:return s=w.sent,w.abrupt("return",{res:s.res,status:s.res.status});case 14:case"end":return w.stop()}},null,this)};function f(a,u){if(!a)throw new Error(u+" is required");if(typeof a!="string")throw new Error(u+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(k,z,o){"use strict";var P=k("babel-runtime/regenerator"),g=T(P);function T(e){return e&&e.__esModule?e:{default:e}}var b=k("copy-to"),y=k("./callback"),x=k("./utils/deepCopy"),O=x.deepCopy,m=o;m.listUploads=function(f,a){var u,r,i,n;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return a=a||{},u={},b(a).to(u),u.subres="uploads",r=this._objectRequestParams("GET","",u),r.query=f,r.xmlResponse=!0,r.successStatuses=[200],h.next=10,g.default.awrap(this.request(r));case 10:return i=h.sent,n=i.data.Upload||[],Array.isArray(n)||(n=[n]),n=n.map(function(d){return{name:d.Key,uploadId:d.UploadId,initiated:d.Initiated}}),h.abrupt("return",{res:i.res,uploads:n,bucket:i.data.Bucket,nextKeyMarker:i.data.NextKeyMarker,nextUploadIdMarker:i.data.NextUploadIdMarker,isTruncated:i.data.IsTruncated==="true"});case 15:case"end":return h.stop()}},null,this)},m.listParts=function(f,a,u,r){var i,n,l;return g.default.async(function(d){for(;;)switch(d.prev=d.next){case 0:return r=r||{},i={},b(r).to(i),i.subres={uploadId:a},n=this._objectRequestParams("GET",f,i),n.query=u,n.xmlResponse=!0,n.successStatuses=[200],d.next=10,g.default.awrap(this.request(n));case 10:return l=d.sent,d.abrupt("return",{res:l.res,uploadId:l.data.UploadId,bucket:l.data.Bucket,name:l.data.Key,partNumberMarker:l.data.PartNumberMarker,nextPartNumberMarker:l.data.NextPartNumberMarker,maxParts:l.data.MaxParts,isTruncated:l.data.IsTruncated,parts:l.data.Part||[]});case 12:case"end":return d.stop()}},null,this)},m.abortMultipartUpload=function(f,a,u){var r,i,n;return g.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return this._stop(),u=u||{},r={},b(u).to(r),r.subres={uploadId:a},i=this._objectRequestParams("DELETE",f,r),i.successStatuses=[204],h.next=9,g.default.awrap(this.request(i));case 9:return n=h.sent,h.abrupt("return",{res:n.res});case 11:case"end":return h.stop()}},null,this)},m.initMultipartUpload=function(f,a){var u,r,i;return g.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return a=a||{},u={},b(a).to(u),u.headers=u.headers||{},this._convertMetaToHeaders(a.meta,u.headers),u.subres="uploads",r=this._objectRequestParams("POST",f,u),r.mime=a.mime,r.xmlResponse=!0,r.successStatuses=[200],l.next=12,g.default.awrap(this.request(r));case 12:return i=l.sent,l.abrupt("return",{res:i.res,bucket:i.data.Bucket,name:i.data.Key,uploadId:i.data.UploadId});case 14:case"end":return l.stop()}},null,this)},m.uploadPart=function(f,a,u,r,i,n,l){var h;return g.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return h={stream:this._createStream(r,i,n),size:n-i},s.next=3,g.default.awrap(this._uploadPart(f,a,u,h,l));case 3:return s.abrupt("return",s.sent);case 4:case"end":return s.stop()}},null,this)},m.completeMultipartUpload=function(f,a,u,r){var i,n,l,h,d,s,c,w;return g.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:for(i=u.concat().sort(function(R,M){return R.number-M.number}).filter(function(R,M,C){return!M||R.number!==C[M-1].number}),n=` `,l=0;l @@ -428,11 +428,11 @@ raw xml: `+W,ee.t1.status=H.status,ee.t1.requestId=H.headers["x-oss-request-id"] * * @author Feross Aboukhadijeh * @license MIT - */"use strict";var T=k("base64-js"),b=k("ieee754"),y=k("isarray");o.Buffer=g,o.SlowBuffer=d,o.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=P.TYPED_ARRAY_SUPPORT!==void 0?P.TYPED_ARRAY_SUPPORT:x(),o.kMaxLength=O();function x(){try{var se=new Uint8Array(1);return se.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},se.foo()===42&&typeof se.subarray=="function"&&se.subarray(1,1).byteLength===0}catch(te){return!1}}function O(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(se,te){if(O()=O())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O().toString(16)+" bytes");return se|0}function d(se){return+se!=se&&(se=0),g.alloc(+se)}g.isBuffer=function(te){return!!(te!=null&&te._isBuffer)},g.compare=function(te,Q){if(!g.isBuffer(te)||!g.isBuffer(Q))throw new TypeError("Arguments must be Buffers");if(te===Q)return 0;for(var J=te.length,ve=Q.length,_e=0,Ae=Math.min(J,ve);_e>>1;case"base64":return re(se).length;default:if(J)return le(se).length;te=(""+te).toLowerCase(),J=!0}}g.byteLength=s;function c(se,te,Q){var J=!1;if((te===void 0||te<0)&&(te=0),te>this.length)return"";if((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)return"";if(Q>>>=0,te>>>=0,Q<=te)return"";for(se||(se="utf8");;)switch(se){case"hex":return W(this,te,Q);case"utf8":case"utf-8":return L(this,te,Q);case"ascii":return H(this,te,Q);case"latin1":case"binary":return D(this,te,Q);case"base64":return U(this,te,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,te,Q);default:if(J)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),J=!0}}g.prototype._isBuffer=!0;function w(se,te,Q){var J=se[te];se[te]=se[Q],se[Q]=J}g.prototype.swap16=function(){var te=this.length;if(te%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;Q0&&(te=this.toString("hex",0,Q).match(/.{2}/g).join(" "),this.length>Q&&(te+=" ... ")),""},g.prototype.compare=function(te,Q,J,ve,_e){if(!g.isBuffer(te))throw new TypeError("Argument must be a Buffer");if(Q===void 0&&(Q=0),J===void 0&&(J=te?te.length:0),ve===void 0&&(ve=0),_e===void 0&&(_e=this.length),Q<0||J>te.length||ve<0||_e>this.length)throw new RangeError("out of range index");if(ve>=_e&&Q>=J)return 0;if(ve>=_e)return-1;if(Q>=J)return 1;if(Q>>>=0,J>>>=0,ve>>>=0,_e>>>=0,this===te)return 0;for(var Ae=_e-ve,Qe=J-Q,tt=Math.min(Ae,Qe),dt=this.slice(ve,_e),mt=te.slice(Q,J),vt=0;vt2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),Q=+Q,isNaN(Q)&&(Q=ve?0:se.length-1),Q<0&&(Q=se.length+Q),Q>=se.length){if(ve)return-1;Q=se.length-1}else if(Q<0)if(ve)Q=0;else return-1;if(typeof te=="string"&&(te=g.from(te,J)),g.isBuffer(te))return te.length===0?-1:v(se,te,Q,J,ve);if(typeof te=="number")return te=te&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(se,te,Q):Uint8Array.prototype.lastIndexOf.call(se,te,Q):v(se,[te],Q,J,ve);throw new TypeError("val must be string, number or Buffer")}function v(se,te,Q,J,ve){var _e=1,Ae=se.length,Qe=te.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(se.length<2||te.length<2)return-1;_e=2,Ae/=2,Qe/=2,Q/=2}function tt(Ye,Ue){return _e===1?Ye[Ue]:Ye.readUInt16BE(Ue*_e)}var dt;if(ve){var mt=-1;for(dt=Q;dtAe&&(Q=Ae-Qe),dt=Q;dt>=0;dt--){for(var vt=!0,Et=0;Etve&&(J=ve)):J=ve;var _e=te.length;if(_e%2!==0)throw new TypeError("Invalid hex string");J>_e/2&&(J=_e/2);for(var Ae=0;Ae_e)&&(J=_e),te.length>0&&(J<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Ae=!1;;)switch(ve){case"hex":return R(this,te,Q,J);case"utf8":case"utf-8":return M(this,te,Q,J);case"ascii":return C(this,te,Q,J);case"latin1":case"binary":return S(this,te,Q,J);case"base64":return _(this,te,Q,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,te,Q,J);default:if(Ae)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Ae=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(se,te,Q){return te===0&&Q===se.length?T.fromByteArray(se):T.fromByteArray(se.slice(te,Q))}function L(se,te,Q){Q=Math.min(se.length,Q);for(var J=[],ve=te;ve239?4:_e>223?3:_e>191?2:1;if(ve+Qe<=Q){var tt,dt,mt,vt;switch(Qe){case 1:_e<128&&(Ae=_e);break;case 2:tt=se[ve+1],(tt&192)===128&&(vt=(_e&31)<<6|tt&63,vt>127&&(Ae=vt));break;case 3:tt=se[ve+1],dt=se[ve+2],(tt&192)===128&&(dt&192)===128&&(vt=(_e&15)<<12|(tt&63)<<6|dt&63,vt>2047&&(vt<55296||vt>57343)&&(Ae=vt));break;case 4:tt=se[ve+1],dt=se[ve+2],mt=se[ve+3],(tt&192)===128&&(dt&192)===128&&(mt&192)===128&&(vt=(_e&15)<<18|(tt&63)<<12|(dt&63)<<6|mt&63,vt>65535&&vt<1114112&&(Ae=vt))}}Ae===null?(Ae=65533,Qe=1):Ae>65535&&(Ae-=65536,J.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),J.push(Ae),ve+=Qe}return V(J)}var N=4096;function V(se){var te=se.length;if(te<=N)return String.fromCharCode.apply(String,se);for(var Q="",J=0;JJ)&&(Q=J);for(var ve="",_e=te;_eJ&&(te=J),Q<0?(Q+=J,Q<0&&(Q=0)):Q>J&&(Q=J),QQ)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te],_e=1,Ae=0;++Ae0&&(_e*=256);)ve+=this[te+--Q]*_e;return ve},g.prototype.readUInt8=function(te,Q){return Q||I(te,1,this.length),this[te]},g.prototype.readUInt16LE=function(te,Q){return Q||I(te,2,this.length),this[te]|this[te+1]<<8},g.prototype.readUInt16BE=function(te,Q){return Q||I(te,2,this.length),this[te]<<8|this[te+1]},g.prototype.readUInt32LE=function(te,Q){return Q||I(te,4,this.length),(this[te]|this[te+1]<<8|this[te+2]<<16)+this[te+3]*16777216},g.prototype.readUInt32BE=function(te,Q){return Q||I(te,4,this.length),this[te]*16777216+(this[te+1]<<16|this[te+2]<<8|this[te+3])},g.prototype.readIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te],_e=1,Ae=0;++Ae=_e&&(ve-=Math.pow(2,8*Q)),ve},g.prototype.readIntBE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=Q,_e=1,Ae=this[te+--ve];ve>0&&(_e*=256);)Ae+=this[te+--ve]*_e;return _e*=128,Ae>=_e&&(Ae-=Math.pow(2,8*Q)),Ae},g.prototype.readInt8=function(te,Q){return Q||I(te,1,this.length),this[te]&128?(255-this[te]+1)*-1:this[te]},g.prototype.readInt16LE=function(te,Q){Q||I(te,2,this.length);var J=this[te]|this[te+1]<<8;return J&32768?J|4294901760:J},g.prototype.readInt16BE=function(te,Q){Q||I(te,2,this.length);var J=this[te+1]|this[te]<<8;return J&32768?J|4294901760:J},g.prototype.readInt32LE=function(te,Q){return Q||I(te,4,this.length),this[te]|this[te+1]<<8|this[te+2]<<16|this[te+3]<<24},g.prototype.readInt32BE=function(te,Q){return Q||I(te,4,this.length),this[te]<<24|this[te+1]<<16|this[te+2]<<8|this[te+3]},g.prototype.readFloatLE=function(te,Q){return Q||I(te,4,this.length),b.read(this,te,!0,23,4)},g.prototype.readFloatBE=function(te,Q){return Q||I(te,4,this.length),b.read(this,te,!1,23,4)},g.prototype.readDoubleLE=function(te,Q){return Q||I(te,8,this.length),b.read(this,te,!0,52,8)},g.prototype.readDoubleBE=function(te,Q){return Q||I(te,8,this.length),b.read(this,te,!1,52,8)};function K(se,te,Q,J,ve,_e){if(!g.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(te>ve||te<_e)throw new RangeError('"value" argument is out of bounds');if(Q+J>se.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(te,Q,J,ve){if(te=+te,Q=Q|0,J=J|0,!ve){var _e=Math.pow(2,8*J)-1;K(this,te,Q,J,_e,0)}var Ae=1,Qe=0;for(this[Q]=te&255;++Qe=0&&(Qe*=256);)this[Q+Ae]=te/Qe&255;return Q+J},g.prototype.writeUInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,255,0),g.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),this[Q]=te&255,Q+1};function ee(se,te,Q,J){te<0&&(te=65535+te+1);for(var ve=0,_e=Math.min(se.length-Q,2);ve<_e;++ve)se[Q+ve]=(te&255<<8*(J?ve:1-ve))>>>(J?ve:1-ve)*8}g.prototype.writeUInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},g.prototype.writeUInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2};function he(se,te,Q,J){te<0&&(te=4294967295+te+1);for(var ve=0,_e=Math.min(se.length-Q,4);ve<_e;++ve)se[Q+ve]=te>>>(J?ve:3-ve)*8&255}g.prototype.writeUInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Q+3]=te>>>24,this[Q+2]=te>>>16,this[Q+1]=te>>>8,this[Q]=te&255):he(this,te,Q,!0),Q+4},g.prototype.writeUInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>24,this[Q+1]=te>>>16,this[Q+2]=te>>>8,this[Q+3]=te&255):he(this,te,Q,!1),Q+4},g.prototype.writeIntLE=function(te,Q,J,ve){if(te=+te,Q=Q|0,!ve){var _e=Math.pow(2,8*J-1);K(this,te,Q,J,_e-1,-_e)}var Ae=0,Qe=1,tt=0;for(this[Q]=te&255;++Ae>0)-tt&255;return Q+J},g.prototype.writeIntBE=function(te,Q,J,ve){if(te=+te,Q=Q|0,!ve){var _e=Math.pow(2,8*J-1);K(this,te,Q,J,_e-1,-_e)}var Ae=J-1,Qe=1,tt=0;for(this[Q+Ae]=te&255;--Ae>=0&&(Qe*=256);)te<0&&tt===0&&this[Q+Ae+1]!==0&&(tt=1),this[Q+Ae]=(te/Qe>>0)-tt&255;return Q+J},g.prototype.writeInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,127,-128),g.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),te<0&&(te=255+te+1),this[Q]=te&255,Q+1},g.prototype.writeInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},g.prototype.writeInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2},g.prototype.writeInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8,this[Q+2]=te>>>16,this[Q+3]=te>>>24):he(this,te,Q,!0),Q+4},g.prototype.writeInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),te<0&&(te=4294967295+te+1),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>24,this[Q+1]=te>>>16,this[Q+2]=te>>>8,this[Q+3]=te&255):he(this,te,Q,!1),Q+4};function de(se,te,Q,J,ve,_e){if(Q+J>se.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function Se(se,te,Q,J,ve){return ve||de(se,te,Q,4,34028234663852886e22,-34028234663852886e22),b.write(se,te,Q,J,23,4),Q+4}g.prototype.writeFloatLE=function(te,Q,J){return Se(this,te,Q,!0,J)},g.prototype.writeFloatBE=function(te,Q,J){return Se(this,te,Q,!1,J)};function Te(se,te,Q,J,ve){return ve||de(se,te,Q,8,17976931348623157e292,-17976931348623157e292),b.write(se,te,Q,J,52,8),Q+8}g.prototype.writeDoubleLE=function(te,Q,J){return Te(this,te,Q,!0,J)},g.prototype.writeDoubleBE=function(te,Q,J){return Te(this,te,Q,!1,J)},g.prototype.copy=function(te,Q,J,ve){if(J||(J=0),!ve&&ve!==0&&(ve=this.length),Q>=te.length&&(Q=te.length),Q||(Q=0),ve>0&&ve=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),te.length-Q=0;--Ae)te[Ae+Q]=this[Ae+J];else if(_e<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<_e;++Ae)te[Ae+Q]=this[Ae+J];else Uint8Array.prototype.set.call(te,this.subarray(J,J+_e),Q);return _e},g.prototype.fill=function(te,Q,J,ve){if(typeof te=="string"){if(typeof Q=="string"?(ve=Q,Q=0,J=this.length):typeof J=="string"&&(ve=J,J=this.length),te.length===1){var _e=te.charCodeAt(0);_e<256&&(te=_e)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!g.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof te=="number"&&(te=te&255);if(Q<0||this.length>>0,J=J===void 0?this.length:J>>>0,te||(te=0);var Ae;if(typeof te=="number")for(Ae=Q;Ae55295&&Q<57344){if(!ve){if(Q>56319){(te-=3)>-1&&_e.push(239,191,189);continue}else if(Ae+1===J){(te-=3)>-1&&_e.push(239,191,189);continue}ve=Q;continue}if(Q<56320){(te-=3)>-1&&_e.push(239,191,189),ve=Q;continue}Q=(ve-55296<<10|Q-56320)+65536}else ve&&((te-=3)>-1&&_e.push(239,191,189));if(ve=null,Q<128){if((te-=1)<0)break;_e.push(Q)}else if(Q<2048){if((te-=2)<0)break;_e.push(Q>>6|192,Q&63|128)}else if(Q<65536){if((te-=3)<0)break;_e.push(Q>>12|224,Q>>6&63|128,Q&63|128)}else if(Q<1114112){if((te-=4)<0)break;_e.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,Q&63|128)}else throw new Error("Invalid code point")}return _e}function $(se){for(var te=[],Q=0;Q>8,ve=Q%256,_e.push(ve),_e.push(J);return _e}function re(se){return T.toByteArray(be(se))}function ae(se,te,Q,J){for(var ve=0;ve=te.length||ve>=se.length);++ve)te[ve+Q]=se[ve];return ve}function Oe(se){return se!==se}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(k,z,o){z.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(k,z,o){z.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(k,z,o){/*! + */"use strict";var T=k("base64-js"),b=k("ieee754"),y=k("isarray");o.Buffer=g,o.SlowBuffer=d,o.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=P.TYPED_ARRAY_SUPPORT!==void 0?P.TYPED_ARRAY_SUPPORT:x(),o.kMaxLength=O();function x(){try{var se=new Uint8Array(1);return se.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},se.foo()===42&&typeof se.subarray=="function"&&se.subarray(1,1).byteLength===0}catch(te){return!1}}function O(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(se,te){if(O()=O())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O().toString(16)+" bytes");return se|0}function d(se){return+se!=se&&(se=0),g.alloc(+se)}g.isBuffer=function(te){return!!(te!=null&&te._isBuffer)},g.compare=function(te,Q){if(!g.isBuffer(te)||!g.isBuffer(Q))throw new TypeError("Arguments must be Buffers");if(te===Q)return 0;for(var J=te.length,ve=Q.length,_e=0,Ae=Math.min(J,ve);_e>>1;case"base64":return re(se).length;default:if(J)return le(se).length;te=(""+te).toLowerCase(),J=!0}}g.byteLength=s;function c(se,te,Q){var J=!1;if((te===void 0||te<0)&&(te=0),te>this.length)return"";if((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)return"";if(Q>>>=0,te>>>=0,Q<=te)return"";for(se||(se="utf8");;)switch(se){case"hex":return W(this,te,Q);case"utf8":case"utf-8":return L(this,te,Q);case"ascii":return H(this,te,Q);case"latin1":case"binary":return D(this,te,Q);case"base64":return U(this,te,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,te,Q);default:if(J)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),J=!0}}g.prototype._isBuffer=!0;function w(se,te,Q){var J=se[te];se[te]=se[Q],se[Q]=J}g.prototype.swap16=function(){var te=this.length;if(te%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Q=0;Q0&&(te=this.toString("hex",0,Q).match(/.{2}/g).join(" "),this.length>Q&&(te+=" ... ")),""},g.prototype.compare=function(te,Q,J,ve,_e){if(!g.isBuffer(te))throw new TypeError("Argument must be a Buffer");if(Q===void 0&&(Q=0),J===void 0&&(J=te?te.length:0),ve===void 0&&(ve=0),_e===void 0&&(_e=this.length),Q<0||J>te.length||ve<0||_e>this.length)throw new RangeError("out of range index");if(ve>=_e&&Q>=J)return 0;if(ve>=_e)return-1;if(Q>=J)return 1;if(Q>>>=0,J>>>=0,ve>>>=0,_e>>>=0,this===te)return 0;for(var Ae=_e-ve,Qe=J-Q,tt=Math.min(Ae,Qe),dt=this.slice(ve,_e),mt=te.slice(Q,J),vt=0;vt2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),Q=+Q,isNaN(Q)&&(Q=ve?0:se.length-1),Q<0&&(Q=se.length+Q),Q>=se.length){if(ve)return-1;Q=se.length-1}else if(Q<0)if(ve)Q=0;else return-1;if(typeof te=="string"&&(te=g.from(te,J)),g.isBuffer(te))return te.length===0?-1:v(se,te,Q,J,ve);if(typeof te=="number")return te=te&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(se,te,Q):Uint8Array.prototype.lastIndexOf.call(se,te,Q):v(se,[te],Q,J,ve);throw new TypeError("val must be string, number or Buffer")}function v(se,te,Q,J,ve){var _e=1,Ae=se.length,Qe=te.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(se.length<2||te.length<2)return-1;_e=2,Ae/=2,Qe/=2,Q/=2}function tt(Ye,Ue){return _e===1?Ye[Ue]:Ye.readUInt16BE(Ue*_e)}var dt;if(ve){var mt=-1;for(dt=Q;dtAe&&(Q=Ae-Qe),dt=Q;dt>=0;dt--){for(var vt=!0,yt=0;ytve&&(J=ve)):J=ve;var _e=te.length;if(_e%2!==0)throw new TypeError("Invalid hex string");J>_e/2&&(J=_e/2);for(var Ae=0;Ae_e)&&(J=_e),te.length>0&&(J<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Ae=!1;;)switch(ve){case"hex":return R(this,te,Q,J);case"utf8":case"utf-8":return M(this,te,Q,J);case"ascii":return C(this,te,Q,J);case"latin1":case"binary":return S(this,te,Q,J);case"base64":return _(this,te,Q,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,te,Q,J);default:if(Ae)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Ae=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(se,te,Q){return te===0&&Q===se.length?T.fromByteArray(se):T.fromByteArray(se.slice(te,Q))}function L(se,te,Q){Q=Math.min(se.length,Q);for(var J=[],ve=te;ve239?4:_e>223?3:_e>191?2:1;if(ve+Qe<=Q){var tt,dt,mt,vt;switch(Qe){case 1:_e<128&&(Ae=_e);break;case 2:tt=se[ve+1],(tt&192)===128&&(vt=(_e&31)<<6|tt&63,vt>127&&(Ae=vt));break;case 3:tt=se[ve+1],dt=se[ve+2],(tt&192)===128&&(dt&192)===128&&(vt=(_e&15)<<12|(tt&63)<<6|dt&63,vt>2047&&(vt<55296||vt>57343)&&(Ae=vt));break;case 4:tt=se[ve+1],dt=se[ve+2],mt=se[ve+3],(tt&192)===128&&(dt&192)===128&&(mt&192)===128&&(vt=(_e&15)<<18|(tt&63)<<12|(dt&63)<<6|mt&63,vt>65535&&vt<1114112&&(Ae=vt))}}Ae===null?(Ae=65533,Qe=1):Ae>65535&&(Ae-=65536,J.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),J.push(Ae),ve+=Qe}return V(J)}var N=4096;function V(se){var te=se.length;if(te<=N)return String.fromCharCode.apply(String,se);for(var Q="",J=0;JJ)&&(Q=J);for(var ve="",_e=te;_eJ&&(te=J),Q<0?(Q+=J,Q<0&&(Q=0)):Q>J&&(Q=J),QQ)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te],_e=1,Ae=0;++Ae0&&(_e*=256);)ve+=this[te+--Q]*_e;return ve},g.prototype.readUInt8=function(te,Q){return Q||I(te,1,this.length),this[te]},g.prototype.readUInt16LE=function(te,Q){return Q||I(te,2,this.length),this[te]|this[te+1]<<8},g.prototype.readUInt16BE=function(te,Q){return Q||I(te,2,this.length),this[te]<<8|this[te+1]},g.prototype.readUInt32LE=function(te,Q){return Q||I(te,4,this.length),(this[te]|this[te+1]<<8|this[te+2]<<16)+this[te+3]*16777216},g.prototype.readUInt32BE=function(te,Q){return Q||I(te,4,this.length),this[te]*16777216+(this[te+1]<<16|this[te+2]<<8|this[te+3])},g.prototype.readIntLE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=this[te],_e=1,Ae=0;++Ae=_e&&(ve-=Math.pow(2,8*Q)),ve},g.prototype.readIntBE=function(te,Q,J){te=te|0,Q=Q|0,J||I(te,Q,this.length);for(var ve=Q,_e=1,Ae=this[te+--ve];ve>0&&(_e*=256);)Ae+=this[te+--ve]*_e;return _e*=128,Ae>=_e&&(Ae-=Math.pow(2,8*Q)),Ae},g.prototype.readInt8=function(te,Q){return Q||I(te,1,this.length),this[te]&128?(255-this[te]+1)*-1:this[te]},g.prototype.readInt16LE=function(te,Q){Q||I(te,2,this.length);var J=this[te]|this[te+1]<<8;return J&32768?J|4294901760:J},g.prototype.readInt16BE=function(te,Q){Q||I(te,2,this.length);var J=this[te+1]|this[te]<<8;return J&32768?J|4294901760:J},g.prototype.readInt32LE=function(te,Q){return Q||I(te,4,this.length),this[te]|this[te+1]<<8|this[te+2]<<16|this[te+3]<<24},g.prototype.readInt32BE=function(te,Q){return Q||I(te,4,this.length),this[te]<<24|this[te+1]<<16|this[te+2]<<8|this[te+3]},g.prototype.readFloatLE=function(te,Q){return Q||I(te,4,this.length),b.read(this,te,!0,23,4)},g.prototype.readFloatBE=function(te,Q){return Q||I(te,4,this.length),b.read(this,te,!1,23,4)},g.prototype.readDoubleLE=function(te,Q){return Q||I(te,8,this.length),b.read(this,te,!0,52,8)},g.prototype.readDoubleBE=function(te,Q){return Q||I(te,8,this.length),b.read(this,te,!1,52,8)};function K(se,te,Q,J,ve,_e){if(!g.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(te>ve||te<_e)throw new RangeError('"value" argument is out of bounds');if(Q+J>se.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(te,Q,J,ve){if(te=+te,Q=Q|0,J=J|0,!ve){var _e=Math.pow(2,8*J)-1;K(this,te,Q,J,_e,0)}var Ae=1,Qe=0;for(this[Q]=te&255;++Qe=0&&(Qe*=256);)this[Q+Ae]=te/Qe&255;return Q+J},g.prototype.writeUInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,255,0),g.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),this[Q]=te&255,Q+1};function ee(se,te,Q,J){te<0&&(te=65535+te+1);for(var ve=0,_e=Math.min(se.length-Q,2);ve<_e;++ve)se[Q+ve]=(te&255<<8*(J?ve:1-ve))>>>(J?ve:1-ve)*8}g.prototype.writeUInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},g.prototype.writeUInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2};function he(se,te,Q,J){te<0&&(te=4294967295+te+1);for(var ve=0,_e=Math.min(se.length-Q,4);ve<_e;++ve)se[Q+ve]=te>>>(J?ve:3-ve)*8&255}g.prototype.writeUInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Q+3]=te>>>24,this[Q+2]=te>>>16,this[Q+1]=te>>>8,this[Q]=te&255):he(this,te,Q,!0),Q+4},g.prototype.writeUInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>24,this[Q+1]=te>>>16,this[Q+2]=te>>>8,this[Q+3]=te&255):he(this,te,Q,!1),Q+4},g.prototype.writeIntLE=function(te,Q,J,ve){if(te=+te,Q=Q|0,!ve){var _e=Math.pow(2,8*J-1);K(this,te,Q,J,_e-1,-_e)}var Ae=0,Qe=1,tt=0;for(this[Q]=te&255;++Ae>0)-tt&255;return Q+J},g.prototype.writeIntBE=function(te,Q,J,ve){if(te=+te,Q=Q|0,!ve){var _e=Math.pow(2,8*J-1);K(this,te,Q,J,_e-1,-_e)}var Ae=J-1,Qe=1,tt=0;for(this[Q+Ae]=te&255;--Ae>=0&&(Qe*=256);)te<0&&tt===0&&this[Q+Ae+1]!==0&&(tt=1),this[Q+Ae]=(te/Qe>>0)-tt&255;return Q+J},g.prototype.writeInt8=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,1,127,-128),g.TYPED_ARRAY_SUPPORT||(te=Math.floor(te)),te<0&&(te=255+te+1),this[Q]=te&255,Q+1},g.prototype.writeInt16LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8):ee(this,te,Q,!0),Q+2},g.prototype.writeInt16BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>8,this[Q+1]=te&255):ee(this,te,Q,!1),Q+2},g.prototype.writeInt32LE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[Q]=te&255,this[Q+1]=te>>>8,this[Q+2]=te>>>16,this[Q+3]=te>>>24):he(this,te,Q,!0),Q+4},g.prototype.writeInt32BE=function(te,Q,J){return te=+te,Q=Q|0,J||K(this,te,Q,4,2147483647,-2147483648),te<0&&(te=4294967295+te+1),g.TYPED_ARRAY_SUPPORT?(this[Q]=te>>>24,this[Q+1]=te>>>16,this[Q+2]=te>>>8,this[Q+3]=te&255):he(this,te,Q,!1),Q+4};function de(se,te,Q,J,ve,_e){if(Q+J>se.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function Se(se,te,Q,J,ve){return ve||de(se,te,Q,4,34028234663852886e22,-34028234663852886e22),b.write(se,te,Q,J,23,4),Q+4}g.prototype.writeFloatLE=function(te,Q,J){return Se(this,te,Q,!0,J)},g.prototype.writeFloatBE=function(te,Q,J){return Se(this,te,Q,!1,J)};function Te(se,te,Q,J,ve){return ve||de(se,te,Q,8,17976931348623157e292,-17976931348623157e292),b.write(se,te,Q,J,52,8),Q+8}g.prototype.writeDoubleLE=function(te,Q,J){return Te(this,te,Q,!0,J)},g.prototype.writeDoubleBE=function(te,Q,J){return Te(this,te,Q,!1,J)},g.prototype.copy=function(te,Q,J,ve){if(J||(J=0),!ve&&ve!==0&&(ve=this.length),Q>=te.length&&(Q=te.length),Q||(Q=0),ve>0&&ve=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),te.length-Q=0;--Ae)te[Ae+Q]=this[Ae+J];else if(_e<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<_e;++Ae)te[Ae+Q]=this[Ae+J];else Uint8Array.prototype.set.call(te,this.subarray(J,J+_e),Q);return _e},g.prototype.fill=function(te,Q,J,ve){if(typeof te=="string"){if(typeof Q=="string"?(ve=Q,Q=0,J=this.length):typeof J=="string"&&(ve=J,J=this.length),te.length===1){var _e=te.charCodeAt(0);_e<256&&(te=_e)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!g.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof te=="number"&&(te=te&255);if(Q<0||this.length>>0,J=J===void 0?this.length:J>>>0,te||(te=0);var Ae;if(typeof te=="number")for(Ae=Q;Ae55295&&Q<57344){if(!ve){if(Q>56319){(te-=3)>-1&&_e.push(239,191,189);continue}else if(Ae+1===J){(te-=3)>-1&&_e.push(239,191,189);continue}ve=Q;continue}if(Q<56320){(te-=3)>-1&&_e.push(239,191,189),ve=Q;continue}Q=(ve-55296<<10|Q-56320)+65536}else ve&&((te-=3)>-1&&_e.push(239,191,189));if(ve=null,Q<128){if((te-=1)<0)break;_e.push(Q)}else if(Q<2048){if((te-=2)<0)break;_e.push(Q>>6|192,Q&63|128)}else if(Q<65536){if((te-=3)<0)break;_e.push(Q>>12|224,Q>>6&63|128,Q&63|128)}else if(Q<1114112){if((te-=4)<0)break;_e.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,Q&63|128)}else throw new Error("Invalid code point")}return _e}function $(se){for(var te=[],Q=0;Q>8,ve=Q%256,_e.push(ve),_e.push(J);return _e}function re(se){return T.toByteArray(be(se))}function ae(se,te,Q,J){for(var ve=0;ve=te.length||ve>=se.length);++ve)te[ve+Q]=se[ve];return ve}function Oe(se){return se!==se}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(k,z,o){z.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(k,z,o){z.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(k,z,o){/*! * copy-to - index.js * Copyright(c) 2014 dead_horse * MIT Licensed - */"use strict";var P=Array.prototype.slice;z.exports=g;function g(b,y){if(!(this instanceof g))return new g(b,y);this.src=b,this._withAccess=y}g.prototype.withAccess=function(b){return this._withAccess=b!==!1,this},g.prototype.pick=function(b){return Array.isArray(b)||(b=P.call(arguments)),b.length&&(this.keys=b),this},g.prototype.to=function(b){if(b=b||{},!this.src)return b;var y=this.keys||Object.keys(this.src);if(!this._withAccess){for(var x=0;xf;)if(a=m[f++],a!=a)return!0}else for(;e>f;f++)if((b||f in m)&&m[f]===x)return b||f||0;return!b&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(k,z,o){var P=k("./_cof"),g=k("./_wks")("toStringTag"),T=P(function(){return arguments}())=="Arguments",b=function(y,x){try{return y[x]}catch(O){}};z.exports=function(y){var x,O,m;return y===void 0?"Undefined":y===null?"Null":typeof(O=b(x=Object(y),g))=="string"?O:T?P(x):(m=P(x))=="Object"&&typeof x.callee=="function"?"Arguments":m}},{"./_cof":98,"./_wks":166}],98:[function(k,z,o){var P={}.toString;z.exports=function(g){return P.call(g).slice(8,-1)}},{}],99:[function(k,z,o){var P=z.exports={version:"2.6.11"};typeof __e=="number"&&(__e=P)},{}],100:[function(k,z,o){"use strict";var P=k("./_object-dp"),g=k("./_property-desc");z.exports=function(T,b,y){b in T?P.f(T,b,g(0,y)):T[b]=y}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,z,o){var P=k("./_a-function");z.exports=function(g,T,b){if(P(g),T===void 0)return g;switch(b){case 1:return function(y){return g.call(T,y)};case 2:return function(y,x){return g.call(T,y,x)};case 3:return function(y,x,O){return g.call(T,y,x,O)}}return function(){return g.apply(T,arguments)}}},{"./_a-function":92}],102:[function(k,z,o){z.exports=function(P){if(P==null)throw TypeError("Can't call method on "+P);return P}},{}],103:[function(k,z,o){z.exports=!k("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(k,z,o){var P=k("./_is-object"),g=k("./_global").document,T=P(g)&&P(g.createElement);z.exports=function(b){return T?g.createElement(b):{}}},{"./_global":110,"./_is-object":119}],105:[function(k,z,o){z.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(k,z,o){var P=k("./_object-keys"),g=k("./_object-gops"),T=k("./_object-pie");z.exports=function(b){var y=P(b),x=g.f;if(x)for(var O=x(b),m=T.f,e=0,f;O.length>e;)m.call(b,f=O[e++])&&y.push(f);return y}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,z,o){var P=k("./_global"),g=k("./_core"),T=k("./_ctx"),b=k("./_hide"),y=k("./_has"),x="prototype",O=function(m,e,f){var a=m&O.F,u=m&O.G,r=m&O.S,i=m&O.P,n=m&O.B,l=m&O.W,h=u?g:g[e]||(g[e]={}),d=h[x],s=u?P:r?P[e]:(P[e]||{})[x],c,w,E;u&&(f=e);for(c in f){if(w=!a&&s&&s[c]!==void 0,w&&y(h,c))continue;E=w?s[c]:f[c],h[c]=u&&typeof s[c]!="function"?f[c]:n&&w?T(E,P):l&&s[c]==E?function(v){var R=function(M,C,S){if(this instanceof v){switch(arguments.length){case 0:return new v;case 1:return new v(M);case 2:return new v(M,C)}return new v(M,C,S)}return v.apply(this,arguments)};return R[x]=v[x],R}(E):i&&typeof E=="function"?T(Function.call,E):E,i&&((h.virtual||(h.virtual={}))[c]=E,m&O.R&&d&&!d[c]&&b(d,c,E))}};O.F=1,O.G=2,O.S=4,O.P=8,O.B=16,O.W=32,O.U=64,O.R=128,z.exports=O},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(k,z,o){z.exports=function(P){try{return!!P()}catch(g){return!0}}},{}],109:[function(k,z,o){var P=k("./_ctx"),g=k("./_iter-call"),T=k("./_is-array-iter"),b=k("./_an-object"),y=k("./_to-length"),x=k("./core.get-iterator-method"),O={},m={},o=z.exports=function(e,f,a,u,r){var i=r?function(){return e}:x(e),n=P(a,u,f?2:1),l=0,h,d,s,c;if(typeof i!="function")throw TypeError(e+" is not iterable!");if(T(i)){for(h=y(e.length);h>l;l++)if(c=f?n(b(d=e[l])[0],d[1]):n(e[l]),c===O||c===m)return c}else for(s=i.call(e);!(d=s.next()).done;)if(c=g(s,n,d.value,f),c===O||c===m)return c};o.BREAK=O,o.RETURN=m},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(k,z,o){var P=z.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=P)},{}],111:[function(k,z,o){var P={}.hasOwnProperty;z.exports=function(g,T){return P.call(g,T)}},{}],112:[function(k,z,o){var P=k("./_object-dp"),g=k("./_property-desc");z.exports=k("./_descriptors")?function(T,b,y){return P.f(T,b,g(1,y))}:function(T,b,y){return T[b]=y,T}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(k,z,o){var P=k("./_global").document;z.exports=P&&P.documentElement},{"./_global":110}],114:[function(k,z,o){z.exports=!k("./_descriptors")&&!k("./_fails")(function(){return Object.defineProperty(k("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(k,z,o){z.exports=function(P,g,T){var b=T===void 0;switch(g.length){case 0:return b?P():P.call(T);case 1:return b?P(g[0]):P.call(T,g[0]);case 2:return b?P(g[0],g[1]):P.call(T,g[0],g[1]);case 3:return b?P(g[0],g[1],g[2]):P.call(T,g[0],g[1],g[2]);case 4:return b?P(g[0],g[1],g[2],g[3]):P.call(T,g[0],g[1],g[2],g[3])}return P.apply(T,g)}},{}],116:[function(k,z,o){var P=k("./_cof");z.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return P(g)=="String"?g.split(""):Object(g)}},{"./_cof":98}],117:[function(k,z,o){var P=k("./_iterators"),g=k("./_wks")("iterator"),T=Array.prototype;z.exports=function(b){return b!==void 0&&(P.Array===b||T[g]===b)}},{"./_iterators":125,"./_wks":166}],118:[function(k,z,o){var P=k("./_cof");z.exports=Array.isArray||function(T){return P(T)=="Array"}},{"./_cof":98}],119:[function(k,z,o){z.exports=function(P){return typeof P=="object"?P!==null:typeof P=="function"}},{}],120:[function(k,z,o){var P=k("./_an-object");z.exports=function(g,T,b,y){try{return y?T(P(b)[0],b[1]):T(b)}catch(O){var x=g.return;throw x!==void 0&&P(x.call(g)),O}}},{"./_an-object":95}],121:[function(k,z,o){"use strict";var P=k("./_object-create"),g=k("./_property-desc"),T=k("./_set-to-string-tag"),b={};k("./_hide")(b,k("./_wks")("iterator"),function(){return this}),z.exports=function(y,x,O){y.prototype=P(b,{next:g(1,O)}),T(y,x+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(k,z,o){"use strict";var P=k("./_library"),g=k("./_export"),T=k("./_redefine"),b=k("./_hide"),y=k("./_iterators"),x=k("./_iter-create"),O=k("./_set-to-string-tag"),m=k("./_object-gpo"),e=k("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),a="@@iterator",u="keys",r="values",i=function(){return this};z.exports=function(n,l,h,d,s,c,w){x(h,l,d);var E=function(H){if(!f&&H in C)return C[H];switch(H){case u:return function(){return new h(this,H)};case r:return function(){return new h(this,H)}}return function(){return new h(this,H)}},v=l+" Iterator",R=s==r,M=!1,C=n.prototype,S=C[e]||C[a]||s&&C[s],_=S||E(s),A=s?R?E("entries"):_:void 0,U=l=="Array"&&C.entries||S,L,N,V;if(U&&(V=m(U.call(new n)),V!==Object.prototype&&V.next&&(O(V,v,!0),!P&&typeof V[e]!="function"&&b(V,e,i))),R&&S&&S.name!==r&&(M=!0,_=function(){return S.call(this)}),(!P||w)&&(f||M||!C[e])&&b(C,e,_),y[l]=_,y[v]=i,s)if(L={values:R?_:E(r),keys:c?_:E(u),entries:A},w)for(N in L)N in C||T(C,N,L[N]);else g(g.P+g.F*(f||M),l,L);return L}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(k,z,o){var P=k("./_wks")("iterator"),g=!1;try{var T=[7][P]();T.return=function(){g=!0},Array.from(T,function(){throw 2})}catch(b){}z.exports=function(b,y){if(!y&&!g)return!1;var x=!1;try{var O=[7],m=O[P]();m.next=function(){return{done:x=!0}},O[P]=function(){return m},b(O)}catch(e){}return x}},{"./_wks":166}],124:[function(k,z,o){z.exports=function(P,g){return{value:g,done:!!P}}},{}],125:[function(k,z,o){z.exports={}},{}],126:[function(k,z,o){z.exports=!0},{}],127:[function(k,z,o){var P=k("./_uid")("meta"),g=k("./_is-object"),T=k("./_has"),b=k("./_object-dp").f,y=0,x=Object.isExtensible||function(){return!0},O=!k("./_fails")(function(){return x(Object.preventExtensions({}))}),m=function(r){b(r,P,{value:{i:"O"+ ++y,w:{}}})},e=function(r,i){if(!g(r))return typeof r=="symbol"?r:(typeof r=="string"?"S":"P")+r;if(!T(r,P)){if(!x(r))return"F";if(!i)return"E";m(r)}return r[P].i},f=function(r,i){if(!T(r,P)){if(!x(r))return!0;if(!i)return!1;m(r)}return r[P].w},a=function(r){return O&&u.NEED&&x(r)&&!T(r,P)&&m(r),r},u=z.exports={KEY:P,NEED:!1,fastKey:e,getWeak:f,onFreeze:a}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,z,o){var P=k("./_global"),g=k("./_task").set,T=P.MutationObserver||P.WebKitMutationObserver,b=P.process,y=P.Promise,x=k("./_cof")(b)=="process";z.exports=function(){var O,m,e,f=function(){var i,n;for(x&&(i=b.domain)&&i.exit();O;){n=O.fn,O=O.next;try{n()}catch(l){throw O?e():m=void 0,l}}m=void 0,i&&i.enter()};if(x)e=function(){b.nextTick(f)};else if(T&&!(P.navigator&&P.navigator.standalone)){var a=!0,u=document.createTextNode("");new T(f).observe(u,{characterData:!0}),e=function(){u.data=a=!a}}else if(y&&y.resolve){var r=y.resolve(void 0);e=function(){r.then(f)}}else e=function(){g.call(P,f)};return function(i){var n={fn:i,next:void 0};m&&(m.next=n),O||(O=n,e()),m=n}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,z,o){"use strict";var P=k("./_a-function");function g(T){var b,y;this.promise=new T(function(x,O){if(b!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");b=x,y=O}),this.resolve=P(b),this.reject=P(y)}z.exports.f=function(T){return new g(T)}},{"./_a-function":92}],130:[function(k,z,o){"use strict";var P=k("./_descriptors"),g=k("./_object-keys"),T=k("./_object-gops"),b=k("./_object-pie"),y=k("./_to-object"),x=k("./_iobject"),O=Object.assign;z.exports=!O||k("./_fails")(function(){var m={},e={},f=Symbol(),a="abcdefghijklmnopqrst";return m[f]=7,a.split("").forEach(function(u){e[u]=u}),O({},m)[f]!=7||Object.keys(O({},e)).join("")!=a})?function(e,f){for(var a=y(e),u=arguments.length,r=1,i=T.f,n=b.f;u>r;)for(var l=x(arguments[r++]),h=i?g(l).concat(i(l)):g(l),d=h.length,s=0,c;d>s;)c=h[s++],(!P||n.call(l,c))&&(a[c]=l[c]);return a}:O},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(k,z,o){var P=k("./_an-object"),g=k("./_object-dps"),T=k("./_enum-bug-keys"),b=k("./_shared-key")("IE_PROTO"),y=function(){},x="prototype",O=function(){var m=k("./_dom-create")("iframe"),e=T.length,f="<",a=">",u;for(m.style.display="none",k("./_html").appendChild(m),m.src="javascript:",u=m.contentWindow.document,u.open(),u.write(f+"script"+a+"document.F=Object"+f+"/script"+a),u.close(),O=u.F;e--;)delete O[x][T[e]];return O()};z.exports=Object.create||function(e,f){var a;return e!==null?(y[x]=P(e),a=new y,y[x]=null,a[b]=e):a=O(),f===void 0?a:g(a,f)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(k,z,o){var P=k("./_an-object"),g=k("./_ie8-dom-define"),T=k("./_to-primitive"),b=Object.defineProperty;o.f=k("./_descriptors")?Object.defineProperty:function(x,O,m){if(P(x),O=T(O,!0),P(m),g)try{return b(x,O,m)}catch(e){}if("get"in m||"set"in m)throw TypeError("Accessors not supported!");return"value"in m&&(x[O]=m.value),x}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,z,o){var P=k("./_object-dp"),g=k("./_an-object"),T=k("./_object-keys");z.exports=k("./_descriptors")?Object.defineProperties:function(y,x){g(y);for(var O=T(x),m=O.length,e=0,f;m>e;)P.f(y,f=O[e++],x[f]);return y}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(k,z,o){var P=k("./_object-pie"),g=k("./_property-desc"),T=k("./_to-iobject"),b=k("./_to-primitive"),y=k("./_has"),x=k("./_ie8-dom-define"),O=Object.getOwnPropertyDescriptor;o.f=k("./_descriptors")?O:function(e,f){if(e=T(e),f=b(f,!0),x)try{return O(e,f)}catch(a){}if(y(e,f))return g(!P.f.call(e,f),e[f])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(k,z,o){var P=k("./_to-iobject"),g=k("./_object-gopn").f,T={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(x){try{return g(x)}catch(O){return b.slice()}};z.exports.f=function(O){return b&&T.call(O)=="[object Window]"?y(O):g(P(O))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,z,o){var P=k("./_object-keys-internal"),g=k("./_enum-bug-keys").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(b){return P(b,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(k,z,o){o.f=Object.getOwnPropertySymbols},{}],138:[function(k,z,o){var P=k("./_has"),g=k("./_to-object"),T=k("./_shared-key")("IE_PROTO"),b=Object.prototype;z.exports=Object.getPrototypeOf||function(y){return y=g(y),P(y,T)?y[T]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?b:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(k,z,o){var P=k("./_has"),g=k("./_to-iobject"),T=k("./_array-includes")(!1),b=k("./_shared-key")("IE_PROTO");z.exports=function(y,x){var O=g(y),m=0,e=[],f;for(f in O)f!=b&&(P(O,f)&&e.push(f));for(;x.length>m;)P(O,f=x[m++])&&(~T(e,f)||e.push(f));return e}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(k,z,o){var P=k("./_object-keys-internal"),g=k("./_enum-bug-keys");z.exports=Object.keys||function(b){return P(b,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(k,z,o){o.f={}.propertyIsEnumerable},{}],142:[function(k,z,o){var P=k("./_export"),g=k("./_core"),T=k("./_fails");z.exports=function(b,y){var x=(g.Object||{})[b]||Object[b],O={};O[b]=y(x),P(P.S+P.F*T(function(){x(1)}),"Object",O)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(k,z,o){var P=k("./_descriptors"),g=k("./_object-keys"),T=k("./_to-iobject"),b=k("./_object-pie").f;z.exports=function(y){return function(x){for(var O=T(x),m=g(O),e=m.length,f=0,a=[],u;e>f;)u=m[f++],(!P||b.call(O,u))&&a.push(y?[u,O[u]]:O[u]);return a}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(k,z,o){z.exports=function(P){try{return{e:!1,v:P()}}catch(g){return{e:!0,v:g}}}},{}],145:[function(k,z,o){var P=k("./_an-object"),g=k("./_is-object"),T=k("./_new-promise-capability");z.exports=function(b,y){if(P(b),g(y)&&y.constructor===b)return y;var x=T.f(b),O=x.resolve;return O(y),x.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(k,z,o){z.exports=function(P,g){return{enumerable:!(P&1),configurable:!(P&2),writable:!(P&4),value:g}}},{}],147:[function(k,z,o){var P=k("./_hide");z.exports=function(g,T,b){for(var y in T)b&&g[y]?g[y]=T[y]:P(g,y,T[y]);return g}},{"./_hide":112}],148:[function(k,z,o){z.exports=k("./_hide")},{"./_hide":112}],149:[function(k,z,o){"use strict";var P=k("./_global"),g=k("./_core"),T=k("./_object-dp"),b=k("./_descriptors"),y=k("./_wks")("species");z.exports=function(x){var O=typeof g[x]=="function"?g[x]:P[x];b&&O&&!O[y]&&T.f(O,y,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(k,z,o){var P=k("./_object-dp").f,g=k("./_has"),T=k("./_wks")("toStringTag");z.exports=function(b,y,x){b&&!g(b=x?b:b.prototype,T)&&P(b,T,{configurable:!0,value:y})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(k,z,o){var P=k("./_shared")("keys"),g=k("./_uid");z.exports=function(T){return P[T]||(P[T]=g(T))}},{"./_shared":152,"./_uid":162}],152:[function(k,z,o){var P=k("./_core"),g=k("./_global"),T="__core-js_shared__",b=g[T]||(g[T]={});(z.exports=function(y,x){return b[y]||(b[y]=x!==void 0?x:{})})("versions",[]).push({version:P.version,mode:k("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(k,z,o){var P=k("./_an-object"),g=k("./_a-function"),T=k("./_wks")("species");z.exports=function(b,y){var x=P(b).constructor,O;return x===void 0||(O=P(x)[T])==null?y:g(O)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,z,o){var P=k("./_to-integer"),g=k("./_defined");z.exports=function(T){return function(b,y){var x=String(g(b)),O=P(y),m=x.length,e,f;return O<0||O>=m?T?"":void 0:(e=x.charCodeAt(O),e<55296||e>56319||O+1===m||(f=x.charCodeAt(O+1))<56320||f>57343?T?x.charAt(O):e:T?x.slice(O,O+2):(e-55296<<10)+(f-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,z,o){var P=k("./_ctx"),g=k("./_invoke"),T=k("./_html"),b=k("./_dom-create"),y=k("./_global"),x=y.process,O=y.setImmediate,m=y.clearImmediate,e=y.MessageChannel,f=y.Dispatch,a=0,u={},r="onreadystatechange",i,n,l,h=function(){var s=+this;if(u.hasOwnProperty(s)){var c=u[s];delete u[s],c()}},d=function(s){h.call(s.data)};(!O||!m)&&(O=function(c){for(var w=[],E=1;arguments.length>E;)w.push(arguments[E++]);return u[++a]=function(){g(typeof c=="function"?c:Function(c),w)},i(a),a},m=function(c){delete u[c]},k("./_cof")(x)=="process"?i=function(s){x.nextTick(P(h,s,1))}:f&&f.now?i=function(s){f.now(P(h,s,1))}:e?(n=new e,l=n.port2,n.port1.onmessage=d,i=P(l.postMessage,l,1)):y.addEventListener&&typeof postMessage=="function"&&!y.importScripts?(i=function(s){y.postMessage(s+"","*")},y.addEventListener("message",d,!1)):r in b("script")?i=function(s){T.appendChild(b("script"))[r]=function(){T.removeChild(this),h.call(s)}}:i=function(s){setTimeout(P(h,s,1),0)}),z.exports={set:O,clear:m}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,z,o){var P=k("./_to-integer"),g=Math.max,T=Math.min;z.exports=function(b,y){return b=P(b),b<0?g(b+y,0):T(b,y)}},{"./_to-integer":157}],157:[function(k,z,o){var P=Math.ceil,g=Math.floor;z.exports=function(T){return isNaN(T=+T)?0:(T>0?g:P)(T)}},{}],158:[function(k,z,o){var P=k("./_iobject"),g=k("./_defined");z.exports=function(T){return P(g(T))}},{"./_defined":102,"./_iobject":116}],159:[function(k,z,o){var P=k("./_to-integer"),g=Math.min;z.exports=function(T){return T>0?g(P(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,z,o){var P=k("./_defined");z.exports=function(g){return Object(P(g))}},{"./_defined":102}],161:[function(k,z,o){var P=k("./_is-object");z.exports=function(g,T){if(!P(g))return g;var b,y;if(T&&typeof(b=g.toString)=="function"&&!P(y=b.call(g)))return y;if(typeof(b=g.valueOf)=="function"&&!P(y=b.call(g)))return y;if(!T&&typeof(b=g.toString)=="function"&&!P(y=b.call(g)))return y;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,z,o){var P=0,g=Math.random();z.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++P+g).toString(36))}},{}],163:[function(k,z,o){var P=k("./_global"),g=P.navigator;z.exports=g&&g.userAgent||""},{"./_global":110}],164:[function(k,z,o){var P=k("./_global"),g=k("./_core"),T=k("./_library"),b=k("./_wks-ext"),y=k("./_object-dp").f;z.exports=function(x){var O=g.Symbol||(g.Symbol=T?{}:P.Symbol||{});x.charAt(0)!="_"&&!(x in O)&&y(O,x,{value:b.f(x)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(k,z,o){o.f=k("./_wks")},{"./_wks":166}],166:[function(k,z,o){var P=k("./_shared")("wks"),g=k("./_uid"),T=k("./_global").Symbol,b=typeof T=="function",y=z.exports=function(x){return P[x]||(P[x]=b&&T[x]||(b?T:g)("Symbol."+x))};y.store=P},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,z,o){var P=k("./_classof"),g=k("./_wks")("iterator"),T=k("./_iterators");z.exports=k("./_core").getIteratorMethod=function(b){if(b!=null)return b[g]||b["@@iterator"]||T[P(b)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,z,o){"use strict";var P=k("./_ctx"),g=k("./_export"),T=k("./_to-object"),b=k("./_iter-call"),y=k("./_is-array-iter"),x=k("./_to-length"),O=k("./_create-property"),m=k("./core.get-iterator-method");g(g.S+g.F*!k("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(f){var a=T(f),u=typeof this=="function"?this:Array,r=arguments.length,i=r>1?arguments[1]:void 0,n=i!==void 0,l=0,h=m(a),d,s,c,w;if(n&&(i=P(i,r>2?arguments[2]:void 0,2)),h!=null&&!(u==Array&&y(h)))for(w=h.call(a),s=new u;!(c=w.next()).done;l++)O(s,l,n?b(w,i,[c.value,l],!0):c.value);else for(d=x(a.length),s=new u(d);d>l;l++)O(s,l,n?i(a[l],l):a[l]);return s.length=l,s}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(k,z,o){"use strict";var P=k("./_add-to-unscopables"),g=k("./_iter-step"),T=k("./_iterators"),b=k("./_to-iobject");z.exports=k("./_iter-define")(Array,"Array",function(y,x){this._t=b(y),this._i=0,this._k=x},function(){var y=this._t,x=this._k,O=this._i++;return!y||O>=y.length?(this._t=void 0,g(1)):x=="keys"?g(0,O):x=="values"?g(0,y[O]):g(0,[O,y[O]])},"values"),T.Arguments=T.Array,P("keys"),P("values"),P("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(k,z,o){"use strict";var P=k("./_is-object"),g=k("./_object-gpo"),T=k("./_wks")("hasInstance"),b=Function.prototype;T in b||k("./_object-dp").f(b,T,{value:function(y){if(typeof this!="function"||!P(y))return!1;if(!P(this.prototype))return y instanceof this;for(;y=g(y);)if(this.prototype===y)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(k,z,o){var P=k("./_export");P(P.S+P.F,"Object",{assign:k("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(k,z,o){var P=k("./_export");P(P.S,"Object",{create:k("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(k,z,o){var P=k("./_export");P(P.S+P.F*!k("./_descriptors"),"Object",{defineProperty:k("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(k,z,o){k("./_object-sap")("getOwnPropertyNames",function(){return k("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(k,z,o){var P=k("./_to-object"),g=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(b){return g(P(b))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,z,o){var P=k("./_to-object"),g=k("./_object-keys");k("./_object-sap")("keys",function(){return function(b){return g(P(b))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(k,z,o){arguments[4][71][0].apply(o,arguments)},{dup:71}],178:[function(k,z,o){"use strict";var P=k("./_library"),g=k("./_global"),T=k("./_ctx"),b=k("./_classof"),y=k("./_export"),x=k("./_is-object"),O=k("./_a-function"),m=k("./_an-instance"),e=k("./_for-of"),f=k("./_species-constructor"),a=k("./_task").set,u=k("./_microtask")(),r=k("./_new-promise-capability"),i=k("./_perform"),n=k("./_user-agent"),l=k("./_promise-resolve"),h="Promise",d=g.TypeError,s=g.process,c=s&&s.versions,w=c&&c.v8||"",E=g[h],v=b(s)=="process",R=function(){},M,C,S,_,A=C=r.f,U=!!function(){try{var I=E.resolve(1),K=(I.constructor={})[k("./_wks")("species")]=function(ee){ee(R,R)};return(v||typeof PromiseRejectionEvent=="function")&&I.then(R)instanceof K&&w.indexOf("6.6")!==0&&n.indexOf("Chrome/66")===-1}catch(ee){}}(),L=function(I){var K;return x(I)&&typeof(K=I.then)=="function"?K:!1},N=function(I,K){if(I._n)return;I._n=!0;var ee=I._c;u(function(){for(var he=I._v,de=I._s==1,Se=0,Te=function(ce){var be=de?ce.ok:ce.fail,Ee=ce.resolve,ue=ce.reject,le=ce.domain,$,me,re;try{be?(de||(I._h==2&&D(I),I._h=1),be===!0?$=he:(le&&le.enter(),$=be(he),le&&(le.exit(),re=!0)),$===ce.promise?ue(d("Promise-chain cycle")):(me=L($))?me.call($,Ee,ue):Ee($)):ue(he)}catch(ae){le&&!re&&le.exit(),ue(ae)}};ee.length>Se;)Te(ee[Se++]);I._c=[],I._n=!1,K&&!I._h&&V(I)})},V=function(I){a.call(g,function(){var K=I._v,ee=H(I),he,de,Se;if(ee&&(he=i(function(){v?s.emit("unhandledRejection",K,I):(de=g.onunhandledrejection)?de({promise:I,reason:K}):(Se=g.console)&&Se.error&&Se.error("Unhandled promise rejection",K)}),I._h=v||H(I)?2:1),I._a=void 0,ee&&he.e)throw he.v})},H=function(I){return I._h!==1&&(I._a||I._c).length===0},D=function(I){a.call(g,function(){var K;v?s.emit("rejectionHandled",I):(K=g.onrejectionhandled)&&K({promise:I,reason:I._v})})},W=function(I){var K=this;if(K._d)return;K._d=!0,K=K._w||K,K._v=I,K._s=2,K._a||(K._a=K._c.slice()),N(K,!0)},F=function(I){var K=this,ee;if(K._d)return;K._d=!0,K=K._w||K;try{if(K===I)throw d("Promise can't be resolved itself");(ee=L(I))?u(function(){var he={_w:K,_d:!1};try{ee.call(I,T(F,he,1),T(W,he,1))}catch(de){W.call(he,de)}}):(K._v=I,K._s=1,N(K,!1))}catch(he){W.call({_w:K,_d:!1},he)}};U||(E=function(K){m(this,E,h,"_h"),O(K),M.call(this);try{K(T(F,this,1),T(W,this,1))}catch(ee){W.call(this,ee)}},M=function(K){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},M.prototype=k("./_redefine-all")(E.prototype,{then:function(K,ee){var he=A(f(this,E));return he.ok=typeof K=="function"?K:!0,he.fail=typeof ee=="function"&&ee,he.domain=v?s.domain:void 0,this._c.push(he),this._a&&this._a.push(he),this._s&&N(this,!1),he.promise},catch:function(I){return this.then(void 0,I)}}),S=function(){var I=new M;this.promise=I,this.resolve=T(F,I,1),this.reject=T(W,I,1)},r.f=A=function(I){return I===E||I===_?new S(I):C(I)}),y(y.G+y.W+y.F*!U,{Promise:E}),k("./_set-to-string-tag")(E,h),k("./_set-species")(h),_=k("./_core")[h],y(y.S+y.F*!U,h,{reject:function(K){var ee=A(this),he=ee.reject;return he(K),ee.promise}}),y(y.S+y.F*(P||!U),h,{resolve:function(K){return l(P&&this===_?E:this,K)}}),y(y.S+y.F*!(U&&k("./_iter-detect")(function(I){E.all(I).catch(R)})),h,{all:function(K){var ee=this,he=A(ee),de=he.resolve,Se=he.reject,Te=i(function(){var ce=[],be=0,Ee=1;e(K,!1,function(ue){var le=be++,$=!1;ce.push(void 0),Ee++,ee.resolve(ue).then(function(me){if($)return;$=!0,ce[le]=me,--Ee||de(ce)},Se)}),--Ee||de(ce)});return Te.e&&Se(Te.v),he.promise},race:function(K){var ee=this,he=A(ee),de=he.reject,Se=i(function(){e(K,!1,function(Te){ee.resolve(Te).then(he.resolve,de)})});return Se.e&&de(Se.v),he.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(k,z,o){var P=k("./_export"),g=k("./_to-absolute-index"),T=String.fromCharCode,b=String.fromCodePoint;P(P.S+P.F*(!!b&&b.length!=1),"String",{fromCodePoint:function(x){for(var O=[],m=arguments.length,e=0,f;m>e;){if(f=+arguments[e++],g(f,1114111)!==f)throw RangeError(f+" is not a valid code point");O.push(f<65536?T(f):T(((f-=65536)>>10)+55296,f%1024+56320))}return O.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(k,z,o){"use strict";var P=k("./_string-at")(!0);k("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g=this._t,T=this._i,b;return T>=g.length?{value:void 0,done:!0}:(b=P(g,T),this._i+=b.length,{value:b,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(k,z,o){"use strict";var P=k("./_global"),g=k("./_has"),T=k("./_descriptors"),b=k("./_export"),y=k("./_redefine"),x=k("./_meta").KEY,O=k("./_fails"),m=k("./_shared"),e=k("./_set-to-string-tag"),f=k("./_uid"),a=k("./_wks"),u=k("./_wks-ext"),r=k("./_wks-define"),i=k("./_enum-keys"),n=k("./_is-array"),l=k("./_an-object"),h=k("./_is-object"),d=k("./_to-object"),s=k("./_to-iobject"),c=k("./_to-primitive"),w=k("./_property-desc"),E=k("./_object-create"),v=k("./_object-gopn-ext"),R=k("./_object-gopd"),M=k("./_object-gops"),C=k("./_object-dp"),S=k("./_object-keys"),_=R.f,A=C.f,U=v.f,L=P.Symbol,N=P.JSON,V=N&&N.stringify,H="prototype",D=a("_hidden"),W=a("toPrimitive"),F={}.propertyIsEnumerable,I=m("symbol-registry"),K=m("symbols"),ee=m("op-symbols"),he=Object[H],de=typeof L=="function"&&!!M.f,Se=P.QObject,Te=!Se||!Se[H]||!Se[H].findChild,ce=T&&O(function(){return E(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a!=7})?function(_e,Ae,Qe){var tt=_(he,Ae);tt&&delete he[Ae],A(_e,Ae,Qe),tt&&_e!==he&&A(he,Ae,tt)}:A,be=function(_e){var Ae=K[_e]=E(L[H]);return Ae._k=_e,Ae},Ee=de&&typeof L.iterator=="symbol"?function(_e){return typeof _e=="symbol"}:function(_e){return _e instanceof L},ue=function(Ae,Qe,tt){return Ae===he&&ue(ee,Qe,tt),l(Ae),Qe=c(Qe,!0),l(tt),g(K,Qe)?(tt.enumerable?(g(Ae,D)&&Ae[D][Qe]&&(Ae[D][Qe]=!1),tt=E(tt,{enumerable:w(0,!1)})):(g(Ae,D)||A(Ae,D,w(1,{})),Ae[D][Qe]=!0),ce(Ae,Qe,tt)):A(Ae,Qe,tt)},le=function(Ae,Qe){l(Ae);for(var tt=i(Qe=s(Qe)),dt=0,mt=tt.length,vt;mt>dt;)ue(Ae,vt=tt[dt++],Qe[vt]);return Ae},$=function(Ae,Qe){return Qe===void 0?E(Ae):le(E(Ae),Qe)},me=function(Ae){var Qe=F.call(this,Ae=c(Ae,!0));return this===he&&g(K,Ae)&&!g(ee,Ae)?!1:Qe||!g(this,Ae)||!g(K,Ae)||g(this,D)&&this[D][Ae]?Qe:!0},re=function(Ae,Qe){if(Ae=s(Ae),Qe=c(Qe,!0),Ae===he&&g(K,Qe)&&!g(ee,Qe))return;var tt=_(Ae,Qe);return tt&&g(K,Qe)&&!(g(Ae,D)&&Ae[D][Qe])&&(tt.enumerable=!0),tt},ae=function(Ae){for(var Qe=U(s(Ae)),tt=[],dt=0,mt;Qe.length>dt;)!g(K,mt=Qe[dt++])&&mt!=D&&mt!=x&&tt.push(mt);return tt},Oe=function(Ae){for(var Qe=Ae===he,tt=U(Qe?ee:s(Ae)),dt=[],mt=0,vt;tt.length>mt;)g(K,vt=tt[mt++])&&(Qe?g(he,vt):!0)&&dt.push(K[vt]);return dt};de||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var Ae=f(arguments.length>0?arguments[0]:void 0),Qe=function(tt){this===he&&Qe.call(ee,tt),g(this,D)&&g(this[D],Ae)&&(this[D][Ae]=!1),ce(this,Ae,w(1,tt))};return T&&Te&&ce(he,Ae,{configurable:!0,set:Qe}),be(Ae)},y(L[H],"toString",function(){return this._k}),R.f=re,C.f=ue,k("./_object-gopn").f=v.f=ae,k("./_object-pie").f=me,M.f=Oe,T&&!k("./_library")&&y(he,"propertyIsEnumerable",me,!0),u.f=function(_e){return be(a(_e))}),b(b.G+b.W+b.F*!de,{Symbol:L});for(var se="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;se.length>te;)a(se[te++]);for(var Q=S(a.store),J=0;Q.length>J;)r(Q[J++]);b(b.S+b.F*!de,"Symbol",{for:function(_e){return g(I,_e+="")?I[_e]:I[_e]=L(_e)},keyFor:function(Ae){if(!Ee(Ae))throw TypeError(Ae+" is not a symbol!");for(var Qe in I)if(I[Qe]===Ae)return Qe},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),b(b.S+b.F*!de,"Object",{create:$,defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:re,getOwnPropertyNames:ae,getOwnPropertySymbols:Oe});var ve=O(function(){M.f(1)});b(b.S+b.F*ve,"Object",{getOwnPropertySymbols:function(Ae){return M.f(d(Ae))}}),N&&b(b.S+b.F*(!de||O(function(){var _e=L();return V([_e])!="[null]"||V({a:_e})!="{}"||V(Object(_e))!="{}"})),"JSON",{stringify:function(Ae){for(var Qe=[Ae],tt=1,dt,mt;arguments.length>tt;)Qe.push(arguments[tt++]);return mt=dt=Qe[1],!h(dt)&&Ae===void 0||Ee(Ae)?void 0:(n(dt)||(dt=function(vt,Et){if(typeof mt=="function"&&(Et=mt.call(this,vt,Et)),!Ee(Et))return Et}),Qe[1]=dt,V.apply(N,Qe))}}),L[H][W]||k("./_hide")(L[H],W,L[H].valueOf),e(L,"Symbol"),e(Math,"Math",!0),e(P.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(k,z,o){var P=k("./_export"),g=k("./_object-to-array")(!0);P(P.S,"Object",{entries:function(b){return g(b)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,z,o){"use strict";var P=k("./_export"),g=k("./_core"),T=k("./_global"),b=k("./_species-constructor"),y=k("./_promise-resolve");P(P.P+P.R,"Promise",{finally:function(x){var O=b(this,g.Promise||T.Promise),m=typeof x=="function";return this.then(m?function(e){return y(O,x()).then(function(){return e})}:x,m?function(e){return y(O,x()).then(function(){throw e})}:x)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(k,z,o){"use strict";var P=k("./_export"),g=k("./_new-promise-capability"),T=k("./_perform");P(P.S,"Promise",{try:function(b){var y=g.f(this),x=T(b);return(x.e?y.reject:y.resolve)(x.v),y.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(k,z,o){k("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(k,z,o){k("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(k,z,o){k("./es6.array.iterator");for(var P=k("./_global"),g=k("./_hide"),T=k("./_iterators"),b=k("./_wks")("toStringTag"),y="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),x=0;x0?"-":"+")+x(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4),S:["th","st","nd","rd"][s%10>3?0:(s%100-s%10!=10)*s%10],W:_,N:A};return i.replace(f,function(L){return L in U?U[L]:L.slice(1,L.length-1)})}}();y.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},y.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function x(f,a){for(f=String(f),a=a||2;f.lengthf;)if(a=m[f++],a!=a)return!0}else for(;e>f;f++)if((b||f in m)&&m[f]===x)return b||f||0;return!b&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(k,z,o){var P=k("./_cof"),g=k("./_wks")("toStringTag"),T=P(function(){return arguments}())=="Arguments",b=function(y,x){try{return y[x]}catch(O){}};z.exports=function(y){var x,O,m;return y===void 0?"Undefined":y===null?"Null":typeof(O=b(x=Object(y),g))=="string"?O:T?P(x):(m=P(x))=="Object"&&typeof x.callee=="function"?"Arguments":m}},{"./_cof":98,"./_wks":166}],98:[function(k,z,o){var P={}.toString;z.exports=function(g){return P.call(g).slice(8,-1)}},{}],99:[function(k,z,o){var P=z.exports={version:"2.6.11"};typeof __e=="number"&&(__e=P)},{}],100:[function(k,z,o){"use strict";var P=k("./_object-dp"),g=k("./_property-desc");z.exports=function(T,b,y){b in T?P.f(T,b,g(0,y)):T[b]=y}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,z,o){var P=k("./_a-function");z.exports=function(g,T,b){if(P(g),T===void 0)return g;switch(b){case 1:return function(y){return g.call(T,y)};case 2:return function(y,x){return g.call(T,y,x)};case 3:return function(y,x,O){return g.call(T,y,x,O)}}return function(){return g.apply(T,arguments)}}},{"./_a-function":92}],102:[function(k,z,o){z.exports=function(P){if(P==null)throw TypeError("Can't call method on "+P);return P}},{}],103:[function(k,z,o){z.exports=!k("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(k,z,o){var P=k("./_is-object"),g=k("./_global").document,T=P(g)&&P(g.createElement);z.exports=function(b){return T?g.createElement(b):{}}},{"./_global":110,"./_is-object":119}],105:[function(k,z,o){z.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(k,z,o){var P=k("./_object-keys"),g=k("./_object-gops"),T=k("./_object-pie");z.exports=function(b){var y=P(b),x=g.f;if(x)for(var O=x(b),m=T.f,e=0,f;O.length>e;)m.call(b,f=O[e++])&&y.push(f);return y}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,z,o){var P=k("./_global"),g=k("./_core"),T=k("./_ctx"),b=k("./_hide"),y=k("./_has"),x="prototype",O=function(m,e,f){var a=m&O.F,u=m&O.G,r=m&O.S,i=m&O.P,n=m&O.B,l=m&O.W,h=u?g:g[e]||(g[e]={}),d=h[x],s=u?P:r?P[e]:(P[e]||{})[x],c,w,E;u&&(f=e);for(c in f){if(w=!a&&s&&s[c]!==void 0,w&&y(h,c))continue;E=w?s[c]:f[c],h[c]=u&&typeof s[c]!="function"?f[c]:n&&w?T(E,P):l&&s[c]==E?function(v){var R=function(M,C,S){if(this instanceof v){switch(arguments.length){case 0:return new v;case 1:return new v(M);case 2:return new v(M,C)}return new v(M,C,S)}return v.apply(this,arguments)};return R[x]=v[x],R}(E):i&&typeof E=="function"?T(Function.call,E):E,i&&((h.virtual||(h.virtual={}))[c]=E,m&O.R&&d&&!d[c]&&b(d,c,E))}};O.F=1,O.G=2,O.S=4,O.P=8,O.B=16,O.W=32,O.U=64,O.R=128,z.exports=O},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(k,z,o){z.exports=function(P){try{return!!P()}catch(g){return!0}}},{}],109:[function(k,z,o){var P=k("./_ctx"),g=k("./_iter-call"),T=k("./_is-array-iter"),b=k("./_an-object"),y=k("./_to-length"),x=k("./core.get-iterator-method"),O={},m={},o=z.exports=function(e,f,a,u,r){var i=r?function(){return e}:x(e),n=P(a,u,f?2:1),l=0,h,d,s,c;if(typeof i!="function")throw TypeError(e+" is not iterable!");if(T(i)){for(h=y(e.length);h>l;l++)if(c=f?n(b(d=e[l])[0],d[1]):n(e[l]),c===O||c===m)return c}else for(s=i.call(e);!(d=s.next()).done;)if(c=g(s,n,d.value,f),c===O||c===m)return c};o.BREAK=O,o.RETURN=m},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(k,z,o){var P=z.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=P)},{}],111:[function(k,z,o){var P={}.hasOwnProperty;z.exports=function(g,T){return P.call(g,T)}},{}],112:[function(k,z,o){var P=k("./_object-dp"),g=k("./_property-desc");z.exports=k("./_descriptors")?function(T,b,y){return P.f(T,b,g(1,y))}:function(T,b,y){return T[b]=y,T}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(k,z,o){var P=k("./_global").document;z.exports=P&&P.documentElement},{"./_global":110}],114:[function(k,z,o){z.exports=!k("./_descriptors")&&!k("./_fails")(function(){return Object.defineProperty(k("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(k,z,o){z.exports=function(P,g,T){var b=T===void 0;switch(g.length){case 0:return b?P():P.call(T);case 1:return b?P(g[0]):P.call(T,g[0]);case 2:return b?P(g[0],g[1]):P.call(T,g[0],g[1]);case 3:return b?P(g[0],g[1],g[2]):P.call(T,g[0],g[1],g[2]);case 4:return b?P(g[0],g[1],g[2],g[3]):P.call(T,g[0],g[1],g[2],g[3])}return P.apply(T,g)}},{}],116:[function(k,z,o){var P=k("./_cof");z.exports=Object("z").propertyIsEnumerable(0)?Object:function(g){return P(g)=="String"?g.split(""):Object(g)}},{"./_cof":98}],117:[function(k,z,o){var P=k("./_iterators"),g=k("./_wks")("iterator"),T=Array.prototype;z.exports=function(b){return b!==void 0&&(P.Array===b||T[g]===b)}},{"./_iterators":125,"./_wks":166}],118:[function(k,z,o){var P=k("./_cof");z.exports=Array.isArray||function(T){return P(T)=="Array"}},{"./_cof":98}],119:[function(k,z,o){z.exports=function(P){return typeof P=="object"?P!==null:typeof P=="function"}},{}],120:[function(k,z,o){var P=k("./_an-object");z.exports=function(g,T,b,y){try{return y?T(P(b)[0],b[1]):T(b)}catch(O){var x=g.return;throw x!==void 0&&P(x.call(g)),O}}},{"./_an-object":95}],121:[function(k,z,o){"use strict";var P=k("./_object-create"),g=k("./_property-desc"),T=k("./_set-to-string-tag"),b={};k("./_hide")(b,k("./_wks")("iterator"),function(){return this}),z.exports=function(y,x,O){y.prototype=P(b,{next:g(1,O)}),T(y,x+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(k,z,o){"use strict";var P=k("./_library"),g=k("./_export"),T=k("./_redefine"),b=k("./_hide"),y=k("./_iterators"),x=k("./_iter-create"),O=k("./_set-to-string-tag"),m=k("./_object-gpo"),e=k("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),a="@@iterator",u="keys",r="values",i=function(){return this};z.exports=function(n,l,h,d,s,c,w){x(h,l,d);var E=function(H){if(!f&&H in C)return C[H];switch(H){case u:return function(){return new h(this,H)};case r:return function(){return new h(this,H)}}return function(){return new h(this,H)}},v=l+" Iterator",R=s==r,M=!1,C=n.prototype,S=C[e]||C[a]||s&&C[s],_=S||E(s),A=s?R?E("entries"):_:void 0,U=l=="Array"&&C.entries||S,L,N,V;if(U&&(V=m(U.call(new n)),V!==Object.prototype&&V.next&&(O(V,v,!0),!P&&typeof V[e]!="function"&&b(V,e,i))),R&&S&&S.name!==r&&(M=!0,_=function(){return S.call(this)}),(!P||w)&&(f||M||!C[e])&&b(C,e,_),y[l]=_,y[v]=i,s)if(L={values:R?_:E(r),keys:c?_:E(u),entries:A},w)for(N in L)N in C||T(C,N,L[N]);else g(g.P+g.F*(f||M),l,L);return L}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(k,z,o){var P=k("./_wks")("iterator"),g=!1;try{var T=[7][P]();T.return=function(){g=!0},Array.from(T,function(){throw 2})}catch(b){}z.exports=function(b,y){if(!y&&!g)return!1;var x=!1;try{var O=[7],m=O[P]();m.next=function(){return{done:x=!0}},O[P]=function(){return m},b(O)}catch(e){}return x}},{"./_wks":166}],124:[function(k,z,o){z.exports=function(P,g){return{value:g,done:!!P}}},{}],125:[function(k,z,o){z.exports={}},{}],126:[function(k,z,o){z.exports=!0},{}],127:[function(k,z,o){var P=k("./_uid")("meta"),g=k("./_is-object"),T=k("./_has"),b=k("./_object-dp").f,y=0,x=Object.isExtensible||function(){return!0},O=!k("./_fails")(function(){return x(Object.preventExtensions({}))}),m=function(r){b(r,P,{value:{i:"O"+ ++y,w:{}}})},e=function(r,i){if(!g(r))return typeof r=="symbol"?r:(typeof r=="string"?"S":"P")+r;if(!T(r,P)){if(!x(r))return"F";if(!i)return"E";m(r)}return r[P].i},f=function(r,i){if(!T(r,P)){if(!x(r))return!0;if(!i)return!1;m(r)}return r[P].w},a=function(r){return O&&u.NEED&&x(r)&&!T(r,P)&&m(r),r},u=z.exports={KEY:P,NEED:!1,fastKey:e,getWeak:f,onFreeze:a}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,z,o){var P=k("./_global"),g=k("./_task").set,T=P.MutationObserver||P.WebKitMutationObserver,b=P.process,y=P.Promise,x=k("./_cof")(b)=="process";z.exports=function(){var O,m,e,f=function(){var i,n;for(x&&(i=b.domain)&&i.exit();O;){n=O.fn,O=O.next;try{n()}catch(l){throw O?e():m=void 0,l}}m=void 0,i&&i.enter()};if(x)e=function(){b.nextTick(f)};else if(T&&!(P.navigator&&P.navigator.standalone)){var a=!0,u=document.createTextNode("");new T(f).observe(u,{characterData:!0}),e=function(){u.data=a=!a}}else if(y&&y.resolve){var r=y.resolve(void 0);e=function(){r.then(f)}}else e=function(){g.call(P,f)};return function(i){var n={fn:i,next:void 0};m&&(m.next=n),O||(O=n,e()),m=n}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,z,o){"use strict";var P=k("./_a-function");function g(T){var b,y;this.promise=new T(function(x,O){if(b!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");b=x,y=O}),this.resolve=P(b),this.reject=P(y)}z.exports.f=function(T){return new g(T)}},{"./_a-function":92}],130:[function(k,z,o){"use strict";var P=k("./_descriptors"),g=k("./_object-keys"),T=k("./_object-gops"),b=k("./_object-pie"),y=k("./_to-object"),x=k("./_iobject"),O=Object.assign;z.exports=!O||k("./_fails")(function(){var m={},e={},f=Symbol(),a="abcdefghijklmnopqrst";return m[f]=7,a.split("").forEach(function(u){e[u]=u}),O({},m)[f]!=7||Object.keys(O({},e)).join("")!=a})?function(e,f){for(var a=y(e),u=arguments.length,r=1,i=T.f,n=b.f;u>r;)for(var l=x(arguments[r++]),h=i?g(l).concat(i(l)):g(l),d=h.length,s=0,c;d>s;)c=h[s++],(!P||n.call(l,c))&&(a[c]=l[c]);return a}:O},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(k,z,o){var P=k("./_an-object"),g=k("./_object-dps"),T=k("./_enum-bug-keys"),b=k("./_shared-key")("IE_PROTO"),y=function(){},x="prototype",O=function(){var m=k("./_dom-create")("iframe"),e=T.length,f="<",a=">",u;for(m.style.display="none",k("./_html").appendChild(m),m.src="javascript:",u=m.contentWindow.document,u.open(),u.write(f+"script"+a+"document.F=Object"+f+"/script"+a),u.close(),O=u.F;e--;)delete O[x][T[e]];return O()};z.exports=Object.create||function(e,f){var a;return e!==null?(y[x]=P(e),a=new y,y[x]=null,a[b]=e):a=O(),f===void 0?a:g(a,f)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(k,z,o){var P=k("./_an-object"),g=k("./_ie8-dom-define"),T=k("./_to-primitive"),b=Object.defineProperty;o.f=k("./_descriptors")?Object.defineProperty:function(x,O,m){if(P(x),O=T(O,!0),P(m),g)try{return b(x,O,m)}catch(e){}if("get"in m||"set"in m)throw TypeError("Accessors not supported!");return"value"in m&&(x[O]=m.value),x}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(k,z,o){var P=k("./_object-dp"),g=k("./_an-object"),T=k("./_object-keys");z.exports=k("./_descriptors")?Object.defineProperties:function(y,x){g(y);for(var O=T(x),m=O.length,e=0,f;m>e;)P.f(y,f=O[e++],x[f]);return y}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(k,z,o){var P=k("./_object-pie"),g=k("./_property-desc"),T=k("./_to-iobject"),b=k("./_to-primitive"),y=k("./_has"),x=k("./_ie8-dom-define"),O=Object.getOwnPropertyDescriptor;o.f=k("./_descriptors")?O:function(e,f){if(e=T(e),f=b(f,!0),x)try{return O(e,f)}catch(a){}if(y(e,f))return g(!P.f.call(e,f),e[f])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(k,z,o){var P=k("./_to-iobject"),g=k("./_object-gopn").f,T={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],y=function(x){try{return g(x)}catch(O){return b.slice()}};z.exports.f=function(O){return b&&T.call(O)=="[object Window]"?y(O):g(P(O))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,z,o){var P=k("./_object-keys-internal"),g=k("./_enum-bug-keys").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(b){return P(b,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(k,z,o){o.f=Object.getOwnPropertySymbols},{}],138:[function(k,z,o){var P=k("./_has"),g=k("./_to-object"),T=k("./_shared-key")("IE_PROTO"),b=Object.prototype;z.exports=Object.getPrototypeOf||function(y){return y=g(y),P(y,T)?y[T]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?b:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(k,z,o){var P=k("./_has"),g=k("./_to-iobject"),T=k("./_array-includes")(!1),b=k("./_shared-key")("IE_PROTO");z.exports=function(y,x){var O=g(y),m=0,e=[],f;for(f in O)f!=b&&(P(O,f)&&e.push(f));for(;x.length>m;)P(O,f=x[m++])&&(~T(e,f)||e.push(f));return e}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(k,z,o){var P=k("./_object-keys-internal"),g=k("./_enum-bug-keys");z.exports=Object.keys||function(b){return P(b,g)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(k,z,o){o.f={}.propertyIsEnumerable},{}],142:[function(k,z,o){var P=k("./_export"),g=k("./_core"),T=k("./_fails");z.exports=function(b,y){var x=(g.Object||{})[b]||Object[b],O={};O[b]=y(x),P(P.S+P.F*T(function(){x(1)}),"Object",O)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(k,z,o){var P=k("./_descriptors"),g=k("./_object-keys"),T=k("./_to-iobject"),b=k("./_object-pie").f;z.exports=function(y){return function(x){for(var O=T(x),m=g(O),e=m.length,f=0,a=[],u;e>f;)u=m[f++],(!P||b.call(O,u))&&a.push(y?[u,O[u]]:O[u]);return a}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(k,z,o){z.exports=function(P){try{return{e:!1,v:P()}}catch(g){return{e:!0,v:g}}}},{}],145:[function(k,z,o){var P=k("./_an-object"),g=k("./_is-object"),T=k("./_new-promise-capability");z.exports=function(b,y){if(P(b),g(y)&&y.constructor===b)return y;var x=T.f(b),O=x.resolve;return O(y),x.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(k,z,o){z.exports=function(P,g){return{enumerable:!(P&1),configurable:!(P&2),writable:!(P&4),value:g}}},{}],147:[function(k,z,o){var P=k("./_hide");z.exports=function(g,T,b){for(var y in T)b&&g[y]?g[y]=T[y]:P(g,y,T[y]);return g}},{"./_hide":112}],148:[function(k,z,o){z.exports=k("./_hide")},{"./_hide":112}],149:[function(k,z,o){"use strict";var P=k("./_global"),g=k("./_core"),T=k("./_object-dp"),b=k("./_descriptors"),y=k("./_wks")("species");z.exports=function(x){var O=typeof g[x]=="function"?g[x]:P[x];b&&O&&!O[y]&&T.f(O,y,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(k,z,o){var P=k("./_object-dp").f,g=k("./_has"),T=k("./_wks")("toStringTag");z.exports=function(b,y,x){b&&!g(b=x?b:b.prototype,T)&&P(b,T,{configurable:!0,value:y})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(k,z,o){var P=k("./_shared")("keys"),g=k("./_uid");z.exports=function(T){return P[T]||(P[T]=g(T))}},{"./_shared":152,"./_uid":162}],152:[function(k,z,o){var P=k("./_core"),g=k("./_global"),T="__core-js_shared__",b=g[T]||(g[T]={});(z.exports=function(y,x){return b[y]||(b[y]=x!==void 0?x:{})})("versions",[]).push({version:P.version,mode:k("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(k,z,o){var P=k("./_an-object"),g=k("./_a-function"),T=k("./_wks")("species");z.exports=function(b,y){var x=P(b).constructor,O;return x===void 0||(O=P(x)[T])==null?y:g(O)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,z,o){var P=k("./_to-integer"),g=k("./_defined");z.exports=function(T){return function(b,y){var x=String(g(b)),O=P(y),m=x.length,e,f;return O<0||O>=m?T?"":void 0:(e=x.charCodeAt(O),e<55296||e>56319||O+1===m||(f=x.charCodeAt(O+1))<56320||f>57343?T?x.charAt(O):e:T?x.slice(O,O+2):(e-55296<<10)+(f-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,z,o){var P=k("./_ctx"),g=k("./_invoke"),T=k("./_html"),b=k("./_dom-create"),y=k("./_global"),x=y.process,O=y.setImmediate,m=y.clearImmediate,e=y.MessageChannel,f=y.Dispatch,a=0,u={},r="onreadystatechange",i,n,l,h=function(){var s=+this;if(u.hasOwnProperty(s)){var c=u[s];delete u[s],c()}},d=function(s){h.call(s.data)};(!O||!m)&&(O=function(c){for(var w=[],E=1;arguments.length>E;)w.push(arguments[E++]);return u[++a]=function(){g(typeof c=="function"?c:Function(c),w)},i(a),a},m=function(c){delete u[c]},k("./_cof")(x)=="process"?i=function(s){x.nextTick(P(h,s,1))}:f&&f.now?i=function(s){f.now(P(h,s,1))}:e?(n=new e,l=n.port2,n.port1.onmessage=d,i=P(l.postMessage,l,1)):y.addEventListener&&typeof postMessage=="function"&&!y.importScripts?(i=function(s){y.postMessage(s+"","*")},y.addEventListener("message",d,!1)):r in b("script")?i=function(s){T.appendChild(b("script"))[r]=function(){T.removeChild(this),h.call(s)}}:i=function(s){setTimeout(P(h,s,1),0)}),z.exports={set:O,clear:m}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,z,o){var P=k("./_to-integer"),g=Math.max,T=Math.min;z.exports=function(b,y){return b=P(b),b<0?g(b+y,0):T(b,y)}},{"./_to-integer":157}],157:[function(k,z,o){var P=Math.ceil,g=Math.floor;z.exports=function(T){return isNaN(T=+T)?0:(T>0?g:P)(T)}},{}],158:[function(k,z,o){var P=k("./_iobject"),g=k("./_defined");z.exports=function(T){return P(g(T))}},{"./_defined":102,"./_iobject":116}],159:[function(k,z,o){var P=k("./_to-integer"),g=Math.min;z.exports=function(T){return T>0?g(P(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,z,o){var P=k("./_defined");z.exports=function(g){return Object(P(g))}},{"./_defined":102}],161:[function(k,z,o){var P=k("./_is-object");z.exports=function(g,T){if(!P(g))return g;var b,y;if(T&&typeof(b=g.toString)=="function"&&!P(y=b.call(g)))return y;if(typeof(b=g.valueOf)=="function"&&!P(y=b.call(g)))return y;if(!T&&typeof(b=g.toString)=="function"&&!P(y=b.call(g)))return y;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,z,o){var P=0,g=Math.random();z.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++P+g).toString(36))}},{}],163:[function(k,z,o){var P=k("./_global"),g=P.navigator;z.exports=g&&g.userAgent||""},{"./_global":110}],164:[function(k,z,o){var P=k("./_global"),g=k("./_core"),T=k("./_library"),b=k("./_wks-ext"),y=k("./_object-dp").f;z.exports=function(x){var O=g.Symbol||(g.Symbol=T?{}:P.Symbol||{});x.charAt(0)!="_"&&!(x in O)&&y(O,x,{value:b.f(x)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(k,z,o){o.f=k("./_wks")},{"./_wks":166}],166:[function(k,z,o){var P=k("./_shared")("wks"),g=k("./_uid"),T=k("./_global").Symbol,b=typeof T=="function",y=z.exports=function(x){return P[x]||(P[x]=b&&T[x]||(b?T:g)("Symbol."+x))};y.store=P},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,z,o){var P=k("./_classof"),g=k("./_wks")("iterator"),T=k("./_iterators");z.exports=k("./_core").getIteratorMethod=function(b){if(b!=null)return b[g]||b["@@iterator"]||T[P(b)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,z,o){"use strict";var P=k("./_ctx"),g=k("./_export"),T=k("./_to-object"),b=k("./_iter-call"),y=k("./_is-array-iter"),x=k("./_to-length"),O=k("./_create-property"),m=k("./core.get-iterator-method");g(g.S+g.F*!k("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(f){var a=T(f),u=typeof this=="function"?this:Array,r=arguments.length,i=r>1?arguments[1]:void 0,n=i!==void 0,l=0,h=m(a),d,s,c,w;if(n&&(i=P(i,r>2?arguments[2]:void 0,2)),h!=null&&!(u==Array&&y(h)))for(w=h.call(a),s=new u;!(c=w.next()).done;l++)O(s,l,n?b(w,i,[c.value,l],!0):c.value);else for(d=x(a.length),s=new u(d);d>l;l++)O(s,l,n?i(a[l],l):a[l]);return s.length=l,s}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(k,z,o){"use strict";var P=k("./_add-to-unscopables"),g=k("./_iter-step"),T=k("./_iterators"),b=k("./_to-iobject");z.exports=k("./_iter-define")(Array,"Array",function(y,x){this._t=b(y),this._i=0,this._k=x},function(){var y=this._t,x=this._k,O=this._i++;return!y||O>=y.length?(this._t=void 0,g(1)):x=="keys"?g(0,O):x=="values"?g(0,y[O]):g(0,[O,y[O]])},"values"),T.Arguments=T.Array,P("keys"),P("values"),P("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(k,z,o){"use strict";var P=k("./_is-object"),g=k("./_object-gpo"),T=k("./_wks")("hasInstance"),b=Function.prototype;T in b||k("./_object-dp").f(b,T,{value:function(y){if(typeof this!="function"||!P(y))return!1;if(!P(this.prototype))return y instanceof this;for(;y=g(y);)if(this.prototype===y)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(k,z,o){var P=k("./_export");P(P.S+P.F,"Object",{assign:k("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(k,z,o){var P=k("./_export");P(P.S,"Object",{create:k("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(k,z,o){var P=k("./_export");P(P.S+P.F*!k("./_descriptors"),"Object",{defineProperty:k("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(k,z,o){k("./_object-sap")("getOwnPropertyNames",function(){return k("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(k,z,o){var P=k("./_to-object"),g=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(b){return g(P(b))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,z,o){var P=k("./_to-object"),g=k("./_object-keys");k("./_object-sap")("keys",function(){return function(b){return g(P(b))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(k,z,o){arguments[4][71][0].apply(o,arguments)},{dup:71}],178:[function(k,z,o){"use strict";var P=k("./_library"),g=k("./_global"),T=k("./_ctx"),b=k("./_classof"),y=k("./_export"),x=k("./_is-object"),O=k("./_a-function"),m=k("./_an-instance"),e=k("./_for-of"),f=k("./_species-constructor"),a=k("./_task").set,u=k("./_microtask")(),r=k("./_new-promise-capability"),i=k("./_perform"),n=k("./_user-agent"),l=k("./_promise-resolve"),h="Promise",d=g.TypeError,s=g.process,c=s&&s.versions,w=c&&c.v8||"",E=g[h],v=b(s)=="process",R=function(){},M,C,S,_,A=C=r.f,U=!!function(){try{var I=E.resolve(1),K=(I.constructor={})[k("./_wks")("species")]=function(ee){ee(R,R)};return(v||typeof PromiseRejectionEvent=="function")&&I.then(R)instanceof K&&w.indexOf("6.6")!==0&&n.indexOf("Chrome/66")===-1}catch(ee){}}(),L=function(I){var K;return x(I)&&typeof(K=I.then)=="function"?K:!1},N=function(I,K){if(I._n)return;I._n=!0;var ee=I._c;u(function(){for(var he=I._v,de=I._s==1,Se=0,Te=function(ce){var be=de?ce.ok:ce.fail,Ee=ce.resolve,ue=ce.reject,le=ce.domain,$,me,re;try{be?(de||(I._h==2&&D(I),I._h=1),be===!0?$=he:(le&&le.enter(),$=be(he),le&&(le.exit(),re=!0)),$===ce.promise?ue(d("Promise-chain cycle")):(me=L($))?me.call($,Ee,ue):Ee($)):ue(he)}catch(ae){le&&!re&&le.exit(),ue(ae)}};ee.length>Se;)Te(ee[Se++]);I._c=[],I._n=!1,K&&!I._h&&V(I)})},V=function(I){a.call(g,function(){var K=I._v,ee=H(I),he,de,Se;if(ee&&(he=i(function(){v?s.emit("unhandledRejection",K,I):(de=g.onunhandledrejection)?de({promise:I,reason:K}):(Se=g.console)&&Se.error&&Se.error("Unhandled promise rejection",K)}),I._h=v||H(I)?2:1),I._a=void 0,ee&&he.e)throw he.v})},H=function(I){return I._h!==1&&(I._a||I._c).length===0},D=function(I){a.call(g,function(){var K;v?s.emit("rejectionHandled",I):(K=g.onrejectionhandled)&&K({promise:I,reason:I._v})})},W=function(I){var K=this;if(K._d)return;K._d=!0,K=K._w||K,K._v=I,K._s=2,K._a||(K._a=K._c.slice()),N(K,!0)},F=function(I){var K=this,ee;if(K._d)return;K._d=!0,K=K._w||K;try{if(K===I)throw d("Promise can't be resolved itself");(ee=L(I))?u(function(){var he={_w:K,_d:!1};try{ee.call(I,T(F,he,1),T(W,he,1))}catch(de){W.call(he,de)}}):(K._v=I,K._s=1,N(K,!1))}catch(he){W.call({_w:K,_d:!1},he)}};U||(E=function(K){m(this,E,h,"_h"),O(K),M.call(this);try{K(T(F,this,1),T(W,this,1))}catch(ee){W.call(this,ee)}},M=function(K){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},M.prototype=k("./_redefine-all")(E.prototype,{then:function(K,ee){var he=A(f(this,E));return he.ok=typeof K=="function"?K:!0,he.fail=typeof ee=="function"&&ee,he.domain=v?s.domain:void 0,this._c.push(he),this._a&&this._a.push(he),this._s&&N(this,!1),he.promise},catch:function(I){return this.then(void 0,I)}}),S=function(){var I=new M;this.promise=I,this.resolve=T(F,I,1),this.reject=T(W,I,1)},r.f=A=function(I){return I===E||I===_?new S(I):C(I)}),y(y.G+y.W+y.F*!U,{Promise:E}),k("./_set-to-string-tag")(E,h),k("./_set-species")(h),_=k("./_core")[h],y(y.S+y.F*!U,h,{reject:function(K){var ee=A(this),he=ee.reject;return he(K),ee.promise}}),y(y.S+y.F*(P||!U),h,{resolve:function(K){return l(P&&this===_?E:this,K)}}),y(y.S+y.F*!(U&&k("./_iter-detect")(function(I){E.all(I).catch(R)})),h,{all:function(K){var ee=this,he=A(ee),de=he.resolve,Se=he.reject,Te=i(function(){var ce=[],be=0,Ee=1;e(K,!1,function(ue){var le=be++,$=!1;ce.push(void 0),Ee++,ee.resolve(ue).then(function(me){if($)return;$=!0,ce[le]=me,--Ee||de(ce)},Se)}),--Ee||de(ce)});return Te.e&&Se(Te.v),he.promise},race:function(K){var ee=this,he=A(ee),de=he.reject,Se=i(function(){e(K,!1,function(Te){ee.resolve(Te).then(he.resolve,de)})});return Se.e&&de(Se.v),he.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(k,z,o){var P=k("./_export"),g=k("./_to-absolute-index"),T=String.fromCharCode,b=String.fromCodePoint;P(P.S+P.F*(!!b&&b.length!=1),"String",{fromCodePoint:function(x){for(var O=[],m=arguments.length,e=0,f;m>e;){if(f=+arguments[e++],g(f,1114111)!==f)throw RangeError(f+" is not a valid code point");O.push(f<65536?T(f):T(((f-=65536)>>10)+55296,f%1024+56320))}return O.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(k,z,o){"use strict";var P=k("./_string-at")(!0);k("./_iter-define")(String,"String",function(g){this._t=String(g),this._i=0},function(){var g=this._t,T=this._i,b;return T>=g.length?{value:void 0,done:!0}:(b=P(g,T),this._i+=b.length,{value:b,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(k,z,o){"use strict";var P=k("./_global"),g=k("./_has"),T=k("./_descriptors"),b=k("./_export"),y=k("./_redefine"),x=k("./_meta").KEY,O=k("./_fails"),m=k("./_shared"),e=k("./_set-to-string-tag"),f=k("./_uid"),a=k("./_wks"),u=k("./_wks-ext"),r=k("./_wks-define"),i=k("./_enum-keys"),n=k("./_is-array"),l=k("./_an-object"),h=k("./_is-object"),d=k("./_to-object"),s=k("./_to-iobject"),c=k("./_to-primitive"),w=k("./_property-desc"),E=k("./_object-create"),v=k("./_object-gopn-ext"),R=k("./_object-gopd"),M=k("./_object-gops"),C=k("./_object-dp"),S=k("./_object-keys"),_=R.f,A=C.f,U=v.f,L=P.Symbol,N=P.JSON,V=N&&N.stringify,H="prototype",D=a("_hidden"),W=a("toPrimitive"),F={}.propertyIsEnumerable,I=m("symbol-registry"),K=m("symbols"),ee=m("op-symbols"),he=Object[H],de=typeof L=="function"&&!!M.f,Se=P.QObject,Te=!Se||!Se[H]||!Se[H].findChild,ce=T&&O(function(){return E(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a!=7})?function(_e,Ae,Qe){var tt=_(he,Ae);tt&&delete he[Ae],A(_e,Ae,Qe),tt&&_e!==he&&A(he,Ae,tt)}:A,be=function(_e){var Ae=K[_e]=E(L[H]);return Ae._k=_e,Ae},Ee=de&&typeof L.iterator=="symbol"?function(_e){return typeof _e=="symbol"}:function(_e){return _e instanceof L},ue=function(Ae,Qe,tt){return Ae===he&&ue(ee,Qe,tt),l(Ae),Qe=c(Qe,!0),l(tt),g(K,Qe)?(tt.enumerable?(g(Ae,D)&&Ae[D][Qe]&&(Ae[D][Qe]=!1),tt=E(tt,{enumerable:w(0,!1)})):(g(Ae,D)||A(Ae,D,w(1,{})),Ae[D][Qe]=!0),ce(Ae,Qe,tt)):A(Ae,Qe,tt)},le=function(Ae,Qe){l(Ae);for(var tt=i(Qe=s(Qe)),dt=0,mt=tt.length,vt;mt>dt;)ue(Ae,vt=tt[dt++],Qe[vt]);return Ae},$=function(Ae,Qe){return Qe===void 0?E(Ae):le(E(Ae),Qe)},me=function(Ae){var Qe=F.call(this,Ae=c(Ae,!0));return this===he&&g(K,Ae)&&!g(ee,Ae)?!1:Qe||!g(this,Ae)||!g(K,Ae)||g(this,D)&&this[D][Ae]?Qe:!0},re=function(Ae,Qe){if(Ae=s(Ae),Qe=c(Qe,!0),Ae===he&&g(K,Qe)&&!g(ee,Qe))return;var tt=_(Ae,Qe);return tt&&g(K,Qe)&&!(g(Ae,D)&&Ae[D][Qe])&&(tt.enumerable=!0),tt},ae=function(Ae){for(var Qe=U(s(Ae)),tt=[],dt=0,mt;Qe.length>dt;)!g(K,mt=Qe[dt++])&&mt!=D&&mt!=x&&tt.push(mt);return tt},Oe=function(Ae){for(var Qe=Ae===he,tt=U(Qe?ee:s(Ae)),dt=[],mt=0,vt;tt.length>mt;)g(K,vt=tt[mt++])&&(Qe?g(he,vt):!0)&&dt.push(K[vt]);return dt};de||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var Ae=f(arguments.length>0?arguments[0]:void 0),Qe=function(tt){this===he&&Qe.call(ee,tt),g(this,D)&&g(this[D],Ae)&&(this[D][Ae]=!1),ce(this,Ae,w(1,tt))};return T&&Te&&ce(he,Ae,{configurable:!0,set:Qe}),be(Ae)},y(L[H],"toString",function(){return this._k}),R.f=re,C.f=ue,k("./_object-gopn").f=v.f=ae,k("./_object-pie").f=me,M.f=Oe,T&&!k("./_library")&&y(he,"propertyIsEnumerable",me,!0),u.f=function(_e){return be(a(_e))}),b(b.G+b.W+b.F*!de,{Symbol:L});for(var se="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;se.length>te;)a(se[te++]);for(var Q=S(a.store),J=0;Q.length>J;)r(Q[J++]);b(b.S+b.F*!de,"Symbol",{for:function(_e){return g(I,_e+="")?I[_e]:I[_e]=L(_e)},keyFor:function(Ae){if(!Ee(Ae))throw TypeError(Ae+" is not a symbol!");for(var Qe in I)if(I[Qe]===Ae)return Qe},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),b(b.S+b.F*!de,"Object",{create:$,defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:re,getOwnPropertyNames:ae,getOwnPropertySymbols:Oe});var ve=O(function(){M.f(1)});b(b.S+b.F*ve,"Object",{getOwnPropertySymbols:function(Ae){return M.f(d(Ae))}}),N&&b(b.S+b.F*(!de||O(function(){var _e=L();return V([_e])!="[null]"||V({a:_e})!="{}"||V(Object(_e))!="{}"})),"JSON",{stringify:function(Ae){for(var Qe=[Ae],tt=1,dt,mt;arguments.length>tt;)Qe.push(arguments[tt++]);return mt=dt=Qe[1],!h(dt)&&Ae===void 0||Ee(Ae)?void 0:(n(dt)||(dt=function(vt,yt){if(typeof mt=="function"&&(yt=mt.call(this,vt,yt)),!Ee(yt))return yt}),Qe[1]=dt,V.apply(N,Qe))}}),L[H][W]||k("./_hide")(L[H],W,L[H].valueOf),e(L,"Symbol"),e(Math,"Math",!0),e(P.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(k,z,o){var P=k("./_export"),g=k("./_object-to-array")(!0);P(P.S,"Object",{entries:function(b){return g(b)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,z,o){"use strict";var P=k("./_export"),g=k("./_core"),T=k("./_global"),b=k("./_species-constructor"),y=k("./_promise-resolve");P(P.P+P.R,"Promise",{finally:function(x){var O=b(this,g.Promise||T.Promise),m=typeof x=="function";return this.then(m?function(e){return y(O,x()).then(function(){return e})}:x,m?function(e){return y(O,x()).then(function(){throw e})}:x)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(k,z,o){"use strict";var P=k("./_export"),g=k("./_new-promise-capability"),T=k("./_perform");P(P.S,"Promise",{try:function(b){var y=g.f(this),x=T(b);return(x.e?y.reject:y.resolve)(x.v),y.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(k,z,o){k("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(k,z,o){k("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(k,z,o){k("./es6.array.iterator");for(var P=k("./_global"),g=k("./_hide"),T=k("./_iterators"),b=k("./_wks")("toStringTag"),y="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),x=0;x0?"-":"+")+x(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4),S:["th","st","nd","rd"][s%10>3?0:(s%100-s%10!=10)*s%10],W:_,N:A};return i.replace(f,function(L){return L in U?U[L]:L.slice(1,L.length-1)})}}();y.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},y.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function x(f,a){for(f=String(f),a=a||2;f.length * Copyright 2011-2013 John-David Dalton * Available under MIT license - */(function(){"use strict";var g={function:!0,object:!0},T=g[typeof window]&&window||this,b=T,y=g[typeof o]&&o,x=g[typeof z]&&z&&!z.nodeType&&z,O=y&&x&&typeof P=="object"&&P;O&&(O.global===O||O.window===O||O.self===O)&&(T=O);var m=Math.pow(2,53)-1,e=/\bOpera/,f=this,a=Object.prototype,u=a.hasOwnProperty,r=a.toString;function i(C){return C=String(C),C.charAt(0).toUpperCase()+C.slice(1)}function n(C,S,_){var A={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return S&&_&&/^Win/i.test(C)&&!/^Windows Phone /i.test(C)&&(A=A[/[\d.]+$/.exec(C)])&&(C="Windows "+A),C=String(C),S&&_&&(C=C.replace(RegExp(S,"i"),_)),C=h(C.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),C}function l(C,S){var _=-1,A=C?C.length:0;if(typeof A=="number"&&A>-1&&A<=m)for(;++_3&&"WebKit"||/\bOpera\b/.test(ae)&&(/\bOPR\b/.test(C)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(C)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(C)&&(te=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ae)&&"NetFront")&&(re=[ce]),ae=="IE"&&(ce=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(C)||0)[1])?(ae+=" Mobile",te="Windows Phone "+(/\+$/.test(ce)?ce:ce+".x"),Ee.unshift("desktop mode")):/\bWPDesktop\b/i.test(C)?(ae="IE Mobile",te="Windows Phone 8.x",Ee.unshift("desktop mode"),$||($=(/\brv:([\d.]+)/.exec(C)||0)[1])):ae!="IE"&&re=="Trident"&&(ce=/\brv:([\d.]+)/.exec(C))&&(ae&&Ee.push("identifying as "+ae+($?" "+$:"")),ae="IE",$=ce[1]),le){if(c(S,"global"))if(I&&(ce=I.lang.System,be=ce.getProperty("os.arch"),te=te||ce.getProperty("os.name")+" "+ce.getProperty("os.version")),K){try{$=S.require("ringo/engine").version.join("."),ae="RingoJS"}catch(mt){(ce=S.system)&&ce.global.system==S.system&&(ae="Narwhal",te||(te=ce[0].os||null))}ae||(ae="Rhino")}else typeof S.process=="object"&&!S.process.browser&&(ce=S.process)&&(typeof ce.versions=="object"&&(typeof ce.versions.electron=="string"?(Ee.push("Node "+ce.versions.node),ae="Electron",$=ce.versions.electron):typeof ce.versions.nw=="string"&&(Ee.push("Chromium "+$,"Node "+ce.versions.node),ae="NW.js",$=ce.versions.nw)),ae||(ae="Node.js",be=ce.arch,te=ce.platform,$=/[\d.]+/.exec(ce.version),$=$?$[0]:null));else s(ce=S.runtime)==H?(ae="Adobe AIR",te=ce.flash.system.Capabilities.os):s(ce=S.phantom)==F?(ae="PhantomJS",$=(ce=ce.version||null)&&ce.major+"."+ce.minor+"."+ce.patch):typeof de.documentMode=="number"&&(ce=/\bTrident\/(\d+)/i.exec(C))?($=[$,de.documentMode],(ce=+ce[1]+4)!=$[1]&&(Ee.push("IE "+$[1]+" mode"),re&&(re[1]=""),$[1]=ce),$=ae=="IE"?String($[1].toFixed(1)):$[0]):typeof de.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ae)&&(Ee.push("masking as "+ae+" "+$),ae="IE",$="11.0",re=["Trident"],te="Windows");te=te&&h(te)}if($&&(ce=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec($)||/(?:alpha|beta)(?: ?\d)?/i.exec(C+";"+(le&&A.appMinorVersion))||/\bMinefield\b/i.test(C)&&"a")&&(ue=/b/i.test(ce)?"beta":"alpha",$=$.replace(RegExp(ce+"\\+?$"),"")+(ue=="beta"?he:ee)+(/\d+\+?/.exec(ce)||"")),ae=="Fennec"||ae=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(te))ae="Firefox Mobile";else if(ae=="Maxthon"&&$)$=$.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Oe))Oe=="Xbox 360"&&(te=null),Oe=="Xbox 360"&&/\bIEMobile\b/.test(C)&&Ee.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ae)||ae&&!Oe&&!/Browser|Mobi/.test(ae))&&(te=="Windows CE"||/Mobi/i.test(C)))ae+=" Mobile";else if(ae=="IE"&&le)try{S.external===null&&Ee.unshift("platform preview")}catch(mt){Ee.unshift("embedded")}else(/\bBlackBerry\b/.test(Oe)||/\bBB10\b/.test(C))&&(ce=(RegExp(Oe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(C)||0)[1]||$)?(ce=[ce,/BB10/.test(C)],te=(ce[1]?(Oe=null,se="BlackBerry"):"Device Software")+" "+ce[0],$=null):this!=d&&Oe!="Wii"&&(le&&Se||/Opera/.test(ae)&&/\b(?:MSIE|Firefox)\b/i.test(C)||ae=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(te)||ae=="IE"&&(te&&!/^Win/.test(te)&&$>5.5||/\bWindows XP\b/.test(te)&&$>8||$==8&&!/\bTrident\b/.test(C)))&&!e.test(ce=R.call(d,C.replace(e,"")+";"))&&ce.name&&(ce="ing as "+ce.name+((ce=ce.version)?" "+ce:""),e.test(ae)?(/\bIE\b/.test(ce)&&te=="Mac OS"&&(te=null),ce="identify"+ce):(ce="mask"+ce,Te?ae=h(Te.replace(/([a-z])([A-Z])/g,"$1 $2")):ae="Opera",/\bIE\b/.test(ce)&&(te=null),le||($=null)),re=["Presto"],Ee.push(ce));(ce=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(C)||0)[1])&&(ce=[parseFloat(ce.replace(/\.(\d)$/,".0$1")),ce],ae=="Safari"&&ce[1].slice(-1)=="+"?(ae="WebKit Nightly",ue="alpha",$=ce[1].slice(0,-1)):($==ce[1]||$==(ce[2]=(/\bSafari\/([\d.]+\+?)/i.exec(C)||0)[1]))&&($=null),ce[1]=(/\bChrome\/([\d.]+)/i.exec(C)||0)[1],ce[0]==537.36&&ce[2]==537.36&&parseFloat(ce[1])>=28&&re=="WebKit"&&(re=["Blink"]),!le||!N&&!ce[1]?(re&&(re[1]="like Safari"),ce=(ce=ce[0],ce<400?1:ce<500?2:ce<526?3:ce<533?4:ce<534?"4+":ce<535?5:ce<537?6:ce<538?7:ce<601?8:"8")):(re&&(re[1]="like Chrome"),ce=ce[1]||(ce=ce[0],ce<530?1:ce<532?2:ce<532.05?3:ce<533?4:ce<534.03?5:ce<534.07?6:ce<534.1?7:ce<534.13?8:ce<534.16?9:ce<534.24?10:ce<534.3?11:ce<535.01?12:ce<535.02?"13+":ce<535.07?15:ce<535.11?16:ce<535.19?17:ce<536.05?18:ce<536.1?19:ce<537.01?20:ce<537.11?"21+":ce<537.13?23:ce<537.18?24:ce<537.24?25:ce<537.36?26:re!="Blink"?"27":"28")),re&&(re[1]+=" "+(ce+=typeof ce=="number"?".x":/[.+]/.test(ce)?"":"+")),ae=="Safari"&&(!$||parseInt($)>45)&&($=ce)),ae=="Opera"&&(ce=/\bzbov|zvav$/.exec(te))?(ae+=" ",Ee.unshift("desktop mode"),ce=="zvav"?(ae+="Mini",$=null):ae+="Mobile",te=te.replace(RegExp(" *"+ce+"$"),"")):ae=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(Ee.unshift("desktop mode"),ae="Chrome Mobile",$=null,/\bOS X\b/.test(te)?(se="Apple",te="iOS 4.3+"):te=null),$&&$.indexOf(ce=/[\d.]+$/.exec(te))==0&&C.indexOf("/"+ce+"-")>-1&&(te=v(te.replace(ce,""))),re&&!/\b(?:Avant|Nook)\b/.test(ae)&&(/Browser|Lunascape|Maxthon/.test(ae)||ae!="Safari"&&/^iOS/.test(te)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ae)&&re[1])&&((ce=re[re.length-1])&&Ee.push(ce)),Ee.length&&(Ee=["("+Ee.join("; ")+")"]),se&&Oe&&Oe.indexOf(se)<0&&Ee.push("on "+se),Oe&&Ee.push((/^on /.test(Ee[Ee.length-1])?"":"on ")+Oe),te&&(ce=/ ([\d.+]+)$/.exec(te),me=ce&&te.charAt(te.length-ce[0].length-1)=="/",te={architecture:32,family:ce&&!me?te.replace(ce[0],""):te,version:ce?ce[1]:null,toString:function(){var mt=this.version;return this.family+(mt&&!me?" "+mt:"")+(this.architecture==64?" 64-bit":"")}}),(ce=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(be))&&!/\bi686\b/i.test(be)?(te&&(te.architecture=64,te.family=te.family.replace(RegExp(" *"+ce),"")),ae&&(/\bWOW64\b/i.test(C)||le&&/\w(?:86|32)$/.test(A.cpuClass||A.platform)&&!/\bWin64; x64\b/i.test(C))&&Ee.unshift("32-bit")):te&&/^OS X/.test(te.family)&&ae=="Chrome"&&parseFloat($)>=39&&(te.architecture=64),C||(C=null);var dt={};return dt.description=C,dt.layout=re&&re[0],dt.manufacturer=se,dt.name=ae,dt.prerelease=ue,dt.product=Oe,dt.ua=C,dt.version=ae&&$,dt.os=te||{architecture:null,family:null,version:null,toString:function(){return"null"}},dt.parse=R,dt.toString=tt,dt.version&&Ee.unshift($),dt.name&&Ee.unshift(ae),te&&ae&&!(te==String(te).split(" ")[0]&&(te==ae.split(" ")[0]||Oe))&&Ee.push(Oe?"("+te+")":"on "+te),Ee.length&&(dt.description=Ee.join(" ")),dt}var M=R();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=M,define(function(){return M})):y&&x?d(M,function(C,S){y[S]=C}):T.platform=M}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(k,z,o){(function(P){"use strict";typeof P=="undefined"||!P.version||P.version.indexOf("v0.")===0||P.version.indexOf("v1.")===0&&P.version.indexOf("v1.8.")!==0?z.exports={nextTick:g}:z.exports=P;function g(T,b,y,x){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var O=arguments.length,m,e;switch(O){case 0:case 1:return P.nextTick(T);case 2:return P.nextTick(function(){T.call(null,b)});case 3:return P.nextTick(function(){T.call(null,b,y)});case 4:return P.nextTick(function(){T.call(null,b,y,x)});default:for(m=new Array(O-1),e=0;e1)for(var d=1;d= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=m-e,w=Math.floor,E=String.fromCharCode,v;function R(W){throw new RangeError(s[W])}function M(W,F){for(var I=W.length,K=[];I--;)K[I]=F(W[I]);return K}function C(W,F){var I=W.split("@"),K="";I.length>1&&(K=I[0]+"@",W=I[1]),W=W.replace(d,".");var ee=W.split("."),he=M(ee,F).join(".");return K+he}function S(W){for(var F=[],I=0,K=W.length,ee,he;I=55296&&ee<=56319&&I65535&&(F-=65536,I+=E(F>>>10&1023|55296),F=56320|F&1023),I+=E(F),I}).join("")}function A(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:m}function U(W,F){return W+22+75*(W<26)-((F!=0)<<5)}function L(W,F,I){var K=0;for(W=I?w(W/u):W>>1,W+=w(W/F);W>c*f>>1;K+=m)W=w(W/c);return w(K+(c+1)*W/(W+a))}function N(W){var F=[],I=W.length,K,ee=0,he=i,de=r,Se,Te,ce,be,Ee,ue,le,$,me;for(Se=W.lastIndexOf(n),Se<0&&(Se=0),Te=0;Te=128&&R("not-basic"),F.push(W.charCodeAt(Te));for(ce=Se>0?Se+1:0;ce=I&&R("invalid-input"),le=A(W.charCodeAt(ce++)),(le>=m||le>w((O-ee)/Ee))&&R("overflow"),ee+=le*Ee,$=ue<=de?e:ue>=de+f?f:ue-de,le<$);ue+=m)me=m-$,Ee>w(O/me)&&R("overflow"),Ee*=me;K=F.length+1,de=L(ee-be,K,be==0),w(ee/K)>O-he&&R("overflow"),he+=w(ee/K),ee%=K,F.splice(ee++,0,he)}return _(F)}function V(W){var F,I,K,ee,he,de,Se,Te,ce,be,Ee,ue=[],le,$,me,re;for(W=S(W),le=W.length,F=i,I=0,he=r,de=0;de=F&&Eew((O-I)/$)&&R("overflow"),I+=(Se-F)*$,F=Se,de=0;deO&&R("overflow"),Ee==F){for(Te=I,ce=m;!(be=ce<=he?e:ce>=he+f?f:ce-he,Te0&&f>e&&(f=e);for(var a=0;a=0?(i=u.substr(0,r),n=u.substr(r+1)):(i=u,n=""),l=decodeURIComponent(i),h=decodeURIComponent(n),P(O,l)?g(O[l])?O[l].push(h):O[l]=[O[l],h]:O[l]=h}return O};var g=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}},{}],211:[function(k,z,o){"use strict";var P=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};z.exports=function(y,x,O,m){return x=x||"&",O=O||"=",y===null&&(y=void 0),typeof y=="object"?T(b(y),function(e){var f=encodeURIComponent(P(e))+O;return g(y[e])?T(y[e],function(a){return f+encodeURIComponent(P(a))}).join(x):f+encodeURIComponent(P(y[e]))}).join(x):m?encodeURIComponent(P(m))+O+encodeURIComponent(P(y)):""};var g=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"};function T(y,x){if(y.map)return y.map(x);for(var O=[],m=0;m0?(typeof ae!="string"&&!Q.objectMode&&(0,b.default)(ae)!==i.prototype&&(ae=l(ae)),se?Q.endEmitted?re.emit("error",new Error("stream.unshift() after end event")):A(re,Q,ae,!0):Q.ended?re.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!Oe?(ae=Q.decoder.write(ae),Q.objectMode||ae.length!==0?A(re,Q,ae,!1):I(re,Q)):A(re,Q,ae,!1))):se||(Q.reading=!1)}return L(Q)}function A(re,ae,Oe,se){ae.flowing&&ae.length===0&&!ae.sync?(re.emit("data",Oe),re.read(0)):(ae.length+=ae.objectMode?1:Oe.length,se?ae.buffer.unshift(Oe):ae.buffer.push(Oe),ae.needReadable&&W(re)),I(re,ae)}function U(re,ae){var Oe;return!h(ae)&&typeof ae!="string"&&ae!==void 0&&!re.objectMode&&(Oe=new TypeError("Invalid non-string/buffer chunk")),Oe}function L(re){return!re.ended&&(re.needReadable||re.length=N?re=N:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}function H(re,ae){return re<=0||ae.length===0&&ae.ended?0:ae.objectMode?1:re!==re?ae.flowing&&ae.length?ae.buffer.head.data.length:ae.length:(re>ae.highWaterMark&&(ae.highWaterMark=V(re)),re<=ae.length?re:ae.ended?ae.length:(ae.needReadable=!0,0))}S.prototype.read=function(re){c("read",re),re=parseInt(re,10);var ae=this._readableState,Oe=re;if(re!==0&&(ae.emittedReadable=!1),re===0&&ae.needReadable&&(ae.length>=ae.highWaterMark||ae.ended))return c("read: emitReadable",ae.length,ae.ended),ae.length===0&&ae.ended?le(this):W(this),null;if(re=H(re,ae),re===0&&ae.ended)return ae.length===0&&le(this),null;var se=ae.needReadable;c("need readable",se),(ae.length===0||ae.length-re0?te=ce(re,ae):te=null,te===null?(ae.needReadable=!0,re=0):ae.length-=re,ae.length===0&&(ae.ended||(ae.needReadable=!0),Oe!==re&&ae.ended&&le(this)),te!==null&&this.emit("data",te),te};function D(re,ae){if(ae.ended)return;if(ae.decoder){var Oe=ae.decoder.end();Oe&&Oe.length&&(ae.buffer.push(Oe),ae.length+=ae.objectMode?1:Oe.length)}ae.ended=!0,W(re)}function W(re){var ae=re._readableState;ae.needReadable=!1,ae.emittedReadable||(c("emitReadable",ae.flowing),ae.emittedReadable=!0,ae.sync?m.nextTick(F,re):F(re))}function F(re){c("emit readable"),re.emit("readable"),Te(re)}function I(re,ae){ae.readingMore||(ae.readingMore=!0,m.nextTick(K,re,ae))}function K(re,ae){for(var Oe=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length1&&me(se.pipes,re)!==-1)&&!Ae&&(c("false write response, pause",Oe._readableState.awaitDrain),Oe._readableState.awaitDrain++,tt=!0),Oe.pause())}function mt(Ue){c("onerror",Ue),Ye(),re.removeListener("error",mt),u(re,"error")===0&&re.emit("error",Ue)}M(re,"error",mt);function vt(){re.removeListener("finish",Et),Ye()}re.once("close",vt);function Et(){c("onfinish"),re.removeListener("close",vt),Ye()}re.once("finish",Et);function Ye(){c("unpipe"),Oe.unpipe(re)}return re.emit("pipe",Oe),se.flowing||(c("pipe resume"),Oe.resume()),re};function ee(re){return function(){var ae=re._readableState;c("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&u(re,"data")&&(ae.flowing=!0,Te(re))}}S.prototype.unpipe=function(re){var ae=this._readableState,Oe={hasUnpiped:!1};if(ae.pipesCount===0)return this;if(ae.pipesCount===1)return re&&re!==ae.pipes?this:(re||(re=ae.pipes),ae.pipes=null,ae.pipesCount=0,ae.flowing=!1,re&&re.emit("unpipe",this,Oe),this);if(!re){var se=ae.pipes,te=ae.pipesCount;ae.pipes=null,ae.pipesCount=0,ae.flowing=!1;for(var Q=0;Q=ae.length?(ae.decoder?Oe=ae.buffer.join(""):ae.buffer.length===1?Oe=ae.buffer.head.data:Oe=ae.buffer.concat(ae.length),ae.buffer.clear()):Oe=be(re,ae.buffer,ae.decoder),Oe}function be(re,ae,Oe){var se;return reQ.length?Q.length:re;if(J===Q.length?te+=Q:te+=Q.slice(0,re),re-=J,re===0){J===Q.length?(++se,Oe.next?ae.head=Oe.next:ae.head=ae.tail=null):(ae.head=Oe,Oe.data=Q.slice(J));break}++se}return ae.length-=se,te}function ue(re,ae){var Oe=i.allocUnsafe(re),se=ae.head,te=1;for(se.data.copy(Oe),re-=se.data.length;se=se.next;){var Q=se.data,J=re>Q.length?Q.length:re;if(Q.copy(Oe,Oe.length-re,0,J),re-=J,re===0){J===Q.length?(++te,se.next?ae.head=se.next:ae.head=ae.tail=null):(ae.head=se,se.data=Q.slice(J));break}++te}return ae.length-=te,Oe}function le(re){var ae=re._readableState;if(ae.length>0)throw new Error('"endReadable()" called on non-empty stream');ae.endEmitted||(ae.ended=!0,m.nextTick($,ae,re))}function $(re,ae){!re.endEmitted&&re.length===0&&(re.endEmitted=!0,ae.readable=!1,ae.emit("end"))}function me(re,ae){for(var Oe=0,se=re.length;Oe-1?u.default:i.nextTick,d;U.WritableState=_;var s=(0,f.default)(k("core-util-is"));s.inherits=k("inherits");var c={deprecate:k("util-deprecate")},w=k("./internal/streams/stream"),E=k("safe-buffer").Buffer,v=g.Uint8Array||function(){};function R(ue){return E.from(ue)}function M(ue){return E.isBuffer(ue)||ue instanceof v}var C=k("./internal/streams/destroy");s.inherits(U,w);function S(){}function _(ue,le){d=d||k("./_stream_duplex"),ue=ue||{};var $=le instanceof d;this.objectMode=!!ue.objectMode,$&&(this.objectMode=this.objectMode||!!ue.writableObjectMode);var me=ue.highWaterMark,re=ue.writableHighWaterMark,ae=this.objectMode?16:16*1024;me||me===0?this.highWaterMark=me:$&&(re||re===0)?this.highWaterMark=re:this.highWaterMark=ae,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Oe=ue.decodeStrings===!1;this.decodeStrings=!Oe,this.defaultEncoding=ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){I(le,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}_.prototype.getBuffer=function(){for(var le=this.bufferedRequest,$=[];le;)$.push(le),le=le.next;return $},function(){try{Object.defineProperty(_.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ue){}}();var A;typeof m.default=="function"&&x.default&&typeof Function.prototype[x.default]=="function"?(A=Function.prototype[x.default],(0,b.default)(U,x.default,{value:function(le){return A.call(this,le)?!0:this!==U?!1:le&&le._writableState instanceof _}})):A=function(le){return le instanceof this};function U(ue){if(d=d||k("./_stream_duplex"),!A.call(U,this)&&!(this instanceof d))return new U(ue);this._writableState=new _(ue,this),this.writable=!0,ue&&(typeof ue.write=="function"&&(this._write=ue.write),typeof ue.writev=="function"&&(this._writev=ue.writev),typeof ue.destroy=="function"&&(this._destroy=ue.destroy),typeof ue.final=="function"&&(this._final=ue.final)),w.call(this)}U.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function L(ue,le){var $=new Error("write after end");ue.emit("error",$),i.nextTick(le,$)}function N(ue,le,$,me){var re=!0,ae=!1;return $===null?ae=new TypeError("May not write null values to stream"):typeof $!="string"&&$!==void 0&&!le.objectMode&&(ae=new TypeError("Invalid non-string/buffer chunk")),ae&&(ue.emit("error",ae),i.nextTick(me,ae),re=!1),re}U.prototype.write=function(ue,le,$){var me=this._writableState,re=!1,ae=!me.objectMode&&M(ue);return ae&&!E.isBuffer(ue)&&(ue=R(ue)),typeof le=="function"&&($=le,le=null),ae?le="buffer":le||(le=me.defaultEncoding),typeof $!="function"&&($=S),me.ended?L(this,$):(ae||N(this,me,ue,$))&&(me.pendingcb++,re=H(this,me,ae,ue,le,$)),re},U.prototype.cork=function(){var ue=this._writableState;ue.corked++},U.prototype.uncork=function(){var ue=this._writableState;ue.corked&&(ue.corked--,!ue.writing&&!ue.corked&&!ue.finished&&!ue.bufferProcessing&&ue.bufferedRequest&&he(this,ue))},U.prototype.setDefaultEncoding=function(le){if(typeof le=="string"&&(le=le.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((le+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+le);return this._writableState.defaultEncoding=le,this};function V(ue,le,$){return!ue.objectMode&&ue.decodeStrings!==!1&&typeof le=="string"&&(le=E.from(le,$)),le}Object.defineProperty(U.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(ue,le,$,me,re,ae){if(!$){var Oe=V(le,me,re);me!==Oe&&($=!0,re="buffer",me=Oe)}var se=le.objectMode?1:me.length;le.length+=se;var te=le.length0?this.tail.next=m:this.head=m,this.tail=m,++this.length},y.prototype.unshift=function(O){var m={data:O,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length},y.prototype.shift=function(){if(this.length===0)return;var O=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,O},y.prototype.clear=function(){this.head=this.tail=null,this.length=0},y.prototype.join=function(O){if(this.length===0)return"";for(var m=this.head,e=""+m.data;m=m.next;)e+=O+m.data;return e},y.prototype.concat=function(O){if(this.length===0)return g.alloc(0);if(this.length===1)return this.head.data;for(var m=g.allocUnsafe(O>>>0),e=this.head,f=0;e;)b(e.data,m,f),f+=e.data.length,e=e.next;return m},y}(),T&&T.inspect&&T.inspect.custom&&(z.exports.prototype[T.inspect.custom]=function(){var y=T.inspect({length:this.length});return this.constructor.name+" "+y})},{"safe-buffer":228,util:71}],220:[function(k,z,o){"use strict";var P=k("process-nextick-args");function g(y,x){var O=this,m=this._readableState&&this._readableState.destroyed,e=this._writableState&&this._writableState.destroyed;return m||e?(x?x(y):y&&(!this._writableState||!this._writableState.errorEmitted)&&P.nextTick(b,this,y),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(f){!x&&f?(P.nextTick(b,O,f),O._writableState&&(O._writableState.errorEmitted=!0)):x&&x(f)}),this)}function T(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function b(y,x){y.emit("error",x)}z.exports={destroy:g,undestroy:T}},{"process-nextick-args":207}],221:[function(k,z,o){"use strict";z.exports=k("events").EventEmitter},{events:192}],222:[function(k,z,o){z.exports=k("./readable").PassThrough},{"./readable":223}],223:[function(k,z,o){o=z.exports=k("./lib/_stream_readable.js"),o.Stream=o,o.Readable=o,o.Writable=k("./lib/_stream_writable.js"),o.Duplex=k("./lib/_stream_duplex.js"),o.Transform=k("./lib/_stream_transform.js"),o.PassThrough=k("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(k,z,o){z.exports=k("./readable").Transform},{"./readable":223}],225:[function(k,z,o){z.exports=k("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(k,z,o){var P=function(){return this}()||Function("return this")(),g=P.regeneratorRuntime&&Object.getOwnPropertyNames(P).indexOf("regeneratorRuntime")>=0,T=g&&P.regeneratorRuntime;if(P.regeneratorRuntime=void 0,z.exports=k("./runtime"),g)P.regeneratorRuntime=T;else try{delete P.regeneratorRuntime}catch(b){P.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,z,o){!function(P){"use strict";var g=Object.prototype,T=g.hasOwnProperty,b,y=typeof Symbol=="function"?Symbol:{},x=y.iterator||"@@iterator",O=y.asyncIterator||"@@asyncIterator",m=y.toStringTag||"@@toStringTag",e=typeof z=="object",f=P.regeneratorRuntime;if(f){e&&(z.exports=f);return}f=P.regeneratorRuntime=e?z.exports:{};function a(H,D,W,F){var I=D&&D.prototype instanceof d?D:d,K=Object.create(I.prototype),ee=new L(F||[]);return K._invoke=S(H,W,ee),K}f.wrap=a;function u(H,D,W){try{return{type:"normal",arg:H.call(D,W)}}catch(F){return{type:"throw",arg:F}}}var r="suspendedStart",i="suspendedYield",n="executing",l="completed",h={};function d(){}function s(){}function c(){}var w={};w[x]=function(){return this};var E=Object.getPrototypeOf,v=E&&E(E(N([])));v&&v!==g&&T.call(v,x)&&(w=v);var R=c.prototype=d.prototype=Object.create(w);s.prototype=R.constructor=c,c.constructor=s,c[m]=s.displayName="GeneratorFunction";function M(H){["next","throw","return"].forEach(function(D){H[D]=function(W){return this._invoke(D,W)}})}f.isGeneratorFunction=function(H){var D=typeof H=="function"&&H.constructor;return D?D===s||(D.displayName||D.name)==="GeneratorFunction":!1},f.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,c):(H.__proto__=c,m in H||(H[m]="GeneratorFunction")),H.prototype=Object.create(R),H},f.awrap=function(H){return{__await:H}};function C(H){function D(I,K,ee,he){var de=u(H[I],H,K);if(de.type==="throw")he(de.arg);else{var Se=de.arg,Te=Se.value;return Te&&typeof Te=="object"&&T.call(Te,"__await")?Promise.resolve(Te.__await).then(function(ce){D("next",ce,ee,he)},function(ce){D("throw",ce,ee,he)}):Promise.resolve(Te).then(function(ce){Se.value=ce,ee(Se)},he)}}var W;function F(I,K){function ee(){return new Promise(function(he,de){D(I,K,he,de)})}return W=W?W.then(ee,ee):ee()}this._invoke=F}M(C.prototype),C.prototype[O]=function(){return this},f.AsyncIterator=C,f.async=function(H,D,W,F){var I=new C(a(H,D,W,F));return f.isGeneratorFunction(D)?I:I.next().then(function(K){return K.done?K.value:I.next()})};function S(H,D,W){var F=r;return function(K,ee){if(F===n)throw new Error("Generator is already running");if(F===l){if(K==="throw")throw ee;return V()}for(W.method=K,W.arg=ee;;){var he=W.delegate;if(he){var de=_(he,W);if(de){if(de===h)continue;return de}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(F===r)throw F=l,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);F=n;var Se=u(H,D,W);if(Se.type==="normal"){if(F=W.done?l:i,Se.arg===h)continue;return{value:Se.arg,done:W.done}}else Se.type==="throw"&&(F=l,W.method="throw",W.arg=Se.arg)}}}function _(H,D){var W=H.iterator[D.method];if(W===b){if(D.delegate=null,D.method==="throw"){if(H.iterator.return&&(D.method="return",D.arg=b,_(H,D),D.method==="throw"))return h;D.method="throw",D.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var F=u(W,H.iterator,D.arg);if(F.type==="throw")return D.method="throw",D.arg=F.arg,D.delegate=null,h;var I=F.arg;if(!I)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,h;if(I.done)D[H.resultName]=I.value,D.next=H.nextLoc,D.method!=="return"&&(D.method="next",D.arg=b);else return I;return D.delegate=null,h}M(R),R[m]="Generator",R[x]=function(){return this},R.toString=function(){return"[object Generator]"};function A(H){var D={tryLoc:H[0]};1 in H&&(D.catchLoc=H[1]),2 in H&&(D.finallyLoc=H[2],D.afterLoc=H[3]),this.tryEntries.push(D)}function U(H){var D=H.completion||{};D.type="normal",delete D.arg,H.completion=D}function L(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(A,this),this.reset(!0)}f.keys=function(H){var D=[];for(var W in H)D.push(W);return D.reverse(),function F(){for(;D.length;){var I=D.pop();if(I in H)return F.value=I,F.done=!1,F}return F.done=!0,F}};function N(H){if(H){var D=H[x];if(D)return D.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var W=-1,F=function I(){for(;++W=0;--F){var I=this.tryEntries[F],K=I.completion;if(I.tryLoc==="root")return W("end");if(I.tryLoc<=this.prev){var ee=T.call(I,"catchLoc"),he=T.call(I,"finallyLoc");if(ee&&he){if(this.prev=0;--W){var F=this.tryEntries[W];if(F.tryLoc<=this.prev&&T.call(F,"finallyLoc")&&this.prev=0;--D){var W=this.tryEntries[D];if(W.finallyLoc===H)return this.complete(W.completion,W.afterLoc),U(W),h}},catch:function(H){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.tryLoc===H){var F=W.completion;if(F.type==="throw"){var I=F.arg;U(W)}return I}}throw new Error("illegal catch attempt")},delegateYield:function(H,D,W){return this.delegate={iterator:N(H),resultName:D,nextLoc:W},this.method==="next"&&(this.arg=b),h}}}(function(){return this}()||Function("return this")())},{}],228:[function(k,z,o){var P=k("buffer"),g=P.Buffer;function T(y,x){for(var O in y)x[O]=y[O]}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?z.exports=P:(T(P,o),o.Buffer=b);function b(y,x,O){return g(y,x,O)}T(g,b),b.from=function(y,x,O){if(typeof y=="number")throw new TypeError("Argument must not be a number");return g(y,x,O)},b.alloc=function(y,x,O){if(typeof y!="number")throw new TypeError("Argument must be a number");var m=g(y);return x!==void 0?typeof O=="string"?m.fill(x,O):m.fill(x):m.fill(0),m},b.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return g(y)},b.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return P.SlowBuffer(y)}},{buffer:73}],229:[function(k,z,o){(function(P){"use strict";var g=k("babel-runtime/core-js/string/from-code-point"),T=i(g),b=k("babel-runtime/core-js/json/stringify"),y=i(b),x=k("babel-runtime/helpers/typeof"),O=i(x),m=k("babel-runtime/core-js/object/define-property"),e=i(m),f=k("babel-runtime/core-js/object/keys"),a=i(f),u=k("babel-runtime/core-js/object/create"),r=i(u);function i(n){return n&&n.__esModule?n:{default:n}}(function(n){n.parser=function(Q,J){return new h(Q,J)},n.SAXParser=h,n.SAXStream=R,n.createStream=v,n.MAX_BUFFER_LENGTH=64*1024;var l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function h(Q,J){if(!(this instanceof h))return new h(Q,J);var ve=this;s(ve),ve.q=ve.c="",ve.bufferCheckPosition=n.MAX_BUFFER_LENGTH,ve.opt=J||{},ve.opt.lowercase=ve.opt.lowercase||ve.opt.lowercasetags,ve.looseCase=ve.opt.lowercase?"toLowerCase":"toUpperCase",ve.tags=[],ve.closed=ve.closedRoot=ve.sawRoot=!1,ve.tag=ve.error=null,ve.strict=!!Q,ve.noscript=!!(Q||ve.opt.noscript),ve.state=K.BEGIN,ve.strictEntities=ve.opt.strictEntities,ve.ENTITIES=ve.strictEntities?(0,r.default)(n.XML_ENTITIES):(0,r.default)(n.ENTITIES),ve.attribList=[],ve.opt.xmlns&&(ve.ns=(0,r.default)(A)),ve.trackPosition=ve.opt.position!==!1,ve.trackPosition&&(ve.position=ve.line=ve.column=0),he(ve,"onready")}r.default||(Object.create=function(Q){function J(){}J.prototype=Q;var ve=new J;return ve}),a.default||(Object.keys=function(Q){var J=[];for(var ve in Q)Q.hasOwnProperty(ve)&&J.push(ve);return J});function d(Q){for(var J=Math.max(n.MAX_BUFFER_LENGTH,10),ve=0,_e=0,Ae=l.length;_eJ)switch(l[_e]){case"textNode":Se(Q);break;case"cdata":de(Q,"oncdata",Q.cdata),Q.cdata="";break;case"script":de(Q,"onscript",Q.script),Q.script="";break;default:ce(Q,"Max buffer length exceeded: "+l[_e])}ve=Math.max(ve,Qe)}var tt=n.MAX_BUFFER_LENGTH-ve;Q.bufferCheckPosition=tt+Q.position}function s(Q){for(var J=0,ve=l.length;J-1&&A<=m)for(;++_3&&"WebKit"||/\bOpera\b/.test(ae)&&(/\bOPR\b/.test(C)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(C)&&!/^(?:Trident|EdgeHTML)$/.test(re)&&"WebKit"||!re&&/\bMSIE\b/i.test(C)&&(te=="Mac OS"?"Tasman":"Trident")||re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ae)&&"NetFront")&&(re=[ce]),ae=="IE"&&(ce=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(C)||0)[1])?(ae+=" Mobile",te="Windows Phone "+(/\+$/.test(ce)?ce:ce+".x"),Ee.unshift("desktop mode")):/\bWPDesktop\b/i.test(C)?(ae="IE Mobile",te="Windows Phone 8.x",Ee.unshift("desktop mode"),$||($=(/\brv:([\d.]+)/.exec(C)||0)[1])):ae!="IE"&&re=="Trident"&&(ce=/\brv:([\d.]+)/.exec(C))&&(ae&&Ee.push("identifying as "+ae+($?" "+$:"")),ae="IE",$=ce[1]),le){if(c(S,"global"))if(I&&(ce=I.lang.System,be=ce.getProperty("os.arch"),te=te||ce.getProperty("os.name")+" "+ce.getProperty("os.version")),K){try{$=S.require("ringo/engine").version.join("."),ae="RingoJS"}catch(mt){(ce=S.system)&&ce.global.system==S.system&&(ae="Narwhal",te||(te=ce[0].os||null))}ae||(ae="Rhino")}else typeof S.process=="object"&&!S.process.browser&&(ce=S.process)&&(typeof ce.versions=="object"&&(typeof ce.versions.electron=="string"?(Ee.push("Node "+ce.versions.node),ae="Electron",$=ce.versions.electron):typeof ce.versions.nw=="string"&&(Ee.push("Chromium "+$,"Node "+ce.versions.node),ae="NW.js",$=ce.versions.nw)),ae||(ae="Node.js",be=ce.arch,te=ce.platform,$=/[\d.]+/.exec(ce.version),$=$?$[0]:null));else s(ce=S.runtime)==H?(ae="Adobe AIR",te=ce.flash.system.Capabilities.os):s(ce=S.phantom)==F?(ae="PhantomJS",$=(ce=ce.version||null)&&ce.major+"."+ce.minor+"."+ce.patch):typeof de.documentMode=="number"&&(ce=/\bTrident\/(\d+)/i.exec(C))?($=[$,de.documentMode],(ce=+ce[1]+4)!=$[1]&&(Ee.push("IE "+$[1]+" mode"),re&&(re[1]=""),$[1]=ce),$=ae=="IE"?String($[1].toFixed(1)):$[0]):typeof de.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ae)&&(Ee.push("masking as "+ae+" "+$),ae="IE",$="11.0",re=["Trident"],te="Windows");te=te&&h(te)}if($&&(ce=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec($)||/(?:alpha|beta)(?: ?\d)?/i.exec(C+";"+(le&&A.appMinorVersion))||/\bMinefield\b/i.test(C)&&"a")&&(ue=/b/i.test(ce)?"beta":"alpha",$=$.replace(RegExp(ce+"\\+?$"),"")+(ue=="beta"?he:ee)+(/\d+\+?/.exec(ce)||"")),ae=="Fennec"||ae=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(te))ae="Firefox Mobile";else if(ae=="Maxthon"&&$)$=$.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Oe))Oe=="Xbox 360"&&(te=null),Oe=="Xbox 360"&&/\bIEMobile\b/.test(C)&&Ee.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ae)||ae&&!Oe&&!/Browser|Mobi/.test(ae))&&(te=="Windows CE"||/Mobi/i.test(C)))ae+=" Mobile";else if(ae=="IE"&&le)try{S.external===null&&Ee.unshift("platform preview")}catch(mt){Ee.unshift("embedded")}else(/\bBlackBerry\b/.test(Oe)||/\bBB10\b/.test(C))&&(ce=(RegExp(Oe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(C)||0)[1]||$)?(ce=[ce,/BB10/.test(C)],te=(ce[1]?(Oe=null,se="BlackBerry"):"Device Software")+" "+ce[0],$=null):this!=d&&Oe!="Wii"&&(le&&Se||/Opera/.test(ae)&&/\b(?:MSIE|Firefox)\b/i.test(C)||ae=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(te)||ae=="IE"&&(te&&!/^Win/.test(te)&&$>5.5||/\bWindows XP\b/.test(te)&&$>8||$==8&&!/\bTrident\b/.test(C)))&&!e.test(ce=R.call(d,C.replace(e,"")+";"))&&ce.name&&(ce="ing as "+ce.name+((ce=ce.version)?" "+ce:""),e.test(ae)?(/\bIE\b/.test(ce)&&te=="Mac OS"&&(te=null),ce="identify"+ce):(ce="mask"+ce,Te?ae=h(Te.replace(/([a-z])([A-Z])/g,"$1 $2")):ae="Opera",/\bIE\b/.test(ce)&&(te=null),le||($=null)),re=["Presto"],Ee.push(ce));(ce=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(C)||0)[1])&&(ce=[parseFloat(ce.replace(/\.(\d)$/,".0$1")),ce],ae=="Safari"&&ce[1].slice(-1)=="+"?(ae="WebKit Nightly",ue="alpha",$=ce[1].slice(0,-1)):($==ce[1]||$==(ce[2]=(/\bSafari\/([\d.]+\+?)/i.exec(C)||0)[1]))&&($=null),ce[1]=(/\bChrome\/([\d.]+)/i.exec(C)||0)[1],ce[0]==537.36&&ce[2]==537.36&&parseFloat(ce[1])>=28&&re=="WebKit"&&(re=["Blink"]),!le||!N&&!ce[1]?(re&&(re[1]="like Safari"),ce=(ce=ce[0],ce<400?1:ce<500?2:ce<526?3:ce<533?4:ce<534?"4+":ce<535?5:ce<537?6:ce<538?7:ce<601?8:"8")):(re&&(re[1]="like Chrome"),ce=ce[1]||(ce=ce[0],ce<530?1:ce<532?2:ce<532.05?3:ce<533?4:ce<534.03?5:ce<534.07?6:ce<534.1?7:ce<534.13?8:ce<534.16?9:ce<534.24?10:ce<534.3?11:ce<535.01?12:ce<535.02?"13+":ce<535.07?15:ce<535.11?16:ce<535.19?17:ce<536.05?18:ce<536.1?19:ce<537.01?20:ce<537.11?"21+":ce<537.13?23:ce<537.18?24:ce<537.24?25:ce<537.36?26:re!="Blink"?"27":"28")),re&&(re[1]+=" "+(ce+=typeof ce=="number"?".x":/[.+]/.test(ce)?"":"+")),ae=="Safari"&&(!$||parseInt($)>45)&&($=ce)),ae=="Opera"&&(ce=/\bzbov|zvav$/.exec(te))?(ae+=" ",Ee.unshift("desktop mode"),ce=="zvav"?(ae+="Mini",$=null):ae+="Mobile",te=te.replace(RegExp(" *"+ce+"$"),"")):ae=="Safari"&&/\bChrome\b/.exec(re&&re[1])&&(Ee.unshift("desktop mode"),ae="Chrome Mobile",$=null,/\bOS X\b/.test(te)?(se="Apple",te="iOS 4.3+"):te=null),$&&$.indexOf(ce=/[\d.]+$/.exec(te))==0&&C.indexOf("/"+ce+"-")>-1&&(te=v(te.replace(ce,""))),re&&!/\b(?:Avant|Nook)\b/.test(ae)&&(/Browser|Lunascape|Maxthon/.test(ae)||ae!="Safari"&&/^iOS/.test(te)&&/\bSafari\b/.test(re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ae)&&re[1])&&((ce=re[re.length-1])&&Ee.push(ce)),Ee.length&&(Ee=["("+Ee.join("; ")+")"]),se&&Oe&&Oe.indexOf(se)<0&&Ee.push("on "+se),Oe&&Ee.push((/^on /.test(Ee[Ee.length-1])?"":"on ")+Oe),te&&(ce=/ ([\d.+]+)$/.exec(te),me=ce&&te.charAt(te.length-ce[0].length-1)=="/",te={architecture:32,family:ce&&!me?te.replace(ce[0],""):te,version:ce?ce[1]:null,toString:function(){var mt=this.version;return this.family+(mt&&!me?" "+mt:"")+(this.architecture==64?" 64-bit":"")}}),(ce=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(be))&&!/\bi686\b/i.test(be)?(te&&(te.architecture=64,te.family=te.family.replace(RegExp(" *"+ce),"")),ae&&(/\bWOW64\b/i.test(C)||le&&/\w(?:86|32)$/.test(A.cpuClass||A.platform)&&!/\bWin64; x64\b/i.test(C))&&Ee.unshift("32-bit")):te&&/^OS X/.test(te.family)&&ae=="Chrome"&&parseFloat($)>=39&&(te.architecture=64),C||(C=null);var dt={};return dt.description=C,dt.layout=re&&re[0],dt.manufacturer=se,dt.name=ae,dt.prerelease=ue,dt.product=Oe,dt.ua=C,dt.version=ae&&$,dt.os=te||{architecture:null,family:null,version:null,toString:function(){return"null"}},dt.parse=R,dt.toString=tt,dt.version&&Ee.unshift($),dt.name&&Ee.unshift(ae),te&&ae&&!(te==String(te).split(" ")[0]&&(te==ae.split(" ")[0]||Oe))&&Ee.push(Oe?"("+te+")":"on "+te),Ee.length&&(dt.description=Ee.join(" ")),dt}var M=R();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=M,define(function(){return M})):y&&x?d(M,function(C,S){y[S]=C}):T.platform=M}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(k,z,o){(function(P){"use strict";typeof P=="undefined"||!P.version||P.version.indexOf("v0.")===0||P.version.indexOf("v1.")===0&&P.version.indexOf("v1.8.")!==0?z.exports={nextTick:g}:z.exports=P;function g(T,b,y,x){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var O=arguments.length,m,e;switch(O){case 0:case 1:return P.nextTick(T);case 2:return P.nextTick(function(){T.call(null,b)});case 3:return P.nextTick(function(){T.call(null,b,y)});case 4:return P.nextTick(function(){T.call(null,b,y,x)});default:for(m=new Array(O-1),e=0;e1)for(var d=1;d= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=m-e,w=Math.floor,E=String.fromCharCode,v;function R(W){throw new RangeError(s[W])}function M(W,F){for(var I=W.length,K=[];I--;)K[I]=F(W[I]);return K}function C(W,F){var I=W.split("@"),K="";I.length>1&&(K=I[0]+"@",W=I[1]),W=W.replace(d,".");var ee=W.split("."),he=M(ee,F).join(".");return K+he}function S(W){for(var F=[],I=0,K=W.length,ee,he;I=55296&&ee<=56319&&I65535&&(F-=65536,I+=E(F>>>10&1023|55296),F=56320|F&1023),I+=E(F),I}).join("")}function A(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:m}function U(W,F){return W+22+75*(W<26)-((F!=0)<<5)}function L(W,F,I){var K=0;for(W=I?w(W/u):W>>1,W+=w(W/F);W>c*f>>1;K+=m)W=w(W/c);return w(K+(c+1)*W/(W+a))}function N(W){var F=[],I=W.length,K,ee=0,he=i,de=r,Se,Te,ce,be,Ee,ue,le,$,me;for(Se=W.lastIndexOf(n),Se<0&&(Se=0),Te=0;Te=128&&R("not-basic"),F.push(W.charCodeAt(Te));for(ce=Se>0?Se+1:0;ce=I&&R("invalid-input"),le=A(W.charCodeAt(ce++)),(le>=m||le>w((O-ee)/Ee))&&R("overflow"),ee+=le*Ee,$=ue<=de?e:ue>=de+f?f:ue-de,le<$);ue+=m)me=m-$,Ee>w(O/me)&&R("overflow"),Ee*=me;K=F.length+1,de=L(ee-be,K,be==0),w(ee/K)>O-he&&R("overflow"),he+=w(ee/K),ee%=K,F.splice(ee++,0,he)}return _(F)}function V(W){var F,I,K,ee,he,de,Se,Te,ce,be,Ee,ue=[],le,$,me,re;for(W=S(W),le=W.length,F=i,I=0,he=r,de=0;de=F&&Eew((O-I)/$)&&R("overflow"),I+=(Se-F)*$,F=Se,de=0;deO&&R("overflow"),Ee==F){for(Te=I,ce=m;!(be=ce<=he?e:ce>=he+f?f:ce-he,Te0&&f>e&&(f=e);for(var a=0;a=0?(i=u.substr(0,r),n=u.substr(r+1)):(i=u,n=""),l=decodeURIComponent(i),h=decodeURIComponent(n),P(O,l)?g(O[l])?O[l].push(h):O[l]=[O[l],h]:O[l]=h}return O};var g=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}},{}],211:[function(k,z,o){"use strict";var P=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};z.exports=function(y,x,O,m){return x=x||"&",O=O||"=",y===null&&(y=void 0),typeof y=="object"?T(b(y),function(e){var f=encodeURIComponent(P(e))+O;return g(y[e])?T(y[e],function(a){return f+encodeURIComponent(P(a))}).join(x):f+encodeURIComponent(P(y[e]))}).join(x):m?encodeURIComponent(P(m))+O+encodeURIComponent(P(y)):""};var g=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"};function T(y,x){if(y.map)return y.map(x);for(var O=[],m=0;m0?(typeof ae!="string"&&!Q.objectMode&&(0,b.default)(ae)!==i.prototype&&(ae=l(ae)),se?Q.endEmitted?re.emit("error",new Error("stream.unshift() after end event")):A(re,Q,ae,!0):Q.ended?re.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!Oe?(ae=Q.decoder.write(ae),Q.objectMode||ae.length!==0?A(re,Q,ae,!1):I(re,Q)):A(re,Q,ae,!1))):se||(Q.reading=!1)}return L(Q)}function A(re,ae,Oe,se){ae.flowing&&ae.length===0&&!ae.sync?(re.emit("data",Oe),re.read(0)):(ae.length+=ae.objectMode?1:Oe.length,se?ae.buffer.unshift(Oe):ae.buffer.push(Oe),ae.needReadable&&W(re)),I(re,ae)}function U(re,ae){var Oe;return!h(ae)&&typeof ae!="string"&&ae!==void 0&&!re.objectMode&&(Oe=new TypeError("Invalid non-string/buffer chunk")),Oe}function L(re){return!re.ended&&(re.needReadable||re.length=N?re=N:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}function H(re,ae){return re<=0||ae.length===0&&ae.ended?0:ae.objectMode?1:re!==re?ae.flowing&&ae.length?ae.buffer.head.data.length:ae.length:(re>ae.highWaterMark&&(ae.highWaterMark=V(re)),re<=ae.length?re:ae.ended?ae.length:(ae.needReadable=!0,0))}S.prototype.read=function(re){c("read",re),re=parseInt(re,10);var ae=this._readableState,Oe=re;if(re!==0&&(ae.emittedReadable=!1),re===0&&ae.needReadable&&(ae.length>=ae.highWaterMark||ae.ended))return c("read: emitReadable",ae.length,ae.ended),ae.length===0&&ae.ended?le(this):W(this),null;if(re=H(re,ae),re===0&&ae.ended)return ae.length===0&&le(this),null;var se=ae.needReadable;c("need readable",se),(ae.length===0||ae.length-re0?te=ce(re,ae):te=null,te===null?(ae.needReadable=!0,re=0):ae.length-=re,ae.length===0&&(ae.ended||(ae.needReadable=!0),Oe!==re&&ae.ended&&le(this)),te!==null&&this.emit("data",te),te};function D(re,ae){if(ae.ended)return;if(ae.decoder){var Oe=ae.decoder.end();Oe&&Oe.length&&(ae.buffer.push(Oe),ae.length+=ae.objectMode?1:Oe.length)}ae.ended=!0,W(re)}function W(re){var ae=re._readableState;ae.needReadable=!1,ae.emittedReadable||(c("emitReadable",ae.flowing),ae.emittedReadable=!0,ae.sync?m.nextTick(F,re):F(re))}function F(re){c("emit readable"),re.emit("readable"),Te(re)}function I(re,ae){ae.readingMore||(ae.readingMore=!0,m.nextTick(K,re,ae))}function K(re,ae){for(var Oe=ae.length;!ae.reading&&!ae.flowing&&!ae.ended&&ae.length1&&me(se.pipes,re)!==-1)&&!Ae&&(c("false write response, pause",Oe._readableState.awaitDrain),Oe._readableState.awaitDrain++,tt=!0),Oe.pause())}function mt(Ue){c("onerror",Ue),Ye(),re.removeListener("error",mt),u(re,"error")===0&&re.emit("error",Ue)}M(re,"error",mt);function vt(){re.removeListener("finish",yt),Ye()}re.once("close",vt);function yt(){c("onfinish"),re.removeListener("close",vt),Ye()}re.once("finish",yt);function Ye(){c("unpipe"),Oe.unpipe(re)}return re.emit("pipe",Oe),se.flowing||(c("pipe resume"),Oe.resume()),re};function ee(re){return function(){var ae=re._readableState;c("pipeOnDrain",ae.awaitDrain),ae.awaitDrain&&ae.awaitDrain--,ae.awaitDrain===0&&u(re,"data")&&(ae.flowing=!0,Te(re))}}S.prototype.unpipe=function(re){var ae=this._readableState,Oe={hasUnpiped:!1};if(ae.pipesCount===0)return this;if(ae.pipesCount===1)return re&&re!==ae.pipes?this:(re||(re=ae.pipes),ae.pipes=null,ae.pipesCount=0,ae.flowing=!1,re&&re.emit("unpipe",this,Oe),this);if(!re){var se=ae.pipes,te=ae.pipesCount;ae.pipes=null,ae.pipesCount=0,ae.flowing=!1;for(var Q=0;Q=ae.length?(ae.decoder?Oe=ae.buffer.join(""):ae.buffer.length===1?Oe=ae.buffer.head.data:Oe=ae.buffer.concat(ae.length),ae.buffer.clear()):Oe=be(re,ae.buffer,ae.decoder),Oe}function be(re,ae,Oe){var se;return reQ.length?Q.length:re;if(J===Q.length?te+=Q:te+=Q.slice(0,re),re-=J,re===0){J===Q.length?(++se,Oe.next?ae.head=Oe.next:ae.head=ae.tail=null):(ae.head=Oe,Oe.data=Q.slice(J));break}++se}return ae.length-=se,te}function ue(re,ae){var Oe=i.allocUnsafe(re),se=ae.head,te=1;for(se.data.copy(Oe),re-=se.data.length;se=se.next;){var Q=se.data,J=re>Q.length?Q.length:re;if(Q.copy(Oe,Oe.length-re,0,J),re-=J,re===0){J===Q.length?(++te,se.next?ae.head=se.next:ae.head=ae.tail=null):(ae.head=se,se.data=Q.slice(J));break}++te}return ae.length-=te,Oe}function le(re){var ae=re._readableState;if(ae.length>0)throw new Error('"endReadable()" called on non-empty stream');ae.endEmitted||(ae.ended=!0,m.nextTick($,ae,re))}function $(re,ae){!re.endEmitted&&re.length===0&&(re.endEmitted=!0,ae.readable=!1,ae.emit("end"))}function me(re,ae){for(var Oe=0,se=re.length;Oe-1?u.default:i.nextTick,d;U.WritableState=_;var s=(0,f.default)(k("core-util-is"));s.inherits=k("inherits");var c={deprecate:k("util-deprecate")},w=k("./internal/streams/stream"),E=k("safe-buffer").Buffer,v=g.Uint8Array||function(){};function R(ue){return E.from(ue)}function M(ue){return E.isBuffer(ue)||ue instanceof v}var C=k("./internal/streams/destroy");s.inherits(U,w);function S(){}function _(ue,le){d=d||k("./_stream_duplex"),ue=ue||{};var $=le instanceof d;this.objectMode=!!ue.objectMode,$&&(this.objectMode=this.objectMode||!!ue.writableObjectMode);var me=ue.highWaterMark,re=ue.writableHighWaterMark,ae=this.objectMode?16:16*1024;me||me===0?this.highWaterMark=me:$&&(re||re===0)?this.highWaterMark=re:this.highWaterMark=ae,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Oe=ue.decodeStrings===!1;this.decodeStrings=!Oe,this.defaultEncoding=ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){I(le,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}_.prototype.getBuffer=function(){for(var le=this.bufferedRequest,$=[];le;)$.push(le),le=le.next;return $},function(){try{Object.defineProperty(_.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ue){}}();var A;typeof m.default=="function"&&x.default&&typeof Function.prototype[x.default]=="function"?(A=Function.prototype[x.default],(0,b.default)(U,x.default,{value:function(le){return A.call(this,le)?!0:this!==U?!1:le&&le._writableState instanceof _}})):A=function(le){return le instanceof this};function U(ue){if(d=d||k("./_stream_duplex"),!A.call(U,this)&&!(this instanceof d))return new U(ue);this._writableState=new _(ue,this),this.writable=!0,ue&&(typeof ue.write=="function"&&(this._write=ue.write),typeof ue.writev=="function"&&(this._writev=ue.writev),typeof ue.destroy=="function"&&(this._destroy=ue.destroy),typeof ue.final=="function"&&(this._final=ue.final)),w.call(this)}U.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function L(ue,le){var $=new Error("write after end");ue.emit("error",$),i.nextTick(le,$)}function N(ue,le,$,me){var re=!0,ae=!1;return $===null?ae=new TypeError("May not write null values to stream"):typeof $!="string"&&$!==void 0&&!le.objectMode&&(ae=new TypeError("Invalid non-string/buffer chunk")),ae&&(ue.emit("error",ae),i.nextTick(me,ae),re=!1),re}U.prototype.write=function(ue,le,$){var me=this._writableState,re=!1,ae=!me.objectMode&&M(ue);return ae&&!E.isBuffer(ue)&&(ue=R(ue)),typeof le=="function"&&($=le,le=null),ae?le="buffer":le||(le=me.defaultEncoding),typeof $!="function"&&($=S),me.ended?L(this,$):(ae||N(this,me,ue,$))&&(me.pendingcb++,re=H(this,me,ae,ue,le,$)),re},U.prototype.cork=function(){var ue=this._writableState;ue.corked++},U.prototype.uncork=function(){var ue=this._writableState;ue.corked&&(ue.corked--,!ue.writing&&!ue.corked&&!ue.finished&&!ue.bufferProcessing&&ue.bufferedRequest&&he(this,ue))},U.prototype.setDefaultEncoding=function(le){if(typeof le=="string"&&(le=le.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((le+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+le);return this._writableState.defaultEncoding=le,this};function V(ue,le,$){return!ue.objectMode&&ue.decodeStrings!==!1&&typeof le=="string"&&(le=E.from(le,$)),le}Object.defineProperty(U.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(ue,le,$,me,re,ae){if(!$){var Oe=V(le,me,re);me!==Oe&&($=!0,re="buffer",me=Oe)}var se=le.objectMode?1:me.length;le.length+=se;var te=le.length0?this.tail.next=m:this.head=m,this.tail=m,++this.length},y.prototype.unshift=function(O){var m={data:O,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length},y.prototype.shift=function(){if(this.length===0)return;var O=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,O},y.prototype.clear=function(){this.head=this.tail=null,this.length=0},y.prototype.join=function(O){if(this.length===0)return"";for(var m=this.head,e=""+m.data;m=m.next;)e+=O+m.data;return e},y.prototype.concat=function(O){if(this.length===0)return g.alloc(0);if(this.length===1)return this.head.data;for(var m=g.allocUnsafe(O>>>0),e=this.head,f=0;e;)b(e.data,m,f),f+=e.data.length,e=e.next;return m},y}(),T&&T.inspect&&T.inspect.custom&&(z.exports.prototype[T.inspect.custom]=function(){var y=T.inspect({length:this.length});return this.constructor.name+" "+y})},{"safe-buffer":228,util:71}],220:[function(k,z,o){"use strict";var P=k("process-nextick-args");function g(y,x){var O=this,m=this._readableState&&this._readableState.destroyed,e=this._writableState&&this._writableState.destroyed;return m||e?(x?x(y):y&&(!this._writableState||!this._writableState.errorEmitted)&&P.nextTick(b,this,y),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(f){!x&&f?(P.nextTick(b,O,f),O._writableState&&(O._writableState.errorEmitted=!0)):x&&x(f)}),this)}function T(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function b(y,x){y.emit("error",x)}z.exports={destroy:g,undestroy:T}},{"process-nextick-args":207}],221:[function(k,z,o){"use strict";z.exports=k("events").EventEmitter},{events:192}],222:[function(k,z,o){z.exports=k("./readable").PassThrough},{"./readable":223}],223:[function(k,z,o){o=z.exports=k("./lib/_stream_readable.js"),o.Stream=o,o.Readable=o,o.Writable=k("./lib/_stream_writable.js"),o.Duplex=k("./lib/_stream_duplex.js"),o.Transform=k("./lib/_stream_transform.js"),o.PassThrough=k("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(k,z,o){z.exports=k("./readable").Transform},{"./readable":223}],225:[function(k,z,o){z.exports=k("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(k,z,o){var P=function(){return this}()||Function("return this")(),g=P.regeneratorRuntime&&Object.getOwnPropertyNames(P).indexOf("regeneratorRuntime")>=0,T=g&&P.regeneratorRuntime;if(P.regeneratorRuntime=void 0,z.exports=k("./runtime"),g)P.regeneratorRuntime=T;else try{delete P.regeneratorRuntime}catch(b){P.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,z,o){!function(P){"use strict";var g=Object.prototype,T=g.hasOwnProperty,b,y=typeof Symbol=="function"?Symbol:{},x=y.iterator||"@@iterator",O=y.asyncIterator||"@@asyncIterator",m=y.toStringTag||"@@toStringTag",e=typeof z=="object",f=P.regeneratorRuntime;if(f){e&&(z.exports=f);return}f=P.regeneratorRuntime=e?z.exports:{};function a(H,D,W,F){var I=D&&D.prototype instanceof d?D:d,K=Object.create(I.prototype),ee=new L(F||[]);return K._invoke=S(H,W,ee),K}f.wrap=a;function u(H,D,W){try{return{type:"normal",arg:H.call(D,W)}}catch(F){return{type:"throw",arg:F}}}var r="suspendedStart",i="suspendedYield",n="executing",l="completed",h={};function d(){}function s(){}function c(){}var w={};w[x]=function(){return this};var E=Object.getPrototypeOf,v=E&&E(E(N([])));v&&v!==g&&T.call(v,x)&&(w=v);var R=c.prototype=d.prototype=Object.create(w);s.prototype=R.constructor=c,c.constructor=s,c[m]=s.displayName="GeneratorFunction";function M(H){["next","throw","return"].forEach(function(D){H[D]=function(W){return this._invoke(D,W)}})}f.isGeneratorFunction=function(H){var D=typeof H=="function"&&H.constructor;return D?D===s||(D.displayName||D.name)==="GeneratorFunction":!1},f.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,c):(H.__proto__=c,m in H||(H[m]="GeneratorFunction")),H.prototype=Object.create(R),H},f.awrap=function(H){return{__await:H}};function C(H){function D(I,K,ee,he){var de=u(H[I],H,K);if(de.type==="throw")he(de.arg);else{var Se=de.arg,Te=Se.value;return Te&&typeof Te=="object"&&T.call(Te,"__await")?Promise.resolve(Te.__await).then(function(ce){D("next",ce,ee,he)},function(ce){D("throw",ce,ee,he)}):Promise.resolve(Te).then(function(ce){Se.value=ce,ee(Se)},he)}}var W;function F(I,K){function ee(){return new Promise(function(he,de){D(I,K,he,de)})}return W=W?W.then(ee,ee):ee()}this._invoke=F}M(C.prototype),C.prototype[O]=function(){return this},f.AsyncIterator=C,f.async=function(H,D,W,F){var I=new C(a(H,D,W,F));return f.isGeneratorFunction(D)?I:I.next().then(function(K){return K.done?K.value:I.next()})};function S(H,D,W){var F=r;return function(K,ee){if(F===n)throw new Error("Generator is already running");if(F===l){if(K==="throw")throw ee;return V()}for(W.method=K,W.arg=ee;;){var he=W.delegate;if(he){var de=_(he,W);if(de){if(de===h)continue;return de}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(F===r)throw F=l,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);F=n;var Se=u(H,D,W);if(Se.type==="normal"){if(F=W.done?l:i,Se.arg===h)continue;return{value:Se.arg,done:W.done}}else Se.type==="throw"&&(F=l,W.method="throw",W.arg=Se.arg)}}}function _(H,D){var W=H.iterator[D.method];if(W===b){if(D.delegate=null,D.method==="throw"){if(H.iterator.return&&(D.method="return",D.arg=b,_(H,D),D.method==="throw"))return h;D.method="throw",D.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var F=u(W,H.iterator,D.arg);if(F.type==="throw")return D.method="throw",D.arg=F.arg,D.delegate=null,h;var I=F.arg;if(!I)return D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,h;if(I.done)D[H.resultName]=I.value,D.next=H.nextLoc,D.method!=="return"&&(D.method="next",D.arg=b);else return I;return D.delegate=null,h}M(R),R[m]="Generator",R[x]=function(){return this},R.toString=function(){return"[object Generator]"};function A(H){var D={tryLoc:H[0]};1 in H&&(D.catchLoc=H[1]),2 in H&&(D.finallyLoc=H[2],D.afterLoc=H[3]),this.tryEntries.push(D)}function U(H){var D=H.completion||{};D.type="normal",delete D.arg,H.completion=D}function L(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(A,this),this.reset(!0)}f.keys=function(H){var D=[];for(var W in H)D.push(W);return D.reverse(),function F(){for(;D.length;){var I=D.pop();if(I in H)return F.value=I,F.done=!1,F}return F.done=!0,F}};function N(H){if(H){var D=H[x];if(D)return D.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var W=-1,F=function I(){for(;++W=0;--F){var I=this.tryEntries[F],K=I.completion;if(I.tryLoc==="root")return W("end");if(I.tryLoc<=this.prev){var ee=T.call(I,"catchLoc"),he=T.call(I,"finallyLoc");if(ee&&he){if(this.prev=0;--W){var F=this.tryEntries[W];if(F.tryLoc<=this.prev&&T.call(F,"finallyLoc")&&this.prev=0;--D){var W=this.tryEntries[D];if(W.finallyLoc===H)return this.complete(W.completion,W.afterLoc),U(W),h}},catch:function(H){for(var D=this.tryEntries.length-1;D>=0;--D){var W=this.tryEntries[D];if(W.tryLoc===H){var F=W.completion;if(F.type==="throw"){var I=F.arg;U(W)}return I}}throw new Error("illegal catch attempt")},delegateYield:function(H,D,W){return this.delegate={iterator:N(H),resultName:D,nextLoc:W},this.method==="next"&&(this.arg=b),h}}}(function(){return this}()||Function("return this")())},{}],228:[function(k,z,o){var P=k("buffer"),g=P.Buffer;function T(y,x){for(var O in y)x[O]=y[O]}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?z.exports=P:(T(P,o),o.Buffer=b);function b(y,x,O){return g(y,x,O)}T(g,b),b.from=function(y,x,O){if(typeof y=="number")throw new TypeError("Argument must not be a number");return g(y,x,O)},b.alloc=function(y,x,O){if(typeof y!="number")throw new TypeError("Argument must be a number");var m=g(y);return x!==void 0?typeof O=="string"?m.fill(x,O):m.fill(x):m.fill(0),m},b.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return g(y)},b.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return P.SlowBuffer(y)}},{buffer:73}],229:[function(k,z,o){(function(P){"use strict";var g=k("babel-runtime/core-js/string/from-code-point"),T=i(g),b=k("babel-runtime/core-js/json/stringify"),y=i(b),x=k("babel-runtime/helpers/typeof"),O=i(x),m=k("babel-runtime/core-js/object/define-property"),e=i(m),f=k("babel-runtime/core-js/object/keys"),a=i(f),u=k("babel-runtime/core-js/object/create"),r=i(u);function i(n){return n&&n.__esModule?n:{default:n}}(function(n){n.parser=function(Q,J){return new h(Q,J)},n.SAXParser=h,n.SAXStream=R,n.createStream=v,n.MAX_BUFFER_LENGTH=64*1024;var l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function h(Q,J){if(!(this instanceof h))return new h(Q,J);var ve=this;s(ve),ve.q=ve.c="",ve.bufferCheckPosition=n.MAX_BUFFER_LENGTH,ve.opt=J||{},ve.opt.lowercase=ve.opt.lowercase||ve.opt.lowercasetags,ve.looseCase=ve.opt.lowercase?"toLowerCase":"toUpperCase",ve.tags=[],ve.closed=ve.closedRoot=ve.sawRoot=!1,ve.tag=ve.error=null,ve.strict=!!Q,ve.noscript=!!(Q||ve.opt.noscript),ve.state=K.BEGIN,ve.strictEntities=ve.opt.strictEntities,ve.ENTITIES=ve.strictEntities?(0,r.default)(n.XML_ENTITIES):(0,r.default)(n.ENTITIES),ve.attribList=[],ve.opt.xmlns&&(ve.ns=(0,r.default)(A)),ve.trackPosition=ve.opt.position!==!1,ve.trackPosition&&(ve.position=ve.line=ve.column=0),he(ve,"onready")}r.default||(Object.create=function(Q){function J(){}J.prototype=Q;var ve=new J;return ve}),a.default||(Object.keys=function(Q){var J=[];for(var ve in Q)Q.hasOwnProperty(ve)&&J.push(ve);return J});function d(Q){for(var J=Math.max(n.MAX_BUFFER_LENGTH,10),ve=0,_e=0,Ae=l.length;_eJ)switch(l[_e]){case"textNode":Se(Q);break;case"cdata":de(Q,"oncdata",Q.cdata),Q.cdata="";break;case"script":de(Q,"onscript",Q.script),Q.script="";break;default:ce(Q,"Max buffer length exceeded: "+l[_e])}ve=Math.max(ve,Qe)}var tt=n.MAX_BUFFER_LENGTH-ve;Q.bufferCheckPosition=tt+Q.position}function s(Q){for(var J=0,ve=l.length;J"||H(Q)}function F(Q,J){return Q.test(J)}function I(Q,J){return!F(Q,J)}var K=0;n.STATE={BEGIN:K++,BEGIN_WHITESPACE:K++,TEXT:K++,TEXT_ENTITY:K++,OPEN_WAKA:K++,SGML_DECL:K++,SGML_DECL_QUOTED:K++,DOCTYPE:K++,DOCTYPE_QUOTED:K++,DOCTYPE_DTD:K++,DOCTYPE_DTD_QUOTED:K++,COMMENT_STARTING:K++,COMMENT:K++,COMMENT_ENDING:K++,COMMENT_ENDED:K++,CDATA:K++,CDATA_ENDING:K++,CDATA_ENDING_2:K++,PROC_INST:K++,PROC_INST_BODY:K++,PROC_INST_ENDING:K++,OPEN_TAG:K++,OPEN_TAG_SLASH:K++,ATTRIB:K++,ATTRIB_NAME:K++,ATTRIB_NAME_SAW_WHITE:K++,ATTRIB_VALUE:K++,ATTRIB_VALUE_QUOTED:K++,ATTRIB_VALUE_CLOSED:K++,ATTRIB_VALUE_UNQUOTED:K++,ATTRIB_VALUE_ENTITY_Q:K++,ATTRIB_VALUE_ENTITY_U:K++,CLOSE_TAG:K++,CLOSE_TAG_SAW_WHITE:K++,SCRIPT:K++,SCRIPT_ENDING:K++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,a.default)(n.ENTITIES).forEach(function(Q){var J=n.ENTITIES[Q],ve=typeof J=="number"?String.fromCharCode(J):J;n.ENTITIES[Q]=ve});for(var ee in n.STATE)n.STATE[n.STATE[ee]]=ee;K=n.STATE;function he(Q,J,ve){Q[J]&&Q[J](ve)}function de(Q,J,ve){Q.textNode&&Se(Q),he(Q,J,ve)}function Se(Q){Q.textNode=Te(Q.opt,Q.textNode),Q.textNode&&he(Q,"ontext",Q.textNode),Q.textNode=""}function Te(Q,J){return Q.trim&&(J=J.trim()),Q.normalize&&(J=J.replace(/\s+/g," ")),J}function ce(Q,J){return Se(Q),Q.trackPosition&&(J+=` Line: `+Q.line+` Column: `+Q.column+` Char: `+Q.c),J=new Error(J),Q.error=J,he(Q,"onerror",J),Q}function be(Q){return Q.sawRoot&&!Q.closedRoot&&Ee(Q,"Unclosed root tag"),Q.state!==K.BEGIN&&Q.state!==K.BEGIN_WHITESPACE&&Q.state!==K.TEXT&&ce(Q,"Unexpected end"),Se(Q),Q.c="",Q.closed=!0,he(Q,"onend"),h.call(Q,Q.strict,Q.opt),Q}function Ee(Q,J){if((typeof Q=="undefined"?"undefined":(0,O.default)(Q))!=="object"||!(Q instanceof h))throw new Error("bad call to strictFail");Q.strict&&ce(Q,J)}function ue(Q){Q.strict||(Q.tagName=Q.tagName[Q.looseCase]());var J=Q.tags[Q.tags.length-1]||Q,ve=Q.tag={name:Q.tagName,attributes:{}};Q.opt.xmlns&&(ve.ns=J.ns),Q.attribList.length=0,de(Q,"onopentagstart",ve)}function le(Q,J){var ve=Q.indexOf(":"),_e=ve<0?["",Q]:Q.split(":"),Ae=_e[0],Qe=_e[1];return J&&Q==="xmlns"&&(Ae="xmlns",Qe=""),{prefix:Ae,local:Qe}}function $(Q){if(Q.strict||(Q.attribName=Q.attribName[Q.looseCase]()),Q.attribList.indexOf(Q.attribName)!==-1||Q.tag.attributes.hasOwnProperty(Q.attribName)){Q.attribName=Q.attribValue="";return}if(Q.opt.xmlns){var J=le(Q.attribName,!0),ve=J.prefix,_e=J.local;if(ve==="xmlns")if(_e==="xml"&&Q.attribValue!==S)Ee(Q,"xml: prefix must be bound to "+S+` Actual: `+Q.attribValue);else if(_e==="xmlns"&&Q.attribValue!==_)Ee(Q,"xmlns: prefix must be bound to "+_+` -Actual: `+Q.attribValue);else{var Ae=Q.tag,Qe=Q.tags[Q.tags.length-1]||Q;Ae.ns===Qe.ns&&(Ae.ns=(0,r.default)(Qe.ns)),Ae.ns[_e]=Q.attribValue}Q.attribList.push([Q.attribName,Q.attribValue])}else Q.tag.attributes[Q.attribName]=Q.attribValue,de(Q,"onattribute",{name:Q.attribName,value:Q.attribValue});Q.attribName=Q.attribValue=""}function me(Q,J){if(Q.opt.xmlns){var ve=Q.tag,_e=le(Q.tagName);ve.prefix=_e.prefix,ve.local=_e.local,ve.uri=ve.ns[_e.prefix]||"",ve.prefix&&!ve.uri&&(Ee(Q,"Unbound namespace prefix: "+(0,y.default)(Q.tagName)),ve.uri=_e.prefix);var Ae=Q.tags[Q.tags.length-1]||Q;ve.ns&&Ae.ns!==ve.ns&&(0,a.default)(ve.ns).forEach(function(yt){de(Q,"onopennamespace",{prefix:yt,uri:ve.ns[yt]})});for(var Qe=0,tt=Q.attribList.length;Qe",Q.tagName="",Q.state=K.SCRIPT;return}de(Q,"onscript",Q.script),Q.script=""}var J=Q.tags.length,ve=Q.tagName;Q.strict||(ve=ve[Q.looseCase]());for(var _e=ve;J--;){var Ae=Q.tags[J];if(Ae.name!==_e)Ee(Q,"Unexpected close tag");else break}if(J<0){Ee(Q,"Unmatched closing tag: "+Q.tagName),Q.textNode+="",Q.state=K.TEXT;return}Q.tagName=ve;for(var Qe=Q.tags.length;Qe-- >J;){var tt=Q.tag=Q.tags.pop();Q.tagName=Q.tag.name,de(Q,"onclosetag",Q.tagName);var dt={};for(var mt in tt.ns)dt[mt]=tt.ns[mt];var vt=Q.tags[Q.tags.length-1]||Q;Q.opt.xmlns&&tt.ns!==vt.ns&&(0,a.default)(tt.ns).forEach(function(Et){var Ye=tt.ns[Et];de(Q,"onclosenamespace",{prefix:Et,uri:Ye})})}J===0&&(Q.closedRoot=!0),Q.tagName=Q.attribValue=Q.attribName="",Q.attribList.length=0,Q.state=K.TEXT}function ae(Q){var J=Q.entity,ve=J.toLowerCase(),_e,Ae="";return Q.ENTITIES[J]?Q.ENTITIES[J]:Q.ENTITIES[ve]?Q.ENTITIES[ve]:(J=ve,J.charAt(0)==="#"&&(J.charAt(1)==="x"?(J=J.slice(2),_e=parseInt(J,16),Ae=_e.toString(16)):(J=J.slice(1),_e=parseInt(J,10),Ae=_e.toString(10))),J=J.replace(/^0+/,""),isNaN(_e)||Ae.toLowerCase()!==J?(Ee(Q,"Invalid character entity"),"&"+Q.entity+";"):(0,T.default)(_e))}function Oe(Q,J){J==="<"?(Q.state=K.OPEN_WAKA,Q.startTagPosition=Q.position):H(J)||(Ee(Q,"Non-whitespace before first tag."),Q.textNode=J,Q.state=K.TEXT)}function se(Q,J){var ve="";return J",Q.tagName="",Q.state=K.SCRIPT;return}de(Q,"onscript",Q.script),Q.script=""}var J=Q.tags.length,ve=Q.tagName;Q.strict||(ve=ve[Q.looseCase]());for(var _e=ve;J--;){var Ae=Q.tags[J];if(Ae.name!==_e)Ee(Q,"Unexpected close tag");else break}if(J<0){Ee(Q,"Unmatched closing tag: "+Q.tagName),Q.textNode+="",Q.state=K.TEXT;return}Q.tagName=ve;for(var Qe=Q.tags.length;Qe-- >J;){var tt=Q.tag=Q.tags.pop();Q.tagName=Q.tag.name,de(Q,"onclosetag",Q.tagName);var dt={};for(var mt in tt.ns)dt[mt]=tt.ns[mt];var vt=Q.tags[Q.tags.length-1]||Q;Q.opt.xmlns&&tt.ns!==vt.ns&&(0,a.default)(tt.ns).forEach(function(yt){var Ye=tt.ns[yt];de(Q,"onclosenamespace",{prefix:yt,uri:Ye})})}J===0&&(Q.closedRoot=!0),Q.tagName=Q.attribValue=Q.attribName="",Q.attribList.length=0,Q.state=K.TEXT}function ae(Q){var J=Q.entity,ve=J.toLowerCase(),_e,Ae="";return Q.ENTITIES[J]?Q.ENTITIES[J]:Q.ENTITIES[ve]?Q.ENTITIES[ve]:(J=ve,J.charAt(0)==="#"&&(J.charAt(1)==="x"?(J=J.slice(2),_e=parseInt(J,16),Ae=_e.toString(16)):(J=J.slice(1),_e=parseInt(J,10),Ae=_e.toString(10))),J=J.replace(/^0+/,""),isNaN(_e)||Ae.toLowerCase()!==J?(Ee(Q,"Invalid character entity"),"&"+Q.entity+";"):(0,T.default)(_e))}function Oe(Q,J){J==="<"?(Q.state=K.OPEN_WAKA,Q.startTagPosition=Q.position):H(J)||(Ee(Q,"Non-whitespace before first tag."),Q.textNode=J,Q.state=K.TEXT)}function se(Q,J){var ve="";return J"?(de(J,"onsgmldeclaration",J.sgmlDecl),J.sgmlDecl="",J.state=K.TEXT):(D(_e)&&(J.state=K.SGML_DECL_QUOTED),J.sgmlDecl+=_e);continue;case K.SGML_DECL_QUOTED:_e===J.q&&(J.state=K.SGML_DECL,J.q=""),J.sgmlDecl+=_e;continue;case K.DOCTYPE:_e===">"?(J.state=K.TEXT,de(J,"ondoctype",J.doctype),J.doctype=!0):(J.doctype+=_e,_e==="["?J.state=K.DOCTYPE_DTD:D(_e)&&(J.state=K.DOCTYPE_QUOTED,J.q=_e));continue;case K.DOCTYPE_QUOTED:J.doctype+=_e,_e===J.q&&(J.q="",J.state=K.DOCTYPE);continue;case K.DOCTYPE_DTD:J.doctype+=_e,_e==="]"?J.state=K.DOCTYPE:D(_e)&&(J.state=K.DOCTYPE_DTD_QUOTED,J.q=_e);continue;case K.DOCTYPE_DTD_QUOTED:J.doctype+=_e,_e===J.q&&(J.state=K.DOCTYPE_DTD,J.q="");continue;case K.COMMENT:_e==="-"?J.state=K.COMMENT_ENDING:J.comment+=_e;continue;case K.COMMENT_ENDING:_e==="-"?(J.state=K.COMMENT_ENDED,J.comment=Te(J.opt,J.comment),J.comment&&de(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+_e,J.state=K.COMMENT);continue;case K.COMMENT_ENDED:_e!==">"?(Ee(J,"Malformed comment"),J.comment+="--"+_e,J.state=K.COMMENT):J.state=K.TEXT;continue;case K.CDATA:_e==="]"?J.state=K.CDATA_ENDING:J.cdata+=_e;continue;case K.CDATA_ENDING:_e==="]"?J.state=K.CDATA_ENDING_2:(J.cdata+="]"+_e,J.state=K.CDATA);continue;case K.CDATA_ENDING_2:_e===">"?(J.cdata&&de(J,"oncdata",J.cdata),de(J,"onclosecdata"),J.cdata="",J.state=K.TEXT):_e==="]"?J.cdata+="]":(J.cdata+="]]"+_e,J.state=K.CDATA);continue;case K.PROC_INST:_e==="?"?J.state=K.PROC_INST_ENDING:H(_e)?J.state=K.PROC_INST_BODY:J.procInstName+=_e;continue;case K.PROC_INST_BODY:if(!J.procInstBody&&H(_e))continue;_e==="?"?J.state=K.PROC_INST_ENDING:J.procInstBody+=_e;continue;case K.PROC_INST_ENDING:_e===">"?(de(J,"onprocessinginstruction",{name:J.procInstName,body:J.procInstBody}),J.procInstName=J.procInstBody="",J.state=K.TEXT):(J.procInstBody+="?"+_e,J.state=K.PROC_INST_BODY);continue;case K.OPEN_TAG:F(L,_e)?J.tagName+=_e:(ue(J),_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:(H(_e)||Ee(J,"Invalid character in tag name"),J.state=K.ATTRIB));continue;case K.OPEN_TAG_SLASH:_e===">"?(me(J,!0),re(J)):(Ee(J,"Forward-slash in opening tag not followed by >"),J.state=K.ATTRIB);continue;case K.ATTRIB:if(H(_e))continue;_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:F(U,_e)?(J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):Ee(J,"Invalid attribute name");continue;case K.ATTRIB_NAME:_e==="="?J.state=K.ATTRIB_VALUE:_e===">"?(Ee(J,"Attribute without value"),J.attribValue=J.attribName,$(J),me(J)):H(_e)?J.state=K.ATTRIB_NAME_SAW_WHITE:F(L,_e)?J.attribName+=_e:Ee(J,"Invalid attribute name");continue;case K.ATTRIB_NAME_SAW_WHITE:if(_e==="=")J.state=K.ATTRIB_VALUE;else{if(H(_e))continue;Ee(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",de(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",_e===">"?me(J):F(U,_e)?(J.attribName=_e,J.state=K.ATTRIB_NAME):(Ee(J,"Invalid attribute name"),J.state=K.ATTRIB)}continue;case K.ATTRIB_VALUE:if(H(_e))continue;D(_e)?(J.q=_e,J.state=K.ATTRIB_VALUE_QUOTED):(Ee(J,"Unquoted attribute value"),J.state=K.ATTRIB_VALUE_UNQUOTED,J.attribValue=_e);continue;case K.ATTRIB_VALUE_QUOTED:if(_e!==J.q){_e==="&"?J.state=K.ATTRIB_VALUE_ENTITY_Q:J.attribValue+=_e;continue}$(J),J.q="",J.state=K.ATTRIB_VALUE_CLOSED;continue;case K.ATTRIB_VALUE_CLOSED:H(_e)?J.state=K.ATTRIB:_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:F(U,_e)?(Ee(J,"No whitespace between attributes"),J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):Ee(J,"Invalid attribute name");continue;case K.ATTRIB_VALUE_UNQUOTED:if(!W(_e)){_e==="&"?J.state=K.ATTRIB_VALUE_ENTITY_U:J.attribValue+=_e;continue}$(J),_e===">"?me(J):J.state=K.ATTRIB;continue;case K.CLOSE_TAG:if(J.tagName)_e===">"?re(J):F(L,_e)?J.tagName+=_e:J.script?(J.script+=""?re(J):Ee(J,"Invalid characters in closing tag");continue;case K.TEXT_ENTITY:case K.ATTRIB_VALUE_ENTITY_Q:case K.ATTRIB_VALUE_ENTITY_U:var tt,dt;switch(J.state){case K.TEXT_ENTITY:tt=K.TEXT,dt="textNode";break;case K.ATTRIB_VALUE_ENTITY_Q:tt=K.ATTRIB_VALUE_QUOTED,dt="attribValue";break;case K.ATTRIB_VALUE_ENTITY_U:tt=K.ATTRIB_VALUE_UNQUOTED,dt="attribValue";break}_e===";"?(J[dt]+=ae(J),J.entity="",J.state=tt):F(J.entity.length?V:N,_e)?J.entity+=_e:(Ee(J,"Invalid character in entity name"),J[dt]+="&"+J.entity+_e,J.entity="",J.state=tt);continue;default:throw new Error(J,"Unknown state: "+J.state)}}return J.position>=J.bufferCheckPosition&&d(J),J}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var Q=String.fromCharCode,J=Math.floor,ve=function(){var Ae=16384,Qe=[],tt,dt,mt=-1,vt=arguments.length;if(!vt)return"";for(var Et="";++mt1114111||J(Ye)!==Ye)throw RangeError("Invalid code point: "+Ye);Ye<=65535?Qe.push(Ye):(Ye-=65536,tt=(Ye>>10)+55296,dt=Ye%1024+56320,Qe.push(tt,dt)),(mt+1===vt||Qe.length>Ae)&&(Et+=Q.apply(null,Qe),Qe.length=0)}return Et};e.default?Object.defineProperty(String,"fromCodePoint",{value:ve,configurable:!0,writable:!0}):String.fromCodePoint=ve}()})(typeof o=="undefined"?(void 0).sax={}:o)}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(k,z,o){z.exports=T;var P=k("events").EventEmitter,g=k("inherits");g(T,P),T.Readable=k("readable-stream/readable.js"),T.Writable=k("readable-stream/writable.js"),T.Duplex=k("readable-stream/duplex.js"),T.Transform=k("readable-stream/transform.js"),T.PassThrough=k("readable-stream/passthrough.js"),T.Stream=T;function T(){P.call(this)}T.prototype.pipe=function(b,y){var x=this;function O(i){b.writable&&(b.write(i)===!1&&x.pause&&x.pause())}x.on("data",O);function m(){x.readable&&x.resume&&x.resume()}b.on("drain",m),!b._isStdio&&(!y||y.end!==!1)&&(x.on("end",f),x.on("close",a));var e=!1;function f(){if(e)return;e=!0,b.end()}function a(){if(e)return;e=!0,typeof b.destroy=="function"&&b.destroy()}function u(i){if(r(),P.listenerCount(this,"error")===0)throw i}x.on("error",u),b.on("error",u);function r(){x.removeListener("data",O),b.removeListener("drain",m),x.removeListener("end",f),x.removeListener("close",a),x.removeListener("error",u),b.removeListener("error",u),x.removeListener("end",r),x.removeListener("close",r),b.removeListener("close",r)}return x.on("end",r),x.on("close",r),b.on("close",r),b.emit("pipe",x),b}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(k,z,o){(function(P){var g=k("./lib/request"),T=k("./lib/response"),b=k("xtend"),y=k("builtin-status-codes"),x=k("url"),O=o;O.request=function(m,e){typeof m=="string"?m=x.parse(m):m=b(m);var f=P.location.protocol.search(/^https?:$/)===-1?"http:":"",a=m.protocol||f,u=m.hostname||m.host,r=m.port,i=m.path||"/";u&&u.indexOf(":")!==-1&&(u="["+u+"]"),m.url=(u?a+"//"+u:"")+(r?":"+r:"")+i,m.method=(m.method||"GET").toUpperCase(),m.headers=m.headers||{};var n=new g(m);return e&&n.on("response",e),n},O.get=function(e,f){var a=O.request(e,f);return a.end(),a},O.ClientRequest=g,O.IncomingMessage=T.IncomingMessage,O.Agent=function(){},O.Agent.defaultMaxSockets=4,O.globalAgent=new O.Agent,O.STATUS_CODES=y,O.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(k,z,o){(function(P){"use strict";o.fetch=O(P.fetch)&&O(P.ReadableStream),o.writableStream=O(P.WritableStream),o.abortController=O(P.AbortController),o.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),o.blobConstructor=!0}catch(m){}var g;function T(){if(g!==void 0)return g;if(P.XMLHttpRequest){g=new P.XMLHttpRequest;try{g.open("GET",P.XDomainRequest?"/":"https://example.com")}catch(m){g=null}}else g=null;return g}function b(m){var e=T();if(!e)return!1;try{return e.responseType=m,e.responseType===m}catch(f){}return!1}var y=typeof P.ArrayBuffer!="undefined",x=y&&O(P.ArrayBuffer.prototype.slice);o.arraybuffer=o.fetch||y&&b("arraybuffer"),o.msstream=!o.fetch&&x&&b("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&y&&b("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||(T()?O(T().overrideMimeType):!1),o.vbArray=O(P.VBArray);function O(m){return typeof m=="function"}g=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,z,o){(function(P,g,T){"use strict";var b=k("babel-runtime/core-js/object/keys"),y=x(b);function x(d){return d&&d.__esModule?d:{default:d}}var O=k("./capability"),m=k("inherits"),e=k("./response"),f=k("readable-stream"),a=k("to-arraybuffer"),u=e.IncomingMessage,r=e.readyStates;function i(d,s){return O.fetch&&s?"fetch":O.mozchunkedarraybuffer?"moz-chunked-arraybuffer":O.msstream?"ms-stream":O.arraybuffer&&d?"arraybuffer":O.vbArray&&d?"text:vbarray":"text"}var n=z.exports=function(d){var s=this;f.Writable.call(s),s._opts=d,s._body=[],s._headers={},d.auth&&s.setHeader("Authorization","Basic "+new T(d.auth).toString("base64")),(0,y.default)(d.headers).forEach(function(E){s.setHeader(E,d.headers[E])});var c,w=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!O.abortController)w=!1,c=!0;else if(d.mode==="prefer-streaming")c=!1;else if(d.mode==="allow-wrong-content-type")c=!O.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")c=!0;else throw new Error("Invalid value for opts.mode");s._mode=i(c,w),s._fetchTimer=null,s.on("finish",function(){s._onFinish()})};m(n,f.Writable),n.prototype.setHeader=function(d,s){var c=this,w=d.toLowerCase();if(h.indexOf(w)!==-1)return;c._headers[w]={name:d,value:s}},n.prototype.getHeader=function(d){var s=this._headers[d.toLowerCase()];return s?s.value:null},n.prototype.removeHeader=function(d){var s=this;delete s._headers[d.toLowerCase()]},n.prototype._onFinish=function(){var d=this;if(d._destroyed)return;var s=d._opts,c=d._headers,w=null;s.method!=="GET"&&s.method!=="HEAD"&&(O.arraybuffer?w=a(T.concat(d._body)):O.blobConstructor?w=new g.Blob(d._body.map(function(S){return a(S)}),{type:(c["content-type"]||{}).value||""}):w=T.concat(d._body).toString());var E=[];if((0,y.default)(c).forEach(function(S){var _=c[S].name,A=c[S].value;Array.isArray(A)?A.forEach(function(U){E.push([_,U])}):E.push([_,A])}),d._mode==="fetch"){var v=null,R=null;if(O.abortController){var M=new AbortController;v=M.signal,d._fetchAbortController=M,"requestTimeout"in s&&s.requestTimeout!==0&&(d._fetchTimer=g.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},s.requestTimeout))}g.fetch(d._opts.url,{method:d._opts.method,headers:E,body:w||void 0,mode:"cors",credentials:s.withCredentials?"include":"same-origin",signal:v}).then(function(S){d._fetchResponse=S,d._connect()},function(S){g.clearTimeout(d._fetchTimer),d._destroyed||d.emit("error",S)})}else{var C=d._xhr=new g.XMLHttpRequest;try{C.open(d._opts.method,d._opts.url,!0)}catch(S){P.nextTick(function(){d.emit("error",S)});return}"responseType"in C&&(C.responseType=d._mode.split(":")[0]),"withCredentials"in C&&(C.withCredentials=!!s.withCredentials),d._mode==="text"&&"overrideMimeType"in C&&C.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in s&&(C.timeout=s.requestTimeout,C.ontimeout=function(){d.emit("requestTimeout")}),E.forEach(function(S){C.setRequestHeader(S[0],S[1])}),d._response=null,C.onreadystatechange=function(){switch(C.readyState){case r.LOADING:case r.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(C.onprogress=function(){d._onXHRProgress()}),C.onerror=function(){if(d._destroyed)return;d.emit("error",new Error("XHR error"))};try{C.send(w)}catch(S){P.nextTick(function(){d.emit("error",S)});return}}};function l(d){try{var s=d.status;return s!==null&&s!==0}catch(c){return!1}}n.prototype._onXHRProgress=function(){var d=this;if(!l(d._xhr)||d._destroyed)return;d._response||d._connect(),d._response._onXHRProgress()},n.prototype._connect=function(){var d=this;if(d._destroyed)return;d._response=new u(d._xhr,d._fetchResponse,d._mode,d._fetchTimer),d._response.on("error",function(s){d.emit("error",s)}),d.emit("response",d._response)},n.prototype._write=function(d,s,c){var w=this;w._body.push(d),c()},n.prototype.abort=n.prototype.destroy=function(){var d=this;d._destroyed=!0,g.clearTimeout(d._fetchTimer),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort()},n.prototype.end=function(d,s,c){var w=this;typeof d=="function"&&(c=d,d=void 0),f.Writable.prototype.end.call(w,d,s,c)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(k,z,o){(function(P,g,T){"use strict";var b=k("babel-runtime/core-js/promise"),y=x(b);function x(u){return u&&u.__esModule?u:{default:u}}var O=k("./capability"),m=k("inherits"),e=k("readable-stream"),f=o.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=o.IncomingMessage=function(u,r,i,n){var l=this;if(e.Readable.call(l),l._mode=i,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){P.nextTick(function(){l.emit("close")})}),i==="fetch"){var h=function v(){s.read().then(function(R){if(l._destroyed)return;if(R.done){g.clearTimeout(n),l.push(null);return}l.push(new T(R.value)),v()}).catch(function(R){g.clearTimeout(n),l._destroyed||l.emit("error",R)})};if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEach(function(v,R){l.headers[R.toLowerCase()]=v,l.rawHeaders.push(R,v)}),O.writableStream){var d=new WritableStream({write:function(R){return new y.default(function(M,C){l._destroyed?C():l.push(new T(R))?M():l._resumeFetch=M})},close:function(){g.clearTimeout(n),l._destroyed||l.push(null)},abort:function(R){l._destroyed||l.emit("error",R)}});try{r.body.pipeTo(d).catch(function(v){g.clearTimeout(n),l._destroyed||l.emit("error",v)});return}catch(v){}}var s=r.body.getReader();h()}else{l._xhr=u,l._pos=0,l.url=u.responseURL,l.statusCode=u.status,l.statusMessage=u.statusText;var c=u.getAllResponseHeaders().split(/\r?\n/);if(c.forEach(function(v){var R=v.match(/^([^:]+):\s*(.*)/);if(R){var M=R[1].toLowerCase();M==="set-cookie"?(l.headers[M]===void 0&&(l.headers[M]=[]),l.headers[M].push(R[2])):l.headers[M]!==void 0?l.headers[M]+=", "+R[2]:l.headers[M]=R[2],l.rawHeaders.push(R[1],R[2])}}),l._charset="x-user-defined",!O.overrideMimeType){var w=l.rawHeaders["mime-type"];if(w){var E=w.match(/;\s*charset=([^;])(;|$)/);E&&(l._charset=E[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};m(a,e.Readable),a.prototype._read=function(){var u=this,r=u._resumeFetch;r&&(u._resumeFetch=null,r())},a.prototype._onXHRProgress=function(){var u=this,r=u._xhr,i=null;switch(u._mode){case"text:vbarray":if(r.readyState!==f.DONE)break;try{i=new g.VBArray(r.responseBody).toArray()}catch(s){}if(i!==null){u.push(new T(i));break}case"text":try{i=r.responseText}catch(s){u._mode="text:vbarray";break}if(i.length>u._pos){var n=i.substr(u._pos);if(u._charset==="x-user-defined"){for(var l=new T(n.length),h=0;hu._pos&&(u.push(new T(new Uint8Array(d.result.slice(u._pos)))),u._pos=d.result.byteLength)},d.onload=function(){u.push(null)},d.readAsArrayBuffer(i);break}u._xhr.readyState===f.DONE&&u._mode!=="ms-stream"&&u.push(null)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(k,z,o){"use strict";var P=k("safe-buffer").Buffer,g=P.isEncoding||function(d){d=""+d;switch(d&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(d){if(!d)return"utf8";for(var s;;)switch(d){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return d;default:if(s)return;d=(""+d).toLowerCase(),s=!0}}function b(d){var s=T(d);if(typeof s!="string"&&(P.isEncoding===g||!g(d)))throw new Error("Unknown encoding: "+d);return s||d}o.StringDecoder=y;function y(d){this.encoding=b(d);var s;switch(this.encoding){case"utf16le":this.text=u,this.end=r,s=4;break;case"utf8":this.fillLast=e,s=4;break;case"base64":this.text=i,this.end=n,s=3;break;default:this.write=l,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=P.allocUnsafe(s)}y.prototype.write=function(d){if(d.length===0)return"";var s,c;if(this.lastNeed){if(s=this.fillLast(d),s===void 0)return"";c=this.lastNeed,this.lastNeed=0}else c=0;return c>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function O(d,s,c){var w=s.length-1;if(w=0?(E>0&&(d.lastNeed=E-1),E):--w=0?(E>0&&(d.lastNeed=E-2),E):--w=0?(E>0&&(E===2?E=0:d.lastNeed=E-3),E):0))}function m(d,s,c){if((s[0]&192)!==128)return d.lastNeed=0,"\uFFFD";if(d.lastNeed>1&&s.length>1){if((s[1]&192)!==128)return d.lastNeed=1,"\uFFFD";if(d.lastNeed>2&&s.length>2&&(s[2]&192)!==128)return d.lastNeed=2,"\uFFFD"}}function e(d){var s=this.lastTotal-this.lastNeed,c=m(this,d,s);if(c!==void 0)return c;if(this.lastNeed<=d.length)return d.copy(this.lastChar,s,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,s,0,d.length),this.lastNeed-=d.length}function f(d,s){var c=O(this,d,s);if(!this.lastNeed)return d.toString("utf8",s);this.lastTotal=c;var w=d.length-(c-this.lastNeed);return d.copy(this.lastChar,0,w),d.toString("utf8",s,w)}function a(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+"\uFFFD":s}function u(d,s){if((d.length-s)%2===0){var c=d.toString("utf16le",s);if(c){var w=c.charCodeAt(c.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",s,d.length-1)}function r(d){var s=d&&d.length?this.write(d):"";if(this.lastNeed){var c=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,c)}return s}function i(d,s){var c=(d.length-s)%3;return c===0?d.toString("base64",s):(this.lastNeed=3-c,this.lastTotal=3,c===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",s,d.length-c))}function n(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+this.lastChar.toString("base64",0,3-this.lastNeed):s}function l(d){return d.toString(this.encoding)}function h(d){return d&&d.length?this.write(d):""}},{"safe-buffer":228}],236:[function(k,z,o){(function(P,g){var T=k("process/browser.js").nextTick,b=Function.prototype.apply,y=Array.prototype.slice,x={},O=0;o.setTimeout=function(){return new m(b.call(setTimeout,window,arguments),clearTimeout)},o.setInterval=function(){return new m(b.call(setInterval,window,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(e){e.close()};function m(e,f){this._id=e,this._clearFn=f}m.prototype.unref=m.prototype.ref=function(){},m.prototype.close=function(){this._clearFn.call(window,this._id)},o.enroll=function(e,f){clearTimeout(e._idleTimeoutId),e._idleTimeout=f},o.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},o._unrefActive=o.active=function(e){clearTimeout(e._idleTimeoutId);var f=e._idleTimeout;f>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},f))},o.setImmediate=typeof P=="function"?P:function(e){var f=O++,a=arguments.length<2?!1:y.call(arguments,1);return x[f]=!0,T(function(){x[f]&&(a?e.apply(null,a):e.call(null),o.clearImmediate(f))}),f},o.clearImmediate=typeof g=="function"?g:function(e){delete x[e]}}).call(this,k("timers").setImmediate,k("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(k,z,o){var P=k("buffer").Buffer;z.exports=function(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(P.isBuffer(g)){for(var T=new Uint8Array(g.length),b=g.length,y=0;y",'"',"`"," ","\r",` +`?(J.line++,J.column=0):J.column++);J.textNode+=Q.substring(Ae,ve-1)}_e==="<"&&!(J.sawRoot&&J.closedRoot&&!J.strict)?(J.state=K.OPEN_WAKA,J.startTagPosition=J.position):(!H(_e)&&(!J.sawRoot||J.closedRoot)&&Ee(J,"Text data outside of root node."),_e==="&"?J.state=K.TEXT_ENTITY:J.textNode+=_e);continue;case K.SCRIPT:_e==="<"?J.state=K.SCRIPT_ENDING:J.script+=_e;continue;case K.SCRIPT_ENDING:_e==="/"?J.state=K.CLOSE_TAG:(J.script+="<"+_e,J.state=K.SCRIPT);continue;case K.OPEN_WAKA:if(_e==="!")J.state=K.SGML_DECL,J.sgmlDecl="";else if(!H(_e))if(F(U,_e))J.state=K.OPEN_TAG,J.tagName=_e;else if(_e==="/")J.state=K.CLOSE_TAG,J.tagName="";else if(_e==="?")J.state=K.PROC_INST,J.procInstName=J.procInstBody="";else{if(Ee(J,"Unencoded <"),J.startTagPosition+1"?(de(J,"onsgmldeclaration",J.sgmlDecl),J.sgmlDecl="",J.state=K.TEXT):(D(_e)&&(J.state=K.SGML_DECL_QUOTED),J.sgmlDecl+=_e);continue;case K.SGML_DECL_QUOTED:_e===J.q&&(J.state=K.SGML_DECL,J.q=""),J.sgmlDecl+=_e;continue;case K.DOCTYPE:_e===">"?(J.state=K.TEXT,de(J,"ondoctype",J.doctype),J.doctype=!0):(J.doctype+=_e,_e==="["?J.state=K.DOCTYPE_DTD:D(_e)&&(J.state=K.DOCTYPE_QUOTED,J.q=_e));continue;case K.DOCTYPE_QUOTED:J.doctype+=_e,_e===J.q&&(J.q="",J.state=K.DOCTYPE);continue;case K.DOCTYPE_DTD:J.doctype+=_e,_e==="]"?J.state=K.DOCTYPE:D(_e)&&(J.state=K.DOCTYPE_DTD_QUOTED,J.q=_e);continue;case K.DOCTYPE_DTD_QUOTED:J.doctype+=_e,_e===J.q&&(J.state=K.DOCTYPE_DTD,J.q="");continue;case K.COMMENT:_e==="-"?J.state=K.COMMENT_ENDING:J.comment+=_e;continue;case K.COMMENT_ENDING:_e==="-"?(J.state=K.COMMENT_ENDED,J.comment=Te(J.opt,J.comment),J.comment&&de(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+_e,J.state=K.COMMENT);continue;case K.COMMENT_ENDED:_e!==">"?(Ee(J,"Malformed comment"),J.comment+="--"+_e,J.state=K.COMMENT):J.state=K.TEXT;continue;case K.CDATA:_e==="]"?J.state=K.CDATA_ENDING:J.cdata+=_e;continue;case K.CDATA_ENDING:_e==="]"?J.state=K.CDATA_ENDING_2:(J.cdata+="]"+_e,J.state=K.CDATA);continue;case K.CDATA_ENDING_2:_e===">"?(J.cdata&&de(J,"oncdata",J.cdata),de(J,"onclosecdata"),J.cdata="",J.state=K.TEXT):_e==="]"?J.cdata+="]":(J.cdata+="]]"+_e,J.state=K.CDATA);continue;case K.PROC_INST:_e==="?"?J.state=K.PROC_INST_ENDING:H(_e)?J.state=K.PROC_INST_BODY:J.procInstName+=_e;continue;case K.PROC_INST_BODY:if(!J.procInstBody&&H(_e))continue;_e==="?"?J.state=K.PROC_INST_ENDING:J.procInstBody+=_e;continue;case K.PROC_INST_ENDING:_e===">"?(de(J,"onprocessinginstruction",{name:J.procInstName,body:J.procInstBody}),J.procInstName=J.procInstBody="",J.state=K.TEXT):(J.procInstBody+="?"+_e,J.state=K.PROC_INST_BODY);continue;case K.OPEN_TAG:F(L,_e)?J.tagName+=_e:(ue(J),_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:(H(_e)||Ee(J,"Invalid character in tag name"),J.state=K.ATTRIB));continue;case K.OPEN_TAG_SLASH:_e===">"?(me(J,!0),re(J)):(Ee(J,"Forward-slash in opening tag not followed by >"),J.state=K.ATTRIB);continue;case K.ATTRIB:if(H(_e))continue;_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:F(U,_e)?(J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):Ee(J,"Invalid attribute name");continue;case K.ATTRIB_NAME:_e==="="?J.state=K.ATTRIB_VALUE:_e===">"?(Ee(J,"Attribute without value"),J.attribValue=J.attribName,$(J),me(J)):H(_e)?J.state=K.ATTRIB_NAME_SAW_WHITE:F(L,_e)?J.attribName+=_e:Ee(J,"Invalid attribute name");continue;case K.ATTRIB_NAME_SAW_WHITE:if(_e==="=")J.state=K.ATTRIB_VALUE;else{if(H(_e))continue;Ee(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",de(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",_e===">"?me(J):F(U,_e)?(J.attribName=_e,J.state=K.ATTRIB_NAME):(Ee(J,"Invalid attribute name"),J.state=K.ATTRIB)}continue;case K.ATTRIB_VALUE:if(H(_e))continue;D(_e)?(J.q=_e,J.state=K.ATTRIB_VALUE_QUOTED):(Ee(J,"Unquoted attribute value"),J.state=K.ATTRIB_VALUE_UNQUOTED,J.attribValue=_e);continue;case K.ATTRIB_VALUE_QUOTED:if(_e!==J.q){_e==="&"?J.state=K.ATTRIB_VALUE_ENTITY_Q:J.attribValue+=_e;continue}$(J),J.q="",J.state=K.ATTRIB_VALUE_CLOSED;continue;case K.ATTRIB_VALUE_CLOSED:H(_e)?J.state=K.ATTRIB:_e===">"?me(J):_e==="/"?J.state=K.OPEN_TAG_SLASH:F(U,_e)?(Ee(J,"No whitespace between attributes"),J.attribName=_e,J.attribValue="",J.state=K.ATTRIB_NAME):Ee(J,"Invalid attribute name");continue;case K.ATTRIB_VALUE_UNQUOTED:if(!W(_e)){_e==="&"?J.state=K.ATTRIB_VALUE_ENTITY_U:J.attribValue+=_e;continue}$(J),_e===">"?me(J):J.state=K.ATTRIB;continue;case K.CLOSE_TAG:if(J.tagName)_e===">"?re(J):F(L,_e)?J.tagName+=_e:J.script?(J.script+=""?re(J):Ee(J,"Invalid characters in closing tag");continue;case K.TEXT_ENTITY:case K.ATTRIB_VALUE_ENTITY_Q:case K.ATTRIB_VALUE_ENTITY_U:var tt,dt;switch(J.state){case K.TEXT_ENTITY:tt=K.TEXT,dt="textNode";break;case K.ATTRIB_VALUE_ENTITY_Q:tt=K.ATTRIB_VALUE_QUOTED,dt="attribValue";break;case K.ATTRIB_VALUE_ENTITY_U:tt=K.ATTRIB_VALUE_UNQUOTED,dt="attribValue";break}_e===";"?(J[dt]+=ae(J),J.entity="",J.state=tt):F(J.entity.length?V:N,_e)?J.entity+=_e:(Ee(J,"Invalid character in entity name"),J[dt]+="&"+J.entity+_e,J.entity="",J.state=tt);continue;default:throw new Error(J,"Unknown state: "+J.state)}}return J.position>=J.bufferCheckPosition&&d(J),J}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var Q=String.fromCharCode,J=Math.floor,ve=function(){var Ae=16384,Qe=[],tt,dt,mt=-1,vt=arguments.length;if(!vt)return"";for(var yt="";++mt1114111||J(Ye)!==Ye)throw RangeError("Invalid code point: "+Ye);Ye<=65535?Qe.push(Ye):(Ye-=65536,tt=(Ye>>10)+55296,dt=Ye%1024+56320,Qe.push(tt,dt)),(mt+1===vt||Qe.length>Ae)&&(yt+=Q.apply(null,Qe),Qe.length=0)}return yt};e.default?Object.defineProperty(String,"fromCodePoint",{value:ve,configurable:!0,writable:!0}):String.fromCodePoint=ve}()})(typeof o=="undefined"?(void 0).sax={}:o)}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(k,z,o){z.exports=T;var P=k("events").EventEmitter,g=k("inherits");g(T,P),T.Readable=k("readable-stream/readable.js"),T.Writable=k("readable-stream/writable.js"),T.Duplex=k("readable-stream/duplex.js"),T.Transform=k("readable-stream/transform.js"),T.PassThrough=k("readable-stream/passthrough.js"),T.Stream=T;function T(){P.call(this)}T.prototype.pipe=function(b,y){var x=this;function O(i){b.writable&&(b.write(i)===!1&&x.pause&&x.pause())}x.on("data",O);function m(){x.readable&&x.resume&&x.resume()}b.on("drain",m),!b._isStdio&&(!y||y.end!==!1)&&(x.on("end",f),x.on("close",a));var e=!1;function f(){if(e)return;e=!0,b.end()}function a(){if(e)return;e=!0,typeof b.destroy=="function"&&b.destroy()}function u(i){if(r(),P.listenerCount(this,"error")===0)throw i}x.on("error",u),b.on("error",u);function r(){x.removeListener("data",O),b.removeListener("drain",m),x.removeListener("end",f),x.removeListener("close",a),x.removeListener("error",u),b.removeListener("error",u),x.removeListener("end",r),x.removeListener("close",r),b.removeListener("close",r)}return x.on("end",r),x.on("close",r),b.on("close",r),b.emit("pipe",x),b}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(k,z,o){(function(P){var g=k("./lib/request"),T=k("./lib/response"),b=k("xtend"),y=k("builtin-status-codes"),x=k("url"),O=o;O.request=function(m,e){typeof m=="string"?m=x.parse(m):m=b(m);var f=P.location.protocol.search(/^https?:$/)===-1?"http:":"",a=m.protocol||f,u=m.hostname||m.host,r=m.port,i=m.path||"/";u&&u.indexOf(":")!==-1&&(u="["+u+"]"),m.url=(u?a+"//"+u:"")+(r?":"+r:"")+i,m.method=(m.method||"GET").toUpperCase(),m.headers=m.headers||{};var n=new g(m);return e&&n.on("response",e),n},O.get=function(e,f){var a=O.request(e,f);return a.end(),a},O.ClientRequest=g,O.IncomingMessage=T.IncomingMessage,O.Agent=function(){},O.Agent.defaultMaxSockets=4,O.globalAgent=new O.Agent,O.STATUS_CODES=y,O.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(k,z,o){(function(P){"use strict";o.fetch=O(P.fetch)&&O(P.ReadableStream),o.writableStream=O(P.WritableStream),o.abortController=O(P.AbortController),o.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),o.blobConstructor=!0}catch(m){}var g;function T(){if(g!==void 0)return g;if(P.XMLHttpRequest){g=new P.XMLHttpRequest;try{g.open("GET",P.XDomainRequest?"/":"https://example.com")}catch(m){g=null}}else g=null;return g}function b(m){var e=T();if(!e)return!1;try{return e.responseType=m,e.responseType===m}catch(f){}return!1}var y=typeof P.ArrayBuffer!="undefined",x=y&&O(P.ArrayBuffer.prototype.slice);o.arraybuffer=o.fetch||y&&b("arraybuffer"),o.msstream=!o.fetch&&x&&b("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&y&&b("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||(T()?O(T().overrideMimeType):!1),o.vbArray=O(P.VBArray);function O(m){return typeof m=="function"}g=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,z,o){(function(P,g,T){"use strict";var b=k("babel-runtime/core-js/object/keys"),y=x(b);function x(d){return d&&d.__esModule?d:{default:d}}var O=k("./capability"),m=k("inherits"),e=k("./response"),f=k("readable-stream"),a=k("to-arraybuffer"),u=e.IncomingMessage,r=e.readyStates;function i(d,s){return O.fetch&&s?"fetch":O.mozchunkedarraybuffer?"moz-chunked-arraybuffer":O.msstream?"ms-stream":O.arraybuffer&&d?"arraybuffer":O.vbArray&&d?"text:vbarray":"text"}var n=z.exports=function(d){var s=this;f.Writable.call(s),s._opts=d,s._body=[],s._headers={},d.auth&&s.setHeader("Authorization","Basic "+new T(d.auth).toString("base64")),(0,y.default)(d.headers).forEach(function(E){s.setHeader(E,d.headers[E])});var c,w=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!O.abortController)w=!1,c=!0;else if(d.mode==="prefer-streaming")c=!1;else if(d.mode==="allow-wrong-content-type")c=!O.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")c=!0;else throw new Error("Invalid value for opts.mode");s._mode=i(c,w),s._fetchTimer=null,s.on("finish",function(){s._onFinish()})};m(n,f.Writable),n.prototype.setHeader=function(d,s){var c=this,w=d.toLowerCase();if(h.indexOf(w)!==-1)return;c._headers[w]={name:d,value:s}},n.prototype.getHeader=function(d){var s=this._headers[d.toLowerCase()];return s?s.value:null},n.prototype.removeHeader=function(d){var s=this;delete s._headers[d.toLowerCase()]},n.prototype._onFinish=function(){var d=this;if(d._destroyed)return;var s=d._opts,c=d._headers,w=null;s.method!=="GET"&&s.method!=="HEAD"&&(O.arraybuffer?w=a(T.concat(d._body)):O.blobConstructor?w=new g.Blob(d._body.map(function(S){return a(S)}),{type:(c["content-type"]||{}).value||""}):w=T.concat(d._body).toString());var E=[];if((0,y.default)(c).forEach(function(S){var _=c[S].name,A=c[S].value;Array.isArray(A)?A.forEach(function(U){E.push([_,U])}):E.push([_,A])}),d._mode==="fetch"){var v=null,R=null;if(O.abortController){var M=new AbortController;v=M.signal,d._fetchAbortController=M,"requestTimeout"in s&&s.requestTimeout!==0&&(d._fetchTimer=g.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},s.requestTimeout))}g.fetch(d._opts.url,{method:d._opts.method,headers:E,body:w||void 0,mode:"cors",credentials:s.withCredentials?"include":"same-origin",signal:v}).then(function(S){d._fetchResponse=S,d._connect()},function(S){g.clearTimeout(d._fetchTimer),d._destroyed||d.emit("error",S)})}else{var C=d._xhr=new g.XMLHttpRequest;try{C.open(d._opts.method,d._opts.url,!0)}catch(S){P.nextTick(function(){d.emit("error",S)});return}"responseType"in C&&(C.responseType=d._mode.split(":")[0]),"withCredentials"in C&&(C.withCredentials=!!s.withCredentials),d._mode==="text"&&"overrideMimeType"in C&&C.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in s&&(C.timeout=s.requestTimeout,C.ontimeout=function(){d.emit("requestTimeout")}),E.forEach(function(S){C.setRequestHeader(S[0],S[1])}),d._response=null,C.onreadystatechange=function(){switch(C.readyState){case r.LOADING:case r.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(C.onprogress=function(){d._onXHRProgress()}),C.onerror=function(){if(d._destroyed)return;d.emit("error",new Error("XHR error"))};try{C.send(w)}catch(S){P.nextTick(function(){d.emit("error",S)});return}}};function l(d){try{var s=d.status;return s!==null&&s!==0}catch(c){return!1}}n.prototype._onXHRProgress=function(){var d=this;if(!l(d._xhr)||d._destroyed)return;d._response||d._connect(),d._response._onXHRProgress()},n.prototype._connect=function(){var d=this;if(d._destroyed)return;d._response=new u(d._xhr,d._fetchResponse,d._mode,d._fetchTimer),d._response.on("error",function(s){d.emit("error",s)}),d.emit("response",d._response)},n.prototype._write=function(d,s,c){var w=this;w._body.push(d),c()},n.prototype.abort=n.prototype.destroy=function(){var d=this;d._destroyed=!0,g.clearTimeout(d._fetchTimer),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort()},n.prototype.end=function(d,s,c){var w=this;typeof d=="function"&&(c=d,d=void 0),f.Writable.prototype.end.call(w,d,s,c)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(k,z,o){(function(P,g,T){"use strict";var b=k("babel-runtime/core-js/promise"),y=x(b);function x(u){return u&&u.__esModule?u:{default:u}}var O=k("./capability"),m=k("inherits"),e=k("readable-stream"),f=o.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=o.IncomingMessage=function(u,r,i,n){var l=this;if(e.Readable.call(l),l._mode=i,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){P.nextTick(function(){l.emit("close")})}),i==="fetch"){var h=function v(){s.read().then(function(R){if(l._destroyed)return;if(R.done){g.clearTimeout(n),l.push(null);return}l.push(new T(R.value)),v()}).catch(function(R){g.clearTimeout(n),l._destroyed||l.emit("error",R)})};if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEach(function(v,R){l.headers[R.toLowerCase()]=v,l.rawHeaders.push(R,v)}),O.writableStream){var d=new WritableStream({write:function(R){return new y.default(function(M,C){l._destroyed?C():l.push(new T(R))?M():l._resumeFetch=M})},close:function(){g.clearTimeout(n),l._destroyed||l.push(null)},abort:function(R){l._destroyed||l.emit("error",R)}});try{r.body.pipeTo(d).catch(function(v){g.clearTimeout(n),l._destroyed||l.emit("error",v)});return}catch(v){}}var s=r.body.getReader();h()}else{l._xhr=u,l._pos=0,l.url=u.responseURL,l.statusCode=u.status,l.statusMessage=u.statusText;var c=u.getAllResponseHeaders().split(/\r?\n/);if(c.forEach(function(v){var R=v.match(/^([^:]+):\s*(.*)/);if(R){var M=R[1].toLowerCase();M==="set-cookie"?(l.headers[M]===void 0&&(l.headers[M]=[]),l.headers[M].push(R[2])):l.headers[M]!==void 0?l.headers[M]+=", "+R[2]:l.headers[M]=R[2],l.rawHeaders.push(R[1],R[2])}}),l._charset="x-user-defined",!O.overrideMimeType){var w=l.rawHeaders["mime-type"];if(w){var E=w.match(/;\s*charset=([^;])(;|$)/);E&&(l._charset=E[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};m(a,e.Readable),a.prototype._read=function(){var u=this,r=u._resumeFetch;r&&(u._resumeFetch=null,r())},a.prototype._onXHRProgress=function(){var u=this,r=u._xhr,i=null;switch(u._mode){case"text:vbarray":if(r.readyState!==f.DONE)break;try{i=new g.VBArray(r.responseBody).toArray()}catch(s){}if(i!==null){u.push(new T(i));break}case"text":try{i=r.responseText}catch(s){u._mode="text:vbarray";break}if(i.length>u._pos){var n=i.substr(u._pos);if(u._charset==="x-user-defined"){for(var l=new T(n.length),h=0;hu._pos&&(u.push(new T(new Uint8Array(d.result.slice(u._pos)))),u._pos=d.result.byteLength)},d.onload=function(){u.push(null)},d.readAsArrayBuffer(i);break}u._xhr.readyState===f.DONE&&u._mode!=="ms-stream"&&u.push(null)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(k,z,o){"use strict";var P=k("safe-buffer").Buffer,g=P.isEncoding||function(d){d=""+d;switch(d&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(d){if(!d)return"utf8";for(var s;;)switch(d){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return d;default:if(s)return;d=(""+d).toLowerCase(),s=!0}}function b(d){var s=T(d);if(typeof s!="string"&&(P.isEncoding===g||!g(d)))throw new Error("Unknown encoding: "+d);return s||d}o.StringDecoder=y;function y(d){this.encoding=b(d);var s;switch(this.encoding){case"utf16le":this.text=u,this.end=r,s=4;break;case"utf8":this.fillLast=e,s=4;break;case"base64":this.text=i,this.end=n,s=3;break;default:this.write=l,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=P.allocUnsafe(s)}y.prototype.write=function(d){if(d.length===0)return"";var s,c;if(this.lastNeed){if(s=this.fillLast(d),s===void 0)return"";c=this.lastNeed,this.lastNeed=0}else c=0;return c>5===6?2:d>>4===14?3:d>>3===30?4:d>>6===2?-1:-2}function O(d,s,c){var w=s.length-1;if(w=0?(E>0&&(d.lastNeed=E-1),E):--w=0?(E>0&&(d.lastNeed=E-2),E):--w=0?(E>0&&(E===2?E=0:d.lastNeed=E-3),E):0))}function m(d,s,c){if((s[0]&192)!==128)return d.lastNeed=0,"\uFFFD";if(d.lastNeed>1&&s.length>1){if((s[1]&192)!==128)return d.lastNeed=1,"\uFFFD";if(d.lastNeed>2&&s.length>2&&(s[2]&192)!==128)return d.lastNeed=2,"\uFFFD"}}function e(d){var s=this.lastTotal-this.lastNeed,c=m(this,d,s);if(c!==void 0)return c;if(this.lastNeed<=d.length)return d.copy(this.lastChar,s,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,s,0,d.length),this.lastNeed-=d.length}function f(d,s){var c=O(this,d,s);if(!this.lastNeed)return d.toString("utf8",s);this.lastTotal=c;var w=d.length-(c-this.lastNeed);return d.copy(this.lastChar,0,w),d.toString("utf8",s,w)}function a(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+"\uFFFD":s}function u(d,s){if((d.length-s)%2===0){var c=d.toString("utf16le",s);if(c){var w=c.charCodeAt(c.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",s,d.length-1)}function r(d){var s=d&&d.length?this.write(d):"";if(this.lastNeed){var c=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,c)}return s}function i(d,s){var c=(d.length-s)%3;return c===0?d.toString("base64",s):(this.lastNeed=3-c,this.lastTotal=3,c===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",s,d.length-c))}function n(d){var s=d&&d.length?this.write(d):"";return this.lastNeed?s+this.lastChar.toString("base64",0,3-this.lastNeed):s}function l(d){return d.toString(this.encoding)}function h(d){return d&&d.length?this.write(d):""}},{"safe-buffer":228}],236:[function(k,z,o){(function(P,g){var T=k("process/browser.js").nextTick,b=Function.prototype.apply,y=Array.prototype.slice,x={},O=0;o.setTimeout=function(){return new m(b.call(setTimeout,window,arguments),clearTimeout)},o.setInterval=function(){return new m(b.call(setInterval,window,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(e){e.close()};function m(e,f){this._id=e,this._clearFn=f}m.prototype.unref=m.prototype.ref=function(){},m.prototype.close=function(){this._clearFn.call(window,this._id)},o.enroll=function(e,f){clearTimeout(e._idleTimeoutId),e._idleTimeout=f},o.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},o._unrefActive=o.active=function(e){clearTimeout(e._idleTimeoutId);var f=e._idleTimeout;f>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},f))},o.setImmediate=typeof P=="function"?P:function(e){var f=O++,a=arguments.length<2?!1:y.call(arguments,1);return x[f]=!0,T(function(){x[f]&&(a?e.apply(null,a):e.call(null),o.clearImmediate(f))}),f},o.clearImmediate=typeof g=="function"?g:function(e){delete x[e]}}).call(this,k("timers").setImmediate,k("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(k,z,o){var P=k("buffer").Buffer;z.exports=function(g){if(g instanceof Uint8Array){if(g.byteOffset===0&&g.byteLength===g.buffer.byteLength)return g.buffer;if(typeof g.buffer.slice=="function")return g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)}if(P.isBuffer(g)){for(var T=new Uint8Array(g.length),b=g.length,y=0;y",'"',"`"," ","\r",` `," "],m=["{","}","|","\\","^","`"].concat(O),e=["'"].concat(m),f=["%","/","?",";","#"].concat(e),a=["/","?","#"],u=255,r=/^[+a-z0-9A-Z_-]{0,63}$/,i=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,n={javascript:!0,"javascript:":!0},l={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},d=k("querystring");function s(v,R,M){if(v&&g.isObject(v)&&v instanceof T)return v;var C=new T;return C.parse(v,R,M),C}T.prototype.parse=function(v,R,M){if(!g.isString(v))throw new TypeError("Parameter 'url' must be a string, not "+typeof v);var C=v.indexOf("?"),S=C!==-1&&C127?Te+="x":Te+=Se[ce];if(!Te.match(r)){var Ee=he.slice(0,W),ue=he.slice(W+1),le=Se.match(i);le&&(Ee.push(le[1]),ue.unshift(le[2])),ue.length&&(U="/"+ue.join(".")+U),this.hostname=Ee.join(".");break}}}this.hostname.length>u?this.hostname="":this.hostname=this.hostname.toLowerCase(),ee||(this.hostname=P.toASCII(this.hostname));var $=this.port?":"+this.port:"",me=this.hostname||"";this.host=me+$,this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),U[0]!=="/"&&(U="/"+U))}if(!n[V])for(var W=0,de=e.length;W0?M.host.split("@"):!1;Te&&(M.auth=Te.shift(),M.host=M.hostname=Te.shift())}return M.search=v.search,M.query=v.query,(!g.isNull(M.pathname)||!g.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!he.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var ce=he.slice(-1)[0],be=(M.host||v.host||he.length>1)&&(ce==="."||ce==="..")||ce==="",Ee=0,ue=he.length;ue>=0;ue--)ce=he[ue],ce==="."?he.splice(ue,1):ce===".."?(he.splice(ue,1),Ee++):Ee&&(he.splice(ue,1),Ee--);if(!K&&!ee)for(;Ee--;Ee)he.unshift("..");K&&he[0]!==""&&(!he[0]||he[0].charAt(0)!=="/")&&he.unshift(""),be&&he.join("/").substr(-1)!=="/"&&he.push("");var le=he[0]===""||he[0]&&he[0].charAt(0)==="/";if(Se){M.hostname=M.host=le?"":he.length?he.shift():"";var Te=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;Te&&(M.auth=Te.shift(),M.host=M.hostname=Te.shift())}return K=K||M.host&&he.length,K&&!le&&he.unshift(""),he.length?M.pathname=he.join("/"):(M.pathname=null,M.path=null),(!g.isNull(M.pathname)||!g.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=v.auth||M.auth,M.slashes=M.slashes||v.slashes,M.href=M.format(),M},T.prototype.parseHost=function(){var v=this.host,R=y.exec(v);R&&(R=R[0],R!==":"&&(this.port=R.substr(1)),v=v.substr(0,v.length-R.length)),v&&(this.hostname=v)}},{"./util":239,punycode:209,querystring:212}],239:[function(k,z,o){"use strict";z.exports={isString:function(P){return typeof P=="string"},isObject:function(P){return typeof P=="object"&&P!==null},isNull:function(P){return P===null},isNullOrUndefined:function(P){return P==null}}},{}],240:[function(k,z,o){(function(P){z.exports=g;function g(b,y){if(T("noDeprecation"))return b;var x=!1;function O(){if(!x){if(T("throwDeprecation"))throw new Error(y);T("traceDeprecation")?console.trace(y):console.warn(y),x=!0}return b.apply(this,arguments)}return O}function T(b){try{if(!P.localStorage)return!1}catch(x){return!1}var y=P.localStorage[b];return y==null?!1:String(y).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(k,z,o){typeof Object.create=="function"?z.exports=function(g,T){g.super_=T,g.prototype=Object.create(T.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})}:z.exports=function(g,T){g.super_=T;var b=function(){};b.prototype=T.prototype,g.prototype=new b,g.prototype.constructor=g}},{}],242:[function(k,z,o){z.exports=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}},{}],243:[function(k,z,o){(function(P,g){var T=/%[sdj%]/g;o.format=function(D){if(!w(D)){for(var W=[],F=0;F=K)return de;switch(de){case"%s":return String(I[F++]);case"%d":return Number(I[F++]);case"%j":try{return JSON.stringify(I[F++])}catch(Se){return"[Circular]"}default:return de}}),he=I[F];F=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),h(W)?F.showHidden=W:W&&o._extend(F,W),v(F.showHidden)&&(F.showHidden=!1),v(F.depth)&&(F.depth=2),v(F.colors)&&(F.colors=!1),v(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=O),f(F,D,F.depth)}o.inspect=x,x.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},x.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function O(D,W){var F=x.styles[W];return F?"["+x.colors[F][0]+"m"+D+"["+x.colors[F][1]+"m":D}function m(D,W){return D}function e(D){var W={};return D.forEach(function(F,I){W[F]=!0}),W}function f(D,W,F){if(D.customInspect&&W&&_(W.inspect)&&W.inspect!==o.inspect&&!(W.constructor&&W.constructor.prototype===W)){var I=W.inspect(F,D);return w(I)||(I=f(D,I,F)),I}var K=a(D,W);if(K)return K;var ee=Object.keys(W),he=e(ee);if(D.showHidden&&(ee=Object.getOwnPropertyNames(W)),S(W)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return u(W);if(ee.length===0){if(_(W)){var de=W.name?": "+W.name:"";return D.stylize("[Function"+de+"]","special")}if(R(W))return D.stylize(RegExp.prototype.toString.call(W),"regexp");if(C(W))return D.stylize(Date.prototype.toString.call(W),"date");if(S(W))return u(W)}var Se="",Te=!1,ce=["{","}"];if(l(W)&&(Te=!0,ce=["[","]"]),_(W)){var be=W.name?": "+W.name:"";Se=" [Function"+be+"]"}if(R(W)&&(Se=" "+RegExp.prototype.toString.call(W)),C(W)&&(Se=" "+Date.prototype.toUTCString.call(W)),S(W)&&(Se=" "+u(W)),ee.length===0&&(!Te||W.length==0))return ce[0]+Se+ce[1];if(F<0)return R(W)?D.stylize(RegExp.prototype.toString.call(W),"regexp"):D.stylize("[Object]","special");D.seen.push(W);var Ee;return Te?Ee=r(D,W,F,he,ee):Ee=ee.map(function(ue){return i(D,W,F,he,ue,Te)}),D.seen.pop(),n(Ee,Se,ce)}function a(D,W){if(v(W))return D.stylize("undefined","undefined");if(w(W)){var F="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(F,"string")}if(c(W))return D.stylize(""+W,"number");if(h(W))return D.stylize(""+W,"boolean");if(d(W))return D.stylize("null","null")}function u(D){return"["+Error.prototype.toString.call(D)+"]"}function r(D,W,F,I,K){for(var ee=[],he=0,de=W.length;he-1&&(ee?de=de.split(` `).map(function(Te){return" "+Te}).join(` @@ -479,8 +479,8 @@ Actual: `+Q.attribValue);else{var Ae=Q.tag,Qe=Q.tags[Q.tags.length-1]||Q;Ae.ns== `},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/promise"),g=e(P),T=k("babel-runtime/core-js/object/get-own-property-names"),b=e(T),y=k("babel-runtime/core-js/object/keys"),x=e(y),O=k("babel-runtime/helpers/typeof"),m=e(O);function e(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,a,u,r,i,n,l,h,d=function(E,v){return function(){return E.apply(v,arguments)}},s=function(E,v){for(var R in v)c.call(v,R)&&(E[R]=v[R]);function M(){this.constructor=E}return M.prototype=v.prototype,E.prototype=new M,E.__super__=v.prototype,E},c={}.hasOwnProperty;l=k("sax"),u=k("events"),f=k("./bom"),n=k("./processors"),h=k("timers").setImmediate,a=k("./defaults").defaults,r=function(E){return(typeof E=="undefined"?"undefined":(0,m.default)(E))==="object"&&E!=null&&(0,x.default)(E).length===0},i=function(E,v,R){var M,C,S;for(M=0,C=E.length;M0&&(L[S.options.childkey]=V),V=L;else if(W){W[S.options.childkey]=W[S.options.childkey]||[],H={};for(U in V){if(!c.call(V,U))continue;H[U]=V[U]}W[S.options.childkey].push(H),delete V["#name"],(0,x.default)(V).length===1&&R in V&&!S.EXPLICIT_CHARKEY&&(V=V[R])}}return C.length>0?S.assignOrPush(W,N,V):(S.options.explicitRoot&&(D=V,V={},V[N]=D),S.resultObject=V,S.saxParser.ended=!0,S.emit("end",S.resultObject))}}(this),M=function(S){return function(_){var A,U;if(U=C[C.length-1],U)return U[R]+=_,S.options.explicitChildren&&S.options.preserveChildrenOrder&&S.options.charsAsChildren&&(S.options.includeWhiteChars||_.replace(/\\n/g,"").trim()!=="")&&(U[S.options.childkey]=U[S.options.childkey]||[],A={"#name":"__text__"},A[R]=_,S.options.normalize&&(A[R]=A[R].replace(/\s{2,}/g," ").trim()),U[S.options.childkey].push(A)),U}}(this),this.saxParser.ontext=M,this.saxParser.oncdata=function(S){return function(_){var A;if(A=M(_),A)return A.cdata=!0}}(this)},E.prototype.parseString=function(v,R){var M;R!=null&&typeof R=="function"&&(this.on("end",function(C){return this.reset(),R(null,C)}),this.on("error",function(C){return this.reset(),R(C)}));try{return v=v.toString(),v.trim()===""?(this.emit("end",null),!0):(v=f.stripBOM(v),this.options.async?(this.remaining=v,h(this.processAsync),this.saxParser):this.saxParser.write(v).close())}catch(C){if(M=C,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw M}else return this.emit("error",M),this.saxParser.errThrown=!0}},E.prototype.parseStringPromise=function(v){return new g.default(function(R){return function(M,C){return R.parseString(v,function(S,_){return S?C(S):M(_)})}}(this))},E}(u),o.parseString=function(w,E,v){var R,M,C;return v!=null?(typeof v=="function"&&(R=v),(typeof E=="undefined"?"undefined":(0,m.default)(E))==="object"&&(M=E)):(typeof E=="function"&&(R=E),M={}),C=new o.Parser(M),C.parseString(w,R)},o.parseStringPromise=function(w,E){var v,R;return(typeof E=="undefined"?"undefined":(0,m.default)(E))==="object"&&(v=E),R=new o.Parser(v),R.parseStringPromise(w)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(k,z,o){"use strict";(function(){"use strict";var P;P=new RegExp(/(?!xmlns)^.*:/),o.normalize=function(g){return g.toLowerCase()},o.firstCharLowerCase=function(g){return g.charAt(0).toLowerCase()+g.slice(1)},o.stripPrefix=function(g){return g.replace(P,"")},o.parseNumbers=function(g){return isNaN(g)||(g=g%1===0?parseInt(g,10):parseFloat(g)),g},o.parseBooleans=function(g){return/^(?:true|false)$/i.test(g)&&(g=g.toLowerCase()==="true"),g}}).call(void 0)},{}],249:[function(k,z,o){"use strict";(function(){"use strict";var P,g,T,b,y=function(m,e){for(var f in e)x.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},x={}.hasOwnProperty;g=k("./defaults"),P=k("./builder"),T=k("./parser"),b=k("./processors"),o.defaults=g.defaults,o.processors=b,o.ValidationError=function(O){y(m,O);function m(e){this.message=e}return m}(Error),o.Builder=P.Builder,o.Parser=T.Parser,o.parseString=T.parseString,o.parseStringPromise=T.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(k,z,o){"use strict";(function(){z.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(k,z,o){"use strict";(function(){z.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/get-prototype-of"),g=O(P),T=k("babel-runtime/helpers/typeof"),b=O(T),y=k("babel-runtime/core-js/object/assign"),x=O(y);function O(m){return m&&m.__esModule?m:{default:m}}(function(){var m,e,f,a,u,r,i,n=[].slice,l={}.hasOwnProperty;m=function(){var d,s,c,w,E,v;if(v=arguments[0],E=2<=arguments.length?n.call(arguments,1):[],u(x.default))x.default.apply(null,arguments);else for(d=0,c=E.length;d":"attribute: {"+m+"}, parent: <"+this.parent.name+">"},O.prototype.isEqualNode=function(m){return m.namespaceURI!==this.namespaceURI||(m.prefix!==this.prefix||m.localName!==this.localName)?!1:!(m.value!==this.value)},O}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function r(){this.constructor=f}return r.prototype=a.prototype,f.prototype=new r,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),x=k("./XMLCharacterData"),z.exports=y=function(e){O(f,e);function f(a,u){if(f.__super__.constructor.call(this,a),u==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(u)}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},f}(x)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x=function(e,f){for(var a in f)O.call(f,a)&&(e[a]=f[a]);function u(){this.constructor=e}return u.prototype=f.prototype,e.prototype=new u,e.__super__=f.prototype,e},O={}.hasOwnProperty;y=k("./XMLNode"),z.exports=b=function(m){x(e,m);function e(f){e.__super__.constructor.call(this,f),this.value=""}return Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),e.prototype.clone=function(){return(0,g.default)(this)},e.prototype.substringData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.appendData=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.insertData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.deleteData=function(f,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.replaceData=function(f,a,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isEqualNode=function(f){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(f)?!(f.data!==this.data):!1},e}(y)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function r(){this.constructor=f}return r.prototype=a.prototype,f.prototype=new r,f.__super__=a.prototype,f},m={}.hasOwnProperty;b=k("./NodeType"),y=k("./XMLCharacterData"),z.exports=x=function(e){O(f,e);function f(a,u){if(f.__super__.constructor.call(this,a),u==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(u)}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},f}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/keys"),g=y(P),T=k("babel-runtime/core-js/object/create"),b=y(T);function y(x){return x&&x.__esModule?x:{default:x}}(function(){var x,O,m;O=k("./XMLDOMErrorHandler"),m=k("./XMLDOMStringList"),z.exports=x=function(){function e(){var f;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new O,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=f=(0,b.default)(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new m((0,g.default)(this.defaultParams))}}),e.prototype.getParameter=function(f){return this.params.hasOwnProperty(f)?this.params[f]:null},e.prototype.canSetParameter=function(f,a){return!0},e.prototype.setParameter=function(f,a){return a!=null?this.params[f]=a:delete this.params[f]},e}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(k,z,o){"use strict";(function(){var P;z.exports=P=function(){function g(){}return g.prototype.handleError=function(T){throw new Error(T)},g}()}).call(void 0)},{}],260:[function(k,z,o){"use strict";(function(){var P;z.exports=P=function(){function g(){}return g.prototype.hasFeature=function(T,b){return!0},g.prototype.createDocumentType=function(T,b,y){throw new Error("This DOM method is not implemented.")},g.prototype.createDocument=function(T,b,y){throw new Error("This DOM method is not implemented.")},g.prototype.createHTMLDocument=function(T){throw new Error("This DOM method is not implemented.")},g.prototype.getFeature=function(T,b){throw new Error("This DOM method is not implemented.")},g}()}).call(void 0)},{}],261:[function(k,z,o){"use strict";(function(){var P;z.exports=P=function(){function g(T){this.arr=T||[]}return Object.defineProperty(g.prototype,"length",{get:function(){return this.arr.length}}),g.prototype.item=function(T){return this.arr[T]||null},g.prototype.contains=function(T){return this.arr.indexOf(T)!==-1},g}()}).call(void 0)},{}],262:[function(k,z,o){"use strict";(function(){var P,g,T,b=function(O,m){for(var e in m)y.call(m,e)&&(O[e]=m[e]);function f(){this.constructor=O}return f.prototype=m.prototype,O.prototype=new f,O.__super__=m.prototype,O},y={}.hasOwnProperty;T=k("./XMLNode"),P=k("./NodeType"),z.exports=g=function(x){b(O,x);function O(m,e,f,a,u,r){if(O.__super__.constructor.call(this,m),e==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(f==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(e));if(!a)throw new Error("Missing DTD attribute type. "+this.debugInfo(e));if(!u)throw new Error("Missing DTD attribute default. "+this.debugInfo(e));if(u.indexOf("#")!==0&&(u="#"+u),!u.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(e));if(r&&!u.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(e));this.elementName=this.stringify.name(e),this.type=P.AttributeDeclaration,this.attributeName=this.stringify.name(f),this.attributeType=this.stringify.dtdAttType(a),r&&(this.defaultValue=this.stringify.dtdAttDefault(r)),this.defaultValueType=u}return O.prototype.toString=function(m){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(m))},O}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(k,z,o){"use strict";(function(){var P,g,T,b=function(O,m){for(var e in m)y.call(m,e)&&(O[e]=m[e]);function f(){this.constructor=O}return f.prototype=m.prototype,O.prototype=new f,O.__super__=m.prototype,O},y={}.hasOwnProperty;T=k("./XMLNode"),P=k("./NodeType"),z.exports=g=function(x){b(O,x);function O(m,e,f){if(O.__super__.constructor.call(this,m),e==null)throw new Error("Missing DTD element name. "+this.debugInfo());f||(f="(#PCDATA)"),Array.isArray(f)&&(f="("+f.join(",")+")"),this.name=this.stringify.name(e),this.type=P.ElementDeclaration,this.value=this.stringify.dtdElementValue(f)}return O.prototype.toString=function(m){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(m))},O}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(k,z,o){"use strict";(function(){var P,g,T,b,y=function(m,e){for(var f in e)x.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},x={}.hasOwnProperty;b=k("./Utility").isObject,T=k("./XMLNode"),P=k("./NodeType"),z.exports=g=function(O){y(m,O);function m(e,f,a,u){if(m.__super__.constructor.call(this,e),a==null)throw new Error("Missing DTD entity name. "+this.debugInfo(a));if(u==null)throw new Error("Missing DTD entity value. "+this.debugInfo(a));if(this.pe=!!f,this.name=this.stringify.name(a),this.type=P.EntityDeclaration,!b(u))this.value=this.stringify.dtdEntityValue(u),this.internal=!0;else{if(!u.pubID&&!u.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(a));if(u.pubID&&!u.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(a));if(this.internal=!1,u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID)),u.nData!=null&&(this.nData=this.stringify.dtdNData(u.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(a))}}return Object.defineProperty(m.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(m.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(m.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(m.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"xmlVersion",{get:function(){return null}}),m.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},m}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,z,o){"use strict";(function(){var P,g,T,b=function(O,m){for(var e in m)y.call(m,e)&&(O[e]=m[e]);function f(){this.constructor=O}return f.prototype=m.prototype,O.prototype=new f,O.__super__=m.prototype,O},y={}.hasOwnProperty;T=k("./XMLNode"),P=k("./NodeType"),z.exports=g=function(x){b(O,x);function O(m,e,f){if(O.__super__.constructor.call(this,m),e==null)throw new Error("Missing DTD notation name. "+this.debugInfo(e));if(!f.pubID&&!f.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(e));this.name=this.stringify.name(e),this.type=P.NotationDeclaration,f.pubID!=null&&(this.pubID=this.stringify.dtdPubID(f.pubID)),f.sysID!=null&&(this.sysID=this.stringify.dtdSysID(f.sysID))}return Object.defineProperty(O.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(O.prototype,"systemId",{get:function(){return this.sysID}}),O.prototype.toString=function(m){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(m))},O}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(k,z,o){"use strict";(function(){var P,g,T,b,y=function(m,e){for(var f in e)x.call(e,f)&&(m[f]=e[f]);function a(){this.constructor=m}return a.prototype=e.prototype,m.prototype=new a,m.__super__=e.prototype,m},x={}.hasOwnProperty;b=k("./Utility").isObject,T=k("./XMLNode"),P=k("./NodeType"),z.exports=g=function(O){y(m,O);function m(e,f,a,u){var r;m.__super__.constructor.call(this,e),b(f)&&(r=f,f=r.version,a=r.encoding,u=r.standalone),f||(f="1.0"),this.type=P.Declaration,this.version=this.stringify.xmlVersion(f),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),u!=null&&(this.standalone=this.stringify.xmlStandalone(u))}return m.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},m}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,z,o){"use strict";(function(){var P,g,T,b,y,x,O,m,e,f=function(r,i){for(var n in i)a.call(i,n)&&(r[n]=i[n]);function l(){this.constructor=r}return l.prototype=i.prototype,r.prototype=new l,r.__super__=i.prototype,r},a={}.hasOwnProperty;e=k("./Utility").isObject,m=k("./XMLNode"),P=k("./NodeType"),g=k("./XMLDTDAttList"),b=k("./XMLDTDEntity"),T=k("./XMLDTDElement"),y=k("./XMLDTDNotation"),O=k("./XMLNamedNodeMap"),z.exports=x=function(u){f(r,u);function r(i,n,l){var h,d,s,c,w,E;if(r.__super__.constructor.call(this,i),this.type=P.DocType,i.children){for(c=i.children,d=0,s=c.length;d=0;)this.up();return this.onEnd()},C.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},C.prototype.openNode=function(S){var _,A,U,L;if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S.type===P.Element&&(this.root=S),A="",S.type===P.Element){this.writerOptions.state=g.OpenTag,A=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<"+S.name,L=S.attribs;for(U in L){if(!M.call(L,U))continue;_=L[U],A+=this.writer.attribute(_,this.writerOptions,this.currentLevel)}A+=(S.children?">":"/>")+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=g.InsideTag}else this.writerOptions.state=g.OpenTag,A=this.writer.indent(S,this.writerOptions,this.currentLevel)+""),A+=this.writer.endline(S,this.writerOptions,this.currentLevel);return this.onData(A,this.currentLevel),S.isOpen=!0}},C.prototype.closeNode=function(S){var _;if(!S.isClosed)return _="",this.writerOptions.state=g.CloseTag,S.type===P.Element?_=this.writer.indent(S,this.writerOptions,this.currentLevel)+""+this.writer.endline(S,this.writerOptions,this.currentLevel):_=this.writer.indent(S,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=g.None,this.onData(_,this.currentLevel),S.isClosed=!0},C.prototype.onData=function(S,_){return this.documentStarted=!0,this.onDataCallback(S,_+1)},C.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},C.prototype.debugInfo=function(S){return S==null?"":"node: <"+S+">"},C.prototype.ele=function(){return this.element.apply(this,arguments)},C.prototype.nod=function(S,_,A){return this.node(S,_,A)},C.prototype.txt=function(S){return this.text(S)},C.prototype.dat=function(S){return this.cdata(S)},C.prototype.com=function(S){return this.comment(S)},C.prototype.ins=function(S,_){return this.instruction(S,_)},C.prototype.dec=function(S,_,A){return this.declaration(S,_,A)},C.prototype.dtd=function(S,_,A){return this.doctype(S,_,A)},C.prototype.e=function(S,_,A){return this.element(S,_,A)},C.prototype.n=function(S,_,A){return this.node(S,_,A)},C.prototype.t=function(S){return this.text(S)},C.prototype.d=function(S){return this.cdata(S)},C.prototype.c=function(S){return this.comment(S)},C.prototype.r=function(S){return this.raw(S)},C.prototype.i=function(S,_){return this.instruction(S,_)},C.prototype.att=function(){return this.currentNode&&this.currentNode.type===P.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.a=function(){return this.currentNode&&this.currentNode.type===P.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},C.prototype.ent=function(S,_){return this.entity(S,_)},C.prototype.pent=function(S,_){return this.pEntity(S,_)},C.prototype.not=function(S,_){return this.notation(S,_)},C}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O=function(f,a){for(var u in a)m.call(a,u)&&(f[u]=a[u]);function r(){this.constructor=f}return r.prototype=a.prototype,f.prototype=new r,f.__super__=a.prototype,f},m={}.hasOwnProperty;x=k("./XMLNode"),b=k("./NodeType"),z.exports=y=function(e){O(f,e);function f(a){f.__super__.constructor.call(this,a),this.type=b.Dummy}return f.prototype.clone=function(){return(0,g.default)(this)},f.prototype.toString=function(a){return""},f}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/create"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b,y,x,O,m,e,f,a,u,r=function(l,h){for(var d in h)i.call(h,d)&&(l[d]=h[d]);function s(){this.constructor=l}return s.prototype=h.prototype,l.prototype=new s,l.__super__=h.prototype,l},i={}.hasOwnProperty;u=k("./Utility"),a=u.isObject,f=u.isFunction,e=u.getValue,m=k("./XMLNode"),b=k("./NodeType"),y=k("./XMLAttribute"),O=k("./XMLNamedNodeMap"),z.exports=x=function(n){r(l,n);function l(h,d,s){var c,w,E,v;if(l.__super__.constructor.call(this,h),d==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(d),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,s!=null&&this.attribute(s),h.type===b.Document&&(this.isRoot=!0,this.documentObject=h,h.rootObject=this,h.children)){for(v=h.children,w=0,E=v.length;w=c;d=0<=c?++s:--s)if(!this.attribs[d].isEqualNode(h.attribs[d]))return!1;return!0},l}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(k,z,o){"use strict";var P=k("babel-runtime/core-js/object/keys"),g=T(P);function T(b){return b&&b.__esModule?b:{default:b}}(function(){var b;z.exports=b=function(){function y(x){this.nodes=x}return Object.defineProperty(y.prototype,"length",{get:function(){return(0,g.default)(this.nodes).length||0}}),y.prototype.clone=function(){return this.nodes=null},y.prototype.getNamedItem=function(x){return this.nodes[x]},y.prototype.setNamedItem=function(x){var O;return O=this.nodes[x.nodeName],this.nodes[x.nodeName]=x,O||null},y.prototype.removeNamedItem=function(x){var O;return O=this.nodes[x],delete this.nodes[x],O||null},y.prototype.item=function(x){return this.nodes[(0,g.default)(this.nodes)[x]]||null},y.prototype.getNamedItemNS=function(x,O){throw new Error("This DOM method is not implemented.")},y.prototype.setNamedItemNS=function(x){throw new Error("This DOM method is not implemented.")},y.prototype.removeNamedItemNS=function(x,O){throw new Error("This DOM method is not implemented.")},y}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(k,z,o){"use strict";(function(){var P,g,T,b,y,x,O,m,e,f,a,u,r,i,n,l,h,d,s,c={}.hasOwnProperty;s=k("./Utility"),d=s.isObject,h=s.isFunction,l=s.isEmpty,n=s.getValue,m=null,T=null,b=null,y=null,x=null,r=null,i=null,u=null,O=null,g=null,a=null,e=null,P=null,z.exports=f=function(){function w(E){this.parent=E,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,m||(m=k("./XMLElement"),T=k("./XMLCData"),b=k("./XMLComment"),y=k("./XMLDeclaration"),x=k("./XMLDocType"),r=k("./XMLRaw"),i=k("./XMLText"),u=k("./XMLProcessingInstruction"),O=k("./XMLDummy"),g=k("./NodeType"),a=k("./XMLNodeList"),e=k("./XMLNamedNodeMap"),P=k("./DocumentPosition"))}return Object.defineProperty(w.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(w.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new a(this.children)),this.childNodeList}}),Object.defineProperty(w.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(w.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(w.prototype,"previousSibling",{get:function(){var v;return v=this.parent.children.indexOf(this),this.parent.children[v-1]||null}}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){var v;return v=this.parent.children.indexOf(this),this.parent.children[v+1]||null}}),Object.defineProperty(w.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(w.prototype,"textContent",{get:function(){var v,R,M,C,S;if(this.nodeType===g.Element||this.nodeType===g.DocumentFragment){for(S="",C=this.children,R=0,M=C.length;R":((R=this.parent)!=null?R.name:void 0)?"node: <"+E+">, parent: <"+this.parent.name+">":"node: <"+E+">"},w.prototype.ele=function(E,v,R){return this.element(E,v,R)},w.prototype.nod=function(E,v,R){return this.node(E,v,R)},w.prototype.txt=function(E){return this.text(E)},w.prototype.dat=function(E){return this.cdata(E)},w.prototype.com=function(E){return this.comment(E)},w.prototype.ins=function(E,v){return this.instruction(E,v)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(E,v,R){return this.declaration(E,v,R)},w.prototype.e=function(E,v,R){return this.element(E,v,R)},w.prototype.n=function(E,v,R){return this.node(E,v,R)},w.prototype.t=function(E){return this.text(E)},w.prototype.d=function(E){return this.cdata(E)},w.prototype.c=function(E){return this.comment(E)},w.prototype.r=function(E){return this.raw(E)},w.prototype.i=function(E,v){return this.instruction(E,v)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(E){return this.importDocument(E)},w.prototype.replaceChild=function(E,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.appendChild=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasChildNodes=function(){return this.children.length!==0},w.prototype.cloneNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isSupported=function(E,v){return!0},w.prototype.hasAttributes=function(){return this.attribs.length!==0},w.prototype.compareDocumentPosition=function(E){var v,R;return v=this,v===E?0:this.document()!==E.document()?(R=P.Disconnected|P.ImplementationSpecific,Math.random()<.5?R|=P.Preceding:R|=P.Following,R):v.isAncestor(E)?P.Contains|P.Preceding:v.isDescendant(E)?P.Contains|P.Following:v.isPreceding(E)?P.Preceding:P.Following},w.prototype.isSameNode=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupPrefix=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isDefaultNamespace=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupNamespaceURI=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(E){var v,R,M;if(E.nodeType!==this.nodeType)return!1;if(E.children.length!==this.children.length)return!1;for(v=R=0,M=this.children.length-1;0<=M?R<=M:R>=M;v=0<=M?++R:--R)if(!this.children[v].isEqualNode(E.children[v]))return!1;return!0},w.prototype.getFeature=function(E,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setUserData=function(E,v,R){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getUserData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.contains=function(E){return E?E===this||this.isDescendant(E):!1},w.prototype.isDescendant=function(E){var v,R,M,C,S;for(S=this.children,M=0,C=S.length;MR},w.prototype.treePosition=function(E){var v,R;return R=0,v=!1,this.foreachTreeNode(this.document(),function(M){if(R++,!v&&M===E)return v=!0}),v?R:-1},w.prototype.foreachTreeNode=function(E,v){var R,M,C,S,_;for(E||(E=this.document()),S=E.children,M=0,C=S.length;M0){for(this.stream.write(" ["),this.stream.write(this.endline(e,f,a)),f.state=g.InsideTag,n=e.children,r=0,i=n.length;r"),this.stream.write(this.endline(e,f,a)),f.state=g.None,this.closeNode(e,f,a)},m.prototype.element=function(e,f,a){var u,r,i,n,l,h,d,s,c,w;a||(a=0),this.openNode(e,f,a),f.state=g.OpenTag,this.stream.write(this.indent(e,f,a)+"<"+e.name),c=e.attribs;for(d in c){if(!x.call(c,d))continue;u=c[d],this.attribute(u,f,a)}if(i=e.children.length,n=i===0?null:e.children[0],i===0||e.children.every(function(E){return(E.type===P.Text||E.type===P.Raw)&&E.value===""}))f.allowEmpty?(this.stream.write(">"),f.state=g.CloseTag,this.stream.write("")):(f.state=g.CloseTag,this.stream.write(f.spaceBeforeSlash+"/>"));else if(f.pretty&&i===1&&(n.type===P.Text||n.type===P.Raw)&&n.value!=null)this.stream.write(">"),f.state=g.InsideTag,f.suppressPrettyCount++,s=!0,this.writeChildNode(n,f,a+1),f.suppressPrettyCount--,s=!1,f.state=g.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(e,f,a)),f.state=g.InsideTag,w=e.children,l=0,h=w.length;l")}return this.stream.write(this.endline(e,f,a)),f.state=g.None,this.closeNode(e,f,a)},m.prototype.processingInstruction=function(e,f,a){return this.stream.write(m.__super__.processingInstruction.call(this,e,f,a))},m.prototype.raw=function(e,f,a){return this.stream.write(m.__super__.raw.call(this,e,f,a))},m.prototype.text=function(e,f,a){return this.stream.write(m.__super__.text.call(this,e,f,a))},m.prototype.dtdAttList=function(e,f,a){return this.stream.write(m.__super__.dtdAttList.call(this,e,f,a))},m.prototype.dtdElement=function(e,f,a){return this.stream.write(m.__super__.dtdElement.call(this,e,f,a))},m.prototype.dtdEntity=function(e,f,a){return this.stream.write(m.__super__.dtdEntity.call(this,e,f,a))},m.prototype.dtdNotation=function(e,f,a){return this.stream.write(m.__super__.dtdNotation.call(this,e,f,a))},m}(b)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,z,o){"use strict";(function(){var P,g,T=function(x,O){for(var m in O)b.call(O,m)&&(x[m]=O[m]);function e(){this.constructor=x}return e.prototype=O.prototype,x.prototype=new e,x.__super__=O.prototype,x},b={}.hasOwnProperty;g=k("./XMLWriterBase"),z.exports=P=function(y){T(x,y);function x(O){x.__super__.constructor.call(this,O)}return x.prototype.document=function(O,m){var e,f,a,u,r;for(m=this.filterOptions(m),u="",r=O.children,f=0,a=r.length;f","]]]]>"),this.assertLegalChar(y))},b.prototype.comment=function(y){if(this.options.noValidation)return y;if(y=""+y||"",y.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+y);return this.assertLegalChar(y)},b.prototype.raw=function(y){return this.options.noValidation?y:""+y||""},b.prototype.attValue=function(y){return this.options.noValidation?y:this.assertLegalChar(this.attEscape(y=""+y||""))},b.prototype.insTarget=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.insValue=function(y){if(this.options.noValidation)return y;if(y=""+y||"",y.match(/\?>/))throw new Error("Invalid processing instruction value: "+y);return this.assertLegalChar(y)},b.prototype.xmlVersion=function(y){if(this.options.noValidation)return y;if(y=""+y||"",!y.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+y);return y},b.prototype.xmlEncoding=function(y){if(this.options.noValidation)return y;if(y=""+y||"",!y.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+y);return this.assertLegalChar(y)},b.prototype.xmlStandalone=function(y){return this.options.noValidation?y:y?"yes":"no"},b.prototype.dtdPubID=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdSysID=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdElementValue=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdAttType=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdAttDefault=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdEntityValue=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.dtdNData=function(y){return this.options.noValidation?y:this.assertLegalChar(""+y||"")},b.prototype.convertAttKey="@",b.prototype.convertPIKey="?",b.prototype.convertTextKey="#text",b.prototype.convertCDataKey="#cdata",b.prototype.convertCommentKey="#comment",b.prototype.convertRawKey="#raw",b.prototype.assertLegalChar=function(y){var x,O;if(this.options.noValidation)return y;if(x="",this.options.version==="1.0"){if(x=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O=y.match(x))throw new Error("Invalid character in string: "+y+" at index "+O.index)}else if(this.options.version==="1.1"&&(x=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O=y.match(x)))throw new Error("Invalid character in string: "+y+" at index "+O.index);return y},b.prototype.assertLegalName=function(y){var x;if(this.options.noValidation)return y;if(this.assertLegalChar(y),x=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!y.match(x))throw new Error("Invalid character in name");return y},b.prototype.textEscape=function(y){var x;return this.options.noValidation?y:(x=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(x,"&").replace(//g,">").replace(/\r/g," "))},b.prototype.attEscape=function(y){var x;return this.options.noValidation?y:(x=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,y.replace(x,"&").replace(/0)?new Array(v).join(w.indent):""},s.prototype.endline=function(c,w,E){return!w.pretty||w.suppressPrettyCount?"":w.newline},s.prototype.attribute=function(c,w,E){var v;return this.openAttribute(c,w,E),v=" "+c.name+'="'+c.value+'"',this.closeAttribute(c,w,E),v},s.prototype.cdata=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+""+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.comment=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+""+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.declaration=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+"",v+=this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.docType=function(c,w,E){var v,R,M,C,S;if(E||(E=0),this.openNode(c,w,E),w.state=g.OpenTag,C=this.indent(c,w,E),C+="0){for(C+=" [",C+=this.endline(c,w,E),w.state=g.InsideTag,S=c.children,R=0,M=S.length;R",C+=this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),C},s.prototype.element=function(c,w,E){var v,R,M,C,S,_,A,U,L,N,V,H,D,W;E||(E=0),N=!1,V="",this.openNode(c,w,E),w.state=g.OpenTag,V+=this.indent(c,w,E)+"<"+c.name,H=c.attribs;for(L in H){if(!d.call(H,L))continue;v=H[L],V+=this.attribute(v,w,E)}if(M=c.children.length,C=M===0?null:c.children[0],M===0||c.children.every(function(F){return(F.type===P.Text||F.type===P.Raw)&&F.value===""}))w.allowEmpty?(V+=">",w.state=g.CloseTag,V+=""+this.endline(c,w,E)):(w.state=g.CloseTag,V+=w.spaceBeforeSlash+"/>"+this.endline(c,w,E));else if(w.pretty&&M===1&&(C.type===P.Text||C.type===P.Raw)&&C.value!=null)V+=">",w.state=g.InsideTag,w.suppressPrettyCount++,N=!0,V+=this.writeChildNode(C,w,E+1),w.suppressPrettyCount--,N=!1,w.state=g.CloseTag,V+=""+this.endline(c,w,E);else{if(w.dontPrettyTextNodes){for(D=c.children,S=0,A=D.length;S"+this.endline(c,w,E),w.state=g.InsideTag,W=c.children,_=0,U=W.length;_",N&&w.suppressPrettyCount--,V+=this.endline(c,w,E),w.state=g.None}return this.closeNode(c,w,E),V},s.prototype.writeChildNode=function(c,w,E){switch(c.type){case P.CData:return this.cdata(c,w,E);case P.Comment:return this.comment(c,w,E);case P.Element:return this.element(c,w,E);case P.Raw:return this.raw(c,w,E);case P.Text:return this.text(c,w,E);case P.ProcessingInstruction:return this.processingInstruction(c,w,E);case P.Dummy:return"";case P.Declaration:return this.declaration(c,w,E);case P.DocType:return this.docType(c,w,E);case P.AttributeDeclaration:return this.dtdAttList(c,w,E);case P.ElementDeclaration:return this.dtdElement(c,w,E);case P.EntityDeclaration:return this.dtdEntity(c,w,E);case P.NotationDeclaration:return this.dtdNotation(c,w,E);default:throw new Error("Unknown XML node type: "+c.constructor.name)}},s.prototype.processingInstruction=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+"",v+=this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.raw=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E),w.state=g.InsideTag,v+=c.value,w.state=g.CloseTag,v+=this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.text=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E),w.state=g.InsideTag,v+=c.value,w.state=g.CloseTag,v+=this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.dtdAttList=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+""+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.dtdElement=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+""+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.dtdEntity=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+""+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.dtdNotation=function(c,w,E){var v;return this.openNode(c,w,E),w.state=g.OpenTag,v=this.indent(c,w,E)+""+this.endline(c,w,E),w.state=g.None,this.closeNode(c,w,E),v},s.prototype.openNode=function(c,w,E){},s.prototype.closeNode=function(c,w,E){},s.prototype.openAttribute=function(c,w,E){},s.prototype.closeAttribute=function(c,w,E){},s}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(k,z,o){"use strict";(function(){var P,g,T,b,y,x,O,m,e,f;f=k("./Utility"),m=f.assign,e=f.isFunction,T=k("./XMLDOMImplementation"),b=k("./XMLDocument"),y=k("./XMLDocumentCB"),O=k("./XMLStringWriter"),x=k("./XMLStreamWriter"),P=k("./NodeType"),g=k("./WriterState"),z.exports.create=function(a,u,r,i){var n,l;if(a==null)throw new Error("Root element needs a name.");return i=m({},u,r,i),n=new b(i),l=n.element(a),i.headless||(n.declaration(i),(i.pubID!=null||i.sysID!=null)&&n.dtd(i)),l},z.exports.begin=function(a,u,r){var i;return e(a)&&(i=[a,u],u=i[0],r=i[1],a={}),u?new y(a,u,r):new b(a)},z.exports.stringWriter=function(a){return new O(a)},z.exports.streamWriter=function(a,u){return new x(a,u)},z.exports.implementation=new T,z.exports.nodeType=P,z.exports.writerState=g}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(k,z,o){z.exports=g;var P=Object.prototype.hasOwnProperty;function g(){for(var T={},b=0;by?a=f(a):a.length>5]|=128<>>9<<4)+14]=u;for(var r=1732584193,i=-271733879,n=-1732584194,l=271733878,h=0;h>16)+(u>>16)+(r>>16);return i<<16|r&65535}function f(a,u){return a<>>32-u}z.exports=function(u){return P.hash(u,T,16)}},{"./helpers":285}],287:[function(k,z,o){"use strict";var P=k("./helpers");function g(O,m){O[m>>5]|=128<<24-m%32,O[(m+64>>9<<4)+15]=m;for(var e=Array(80),f=1732584193,a=-271733879,u=-1732584194,r=271733878,i=-1009589776,n=0;n>16)+(m>>16)+(e>>16);return f<<16|e&65535}function x(O,m){return O<>>32-m}z.exports=function(m){return P.hash(m,g,20,!0)}},{"./helpers":285}],288:[function(k,z,o){"use strict";z.exports=function(){return function(){}}},{}],289:[function(k,z,o){(function(P){"use strict";var g=k("babel-runtime/helpers/typeof"),T=b(g);function b(f){return f&&f.__esModule?f:{default:f}}var y=k("stream"),x=y.Stream,O=k("../lib/common/utils/isArray"),m=O.isArray;z.exports.string=function(a){return typeof a=="string"},z.exports.array=m,z.exports.buffer=P.isBuffer;function e(f){return f instanceof x}z.exports.writableStream=function(a){return e(a)&&typeof a._write=="function"&&(0,T.default)(a._writableState)==="object"}}).call(this,{isBuffer:k("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(k,z,o){"use strict";o.encodeURIComponent=function(P){try{return encodeURIComponent(P)}catch(g){return P}},o.escape=k("escape-html"),o.timestamp=function(g){if(g){var T=g;return typeof T=="string"&&(T=Number(T)),String(g).length===10&&(T*=1e3),new Date(T)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(k,z,o){(function(P,g){"use strict";var T=k("babel-runtime/core-js/json/stringify"),b=O(T),y=k("babel-runtime/helpers/typeof"),x=O(y);function O(w){return w&&w.__esModule?w:{default:w}}var m=k("util"),e=k("url"),f=k("http"),a=k("https"),u=k("debug")("urllib"),r=k("humanize-ms"),i,n=0,l=Math.pow(2,31)-10,h=/^https?:\/\//i;function d(w,E){return w===void 0?E:w}function s(w,E){return function(v,R,M){if(v)return E(v);w({data:R,status:M.statusCode,headers:M.headers,res:M})}}o.TIMEOUTS=[r("300s"),r("300s")];var c=["json","text"];o.request=function(E,v,R){return arguments.length===2&&typeof v=="function"&&(R=v,v=null),typeof R=="function"?o.requestWithCallback(E,v,R):(i||(i=k("any-promise")),new i(function(M,C){o.requestWithCallback(E,v,s(M,C))}))},o.requestWithCallback=function(E,v,R){if(!E||typeof E!="string"&&(typeof E=="undefined"?"undefined":(0,x.default)(E))!=="object"){var M=m.format("expect request url to be a string or a http request options, but got %j",E);throw new Error(M)}arguments.length===2&&typeof v=="function"&&(R=v,v=null),v=v||{},n>=l&&(n=0);var C=++n;v.requestUrls=v.requestUrls||[];var S={requestId:C,url:E,args:v,ctx:v.ctx};v.emitter&&v.emitter.emit("request",S),v.timeout=v.timeout||o.TIMEOUTS,v.maxRedirects=v.maxRedirects||10,v.streaming=v.streaming||v.customResponse;var _=Date.now(),A;typeof E=="string"?(h.test(E)||(E="http://"+E),A=e.parse(E)):A=E;var U=(v.type||v.method||A.method||"GET").toUpperCase(),L=A.port||80,N=f,V=d(v.agent,o.agent),H=v.fixJSONCtlChars;A.protocol==="https:"&&(N=a,V=d(v.httpsAgent,o.httpsAgent),A.port||(L=443));var D={host:A.hostname||A.host||"localhost",path:A.path||"/",method:U,port:L,agent:V,headers:v.headers||{},lookup:v.lookup};Array.isArray(v.timeout)?D.requestTimeout=v.timeout[v.timeout.length-1]:typeof v.timeout!="undefined"&&(D.requestTimeout=v.timeout);for(var W=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],F=0;F=0)return u("Request#%d %s: got digest auth header WWW-Authenticate: %s",C,E,it),v.headers=v.headers||{},v.headers.Authorization=digestAuthHeader(D.method,D.path,it,v.digestAuth),u("Request#%d %s: auth with digest header: %s",C,E,v.headers.Authorization),jt.headers["set-cookie"]&&(v.headers.Cookie=jt.headers["set-cookie"].join(";")),o.requestWithCallback(E,v,yt)}var He=Date.now()-_;se&&(se.contentDownload=He),u("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",He,$,me,D.method,D.host,D.path,le,se);var Ge={status:me,statusCode:me,headers:Pt,size:$,aborted:re,rt:He,keepAliveSocket:le,data:ft,requestUrls:v.requestUrls,timing:se,remoteAddress:ae,remotePort:Oe};if(Ue){var Ce="";V&&typeof V.getCurrentStatus=="function"&&(Ce=", agent status: "+(0,b.default)(V.getCurrentStatus())),Ue.message+=", "+D.method+" "+E+" "+me+" (connected: "+ue+", keepalive socket: "+le+Ce+`) -headers: `+(0,b.default)(Pt),Ue.data=ft,Ue.path=D.path,Ue.status=me,Ue.headers=Pt,Ue.res=Ge}yt(Ue,ft,v.streaming?jt:Ge),v.emitter&&(S.url=E,S.socket=Et&&Et.connection,S.options=D,S.size=Se,v.emitter.emit("response",{requestId:C,error:Ue,ctx:v.ctx,req:S,res:Ge}))}function ve(Ue){var ft=null;if(v.followRedirect&&statuses.redirect[Ue.statusCode]){v._followRedirectCount=(v._followRedirectCount||0)+1;var jt=Ue.headers.location;if(!jt)ft=new Error("Got statusCode "+Ue.statusCode+" but cannot resolve next location from headers"),ft.name="FollowRedirectError";else if(v._followRedirectCount>v.maxRedirects)ft=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+E),ft.name="MaxRedirectError";else{var yt=v.formatRedirectUrl?v.formatRedirectUrl(E,jt):e.resolve(E,jt);u("Request#%d %s: `redirected` from %s to %s",C,D.path,E,yt),Q(),v.headers&&v.headers.Host&&h.test(jt)&&(v.headers.Host=null);var Pt=R;return R=null,o.requestWithCallback(yt,v,Pt),{redirect:!0,error:null}}}return{redirect:!1,error:ft}}!D.headers["User-Agent"]&&!D.headers["user-agent"]&&(D.headers["User-Agent"]=navigator.userAgent),v.gzip&&(!D.headers["Accept-Encoding"]&&!D.headers["accept-encoding"]&&(D.headers["Accept-Encoding"]="gzip"));function _e(Ue,ft,jt){var yt=Ue.headers["content-encoding"];return jt(null,ft,yt)}var Ae=v.writeStream;u("Request#%d %s %s with headers %j, options.path: %s",C,U,E,D.headers,D.path),v.requestUrls.push(E);function Qe(Ue){if(se&&(se.waiting=Date.now()-_),u("Request#%d %s `req response` event emit: status %d, headers: %j",C,E,Ue.statusCode,Ue.headers),v.streaming){var ft=ve(Ue);if(ft.redirect){Ue.resume();return}return ft.error?(Ue.resume(),J(ft.error,null,Ue)):J(null,null,Ue)}if(Ue.on("close",function(){u("Request#%d %s: `res close` event emit, total size %d",C,E,$)}),Ue.on("error",function(){u("Request#%d %s: `res error` event emit, total size %d",C,E,$)}),Ue.on("aborted",function(){re=!0,u("Request#%d %s: `res aborted` event emit, total size %d",C,E,$)}),Ae){var ft=ve(Ue);if(ft.redirect){Ue.resume();return}return ft.error?(Ue.resume(),Ae.end(),J(ft.error,null,Ue)):(v.consumeWriteStream===!1?Ue.on("end",J.bind(null,null,null,Ue)):isNode010||isNode012?first([[Ae,"close"],[Ue,"aborted"]],function(Pt,it,He){u("Request#%d %s: writeStream or res %s event emitted",C,E,He),J(Ee||null,null,Ue)}):Ae.on("close",function(){u("Request#%d %s: writeStream close event emitted",C,E),J(Ee||null,null,Ue)}),Ue.pipe(Ae))}var jt=[];Ue.on("data",function(yt){u("Request#%d %s: `res data` event emit, size %d",C,E,yt.length),$+=yt.length,jt.push(yt)}),Ue.on("end",function(){var yt=g.concat(jt,$);if(u("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",C,E,$,Ue._dumped),Ee)return J(Ee,yt,Ue);var Pt=ve(Ue);if(Pt.error)return J(Pt.error,yt,Ue);if(Pt.redirect)return;_e(Ue,yt,function(it,He,Ge){if(it)return J(it,yt,Ue);if(!Ge&&c.indexOf(v.dataType)>=0){try{He=decodeBodyByCharset(He,Ue)}catch(Ie){return u("decodeBodyByCharset error: %s",Ie),J(null,He,Ue)}if(v.dataType==="json")if($===0)He=null;else{var Ce=parseJSON(He,H);Ce.error?it=Ce.error:He=Ce.data}}re&&u("Request#%d %s: Remote socket was terminated before `response.end()` was called",C,E),J(it,He,Ue)})})}var tt,dt;Array.isArray(v.timeout)?(tt=r(v.timeout[0]),dt=r(v.timeout[1])):tt=dt=r(v.timeout),u("ConnectTimeout: %d, ResponseTimeout: %d",tt,dt);function mt(){u("Connect timer ticking, timeout: %d",tt),ce=setTimeout(function(){ce=null,me===-1&&(me=-2);var Ue="Connect timeout for "+tt+"ms",ft="ConnectionTimeoutError";Et.socket||(ft="SocketAssignTimeoutError",Ue+=", working sockets is full"),Ee=new Error(Ue),Ee.name=ft,Ee.requestId=C,u("ConnectTimeout: Request#%d %s %s: %s, connected: %s",C,E,Ee.name,Ue,ue),Ye()},tt)}function vt(){u("Response timer ticking, timeout: %d",dt),be=setTimeout(function(){be=null;var Ue="Response timeout for "+dt+"ms",ft="ResponseTimeoutError";Ee=new Error(Ue),Ee.name=ft,Ee.requestId=C,u("ResponseTimeout: Request#%d %s %s: %s, connected: %s",C,E,Ee.name,Ue,ue),Ye()},dt)}var Et;D.mode=v.mode?v.mode:"";try{Et=N.request(D,Qe)}catch(Ue){return J(Ue)}typeof window=="undefined"?mt():Et.on("requestTimeout",function(){me===-1&&(me=-2);var Ue="Connect timeout for "+tt+"ms",ft="ConnectionTimeoutError";Ee=new Error(Ue),Ee.name=ft,Ee.requestId=C,Ye()});function Ye(){u("Request#%d %s abort, connected: %s",C,E,ue),Et.socket||(Ee.noSocket=!0,J(Ee)),Et.abort()}return se&&Et.on("finish",function(){se.requestSent=Date.now()-_}),Et.once("socket",function(Ue){se&&(se.queuing=Date.now()-_),isNode010&&Ue.socket&&(Ue=Ue.socket);var ft=Ue.readyState;if(ft==="opening"){Ue.once("lookup",function(jt,yt,Pt){u("Request#%d %s lookup: %s, %s, %s",C,E,jt,yt,Pt),se&&(se.dnslookup=Date.now()-_),yt&&(ae=yt)}),Ue.once("connect",function(){se&&(se.connected=Date.now()-_),te(),vt(),u("Request#%d %s new socket connected",C,E),ue=!0,ae||(ae=Ue.remoteAddress),Oe=Ue.remotePort});return}u("Request#%d %s reuse socket connected, readyState: %s",C,E,ft),ue=!0,le=!0,ae||(ae=Ue.remoteAddress),Oe=Ue.remotePort,te(),vt()}),Et.on("error",function(Ue){(Ue.name==="Error"||Ue.name==="TypeError")&&(Ue.name=ue?"ResponseError":"RequestError"),Ue.message+=' (req "error")',u("Request#%d %s `req error` event emit, %s: %s",C,E,Ue.name,Ue.message),J(Ee||Ue)}),Ae&&Ae.once("error",function(Ue){Ue.message+=' (writeStream "error")',Ee=Ue,u("Request#%d %s `writeStream error` event emit, %s: %s",C,E,Ue.name,Ue.message),Ye()}),v.stream?(v.stream.pipe(Et),v.stream.once("error",function(Ue){Ue.message+=' (stream "error")',Ee=Ue,u("Request#%d %s `readStream error` event emit, %s: %s",C,E,Ue.name,Ue.message),Ye()})):Et.end(ee),Et.requestId=C,Et}}).call(this,k("_process"),k("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n6Qo:function(k,z,o){"use strict";o.d(z,"a",function(){return m});var P=o("q1tI"),g=o("biw7"),T=o("fyJ8");function b(e){var f=e.className,a=e.index,u=e.children,r=e.colSpan,i=e.rowSpan,n=P.useContext(g.a),l=n.prefixCls,h=n.fixedInfoList,d=h[a];return P.createElement(T.a,Object.assign({className:f,index:a,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:u,props:{colSpan:r,rowSpan:i}}}},d))}function y(e){return P.createElement("tr",Object.assign({},e))}function x(e){var f=e.children,a=P.useContext(g.a),u=a.prefixCls;return P.createElement("tfoot",{className:"".concat(u,"-summary")},f)}var O=z.b=x,m={Cell:b,Row:y}},nEHx:function(k,z,o){"use strict";o.d(z,"a",function(){return P});var P;(function(g){g.DARK="dark",g.LIGHT="light",g.HIGH_CONTRAST="hc"})(P||(P={}))},nKGa:function(k,z,o){k.exports=o.p+"static/export_exercise-template.f7655c19.png"},ngQI:function(k,z,o){"use strict";o.d(z,"a",function(){return jl}),o.d(z,"b",function(){return Dl}),o.d(z,"c",function(){return Rl});var P=o("q1tI"),g=o.n(P),T=o("dI71"),b=o("wx14"),y=o("ANjH"),x=o("/MKj");function O(Y,Z){if(Y.length!==Z.length)return!1;for(var ie=0;ie=0)return u("Request#%d %s: got digest auth header WWW-Authenticate: %s",C,E,it),v.headers=v.headers||{},v.headers.Authorization=digestAuthHeader(D.method,D.path,it,v.digestAuth),u("Request#%d %s: auth with digest header: %s",C,E,v.headers.Authorization),jt.headers["set-cookie"]&&(v.headers.Cookie=jt.headers["set-cookie"].join(";")),o.requestWithCallback(E,v,bt)}var He=Date.now()-_;se&&(se.contentDownload=He),u("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",He,$,me,D.method,D.host,D.path,le,se);var Ge={status:me,statusCode:me,headers:Pt,size:$,aborted:re,rt:He,keepAliveSocket:le,data:ft,requestUrls:v.requestUrls,timing:se,remoteAddress:ae,remotePort:Oe};if(Ue){var Ce="";V&&typeof V.getCurrentStatus=="function"&&(Ce=", agent status: "+(0,b.default)(V.getCurrentStatus())),Ue.message+=", "+D.method+" "+E+" "+me+" (connected: "+ue+", keepalive socket: "+le+Ce+`) +headers: `+(0,b.default)(Pt),Ue.data=ft,Ue.path=D.path,Ue.status=me,Ue.headers=Pt,Ue.res=Ge}bt(Ue,ft,v.streaming?jt:Ge),v.emitter&&(S.url=E,S.socket=yt&&yt.connection,S.options=D,S.size=Se,v.emitter.emit("response",{requestId:C,error:Ue,ctx:v.ctx,req:S,res:Ge}))}function ve(Ue){var ft=null;if(v.followRedirect&&statuses.redirect[Ue.statusCode]){v._followRedirectCount=(v._followRedirectCount||0)+1;var jt=Ue.headers.location;if(!jt)ft=new Error("Got statusCode "+Ue.statusCode+" but cannot resolve next location from headers"),ft.name="FollowRedirectError";else if(v._followRedirectCount>v.maxRedirects)ft=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+E),ft.name="MaxRedirectError";else{var bt=v.formatRedirectUrl?v.formatRedirectUrl(E,jt):e.resolve(E,jt);u("Request#%d %s: `redirected` from %s to %s",C,D.path,E,bt),Q(),v.headers&&v.headers.Host&&h.test(jt)&&(v.headers.Host=null);var Pt=R;return R=null,o.requestWithCallback(bt,v,Pt),{redirect:!0,error:null}}}return{redirect:!1,error:ft}}!D.headers["User-Agent"]&&!D.headers["user-agent"]&&(D.headers["User-Agent"]=navigator.userAgent),v.gzip&&(!D.headers["Accept-Encoding"]&&!D.headers["accept-encoding"]&&(D.headers["Accept-Encoding"]="gzip"));function _e(Ue,ft,jt){var bt=Ue.headers["content-encoding"];return jt(null,ft,bt)}var Ae=v.writeStream;u("Request#%d %s %s with headers %j, options.path: %s",C,U,E,D.headers,D.path),v.requestUrls.push(E);function Qe(Ue){if(se&&(se.waiting=Date.now()-_),u("Request#%d %s `req response` event emit: status %d, headers: %j",C,E,Ue.statusCode,Ue.headers),v.streaming){var ft=ve(Ue);if(ft.redirect){Ue.resume();return}return ft.error?(Ue.resume(),J(ft.error,null,Ue)):J(null,null,Ue)}if(Ue.on("close",function(){u("Request#%d %s: `res close` event emit, total size %d",C,E,$)}),Ue.on("error",function(){u("Request#%d %s: `res error` event emit, total size %d",C,E,$)}),Ue.on("aborted",function(){re=!0,u("Request#%d %s: `res aborted` event emit, total size %d",C,E,$)}),Ae){var ft=ve(Ue);if(ft.redirect){Ue.resume();return}return ft.error?(Ue.resume(),Ae.end(),J(ft.error,null,Ue)):(v.consumeWriteStream===!1?Ue.on("end",J.bind(null,null,null,Ue)):isNode010||isNode012?first([[Ae,"close"],[Ue,"aborted"]],function(Pt,it,He){u("Request#%d %s: writeStream or res %s event emitted",C,E,He),J(Ee||null,null,Ue)}):Ae.on("close",function(){u("Request#%d %s: writeStream close event emitted",C,E),J(Ee||null,null,Ue)}),Ue.pipe(Ae))}var jt=[];Ue.on("data",function(bt){u("Request#%d %s: `res data` event emit, size %d",C,E,bt.length),$+=bt.length,jt.push(bt)}),Ue.on("end",function(){var bt=g.concat(jt,$);if(u("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",C,E,$,Ue._dumped),Ee)return J(Ee,bt,Ue);var Pt=ve(Ue);if(Pt.error)return J(Pt.error,bt,Ue);if(Pt.redirect)return;_e(Ue,bt,function(it,He,Ge){if(it)return J(it,bt,Ue);if(!Ge&&c.indexOf(v.dataType)>=0){try{He=decodeBodyByCharset(He,Ue)}catch(Ie){return u("decodeBodyByCharset error: %s",Ie),J(null,He,Ue)}if(v.dataType==="json")if($===0)He=null;else{var Ce=parseJSON(He,H);Ce.error?it=Ce.error:He=Ce.data}}re&&u("Request#%d %s: Remote socket was terminated before `response.end()` was called",C,E),J(it,He,Ue)})})}var tt,dt;Array.isArray(v.timeout)?(tt=r(v.timeout[0]),dt=r(v.timeout[1])):tt=dt=r(v.timeout),u("ConnectTimeout: %d, ResponseTimeout: %d",tt,dt);function mt(){u("Connect timer ticking, timeout: %d",tt),ce=setTimeout(function(){ce=null,me===-1&&(me=-2);var Ue="Connect timeout for "+tt+"ms",ft="ConnectionTimeoutError";yt.socket||(ft="SocketAssignTimeoutError",Ue+=", working sockets is full"),Ee=new Error(Ue),Ee.name=ft,Ee.requestId=C,u("ConnectTimeout: Request#%d %s %s: %s, connected: %s",C,E,Ee.name,Ue,ue),Ye()},tt)}function vt(){u("Response timer ticking, timeout: %d",dt),be=setTimeout(function(){be=null;var Ue="Response timeout for "+dt+"ms",ft="ResponseTimeoutError";Ee=new Error(Ue),Ee.name=ft,Ee.requestId=C,u("ResponseTimeout: Request#%d %s %s: %s, connected: %s",C,E,Ee.name,Ue,ue),Ye()},dt)}var yt;D.mode=v.mode?v.mode:"";try{yt=N.request(D,Qe)}catch(Ue){return J(Ue)}typeof window=="undefined"?mt():yt.on("requestTimeout",function(){me===-1&&(me=-2);var Ue="Connect timeout for "+tt+"ms",ft="ConnectionTimeoutError";Ee=new Error(Ue),Ee.name=ft,Ee.requestId=C,Ye()});function Ye(){u("Request#%d %s abort, connected: %s",C,E,ue),yt.socket||(Ee.noSocket=!0,J(Ee)),yt.abort()}return se&&yt.on("finish",function(){se.requestSent=Date.now()-_}),yt.once("socket",function(Ue){se&&(se.queuing=Date.now()-_),isNode010&&Ue.socket&&(Ue=Ue.socket);var ft=Ue.readyState;if(ft==="opening"){Ue.once("lookup",function(jt,bt,Pt){u("Request#%d %s lookup: %s, %s, %s",C,E,jt,bt,Pt),se&&(se.dnslookup=Date.now()-_),bt&&(ae=bt)}),Ue.once("connect",function(){se&&(se.connected=Date.now()-_),te(),vt(),u("Request#%d %s new socket connected",C,E),ue=!0,ae||(ae=Ue.remoteAddress),Oe=Ue.remotePort});return}u("Request#%d %s reuse socket connected, readyState: %s",C,E,ft),ue=!0,le=!0,ae||(ae=Ue.remoteAddress),Oe=Ue.remotePort,te(),vt()}),yt.on("error",function(Ue){(Ue.name==="Error"||Ue.name==="TypeError")&&(Ue.name=ue?"ResponseError":"RequestError"),Ue.message+=' (req "error")',u("Request#%d %s `req error` event emit, %s: %s",C,E,Ue.name,Ue.message),J(Ee||Ue)}),Ae&&Ae.once("error",function(Ue){Ue.message+=' (writeStream "error")',Ee=Ue,u("Request#%d %s `writeStream error` event emit, %s: %s",C,E,Ue.name,Ue.message),Ye()}),v.stream?(v.stream.pipe(yt),v.stream.once("error",function(Ue){Ue.message+=' (stream "error")',Ee=Ue,u("Request#%d %s `readStream error` event emit, %s: %s",C,E,Ue.name,Ue.message),Ye()})):yt.end(ee),yt.requestId=C,yt}}).call(this,k("_process"),k("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n6Qo:function(k,z,o){"use strict";o.d(z,"a",function(){return m});var P=o("q1tI"),g=o("biw7"),T=o("fyJ8");function b(e){var f=e.className,a=e.index,u=e.children,r=e.colSpan,i=e.rowSpan,n=P.useContext(g.a),l=n.prefixCls,h=n.fixedInfoList,d=h[a];return P.createElement(T.a,Object.assign({className:f,index:a,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:u,props:{colSpan:r,rowSpan:i}}}},d))}function y(e){return P.createElement("tr",Object.assign({},e))}function x(e){var f=e.children,a=P.useContext(g.a),u=a.prefixCls;return P.createElement("tfoot",{className:"".concat(u,"-summary")},f)}var O=z.b=x,m={Cell:b,Row:y}},nEHx:function(k,z,o){"use strict";o.d(z,"a",function(){return P});var P;(function(g){g.DARK="dark",g.LIGHT="light",g.HIGH_CONTRAST="hc"})(P||(P={}))},nKGa:function(k,z,o){k.exports=o.p+"static/export_exercise-template.f7655c19.png"},ngQI:function(k,z,o){"use strict";o.d(z,"a",function(){return jl}),o.d(z,"b",function(){return Dl}),o.d(z,"c",function(){return Rl});var P=o("q1tI"),g=o.n(P),T=o("dI71"),b=o("wx14"),y=o("ANjH"),x=o("/MKj");function O(Y,Z){if(Y.length!==Z.length)return!1;for(var ie=0;ieY.bottom,Ut=ye.leftY.right,Wt=xt&&Ut;if(Wt)return!0;var Tt=xt&&ze||Ut&&ke;return Tt}},It=function(Y){var Z=ut(Y.top,Y.bottom),ie=ut(Y.left,Y.right);return function(ye){var Ne=Z(ye.top)&&Z(ye.bottom)&&ie(ye.left)&&ie(ye.right);return Ne}},on={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},mn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Hn=function(Y){return function(Z){var ie=ut(Z.top,Z.bottom),ye=ut(Z.left,Z.right);return function(Ne){return Y===on?ie(Ne.top)&&ie(Ne.bottom):ye(Ne.left)&&ye(Ne.right)}}},Xn=function(Z,ie){var ye=ie.frame?ie.frame.scroll.diff.displacement:Ae;return jt(Z,ye)},Fn=function(Z,ie,ye){return ie.subject.active?ye(ie.subject.active)(Z):!1},xn=function(Z,ie,ye){return ye(ie)(Z)},fr=function(Z){var ie=Z.target,ye=Z.destination,Ne=Z.viewport,ke=Z.withDroppableDisplacement,ze=Z.isVisibleThroughFrameFn,Ve=ke?Xn(ie,ye):ie;return Fn(Ve,ye,ze)&&xn(Ve,Ne,ze)},Yn=function(Z){return fr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Ft}))},ar=function(Z){return fr(Object(b.a)({},Z,{isVisibleThroughFrameFn:It}))},nr=function(Z){return fr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Hn(Z.destination.axis)}))},Rr=function(Z,ie,ye){if(typeof ye=="boolean")return ye;if(!ie)return!0;var Ne=ie.invisible,ke=ie.visible;if(Ne[Z])return!1;var ze=ke[Z];return ze?ze.shouldAnimate:!0};function pr(Y,Z){var ie=Y.page.marginBox,ye={top:Z.point.y,right:0,bottom:0,left:Z.point.x};return r(i(ie,ye))}function sn(Y){var Z=Y.afterDragging,ie=Y.destination,ye=Y.displacedBy,Ne=Y.viewport,ke=Y.forceShouldAnimate,ze=Y.last;return Z.reduce(function(xt,Ut){var Wt=pr(Ut,ye),Tt=Ut.descriptor.id;xt.all.push(Tt);var St=Yn({target:Wt,destination:ie,viewport:Ne,withDroppableDisplacement:!0});if(!St)return xt.invisible[Ut.descriptor.id]=!0,xt;var kt=Rr(Tt,ze,ke),hn={draggableId:Tt,shouldAnimate:kt};return xt.visible[Tt]=hn,xt},{all:[],visible:{},invisible:{}})}function qt(Y,Z){if(!Y.length)return 0;var ie=Y[Y.length-1].descriptor.index;return Z.inHomeList?ie:ie+1}function On(Y){var Z=Y.insideDestination,ie=Y.inHomeList,ye=Y.displacedBy,Ne=Y.destination,ke=qt(Z,{inHomeList:ie});return{displaced:Ot,displacedBy:ye,at:{type:"REORDER",destination:{droppableId:Ne.descriptor.id,index:ke}}}}function Fr(Y){var Z=Y.draggable,ie=Y.insideDestination,ye=Y.destination,Ne=Y.viewport,ke=Y.displacedBy,ze=Y.last,Ve=Y.index,xt=Y.forceShouldAnimate,Ut=ht(Z,ye);if(Ve==null)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:ye});var Wt=st(ie,function(ur){return ur.descriptor.index===Ve});if(!Wt)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:ye});var Tt=Pe(Z,ie),St=ie.indexOf(Wt),kt=Tt.slice(St),hn=sn({afterDragging:kt,destination:ye,displacedBy:ke,last:ze,viewport:Ne.frame,forceShouldAnimate:xt});return{displaced:hn,displacedBy:ke,at:{type:"REORDER",destination:{droppableId:ye.descriptor.id,index:Ve}}}}function Or(Y,Z){return Boolean(Z.effected[Y])}var xr=function(Y){var Z=Y.isMovingForward,ie=Y.destination,ye=Y.draggables,Ne=Y.combine,ke=Y.afterCritical;if(!ie.isCombineEnabled)return null;var ze=Ne.draggableId,Ve=ye[ze],xt=Ve.descriptor.index,Ut=Or(ze,ke);return Ut?Z?xt:xt-1:Z?xt+1:xt},dr=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,ye=Y.insideDestination,Ne=Y.location;if(!ye.length)return null;var ke=Ne.index,ze=Z?ke+1:ke-1,Ve=ye[0].descriptor.index,xt=ye[ye.length-1].descriptor.index,Ut=ie?xt:xt+1;return zeUt?null:ze},pe=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,ye=Y.draggable,Ne=Y.draggables,ke=Y.destination,ze=Y.insideDestination,Ve=Y.previousImpact,xt=Y.viewport,Ut=Y.afterCritical,Wt=Ve.at;if(Wt||$(!1),Wt.type==="REORDER"){var Tt=dr({isMovingForward:Z,isInHomeList:ie,location:Wt.destination,insideDestination:ze});return Tt==null?null:Fr({draggable:ye,insideDestination:ze,destination:ke,viewport:xt,last:Ve.displaced,displacedBy:Ve.displacedBy,index:Tt})}var St=xr({isMovingForward:Z,destination:ke,displaced:Ve.displaced,draggables:Ne,combine:Wt.combine,afterCritical:Ut});return St==null?null:Fr({draggable:ye,insideDestination:ze,destination:ke,viewport:xt,last:Ve.displaced,displacedBy:Ve.displacedBy,index:St})},X=function(Y){var Z=Y.displaced,ie=Y.afterCritical,ye=Y.combineWith,Ne=Y.displacedBy,ke=Boolean(Z.visible[ye]||Z.invisible[ye]);return Or(ye,ie)?ke?Ae:mt(Ne.point):ke?Ne.point:Ae},q=function(Y){var Z=Y.afterCritical,ie=Y.impact,ye=Y.draggables,Ne=at(ie);Ne||$(!1);var ke=Ne.draggableId,ze=ye[ke].page.borderBox.center,Ve=X({displaced:ie.displaced,afterCritical:Z,combineWith:ke,displacedBy:ie.displacedBy});return Qe(ze,Ve)},oe=function(Z,ie){return ie.margin[Z.start]+ie.borderBox[Z.size]/2},De=function(Z,ie){return ie.margin[Z.end]+ie.borderBox[Z.size]/2},fe=function(Z,ie,ye){return ie[Z.crossAxisStart]+ye.margin[Z.crossAxisStart]+ye.borderBox[Z.crossAxisSize]/2},ot=function(Z){var ie=Z.axis,ye=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,ye.marginBox[ie.end]+oe(ie,Ne),fe(ie,ye.marginBox,Ne))},Qt=function(Z){var ie=Z.axis,ye=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,ye.marginBox[ie.start]-De(ie,Ne),fe(ie,ye.marginBox,Ne))},Mn=function(Z){var ie=Z.axis,ye=Z.moveInto,Ne=Z.isMoving;return vt(ie.line,ye.contentBox[ie.start]+oe(ie,Ne),fe(ie,ye.contentBox,Ne))},Vn=function(Y){var Z=Y.impact,ie=Y.draggable,ye=Y.draggables,Ne=Y.droppable,ke=Y.afterCritical,ze=Ke(Ne.descriptor.id,ye),Ve=ie.page,xt=Ne.axis;if(!ze.length)return Mn({axis:xt,moveInto:Ne.page,isMoving:Ve});var Ut=Z.displaced,Wt=Z.displacedBy,Tt=Ut.all[0];if(Tt){var St=ye[Tt];if(Or(Tt,ke))return Qt({axis:xt,moveRelativeTo:St.page,isMoving:Ve});var kt=w(St.page,Wt.point);return Qt({axis:xt,moveRelativeTo:kt,isMoving:Ve})}var hn=ze[ze.length-1];if(hn.descriptor.id===ie.descriptor.id)return Ve.borderBox.center;if(Or(hn.descriptor.id,ke)){var ur=w(hn.page,mt(ke.displacedBy.point));return ot({axis:xt,moveRelativeTo:ur,isMoving:Ve})}return ot({axis:xt,moveRelativeTo:hn.page,isMoving:Ve})},$t=function(Y,Z){var ie=Y.frame;return ie?Qe(Z,ie.scroll.diff.displacement):Z},gn=function(Z){var ie=Z.impact,ye=Z.draggable,Ne=Z.droppable,ke=Z.draggables,ze=Z.afterCritical,Ve=ye.page.borderBox.center,xt=ie.at;return Ne&&xt?xt.type==="REORDER"?Vn({impact:ie,draggable:ye,draggables:ke,droppable:Ne,afterCritical:ze}):q({impact:ie,draggables:ke,afterCritical:ze}):Ve},pn=function(Y){var Z=gn(Y),ie=Y.droppable,ye=ie?$t(ie,Z):Z;return ye},Ar=function(Y,Z){var ie=tt(Z,Y.scroll.initial),ye=mt(ie),Ne=r({top:Z.y,bottom:Z.y+Y.frame.height,left:Z.x,right:Z.x+Y.frame.width}),ke={frame:Ne,scroll:{initial:Y.scroll.initial,max:Y.scroll.max,current:Z,diff:{value:ie,displacement:ye}}};return ke};function ra(Y,Z){return Y.map(function(ie){return Z[ie]})}function oa(Y,Z){for(var ie=0;ie1?Wt.sort(function(Tt,St){return wa(Tt)[Ve.start]-wa(St)[Ve.start]})[0]:Ut.sort(function(Tt,St){var kt=Ye(ie,yt(wa(Tt))),hn=Ye(ie,yt(wa(St)));return kt!==hn?kt-hn:wa(Tt)[Ve.start]-wa(St)[Ve.start]})[0]},ja=function(Z,ie){var ye=Z.page.borderBox.center;return Or(Z.descriptor.id,ie)?tt(ye,ie.displacedBy.point):ye},li=function(Z,ie){var ye=Z.page.borderBox;return Or(Z.descriptor.id,ie)?jt(ye,mt(ie.displacedBy.point)):ye},oi=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.viewport,ye=Y.destination,Ne=Y.insideDestination,ke=Y.afterCritical,ze=Ne.filter(function(Ve){return ar({target:li(Ve,ke),destination:ye,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(Ve,xt){var Ut=Et(Z,$t(ye,ja(Ve,ke))),Wt=Et(Z,$t(ye,ja(xt,ke)));return UtZ.left&&Y.topZ.top}function Nn(Y){var Z=Y.pageBorderBox,ie=Y.draggable,ye=Y.candidates,Ne=ie.page.borderBox.center,ke=ye.map(function(ze){var Ve=ze.axis,xt=vt(ze.axis.line,Z.center[Ve.line],ze.page.borderBox.center[Ve.crossAxisLine]);return{id:ze.descriptor.id,distance:Et(Ne,xt)}}).sort(function(ze,Ve){return Ve.distance-ze.distance});return ke[0]?ke[0].id:null}function An(Y){var Z=Y.pageBorderBox,ie=Y.draggable,ye=Y.droppables,Ne=Bt(ye).filter(function(ke){if(!ke.isEnabled)return!1;var ze=ke.subject.active;if(!ze)return!1;if(!vn(Z,ze))return!1;if(yn(ze)(Z.center))return!0;var Ve=ke.axis,xt=ze.center[Ve.crossAxisLine],Ut=Z[Ve.crossAxisStart],Wt=Z[Ve.crossAxisEnd],Tt=ut(ze[Ve.crossAxisStart],ze[Ve.crossAxisEnd]),St=Tt(Ut),kt=Tt(Wt);return!St&&!kt?!0:St?Utxt});return Ne.length?Ne.length===1?Ne[0].descriptor.id:Nn({pageBorderBox:Z,draggable:ie,candidates:Ne}):null}var an=function(Z,ie){return r(jt(Z,ie))},Pn=function(Y,Z){var ie=Y.frame;return ie?an(Z,ie.scroll.diff.value):Z};function bn(Y){var Z=Y.displaced,ie=Y.id;return Boolean(Z.visible[ie]||Z.invisible[ie])}function kn(Y){var Z=Y.draggable,ie=Y.closest,ye=Y.inHomeList;return ie?ye&&ie.descriptor.index>Z.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var Rn=function(Y){var Z=Y.pageBorderBoxWithDroppableScroll,ie=Y.draggable,ye=Y.destination,Ne=Y.insideDestination,ke=Y.last,ze=Y.viewport,Ve=Y.afterCritical,xt=ye.axis,Ut=fa(ye.axis,ie.displaceBy),Wt=Ut.value,Tt=Z[xt.start],St=Z[xt.end],kt=Pe(ie,Ne),hn=st(kt,function(gr){var kr=gr.descriptor.id,Gr=gr.page.borderBox.center[xt.line],na=Or(kr,Ve),Hr=bn({displaced:ke,id:kr});return na?Hr?St<=Gr:Ttkr[Ve.start]+na&&Ttkr[Ve.start]-Ut+na&&Wtkr[Ve.start]+Ut+na&&Ttkr[Ve.start]+na&&Wt=Cn)return un;var ke=Ne/Cn,ze=cn+Wn*ke,Ve=ye==="CANCEL"?ze*jr:ze;return Number(Ve.toFixed(2))},Qr=function(Y){var Z=Y.impact,ie=Y.draggable,ye=Y.dimensions,Ne=Y.viewport,ke=Y.afterCritical,ze=ye.draggables,Ve=ye.droppables,xt=Kt(Z),Ut=xt?Ve[xt]:null,Wt=Ve[ie.descriptor.droppableId],Tt=_n({impact:Z,draggable:ie,draggables:ze,afterCritical:ke,droppable:Ut||Wt,viewport:Ne}),St=tt(Tt,ie.client.borderBox.center);return St},Wr=function(Y){var Z=Y.draggables,ie=Y.reason,ye=Y.lastImpact,Ne=Y.home,ke=Y.viewport,ze=Y.onLiftImpact;if(!ye.at||ie!=="DROP"){var Ve=wn({draggables:Z,impact:ze,destination:Ne,viewport:ke,forceShouldAnimate:!0});return{impact:Ve,didDropInsideDroppable:!1}}if(ye.at.type==="REORDER")return{impact:ye,didDropInsideDroppable:!0};var xt=Object(b.a)({},ye,{displaced:Ot});return{impact:xt,didDropInsideDroppable:!0}},ta=function(Y){var Z=Y.getState,ie=Y.dispatch;return function(ye){return function(Ne){if(Ne.type!=="DROP"){ye(Ne);return}var ke=Z(),ze=Ne.payload.reason;if(ke.phase==="COLLECTING"){ie(bt({reason:ze}));return}if(ke.phase==="IDLE")return;var Ve=ke.phase==="DROP_PENDING"&&ke.isWaiting;Ve&&$(!1),ke.phase==="DRAGGING"||ke.phase==="DROP_PENDING"||$(!1);var xt=ke.critical,Ut=ke.dimensions,Wt=Ut.draggables[ke.critical.draggable.id],Tt=Wr({reason:ze,lastImpact:ke.impact,afterCritical:ke.afterCritical,onLiftImpact:ke.onLiftImpact,home:ke.dimensions.droppables[ke.critical.droppable.id],viewport:ke.viewport,draggables:ke.dimensions.draggables}),St=Tt.impact,kt=Tt.didDropInsideDroppable,hn=kt?et(St):null,ur=kt?at(St):null,gr={index:xt.draggable.index,droppableId:xt.droppable.id},kr={draggableId:Wt.descriptor.id,type:Wt.descriptor.type,source:gr,reason:ze,mode:ke.movementMode,destination:hn,combine:ur},Gr=Qr({impact:St,draggable:Wt,dimensions:Ut,viewport:ke.viewport,afterCritical:ke.afterCritical}),na={critical:ke.critical,afterCritical:ke.afterCritical,result:kr,impact:St},Hr=!dt(ke.current.client.offset,Gr)||Boolean(kr.combine);if(!Hr){ie(Ze({completed:na}));return}var Ia=Mr({current:ke.current.client.offset,destination:Gr,reason:ze}),Da={newHomeClientOffset:Gr,dropDuration:Ia,completed:na};ie(_a(Da))}}},Kn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function wr(Y){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ie){if(ie.target!==window&&ie.target!==window.document)return;Y()}}}function Gn(Y){var Z=Y.onWindowScroll;function ie(){Z(Kn())}var ye=L(ie),Ne=wr(ye),ke=Te;function ze(){return ke!==Te}function Ve(){ze()&&$(!1),ke=be(window,[Ne])}function xt(){ze()||$(!1),ye.cancel(),ke(),ke=Te}return{start:Ve,stop:xt,isActive:ze}}var En=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},jn=function(Y){var Z=Gn({onWindowScroll:function(ye){Y.dispatch(da({newScroll:ye}))}});return function(ie){return function(ye){!Z.isActive()&&ye.type==="INITIAL_PUBLISH"&&Z.start(),Z.isActive()&&En(ye)&&Z.stop(),ie(ye)}}},Vr=function(Y){var Z=!1,ie=!1,ye=setTimeout(function(){ie=!0}),Ne=function(ze){if(Z)return;if(ie)return;Z=!0,Y(ze),clearTimeout(ye)};return Ne.wasCalled=function(){return Z},Ne},ua=function(){var Y=[],Z=function(ke){var ze=We(Y,function(Ut){return Ut.timerId===ke});ze!==-1||$(!1);var Ve=Y.splice(ze,1),xt=Ve[0];xt.callback()},ie=function(ke){var ze=setTimeout(function(){return Z(ze)}),Ve={timerId:ze,callback:ke};Y.push(Ve)},ye=function(){if(!Y.length)return;var ke=[].concat(Y);Y.length=0,ke.forEach(function(ze){clearTimeout(ze.timerId),ze.callback()})};return{add:ie,flush:ye}},hr=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.droppableId===ie.droppableId&&Z.index===ie.index},aa=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.draggableId===ie.draggableId&&Z.droppableId===ie.droppableId},xa=function(Z,ie){if(Z===ie)return!0;var ye=Z.draggable.id===ie.draggable.id&&Z.draggable.droppableId===ie.draggable.droppableId&&Z.draggable.type===ie.draggable.type&&Z.draggable.index===ie.draggable.index,Ne=Z.droppable.id===ie.droppable.id&&Z.droppable.type===ie.droppable.type;return ye&&Ne},ha=function(Z,ie){Pr(),ie(),Lr()},Ca=function(Z,ie){return{draggableId:Z.draggable.id,type:Z.droppable.type,source:{droppableId:Z.droppable.id,index:Z.draggable.index},mode:ie}},Tr=function(Z,ie,ye,Ne){if(!Z){ye(Ne(ie));return}var ke=Vr(ye),ze={announce:ke};Z(ie,ze),ke.wasCalled()||ye(Ne(ie))},br=function(Y,Z){var ie=ua(),ye=null,Ne=function(St,kt){ye&&$(!1),ha("onBeforeCapture",function(){var hn=Y().onBeforeCapture;if(hn){var ur={draggableId:St,mode:kt};hn(ur)}})},ke=function(St,kt){ye&&$(!1),ha("onBeforeDragStart",function(){var hn=Y().onBeforeDragStart;hn&&hn(Ca(St,kt))})},ze=function(St,kt){ye&&$(!1);var hn=Ca(St,kt);ye={mode:kt,lastCritical:St,lastLocation:hn.source,lastCombine:null},ie.add(function(){ha("onDragStart",function(){return Tr(Y().onDragStart,hn,Z,_e.onDragStart)})})},Ve=function(St,kt){var hn=et(kt),ur=at(kt);ye||$(!1);var gr=!xa(St,ye.lastCritical);gr&&(ye.lastCritical=St);var kr=!hr(ye.lastLocation,hn);kr&&(ye.lastLocation=hn);var Gr=!aa(ye.lastCombine,ur);if(Gr&&(ye.lastCombine=ur),!gr&&!kr&&!Gr)return;var na=Object(b.a)({},Ca(St,ye.mode),{combine:ur,destination:hn});ie.add(function(){ha("onDragUpdate",function(){return Tr(Y().onDragUpdate,na,Z,_e.onDragUpdate)})})},xt=function(){ye||$(!1),ie.flush()},Ut=function(St){ye||$(!1),ye=null,ha("onDragEnd",function(){return Tr(Y().onDragEnd,St,Z,_e.onDragEnd)})},Wt=function(){if(!ye)return;var St=Object(b.a)({},Ca(ye.lastCritical,ye.mode),{combine:null,destination:null,reason:"CANCEL"});Ut(St)};return{beforeCapture:Ne,beforeStart:ke,start:ze,update:Ve,flush:xt,drop:Ut,abort:Wt}},Ir=function(Y,Z){var ie=br(Y,Z);return function(ye){return function(Ne){return function(ke){if(ke.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(ke.payload.draggableId,ke.payload.movementMode);return}if(ke.type==="INITIAL_PUBLISH"){var ze=ke.payload.critical;ie.beforeStart(ze,ke.payload.movementMode),Ne(ke),ie.start(ze,ke.payload.movementMode);return}if(ke.type==="DROP_COMPLETE"){var Ve=ke.payload.completed.result;ie.flush(),Ne(ke),ie.drop(Ve);return}if(Ne(ke),ke.type==="FLUSH"){ie.abort();return}var xt=ye.getState();xt.phase==="DRAGGING"&&ie.update(xt.critical,xt.impact)}}}},er=function(Y){return function(Z){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){Z(ie);return}var ye=Y.getState();ye.phase==="DROP_ANIMATING"||$(!1),Y.dispatch(Ze({completed:ye.completed}))}}},pa=function(Y){var Z=null,ie=null;function ye(){ie&&(cancelAnimationFrame(ie),ie=null),Z&&(Z(),Z=null)}return function(Ne){return function(ke){if((ke.type==="FLUSH"||ke.type==="DROP_COMPLETE"||ke.type==="DROP_ANIMATION_FINISHED")&&ye(),Ne(ke),ke.type!=="DROP_ANIMATE")return;var ze={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var xt=Y.getState();xt.phase==="DROP_ANIMATING"&&Y.dispatch(nt())}};ie=requestAnimationFrame(function(){ie=null,Z=be(window,[ze])})}}},Ea=function(Y){return function(){return function(Z){return function(ie){(ie.type==="DROP_COMPLETE"||ie.type==="FLUSH"||ie.type==="DROP_ANIMATE")&&Y.stopPublishing(),Z(ie)}}}},ba=function(Y){var Z=!1;return function(){return function(ie){return function(ye){if(ye.type==="INITIAL_PUBLISH"){Z=!0,Y.tryRecordFocus(ye.payload.critical.draggable.id),ie(ye),Y.tryRestoreFocusRecorded();return}if(ie(ye),!Z)return;if(ye.type==="FLUSH"){Z=!1,Y.tryRestoreFocusRecorded();return}if(ye.type==="DROP_COMPLETE"){Z=!1;var Ne=ye.payload.completed.result;Ne.combine&&Y.tryShiftRecord(Ne.draggableId,Ne.combine.draggableId),Y.tryRestoreFocusRecorded()}}}}},Oa=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},ga=function(Y){return function(Z){return function(ie){return function(ye){if(Oa(ye)){Y.stop(),ie(ye);return}if(ye.type==="INITIAL_PUBLISH"){ie(ye);var Ne=Z.getState();Ne.phase==="DRAGGING"||$(!1),Y.start(Ne);return}ie(ye),Y.scroll(Z.getState())}}}},ka=function(Y){return function(Z){return function(ie){if(Z(ie),ie.type!=="PUBLISH_WHILE_DRAGGING")return;var ye=Y.getState();if(ye.phase!=="DROP_PENDING")return;if(ye.isWaiting)return;Y.dispatch(ct({reason:ye.reason}))}}},Ua=y.d,Fa=function(Y){var Z=Y.dimensionMarshal,ie=Y.focusMarshal,ye=Y.styleMarshal,Ne=Y.getResponders,ke=Y.announce,ze=Y.autoScroller;return Object(y.e)(Zt,Ua(Object(y.a)($e(ye),Ea(Z),Le(Z),ta,er,pa,ka,ga(ze),jn,ba(ie),Ir(Ne,ke))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(Y){var Z=Y.registry,ie=Y.callbacks,ye=ni(),Ne=null,ke=function(){if(Ne)return;ie.collectionStarting(),Ne=requestAnimationFrame(function(){Ne=null,Pr();var Wt=ye,Tt=Wt.additions,St=Wt.removals,kt=Wt.modified,hn=Object.keys(Tt).map(function(kr){return Z.draggable.getById(kr).getDimension(Ae)}).sort(function(kr,Gr){return kr.descriptor.index-Gr.descriptor.index}),ur=Object.keys(kt).map(function(kr){var Gr=Z.droppable.getById(kr),na=Gr.callbacks.getScrollWhileDragging();return{droppableId:kr,scroll:na}}),gr={additions:hn,removals:Object.keys(St),modified:ur};ye=ni(),Lr(),ie.publish(gr)})},ze=function(Wt){var Tt=Wt.descriptor.id;ye.additions[Tt]=Wt,ye.modified[Wt.descriptor.droppableId]=!0,ye.removals[Tt]&&delete ye.removals[Tt],ke()},Ve=function(Wt){var Tt=Wt.descriptor;ye.removals[Tt.id]=!0,ye.modified[Tt.droppableId]=!0,ye.additions[Tt.id]&&delete ye.additions[Tt.id],ke()},xt=function(){if(!Ne)return;cancelAnimationFrame(Ne),Ne=null,ye=ni()};return{add:ze,remove:Ve,stop:xt}}var Ai=function(Y){var Z=Y.scrollHeight,ie=Y.scrollWidth,ye=Y.height,Ne=Y.width,ke=tt({x:ie,y:Z},{x:Ne,y:ye}),ze={x:Math.max(0,ke.x),y:Math.max(0,ke.y)};return ze},Na=function(){var Y=document.documentElement;return Y||$(!1),Y},bi=function(){var Y=Na(),Z=Ai({scrollHeight:Y.scrollHeight,scrollWidth:Y.scrollWidth,width:Y.clientWidth,height:Y.clientHeight});return Z},Si=function(){var Y=Kn(),Z=bi(),ie=Y.y,ye=Y.x,Ne=Na(),ke=Ne.clientWidth,ze=Ne.clientHeight,Ve=ye+ke,xt=ie+ze,Ut=r({top:ie,left:ye,right:Ve,bottom:xt}),Wt={frame:Ut,scroll:{initial:Y,current:Y,max:Z,diff:{value:Ae,displacement:Ae}}};return Wt},Ba=function(Y){var Z=Y.critical,ie=Y.scrollOptions,ye=Y.registry;Pr();var Ne=Si(),ke=Ne.scroll.current,ze=Z.droppable,Ve=ye.droppable.getAllByType(ze.type).map(function(Tt){return Tt.callbacks.getDimensionAndWatchScroll(ke,ie)}),xt=ye.draggable.getAllByType(Z.draggable.type).map(function(Tt){return Tt.getDimension(ke)}),Ut={draggables:rn(xt),droppables:Ht(Ve)};Lr();var Wt={dimensions:Ut,critical:Z,viewport:Ne};return Wt};function Ma(Y,Z,ie){if(ie.descriptor.id===Z.id)return!1;if(ie.descriptor.type!==Z.type)return!1;var ye=Y.droppable.getById(ie.descriptor.droppableId);return!(ye.descriptor.mode!=="virtual")}var Za=function(Y,Z){var ie=null,ye=Fi({callbacks:{publish:Z.publishWhileDragging,collectionStarting:Z.collectionStarting},registry:Y}),Ne=function(kt,hn){if(Y.droppable.exists(kt)||$(!1),!ie)return;Z.updateDroppableIsEnabled({id:kt,isEnabled:hn})},ke=function(kt,hn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableIsCombineEnabled({id:kt,isCombineEnabled:hn})},ze=function(kt,hn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableScroll({id:kt,newScroll:hn})},Ve=function(kt,hn){if(!ie)return;Y.droppable.getById(kt).callbacks.scroll(hn)},xt=function(){if(!ie)return;ye.stop();var kt=ie.critical.droppable;Y.droppable.getAllByType(kt.type).forEach(function(hn){return hn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null},Ut=function(kt){ie||$(!1);var hn=ie.critical.draggable;kt.type==="ADDITION"&&(Ma(Y,hn,kt.value)&&ye.add(kt.value)),kt.type==="REMOVAL"&&(Ma(Y,hn,kt.value)&&ye.remove(kt.value))},Wt=function(kt){ie&&$(!1);var hn=Y.draggable.getById(kt.draggableId),ur=Y.droppable.getById(hn.descriptor.droppableId),gr={draggable:hn.descriptor,droppable:ur.descriptor},kr=Y.subscribe(Ut);return ie={critical:gr,unsubscribe:kr},Ba({critical:gr,registry:Y,scrollOptions:kt.scrollOptions})},Tt={updateDroppableIsEnabled:Ne,updateDroppableIsCombineEnabled:ke,scrollDroppable:Ve,updateDroppableScroll:ze,startPublishing:Wt,stopPublishing:xt};return Tt},to=function(Y,Z){return Y.phase==="IDLE"?!0:Y.phase!=="DROP_ANIMATING"||Y.completed.result.draggableId===Z?!1:Y.completed.result.reason==="DROP"},Mo=function(Y){window.scrollBy(Y.x,Y.y)},Ii=A(function(Y){return Bt(Y).filter(function(Z){return Z.isEnabled?!!Z.frame:!1})}),no=function(Z,ie){var ye=st(Ii(ie),function(Ne){return Ne.frame||$(!1),yn(Ne.frame.pageMarginBox)(Z)});return ye},ro=function(Y){var Z=Y.center,ie=Y.destination,ye=Y.droppables;if(ie){var Ne=ye[ie];return Ne.frame?Ne:null}var ke=no(Z,ye);return ke},mi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Z){return Math.pow(Z,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},uo=function(Y,Z){var ie=Y[Z.size]*mi.startFromPercentage,ye=Y[Z.size]*mi.maxScrollAtPercentage,Ne={startScrollingFrom:ie,maxScrollValueAt:ye};return Ne},Io=function(Y){var Z=Y.startOfRange,ie=Y.endOfRange,ye=Y.current,Ne=ie-Z;if(Ne===0)return 0;var ke=ye-Z,ze=ke/Ne;return ze},Lo=1,bo=function(Y,Z){if(Y>Z.startScrollingFrom)return 0;if(Y<=Z.maxScrollValueAt)return mi.maxPixelScroll;if(Y===Z.startScrollingFrom)return Lo;var ie=Io({startOfRange:Z.maxScrollValueAt,endOfRange:Z.startScrollingFrom,current:Y}),ye=1-ie,Ne=mi.maxPixelScroll*mi.ease(ye);return Math.ceil(Ne)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(Y,Z){var ie=Z,ye=co,Ne=Date.now(),ke=Ne-ie;if(ke>=co)return Y;if(keZ.height,ke=ie.width>Z.width;return!ke&&!Ne?ye:ke&&Ne?null:{x:ke?0:ye.x,y:Ne?0:ye.y}},ao=Ue(function(Y){return Y===0?0:Y}),Ji=function(Y){var Z=Y.dragStartTime,ie=Y.container,ye=Y.subject,Ne=Y.center,ke=Y.shouldUseTimeDampening,ze={top:Ne.y-ie.top,right:ie.right-Ne.x,bottom:ie.bottom-Ne.y,left:Ne.x-ie.left},Ve=No({container:ie,distanceToEdges:ze,dragStartTime:Z,axis:on,shouldUseTimeDampening:ke}),xt=No({container:ie,distanceToEdges:ze,dragStartTime:Z,axis:mn,shouldUseTimeDampening:ke}),Ut=ao({x:xt,y:Ve});if(dt(Ut,Ae))return null;var Wt=yo({container:ie,subject:ye,proposedScroll:Ut});return Wt?dt(Wt,Ae)?null:Wt:null},Qi=Ue(function(Y){return Y===0?0:Y>0?1:-1}),ei=function(){var Y=function(ie,ye){return ie<0?ie:ie>ye?ie-ye:0};return function(Z){var ie=Z.current,ye=Z.max,Ne=Z.change,ke=Qe(ie,Ne),ze={x:Y(ke.x,ye.x),y:Y(ke.y,ye.y)};return dt(ze,Ae)?null:ze}}(),Li=function(Z){var ie=Z.max,ye=Z.current,Ne=Z.change,ke={x:Math.max(ye.x,ie.x),y:Math.max(ye.y,ie.y)},ze=Qi(Ne),Ve=ei({max:ke,current:ye,change:ze});return Ve?ze.x!==0&&Ve.x===0?!0:ze.y!==0&&Ve.y===0:!0},Di=function(Z,ie){return Li({current:Z.scroll.current,max:Z.scroll.max,change:ie})},Zi=function(Z,ie){if(!Di(Z,ie))return null;var ye=Z.scroll.max,Ne=Z.scroll.current;return ei({current:Ne,max:ye,change:ie})},Ri=function(Z,ie){var ye=Z.frame;return ye?Li({current:ye.scroll.current,max:ye.scroll.max,change:ie}):!1},Eo=function(Z,ie){var ye=Z.frame;return ye&&Ri(Z,ie)?ei({current:ye.scroll.current,max:ye.scroll.max,change:ie}):null},xo=function(Y){var Z=Y.viewport,ie=Y.subject,ye=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,ze=Ji({dragStartTime:Ne,container:Z.frame,subject:ie,center:ye,shouldUseTimeDampening:ke});return ze&&Di(Z,ze)?ze:null},Co=function(Y){var Z=Y.droppable,ie=Y.subject,ye=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,ze=Z.frame;if(!ze)return null;var Ve=Ji({dragStartTime:Ne,container:ze.pageMarginBox,subject:ie,center:ye,shouldUseTimeDampening:ke});return Ve&&Ri(Z,Ve)?Ve:null},io=function(Y){var Z=Y.state,ie=Y.dragStartTime,ye=Y.shouldUseTimeDampening,Ne=Y.scrollWindow,ke=Y.scrollDroppable,ze=Z.current.page.borderBoxCenter,Ve=Z.dimensions.draggables[Z.critical.draggable.id],xt=Ve.page.marginBox;if(Z.isWindowScrollAllowed){var Ut=Z.viewport,Wt=xo({dragStartTime:ie,viewport:Ut,subject:xt,center:ze,shouldUseTimeDampening:ye});if(Wt){Ne(Wt);return}}var Tt=ro({center:ze,destination:Kt(Z.impact),droppables:Z.dimensions.droppables});if(!Tt)return;var St=Co({dragStartTime:ie,droppable:Tt,subject:xt,center:ze,shouldUseTimeDampening:ye});St&&ke(Tt.descriptor.id,St)},Ni=function(Y){var Z=Y.scrollWindow,ie=Y.scrollDroppable,ye=L(Z),Ne=L(ie),ke=null,ze=function(Wt){ke||$(!1);var Tt=ke,St=Tt.shouldUseTimeDampening,kt=Tt.dragStartTime;io({state:Wt,scrollWindow:ye,scrollDroppable:Ne,dragStartTime:kt,shouldUseTimeDampening:St})},Ve=function(Wt){Pr(),ke&&$(!1);var Tt=Date.now(),St=!1,kt=function(){St=!0};io({state:Wt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:kt,scrollDroppable:kt}),ke={dragStartTime:Tt,shouldUseTimeDampening:St},Lr(),St&&ze(Wt)},xt=function(){if(!ke)return;ye.cancel(),Ne.cancel(),ke=null};return{start:Ve,stop:xt,scroll:ze}},qi=function(Y){var Z=Y.move,ie=Y.scrollDroppable,ye=Y.scrollWindow,Ne=function(Ut,Wt){var Tt=Qe(Ut.current.client.selection,Wt);Z({client:Tt})},ke=function(Ut,Wt){if(!Ri(Ut,Wt))return Wt;var Tt=Eo(Ut,Wt);if(!Tt)return ie(Ut.descriptor.id,Wt),null;var St=tt(Wt,Tt);ie(Ut.descriptor.id,St);var kt=tt(Wt,St);return kt},ze=function(Ut,Wt,Tt){if(!Ut)return Tt;if(!Di(Wt,Tt))return Tt;var St=Zi(Wt,Tt);if(!St)return ye(Tt),null;var kt=tt(Tt,St);ye(kt);var hn=tt(Tt,kt);return hn},Ve=function(Ut){var Wt=Ut.scrollJumpRequest;if(!Wt)return;var Tt=Kt(Ut.impact);Tt||$(!1);var St=ke(Ut.dimensions.droppables[Tt],Wt);if(!St)return;var kt=Ut.viewport,hn=ze(Ut.isWindowScrollAllowed,kt,St);if(!hn)return;Ne(Ut,hn)};return Ve},ko=function(Y){var Z=Y.scrollDroppable,ie=Y.scrollWindow,ye=Y.move,Ne=Ni({scrollWindow:ie,scrollDroppable:Z}),ke=qi({move:ye,scrollWindow:ie,scrollDroppable:Z}),ze=function(Ut){if(Ut.phase!=="DRAGGING")return;if(Ut.movementMode==="FLUID"){Ne.scroll(Ut);return}if(!Ut.scrollJumpRequest)return;ke(Ut)},Ve={scroll:ze,start:Ne.start,stop:Ne.stop};return Ve},oo="data-rbd",so=function(){var Y=oo+"-drag-handle";return{base:Y,draggableId:Y+"-draggable-id",contextId:Y+"-context-id"}}(),So=function(){var Y=oo+"-draggable";return{base:Y,contextId:Y+"-context-id",id:Y+"-id"}}(),Uo=function(){var Y=oo+"-droppable";return{base:Y,contextId:Y+"-context-id",id:Y+"-id"}}(),jo={contextId:oo+"-scroll-container-context-id"},fi=function(Z){return function(ie){return"["+ie+'="'+Z+'"]'}},Ha=function(Z,ie){return Z.map(function(ye){var Ne=ye.styles[ie];return Ne?ye.selector+" { "+Ne+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(Y){var Z=fi(Y),ie=function(){var Ve=` + `},_e={dragHandleUsageInstructions:re,onDragStart:Oe,onDragUpdate:Q,onDragEnd:ve},Ae={x:0,y:0},Qe=function(Z,ie){return{x:Z.x+ie.x,y:Z.y+ie.y}},tt=function(Z,ie){return{x:Z.x-ie.x,y:Z.y-ie.y}},dt=function(Z,ie){return Z.x===ie.x&&Z.y===ie.y},mt=function(Z){return{x:Z.x!==0?-Z.x:0,y:Z.y!==0?-Z.y:0}},vt=function(Z,ie,ye){var Ne;return ye===void 0&&(ye=0),Ne={},Ne[Z]=ie,Ne[Z==="x"?"y":"x"]=ye,Ne},yt=function(Z,ie){return Math.sqrt(Math.pow(ie.x-Z.x,2)+Math.pow(ie.y-Z.y,2))},Ye=function(Z,ie){return Math.min.apply(Math,ie.map(function(ye){return yt(Z,ye)}))},Ue=function(Z){return function(ie){return{x:Z(ie.x),y:Z(ie.y)}}},ft=function(Y,Z){var ie=r({top:Math.max(Z.top,Y.top),right:Math.min(Z.right,Y.right),bottom:Math.min(Z.bottom,Y.bottom),left:Math.max(Z.left,Y.left)});return ie.width<=0||ie.height<=0?null:ie},jt=function(Z,ie){return{top:Z.top+ie.y,left:Z.left+ie.x,bottom:Z.bottom+ie.y,right:Z.right+ie.x}},bt=function(Z){return[{x:Z.left,y:Z.top},{x:Z.right,y:Z.top},{x:Z.left,y:Z.bottom},{x:Z.right,y:Z.bottom}]},Pt={top:0,right:0,bottom:0,left:0},it=function(Z,ie){return ie?jt(Z,ie.scroll.diff.displacement):Z},He=function(Z,ie,ye){if(ye&&ye.increasedBy){var Ne;return Object(b.a)({},Z,(Ne={},Ne[ie.end]=Z[ie.end]+ye.increasedBy[ie.line],Ne))}return Z},Ge=function(Z,ie){return ie&&ie.shouldClipSubject?ft(ie.pageMarginBox,Z):r(Z)},Ce=function(Y){var Z=Y.page,ie=Y.withPlaceholder,ye=Y.axis,Ne=Y.frame,ke=it(Z.marginBox,Ne),ze=He(ke,ye,ie),Ve=Ge(ze,Ne);return{page:Z,withPlaceholder:ie,active:Ve}},Ie=function(Y,Z){Y.frame||$(!1);var ie=Y.frame,ye=tt(Z,ie.scroll.initial),Ne=mt(ye),ke=Object(b.a)({},ie,{scroll:{initial:ie.scroll.initial,current:Z,diff:{value:ye,displacement:Ne},max:ie.scroll.max}}),ze=Ce({page:Y.subject.page,withPlaceholder:Y.subject.withPlaceholder,axis:Y.axis,frame:ke}),Ve=Object(b.a)({},Y,{frame:ke,subject:ze});return Ve};function Fe(Y){return Number.isInteger?Number.isInteger(Y):typeof Y=="number"&&isFinite(Y)&&Math.floor(Y)===Y}function Be(Y){return Object.values?Object.values(Y):Object.keys(Y).map(function(Z){return Y[Z]})}function We(Y,Z){if(Y.findIndex)return Y.findIndex(Z);for(var ie=0;ieY.bottom,Ut=ye.leftY.right,Wt=xt&&Ut;if(Wt)return!0;var Tt=xt&&ze||Ut&&ke;return Tt}},Lt=function(Y){var Z=lt(Y.top,Y.bottom),ie=lt(Y.left,Y.right);return function(ye){var Ne=Z(ye.top)&&Z(ye.bottom)&&ie(ye.left)&&ie(ye.right);return Ne}},on={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},mn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Hn=function(Y){return function(Z){var ie=lt(Z.top,Z.bottom),ye=lt(Z.left,Z.right);return function(Ne){return Y===on?ie(Ne.top)&&ie(Ne.bottom):ye(Ne.left)&&ye(Ne.right)}}},Xn=function(Z,ie){var ye=ie.frame?ie.frame.scroll.diff.displacement:Ae;return jt(Z,ye)},Fn=function(Z,ie,ye){return ie.subject.active?ye(ie.subject.active)(Z):!1},xn=function(Z,ie,ye){return ye(ie)(Z)},fr=function(Z){var ie=Z.target,ye=Z.destination,Ne=Z.viewport,ke=Z.withDroppableDisplacement,ze=Z.isVisibleThroughFrameFn,Ve=ke?Xn(ie,ye):ie;return Fn(Ve,ye,ze)&&xn(Ve,Ne,ze)},Yn=function(Z){return fr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Ft}))},ar=function(Z){return fr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Lt}))},nr=function(Z){return fr(Object(b.a)({},Z,{isVisibleThroughFrameFn:Hn(Z.destination.axis)}))},Rr=function(Z,ie,ye){if(typeof ye=="boolean")return ye;if(!ie)return!0;var Ne=ie.invisible,ke=ie.visible;if(Ne[Z])return!1;var ze=ke[Z];return ze?ze.shouldAnimate:!0};function pr(Y,Z){var ie=Y.page.marginBox,ye={top:Z.point.y,right:0,bottom:0,left:Z.point.x};return r(i(ie,ye))}function sn(Y){var Z=Y.afterDragging,ie=Y.destination,ye=Y.displacedBy,Ne=Y.viewport,ke=Y.forceShouldAnimate,ze=Y.last;return Z.reduce(function(xt,Ut){var Wt=pr(Ut,ye),Tt=Ut.descriptor.id;xt.all.push(Tt);var St=Yn({target:Wt,destination:ie,viewport:Ne,withDroppableDisplacement:!0});if(!St)return xt.invisible[Ut.descriptor.id]=!0,xt;var kt=Rr(Tt,ze,ke),hn={draggableId:Tt,shouldAnimate:kt};return xt.visible[Tt]=hn,xt},{all:[],visible:{},invisible:{}})}function qt(Y,Z){if(!Y.length)return 0;var ie=Y[Y.length-1].descriptor.index;return Z.inHomeList?ie:ie+1}function On(Y){var Z=Y.insideDestination,ie=Y.inHomeList,ye=Y.displacedBy,Ne=Y.destination,ke=qt(Z,{inHomeList:ie});return{displaced:Ot,displacedBy:ye,at:{type:"REORDER",destination:{droppableId:Ne.descriptor.id,index:ke}}}}function Fr(Y){var Z=Y.draggable,ie=Y.insideDestination,ye=Y.destination,Ne=Y.viewport,ke=Y.displacedBy,ze=Y.last,Ve=Y.index,xt=Y.forceShouldAnimate,Ut=ht(Z,ye);if(Ve==null)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:ye});var Wt=st(ie,function(ur){return ur.descriptor.index===Ve});if(!Wt)return On({insideDestination:ie,inHomeList:Ut,displacedBy:ke,destination:ye});var Tt=Pe(Z,ie),St=ie.indexOf(Wt),kt=Tt.slice(St),hn=sn({afterDragging:kt,destination:ye,displacedBy:ke,last:ze,viewport:Ne.frame,forceShouldAnimate:xt});return{displaced:hn,displacedBy:ke,at:{type:"REORDER",destination:{droppableId:ye.descriptor.id,index:Ve}}}}function Or(Y,Z){return Boolean(Z.effected[Y])}var xr=function(Y){var Z=Y.isMovingForward,ie=Y.destination,ye=Y.draggables,Ne=Y.combine,ke=Y.afterCritical;if(!ie.isCombineEnabled)return null;var ze=Ne.draggableId,Ve=ye[ze],xt=Ve.descriptor.index,Ut=Or(ze,ke);return Ut?Z?xt:xt-1:Z?xt+1:xt},dr=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,ye=Y.insideDestination,Ne=Y.location;if(!ye.length)return null;var ke=Ne.index,ze=Z?ke+1:ke-1,Ve=ye[0].descriptor.index,xt=ye[ye.length-1].descriptor.index,Ut=ie?xt:xt+1;return zeUt?null:ze},pe=function(Y){var Z=Y.isMovingForward,ie=Y.isInHomeList,ye=Y.draggable,Ne=Y.draggables,ke=Y.destination,ze=Y.insideDestination,Ve=Y.previousImpact,xt=Y.viewport,Ut=Y.afterCritical,Wt=Ve.at;if(Wt||$(!1),Wt.type==="REORDER"){var Tt=dr({isMovingForward:Z,isInHomeList:ie,location:Wt.destination,insideDestination:ze});return Tt==null?null:Fr({draggable:ye,insideDestination:ze,destination:ke,viewport:xt,last:Ve.displaced,displacedBy:Ve.displacedBy,index:Tt})}var St=xr({isMovingForward:Z,destination:ke,displaced:Ve.displaced,draggables:Ne,combine:Wt.combine,afterCritical:Ut});return St==null?null:Fr({draggable:ye,insideDestination:ze,destination:ke,viewport:xt,last:Ve.displaced,displacedBy:Ve.displacedBy,index:St})},X=function(Y){var Z=Y.displaced,ie=Y.afterCritical,ye=Y.combineWith,Ne=Y.displacedBy,ke=Boolean(Z.visible[ye]||Z.invisible[ye]);return Or(ye,ie)?ke?Ae:mt(Ne.point):ke?Ne.point:Ae},q=function(Y){var Z=Y.afterCritical,ie=Y.impact,ye=Y.draggables,Ne=at(ie);Ne||$(!1);var ke=Ne.draggableId,ze=ye[ke].page.borderBox.center,Ve=X({displaced:ie.displaced,afterCritical:Z,combineWith:ke,displacedBy:ie.displacedBy});return Qe(ze,Ve)},oe=function(Z,ie){return ie.margin[Z.start]+ie.borderBox[Z.size]/2},De=function(Z,ie){return ie.margin[Z.end]+ie.borderBox[Z.size]/2},fe=function(Z,ie,ye){return ie[Z.crossAxisStart]+ye.margin[Z.crossAxisStart]+ye.borderBox[Z.crossAxisSize]/2},ot=function(Z){var ie=Z.axis,ye=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,ye.marginBox[ie.end]+oe(ie,Ne),fe(ie,ye.marginBox,Ne))},Qt=function(Z){var ie=Z.axis,ye=Z.moveRelativeTo,Ne=Z.isMoving;return vt(ie.line,ye.marginBox[ie.start]-De(ie,Ne),fe(ie,ye.marginBox,Ne))},Mn=function(Z){var ie=Z.axis,ye=Z.moveInto,Ne=Z.isMoving;return vt(ie.line,ye.contentBox[ie.start]+oe(ie,Ne),fe(ie,ye.contentBox,Ne))},Vn=function(Y){var Z=Y.impact,ie=Y.draggable,ye=Y.draggables,Ne=Y.droppable,ke=Y.afterCritical,ze=Ke(Ne.descriptor.id,ye),Ve=ie.page,xt=Ne.axis;if(!ze.length)return Mn({axis:xt,moveInto:Ne.page,isMoving:Ve});var Ut=Z.displaced,Wt=Z.displacedBy,Tt=Ut.all[0];if(Tt){var St=ye[Tt];if(Or(Tt,ke))return Qt({axis:xt,moveRelativeTo:St.page,isMoving:Ve});var kt=w(St.page,Wt.point);return Qt({axis:xt,moveRelativeTo:kt,isMoving:Ve})}var hn=ze[ze.length-1];if(hn.descriptor.id===ie.descriptor.id)return Ve.borderBox.center;if(Or(hn.descriptor.id,ke)){var ur=w(hn.page,mt(ke.displacedBy.point));return ot({axis:xt,moveRelativeTo:ur,isMoving:Ve})}return ot({axis:xt,moveRelativeTo:hn.page,isMoving:Ve})},$t=function(Y,Z){var ie=Y.frame;return ie?Qe(Z,ie.scroll.diff.displacement):Z},gn=function(Z){var ie=Z.impact,ye=Z.draggable,Ne=Z.droppable,ke=Z.draggables,ze=Z.afterCritical,Ve=ye.page.borderBox.center,xt=ie.at;return Ne&&xt?xt.type==="REORDER"?Vn({impact:ie,draggable:ye,draggables:ke,droppable:Ne,afterCritical:ze}):q({impact:ie,draggables:ke,afterCritical:ze}):Ve},pn=function(Y){var Z=gn(Y),ie=Y.droppable,ye=ie?$t(ie,Z):Z;return ye},Ar=function(Y,Z){var ie=tt(Z,Y.scroll.initial),ye=mt(ie),Ne=r({top:Z.y,bottom:Z.y+Y.frame.height,left:Z.x,right:Z.x+Y.frame.width}),ke={frame:Ne,scroll:{initial:Y.scroll.initial,max:Y.scroll.max,current:Z,diff:{value:ie,displacement:ye}}};return ke};function ra(Y,Z){return Y.map(function(ie){return Z[ie]})}function oa(Y,Z){for(var ie=0;ie1?Wt.sort(function(Tt,St){return wa(Tt)[Ve.start]-wa(St)[Ve.start]})[0]:Ut.sort(function(Tt,St){var kt=Ye(ie,bt(wa(Tt))),hn=Ye(ie,bt(wa(St)));return kt!==hn?kt-hn:wa(Tt)[Ve.start]-wa(St)[Ve.start]})[0]},ja=function(Z,ie){var ye=Z.page.borderBox.center;return Or(Z.descriptor.id,ie)?tt(ye,ie.displacedBy.point):ye},li=function(Z,ie){var ye=Z.page.borderBox;return Or(Z.descriptor.id,ie)?jt(ye,mt(ie.displacedBy.point)):ye},oi=function(Y){var Z=Y.pageBorderBoxCenter,ie=Y.viewport,ye=Y.destination,Ne=Y.insideDestination,ke=Y.afterCritical,ze=Ne.filter(function(Ve){return ar({target:li(Ve,ke),destination:ye,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(Ve,xt){var Ut=yt(Z,$t(ye,ja(Ve,ke))),Wt=yt(Z,$t(ye,ja(xt,ke)));return UtZ.left&&Y.topZ.top}function Nn(Y){var Z=Y.pageBorderBox,ie=Y.draggable,ye=Y.candidates,Ne=ie.page.borderBox.center,ke=ye.map(function(ze){var Ve=ze.axis,xt=vt(ze.axis.line,Z.center[Ve.line],ze.page.borderBox.center[Ve.crossAxisLine]);return{id:ze.descriptor.id,distance:yt(Ne,xt)}}).sort(function(ze,Ve){return Ve.distance-ze.distance});return ke[0]?ke[0].id:null}function An(Y){var Z=Y.pageBorderBox,ie=Y.draggable,ye=Y.droppables,Ne=Bt(ye).filter(function(ke){if(!ke.isEnabled)return!1;var ze=ke.subject.active;if(!ze)return!1;if(!vn(Z,ze))return!1;if(yn(ze)(Z.center))return!0;var Ve=ke.axis,xt=ze.center[Ve.crossAxisLine],Ut=Z[Ve.crossAxisStart],Wt=Z[Ve.crossAxisEnd],Tt=lt(ze[Ve.crossAxisStart],ze[Ve.crossAxisEnd]),St=Tt(Ut),kt=Tt(Wt);return!St&&!kt?!0:St?Utxt});return Ne.length?Ne.length===1?Ne[0].descriptor.id:Nn({pageBorderBox:Z,draggable:ie,candidates:Ne}):null}var an=function(Z,ie){return r(jt(Z,ie))},Pn=function(Y,Z){var ie=Y.frame;return ie?an(Z,ie.scroll.diff.value):Z};function bn(Y){var Z=Y.displaced,ie=Y.id;return Boolean(Z.visible[ie]||Z.invisible[ie])}function kn(Y){var Z=Y.draggable,ie=Y.closest,ye=Y.inHomeList;return ie?ye&&ie.descriptor.index>Z.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var Rn=function(Y){var Z=Y.pageBorderBoxWithDroppableScroll,ie=Y.draggable,ye=Y.destination,Ne=Y.insideDestination,ke=Y.last,ze=Y.viewport,Ve=Y.afterCritical,xt=ye.axis,Ut=fa(ye.axis,ie.displaceBy),Wt=Ut.value,Tt=Z[xt.start],St=Z[xt.end],kt=Pe(ie,Ne),hn=st(kt,function(gr){var kr=gr.descriptor.id,Gr=gr.page.borderBox.center[xt.line],na=Or(kr,Ve),Hr=bn({displaced:ke,id:kr});return na?Hr?St<=Gr:Ttkr[Ve.start]+na&&Ttkr[Ve.start]-Ut+na&&Wtkr[Ve.start]+Ut+na&&Ttkr[Ve.start]+na&&Wt=Cn)return un;var ke=Ne/Cn,ze=cn+Wn*ke,Ve=ye==="CANCEL"?ze*jr:ze;return Number(Ve.toFixed(2))},Qr=function(Y){var Z=Y.impact,ie=Y.draggable,ye=Y.dimensions,Ne=Y.viewport,ke=Y.afterCritical,ze=ye.draggables,Ve=ye.droppables,xt=Kt(Z),Ut=xt?Ve[xt]:null,Wt=Ve[ie.descriptor.droppableId],Tt=_n({impact:Z,draggable:ie,draggables:ze,afterCritical:ke,droppable:Ut||Wt,viewport:Ne}),St=tt(Tt,ie.client.borderBox.center);return St},Wr=function(Y){var Z=Y.draggables,ie=Y.reason,ye=Y.lastImpact,Ne=Y.home,ke=Y.viewport,ze=Y.onLiftImpact;if(!ye.at||ie!=="DROP"){var Ve=wn({draggables:Z,impact:ze,destination:Ne,viewport:ke,forceShouldAnimate:!0});return{impact:Ve,didDropInsideDroppable:!1}}if(ye.at.type==="REORDER")return{impact:ye,didDropInsideDroppable:!0};var xt=Object(b.a)({},ye,{displaced:Ot});return{impact:xt,didDropInsideDroppable:!0}},ta=function(Y){var Z=Y.getState,ie=Y.dispatch;return function(ye){return function(Ne){if(Ne.type!=="DROP"){ye(Ne);return}var ke=Z(),ze=Ne.payload.reason;if(ke.phase==="COLLECTING"){ie(_t({reason:ze}));return}if(ke.phase==="IDLE")return;var Ve=ke.phase==="DROP_PENDING"&&ke.isWaiting;Ve&&$(!1),ke.phase==="DRAGGING"||ke.phase==="DROP_PENDING"||$(!1);var xt=ke.critical,Ut=ke.dimensions,Wt=Ut.draggables[ke.critical.draggable.id],Tt=Wr({reason:ze,lastImpact:ke.impact,afterCritical:ke.afterCritical,onLiftImpact:ke.onLiftImpact,home:ke.dimensions.droppables[ke.critical.droppable.id],viewport:ke.viewport,draggables:ke.dimensions.draggables}),St=Tt.impact,kt=Tt.didDropInsideDroppable,hn=kt?et(St):null,ur=kt?at(St):null,gr={index:xt.draggable.index,droppableId:xt.droppable.id},kr={draggableId:Wt.descriptor.id,type:Wt.descriptor.type,source:gr,reason:ze,mode:ke.movementMode,destination:hn,combine:ur},Gr=Qr({impact:St,draggable:Wt,dimensions:Ut,viewport:ke.viewport,afterCritical:ke.afterCritical}),na={critical:ke.critical,afterCritical:ke.afterCritical,result:kr,impact:St},Hr=!dt(ke.current.client.offset,Gr)||Boolean(kr.combine);if(!Hr){ie(Ze({completed:na}));return}var Ia=Mr({current:ke.current.client.offset,destination:Gr,reason:ze}),Da={newHomeClientOffset:Gr,dropDuration:Ia,completed:na};ie(_a(Da))}}},Kn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function wr(Y){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ie){if(ie.target!==window&&ie.target!==window.document)return;Y()}}}function Gn(Y){var Z=Y.onWindowScroll;function ie(){Z(Kn())}var ye=L(ie),Ne=wr(ye),ke=Te;function ze(){return ke!==Te}function Ve(){ze()&&$(!1),ke=be(window,[Ne])}function xt(){ze()||$(!1),ye.cancel(),ke(),ke=Te}return{start:Ve,stop:xt,isActive:ze}}var En=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},jn=function(Y){var Z=Gn({onWindowScroll:function(ye){Y.dispatch(da({newScroll:ye}))}});return function(ie){return function(ye){!Z.isActive()&&ye.type==="INITIAL_PUBLISH"&&Z.start(),Z.isActive()&&En(ye)&&Z.stop(),ie(ye)}}},Vr=function(Y){var Z=!1,ie=!1,ye=setTimeout(function(){ie=!0}),Ne=function(ze){if(Z)return;if(ie)return;Z=!0,Y(ze),clearTimeout(ye)};return Ne.wasCalled=function(){return Z},Ne},ua=function(){var Y=[],Z=function(ke){var ze=We(Y,function(Ut){return Ut.timerId===ke});ze!==-1||$(!1);var Ve=Y.splice(ze,1),xt=Ve[0];xt.callback()},ie=function(ke){var ze=setTimeout(function(){return Z(ze)}),Ve={timerId:ze,callback:ke};Y.push(Ve)},ye=function(){if(!Y.length)return;var ke=[].concat(Y);Y.length=0,ke.forEach(function(ze){clearTimeout(ze.timerId),ze.callback()})};return{add:ie,flush:ye}},hr=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.droppableId===ie.droppableId&&Z.index===ie.index},aa=function(Z,ie){return Z==null&&ie==null?!0:Z==null||ie==null?!1:Z.draggableId===ie.draggableId&&Z.droppableId===ie.droppableId},xa=function(Z,ie){if(Z===ie)return!0;var ye=Z.draggable.id===ie.draggable.id&&Z.draggable.droppableId===ie.draggable.droppableId&&Z.draggable.type===ie.draggable.type&&Z.draggable.index===ie.draggable.index,Ne=Z.droppable.id===ie.droppable.id&&Z.droppable.type===ie.droppable.type;return ye&&Ne},ha=function(Z,ie){Pr(),ie(),Lr()},Ca=function(Z,ie){return{draggableId:Z.draggable.id,type:Z.droppable.type,source:{droppableId:Z.droppable.id,index:Z.draggable.index},mode:ie}},Tr=function(Z,ie,ye,Ne){if(!Z){ye(Ne(ie));return}var ke=Vr(ye),ze={announce:ke};Z(ie,ze),ke.wasCalled()||ye(Ne(ie))},br=function(Y,Z){var ie=ua(),ye=null,Ne=function(St,kt){ye&&$(!1),ha("onBeforeCapture",function(){var hn=Y().onBeforeCapture;if(hn){var ur={draggableId:St,mode:kt};hn(ur)}})},ke=function(St,kt){ye&&$(!1),ha("onBeforeDragStart",function(){var hn=Y().onBeforeDragStart;hn&&hn(Ca(St,kt))})},ze=function(St,kt){ye&&$(!1);var hn=Ca(St,kt);ye={mode:kt,lastCritical:St,lastLocation:hn.source,lastCombine:null},ie.add(function(){ha("onDragStart",function(){return Tr(Y().onDragStart,hn,Z,_e.onDragStart)})})},Ve=function(St,kt){var hn=et(kt),ur=at(kt);ye||$(!1);var gr=!xa(St,ye.lastCritical);gr&&(ye.lastCritical=St);var kr=!hr(ye.lastLocation,hn);kr&&(ye.lastLocation=hn);var Gr=!aa(ye.lastCombine,ur);if(Gr&&(ye.lastCombine=ur),!gr&&!kr&&!Gr)return;var na=Object(b.a)({},Ca(St,ye.mode),{combine:ur,destination:hn});ie.add(function(){ha("onDragUpdate",function(){return Tr(Y().onDragUpdate,na,Z,_e.onDragUpdate)})})},xt=function(){ye||$(!1),ie.flush()},Ut=function(St){ye||$(!1),ye=null,ha("onDragEnd",function(){return Tr(Y().onDragEnd,St,Z,_e.onDragEnd)})},Wt=function(){if(!ye)return;var St=Object(b.a)({},Ca(ye.lastCritical,ye.mode),{combine:null,destination:null,reason:"CANCEL"});Ut(St)};return{beforeCapture:Ne,beforeStart:ke,start:ze,update:Ve,flush:xt,drop:Ut,abort:Wt}},Ir=function(Y,Z){var ie=br(Y,Z);return function(ye){return function(Ne){return function(ke){if(ke.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(ke.payload.draggableId,ke.payload.movementMode);return}if(ke.type==="INITIAL_PUBLISH"){var ze=ke.payload.critical;ie.beforeStart(ze,ke.payload.movementMode),Ne(ke),ie.start(ze,ke.payload.movementMode);return}if(ke.type==="DROP_COMPLETE"){var Ve=ke.payload.completed.result;ie.flush(),Ne(ke),ie.drop(Ve);return}if(Ne(ke),ke.type==="FLUSH"){ie.abort();return}var xt=ye.getState();xt.phase==="DRAGGING"&&ie.update(xt.critical,xt.impact)}}}},er=function(Y){return function(Z){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){Z(ie);return}var ye=Y.getState();ye.phase==="DROP_ANIMATING"||$(!1),Y.dispatch(Ze({completed:ye.completed}))}}},pa=function(Y){var Z=null,ie=null;function ye(){ie&&(cancelAnimationFrame(ie),ie=null),Z&&(Z(),Z=null)}return function(Ne){return function(ke){if((ke.type==="FLUSH"||ke.type==="DROP_COMPLETE"||ke.type==="DROP_ANIMATION_FINISHED")&&ye(),Ne(ke),ke.type!=="DROP_ANIMATE")return;var ze={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var xt=Y.getState();xt.phase==="DROP_ANIMATING"&&Y.dispatch(nt())}};ie=requestAnimationFrame(function(){ie=null,Z=be(window,[ze])})}}},Ea=function(Y){return function(){return function(Z){return function(ie){(ie.type==="DROP_COMPLETE"||ie.type==="FLUSH"||ie.type==="DROP_ANIMATE")&&Y.stopPublishing(),Z(ie)}}}},ba=function(Y){var Z=!1;return function(){return function(ie){return function(ye){if(ye.type==="INITIAL_PUBLISH"){Z=!0,Y.tryRecordFocus(ye.payload.critical.draggable.id),ie(ye),Y.tryRestoreFocusRecorded();return}if(ie(ye),!Z)return;if(ye.type==="FLUSH"){Z=!1,Y.tryRestoreFocusRecorded();return}if(ye.type==="DROP_COMPLETE"){Z=!1;var Ne=ye.payload.completed.result;Ne.combine&&Y.tryShiftRecord(Ne.draggableId,Ne.combine.draggableId),Y.tryRestoreFocusRecorded()}}}}},Oa=function(Z){return Z.type==="DROP_COMPLETE"||Z.type==="DROP_ANIMATE"||Z.type==="FLUSH"},ga=function(Y){return function(Z){return function(ie){return function(ye){if(Oa(ye)){Y.stop(),ie(ye);return}if(ye.type==="INITIAL_PUBLISH"){ie(ye);var Ne=Z.getState();Ne.phase==="DRAGGING"||$(!1),Y.start(Ne);return}ie(ye),Y.scroll(Z.getState())}}}},ka=function(Y){return function(Z){return function(ie){if(Z(ie),ie.type!=="PUBLISH_WHILE_DRAGGING")return;var ye=Y.getState();if(ye.phase!=="DROP_PENDING")return;if(ye.isWaiting)return;Y.dispatch(ct({reason:ye.reason}))}}},Ua=y.d,Fa=function(Y){var Z=Y.dimensionMarshal,ie=Y.focusMarshal,ye=Y.styleMarshal,Ne=Y.getResponders,ke=Y.announce,ze=Y.autoScroller;return Object(y.e)(Zt,Ua(Object(y.a)($e(ye),Ea(Z),Le(Z),ta,er,pa,ka,ga(ze),jn,ba(ie),Ir(Ne,ke))))},ni=function(){return{additions:{},removals:{},modified:{}}};function Fi(Y){var Z=Y.registry,ie=Y.callbacks,ye=ni(),Ne=null,ke=function(){if(Ne)return;ie.collectionStarting(),Ne=requestAnimationFrame(function(){Ne=null,Pr();var Wt=ye,Tt=Wt.additions,St=Wt.removals,kt=Wt.modified,hn=Object.keys(Tt).map(function(kr){return Z.draggable.getById(kr).getDimension(Ae)}).sort(function(kr,Gr){return kr.descriptor.index-Gr.descriptor.index}),ur=Object.keys(kt).map(function(kr){var Gr=Z.droppable.getById(kr),na=Gr.callbacks.getScrollWhileDragging();return{droppableId:kr,scroll:na}}),gr={additions:hn,removals:Object.keys(St),modified:ur};ye=ni(),Lr(),ie.publish(gr)})},ze=function(Wt){var Tt=Wt.descriptor.id;ye.additions[Tt]=Wt,ye.modified[Wt.descriptor.droppableId]=!0,ye.removals[Tt]&&delete ye.removals[Tt],ke()},Ve=function(Wt){var Tt=Wt.descriptor;ye.removals[Tt.id]=!0,ye.modified[Tt.droppableId]=!0,ye.additions[Tt.id]&&delete ye.additions[Tt.id],ke()},xt=function(){if(!Ne)return;cancelAnimationFrame(Ne),Ne=null,ye=ni()};return{add:ze,remove:Ve,stop:xt}}var Ai=function(Y){var Z=Y.scrollHeight,ie=Y.scrollWidth,ye=Y.height,Ne=Y.width,ke=tt({x:ie,y:Z},{x:Ne,y:ye}),ze={x:Math.max(0,ke.x),y:Math.max(0,ke.y)};return ze},Na=function(){var Y=document.documentElement;return Y||$(!1),Y},bi=function(){var Y=Na(),Z=Ai({scrollHeight:Y.scrollHeight,scrollWidth:Y.scrollWidth,width:Y.clientWidth,height:Y.clientHeight});return Z},Si=function(){var Y=Kn(),Z=bi(),ie=Y.y,ye=Y.x,Ne=Na(),ke=Ne.clientWidth,ze=Ne.clientHeight,Ve=ye+ke,xt=ie+ze,Ut=r({top:ie,left:ye,right:Ve,bottom:xt}),Wt={frame:Ut,scroll:{initial:Y,current:Y,max:Z,diff:{value:Ae,displacement:Ae}}};return Wt},Ba=function(Y){var Z=Y.critical,ie=Y.scrollOptions,ye=Y.registry;Pr();var Ne=Si(),ke=Ne.scroll.current,ze=Z.droppable,Ve=ye.droppable.getAllByType(ze.type).map(function(Tt){return Tt.callbacks.getDimensionAndWatchScroll(ke,ie)}),xt=ye.draggable.getAllByType(Z.draggable.type).map(function(Tt){return Tt.getDimension(ke)}),Ut={draggables:rn(xt),droppables:Ht(Ve)};Lr();var Wt={dimensions:Ut,critical:Z,viewport:Ne};return Wt};function Ma(Y,Z,ie){if(ie.descriptor.id===Z.id)return!1;if(ie.descriptor.type!==Z.type)return!1;var ye=Y.droppable.getById(ie.descriptor.droppableId);return!(ye.descriptor.mode!=="virtual")}var Za=function(Y,Z){var ie=null,ye=Fi({callbacks:{publish:Z.publishWhileDragging,collectionStarting:Z.collectionStarting},registry:Y}),Ne=function(kt,hn){if(Y.droppable.exists(kt)||$(!1),!ie)return;Z.updateDroppableIsEnabled({id:kt,isEnabled:hn})},ke=function(kt,hn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableIsCombineEnabled({id:kt,isCombineEnabled:hn})},ze=function(kt,hn){if(!ie)return;Y.droppable.exists(kt)||$(!1),Z.updateDroppableScroll({id:kt,newScroll:hn})},Ve=function(kt,hn){if(!ie)return;Y.droppable.getById(kt).callbacks.scroll(hn)},xt=function(){if(!ie)return;ye.stop();var kt=ie.critical.droppable;Y.droppable.getAllByType(kt.type).forEach(function(hn){return hn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null},Ut=function(kt){ie||$(!1);var hn=ie.critical.draggable;kt.type==="ADDITION"&&(Ma(Y,hn,kt.value)&&ye.add(kt.value)),kt.type==="REMOVAL"&&(Ma(Y,hn,kt.value)&&ye.remove(kt.value))},Wt=function(kt){ie&&$(!1);var hn=Y.draggable.getById(kt.draggableId),ur=Y.droppable.getById(hn.descriptor.droppableId),gr={draggable:hn.descriptor,droppable:ur.descriptor},kr=Y.subscribe(Ut);return ie={critical:gr,unsubscribe:kr},Ba({critical:gr,registry:Y,scrollOptions:kt.scrollOptions})},Tt={updateDroppableIsEnabled:Ne,updateDroppableIsCombineEnabled:ke,scrollDroppable:Ve,updateDroppableScroll:ze,startPublishing:Wt,stopPublishing:xt};return Tt},to=function(Y,Z){return Y.phase==="IDLE"?!0:Y.phase!=="DROP_ANIMATING"||Y.completed.result.draggableId===Z?!1:Y.completed.result.reason==="DROP"},Mo=function(Y){window.scrollBy(Y.x,Y.y)},Ii=A(function(Y){return Bt(Y).filter(function(Z){return Z.isEnabled?!!Z.frame:!1})}),no=function(Z,ie){var ye=st(Ii(ie),function(Ne){return Ne.frame||$(!1),yn(Ne.frame.pageMarginBox)(Z)});return ye},ro=function(Y){var Z=Y.center,ie=Y.destination,ye=Y.droppables;if(ie){var Ne=ye[ie];return Ne.frame?Ne:null}var ke=no(Z,ye);return ke},mi={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Z){return Math.pow(Z,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},uo=function(Y,Z){var ie=Y[Z.size]*mi.startFromPercentage,ye=Y[Z.size]*mi.maxScrollAtPercentage,Ne={startScrollingFrom:ie,maxScrollValueAt:ye};return Ne},Io=function(Y){var Z=Y.startOfRange,ie=Y.endOfRange,ye=Y.current,Ne=ie-Z;if(Ne===0)return 0;var ke=ye-Z,ze=ke/Ne;return ze},Lo=1,bo=function(Y,Z){if(Y>Z.startScrollingFrom)return 0;if(Y<=Z.maxScrollValueAt)return mi.maxPixelScroll;if(Y===Z.startScrollingFrom)return Lo;var ie=Io({startOfRange:Z.maxScrollValueAt,endOfRange:Z.startScrollingFrom,current:Y}),ye=1-ie,Ne=mi.maxPixelScroll*mi.ease(ye);return Math.ceil(Ne)},Vi=mi.durationDampening.accelerateAt,co=mi.durationDampening.stopDampeningAt,Xi=function(Y,Z){var ie=Z,ye=co,Ne=Date.now(),ke=Ne-ie;if(ke>=co)return Y;if(keZ.height,ke=ie.width>Z.width;return!ke&&!Ne?ye:ke&&Ne?null:{x:ke?0:ye.x,y:Ne?0:ye.y}},ao=Ue(function(Y){return Y===0?0:Y}),Ji=function(Y){var Z=Y.dragStartTime,ie=Y.container,ye=Y.subject,Ne=Y.center,ke=Y.shouldUseTimeDampening,ze={top:Ne.y-ie.top,right:ie.right-Ne.x,bottom:ie.bottom-Ne.y,left:Ne.x-ie.left},Ve=No({container:ie,distanceToEdges:ze,dragStartTime:Z,axis:on,shouldUseTimeDampening:ke}),xt=No({container:ie,distanceToEdges:ze,dragStartTime:Z,axis:mn,shouldUseTimeDampening:ke}),Ut=ao({x:xt,y:Ve});if(dt(Ut,Ae))return null;var Wt=yo({container:ie,subject:ye,proposedScroll:Ut});return Wt?dt(Wt,Ae)?null:Wt:null},Qi=Ue(function(Y){return Y===0?0:Y>0?1:-1}),ei=function(){var Y=function(ie,ye){return ie<0?ie:ie>ye?ie-ye:0};return function(Z){var ie=Z.current,ye=Z.max,Ne=Z.change,ke=Qe(ie,Ne),ze={x:Y(ke.x,ye.x),y:Y(ke.y,ye.y)};return dt(ze,Ae)?null:ze}}(),Li=function(Z){var ie=Z.max,ye=Z.current,Ne=Z.change,ke={x:Math.max(ye.x,ie.x),y:Math.max(ye.y,ie.y)},ze=Qi(Ne),Ve=ei({max:ke,current:ye,change:ze});return Ve?ze.x!==0&&Ve.x===0?!0:ze.y!==0&&Ve.y===0:!0},Di=function(Z,ie){return Li({current:Z.scroll.current,max:Z.scroll.max,change:ie})},Zi=function(Z,ie){if(!Di(Z,ie))return null;var ye=Z.scroll.max,Ne=Z.scroll.current;return ei({current:Ne,max:ye,change:ie})},Ri=function(Z,ie){var ye=Z.frame;return ye?Li({current:ye.scroll.current,max:ye.scroll.max,change:ie}):!1},Eo=function(Z,ie){var ye=Z.frame;return ye&&Ri(Z,ie)?ei({current:ye.scroll.current,max:ye.scroll.max,change:ie}):null},xo=function(Y){var Z=Y.viewport,ie=Y.subject,ye=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,ze=Ji({dragStartTime:Ne,container:Z.frame,subject:ie,center:ye,shouldUseTimeDampening:ke});return ze&&Di(Z,ze)?ze:null},Co=function(Y){var Z=Y.droppable,ie=Y.subject,ye=Y.center,Ne=Y.dragStartTime,ke=Y.shouldUseTimeDampening,ze=Z.frame;if(!ze)return null;var Ve=Ji({dragStartTime:Ne,container:ze.pageMarginBox,subject:ie,center:ye,shouldUseTimeDampening:ke});return Ve&&Ri(Z,Ve)?Ve:null},io=function(Y){var Z=Y.state,ie=Y.dragStartTime,ye=Y.shouldUseTimeDampening,Ne=Y.scrollWindow,ke=Y.scrollDroppable,ze=Z.current.page.borderBoxCenter,Ve=Z.dimensions.draggables[Z.critical.draggable.id],xt=Ve.page.marginBox;if(Z.isWindowScrollAllowed){var Ut=Z.viewport,Wt=xo({dragStartTime:ie,viewport:Ut,subject:xt,center:ze,shouldUseTimeDampening:ye});if(Wt){Ne(Wt);return}}var Tt=ro({center:ze,destination:Kt(Z.impact),droppables:Z.dimensions.droppables});if(!Tt)return;var St=Co({dragStartTime:ie,droppable:Tt,subject:xt,center:ze,shouldUseTimeDampening:ye});St&&ke(Tt.descriptor.id,St)},Ni=function(Y){var Z=Y.scrollWindow,ie=Y.scrollDroppable,ye=L(Z),Ne=L(ie),ke=null,ze=function(Wt){ke||$(!1);var Tt=ke,St=Tt.shouldUseTimeDampening,kt=Tt.dragStartTime;io({state:Wt,scrollWindow:ye,scrollDroppable:Ne,dragStartTime:kt,shouldUseTimeDampening:St})},Ve=function(Wt){Pr(),ke&&$(!1);var Tt=Date.now(),St=!1,kt=function(){St=!0};io({state:Wt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:kt,scrollDroppable:kt}),ke={dragStartTime:Tt,shouldUseTimeDampening:St},Lr(),St&&ze(Wt)},xt=function(){if(!ke)return;ye.cancel(),Ne.cancel(),ke=null};return{start:Ve,stop:xt,scroll:ze}},qi=function(Y){var Z=Y.move,ie=Y.scrollDroppable,ye=Y.scrollWindow,Ne=function(Ut,Wt){var Tt=Qe(Ut.current.client.selection,Wt);Z({client:Tt})},ke=function(Ut,Wt){if(!Ri(Ut,Wt))return Wt;var Tt=Eo(Ut,Wt);if(!Tt)return ie(Ut.descriptor.id,Wt),null;var St=tt(Wt,Tt);ie(Ut.descriptor.id,St);var kt=tt(Wt,St);return kt},ze=function(Ut,Wt,Tt){if(!Ut)return Tt;if(!Di(Wt,Tt))return Tt;var St=Zi(Wt,Tt);if(!St)return ye(Tt),null;var kt=tt(Tt,St);ye(kt);var hn=tt(Tt,kt);return hn},Ve=function(Ut){var Wt=Ut.scrollJumpRequest;if(!Wt)return;var Tt=Kt(Ut.impact);Tt||$(!1);var St=ke(Ut.dimensions.droppables[Tt],Wt);if(!St)return;var kt=Ut.viewport,hn=ze(Ut.isWindowScrollAllowed,kt,St);if(!hn)return;Ne(Ut,hn)};return Ve},ko=function(Y){var Z=Y.scrollDroppable,ie=Y.scrollWindow,ye=Y.move,Ne=Ni({scrollWindow:ie,scrollDroppable:Z}),ke=qi({move:ye,scrollWindow:ie,scrollDroppable:Z}),ze=function(Ut){if(Ut.phase!=="DRAGGING")return;if(Ut.movementMode==="FLUID"){Ne.scroll(Ut);return}if(!Ut.scrollJumpRequest)return;ke(Ut)},Ve={scroll:ze,start:Ne.start,stop:Ne.stop};return Ve},oo="data-rbd",so=function(){var Y=oo+"-drag-handle";return{base:Y,draggableId:Y+"-draggable-id",contextId:Y+"-context-id"}}(),So=function(){var Y=oo+"-draggable";return{base:Y,contextId:Y+"-context-id",id:Y+"-id"}}(),Uo=function(){var Y=oo+"-droppable";return{base:Y,contextId:Y+"-context-id",id:Y+"-id"}}(),jo={contextId:oo+"-scroll-container-context-id"},fi=function(Z){return function(ie){return"["+ie+'="'+Z+'"]'}},Ha=function(Z,ie){return Z.map(function(ye){var Ne=ye.styles[ie];return Ne?ye.selector+" { "+Ne+" }":""}).join(" ")},ri="pointer-events: none;",Xa=function(Y){var Z=fi(Y),ie=function(){var Ve=` cursor: -webkit-grab; cursor: grab; `;return{selector:Z(so.contextId),styles:{always:` @@ -548,7 +548,7 @@ headers: `+(0,b.default)(Pt),Ue.data=ft,Ue.path=D.path,Ue.status=me,Ue.headers=P A setup problem was encountered. > `+ie.message+` - `)}},Z)})}function Pi(){Ei(function(){Cr(mo.react,g.a.version),va(document)},[])}function $a(Y){var Z=Object(P.useRef)(Y);return Object(P.useEffect)(function(){Z.current=Y}),Z}function xi(){var Y=null;function Z(){return Boolean(Y)}function ie(ze){return ze===Y}function ye(ze){Y&&$(!1);var Ve={abandon:ze};return Y=Ve,Ve}function Ne(){Y||$(!1),Y=null}function ke(){Y&&(Y.abandon(),Ne())}return{isClaimed:Z,isActive:ie,claim:ye,release:Ne,tryAbandon:ke}}var Ki=9,go=13,Qa=27,As=32,Ys=33,Pl=34,hs=35,Ds=36,Js=37,Ml=38,Qs=39,Il=40,ps,ms=(ps={},ps[go]=!0,ps[Ki]=!0,ps),Rs=function(Y){ms[Y.keyCode]&&Y.preventDefault()},gs=function(){var Y="visibilitychange";if(typeof document=="undefined")return Y;var Z=[Y,"ms"+Y,"webkit"+Y,"moz"+Y,"o"+Y],ie=st(Z,function(ye){return"on"+ye in document});return ie||Y}(),Zs=0,Ps=5;function Ho(Y,Z){return Math.abs(Z.x-Y.x)>=Ps||Math.abs(Z.y-Y.y)>=Ps}var vs={type:"IDLE"};function _s(Y){var Z=Y.cancel,ie=Y.completed,ye=Y.getPhase,Ne=Y.setPhase;return[{eventName:"mousemove",fn:function(ze){var Ve=ze.button,xt=ze.clientX,Ut=ze.clientY;if(Ve!==Zs)return;var Wt={x:xt,y:Ut},Tt=ye();if(Tt.type==="DRAGGING"){ze.preventDefault(),Tt.actions.move(Wt);return}Tt.type==="PENDING"||$(!1);var St=Tt.point;if(!Ho(St,Wt))return;ze.preventDefault();var kt=Tt.actions.fluidLift(Wt);Ne({type:"DRAGGING",actions:kt})}},{eventName:"mouseup",fn:function(ze){var Ve=ye();if(Ve.type!=="DRAGGING"){Z();return}ze.preventDefault(),Ve.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(ze){ye().type==="DRAGGING"&&ze.preventDefault(),Z()}},{eventName:"keydown",fn:function(ze){var Ve=ye();if(Ve.type==="PENDING"){Z();return}if(ze.keyCode===Qa){ze.preventDefault(),Z();return}Rs(ze)}},{eventName:"resize",fn:Z},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ye().type==="PENDING"&&Z()}},{eventName:"webkitmouseforcedown",fn:function(ze){var Ve=ye();if(Ve.type!=="IDLE"||$(!1),Ve.actions.shouldRespectForcePress()){Z();return}ze.preventDefault()}},{eventName:gs,fn:Z}]}function $s(Y){var Z=Object(P.useRef)(vs),ie=Object(P.useRef)(Te),ye=f(function(){return{eventName:"mousedown",fn:function(Tt){if(Tt.defaultPrevented)return;if(Tt.button!==Zs)return;if(Tt.ctrlKey||Tt.metaKey||Tt.shiftKey||Tt.altKey)return;var St=Y.findClosestDraggableId(Tt);if(!St)return;var kt=Y.tryGetLock(St,ze,{sourceEvent:Tt});if(!kt)return;Tt.preventDefault();var hn={x:Tt.clientX,y:Tt.clientY};ie.current(),Ut(kt,hn)}}},[Y]),Ne=f(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Tt){if(Tt.defaultPrevented)return;var St=Y.findClosestDraggableId(Tt);if(!St)return;var kt=Y.findOptionsForDraggable(St);if(!kt)return;if(kt.shouldRespectForcePress)return;if(!Y.canGetLock(St))return;Tt.preventDefault()}}},[Y]),ke=a(function(){var Tt={passive:!1,capture:!0};ie.current=be(window,[Ne,ye],Tt)},[Ne,ye]),ze=a(function(){var Wt=Z.current;if(Wt.type==="IDLE")return;Z.current=vs,ie.current(),ke()},[ke]),Ve=a(function(){var Wt=Z.current;ze(),Wt.type==="DRAGGING"&&Wt.actions.cancel({shouldBlockNextClick:!0}),Wt.type==="PENDING"&&Wt.actions.abort()},[ze]),xt=a(function(){var Tt={capture:!0,passive:!1},St=_s({cancel:Ve,completed:ze,getPhase:function(){return Z.current},setPhase:function(hn){Z.current=hn}});ie.current=be(window,St,Tt)},[Ve,ze]),Ut=a(function(Tt,St){Z.current.type==="IDLE"||$(!1),Z.current={type:"PENDING",point:St,actions:Tt},xt()},[xt]);ai(function(){return ke(),function(){ie.current()}},[ke])}var Ao;function el(){}var Ll=(Ao={},Ao[Pl]=!0,Ao[Ys]=!0,Ao[Ds]=!0,Ao[hs]=!0,Ao);function tl(Y,Z){function ie(){Z(),Y.cancel()}function ye(){Z(),Y.drop()}return[{eventName:"keydown",fn:function(ke){if(ke.keyCode===Qa){ke.preventDefault(),ie();return}if(ke.keyCode===As){ke.preventDefault(),ye();return}if(ke.keyCode===Il){ke.preventDefault(),Y.moveDown();return}if(ke.keyCode===Ml){ke.preventDefault(),Y.moveUp();return}if(ke.keyCode===Qs){ke.preventDefault(),Y.moveRight();return}if(ke.keyCode===Js){ke.preventDefault(),Y.moveLeft();return}if(Ll[ke.keyCode]){ke.preventDefault();return}Rs(ke)}},{eventName:"mousedown",fn:ie},{eventName:"mouseup",fn:ie},{eventName:"click",fn:ie},{eventName:"touchstart",fn:ie},{eventName:"resize",fn:ie},{eventName:"wheel",fn:ie,options:{passive:!0}},{eventName:gs,fn:ie}]}function gi(Y){var Z=Object(P.useRef)(el),ie=f(function(){return{eventName:"keydown",fn:function(ke){if(ke.defaultPrevented)return;if(ke.keyCode!==As)return;var ze=Y.findClosestDraggableId(ke);if(!ze)return;var Ve=Y.tryGetLock(ze,Wt,{sourceEvent:ke});if(!Ve)return;ke.preventDefault();var xt=!0,Ut=Ve.snapLift();Z.current();function Wt(){xt||$(!1),xt=!1,Z.current(),ye()}Z.current=be(window,tl(Ut,Wt),{capture:!0,passive:!1})}}},[Y]),ye=a(function(){var ke={passive:!1,capture:!0};Z.current=be(window,[ie],ke)},[ie]);ai(function(){return ye(),function(){Z.current()}},[ye])}var Ko={type:"IDLE"},nl=120,rl=.15;function al(Y){var Z=Y.cancel,ie=Y.getPhase;return[{eventName:"orientationchange",fn:Z},{eventName:"resize",fn:Z},{eventName:"contextmenu",fn:function(Ne){Ne.preventDefault()}},{eventName:"keydown",fn:function(Ne){if(ie().type!=="DRAGGING"){Z();return}Ne.keyCode===Qa&&Ne.preventDefault(),Z()}},{eventName:gs,fn:Z}]}function Go(Y){var Z=Y.cancel,ie=Y.completed,ye=Y.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ke){var ze=ye();if(ze.type!=="DRAGGING"){Z();return}ze.hasMoved=!0;var Ve=ke.touches[0],xt=Ve.clientX,Ut=Ve.clientY,Wt={x:xt,y:Ut};ke.preventDefault(),ze.actions.move(Wt)}},{eventName:"touchend",fn:function(ke){var ze=ye();if(ze.type!=="DRAGGING"){Z();return}ke.preventDefault(),ze.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(ke){if(ye().type!=="DRAGGING"){Z();return}ke.preventDefault(),Z()}},{eventName:"touchforcechange",fn:function(ke){var ze=ye();ze.type!=="IDLE"||$(!1);var Ve=ke.touches[0];if(!Ve)return;var xt=Ve.force>=rl;if(!xt)return;var Ut=ze.actions.shouldRespectForcePress();if(ze.type==="PENDING"){Ut&&Z();return}if(Ut){if(ze.hasMoved){ke.preventDefault();return}Z();return}ke.preventDefault()}},{eventName:gs,fn:Z}]}function bs(Y){var Z=Object(P.useRef)(Ko),ie=Object(P.useRef)(Te),ye=a(function(){return Z.current},[]),Ne=a(function(kt){Z.current=kt},[]),ke=f(function(){return{eventName:"touchstart",fn:function(kt){if(kt.defaultPrevented)return;var hn=Y.findClosestDraggableId(kt);if(!hn)return;var ur=Y.tryGetLock(hn,Ve,{sourceEvent:kt});if(!ur)return;var gr=kt.touches[0],kr=gr.clientX,Gr=gr.clientY,na={x:kr,y:Gr};ie.current(),Tt(ur,na)}}},[Y]),ze=a(function(){var kt={capture:!0,passive:!1};ie.current=be(window,[ke],kt)},[ke]),Ve=a(function(){var St=Z.current;if(St.type==="IDLE")return;St.type==="PENDING"&&clearTimeout(St.longPressTimerId),Ne(Ko),ie.current(),ze()},[ze,Ne]),xt=a(function(){var St=Z.current;Ve(),St.type==="DRAGGING"&&St.actions.cancel({shouldBlockNextClick:!0}),St.type==="PENDING"&&St.actions.abort()},[Ve]),Ut=a(function(){var kt={capture:!0,passive:!1},hn={cancel:xt,completed:Ve,getPhase:ye},ur=be(window,Go(hn),kt),gr=be(window,al(hn),kt);ie.current=function(){ur(),gr()}},[xt,ye,Ve]),Wt=a(function(){var kt=ye();kt.type==="PENDING"||$(!1);var hn=kt.actions.fluidLift(kt.point);Ne({type:"DRAGGING",actions:hn,hasMoved:!1})},[ye,Ne]),Tt=a(function(kt,hn){ye().type==="IDLE"||$(!1);var ur=setTimeout(Wt,nl);Ne({type:"PENDING",point:hn,actions:kt,longPressTimerId:ur}),Ut()},[Ut,ye,Ne,Wt]);ai(function(){return ze(),function(){ie.current();var hn=ye();hn.type==="PENDING"&&(clearTimeout(hn.longPressTimerId),Ne(Ko))}},[ye,ze,Ne]),ai(function(){var kt=be(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return kt},[])}function il(Y){Wa(function(){var Z=$a(Y);Ei(function(){Z.current.length===Y.length||$(!1)})})}var ol={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ms(Y,Z){if(Z==null)return!1;var ie=Boolean(ol[Z.tagName.toLowerCase()]);if(ie)return!0;var ye=Z.getAttribute("contenteditable");return ye==="true"||ye===""?!0:Z===Y?!1:Ms(Y,Z.parentElement)}function zo(Y,Z){var ie=Z.target;return $i(ie)?Ms(Y,ie):!1}var sl=function(Y){return r(Y.getBoundingClientRect()).center};function ys(Y){return Y instanceof To(Y).Element}var ll=function(){var Y="matches";if(typeof document=="undefined")return Y;var Z=[Y,"msMatchesSelector","webkitMatchesSelector"],ie=st(Z,function(ye){return ye in Element.prototype});return ie||Y}();function Vo(Y,Z){return Y==null?null:Y[ll](Z)?Y:Vo(Y.parentElement,Z)}function Nl(Y,Z){return Y.closest?Y.closest(Z):Vo(Y,Z)}function Xo(Y){return"["+so.contextId+'="'+Y+'"]'}function ul(Y,Z){var ie=Z.target;if(!ys(ie))return null;var ye=Xo(Y),Ne=Nl(ie,ye);return Ne&&$i(Ne)?Ne:null}function cl(Y,Z){var ie=ul(Y,Z);return ie?ie.getAttribute(so.draggableId):null}function dl(Y,Z){var ie="["+So.contextId+'="'+Y+'"]',ye=Dt(document.querySelectorAll(ie)),Ne=st(ye,function(ke){return ke.getAttribute(So.id)===Z});return Ne&&$i(Ne)?Ne:null}function ts(Y){Y.preventDefault()}function Do(Y){var Z=Y.expected,ie=Y.phase,ye=Y.isLockActive,Ne=Y.shouldWarn;return ye()?!(Z!==ie):!1}function Yo(Y){var Z=Y.lockAPI,ie=Y.store,ye=Y.registry,Ne=Y.draggableId;if(Z.isClaimed())return!1;var ke=ye.draggable.findById(Ne);return ke&&ke.options.isEnabled?!!to(ie.getState(),Ne):!1}function ns(Y){var Z=Y.lockAPI,ie=Y.contextId,ye=Y.store,Ne=Y.registry,ke=Y.draggableId,ze=Y.forceSensorStop,Ve=Y.sourceEvent,xt=Yo({lockAPI:Z,store:ye,registry:Ne,draggableId:ke});if(!xt)return null;var Ut=Ne.draggable.getById(ke),Wt=dl(ie,Ut.descriptor.id);if(!Wt)return null;if(Ve&&!Ut.options.canDragInteractiveElements&&zo(Wt,Ve))return null;var Tt=Z.claim(ze||Te),St="PRE_DRAG";function kt(){return Ut.options.shouldRespectForcePress}function hn(){return Z.isActive(Tt)}function ur(Da,za){Do({expected:Da,phase:St,isLockActive:hn,shouldWarn:!0})&&ye.dispatch(za())}var gr=ur.bind(null,"DRAGGING");function kr(Da){function za(){Z.release(),St="COMPLETED"}St!=="PRE_DRAG"&&(za(),St==="PRE_DRAG"||$(!1)),ye.dispatch(zn(Da.liftActionArgs)),St="DRAGGING";function si(t,p){if(p===void 0&&(p={shouldBlockNextClick:!1}),Da.cleanup(),p.shouldBlockNextClick){var B=be(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(B)}za(),ye.dispatch(ct({reason:t}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:St,isLockActive:hn,shouldWarn:!1})},shouldRespectForcePress:kt,drop:function(p){return si("DROP",p)},cancel:function(p){return si("CANCEL",p)}},Da.actions)}function Gr(Da){var za=L(function(t){gr(function(){return lr({client:t})})}),si=kr({liftActionArgs:{id:ke,clientSelection:Da,movementMode:"FLUID"},cleanup:function(){return za.cancel()},actions:{move:za}});return Object(b.a)({},si,{move:za})}function na(){var Da={moveUp:function(){return gr(_r)},moveRight:function(){return gr(Kr)},moveDown:function(){return gr(Sr)},moveLeft:function(){return gr(Jr)}};return kr({liftActionArgs:{id:ke,clientSelection:sl(Wt),movementMode:"SNAP"},cleanup:Te,actions:Da})}function Hr(){var Da=Do({expected:"PRE_DRAG",phase:St,isLockActive:hn,shouldWarn:!0});Da&&Z.release()}var Ia={isActive:function(){return Do({expected:"PRE_DRAG",phase:St,isLockActive:hn,shouldWarn:!1})},shouldRespectForcePress:kt,fluidLift:Gr,snapLift:na,abort:Hr};return Ia}var fl=[$s,gi,bs];function kl(Y){var Z=Y.contextId,ie=Y.store,ye=Y.registry,Ne=Y.customSensors,ke=Y.enableDefaultSensors,ze=[].concat(ke?fl:[],Ne||[]),Ve=Object(P.useState)(function(){return xi()})[0],xt=a(function(Gr,na){Gr.isDragging&&!na.isDragging&&Ve.tryAbandon()},[Ve]);ai(function(){var Gr=ie.getState(),na=ie.subscribe(function(){var Hr=ie.getState();xt(Gr,Hr),Gr=Hr});return na},[Ve,ie,xt]),ai(function(){return Ve.tryAbandon},[Ve.tryAbandon]);var Ut=a(function(kr){return Yo({lockAPI:Ve,registry:ye,store:ie,draggableId:kr})},[Ve,ye,ie]),Wt=a(function(kr,Gr,na){return ns({lockAPI:Ve,registry:ye,contextId:Z,store:ie,draggableId:kr,forceSensorStop:Gr,sourceEvent:na&&na.sourceEvent?na.sourceEvent:null})},[Z,Ve,ye,ie]),Tt=a(function(kr){return cl(Z,kr)},[Z]),St=a(function(kr){var Gr=ye.draggable.findById(kr);return Gr?Gr.options:null},[ye.draggable]),kt=a(function(){if(!Ve.isClaimed())return;Ve.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(Ta())},[Ve,ie]),hn=a(Ve.isClaimed,[Ve]),ur=f(function(){return{canGetLock:Ut,tryGetLock:Wt,findClosestDraggableId:Tt,findOptionsForDraggable:St,tryReleaseLock:kt,isLockClaimed:hn}},[Ut,Wt,Tt,St,kt,hn]);il(ze);for(var gr=0;gr{r();const n=this._commands.get(a);(n==null?void 0:n.isEmpty())&&this._commands.delete(a)});return this._onDidRegisterCommand.fire(a),i}registerCommandAlias(e,f){return m.registerCommand(e,(a,...u)=>a.get(O).executeCommand(f,...u))}getCommand(e){const f=this._commands.get(e);return!f||f.isEmpty()?void 0:g.a.first(f)}getCommands(){const e=new Map;for(const f of this._commands.keys()){const a=this.getCommand(f);a&&e.set(f,a)}return e}};m.registerCommand("noop",()=>{})},nukY:function(k,z){k.exports="data:image/png;base64,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"},oRuE:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.Iso10126={pad:function(g,T){var b=T*4,y=b-g.sigBytes%b;g.concat(P.lib.WordArray.random(y-1)).concat(P.lib.WordArray.create([y<<24],1))},unpad:function(g){var T=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=T}},P.pad.Iso10126})},oaGz:function(k,z,o){k.exports={bg:"bg___24uy8",wrap:"wrap___14NGB",modal:"modal___2LUSY",content:"content___uJSz1",head:"head___1b8cM",headCount:"headCount___8qSbD",button:"button___3uWW2",itemWrap:"itemWrap___30TsE",imgWrap:"imgWrap___2LXqq",img:"img___3JUpQ",manager:"manager___VrVN1",itemContent:"itemContent___gyTTk",nameWrap:"nameWrap___3WMS2",name:"name___2ym5i",actionGroup:"actionGroup___8xT17",deleteIcon:"deleteIcon___24yPS",schoolWrap:"schoolWrap___23Lyd",school:"school___1PzsI",countWrap:"countWrap___8XfQc",deletetitle:"deletetitle___2yGtk",yseTitle:"yseTitle___sqFvw"}},ogmK:function(k,z,o){"use strict";o.d(z,"a",function(){return ma});var P=o("1OyB"),g=o("vuIU"),T=o("Ji7U"),b=o("LK+K"),y=o("rePB"),x=o("VTBJ"),O=o("ODXe"),m=o("q1tI"),e=o("TSYQ"),f=o.n(e),a=o("Kwbf"),u=o("6cGi"),r=o("U8pU"),i=o("4IlW"),n=m.createContext({}),l=n,h={visibility:"hidden"};function d(xe){var lt=xe.prefixCls,Rt=xe.prevIcon,wt=Rt===void 0?"\u2039":Rt,Kt=xe.nextIcon,Lt=Kt===void 0?"\u203A":Kt,Xt=xe.superPrevIcon,nn=Xt===void 0?"\xAB":Xt,yn=xe.superNextIcon,vn=yn===void 0?"\xBB":yn,Nn=xe.onSuperPrev,An=xe.onSuperNext,an=xe.onPrev,Pn=xe.onNext,bn=xe.children,kn=m.useContext(l),Rn=kn.hideNextBtn,Jn=kn.hidePrevBtn;return m.createElement("div",{className:lt},Nn&&m.createElement("button",{type:"button",onClick:Nn,tabIndex:-1,className:"".concat(lt,"-super-prev-btn"),style:Jn?h:{}},nn),an&&m.createElement("button",{type:"button",onClick:an,tabIndex:-1,className:"".concat(lt,"-prev-btn"),style:Jn?h:{}},wt),m.createElement("div",{className:"".concat(lt,"-view")},bn),Pn&&m.createElement("button",{type:"button",onClick:Pn,tabIndex:-1,className:"".concat(lt,"-next-btn"),style:Rn?h:{}},Lt),An&&m.createElement("button",{type:"button",onClick:An,tabIndex:-1,className:"".concat(lt,"-super-next-btn"),style:Rn?h:{}},vn))}var s=d;function c(xe){var lt=m.useContext(l),Rt=lt.hideHeader;if(Rt)return null;var wt=xe.prefixCls,Kt=xe.generateConfig,Lt=xe.locale,Xt=xe.value,nn=xe.format,yn="".concat(wt,"-header");return m.createElement(s,{prefixCls:yn},Xt?Kt.locale.format(Lt.locale,Xt,nn):"\xA0")}var w=c,E=o("YrtM"),v=o("KQm4"),R=new Map;function M(xe,lt,Rt){if(R.get(xe)&&cancelAnimationFrame(R.get(xe)),Rt<=0){R.set(xe,requestAnimationFrame(function(){xe.scrollTop=lt}));return}var wt=lt-xe.scrollTop,Kt=wt/Rt*10;R.set(xe,requestAnimationFrame(function(){xe.scrollTop+=Kt,xe.scrollTop!==lt&&M(xe,lt,Rt-10)}))}function C(xe,lt){var Rt=lt.onLeftRight,wt=lt.onCtrlLeftRight,Kt=lt.onUpDown,Lt=lt.onPageUpDown,Xt=lt.onEnter,nn=xe.which,yn=xe.ctrlKey,vn=xe.metaKey;switch(nn){case i.a.LEFT:if(yn||vn){if(wt)return wt(-1),!0}else if(Rt)return Rt(-1),!0;break;case i.a.RIGHT:if(yn||vn){if(wt)return wt(1),!0}else if(Rt)return Rt(1),!0;break;case i.a.UP:if(Kt)return Kt(-1),!0;break;case i.a.DOWN:if(Kt)return Kt(1),!0;break;case i.a.PAGE_UP:if(Lt)return Lt(-1),!0;break;case i.a.PAGE_DOWN:if(Lt)return Lt(1),!0;break;case i.a.ENTER:if(Xt)return Xt(),!0;break}return!1}function S(xe,lt,Rt,wt){var Kt=xe;if(!Kt)switch(lt){case"time":Kt=wt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Kt="gggg-wo";break;case"month":Kt="YYYY-MM";break;case"quarter":Kt="YYYY-[Q]Q";break;case"year":Kt="YYYY";break;default:Kt=Rt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Kt}function _(xe,lt){var Rt=xe==="time"?8:10;return Math.max(Rt,lt.length)+2}var A=null,U=new Set;function L(xe){return!A&&typeof window!="undefined"&&window.addEventListener&&(A=function(Rt){Object(v.a)(U).forEach(function(wt){wt(Rt)})},window.addEventListener("mousedown",A)),U.add(xe),function(){U.delete(xe),U.size===0&&(window.removeEventListener("mousedown",A),A=null)}}var N=function(lt){return lt==="month"||lt==="date"?"year":lt},V=function(lt){return lt==="date"?"month":lt},H=function(lt){return lt==="month"||lt==="date"?"quarter":lt},D=function(lt){return lt==="date"?"week":lt},W={year:N,month:V,quarter:H,week:D,time:null,date:null};function F(xe,lt){return xe.some(function(Rt){return Rt&&Rt.contains(lt)})}function I(xe){var lt=xe.prefixCls,Rt=xe.units,wt=xe.onSelect,Kt=xe.value,Lt=xe.active,Xt=xe.hideDisabledOptions,nn="".concat(lt,"-cell"),yn=m.useContext(l),vn=yn.open,Nn=m.useRef(null),An=m.useRef(new Map);return m.useLayoutEffect(function(){var an=An.current.get(Kt);an&&vn!==!1&&M(Nn.current,an.offsetTop,120)},[Kt]),m.useLayoutEffect(function(){if(vn){var an=An.current.get(Kt);an&&M(Nn.current,an.offsetTop,0)}},[vn]),m.createElement("ul",{className:f()("".concat(lt,"-column"),Object(y.a)({},"".concat(lt,"-column-active"),Lt)),ref:Nn,style:{position:"relative"}},Rt.map(function(an){var Pn;return Xt&&an.disabled?null:m.createElement("li",{key:an.value,ref:function(kn){An.current.set(an.value,kn)},className:f()(nn,(Pn={},Object(y.a)(Pn,"".concat(nn,"-disabled"),an.disabled),Object(y.a)(Pn,"".concat(nn,"-selected"),Kt===an.value),Pn)),onClick:function(){if(an.disabled)return;wt(an.value)}},m.createElement("div",{className:"".concat(nn,"-inner")},an.label))}))}var K=I;function ee(xe,lt){for(var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",wt=String(xe);wt.length=12,wn%=12);var Pr=m.useMemo(function(){if(!vn)return[!1,!1];var Gt=[!0,!0];return qn.forEach(function(Zt){var Jt=Zt.disabled,zn=Zt.value;if(Jt)return;zn>=12?Gt[1]=!1:Gt[0]=!1}),Gt},[vn,qn]),Lr=Object(O.a)(Pr,2),Qn=Lr[0],Dr=Lr[1],vr=m.useMemo(function(){return vn?qn.filter(en?function(Gt){return Gt.value>=12}:function(Gt){return Gt.value<12}).map(function(Gt){var Zt=Gt.value%12,Jt=Zt===0?"12":ee(Zt,2);return Object(x.a)(Object(x.a)({},Gt),{},{label:Jt,value:Zt})}):qn},[vn,qn]),zr=le(0,59,Pn,Jn&&Jn(wn)),Nr=le(0,59,kn,mr&&mr(wn,_n));wt.current={onUpDown:function(Zt){var Jt=Yt[Kt];if(Jt)for(var zn=Jt.units.findIndex(function(cr){return cr.value===Jt.value}),$n=Jt.units.length,Ln=1;Ln<$n;Ln+=1){var rr=Jt.units[(zn+Zt*Ln+$n)%$n];if(rr.disabled!==!0){Jt.onSelect(rr.value);break}}}};function $r(Gt,Zt,Jt,zn,$n){Gt!==!1&&Yt.push({node:m.cloneElement(Zt,{prefixCls:Dn,value:Jt,active:Kt===Yt.length,onSelect:$n,units:zn,hideDisabledOptions:Br}),onSelect:$n,value:Jt,units:zn})}$r(Xt,m.createElement(K,{key:"hour"}),wn,vr,function(Gt){Sn(Un(en,Gt,_n,In),"mouse")}),$r(nn,m.createElement(K,{key:"minute"}),_n,zr,function(Gt){Sn(Un(en,wn,Gt,In),"mouse")}),$r(yn,m.createElement(K,{key:"second"}),In,Nr,function(Gt){Sn(Un(en,wn,_n,Gt),"mouse")});var tr=-1;return typeof en=="boolean"&&(tr=en?1:0),$r(vn===!0,m.createElement(K,{key:"12hours"}),tr,[{label:"AM",value:0,disabled:Qn},{label:"PM",value:1,disabled:Dr}],function(Gt){Sn(Un(!!Gt,wn,_n,In),"mouse")}),m.createElement("div",{className:dn},Yt.map(function(Gt){var Zt=Gt.node;return Zt}))}var me=$,re=function(lt){return lt.filter(function(Rt){return Rt!==!1}).length};function ae(xe){var lt=xe.generateConfig,Rt=xe.format,wt=Rt===void 0?"HH:mm:ss":Rt,Kt=xe.prefixCls,Lt=xe.active,Xt=xe.operationRef,nn=xe.showHour,yn=xe.showMinute,vn=xe.showSecond,Nn=xe.use12Hours,An=Nn===void 0?!1:Nn,an=xe.onSelect,Pn=xe.value,bn="".concat(Kt,"-time-panel"),kn=m.useRef(),Rn=m.useState(-1),Jn=Object(O.a)(Rn,2),mr=Jn[0],Br=Jn[1],Sn=re([nn,yn,vn,An]);return Xt.current={onKeyDown:function(dn){return C(dn,{onLeftRight:function(en){Br((mr+en+Sn)%Sn)},onUpDown:function(en){mr===-1?Br(0):kn.current&&kn.current.onUpDown(en)},onEnter:function(){an(Pn||lt.getNow(),"key"),Br(-1)}})},onBlur:function(){Br(-1)}},m.createElement("div",{className:f()(bn,Object(y.a)({},"".concat(bn,"-active"),Lt))},m.createElement(w,Object.assign({},xe,{format:wt,prefixCls:Kt})),m.createElement(me,Object.assign({},xe,{prefixCls:Kt,activeColumnIndex:mr,operationRef:kn})))}var Oe=ae,se=7;function te(xe,lt){return!xe&&!lt?!0:!xe||!lt?!1:void 0}function Q(xe,lt,Rt){var wt=te(lt,Rt);if(typeof wt=="boolean")return wt;var Kt=Math.floor(xe.getYear(lt)/10),Lt=Math.floor(xe.getYear(Rt)/10);return Kt===Lt}function J(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:xe.getYear(lt)===xe.getYear(Rt)}function ve(xe,lt){var Rt=Math.floor(xe.getMonth(lt)/3);return Rt+1}function _e(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:J(xe,lt,Rt)&&ve(xe,lt)===ve(xe,Rt)}function Ae(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:J(xe,lt,Rt)&&xe.getMonth(lt)===xe.getMonth(Rt)}function Qe(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:xe.getYear(lt)===xe.getYear(Rt)&&xe.getMonth(lt)===xe.getMonth(Rt)&&xe.getDate(lt)===xe.getDate(Rt)}function tt(xe,lt,Rt){var wt=te(lt,Rt);return typeof wt=="boolean"?wt:xe.getHour(lt)===xe.getHour(Rt)&&xe.getMinute(lt)===xe.getMinute(Rt)&&xe.getSecond(lt)===xe.getSecond(Rt)}function dt(xe,lt,Rt,wt){var Kt=te(Rt,wt);return typeof Kt=="boolean"?Kt:xe.locale.getWeek(lt,Rt)===xe.locale.getWeek(lt,wt)}function mt(xe,lt,Rt){return Qe(xe,lt,Rt)&&tt(xe,lt,Rt)}function vt(xe,lt,Rt,wt){return!lt||!Rt||!wt?!1:!Qe(xe,lt,wt)&&!Qe(xe,Rt,wt)&&xe.isAfter(wt,lt)&&xe.isAfter(Rt,wt)}function Et(xe,lt,Rt){var wt=lt.locale.getWeekFirstDay(xe),Kt=lt.setDate(Rt,1),Lt=lt.getWeekDay(Kt),Xt=lt.addDate(Kt,wt-Lt);return lt.getMonth(Xt)===lt.getMonth(Rt)&<.getDate(Xt)>1&&(Xt=lt.addDate(Xt,-7)),Xt}function Ye(xe,lt,Rt){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(lt){case"year":return Rt.addYear(xe,wt*10);case"quarter":case"month":return Rt.addYear(xe,wt);default:return Rt.addMonth(xe,wt)}}var Ue=m.createContext({}),ft=Ue;function jt(xe){var lt=xe.cellPrefixCls,Rt=xe.generateConfig,wt=xe.rangedValue,Kt=xe.hoverRangedValue,Lt=xe.isInView,Xt=xe.isSameCell,nn=xe.offsetCell,yn=xe.today,vn=xe.value;function Nn(An){var an,Pn=nn(An,-1),bn=nn(An,1),kn=Te(wt,0),Rn=Te(wt,1),Jn=Te(Kt,0),mr=Te(Kt,1),Br=vt(Rt,Jn,mr,An);function Sn(_n){return Xt(kn,_n)}function Yt(_n){return Xt(Rn,_n)}var dn=Xt(Jn,An),Dn=Xt(mr,An),en=(Br||Dn)&&(!Lt(Pn)||Yt(Pn)),wn=(Br||dn)&&(!Lt(bn)||Sn(bn));return an={},Object(y.a)(an,"".concat(lt,"-in-view"),Lt(An)),Object(y.a)(an,"".concat(lt,"-in-range"),vt(Rt,kn,Rn,An)),Object(y.a)(an,"".concat(lt,"-range-start"),Sn(An)),Object(y.a)(an,"".concat(lt,"-range-end"),Yt(An)),Object(y.a)(an,"".concat(lt,"-range-start-single"),Sn(An)&&!Rn),Object(y.a)(an,"".concat(lt,"-range-end-single"),Yt(An)&&!kn),Object(y.a)(an,"".concat(lt,"-range-start-near-hover"),Sn(An)&&(Xt(Pn,Jn)||vt(Rt,Jn,mr,Pn))),Object(y.a)(an,"".concat(lt,"-range-end-near-hover"),Yt(An)&&(Xt(bn,mr)||vt(Rt,Jn,mr,bn))),Object(y.a)(an,"".concat(lt,"-range-hover"),Br),Object(y.a)(an,"".concat(lt,"-range-hover-start"),dn),Object(y.a)(an,"".concat(lt,"-range-hover-end"),Dn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-start"),en),Object(y.a)(an,"".concat(lt,"-range-hover-edge-end"),wn),Object(y.a)(an,"".concat(lt,"-range-hover-edge-start-near-range"),en&&Xt(Pn,Rn)),Object(y.a)(an,"".concat(lt,"-range-hover-edge-end-near-range"),wn&&Xt(bn,kn)),Object(y.a)(an,"".concat(lt,"-today"),Xt(yn,An)),Object(y.a)(an,"".concat(lt,"-selected"),Xt(vn,An)),an}return Nn}function yt(xe){for(var lt=xe.prefixCls,Rt=xe.disabledDate,wt=xe.onSelect,Kt=xe.rowNum,Lt=xe.colNum,Xt=xe.prefixColumn,nn=xe.rowClassName,yn=xe.baseDate,vn=xe.getCellClassName,Nn=xe.getCellText,An=xe.getCellNode,an=xe.getCellDate,Pn=xe.titleCell,bn=xe.headerCells,kn=m.useContext(l),Rn=kn.onDateMouseEnter,Jn=kn.onDateMouseLeave,mr="".concat(lt,"-cell"),Br=[],Sn=0;Sn2&&arguments[2]!==void 0?arguments[2]:!1;($e===kn||Vr)&&(Ta(En),Dn&&Dn(En),$n&&$n(En,jn),en&&!mt(nn,En,Jr)&&en(En))},cn=function(En){return Yr.current&&Yr.current.onKeyDown?([i.a.LEFT,i.a.RIGHT,i.a.UP,i.a.DOWN,i.a.PAGE_UP,i.a.PAGE_DOWN,i.a.ENTER].includes(En.which)&&En.preventDefault(),Yr.current.onKeyDown(En)):(Object(a.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},un=function(En){Yr.current&&Yr.current.onBlur&&Yr.current.onBlur(En)};Jt&&qr!=="right"&&(Jt.current={onKeyDown:cn,onClose:function(){Yr.current&&Yr.current.onClose&&Yr.current.onClose()}}),m.useEffect(function(){yn&&!_r.current&&bt(yn)},[yn]),m.useEffect(function(){_r.current=!1},[]);var Wn,Cn=Object(x.a)(Object(x.a)({},xe),{},{operationRef:Yr,prefixCls:wt,viewDate:ct,value:Jr,onViewDateChange:nt,sourceMode:Mt,onPanelChange:fn,disabledDate:$e!=="decade"?an:void 0});delete Cn.onChange,delete Cn.onSelect;switch($e){case"decade":Wn=m.createElement(X,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"year":Wn=m.createElement(Rr,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"month":Wn=m.createElement(ht,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"quarter":Wn=m.createElement(mn,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"week":Wn=m.createElement(rn,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"time":delete Cn.showTime,Wn=m.createElement(Oe,Object.assign({},Cn,Object(r.a)(Br)==="object"?Br:null,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;default:Br?Wn=m.createElement(Dt,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}})):Wn=m.createElement(Fe,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}))}var jr,Mr,Qr=function(){var En=nn.getNow(),jn=Ee(nn.getHour(En),nn.getMinute(En),nn.getSecond(En),$r?Lr:1,tr?Dr:1,Gt?zr:1),Vr=be(nn,En,jn[0],jn[1],jn[2]);ln(Vr,"submit")};Ln||(jr=q(wt,$e,Yt),Mr=oe({prefixCls:wt,components:or,needConfirmButton:Nr,okDisabled:!Jr||an&&an(Jr),locale:Xt,showNow:mr,onNow:Nr&&Qr,onOk:function(){Jr&&(ln(Jr,"submit",!0),Un&&Un(Jr))}}));var Wr;if(Sn&&$e==="date"&&kn==="date"&&!Br){var ta=nn.getNow(),Kn="".concat(wt,"-today-btn"),wr=an&&an(ta);Wr=m.createElement("a",{className:f()(Kn,wr&&"".concat(Kn,"-disabled")),"aria-disabled":wr,onClick:function(){wr||ln(ta,"mouse",!0)}},Xt.today)}return m.createElement(l.Provider,{value:Object(x.a)(Object(x.a)({},Zt),{},{hideHeader:"hideHeader"in xe?dn:Zt.hideHeader,hidePrevBtn:sr&&qr==="right",hideNextBtn:sr&&qr==="left"})},m.createElement("div",{tabIndex:Jn,className:f()("".concat(wt,"-panel"),Kt,(lt={},Object(y.a)(lt,"".concat(wt,"-panel-has-range"),lr&&lr[0]&&lr[1]),Object(y.a)(lt,"".concat(wt,"-panel-has-range-hover"),da&&da[0]&&da[1]),Object(y.a)(lt,"".concat(wt,"-panel-rtl"),qn==="rtl"),lt)),style:Lt,onKeyDown:cn,onBlur:un,onMouseDown:_n,ref:zn},Wn,jr||Mr||Wr?m.createElement("div",{className:"".concat(wt,"-footer")},jr,Mr,Wr):null))}var fe=De,ot=o("uciX"),Qt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Mn(xe){var lt,Rt=xe.prefixCls,wt=xe.popupElement,Kt=xe.popupStyle,Lt=xe.visible,Xt=xe.dropdownClassName,nn=xe.dropdownAlign,yn=xe.transitionName,vn=xe.getPopupContainer,Nn=xe.children,An=xe.range,an=xe.popupPlacement,Pn=xe.direction,bn="".concat(Rt,"-dropdown"),kn=function(){return an!==void 0?an:Pn==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(ot.a,{showAction:[],hideAction:[],popupPlacement:kn(),builtinPlacements:Qt,prefixCls:bn,popupTransitionName:yn,popup:wt,popupAlign:nn,popupVisible:Lt,popupClassName:f()(Xt,(lt={},Object(y.a)(lt,"".concat(bn,"-range"),An),Object(y.a)(lt,"".concat(bn,"-rtl"),Pn==="rtl"),lt)),popupStyle:Kt,getPopupContainer:vn},Nn)}var Vn=Mn;function $t(xe){var lt=xe.open,Rt=xe.value,wt=xe.isClickOutside,Kt=xe.triggerOpen,Lt=xe.forwardKeyDown,Xt=xe.blurToCancel,nn=xe.onSubmit,yn=xe.onCancel,vn=xe.onFocus,Nn=xe.onBlur,An=Object(m.useState)(!1),an=Object(O.a)(An,2),Pn=an[0],bn=an[1],kn=Object(m.useState)(!1),Rn=Object(O.a)(kn,2),Jn=Rn[0],mr=Rn[1],Br=Object(m.useRef)(!1),Sn=Object(m.useRef)(!1),Yt={onMouseDown:function(){bn(!0),Kt(!0)},onKeyDown:function(Dn){switch(Dn.which){case i.a.ENTER:{lt?nn()!==!1&&bn(!0):Kt(!0),Dn.preventDefault();return}case i.a.TAB:{Pn&<&&!Dn.shiftKey?(bn(!1),Dn.preventDefault()):!Pn&<&&(!Lt(Dn)&&Dn.shiftKey&&(bn(!0),Dn.preventDefault()));return}case i.a.ESC:{bn(!0),yn();return}}!lt&&![i.a.SHIFT].includes(Dn.which)?Kt(!0):Pn||Lt(Dn)},onFocus:function(Dn){bn(!0),mr(!0),vn&&vn(Dn)},onBlur:function(Dn){if(Br.current||!wt(document.activeElement)){Br.current=!1;return}Xt?setTimeout(function(){wt(document.activeElement)&&yn()},0):lt&&(Kt(!1),Sn.current&&nn()),mr(!1),Nn&&Nn(Dn)}};return Object(m.useEffect)(function(){Sn.current=!1},[lt]),Object(m.useEffect)(function(){Sn.current=!0},[Rt]),Object(m.useEffect)(function(){return L(function(dn){var Dn=dn.target;lt&&(wt(Dn)?Jn||Kt(!1):(Br.current=!0,requestAnimationFrame(function(){Br.current=!1})))})}),[Yt,{focused:Jn,typing:Pn}]}function gn(xe){var lt=xe.valueTexts,Rt=xe.onTextChange,wt=m.useState(""),Kt=Object(O.a)(wt,2),Lt=Kt[0],Xt=Kt[1],nn=m.useRef([]);nn.current=lt;function yn(Nn){Xt(Nn),Rt(Nn)}function vn(){Xt(nn.current[0])}return m.useEffect(function(){lt.every(function(Nn){return Nn!==Lt})&&vn()},[lt.join("||")]),[Lt,yn,vn]}var pn=o("Gytx"),Ar=o.n(pn);function ra(xe,lt){var Rt=lt.formatList,wt=lt.generateConfig,Kt=lt.locale;return Object(E.a)(function(){if(!xe)return[[""],""];for(var Lt="",Xt=[],nn=0;nn1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(vn.current),Jn){yn(Rn);return}vn.current=requestAnimationFrame(function(){yn(Rn)})}var An=ra(nn,{formatList:Rt,generateConfig:wt,locale:Kt}),an=Object(O.a)(An,2),Pn=an[1];function bn(Rn){Nn(Rn)}function kn(){var Rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Nn(null,Rn)}return Object(m.useEffect)(function(){kn(!0)},[xe]),Object(m.useEffect)(function(){return function(){return cancelAnimationFrame(vn.current)}},[]),[Pn,bn,kn]}function ir(xe){var lt,Rt=xe.prefixCls,wt=Rt===void 0?"rc-picker":Rt,Kt=xe.id,Lt=xe.tabIndex,Xt=xe.style,nn=xe.className,yn=xe.dropdownClassName,vn=xe.dropdownAlign,Nn=xe.popupStyle,An=xe.transitionName,an=xe.generateConfig,Pn=xe.locale,bn=xe.inputReadOnly,kn=xe.allowClear,Rn=xe.autoFocus,Jn=xe.showTime,mr=xe.picker,Br=mr===void 0?"date":mr,Sn=xe.format,Yt=xe.use12Hours,dn=xe.value,Dn=xe.defaultValue,en=xe.open,wn=xe.defaultOpen,_n=xe.defaultOpenValue,In=xe.suffixIcon,Un=xe.clearIcon,or=xe.disabled,qn=xe.disabledDate,Pr=xe.placeholder,Lr=xe.getPopupContainer,Qn=xe.pickerRef,Dr=xe.panelRender,vr=xe.onChange,zr=xe.onOpenChange,Nr=xe.onFocus,$r=xe.onBlur,tr=xe.onMouseDown,Gt=xe.onMouseUp,Zt=xe.onMouseEnter,Jt=xe.onMouseLeave,zn=xe.onContextMenu,$n=xe.onClick,Ln=xe.direction,rr=xe.autoComplete,cr=rr===void 0?"off":rr,sr=m.useRef(null),qr=Br==="date"&&!!Jn||Br==="time",lr=de(S(Sn,Br,Jn,Yt)),da=m.useRef(null),Yr=m.useRef(null),_r=Object(u.a)(null,{value:dn,defaultValue:Dn}),Sr=Object(O.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Ta=m.useState(Kr),_a=Object(O.a)(Ta,2),Ze=_a[0],ct=_a[1],bt=m.useRef(null),nt=Object(u.a)(!1,{value:en,defaultValue:wn,postState:function(er){return or?!1:er},onChange:function(er){zr&&zr(er),!er&&bt.current&&bt.current.onClose&&bt.current.onClose()}}),Me=Object(O.a)(nt,2),Je=Me[0],Le=Me[1],$e=ra(Ze,{formatList:lr,generateConfig:an,locale:Pn}),qe=Object(O.a)($e,2),pt=qe[0],rt=qe[1],Mt=gn({valueTexts:pt,onTextChange:function(er){var pa=an.locale.parse(Pn.locale,er,lr);pa&&(!qn||!qn(pa))&&ct(pa)}}),Vt=Object(O.a)(Mt,3),fn=Vt[0],ln=Vt[1],cn=Vt[2],un=function(er){ct(er),Jr(er),vr&&!mt(an,Kr,er)&&vr(er,er?an.locale.format(Pn.locale,er,lr[0]):"")},Wn=function(er){if(or&&er)return;Le(er)},Cn=function(er){return Je&&bt.current&&bt.current.onKeyDown?bt.current.onKeyDown(er):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},jr=function(){Gt&&Gt.apply(void 0,arguments),sr.current&&(sr.current.focus(),Wn(!0))},Mr=$t({blurToCancel:qr,open:Je,value:fn,triggerOpen:Wn,forwardKeyDown:Cn,isClickOutside:function(er){return!F([da.current,Yr.current],er)},onSubmit:function(){return qn&&qn(Ze)?!1:(un(Ze),Wn(!1),cn(),!0)},onCancel:function(){Wn(!1),ct(Kr),cn()},onFocus:Nr,onBlur:$r}),Qr=Object(O.a)(Mr,2),Wr=Qr[0],ta=Qr[1],Kn=ta.focused,wr=ta.typing;m.useEffect(function(){Je||(ct(Kr),!pt.length||pt[0]===""?ln(""):rt!==fn&&cn())},[Je,pt]),m.useEffect(function(){Je||cn()},[Br]),m.useEffect(function(){ct(Kr)},[Kr]),Qn&&(Qn.current={focus:function(){sr.current&&sr.current.focus()},blur:function(){sr.current&&sr.current.blur()}});var Gn=Object(x.a)(Object(x.a)({},xe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),En=m.createElement(fe,Object.assign({},Gn,{generateConfig:an,className:f()(Object(y.a)({},"".concat(wt,"-panel-focused"),!wr)),value:Ze,locale:Pn,tabIndex:-1,onChange:ct,direction:Ln}));Dr&&(En=Dr(En));var jn=m.createElement("div",{className:"".concat(wt,"-panel-container"),onMouseDown:function(er){er.preventDefault()}},En),Vr;In&&(Vr=m.createElement("span",{className:"".concat(wt,"-suffix")},In));var ua;kn&&Kr&&!or&&(ua=m.createElement("span",{onMouseDown:function(er){er.preventDefault(),er.stopPropagation()},onMouseUp:function(er){er.preventDefault(),er.stopPropagation(),un(null),Wn(!1)},className:"".concat(wt,"-clear")},Un||m.createElement("span",{className:"".concat(wt,"-clear-btn")})));var hr=function(er,pa){(pa==="submit"||pa!=="key"&&!qr)&&(un(er),Wn(!1))},aa=Ln==="rtl"?"bottomRight":"bottomLeft",xa=oa(fn,{formatList:lr,generateConfig:an,locale:Pn}),ha=Object(O.a)(xa,3),Ca=ha[0],Tr=ha[1],br=ha[2];return m.createElement(l.Provider,{value:{operationRef:bt,hideHeader:Br==="time",panelRef:da,onSelect:hr,open:Je,defaultOpenValue:_n,onDateMouseEnter:Tr,onDateMouseLeave:br}},m.createElement(Vn,{visible:Je,popupElement:jn,popupStyle:Nn,prefixCls:wt,dropdownClassName:yn,dropdownAlign:vn,getPopupContainer:Lr,transitionName:An,popupPlacement:aa,direction:Ln},m.createElement("div",{className:f()(wt,nn,(lt={},Object(y.a)(lt,"".concat(wt,"-disabled"),or),Object(y.a)(lt,"".concat(wt,"-focused"),Kn),Object(y.a)(lt,"".concat(wt,"-rtl"),Ln==="rtl"),lt)),style:Xt,onMouseDown:tr,onMouseUp:jr,onMouseEnter:Zt,onMouseLeave:Jt,onContextMenu:zn,onClick:$n},m.createElement("div",{className:f()("".concat(wt,"-input"),Object(y.a)({},"".concat(wt,"-input-placeholder"),!!Ca)),ref:Yr},m.createElement("input",Object.assign({id:Kt,tabIndex:Lt,disabled:or,readOnly:bn||!wr,value:Ca||fn,onChange:function(er){ln(er.target.value)},autoFocus:Rn,placeholder:Pr,ref:sr,title:fn},Wr,{size:_(Br,lr[0])},Se(xe),{autoComplete:cr})),Vr,ua))))}var Ra=function(xe){Object(T.a)(Rt,xe);var lt=Object(b.a)(Rt);function Rt(){var wt;return Object(P.a)(this,Rt),wt=lt.apply(this,arguments),wt.pickerRef=m.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(g.a)(Rt,[{key:"render",value:function(){return m.createElement(ir,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),La=Ra;function ca(xe,lt,Rt){var wt=xe.picker,Kt=xe.locale,Lt=xe.selectedValue,Xt=xe.disabledDate,nn=xe.disabled,yn=xe.generateConfig,vn=Te(Lt,0),Nn=Te(Lt,1);function An(Rn){var Jn=yn.getYear(Rn),mr=yn.locale.getWeek(Kt.locale,Rn);return Jn*100+mr}function an(Rn){var Jn=yn.getYear(Rn),mr=yn.getMonth(Rn);return Jn*100+mr}function Pn(Rn){var Jn=yn.getYear(Rn),mr=ve(yn,Rn);return Jn*10+mr}var bn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(nn[1]&&Nn)return!Qe(yn,Rn,Nn)&&yn.isAfter(Rn,Nn);if(lt&&Nn)switch(wt){case"quarter":return Pn(Rn)>Pn(Nn);case"month":return an(Rn)>an(Nn);case"week":return An(Rn)>An(Nn);default:return!Qe(yn,Rn,Nn)&&yn.isAfter(Rn,Nn)}return!1},[Xt,nn[1],Nn,lt]),kn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(nn[0]&&vn)return!Qe(yn,Rn,Nn)&&yn.isAfter(vn,Rn);if(Rt&&vn)switch(wt){case"quarter":return Pn(Rn)0&&arguments[0]!==void 0?arguments[0]:!1,Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zr=null;br&&ei&&ei[0]&&ei[1]&&bn.isAfter(ei[1],ei[0])&&(Zr=ei);var va=dn;if(dn&&Object(r.a)(dn)==="object"&&dn.defaultValue){var Wa=dn.defaultValue;va=Object(x.a)(Object(x.a)({},dn),{},{defaultValue:Te(Wa,rt)||void 0})}var Ei=null;return Qn&&(Ei=function($a,xi){return Qn($a,xi,{range:rt?"end":"start"})}),m.createElement(ft.Provider,{value:{inRange:!0,panelPosition:sa,rangedValue:yo||Kn,hoverRangedValue:Zr}},m.createElement(fe,Object.assign({},xe,Cr,{dateRender:Ei,showTime:va,mode:jn[rt],generateConfig:bn,style:void 0,direction:_r,disabledDate:rt===0?xa:ha,disabledTime:function($a){return Lr?Lr($a,rt===0?"start":"end"):!1},className:f()(Object(y.a)({},"".concat(Lt,"-panel-focused"),rt===0?!Xa:!$i)),value:Te(Kn,rt),locale:kn,tabIndex:-1,onPanelChange:function($a,xi){ua(ce(jn,xi,rt),ce(Kn,$a,rt));var Ki=$a;sa==="right"&&jn[rt]===xi&&(Ki=Ye(Ki,xi,bn,-1)),Qr(Ki,rt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ga=0,ui=0;rt&&bt.current&&Me.current&&ct.current&&(Ga=bt.current.offsetWidth+Me.current.offsetWidth,ct.current.offsetWidth&&Ga>ct.current.offsetWidth&&(ui=Ga));var eo=_r==="rtl"?{right:Ga}:{left:Ga};function ki(){var sa,Cr=q(Lt,jn[rt],zn),Zr=oe({prefixCls:Lt,components:da,needConfirmButton:Ta,okDisabled:!Te(Kn,rt)||Pr&&Pr(Kn[rt]),locale:kn,rangeList:Aa,onOk:function(){Te(Kn,rt)&&(ni(Kn,rt),lr&&lr(Kn))}});if(Yt!=="time"&&!dn){var va=Mr(rt),Wa=Ye(va,Yt,bn),Ei=jn[rt],Pi=Ei===Yt,$a=ya(Pi?"left":!1,{pickerValue:va,onPickerValueChange:function(Qa){Qr(Qa,rt)}}),xi=ya("right",{pickerValue:Wa,onPickerValueChange:function(Qa){Qr(Ye(Qa,Yt,bn,-1),rt)}});_r==="rtl"?sa=m.createElement(m.Fragment,null,xi,Pi&&$a):sa=m.createElement(m.Fragment,null,$a,Pi&&xi)}else sa=ya();var Ki=m.createElement(m.Fragment,null,m.createElement("div",{className:"".concat(Lt,"-panels")},sa),(Cr||Zr)&&m.createElement("div",{className:"".concat(Lt,"-footer")},Cr,Zr));return Dr&&(Ki=Dr(Ki)),m.createElement("div",{className:"".concat(Lt,"-panel-container"),style:{marginLeft:ui},ref:ct,onMouseDown:function(Qa){Qa.preventDefault()}},Ki)}var ho=m.createElement("div",{className:f()("".concat(Lt,"-range-wrapper"),"".concat(Lt,"-").concat(Yt,"-range-wrapper")),style:{minWidth:Oa}},m.createElement("div",{className:"".concat(Lt,"-range-arrow"),style:eo}),ki()),wi;$r&&(wi=m.createElement("span",{className:"".concat(Lt,"-suffix")},$r));var qa;Nr&&(Te(un,0)&&!fn[0]||Te(un,1)&&!fn[1])&&(qa=m.createElement("span",{onMouseDown:function(Cr){Cr.preventDefault(),Cr.stopPropagation()},onMouseUp:function(Cr){Cr.preventDefault(),Cr.stopPropagation();var Zr=un;fn[0]||(Zr=ce(Zr,null,0)),fn[1]||(Zr=ce(Zr,null,1)),ni(Zr,null),Ua(!1,rt)},className:"".concat(Lt,"-clear")},tr||m.createElement("span",{className:"".concat(Lt,"-clear-btn")})));var po={size:_(Yt,$e[0])},Hi=0,mo=0;bt.current&&nt.current&&Me.current&&(rt===0?mo=bt.current.offsetWidth:(Hi=Ga,mo=nt.current.offsetWidth));var hi=_r==="rtl"?{right:Hi}:{left:Hi},Pa=function(Cr,Zr){var va=ce(Kn,Cr,rt);Zr==="submit"||Zr!=="key"&&!Ta?(ni(va,rt),rt===0?xo():ko()):wr(va)};return m.createElement(l.Provider,{value:{operationRef:Vt,hideHeader:Yt==="time",onDateMouseEnter:oo,onDateMouseLeave:so,hideRanges:!0,onSelect:Pa,open:br}},m.createElement(Vn,{visible:br,popupElement:ho,popupStyle:vn,prefixCls:Lt,dropdownClassName:Nn,dropdownAlign:an,getPopupContainer:Pn,transitionName:An,range:!0,direction:_r},m.createElement("div",Object.assign({ref:Ze,className:f()(Lt,"".concat(Lt,"-range"),yn,(lt={},Object(y.a)(lt,"".concat(Lt,"-disabled"),fn[0]&&fn[1]),Object(y.a)(lt,"".concat(Lt,"-focused"),rt===0?ri:To),Object(y.a)(lt,"".concat(Lt,"-rtl"),_r==="rtl"),lt)),style:nn,onClick:Wi,onMouseDown:Oo},Se(xe)),m.createElement("div",{className:f()("".concat(Lt,"-input"),(Rt={},Object(y.a)(Rt,"".concat(Lt,"-input-active"),rt===0),Object(y.a)(Rt,"".concat(Lt,"-input-placeholder"),!!Ri),Rt)),ref:bt},m.createElement("input",Object.assign({id:Xt,disabled:fn[0],readOnly:Zt||!Xa,value:Ri||mi,onChange:function(Cr){uo(Cr.target.value)},autoFocus:Jn,placeholder:Te(Rn,0)||"",ref:Je},fi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(Lt,"-range-separator"),ref:Me},wn),m.createElement("div",{className:f()("".concat(Lt,"-input"),(wt={},Object(y.a)(wt,"".concat(Lt,"-input-active"),rt===1),Object(y.a)(wt,"".concat(Lt,"-input-placeholder"),!!Ni),wt)),ref:nt},m.createElement("input",Object.assign({disabled:fn[1],readOnly:Zt||!$i,value:Ni||Vi,onChange:function(Cr){co(Cr.target.value)},placeholder:Te(Rn,1)||"",ref:Le},yi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(Lt,"-active-bar"),style:Object(x.a)(Object(x.a)({},hi),{},{width:mo,position:"absolute"})}),wi,qa)))}var fa=function(xe){Object(T.a)(Rt,xe);var lt=Object(b.a)(Rt);function Rt(){var wt;return Object(P.a)(this,Rt),wt=lt.apply(this,arguments),wt.pickerRef=m.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(g.a)(Rt,[{key:"render",value:function(){return m.createElement(oi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),ma=fa,la=z.b=La},onxn:function(k,z){k.exports="data:image/png;base64,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"},osHv:function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"use strict";var g=P.Pos;function T(h,d){return h.line-d.line||h.ch-d.ch}var b="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",y=b+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",x=new RegExp("<(/?)(["+b+"]["+y+"]*)","g");function O(h,d,s,c){this.line=d,this.ch=s,this.cm=h,this.text=h.getLine(d),this.min=c?Math.max(c.from,h.firstLine()):h.firstLine(),this.max=c?Math.min(c.to-1,h.lastLine()):h.lastLine()}function m(h,d){var s=h.cm.getTokenTypeAt(g(h.line,d));return s&&/\btag\b/.test(s)}function e(h){return h.line>=h.max?void 0:(h.ch=0,h.text=h.cm.getLine(++h.line),!0)}function f(h){return h.line<=h.min?void 0:(h.text=h.cm.getLine(--h.line),h.ch=h.text.length,!0)}function a(h){for(;;){var d=h.text.indexOf(">",h.ch);if(d==-1){if(e(h))continue;return}if(!m(h,d+1)){h.ch=d+1;continue}var s=h.text.lastIndexOf("/",d),c=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,c?"selfClose":"regular"}}function u(h){for(;;){var d=h.ch?h.text.lastIndexOf("<",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!m(h,d+1)){h.ch=d;continue}x.lastIndex=d,h.ch=d;var s=x.exec(h.text);if(s&&s.index==d)return s}}function r(h){for(;;){x.lastIndex=h.ch;var d=x.exec(h.text);if(!d){if(e(h))continue;return}if(!m(h,d.index+1)){h.ch=d.index+1;continue}return h.ch=d.index+d[0].length,d}}function i(h){for(;;){var d=h.ch?h.text.lastIndexOf(">",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!m(h,d+1)){h.ch=d;continue}var s=h.text.lastIndexOf("/",d),c=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,c?"selfClose":"regular"}}function n(h,d){for(var s=[];;){var c=r(h),w,E=h.line,v=h.ch-(c?c[0].length:0);if(!c||!(w=a(h)))return;if(w=="selfClose")continue;if(c[1]){for(var R=s.length-1;R>=0;--R)if(s[R]==c[2]){s.length=R;break}if(R<0&&(!d||d==c[2]))return{tag:c[2],from:g(E,v),to:g(h.line,h.ch)}}else s.push(c[2])}}function l(h,d){for(var s=[];;){var c=i(h);if(!c)return;if(c=="selfClose"){u(h);continue}var w=h.line,E=h.ch,v=u(h);if(!v)return;if(v[1])s.push(v[2]);else{for(var R=s.length-1;R>=0;--R)if(s[R]==v[2]){s.length=R;break}if(R<0&&(!d||d==v[2]))return{tag:v[2],from:g(h.line,h.ch),to:g(w,E)}}}}P.registerHelper("fold","xml",function(h,d){for(var s=new O(h,d.line,0);;){var c=r(s);if(!c||s.line!=d.line)return;var w=a(s);if(!w)return;if(!c[1]&&w!="selfClose"){var E=g(s.line,s.ch),v=n(s,c[2]);return v&&T(v.from,E)>0?{from:E,to:v.from}:null}}}),P.findMatchingTag=function(h,d,s){var c=new O(h,d.line,d.ch,s);if(c.text.indexOf(">")==-1&&c.text.indexOf("<")==-1)return;var w=a(c),E=w&&g(c.line,c.ch),v=w&&u(c);if(!w||!v||T(c,d)>0)return;var R={from:g(c.line,c.ch),to:E,tag:v[2]};return w=="selfClose"?{open:R,close:null,at:"open"}:v[1]?{open:l(c,v[2]),close:R,at:"close"}:(c=new O(h,E.line,E.ch,s),{open:R,close:n(c,v[2]),at:"open"})},P.findEnclosingTag=function(h,d,s,c){for(var w=new O(h,d.line,d.ch,s);;){var E=l(w,c);if(!E)break;var v=new O(h,d.line,d.ch,s),R=n(v,E.tag);if(R)return{open:E,close:R}}},P.scanForClosingTag=function(h,d,s,c){var w=new O(h,d.line,d.ch,c?{from:0,to:c}:null);return n(w,s)}})},p5ED:function(k,z,o){"use strict";var P=o("+L6B"),g=o("2/Rp"),T=o("5Dmo"),b=o("3S7+"),y=o("k1fw"),x=o("tJVT"),O=o("q1tI"),m=o.n(O),e=o("vHTk"),f=o.n(e),a=o("yEEn"),u=o("ZW9T"),r=o("1vsH");z.a=function(i){var n=i.name,l=i.data,h=i.theme,d=i.type,s=i.filename,c=i.monacoEditor,w=i.className,E=i.style,v=i.close,R=i.onClose,M=i.hasMask,C=Object(O.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),S=Object(x.a)(C,2),_=S[0],A=S[1],U=Object(O.useState)(""),L=Object(x.a)(U,2),N=L[0],V=L[1],H,D=1024*1024,W=10*D,F=Object(O.useRef)();d==="office"&&(H=Object(r.T)(l).filesize,H>W&&(d="other")),s&&(c.filename=s),Object(O.useEffect)(function(){var ee,he,de=(ee=document.cookie)===null||ee===void 0||((he=ee.replace(/\s/g,""))===null||he===void 0)?void 0:he.split(";");de==null||de.map(function(Se){var Te=Se.split("=");Te[0]==="_educoder_session"&&V(Te[1])})},[]);var I=function(){if(l.startsWith("http")||l.startsWith("/")){K();return}Object(r.z)(s||"educoder",l,s)},K=function(){Object(r.x)(s||n,l)};return console.log("data:",l,"fileanme:",s," name:",n),m.a.createElement("div",{style:Object(y.a)({},E||{}),className:"".concat(M&&f.a.bgBlack," ").concat(d?f.a.wrp:"hide")},v&&m.a.createElement("div",{className:f.a.close,ref:F},m.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return F.current}},m.a.createElement("span",{onClick:K},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return F.current}},m.a.createElement("span",{className:"",onClick:R},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(f.a[w]," ").concat(w," ").concat(f.a.monaco," ").concat(d==="txt"?"show":"hide")},d==="txt"&&m.a.createElement(u.b,c)),d==="audio"&&m.a.createElement("audio",{src:"".concat(l!=null&&l.startsWith("/")||(l==null?void 0:l.indexOf("https://"))>-1?l:"data:audio/mp3;base64,").concat(l),autoPlay:!0}),d==="video"&&m.a.createElement(m.a.Fragment,null,l!=null&&l.startsWith("/")?m.a.createElement("video",{controls:!0,src:"".concat(l),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(l),autoPlay:!0})),d==="html"&&m.a.createElement("iframe",{src:l+"&disposition=inline"}),d==="pdf"&&m.a.createElement("embed",{className:f.a.embed,src:l}),d==="image"&&m.a.createElement(m.a.Fragment,null,m.a.createElement("img",{src:"".concat(l!=null&&l.startsWith("/")||(l==null?void 0:l.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(l)})),d==="other"&&m.a.createElement("div",null,m.a.createElement(g.a,{type:"primary",size:"large",onClick:I},m.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(d==="download"||d==="office")&&m.a.createElement(g.a,{type:"primary",size:"large",onClick:I},m.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(k,z,o){},pA7S:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=T.BlockCipher,x=g.algo,O=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],m=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],e=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],a=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=x.DES=y.extend({_doReset:function(){for(var l=this._key,h=l.words,d=[],s=0;s<56;s++){var c=O[s]-1;d[s]=h[c>>>5]>>>31-c%32&1}for(var w=this._subKeys=[],E=0;E<16;E++){for(var v=w[E]=[],R=e[E],s=0;s<24;s++)v[s/6|0]|=d[(m[s]-1+R)%28]<<31-s%6,v[4+(s/6|0)]|=d[28+(m[s+24]-1+R)%28]<<31-s%6;v[0]=v[0]<<1|v[0]>>>31;for(var s=1;s<7;s++)v[s]=v[s]>>>(s-1)*4+3;v[7]=v[7]<<5|v[7]>>>27}for(var M=this._invSubKeys=[],s=0;s<16;s++)M[s]=w[15-s]},encryptBlock:function(l,h){this._doCryptBlock(l,h,this._subKeys)},decryptBlock:function(l,h){this._doCryptBlock(l,h,this._invSubKeys)},_doCryptBlock:function(l,h,d){this._lBlock=l[h],this._rBlock=l[h+1],r.call(this,4,252645135),r.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),r.call(this,1,1431655765);for(var s=0;s<16;s++){for(var c=d[s],w=this._lBlock,E=this._rBlock,v=0,R=0;R<8;R++)v|=f[R][((E^c[R])&a[R])>>>0];this._lBlock=E,this._rBlock=w^v}var M=this._lBlock;this._lBlock=this._rBlock,this._rBlock=M,r.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),r.call(this,16,65535),r.call(this,4,252645135),l[h]=this._lBlock,l[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function r(l,h){var d=(this._lBlock>>>l^this._rBlock)&h;this._rBlock^=d,this._lBlock^=d<>>l^this._lBlock)&h;this._lBlock^=d,this._rBlock^=d<192.");var d=h.slice(0,2),s=h.length<4?h.slice(0,2):h.slice(2,4),c=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=u.createEncryptor(b.create(d)),this._des2=u.createEncryptor(b.create(s)),this._des3=u.createEncryptor(b.create(c))},encryptBlock:function(l,h){this._des1.encryptBlock(l,h),this._des2.decryptBlock(l,h),this._des3.encryptBlock(l,h)},decryptBlock:function(l,h){this._des3.decryptBlock(l,h),this._des2.encryptBlock(l,h),this._des1.decryptBlock(l,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=y._createHelper(n)}(),P.TripleDES})},pUFm:function(k,z,o){k.exports=o.p+"static/no-data.c803c40c.png"},pmY6:function(k,z,o){"use strict";o.d(z,"h",function(){return f}),o.d(z,"g",function(){return u}),o.d(z,"f",function(){return r}),o.d(z,"e",function(){return i}),o.d(z,"i",function(){return n}),o.d(z,"b",function(){return l}),o.d(z,"a",function(){return h}),o.d(z,"d",function(){return d}),o.d(z,"c",function(){return s});var P=o("C/vA"),g=o("JYp7");const T=!1;let b=null;function y(c){b=c}if(T){const c="__is_disposable_tracked__";y(new class{trackDisposable(w){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{w[c]||console.log(E)},3e3)}setParent(w,E){if(w&&w!==h.None)try{w[c]=!0}catch(v){}}markAsDisposed(w){if(w&&w!==h.None)try{w[c]=!0}catch(E){}}markAsSingleton(w){}})}function x(c){return b==null||b.trackDisposable(c),c}function O(c){b==null||b.markAsDisposed(c)}function m(c,w){b==null||b.setParent(c,w)}function e(c,w){if(!b)return;for(const E of c)b.setParent(E,w)}function f(c){return b==null||b.markAsSingleton(c),c}class a extends Error{constructor(c){super(`Encountered errors while disposing of store. Errors: [${c.join(", ")}]`);this.errors=c}}function u(c){return typeof c.dispose=="function"&&c.dispose.length===0}function r(c){if(g.a.is(c)){let w=[];for(const E of c)if(E)try{E.dispose()}catch(v){w.push(v)}if(w.length===1)throw w[0];if(w.length>1)throw new a(w);return Array.isArray(c)?[]:c}else if(c)return c.dispose(),c}function i(...c){const w=n(()=>r(c));return e(c,w),w}function n(c){const w=x({dispose:Object(P.a)(()=>{O(w),c()})});return w}class l{constructor(){this._toDispose=new Set,this._isDisposed=!1,x(this)}dispose(){if(this._isDisposed)return;O(this),this._isDisposed=!0,this.clear()}clear(){try{r(this._toDispose.values())}finally{this._toDispose.clear()}}add(c){if(!c)return c;if(c===this)throw new Error("Cannot register a disposable on itself!");return m(c,this),this._isDisposed?l.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(c),c}}l.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new l,x(this),m(this._store,this)}dispose(){O(this),this._store.dispose()}_register(c){if(c===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(c)}}h.None=Object.freeze({dispose(){}});class d{constructor(){this._isDisposed=!1,x(this)}get value(){return this._isDisposed?void 0:this._value}set value(c){var w;if(this._isDisposed||c===this._value)return;(w=this._value)===null||w===void 0||w.dispose(),c&&m(c,this),this._value=c}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,O(this),(c=this._value)===null||c===void 0||c.dispose(),this._value=void 0}clearAndLeak(){const c=this._value;return this._value=void 0,c&&m(c,null),c}}class s{constructor(c){this.object=c}dispose(){}}},psGv:function(k,z,o){var P,g;(function(){var T;(function(){"use strict";var O=[,,function(a){function u(n){this.__parent=n,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}u.prototype.clone_empty=function(){var n=new u(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},u.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},u.prototype.has_match=function(n){for(var l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(n))return!0;return!1},u.prototype.set_indent=function(n,l){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},u.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},u.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},u.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var n=this.__parent.current_line;return n.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),n.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),n.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,n.__items[0]===" "&&(n.__items.splice(0,1),n.__character_count-=1),!0}return!1},u.prototype.is_empty=function(){return this.__items.length===0},u.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},u.prototype.push=function(n){this.__items.push(n);var l=n.lastIndexOf(` + `)}},Z)})}function Pi(){Ei(function(){Cr(mo.react,g.a.version),va(document)},[])}function $a(Y){var Z=Object(P.useRef)(Y);return Object(P.useEffect)(function(){Z.current=Y}),Z}function xi(){var Y=null;function Z(){return Boolean(Y)}function ie(ze){return ze===Y}function ye(ze){Y&&$(!1);var Ve={abandon:ze};return Y=Ve,Ve}function Ne(){Y||$(!1),Y=null}function ke(){Y&&(Y.abandon(),Ne())}return{isClaimed:Z,isActive:ie,claim:ye,release:Ne,tryAbandon:ke}}var Ki=9,go=13,Qa=27,As=32,Ys=33,Pl=34,hs=35,Ds=36,Js=37,Ml=38,Qs=39,Il=40,ps,ms=(ps={},ps[go]=!0,ps[Ki]=!0,ps),Rs=function(Y){ms[Y.keyCode]&&Y.preventDefault()},gs=function(){var Y="visibilitychange";if(typeof document=="undefined")return Y;var Z=[Y,"ms"+Y,"webkit"+Y,"moz"+Y,"o"+Y],ie=st(Z,function(ye){return"on"+ye in document});return ie||Y}(),Zs=0,Ps=5;function Ho(Y,Z){return Math.abs(Z.x-Y.x)>=Ps||Math.abs(Z.y-Y.y)>=Ps}var vs={type:"IDLE"};function _s(Y){var Z=Y.cancel,ie=Y.completed,ye=Y.getPhase,Ne=Y.setPhase;return[{eventName:"mousemove",fn:function(ze){var Ve=ze.button,xt=ze.clientX,Ut=ze.clientY;if(Ve!==Zs)return;var Wt={x:xt,y:Ut},Tt=ye();if(Tt.type==="DRAGGING"){ze.preventDefault(),Tt.actions.move(Wt);return}Tt.type==="PENDING"||$(!1);var St=Tt.point;if(!Ho(St,Wt))return;ze.preventDefault();var kt=Tt.actions.fluidLift(Wt);Ne({type:"DRAGGING",actions:kt})}},{eventName:"mouseup",fn:function(ze){var Ve=ye();if(Ve.type!=="DRAGGING"){Z();return}ze.preventDefault(),Ve.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(ze){ye().type==="DRAGGING"&&ze.preventDefault(),Z()}},{eventName:"keydown",fn:function(ze){var Ve=ye();if(Ve.type==="PENDING"){Z();return}if(ze.keyCode===Qa){ze.preventDefault(),Z();return}Rs(ze)}},{eventName:"resize",fn:Z},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ye().type==="PENDING"&&Z()}},{eventName:"webkitmouseforcedown",fn:function(ze){var Ve=ye();if(Ve.type!=="IDLE"||$(!1),Ve.actions.shouldRespectForcePress()){Z();return}ze.preventDefault()}},{eventName:gs,fn:Z}]}function $s(Y){var Z=Object(P.useRef)(vs),ie=Object(P.useRef)(Te),ye=f(function(){return{eventName:"mousedown",fn:function(Tt){if(Tt.defaultPrevented)return;if(Tt.button!==Zs)return;if(Tt.ctrlKey||Tt.metaKey||Tt.shiftKey||Tt.altKey)return;var St=Y.findClosestDraggableId(Tt);if(!St)return;var kt=Y.tryGetLock(St,ze,{sourceEvent:Tt});if(!kt)return;Tt.preventDefault();var hn={x:Tt.clientX,y:Tt.clientY};ie.current(),Ut(kt,hn)}}},[Y]),Ne=f(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Tt){if(Tt.defaultPrevented)return;var St=Y.findClosestDraggableId(Tt);if(!St)return;var kt=Y.findOptionsForDraggable(St);if(!kt)return;if(kt.shouldRespectForcePress)return;if(!Y.canGetLock(St))return;Tt.preventDefault()}}},[Y]),ke=a(function(){var Tt={passive:!1,capture:!0};ie.current=be(window,[Ne,ye],Tt)},[Ne,ye]),ze=a(function(){var Wt=Z.current;if(Wt.type==="IDLE")return;Z.current=vs,ie.current(),ke()},[ke]),Ve=a(function(){var Wt=Z.current;ze(),Wt.type==="DRAGGING"&&Wt.actions.cancel({shouldBlockNextClick:!0}),Wt.type==="PENDING"&&Wt.actions.abort()},[ze]),xt=a(function(){var Tt={capture:!0,passive:!1},St=_s({cancel:Ve,completed:ze,getPhase:function(){return Z.current},setPhase:function(hn){Z.current=hn}});ie.current=be(window,St,Tt)},[Ve,ze]),Ut=a(function(Tt,St){Z.current.type==="IDLE"||$(!1),Z.current={type:"PENDING",point:St,actions:Tt},xt()},[xt]);ai(function(){return ke(),function(){ie.current()}},[ke])}var Ao;function el(){}var Ll=(Ao={},Ao[Pl]=!0,Ao[Ys]=!0,Ao[Ds]=!0,Ao[hs]=!0,Ao);function tl(Y,Z){function ie(){Z(),Y.cancel()}function ye(){Z(),Y.drop()}return[{eventName:"keydown",fn:function(ke){if(ke.keyCode===Qa){ke.preventDefault(),ie();return}if(ke.keyCode===As){ke.preventDefault(),ye();return}if(ke.keyCode===Il){ke.preventDefault(),Y.moveDown();return}if(ke.keyCode===Ml){ke.preventDefault(),Y.moveUp();return}if(ke.keyCode===Qs){ke.preventDefault(),Y.moveRight();return}if(ke.keyCode===Js){ke.preventDefault(),Y.moveLeft();return}if(Ll[ke.keyCode]){ke.preventDefault();return}Rs(ke)}},{eventName:"mousedown",fn:ie},{eventName:"mouseup",fn:ie},{eventName:"click",fn:ie},{eventName:"touchstart",fn:ie},{eventName:"resize",fn:ie},{eventName:"wheel",fn:ie,options:{passive:!0}},{eventName:gs,fn:ie}]}function gi(Y){var Z=Object(P.useRef)(el),ie=f(function(){return{eventName:"keydown",fn:function(ke){if(ke.defaultPrevented)return;if(ke.keyCode!==As)return;var ze=Y.findClosestDraggableId(ke);if(!ze)return;var Ve=Y.tryGetLock(ze,Wt,{sourceEvent:ke});if(!Ve)return;ke.preventDefault();var xt=!0,Ut=Ve.snapLift();Z.current();function Wt(){xt||$(!1),xt=!1,Z.current(),ye()}Z.current=be(window,tl(Ut,Wt),{capture:!0,passive:!1})}}},[Y]),ye=a(function(){var ke={passive:!1,capture:!0};Z.current=be(window,[ie],ke)},[ie]);ai(function(){return ye(),function(){Z.current()}},[ye])}var Ko={type:"IDLE"},nl=120,rl=.15;function al(Y){var Z=Y.cancel,ie=Y.getPhase;return[{eventName:"orientationchange",fn:Z},{eventName:"resize",fn:Z},{eventName:"contextmenu",fn:function(Ne){Ne.preventDefault()}},{eventName:"keydown",fn:function(Ne){if(ie().type!=="DRAGGING"){Z();return}Ne.keyCode===Qa&&Ne.preventDefault(),Z()}},{eventName:gs,fn:Z}]}function Go(Y){var Z=Y.cancel,ie=Y.completed,ye=Y.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ke){var ze=ye();if(ze.type!=="DRAGGING"){Z();return}ze.hasMoved=!0;var Ve=ke.touches[0],xt=Ve.clientX,Ut=Ve.clientY,Wt={x:xt,y:Ut};ke.preventDefault(),ze.actions.move(Wt)}},{eventName:"touchend",fn:function(ke){var ze=ye();if(ze.type!=="DRAGGING"){Z();return}ke.preventDefault(),ze.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(ke){if(ye().type!=="DRAGGING"){Z();return}ke.preventDefault(),Z()}},{eventName:"touchforcechange",fn:function(ke){var ze=ye();ze.type!=="IDLE"||$(!1);var Ve=ke.touches[0];if(!Ve)return;var xt=Ve.force>=rl;if(!xt)return;var Ut=ze.actions.shouldRespectForcePress();if(ze.type==="PENDING"){Ut&&Z();return}if(Ut){if(ze.hasMoved){ke.preventDefault();return}Z();return}ke.preventDefault()}},{eventName:gs,fn:Z}]}function bs(Y){var Z=Object(P.useRef)(Ko),ie=Object(P.useRef)(Te),ye=a(function(){return Z.current},[]),Ne=a(function(kt){Z.current=kt},[]),ke=f(function(){return{eventName:"touchstart",fn:function(kt){if(kt.defaultPrevented)return;var hn=Y.findClosestDraggableId(kt);if(!hn)return;var ur=Y.tryGetLock(hn,Ve,{sourceEvent:kt});if(!ur)return;var gr=kt.touches[0],kr=gr.clientX,Gr=gr.clientY,na={x:kr,y:Gr};ie.current(),Tt(ur,na)}}},[Y]),ze=a(function(){var kt={capture:!0,passive:!1};ie.current=be(window,[ke],kt)},[ke]),Ve=a(function(){var St=Z.current;if(St.type==="IDLE")return;St.type==="PENDING"&&clearTimeout(St.longPressTimerId),Ne(Ko),ie.current(),ze()},[ze,Ne]),xt=a(function(){var St=Z.current;Ve(),St.type==="DRAGGING"&&St.actions.cancel({shouldBlockNextClick:!0}),St.type==="PENDING"&&St.actions.abort()},[Ve]),Ut=a(function(){var kt={capture:!0,passive:!1},hn={cancel:xt,completed:Ve,getPhase:ye},ur=be(window,Go(hn),kt),gr=be(window,al(hn),kt);ie.current=function(){ur(),gr()}},[xt,ye,Ve]),Wt=a(function(){var kt=ye();kt.type==="PENDING"||$(!1);var hn=kt.actions.fluidLift(kt.point);Ne({type:"DRAGGING",actions:hn,hasMoved:!1})},[ye,Ne]),Tt=a(function(kt,hn){ye().type==="IDLE"||$(!1);var ur=setTimeout(Wt,nl);Ne({type:"PENDING",point:hn,actions:kt,longPressTimerId:ur}),Ut()},[Ut,ye,Ne,Wt]);ai(function(){return ze(),function(){ie.current();var hn=ye();hn.type==="PENDING"&&(clearTimeout(hn.longPressTimerId),Ne(Ko))}},[ye,ze,Ne]),ai(function(){var kt=be(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return kt},[])}function il(Y){Wa(function(){var Z=$a(Y);Ei(function(){Z.current.length===Y.length||$(!1)})})}var ol={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ms(Y,Z){if(Z==null)return!1;var ie=Boolean(ol[Z.tagName.toLowerCase()]);if(ie)return!0;var ye=Z.getAttribute("contenteditable");return ye==="true"||ye===""?!0:Z===Y?!1:Ms(Y,Z.parentElement)}function zo(Y,Z){var ie=Z.target;return $i(ie)?Ms(Y,ie):!1}var sl=function(Y){return r(Y.getBoundingClientRect()).center};function ys(Y){return Y instanceof To(Y).Element}var ll=function(){var Y="matches";if(typeof document=="undefined")return Y;var Z=[Y,"msMatchesSelector","webkitMatchesSelector"],ie=st(Z,function(ye){return ye in Element.prototype});return ie||Y}();function Vo(Y,Z){return Y==null?null:Y[ll](Z)?Y:Vo(Y.parentElement,Z)}function Nl(Y,Z){return Y.closest?Y.closest(Z):Vo(Y,Z)}function Xo(Y){return"["+so.contextId+'="'+Y+'"]'}function ul(Y,Z){var ie=Z.target;if(!ys(ie))return null;var ye=Xo(Y),Ne=Nl(ie,ye);return Ne&&$i(Ne)?Ne:null}function cl(Y,Z){var ie=ul(Y,Z);return ie?ie.getAttribute(so.draggableId):null}function dl(Y,Z){var ie="["+So.contextId+'="'+Y+'"]',ye=Dt(document.querySelectorAll(ie)),Ne=st(ye,function(ke){return ke.getAttribute(So.id)===Z});return Ne&&$i(Ne)?Ne:null}function ts(Y){Y.preventDefault()}function Do(Y){var Z=Y.expected,ie=Y.phase,ye=Y.isLockActive,Ne=Y.shouldWarn;return ye()?!(Z!==ie):!1}function Yo(Y){var Z=Y.lockAPI,ie=Y.store,ye=Y.registry,Ne=Y.draggableId;if(Z.isClaimed())return!1;var ke=ye.draggable.findById(Ne);return ke&&ke.options.isEnabled?!!to(ie.getState(),Ne):!1}function ns(Y){var Z=Y.lockAPI,ie=Y.contextId,ye=Y.store,Ne=Y.registry,ke=Y.draggableId,ze=Y.forceSensorStop,Ve=Y.sourceEvent,xt=Yo({lockAPI:Z,store:ye,registry:Ne,draggableId:ke});if(!xt)return null;var Ut=Ne.draggable.getById(ke),Wt=dl(ie,Ut.descriptor.id);if(!Wt)return null;if(Ve&&!Ut.options.canDragInteractiveElements&&zo(Wt,Ve))return null;var Tt=Z.claim(ze||Te),St="PRE_DRAG";function kt(){return Ut.options.shouldRespectForcePress}function hn(){return Z.isActive(Tt)}function ur(Da,za){Do({expected:Da,phase:St,isLockActive:hn,shouldWarn:!0})&&ye.dispatch(za())}var gr=ur.bind(null,"DRAGGING");function kr(Da){function za(){Z.release(),St="COMPLETED"}St!=="PRE_DRAG"&&(za(),St==="PRE_DRAG"||$(!1)),ye.dispatch(zn(Da.liftActionArgs)),St="DRAGGING";function si(t,p){if(p===void 0&&(p={shouldBlockNextClick:!1}),Da.cleanup(),p.shouldBlockNextClick){var B=be(window,[{eventName:"click",fn:ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(B)}za(),ye.dispatch(ct({reason:t}))}return Object(b.a)({isActive:function(){return Do({expected:"DRAGGING",phase:St,isLockActive:hn,shouldWarn:!1})},shouldRespectForcePress:kt,drop:function(p){return si("DROP",p)},cancel:function(p){return si("CANCEL",p)}},Da.actions)}function Gr(Da){var za=L(function(t){gr(function(){return lr({client:t})})}),si=kr({liftActionArgs:{id:ke,clientSelection:Da,movementMode:"FLUID"},cleanup:function(){return za.cancel()},actions:{move:za}});return Object(b.a)({},si,{move:za})}function na(){var Da={moveUp:function(){return gr(_r)},moveRight:function(){return gr(Kr)},moveDown:function(){return gr(Sr)},moveLeft:function(){return gr(Jr)}};return kr({liftActionArgs:{id:ke,clientSelection:sl(Wt),movementMode:"SNAP"},cleanup:Te,actions:Da})}function Hr(){var Da=Do({expected:"PRE_DRAG",phase:St,isLockActive:hn,shouldWarn:!0});Da&&Z.release()}var Ia={isActive:function(){return Do({expected:"PRE_DRAG",phase:St,isLockActive:hn,shouldWarn:!1})},shouldRespectForcePress:kt,fluidLift:Gr,snapLift:na,abort:Hr};return Ia}var fl=[$s,gi,bs];function kl(Y){var Z=Y.contextId,ie=Y.store,ye=Y.registry,Ne=Y.customSensors,ke=Y.enableDefaultSensors,ze=[].concat(ke?fl:[],Ne||[]),Ve=Object(P.useState)(function(){return xi()})[0],xt=a(function(Gr,na){Gr.isDragging&&!na.isDragging&&Ve.tryAbandon()},[Ve]);ai(function(){var Gr=ie.getState(),na=ie.subscribe(function(){var Hr=ie.getState();xt(Gr,Hr),Gr=Hr});return na},[Ve,ie,xt]),ai(function(){return Ve.tryAbandon},[Ve.tryAbandon]);var Ut=a(function(kr){return Yo({lockAPI:Ve,registry:ye,store:ie,draggableId:kr})},[Ve,ye,ie]),Wt=a(function(kr,Gr,na){return ns({lockAPI:Ve,registry:ye,contextId:Z,store:ie,draggableId:kr,forceSensorStop:Gr,sourceEvent:na&&na.sourceEvent?na.sourceEvent:null})},[Z,Ve,ye,ie]),Tt=a(function(kr){return cl(Z,kr)},[Z]),St=a(function(kr){var Gr=ye.draggable.findById(kr);return Gr?Gr.options:null},[ye.draggable]),kt=a(function(){if(!Ve.isClaimed())return;Ve.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(Ta())},[Ve,ie]),hn=a(Ve.isClaimed,[Ve]),ur=f(function(){return{canGetLock:Ut,tryGetLock:Wt,findClosestDraggableId:Tt,findOptionsForDraggable:St,tryReleaseLock:kt,isLockClaimed:hn}},[Ut,Wt,Tt,St,kt,hn]);il(ze);for(var gr=0;gr{r();const n=this._commands.get(a);(n==null?void 0:n.isEmpty())&&this._commands.delete(a)});return this._onDidRegisterCommand.fire(a),i}registerCommandAlias(e,f){return m.registerCommand(e,(a,...u)=>a.get(O).executeCommand(f,...u))}getCommand(e){const f=this._commands.get(e);return!f||f.isEmpty()?void 0:g.a.first(f)}getCommands(){const e=new Map;for(const f of this._commands.keys()){const a=this.getCommand(f);a&&e.set(f,a)}return e}};m.registerCommand("noop",()=>{})},nukY:function(k,z){k.exports="data:image/png;base64,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"},oRuE:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.Iso10126={pad:function(g,T){var b=T*4,y=b-g.sigBytes%b;g.concat(P.lib.WordArray.random(y-1)).concat(P.lib.WordArray.create([y<<24],1))},unpad:function(g){var T=g.words[g.sigBytes-1>>>2]&255;g.sigBytes-=T}},P.pad.Iso10126})},oaGz:function(k,z,o){k.exports={bg:"bg___24uy8",wrap:"wrap___14NGB",modal:"modal___2LUSY",content:"content___uJSz1",head:"head___1b8cM",headCount:"headCount___8qSbD",button:"button___3uWW2",itemWrap:"itemWrap___30TsE",imgWrap:"imgWrap___2LXqq",img:"img___3JUpQ",manager:"manager___VrVN1",itemContent:"itemContent___gyTTk",nameWrap:"nameWrap___3WMS2",name:"name___2ym5i",actionGroup:"actionGroup___8xT17",deleteIcon:"deleteIcon___24yPS",schoolWrap:"schoolWrap___23Lyd",school:"school___1PzsI",countWrap:"countWrap___8XfQc",deletetitle:"deletetitle___2yGtk",yseTitle:"yseTitle___sqFvw"}},ogmK:function(k,z,o){"use strict";o.d(z,"a",function(){return ma});var P=o("1OyB"),g=o("vuIU"),T=o("Ji7U"),b=o("LK+K"),y=o("rePB"),x=o("VTBJ"),O=o("ODXe"),m=o("q1tI"),e=o("TSYQ"),f=o.n(e),a=o("Kwbf"),u=o("6cGi"),r=o("U8pU"),i=o("4IlW"),n=m.createContext({}),l=n,h={visibility:"hidden"};function d(xe){var ut=xe.prefixCls,Rt=xe.prevIcon,wt=Rt===void 0?"\u2039":Rt,Kt=xe.nextIcon,Nt=Kt===void 0?"\u203A":Kt,Xt=xe.superPrevIcon,nn=Xt===void 0?"\xAB":Xt,yn=xe.superNextIcon,vn=yn===void 0?"\xBB":yn,Nn=xe.onSuperPrev,An=xe.onSuperNext,an=xe.onPrev,Pn=xe.onNext,bn=xe.children,kn=m.useContext(l),Rn=kn.hideNextBtn,Jn=kn.hidePrevBtn;return m.createElement("div",{className:ut},Nn&&m.createElement("button",{type:"button",onClick:Nn,tabIndex:-1,className:"".concat(ut,"-super-prev-btn"),style:Jn?h:{}},nn),an&&m.createElement("button",{type:"button",onClick:an,tabIndex:-1,className:"".concat(ut,"-prev-btn"),style:Jn?h:{}},wt),m.createElement("div",{className:"".concat(ut,"-view")},bn),Pn&&m.createElement("button",{type:"button",onClick:Pn,tabIndex:-1,className:"".concat(ut,"-next-btn"),style:Rn?h:{}},Nt),An&&m.createElement("button",{type:"button",onClick:An,tabIndex:-1,className:"".concat(ut,"-super-next-btn"),style:Rn?h:{}},vn))}var s=d;function c(xe){var ut=m.useContext(l),Rt=ut.hideHeader;if(Rt)return null;var wt=xe.prefixCls,Kt=xe.generateConfig,Nt=xe.locale,Xt=xe.value,nn=xe.format,yn="".concat(wt,"-header");return m.createElement(s,{prefixCls:yn},Xt?Kt.locale.format(Nt.locale,Xt,nn):"\xA0")}var w=c,E=o("YrtM"),v=o("KQm4"),R=new Map;function M(xe,ut,Rt){if(R.get(xe)&&cancelAnimationFrame(R.get(xe)),Rt<=0){R.set(xe,requestAnimationFrame(function(){xe.scrollTop=ut}));return}var wt=ut-xe.scrollTop,Kt=wt/Rt*10;R.set(xe,requestAnimationFrame(function(){xe.scrollTop+=Kt,xe.scrollTop!==ut&&M(xe,ut,Rt-10)}))}function C(xe,ut){var Rt=ut.onLeftRight,wt=ut.onCtrlLeftRight,Kt=ut.onUpDown,Nt=ut.onPageUpDown,Xt=ut.onEnter,nn=xe.which,yn=xe.ctrlKey,vn=xe.metaKey;switch(nn){case i.a.LEFT:if(yn||vn){if(wt)return wt(-1),!0}else if(Rt)return Rt(-1),!0;break;case i.a.RIGHT:if(yn||vn){if(wt)return wt(1),!0}else if(Rt)return Rt(1),!0;break;case i.a.UP:if(Kt)return Kt(-1),!0;break;case i.a.DOWN:if(Kt)return Kt(1),!0;break;case i.a.PAGE_UP:if(Nt)return Nt(-1),!0;break;case i.a.PAGE_DOWN:if(Nt)return Nt(1),!0;break;case i.a.ENTER:if(Xt)return Xt(),!0;break}return!1}function S(xe,ut,Rt,wt){var Kt=xe;if(!Kt)switch(ut){case"time":Kt=wt?"hh:mm:ss a":"HH:mm:ss";break;case"week":Kt="gggg-wo";break;case"month":Kt="YYYY-MM";break;case"quarter":Kt="YYYY-[Q]Q";break;case"year":Kt="YYYY";break;default:Kt=Rt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Kt}function _(xe,ut){var Rt=xe==="time"?8:10;return Math.max(Rt,ut.length)+2}var A=null,U=new Set;function L(xe){return!A&&typeof window!="undefined"&&window.addEventListener&&(A=function(Rt){Object(v.a)(U).forEach(function(wt){wt(Rt)})},window.addEventListener("mousedown",A)),U.add(xe),function(){U.delete(xe),U.size===0&&(window.removeEventListener("mousedown",A),A=null)}}var N=function(ut){return ut==="month"||ut==="date"?"year":ut},V=function(ut){return ut==="date"?"month":ut},H=function(ut){return ut==="month"||ut==="date"?"quarter":ut},D=function(ut){return ut==="date"?"week":ut},W={year:N,month:V,quarter:H,week:D,time:null,date:null};function F(xe,ut){return xe.some(function(Rt){return Rt&&Rt.contains(ut)})}function I(xe){var ut=xe.prefixCls,Rt=xe.units,wt=xe.onSelect,Kt=xe.value,Nt=xe.active,Xt=xe.hideDisabledOptions,nn="".concat(ut,"-cell"),yn=m.useContext(l),vn=yn.open,Nn=m.useRef(null),An=m.useRef(new Map);return m.useLayoutEffect(function(){var an=An.current.get(Kt);an&&vn!==!1&&M(Nn.current,an.offsetTop,120)},[Kt]),m.useLayoutEffect(function(){if(vn){var an=An.current.get(Kt);an&&M(Nn.current,an.offsetTop,0)}},[vn]),m.createElement("ul",{className:f()("".concat(ut,"-column"),Object(y.a)({},"".concat(ut,"-column-active"),Nt)),ref:Nn,style:{position:"relative"}},Rt.map(function(an){var Pn;return Xt&&an.disabled?null:m.createElement("li",{key:an.value,ref:function(kn){An.current.set(an.value,kn)},className:f()(nn,(Pn={},Object(y.a)(Pn,"".concat(nn,"-disabled"),an.disabled),Object(y.a)(Pn,"".concat(nn,"-selected"),Kt===an.value),Pn)),onClick:function(){if(an.disabled)return;wt(an.value)}},m.createElement("div",{className:"".concat(nn,"-inner")},an.label))}))}var K=I;function ee(xe,ut){for(var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",wt=String(xe);wt.length=12,wn%=12);var Pr=m.useMemo(function(){if(!vn)return[!1,!1];var Gt=[!0,!0];return qn.forEach(function(Zt){var Jt=Zt.disabled,zn=Zt.value;if(Jt)return;zn>=12?Gt[1]=!1:Gt[0]=!1}),Gt},[vn,qn]),Lr=Object(O.a)(Pr,2),Qn=Lr[0],Dr=Lr[1],vr=m.useMemo(function(){return vn?qn.filter(en?function(Gt){return Gt.value>=12}:function(Gt){return Gt.value<12}).map(function(Gt){var Zt=Gt.value%12,Jt=Zt===0?"12":ee(Zt,2);return Object(x.a)(Object(x.a)({},Gt),{},{label:Jt,value:Zt})}):qn},[vn,qn]),zr=le(0,59,Pn,Jn&&Jn(wn)),Nr=le(0,59,kn,mr&&mr(wn,_n));wt.current={onUpDown:function(Zt){var Jt=Yt[Kt];if(Jt)for(var zn=Jt.units.findIndex(function(cr){return cr.value===Jt.value}),$n=Jt.units.length,Ln=1;Ln<$n;Ln+=1){var rr=Jt.units[(zn+Zt*Ln+$n)%$n];if(rr.disabled!==!0){Jt.onSelect(rr.value);break}}}};function $r(Gt,Zt,Jt,zn,$n){Gt!==!1&&Yt.push({node:m.cloneElement(Zt,{prefixCls:Dn,value:Jt,active:Kt===Yt.length,onSelect:$n,units:zn,hideDisabledOptions:Br}),onSelect:$n,value:Jt,units:zn})}$r(Xt,m.createElement(K,{key:"hour"}),wn,vr,function(Gt){Sn(Un(en,Gt,_n,In),"mouse")}),$r(nn,m.createElement(K,{key:"minute"}),_n,zr,function(Gt){Sn(Un(en,wn,Gt,In),"mouse")}),$r(yn,m.createElement(K,{key:"second"}),In,Nr,function(Gt){Sn(Un(en,wn,_n,Gt),"mouse")});var tr=-1;return typeof en=="boolean"&&(tr=en?1:0),$r(vn===!0,m.createElement(K,{key:"12hours"}),tr,[{label:"AM",value:0,disabled:Qn},{label:"PM",value:1,disabled:Dr}],function(Gt){Sn(Un(!!Gt,wn,_n,In),"mouse")}),m.createElement("div",{className:dn},Yt.map(function(Gt){var Zt=Gt.node;return Zt}))}var me=$,re=function(ut){return ut.filter(function(Rt){return Rt!==!1}).length};function ae(xe){var ut=xe.generateConfig,Rt=xe.format,wt=Rt===void 0?"HH:mm:ss":Rt,Kt=xe.prefixCls,Nt=xe.active,Xt=xe.operationRef,nn=xe.showHour,yn=xe.showMinute,vn=xe.showSecond,Nn=xe.use12Hours,An=Nn===void 0?!1:Nn,an=xe.onSelect,Pn=xe.value,bn="".concat(Kt,"-time-panel"),kn=m.useRef(),Rn=m.useState(-1),Jn=Object(O.a)(Rn,2),mr=Jn[0],Br=Jn[1],Sn=re([nn,yn,vn,An]);return Xt.current={onKeyDown:function(dn){return C(dn,{onLeftRight:function(en){Br((mr+en+Sn)%Sn)},onUpDown:function(en){mr===-1?Br(0):kn.current&&kn.current.onUpDown(en)},onEnter:function(){an(Pn||ut.getNow(),"key"),Br(-1)}})},onBlur:function(){Br(-1)}},m.createElement("div",{className:f()(bn,Object(y.a)({},"".concat(bn,"-active"),Nt))},m.createElement(w,Object.assign({},xe,{format:wt,prefixCls:Kt})),m.createElement(me,Object.assign({},xe,{prefixCls:Kt,activeColumnIndex:mr,operationRef:kn})))}var Oe=ae,se=7;function te(xe,ut){return!xe&&!ut?!0:!xe||!ut?!1:void 0}function Q(xe,ut,Rt){var wt=te(ut,Rt);if(typeof wt=="boolean")return wt;var Kt=Math.floor(xe.getYear(ut)/10),Nt=Math.floor(xe.getYear(Rt)/10);return Kt===Nt}function J(xe,ut,Rt){var wt=te(ut,Rt);return typeof wt=="boolean"?wt:xe.getYear(ut)===xe.getYear(Rt)}function ve(xe,ut){var Rt=Math.floor(xe.getMonth(ut)/3);return Rt+1}function _e(xe,ut,Rt){var wt=te(ut,Rt);return typeof wt=="boolean"?wt:J(xe,ut,Rt)&&ve(xe,ut)===ve(xe,Rt)}function Ae(xe,ut,Rt){var wt=te(ut,Rt);return typeof wt=="boolean"?wt:J(xe,ut,Rt)&&xe.getMonth(ut)===xe.getMonth(Rt)}function Qe(xe,ut,Rt){var wt=te(ut,Rt);return typeof wt=="boolean"?wt:xe.getYear(ut)===xe.getYear(Rt)&&xe.getMonth(ut)===xe.getMonth(Rt)&&xe.getDate(ut)===xe.getDate(Rt)}function tt(xe,ut,Rt){var wt=te(ut,Rt);return typeof wt=="boolean"?wt:xe.getHour(ut)===xe.getHour(Rt)&&xe.getMinute(ut)===xe.getMinute(Rt)&&xe.getSecond(ut)===xe.getSecond(Rt)}function dt(xe,ut,Rt,wt){var Kt=te(Rt,wt);return typeof Kt=="boolean"?Kt:xe.locale.getWeek(ut,Rt)===xe.locale.getWeek(ut,wt)}function mt(xe,ut,Rt){return Qe(xe,ut,Rt)&&tt(xe,ut,Rt)}function vt(xe,ut,Rt,wt){return!ut||!Rt||!wt?!1:!Qe(xe,ut,wt)&&!Qe(xe,Rt,wt)&&xe.isAfter(wt,ut)&&xe.isAfter(Rt,wt)}function yt(xe,ut,Rt){var wt=ut.locale.getWeekFirstDay(xe),Kt=ut.setDate(Rt,1),Nt=ut.getWeekDay(Kt),Xt=ut.addDate(Kt,wt-Nt);return ut.getMonth(Xt)===ut.getMonth(Rt)&&ut.getDate(Xt)>1&&(Xt=ut.addDate(Xt,-7)),Xt}function Ye(xe,ut,Rt){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ut){case"year":return Rt.addYear(xe,wt*10);case"quarter":case"month":return Rt.addYear(xe,wt);default:return Rt.addMonth(xe,wt)}}var Ue=m.createContext({}),ft=Ue;function jt(xe){var ut=xe.cellPrefixCls,Rt=xe.generateConfig,wt=xe.rangedValue,Kt=xe.hoverRangedValue,Nt=xe.isInView,Xt=xe.isSameCell,nn=xe.offsetCell,yn=xe.today,vn=xe.value;function Nn(An){var an,Pn=nn(An,-1),bn=nn(An,1),kn=Te(wt,0),Rn=Te(wt,1),Jn=Te(Kt,0),mr=Te(Kt,1),Br=vt(Rt,Jn,mr,An);function Sn(_n){return Xt(kn,_n)}function Yt(_n){return Xt(Rn,_n)}var dn=Xt(Jn,An),Dn=Xt(mr,An),en=(Br||Dn)&&(!Nt(Pn)||Yt(Pn)),wn=(Br||dn)&&(!Nt(bn)||Sn(bn));return an={},Object(y.a)(an,"".concat(ut,"-in-view"),Nt(An)),Object(y.a)(an,"".concat(ut,"-in-range"),vt(Rt,kn,Rn,An)),Object(y.a)(an,"".concat(ut,"-range-start"),Sn(An)),Object(y.a)(an,"".concat(ut,"-range-end"),Yt(An)),Object(y.a)(an,"".concat(ut,"-range-start-single"),Sn(An)&&!Rn),Object(y.a)(an,"".concat(ut,"-range-end-single"),Yt(An)&&!kn),Object(y.a)(an,"".concat(ut,"-range-start-near-hover"),Sn(An)&&(Xt(Pn,Jn)||vt(Rt,Jn,mr,Pn))),Object(y.a)(an,"".concat(ut,"-range-end-near-hover"),Yt(An)&&(Xt(bn,mr)||vt(Rt,Jn,mr,bn))),Object(y.a)(an,"".concat(ut,"-range-hover"),Br),Object(y.a)(an,"".concat(ut,"-range-hover-start"),dn),Object(y.a)(an,"".concat(ut,"-range-hover-end"),Dn),Object(y.a)(an,"".concat(ut,"-range-hover-edge-start"),en),Object(y.a)(an,"".concat(ut,"-range-hover-edge-end"),wn),Object(y.a)(an,"".concat(ut,"-range-hover-edge-start-near-range"),en&&Xt(Pn,Rn)),Object(y.a)(an,"".concat(ut,"-range-hover-edge-end-near-range"),wn&&Xt(bn,kn)),Object(y.a)(an,"".concat(ut,"-today"),Xt(yn,An)),Object(y.a)(an,"".concat(ut,"-selected"),Xt(vn,An)),an}return Nn}function bt(xe){for(var ut=xe.prefixCls,Rt=xe.disabledDate,wt=xe.onSelect,Kt=xe.rowNum,Nt=xe.colNum,Xt=xe.prefixColumn,nn=xe.rowClassName,yn=xe.baseDate,vn=xe.getCellClassName,Nn=xe.getCellText,An=xe.getCellNode,an=xe.getCellDate,Pn=xe.titleCell,bn=xe.headerCells,kn=m.useContext(l),Rn=kn.onDateMouseEnter,Jn=kn.onDateMouseLeave,mr="".concat(ut,"-cell"),Br=[],Sn=0;Sn2&&arguments[2]!==void 0?arguments[2]:!1;($e===kn||Vr)&&(Ta(En),Dn&&Dn(En),$n&&$n(En,jn),en&&!mt(nn,En,Jr)&&en(En))},cn=function(En){return Yr.current&&Yr.current.onKeyDown?([i.a.LEFT,i.a.RIGHT,i.a.UP,i.a.DOWN,i.a.PAGE_UP,i.a.PAGE_DOWN,i.a.ENTER].includes(En.which)&&En.preventDefault(),Yr.current.onKeyDown(En)):(Object(a.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},un=function(En){Yr.current&&Yr.current.onBlur&&Yr.current.onBlur(En)};Jt&&qr!=="right"&&(Jt.current={onKeyDown:cn,onClose:function(){Yr.current&&Yr.current.onClose&&Yr.current.onClose()}}),m.useEffect(function(){yn&&!_r.current&&_t(yn)},[yn]),m.useEffect(function(){_r.current=!1},[]);var Wn,Cn=Object(x.a)(Object(x.a)({},xe),{},{operationRef:Yr,prefixCls:wt,viewDate:ct,value:Jr,onViewDateChange:nt,sourceMode:It,onPanelChange:fn,disabledDate:$e!=="decade"?an:void 0});delete Cn.onChange,delete Cn.onSelect;switch($e){case"decade":Wn=m.createElement(X,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"year":Wn=m.createElement(Rr,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"month":Wn=m.createElement(ht,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"quarter":Wn=m.createElement(mn,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"week":Wn=m.createElement(rn,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;case"time":delete Cn.showTime,Wn=m.createElement(Oe,Object.assign({},Cn,Object(r.a)(Br)==="object"?Br:null,{onSelect:function(En,jn){nt(En),ln(En,jn)}}));break;default:Br?Wn=m.createElement(Dt,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}})):Wn=m.createElement(Fe,Object.assign({},Cn,{onSelect:function(En,jn){nt(En),ln(En,jn)}}))}var jr,Mr,Qr=function(){var En=nn.getNow(),jn=Ee(nn.getHour(En),nn.getMinute(En),nn.getSecond(En),$r?Lr:1,tr?Dr:1,Gt?zr:1),Vr=be(nn,En,jn[0],jn[1],jn[2]);ln(Vr,"submit")};Ln||(jr=q(wt,$e,Yt),Mr=oe({prefixCls:wt,components:or,needConfirmButton:Nr,okDisabled:!Jr||an&&an(Jr),locale:Xt,showNow:mr,onNow:Nr&&Qr,onOk:function(){Jr&&(ln(Jr,"submit",!0),Un&&Un(Jr))}}));var Wr;if(Sn&&$e==="date"&&kn==="date"&&!Br){var ta=nn.getNow(),Kn="".concat(wt,"-today-btn"),wr=an&&an(ta);Wr=m.createElement("a",{className:f()(Kn,wr&&"".concat(Kn,"-disabled")),"aria-disabled":wr,onClick:function(){wr||ln(ta,"mouse",!0)}},Xt.today)}return m.createElement(l.Provider,{value:Object(x.a)(Object(x.a)({},Zt),{},{hideHeader:"hideHeader"in xe?dn:Zt.hideHeader,hidePrevBtn:sr&&qr==="right",hideNextBtn:sr&&qr==="left"})},m.createElement("div",{tabIndex:Jn,className:f()("".concat(wt,"-panel"),Kt,(ut={},Object(y.a)(ut,"".concat(wt,"-panel-has-range"),lr&&lr[0]&&lr[1]),Object(y.a)(ut,"".concat(wt,"-panel-has-range-hover"),da&&da[0]&&da[1]),Object(y.a)(ut,"".concat(wt,"-panel-rtl"),qn==="rtl"),ut)),style:Nt,onKeyDown:cn,onBlur:un,onMouseDown:_n,ref:zn},Wn,jr||Mr||Wr?m.createElement("div",{className:"".concat(wt,"-footer")},jr,Mr,Wr):null))}var fe=De,ot=o("uciX"),Qt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Mn(xe){var ut,Rt=xe.prefixCls,wt=xe.popupElement,Kt=xe.popupStyle,Nt=xe.visible,Xt=xe.dropdownClassName,nn=xe.dropdownAlign,yn=xe.transitionName,vn=xe.getPopupContainer,Nn=xe.children,An=xe.range,an=xe.popupPlacement,Pn=xe.direction,bn="".concat(Rt,"-dropdown"),kn=function(){return an!==void 0?an:Pn==="rtl"?"bottomRight":"bottomLeft"};return m.createElement(ot.a,{showAction:[],hideAction:[],popupPlacement:kn(),builtinPlacements:Qt,prefixCls:bn,popupTransitionName:yn,popup:wt,popupAlign:nn,popupVisible:Nt,popupClassName:f()(Xt,(ut={},Object(y.a)(ut,"".concat(bn,"-range"),An),Object(y.a)(ut,"".concat(bn,"-rtl"),Pn==="rtl"),ut)),popupStyle:Kt,getPopupContainer:vn},Nn)}var Vn=Mn;function $t(xe){var ut=xe.open,Rt=xe.value,wt=xe.isClickOutside,Kt=xe.triggerOpen,Nt=xe.forwardKeyDown,Xt=xe.blurToCancel,nn=xe.onSubmit,yn=xe.onCancel,vn=xe.onFocus,Nn=xe.onBlur,An=Object(m.useState)(!1),an=Object(O.a)(An,2),Pn=an[0],bn=an[1],kn=Object(m.useState)(!1),Rn=Object(O.a)(kn,2),Jn=Rn[0],mr=Rn[1],Br=Object(m.useRef)(!1),Sn=Object(m.useRef)(!1),Yt={onMouseDown:function(){bn(!0),Kt(!0)},onKeyDown:function(Dn){switch(Dn.which){case i.a.ENTER:{ut?nn()!==!1&&bn(!0):Kt(!0),Dn.preventDefault();return}case i.a.TAB:{Pn&&ut&&!Dn.shiftKey?(bn(!1),Dn.preventDefault()):!Pn&&ut&&(!Nt(Dn)&&Dn.shiftKey&&(bn(!0),Dn.preventDefault()));return}case i.a.ESC:{bn(!0),yn();return}}!ut&&![i.a.SHIFT].includes(Dn.which)?Kt(!0):Pn||Nt(Dn)},onFocus:function(Dn){bn(!0),mr(!0),vn&&vn(Dn)},onBlur:function(Dn){if(Br.current||!wt(document.activeElement)){Br.current=!1;return}Xt?setTimeout(function(){wt(document.activeElement)&&yn()},0):ut&&(Kt(!1),Sn.current&&nn()),mr(!1),Nn&&Nn(Dn)}};return Object(m.useEffect)(function(){Sn.current=!1},[ut]),Object(m.useEffect)(function(){Sn.current=!0},[Rt]),Object(m.useEffect)(function(){return L(function(dn){var Dn=dn.target;ut&&(wt(Dn)?Jn||Kt(!1):(Br.current=!0,requestAnimationFrame(function(){Br.current=!1})))})}),[Yt,{focused:Jn,typing:Pn}]}function gn(xe){var ut=xe.valueTexts,Rt=xe.onTextChange,wt=m.useState(""),Kt=Object(O.a)(wt,2),Nt=Kt[0],Xt=Kt[1],nn=m.useRef([]);nn.current=ut;function yn(Nn){Xt(Nn),Rt(Nn)}function vn(){Xt(nn.current[0])}return m.useEffect(function(){ut.every(function(Nn){return Nn!==Nt})&&vn()},[ut.join("||")]),[Nt,yn,vn]}var pn=o("Gytx"),Ar=o.n(pn);function ra(xe,ut){var Rt=ut.formatList,wt=ut.generateConfig,Kt=ut.locale;return Object(E.a)(function(){if(!xe)return[[""],""];for(var Nt="",Xt=[],nn=0;nn1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(vn.current),Jn){yn(Rn);return}vn.current=requestAnimationFrame(function(){yn(Rn)})}var An=ra(nn,{formatList:Rt,generateConfig:wt,locale:Kt}),an=Object(O.a)(An,2),Pn=an[1];function bn(Rn){Nn(Rn)}function kn(){var Rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Nn(null,Rn)}return Object(m.useEffect)(function(){kn(!0)},[xe]),Object(m.useEffect)(function(){return function(){return cancelAnimationFrame(vn.current)}},[]),[Pn,bn,kn]}function ir(xe){var ut,Rt=xe.prefixCls,wt=Rt===void 0?"rc-picker":Rt,Kt=xe.id,Nt=xe.tabIndex,Xt=xe.style,nn=xe.className,yn=xe.dropdownClassName,vn=xe.dropdownAlign,Nn=xe.popupStyle,An=xe.transitionName,an=xe.generateConfig,Pn=xe.locale,bn=xe.inputReadOnly,kn=xe.allowClear,Rn=xe.autoFocus,Jn=xe.showTime,mr=xe.picker,Br=mr===void 0?"date":mr,Sn=xe.format,Yt=xe.use12Hours,dn=xe.value,Dn=xe.defaultValue,en=xe.open,wn=xe.defaultOpen,_n=xe.defaultOpenValue,In=xe.suffixIcon,Un=xe.clearIcon,or=xe.disabled,qn=xe.disabledDate,Pr=xe.placeholder,Lr=xe.getPopupContainer,Qn=xe.pickerRef,Dr=xe.panelRender,vr=xe.onChange,zr=xe.onOpenChange,Nr=xe.onFocus,$r=xe.onBlur,tr=xe.onMouseDown,Gt=xe.onMouseUp,Zt=xe.onMouseEnter,Jt=xe.onMouseLeave,zn=xe.onContextMenu,$n=xe.onClick,Ln=xe.direction,rr=xe.autoComplete,cr=rr===void 0?"off":rr,sr=m.useRef(null),qr=Br==="date"&&!!Jn||Br==="time",lr=de(S(Sn,Br,Jn,Yt)),da=m.useRef(null),Yr=m.useRef(null),_r=Object(u.a)(null,{value:dn,defaultValue:Dn}),Sr=Object(O.a)(_r,2),Kr=Sr[0],Jr=Sr[1],Ta=m.useState(Kr),_a=Object(O.a)(Ta,2),Ze=_a[0],ct=_a[1],_t=m.useRef(null),nt=Object(u.a)(!1,{value:en,defaultValue:wn,postState:function(er){return or?!1:er},onChange:function(er){zr&&zr(er),!er&&_t.current&&_t.current.onClose&&_t.current.onClose()}}),Me=Object(O.a)(nt,2),Je=Me[0],Le=Me[1],$e=ra(Ze,{formatList:lr,generateConfig:an,locale:Pn}),qe=Object(O.a)($e,2),pt=qe[0],rt=qe[1],It=gn({valueTexts:pt,onTextChange:function(er){var pa=an.locale.parse(Pn.locale,er,lr);pa&&(!qn||!qn(pa))&&ct(pa)}}),Vt=Object(O.a)(It,3),fn=Vt[0],ln=Vt[1],cn=Vt[2],un=function(er){ct(er),Jr(er),vr&&!mt(an,Kr,er)&&vr(er,er?an.locale.format(Pn.locale,er,lr[0]):"")},Wn=function(er){if(or&&er)return;Le(er)},Cn=function(er){return Je&&_t.current&&_t.current.onKeyDown?_t.current.onKeyDown(er):(Object(a.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},jr=function(){Gt&&Gt.apply(void 0,arguments),sr.current&&(sr.current.focus(),Wn(!0))},Mr=$t({blurToCancel:qr,open:Je,value:fn,triggerOpen:Wn,forwardKeyDown:Cn,isClickOutside:function(er){return!F([da.current,Yr.current],er)},onSubmit:function(){return qn&&qn(Ze)?!1:(un(Ze),Wn(!1),cn(),!0)},onCancel:function(){Wn(!1),ct(Kr),cn()},onFocus:Nr,onBlur:$r}),Qr=Object(O.a)(Mr,2),Wr=Qr[0],ta=Qr[1],Kn=ta.focused,wr=ta.typing;m.useEffect(function(){Je||(ct(Kr),!pt.length||pt[0]===""?ln(""):rt!==fn&&cn())},[Je,pt]),m.useEffect(function(){Je||cn()},[Br]),m.useEffect(function(){ct(Kr)},[Kr]),Qn&&(Qn.current={focus:function(){sr.current&&sr.current.focus()},blur:function(){sr.current&&sr.current.blur()}});var Gn=Object(x.a)(Object(x.a)({},xe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),En=m.createElement(fe,Object.assign({},Gn,{generateConfig:an,className:f()(Object(y.a)({},"".concat(wt,"-panel-focused"),!wr)),value:Ze,locale:Pn,tabIndex:-1,onChange:ct,direction:Ln}));Dr&&(En=Dr(En));var jn=m.createElement("div",{className:"".concat(wt,"-panel-container"),onMouseDown:function(er){er.preventDefault()}},En),Vr;In&&(Vr=m.createElement("span",{className:"".concat(wt,"-suffix")},In));var ua;kn&&Kr&&!or&&(ua=m.createElement("span",{onMouseDown:function(er){er.preventDefault(),er.stopPropagation()},onMouseUp:function(er){er.preventDefault(),er.stopPropagation(),un(null),Wn(!1)},className:"".concat(wt,"-clear")},Un||m.createElement("span",{className:"".concat(wt,"-clear-btn")})));var hr=function(er,pa){(pa==="submit"||pa!=="key"&&!qr)&&(un(er),Wn(!1))},aa=Ln==="rtl"?"bottomRight":"bottomLeft",xa=oa(fn,{formatList:lr,generateConfig:an,locale:Pn}),ha=Object(O.a)(xa,3),Ca=ha[0],Tr=ha[1],br=ha[2];return m.createElement(l.Provider,{value:{operationRef:_t,hideHeader:Br==="time",panelRef:da,onSelect:hr,open:Je,defaultOpenValue:_n,onDateMouseEnter:Tr,onDateMouseLeave:br}},m.createElement(Vn,{visible:Je,popupElement:jn,popupStyle:Nn,prefixCls:wt,dropdownClassName:yn,dropdownAlign:vn,getPopupContainer:Lr,transitionName:An,popupPlacement:aa,direction:Ln},m.createElement("div",{className:f()(wt,nn,(ut={},Object(y.a)(ut,"".concat(wt,"-disabled"),or),Object(y.a)(ut,"".concat(wt,"-focused"),Kn),Object(y.a)(ut,"".concat(wt,"-rtl"),Ln==="rtl"),ut)),style:Xt,onMouseDown:tr,onMouseUp:jr,onMouseEnter:Zt,onMouseLeave:Jt,onContextMenu:zn,onClick:$n},m.createElement("div",{className:f()("".concat(wt,"-input"),Object(y.a)({},"".concat(wt,"-input-placeholder"),!!Ca)),ref:Yr},m.createElement("input",Object.assign({id:Kt,tabIndex:Nt,disabled:or,readOnly:bn||!wr,value:Ca||fn,onChange:function(er){ln(er.target.value)},autoFocus:Rn,placeholder:Pr,ref:sr,title:fn},Wr,{size:_(Br,lr[0])},Se(xe),{autoComplete:cr})),Vr,ua))))}var Ra=function(xe){Object(T.a)(Rt,xe);var ut=Object(b.a)(Rt);function Rt(){var wt;return Object(P.a)(this,Rt),wt=ut.apply(this,arguments),wt.pickerRef=m.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(g.a)(Rt,[{key:"render",value:function(){return m.createElement(ir,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),La=Ra;function ca(xe,ut,Rt){var wt=xe.picker,Kt=xe.locale,Nt=xe.selectedValue,Xt=xe.disabledDate,nn=xe.disabled,yn=xe.generateConfig,vn=Te(Nt,0),Nn=Te(Nt,1);function An(Rn){var Jn=yn.getYear(Rn),mr=yn.locale.getWeek(Kt.locale,Rn);return Jn*100+mr}function an(Rn){var Jn=yn.getYear(Rn),mr=yn.getMonth(Rn);return Jn*100+mr}function Pn(Rn){var Jn=yn.getYear(Rn),mr=ve(yn,Rn);return Jn*10+mr}var bn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(nn[1]&&Nn)return!Qe(yn,Rn,Nn)&&yn.isAfter(Rn,Nn);if(ut&&Nn)switch(wt){case"quarter":return Pn(Rn)>Pn(Nn);case"month":return an(Rn)>an(Nn);case"week":return An(Rn)>An(Nn);default:return!Qe(yn,Rn,Nn)&&yn.isAfter(Rn,Nn)}return!1},[Xt,nn[1],Nn,ut]),kn=m.useCallback(function(Rn){if(Xt&&Xt(Rn))return!0;if(nn[0]&&vn)return!Qe(yn,Rn,Nn)&&yn.isAfter(vn,Rn);if(Rt&&vn)switch(wt){case"quarter":return Pn(Rn)0&&arguments[0]!==void 0?arguments[0]:!1,Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zr=null;br&&ei&&ei[0]&&ei[1]&&bn.isAfter(ei[1],ei[0])&&(Zr=ei);var va=dn;if(dn&&Object(r.a)(dn)==="object"&&dn.defaultValue){var Wa=dn.defaultValue;va=Object(x.a)(Object(x.a)({},dn),{},{defaultValue:Te(Wa,rt)||void 0})}var Ei=null;return Qn&&(Ei=function($a,xi){return Qn($a,xi,{range:rt?"end":"start"})}),m.createElement(ft.Provider,{value:{inRange:!0,panelPosition:sa,rangedValue:yo||Kn,hoverRangedValue:Zr}},m.createElement(fe,Object.assign({},xe,Cr,{dateRender:Ei,showTime:va,mode:jn[rt],generateConfig:bn,style:void 0,direction:_r,disabledDate:rt===0?xa:ha,disabledTime:function($a){return Lr?Lr($a,rt===0?"start":"end"):!1},className:f()(Object(y.a)({},"".concat(Nt,"-panel-focused"),rt===0?!Xa:!$i)),value:Te(Kn,rt),locale:kn,tabIndex:-1,onPanelChange:function($a,xi){ua(ce(jn,xi,rt),ce(Kn,$a,rt));var Ki=$a;sa==="right"&&jn[rt]===xi&&(Ki=Ye(Ki,xi,bn,-1)),Qr(Ki,rt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ga=0,ui=0;rt&&_t.current&&Me.current&&ct.current&&(Ga=_t.current.offsetWidth+Me.current.offsetWidth,ct.current.offsetWidth&&Ga>ct.current.offsetWidth&&(ui=Ga));var eo=_r==="rtl"?{right:Ga}:{left:Ga};function ki(){var sa,Cr=q(Nt,jn[rt],zn),Zr=oe({prefixCls:Nt,components:da,needConfirmButton:Ta,okDisabled:!Te(Kn,rt)||Pr&&Pr(Kn[rt]),locale:kn,rangeList:Aa,onOk:function(){Te(Kn,rt)&&(ni(Kn,rt),lr&&lr(Kn))}});if(Yt!=="time"&&!dn){var va=Mr(rt),Wa=Ye(va,Yt,bn),Ei=jn[rt],Pi=Ei===Yt,$a=ya(Pi?"left":!1,{pickerValue:va,onPickerValueChange:function(Qa){Qr(Qa,rt)}}),xi=ya("right",{pickerValue:Wa,onPickerValueChange:function(Qa){Qr(Ye(Qa,Yt,bn,-1),rt)}});_r==="rtl"?sa=m.createElement(m.Fragment,null,xi,Pi&&$a):sa=m.createElement(m.Fragment,null,$a,Pi&&xi)}else sa=ya();var Ki=m.createElement(m.Fragment,null,m.createElement("div",{className:"".concat(Nt,"-panels")},sa),(Cr||Zr)&&m.createElement("div",{className:"".concat(Nt,"-footer")},Cr,Zr));return Dr&&(Ki=Dr(Ki)),m.createElement("div",{className:"".concat(Nt,"-panel-container"),style:{marginLeft:ui},ref:ct,onMouseDown:function(Qa){Qa.preventDefault()}},Ki)}var ho=m.createElement("div",{className:f()("".concat(Nt,"-range-wrapper"),"".concat(Nt,"-").concat(Yt,"-range-wrapper")),style:{minWidth:Oa}},m.createElement("div",{className:"".concat(Nt,"-range-arrow"),style:eo}),ki()),wi;$r&&(wi=m.createElement("span",{className:"".concat(Nt,"-suffix")},$r));var qa;Nr&&(Te(un,0)&&!fn[0]||Te(un,1)&&!fn[1])&&(qa=m.createElement("span",{onMouseDown:function(Cr){Cr.preventDefault(),Cr.stopPropagation()},onMouseUp:function(Cr){Cr.preventDefault(),Cr.stopPropagation();var Zr=un;fn[0]||(Zr=ce(Zr,null,0)),fn[1]||(Zr=ce(Zr,null,1)),ni(Zr,null),Ua(!1,rt)},className:"".concat(Nt,"-clear")},tr||m.createElement("span",{className:"".concat(Nt,"-clear-btn")})));var po={size:_(Yt,$e[0])},Hi=0,mo=0;_t.current&&nt.current&&Me.current&&(rt===0?mo=_t.current.offsetWidth:(Hi=Ga,mo=nt.current.offsetWidth));var hi=_r==="rtl"?{right:Hi}:{left:Hi},Pa=function(Cr,Zr){var va=ce(Kn,Cr,rt);Zr==="submit"||Zr!=="key"&&!Ta?(ni(va,rt),rt===0?xo():ko()):wr(va)};return m.createElement(l.Provider,{value:{operationRef:Vt,hideHeader:Yt==="time",onDateMouseEnter:oo,onDateMouseLeave:so,hideRanges:!0,onSelect:Pa,open:br}},m.createElement(Vn,{visible:br,popupElement:ho,popupStyle:vn,prefixCls:Nt,dropdownClassName:Nn,dropdownAlign:an,getPopupContainer:Pn,transitionName:An,range:!0,direction:_r},m.createElement("div",Object.assign({ref:Ze,className:f()(Nt,"".concat(Nt,"-range"),yn,(ut={},Object(y.a)(ut,"".concat(Nt,"-disabled"),fn[0]&&fn[1]),Object(y.a)(ut,"".concat(Nt,"-focused"),rt===0?ri:To),Object(y.a)(ut,"".concat(Nt,"-rtl"),_r==="rtl"),ut)),style:nn,onClick:Wi,onMouseDown:Oo},Se(xe)),m.createElement("div",{className:f()("".concat(Nt,"-input"),(Rt={},Object(y.a)(Rt,"".concat(Nt,"-input-active"),rt===0),Object(y.a)(Rt,"".concat(Nt,"-input-placeholder"),!!Ri),Rt)),ref:_t},m.createElement("input",Object.assign({id:Xt,disabled:fn[0],readOnly:Zt||!Xa,value:Ri||mi,onChange:function(Cr){uo(Cr.target.value)},autoFocus:Jn,placeholder:Te(Rn,0)||"",ref:Je},fi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(Nt,"-range-separator"),ref:Me},wn),m.createElement("div",{className:f()("".concat(Nt,"-input"),(wt={},Object(y.a)(wt,"".concat(Nt,"-input-active"),rt===1),Object(y.a)(wt,"".concat(Nt,"-input-placeholder"),!!Ni),wt)),ref:nt},m.createElement("input",Object.assign({disabled:fn[1],readOnly:Zt||!$i,value:Ni||Vi,onChange:function(Cr){co(Cr.target.value)},placeholder:Te(Rn,1)||"",ref:Le},yi,po,{autoComplete:Jr}))),m.createElement("div",{className:"".concat(Nt,"-active-bar"),style:Object(x.a)(Object(x.a)({},hi),{},{width:mo,position:"absolute"})}),wi,qa)))}var fa=function(xe){Object(T.a)(Rt,xe);var ut=Object(b.a)(Rt);function Rt(){var wt;return Object(P.a)(this,Rt),wt=ut.apply(this,arguments),wt.pickerRef=m.createRef(),wt.focus=function(){wt.pickerRef.current&&wt.pickerRef.current.focus()},wt.blur=function(){wt.pickerRef.current&&wt.pickerRef.current.blur()},wt}return Object(g.a)(Rt,[{key:"render",value:function(){return m.createElement(oi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rt}(m.Component),ma=fa,la=z.b=La},onxn:function(k,z){k.exports="data:image/png;base64,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"},osHv:function(k,z,o){(function(P){P(o("VrN/"))})(function(P){"use strict";var g=P.Pos;function T(h,d){return h.line-d.line||h.ch-d.ch}var b="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",y=b+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",x=new RegExp("<(/?)(["+b+"]["+y+"]*)","g");function O(h,d,s,c){this.line=d,this.ch=s,this.cm=h,this.text=h.getLine(d),this.min=c?Math.max(c.from,h.firstLine()):h.firstLine(),this.max=c?Math.min(c.to-1,h.lastLine()):h.lastLine()}function m(h,d){var s=h.cm.getTokenTypeAt(g(h.line,d));return s&&/\btag\b/.test(s)}function e(h){return h.line>=h.max?void 0:(h.ch=0,h.text=h.cm.getLine(++h.line),!0)}function f(h){return h.line<=h.min?void 0:(h.text=h.cm.getLine(--h.line),h.ch=h.text.length,!0)}function a(h){for(;;){var d=h.text.indexOf(">",h.ch);if(d==-1){if(e(h))continue;return}if(!m(h,d+1)){h.ch=d+1;continue}var s=h.text.lastIndexOf("/",d),c=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,c?"selfClose":"regular"}}function u(h){for(;;){var d=h.ch?h.text.lastIndexOf("<",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!m(h,d+1)){h.ch=d;continue}x.lastIndex=d,h.ch=d;var s=x.exec(h.text);if(s&&s.index==d)return s}}function r(h){for(;;){x.lastIndex=h.ch;var d=x.exec(h.text);if(!d){if(e(h))continue;return}if(!m(h,d.index+1)){h.ch=d.index+1;continue}return h.ch=d.index+d[0].length,d}}function i(h){for(;;){var d=h.ch?h.text.lastIndexOf(">",h.ch-1):-1;if(d==-1){if(f(h))continue;return}if(!m(h,d+1)){h.ch=d;continue}var s=h.text.lastIndexOf("/",d),c=s>-1&&!/\S/.test(h.text.slice(s+1,d));return h.ch=d+1,c?"selfClose":"regular"}}function n(h,d){for(var s=[];;){var c=r(h),w,E=h.line,v=h.ch-(c?c[0].length:0);if(!c||!(w=a(h)))return;if(w=="selfClose")continue;if(c[1]){for(var R=s.length-1;R>=0;--R)if(s[R]==c[2]){s.length=R;break}if(R<0&&(!d||d==c[2]))return{tag:c[2],from:g(E,v),to:g(h.line,h.ch)}}else s.push(c[2])}}function l(h,d){for(var s=[];;){var c=i(h);if(!c)return;if(c=="selfClose"){u(h);continue}var w=h.line,E=h.ch,v=u(h);if(!v)return;if(v[1])s.push(v[2]);else{for(var R=s.length-1;R>=0;--R)if(s[R]==v[2]){s.length=R;break}if(R<0&&(!d||d==v[2]))return{tag:v[2],from:g(h.line,h.ch),to:g(w,E)}}}}P.registerHelper("fold","xml",function(h,d){for(var s=new O(h,d.line,0);;){var c=r(s);if(!c||s.line!=d.line)return;var w=a(s);if(!w)return;if(!c[1]&&w!="selfClose"){var E=g(s.line,s.ch),v=n(s,c[2]);return v&&T(v.from,E)>0?{from:E,to:v.from}:null}}}),P.findMatchingTag=function(h,d,s){var c=new O(h,d.line,d.ch,s);if(c.text.indexOf(">")==-1&&c.text.indexOf("<")==-1)return;var w=a(c),E=w&&g(c.line,c.ch),v=w&&u(c);if(!w||!v||T(c,d)>0)return;var R={from:g(c.line,c.ch),to:E,tag:v[2]};return w=="selfClose"?{open:R,close:null,at:"open"}:v[1]?{open:l(c,v[2]),close:R,at:"close"}:(c=new O(h,E.line,E.ch,s),{open:R,close:n(c,v[2]),at:"open"})},P.findEnclosingTag=function(h,d,s,c){for(var w=new O(h,d.line,d.ch,s);;){var E=l(w,c);if(!E)break;var v=new O(h,d.line,d.ch,s),R=n(v,E.tag);if(R)return{open:E,close:R}}},P.scanForClosingTag=function(h,d,s,c){var w=new O(h,d.line,d.ch,c?{from:0,to:c}:null);return n(w,s)}})},p5ED:function(k,z,o){"use strict";var P=o("+L6B"),g=o("2/Rp"),T=o("5Dmo"),b=o("3S7+"),y=o("k1fw"),x=o("tJVT"),O=o("q1tI"),m=o.n(O),e=o("vHTk"),f=o.n(e),a=o("yEEn"),u=o("ZW9T"),r=o("1vsH");z.a=function(i){var n=i.name,l=i.data,h=i.theme,d=i.type,s=i.filename,c=i.monacoEditor,w=i.className,E=i.style,v=i.close,R=i.onClose,M=i.hasMask,C=Object(O.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),S=Object(x.a)(C,2),_=S[0],A=S[1],U=Object(O.useState)(""),L=Object(x.a)(U,2),N=L[0],V=L[1],H,D=1024*1024,W=10*D,F=Object(O.useRef)();d==="office"&&(H=Object(r.T)(l).filesize,H>W&&(d="other")),s&&(c.filename=s),Object(O.useEffect)(function(){var ee,he,de=(ee=document.cookie)===null||ee===void 0||((he=ee.replace(/\s/g,""))===null||he===void 0)?void 0:he.split(";");de==null||de.map(function(Se){var Te=Se.split("=");Te[0]==="_educoder_session"&&V(Te[1])})},[]);var I=function(){if(l.startsWith("http")||l.startsWith("/")){K();return}Object(r.z)(s||"educoder",l,s)},K=function(){Object(r.x)(s||n,l)};return console.log("data:",l,"fileanme:",s," name:",n),m.a.createElement("div",{style:Object(y.a)({},E||{}),className:"".concat(M&&f.a.bgBlack," ").concat(d?f.a.wrp:"hide")},v&&m.a.createElement("div",{className:f.a.close,ref:F},m.a.createElement(b.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return F.current}},m.a.createElement("span",{onClick:K},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(b.a,{title:"\u5173\u95ED",getPopupContainer:function(){return F.current}},m.a.createElement("span",{className:"",onClick:R},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(f.a[w]," ").concat(w," ").concat(f.a.monaco," ").concat(d==="txt"?"show":"hide")},d==="txt"&&m.a.createElement(u.b,c)),d==="audio"&&m.a.createElement("audio",{src:"".concat(l!=null&&l.startsWith("/")||(l==null?void 0:l.indexOf("https://"))>-1?l:"data:audio/mp3;base64,").concat(l),autoPlay:!0}),d==="video"&&m.a.createElement(m.a.Fragment,null,l!=null&&l.startsWith("/")?m.a.createElement("video",{controls:!0,src:"".concat(l),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(l),autoPlay:!0})),d==="html"&&m.a.createElement("iframe",{src:l+"&disposition=inline"}),d==="pdf"&&m.a.createElement("embed",{className:f.a.embed,src:l}),d==="image"&&m.a.createElement(m.a.Fragment,null,m.a.createElement("img",{src:"".concat(l!=null&&l.startsWith("/")||(l==null?void 0:l.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(l)})),d==="other"&&m.a.createElement("div",null,m.a.createElement(g.a,{type:"primary",size:"large",onClick:I},m.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(d==="download"||d==="office")&&m.a.createElement(g.a,{type:"primary",size:"large",onClick:I},m.a.createElement(a.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(k,z,o){},pA7S:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=T.BlockCipher,x=g.algo,O=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],m=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],e=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],a=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=x.DES=y.extend({_doReset:function(){for(var l=this._key,h=l.words,d=[],s=0;s<56;s++){var c=O[s]-1;d[s]=h[c>>>5]>>>31-c%32&1}for(var w=this._subKeys=[],E=0;E<16;E++){for(var v=w[E]=[],R=e[E],s=0;s<24;s++)v[s/6|0]|=d[(m[s]-1+R)%28]<<31-s%6,v[4+(s/6|0)]|=d[28+(m[s+24]-1+R)%28]<<31-s%6;v[0]=v[0]<<1|v[0]>>>31;for(var s=1;s<7;s++)v[s]=v[s]>>>(s-1)*4+3;v[7]=v[7]<<5|v[7]>>>27}for(var M=this._invSubKeys=[],s=0;s<16;s++)M[s]=w[15-s]},encryptBlock:function(l,h){this._doCryptBlock(l,h,this._subKeys)},decryptBlock:function(l,h){this._doCryptBlock(l,h,this._invSubKeys)},_doCryptBlock:function(l,h,d){this._lBlock=l[h],this._rBlock=l[h+1],r.call(this,4,252645135),r.call(this,16,65535),i.call(this,2,858993459),i.call(this,8,16711935),r.call(this,1,1431655765);for(var s=0;s<16;s++){for(var c=d[s],w=this._lBlock,E=this._rBlock,v=0,R=0;R<8;R++)v|=f[R][((E^c[R])&a[R])>>>0];this._lBlock=E,this._rBlock=w^v}var M=this._lBlock;this._lBlock=this._rBlock,this._rBlock=M,r.call(this,1,1431655765),i.call(this,8,16711935),i.call(this,2,858993459),r.call(this,16,65535),r.call(this,4,252645135),l[h]=this._lBlock,l[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function r(l,h){var d=(this._lBlock>>>l^this._rBlock)&h;this._rBlock^=d,this._lBlock^=d<>>l^this._lBlock)&h;this._lBlock^=d,this._rBlock^=d<192.");var d=h.slice(0,2),s=h.length<4?h.slice(0,2):h.slice(2,4),c=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=u.createEncryptor(b.create(d)),this._des2=u.createEncryptor(b.create(s)),this._des3=u.createEncryptor(b.create(c))},encryptBlock:function(l,h){this._des1.encryptBlock(l,h),this._des2.decryptBlock(l,h),this._des3.encryptBlock(l,h)},decryptBlock:function(l,h){this._des3.decryptBlock(l,h),this._des2.encryptBlock(l,h),this._des1.decryptBlock(l,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});g.TripleDES=y._createHelper(n)}(),P.TripleDES})},pUFm:function(k,z,o){k.exports=o.p+"static/no-data.c803c40c.png"},pmY6:function(k,z,o){"use strict";o.d(z,"h",function(){return f}),o.d(z,"g",function(){return u}),o.d(z,"f",function(){return r}),o.d(z,"e",function(){return i}),o.d(z,"i",function(){return n}),o.d(z,"b",function(){return l}),o.d(z,"a",function(){return h}),o.d(z,"d",function(){return d}),o.d(z,"c",function(){return s});var P=o("C/vA"),g=o("JYp7");const T=!1;let b=null;function y(c){b=c}if(T){const c="__is_disposable_tracked__";y(new class{trackDisposable(w){const E=new Error("Potentially leaked disposable").stack;setTimeout(()=>{w[c]||console.log(E)},3e3)}setParent(w,E){if(w&&w!==h.None)try{w[c]=!0}catch(v){}}markAsDisposed(w){if(w&&w!==h.None)try{w[c]=!0}catch(E){}}markAsSingleton(w){}})}function x(c){return b==null||b.trackDisposable(c),c}function O(c){b==null||b.markAsDisposed(c)}function m(c,w){b==null||b.setParent(c,w)}function e(c,w){if(!b)return;for(const E of c)b.setParent(E,w)}function f(c){return b==null||b.markAsSingleton(c),c}class a extends Error{constructor(c){super(`Encountered errors while disposing of store. Errors: [${c.join(", ")}]`);this.errors=c}}function u(c){return typeof c.dispose=="function"&&c.dispose.length===0}function r(c){if(g.a.is(c)){let w=[];for(const E of c)if(E)try{E.dispose()}catch(v){w.push(v)}if(w.length===1)throw w[0];if(w.length>1)throw new a(w);return Array.isArray(c)?[]:c}else if(c)return c.dispose(),c}function i(...c){const w=n(()=>r(c));return e(c,w),w}function n(c){const w=x({dispose:Object(P.a)(()=>{O(w),c()})});return w}class l{constructor(){this._toDispose=new Set,this._isDisposed=!1,x(this)}dispose(){if(this._isDisposed)return;O(this),this._isDisposed=!0,this.clear()}clear(){try{r(this._toDispose.values())}finally{this._toDispose.clear()}}add(c){if(!c)return c;if(c===this)throw new Error("Cannot register a disposable on itself!");return m(c,this),this._isDisposed?l.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(c),c}}l.DISABLE_DISPOSED_WARNING=!1;class h{constructor(){this._store=new l,x(this),m(this._store,this)}dispose(){O(this),this._store.dispose()}_register(c){if(c===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(c)}}h.None=Object.freeze({dispose(){}});class d{constructor(){this._isDisposed=!1,x(this)}get value(){return this._isDisposed?void 0:this._value}set value(c){var w;if(this._isDisposed||c===this._value)return;(w=this._value)===null||w===void 0||w.dispose(),c&&m(c,this),this._value=c}clear(){this.value=void 0}dispose(){var c;this._isDisposed=!0,O(this),(c=this._value)===null||c===void 0||c.dispose(),this._value=void 0}clearAndLeak(){const c=this._value;return this._value=void 0,c&&m(c,null),c}}class s{constructor(c){this.object=c}dispose(){}}},psGv:function(k,z,o){var P,g;(function(){var T;(function(){"use strict";var O=[,,function(a){function u(n){this.__parent=n,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}u.prototype.clone_empty=function(){var n=new u(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},u.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},u.prototype.has_match=function(n){for(var l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(n))return!0;return!1},u.prototype.set_indent=function(n,l){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},u.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},u.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},u.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var n=this.__parent.current_line;return n.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),n.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),n.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,n.__items[0]===" "&&(n.__items.splice(0,1),n.__character_count-=1),!0}return!1},u.prototype.is_empty=function(){return this.__items.length===0},u.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},u.prototype.push=function(n){this.__items.push(n);var l=n.lastIndexOf(` `);l!==-1?this.__character_count=n.length-l:this.__character_count+=n.length},u.prototype.pop=function(){var n=null;return this.is_empty()||(n=this.__items.pop(),this.__character_count-=n.length),n},u.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},u.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},u.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},u.prototype.toString=function(){var n="";return this.is_empty()?this.__parent.indent_empty_lines&&(n=this.__parent.get_indent_string(this.__indent_count)):(n=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),n+=this.__items.join("")),n};function r(n,l){this.__cache=[""],this.__indent_size=n.indent_size,this.__indent_string=n.indent_char,n.indent_with_tabs||(this.__indent_string=new Array(n.indent_size+1).join(n.indent_char)),l=l||"",n.indent_level>0&&(l=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}r.prototype.get_indent_size=function(n,l){var h=this.__base_string_length;return l=l||0,n<0&&(h=0),h+=n*this.__indent_size,h+=l,h},r.prototype.get_indent_string=function(n,l){var h=this.__base_string;return l=l||0,n<0&&(n=0,h=""),l+=n*this.__indent_size,this.__ensure_cache(l),h+=this.__cache[l],h},r.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var n=this.__cache.length,l=0,h="";this.__indent_size&&n>=this.__indent_size&&(l=Math.floor(n/this.__indent_size),n-=l*this.__indent_size,h=new Array(l+1).join(this.__indent_string)),n&&(h+=new Array(n+1).join(" ")),this.__cache.push(h)};function i(n,l){this.__indent_cache=new r(n,l),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new u(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(n,l){return this.__indent_cache.get_indent_string(n,l)},i.prototype.get_indent_size=function(n,l){return this.__indent_cache.get_indent_size(n,l)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(n){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===` `&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(` `);return n!==` @@ -572,7 +572,7 @@ You passed in: '`+this.raw_options[n]+"'");return d},u.prototype._is_valid_selec * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com */return P.mode.CTRGladman=function(){var g=P.lib.BlockCipherMode.extend();function T(x){if((x>>24&255)===255){var O=x>>16&255,m=x>>8&255,e=x&255;O===255?(O=0,m===255?(m=0,e===255?e=0:++e):++m):++O,x=0,x+=O<<16,x+=m<<8,x+=e}else x+=1<<24;return x}function b(x){return(x[0]=T(x[0]))===0&&(x[1]=T(x[1])),x}var y=g.Encryptor=g.extend({processBlock:function(x,O){var m=this._cipher,e=m.blockSize,f=this._iv,a=this._counter;f&&(a=this._counter=f.slice(0),this._iv=void 0),b(a);var u=a.slice(0);m.encryptBlock(u,0);for(var r=0;r=T.length?{done:!0}:{done:!1,value:T[x++]}},e:function(u){throw u},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,e=!1,f;return{s:function(){y=T[Symbol.iterator]()},n:function(){var u=y.next();return m=u.done,u},e:function(u){e=!0,f=u},f:function(){try{!m&&y.return!=null&&y.return()}finally{if(e)throw f}}}}},rHrb:function(k,z,o){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.CopyToClipboard=void 0;var P=T(o("q1tI")),g=T(o("+QRC"));function T(s){return s&&s.__esModule?s:{default:s}}function b(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(w){return typeof w}:b=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},b(s)}function y(s,c){var w=Object.keys(s);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(s);c&&(E=E.filter(function(v){return Object.getOwnPropertyDescriptor(s,v).enumerable})),w.push.apply(w,E)}return w}function x(s){for(var c=1;c=0)continue;if(!Object.prototype.propertyIsEnumerable.call(s,E))continue;w[E]=s[E]}}return w}function m(s,c){if(s==null)return{};var w={},E=Object.keys(s),v,R;for(R=0;R=0)continue;w[v]=s[v]}return w}function e(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}function f(s,c){for(var w=0;w"']/,P=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,b={"&":"&","<":"<",">":">",'"':""","'":"'"},y=M=>b[M];function x(M,C){if(C){if(o.test(M))return M.replace(P,y)}else if(g.test(M))return M.replace(T,y);return M}const O=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(M){return M.replace(O,(C,S)=>(S=S.toLowerCase(),S==="colon"?":":S.charAt(0)==="#"?S.charAt(1)==="x"?String.fromCharCode(parseInt(S.substring(2),16)):String.fromCharCode(+S.substring(1)):""))}const e=/(^|[^\[])\^/g;function f(M,C){M=M.source||M,C=C||"";const S={replace:(_,A)=>(A=A.source||A,A=A.replace(e,"$1"),M=M.replace(_,A),S),getRegex:()=>new RegExp(M,C)};return S}const a=/[^\w:]/g,u=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function r(M,C,S){if(M){let _;try{_=decodeURIComponent(m(S)).replace(a,"").toLowerCase()}catch(A){return null}if(_.indexOf("javascript:")===0||_.indexOf("vbscript:")===0||_.indexOf("data:")===0)return null}C&&!u.test(S)&&(S=d(C,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(_){return null}return S}const i={},n=/^[^:]+:\/*[^/]*$/,l=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(M,C){i[" "+M]||(n.test(M)?i[" "+M]=M+"/":i[" "+M]=E(M,"/",!0)),M=i[" "+M];const S=M.indexOf(":")===-1;return C.substring(0,2)==="//"?S?C:M.replace(l,"$1")+C:C.charAt(0)==="/"?S?C:M.replace(h,"$1")+C:M+C}const s={exec:function(){}};function c(M){let C=1,S,_;for(;C{let V=!1,H=L;for(;--H>=0&&N[H]==="\\";)V=!V;return V?"|":" |"}),_=S.split(/ \|/);let A=0;if(_.length>C)_.splice(C);else for(;_.length=7){N.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}Dt(Ot.target.value)}})),n.a.createElement("div",{className:"mt10 font14"},n.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),n.a.createElement(H.a.Group,{value:Bt,onChange:function(Ot){return Ct(Ot.target.value)}},n.a.createElement(H.a,{value:F.Manager},"\u7BA1\u7406\u4EBA\u5458"),n.a.createElement(H.a,{value:F.Developer},"\u5F00\u53D1\u4EBA\u5458"),n.a.createElement(H.a,{value:F.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},K=I,ee=o("Jky8"),he=o("6Fuo"),de=o.n(he),Se=o("NLgs"),Te=o("xKgJ"),ce;(function(He){He.Projects="projects",He.Shixuns="shixuns",He.Classrooms="classrooms"})(ce||(ce={}));var be;(function(He){He.Classrooms="classrooms",He.Shixuns="shixuns",He.Paths="paths",He.Projects="projects",He.Videos="videos",He.Topics="topics"})(be||(be={}));var Ee=function(Ge){var Ce,Ie,Fe,Be,We,st,Dt,Ht=Ge.homePage,rn=Ge.user,Bt=Ge.globalSetting,Ct=Ge.loading,Ke=Ge.dispatch,et=Ge.location,at=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","location"]),Pe=Object(i.useState)(),Xe=Object(y.a)(Pe,2),ht=Xe[0],_t=Xe[1],Ot=Object(i.useState)(),Nt=Object(y.a)(Ot,2),ut=Nt[0],Ft=Nt[1],It=function(Yn){var ar;if(!Object(Se.e)(Ke))return;if(Yn===ce.Projects&&!((ar=rn.userInfo)!==null&&ar!==void 0&&ar.email)){N.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Yn===ce.Classrooms?_t(!0):Yn===ce.Projects&&Ft(!0)},on=function(Yn,ar){var nr;if(!Object(Se.e)(Ke))return;if(ar===ce.Projects&&!((nr=rn.userInfo)!==null&&nr!==void 0&&nr.email)){N.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(ar===ce.Shixuns&&!Object(Se.c)())return;Yn&&(window.location.href=Yn)},mn=(Ce=(((Ie=Bt.setting)===null||Ie===void 0?void 0:Ie.navbar)||[]).find(function(fr){return fr.link==="/".concat(be.Classrooms)}))===null||Ce===void 0?void 0:Ce.hidden,Hn=(Fe=(((Be=Bt.setting)===null||Be===void 0?void 0:Be.navbar)||[]).find(function(fr){return fr.link==="/".concat(be.Shixuns)}))===null||Fe===void 0?void 0:Fe.hidden,Xn=(We=(((st=Bt.setting)===null||st===void 0?void 0:st.navbar)||[]).find(function(fr){return fr.link==="/".concat(be.Paths)}))===null||We===void 0?void 0:We.hidden;if(Bt!=null&&(Dt=Bt.setting)!==null&&Dt!==void 0&&Dt.is_local){var Fn;rn!=null&&(Fn=rn.userInfo)!==null&&Fn!==void 0&&Fn.is_shixun_marker||(Hn=!0)}var xn=function(Yn){var ar,nr,Rr,pr,sn,qt,On,Fr;return n.a.createElement(n.a.Fragment,null,n.a.createElement(C.a,{justify:"space-around",className:"pt5 pb5"},n.a.createElement(_.a,{className:de.a.joinCol},((ar=rn.userInfo)===null||ar===void 0?void 0:ar.user_identity)!=="\u5B66\u751F"&&!mn&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return on("/classrooms/new")}},(nr=rn.userInfo)!==null&&nr!==void 0&&nr.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!(Bt!=null&&Bt.setting.hide_shixun&&Object(Te.m)())&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return on("/shixuns/new",ce.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),!(Bt!=null&&(Rr=Bt.setting)!==null&&Rr!==void 0&&Rr.hide_subject&&Object(Te.m)())&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return on("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Bt!=null&&(pr=Bt.setting)!==null&&pr!==void 0&&pr.is_local)&&((sn=rn.userInfo)===null||sn===void 0?void 0:sn.main_site)&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){var xr,dr;return on("".concat((xr=rn.navigationInfo)===null||xr===void 0||((dr=xr.top)===null||dr===void 0)?void 0:dr.old_url,"/projects/deposit/new"),ce.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),n.a.createElement(_.a,null,n.a.createElement("div",{className:de.a.joinBoard})),n.a.createElement(_.a,{className:de.a.joinCol},!mn&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return It(ce.Classrooms)}},(qt=rn.userInfo)!==null&&qt!==void 0&&qt.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((On=rn.userInfo)===null||On===void 0?void 0:On.main_site)&&!(Bt!=null&&(Fr=Bt.setting)!==null&&Fr!==void 0&&Fr.is_local)&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return It(ce.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return n.a.createElement("section",null,n.a.createElement(R.a,{overlay:n.a.createElement(U.a,{className:"".concat(de.a.rightMenu," ").concat(de.a.joinMenu," mt10")},n.a.createElement(xn,null)),placement:"bottomRight"},n.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),n.a.createElement(ee.a,{visible:ht,onCancel:function(){return _t(!1)}}),n.a.createElement(K,{visible:ut,onCancel:function(){return Ft(!1)}}))},ue=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting;return{homePage:Ge,user:Ie,globalSetting:Fe,loading:Ce.models.index}})(Ee),le=o("vToQ"),$=o.n(le),me=o("jb+D"),re=o("m3rI"),ae=function(Ge){var Ce,Ie=RegExp("(^| )"+Ge+"=([^;]+)(;|$)");return(Ce=document.cookie.match(Ie))?decodeURIComponent(Ce[2]):null},Oe=function(Ge){var Ce=new Date;Ce.setTime(Ce.getTime()-1);var Ie=ae(Ge);Ie!=null&&(document.cookie=Ge+"="+Ie+";expires="+Ce.toGMTString())},se;(function(He){He.Classrooms="classrooms",He.Shixuns="shixuns",He.Paths="paths",He.Projects="projects",He.Videos="videos",He.Topics="topics"})(se||(se={}));var te=function(Ge){var Ce,Ie,Fe,Be,We,st,Dt,Ht,rn,Bt,Ct,Ke=Ge.homePage,et=Ge.user,at=Ge.globalSetting,Pe=Ge.loading,Xe=Ge.dispatch,ht=Ge.shixunHomeworks,_t=Ge.location,Ot=Ge.payload,Nt=Ot===void 0?{}:Ot,ut=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),Ft=(Ce=(((Ie=at.setting)===null||Ie===void 0?void 0:Ie.navbar)||[]).find(function(fr){return fr.link==="/".concat(se.Classrooms)}))===null||Ce===void 0?void 0:Ce.hidden,It=(Fe=(((Be=at.setting)===null||Be===void 0?void 0:Be.navbar)||[]).find(function(fr){return fr.link==="/".concat(se.Shixuns)}))===null||Fe===void 0?void 0:Fe.hidden,on=(We=(((st=at.setting)===null||st===void 0?void 0:st.navbar)||[]).find(function(fr){return fr.link==="/".concat(se.Paths)}))===null||We===void 0?void 0:We.hidden,mn=((Dt=et.userInfo)===null||Dt===void 0?void 0:Dt.admin)||((Ht=et.userInfo)===null||Ht===void 0?void 0:Ht.business)||((rn=et.userInfo)===null||rn===void 0?void 0:rn.is_shixun_marker)||((Bt=et.userInfo)===null||Bt===void 0?void 0:Bt.is_teacher)||((Ct=et.userInfo)===null||Ct===void 0?void 0:Ct.user_identity)!=="\u5B66\u751F",Hn=function(){if(Object(W.r)())return n.a.createElement(U.a,{className:"".concat($.a.rightMenu," ").concat($.a.menuWrap)},n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var Yn,ar,nr,Rr,pr,sn,qt,On,Fr,Or,xr,dr,pe,X,q,oe,De,fe,ot,Qt,Mn,Vn;return n.a.createElement(U.a,{className:"".concat($.a.rightMenu," ").concat($.a.menuWrap)},n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Yn=et.userInfo)===null||Yn===void 0?void 0:Yn.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!Ft&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((ar=et.userInfo)===null||ar===void 0?void 0:ar.login,"/classrooms")},(nr=et.userInfo)!==null&&nr!==void 0&&nr.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!It&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Rr=et.userInfo)===null||Rr===void 0?void 0:Rr.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!on&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((pr=et.userInfo)===null||pr===void 0?void 0:pr.login,"/paths")},(sn=et.userInfo)!==null&&sn!==void 0&&sn.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((qt=et.userInfo)===null||qt===void 0?void 0:qt.main_site)&&!((On=at.setting)!==null&&On!==void 0&&On.is_local)&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Fr=et.userInfo)===null||Fr===void 0?void 0:Fr.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),mn&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Or=et.userInfo)===null||Or===void 0?void 0:Or.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),mn&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(Se.e)(Xe))return;d.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),mn&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(Se.e)(Xe))return;d.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((xr=et.navigationInfo)===null||xr===void 0||((dr=xr.top)===null||dr===void 0)?void 0:dr.customer_management_url)&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{href:(pe=et.navigationInfo)===null||pe===void 0||((X=pe.top)===null||X===void 0)?void 0:X.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((q=et.navigationInfo)===null||q===void 0||((oe=q.top)===null||oe===void 0)?void 0:oe.college_identifier)&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/colleges/".concat((De=et.navigationInfo)===null||De===void 0||((fe=De.top)===null||fe===void 0)?void 0:fe.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((ot=et.navigationInfo)===null||ot===void 0||((Qt=ot.top)===null||Qt===void 0)?void 0:Qt.laboratory_admin_url)&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{href:(Mn=et.navigationInfo)===null||Mn===void 0||((Vn=Mn.top)===null||Vn===void 0)?void 0:Vn.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:n.a.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")),n.a.createElement(U.a.Item,{className:$.a.exit},n.a.createElement("a",{onClick:Object(T.a)(r.a.mark(function $t(){var gn;return r.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return Ar.next=2,Object(me.c)({});case 2:gn=Ar.sent,(gn==null?void 0:gn.status)===1&&(Xe({type:"user/getUserInfo",payload:Object(O.a)({},Nt)}),Xe({type:"user/getNavigationInfo",payload:Object(O.a)({},Nt)}),Oe("autologin_trustie"),Oe("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),N.b.success(gn==null?void 0:gn.message),d.d.replace("/"));case 4:case"end":return Ar.stop()}},$t)}))},"\u9000\u51FA")))};if(Object(Te.p)()){var Xn,Fn;return n.a.createElement(R.a,{className:"".concat($.a.height67),overlay:Hn,placement:"bottomRight"},n.a.createElement("section",null,n.a.createElement("aside",null,n.a.createElement("div",{className:ht.actionTabs.type===1?$.a.classromediv:""},n.a.createElement("img",{className:"".concat($.a.userPic," current ml15"),src:"".concat(re.a===null||re.a===void 0?void 0:re.a.IMG_SERVER,"/images/").concat((Xn=et.userInfo)===null||Xn===void 0?void 0:Xn.image_url),alt:"",onClick:function(){var Yn;return d.d.push(Object(W.r)()?"/account/profile":"/users/".concat((Yn=et.userInfo)===null||Yn===void 0?void 0:Yn.login,"/classrooms"))}}),Object(W.r)()&&n.a.createElement("span",{className:"ml10 font16"},(Fn=et.userInfo)===null||Fn===void 0?void 0:Fn.username)))))}else{var xn;return n.a.createElement("div",{className:"font15 ".concat(at.isIlearning?$.a.login:"")},n.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){Xe({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((xn=at.setting)!==null&&xn!==void 0&&xn.close_register)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("span",{className:"ml5 mr5"},"|"),n.a.createElement(h.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},Q=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting,Be=He.shixunHomeworks;return{homePage:Ge,user:Ie,globalSetting:Fe,shixunHomeworks:Be,loading:Ce.models.index}})(te),J=o("+L6B"),ve=o("2/Rp"),_e=o("Cs+z"),Ae=o.n(_e),Qe=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],tt=function(Ge){var Ce=Ge.homePage,Ie=Ge.user,Fe=Ge.globalSetting,Be=Ge.loading,We=Ge.dispatch,st=Ge.location,Dt=Ge.text,Ht=Ge.shixunHomeworks,rn=Ge.payload,Bt=rn===void 0?{}:rn,Ct=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Ke=Object(i.useState)("none"),et=Object(y.a)(Ke,2),at=et[0],Pe=et[1];return Object(i.useEffect)(function(){Ht.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&Pe("flex")},[Ht.actionTabs.key]),Object(i.useEffect)(function(){Ht.actionTabs.key==="\u9690\u85CF"&&(Pe("none"),localStorage.setItem("Noviceguide","0"))},[Ht.actionTabs.key]),n.a.createElement("div",{style:{display:at,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},n.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},n.a.createElement("img",{src:Ae.a,style:{position:"absolute",top:"-32px"}}),n.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Ht.actionTabs.text),Ht.actionTabs.type===9?n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(ve.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Pe("none"),We({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(ve.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),We({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),Pe("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},dt=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting,Be=He.shixunHomeworks;return{homePage:Ge,user:Ie,globalSetting:Fe,loading:Ce.models.index,shixunHomeworks:Be}})(tt),mt=o("498V"),vt=o.n(mt),Et=o("wd/R"),Ye=o.n(Et),Ue=a.a.Header,ft=e.a.Search;function jt(){var He,Ge,Ce=window.location.pathname,Ie=Ce.split("/"),Fe={};return Ie[1]=="classrooms"&&Ie.length>3&&!((He=Ie[4])!==null&&He!==void 0&&He.includes("newgold"))&&!((Ge=Ie[5])!==null&&Ge!==void 0&&Ge.includes("newgold"))&&Ie[2]!=="coursesId"&&(Fe.course_id=Ie[2]),Ie[1]==="shixuns"&&Ie.length>3&&(Fe.objective_type="shixun",Fe.objective_id=Ie[2]),Ie[1]==="paths"&&Ie.length>3&&(Fe.objective_type="path",Fe.objective_id=Ie[2]),Object(O.a)(Object(O.a)({},Fe),{school:1})}var yt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Pt=function(Ge){var Ce,Ie,Fe=Ge.homePage,Be=Ge.user,We=Ge.globalSetting,st=Ge.loading,Dt=Ge.dispatch,Ht=Ge.location,rn=Ge.isLogin,Bt=rn===void 0?!1:rn,Ct=Ge.shixunHomeworks,Ke=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),et=Object(l.g)(),at=Object(i.useState)(!1),Pe=Object(y.a)(at,2),Xe=Pe[0],ht=Pe[1],_t=Object(i.useState)(""),Ot=Object(y.a)(_t,2),Nt=Ot[0],ut=Ot[1],Ft=Object(i.useState)(!1),It=Object(y.a)(Ft,2),on=It[0],mn=It[1],Hn=jt(),Xn=Object(i.useState)("0"),Fn=Object(y.a)(Xn,2),xn=Fn[0],fr=Fn[1],Yn=Object(i.useRef)({id:0});Object(i.useEffect)(function(){var fe;return Be!=null&&(fe=Be.userInfo)!==null&&fe!==void 0&&fe.now_time&&(Yn.current.id=setInterval(function(){fr(function(ot){if(ot==="0"){var Qt;return Ye()(Be==null||((Qt=Be.userInfo)===null||Qt===void 0)?void 0:Qt.now_time,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")}else return Ye()(ot,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")})},1e3)),function(){clearInterval(Yn.current.id)}},[Be==null||((Ce=Be.userInfo)===null||Ce===void 0)?void 0:Ce.now_time]),Object(i.useEffect)(function(){Dt({type:"user/getNavigationInfo",payload:Object(O.a)({},Hn)})},[We.name]),Object(i.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(yt!=null&&yt.includes(Ht==null?void 0:Ht.pathname)||(Ht==null?void 0:Ht.pathname.indexOf("/classrooms"))===0||Dt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Ht.pathname]),Object(i.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Ct.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Ct.actionTabs.key]),Object(i.useEffect)(function(){if(We!=null&&We.setting){var fe,ot,Qt=We==null||((fe=We.setting)===null||fe===void 0||((ot=fe.navbar)===null||ot===void 0))?void 0:ot.filter(function(pn){return!(pn!=null&&pn.hidden)&&!(Object(Te.m)()&&pn.link==="/paperlibrary")}),Mn=Object(b.a)(Qt),Vn;try{for(Mn.s();!(Vn=Mn.n()).done;){var $t=Vn.value;$t.subitem&&($t.subitem=$t.subitem.filter(function(pn){return!(pn!=null&&pn.hidden)&&!(Object(Te.m)()&&pn.link==="/paperlibrary")}))}}catch(pn){Mn.e(pn)}finally{Mn.f()}var gn=!1;Qt==null||Qt.map(function(pn,Ar){var ra,oa,ir,Ra="/"+((ra=Ht.pathname)===null||ra===void 0||((oa=ra.split("/"))===null||oa===void 0)?void 0:oa[1]);if(pn.link===Ra&&(ut(pn==null?void 0:pn.link),Object(W.X)(pn==null?void 0:pn.name),On(Or(Ar,{name:pn==null?void 0:pn.name,link:pn==null?void 0:pn.link},Qt)),gn=!0),pn!=null&&(ir=pn.subitem)!==null&&ir!==void 0&&ir.length){var La;pn==null||((La=pn.subitem)===null||La===void 0)||La.map(function(ca){ca.link===Ra&&(ut(ca==null?void 0:ca.link),Object(W.X)(ca==null?void 0:ca.name),On(Or(Ar,{name:ca==null?void 0:ca.name,link:ca==null?void 0:ca.link},Qt)),gn=!0)})}}),gn||On(Qt)}},[We==null?void 0:We.setting,Be]);var ar=Object(i.useMemo)(function(){var fe;if(We!=null&&(fe=We.setting)!==null&&fe!==void 0&&fe.nav_logo_url){var ot;return"".concat(re.a.IMG_SERVER,"/").concat(We==null||((ot=We.setting)===null||ot===void 0)?void 0:ot.nav_logo_url)}else return"".concat(re.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[We==null||((Ie=We.setting)===null||Ie===void 0)?void 0:Ie.nav_logo_url]);function nr(fe){et.push("/search?value="+fe)}var Rr=function(){return Xe?n.a.createElement("div",{onBlur:function(){setTimeout(function(){ht(!1)},300)}},n.a.createElement(ft,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:nr,autoFocus:!0})):n.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){et.push("/search?value=")}})},pr=Object(i.useState)([]),sn=Object(y.a)(pr,2),qt=sn[0],On=sn[1],Fr=function(){var fe=Object(T.a)(r.a.mark(function ot(Qt,Mn){var Vn,$t,gn,pn,Ar,ra,oa;return r.a.wrap(function(Ra){for(;;)switch(Ra.prev=Ra.next){case 0:if(!((Qt==null?void 0:Qt.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Ra.next=6;break}return Ra.next=3,Object(me.j)();case 3:return gn=Ra.sent,gn!=null&&($t=gn.data)!==null&&$t!==void 0&&$t.engineer_url?gn!=null&&(pn=gn.data)!==null&&pn!==void 0&&(Ar=pn.engineer_url)!==null&&Ar!==void 0&&Ar.includes("http")?Object(W.S)(gn==null||((ra=gn.data)===null||ra===void 0)?void 0:ra.engineer_url):et.push(gn==null||((oa=gn.data)===null||oa===void 0)?void 0:oa.engineer_url):(gn==null?void 0:gn.status)!=401&&mn(!0),Ra.abrupt("return");case 6:Qt!=null&&(Vn=Qt.link)!==null&&Vn!==void 0&&Vn.includes("http")?Object(W.S)(Qt==null?void 0:Qt.link):et.push(Qt==null?void 0:Qt.link),(Qt==null?void 0:Qt.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&Dt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:n.a.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}});case 8:case"end":return Ra.stop()}},ot)}));return function(Qt,Mn){return fe.apply(this,arguments)}}(),Or=function(ot,Qt,Mn){var Vn=Mn.slice();return Vn[ot]&&(Vn[ot].name=Qt.name,Vn[ot].link=Qt.link),Vn||[]};if(We.showHeader&&We.showHeaderFooter){var xr,dr,pe,X,q,oe,De;return n.a.createElement(a.a,{className:"".concat(We.isIlearning?w.a["header-iearning"]:w.a.header," ").concat(We.showHeaderFixed?w.a.headerFixed:"")},n.a.createElement(Ue,{className:"header"},n.a.createElement("section",{className:w.a["edu-menu"]},(!!We.isIlearning||!(We!=null&&(xr=We.setting)!==null&&xr!==void 0&&xr.main_site)&&!!(We!=null&&(dr=We.setting)!==null&&dr!==void 0&&dr.navbar))&&n.a.createElement(h.a,{style:{display:"flex",alignItems:"center"},onClick:function(){Dt({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},n.a.createElement("img",{className:w.a.logo,title:(pe=We.setting)===null||pe===void 0?void 0:pe.name,src:ar||vt.a})),n.a.createElement("ul",{className:"".concat(w.a.menu," ").concat(Object(W.r)()&&"ml0")},Object(W.r)()&&n.a.createElement("li",null,n.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(W.r)()&&We.setting&&qt.map(function(fe,ot){var Qt,Mn,Vn,$t,gn;return n.a.createElement("li",{key:ot,className:!(fe!=null&&(Qt=fe.subitem)!==null&&Qt!==void 0&&Qt.length)&&Nt===(fe==null?void 0:fe.link)||fe!=null&&(Mn=fe.subitem)!==null&&Mn!==void 0&&Mn.some(function(pn){return Nt===(pn==null?void 0:pn.link)})?w.a.actived:""},n.a.createElement("div",{onClick:function(){return Fr(fe,ot)},className:Ct.actionTabs.type===4?"".concat(w.a.name," ").concat(w.a.classromediv):w.a.name},n.a.createElement("span",null,function(){var pn=fe==null?void 0:fe.name;{var Ar;fe==null||((Ar=fe.subitem)===null||Ar===void 0)||Ar.map(function(ra,oa){return ra.link===Ht.pathname&&(pn=ra.name),ra})}return pn}()),(fe==null||((Vn=fe.subitem)===null||Vn===void 0)?void 0:Vn.length)>0&&n.a.createElement("i",{className:"iconfont icon-zhankai4"})),(fe==null||(($t=fe.subitem)===null||$t===void 0)?void 0:$t.length)>0&&n.a.createElement("div",{className:w.a.dropDown},fe==null||((gn=fe.subitem)===null||gn===void 0)?void 0:gn.map(function(pn,Ar){return n.a.createElement("div",{className:w.a.subName,onClick:function(){return Fr(pn,ot)},key:ot+"-"+Ar},!!Ar&&n.a.createElement("div",{className:w.a.line}),n.a.createElement("aside",{className:"font16 c-black"},pn.name),n.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},pn.content))})))})),n.a.createElement("div",{className:"search-bar",style:{flex:We.isIlearning?"initial":"1 0 auto"}},n.a.createElement("div",{className:"timeShow"},xn),!Object(W.r)()&&!(We!=null&&We.isIlearning)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(Rr,null),!Bt&&n.a.createElement(ue,null),!Bt&&!!(Be!=null&&(X=Be.userInfo)!==null&&X!==void 0&&X.login)&&n.a.createElement(h.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(Be==null||((q=Be.userInfo)===null||q===void 0)?void 0:q.login,"/user_tidings")},(Be==null||((oe=Be.navigationInfo)===null||oe===void 0||((De=oe.top)===null||De===void 0))?void 0:De.new_message)&&n.a.createElement("span",{className:w.a.newslight}))),!Bt&&n.a.createElement(Q,{payload:Hn}))),n.a.createElement(g.a,{centered:!0,destroyOnClose:!0,visible:on,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(W.S)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return mn(!1)}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},n.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),n.a.createElement("img",{src:s.y,width:200,height:200}),n.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))),n.a.createElement(dt,null))}else return n.a.createElement(n.a.Fragment,null)},it=z.a=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting,Be=He.shixunHomeworks;return{homePage:Ge,user:Ie,globalSetting:Fe,loading:Ce.models.index,shixunHomeworks:Be}})(Pt)},sLOW:function(k,z,o){"use strict";var P=o("iQDF"),g=o("+eQT"),T=o("Awhp"),b=o("KrTs"),y=o("O3gP"),x=o("lrIw"),O=o("7Kak"),m=o("9yH6"),e=o("sRBo"),f=o("kaz8"),a=o("+L6B"),u=o("2/Rp"),r=o("oBTY"),i=o("miYZ"),n=o("tsqr"),l=o("2qtc"),h=o("kLXV"),d=o("9og8"),s=o("tJVT"),c=o("PpiC"),w=o("WmNS"),E=o.n(w),v=o("q1tI"),R=o.n(v),M=o("9kvl"),C=o("Z0Lh"),S=o.n(C),_=o("9ZNV"),A=o("NLgs"),U=o("wd/R"),L=o.n(U),N=o("L+Ii"),V=o.n(N),H=function(I){if(!I)return I;var K=I.split(":");if(K[1]=="00"||K[1]=="30")return I;var ee=parseInt(K[1]);if(ee<30||ee==60)return[K[0],"30"].join(":");if(ee<60){var he=[K[0],"00"].join(":"),de="YYYY-MM-DD HH:mm",Se=L()(he,de);return Se.add(1,"hours"),Se.format(de)}return I},D="YYYY-MM-DD HH:mm",W=function(I){var K,ee,he,de,Se,Te,ce,be,Ee=I.shixunsDetail,ue=I.globalSetting,le=I.loading,$=I.user,me=I.dispatch,re=Object(c.a)(I,["shixunsDetail","globalSetting","loading","user","dispatch"]),ae=Object(v.useRef)(),Oe=Object(v.useState)(),se=Object(s.a)(Oe,2),te=se[0],Q=se[1],J=Object(v.useState)(),ve=Object(s.a)(J,2),_e=ve[0],Ae=ve[1],Qe=Object(v.useState)([]),tt=Object(s.a)(Qe,2),dt=tt[0],mt=tt[1],vt=Object(v.useState)([]),Et=Object(s.a)(vt,2),Ye=Et[0],Ue=Et[1],ft=Object(v.useState)(""),jt=Object(s.a)(ft,2),yt=jt[0],Pt=jt[1],it=Object(v.useState)(),He=Object(s.a)(it,2),Ge=He[0],Ce=He[1],Ie=Object(v.useState)(),Fe=Object(s.a)(Ie,2),Be=Fe[0],We=Fe[1],st=(K=$.userInfo)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.editable;Object(v.useEffect)(function(){var Ke,et;ae.current=(Ke=location.pathname)===null||Ke===void 0||((et=Ke.split("/"))===null||et===void 0)?void 0:et[2],Dt()},[]),Object(v.useEffect)(function(){var Ke,et,at,Pe,Xe,ht,_t,Ot,Nt,ut;if(!Ee.setting)return;Q((Ke=Ee.setting)===null||Ke===void 0||((et=Ke.shixun)===null||et===void 0)?void 0:et.can_copy),Ae((at=Ee.setting)===null||at===void 0||((Pe=at.shixun)===null||Pe===void 0)?void 0:Pe.use_scope),Ce(!!((Xe=Ee.setting)!==null&&Xe!==void 0&&(ht=Xe.shixun)!==null&&ht!==void 0&&ht.opening_time)),We((_t=Ee.setting)===null||_t===void 0||((Ot=_t.shixun)===null||Ot===void 0)?void 0:Ot.opening_time),mt((Nt=Ee.setting)===null||Nt===void 0||((ut=Nt.shixun)===null||ut===void 0)?void 0:ut.scope_partment)},[Ee.setting]);var Dt=function(){var Ke=Object(d.a)(E.a.mark(function et(at){var Pe;return E.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:at}});case 2:Pe=ht.sent,Pe&&Ue(Pe.shools_name||[]);case 4:case"end":return ht.stop()}},et)}));return function(at){return Ke.apply(this,arguments)}}(),Ht=function(){var Ke=Object(d.a)(E.a.mark(function et(){var at,Pe,Xe,ht,_t,Ot,Nt;return E.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ae.current}});case 2:if(Ft.t0=Ft.sent,Ft.t0){Ft.next=5;break}Ft.t0={};case 5:Nt=Ft.t0,h.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:R.a.createElement("div",{className:"tc font14 ".concat(V.a.modal)},!!((at=Nt.subjects)!==null&&at!==void 0&&at.length)&&R.a.createElement(R.a.Fragment,null,R.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(Pe=Nt.subjects)===null||Pe===void 0||((Xe=Pe.splice(0,2))===null||Xe===void 0)?void 0:Xe.map(function(It){return"\u300A".concat(It,"\u300B")}),"\u7B49",R.a.createElement("span",{className:V.a.colorOrange},Nt==null?void 0:Nt.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),R.a.createElement("br",null)),!!((ht=Nt.courses)!==null&&ht!==void 0&&ht.length)&&R.a.createElement(R.a.Fragment,null,R.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(_t=Nt.courses)===null||_t===void 0||((Ot=_t.splice(0,2))===null||Ot===void 0)?void 0:Ot.map(function(It){return"\u300A".concat(It,"\u300B")}),"\u7B49",R.a.createElement("span",{className:V.a.colorOrange},Nt==null?void 0:Nt.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),R.a.createElement("br",null)),R.a.createElement("span",{className:"".concat(V.a.colorYellow," mt30")},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:function(){var It=Object(d.a)(E.a.mark(function mn(){var Hn;return E.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return Fn.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ae.current}});case 2:Hn=Fn.sent,Hn.status===1&&(n.b.success("\u64CD\u4F5C\u6210\u529F"),M.d.push("/shixuns"));case 4:case"end":return Fn.stop()}},mn)}));function on(){return It.apply(this,arguments)}return on}()});case 7:case"end":return Ft.stop()}},et)}));return function(){return Ke.apply(this,arguments)}}(),rn=function(){if(Object(A.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},Bt=function(et){if(dt.includes(et)){n.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Pt(null),mt([].concat(Object(r.a)(dt),[et]))},Ct=function(){var Ke=Object(d.a)(E.a.mark(function et(){var at;return E.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(!(Ge&&!Be)){Xe.next=3;break}return n.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Xe.abrupt("return");case 3:if(!(_e===1&&!dt.length)){Xe.next=6;break}return n.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Xe.abrupt("return");case 6:return Xe.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ae.current,scope_partment:_e===0?null:dt,shixun:{can_copy:te,use_scope:_e,opening_time:Be}}});case 8:at=Xe.sent,at.status!==-1&&(n.b.info("\u6743\u9650\u914D\u7F6E\u4FDD\u5B58\u6210\u529F\uFF01"),me({type:"shixunsDetail/getSettingsData",payload:{id:ae.current}}),me({type:"shixunsDetail/getShixunsDetail",payload:{id:ae.current}}));case 10:case"end":return Xe.stop()}},et)}));return function(){return Ke.apply(this,arguments)}}();return R.a.createElement("section",{className:V.a.wrap},R.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(Ee==null||((he=Ee.detail)===null||he===void 0)?void 0:he.shixun_status)!==2?R.a.createElement(u.a,{danger:!0,onClick:Ht},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):R.a.createElement(u.a,{danger:!0,onClick:rn},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),R.a.createElement("div",{className:V.a.labelWrap},R.a.createElement("label",{className:V.a.label},"\u590D\u5236:"),R.a.createElement("div",{className:V.a.labelContent},R.a.createElement("div",null,R.a.createElement(f.a,{checked:te,onChange:function(et){return Q(et.target.checked)},disabled:!st}),R.a.createElement("span",{className:"".concat(V.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((de=Ee.detail)===null||de===void 0?void 0:de.shixun_status)>1||((Se=Ee.detail)===null||Se===void 0?void 0:Se.public)===2)&&((Te=Ee.setting)===null||Te===void 0||((ce=Te.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((be=Ee.detail)===null||be===void 0?void 0:be.identity)>2)&&R.a.createElement("div",{className:V.a.labelWrap},R.a.createElement("label",{className:V.a.label},"\u516C\u5F00\u7A0B\u5EA6:"),R.a.createElement("div",{className:V.a.labelContent},R.a.createElement(m.a.Group,{value:_e,onChange:function(et){return Ae(et.target.value)},disabled:!st},R.a.createElement(m.a,{className:V.a.radio,value:0},R.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),R.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),R.a.createElement(m.a,{className:V.a.radio,value:1},R.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),R.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),_e===1&&R.a.createElement(R.a.Fragment,null,R.a.createElement("div",{className:"mt10"},R.a.createElement(x.a,{showSearch:!0,className:V.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:yt,onChange:function(et){Pt(et),Dt(et)},disabled:!st,onSelect:Bt,options:Ye==null?void 0:Ye.map(function(Ke){return{value:Ke}})}),R.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09")),R.a.createElement("div",{className:"mt10"},dt==null?void 0:dt.map(function(Ke){return st?R.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return mt(dt.filter(function(at){return at!==Ke}))}},R.a.createElement(u.a,{type:"primary",ghost:!0},Ke)):R.a.createElement(u.a,{type:"primary",ghost:!0,className:"mr20"},Ke)}))))),R.a.createElement("div",{className:V.a.labelWrap},R.a.createElement("label",{className:V.a.label},"\u5F00\u542F\u65F6\u95F4:"),R.a.createElement("div",{className:V.a.labelContent},R.a.createElement("div",null,R.a.createElement(f.a,{checked:Ge,onChange:function(et){return Ce(et.target.checked)},disabled:!st}),R.a.createElement("span",{className:"".concat(V.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\uFF0C\u624D\u80FD\u5F00\u542F\u5B66\u4E60\uFF1B\u4E0D\u9009\u4E2D\u5219\u5B66\u5458\u5728\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u80FD\u7ACB\u5373\u5F00\u542F\u5B66\u4E60\uFF09")),Ge&&R.a.createElement(g.a,{className:"".concat(V.a.dataPicker," mt10"),format:D,locale:S.a,disabled:!st,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(et){return et&&et1)Object(f.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return Object(f.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=c[0];if(x.isValidElement(w)&&Object(a.c)(w)){var E=w.ref;c[0]=x.cloneElement(w,{ref:Object(a.a)(E,this.setChildNode)})}return c.length===1?c[0]:c.map(function(v,R){return!x.isValidElement(v)||"key"in v&&v.key!==null?v:x.cloneElement(v,{key:"".concat(r,"-").concat(R)})})}}]),h}(x.Component);i.displayName="ResizeObserver",z.a=i},t9D7:function(k,z,o){"use strict";o.d(z,"b",function(){return O}),o.d(z,"g",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"e",function(){return a}),o.d(z,"a",function(){return u}),o.d(z,"f",function(){return n}),o.d(z,"c",function(){return l});var P=o("Vhoy"),g=o("MI8n"),T=o("pmY6"),b=o("Cg/j"),y=o("ic2d"),x=o("nEHx");const O=Object(b.c)("themeService");var m;(function(h){function d(s){return s&&typeof s=="object"&&typeof s.id=="string"}h.isThemeColor=d})(m||(m={}));function e(h){return{id:h}}var f;(function(h){function d(R){return R&&typeof R=="object"&&typeof R.id=="string"&&(typeof R.color=="undefined"||m.isThemeColor(R.color))}h.isThemeIcon=d;const s=new RegExp(`^\\$\\((${P.a.iconNameExpression}(?:${P.a.iconModifierExpression})?)\\)$`);function c(R){const M=s.exec(R);if(!M)return;let[,C]=M;return{id:C}}h.fromString=c;function w(R,M){let C=R.id;const S=C.lastIndexOf("~");return S!==-1&&(C=C.substring(0,S)),M&&(C=`${C}~${M}`),{id:C}}h.modify=w;function E(R,M){var C,S;return R.id===M.id&&((C=R.color)===null||C===void 0?void 0:C.id)===((S=M.color)===null||S===void 0?void 0:S.id)}h.isEqual=E;function v(R,M){return{id:R.id,color:M?e(M):void 0}}h.asThemeIcon=v,h.asClassNameArray=P.a.asClassNameArray,h.asClassName=P.a.asClassName,h.asCSSSelector=P.a.asCSSSelector})(f||(f={}));function a(h){switch(h){case x.a.DARK:return"vs-dark";case x.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const u={ThemingContribution:"base.contributions.theming"};class r{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new g.b}onColorThemeChange(h){return this.themingParticipants.push(h),this.onThemingParticipantAddedEmitter.fire(h),Object(T.i)(()=>{const d=this.themingParticipants.indexOf(h);this.themingParticipants.splice(d,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new r;y.a.add(u.ThemingContribution,i);function n(h){return i.onColorThemeChange(h)}class l extends T.a{constructor(h){super();this.themeService=h,this.theme=h.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(d=>this.onThemeChange(d)))}onThemeChange(h){this.theme=h,this.updateStyles()}updateStyles(){}}},tWlo:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},uGsb:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(P){return function(){var g=P,T=g.x64,b=T.Word,y=T.WordArray,x=g.algo,O=x.SHA512,m=x.SHA384=O.extend({_doReset:function(){this._hash=new y.init([new b.init(3418070365,3238371032),new b.init(1654270250,914150663),new b.init(2438529370,812702999),new b.init(355462360,4144912697),new b.init(1731405415,4290775857),new b.init(2394180231,1750603025),new b.init(3675008525,1694076839),new b.init(1203062813,3204075428)])},_doFinalize:function(){var e=O._doFinalize.call(this);return e.sigBytes-=16,e}});g.SHA384=O._createHelper(m),g.HmacSHA384=O._createHmacHelper(m)}(),P.SHA384})},uGxW:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.NoPadding={pad:function(){},unpad:function(){}},P.pad.NoPadding})},uK0f:function(k,z,o){(function(P,g){k.exports=g()})(this,function(){"use strict";function P(g,T,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=g||[],x=[],O=0;do{var m=y.filter(function(e){return T(e,O)})[0];if(!m)break;x.push(m),y=m[b.childrenKeyName]||[],O+=1}while(y.length>0);return x}return P})},ulZh:function(k,z,o){typeof window!="undefined"&&function(g,T){k.exports=T()}(this,function(){return function(P){var g={};function T(b){if(g[b])return g[b].exports;var y=g[b]={i:b,l:!1,exports:{}};return P[b].call(y.exports,y,y.exports,T),y.l=!0,y.exports}return T.m=P,T.c=g,T.d=function(b,y,x){T.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:x})},T.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},T.t=function(b,y){if(y&1&&(b=T(b)),y&8)return b;if(y&4&&typeof b=="object"&&b&&b.__esModule)return b;var x=Object.create(null);if(T.r(x),Object.defineProperty(x,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var O in b)T.d(x,O,function(m){return b[m]}.bind(null,O));return x},T.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return T.d(y,"a",y),y},T.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(P,g,T){"use strict";var b=Object.prototype.hasOwnProperty,y="~";function x(){}Object.create&&(x.prototype=Object.create(null),new x().__proto__||(y=!1));function O(a,u,r){this.fn=a,this.context=u,this.once=r||!1}function m(a,u,r,i,n){if(typeof r!="function")throw new TypeError("The listener must be a function");var l=new O(r,i||a,n),h=y?y+u:u;return a._events[h]?a._events[h].fn?a._events[h]=[a._events[h],l]:a._events[h].push(l):(a._events[h]=l,a._eventsCount++),a}function e(a,u){--a._eventsCount===0?a._events=new x:delete a._events[u]}function f(){this._events=new x,this._eventsCount=0}f.prototype.eventNames=function(){var u=[],r,i;if(this._eventsCount===0)return u;for(i in r=this._events)b.call(r,i)&&u.push(y?i.slice(1):i);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(r)):u},f.prototype.listeners=function(u){var r=y?y+u:u,i=this._events[r];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,l=i.length,h=new Array(l);n0},!1)}function a(u,r){for(var i={main:[r]},n={main:[]},l={main:{}};f(i);)for(var h=Object.keys(i),d=0;d=0)continue;if(!Object.prototype.propertyIsEnumerable.call(s,E))continue;w[E]=s[E]}}return w}function m(s,c){if(s==null)return{};var w={},E=Object.keys(s),v,R;for(R=0;R=0)continue;w[v]=s[v]}return w}function e(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}function f(s,c){for(var w=0;w"']/,P=/[&<>"']/g,g=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,b={"&":"&","<":"<",">":">",'"':""","'":"'"},y=M=>b[M];function x(M,C){if(C){if(o.test(M))return M.replace(P,y)}else if(g.test(M))return M.replace(T,y);return M}const O=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(M){return M.replace(O,(C,S)=>(S=S.toLowerCase(),S==="colon"?":":S.charAt(0)==="#"?S.charAt(1)==="x"?String.fromCharCode(parseInt(S.substring(2),16)):String.fromCharCode(+S.substring(1)):""))}const e=/(^|[^\[])\^/g;function f(M,C){M=M.source||M,C=C||"";const S={replace:(_,A)=>(A=A.source||A,A=A.replace(e,"$1"),M=M.replace(_,A),S),getRegex:()=>new RegExp(M,C)};return S}const a=/[^\w:]/g,u=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function r(M,C,S){if(M){let _;try{_=decodeURIComponent(m(S)).replace(a,"").toLowerCase()}catch(A){return null}if(_.indexOf("javascript:")===0||_.indexOf("vbscript:")===0||_.indexOf("data:")===0)return null}C&&!u.test(S)&&(S=d(C,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(_){return null}return S}const i={},n=/^[^:]+:\/*[^/]*$/,l=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function d(M,C){i[" "+M]||(n.test(M)?i[" "+M]=M+"/":i[" "+M]=E(M,"/",!0)),M=i[" "+M];const S=M.indexOf(":")===-1;return C.substring(0,2)==="//"?S?C:M.replace(l,"$1")+C:C.charAt(0)==="/"?S?C:M.replace(h,"$1")+C:M+C}const s={exec:function(){}};function c(M){let C=1,S,_;for(;C{let V=!1,H=L;for(;--H>=0&&N[H]==="\\";)V=!V;return V?"|":" |"}),_=S.split(/ \|/);let A=0;if(_.length>C)_.splice(C);else for(;_.length=7){N.b.info("\u8BF7\u8F93\u51656\u4F4D\u5F00\u53D1\u9879\u76EE\u9080\u8BF7\u7801\uFF01");return}Dt(Ot.target.value)}})),n.a.createElement("div",{className:"mt10 font14"},n.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),n.a.createElement(H.a.Group,{value:Bt,onChange:function(Ot){return Ct(Ot.target.value)}},n.a.createElement(H.a,{value:F.Manager},"\u7BA1\u7406\u4EBA\u5458"),n.a.createElement(H.a,{value:F.Developer},"\u5F00\u53D1\u4EBA\u5458"),n.a.createElement(H.a,{value:F.Reporter},"\u62A5\u544A\u4EBA\u5458"))))))},K=I,ee=o("Jky8"),he=o("6Fuo"),de=o.n(he),Se=o("NLgs"),Te=o("xKgJ"),ce;(function(He){He.Projects="projects",He.Shixuns="shixuns",He.Classrooms="classrooms"})(ce||(ce={}));var be;(function(He){He.Classrooms="classrooms",He.Shixuns="shixuns",He.Paths="paths",He.Projects="projects",He.Videos="videos",He.Topics="topics"})(be||(be={}));var Ee=function(Ge){var Ce,Ie,Fe,Be,We,st,Dt,Ht=Ge.homePage,rn=Ge.user,Bt=Ge.globalSetting,Ct=Ge.loading,Ke=Ge.dispatch,et=Ge.location,at=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","location"]),Pe=Object(i.useState)(),Xe=Object(y.a)(Pe,2),ht=Xe[0],Et=Xe[1],Ot=Object(i.useState)(),Mt=Object(y.a)(Ot,2),lt=Mt[0],Ft=Mt[1],Lt=function(Yn){var ar;if(!Object(Se.e)(Ke))return;if(Yn===ce.Projects&&!((ar=rn.userInfo)!==null&&ar!==void 0&&ar.email)){N.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}Yn===ce.Classrooms?Et(!0):Yn===ce.Projects&&Ft(!0)},on=function(Yn,ar){var nr;if(!Object(Se.e)(Ke))return;if(ar===ce.Projects&&!((nr=rn.userInfo)!==null&&nr!==void 0&&nr.email)){N.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(ar===ce.Shixuns&&!Object(Se.c)())return;Yn&&(window.location.href=Yn)},mn=(Ce=(((Ie=Bt.setting)===null||Ie===void 0?void 0:Ie.navbar)||[]).find(function(fr){return fr.link==="/".concat(be.Classrooms)}))===null||Ce===void 0?void 0:Ce.hidden,Hn=(Fe=(((Be=Bt.setting)===null||Be===void 0?void 0:Be.navbar)||[]).find(function(fr){return fr.link==="/".concat(be.Shixuns)}))===null||Fe===void 0?void 0:Fe.hidden,Xn=(We=(((st=Bt.setting)===null||st===void 0?void 0:st.navbar)||[]).find(function(fr){return fr.link==="/".concat(be.Paths)}))===null||We===void 0?void 0:We.hidden;if(Bt!=null&&(Dt=Bt.setting)!==null&&Dt!==void 0&&Dt.is_local){var Fn;rn!=null&&(Fn=rn.userInfo)!==null&&Fn!==void 0&&Fn.is_shixun_marker||(Hn=!0)}var xn=function(Yn){var ar,nr,Rr,pr,sn,qt,On,Fr;return n.a.createElement(n.a.Fragment,null,n.a.createElement(C.a,{justify:"space-around",className:"pt5 pb5"},n.a.createElement(_.a,{className:de.a.joinCol},((ar=rn.userInfo)===null||ar===void 0?void 0:ar.user_identity)!=="\u5B66\u751F"&&!mn&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return on("/classrooms/new")}},(nr=rn.userInfo)!==null&&nr!==void 0&&nr.main_site?"\u65B0\u5EFA\u6559\u5B66\u8BFE\u5802":"\u65B0\u5EFA\u8BFE\u5802")),!(Bt!=null&&Bt.setting.hide_shixun&&Object(Te.m)())&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return on("/shixuns/new",ce.Shixuns)}},"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE")),!(Bt!=null&&(Rr=Bt.setting)!==null&&Rr!==void 0&&Rr.hide_subject&&Object(Te.m)())&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return on("/paths/new")}},"\u65B0\u5EFA\u5B9E\u8DF5\u8BFE\u7A0B")),!(Bt!=null&&(pr=Bt.setting)!==null&&pr!==void 0&&pr.is_local)&&((sn=rn.userInfo)===null||sn===void 0?void 0:sn.main_site)&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){var xr,dr;return on("".concat((xr=rn.navigationInfo)===null||xr===void 0||((dr=xr.top)===null||dr===void 0)?void 0:dr.old_url,"/projects/deposit/new"),ce.Projects)}},"\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE"))),n.a.createElement(_.a,null,n.a.createElement("div",{className:de.a.joinBoard})),n.a.createElement(_.a,{className:de.a.joinCol},!mn&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return Lt(ce.Classrooms)}},(qt=rn.userInfo)!==null&&qt!==void 0&&qt.main_site?"\u52A0\u5165\u6559\u5B66\u8BFE\u5802":"\u52A0\u5165\u8BFE\u5802")),((On=rn.userInfo)===null||On===void 0?void 0:On.main_site)&&!(Bt!=null&&(Fr=Bt.setting)!==null&&Fr!==void 0&&Fr.is_local)&&n.a.createElement(U.a.Item,Yn,n.a.createElement("a",{onClick:function(){return Lt(ce.Projects)}},"\u52A0\u5165\u5F00\u53D1\u9879\u76EE")))))};return n.a.createElement("section",null,n.a.createElement(R.a,{overlay:n.a.createElement(U.a,{className:"".concat(de.a.rightMenu," ").concat(de.a.joinMenu," mt10")},n.a.createElement(xn,null)),placement:"bottomRight"},n.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),n.a.createElement(ee.a,{visible:ht,onCancel:function(){return Et(!1)}}),n.a.createElement(K,{visible:lt,onCancel:function(){return Ft(!1)}}))},ue=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting;return{homePage:Ge,user:Ie,globalSetting:Fe,loading:Ce.models.index}})(Ee),le=o("vToQ"),$=o.n(le),me=o("jb+D"),re=o("m3rI"),ae=function(Ge){var Ce,Ie=RegExp("(^| )"+Ge+"=([^;]+)(;|$)");return(Ce=document.cookie.match(Ie))?decodeURIComponent(Ce[2]):null},Oe=function(Ge){var Ce=new Date;Ce.setTime(Ce.getTime()-1);var Ie=ae(Ge);Ie!=null&&(document.cookie=Ge+"="+Ie+";expires="+Ce.toGMTString())},se;(function(He){He.Classrooms="classrooms",He.Shixuns="shixuns",He.Paths="paths",He.Projects="projects",He.Videos="videos",He.Topics="topics"})(se||(se={}));var te=function(Ge){var Ce,Ie,Fe,Be,We,st,Dt,Ht,rn,Bt,Ct,Ke=Ge.homePage,et=Ge.user,at=Ge.globalSetting,Pe=Ge.loading,Xe=Ge.dispatch,ht=Ge.shixunHomeworks,Et=Ge.location,Ot=Ge.payload,Mt=Ot===void 0?{}:Ot,lt=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),Ft=(Ce=(((Ie=at.setting)===null||Ie===void 0?void 0:Ie.navbar)||[]).find(function(fr){return fr.link==="/".concat(se.Classrooms)}))===null||Ce===void 0?void 0:Ce.hidden,Lt=(Fe=(((Be=at.setting)===null||Be===void 0?void 0:Be.navbar)||[]).find(function(fr){return fr.link==="/".concat(se.Shixuns)}))===null||Fe===void 0?void 0:Fe.hidden,on=(We=(((st=at.setting)===null||st===void 0?void 0:st.navbar)||[]).find(function(fr){return fr.link==="/".concat(se.Paths)}))===null||We===void 0?void 0:We.hidden,mn=((Dt=et.userInfo)===null||Dt===void 0?void 0:Dt.admin)||((Ht=et.userInfo)===null||Ht===void 0?void 0:Ht.business)||((rn=et.userInfo)===null||rn===void 0?void 0:rn.is_shixun_marker)||((Bt=et.userInfo)===null||Bt===void 0?void 0:Bt.is_teacher)||((Ct=et.userInfo)===null||Ct===void 0?void 0:Ct.user_identity)!=="\u5B66\u751F",Hn=function(){if(Object(W.r)())return n.a.createElement(U.a,{className:"".concat($.a.rightMenu," ").concat($.a.menuWrap)},n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")));var Yn,ar,nr,Rr,pr,sn,qt,On,Fr,Or,xr,dr,pe,X,q,oe,De,fe,ot,Qt,Mn,Vn;return n.a.createElement(U.a,{className:"".concat($.a.rightMenu," ").concat($.a.menuWrap)},n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Yn=et.userInfo)===null||Yn===void 0?void 0:Yn.login,"/classrooms")},"\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875")),!Ft&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((ar=et.userInfo)===null||ar===void 0?void 0:ar.login,"/classrooms")},(nr=et.userInfo)!==null&&nr!==void 0&&nr.main_site?"\u6211\u7684\u6559\u5B66\u8BFE\u5802":"\u6211\u7684\u8BFE\u5802")),!Lt&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Rr=et.userInfo)===null||Rr===void 0?void 0:Rr.login,"/shixuns")},"\u6211\u7684\u5B9E\u8DF5\u9879\u76EE")),!on&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((pr=et.userInfo)===null||pr===void 0?void 0:pr.login,"/paths")},(sn=et.userInfo)!==null&&sn!==void 0&&sn.main_site?"\u6211\u7684\u5B9E\u8DF5\u8BFE\u7A0B":"\u6211\u7684\u8BFE\u7A0B")),((qt=et.userInfo)===null||qt===void 0?void 0:qt.main_site)&&!((On=at.setting)!==null&&On!==void 0&&On.is_local)&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Fr=et.userInfo)===null||Fr===void 0?void 0:Fr.login,"/projects")},"\u6211\u7684\u5F00\u53D1\u9879\u76EE")),mn&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/users/".concat((Or=et.userInfo)===null||Or===void 0?void 0:Or.login,"/teach-group")},"\u6211\u7684\u6559\u7814\u56E2\u961F")),mn&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(Se.e)(Xe))return;d.d.push("/problemset")}},"\u8BD5\u9898\u5E93")),mn&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{onClick:function(){if(!Object(Se.e)(Xe))return;d.d.push("/paperlibrary")}},"\u8BD5\u5377\u5E93")),((xr=et.navigationInfo)===null||xr===void 0||((dr=xr.top)===null||dr===void 0)?void 0:dr.customer_management_url)&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{href:(pe=et.navigationInfo)===null||pe===void 0||((X=pe.top)===null||X===void 0)?void 0:X.customer_management_url},"\u5BA2\u6237\u7BA1\u7406")),((q=et.navigationInfo)===null||q===void 0||((oe=q.top)===null||oe===void 0)?void 0:oe.college_identifier)&&n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{to:"/colleges/".concat((De=et.navigationInfo)===null||De===void 0||((fe=De.top)===null||fe===void 0)?void 0:fe.college_identifier,"/statistics")},"\u5B66\u9662\u7EDF\u8BA1")),((ot=et.navigationInfo)===null||ot===void 0||((Qt=ot.top)===null||Qt===void 0)?void 0:Qt.laboratory_admin_url)&&n.a.createElement(U.a.Item,null,n.a.createElement("a",{href:(Mn=et.navigationInfo)===null||Mn===void 0||((Vn=Mn.top)===null||Vn===void 0)?void 0:Vn.laboratory_admin_url},"\u540E\u53F0\u7BA1\u7406")),n.a.createElement(U.a.Item,null,n.a.createElement(h.a,{onClick:function(){localStorage.getItem("Noviceguide")==="0"||Xe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/classrooms",text:n.a.createElement("div",null,"OK\uFF0C\u63A5\u4E0B\u6765\uFF0C\u8BA9\u6211\u4EEC\u5F00\u59CB\u65B0\u5EFA\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u8BF7\u60A8\u627E\u5230\u95EA\u5149\u6846\u5E76\u70B9\u51FB \u201C\u6559\u5B66\u8BFE\u5802\u201D\u3002")}})},to:"/account/profile"},"\u8D26\u53F7\u7BA1\u7406")),n.a.createElement(U.a.Item,{className:$.a.exit},n.a.createElement("a",{onClick:Object(T.a)(r.a.mark(function $t(){var gn;return r.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:return Ar.next=2,Object(me.c)({});case 2:gn=Ar.sent,(gn==null?void 0:gn.status)===1&&(Xe({type:"user/getUserInfo",payload:Object(O.a)({},Mt)}),Xe({type:"user/getNavigationInfo",payload:Object(O.a)({},Mt)}),Oe("autologin_trustie"),Oe("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),N.b.success(gn==null?void 0:gn.message),d.d.replace("/"));case 4:case"end":return Ar.stop()}},$t)}))},"\u9000\u51FA")))};if(Object(Te.p)()){var Xn,Fn;return n.a.createElement(R.a,{className:"".concat($.a.height67),overlay:Hn,placement:"bottomRight"},n.a.createElement("section",null,n.a.createElement("aside",null,n.a.createElement("div",{className:ht.actionTabs.type===1?$.a.classromediv:""},n.a.createElement("img",{className:"".concat($.a.userPic," current ml15"),src:"".concat(re.a===null||re.a===void 0?void 0:re.a.IMG_SERVER,"/images/").concat((Xn=et.userInfo)===null||Xn===void 0?void 0:Xn.image_url),alt:"",onClick:function(){var Yn;return d.d.push(Object(W.r)()?"/account/profile":"/users/".concat((Yn=et.userInfo)===null||Yn===void 0?void 0:Yn.login,"/classrooms"))}}),Object(W.r)()&&n.a.createElement("span",{className:"ml10 font16"},(Fn=et.userInfo)===null||Fn===void 0?void 0:Fn.username)))))}else{var xn;return n.a.createElement("div",{className:"font15 ".concat(at.isIlearning?$.a.login:"")},n.a.createElement("span",{className:"ml10 mr5 current",onClick:function(){Xe({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"\u767B\u5F55"),!((xn=at.setting)!==null&&xn!==void 0&&xn.close_register)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("span",{className:"ml5 mr5"},"|"),n.a.createElement(h.a,{to:"/user/register",className:"ml5 current c-white pr25"},"\u6CE8\u518C")))}},Q=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting,Be=He.shixunHomeworks;return{homePage:Ge,user:Ie,globalSetting:Fe,shixunHomeworks:Be,loading:Ce.models.index}})(te),J=o("+L6B"),ve=o("2/Rp"),_e=o("Cs+z"),Ae=o.n(_e),Qe=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],tt=function(Ge){var Ce=Ge.homePage,Ie=Ge.user,Fe=Ge.globalSetting,Be=Ge.loading,We=Ge.dispatch,st=Ge.location,Dt=Ge.text,Ht=Ge.shixunHomeworks,rn=Ge.payload,Bt=rn===void 0?{}:rn,Ct=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Ke=Object(i.useState)("none"),et=Object(y.a)(Ke,2),at=et[0],Pe=et[1];return Object(i.useEffect)(function(){Ht.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&Pe("flex")},[Ht.actionTabs.key]),Object(i.useEffect)(function(){Ht.actionTabs.key==="\u9690\u85CF"&&(Pe("none"),localStorage.setItem("Noviceguide","0"))},[Ht.actionTabs.key]),n.a.createElement("div",{style:{display:at,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},n.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},n.a.createElement("img",{src:Ae.a,style:{position:"absolute",top:"-32px"}}),n.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},Ht.actionTabs.text),Ht.actionTabs.type===9?n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(ve.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),Pe("none"),We({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u5446\u4F1A\u89C1\uFF0C\u6709\u4E8B\u547C\u6211")):n.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},n.a.createElement(ve.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),We({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),Pe("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"\u8DF3\u8FC7\uFF0C\u6211\u81EA\u5DF1\u6765"))))},dt=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting,Be=He.shixunHomeworks;return{homePage:Ge,user:Ie,globalSetting:Fe,loading:Ce.models.index,shixunHomeworks:Be}})(tt),mt=o("498V"),vt=o.n(mt),yt=o("wd/R"),Ye=o.n(yt),Ue=a.a.Header,ft=e.a.Search;function jt(){var He,Ge,Ce=window.location.pathname,Ie=Ce.split("/"),Fe={};return Ie[1]=="classrooms"&&Ie.length>3&&!((He=Ie[4])!==null&&He!==void 0&&He.includes("newgold"))&&!((Ge=Ie[5])!==null&&Ge!==void 0&&Ge.includes("newgold"))&&Ie[2]!=="coursesId"&&(Fe.course_id=Ie[2]),Ie[1]==="shixuns"&&Ie.length>3&&(Fe.objective_type="shixun",Fe.objective_id=Ie[2]),Ie[1]==="paths"&&Ie.length>3&&(Fe.objective_type="path",Fe.objective_id=Ie[2]),Object(O.a)(Object(O.a)({},Fe),{school:1})}var bt=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"],Pt=function(Ge){var Ce,Ie,Fe=Ge.homePage,Be=Ge.user,We=Ge.globalSetting,st=Ge.loading,Dt=Ge.dispatch,Ht=Ge.location,rn=Ge.isLogin,Bt=rn===void 0?!1:rn,Ct=Ge.shixunHomeworks,Ke=Object(x.a)(Ge,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),et=Object(l.g)(),at=Object(i.useState)(!1),Pe=Object(y.a)(at,2),Xe=Pe[0],ht=Pe[1],Et=Object(i.useState)(""),Ot=Object(y.a)(Et,2),Mt=Ot[0],lt=Ot[1],Ft=Object(i.useState)(!1),Lt=Object(y.a)(Ft,2),on=Lt[0],mn=Lt[1],Hn=jt(),Xn=Object(i.useState)("0"),Fn=Object(y.a)(Xn,2),xn=Fn[0],fr=Fn[1],Yn=Object(i.useRef)({id:0});Object(i.useEffect)(function(){var fe;return Be!=null&&(fe=Be.userInfo)!==null&&fe!==void 0&&fe.now_time&&(Yn.current.id=setInterval(function(){fr(function(ot){if(ot==="0"){var Qt;return Ye()(Be==null||((Qt=Be.userInfo)===null||Qt===void 0)?void 0:Qt.now_time,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")}else return Ye()(ot,"YYYY-MM-DD HH:mm:ss").add(1,"s").format("YYYY-MM-DD HH:mm:ss")})},1e3)),function(){clearInterval(Yn.current.id)}},[Be==null||((Ce=Be.userInfo)===null||Ce===void 0)?void 0:Ce.now_time]),Object(i.useEffect)(function(){Dt({type:"user/getNavigationInfo",payload:Object(O.a)({},Hn)})},[We.name]),Object(i.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"&&(bt!=null&&bt.includes(Ht==null?void 0:Ht.pathname)||(Ht==null?void 0:Ht.pathname.indexOf("/classrooms"))===0||Dt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u9690\u85CF"}}))},[Ht.pathname]),Object(i.useEffect)(function(){Ct.actionTabs.key==="\u5E95\u90E8\u5F39\u7A97"||(Ct.actionTabs.key||localStorage.setItem("Noviceguide","0"))},[Ct.actionTabs.key]),Object(i.useEffect)(function(){if(We!=null&&We.setting){var fe,ot,Qt=We==null||((fe=We.setting)===null||fe===void 0||((ot=fe.navbar)===null||ot===void 0))?void 0:ot.filter(function(pn){return!(pn!=null&&pn.hidden)&&!(Object(Te.m)()&&pn.link==="/paperlibrary")}),Mn=Object(b.a)(Qt),Vn;try{for(Mn.s();!(Vn=Mn.n()).done;){var $t=Vn.value;$t.subitem&&($t.subitem=$t.subitem.filter(function(pn){return!(pn!=null&&pn.hidden)&&!(Object(Te.m)()&&pn.link==="/paperlibrary")}))}}catch(pn){Mn.e(pn)}finally{Mn.f()}var gn=!1;Qt==null||Qt.map(function(pn,Ar){var ra,oa,ir,Ra="/"+((ra=Ht.pathname)===null||ra===void 0||((oa=ra.split("/"))===null||oa===void 0)?void 0:oa[1]);if(pn.link===Ra&&(lt(pn==null?void 0:pn.link),Object(W.X)(pn==null?void 0:pn.name),On(Or(Ar,{name:pn==null?void 0:pn.name,link:pn==null?void 0:pn.link},Qt)),gn=!0),pn!=null&&(ir=pn.subitem)!==null&&ir!==void 0&&ir.length){var La;pn==null||((La=pn.subitem)===null||La===void 0)||La.map(function(ca){ca.link===Ra&&(lt(ca==null?void 0:ca.link),Object(W.X)(ca==null?void 0:ca.name),On(Or(Ar,{name:ca==null?void 0:ca.name,link:ca==null?void 0:ca.link},Qt)),gn=!0)})}}),gn||On(Qt)}},[We==null?void 0:We.setting,Be]);var ar=Object(i.useMemo)(function(){var fe;if(We!=null&&(fe=We.setting)!==null&&fe!==void 0&&fe.nav_logo_url){var ot;return"".concat(re.a.IMG_SERVER,"/").concat(We==null||((ot=We.setting)===null||ot===void 0)?void 0:ot.nav_logo_url)}else return"".concat(re.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat(new Date().getTime())},[We==null||((Ie=We.setting)===null||Ie===void 0)?void 0:Ie.nav_logo_url]);function nr(fe){et.push("/search?value="+fe)}var Rr=function(){return Xe?n.a.createElement("div",{onBlur:function(){setTimeout(function(){ht(!1)},300)}},n.a.createElement(ft,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:nr,autoFocus:!0})):n.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){et.push("/search?value=")}})},pr=Object(i.useState)([]),sn=Object(y.a)(pr,2),qt=sn[0],On=sn[1],Fr=function(){var fe=Object(T.a)(r.a.mark(function ot(Qt,Mn){var Vn,$t,gn,pn,Ar,ra,oa;return r.a.wrap(function(Ra){for(;;)switch(Ra.prev=Ra.next){case 0:if(!((Qt==null?void 0:Qt.name)==="\u5DE5\u7A0B\u8BA4\u8BC1")){Ra.next=6;break}return Ra.next=3,Object(me.j)();case 3:return gn=Ra.sent,gn!=null&&($t=gn.data)!==null&&$t!==void 0&&$t.engineer_url?gn!=null&&(pn=gn.data)!==null&&pn!==void 0&&(Ar=pn.engineer_url)!==null&&Ar!==void 0&&Ar.includes("http")?Object(W.S)(gn==null||((ra=gn.data)===null||ra===void 0)?void 0:ra.engineer_url):et.push(gn==null||((oa=gn.data)===null||oa===void 0)?void 0:oa.engineer_url):(gn==null?void 0:gn.status)!=401&&mn(!0),Ra.abrupt("return");case 6:Qt!=null&&(Vn=Qt.link)!==null&&Vn!==void 0&&Vn.includes("http")?Object(W.S)(Qt==null?void 0:Qt.link):et.push(Qt==null?void 0:Qt.link),(Qt==null?void 0:Qt.name)==="\u6559\u5B66\u8BFE\u5802"&&localStorage.getItem("Noviceguide")!=="0"&&Dt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:5,text:n.a.createElement("div",null,"\u975E\u5E38\u68D2\uFF0C\u54B1\u4EEC\u5DF2\u7ECF\u5230\u8FBE\u3010\u6559\u5B66\u8BFE\u5802\u3011\uFF0C\u5E73\u53F0\u4E0A\u5DF2\u7ECF\u6709\u51E0\u5343\u4F4D\u8001\u5E08\u521B\u5EFA\u4E86\u81EA\u5DF1\u7684\u6559\u5B66\u8BFE\u5802\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u8F7B\u677E\u5B8C\u6210\u54DF\uFF01\u73B0\u5728\u8BF7\u60A8\u70B9\u51FB\u9875\u9762\u4E0A \u201C\u65B0\u5EFA\u8BFE\u5802\u201D\u6309\u94AE\u5F00\u59CB\u65B0\u5EFA\u81EA\u5DF1\u7684\u8BFE\u5802~")}});case 8:case"end":return Ra.stop()}},ot)}));return function(Qt,Mn){return fe.apply(this,arguments)}}(),Or=function(ot,Qt,Mn){var Vn=Mn.slice();return Vn[ot]&&(Vn[ot].name=Qt.name,Vn[ot].link=Qt.link),Vn||[]};if(We.showHeader&&We.showHeaderFooter){var xr,dr,pe,X,q,oe,De;return n.a.createElement(a.a,{className:"".concat(We.isIlearning?w.a["header-iearning"]:w.a.header," ").concat(We.showHeaderFixed?w.a.headerFixed:"")},n.a.createElement(Ue,{className:"header"},n.a.createElement("section",{className:w.a["edu-menu"]},(!!We.isIlearning||!(We!=null&&(xr=We.setting)!==null&&xr!==void 0&&xr.main_site)&&!!(We!=null&&(dr=We.setting)!==null&&dr!==void 0&&dr.navbar))&&n.a.createElement(h.a,{style:{display:"flex",alignItems:"center"},onClick:function(){Dt({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},n.a.createElement("img",{className:w.a.logo,title:(pe=We.setting)===null||pe===void 0?void 0:pe.name,src:ar||vt.a})),n.a.createElement("ul",{className:"".concat(w.a.menu," ").concat(Object(W.r)()&&"ml0")},Object(W.r)()&&n.a.createElement("li",null,n.a.createElement("a",{href:"/"},"\u8003\u8BD5\u7CFB\u7EDF")),!Object(W.r)()&&We.setting&&qt.map(function(fe,ot){var Qt,Mn,Vn,$t,gn;return n.a.createElement("li",{key:ot,className:!(fe!=null&&(Qt=fe.subitem)!==null&&Qt!==void 0&&Qt.length)&&Mt===(fe==null?void 0:fe.link)||fe!=null&&(Mn=fe.subitem)!==null&&Mn!==void 0&&Mn.some(function(pn){return Mt===(pn==null?void 0:pn.link)})?w.a.actived:""},n.a.createElement("div",{onClick:function(){return Fr(fe,ot)},className:Ct.actionTabs.type===4?"".concat(w.a.name," ").concat(w.a.classromediv):w.a.name},n.a.createElement("span",null,function(){var pn=fe==null?void 0:fe.name;{var Ar;fe==null||((Ar=fe.subitem)===null||Ar===void 0)||Ar.map(function(ra,oa){return ra.link===Ht.pathname&&(pn=ra.name),ra})}return pn}()),(fe==null||((Vn=fe.subitem)===null||Vn===void 0)?void 0:Vn.length)>0&&n.a.createElement("i",{className:"iconfont icon-zhankai4"})),(fe==null||(($t=fe.subitem)===null||$t===void 0)?void 0:$t.length)>0&&n.a.createElement("div",{className:w.a.dropDown},fe==null||((gn=fe.subitem)===null||gn===void 0)?void 0:gn.map(function(pn,Ar){return n.a.createElement("div",{className:w.a.subName,onClick:function(){return Fr(pn,ot)},key:ot+"-"+Ar},!!Ar&&n.a.createElement("div",{className:w.a.line}),n.a.createElement("aside",{className:"font16 c-black"},pn.name),n.a.createElement("div",{className:"font14",style:{color:"#9FA7B3",whiteSpace:"nowrap"}},pn.content))})))})),n.a.createElement("div",{className:"search-bar",style:{flex:We.isIlearning?"initial":"1 0 auto"}},n.a.createElement("div",{className:"timeShow"},xn),!Object(W.r)()&&!(We!=null&&We.isIlearning)&&n.a.createElement(n.a.Fragment,null,n.a.createElement(Rr,null),!Bt&&n.a.createElement(ue,null),!Bt&&!!(Be!=null&&(X=Be.userInfo)!==null&&X!==void 0&&X.login)&&n.a.createElement(h.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(Be==null||((q=Be.userInfo)===null||q===void 0)?void 0:q.login,"/user_tidings")},(Be==null||((oe=Be.navigationInfo)===null||oe===void 0||((De=oe.top)===null||De===void 0))?void 0:De.new_message)&&n.a.createElement("span",{className:w.a.newslight}))),!Bt&&n.a.createElement(Q,{payload:Hn}))),n.a.createElement(g.a,{centered:!0,destroyOnClose:!0,visible:on,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(W.S)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return mn(!1)}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},n.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),n.a.createElement("img",{src:s.y,width:200,height:200}),n.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))),n.a.createElement(dt,null))}else return n.a.createElement(n.a.Fragment,null)},it=z.a=Object(d.a)(function(He){var Ge=He.homePage,Ce=He.loading,Ie=He.user,Fe=He.globalSetting,Be=He.shixunHomeworks;return{homePage:Ge,user:Ie,globalSetting:Fe,loading:Ce.models.index,shixunHomeworks:Be}})(Pt)},sLOW:function(k,z,o){"use strict";var P=o("iQDF"),g=o("+eQT"),T=o("Awhp"),b=o("KrTs"),y=o("O3gP"),x=o("lrIw"),O=o("7Kak"),m=o("9yH6"),e=o("sRBo"),f=o("kaz8"),a=o("+L6B"),u=o("2/Rp"),r=o("oBTY"),i=o("miYZ"),n=o("tsqr"),l=o("2qtc"),h=o("kLXV"),d=o("9og8"),s=o("tJVT"),c=o("PpiC"),w=o("WmNS"),E=o.n(w),v=o("q1tI"),R=o.n(v),M=o("9kvl"),C=o("Z0Lh"),S=o.n(C),_=o("9ZNV"),A=o("NLgs"),U=o("wd/R"),L=o.n(U),N=o("L+Ii"),V=o.n(N),H=function(I){if(!I)return I;var K=I.split(":");if(K[1]=="00"||K[1]=="30")return I;var ee=parseInt(K[1]);if(ee<30||ee==60)return[K[0],"30"].join(":");if(ee<60){var he=[K[0],"00"].join(":"),de="YYYY-MM-DD HH:mm",Se=L()(he,de);return Se.add(1,"hours"),Se.format(de)}return I},D="YYYY-MM-DD HH:mm",W=function(I){var K,ee,he,de,Se,Te,ce,be,Ee=I.shixunsDetail,ue=I.globalSetting,le=I.loading,$=I.user,me=I.dispatch,re=Object(c.a)(I,["shixunsDetail","globalSetting","loading","user","dispatch"]),ae=Object(v.useRef)(),Oe=Object(v.useState)(),se=Object(s.a)(Oe,2),te=se[0],Q=se[1],J=Object(v.useState)(),ve=Object(s.a)(J,2),_e=ve[0],Ae=ve[1],Qe=Object(v.useState)([]),tt=Object(s.a)(Qe,2),dt=tt[0],mt=tt[1],vt=Object(v.useState)([]),yt=Object(s.a)(vt,2),Ye=yt[0],Ue=yt[1],ft=Object(v.useState)(""),jt=Object(s.a)(ft,2),bt=jt[0],Pt=jt[1],it=Object(v.useState)(),He=Object(s.a)(it,2),Ge=He[0],Ce=He[1],Ie=Object(v.useState)(),Fe=Object(s.a)(Ie,2),Be=Fe[0],We=Fe[1],st=(K=$.userInfo)===null||K===void 0||((ee=K.shixun)===null||ee===void 0)?void 0:ee.editable;Object(v.useEffect)(function(){var Ke,et;ae.current=(Ke=location.pathname)===null||Ke===void 0||((et=Ke.split("/"))===null||et===void 0)?void 0:et[2],Dt()},[]),Object(v.useEffect)(function(){var Ke,et,at,Pe,Xe,ht,Et,Ot,Mt,lt;if(!Ee.setting)return;Q((Ke=Ee.setting)===null||Ke===void 0||((et=Ke.shixun)===null||et===void 0)?void 0:et.can_copy),Ae((at=Ee.setting)===null||at===void 0||((Pe=at.shixun)===null||Pe===void 0)?void 0:Pe.use_scope),Ce(!!((Xe=Ee.setting)!==null&&Xe!==void 0&&(ht=Xe.shixun)!==null&&ht!==void 0&&ht.opening_time)),We((Et=Ee.setting)===null||Et===void 0||((Ot=Et.shixun)===null||Ot===void 0)?void 0:Ot.opening_time),mt((Mt=Ee.setting)===null||Mt===void 0||((lt=Mt.shixun)===null||lt===void 0)?void 0:lt.scope_partment)},[Ee.setting]);var Dt=function(){var Ke=Object(d.a)(E.a.mark(function et(at){var Pe;return E.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return ht.next=2,me({type:"shixunsDetail/getDepartments",payload:{q:at}});case 2:Pe=ht.sent,Pe&&Ue(Pe.shools_name||[]);case 4:case"end":return ht.stop()}},et)}));return function(at){return Ke.apply(this,arguments)}}(),Ht=function(){var Ke=Object(d.a)(E.a.mark(function et(){var at,Pe,Xe,ht,Et,Ot,Mt;return E.a.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ft.next=2,me({type:"shixunsDetail/getShixunQuote",payload:{id:ae.current}});case 2:if(Ft.t0=Ft.sent,Ft.t0){Ft.next=5;break}Ft.t0={};case 5:Mt=Ft.t0,h.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:520,content:R.a.createElement("div",{className:"tc font14 ".concat(V.a.modal)},!!((at=Mt.subjects)!==null&&at!==void 0&&at.length)&&R.a.createElement(R.a.Fragment,null,R.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230"," ",(Pe=Mt.subjects)===null||Pe===void 0||((Xe=Pe.splice(0,2))===null||Xe===void 0)?void 0:Xe.map(function(Lt){return"\u300A".concat(Lt,"\u300B")}),"\u7B49",R.a.createElement("span",{className:V.a.colorOrange},Mt==null?void 0:Mt.subjects_count),"\u4E2A\u5B9E\u8BAD\u8BFE\u7A0B"),R.a.createElement("br",null)),!!((ht=Mt.courses)!==null&&ht!==void 0&&ht.length)&&R.a.createElement(R.a.Fragment,null,R.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u88AB\u5E94\u7528\u5230",(Et=Mt.courses)===null||Et===void 0||((Ot=Et.splice(0,2))===null||Ot===void 0)?void 0:Ot.map(function(Lt){return"\u300A".concat(Lt,"\u300B")}),"\u7B49",R.a.createElement("span",{className:V.a.colorOrange},Mt==null?void 0:Mt.courses_count),"\u4E2A\u6559\u5B66\u8BFE\u5802"),R.a.createElement("br",null)),R.a.createElement("span",{className:"".concat(V.a.colorYellow," mt30")},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE\u5C06\u5F71\u54CD\u8BFE\u7A0B\u53CA\u8BFE\u5802\u5BF9\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u4F7F\u7528\uFF01\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01")),onOk:function(){var Lt=Object(d.a)(E.a.mark(function mn(){var Hn;return E.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return Fn.next=2,me({type:"shixunsDetail/deleteShixun",payload:{id:ae.current}});case 2:Hn=Fn.sent,Hn.status===1&&(n.b.success("\u64CD\u4F5C\u6210\u529F"),M.d.push("/shixuns"));case 4:case"end":return Fn.stop()}},mn)}));function on(){return Lt.apply(this,arguments)}return on}()});case 7:case"end":return Ft.stop()}},et)}));return function(){return Ke.apply(this,arguments)}}(),rn=function(){if(Object(A.b)(me,"\u4E0D\u80FD\u8FDB\u884C\u5220\u9664"))return},Bt=function(et){if(dt.includes(et)){n.b.info("\u8BF7\u52FF\u6307\u5B9A\u76F8\u540C\u7684\u5355\u4F4D");return}Pt(null),mt([].concat(Object(r.a)(dt),[et]))},Ct=function(){var Ke=Object(d.a)(E.a.mark(function et(){var at;return E.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(!(Ge&&!Be)){Xe.next=3;break}return n.b.info("\u8BF7\u9009\u62E9\u5F00\u542F\u65F6\u95F4"),Xe.abrupt("return");case 3:if(!(_e===1&&!dt.length)){Xe.next=6;break}return n.b.info("\u8BF7\u9009\u62E9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),Xe.abrupt("return");case 6:return Xe.next=8,me({type:"shixunsDetail/updatePermissionSetting",payload:{id:ae.current,scope_partment:_e===0?null:dt,shixun:{can_copy:te,use_scope:_e,opening_time:Be}}});case 8:at=Xe.sent,at.status!==-1&&(n.b.info("\u6743\u9650\u914D\u7F6E\u4FDD\u5B58\u6210\u529F\uFF01"),me({type:"shixunsDetail/getSettingsData",payload:{id:ae.current}}),me({type:"shixunsDetail/getShixunsDetail",payload:{id:ae.current}}));case 10:case"end":return Xe.stop()}},et)}));return function(){return Ke.apply(this,arguments)}}();return R.a.createElement("section",{className:V.a.wrap},R.a.createElement("div",{style:{position:"absolute",top:"80px",right:"40px"}},(Ee==null||((he=Ee.detail)===null||he===void 0)?void 0:he.shixun_status)!==2?R.a.createElement(u.a,{danger:!0,onClick:Ht},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE"):R.a.createElement(u.a,{danger:!0,onClick:rn},"\u5220\u9664\u5B9E\u8DF5\u9879\u76EE")),R.a.createElement("div",{className:V.a.labelWrap},R.a.createElement("label",{className:V.a.label},"\u590D\u5236:"),R.a.createElement("div",{className:V.a.labelContent},R.a.createElement("div",null,R.a.createElement(f.a,{checked:te,onChange:function(et){return Q(et.target.checked)},disabled:!st}),R.a.createElement("span",{className:"".concat(V.a.color999)},"\uFF08\u9009\u4E2D\u5219\u5141\u8BB8\u5DF2\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u590D\u5236\u8BE5\u5B9E\u8BAD\uFF09")))),!((((de=Ee.detail)===null||de===void 0?void 0:de.shixun_status)>1||((Se=Ee.detail)===null||Se===void 0?void 0:Se.public)===2)&&((Te=Ee.setting)===null||Te===void 0||((ce=Te.shixun)===null||ce===void 0)?void 0:ce.use_scope)===0&&((be=Ee.detail)===null||be===void 0?void 0:be.identity)>2)&&R.a.createElement("div",{className:V.a.labelWrap},R.a.createElement("label",{className:V.a.label},"\u516C\u5F00\u7A0B\u5EA6:"),R.a.createElement("div",{className:V.a.labelContent},R.a.createElement(m.a.Group,{value:_e,onChange:function(et){return Ae(et.target.value)},disabled:!st},R.a.createElement(m.a,{className:V.a.radio,value:0},R.a.createElement("span",null,"\u5BF9\u6240\u6709\u5355\u4F4D\u516C\u5F00"),R.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),R.a.createElement(m.a,{className:V.a.radio,value:1},R.a.createElement("span",null,"\u5BF9\u6307\u5B9A\u5355\u4F4D\u516C\u5F00"),R.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09"))),_e===1&&R.a.createElement(R.a.Fragment,null,R.a.createElement("div",{className:"mt10"},R.a.createElement(x.a,{showSearch:!0,className:V.a.selectSchool,placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u5355\u4F4D\u540D\u79F0",value:bt,onChange:function(et){Pt(et),Dt(et)},disabled:!st,onSelect:Bt,options:Ye==null?void 0:Ye.map(function(Ke){return{value:Ke}})}),R.a.createElement("span",{className:V.a.color999},"\uFF08\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u4EC5\u5BF9\u4E0B\u65B9\u6307\u5B9A\u5355\u4F4D\u7684\u7528\u6237\u53EF\u89C1\uFF09")),R.a.createElement("div",{className:"mt10"},dt==null?void 0:dt.map(function(Ke){return st?R.a.createElement(b.a,{count:"x",className:"mr20 current",onClick:function(){return mt(dt.filter(function(at){return at!==Ke}))}},R.a.createElement(u.a,{type:"primary",ghost:!0},Ke)):R.a.createElement(u.a,{type:"primary",ghost:!0,className:"mr20"},Ke)}))))),R.a.createElement("div",{className:V.a.labelWrap},R.a.createElement("label",{className:V.a.label},"\u5F00\u542F\u65F6\u95F4:"),R.a.createElement("div",{className:V.a.labelContent},R.a.createElement("div",null,R.a.createElement(f.a,{checked:Ge,onChange:function(et){return Ce(et.target.checked)},disabled:!st}),R.a.createElement("span",{className:"".concat(V.a.color999," ml10")},"\uFF08\u9009\u4E2D\u5219\u5B66\u5458\u5728\u6307\u5B9A\u7684\u5F00\u542F\u65F6\u95F4\u540E\uFF0C\u624D\u80FD\u5F00\u542F\u5B66\u4E60\uFF1B\u4E0D\u9009\u4E2D\u5219\u5B66\u5458\u5728\u5B9E\u8BAD\u53D1\u5E03\u540E\uFF0C\u80FD\u7ACB\u5373\u5F00\u542F\u5B66\u4E60\uFF09")),Ge&&R.a.createElement(g.a,{className:"".concat(V.a.dataPicker," mt10"),format:D,locale:S.a,disabled:!st,placeholder:"\u8BF7\u8F93\u5165\u5F00\u542F\u65F6\u95F4",showToday:!1,disabledDate:function(et){return et&&et1)Object(f.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return Object(f.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var w=c[0];if(x.isValidElement(w)&&Object(a.c)(w)){var E=w.ref;c[0]=x.cloneElement(w,{ref:Object(a.a)(E,this.setChildNode)})}return c.length===1?c[0]:c.map(function(v,R){return!x.isValidElement(v)||"key"in v&&v.key!==null?v:x.cloneElement(v,{key:"".concat(r,"-").concat(R)})})}}]),h}(x.Component);i.displayName="ResizeObserver",z.a=i},t9D7:function(k,z,o){"use strict";o.d(z,"b",function(){return O}),o.d(z,"g",function(){return e}),o.d(z,"d",function(){return f}),o.d(z,"e",function(){return a}),o.d(z,"a",function(){return u}),o.d(z,"f",function(){return n}),o.d(z,"c",function(){return l});var P=o("Vhoy"),g=o("MI8n"),T=o("pmY6"),b=o("Cg/j"),y=o("ic2d"),x=o("nEHx");const O=Object(b.c)("themeService");var m;(function(h){function d(s){return s&&typeof s=="object"&&typeof s.id=="string"}h.isThemeColor=d})(m||(m={}));function e(h){return{id:h}}var f;(function(h){function d(R){return R&&typeof R=="object"&&typeof R.id=="string"&&(typeof R.color=="undefined"||m.isThemeColor(R.color))}h.isThemeIcon=d;const s=new RegExp(`^\\$\\((${P.a.iconNameExpression}(?:${P.a.iconModifierExpression})?)\\)$`);function c(R){const M=s.exec(R);if(!M)return;let[,C]=M;return{id:C}}h.fromString=c;function w(R,M){let C=R.id;const S=C.lastIndexOf("~");return S!==-1&&(C=C.substring(0,S)),M&&(C=`${C}~${M}`),{id:C}}h.modify=w;function E(R,M){var C,S;return R.id===M.id&&((C=R.color)===null||C===void 0?void 0:C.id)===((S=M.color)===null||S===void 0?void 0:S.id)}h.isEqual=E;function v(R,M){return{id:R.id,color:M?e(M):void 0}}h.asThemeIcon=v,h.asClassNameArray=P.a.asClassNameArray,h.asClassName=P.a.asClassName,h.asCSSSelector=P.a.asCSSSelector})(f||(f={}));function a(h){switch(h){case x.a.DARK:return"vs-dark";case x.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const u={ThemingContribution:"base.contributions.theming"};class r{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new g.b}onColorThemeChange(h){return this.themingParticipants.push(h),this.onThemingParticipantAddedEmitter.fire(h),Object(T.i)(()=>{const d=this.themingParticipants.indexOf(h);this.themingParticipants.splice(d,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new r;y.a.add(u.ThemingContribution,i);function n(h){return i.onColorThemeChange(h)}class l extends T.a{constructor(h){super();this.themeService=h,this.theme=h.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(d=>this.onThemeChange(d)))}onThemeChange(h){this.theme=h,this.updateStyles()}updateStyles(){}}},tWlo:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},uGsb:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(P){return function(){var g=P,T=g.x64,b=T.Word,y=T.WordArray,x=g.algo,O=x.SHA512,m=x.SHA384=O.extend({_doReset:function(){this._hash=new y.init([new b.init(3418070365,3238371032),new b.init(1654270250,914150663),new b.init(2438529370,812702999),new b.init(355462360,4144912697),new b.init(1731405415,4290775857),new b.init(2394180231,1750603025),new b.init(3675008525,1694076839),new b.init(1203062813,3204075428)])},_doFinalize:function(){var e=O._doFinalize.call(this);return e.sigBytes-=16,e}});g.SHA384=O._createHelper(m),g.HmacSHA384=O._createHmacHelper(m)}(),P.SHA384})},uGxW:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("OLod"))})(this,function(P){return P.pad.NoPadding={pad:function(){},unpad:function(){}},P.pad.NoPadding})},uK0f:function(k,z,o){(function(P,g){k.exports=g()})(this,function(){"use strict";function P(g,T,b){b=b||{},b.childrenKeyName=b.childrenKeyName||"children";var y=g||[],x=[],O=0;do{var m=y.filter(function(e){return T(e,O)})[0];if(!m)break;x.push(m),y=m[b.childrenKeyName]||[],O+=1}while(y.length>0);return x}return P})},ulZh:function(k,z,o){typeof window!="undefined"&&function(g,T){k.exports=T()}(this,function(){return function(P){var g={};function T(b){if(g[b])return g[b].exports;var y=g[b]={i:b,l:!1,exports:{}};return P[b].call(y.exports,y,y.exports,T),y.l=!0,y.exports}return T.m=P,T.c=g,T.d=function(b,y,x){T.o(b,y)||Object.defineProperty(b,y,{enumerable:!0,get:x})},T.r=function(b){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},T.t=function(b,y){if(y&1&&(b=T(b)),y&8)return b;if(y&4&&typeof b=="object"&&b&&b.__esModule)return b;var x=Object.create(null);if(T.r(x),Object.defineProperty(x,"default",{enumerable:!0,value:b}),y&2&&typeof b!="string")for(var O in b)T.d(x,O,function(m){return b[m]}.bind(null,O));return x},T.n=function(b){var y=b&&b.__esModule?function(){return b.default}:function(){return b};return T.d(y,"a",y),y},T.o=function(b,y){return Object.prototype.hasOwnProperty.call(b,y)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(P,g,T){"use strict";var b=Object.prototype.hasOwnProperty,y="~";function x(){}Object.create&&(x.prototype=Object.create(null),new x().__proto__||(y=!1));function O(a,u,r){this.fn=a,this.context=u,this.once=r||!1}function m(a,u,r,i,n){if(typeof r!="function")throw new TypeError("The listener must be a function");var l=new O(r,i||a,n),h=y?y+u:u;return a._events[h]?a._events[h].fn?a._events[h]=[a._events[h],l]:a._events[h].push(l):(a._events[h]=l,a._eventsCount++),a}function e(a,u){--a._eventsCount===0?a._events=new x:delete a._events[u]}function f(){this._events=new x,this._eventsCount=0}f.prototype.eventNames=function(){var u=[],r,i;if(this._eventsCount===0)return u;for(i in r=this._events)b.call(r,i)&&u.push(y?i.slice(1):i);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(r)):u},f.prototype.listeners=function(u){var r=y?y+u:u,i=this._events[r];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,l=i.length,h=new Array(l);n0},!1)}function a(u,r){for(var i={main:[r]},n={main:[]},l={main:{}};f(i);)for(var h=Object.keys(i),d=0;d=2*R/C||N<=H)return;var D=Number.POSITIVE_INFINITY,W;for(W=h.level-1;W>_;W--){var F=S[W].maxBitrate;if(D=R*F/(8*.8*L),D=N)return;var I=this.bwEstimator.getEstimate();f.logger.warn("Fragment "+h.sn+(d?" part "+d.index:"")+" of level "+h.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+W+` Current BW estimate: `+(Object(b.isFiniteNumber)(I)?(I/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+N.toFixed(3)+` s @@ -583,7 +583,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho trackSwitch: `+D+` contiguous: `+I+` accurateTimeOffset: `+M+` - timeOffset: `+L);var he=new O.TransmuxConfig(c,w,s,R,S);this.configureTransmuxer(he)}if(this.frag=E,this.part=v,U)U.postMessage({cmd:"demux",data:d,decryptdata:N,chunkMeta:C,state:ee},d instanceof ArrayBuffer?[d]:[]);else if(A){var de=A.push(d,N,C,ee);Object(O.isPromise)(de)?de.then(function(Se){_.handleTransmuxComplete(Se)}):this.handleTransmuxComplete(de)}},l.flush=function(d){var s=this;d.transmuxing.start=self.performance.now();var c=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:d});else if(c){var E=c.flush(d);Object(O.isPromise)(E)?E.then(function(v){s.handleFlushResult(v,d)}):this.handleFlushResult(E,d)}},l.handleFlushResult=function(d,s){var c=this;d.forEach(function(w){c.handleTransmuxComplete(w)}),this.onFlush(s)},l.onWorkerMessage=function(d){var s=d.data,c=this.hls;switch(s.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(s.data);break}case"flush":{this.onFlush(s.data);break}default:{s.data=s.data||{},s.data.frag=this.frag,s.data.id=this.id,c.trigger(s.event,s.data);break}}},l.configureTransmuxer=function(d){var s=this.worker,c=this.transmuxer;s?s.postMessage({cmd:"configure",config:d}):c&&c.configure(d)},l.handleTransmuxComplete=function(d){d.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(d)},n}()},"./src/demux/transmuxer-worker.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return e});var b=T("./src/demux/transmuxer.ts"),y=T("./src/events.ts"),x=T("./src/utils/logger.ts"),O=T("./node_modules/eventemitter3/index.js"),m=T.n(O);function e(i){var n=new O.EventEmitter,l=function(d,s){i.postMessage({event:d,data:s})};n.on(y.Events.FRAG_DECRYPTED,l),n.on(y.Events.ERROR,l),i.addEventListener("message",function(h){var d=h.data;switch(d.cmd){case"init":{var s=JSON.parse(d.config);i.transmuxer=new b.default(n,d.typeSupported,s,d.vendor,d.id),Object(x.enableLogs)(s.debug),l("init",null);break}case"configure":{i.transmuxer.configure(d.config);break}case"demux":{var c=i.transmuxer.push(d.data,d.decryptdata,d.chunkMeta,d.state);Object(b.isPromise)(c)?c.then(function(v){f(i,v)}):f(i,c);break}case"flush":{var w=d.chunkMeta,E=i.transmuxer.flush(w);Object(b.isPromise)(E)?E.then(function(v){u(i,v,w)}):u(i,E,w);break}default:break}})}function f(i,n){if(r(n.remuxResult))return;var l=[],h=n.remuxResult,d=h.audio,s=h.video;d&&a(l,d),s&&a(l,s),i.postMessage({event:"transmuxComplete",data:n},l)}function a(i,n){n.data1&&i.push(n.data1.buffer),n.data2&&i.push(n.data2.buffer)}function u(i,n,l){n.forEach(function(h){f(i,h)}),i.postMessage({event:"flush",data:l})}function r(i){return!i.audio&&!i.video&&!i.text&&!i.id3&&!i.initSegment}},"./src/demux/transmuxer.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return s}),T.d(g,"isPromise",function(){return E}),T.d(g,"TransmuxConfig",function(){return v}),T.d(g,"TransmuxState",function(){return R});var b=T("./src/events.ts"),y=T("./src/errors.ts"),x=T("./src/crypt/decrypter.ts"),O=T("./src/demux/aacdemuxer.ts"),m=T("./src/demux/mp4demuxer.ts"),e=T("./src/demux/tsdemuxer.ts"),f=T("./src/demux/mp3demuxer.ts"),a=T("./src/remux/mp4-remuxer.ts"),u=T("./src/remux/passthrough-remuxer.ts"),r=T("./src/demux/chunk-cache.ts"),i=T("./src/utils/mp4-tools.ts"),n=T("./src/utils/logger.ts"),l;try{l=self.performance.now.bind(self.performance)}catch(M){n.logger.debug("Unable to use Performance API on this environment"),l=self.Date.now}var h=[{demux:e.default,remux:a.default},{demux:m.default,remux:u.default},{demux:O.default,remux:a.default},{demux:f.default,remux:a.default}],d=1024;h.forEach(function(M){var C=M.demux;d=Math.max(d,C.minProbeByteLength)});var s=function(){function M(S,_,A,U,L){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new r.default,this.observer=S,this.typeSupported=_,this.config=A,this.vendor=U,this.id=L}var C=M.prototype;return C.configure=function(_){this.transmuxConfig=_,this.decrypter&&this.decrypter.reset()},C.push=function(_,A,U,L){var N=this,V=U.transmuxing;V.executeStart=l();var H=new Uint8Array(_),D=this.cache,W=this.config,F=this.currentTransmuxState,I=this.transmuxConfig;L&&(this.currentTransmuxState=L);var K=c(H,A);if(K&&K.method==="AES-128"){var ee=this.getDecrypter();if(W.enableSoftwareAES){var he=ee.softwareDecrypt(H,K.key.buffer,K.iv.buffer);if(!he)return V.executeEnd=l(),w(U);H=new Uint8Array(he)}else return this.decryptionPromise=ee.webCryptoDecrypt(H,K.key.buffer,K.iv.buffer).then(function(te){var Q=N.push(te,null,U);return N.decryptionPromise=null,Q}),this.decryptionPromise}var de=L||F,Se=de.contiguous,Te=de.discontinuity,ce=de.trackSwitch,be=de.accurateTimeOffset,Ee=de.timeOffset,ue=I.audioCodec,le=I.videoCodec,$=I.defaultInitPts,me=I.duration,re=I.initSegmentData;if((Te||ce)&&this.resetInitSegment(re,ue,le,me),Te&&this.resetInitialTimestamp($),Se||this.resetContiguity(),this.needsProbing(H,Te,ce)){if(D.dataLength){var ae=D.flush();H=Object(i.appendUint8Array)(ae,H)}this.configureTransmuxer(H,I)}var Oe=this.transmux(H,K,Ee,be,U),se=this.currentTransmuxState;return se.contiguous=!0,se.discontinuity=!1,se.trackSwitch=!1,V.executeEnd=l(),Oe},C.flush=function(_){var A=this,U=_.transmuxing;U.executeStart=l();var L=this.decrypter,N=this.cache,V=this.currentTransmuxState,H=this.decryptionPromise;if(H)return H.then(function(){return A.flush(_)});var D=[],W=V.timeOffset;if(L){var F=L.flush();F&&D.push(this.push(F,null,_))}var I=N.dataLength;N.reset();var K=this.demuxer,ee=this.remuxer;if(!K||!ee)return I>=d&&this.observer.emit(b.Events.ERROR,b.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),U.executeEnd=l(),[w(_)];var he=K.flush(W);return E(he)?he.then(function(de){return A.flushRemux(D,de,_),D}):(this.flushRemux(D,he,_),D)},C.flushRemux=function(_,A,U){var L=A.audioTrack,N=A.avcTrack,V=A.id3Track,H=A.textTrack,D=this.currentTransmuxState,W=D.accurateTimeOffset,F=D.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+U.sn+(U.part>-1?" p: "+U.part:"")+" of level "+U.level);var I=this.remuxer.remux(L,N,V,H,F,W,!0,this.id);_.push({remuxResult:I,chunkMeta:U}),U.transmuxing.executeEnd=l()},C.resetInitialTimestamp=function(_){var A=this.demuxer,U=this.remuxer;if(!A||!U)return;A.resetTimeStamp(_),U.resetTimeStamp(_)},C.resetContiguity=function(){var _=this.demuxer,A=this.remuxer;if(!_||!A)return;_.resetContiguity(),A.resetNextTimestamp()},C.resetInitSegment=function(_,A,U,L){var N=this.demuxer,V=this.remuxer;if(!N||!V)return;N.resetInitSegment(A,U,L),V.resetInitSegment(_,A,U)},C.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},C.transmux=function(_,A,U,L,N){var V;return A&&A.method==="SAMPLE-AES"?V=this.transmuxSampleAes(_,A,U,L,N):V=this.transmuxUnencrypted(_,U,L,N),V},C.transmuxUnencrypted=function(_,A,U,L){var N=this.demuxer.demux(_,A,!1,!this.config.progressive),V=N.audioTrack,H=N.avcTrack,D=N.id3Track,W=N.textTrack,F=this.remuxer.remux(V,H,D,W,A,U,!1,this.id);return{remuxResult:F,chunkMeta:L}},C.transmuxSampleAes=function(_,A,U,L,N){var V=this;return this.demuxer.demuxSampleAes(_,A,U).then(function(H){var D=V.remuxer.remux(H.audioTrack,H.avcTrack,H.id3Track,H.textTrack,U,L,!1,V.id);return{remuxResult:D,chunkMeta:N}})},C.configureTransmuxer=function(_,A){for(var U=this.config,L=this.observer,N=this.typeSupported,V=this.vendor,H=A.audioCodec,D=A.defaultInitPts,W=A.duration,F=A.initSegmentData,I=A.videoCodec,K,ee=0,he=h.length;ee0&&C!=null&&C.key!=null&&C.iv!==null&&C.method!=null&&(S=C),S}var w=function(C){return{remuxResult:{},chunkMeta:C}};function E(M){return"then"in M&&M.then instanceof Function}var v=function(C,S,_,A,U){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=C,this.videoCodec=S,this.initSegmentData=_,this.duration=A,this.defaultInitPts=U},R=function(C,S,_,A,U){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=C,this.contiguous=S,this.accurateTimeOffset=_,this.trackSwitch=A,this.timeOffset=U}},"./src/demux/tsdemuxer.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"discardEPB",function(){return w});var b=T("./src/demux/adts.ts"),y=T("./src/demux/mpegaudio.ts"),x=T("./src/demux/exp-golomb.ts"),O=T("./src/demux/id3.ts"),m=T("./src/demux/sample-aes.ts"),e=T("./src/events.ts"),f=T("./src/utils/mp4-tools.ts"),a=T("./src/utils/logger.ts"),u=T("./src/errors.ts"),r={video:1,audio:2,id3:3,text:4},i=function(){function E(R,M,C){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=R,this.config=M,this.typeSupported=C}E.probe=function(M){var C=E.syncOffset(M);return C<0?!1:(C&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+C+", junk ahead ?"),!0)},E.syncOffset=function(M){for(var C=Math.min(1e3,M.length-3*188),S=0;S>4,ue=void 0;if(Ee>1){if(ue=Te+5+M[Te+4],ue===Te+188)continue}else ue=Te+4;switch(be){case V:ce&&(H&&(A=d(H))&&this.parseAVCPES(A,!1),H={data:[],size:0}),H&&(H.data.push(M.subarray(ue,Te+188)),H.size+=Te+188-ue);break;case D:ce&&(F&&(A=d(F))&&(L.isAAC?this.parseAACPES(A):this.parseMPEGPES(A)),F={data:[],size:0}),F&&(F.data.push(M.subarray(ue,Te+188)),F.size+=Te+188-ue);break;case W:ce&&(I&&(A=d(I))&&this.parseID3PES(A),I={data:[],size:0}),I&&(I.data.push(M.subarray(ue,Te+188)),I.size+=Te+188-ue);break;case 0:ce&&(ue+=M[ue]+1),he=this._pmtId=l(M,ue);break;case he:{ce&&(ue+=M[ue]+1);var le=h(M,ue,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,S);V=le.avc,V>0&&(U.pid=V),D=le.audio,D>0&&(L.pid=D,L.isAAC=le.isAAC),W=le.id3,W>0&&(N.pid=W),K&&!ee&&(a.logger.log("reparse from beginning"),K=!1,Te=Se-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:K=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});U.pesData=H,L.pesData=F,N.pesData=I;var $={audioTrack:L,avcTrack:U,id3Track:N,textTrack:this._txtTrack};return _&&this.extractRemainingSamples($),$},v.flush=function(){var M=this.remainderData;this.remainderData=null;var C;return M?C=this.demux(M,-1,!1,!0):C={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(C),this.sampleAes?this.decrypt(C,this.sampleAes):C},v.extractRemainingSamples=function(M){var C=M.audioTrack,S=M.avcTrack,_=M.id3Track,A=S.pesData,U=C.pesData,L=_.pesData,N;A&&(N=d(A))?(this.parseAVCPES(N,!0),S.pesData=null):S.pesData=A,U&&(N=d(U))?(C.isAAC?this.parseAACPES(N):this.parseMPEGPES(N),C.pesData=null):(U!=null&&U.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),C.pesData=U),L&&(N=d(L))?(this.parseID3PES(N),_.pesData=null):_.pesData=L},v.demuxSampleAes=function(M,C,S){var _=this.demux(M,S,!0,!this.config.progressive),A=this.sampleAes=new m.default(this.observer,this.config,C);return this.decrypt(_,A)},v.decrypt=function(M,C){return new Promise(function(S){var _=M.audioTrack,A=M.avcTrack;_.samples&&_.isAAC?C.decryptAacSamples(_.samples,0,function(){A.samples?C.decryptAvcSamples(A.samples,0,0,function(){S(M)}):S(M)}):A.samples&&C.decryptAvcSamples(A.samples,0,0,function(){S(M)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(M,C){var S=this,_=this._avcTrack,A=this.parseAVCNALu(M.data),U=!1,L=this.avcSample,N,V=!1;M.data=null,L&&A.length&&!_.audFound&&(s(L,_),L=this.avcSample=n(!1,M.pts,M.dts,"")),A.forEach(function(H){switch(H.type){case 1:{N=!0,L||(L=S.avcSample=n(!0,M.pts,M.dts,"")),U&&(L.debug+="NDR "),L.frame=!0;var D=H.data;if(V&&D.length>4){var W=new x.default(D).readSliceType();(W===2||W===4||W===7||W===9)&&(L.key=!0)}break}case 5:N=!0,L||(L=S.avcSample=n(!0,M.pts,M.dts,"")),U&&(L.debug+="IDR "),L.key=!0,L.frame=!0;break;case 6:{N=!0,U&&L&&(L.debug+="SEI ");var F=new x.default(w(H.data));F.readUByte();for(var I=0,K=0,ee=!1,he=0;!ee&&F.bytesAvailable>1;){I=0;do he=F.readUByte(),I+=he;while(he===255);K=0;do he=F.readUByte(),K+=he;while(he===255);if(I===4&&F.bytesAvailable!==0){ee=!0;var de=F.readUByte();if(de===181){var Se=F.readUShort();if(Se===49){var Te=F.readUInt();if(Te===1195456820){var ce=F.readUByte();if(ce===3){for(var be=F.readUByte(),Ee=F.readUByte(),ue=31&be,le=[be,Ee],$=0;$16){for(var me=[],re=0;re<16;re++)me.push(F.readUByte().toString(16)),(re===3||re===5||re===7||re===9)&&me.push("-");for(var ae=K-16,Oe=new Uint8Array(ae),se=0;se=0){var F={data:M.subarray(D,L-_-1),type:W};U.push(F)}else{var I=this.getLastNalUnit();if(I&&(A&&L<=4-A&&(I.state&&(I.data=I.data.subarray(0,I.data.byteLength-A))),V=L-_-1,V>0)){var K=new Uint8Array(I.data.byteLength+V);K.set(I.data,0),K.set(M.subarray(0,V),I.data.byteLength),I.data=K,I.state=0}}L=0&&_>=0){var ee={data:M.subarray(D,C),type:W,state:_};U.push(ee)}if(U.length===0){var he=this.getLastNalUnit();if(he){var de=new Uint8Array(he.data.byteLength+M.byteLength);de.set(he.data,0),de.set(M,he.data.byteLength),he.data=de}}return S.naluState=_,U},v.parseAACPES=function(M){var C=0,S=this._audioTrack,_=this.aacOverFlow,A=M.data;if(_){this.aacOverFlow=null;var U=_.sample.unit.byteLength,L=Math.min(_.missing,U),N=U-L;_.sample.unit.set(A.subarray(0,L),N),S.samples.push(_.sample),C=_.missing}var V,H;for(V=C,H=A.length;V1;){var U=new Uint8Array(A[0].length+A[1].length);U.set(A[0]),U.set(A[1],A[0].length),A[0]=U,A.splice(1,1)}R=A[0];var L=(R[0]<<16)+(R[1]<<8)+R[2];if(L===1){if(M=(R[4]<<8)+R[5],M&&M>E.size-6)return null;var N=R[7];N&192&&(S=(R[9]&14)*536870912+(R[10]&255)*4194304+(R[11]&254)*16384+(R[12]&255)*128+(R[13]&254)/2,N&64?(_=(R[14]&14)*536870912+(R[15]&255)*4194304+(R[16]&254)*16384+(R[17]&255)*128+(R[18]&254)/2,S-_>60*9e4&&(a.logger.warn(Math.round((S-_)/9e4)+"s delta between PTS and DTS, align them"),S=_)):_=S),C=R[8];var V=C+9;if(E.size<=V)return null;E.size-=V;for(var H=new Uint8Array(E.size),D=0,W=A.length;DF){V-=F;continue}else R=R.subarray(V),F-=V,V=0;H.set(R,v),v+=F}return M&&(M-=C+3),{data:H,pts:S,dts:_,len:M}}return null}function s(E,v){if(E.units.length&&E.frame){if(E.pts===void 0){var R=v.samples,M=R.length;if(M){var C=R[M-1];E.pts=C.pts,E.dts=C.dts}else{v.dropped++;return}}v.samples.push(E)}E.debug.length&&a.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function c(E,v){var R=E.length;if(R>0){if(v.pts>=E[R-1].pts)E.push(v);else for(var M=R-1;M>=0;M--)if(v.ptsS)return A;return 0}},{key:"maxAutoLevel",get:function(){var C=this.levels,S=this.autoLevelCapping,_;return S===-1&&C&&C.length?_=C.length-1:_=S,_}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(C){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,C)}},{key:"audioTracks",get:function(){var C=this.audioTrackController;return C?C.audioTracks:[]}},{key:"audioTrack",get:function(){var C=this.audioTrackController;return C?C.audioTrack:-1},set:function(C){var S=this.audioTrackController;S&&(S.audioTrack=C)}},{key:"subtitleTracks",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTrack:-1},set:function(C){var S=this.subtitleTrackController;S&&(S.subtitleTrack=C)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var C=this.subtitleTrackController;return C?C.subtitleDisplay:!1},set:function(C){var S=this.subtitleTrackController;S&&(S.subtitleDisplay=C)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(C){this.config.lowLatencyMode=C}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return d.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return v.defaultConfig?v.defaultConfig:n.hlsDefaultConfig},set:function(C){v.defaultConfig=C}}]),v}();E.defaultConfig=void 0},"./src/is-supported.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"isSupported",function(){return x}),T.d(g,"changeTypeSupported",function(){return O});var b=T("./src/utils/mediasource-helper.ts");function y(){return self.SourceBuffer||self.WebKitSourceBuffer}function x(){var m=Object(b.getMediaSource)();if(!m)return!1;var e=y(),f=m&&typeof m.isTypeSupported=="function"&&m.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!f&&!!a}function O(){var m,e=y();return typeof(e==null||((m=e.prototype)===null||m===void 0)?void 0:m.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return i}),T.d(g,"LoadError",function(){return l});var b=T("./src/polyfills/number.ts"),y=T("./src/errors.ts");function x(h,d){h.prototype=Object.create(d.prototype),h.prototype.constructor=h,a(h,d)}function O(h){var d=typeof Map=="function"?new Map:void 0;return O=function(c){if(c===null||!f(c))return c;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d!="undefined"){if(d.has(c))return d.get(c);d.set(c,w)}function w(){return m(c,arguments,u(this).constructor)}return w.prototype=Object.create(c.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),a(w,c)},O(h)}function m(h,d,s){return e()?m=Reflect.construct:m=function(w,E,v){var R=[null];R.push.apply(R,E);var M=Function.bind.apply(w,R),C=new M;return v&&a(C,v.prototype),C},m.apply(null,arguments)}function e(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}function f(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function a(h,d){return a=Object.setPrototypeOf||function(c,w){return c.__proto__=w,c},a(h,d)}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},u(h)}var r=Math.pow(2,17),i=function(){function h(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var d=h.prototype;return d.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},d.abort=function(){this.loader&&this.loader.abort()},d.load=function(c,w){var E=this,v=c.url;if(!v)return Promise.reject(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var R=this.config,M=R.fLoader,C=R.loader;return new Promise(function(S,_){E.loader&&E.loader.destroy();var A=E.loader=c.loader=M?new M(R):new C(R),U=n(c),L={timeout:R.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:R.fragLoadingMaxRetryTimeout,highWaterMark:r};c.stats=A.stats,A.load(U,L,{onSuccess:function(V,H,D,W){E.resetLoader(c,A),S({frag:c,part:null,payload:V.data,networkDetails:W})},onError:function(V,H,D){E.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,response:V,networkDetails:D}))},onAbort:function(V,H,D){E.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,networkDetails:D}))},onTimeout:function(V,H,D){E.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,networkDetails:D}))},onProgress:function(V,H,D,W){w&&w({frag:c,part:null,payload:D,networkDetails:W})}})})},d.loadPart=function(c,w,E){var v=this;this.abort();var R=this.config,M=R.fLoader,C=R.loader;return new Promise(function(S,_){v.loader&&v.loader.destroy();var A=v.loader=c.loader=M?new M(R):new C(R),U=n(c,w),L={timeout:R.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:R.fragLoadingMaxRetryTimeout,highWaterMark:r};w.stats=A.stats,A.load(U,L,{onSuccess:function(V,H,D,W){v.resetLoader(c,A),v.updateStatsFromPart(c,w);var F={frag:c,part:w,payload:V.data,networkDetails:W};E(F),S(F)},onError:function(V,H,D){v.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,part:w,response:V,networkDetails:D}))},onAbort:function(V,H,D){c.stats.aborted=w.stats.aborted,v.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,part:w,networkDetails:D}))},onTimeout:function(V,H,D){v.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,part:w,networkDetails:D}))}})})},d.updateStatsFromPart=function(c,w){var E=c.stats,v=w.stats,R=v.total;if(E.loaded+=v.loaded,R){var M=Math.round(c.duration/w.duration),C=Math.min(Math.round(E.loaded/R),M),S=M-C,_=S*Math.round(E.loaded/C);E.total=E.loaded+_}else E.total=Math.max(E.loaded,E.total);var A=E.loading,U=v.loading;A.start?A.first+=U.first-U.start:(A.start=U.start,A.first=U.first),A.end=U.end},d.resetLoader=function(c,w){c.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},h}();function n(h,d){d===void 0&&(d=null);var s=d||h,c={frag:h,part:d,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},w=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(b.isFiniteNumber)(w)&&Object(b.isFiniteNumber)(E)&&(c.rangeStart=w,c.rangeEnd=E),c}var l=function(h){x(d,h);function d(s){for(var c,w=arguments.length,E=new Array(w>1?w-1:0),v=1;v>8*(15-R)&255;return v},c.setDecryptDataFromLevelKey=function(E,v){var R=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(R=m.LevelKey.fromURI(E.uri),R.method=E.method,R.iv=this.createInitializationVector(v),R.keyFormat="identity"),R},c.setElementaryStreamInfo=function(E,v,R,M,C,S){S===void 0&&(S=!1);var _=this.elementaryStreams,A=_[E];if(!A){_[E]={startPTS:v,endPTS:R,startDTS:M,endDTS:C,partial:S};return}A.startPTS=Math.min(A.startPTS,v),A.endPTS=Math.max(A.endPTS,R),A.startDTS=Math.min(A.startDTS,M),A.endDTS=Math.max(A.endDTS,C)},c.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[i.AUDIO]=null,E[i.VIDEO]=null,E[i.AUDIOVIDEO]=null},r(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&O.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(b.isFiniteNumber)(this.programDateTime))return null;var E=Object(b.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),s}(n),h=function(d){f(s,d);function s(c,w,E,v,R){var M;M=d.call(this,E)||this,M.fragOffset=0,M.duration=0,M.gap=!1,M.independent=!1,M.relurl=void 0,M.fragment=void 0,M.index=void 0,M.stats=new e.LoadStats,M.duration=c.decimalFloatingPoint("DURATION"),M.gap=c.bool("GAP"),M.independent=c.bool("INDEPENDENT"),M.relurl=c.enumeratedString("URI"),M.fragment=w,M.index=v;var C=c.enumeratedString("BYTERANGE");return C&&M.setByteRange(C,R),R&&(M.fragOffset=R.fragOffset+R.duration),M}return r(s,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var w=this.elementaryStreams;return!!(w.audio||w.video||w.audiovideo)}}]),s}(n)},"./src/loader/key-loader.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return O});var b=T("./src/events.ts"),y=T("./src/errors.ts"),x=T("./src/utils/logger.ts"),O=function(){function m(f){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=f,this._registerListeners()}var e=m.prototype;return e._registerListeners=function(){this.hls.on(b.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(b.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var u=this.loaders[a];u&&u.destroy()}this.loaders={}},e.onKeyLoading=function(a,u){var r=u.frag,i=r.type,n=this.loaders[i];if(!r.decryptdata){x.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var l=r.decryptdata.uri;if(l!==this.decrypturl||this.decryptkey===null){var h=this.hls.config;if(n&&(x.logger.warn("abort previous key loader for type:"+i),n.abort()),!l){x.logger.warn("key uri is falsy");return}var d=h.loader,s=r.loader=this.loaders[i]=new d(h);this.decrypturl=l,this.decryptkey=null;var c={url:l,frag:r,responseType:"arraybuffer"},w={timeout:h.fragLoadingTimeOut,maxRetry:0,retryDelay:h.fragLoadingRetryDelay,maxRetryDelay:h.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(c,w,E)}else this.decryptkey&&(r.decryptdata.key=this.decryptkey,this.hls.trigger(b.Events.KEY_LOADED,{frag:r}))},e.loadsuccess=function(a,u,r){var i=r.frag;if(!i.decryptdata){x.logger.error("after key load, decryptdata unset");return}this.decryptkey=i.decryptdata.key=new Uint8Array(a.data),i.loader=null,delete this.loaders[i.type],this.hls.trigger(b.Events.KEY_LOADED,{frag:i})},e.loaderror=function(a,u){var r=u.frag,i=r.loader;i&&i.abort(),delete this.loaders[r.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:r,response:a})},e.loadtimeout=function(a,u){var r=u.frag,i=r.loader;i&&i.abort(),delete this.loaders[r.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:r})},m}()},"./src/loader/level-details.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"LevelDetails",function(){return m});var b=T("./src/polyfills/number.ts");function y(e,f){for(var a=0;au.endSN||r>0||r===0&&i>0,this.updated||this.advanced?this.misses=Math.floor(u.misses*.6):this.misses=u.misses+1,this.availabilityDelay=u.availabilityDelay},x(e,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(b.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||O}},{key:"drift",get:function(){var u=this.driftEndTime-this.driftStartTime;if(u>0){var r=this.driftEnd-this.driftStart;return r*1e3/u}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var u;return(u=this.fragments)!==null&&u!==void 0&&u.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"LevelKey",function(){return m});var b=T("./node_modules/url-toolkit/src/url-toolkit.js"),y=T.n(b);function x(e,f){for(var a=0;a2){var _=S.shift()+".";return _+=parseInt(S.shift()).toString(16),_+=("000"+parseInt(S.shift()).toString(16)).substr(-4),_}return C},R.resolve=function(C,S){return y.buildAbsoluteURL(S,C,{alwaysNormalize:!0})},R.parseMasterPlaylist=function(C,S){var _=[],A={},U=!1;r.lastIndex=0;for(var L;(L=r.exec(C))!=null;)if(L[1]){var N=new f.AttrList(L[1]),V={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:R.resolve(L[2],S)},H=N.decimalResolution("RESOLUTION");H&&(V.width=H.width,V.height=H.height),c((N.CODECS||"").split(/[ ,]+/).filter(function(W){return W}),V),V.videoCodec&&V.videoCodec.indexOf("avc1")!==-1&&(V.videoCodec=R.convertAVC1ToAVCOTI(V.videoCodec)),_.push(V)}else if(L[3]){var D=new f.AttrList(L[3]);D["DATA-ID"]&&(U=!0,A[D["DATA-ID"]]=D)}return{levels:_,sessionData:U?A:null}},R.parseMasterPlaylistMedia=function(C,S,_,A){A===void 0&&(A=[]);var U,L=[],N=0;for(i.lastIndex=0;(U=i.exec(C))!==null;){var V=new f.AttrList(U[1]);if(V.TYPE===_){var H={attrs:V,bitrate:0,id:N++,groupId:V["GROUP-ID"],instreamId:V["INSTREAM-ID"],name:V.NAME||V.LANGUAGE||"",type:_,default:V.bool("DEFAULT"),autoselect:V.bool("AUTOSELECT"),forced:V.bool("FORCED"),lang:V.LANGUAGE,url:V.URI?R.resolve(V.URI,S):""};if(A.length){var D=R.findGroup(A,H.groupId)||A[0];w(H,D,"audioCodec"),w(H,D,"textCodec")}L.push(H)}}return L},R.parseLevelPlaylist=function(C,S,_,A,U){var L=new m.LevelDetails(S),N=L.fragments,V=null,H=0,D=0,W=0,F=0,I=null,K=new O.Fragment(A,S),ee,he,de,Se=-1,Te=!1;for(n.lastIndex=0,L.m3u8=C;(ee=n.exec(C))!==null;){Te&&(Te=!1,K=new O.Fragment(A,S),K.start=W,K.sn=H,K.cc=F,K.level=_,V&&(K.initSegment=V,K.rawProgramDateTime=V.rawProgramDateTime));var ce=ee[1];if(ce){K.duration=parseFloat(ce);var be=(" "+ee[2]).slice(1);K.title=be||null,K.tagList.push(be?["INF",ce,be]:["INF",ce])}else if(ee[3])Object(b.isFiniteNumber)(K.duration)&&(K.start=W,de&&(K.levelkey=de),K.sn=H,K.level=_,K.cc=F,K.urlId=U,N.push(K),K.relurl=(" "+ee[3]).slice(1),v(K,I),I=K,W+=K.duration,H++,D=0,Te=!0);else if(ee[4]){var Ee=(" "+ee[4]).slice(1);I?K.setByteRange(Ee,I):K.setByteRange(Ee)}else if(ee[5])K.rawProgramDateTime=(" "+ee[5]).slice(1),K.tagList.push(["PROGRAM-DATE-TIME",K.rawProgramDateTime]),Se===-1&&(Se=N.length);else{if(ee=ee[0].match(l),!ee){a.logger.warn("No matches on slow regex match for level playlist!");continue}for(he=1;he-1){a.logger.warn("Keyformat "+Qe+" is not supported from the manifest");continue}else if(Qe!=="identity")continue;Q&&(de=e.LevelKey.fromURL(S,J),J&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Q)>=0&&(de.method=Q,de.keyFormat=Qe,Ae&&(de.keyID=Ae),_e&&(de.keyFormatVersions=_e),de.iv=ve));break}case"START":{var dt=new f.AttrList(le),mt=dt.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(mt)&&(L.startTimeOffset=mt);break}case"MAP":{var vt=new f.AttrList(le);K.relurl=vt.URI,vt.BYTERANGE&&K.setByteRange(vt.BYTERANGE),K.level=_,K.sn="initSegment",de&&(K.levelkey=de),K.initSegment=null,V=K,Te=!0;break}case"SERVER-CONTROL":{var Et=new f.AttrList(le);L.canBlockReload=Et.bool("CAN-BLOCK-RELOAD"),L.canSkipUntil=Et.optionalFloat("CAN-SKIP-UNTIL",0),L.canSkipDateRanges=L.canSkipUntil>0&&Et.bool("CAN-SKIP-DATERANGES"),L.partHoldBack=Et.optionalFloat("PART-HOLD-BACK",0),L.holdBack=Et.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ye=new f.AttrList(le);L.partTarget=Ye.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=L.partList;Ue||(Ue=L.partList=[]);var ft=D>0?Ue[Ue.length-1]:void 0,jt=D++,yt=new O.Part(new f.AttrList(le),K,S,jt,ft);Ue.push(yt),K.duration+=yt.duration;break}case"PRELOAD-HINT":{var Pt=new f.AttrList(le);L.preloadHint=Pt;break}case"RENDITION-REPORT":{var it=new f.AttrList(le);L.renditionReports=L.renditionReports||[],L.renditionReports.push(it);break}default:a.logger.warn("line parsed but not handled: "+ee);break}}}I&&!I.relurl?(N.pop(),W-=I.duration,L.partList&&(L.fragmentHint=I)):L.partList&&(v(K,I),K.cc=F,L.fragmentHint=K);var He=N.length,Ge=N[0],Ce=N[He-1];if(W+=L.skippedSegments*L.targetduration,W>0&&He&&Ce){L.averagetargetduration=W/He;var Ie=Ce.sn;L.endSN=Ie!=="initSegment"?Ie:0,Ge&&(L.startCC=Ge.cc,Ge.initSegment||L.fragments.every(function(Fe){return Fe.relurl&&d(Fe.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),K=new O.Fragment(A,S),K.relurl=Ce.relurl,K.level=_,K.sn="initSegment",Ge.initSegment=K,L.needSidxRanges=!0))}else L.endSN=0,L.startCC=0;return L.fragmentHint&&(W+=L.fragmentHint.duration),L.totalduration=W,L.endCC=F,Se>0&&E(N,Se),L},R}();function c(R,M){["video","audio","text"].forEach(function(C){var S=R.filter(function(A){return Object(u.isCodecType)(A,C)});if(S.length){var _=S.filter(function(A){return A.lastIndexOf("avc1",0)===0||A.lastIndexOf("mp4a",0)===0});M[C+"Codec"]=_.length>0?_[0]:S[0],R=R.filter(function(A){return S.indexOf(A)===-1})}}),M.unknownCodecs=R}function w(R,M,C){var S=M[C];S&&(R[C]=S)}function E(R,M){for(var C=R[M],S=M;S--;){var _=R[S];if(!_)return;_.programDateTime=C.programDateTime-_.duration*1e3,C=_}}function v(R,M){R.rawProgramDateTime?R.programDateTime=Date.parse(R.rawProgramDateTime):M!=null&&M.programDateTime&&(R.programDateTime=M.endProgramDateTime),Object(b.isFiniteNumber)(R.programDateTime)||(R.programDateTime=null,R.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/polyfills/number.ts"),y=T("./src/events.ts"),x=T("./src/errors.ts"),O=T("./src/utils/logger.ts"),m=T("./src/utils/mp4-tools.ts"),e=T("./src/loader/m3u8-parser.ts"),f=T("./src/types/loader.ts"),a=T("./src/utils/attr-list.ts");function u(n){var l=n.type;switch(l){case f.PlaylistContextType.AUDIO_TRACK:return f.PlaylistLevelType.AUDIO;case f.PlaylistContextType.SUBTITLE_TRACK:return f.PlaylistLevelType.SUBTITLE;default:return f.PlaylistLevelType.MAIN}}function r(n,l){var h=n.url;return(h===void 0||h.indexOf("data:")===0)&&(h=l.url),h}var i=function(){function n(h){this.hls=void 0,this.loaders=Object.create(null),this.hls=h,this.registerListeners()}var l=n.prototype;return l.registerListeners=function(){var d=this.hls;d.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.on(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.unregisterListeners=function(){var d=this.hls;d.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.off(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.createInternalLoader=function(d){var s=this.hls.config,c=s.pLoader,w=s.loader,E=c||w,v=new E(s);return d.loader=v,this.loaders[d.type]=v,v},l.getInternalLoader=function(d){return this.loaders[d.type]},l.resetInternalLoader=function(d){this.loaders[d]&&delete this.loaders[d]},l.destroyInternalLoaders=function(){for(var d in this.loaders){var s=this.loaders[d];s&&s.destroy(),this.resetInternalLoader(d)}},l.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},l.onManifestLoading=function(d,s){var c=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:f.PlaylistContextType.MANIFEST,url:c,deliveryDirectives:null})},l.onLevelLoading=function(d,s){var c=s.id,w=s.level,E=s.url,v=s.deliveryDirectives;this.load({id:c,groupId:null,level:w,responseType:"text",type:f.PlaylistContextType.LEVEL,url:E,deliveryDirectives:v})},l.onAudioTrackLoading=function(d,s){var c=s.id,w=s.groupId,E=s.url,v=s.deliveryDirectives;this.load({id:c,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:v})},l.onSubtitleTrackLoading=function(d,s){var c=s.id,w=s.groupId,E=s.url,v=s.deliveryDirectives;this.load({id:c,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:v})},l.load=function(d){var s,c=this.hls.config,w=this.getInternalLoader(d);if(w){var E=w.context;if(E&&E.url===d.url){O.logger.trace("[playlist-loader]: playlist request ongoing");return}O.logger.log("[playlist-loader]: aborting previous loader for type: "+d.type),w.abort()}var v,R,M,C;switch(d.type){case f.PlaylistContextType.MANIFEST:v=c.manifestLoadingMaxRetry,R=c.manifestLoadingTimeOut,M=c.manifestLoadingRetryDelay,C=c.manifestLoadingMaxRetryTimeout;break;case f.PlaylistContextType.LEVEL:case f.PlaylistContextType.AUDIO_TRACK:case f.PlaylistContextType.SUBTITLE_TRACK:v=0,R=c.levelLoadingTimeOut;break;default:v=c.levelLoadingMaxRetry,R=c.levelLoadingTimeOut,M=c.levelLoadingRetryDelay,C=c.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(d),(s=d.deliveryDirectives)!==null&&s!==void 0&&s.part){var S;if(d.type===f.PlaylistContextType.LEVEL&&d.level!==null?S=this.hls.levels[d.level].details:d.type===f.PlaylistContextType.AUDIO_TRACK&&d.id!==null?S=this.hls.audioTracks[d.id].details:d.type===f.PlaylistContextType.SUBTITLE_TRACK&&d.id!==null&&(S=this.hls.subtitleTracks[d.id].details),S){var _=S.partTarget,A=S.targetduration;_&&A&&(R=Math.min(Math.max(_*3,A*.8)*1e3,R))}}var U={timeout:R,maxRetry:v,retryDelay:M,maxRetryDelay:C,highWaterMark:0},L={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(d,U,L)},l.loadsuccess=function(d,s,c,w){if(w===void 0&&(w=null),c.isSidxRequest){this.handleSidxRequest(d,c),this.handlePlaylistLoaded(d,s,c,w);return}this.resetInternalLoader(c.type);var E=d.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(d,c,"no EXTM3U delimiter",w);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(d,s,c,w):this.handleMasterPlaylist(d,s,c,w)},l.loaderror=function(d,s,c){c===void 0&&(c=null),this.handleNetworkError(s,c,!1,d)},l.loadtimeout=function(d,s,c){c===void 0&&(c=null),this.handleNetworkError(s,c,!0)},l.handleMasterPlaylist=function(d,s,c,w){var E=this.hls,v=d.data,R=r(d,c),M=e.default.parseMasterPlaylist(v,R),C=M.levels,S=M.sessionData;if(!C.length){this.handleManifestParsingError(d,c,"no level found in manifest",w);return}var _=C.map(function(H){return{id:H.attrs.AUDIO,audioCodec:H.audioCodec}}),A=C.map(function(H){return{id:H.attrs.SUBTITLES,textCodec:H.textCodec}}),U=e.default.parseMasterPlaylistMedia(v,R,"AUDIO",_),L=e.default.parseMasterPlaylistMedia(v,R,"SUBTITLES",A),N=e.default.parseMasterPlaylistMedia(v,R,"CLOSED-CAPTIONS");if(U.length){var V=U.some(function(H){return!H.url});!V&&C[0].audioCodec&&!C[0].attrs.AUDIO&&(O.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),U.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}E.trigger(y.Events.MANIFEST_LOADED,{levels:C,audioTracks:U,subtitles:L,captions:N,url:R,stats:s,networkDetails:w,sessionData:S})},l.handleTrackOrLevelPlaylist=function(d,s,c,w){var E=this.hls,v=c.id,R=c.level,M=c.type,C=r(d,c),S=Object(b.isFiniteNumber)(v)?v:0,_=Object(b.isFiniteNumber)(R)?R:S,A=u(c),U=e.default.parseLevelPlaylist(d.data,C,_,A,S);if(!U.fragments.length){E.trigger(y.Events.ERROR,{type:x.ErrorTypes.NETWORK_ERROR,details:x.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:C,reason:"no fragments found in level",level:typeof c.level=="number"?c.level:void 0});return}if(M===f.PlaylistContextType.MANIFEST){var L={attrs:new a.AttrList({}),bitrate:0,details:U,name:"",url:C};E.trigger(y.Events.MANIFEST_LOADED,{levels:[L],audioTracks:[],url:C,stats:s,networkDetails:w,sessionData:null})}if(s.parsing.end=performance.now(),U.needSidxRanges){var N,V=(N=U.fragments[0].initSegment)===null||N===void 0?void 0:N.url;this.load({url:V,isSidxRequest:!0,type:M,level:R,levelDetails:U,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}c.levelDetails=U,this.handlePlaylistLoaded(d,s,c,w)},l.handleSidxRequest=function(d,s){var c=Object(m.parseSegmentIndex)(new Uint8Array(d.data));if(!c)return;var w=c.references,E=s.levelDetails;w.forEach(function(v,R){var M=v.info,C=E.fragments[R];C.byteRange.length===0&&C.setByteRange(String(1+M.end-M.start)+"@"+String(M.start)),C.initSegment&&C.initSegment.setByteRange(String(c.moovEndOffset)+"@0")})},l.handleManifestParsingError=function(d,s,c,w){this.hls.trigger(y.Events.ERROR,{type:x.ErrorTypes.NETWORK_ERROR,details:x.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===f.PlaylistContextType.MANIFEST,url:d.url,reason:c,response:d,context:s,networkDetails:w})},l.handleNetworkError=function(d,s,c,w){c===void 0&&(c=!1),O.logger.warn("[playlist-loader]: A network "+(c?"timeout":"error")+" occurred while loading "+d.type+" level: "+d.level+" id: "+d.id+' group-id: "'+d.groupId+'"');var E=x.ErrorDetails.UNKNOWN,v=!1,R=this.getInternalLoader(d);switch(d.type){case f.PlaylistContextType.MANIFEST:E=c?x.ErrorDetails.MANIFEST_LOAD_TIMEOUT:x.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case f.PlaylistContextType.LEVEL:E=c?x.ErrorDetails.LEVEL_LOAD_TIMEOUT:x.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case f.PlaylistContextType.AUDIO_TRACK:E=c?x.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:x.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case f.PlaylistContextType.SUBTITLE_TRACK:E=c?x.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:x.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}R&&this.resetInternalLoader(d.type);var M={type:x.ErrorTypes.NETWORK_ERROR,details:E,fatal:v,url:d.url,loader:R,context:d,networkDetails:s};w&&(M.response=w),this.hls.trigger(y.Events.ERROR,M)},l.handlePlaylistLoaded=function(d,s,c,w){var E=c.type,v=c.level,R=c.id,M=c.groupId,C=c.loader,S=c.levelDetails,_=c.deliveryDirectives;if(!(S!=null&&S.targetduration)){this.handleManifestParsingError(d,c,"invalid target duration",w);return}if(!C)return;S.live&&(C.getCacheAge&&(S.ageHeader=C.getCacheAge()||0),(!C.getCacheAge||isNaN(S.ageHeader))&&(S.ageHeader=0));switch(E){case f.PlaylistContextType.MANIFEST:case f.PlaylistContextType.LEVEL:this.hls.trigger(y.Events.LEVEL_LOADED,{details:S,level:v||0,id:R||0,stats:s,networkDetails:w,deliveryDirectives:_});break;case f.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(y.Events.AUDIO_TRACK_LOADED,{details:S,id:R||0,groupId:M||"",stats:s,networkDetails:w,deliveryDirectives:_});break;case f.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(y.Events.SUBTITLE_TRACK_LOADED,{details:S,id:R||0,groupId:M||"",stats:s,networkDetails:w,deliveryDirectives:_});break}},n}();g.default=i},"./src/polyfills/number.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"isFiniteNumber",function(){return b}),T.d(g,"MAX_SAFE_INTEGER",function(){return y});var b=Number.isFinite||function(x){return typeof x=="number"&&isFinite(x)},y=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(P,g,T){"use strict";T.r(g);var b=function(){function y(){}return y.getSilentFrame=function(O,m){switch(O){case"mp4a.40.2":if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(m===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(m===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},y}();g.default=b},"./src/remux/mp4-generator.ts":function(P,g,T){"use strict";T.r(g);var b=Math.pow(2,32)-1,y=function(){function x(){}return x.init=function(){x.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var m;for(m in x.types)x.types.hasOwnProperty(m)&&(x.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.charCodeAt(3)]);var e=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),f=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);x.HDLR_TYPES={video:e,audio:f};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),u=new Uint8Array([0,0,0,0,0,0,0,0]);x.STTS=x.STSC=x.STCO=u,x.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),x.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),x.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),x.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var r=new Uint8Array([105,115,111,109]),i=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);x.FTYP=x.box(x.types.ftyp,r,n,r,i),x.DINF=x.box(x.types.dinf,x.box(x.types.dref,a))},x.box=function(m){for(var e=8,f=arguments.length,a=new Array(f>1?f-1:0),u=1;u>24&255,n[1]=e>>16&255,n[2]=e>>8&255,n[3]=e&255,n.set(m,4),r=0,e=8;r>24&255,m>>16&255,m>>8&255,m&255,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},x.mdia=function(m){return x.box(x.types.mdia,x.mdhd(m.timescale,m.duration),x.hdlr(m.type),x.minf(m))},x.mfhd=function(m){return x.box(x.types.mfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255]))},x.minf=function(m){return m.type==="audio"?x.box(x.types.minf,x.box(x.types.smhd,x.SMHD),x.DINF,x.stbl(m)):x.box(x.types.minf,x.box(x.types.vmhd,x.VMHD),x.DINF,x.stbl(m))},x.moof=function(m,e,f){return x.box(x.types.moof,x.mfhd(m),x.traf(f,e))},x.moov=function(m){for(var e=m.length,f=[];e--;)f[e]=x.trak(m[e]);return x.box.apply(null,[x.types.moov,x.mvhd(m[0].timescale,m[0].duration)].concat(f).concat(x.mvex(m)))},x.mvex=function(m){for(var e=m.length,f=[];e--;)f[e]=x.trex(m[e]);return x.box.apply(null,[x.types.mvex].concat(f))},x.mvhd=function(m,e){e*=m;var f=Math.floor(e/(b+1)),a=Math.floor(e%(b+1)),u=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return x.box(x.types.mvhd,u)},x.sdtp=function(m){var e=m.samples||[],f=new Uint8Array(4+e.length),a,u;for(a=0;a>>8&255),e.push(r&255),e=e.concat(Array.prototype.slice.call(u));for(a=0;a>>8&255),f.push(r&255),f=f.concat(Array.prototype.slice.call(u));var i=x.box(x.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|m.sps.length].concat(e).concat([m.pps.length]).concat(f))),n=m.width,l=m.height,h=m.pixelRatio[0],d=m.pixelRatio[1];return x.box(x.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>8&255,n&255,l>>8&255,l&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i,x.box(x.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),x.box(x.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,d>>24,d>>16&255,d>>8&255,d&255])))},x.esds=function(m){var e=m.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(m.config).concat([6,1,2]))},x.mp4a=function(m){var e=m.samplerate;return x.box(x.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),x.box(x.types.esds,x.esds(m)))},x.mp3=function(m){var e=m.samplerate;return x.box(x.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},x.stsd=function(m){return m.type==="audio"?!m.isAAC&&m.codec==="mp3"?x.box(x.types.stsd,x.STSD,x.mp3(m)):x.box(x.types.stsd,x.STSD,x.mp4a(m)):x.box(x.types.stsd,x.STSD,x.avc1(m))},x.tkhd=function(m){var e=m.id,f=m.duration*m.timescale,a=m.width,u=m.height,r=Math.floor(f/(b+1)),i=Math.floor(f%(b+1));return x.box(x.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,a&255,0,0,u>>8&255,u&255,0,0]))},x.traf=function(m,e){var f=x.sdtp(m),a=m.id,u=Math.floor(e/(b+1)),r=Math.floor(e%(b+1));return x.box(x.types.traf,x.box(x.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),x.box(x.types.tfdt,new Uint8Array([1,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,r>>24,r>>16&255,r>>8&255,r&255])),x.trun(m,f.length+16+20+8+16+8+8),f)},x.trak=function(m){return m.duration=m.duration||4294967295,x.box(x.types.trak,x.tkhd(m),x.mdia(m))},x.trex=function(m){var e=m.id;return x.box(x.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},x.trun=function(m,e){var f=m.samples||[],a=f.length,u=12+16*a,r=new Uint8Array(u),i,n,l,h,d,s;for(e+=8+u,r.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),i=0;i>>24&255,l>>>16&255,l>>>8&255,l&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,d.degradPrio&240<<8,d.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*i);return x.box(x.types.trun,r)},x.initSegment=function(m){x.types||x.init();var e=x.moov(m),f=new Uint8Array(x.FTYP.byteLength+e.byteLength);return f.set(x.FTYP),f.set(e,x.FTYP.byteLength),f},x}();y.types=void 0,y.HDLR_TYPES=void 0,y.STTS=void 0,y.STSC=void 0,y.STCO=void 0,y.STSZ=void 0,y.VMHD=void 0,y.SMHD=void 0,y.STSD=void 0,y.FTYP=void 0,y.DINF=void 0,g.default=y},"./src/remux/mp4-remuxer.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return s}),T.d(g,"normalizePts",function(){return c});var b=T("./src/polyfills/number.ts"),y=T("./src/remux/aac-helper.ts"),x=T("./src/remux/mp4-generator.ts"),O=T("./src/events.ts"),m=T("./src/errors.ts"),e=T("./src/utils/logger.ts"),f=T("./src/types/loader.ts"),a=T("./src/utils/timescale-conversion.ts");function u(){return u=Object.assign||function(R){for(var M=1;M0?U:L.pts},S[0].pts);return _&&e.logger.debug("PTS rollover detected"),A},M.remux=function(S,_,A,U,L,N,V,H){var D,W,F,I,K,ee,he=L,de=L,Se=S.pid>-1,Te=_.pid>-1,ce=_.samples.length,be=S.samples.length>0,Ee=ce>1,ue=(!Se||be)&&(!Te||Ee)||this.ISGenerated||V;if(ue){this.ISGenerated||(F=this.generateIS(S,_,L));var le=this.isVideoContiguous,$=-1;if(Ee&&($=w(_.samples),!le&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,$>0){e.logger.warn("[mp4-remuxer]: Dropped "+$+" out of "+ce+" video samples due to a missing keyframe");var me=this.getVideoStartPts(_.samples);_.samples=_.samples.slice($),_.dropped+=$,de+=(_.samples[0].pts-me)/(_.timescale||9e4)}else $===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+ce+" video samples"),ee=!1);if(this.ISGenerated){if(be&&Ee){var re=this.getVideoStartPts(_.samples),ae=c(S.samples[0].pts,re)-re,Oe=ae/_.inputTimeScale;he+=Math.max(0,Oe),de+=Math.max(0,-Oe)}if(be){if(S.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(S,_,L)),W=this.remuxAudio(S,he,this.isAudioContiguous,N,Te||Ee||H===f.PlaylistLevelType.AUDIO?de:void 0),Ee){var se=W?W.endPTS-W.startPTS:0;_.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(S,_,L)),D=this.remuxVideo(_,de,le,se)}}else Ee&&(D=this.remuxVideo(_,de,le,0));D&&(D.firstKeyFrame=$,D.independent=$!==-1)}}return this.ISGenerated&&(A.samples.length&&(K=this.remuxID3(A,L)),U.samples.length&&(I=this.remuxText(U,L))),{audio:W,video:D,initSegment:F,independent:ee,text:I,id3:K}},M.generateIS=function(S,_,A){var U=S.samples,L=_.samples,N=this.typeSupported,V={},H=!Object(b.isFiniteNumber)(this._initPTS),D="audio/mp4",W,F,I;if(H&&(W=F=Infinity),S.config&&U.length&&(S.timescale=S.samplerate,S.isAAC||(N.mpeg?(D="audio/mpeg",S.codec=""):N.mp3&&(S.codec="mp3")),V.audio={id:"audio",container:D,codec:S.codec,initSegment:!S.isAAC&&N.mpeg?new Uint8Array(0):x.default.initSegment([S]),metadata:{channelCount:S.channelCount}},H&&(I=S.inputTimeScale,W=F=U[0].pts-Math.round(I*A))),_.sps&&_.pps&&L.length&&(_.timescale=_.inputTimeScale,V.video={id:"main",container:"video/mp4",codec:_.codec,initSegment:x.default.initSegment([_]),metadata:{width:_.width,height:_.height}},H)){I=_.inputTimeScale;var K=this.getVideoStartPts(L),ee=Math.round(I*A);F=Math.min(F,c(L[0].dts,K)-ee),W=Math.min(W,K-ee)}if(Object.keys(V).length)return this.ISGenerated=!0,H&&(this._initPTS=W,this._initDTS=F),{tracks:V,initPTS:W,timescale:I}},M.remuxVideo=function(S,_,A,U){var L=S.inputTimeScale,N=S.samples,V=[],H=N.length,D=this._initPTS,W=this.nextAvcDts,F=8,I,K,ee,he=Number.POSITIVE_INFINITY,de=Number.NEGATIVE_INFINITY,Se=0,Te=!1;if(!A||W===null){var ce=_*L,be=N[0].pts-c(N[0].dts,N[0].pts);W=ce-be}for(var Ee=0;Eeue.pts){var le=9e4*.2;Se=Math.max(Math.min(Se,ue.pts-ue.dts),-1*le)}ue.dts0?Ee-1:Ee].dts&&(Te=!0)}Te&&N.sort(function(Ct,Ke){var et=Ct.dts-Ke.dts,at=Ct.pts-Ke.pts;return et||at}),K=N[0].dts,ee=N[N.length-1].dts;var $=Math.round((ee-K)/(H-1));if(Se<0){if(Se<$*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(a.toMsFromMpegTsClock)(-$,!0)+" ms");for(var me=Se,re=0;re$,te=Oe<-1;if(se||te){se?e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(Oe,!0)+" ms ("+Oe+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-Oe,!0)+" ms ("+Oe+"dts) overlapping between fragments detected"),K=W;var Q=N[0].pts-Oe;N[0].dts=K,N[0].pts=Q,e.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(Q,!0)+"/"+Object(a.toMsFromMpegTsClock)(K,!0)+", delta: "+Object(a.toMsFromMpegTsClock)(Oe,!0)+" ms")}}d&&(K=Math.max(0,K));for(var J=0,ve=0,_e=0;_e0?Ue-1:Ue].dts;if(Ie.stretchShortVideoTrack&&this.nextAudioPts!==null){var Be=Math.floor(Ie.maxBufferHole*L),We=(U?he+U*L:this.nextAudioPts)-ft.pts;We>Be?(I=We-Fe,I<0&&(I=Fe),e.logger.log("[mp4-remuxer]: It is approximately "+We/90+" ms to the next segment; using duration "+I/90+" ms for the last video frame.")):I=Fe}else I=Fe}var st=Math.round(ft.pts-ft.dts);V.push(new E(ft.key,I,yt,st))}if(V.length&&l&&l<70){var Dt=V[0].flags;Dt.dependsOn=2,Dt.isNonSync=0}console.assert(I!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=W=ee+I,this.isVideoContiguous=!0;var Ht=x.default.moof(S.sequenceNumber++,K,u({},S,{samples:V})),rn="video",Bt={data1:Ht,data2:Et,startPTS:he/L,endPTS:(de+I)/L,startDTS:K/L,endDTS:W/L,type:rn,hasAudio:!1,hasVideo:!0,nb:V.length,dropped:S.dropped};return S.samples=[],S.dropped=0,console.assert(Et.length,"MDAT length must not be zero"),Bt},M.remuxAudio=function(S,_,A,U,L){var N=S.inputTimeScale,V=S.samplerate?S.samplerate:N,H=N/V,D=S.isAAC?i:n,W=D*H,F=this._initPTS,I=!S.isAAC&&this.typeSupported.mpeg,K=[],ee=S.samples,he=I?0:8,de=this.nextAudioPts||-1,Se=_*N;if(this.isAudioContiguous=A=A||ee.length&&de>0&&(U&&Math.abs(Se-de)<9e3||Math.abs(c(ee[0].pts-F,Se)-de)<20*W),ee.forEach(function(Ge){Ge.pts=c(Ge.pts-F,Se)}),!A||de<0){if(ee=ee.filter(function(Ge){return Ge.pts>=0}),!ee.length)return;L===0?de=0:U?de=Math.max(0,Se):de=ee[0].pts}if(S.isAAC)for(var Te=L!==void 0,ce=this.config.maxAudioFramesDrift,be=0,Ee=de;be=ce*W&&me0){ve+=he;try{J=new Uint8Array(ve)}catch(Ge){this.observer.emit(O.Events.ERROR,O.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!I){var Et=new DataView(J.buffer);Et.setUint32(0,ve),J.set(x.default.types.mdat,4)}}else return;J.set(dt,he);var Ye=dt.byteLength;he+=Ye,K.push(new E(!0,D,Ye,0)),Q=mt}var Ue=K.length;if(!Ue)return;var ft=K[K.length-1];this.nextAudioPts=de=Q+H*ft.duration;var jt=I?new Uint8Array(0):x.default.moof(S.sequenceNumber++,te/H,u({},S,{samples:K}));S.samples=[];var yt=te/N,Pt=de/N,it="audio",He={data1:jt,data2:J,startPTS:yt,endPTS:Pt,startDTS:yt,endDTS:Pt,type:it,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(J.length,"MDAT length must not be zero"),He},M.remuxEmptyAudio=function(S,_,A,U){var L=S.inputTimeScale,N=S.samplerate?S.samplerate:L,V=L/N,H=this.nextAudioPts,D=(H!==null?H:U.startDTS*L)+this._initDTS,W=U.endDTS*L+this._initDTS,F=V*i,I=Math.ceil((W-D)/F),K=y.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!K){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],he=0;he4294967296;)R+=C;return R}function w(R){for(var M=0;M0?this.lastEndDTS=S:(O.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var _=!!R.audio,A=!!R.video,U="";_&&(U+="audio"),A&&(U+="video");var L={data1:E,startPTS:C,startDTS:C,endPTS:S,endDTS:S,type:U,hasAudio:_,hasVideo:A,nb:1,dropped:0};return w.audio=L.type==="audio"?L:void 0,w.video=L.type!=="audio"?L:void 0,w.text=h,w.id3=l,w.initSegment=v,w},a}(),e=function(u,r,i){return Object(y.getStartDTS)(u,r)-i};function f(a,u){var r=a==null?void 0:a.codec;return r&&r.length>4?r:r==="hvc1"?"hvc1.1.c.L120.90":r==="av01"?"av01.0.04M.08":r==="avc1"||u===x.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}g.default=m},"./src/task-loop.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return b});var b=function(){function y(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var x=y.prototype;return x.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},x.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},x.onHandlerDestroyed=function(){},x.hasInterval=function(){return!!this._tickInterval},x.hasNextTick=function(){return!!this._tickTimer},x.setInterval=function(m){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,m),!0)},x.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},x.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},x.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},x.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},x.doTick=function(){},y}()},"./src/types/cmcd.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"CMCDVersion",function(){return b}),T.d(g,"CMCDObjectType",function(){return y}),T.d(g,"CMCDStreamingFormat",function(){return x}),T.d(g,"CMCDStreamType",function(){return O});var b=1,y;(function(m){m.MANIFEST="m",m.AUDIO="a",m.VIDEO="v",m.MUXED="av",m.INIT="i",m.CAPTION="c",m.TIMED_TEXT="tt",m.KEY="k",m.OTHER="o"})(y||(y={}));var x;(function(m){m.DASH="d",m.HLS="h",m.SMOOTH="s",m.OTHER="o"})(x||(x={}));var O;(function(m){m.VOD="v",m.LIVE="l"})(O||(O={}))},"./src/types/level.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"HlsSkip",function(){return x}),T.d(g,"getSkipValue",function(){return O}),T.d(g,"HlsUrlParameters",function(){return m}),T.d(g,"Level",function(){return e});function b(f,a){for(var u=0;uNumber.MAX_SAFE_INTEGER?Infinity:a},m.hexadecimalInteger=function(f){if(this[f]){var a=(this[f]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var u=new Uint8Array(a.length/2),r=0;rNumber.MAX_SAFE_INTEGER?Infinity:a},m.decimalFloatingPoint=function(f){return parseFloat(this[f])},m.optionalFloat=function(f,a){var u=this[f];return u?parseFloat(u):a},m.enumeratedString=function(f){return this[f]},m.bool=function(f){return this[f]==="YES"},m.decimalResolution=function(f){var a=b.exec(this[f]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},O.parseAttrList=function(f){var a,u={},r='"';for(y.lastIndex=0;(a=y.exec(f))!==null;){var i=a[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1)),u[a[1]]=i}return u},O}()},"./src/utils/binary-search.ts":function(P,g,T){"use strict";T.r(g);var b={search:function(x,O){for(var m=0,e=x.length-1,f=null,a=null;m<=e;){f=(m+e)/2|0,a=x[f];var u=O(a);if(u>0)m=f+1;else if(u<0)e=f-1;else return a}return null}};g.default=b},"./src/utils/buffer-helper.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"BufferHelper",function(){return x});var b=T("./src/utils/logger.ts"),y={length:0,start:function(){return 0},end:function(){return 0}},x=function(){function O(){}return O.isBuffered=function(e,f){try{if(e){for(var a=O.getBuffered(e),u=0;u=a.start(u)&&f<=a.end(u))return!0}}catch(r){}return!1},O.bufferInfo=function(e,f,a){try{if(e){var u=O.getBuffered(e),r=[],i;for(i=0;in&&(u[i-1].end=e[r].end):u.push(e[r])}else u.push(e[r])}else u=e;for(var l=0,h,d=f,s=f,c=0;c=w&&f=A&&b.logger.log(this.time+" ["+A+"] "+U)},C}(),l=function(S){for(var _=[],A=0;Am&&(this.logger.log(i.DEBUG,"Too large cursor position "+this.pos),this.pos=m)},S.moveCursor=function(A){var U=this.pos+A;if(A>1)for(var L=this.pos+1;L=144&&this.backSpace();var U=x(A);if(this.pos>=m){this.logger.log(i.ERROR,"Cannot insert "+A.toString(16)+" ("+U+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(U,this.currPenState),this.moveCursor(1)},S.clearFromPos=function(A){var U;for(U=A;U0&&(A?L="["+U.join(" | ")+"]":L=U.join(` + timeOffset: `+L);var he=new O.TransmuxConfig(c,w,s,R,S);this.configureTransmuxer(he)}if(this.frag=E,this.part=v,U)U.postMessage({cmd:"demux",data:d,decryptdata:N,chunkMeta:C,state:ee},d instanceof ArrayBuffer?[d]:[]);else if(A){var de=A.push(d,N,C,ee);Object(O.isPromise)(de)?de.then(function(Se){_.handleTransmuxComplete(Se)}):this.handleTransmuxComplete(de)}},l.flush=function(d){var s=this;d.transmuxing.start=self.performance.now();var c=this.transmuxer,w=this.worker;if(w)w.postMessage({cmd:"flush",chunkMeta:d});else if(c){var E=c.flush(d);Object(O.isPromise)(E)?E.then(function(v){s.handleFlushResult(v,d)}):this.handleFlushResult(E,d)}},l.handleFlushResult=function(d,s){var c=this;d.forEach(function(w){c.handleTransmuxComplete(w)}),this.onFlush(s)},l.onWorkerMessage=function(d){var s=d.data,c=this.hls;switch(s.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(s.data);break}case"flush":{this.onFlush(s.data);break}default:{s.data=s.data||{},s.data.frag=this.frag,s.data.id=this.id,c.trigger(s.event,s.data);break}}},l.configureTransmuxer=function(d){var s=this.worker,c=this.transmuxer;s?s.postMessage({cmd:"configure",config:d}):c&&c.configure(d)},l.handleTransmuxComplete=function(d){d.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(d)},n}()},"./src/demux/transmuxer-worker.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return e});var b=T("./src/demux/transmuxer.ts"),y=T("./src/events.ts"),x=T("./src/utils/logger.ts"),O=T("./node_modules/eventemitter3/index.js"),m=T.n(O);function e(i){var n=new O.EventEmitter,l=function(d,s){i.postMessage({event:d,data:s})};n.on(y.Events.FRAG_DECRYPTED,l),n.on(y.Events.ERROR,l),i.addEventListener("message",function(h){var d=h.data;switch(d.cmd){case"init":{var s=JSON.parse(d.config);i.transmuxer=new b.default(n,d.typeSupported,s,d.vendor,d.id),Object(x.enableLogs)(s.debug),l("init",null);break}case"configure":{i.transmuxer.configure(d.config);break}case"demux":{var c=i.transmuxer.push(d.data,d.decryptdata,d.chunkMeta,d.state);Object(b.isPromise)(c)?c.then(function(v){f(i,v)}):f(i,c);break}case"flush":{var w=d.chunkMeta,E=i.transmuxer.flush(w);Object(b.isPromise)(E)?E.then(function(v){u(i,v,w)}):u(i,E,w);break}default:break}})}function f(i,n){if(r(n.remuxResult))return;var l=[],h=n.remuxResult,d=h.audio,s=h.video;d&&a(l,d),s&&a(l,s),i.postMessage({event:"transmuxComplete",data:n},l)}function a(i,n){n.data1&&i.push(n.data1.buffer),n.data2&&i.push(n.data2.buffer)}function u(i,n,l){n.forEach(function(h){f(i,h)}),i.postMessage({event:"flush",data:l})}function r(i){return!i.audio&&!i.video&&!i.text&&!i.id3&&!i.initSegment}},"./src/demux/transmuxer.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return s}),T.d(g,"isPromise",function(){return E}),T.d(g,"TransmuxConfig",function(){return v}),T.d(g,"TransmuxState",function(){return R});var b=T("./src/events.ts"),y=T("./src/errors.ts"),x=T("./src/crypt/decrypter.ts"),O=T("./src/demux/aacdemuxer.ts"),m=T("./src/demux/mp4demuxer.ts"),e=T("./src/demux/tsdemuxer.ts"),f=T("./src/demux/mp3demuxer.ts"),a=T("./src/remux/mp4-remuxer.ts"),u=T("./src/remux/passthrough-remuxer.ts"),r=T("./src/demux/chunk-cache.ts"),i=T("./src/utils/mp4-tools.ts"),n=T("./src/utils/logger.ts"),l;try{l=self.performance.now.bind(self.performance)}catch(M){n.logger.debug("Unable to use Performance API on this environment"),l=self.Date.now}var h=[{demux:e.default,remux:a.default},{demux:m.default,remux:u.default},{demux:O.default,remux:a.default},{demux:f.default,remux:a.default}],d=1024;h.forEach(function(M){var C=M.demux;d=Math.max(d,C.minProbeByteLength)});var s=function(){function M(S,_,A,U,L){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new r.default,this.observer=S,this.typeSupported=_,this.config=A,this.vendor=U,this.id=L}var C=M.prototype;return C.configure=function(_){this.transmuxConfig=_,this.decrypter&&this.decrypter.reset()},C.push=function(_,A,U,L){var N=this,V=U.transmuxing;V.executeStart=l();var H=new Uint8Array(_),D=this.cache,W=this.config,F=this.currentTransmuxState,I=this.transmuxConfig;L&&(this.currentTransmuxState=L);var K=c(H,A);if(K&&K.method==="AES-128"){var ee=this.getDecrypter();if(W.enableSoftwareAES){var he=ee.softwareDecrypt(H,K.key.buffer,K.iv.buffer);if(!he)return V.executeEnd=l(),w(U);H=new Uint8Array(he)}else return this.decryptionPromise=ee.webCryptoDecrypt(H,K.key.buffer,K.iv.buffer).then(function(te){var Q=N.push(te,null,U);return N.decryptionPromise=null,Q}),this.decryptionPromise}var de=L||F,Se=de.contiguous,Te=de.discontinuity,ce=de.trackSwitch,be=de.accurateTimeOffset,Ee=de.timeOffset,ue=I.audioCodec,le=I.videoCodec,$=I.defaultInitPts,me=I.duration,re=I.initSegmentData;if((Te||ce)&&this.resetInitSegment(re,ue,le,me),Te&&this.resetInitialTimestamp($),Se||this.resetContiguity(),this.needsProbing(H,Te,ce)){if(D.dataLength){var ae=D.flush();H=Object(i.appendUint8Array)(ae,H)}this.configureTransmuxer(H,I)}var Oe=this.transmux(H,K,Ee,be,U),se=this.currentTransmuxState;return se.contiguous=!0,se.discontinuity=!1,se.trackSwitch=!1,V.executeEnd=l(),Oe},C.flush=function(_){var A=this,U=_.transmuxing;U.executeStart=l();var L=this.decrypter,N=this.cache,V=this.currentTransmuxState,H=this.decryptionPromise;if(H)return H.then(function(){return A.flush(_)});var D=[],W=V.timeOffset;if(L){var F=L.flush();F&&D.push(this.push(F,null,_))}var I=N.dataLength;N.reset();var K=this.demuxer,ee=this.remuxer;if(!K||!ee)return I>=d&&this.observer.emit(b.Events.ERROR,b.Events.ERROR,{type:y.ErrorTypes.MEDIA_ERROR,details:y.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),U.executeEnd=l(),[w(_)];var he=K.flush(W);return E(he)?he.then(function(de){return A.flushRemux(D,de,_),D}):(this.flushRemux(D,he,_),D)},C.flushRemux=function(_,A,U){var L=A.audioTrack,N=A.avcTrack,V=A.id3Track,H=A.textTrack,D=this.currentTransmuxState,W=D.accurateTimeOffset,F=D.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+U.sn+(U.part>-1?" p: "+U.part:"")+" of level "+U.level);var I=this.remuxer.remux(L,N,V,H,F,W,!0,this.id);_.push({remuxResult:I,chunkMeta:U}),U.transmuxing.executeEnd=l()},C.resetInitialTimestamp=function(_){var A=this.demuxer,U=this.remuxer;if(!A||!U)return;A.resetTimeStamp(_),U.resetTimeStamp(_)},C.resetContiguity=function(){var _=this.demuxer,A=this.remuxer;if(!_||!A)return;_.resetContiguity(),A.resetNextTimestamp()},C.resetInitSegment=function(_,A,U,L){var N=this.demuxer,V=this.remuxer;if(!N||!V)return;N.resetInitSegment(A,U,L),V.resetInitSegment(_,A,U)},C.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},C.transmux=function(_,A,U,L,N){var V;return A&&A.method==="SAMPLE-AES"?V=this.transmuxSampleAes(_,A,U,L,N):V=this.transmuxUnencrypted(_,U,L,N),V},C.transmuxUnencrypted=function(_,A,U,L){var N=this.demuxer.demux(_,A,!1,!this.config.progressive),V=N.audioTrack,H=N.avcTrack,D=N.id3Track,W=N.textTrack,F=this.remuxer.remux(V,H,D,W,A,U,!1,this.id);return{remuxResult:F,chunkMeta:L}},C.transmuxSampleAes=function(_,A,U,L,N){var V=this;return this.demuxer.demuxSampleAes(_,A,U).then(function(H){var D=V.remuxer.remux(H.audioTrack,H.avcTrack,H.id3Track,H.textTrack,U,L,!1,V.id);return{remuxResult:D,chunkMeta:N}})},C.configureTransmuxer=function(_,A){for(var U=this.config,L=this.observer,N=this.typeSupported,V=this.vendor,H=A.audioCodec,D=A.defaultInitPts,W=A.duration,F=A.initSegmentData,I=A.videoCodec,K,ee=0,he=h.length;ee0&&C!=null&&C.key!=null&&C.iv!==null&&C.method!=null&&(S=C),S}var w=function(C){return{remuxResult:{},chunkMeta:C}};function E(M){return"then"in M&&M.then instanceof Function}var v=function(C,S,_,A,U){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=C,this.videoCodec=S,this.initSegmentData=_,this.duration=A,this.defaultInitPts=U},R=function(C,S,_,A,U){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=C,this.contiguous=S,this.accurateTimeOffset=_,this.trackSwitch=A,this.timeOffset=U}},"./src/demux/tsdemuxer.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"discardEPB",function(){return w});var b=T("./src/demux/adts.ts"),y=T("./src/demux/mpegaudio.ts"),x=T("./src/demux/exp-golomb.ts"),O=T("./src/demux/id3.ts"),m=T("./src/demux/sample-aes.ts"),e=T("./src/events.ts"),f=T("./src/utils/mp4-tools.ts"),a=T("./src/utils/logger.ts"),u=T("./src/errors.ts"),r={video:1,audio:2,id3:3,text:4},i=function(){function E(R,M,C){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=R,this.config=M,this.typeSupported=C}E.probe=function(M){var C=E.syncOffset(M);return C<0?!1:(C&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+C+", junk ahead ?"),!0)},E.syncOffset=function(M){for(var C=Math.min(1e3,M.length-3*188),S=0;S>4,ue=void 0;if(Ee>1){if(ue=Te+5+M[Te+4],ue===Te+188)continue}else ue=Te+4;switch(be){case V:ce&&(H&&(A=d(H))&&this.parseAVCPES(A,!1),H={data:[],size:0}),H&&(H.data.push(M.subarray(ue,Te+188)),H.size+=Te+188-ue);break;case D:ce&&(F&&(A=d(F))&&(L.isAAC?this.parseAACPES(A):this.parseMPEGPES(A)),F={data:[],size:0}),F&&(F.data.push(M.subarray(ue,Te+188)),F.size+=Te+188-ue);break;case W:ce&&(I&&(A=d(I))&&this.parseID3PES(A),I={data:[],size:0}),I&&(I.data.push(M.subarray(ue,Te+188)),I.size+=Te+188-ue);break;case 0:ce&&(ue+=M[ue]+1),he=this._pmtId=l(M,ue);break;case he:{ce&&(ue+=M[ue]+1);var le=h(M,ue,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,S);V=le.avc,V>0&&(U.pid=V),D=le.audio,D>0&&(L.pid=D,L.isAAC=le.isAAC),W=le.id3,W>0&&(N.pid=W),K&&!ee&&(a.logger.log("reparse from beginning"),K=!1,Te=Se-188),ee=this.pmtParsed=!0;break}case 17:case 8191:break;default:K=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});U.pesData=H,L.pesData=F,N.pesData=I;var $={audioTrack:L,avcTrack:U,id3Track:N,textTrack:this._txtTrack};return _&&this.extractRemainingSamples($),$},v.flush=function(){var M=this.remainderData;this.remainderData=null;var C;return M?C=this.demux(M,-1,!1,!0):C={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(C),this.sampleAes?this.decrypt(C,this.sampleAes):C},v.extractRemainingSamples=function(M){var C=M.audioTrack,S=M.avcTrack,_=M.id3Track,A=S.pesData,U=C.pesData,L=_.pesData,N;A&&(N=d(A))?(this.parseAVCPES(N,!0),S.pesData=null):S.pesData=A,U&&(N=d(U))?(C.isAAC?this.parseAACPES(N):this.parseMPEGPES(N),C.pesData=null):(U!=null&&U.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),C.pesData=U),L&&(N=d(L))?(this.parseID3PES(N),_.pesData=null):_.pesData=L},v.demuxSampleAes=function(M,C,S){var _=this.demux(M,S,!0,!this.config.progressive),A=this.sampleAes=new m.default(this.observer,this.config,C);return this.decrypt(_,A)},v.decrypt=function(M,C){return new Promise(function(S){var _=M.audioTrack,A=M.avcTrack;_.samples&&_.isAAC?C.decryptAacSamples(_.samples,0,function(){A.samples?C.decryptAvcSamples(A.samples,0,0,function(){S(M)}):S(M)}):A.samples&&C.decryptAvcSamples(A.samples,0,0,function(){S(M)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(M,C){var S=this,_=this._avcTrack,A=this.parseAVCNALu(M.data),U=!1,L=this.avcSample,N,V=!1;M.data=null,L&&A.length&&!_.audFound&&(s(L,_),L=this.avcSample=n(!1,M.pts,M.dts,"")),A.forEach(function(H){switch(H.type){case 1:{N=!0,L||(L=S.avcSample=n(!0,M.pts,M.dts,"")),U&&(L.debug+="NDR "),L.frame=!0;var D=H.data;if(V&&D.length>4){var W=new x.default(D).readSliceType();(W===2||W===4||W===7||W===9)&&(L.key=!0)}break}case 5:N=!0,L||(L=S.avcSample=n(!0,M.pts,M.dts,"")),U&&(L.debug+="IDR "),L.key=!0,L.frame=!0;break;case 6:{N=!0,U&&L&&(L.debug+="SEI ");var F=new x.default(w(H.data));F.readUByte();for(var I=0,K=0,ee=!1,he=0;!ee&&F.bytesAvailable>1;){I=0;do he=F.readUByte(),I+=he;while(he===255);K=0;do he=F.readUByte(),K+=he;while(he===255);if(I===4&&F.bytesAvailable!==0){ee=!0;var de=F.readUByte();if(de===181){var Se=F.readUShort();if(Se===49){var Te=F.readUInt();if(Te===1195456820){var ce=F.readUByte();if(ce===3){for(var be=F.readUByte(),Ee=F.readUByte(),ue=31&be,le=[be,Ee],$=0;$16){for(var me=[],re=0;re<16;re++)me.push(F.readUByte().toString(16)),(re===3||re===5||re===7||re===9)&&me.push("-");for(var ae=K-16,Oe=new Uint8Array(ae),se=0;se=0){var F={data:M.subarray(D,L-_-1),type:W};U.push(F)}else{var I=this.getLastNalUnit();if(I&&(A&&L<=4-A&&(I.state&&(I.data=I.data.subarray(0,I.data.byteLength-A))),V=L-_-1,V>0)){var K=new Uint8Array(I.data.byteLength+V);K.set(I.data,0),K.set(M.subarray(0,V),I.data.byteLength),I.data=K,I.state=0}}L=0&&_>=0){var ee={data:M.subarray(D,C),type:W,state:_};U.push(ee)}if(U.length===0){var he=this.getLastNalUnit();if(he){var de=new Uint8Array(he.data.byteLength+M.byteLength);de.set(he.data,0),de.set(M,he.data.byteLength),he.data=de}}return S.naluState=_,U},v.parseAACPES=function(M){var C=0,S=this._audioTrack,_=this.aacOverFlow,A=M.data;if(_){this.aacOverFlow=null;var U=_.sample.unit.byteLength,L=Math.min(_.missing,U),N=U-L;_.sample.unit.set(A.subarray(0,L),N),S.samples.push(_.sample),C=_.missing}var V,H;for(V=C,H=A.length;V1;){var U=new Uint8Array(A[0].length+A[1].length);U.set(A[0]),U.set(A[1],A[0].length),A[0]=U,A.splice(1,1)}R=A[0];var L=(R[0]<<16)+(R[1]<<8)+R[2];if(L===1){if(M=(R[4]<<8)+R[5],M&&M>E.size-6)return null;var N=R[7];N&192&&(S=(R[9]&14)*536870912+(R[10]&255)*4194304+(R[11]&254)*16384+(R[12]&255)*128+(R[13]&254)/2,N&64?(_=(R[14]&14)*536870912+(R[15]&255)*4194304+(R[16]&254)*16384+(R[17]&255)*128+(R[18]&254)/2,S-_>60*9e4&&(a.logger.warn(Math.round((S-_)/9e4)+"s delta between PTS and DTS, align them"),S=_)):_=S),C=R[8];var V=C+9;if(E.size<=V)return null;E.size-=V;for(var H=new Uint8Array(E.size),D=0,W=A.length;DF){V-=F;continue}else R=R.subarray(V),F-=V,V=0;H.set(R,v),v+=F}return M&&(M-=C+3),{data:H,pts:S,dts:_,len:M}}return null}function s(E,v){if(E.units.length&&E.frame){if(E.pts===void 0){var R=v.samples,M=R.length;if(M){var C=R[M-1];E.pts=C.pts,E.dts=C.dts}else{v.dropped++;return}}v.samples.push(E)}E.debug.length&&a.logger.log(E.pts+"/"+E.dts+":"+E.debug)}function c(E,v){var R=E.length;if(R>0){if(v.pts>=E[R-1].pts)E.push(v);else for(var M=R-1;M>=0;M--)if(v.ptsS)return A;return 0}},{key:"maxAutoLevel",get:function(){var C=this.levels,S=this.autoLevelCapping,_;return S===-1&&C&&C.length?_=C.length-1:_=S,_}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(C){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,C)}},{key:"audioTracks",get:function(){var C=this.audioTrackController;return C?C.audioTracks:[]}},{key:"audioTrack",get:function(){var C=this.audioTrackController;return C?C.audioTrack:-1},set:function(C){var S=this.audioTrackController;S&&(S.audioTrack=C)}},{key:"subtitleTracks",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var C=this.subtitleTrackController;return C?C.subtitleTrack:-1},set:function(C){var S=this.subtitleTrackController;S&&(S.subtitleTrack=C)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var C=this.subtitleTrackController;return C?C.subtitleDisplay:!1},set:function(C){var S=this.subtitleTrackController;S&&(S.subtitleDisplay=C)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(C){this.config.lowLatencyMode=C}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return d.Events}},{key:"ErrorTypes",get:function(){return s.ErrorTypes}},{key:"ErrorDetails",get:function(){return s.ErrorDetails}},{key:"DefaultConfig",get:function(){return v.defaultConfig?v.defaultConfig:n.hlsDefaultConfig},set:function(C){v.defaultConfig=C}}]),v}();E.defaultConfig=void 0},"./src/is-supported.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"isSupported",function(){return x}),T.d(g,"changeTypeSupported",function(){return O});var b=T("./src/utils/mediasource-helper.ts");function y(){return self.SourceBuffer||self.WebKitSourceBuffer}function x(){var m=Object(b.getMediaSource)();if(!m)return!1;var e=y(),f=m&&typeof m.isTypeSupported=="function"&&m.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!f&&!!a}function O(){var m,e=y();return typeof(e==null||((m=e.prototype)===null||m===void 0)?void 0:m.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return i}),T.d(g,"LoadError",function(){return l});var b=T("./src/polyfills/number.ts"),y=T("./src/errors.ts");function x(h,d){h.prototype=Object.create(d.prototype),h.prototype.constructor=h,a(h,d)}function O(h){var d=typeof Map=="function"?new Map:void 0;return O=function(c){if(c===null||!f(c))return c;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(typeof d!="undefined"){if(d.has(c))return d.get(c);d.set(c,w)}function w(){return m(c,arguments,u(this).constructor)}return w.prototype=Object.create(c.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),a(w,c)},O(h)}function m(h,d,s){return e()?m=Reflect.construct:m=function(w,E,v){var R=[null];R.push.apply(R,E);var M=Function.bind.apply(w,R),C=new M;return v&&a(C,v.prototype),C},m.apply(null,arguments)}function e(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(h){return!1}}function f(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function a(h,d){return a=Object.setPrototypeOf||function(c,w){return c.__proto__=w,c},a(h,d)}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},u(h)}var r=Math.pow(2,17),i=function(){function h(s){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=s}var d=h.prototype;return d.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},d.abort=function(){this.loader&&this.loader.abort()},d.load=function(c,w){var E=this,v=c.url;if(!v)return Promise.reject(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var R=this.config,M=R.fLoader,C=R.loader;return new Promise(function(S,_){E.loader&&E.loader.destroy();var A=E.loader=c.loader=M?new M(R):new C(R),U=n(c),L={timeout:R.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:R.fragLoadingMaxRetryTimeout,highWaterMark:r};c.stats=A.stats,A.load(U,L,{onSuccess:function(V,H,D,W){E.resetLoader(c,A),S({frag:c,part:null,payload:V.data,networkDetails:W})},onError:function(V,H,D){E.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,response:V,networkDetails:D}))},onAbort:function(V,H,D){E.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,networkDetails:D}))},onTimeout:function(V,H,D){E.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,networkDetails:D}))},onProgress:function(V,H,D,W){w&&w({frag:c,part:null,payload:D,networkDetails:W})}})})},d.loadPart=function(c,w,E){var v=this;this.abort();var R=this.config,M=R.fLoader,C=R.loader;return new Promise(function(S,_){v.loader&&v.loader.destroy();var A=v.loader=c.loader=M?new M(R):new C(R),U=n(c,w),L={timeout:R.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:R.fragLoadingMaxRetryTimeout,highWaterMark:r};w.stats=A.stats,A.load(U,L,{onSuccess:function(V,H,D,W){v.resetLoader(c,A),v.updateStatsFromPart(c,w);var F={frag:c,part:w,payload:V.data,networkDetails:W};E(F),S(F)},onError:function(V,H,D){v.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:c,part:w,response:V,networkDetails:D}))},onAbort:function(V,H,D){c.stats.aborted=w.stats.aborted,v.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:c,part:w,networkDetails:D}))},onTimeout:function(V,H,D){v.resetLoader(c,A),_(new l({type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:c,part:w,networkDetails:D}))}})})},d.updateStatsFromPart=function(c,w){var E=c.stats,v=w.stats,R=v.total;if(E.loaded+=v.loaded,R){var M=Math.round(c.duration/w.duration),C=Math.min(Math.round(E.loaded/R),M),S=M-C,_=S*Math.round(E.loaded/C);E.total=E.loaded+_}else E.total=Math.max(E.loaded,E.total);var A=E.loading,U=v.loading;A.start?A.first+=U.first-U.start:(A.start=U.start,A.first=U.first),A.end=U.end},d.resetLoader=function(c,w){c.loader=null,this.loader===w&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),w.destroy()},h}();function n(h,d){d===void 0&&(d=null);var s=d||h,c={frag:h,part:d,responseType:"arraybuffer",url:s.url,headers:{},rangeStart:0,rangeEnd:0},w=s.byteRangeStartOffset,E=s.byteRangeEndOffset;return Object(b.isFiniteNumber)(w)&&Object(b.isFiniteNumber)(E)&&(c.rangeStart=w,c.rangeEnd=E),c}var l=function(h){x(d,h);function d(s){for(var c,w=arguments.length,E=new Array(w>1?w-1:0),v=1;v>8*(15-R)&255;return v},c.setDecryptDataFromLevelKey=function(E,v){var R=E;return(E==null?void 0:E.method)==="AES-128"&&E.uri&&!E.iv&&(R=m.LevelKey.fromURI(E.uri),R.method=E.method,R.iv=this.createInitializationVector(v),R.keyFormat="identity"),R},c.setElementaryStreamInfo=function(E,v,R,M,C,S){S===void 0&&(S=!1);var _=this.elementaryStreams,A=_[E];if(!A){_[E]={startPTS:v,endPTS:R,startDTS:M,endDTS:C,partial:S};return}A.startPTS=Math.min(A.startPTS,v),A.endPTS=Math.max(A.endPTS,R),A.startDTS=Math.min(A.startDTS,M),A.endDTS=Math.max(A.endDTS,C)},c.clearElementaryStreamInfo=function(){var E=this.elementaryStreams;E[i.AUDIO]=null,E[i.VIDEO]=null,E[i.AUDIOVIDEO]=null},r(s,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var E=this.sn;typeof E!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&O.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),E=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,E)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(b.isFiniteNumber)(this.programDateTime))return null;var E=Object(b.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+E*1e3}},{key:"encrypted",get:function(){var E;return!!((E=this.decryptdata)!==null&&E!==void 0&&E.keyFormat&&this.decryptdata.uri)}}]),s}(n),h=function(d){f(s,d);function s(c,w,E,v,R){var M;M=d.call(this,E)||this,M.fragOffset=0,M.duration=0,M.gap=!1,M.independent=!1,M.relurl=void 0,M.fragment=void 0,M.index=void 0,M.stats=new e.LoadStats,M.duration=c.decimalFloatingPoint("DURATION"),M.gap=c.bool("GAP"),M.independent=c.bool("INDEPENDENT"),M.relurl=c.enumeratedString("URI"),M.fragment=w,M.index=v;var C=c.enumeratedString("BYTERANGE");return C&&M.setByteRange(C,R),R&&(M.fragOffset=R.fragOffset+R.duration),M}return r(s,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var w=this.elementaryStreams;return!!(w.audio||w.video||w.audiovideo)}}]),s}(n)},"./src/loader/key-loader.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return O});var b=T("./src/events.ts"),y=T("./src/errors.ts"),x=T("./src/utils/logger.ts"),O=function(){function m(f){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=f,this._registerListeners()}var e=m.prototype;return e._registerListeners=function(){this.hls.on(b.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(b.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var u=this.loaders[a];u&&u.destroy()}this.loaders={}},e.onKeyLoading=function(a,u){var r=u.frag,i=r.type,n=this.loaders[i];if(!r.decryptdata){x.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var l=r.decryptdata.uri;if(l!==this.decrypturl||this.decryptkey===null){var h=this.hls.config;if(n&&(x.logger.warn("abort previous key loader for type:"+i),n.abort()),!l){x.logger.warn("key uri is falsy");return}var d=h.loader,s=r.loader=this.loaders[i]=new d(h);this.decrypturl=l,this.decryptkey=null;var c={url:l,frag:r,responseType:"arraybuffer"},w={timeout:h.fragLoadingTimeOut,maxRetry:0,retryDelay:h.fragLoadingRetryDelay,maxRetryDelay:h.fragLoadingMaxRetryTimeout,highWaterMark:0},E={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};s.load(c,w,E)}else this.decryptkey&&(r.decryptdata.key=this.decryptkey,this.hls.trigger(b.Events.KEY_LOADED,{frag:r}))},e.loadsuccess=function(a,u,r){var i=r.frag;if(!i.decryptdata){x.logger.error("after key load, decryptdata unset");return}this.decryptkey=i.decryptdata.key=new Uint8Array(a.data),i.loader=null,delete this.loaders[i.type],this.hls.trigger(b.Events.KEY_LOADED,{frag:i})},e.loaderror=function(a,u){var r=u.frag,i=r.loader;i&&i.abort(),delete this.loaders[r.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:r,response:a})},e.loadtimeout=function(a,u){var r=u.frag,i=r.loader;i&&i.abort(),delete this.loaders[r.type],this.hls.trigger(b.Events.ERROR,{type:y.ErrorTypes.NETWORK_ERROR,details:y.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:r})},m}()},"./src/loader/level-details.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"LevelDetails",function(){return m});var b=T("./src/polyfills/number.ts");function y(e,f){for(var a=0;au.endSN||r>0||r===0&&i>0,this.updated||this.advanced?this.misses=Math.floor(u.misses*.6):this.misses=u.misses+1,this.availabilityDelay=u.availabilityDelay},x(e,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(b.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||O}},{key:"drift",get:function(){var u=this.driftEndTime-this.driftStartTime;if(u>0){var r=this.driftEnd-this.driftStart;return r*1e3/u}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var u;return(u=this.fragments)!==null&&u!==void 0&&u.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var u;return(u=this.partList)!==null&&u!==void 0&&u.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"LevelKey",function(){return m});var b=T("./node_modules/url-toolkit/src/url-toolkit.js"),y=T.n(b);function x(e,f){for(var a=0;a2){var _=S.shift()+".";return _+=parseInt(S.shift()).toString(16),_+=("000"+parseInt(S.shift()).toString(16)).substr(-4),_}return C},R.resolve=function(C,S){return y.buildAbsoluteURL(S,C,{alwaysNormalize:!0})},R.parseMasterPlaylist=function(C,S){var _=[],A={},U=!1;r.lastIndex=0;for(var L;(L=r.exec(C))!=null;)if(L[1]){var N=new f.AttrList(L[1]),V={attrs:N,bitrate:N.decimalInteger("AVERAGE-BANDWIDTH")||N.decimalInteger("BANDWIDTH"),name:N.NAME,url:R.resolve(L[2],S)},H=N.decimalResolution("RESOLUTION");H&&(V.width=H.width,V.height=H.height),c((N.CODECS||"").split(/[ ,]+/).filter(function(W){return W}),V),V.videoCodec&&V.videoCodec.indexOf("avc1")!==-1&&(V.videoCodec=R.convertAVC1ToAVCOTI(V.videoCodec)),_.push(V)}else if(L[3]){var D=new f.AttrList(L[3]);D["DATA-ID"]&&(U=!0,A[D["DATA-ID"]]=D)}return{levels:_,sessionData:U?A:null}},R.parseMasterPlaylistMedia=function(C,S,_,A){A===void 0&&(A=[]);var U,L=[],N=0;for(i.lastIndex=0;(U=i.exec(C))!==null;){var V=new f.AttrList(U[1]);if(V.TYPE===_){var H={attrs:V,bitrate:0,id:N++,groupId:V["GROUP-ID"],instreamId:V["INSTREAM-ID"],name:V.NAME||V.LANGUAGE||"",type:_,default:V.bool("DEFAULT"),autoselect:V.bool("AUTOSELECT"),forced:V.bool("FORCED"),lang:V.LANGUAGE,url:V.URI?R.resolve(V.URI,S):""};if(A.length){var D=R.findGroup(A,H.groupId)||A[0];w(H,D,"audioCodec"),w(H,D,"textCodec")}L.push(H)}}return L},R.parseLevelPlaylist=function(C,S,_,A,U){var L=new m.LevelDetails(S),N=L.fragments,V=null,H=0,D=0,W=0,F=0,I=null,K=new O.Fragment(A,S),ee,he,de,Se=-1,Te=!1;for(n.lastIndex=0,L.m3u8=C;(ee=n.exec(C))!==null;){Te&&(Te=!1,K=new O.Fragment(A,S),K.start=W,K.sn=H,K.cc=F,K.level=_,V&&(K.initSegment=V,K.rawProgramDateTime=V.rawProgramDateTime));var ce=ee[1];if(ce){K.duration=parseFloat(ce);var be=(" "+ee[2]).slice(1);K.title=be||null,K.tagList.push(be?["INF",ce,be]:["INF",ce])}else if(ee[3])Object(b.isFiniteNumber)(K.duration)&&(K.start=W,de&&(K.levelkey=de),K.sn=H,K.level=_,K.cc=F,K.urlId=U,N.push(K),K.relurl=(" "+ee[3]).slice(1),v(K,I),I=K,W+=K.duration,H++,D=0,Te=!0);else if(ee[4]){var Ee=(" "+ee[4]).slice(1);I?K.setByteRange(Ee,I):K.setByteRange(Ee)}else if(ee[5])K.rawProgramDateTime=(" "+ee[5]).slice(1),K.tagList.push(["PROGRAM-DATE-TIME",K.rawProgramDateTime]),Se===-1&&(Se=N.length);else{if(ee=ee[0].match(l),!ee){a.logger.warn("No matches on slow regex match for level playlist!");continue}for(he=1;he-1){a.logger.warn("Keyformat "+Qe+" is not supported from the manifest");continue}else if(Qe!=="identity")continue;Q&&(de=e.LevelKey.fromURL(S,J),J&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Q)>=0&&(de.method=Q,de.keyFormat=Qe,Ae&&(de.keyID=Ae),_e&&(de.keyFormatVersions=_e),de.iv=ve));break}case"START":{var dt=new f.AttrList(le),mt=dt.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(mt)&&(L.startTimeOffset=mt);break}case"MAP":{var vt=new f.AttrList(le);K.relurl=vt.URI,vt.BYTERANGE&&K.setByteRange(vt.BYTERANGE),K.level=_,K.sn="initSegment",de&&(K.levelkey=de),K.initSegment=null,V=K,Te=!0;break}case"SERVER-CONTROL":{var yt=new f.AttrList(le);L.canBlockReload=yt.bool("CAN-BLOCK-RELOAD"),L.canSkipUntil=yt.optionalFloat("CAN-SKIP-UNTIL",0),L.canSkipDateRanges=L.canSkipUntil>0&&yt.bool("CAN-SKIP-DATERANGES"),L.partHoldBack=yt.optionalFloat("PART-HOLD-BACK",0),L.holdBack=yt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ye=new f.AttrList(le);L.partTarget=Ye.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=L.partList;Ue||(Ue=L.partList=[]);var ft=D>0?Ue[Ue.length-1]:void 0,jt=D++,bt=new O.Part(new f.AttrList(le),K,S,jt,ft);Ue.push(bt),K.duration+=bt.duration;break}case"PRELOAD-HINT":{var Pt=new f.AttrList(le);L.preloadHint=Pt;break}case"RENDITION-REPORT":{var it=new f.AttrList(le);L.renditionReports=L.renditionReports||[],L.renditionReports.push(it);break}default:a.logger.warn("line parsed but not handled: "+ee);break}}}I&&!I.relurl?(N.pop(),W-=I.duration,L.partList&&(L.fragmentHint=I)):L.partList&&(v(K,I),K.cc=F,L.fragmentHint=K);var He=N.length,Ge=N[0],Ce=N[He-1];if(W+=L.skippedSegments*L.targetduration,W>0&&He&&Ce){L.averagetargetduration=W/He;var Ie=Ce.sn;L.endSN=Ie!=="initSegment"?Ie:0,Ge&&(L.startCC=Ge.cc,Ge.initSegment||L.fragments.every(function(Fe){return Fe.relurl&&d(Fe.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),K=new O.Fragment(A,S),K.relurl=Ce.relurl,K.level=_,K.sn="initSegment",Ge.initSegment=K,L.needSidxRanges=!0))}else L.endSN=0,L.startCC=0;return L.fragmentHint&&(W+=L.fragmentHint.duration),L.totalduration=W,L.endCC=F,Se>0&&E(N,Se),L},R}();function c(R,M){["video","audio","text"].forEach(function(C){var S=R.filter(function(A){return Object(u.isCodecType)(A,C)});if(S.length){var _=S.filter(function(A){return A.lastIndexOf("avc1",0)===0||A.lastIndexOf("mp4a",0)===0});M[C+"Codec"]=_.length>0?_[0]:S[0],R=R.filter(function(A){return S.indexOf(A)===-1})}}),M.unknownCodecs=R}function w(R,M,C){var S=M[C];S&&(R[C]=S)}function E(R,M){for(var C=R[M],S=M;S--;){var _=R[S];if(!_)return;_.programDateTime=C.programDateTime-_.duration*1e3,C=_}}function v(R,M){R.rawProgramDateTime?R.programDateTime=Date.parse(R.rawProgramDateTime):M!=null&&M.programDateTime&&(R.programDateTime=M.endProgramDateTime),Object(b.isFiniteNumber)(R.programDateTime)||(R.programDateTime=null,R.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/polyfills/number.ts"),y=T("./src/events.ts"),x=T("./src/errors.ts"),O=T("./src/utils/logger.ts"),m=T("./src/utils/mp4-tools.ts"),e=T("./src/loader/m3u8-parser.ts"),f=T("./src/types/loader.ts"),a=T("./src/utils/attr-list.ts");function u(n){var l=n.type;switch(l){case f.PlaylistContextType.AUDIO_TRACK:return f.PlaylistLevelType.AUDIO;case f.PlaylistContextType.SUBTITLE_TRACK:return f.PlaylistLevelType.SUBTITLE;default:return f.PlaylistLevelType.MAIN}}function r(n,l){var h=n.url;return(h===void 0||h.indexOf("data:")===0)&&(h=l.url),h}var i=function(){function n(h){this.hls=void 0,this.loaders=Object.create(null),this.hls=h,this.registerListeners()}var l=n.prototype;return l.registerListeners=function(){var d=this.hls;d.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.on(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.unregisterListeners=function(){var d=this.hls;d.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(y.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),d.off(y.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.createInternalLoader=function(d){var s=this.hls.config,c=s.pLoader,w=s.loader,E=c||w,v=new E(s);return d.loader=v,this.loaders[d.type]=v,v},l.getInternalLoader=function(d){return this.loaders[d.type]},l.resetInternalLoader=function(d){this.loaders[d]&&delete this.loaders[d]},l.destroyInternalLoaders=function(){for(var d in this.loaders){var s=this.loaders[d];s&&s.destroy(),this.resetInternalLoader(d)}},l.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},l.onManifestLoading=function(d,s){var c=s.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:f.PlaylistContextType.MANIFEST,url:c,deliveryDirectives:null})},l.onLevelLoading=function(d,s){var c=s.id,w=s.level,E=s.url,v=s.deliveryDirectives;this.load({id:c,groupId:null,level:w,responseType:"text",type:f.PlaylistContextType.LEVEL,url:E,deliveryDirectives:v})},l.onAudioTrackLoading=function(d,s){var c=s.id,w=s.groupId,E=s.url,v=s.deliveryDirectives;this.load({id:c,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.AUDIO_TRACK,url:E,deliveryDirectives:v})},l.onSubtitleTrackLoading=function(d,s){var c=s.id,w=s.groupId,E=s.url,v=s.deliveryDirectives;this.load({id:c,groupId:w,level:null,responseType:"text",type:f.PlaylistContextType.SUBTITLE_TRACK,url:E,deliveryDirectives:v})},l.load=function(d){var s,c=this.hls.config,w=this.getInternalLoader(d);if(w){var E=w.context;if(E&&E.url===d.url){O.logger.trace("[playlist-loader]: playlist request ongoing");return}O.logger.log("[playlist-loader]: aborting previous loader for type: "+d.type),w.abort()}var v,R,M,C;switch(d.type){case f.PlaylistContextType.MANIFEST:v=c.manifestLoadingMaxRetry,R=c.manifestLoadingTimeOut,M=c.manifestLoadingRetryDelay,C=c.manifestLoadingMaxRetryTimeout;break;case f.PlaylistContextType.LEVEL:case f.PlaylistContextType.AUDIO_TRACK:case f.PlaylistContextType.SUBTITLE_TRACK:v=0,R=c.levelLoadingTimeOut;break;default:v=c.levelLoadingMaxRetry,R=c.levelLoadingTimeOut,M=c.levelLoadingRetryDelay,C=c.levelLoadingMaxRetryTimeout;break}if(w=this.createInternalLoader(d),(s=d.deliveryDirectives)!==null&&s!==void 0&&s.part){var S;if(d.type===f.PlaylistContextType.LEVEL&&d.level!==null?S=this.hls.levels[d.level].details:d.type===f.PlaylistContextType.AUDIO_TRACK&&d.id!==null?S=this.hls.audioTracks[d.id].details:d.type===f.PlaylistContextType.SUBTITLE_TRACK&&d.id!==null&&(S=this.hls.subtitleTracks[d.id].details),S){var _=S.partTarget,A=S.targetduration;_&&A&&(R=Math.min(Math.max(_*3,A*.8)*1e3,R))}}var U={timeout:R,maxRetry:v,retryDelay:M,maxRetryDelay:C,highWaterMark:0},L={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};w.load(d,U,L)},l.loadsuccess=function(d,s,c,w){if(w===void 0&&(w=null),c.isSidxRequest){this.handleSidxRequest(d,c),this.handlePlaylistLoaded(d,s,c,w);return}this.resetInternalLoader(c.type);var E=d.data;if(E.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(d,c,"no EXTM3U delimiter",w);return}s.parsing.start=performance.now(),E.indexOf("#EXTINF:")>0||E.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(d,s,c,w):this.handleMasterPlaylist(d,s,c,w)},l.loaderror=function(d,s,c){c===void 0&&(c=null),this.handleNetworkError(s,c,!1,d)},l.loadtimeout=function(d,s,c){c===void 0&&(c=null),this.handleNetworkError(s,c,!0)},l.handleMasterPlaylist=function(d,s,c,w){var E=this.hls,v=d.data,R=r(d,c),M=e.default.parseMasterPlaylist(v,R),C=M.levels,S=M.sessionData;if(!C.length){this.handleManifestParsingError(d,c,"no level found in manifest",w);return}var _=C.map(function(H){return{id:H.attrs.AUDIO,audioCodec:H.audioCodec}}),A=C.map(function(H){return{id:H.attrs.SUBTITLES,textCodec:H.textCodec}}),U=e.default.parseMasterPlaylistMedia(v,R,"AUDIO",_),L=e.default.parseMasterPlaylistMedia(v,R,"SUBTITLES",A),N=e.default.parseMasterPlaylistMedia(v,R,"CLOSED-CAPTIONS");if(U.length){var V=U.some(function(H){return!H.url});!V&&C[0].audioCodec&&!C[0].attrs.AUDIO&&(O.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),U.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}E.trigger(y.Events.MANIFEST_LOADED,{levels:C,audioTracks:U,subtitles:L,captions:N,url:R,stats:s,networkDetails:w,sessionData:S})},l.handleTrackOrLevelPlaylist=function(d,s,c,w){var E=this.hls,v=c.id,R=c.level,M=c.type,C=r(d,c),S=Object(b.isFiniteNumber)(v)?v:0,_=Object(b.isFiniteNumber)(R)?R:S,A=u(c),U=e.default.parseLevelPlaylist(d.data,C,_,A,S);if(!U.fragments.length){E.trigger(y.Events.ERROR,{type:x.ErrorTypes.NETWORK_ERROR,details:x.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:C,reason:"no fragments found in level",level:typeof c.level=="number"?c.level:void 0});return}if(M===f.PlaylistContextType.MANIFEST){var L={attrs:new a.AttrList({}),bitrate:0,details:U,name:"",url:C};E.trigger(y.Events.MANIFEST_LOADED,{levels:[L],audioTracks:[],url:C,stats:s,networkDetails:w,sessionData:null})}if(s.parsing.end=performance.now(),U.needSidxRanges){var N,V=(N=U.fragments[0].initSegment)===null||N===void 0?void 0:N.url;this.load({url:V,isSidxRequest:!0,type:M,level:R,levelDetails:U,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}c.levelDetails=U,this.handlePlaylistLoaded(d,s,c,w)},l.handleSidxRequest=function(d,s){var c=Object(m.parseSegmentIndex)(new Uint8Array(d.data));if(!c)return;var w=c.references,E=s.levelDetails;w.forEach(function(v,R){var M=v.info,C=E.fragments[R];C.byteRange.length===0&&C.setByteRange(String(1+M.end-M.start)+"@"+String(M.start)),C.initSegment&&C.initSegment.setByteRange(String(c.moovEndOffset)+"@0")})},l.handleManifestParsingError=function(d,s,c,w){this.hls.trigger(y.Events.ERROR,{type:x.ErrorTypes.NETWORK_ERROR,details:x.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:s.type===f.PlaylistContextType.MANIFEST,url:d.url,reason:c,response:d,context:s,networkDetails:w})},l.handleNetworkError=function(d,s,c,w){c===void 0&&(c=!1),O.logger.warn("[playlist-loader]: A network "+(c?"timeout":"error")+" occurred while loading "+d.type+" level: "+d.level+" id: "+d.id+' group-id: "'+d.groupId+'"');var E=x.ErrorDetails.UNKNOWN,v=!1,R=this.getInternalLoader(d);switch(d.type){case f.PlaylistContextType.MANIFEST:E=c?x.ErrorDetails.MANIFEST_LOAD_TIMEOUT:x.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case f.PlaylistContextType.LEVEL:E=c?x.ErrorDetails.LEVEL_LOAD_TIMEOUT:x.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case f.PlaylistContextType.AUDIO_TRACK:E=c?x.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:x.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case f.PlaylistContextType.SUBTITLE_TRACK:E=c?x.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:x.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}R&&this.resetInternalLoader(d.type);var M={type:x.ErrorTypes.NETWORK_ERROR,details:E,fatal:v,url:d.url,loader:R,context:d,networkDetails:s};w&&(M.response=w),this.hls.trigger(y.Events.ERROR,M)},l.handlePlaylistLoaded=function(d,s,c,w){var E=c.type,v=c.level,R=c.id,M=c.groupId,C=c.loader,S=c.levelDetails,_=c.deliveryDirectives;if(!(S!=null&&S.targetduration)){this.handleManifestParsingError(d,c,"invalid target duration",w);return}if(!C)return;S.live&&(C.getCacheAge&&(S.ageHeader=C.getCacheAge()||0),(!C.getCacheAge||isNaN(S.ageHeader))&&(S.ageHeader=0));switch(E){case f.PlaylistContextType.MANIFEST:case f.PlaylistContextType.LEVEL:this.hls.trigger(y.Events.LEVEL_LOADED,{details:S,level:v||0,id:R||0,stats:s,networkDetails:w,deliveryDirectives:_});break;case f.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(y.Events.AUDIO_TRACK_LOADED,{details:S,id:R||0,groupId:M||"",stats:s,networkDetails:w,deliveryDirectives:_});break;case f.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(y.Events.SUBTITLE_TRACK_LOADED,{details:S,id:R||0,groupId:M||"",stats:s,networkDetails:w,deliveryDirectives:_});break}},n}();g.default=i},"./src/polyfills/number.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"isFiniteNumber",function(){return b}),T.d(g,"MAX_SAFE_INTEGER",function(){return y});var b=Number.isFinite||function(x){return typeof x=="number"&&isFinite(x)},y=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(P,g,T){"use strict";T.r(g);var b=function(){function y(){}return y.getSilentFrame=function(O,m){switch(O){case"mp4a.40.2":if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(m===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(m===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},y}();g.default=b},"./src/remux/mp4-generator.ts":function(P,g,T){"use strict";T.r(g);var b=Math.pow(2,32)-1,y=function(){function x(){}return x.init=function(){x.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var m;for(m in x.types)x.types.hasOwnProperty(m)&&(x.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.charCodeAt(3)]);var e=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),f=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);x.HDLR_TYPES={video:e,audio:f};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),u=new Uint8Array([0,0,0,0,0,0,0,0]);x.STTS=x.STSC=x.STCO=u,x.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),x.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),x.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),x.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var r=new Uint8Array([105,115,111,109]),i=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);x.FTYP=x.box(x.types.ftyp,r,n,r,i),x.DINF=x.box(x.types.dinf,x.box(x.types.dref,a))},x.box=function(m){for(var e=8,f=arguments.length,a=new Array(f>1?f-1:0),u=1;u>24&255,n[1]=e>>16&255,n[2]=e>>8&255,n[3]=e&255,n.set(m,4),r=0,e=8;r>24&255,m>>16&255,m>>8&255,m&255,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},x.mdia=function(m){return x.box(x.types.mdia,x.mdhd(m.timescale,m.duration),x.hdlr(m.type),x.minf(m))},x.mfhd=function(m){return x.box(x.types.mfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255]))},x.minf=function(m){return m.type==="audio"?x.box(x.types.minf,x.box(x.types.smhd,x.SMHD),x.DINF,x.stbl(m)):x.box(x.types.minf,x.box(x.types.vmhd,x.VMHD),x.DINF,x.stbl(m))},x.moof=function(m,e,f){return x.box(x.types.moof,x.mfhd(m),x.traf(f,e))},x.moov=function(m){for(var e=m.length,f=[];e--;)f[e]=x.trak(m[e]);return x.box.apply(null,[x.types.moov,x.mvhd(m[0].timescale,m[0].duration)].concat(f).concat(x.mvex(m)))},x.mvex=function(m){for(var e=m.length,f=[];e--;)f[e]=x.trex(m[e]);return x.box.apply(null,[x.types.mvex].concat(f))},x.mvhd=function(m,e){e*=m;var f=Math.floor(e/(b+1)),a=Math.floor(e%(b+1)),u=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,f>>24,f>>16&255,f>>8&255,f&255,a>>24,a>>16&255,a>>8&255,a&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return x.box(x.types.mvhd,u)},x.sdtp=function(m){var e=m.samples||[],f=new Uint8Array(4+e.length),a,u;for(a=0;a>>8&255),e.push(r&255),e=e.concat(Array.prototype.slice.call(u));for(a=0;a>>8&255),f.push(r&255),f=f.concat(Array.prototype.slice.call(u));var i=x.box(x.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|m.sps.length].concat(e).concat([m.pps.length]).concat(f))),n=m.width,l=m.height,h=m.pixelRatio[0],d=m.pixelRatio[1];return x.box(x.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>8&255,n&255,l>>8&255,l&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i,x.box(x.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),x.box(x.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,d>>24,d>>16&255,d>>8&255,d&255])))},x.esds=function(m){var e=m.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(m.config).concat([6,1,2]))},x.mp4a=function(m){var e=m.samplerate;return x.box(x.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),x.box(x.types.esds,x.esds(m)))},x.mp3=function(m){var e=m.samplerate;return x.box(x.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},x.stsd=function(m){return m.type==="audio"?!m.isAAC&&m.codec==="mp3"?x.box(x.types.stsd,x.STSD,x.mp3(m)):x.box(x.types.stsd,x.STSD,x.mp4a(m)):x.box(x.types.stsd,x.STSD,x.avc1(m))},x.tkhd=function(m){var e=m.id,f=m.duration*m.timescale,a=m.width,u=m.height,r=Math.floor(f/(b+1)),i=Math.floor(f%(b+1));return x.box(x.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,a&255,0,0,u>>8&255,u&255,0,0]))},x.traf=function(m,e){var f=x.sdtp(m),a=m.id,u=Math.floor(e/(b+1)),r=Math.floor(e%(b+1));return x.box(x.types.traf,x.box(x.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),x.box(x.types.tfdt,new Uint8Array([1,0,0,0,u>>24,u>>16&255,u>>8&255,u&255,r>>24,r>>16&255,r>>8&255,r&255])),x.trun(m,f.length+16+20+8+16+8+8),f)},x.trak=function(m){return m.duration=m.duration||4294967295,x.box(x.types.trak,x.tkhd(m),x.mdia(m))},x.trex=function(m){var e=m.id;return x.box(x.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},x.trun=function(m,e){var f=m.samples||[],a=f.length,u=12+16*a,r=new Uint8Array(u),i,n,l,h,d,s;for(e+=8+u,r.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),i=0;i>>24&255,l>>>16&255,l>>>8&255,l&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,d.degradPrio&240<<8,d.degradPrio&15,s>>>24&255,s>>>16&255,s>>>8&255,s&255],12+16*i);return x.box(x.types.trun,r)},x.initSegment=function(m){x.types||x.init();var e=x.moov(m),f=new Uint8Array(x.FTYP.byteLength+e.byteLength);return f.set(x.FTYP),f.set(e,x.FTYP.byteLength),f},x}();y.types=void 0,y.HDLR_TYPES=void 0,y.STTS=void 0,y.STSC=void 0,y.STCO=void 0,y.STSZ=void 0,y.VMHD=void 0,y.SMHD=void 0,y.STSD=void 0,y.FTYP=void 0,y.DINF=void 0,g.default=y},"./src/remux/mp4-remuxer.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return s}),T.d(g,"normalizePts",function(){return c});var b=T("./src/polyfills/number.ts"),y=T("./src/remux/aac-helper.ts"),x=T("./src/remux/mp4-generator.ts"),O=T("./src/events.ts"),m=T("./src/errors.ts"),e=T("./src/utils/logger.ts"),f=T("./src/types/loader.ts"),a=T("./src/utils/timescale-conversion.ts");function u(){return u=Object.assign||function(R){for(var M=1;M0?U:L.pts},S[0].pts);return _&&e.logger.debug("PTS rollover detected"),A},M.remux=function(S,_,A,U,L,N,V,H){var D,W,F,I,K,ee,he=L,de=L,Se=S.pid>-1,Te=_.pid>-1,ce=_.samples.length,be=S.samples.length>0,Ee=ce>1,ue=(!Se||be)&&(!Te||Ee)||this.ISGenerated||V;if(ue){this.ISGenerated||(F=this.generateIS(S,_,L));var le=this.isVideoContiguous,$=-1;if(Ee&&($=w(_.samples),!le&&this.config.forceKeyFrameOnDiscontinuity))if(ee=!0,$>0){e.logger.warn("[mp4-remuxer]: Dropped "+$+" out of "+ce+" video samples due to a missing keyframe");var me=this.getVideoStartPts(_.samples);_.samples=_.samples.slice($),_.dropped+=$,de+=(_.samples[0].pts-me)/(_.timescale||9e4)}else $===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+ce+" video samples"),ee=!1);if(this.ISGenerated){if(be&&Ee){var re=this.getVideoStartPts(_.samples),ae=c(S.samples[0].pts,re)-re,Oe=ae/_.inputTimeScale;he+=Math.max(0,Oe),de+=Math.max(0,-Oe)}if(be){if(S.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(S,_,L)),W=this.remuxAudio(S,he,this.isAudioContiguous,N,Te||Ee||H===f.PlaylistLevelType.AUDIO?de:void 0),Ee){var se=W?W.endPTS-W.startPTS:0;_.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(S,_,L)),D=this.remuxVideo(_,de,le,se)}}else Ee&&(D=this.remuxVideo(_,de,le,0));D&&(D.firstKeyFrame=$,D.independent=$!==-1)}}return this.ISGenerated&&(A.samples.length&&(K=this.remuxID3(A,L)),U.samples.length&&(I=this.remuxText(U,L))),{audio:W,video:D,initSegment:F,independent:ee,text:I,id3:K}},M.generateIS=function(S,_,A){var U=S.samples,L=_.samples,N=this.typeSupported,V={},H=!Object(b.isFiniteNumber)(this._initPTS),D="audio/mp4",W,F,I;if(H&&(W=F=Infinity),S.config&&U.length&&(S.timescale=S.samplerate,S.isAAC||(N.mpeg?(D="audio/mpeg",S.codec=""):N.mp3&&(S.codec="mp3")),V.audio={id:"audio",container:D,codec:S.codec,initSegment:!S.isAAC&&N.mpeg?new Uint8Array(0):x.default.initSegment([S]),metadata:{channelCount:S.channelCount}},H&&(I=S.inputTimeScale,W=F=U[0].pts-Math.round(I*A))),_.sps&&_.pps&&L.length&&(_.timescale=_.inputTimeScale,V.video={id:"main",container:"video/mp4",codec:_.codec,initSegment:x.default.initSegment([_]),metadata:{width:_.width,height:_.height}},H)){I=_.inputTimeScale;var K=this.getVideoStartPts(L),ee=Math.round(I*A);F=Math.min(F,c(L[0].dts,K)-ee),W=Math.min(W,K-ee)}if(Object.keys(V).length)return this.ISGenerated=!0,H&&(this._initPTS=W,this._initDTS=F),{tracks:V,initPTS:W,timescale:I}},M.remuxVideo=function(S,_,A,U){var L=S.inputTimeScale,N=S.samples,V=[],H=N.length,D=this._initPTS,W=this.nextAvcDts,F=8,I,K,ee,he=Number.POSITIVE_INFINITY,de=Number.NEGATIVE_INFINITY,Se=0,Te=!1;if(!A||W===null){var ce=_*L,be=N[0].pts-c(N[0].dts,N[0].pts);W=ce-be}for(var Ee=0;Eeue.pts){var le=9e4*.2;Se=Math.max(Math.min(Se,ue.pts-ue.dts),-1*le)}ue.dts0?Ee-1:Ee].dts&&(Te=!0)}Te&&N.sort(function(Ct,Ke){var et=Ct.dts-Ke.dts,at=Ct.pts-Ke.pts;return et||at}),K=N[0].dts,ee=N[N.length-1].dts;var $=Math.round((ee-K)/(H-1));if(Se<0){if(Se<$*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(a.toMsFromMpegTsClock)(-$,!0)+" ms");for(var me=Se,re=0;re$,te=Oe<-1;if(se||te){se?e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(Oe,!0)+" ms ("+Oe+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-Oe,!0)+" ms ("+Oe+"dts) overlapping between fragments detected"),K=W;var Q=N[0].pts-Oe;N[0].dts=K,N[0].pts=Q,e.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(Q,!0)+"/"+Object(a.toMsFromMpegTsClock)(K,!0)+", delta: "+Object(a.toMsFromMpegTsClock)(Oe,!0)+" ms")}}d&&(K=Math.max(0,K));for(var J=0,ve=0,_e=0;_e0?Ue-1:Ue].dts;if(Ie.stretchShortVideoTrack&&this.nextAudioPts!==null){var Be=Math.floor(Ie.maxBufferHole*L),We=(U?he+U*L:this.nextAudioPts)-ft.pts;We>Be?(I=We-Fe,I<0&&(I=Fe),e.logger.log("[mp4-remuxer]: It is approximately "+We/90+" ms to the next segment; using duration "+I/90+" ms for the last video frame.")):I=Fe}else I=Fe}var st=Math.round(ft.pts-ft.dts);V.push(new E(ft.key,I,bt,st))}if(V.length&&l&&l<70){var Dt=V[0].flags;Dt.dependsOn=2,Dt.isNonSync=0}console.assert(I!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=W=ee+I,this.isVideoContiguous=!0;var Ht=x.default.moof(S.sequenceNumber++,K,u({},S,{samples:V})),rn="video",Bt={data1:Ht,data2:yt,startPTS:he/L,endPTS:(de+I)/L,startDTS:K/L,endDTS:W/L,type:rn,hasAudio:!1,hasVideo:!0,nb:V.length,dropped:S.dropped};return S.samples=[],S.dropped=0,console.assert(yt.length,"MDAT length must not be zero"),Bt},M.remuxAudio=function(S,_,A,U,L){var N=S.inputTimeScale,V=S.samplerate?S.samplerate:N,H=N/V,D=S.isAAC?i:n,W=D*H,F=this._initPTS,I=!S.isAAC&&this.typeSupported.mpeg,K=[],ee=S.samples,he=I?0:8,de=this.nextAudioPts||-1,Se=_*N;if(this.isAudioContiguous=A=A||ee.length&&de>0&&(U&&Math.abs(Se-de)<9e3||Math.abs(c(ee[0].pts-F,Se)-de)<20*W),ee.forEach(function(Ge){Ge.pts=c(Ge.pts-F,Se)}),!A||de<0){if(ee=ee.filter(function(Ge){return Ge.pts>=0}),!ee.length)return;L===0?de=0:U?de=Math.max(0,Se):de=ee[0].pts}if(S.isAAC)for(var Te=L!==void 0,ce=this.config.maxAudioFramesDrift,be=0,Ee=de;be=ce*W&&me0){ve+=he;try{J=new Uint8Array(ve)}catch(Ge){this.observer.emit(O.Events.ERROR,O.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ve,reason:"fail allocating audio mdat "+ve});return}if(!I){var yt=new DataView(J.buffer);yt.setUint32(0,ve),J.set(x.default.types.mdat,4)}}else return;J.set(dt,he);var Ye=dt.byteLength;he+=Ye,K.push(new E(!0,D,Ye,0)),Q=mt}var Ue=K.length;if(!Ue)return;var ft=K[K.length-1];this.nextAudioPts=de=Q+H*ft.duration;var jt=I?new Uint8Array(0):x.default.moof(S.sequenceNumber++,te/H,u({},S,{samples:K}));S.samples=[];var bt=te/N,Pt=de/N,it="audio",He={data1:jt,data2:J,startPTS:bt,endPTS:Pt,startDTS:bt,endDTS:Pt,type:it,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(J.length,"MDAT length must not be zero"),He},M.remuxEmptyAudio=function(S,_,A,U){var L=S.inputTimeScale,N=S.samplerate?S.samplerate:L,V=L/N,H=this.nextAudioPts,D=(H!==null?H:U.startDTS*L)+this._initDTS,W=U.endDTS*L+this._initDTS,F=V*i,I=Math.ceil((W-D)/F),K=y.default.getSilentFrame(S.manifestCodec||S.codec,S.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!K){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var ee=[],he=0;he4294967296;)R+=C;return R}function w(R){for(var M=0;M0?this.lastEndDTS=S:(O.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var _=!!R.audio,A=!!R.video,U="";_&&(U+="audio"),A&&(U+="video");var L={data1:E,startPTS:C,startDTS:C,endPTS:S,endDTS:S,type:U,hasAudio:_,hasVideo:A,nb:1,dropped:0};return w.audio=L.type==="audio"?L:void 0,w.video=L.type!=="audio"?L:void 0,w.text=h,w.id3=l,w.initSegment=v,w},a}(),e=function(u,r,i){return Object(y.getStartDTS)(u,r)-i};function f(a,u){var r=a==null?void 0:a.codec;return r&&r.length>4?r:r==="hvc1"?"hvc1.1.c.L120.90":r==="av01"?"av01.0.04M.08":r==="avc1"||u===x.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}g.default=m},"./src/task-loop.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"default",function(){return b});var b=function(){function y(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var x=y.prototype;return x.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},x.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},x.onHandlerDestroyed=function(){},x.hasInterval=function(){return!!this._tickInterval},x.hasNextTick=function(){return!!this._tickTimer},x.setInterval=function(m){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,m),!0)},x.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},x.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},x.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},x.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},x.doTick=function(){},y}()},"./src/types/cmcd.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"CMCDVersion",function(){return b}),T.d(g,"CMCDObjectType",function(){return y}),T.d(g,"CMCDStreamingFormat",function(){return x}),T.d(g,"CMCDStreamType",function(){return O});var b=1,y;(function(m){m.MANIFEST="m",m.AUDIO="a",m.VIDEO="v",m.MUXED="av",m.INIT="i",m.CAPTION="c",m.TIMED_TEXT="tt",m.KEY="k",m.OTHER="o"})(y||(y={}));var x;(function(m){m.DASH="d",m.HLS="h",m.SMOOTH="s",m.OTHER="o"})(x||(x={}));var O;(function(m){m.VOD="v",m.LIVE="l"})(O||(O={}))},"./src/types/level.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"HlsSkip",function(){return x}),T.d(g,"getSkipValue",function(){return O}),T.d(g,"HlsUrlParameters",function(){return m}),T.d(g,"Level",function(){return e});function b(f,a){for(var u=0;uNumber.MAX_SAFE_INTEGER?Infinity:a},m.hexadecimalInteger=function(f){if(this[f]){var a=(this[f]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var u=new Uint8Array(a.length/2),r=0;rNumber.MAX_SAFE_INTEGER?Infinity:a},m.decimalFloatingPoint=function(f){return parseFloat(this[f])},m.optionalFloat=function(f,a){var u=this[f];return u?parseFloat(u):a},m.enumeratedString=function(f){return this[f]},m.bool=function(f){return this[f]==="YES"},m.decimalResolution=function(f){var a=b.exec(this[f]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},O.parseAttrList=function(f){var a,u={},r='"';for(y.lastIndex=0;(a=y.exec(f))!==null;){var i=a[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1)),u[a[1]]=i}return u},O}()},"./src/utils/binary-search.ts":function(P,g,T){"use strict";T.r(g);var b={search:function(x,O){for(var m=0,e=x.length-1,f=null,a=null;m<=e;){f=(m+e)/2|0,a=x[f];var u=O(a);if(u>0)m=f+1;else if(u<0)e=f-1;else return a}return null}};g.default=b},"./src/utils/buffer-helper.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"BufferHelper",function(){return x});var b=T("./src/utils/logger.ts"),y={length:0,start:function(){return 0},end:function(){return 0}},x=function(){function O(){}return O.isBuffered=function(e,f){try{if(e){for(var a=O.getBuffered(e),u=0;u=a.start(u)&&f<=a.end(u))return!0}}catch(r){}return!1},O.bufferInfo=function(e,f,a){try{if(e){var u=O.getBuffered(e),r=[],i;for(i=0;in&&(u[i-1].end=e[r].end):u.push(e[r])}else u.push(e[r])}else u=e;for(var l=0,h,d=f,s=f,c=0;c=w&&f=A&&b.logger.log(this.time+" ["+A+"] "+U)},C}(),l=function(S){for(var _=[],A=0;Am&&(this.logger.log(i.DEBUG,"Too large cursor position "+this.pos),this.pos=m)},S.moveCursor=function(A){var U=this.pos+A;if(A>1)for(var L=this.pos+1;L=144&&this.backSpace();var U=x(A);if(this.pos>=m){this.logger.log(i.ERROR,"Cannot insert "+A.toString(16)+" ("+U+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(U,this.currPenState),this.moveCursor(1)},S.clearFromPos=function(A){var U;for(U=A;U0&&(A?L="["+U.join(" | ")+"]":L=U.join(` `)),L},S.getTextAndFormat=function(){return this.rows},C}(),w=function(){function C(_,A,U){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=_,this.outputFilter=A,this.mode=null,this.verbose=0,this.displayedMemory=new c(U),this.nonDisplayedMemory=new c(U),this.lastOutputScreen=new c(U),this.currRollUpRow=this.displayedMemory.rows[O-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=U}var S=C.prototype;return S.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[O-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},S.getHandler=function(){return this.outputFilter},S.setHandler=function(A){this.outputFilter=A},S.setPAC=function(A){this.writeScreen.setPAC(A)},S.setBkgData=function(A){this.writeScreen.setBkgData(A)},S.setMode=function(A){if(A===this.mode)return;this.mode=A,this.logger.log(i.INFO,"MODE="+A),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=A},S.insertChars=function(A){for(var U=0;U=46,U.italics)U.foreground="white";else{var L=Math.floor(A/2)-16,N=["white","green","blue","cyan","red","yellow","magenta"];U.foreground=N[L]}this.logger.log(i.INFO,"MIDROW: "+JSON.stringify(U)),this.writeScreen.setPen(U)},S.outputDataUpdate=function(A){A===void 0&&(A=!1);var U=this.logger.time;if(U===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=U:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,U,this.lastOutputScreen),A&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:U),this.lastOutputScreen.copy(this.displayedMemory))},S.cueSplitAtTime=function(A){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,A,this.displayedMemory),this.cueStartTime=A))},C}(),E=function(){function C(_,A,U){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var L=new n;this.channels=[null,new w(_,A,L),new w(_+1,U,L)],this.cmdHistory=M(),this.logger=L}var S=C.prototype;return S.getHandler=function(A){return this.channels[A].getHandler()},S.setHandler=function(A,U){this.channels[A].setHandler(U)},S.addData=function(A,U){var L,N,V,H=!1;this.logger.time=A;for(var D=0;D ("+l([N,V])+")"),L=this.parseCmd(N,V),L||(L=this.parseMidrow(N,V)),L||(L=this.parsePAC(N,V)),L||(L=this.parseBackgroundAttributes(N,V)),!L&&(H=this.parseChars(N,V),H)){var W=this.currentChannel;if(W&&W>0){var F=this.channels[W];F.insertChars(H)}else this.logger.log(i.WARNING,"No channel found yet. TEXT-MODE?")}!L&&!H&&this.logger.log(i.WARNING,"Couldn't parse cleaned data "+l([N,V])+" orig: "+l([U[D],U[D+1]]))}},S.parseCmd=function(A,U){var L=this.cmdHistory,N=(A===20||A===28||A===21||A===29)&&U>=32&&U<=47,V=(A===23||A===31)&&U>=33&&U<=35;if(!(N||V))return!1;if(R(A,U,L))return v(null,null,L),this.logger.log(i.DEBUG,"Repeated command ("+l([A,U])+") is dropped"),!0;var H=A===20||A===21||A===23?1:2,D=this.channels[H];return A===20||A===21||A===28||A===29?U===32?D.ccRCL():U===33?D.ccBS():U===34?D.ccAOF():U===35?D.ccAON():U===36?D.ccDER():U===37?D.ccRU(2):U===38?D.ccRU(3):U===39?D.ccRU(4):U===40?D.ccFON():U===41?D.ccRDC():U===42?D.ccTR():U===43?D.ccRTD():U===44?D.ccEDM():U===45?D.ccCR():U===46?D.ccENM():U===47&&D.ccEOC():D.ccTO(U-32),v(A,U,L),this.currentChannel=H,!0},S.parseMidrow=function(A,U){var L=0;if((A===17||A===25)&&U>=32&&U<=47){if(A===17?L=1:L=2,L!==this.currentChannel)return this.logger.log(i.ERROR,"Mismatch channel in midrow parsing"),!1;var N=this.channels[L];return N?(N.ccMIDROW(U),this.logger.log(i.DEBUG,"MIDROW ("+l([A,U])+")"),!0):!1}return!1},S.parsePAC=function(A,U){var L,N=this.cmdHistory,V=(A>=17&&A<=23||A>=25&&A<=31)&&U>=64&&U<=127,H=(A===16||A===24)&&U>=64&&U<=95;if(!(V||H))return!1;if(R(A,U,N))return v(null,null,N),!0;var D=A<=23?1:2;U>=64&&U<=95?L=D===1?e[A]:a[A]:L=D===1?f[A]:u[A];var W=this.channels[D];return W?(W.setPAC(this.interpretPAC(L,U)),v(A,U,N),this.currentChannel=D,!0):!1},S.interpretPAC=function(A,U){var L,N={color:null,italics:!1,indent:null,underline:!1,row:A};return U>95?L=U-96:L=U-64,N.underline=(L&1)===1,L<=13?N.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(L/2)]:L<=15?(N.italics=!0,N.color="white"):N.indent=Math.floor((L-16)/2)*4,N},S.parseChars=function(A,U){var L,N=null,V=null;if(A>=25?(L=2,V=A-8):(L=1,V=A),V>=17&&V<=19){var H;V===17?H=U+80:V===18?H=U+112:H=U+144,this.logger.log(i.INFO,"Special char '"+x(H)+"' in channel "+L),N=[H]}else A>=32&&A<=127&&(N=U===0?[A]:[A,U]);if(N){var D=l(N);this.logger.log(i.DEBUG,"Char codes = "+D.join(",")),v(A,U,this.cmdHistory)}return N},S.parseBackgroundAttributes=function(A,U){var L=(A===16||A===24)&&U>=32&&U<=47,N=(A===23||A===31)&&U>=45&&U<=47;if(!(L||N))return!1;var V,H={};A===16||A===24?(V=Math.floor((U-32)/2),H.background=r[V],U%2===1&&(H.background=H.background+"_semi")):U===45?H.background="transparent":(H.foreground="black",U===47&&(H.underline=!0));var D=A<=23?1:2,W=this.channels[D];return W.setBkgData(H),v(A,U,this.cmdHistory),!0},S.reset=function(){for(var A=0;A=16?d--:d++;var v=Object(b.fixLineBreaks)(s.trim()),R=Object(y.generateCueId)(a,u,v);(!f||!f.cues||!f.cues.getCueById(R))&&(l=new c(a,u,v),l.id=R,l.line=w+1,l.align="left",l.position=10+Math.min(80,Math.floor(d*8/32)*10),i.push(l))}return f&&i.length&&(i.sort(function(M,C){return M.line==="auto"||C.line==="auto"?0:M.line>8&&C.line>8?C.line-M.line:M.line-C.line}),i.forEach(function(M){return Object(x.addCueToTrack)(f,M)})),i}};g.default=m},"./src/utils/discontinuities.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"findFirstFragWithCC",function(){return O}),T.d(g,"shouldAlignOnDiscontinuities",function(){return m}),T.d(g,"findDiscontinuousReferenceFrag",function(){return e}),T.d(g,"adjustSlidingStart",function(){return a}),T.d(g,"alignStream",function(){return u}),T.d(g,"alignPDT",function(){return i}),T.d(g,"alignFragmentByPDTDelta",function(){return n}),T.d(g,"alignMediaPlaylistByPDT",function(){return l});var b=T("./src/polyfills/number.ts"),y=T("./src/utils/logger.ts"),x=T("./src/controller/level-helper.ts");function O(h,d){for(var s=null,c=0,w=h.length;cs.startCC||h&&h.cc=this.minWeight_},O.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},O.destroy=function(){},x}();g.default=y},"./src/utils/ewma.ts":function(P,g,T){"use strict";T.r(g);var b=function(){function y(O,m,e){m===void 0&&(m=0),e===void 0&&(e=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=O,this.alpha_=O?Math.exp(Math.log(.5)/O):0,this.estimate_=m,this.totalWeight_=e}var x=y.prototype;return x.sample=function(m,e){var f=Math.pow(this.alpha_,m);this.estimate_=e*(1-f)+f*this.estimate_,this.totalWeight_+=m},x.getTotalWeight=function(){return this.totalWeight_},x.getEstimate=function(){if(this.alpha_){var m=1-Math.pow(this.alpha_,this.totalWeight_);if(m)return this.estimate_/m}return this.estimate_},y}();g.default=b},"./src/utils/fetch-loader.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"fetchSupported",function(){return n});var b=T("./src/polyfills/number.ts"),y=T("./src/loader/load-stats.ts"),x=T("./src/demux/chunk-cache.ts");function O(c,w){c.prototype=Object.create(w.prototype),c.prototype.constructor=c,u(c,w)}function m(c){var w=typeof Map=="function"?new Map:void 0;return m=function(v){if(v===null||!a(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w!="undefined"){if(w.has(v))return w.get(v);w.set(v,R)}function R(){return e(v,arguments,r(this).constructor)}return R.prototype=Object.create(v.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),u(R,v)},m(c)}function e(c,w,E){return f()?e=Reflect.construct:e=function(R,M,C){var S=[null];S.push.apply(S,M);var _=Function.bind.apply(R,S),A=new _;return C&&u(A,C.prototype),A},e.apply(null,arguments)}function f(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}function a(c){return Function.toString.call(c).indexOf("[native code]")!==-1}function u(c,w){return u=Object.setPrototypeOf||function(v,R){return v.__proto__=R,v},u(c,w)}function r(c){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},r(c)}function i(){return i=Object.assign||function(c){for(var w=1;w=C&&S(R,M,_.flush(),v)):S(R,M,V,v),L()}).catch(function(){return Promise.reject()})};return U()},c}();function h(c,w){var E={method:"GET",mode:"cors",credentials:"same-origin",signal:w,headers:new self.Headers(i({},c.headers))};return c.rangeEnd&&E.headers.set("Range","bytes="+c.rangeStart+"-"+String(c.rangeEnd-1)),E}function d(c,w){return new self.Request(c.url,w)}var s=function(c){O(w,c);function w(E,v,R){var M;return M=c.call(this,E)||this,M.code=void 0,M.details=void 0,M.code=v,M.details=R,M}return w}(m(Error));g.default=l},"./src/utils/imsc1-ttml-parser.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"IMSC1_CODEC",function(){return a}),T.d(g,"parseIMSC1",function(){return n});var b=T("./src/utils/mp4-tools.ts"),y=T("./src/utils/vttparser.ts"),x=T("./src/utils/vttcue.ts"),O=T("./src/demux/id3.ts"),m=T("./src/utils/timescale-conversion.ts"),e=T("./src/utils/webvtt-parser.ts");function f(){return f=Object.assign||function(C){for(var S=1;S"):b}function m(a){for(var u=arguments.length,r=new Array(u>1?u-1:0),i=1;i>24,w[E+1]=v>>16&255,w[E+2]=v>>8&255,w[E+3]=v&255}function u(w,E){var v=[];if(!E.length)return v;var R,M,C;"data"in w?(R=w.data,M=w.start,C=w.end):(R=w,M=0,C=R.byteLength);for(var S=M;S1?S+_:C;if(A===E[0])if(E.length===1)v.push({data:R,start:S+8,end:U});else{var L=u({data:R,start:S+8,end:U},E.slice(1));L.length&&O.apply(v,L)}S=U}return v}function r(w){var E=u(w,["moov"]),v=E[0],R=v?v.end:null,M=u(w,["sidx"]);if(!M||!M[0])return null;var C=[],S=M[0],_=S.data[0],A=_===0?8:16,U=f(S,A);A+=4;var L=0,N=0;_===0?A+=8:A+=16,A+=2;var V=S.end+N,H=e(S,A);A+=2;for(var D=0;D>>31;if(K===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ee=f(S,W);W+=4,C.push({referenceSize:I,subsegmentDuration:ee,info:{duration:ee/U,start:V,end:V+I-1}}),V+=I,W+=4,A=W}return{earliestPresentationTime:L,timescale:U,version:_,referencesCount:H,references:C,moovEndOffset:R}}function i(w){for(var E=[],v=u(w,["moov","trak"]),R=0;Rm)&&(this.startTime=m),this.endTime=e,this.screen=f,this.timelineController.createCaptionsTrack(this.trackName)},x.reset=function(){this.cueRanges=[]},y}()},"./src/utils/texttrack-utils.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"sendAddTrackEvent",function(){return y}),T.d(g,"addCueToTrack",function(){return x}),T.d(g,"clearCurrentCues",function(){return O}),T.d(g,"removeCuesInRange",function(){return m}),T.d(g,"getCuesInRange",function(){return f});var b=T("./src/utils/logger.ts");function y(a,u){var r;try{r=new Event("addtrack")}catch(i){r=document.createEvent("Event"),r.initEvent("addtrack",!1,!1)}r.track=a,u.dispatchEvent(r)}function x(a,u){var r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(u.id))try{if(a.addCue(u),!a.cues.getCueById(u.id))throw new Error("addCue is failed for: "+u)}catch(n){b.logger.debug("[texttrack-utils]: "+n);var i=new self.TextTrackCue(u.startTime,u.endTime,u.text);i.id=u.id,a.addCue(i)}r==="disabled"&&(a.mode=r)}function O(a){var u=a.mode;if(u==="disabled"&&(a.mode="hidden"),a.cues)for(var r=a.cues.length;r--;)a.removeCue(a.cues[r]);u==="disabled"&&(a.mode=u)}function m(a,u,r){var i=a.mode;if(i==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0)for(var n=f(a.cues,u,r),l=0;la[r].endTime)return-1;for(var i=0,n=r;i<=n;){var l=Math.floor((n+i)/2);if(ua[l].startTime&&i-1)for(var l=n,h=a.length;l=u&&d.endTime<=r)i.push(d);else if(d.startTime>r)return i}return i}},"./src/utils/time-ranges.ts":function(P,g,T){"use strict";T.r(g);var b={toString:function(x){for(var O="",m=x.length,e=0;e1?u-1:0),i=1;i100)throw new Error("Position must be between 0 and 100.");C=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",e({},n,{get:function(){return S},set:function(L){var N=m(L);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");S=N,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",e({},n,{get:function(){return _},set:function(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");_=L,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",e({},n,{get:function(){return A},set:function(L){var N=m(L);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");A=N,this.hasBeenReset=!0}})),i.displayState=void 0}return f.prototype.getCueAsHTML=function(){var a=self.WebVTT;return a.convertCueToDOMTree(self,this.text)},f}()},"./src/utils/vttparser.ts":function(P,g,T){"use strict";T.r(g),T.d(g,"parseTimeStamp",function(){return x}),T.d(g,"fixLineBreaks",function(){return u}),T.d(g,"VTTParser",function(){return r});var b=T("./src/utils/vttcue.ts"),y=function(){function i(){}var n=i.prototype;return n.decode=function(h,d){if(!h)return"";if(typeof h!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(h))},i}();function x(i){function n(h,d,s,c){return(h|0)*3600+(d|0)*60+(s|0)+parseFloat(c||0)}var l=i.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return l?parseFloat(l[2])>59?n(l[2],l[3],0,l[4]):n(l[1],l[2],l[3],l[4]):null}var O=function(){function i(){this.values=Object.create(null)}var n=i.prototype;return n.set=function(h,d){!this.get(h)&&d!==""&&(this.values[h]=d)},n.get=function(h,d,s){return s?this.has(h)?this.values[h]:d[s]:this.has(h)?this.values[h]:d},n.has=function(h){return h in this.values},n.alt=function(h,d,s){for(var c=0;c=0&&s<=100)return this.set(h,s),!0}return!1},i}();function m(i,n,l,h){var d=h?i.split(h):[i];for(var s in d){if(typeof d[s]!="string")continue;var c=d[s].split(l);if(c.length!==2)continue;var w=c[0],E=c[1];n(w,E)}}var e=new b.default(0,0,""),f=e.align==="middle"?"middle":"center";function a(i,n,l){var h=i;function d(){var w=x(i);if(w===null)throw new Error("Malformed timestamp: "+h);return i=i.replace(/^[^\sa-zA-Z-]+/,""),w}function s(w,E){var v=new O;m(w,function(C,S){var _;switch(C){case"region":for(var A=l.length-1;A>=0;A--)if(l[A].id===S){v.set(C,l[A].region);break}break;case"vertical":v.alt(C,S,["rl","lr"]);break;case"line":_=S.split(","),v.integer(C,_[0]),v.percent(C,_[0])&&v.set("snapToLines",!1),v.alt(C,_[0],["auto"]),_.length===2&&v.alt("lineAlign",_[1],["start",f,"end"]);break;case"position":_=S.split(","),v.percent(C,_[0]),_.length===2&&v.alt("positionAlign",_[1],["start",f,"end","line-left","line-right","auto"]);break;case"size":v.percent(C,S);break;case"align":v.alt(C,S,["start",f,"end","left","right"]);break}},/:/,/\s/),E.region=v.get("region",null),E.vertical=v.get("vertical","");var R=v.get("line","auto");R==="auto"&&e.line===-1&&(R=-1),E.line=R,E.lineAlign=v.get("lineAlign","start"),E.snapToLines=v.get("snapToLines",!0),E.size=v.get("size",100),E.align=v.get("align",f);var M=v.get("position","auto");M==="auto"&&e.position===50&&(M=E.align==="start"||E.align==="left"?0:E.align==="end"||E.align==="right"?100:50),E.position=M}function c(){i=i.replace(/^\s+/,"")}if(c(),n.startTime=d(),c(),i.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+h);i=i.substr(3),c(),n.endTime=d(),c(),s(i,n)}function u(i){return i.replace(//gi,` `)}var r=function(){function i(){this.state="INITIAL",this.buffer="",this.decoder=new y,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var n=i.prototype;return n.parse=function(h){var d=this;h&&(d.buffer+=d.decoder.decode(h,{stream:!0}));function s(){var M=d.buffer,C=0;for(M=u(M);C9?parseInt(h.substr(0,h.indexOf(":"))):0;if(!Object(b.isFiniteNumber)(d)||!Object(b.isFiniteNumber)(s)||!Object(b.isFiniteNumber)(c)||!Object(b.isFiniteNumber)(w))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+h);return d+=1e3*s,d+=60*1e3*c,d+=60*60*1e3*w,d},u=function(h){for(var d=5381,s=h.length;s;)d=d*33^h.charCodeAt(--s);return(d>>>0).toString()};function r(l,h,d){return u(l.toString())+u(h.toString())+u(d)}var i=function(h,d,s){var c=h[d],w=h[c.prevCC];if(!w||!w.new&&c.new){h.ccOffset=h.presentationOffset=c.start,c.new=!1;return}for(;(E=w)!==null&&E!==void 0&&E.new;){var E;h.ccOffset+=c.start-w.start,c.new=!1,c=w,w=h[c.prevCC]}h.presentationOffset=s};function n(l,h,d,s,c,w,E,v){var R=new y.VTTParser,M=Object(x.utf8ArrayToStr)(new Uint8Array(l)).trim().replace(e,` `).split(` `),C=[],S=Object(O.toMpegTsClockFromTimescale)(h,d),_="00:00.000",A=0,U=0,L,N=!0,V=!1;R.oncue=function(H){var D=s[c],W=s.ccOffset,F=(A-S)/9e4;if(D!=null&&D.new&&(U!==void 0?W=s.ccOffset=D.start:i(s,c,F)),F&&(W=F-s.presentationOffset),V){var I=H.endTime-H.startTime,K=Object(m.normalizePts)((H.startTime+W-U)*9e4,w*9e4)/9e4;H.startTime=K,H.endTime=K+I}var ee=H.text.trim();H.text=decodeURIComponent(encodeURIComponent(ee)),H.id||(H.id=r(H.startTime,H.endTime,ee)),H.endTime>0&&C.push(H)},R.onparsingerror=function(H){L=H},R.onflush=function(){if(L){v(L);return}E(C)},M.forEach(function(H){if(N)if(f(H,"X-TIMESTAMP-MAP=")){N=!1,V=!0,H.substr(16).split(",").forEach(function(D){f(D,"LOCAL:")?_=D.substr(6):f(D,"MPEGTS:")&&(A=parseInt(D.substr(7)))});try{U=a(_)/1e3}catch(D){V=!1,L=D}return}else H===""&&(N=!1);R.parse(H+` -`)}),R.flush()}},"./src/utils/xhr-loader.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/utils/logger.ts"),y=T("./src/loader/load-stats.ts"),x=/^age:\s*[\d.]+\s*$/m,O=function(){function m(f){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=f?f.xhrSetup:null,this.stats=new y.LoadStats,this.retryDelay=0}var e=m.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},e.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(a,u,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=u,this.callbacks=r,this.retryDelay=u.retryDelay,this.loadInternal()},e.loadInternal=function(){var a=this.config,u=this.context;if(!a)return;var r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0;var n=this.xhrSetup;try{if(n)try{n(r,u.url)}catch(d){r.open("GET",u.url,!0),n(r,u.url)}r.readyState||r.open("GET",u.url,!0);var l=this.context.headers;if(l)for(var h in l)r.setRequestHeader(h,l[h])}catch(d){this.callbacks.onError({code:r.status,text:d.message},u,r);return}u.rangeEnd&&r.setRequestHeader("Range","bytes="+u.rangeStart+"-"+(u.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=u.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),r.send()},e.readystatechange=function(){var a=this.context,u=this.loader,r=this.stats;if(!a||!u)return;var i=u.readyState,n=this.config;if(r.aborted)return;if(i>=2)if(self.clearTimeout(this.requestTimeout),r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start)),i===4){u.onreadystatechange=null,u.onprogress=null;var l=u.status;if(l>=200&&l<300){r.loading.end=Math.max(self.performance.now(),r.loading.first);var h,d;if(a.responseType==="arraybuffer"?(h=u.response,d=h.byteLength):(h=u.responseText,d=h.length),r.loaded=r.total=d,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(r,a,h,u),!this.callbacks)return;var c={url:u.responseURL,data:h};this.callbacks.onSuccess(c,r,a,u)}else r.retry>=n.maxRetry||l>=400&&l<499?(b.logger.error(l+" while loading "+a.url),this.callbacks.onError({code:l,text:u.statusText},a,u)):(b.logger.warn(l+" while loading "+a.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,n.maxRetryDelay),r.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},e.loadtimeout=function(){b.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(a){var u=this.stats;u.loaded=a.loaded,a.lengthComputable&&(u.total=a.total)},e.getCacheAge=function(){var a=null;if(this.loader&&x.test(this.loader.getAllResponseHeaders())){var u=this.loader.getResponseHeader("age");a=u?parseFloat(u):null}return a},m}();g.default=O}}).default})},vHTk:function(k,z,o){k.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:function(k,z,o){k.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},w7YG:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.StreamCipher,y=g.algo,x=y.RC4=b.extend({_doReset:function(){for(var e=this._key,f=e.words,a=e.sigBytes,u=this._S=[],r=0;r<256;r++)u[r]=r;for(var r=0,i=0;r<256;r++){var n=r%a,l=f[n>>>2]>>>24-n%4*8&255;i=(i+u[r]+l)%256;var h=u[r];u[r]=u[i],u[i]=h}this._i=this._j=0},_doProcessBlock:function(e,f){e[f]^=O.call(this)},keySize:256/32,ivSize:0});function O(){for(var e=this._S,f=this._i,a=this._j,u=0,r=0;r<4;r++){f=(f+1)%256,a=(a+e[f])%256;var i=e[f];e[f]=e[a],e[a]=i,u|=e[(e[f]+e[a])%256]<<24-r*8}return this._i=f,this._j=a,u}g.RC4=b._createHelper(x);var m=y.RC4Drop=x.extend({cfg:x.cfg.extend({drop:192}),_doReset:function(){x._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)O.call(this)}});g.RC4Drop=b._createHelper(m)}(),P.RC4})},wCXF:function(k,z,o){"use strict";o.d(z,"a",function(){return dt});var P=o("rePB"),g=o("VTBJ"),T=o("KQm4"),b=o("U8pU"),y=o("ODXe"),x=o("q1tI"),O=o("TSYQ"),m=o.n(O),e=o("Gytx"),f=o.n(e),a=o("Kwbf"),u=o("t23M"),r=o("qx4F"),i=o("6eGT"),n=o("IBYe"),l=o("Ff2n"),h=o("c+Xe"),d=o("fyJ8"),s=o("biw7");function c(Ye,Ue,ft,jt,yt){var Pt=ft[Ye]||{},it=ft[Ue]||{},He,Ge;Pt.fixed==="left"?He=jt.left[Ye]:it.fixed==="right"&&(Ge=jt.right[Ue]);var Ce=!1,Ie=!1,Fe=!1,Be=!1,We=ft[Ue+1],st=ft[Ye-1];if(yt==="rtl"){if(He!==void 0){var Dt=st&&st.fixed==="left";Be=!Dt}else if(Ge!==void 0){var Ht=We&&We.fixed==="right";Fe=!Ht}}else if(He!==void 0){var rn=We&&We.fixed==="left";Ce=!rn}else if(Ge!==void 0){var Bt=st&&st.fixed==="right";Ie=!Bt}return{fixLeft:He,fixRight:Ge,lastFixLeft:Ce,firstFixRight:Ie,lastFixRight:Fe,firstFixLeft:Be,isSticky:jt.isSticky}}var w=o("sR1s");function E(Ye){var Ue=Ye.cells,ft=Ye.stickyOffsets,jt=Ye.flattenColumns,yt=Ye.rowComponent,Pt=Ye.cellComponent,it=Ye.onHeaderRow,He=Ye.index,Ge=x.useContext(s.a),Ce=Ge.prefixCls,Ie=Ge.direction,Fe;it&&(Fe=it(Ue.map(function(We){return We.column}),He));var Be=Object(w.a)(Ue.map(function(We){return We.column}));return x.createElement(yt,Object.assign({},Fe),Ue.map(function(We,st){var Dt=We.column,Ht=c(We.colStart,We.colEnd,jt,ft,Ie),rn;return Dt&&Dt.onHeaderCell&&(rn=We.column.onHeaderCell(Dt)),x.createElement(d.a,Object.assign({},We,{ellipsis:Dt.ellipsis,align:Dt.align,component:Pt,prefixCls:Ce,key:Be[st]},Ht,{additionalProps:rn,rowType:"header"}))}))}E.displayName="HeaderRow";var v=E;function R(Ye){var Ue=[];function ft(it,He){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ue[Ge]=Ue[Ge]||[];var Ce=He,Ie=it.filter(Boolean).map(function(Fe){var Be={key:Fe.key,className:Fe.className||"",children:Fe.title,column:Fe,colStart:Ce},We=1,st=Fe.children;return st&&st.length>0&&(We=ft(st,Ce,Ge+1).reduce(function(Dt,Ht){return Dt+Ht},0),Be.hasSubColumns=!0),"colSpan"in Fe&&(We=Fe.colSpan),"rowSpan"in Fe&&(Be.rowSpan=Fe.rowSpan),Be.colSpan=We,Be.colEnd=Be.colStart+We-1,Ue[Ge].push(Be),Ce+=We,We});return Ie}ft(Ye,0);for(var jt=Ue.length,yt=function(He){Ue[He].forEach(function(Ge){!("rowSpan"in Ge)&&!Ge.hasSubColumns&&(Ge.rowSpan=jt-He)})},Pt=0;Pt=0;He-=1){var Ge=Ue[He],Ce=ft&&ft[He],Ie=Ce&&Ce[S.a];(Ge||Ie||it)&&(yt.unshift(x.createElement("col",Object.assign({key:He,style:{width:Ge,minWidth:Ge}},Ie))),it=!0)}return x.createElement("colgroup",null,yt)}var A=_;function U(Ye,Ue){return Object(x.useMemo)(function(){for(var ft=[],jt=0;jt1?oe-1:0),fe=1;fe=Fe&&(mn=Fe-Be),it({scrollLeft:mn/Fe*(Ie+2)}),Bt.current.x=ut.pageX},_t=function(){var ut=Object(J.b)(Pt.current).top,Ft=ut+Pt.current.offsetHeight,It=document.documentElement.scrollTop+window.innerHeight;Ft-Object(r.a)()<=It||ut>=It-He?rn(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!0})}):rn(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!1})})},Ot=function(ut){rn(function(Ft){return Object(g.a)(Object(g.a)({},Ft),{},{scrollLeft:ut/Ie*Fe||0})})};return x.useImperativeHandle(ft,function(){return{setScrollLeft:Ot}}),x.useEffect(function(){var Nt=Object(Q.a)(document.body,"mouseup",Pe,!1),ut=Object(Q.a)(document.body,"mousemove",ht,!1);return _t(),function(){Nt.remove(),ut.remove()}},[Be,et]),x.useEffect(function(){var Nt=Object(Q.a)(window,"scroll",_t,!1),ut=Object(Q.a)(window,"resize",_t,!1);return function(){Nt.remove(),ut.remove()}},[]),x.useEffect(function(){Ht.isHiddenScrollBar||rn(function(Nt){var ut,Ft;return Object(g.a)(Object(g.a)({},Nt),{},{scrollLeft:Pt.current.scrollLeft/((ut=Pt.current)===null||ut===void 0?void 0:ut.scrollWidth)*((Ft=Pt.current)===null||Ft===void 0?void 0:Ft.clientWidth)})})},[Ht.isHiddenScrollBar]),Ie<=Fe||!Be||Ht.isHiddenScrollBar?null:x.createElement("div",{style:{height:Object(r.a)(),width:Fe,bottom:He},className:"".concat(Ce,"-sticky-scroll")},x.createElement("div",{onMouseDown:Xe,ref:We,className:m()("".concat(Ce,"-sticky-scroll-bar"),Object(P.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),et)),style:{width:"".concat(Be,"px"),transform:"translate3d(".concat(Ht.scrollLeft,"px, 0, 0)")}}))},_e=x.forwardRef(ve);function Ae(Ye,Ue){return x.useMemo(function(){var ft=!!Ye;return{isSticky:ft,stickyClassName:ft?"".concat(Ue,"-sticky-header"):"",offsetHeader:Object(b.a)(Ye)==="object"&&Ye.offsetHeader||0,offsetScroll:Object(b.a)(Ye)==="object"&&Ye.offsetScroll||0}},[Ye,Ue])}var Qe=[],tt={},dt="rc-table-internal-hook",mt=x.memo(function(Ye){var Ue=Ye.children;return Ue},function(Ye,Ue){return f()(Ye.props,Ue.props)?Ye.pingLeft!==Ue.pingLeft||Ye.pingRight!==Ue.pingRight:!1});function vt(Ye){var Ue,ft=Ye.prefixCls,jt=Ye.className,yt=Ye.rowClassName,Pt=Ye.style,it=Ye.data,He=Ye.rowKey,Ge=Ye.scroll,Ce=Ye.tableLayout,Ie=Ye.direction,Fe=Ye.title,Be=Ye.footer,We=Ye.summary,st=Ye.id,Dt=Ye.showHeader,Ht=Ye.components,rn=Ye.emptyText,Bt=Ye.onRow,Ct=Ye.onHeaderRow,Ke=Ye.internalHooks,et=Ye.transformColumns,at=Ye.internalRefs,Pe=Ye.sticky,Xe=it||Qe,ht=!!Xe.length,_t=x.useState(0),Ot=Object(y.a)(_t,2),Nt=Ot[0],ut=Ot[1];x.useEffect(function(){ut(Object(r.a)())});var Ft=x.useMemo(function(){return Object(w.c)(Ht,{})},[Ht]),It=x.useCallback(function(Gt,Zt){return Object(w.b)(Ft,Gt)||Zt},[Ft]),on=x.useMemo(function(){return typeof He=="function"?He:function(Gt){var Zt=Gt&&Gt[He];return Zt}},[He]),mn=Object(S.c)(Ye),Hn=mn.expandIcon,Xn=mn.expandedRowKeys,Fn=mn.defaultExpandedRowKeys,xn=mn.defaultExpandAllRows,fr=mn.expandedRowRender,Yn=mn.onExpand,ar=mn.onExpandedRowsChange,nr=mn.expandRowByClick,Rr=mn.rowExpandable,pr=mn.expandIconColumnIndex,sn=mn.expandedRowClassName,qt=mn.childrenColumnName,On=mn.indentSize,Fr=Hn||se,Or=qt||"children",xr=x.useMemo(function(){return fr?"row":Ye.expandable&&Ke===dt&&Ye.expandable.__PARENT_RENDER_ICON__||Xe.some(function(Gt){return Gt&&Object(b.a)(Gt)==="object"&&Gt[Or]})?"nest":!1},[!!fr,Xe]),dr=x.useState(function(){return Fn||(xn?te(Xe,on,Or):[])}),pe=Object(y.a)(dr,2),X=pe[0],q=pe[1],oe=x.useMemo(function(){return new Set(Xn||X||[])},[Xn,X]),De=x.useCallback(function(Gt){var Zt=on(Gt,Xe.indexOf(Gt)),Jt,zn=oe.has(Zt);zn?(oe.delete(Zt),Jt=Object(T.a)(oe)):Jt=[].concat(Object(T.a)(oe),[Zt]),q(Jt),Yn&&Yn(!zn,Gt),ar&&ar(Jt)},[on,oe,Xe,Yn,ar]),fe=x.useState(0),ot=Object(y.a)(fe,2),Qt=ot[0],Mn=ot[1],Vn=Object(ce.b)(Object(g.a)(Object(g.a)(Object(g.a)({},Ye),mn),{},{expandable:!!fr,expandedKeys:oe,getRowKey:on,onTriggerExpand:De,expandIcon:Fr,expandIconColumnIndex:pr,direction:Ie}),Ke===dt?et:null),$t=Object(y.a)(Vn,2),gn=$t[0],pn=$t[1],Ar=x.useMemo(function(){return{columns:gn,flattenColumns:pn}},[gn,pn]),ra=x.useRef(),oa=x.useRef(),ir=x.useRef(),Ra=x.useState(!1),La=Object(y.a)(Ra,2),ca=La[0],Ka=La[1],wa=x.useState(!1),Ja=Object(y.a)(wa,2),ja=Ja[0],li=Ja[1],oi=ue(new Map),fa=Object(y.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(w.a)(pn),lt=xe.map(function(Gt){return ma.get(Gt)}),Rt=x.useMemo(function(){return lt},[lt.join("_")]),wt=me(Rt,pn.length,Ie),Kt=Ge&&Object(w.d)(Ge.y),Lt=Ge&&Object(w.d)(Ge.x),Xt=Lt&&pn.some(function(Gt){var Zt=Gt.fixed;return Zt}),nn=x.useRef(),yn=Ae(Pe,ft),vn=yn.isSticky,Nn=yn.offsetHeader,An=yn.offsetScroll,an=yn.stickyClassName,Pn,bn,kn;Kt&&(bn={overflowY:"scroll",maxHeight:Ge.y}),Lt&&(Pn={overflowX:"auto"},Kt||(bn={overflowY:"hidden"}),kn={width:Ge.x===!0?"auto":Ge.x,minWidth:"100%"});var Rn=x.useCallback(function(Gt,Zt){la(function(Jt){var zn=new Map(Jt);return zn.set(Gt,Zt),zn})},[]),Jn=le(null),mr=Object(y.a)(Jn,2),Br=mr[0],Sn=mr[1];function Yt(Gt,Zt){if(!Zt)return;typeof Zt=="function"?Zt(Gt):Zt.scrollLeft!==Gt&&(Zt.scrollLeft=Gt)}var dn=function(Zt){var Jt=Zt.currentTarget,zn=Zt.scrollLeft,$n=typeof zn=="number"?zn:Jt.scrollLeft,Ln=Jt||tt;if(!Sn()||Sn()===Ln){var rr;Br(Ln),Yt($n,oa.current),Yt($n,ir.current),Yt($n,(rr=nn.current)===null||rr===void 0?void 0:rr.setScrollLeft)}if(Jt){var cr=Jt.scrollWidth,sr=Jt.clientWidth;Ka($n>0),li($n0?[].concat(Object(g.a)(l),Object(g.a)(a(c).map(function(w){return Object(T.a)({fixed:s},w)}))):[].concat(Object(g.a)(l),[Object(T.a)(Object(T.a)({},h),{},{fixed:s})])},[])}function u(n){for(var l=!0,h=0;h=0;c-=1){var w=n[c];if(s&&w.fixed!=="right")s=!1;else if(!s&&w.fixed==="right"){Object(O.a)(!1,"Index ".concat(c+1," of `columns` missing `fixed='right'` prop."));break}}}function r(n){return n.map(function(l){var h=l.fixed,d=Object(b.a)(l,["fixed"]),s=h;return h==="left"?s="right":h==="right"&&(s="left"),Object(T.a)({fixed:s},d)})}function i(n,l){var h=n.prefixCls,d=n.columns,s=n.children,c=n.expandable,w=n.expandedKeys,E=n.getRowKey,v=n.onTriggerExpand,R=n.expandIcon,M=n.rowExpandable,C=n.expandIconColumnIndex,S=n.direction,_=n.expandRowByClick,A=y.useMemo(function(){return d||f(s)},[d,s]),U=y.useMemo(function(){if(c){var V,H=C||0,D=A[H],W=(V={},Object(P.a)(V,e.a,{className:"".concat(h,"-expand-icon-col")}),Object(P.a)(V,"title",""),Object(P.a)(V,"fixed",D?D.fixed:null),Object(P.a)(V,"className","".concat(h,"-row-expand-icon-cell")),Object(P.a)(V,"render",function(K,ee,he){var de=E(ee,he),Se=w.has(de),Te=M?M(ee):!0,ce=R({prefixCls:h,expanded:Se,expandable:Te,record:ee,onExpand:v});return _?y.createElement("span",{onClick:function(Ee){return Ee.stopPropagation()}},ce):ce}),V),F=A.slice();return H>=0&&F.splice(H,0,W),F}return A},[c,A,E,w,R,S]),L=y.useMemo(function(){var V=U;return l&&(V=l(V)),V.length||(V=[{render:function(){return null}}]),V},[l,U,S]),N=y.useMemo(function(){return S==="rtl"?r(a(L)):a(L)},[L,S]);return[L,N]}z.b=i},wZgz:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.BlockCipher,y=g.algo,x=[],O=[],m=[],e=[],f=[],a=[],u=[],r=[],i=[],n=[];(function(){for(var d=[],s=0;s<256;s++)s<128?d[s]=s<<1:d[s]=s<<1^283;for(var c=0,w=0,s=0;s<256;s++){var E=w^w<<1^w<<2^w<<3^w<<4;E=E>>>8^E&255^99,x[c]=E,O[E]=c;var v=d[c],R=d[v],M=d[R],C=d[E]*257^E*16843008;m[c]=C<<24|C>>>8,e[c]=C<<16|C>>>16,f[c]=C<<8|C>>>24,a[c]=C;var C=M*16843009^R*65537^v*257^c*16843008;u[E]=C<<24|C>>>8,r[E]=C<<16|C>>>16,i[E]=C<<8|C>>>24,n[E]=C,c?(c=v^d[d[d[M^v]]],w^=d[d[w]]):c=w=1}})();var l=[0,1,2,4,8,16,32,64,128,27,54],h=y.AES=b.extend({_doReset:function(){var d;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var s=this._keyPriorReset=this._key,c=s.words,w=s.sigBytes/4,E=this._nRounds=w+6,v=(E+1)*4,R=this._keySchedule=[],M=0;M6&&M%w==4&&(d=x[d>>>24]<<24|x[d>>>16&255]<<16|x[d>>>8&255]<<8|x[d&255]):(d=d<<8|d>>>24,d=x[d>>>24]<<24|x[d>>>16&255]<<16|x[d>>>8&255]<<8|x[d&255],d^=l[M/w|0]<<24),R[M]=R[M-w]^d);for(var C=this._invKeySchedule=[],S=0;S>>24]]^r[x[d>>>16&255]]^i[x[d>>>8&255]]^n[x[d&255]]}},encryptBlock:function(d,s){this._doCryptBlock(d,s,this._keySchedule,m,e,f,a,x)},decryptBlock:function(d,s){var c=d[s+1];d[s+1]=d[s+3],d[s+3]=c,this._doCryptBlock(d,s,this._invKeySchedule,u,r,i,n,O);var c=d[s+1];d[s+1]=d[s+3],d[s+3]=c},_doCryptBlock:function(d,s,c,w,E,v,R,M){for(var C=this._nRounds,S=d[s]^c[0],_=d[s+1]^c[1],A=d[s+2]^c[2],U=d[s+3]^c[3],L=4,N=1;N>>24]^E[_>>>16&255]^v[A>>>8&255]^R[U&255]^c[L++],H=w[_>>>24]^E[A>>>16&255]^v[U>>>8&255]^R[S&255]^c[L++],D=w[A>>>24]^E[U>>>16&255]^v[S>>>8&255]^R[_&255]^c[L++],W=w[U>>>24]^E[S>>>16&255]^v[_>>>8&255]^R[A&255]^c[L++];S=V,_=H,A=D,U=W}var V=(M[S>>>24]<<24|M[_>>>16&255]<<16|M[A>>>8&255]<<8|M[U&255])^c[L++],H=(M[_>>>24]<<24|M[A>>>16&255]<<16|M[U>>>8&255]<<8|M[S&255])^c[L++],D=(M[A>>>24]<<24|M[U>>>16&255]<<16|M[S>>>8&255]<<8|M[_&255])^c[L++],W=(M[U>>>24]<<24|M[S>>>16&255]<<16|M[_>>>8&255]<<8|M[A&255])^c[L++];d[s]=V,d[s+1]=H,d[s+2]=D,d[s+3]=W},keySize:256/32});g.AES=b._createHelper(h)}(),P.AES})},wbyO:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=g.enc,x=y.Base64url={stringify:function(m,e=!0){var f=m.words,a=m.sigBytes,u=e?this._safe_map:this._map;m.clamp();for(var r=[],i=0;i>>2]>>>24-i%4*8&255,l=f[i+1>>>2]>>>24-(i+1)%4*8&255,h=f[i+2>>>2]>>>24-(i+2)%4*8&255,d=n<<16|l<<8|h,s=0;s<4&&i+s*.75>>6*(3-s)&63));var c=u.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(m,e=!0){var f=m.length,a=e?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var r=0;r>>6-r%4*2,l=i|n;a[u>>>2]|=l<<24-u%4*8,u++}return b.create(a,u)}}(),P.enc.Base64url})},xiVL:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC"},xrsn:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",dropDown:"dropDown___3Phxo",line:"line___3lQ2g",subName:"subName___3sqtP",name:"name___1Odvx",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y0+3":function(k,z,o){"use strict";o.d(z,"a",function(){return a}),o.d(z,"b",function(){return r});var P=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function b(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function y(i,n,l){if(n=n.toLowerCase(),l==="auto"){if(n==="height")return i.offsetHeight;if(n==="width")return i.offsetWidth}return n in g||(g[n]=P.test(n)),g[n]?parseFloat(l)||0:l}function x(i,n){var l=arguments.length,h=b(i);return n=T[n]?"cssFloat"in i.style?"cssFloat":"styleFloat":n,l===1?h:y(i,n,h[n]||i.style[n])}function O(i,n,l){var h=arguments.length;if(n=T[n]?"cssFloat"in i.style?"cssFloat":"styleFloat":n,h===3)return typeof l=="number"&&P.test(n)&&(l="".concat(l,"px")),i.style[n]=l,l;for(var d in n)n.hasOwnProperty(d)&&O(i,d,n[d]);return b(i)}function m(i){return i===document.body?document.documentElement.clientWidth:i.offsetWidth}function e(i){return i===document.body?window.innerHeight||document.documentElement.clientHeight:i.offsetHeight}function f(){var i=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:n}}function a(){var i=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:n}}function u(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function r(i){var n=i.getBoundingClientRect(),l=document.documentElement;return{left:n.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}},yDYP:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1ns9C",flex_space_between:"flex_space_between___CtYWo",flex_box_vertical_center:"flex_box_vertical_center___1BY1r",flex_box_center_end:"flex_box_center_end___1f_qK",flex_box_column:"flex_box_column___vKDYT",commitWrap:"commitWrap___3D8wo",wrap:"wrap___3FqEy",colorGray:"colorGray___cRpZO",content:"content___3lBLc",itemTime:"itemTime___Tgw2b",imageUrl:"imageUrl___2Lb2n",blueLight:"blueLight___1hcIr",divider:"divider___3FYHo",empty:"empty___oYMsw"}},"yTi+":function(k,z,o){k.exports=o.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(k,z){k.exports="data:image/png;base64,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"},yslc:function(k,z){k.exports="data:image/png;base64,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"},z4EP:function(k,z){k.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAAA4CAYAAAAB3jHPAAAAAXNSR0IArs4c6QAAIABJREFUeF7dXQd4FdeV/ucJid5MMRgjRAeBBDZg0zFG9NiwMbis635O2WQ32WyS3Q1J1glxId6NU522ceLEsZMYMM1U0wWmG0RRo4MkRC+mCklv9rvn3nPLvHlPT5RsvM9F0nsz86b885///OfcOx5u8cv3/RQcX3pvtDo6zPf8HhGgh+957eH7jQE09oG0sK/0oj48AD7959Mv9Lcv3uGfPnw/av6mhcV7wWXE21H9mbuO2LbcPvwoLecuq7bn+/Cs7YvvCC7H+yW/3wfoK+X2ffkHomrf6DvlCnp/5d9R2hVP/ONX0++IelBffouvzl9/c+Ia3vTL97elVpccm+B73lOe748G0NSPyE2L/4sLxX8n+jIGmVhGnOqIvibxQCYvWHyQic8EgBRs1QX31Dp0NaPiAjPQzLYYKLTvBFb5UwPIArUEHwNW/pRYksvLRRnY7rHQGSKQiRtMgEwC7v8LyG4KYH7JhvrR6Kmv+PC/Bngt6Bx7HiIKRRpkgo3EeRT/q+EViSpUWUwmrw/xmgSUuBzMGvrimgtHF1WxoASEYilx3RRYQIzpw4/ythIzmQGZzWSGgSSQGKAMNrOv4jPNyAHG1cymcBgRgFe/S6r95L5qvuIhxybCYOWRec/5iE73/Eg7zxOXCpCk5SEaBjLeTg0gE+xCoYnDpbowElvhIKOLR9fWDZcmdAoGYiazlhPrKYDJC1odw1KGyWRYNaxkMafar8Qgk+smBBndOPLYI5oFxRqSET+Jr1oD7Nr+WeM9Dz+A52USvXsRGQYVcPjnXwdkHLI4BBnwxOoyBoQLNGIyBUy5ThQ+hc2wcGmzVOB3ZlmHyezwLZdPlsmktFChljTZJxNkSQPM933v2v7ZL8Hzvym0Av1LoKJfpH6wQOaESys86i+8ZUxmAMPiPT6TmXBpL2ODTIbfBJqMQrhkmjA2c4AdBBuH9hjBb+k0Sw5IDfrJBllSAPNPzmx09Vz0bXiYROCKSEDZIGOwJQ8yuX6ilx0u6TTrcKkuML1nZZX6AsZml+6FNwDi9wXIOGFwQKYBZWeXsUwWT/zrBESHb7MuwYfCuwGtBBQLfw8R1pp0qJ88JqsRYFcL/5wR9bwFgJ/lhMH/A5AZka80mtZk8qLoEBejyZhxrAsZZCl5tU1WSiFSAfFGQGbpsppAxuBknamFPWWUAmQWkxn1/4mQZAkBJsBVjehmwGttg4t/N0wmwqMU+LclXCqPjM8o3fUqDWBLSzKZAJnyv1QWyRdXZ6J2FqptBItVRMYb1GSOp3aLmExnupZtEZNdCiYTho1hsk9adhkXYP6emY0uoWIDPGQRaISYDwh5T6SNSn/JZf46IKP7WmfvwsxU0COQsSdlrAoDMs4E1U9lhrKJqpkkCDICosgwXSuEQnZAZ7mZpNFWTggNhEt7u2645HRa3jz6M06xPwEWRijAhKC/mP/WXACTJHBYc0mgEYwEmuhfW5MZkIVpMlJLbGHECP8kNJnFZOQUKbdf/GJAxiCIx2TxQMamqO3021aEBJiuClCmqXSheD8QRm1AJRL+8jNXlxmvTyNJak1fnG07zP/ta7JQgH28+82Xoz6+ScAiIHGGqMBmgYzyyEhEHLvOKpNmMnFqleOvuE86sglebknJFv5SMMvIGdBaivGYXVwTlpnOACycyZSXRuasSSz0sqzfFFhimYxZM+Cf6dKSsjBivD4XZL4CGZnE4qSLQ/0btjBiruaFXb8d70exWLjuDDDNRgSGeOEyEsgqJWTkuiK8ynMRUaasdvwDTEZGZJIg09LXMmODtT9bk9lmbLgmY4vCrUcaNrLd/hCQsXEbB2Qs4sPCpc1kFHaDN4oKh/J4DJOZKPm36fg7APP9mSkf513c5QOZlCkHQWYzmgIah0sOmWGaTLOgIngBssThUobShExmOf7V5HybE+yarMaMZebSmswW1VoXxTKZW/R2QcbfRYmHbXVwomCFv1B/zqqlxgeZKfZL3ElNxhaGOfS/PZA5V/H89l897/uRN0hnCaaRFr3DZAwWky0aTeaATJmwHC7lZ9L1Z1AyyLgSQN+nCuRK4CUEmQCKSOGl/y6zP2JAfffzxWBGMp0afnUV7Y9x7LneaXdhJMlkliXBpSfHmkgAsqCFcSMg0zeO1AfOOau6fg3RaDXS6jVMfC5v06caYH7JzPpnT5zd5wHtZMYoQRbGZC7IZHbpZJgWMGWYVEC1WE8CVPnUIcKfQVjTcduajLNLApnDaAJ+gnmAotyF2LNiFjr3fxB9Jz5t1S/t7DMWZGJ7BGbNOCqrDNY4o1FdFxWAF8wWFPJBJosFmQm/drg8f/wIGrVsi5SUOkpqiuUiqm7J+6/aVwCU78tDwYeLcMddnXDPmCdqOpW35XMNsNNbfjHN8/AK66abBdmxoo9wrDgvEOm4tGQzlbrnFOBijzI2u2yX2R93975PL+qCzGYyRW9W68zZsgNY8qN/Q4Omd2DytF9KFgv2lFn9XDoxUMtQWNKFdQ6Xpi2H2EQkATF+mqlFhoVoThykucvMazy58n07kZ87B42a34neox5Fg8bNFchI5RPIJJMJbUNfjurKCqyf9TNUVVZg6JQvoW7DJrcFRAmlDJHqtl+nno1WlvvwWhg2YjHPTCZDpiP8HU3m+mT5K2Ziz6o5t+WAssc9jj4TnjLb9oGj23NRceUiJ/GWT2YtpnyyncveRcWlj9Fr1KfRoMkdMa0xhv1kxpdarxEBmtlLel9cjpIemQ0a+igalQ68ZdoGGx+dTJPbixy7QxW4fR8Xzx7HrhV/wZXzZ1AnrS6yRj2GO+7qSAcXra6yeskUyNSZ2Ld1JUoKt6JT32HIyB4S93p4kZTbcq2IwU5ven2SD3+ebUkYH8uEyzBNZms0zjDFewJg+avm4O5eA5DRb4RVGFeGv+oaY2+WXHg2cvlQbYXoeTi0eRWO7tqIGIABWPjql3Cu7NBtOUlN26RjzD+9bJjOMVi56B0AmQqloV2xHMId8CntRO1DdoYq2VD8T+ipgtz5OHFwDyIpKej1wCNo1Lw1Ns5+/aaPe+RT/45IndSb3k5wA3QJT278yWzAeyToexmLQRmsJPxNkTt0eQp1EeSvnEUA6zn8Yck2QZ9MLcdajGMpg0ykDvxdpMcAbF/we+SvfC8hwDIfmIT6jZur+5dgq4+ZIocMJNork5dON5/JsKPWuXbxPIrXL0azNukY/c+vOGxELr4Ag9qWdPqTSRBUqFTtQE64pOgrQ6Q0VlnzGVNXfEfxxiUo2bMJd/fsjw7ZQ7B75UznulZWXMXVi+eRkpqKhk1aJAWaeyc8q7VdUiskuZAnrIlTm46d8X2vaVj4MyBTITAOyFxDNoICAbDVc9Fj+EPoO14AzMPl8yfVbrHwJ/WgEwQj/CV1UX5aJwUNm7emv3cseBP5K+ckBNjD015H8zs7KKCQtKdwaQt/R3RzaCLt5JaCLpw4iiU//jcC2JgvzYhx67lUJNaT0TBxw6IJq4qlCFBu35lt8saEVCsbPXW4EK06dDft2Ax0+Mhb9icIrdlzyETc1fVevns0JC5fOI2GTVsmCZGbW8w7veGn90Wj0c1R8kkD5qplUUizNHmQCaYpUADrM+5JAtF7059D5bWrtdrjuo2aYOrL7yQNsIemvY5mbTK0L6Y8fZnZWcwlk0yT4UmcuSATWZsB2PcVg8UarNqasHrJXO0lQSTHAnBTZPz+ftozShRY60kG41KVkyVbWapYr6xoG4o+XISmd96NAROeVQ0AOl9H8aZlKC3ahsxhD6Ft5+xaXYsbWdg7te5HX/WB1wR7ULtRHHM1GC6pxGMVv4PsV7BKAGweegx7CH3GP0n7tundn6G68rruA6PD9qMoK/iIPhfZYUSJTfazUhs0xJAnvkIlJc1gYx9Dn4lPO8d7YPMKXLt0AV0G5uDkwULsXPx2gnb2cENSv+v76D1qClp3zMSBbatRr2ETZNw73LIoQrpiVX+/xHCicJkcyAyTSZCdPLgbldcr0LZbX2PBKJ0nv9PH1UvnsHnOLxCtqsKASZ9DozvuDLRe+zh7bD92LP8LIil1MGDic5SV3s6XdzL3td/4nvcZZVbFZIqxwt8wWSKQEcDWzEf3YZ8CM5g4EOOhyd8F4GZ+SwLw8Rl/Rp20erI9RYFXtF4rcwPbFwoNNgfZAmCk68Ld/oObV+DDd358U+ftvkc+hy73jQ5YGMw6bmGcmdEwWe1B5pSPNFtJ5rt05jg+fPcnpPEy+g5DV7Ffss1AgR6orLiC7Yv/gItnytH1/jFI7zVQq0+3v9/Hoby1OJi3Dg0aN0P/h55Halq9mzpXiVb2Tqx9LRcehuleLsFkEVEzDLTn6JYdqY4kY0VksVpd6EjEuPqFq+dogGWP/fsQM1bqsOoqATBpOTw+409ISa0nt6vASCynQLbj/d9T4iAAlj3hKVkVCAGZcOmrBFPKKKjD5enSA9j9wbso37sTaQ0aYcCk59E+a6DVqGjCZp3UNFDqrkMa67M4o49U+NWDSLi/P0EvWVgYtctcto1Rmr8Z+bnzKHS26dIbvR+cSvpVvK5fu4zti3+Pi6ePo3nbDHQfOA4V1y6j8uolVFy9jOtXL6Py2iX6ef3qFVy/dgnXLn1M67btkoXMoQ/fPoCVr/nBIc9DhmYW1X5DnlcCTWaLf8r2eBykCrECYIVrF6D7sIkQADMGrtXmI8AsAPZtCbDHXvkTMZjETSzI8gIAo+XigIzPmB+tRlnBVuxdtwRlhTIU12/SDA99/SeoJ7JNp7BsQt/Vj8+hvDgPHe8d4QyBc115yxS1vDHdI1ZDuJS6rObefma3M6X7sWPpW6iqqCBg9Bo5lW7cPatnoXzfrqRAklKnDtLqNULdBo1w8dxJiiB9Rz+OFu06J7V+bRfyylb/12nP81qIkKRZiUjKatPhMBVo33FAZi0v3tcAGzoRWWOfoG2LE3XiwG5F7pLBhEm47q3/pv0e/pzwYtJ046IAeJtufUgviNf2hX9AgWCwMY8he6IxWoMgE6A6fXgvDu/IxaGP1pKpKjbavtcAVFy5hJMHCzD4iS+jy305kuQskFVXXkXBmgWUAVdVXEOfcU+g18hPOyA7f/worlw4ozNA7b6rjFQDh5bg/rKQ7gvFeuyT2FUD4dRz9mwz2bnyw9j2/m+Jmgd++oto0KwVyvfvREn+JqSm1Udq3fqoI37Wq6f/TqvfEKn1BagaIy1VDqwXrT6lhVtQvHkZeWn3T/psbbGT1PLesVWvVvielyYAwCDjcGmDzK41urpMOv3EOFbvmABYUe776DZ0ArJFHUzoresVmPvi80ntGC/0+Ct/Rkrd+gTQHUKDrZpLABOJgzNaPFqN4vWLiHWO79uDqgqZrTZo1gJdBo1B14Fj0LBZS1RcPI+5M75AQvhTX/8xmrS8i5a7cuEsDu1Yi8I18+n31PoNyMPrMWwiXTBmLgGGLXN+jQNbVtbqOGq7cMe+Q5E54u9Cu2gFk4n9aE5OfrxBJHYHBg8iUYyvxmdGq33s3boMGVmDULfB7SkjeWWrXq3wPC9Nax4FtNqAjDSZGASiQEYMtmauBljWmMdIL0Srq1GUO08xmNRP4r3CtfPp/GeOnEwOtZSv8nORzaWk1qWbPG/RHwhgYnsCYCRyrYbFDe/8EAe3rEbD5q2Q3mcw2mcPROtOmVJLAai4fAFbZv0Kh7evo79bpHdB5ohJOLh1NY7tzSN9I8owPYZ9CpkjJ1GJyFxAU/YRQC4r2q7MWhs6geFnRBX8ufqF2VK/bWe03JQItOncGx36DHXN3UAFQBfJ4ePyuZPYOv8NNG7ZFn3HP0OWyP6ty1G+fxc63TMCd3XvR/39+7Yux4mDBcgcMpHCIjUt3saBvV7Zyu+fhidrkAwyzWSKkWRXheWRqYtvmMyIfvLKIx6K1s6TABsygQAhVzFsx4wYrarE7O88Q59PfeltRKsrseP9P6B+42boM+FpZxAJhcjVgsEeRdb4p6TEtRoWKy9fxKVzJ3FH+y4OYQjm3LthCXZ/MJPCZXqfQbh0+jjOWqWlSJ06xGpj//kVtOrUS4FHueo1DYezRjcFx0oGS0VyHop4jn/scLiwwrgQ9dHKSqQ1aKwBeL78ELbM/w1atu+CvuOfpfcL181HWdFH6Hr/WKT3Hkgnq2DdPJTvzUP2qEfROr2bCpfOnVBbsk24vACYKOBlMIAo/SXNzu3SslM1CDIJGLelWgJIgogAtm4hug0Zj96jH7PaqRmsEpRCZL73XWEIAlO/90ek1K2Llb96AaeP7MX4f/kvNBNhQI0JyFv0FmkjAbDscU/KhkgFMu3JSSjTv0KoH9yyEoVr5uHqx+fRuFVbDJjyj2jXsx/2b1iKjX95Hc3u6oCRz38LF06UYdX/TEd61kCM+IdpAVM2fEYfUyZSbjzprWDDouyIMECxpzHgJMFql1bF7ngZpgjVBz9ajb2blqDn0IfRvvcg2vaJQ3uQt/QdtO3aB71GTqGzUJgrALYN3e4fK5eDj4J1C1C+dweycqbizvY9zcDe28RkXtnKGbm+j2G2ruJ2ZgOgcJAZXWbapT0vhUAmQqEAWNfBAmCPWjaFR+GUs0rBGgywKd97i0LU2bKD+OBn09CqYw+M/uJLmv12LHqLzNus0Y+ir9Bgql6pRb4HVF67gvLC7Ti0bQ1KC7ZS2EtJS0PvnKnonTNFF3SPbF+H3N+/SuF0ynd+R0Fi6Y++jlNHijHuy99Hq4yeFsjid8XSva9HFolLmEzR24DMLWwHRimFjMcU35X7x1dx6dwpDHzki2japgMBTAj2/NVzkJ41CN0HT6R9IgYrlABLzxpM7zGDCYC1Su+BiAWs2xEuvZIVM37jAZ9hRmKmEj9FCLJBRn31MeEykG0Sq6WgKHc+itYLgI1Dr5xH4UerZLmEO10VyKqrqrDglc8TiCZ/+zcEMCpsL3oLdRs2Rs8HJiM1NY2yy7zFfySAZY9+FNlKg3FX7Ml9O7F7xWycOLAHfrVoogaatU1Hp/seRKf+I1G/qSz6CsbcPv931HjIrydfnYk6deujrHgHVvzyBbTK6I7x//LfcmoAisECyrFTFEStwR8MNGKeuCHQbt+pub+fapzWqCPxu8giN7z7UzRo2gIjnvmGri4IvbV/ywp0HjAKnfs9KMGUO08CbOA4pCsGy8+dTwyWnfMYWqoQKQf2ss93a8OlV7rila/6Pl5zW5uVeeqAzGUxR5OpOGVrrOJ1C1C0fhG6DRqHzJyp2PTuT3F8784biu9tumbjwc+9gLxFb6NgjWCwqRQitdsPkPZa+P0vIrVeQ3TsNxwdBzyIlsLb4dZvAKV7NmP7vDdx4WQpmrXtQGAWoXjCV19DK3Wyl/z0P8jGeOAfvoH0bHnXa/BYIHOL0gwEdtYTg8yeb8xMgucW2mPny5DfsWvFTBzdvZHcelFp4H37aOHvcOpwEe4Z+yRadexFN0dh7jyUCoANEgAbTDeKYLBjxRJgrTr00K1Btwtk3tEVMwYgGt2imcoq55DwVzpHajLTRh0j/HVdUi5TvP59anURB9dr1BTs+uAvOF2yNzAdhdutqrNHhqFKJlu274b+n/4s1RdF+UkCTLQARxyQfXyiBE1btwOEb6Y2LU7cySNF1Opz4kA+gSp7/BPIHPl32Db3DRStfR9DnvpXdBrwIDUIHt+/C8te/xZEkX3MF14kKyCeGZsYZInCJWsyabKGgizQFUv9YJXX8cGv/5P8uQeem4YGTVroG2DlG98lp/6B576JuvUbSwZbO0cDrEPvwcRRBblzHYCJN48f3ImWd/dAaqroBzOZbIJibtJEQe06R5fvOxMBmjIr1RQuJdBCwqUVPovXLUTxh4vRdeBYshqoNVklC8HCuNZ/gZFKcn9MP3/ekrfJp8oaPUVWBwiALsho2yIUVlfhSN56FK9fSKareLXPuh8DpnxeG5gb//QT7N+0HMOe/Toy+j0gB434wKZZv0Dxh0uQ1qAhcj4/nUJJKMhUB4YzHC7pkUpu0dsGmZM8qOmlxMUuLdiGjxa/heZ3ZWDwo1/WicO58iPYOOtnlHmPePobWjvmrxEA24pug8ajQ5ZksHwG2OjHSYOJ0C80Xd1GTXHf5C/QlFFyzCVjKLwxIFmE0SU6suyl2R7wiBv2jBcVtCjctp3YkUdi+b3rBcCWkMHZ68Epmv3ig0xsR4w64pYgU6riLHbnknckwHKmIGvcE2aGH91TJrKpIpTs2kAOvuiuYC0mBni0zxaZlHmt/p/pKN2zFTn/9CLadr+HPqAZFv0oct/+IW1DaLOcz76A1p0zZa88xSSeooDvdgMW401Z4dJa3nblg+07cgI8q3effS81HG7T7J/j5OEiZI2aig4cvn0fm977Bc6UHkCne0eg2+CJ1Ncm/ilYMwclBVvQfdAECvcEsLVzJIONfhytO/QkBl395kto1KI1+j8k3Xyel8zu708WUMHlCEVHl780yY+qlmmn/khfJ8s82gczTYLMPGGgKf5wEfZ+uAR3du6NdpkDtNUgmc9sl7WfnoZAj1CyAqbqoi3ZuRHHirajd84jyB4rqwOyXgrsWvYu9m9eTi68eKXWq4+Me4aj88DRaJnRXZ44Sc30u2g/nv2fz6Dy6hU8/O1fomnr9vrcCJCJctOq376M0vytSElNw/gvv4o72nWSmSuBjFubDcjEAGu6tGGDSKxEIRxkbG+4WahMGoTlchbLf/UCREPBmM+/iNR6Deh7RKYsGgxFiWjEs9+g8hDvX/7q9yTABk9Ah6whtG8EsKLtGmDXK64QgzVr0wH9JjyrunnlXLGyW4Mbp26Myehsi0EfJWdOlvtAYNCHvBgc0uyBuDTCUftgseFyrwDYhqU3CvyE6wmAZY0R9U0TPvduWIytc97AnZ16ocv9OWjfd4huQzGt1z4qLl3AxTMnkL98Fkp2byax/9C0n7vfpzowRMa5/Nffobt8zD++SBaHFv1xQBbsipWVAGYzlTkG2nFiGxFtG0MCdt/GpSjMfR9tu2ZjwMOfofeEXty28E2yYjJHTEZGn6FOUpK/ejZK8regx+CJSM8eIrezeSkO561Di7s7o13P/jhzdB/KireTf5Y5fLIpiamRSvIwbxxkuqHqyJIXp/me/4rWRxpAyoFXQAsyGU0FoB1/Ey73bVhMABMXsGV6V13glqwjTrsR+CaDVTxj3FMmHOKfU4cLcKbkAHqPegRZYx/X4KeFotW4fO4UGrdsp1uw7Wk8t817g7o77Fe9xs0w9Jmv6fDofKhAVlVxBdGqaqQ1bCwni5PFI9XGQ6dfZWJWuAy0Xjsgq5WFYUxbUQY6VrgdAyZ/Bm279CEG/Wjhm2StdLp3OHoOn+yWlXwfeyyAibKTANjHp8qw6b3ADQUgK+cxtO4gNBnrfMlYwV6y2gp/DbCSDT+s71+4tC/qiYG3pizktNlwiLE+ZybjrJKHtpUWbEHZni1ol9kPHfoOs4zWYOt1rIazTV/Te+bhwNYVOLpzIzr2G4GO/R9wBvtqf419NqthUfh5ov1508yf09jARi3upG7PzvfnUF9Yopc967W8m5WdoIWwcelNC7YMobG9ZFwKisdkQZ/MDZdnSw9AjHCKCDPb9ymbPLRjDToPyNG9+ZzZip9Xzp/GtcsXUK/RHajXUDymQGatohPk1NFiGuYnmg2bt+mAJq3uNp0fiUCmxlwmG5o0wMQKh5dNfx5RvBEr9hXgLFZz5q3gSU4U8Lj1mnyqBC0+rO3kZgP1Tntd3eBoQradYZqbQDKgCzY1rQAzZy1n87EbFhVfcSavDFhT4GZXXhKcAp7FZgxQY03Yo5JU377DfvFbr1WTvtaCtl9ng4z3Rff4O6HdVCGkVrLGKDggkw+J0JqsFiBzAEaWxdJCmvzElHPkzDhuw6AKczaTsU+myjeCyWyAxQCIUCXZzA6x8daxmUwSKQPSqpPyNAWhIJPJAJ2kmwQZz4PBYtowm+v2OwNLtA4T4AsM+BBTDOi+MZ5ancNvIpCptFYlHDawbKtDVwMoG2UW5pFNPCKK54o1n9+KcOkATGywZNn08dVRLGYBLYGVHMj0TNMhmiy2ME4KncpKhslix1zGC5cuyFjPKRA5YdLMm2H3998MyGQmqbpR1Z2fEGSWN2ZKP7bJymCyJ1vhSe3EcskyGWewdnHezmrVNgl99hQFJhEJYzJmR9JkzMzWFAWJwmUMwChULv7uy/C8b0ri4hYbZXpaNoYW7IrJyO1XYVTXNKlPzM1GY0EjvS8Ou+x7hRqydrhUbd21CpdcmRCn2GIyPdC3BnGh58GgEmU8kAUnPFHhRycHdlmIM0YGnG17MDjETtXEZEHjlgf42rrO0ouqVdtuWKQbh+dac8KledwNRRInXAqMxJ/DPxRgYgrNo0u/N9cHJlGBm0f5BAaCmPKSmbcitCs2UH4KsllwzKXspHXDsgGlgIJkVLu85bj+msFiNZndgSG2ZIPM9sni4swaRCK0JrdHOwmA9rwMM2nNZFkURjcZkNEFt6fn5CeR1DCIRHkhMZmkXYGw/TcTTpnN3HpqcBI8c3zUNZi0TxYKMLGxk6t/3ujq1dMbfDEJsGoWdHRPkMnCGhbFMhFjYwSZzE4mYgb26gmGgYjV3iPXUaxq74PcSdWIa4Q+G7i28LdBdrOa7EZAFiPIVXbHvf3MKrRczJNIBBDCW4IkiO1mRsOKoUmAWIEAHAdknDWrjg5qJtW/S8e/JjM2LsDEVx5aMiPD8yo2w/day8hHDTzW4FyLIVSYDHbFUugTK1uAcUKkY4lEyKkOtmtT7cAatSSnT+dhdW4IDo5ukvtr9lM3KarJVoIP7pJLGsc/PpOZp8HdGpBZoluHL2PQUpVAhy2em8zoK2YkAzIJrhjWCjKo1QzpANsKl3rbsudZWzVieTPLYrgZmxBg4uSWL5mRcd2/voCYzC7j6N9jO1to6hs3AAAD80lEQVSDIFOWuwKZBCoXpWNtDDWbj63lFIOFgcyUi+ShCIDKIXfGX9MJgV32Un0dDLgbYzILZPTt1oO84gyH07otUE4KC5dcdiKKcZiMa6Hhrddh4dK1LkzmaIBptWvrKRVYZwYnjLFBJsxY2X8X5vjXCDAdLq+dfltoMg5RSrfHZJha3Cvd5WgyHqTrsFZ467WZxtNtyzYhT4wONnXRGEOYWC4ByJSuvPlwGQBZ3KfDBaYbkIpaMYyr1dyGRTMugPSepcnkcq7lYQOGgSZJKtYaYVEfA7KQemqsJpONmJxNq1l3Y7owkgKYEnjekSXTXxLZpQaZdQGDDYsyNJrefg6LGoBxQcYCXvwU7ddmMmKt2VSZibYZEi5Z68U+U8kue8mBvfas19I4uRGfrJYg00ZsIMOzNI/0sQLdFdasiabYLp4OZ8Zf2iExofDn0BioizJoDPhVkdtaXqJIhkvu4HVbr+UNo+VGXJ0R8oHwyaJR/MD3vEz7oQwyozNaR3tbMYNITHeGHXJlFIwdRMIDSULbfFhfaZBZExKzjop5ppKtJWWGzIC8mXBJU0Qpv8t9cJfSTsqisFuvJXOEMJn2msIGkch1zONuVLjk2Xhs9uHJUSjEGoPXMWTD+tcC88raCQIfoxb78k6wHnfDHpySDLUBFy8rHP8jHxQ/58GbLibFIe1jO+tW6Yir1WbkuCkJGd8r1iuTLj/rNTlaKbmGRTZwzTZrejrcrWIy7ooQexAOMlWj1E6+KZy7jKEyO8JSbGeFtkbs3jHNduHz97u10ZCwarOnLfxVGDQJhgK3DGuaqbhBUTcsis+jMT3KtYObKJBHL17+iudFvub7vm71CdoRXAqyB5FwyIwZRKJNWTZ4GWQiXIZPrW48MFF6d2uR8ntMW4+ueyrrRfK4ZL5guFRv6pNS6+xSXQTWIbYnpZmsxq7YZEGWYBCJGp1kP+QrmF0ym9oT4unaZByQKelkgUyFRdKhMjFIWoMlgh71k507NcGLek/7ES/HA5qyEWo3LPJFDDr0oSCzqgLGVJVD4uKGS0JwLMgkhhRz2vrNCo/2k3vt+ftjQeaOIwg7L/bD7YNM5j6JxB0O5zwWWgFPhzMKm8Exlypr1UzGIHMHDLOfJrNc9ZzyQCi1GSom49T6y2SadNx2eJVmlHwmOrn9svX6lgDMPskifJauOtTP86uHep4nRnZ29zyvPeA1RsRrDHhpklCs+fUT9fcrLSVByRMSJwKZAZIxZE1xnLNQw2TMeGpsp8p+7eySGZCPMxkms9t8SCWJefaVWtFyzOpy5a6HuM8eVywSD2QGFAZkzDBB4Z8syOJZGDo7DQMZyT0GmY//BTPiWWsfFEpDAAAAAElFTkSuQmCC"}}]); +`)}),R.flush()}},"./src/utils/xhr-loader.ts":function(P,g,T){"use strict";T.r(g);var b=T("./src/utils/logger.ts"),y=T("./src/loader/load-stats.ts"),x=/^age:\s*[\d.]+\s*$/m,O=function(){function m(f){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=f?f.xhrSetup:null,this.stats=new y.LoadStats,this.retryDelay=0}var e=m.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},e.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(a,u,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=u,this.callbacks=r,this.retryDelay=u.retryDelay,this.loadInternal()},e.loadInternal=function(){var a=this.config,u=this.context;if(!a)return;var r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0;var n=this.xhrSetup;try{if(n)try{n(r,u.url)}catch(d){r.open("GET",u.url,!0),n(r,u.url)}r.readyState||r.open("GET",u.url,!0);var l=this.context.headers;if(l)for(var h in l)r.setRequestHeader(h,l[h])}catch(d){this.callbacks.onError({code:r.status,text:d.message},u,r);return}u.rangeEnd&&r.setRequestHeader("Range","bytes="+u.rangeStart+"-"+(u.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=u.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),r.send()},e.readystatechange=function(){var a=this.context,u=this.loader,r=this.stats;if(!a||!u)return;var i=u.readyState,n=this.config;if(r.aborted)return;if(i>=2)if(self.clearTimeout(this.requestTimeout),r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start)),i===4){u.onreadystatechange=null,u.onprogress=null;var l=u.status;if(l>=200&&l<300){r.loading.end=Math.max(self.performance.now(),r.loading.first);var h,d;if(a.responseType==="arraybuffer"?(h=u.response,d=h.byteLength):(h=u.responseText,d=h.length),r.loaded=r.total=d,!this.callbacks)return;var s=this.callbacks.onProgress;if(s&&s(r,a,h,u),!this.callbacks)return;var c={url:u.responseURL,data:h};this.callbacks.onSuccess(c,r,a,u)}else r.retry>=n.maxRetry||l>=400&&l<499?(b.logger.error(l+" while loading "+a.url),this.callbacks.onError({code:l,text:u.statusText},a,u)):(b.logger.warn(l+" while loading "+a.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,n.maxRetryDelay),r.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},e.loadtimeout=function(){b.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(a){var u=this.stats;u.loaded=a.loaded,a.lengthComputable&&(u.total=a.total)},e.getCacheAge=function(){var a=null;if(this.loader&&x.test(this.loader.getAllResponseHeaders())){var u=this.loader.getResponseHeader("age");a=u?parseFloat(u):null}return a},m}();g.default=O}}).default})},vHTk:function(k,z,o){k.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:function(k,z,o){k.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},w7YG:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.StreamCipher,y=g.algo,x=y.RC4=b.extend({_doReset:function(){for(var e=this._key,f=e.words,a=e.sigBytes,u=this._S=[],r=0;r<256;r++)u[r]=r;for(var r=0,i=0;r<256;r++){var n=r%a,l=f[n>>>2]>>>24-n%4*8&255;i=(i+u[r]+l)%256;var h=u[r];u[r]=u[i],u[i]=h}this._i=this._j=0},_doProcessBlock:function(e,f){e[f]^=O.call(this)},keySize:256/32,ivSize:0});function O(){for(var e=this._S,f=this._i,a=this._j,u=0,r=0;r<4;r++){f=(f+1)%256,a=(a+e[f])%256;var i=e[f];e[f]=e[a],e[a]=i,u|=e[(e[f]+e[a])%256]<<24-r*8}return this._i=f,this._j=a,u}g.RC4=b._createHelper(x);var m=y.RC4Drop=x.extend({cfg:x.cfg.extend({drop:192}),_doReset:function(){x._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)O.call(this)}});g.RC4Drop=b._createHelper(m)}(),P.RC4})},wCXF:function(k,z,o){"use strict";o.d(z,"a",function(){return dt});var P=o("rePB"),g=o("VTBJ"),T=o("KQm4"),b=o("U8pU"),y=o("ODXe"),x=o("q1tI"),O=o("TSYQ"),m=o.n(O),e=o("Gytx"),f=o.n(e),a=o("Kwbf"),u=o("t23M"),r=o("qx4F"),i=o("6eGT"),n=o("IBYe"),l=o("Ff2n"),h=o("c+Xe"),d=o("fyJ8"),s=o("biw7");function c(Ye,Ue,ft,jt,bt){var Pt=ft[Ye]||{},it=ft[Ue]||{},He,Ge;Pt.fixed==="left"?He=jt.left[Ye]:it.fixed==="right"&&(Ge=jt.right[Ue]);var Ce=!1,Ie=!1,Fe=!1,Be=!1,We=ft[Ue+1],st=ft[Ye-1];if(bt==="rtl"){if(He!==void 0){var Dt=st&&st.fixed==="left";Be=!Dt}else if(Ge!==void 0){var Ht=We&&We.fixed==="right";Fe=!Ht}}else if(He!==void 0){var rn=We&&We.fixed==="left";Ce=!rn}else if(Ge!==void 0){var Bt=st&&st.fixed==="right";Ie=!Bt}return{fixLeft:He,fixRight:Ge,lastFixLeft:Ce,firstFixRight:Ie,lastFixRight:Fe,firstFixLeft:Be,isSticky:jt.isSticky}}var w=o("sR1s");function E(Ye){var Ue=Ye.cells,ft=Ye.stickyOffsets,jt=Ye.flattenColumns,bt=Ye.rowComponent,Pt=Ye.cellComponent,it=Ye.onHeaderRow,He=Ye.index,Ge=x.useContext(s.a),Ce=Ge.prefixCls,Ie=Ge.direction,Fe;it&&(Fe=it(Ue.map(function(We){return We.column}),He));var Be=Object(w.a)(Ue.map(function(We){return We.column}));return x.createElement(bt,Object.assign({},Fe),Ue.map(function(We,st){var Dt=We.column,Ht=c(We.colStart,We.colEnd,jt,ft,Ie),rn;return Dt&&Dt.onHeaderCell&&(rn=We.column.onHeaderCell(Dt)),x.createElement(d.a,Object.assign({},We,{ellipsis:Dt.ellipsis,align:Dt.align,component:Pt,prefixCls:Ce,key:Be[st]},Ht,{additionalProps:rn,rowType:"header"}))}))}E.displayName="HeaderRow";var v=E;function R(Ye){var Ue=[];function ft(it,He){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ue[Ge]=Ue[Ge]||[];var Ce=He,Ie=it.filter(Boolean).map(function(Fe){var Be={key:Fe.key,className:Fe.className||"",children:Fe.title,column:Fe,colStart:Ce},We=1,st=Fe.children;return st&&st.length>0&&(We=ft(st,Ce,Ge+1).reduce(function(Dt,Ht){return Dt+Ht},0),Be.hasSubColumns=!0),"colSpan"in Fe&&(We=Fe.colSpan),"rowSpan"in Fe&&(Be.rowSpan=Fe.rowSpan),Be.colSpan=We,Be.colEnd=Be.colStart+We-1,Ue[Ge].push(Be),Ce+=We,We});return Ie}ft(Ye,0);for(var jt=Ue.length,bt=function(He){Ue[He].forEach(function(Ge){!("rowSpan"in Ge)&&!Ge.hasSubColumns&&(Ge.rowSpan=jt-He)})},Pt=0;Pt=0;He-=1){var Ge=Ue[He],Ce=ft&&ft[He],Ie=Ce&&Ce[S.a];(Ge||Ie||it)&&(bt.unshift(x.createElement("col",Object.assign({key:He,style:{width:Ge,minWidth:Ge}},Ie))),it=!0)}return x.createElement("colgroup",null,bt)}var A=_;function U(Ye,Ue){return Object(x.useMemo)(function(){for(var ft=[],jt=0;jt1?oe-1:0),fe=1;fe=Fe&&(mn=Fe-Be),it({scrollLeft:mn/Fe*(Ie+2)}),Bt.current.x=lt.pageX},Et=function(){var lt=Object(J.b)(Pt.current).top,Ft=lt+Pt.current.offsetHeight,Lt=document.documentElement.scrollTop+window.innerHeight;Ft-Object(r.a)()<=Lt||lt>=Lt-He?rn(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!0})}):rn(function(on){return Object(g.a)(Object(g.a)({},on),{},{isHiddenScrollBar:!1})})},Ot=function(lt){rn(function(Ft){return Object(g.a)(Object(g.a)({},Ft),{},{scrollLeft:lt/Ie*Fe||0})})};return x.useImperativeHandle(ft,function(){return{setScrollLeft:Ot}}),x.useEffect(function(){var Mt=Object(Q.a)(document.body,"mouseup",Pe,!1),lt=Object(Q.a)(document.body,"mousemove",ht,!1);return Et(),function(){Mt.remove(),lt.remove()}},[Be,et]),x.useEffect(function(){var Mt=Object(Q.a)(window,"scroll",Et,!1),lt=Object(Q.a)(window,"resize",Et,!1);return function(){Mt.remove(),lt.remove()}},[]),x.useEffect(function(){Ht.isHiddenScrollBar||rn(function(Mt){var lt,Ft;return Object(g.a)(Object(g.a)({},Mt),{},{scrollLeft:Pt.current.scrollLeft/((lt=Pt.current)===null||lt===void 0?void 0:lt.scrollWidth)*((Ft=Pt.current)===null||Ft===void 0?void 0:Ft.clientWidth)})})},[Ht.isHiddenScrollBar]),Ie<=Fe||!Be||Ht.isHiddenScrollBar?null:x.createElement("div",{style:{height:Object(r.a)(),width:Fe,bottom:He},className:"".concat(Ce,"-sticky-scroll")},x.createElement("div",{onMouseDown:Xe,ref:We,className:m()("".concat(Ce,"-sticky-scroll-bar"),Object(P.a)({},"".concat(Ce,"-sticky-scroll-bar-active"),et)),style:{width:"".concat(Be,"px"),transform:"translate3d(".concat(Ht.scrollLeft,"px, 0, 0)")}}))},_e=x.forwardRef(ve);function Ae(Ye,Ue){return x.useMemo(function(){var ft=!!Ye;return{isSticky:ft,stickyClassName:ft?"".concat(Ue,"-sticky-header"):"",offsetHeader:Object(b.a)(Ye)==="object"&&Ye.offsetHeader||0,offsetScroll:Object(b.a)(Ye)==="object"&&Ye.offsetScroll||0}},[Ye,Ue])}var Qe=[],tt={},dt="rc-table-internal-hook",mt=x.memo(function(Ye){var Ue=Ye.children;return Ue},function(Ye,Ue){return f()(Ye.props,Ue.props)?Ye.pingLeft!==Ue.pingLeft||Ye.pingRight!==Ue.pingRight:!1});function vt(Ye){var Ue,ft=Ye.prefixCls,jt=Ye.className,bt=Ye.rowClassName,Pt=Ye.style,it=Ye.data,He=Ye.rowKey,Ge=Ye.scroll,Ce=Ye.tableLayout,Ie=Ye.direction,Fe=Ye.title,Be=Ye.footer,We=Ye.summary,st=Ye.id,Dt=Ye.showHeader,Ht=Ye.components,rn=Ye.emptyText,Bt=Ye.onRow,Ct=Ye.onHeaderRow,Ke=Ye.internalHooks,et=Ye.transformColumns,at=Ye.internalRefs,Pe=Ye.sticky,Xe=it||Qe,ht=!!Xe.length,Et=x.useState(0),Ot=Object(y.a)(Et,2),Mt=Ot[0],lt=Ot[1];x.useEffect(function(){lt(Object(r.a)())});var Ft=x.useMemo(function(){return Object(w.c)(Ht,{})},[Ht]),Lt=x.useCallback(function(Gt,Zt){return Object(w.b)(Ft,Gt)||Zt},[Ft]),on=x.useMemo(function(){return typeof He=="function"?He:function(Gt){var Zt=Gt&&Gt[He];return Zt}},[He]),mn=Object(S.c)(Ye),Hn=mn.expandIcon,Xn=mn.expandedRowKeys,Fn=mn.defaultExpandedRowKeys,xn=mn.defaultExpandAllRows,fr=mn.expandedRowRender,Yn=mn.onExpand,ar=mn.onExpandedRowsChange,nr=mn.expandRowByClick,Rr=mn.rowExpandable,pr=mn.expandIconColumnIndex,sn=mn.expandedRowClassName,qt=mn.childrenColumnName,On=mn.indentSize,Fr=Hn||se,Or=qt||"children",xr=x.useMemo(function(){return fr?"row":Ye.expandable&&Ke===dt&&Ye.expandable.__PARENT_RENDER_ICON__||Xe.some(function(Gt){return Gt&&Object(b.a)(Gt)==="object"&&Gt[Or]})?"nest":!1},[!!fr,Xe]),dr=x.useState(function(){return Fn||(xn?te(Xe,on,Or):[])}),pe=Object(y.a)(dr,2),X=pe[0],q=pe[1],oe=x.useMemo(function(){return new Set(Xn||X||[])},[Xn,X]),De=x.useCallback(function(Gt){var Zt=on(Gt,Xe.indexOf(Gt)),Jt,zn=oe.has(Zt);zn?(oe.delete(Zt),Jt=Object(T.a)(oe)):Jt=[].concat(Object(T.a)(oe),[Zt]),q(Jt),Yn&&Yn(!zn,Gt),ar&&ar(Jt)},[on,oe,Xe,Yn,ar]),fe=x.useState(0),ot=Object(y.a)(fe,2),Qt=ot[0],Mn=ot[1],Vn=Object(ce.b)(Object(g.a)(Object(g.a)(Object(g.a)({},Ye),mn),{},{expandable:!!fr,expandedKeys:oe,getRowKey:on,onTriggerExpand:De,expandIcon:Fr,expandIconColumnIndex:pr,direction:Ie}),Ke===dt?et:null),$t=Object(y.a)(Vn,2),gn=$t[0],pn=$t[1],Ar=x.useMemo(function(){return{columns:gn,flattenColumns:pn}},[gn,pn]),ra=x.useRef(),oa=x.useRef(),ir=x.useRef(),Ra=x.useState(!1),La=Object(y.a)(Ra,2),ca=La[0],Ka=La[1],wa=x.useState(!1),Ja=Object(y.a)(wa,2),ja=Ja[0],li=Ja[1],oi=ue(new Map),fa=Object(y.a)(oi,2),ma=fa[0],la=fa[1],xe=Object(w.a)(pn),ut=xe.map(function(Gt){return ma.get(Gt)}),Rt=x.useMemo(function(){return ut},[ut.join("_")]),wt=me(Rt,pn.length,Ie),Kt=Ge&&Object(w.d)(Ge.y),Nt=Ge&&Object(w.d)(Ge.x),Xt=Nt&&pn.some(function(Gt){var Zt=Gt.fixed;return Zt}),nn=x.useRef(),yn=Ae(Pe,ft),vn=yn.isSticky,Nn=yn.offsetHeader,An=yn.offsetScroll,an=yn.stickyClassName,Pn,bn,kn;Kt&&(bn={overflowY:"scroll",maxHeight:Ge.y}),Nt&&(Pn={overflowX:"auto"},Kt||(bn={overflowY:"hidden"}),kn={width:Ge.x===!0?"auto":Ge.x,minWidth:"100%"});var Rn=x.useCallback(function(Gt,Zt){la(function(Jt){var zn=new Map(Jt);return zn.set(Gt,Zt),zn})},[]),Jn=le(null),mr=Object(y.a)(Jn,2),Br=mr[0],Sn=mr[1];function Yt(Gt,Zt){if(!Zt)return;typeof Zt=="function"?Zt(Gt):Zt.scrollLeft!==Gt&&(Zt.scrollLeft=Gt)}var dn=function(Zt){var Jt=Zt.currentTarget,zn=Zt.scrollLeft,$n=typeof zn=="number"?zn:Jt.scrollLeft,Ln=Jt||tt;if(!Sn()||Sn()===Ln){var rr;Br(Ln),Yt($n,oa.current),Yt($n,ir.current),Yt($n,(rr=nn.current)===null||rr===void 0?void 0:rr.setScrollLeft)}if(Jt){var cr=Jt.scrollWidth,sr=Jt.clientWidth;Ka($n>0),li($n0?[].concat(Object(g.a)(l),Object(g.a)(a(c).map(function(w){return Object(T.a)({fixed:s},w)}))):[].concat(Object(g.a)(l),[Object(T.a)(Object(T.a)({},h),{},{fixed:s})])},[])}function u(n){for(var l=!0,h=0;h=0;c-=1){var w=n[c];if(s&&w.fixed!=="right")s=!1;else if(!s&&w.fixed==="right"){Object(O.a)(!1,"Index ".concat(c+1," of `columns` missing `fixed='right'` prop."));break}}}function r(n){return n.map(function(l){var h=l.fixed,d=Object(b.a)(l,["fixed"]),s=h;return h==="left"?s="right":h==="right"&&(s="left"),Object(T.a)({fixed:s},d)})}function i(n,l){var h=n.prefixCls,d=n.columns,s=n.children,c=n.expandable,w=n.expandedKeys,E=n.getRowKey,v=n.onTriggerExpand,R=n.expandIcon,M=n.rowExpandable,C=n.expandIconColumnIndex,S=n.direction,_=n.expandRowByClick,A=y.useMemo(function(){return d||f(s)},[d,s]),U=y.useMemo(function(){if(c){var V,H=C||0,D=A[H],W=(V={},Object(P.a)(V,e.a,{className:"".concat(h,"-expand-icon-col")}),Object(P.a)(V,"title",""),Object(P.a)(V,"fixed",D?D.fixed:null),Object(P.a)(V,"className","".concat(h,"-row-expand-icon-cell")),Object(P.a)(V,"render",function(K,ee,he){var de=E(ee,he),Se=w.has(de),Te=M?M(ee):!0,ce=R({prefixCls:h,expanded:Se,expandable:Te,record:ee,onExpand:v});return _?y.createElement("span",{onClick:function(Ee){return Ee.stopPropagation()}},ce):ce}),V),F=A.slice();return H>=0&&F.splice(H,0,W),F}return A},[c,A,E,w,R,S]),L=y.useMemo(function(){var V=U;return l&&(V=l(V)),V.length||(V=[{render:function(){return null}}]),V},[l,U,S]),N=y.useMemo(function(){return S==="rtl"?r(a(L)):a(L)},[L,S]);return[L,N]}z.b=i},wZgz:function(k,z,o){(function(P,g,T){k.exports=z=g(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.BlockCipher,y=g.algo,x=[],O=[],m=[],e=[],f=[],a=[],u=[],r=[],i=[],n=[];(function(){for(var d=[],s=0;s<256;s++)s<128?d[s]=s<<1:d[s]=s<<1^283;for(var c=0,w=0,s=0;s<256;s++){var E=w^w<<1^w<<2^w<<3^w<<4;E=E>>>8^E&255^99,x[c]=E,O[E]=c;var v=d[c],R=d[v],M=d[R],C=d[E]*257^E*16843008;m[c]=C<<24|C>>>8,e[c]=C<<16|C>>>16,f[c]=C<<8|C>>>24,a[c]=C;var C=M*16843009^R*65537^v*257^c*16843008;u[E]=C<<24|C>>>8,r[E]=C<<16|C>>>16,i[E]=C<<8|C>>>24,n[E]=C,c?(c=v^d[d[d[M^v]]],w^=d[d[w]]):c=w=1}})();var l=[0,1,2,4,8,16,32,64,128,27,54],h=y.AES=b.extend({_doReset:function(){var d;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var s=this._keyPriorReset=this._key,c=s.words,w=s.sigBytes/4,E=this._nRounds=w+6,v=(E+1)*4,R=this._keySchedule=[],M=0;M6&&M%w==4&&(d=x[d>>>24]<<24|x[d>>>16&255]<<16|x[d>>>8&255]<<8|x[d&255]):(d=d<<8|d>>>24,d=x[d>>>24]<<24|x[d>>>16&255]<<16|x[d>>>8&255]<<8|x[d&255],d^=l[M/w|0]<<24),R[M]=R[M-w]^d);for(var C=this._invKeySchedule=[],S=0;S>>24]]^r[x[d>>>16&255]]^i[x[d>>>8&255]]^n[x[d&255]]}},encryptBlock:function(d,s){this._doCryptBlock(d,s,this._keySchedule,m,e,f,a,x)},decryptBlock:function(d,s){var c=d[s+1];d[s+1]=d[s+3],d[s+3]=c,this._doCryptBlock(d,s,this._invKeySchedule,u,r,i,n,O);var c=d[s+1];d[s+1]=d[s+3],d[s+3]=c},_doCryptBlock:function(d,s,c,w,E,v,R,M){for(var C=this._nRounds,S=d[s]^c[0],_=d[s+1]^c[1],A=d[s+2]^c[2],U=d[s+3]^c[3],L=4,N=1;N>>24]^E[_>>>16&255]^v[A>>>8&255]^R[U&255]^c[L++],H=w[_>>>24]^E[A>>>16&255]^v[U>>>8&255]^R[S&255]^c[L++],D=w[A>>>24]^E[U>>>16&255]^v[S>>>8&255]^R[_&255]^c[L++],W=w[U>>>24]^E[S>>>16&255]^v[_>>>8&255]^R[A&255]^c[L++];S=V,_=H,A=D,U=W}var V=(M[S>>>24]<<24|M[_>>>16&255]<<16|M[A>>>8&255]<<8|M[U&255])^c[L++],H=(M[_>>>24]<<24|M[A>>>16&255]<<16|M[U>>>8&255]<<8|M[S&255])^c[L++],D=(M[A>>>24]<<24|M[U>>>16&255]<<16|M[S>>>8&255]<<8|M[_&255])^c[L++],W=(M[U>>>24]<<24|M[S>>>16&255]<<16|M[_>>>8&255]<<8|M[A&255])^c[L++];d[s]=V,d[s+1]=H,d[s+2]=D,d[s+3]=W},keySize:256/32});g.AES=b._createHelper(h)}(),P.AES})},wbyO:function(k,z,o){(function(P,g){k.exports=z=g(o("Ib8C"))})(this,function(P){return function(){var g=P,T=g.lib,b=T.WordArray,y=g.enc,x=y.Base64url={stringify:function(m,e=!0){var f=m.words,a=m.sigBytes,u=e?this._safe_map:this._map;m.clamp();for(var r=[],i=0;i>>2]>>>24-i%4*8&255,l=f[i+1>>>2]>>>24-(i+1)%4*8&255,h=f[i+2>>>2]>>>24-(i+2)%4*8&255,d=n<<16|l<<8|h,s=0;s<4&&i+s*.75>>6*(3-s)&63));var c=u.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(m,e=!0){var f=m.length,a=e?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var r=0;r>>6-r%4*2,l=i|n;a[u>>>2]|=l<<24-u%4*8,u++}return b.create(a,u)}}(),P.enc.Base64url})},xiVL:function(k,z){k.exports="data:image/png;base64,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"},xrsn:function(k,z,o){k.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",dropDown:"dropDown___3Phxo",line:"line___3lQ2g",subName:"subName___3sqtP",name:"name___1Odvx",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y0+3":function(k,z,o){"use strict";o.d(z,"a",function(){return a}),o.d(z,"b",function(){return r});var P=/margin|padding|width|height|max|min|offset/,g={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function b(i){return i.nodeType===1?i.ownerDocument.defaultView.getComputedStyle(i,null):{}}function y(i,n,l){if(n=n.toLowerCase(),l==="auto"){if(n==="height")return i.offsetHeight;if(n==="width")return i.offsetWidth}return n in g||(g[n]=P.test(n)),g[n]?parseFloat(l)||0:l}function x(i,n){var l=arguments.length,h=b(i);return n=T[n]?"cssFloat"in i.style?"cssFloat":"styleFloat":n,l===1?h:y(i,n,h[n]||i.style[n])}function O(i,n,l){var h=arguments.length;if(n=T[n]?"cssFloat"in i.style?"cssFloat":"styleFloat":n,h===3)return typeof l=="number"&&P.test(n)&&(l="".concat(l,"px")),i.style[n]=l,l;for(var d in n)n.hasOwnProperty(d)&&O(i,d,n[d]);return b(i)}function m(i){return i===document.body?document.documentElement.clientWidth:i.offsetWidth}function e(i){return i===document.body?window.innerHeight||document.documentElement.clientHeight:i.offsetHeight}function f(){var i=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:i,height:n}}function a(){var i=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:i,height:n}}function u(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function r(i){var n=i.getBoundingClientRect(),l=document.documentElement;return{left:n.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}},yDYP:function(k,z,o){k.exports={flex_box_center:"flex_box_center___1ns9C",flex_space_between:"flex_space_between___CtYWo",flex_box_vertical_center:"flex_box_vertical_center___1BY1r",flex_box_center_end:"flex_box_center_end___1f_qK",flex_box_column:"flex_box_column___vKDYT",commitWrap:"commitWrap___3D8wo",wrap:"wrap___3FqEy",colorGray:"colorGray___cRpZO",content:"content___3lBLc",itemTime:"itemTime___Tgw2b",imageUrl:"imageUrl___2Lb2n",blueLight:"blueLight___1hcIr",divider:"divider___3FYHo",empty:"empty___oYMsw"}},"yTi+":function(k,z,o){k.exports=o.p+"static/AssistantCode3.fdd8db3c.jpeg"},ygoZ:function(k,z){k.exports="data:image/png;base64,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"},yslc:function(k,z){k.exports="data:image/png;base64,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"},z4EP:function(k,z){k.exports="data:image/png;base64,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"}}]); diff --git a/umi.8c2c95c6.js b/umi.99004bda.js similarity index 99% rename from umi.8c2c95c6.js rename to umi.99004bda.js index fd8bac889f..de97a32f76 100644 --- a/umi.8c2c95c6.js +++ b/umi.99004bda.js @@ -1,4 +1,4 @@ -(function(x){function g(l){for(var f=l[0],o=l[1],h=l[2],c,b,E=0,O=[];E